This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/66265] strict aliasing with O2 fails to generate correct code and gives no warnings
- From: "gougolith at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 May 2015 15:10:26 +0000
- Subject: [Bug c/66265] strict aliasing with O2 fails to generate correct code and gives no warnings
- Auto-submitted: auto-generated
- References: <bug-66265-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66265
--- Comment #2 from Mark <gougolith at gmail dot com> ---
Yes thank you, it all makes sense unfortunately...it is all buried in -O2...
On Mon, May 25, 2015 at 12:50 AM, jakub at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66265
>
> Jakub Jelinek <jakub at gcc dot gnu.org> changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> CC| |jakub at gcc dot gnu.org
> Resolution|--- |INVALID
>
> --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> There is a warning with -Wstrict-aliasing=1 , if you read the
> documentation,
> you'd find there are various levels that differ in the amount of false
> positives. The code is obviously invalid.
>
> --
> You are receiving this mail because:
> You reported the bug.
>