From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17343 invoked by alias); 18 Oct 2013 12:02:08 -0000 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 Received: (qmail 17309 invoked by uid 48); 18 Oct 2013 12:02:05 -0000 From: "sthalik at misaki dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc++/58783] fails to cross-compile Qt 5:dev in obj-c++ Date: Fri, 18 Oct 2013 12:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc++ X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sthalik at misaki dot pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01271.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58783 --- Comment #5 from Stanis=C5=82aw Halik --- Created attachment 31038 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D31038&action=3Dedit platform info in .s >>From gcc-bugs-return-432128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 18 12:03:58 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19895 invoked by alias); 18 Oct 2013 12:03:58 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19873 invoked by uid 48); 18 Oct 2013 12:03:55 -0000 From: "yvan.roux at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58785] New: [ARM] LRA issue in Thumb mode with movhi Date: Fri, 18 Oct 2013 12:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yvan.roux 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01272.txt.bz2 Content-length: 1549 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58785 Bug ID: 58785 Summary: [ARM] LRA issue in Thumb mode with movhi Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: yvan.roux at linaro dot org Created attachment 31039 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31039&action=edit testcase The attached testcase failed on ARM with LRA enabled in Thumb mode (it is a reduce testcase from the ICE which brakes bootstrap with Thumb). Here LRA has to deal with thumb1_movhi_insn : (insn 11 5 14 2 (set (reg:HI 0 r0) (const_int -1318 [0xfffffffffffffada])) ... {*thumb1_movhi_insn} (nil)) and creates new regs to do it : 11: r0:HI=r114:HI Inserting insn reload before: 18: r115:SI=0xfffffffffffffada 19: r114:HI=r115:SI#0 REG_EQUAL 0xfffffffffffffada Choosing alt 6 in insn 18: (0) l (1) mi {*thumb1_movsi_insn} Creating newreg=116 from oldreg=115, assigning class LO_REGS to r116 18: r116:SI=0xfffffffffffffada Inserting insn reload after: 20: r115:SI=r116:SI Creating newreg=117, assigning class LO_REGS to scratch r117 and during this move processing, gen_thumb_movhi_clobber(rtx_def*,rtx_def*,rtx_def*) is called with a first rtx parameter that doesn't satisfy the constraint of being a strict memory address (it is a register). command line to reproduce: cc1 -quiet thumb2-lra.i -O2 -mthumb -mlra