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 11/26/07 1:37 AM, Alexandre Oliva wrote:
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;

Space after 'void'.



Diego.



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