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 PR38406


On Fri, 5 Dec 2008, Andrew Pinski wrote:

> On Fri, Dec 5, 2008 at 3:58 AM, Richard Guenther <rguenther@suse.de> wrote:
> >
> > The testcase Wstrict-aliasing-converted-assigned.c is optimized on ilp32
> > targets before the alias warning machinery comes along.  Thus the
> > following restricts the test to lp64 ones.
> 
> Wait this should not be restricted to lp64.  We really should be
> warning here even if we are able to produce "correct" code.  In fact I
> requested this testcase when the original newer -Wstrict-aliasing
> fixes was being worked on.  The warning for this case was added to the
> front-end so it could be optimized and still be warned about.

It is still warned by the frontend code, just the PTA based code
doesn't see this anymore.

Richard.


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