This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Wrong RTL instruction deleted
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: fw at deneb dot enyo dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 27 Dec 04 10:25:58 EST
- Subject: Re: Wrong RTL instruction deleted
If I compile the following code with "-O2 -fno-strict-aliasing" and
GCC 3.4.3, the array bounds are not reloaded from the stack, i.e. the
case where the array aliases its dope isn't handled correctly (as it
would have to be if this where C in non-strict aliasing mode).
I believe they aren't reloaded because they are marked as readonly.
But note that this handling of readonly has been removed from GCC 4.0.