This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [vta/trunk] don't violate strict aliasing rules in type_hash_add
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 26 Nov 2007 04:37:07 -0200
- Subject: Re: [vta/trunk] don't violate strict aliasing rules in type_hash_add
- References: <or4pfrwav6.fsf@oliva.athome.lsd.ic.unicamp.br>
On Nov 12, 2007, Alexandre Oliva <aoliva@redhat.com> wrote:
> Ok for the trunk? Installing in vta.
> * tree.c (type_hash_add): Don't violate strict aliasing rules.
> Index: gcc/tree.c
> - *(struct type_hash **) loc = h;
> + *loc = (void*)h;
I'm going ahead and checking this in as obviously correct.
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}