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++/61421] Invalid -O2 optimization breaks program


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.


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