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] Fix another bad alias warning for ref-all pointers


"Andrew Pinski" writes:
> On Thu, Aug 7, 2008 at 2:57 AM, Richard Guenther <rguenther@suse.de> wrote:
> > 2008-08-07  Richard Guenther  <rguenther@suse.de>
> >
> >        PR middle-end/37042
> >        * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
> >        pointers can access anything.
> >
> >        * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: New testcase.

> This testcase fails on PPC64 Linux:
> /home/apinski/src/local/gcc/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c:8:
> warning: GCC vector returned by reference: non-standard ABI extension
> with no compatibility guarantee

I'm the original submitter of the PR.  The fact that the original function
returned the vector that was loaded was entirely incidental to the test; the
value just needs not to be optimized out as unused.  So as far as I'm
concerned, feel free to change it as needed.

-- 
Jonathan Lennox
lennox at cs dot columbia dot edu


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