From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27523 invoked by alias); 10 Dec 2012 17:24:37 -0000 Received: (qmail 27438 invoked by uid 48); 10 Dec 2012 17:24:15 -0000 From: "Bernhard.Rosenkranzer at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/55642] New: [4.8 Regression] Invalid thumb code generated ("thumb conditional instruction should be in IT block") Date: Mon, 10 Dec 2012 17:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Bernhard.Rosenkranzer at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg01013.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: Bernhard.Rosenkranzer@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'