[PATCH] Fix PR38406

Andrew Pinski pinskia@gmail.com
Fri Dec 5 20:44:00 GMT 2008


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.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list