This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61421] Invalid -O2 optimization breaks program
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Jun 2014 11:28:31 +0000
- Subject: [Bug c++/61421] Invalid -O2 optimization breaks program
- Auto-submitted: auto-generated
- References: <bug-61421-4 at http dot gcc dot gnu dot org/bugzilla/>
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.