http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55481
Bug #: 55481 Summary: [4.8 regression] -O2 generates a wrong-code infinite loop in C++Benchmark's simple_types_constant_folding int8 xor test Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: m...@use.net With current trunk at -O2, the attached preprocessed code emits what appears to be an infinite loop (linux/x64 binaries also attached). GCC 4.7 at -O2 and GCC 4.8 ant -O[13] do not exhibit the problem. I tried adding individual flags to -O1 to narrow the problem but wasn't able to reproduce.