------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-22 19:45 ------- Note signed overflow is undefined unless you use -fwrapv except that does not fix this.
This is a bug in fold, most likely build_range_check. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|rtl-optimization |middle-end Ever Confirmed| |1 Keywords| |wrong-code Known to fail| |3.4.0 4.0.0 4.1.0 Last reconfirmed|0000-00-00 00:00:00 |2005-08-22 19:45:50 date| | Summary|some gcc optimizations do |some gcc optimizations do |not take overflow into |not take overflow into |account |account with -fwrapv http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23518