http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55642
Bug #: 55642 Summary: [4.8 Regression] Invalid thumb code generated ("thumb conditional instruction should be in IT block") Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: bernhard.rosenkran...@linaro.org Created attachment 28914 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28914 Test case (not yet reduced) Building the attached preprocessed code with -std=gnu++11 -O2 -mthumb -mcpu=cortex-a9 results in errors from the assembler: [bero@localhost grouper-4.2.1-gcc-4.8 (master)]$ /opt/android-toolchain-trunk/bin/arm-linux-androideabi-g++ -std=gnu++11 -o ARMAsmParser.o -O2 -mthumb -mcpu=cortex-a9 -c ARMAsmParser.i /tmp/ccKYPdeC.s: Assembler messages: /tmp/ccKYPdeC.s:7949: Error: thumb conditional instruction should be in IT block -- `subne r2,r2,r3,asr#31' /tmp/ccKYPdeC.s:21058: Error: thumb conditional instruction should be in IT block -- `subne r2,r2,r3,asr#31'