This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32757] Optimizer too aggressive
- From: "frederic dot merizen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2007 21:44:34 -0000
- Subject: [Bug c/32757] Optimizer too aggressive
- References: <bug-32757-14849@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from frederic dot merizen at gmail dot com 2007-07-13 21:44 -------
OK. I assumed signed overflow was at least defined to yield an integer (i.e. a
quantity that is consistently negative or non-negative) but that is actually
not specified. I don't quite know what I'll do with our library yet. Adding
lots of unsigned/signed casts is an option, but it's likely to break a lot of
valid optimizations so I'll try to avoid that. Would the -fno-strict-overflow
option be a valid workaround in the meantime?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32757