This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fwd: Objective-C and C99 strict aliasing
- From: Ian Lance Taylor <iant at google dot com>
- To: John Engelhart <john dot engelhart at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 08 Apr 2009 14:42:41 -0700
- Subject: Re: Fwd: Objective-C and C99 strict aliasing
- References: <e958890e0904081354v2b189cf4u2ea57bdfbfe94946@mail.gmail.com> <e958890e0904081358u57b1960fh432f0f57f99709b9@mail.gmail.com>
John Engelhart <john.engelhart@gmail.com> 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's internals comment on this?
I think you are correct about what is happening today.
Since I don't know anything about Objective C, I don't know what should
happen instead. I would guess that you would want to set up a tree of
alias sets, using record_alias_subset.
Ian