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

Alexandre Oliva aoliva@redhat.com
Mon Nov 26 09:27:00 GMT 2007


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}



More information about the Gcc-patches mailing list