Re: Fwd: Objective-C and C99 strict aliasing

2009-04-10 Thread David Ayers
Am Freitag, den 10.04.2009, 09:22 +0200 schrieb Richard Guenther: > On Fri, Apr 10, 2009 at 3:41 AM, Ian Lance Taylor wrote: > > John Engelhart writes: > > > >> The easiest, and I think safest, course of action would be to add a > >> line in c_common_get_alias_set similar to the one I suggested.

Re: Fwd: Objective-C and C99 strict aliasing

2009-04-10 Thread Richard Guenther
On Fri, Apr 10, 2009 at 3:41 AM, Ian Lance Taylor wrote: > John Engelhart writes: > >> The easiest, and I think safest, course of action would be to add a >> line in c_common_get_alias_set similar to the one I suggested.  That >> is, if it is a pointer to something that looks even remotely like a

Re: Fwd: Objective-C and C99 strict aliasing

2009-04-09 Thread Ian Lance Taylor
John Engelhart writes: > The easiest, and I think safest, course of action would be to add a > line in c_common_get_alias_set similar to the one I suggested. That > is, if it is a pointer to something that looks even remotely like an > objective-c "object", then just assume that it can alias any

Re: Fwd: Objective-C and C99 strict aliasing

2009-04-09 Thread John Engelhart
On Wed, Apr 8, 2009 at 5:42 PM, Ian Lance Taylor wrote: > John Engelhart writes: > >> Objective-C defines 'c_common_get_alias_set' as its language specific >> alias set manager.  c_common_get_alias_set() seems(?) to only >> implement C's strict aliasing rules, with no provisions for >> Objective-

Re: Fwd: Objective-C and C99 strict aliasing

2009-04-08 Thread Ian Lance Taylor
John Engelhart writes: > Objective-C defines 'c_common_get_alias_set' as its language specific > alias set manager.  c_common_get_alias_set() seems(?) to only > implement C's strict aliasing rules, with no provisions for > Objective-C's needs. > Can anyone with a much better understanding of GCC