This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PowerPC/23404] gij trashes args of functions
Alan Modra writes:
> On Mon, Sep 05, 2005 at 02:51:32PM +0100, Andrew Haley wrote:
> > While we're looking at PowerPC libffi, isn't this
> >
> > unsigned *next_arg = stack + 2;
> >
> > ...
> >
> > *(double *)next_arg = double_tmp;
> >
> > an aliasing bug?
>
> I don't think so. The memory pointed to by next_arg is not read or
> written by anything else in the function.
Sure, but there's no need for gcc to generate any code at all for that
assignment, is there?
Andrew.