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: patch to fix tentative struct type collision


On Dec 5, 2006, at 11:21 AM, Fariborz Jahanian wrote:
When searching for a tentative struct type in type_hash_eq, if it collides with another similar type, currently type_hash_eq says it is a match since both types' TYPE_FIELDS is NULL. This is incorrect and causes bad things to happen as it matches "struct foo' with "struct bar", for example. I ran into this problem when made a call to build_type_attribute_variant to create a new duplicate type with new attributes. Attach patch, which is dejagnu and bootstrap tested on apple-x86-darwin, fixes the problem.

OK for FSF's main trunk?

Ping?


And for 4.2. This causes a regression from 4.0 in 4.2 in obj-c++.dg/ objc-gc-weak-[12].mm for us.


http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00338.html



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