This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/58454] Potentially wrong(or at least weird/inconsistent) code generation with -O2 -fno-strict-overflow
- From: "mednafen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Sep 2013 05:56:50 +0000
- Subject: [Bug c/58454] Potentially wrong(or at least weird/inconsistent) code generation with -O2 -fno-strict-overflow
- Auto-submitted: auto-generated
- References: <bug-58454-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58454
--- Comment #2 from mednafen at gmail dot com ---
Your assertion conflicts with the gcc 4.2 release change-list at
http://gcc.gnu.org/gcc-4.2/changes.html when the strict-overflow options were
added.
Additionally, -fwrapv produces unnecessarily bloated code compared to
-fno-strict-overflow, in my experience.