This is the mail archive of the gcc-bugs@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]

[Bug c/66265] strict aliasing with O2 fails to generate correct code and gives no warnings


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.
>


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