This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [vta/trunk] don't violate strict aliasing rules in type_hash_add


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}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]