This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39633] [avr] loop bug
- From: "avr at gjlay dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Apr 2011 19:54:59 +0000
- Subject: [Bug target/39633] [avr] loop bug
- Auto-submitted: auto-generated
- References: <bug-39633-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39633
Georg-Johann Lay <avr at gjlay dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |avr at gjlay dot de
--- Comment #5 from Georg-Johann Lay <avr at gjlay dot de> 2011-04-14 19:54:40 UTC ---
Did you try this with -fno-strict-overflow?
Code like
(INT8_MIN)-((int8_t)(si2))
might lead to signed overflow, and if gcc gets knowledge of si2 being strictly
positive, the results is undefined.
http://gcc.gnu.org/onlinedocs/gcc-4.3.5/gcc/Optimize-Options.html#Optimize-Options