This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 'char **' <-> 'unsigned char **' and aliasing/punning in C / GNU C
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: PedroAlves <palves at redhat dot com>, IanLanceTaylor <iant at google dot com>
- Cc: GCCHelp <gcc-help at gcc dot gnu dot org>
- Date: Mon, 11 Mar 2013 13:50:48 +0100
- Subject: Re: 'char **' <-> 'unsigned char **' and aliasing/punning in C / GNU C
- Reply-to: Andreas Tobler <andreast-list at fgznet dot ch>
--------- Original Message --------
From: Pedro Alves <palves@redhat.com>
To: Ian Lance Taylor <iant@google.com>
Cc: GCC Help <gcc-help@gcc.gnu.org>
Subject: Re: 'char **' <-> 'unsigned char **' and aliasing/punning in C /
GNU C
Date: 11/03/13 13:35
> On 03/09/2013 01:37 AM, Ian Lance Taylor wrote:
>
> > Joseph is far more likely to be right than I am.
>
> I appreciated your help anyway. I believe he is indeed
> right, looking at C99/N1256, 6.5/7, but I can't claim I
> grok the "legalese" fully.
>
> Turns out older gccs did complain on this:
>
> http://sourceware.org/ml/gdb-patches/2013-03/msg00429.html
>
> (That was CentOS 5.9, I believe gcc 4.1.2; I'm on Fedora 17, 4.7.2).
Here on FreeBSD it is 4.2.1 and it complains :)
Andreas