[Bug c++/61421] Invalid -O2 optimization breaks program
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jun 7 11:28:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61421
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
--- Comment #20 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> One last comment on strict aliasing rules: It is ironic that these rules are
> supposed to make programs faster, but those developers that really care
> about speed are prevented from implementing even moderate optimizations (see
> discussion) because of these rules! Again, the concept of strict aliasing
> rules is broken.
The strict aliasing rules work well for C, but are indeed more problematic for
higher level languages like C++ or Ada.
More information about the Gcc-bugs
mailing list