From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6239 invoked by alias); 16 Dec 2014 02:12:06 -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 6220 invoked by uid 48); 16 Dec 2014 02:11:59 -0000 From: "Hale.Wang at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/64323] New: LRA: ICE when compiling newlib for ARM. Date: Tue, 16 Dec 2014 02:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Hale.Wang at arm dot com 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: 2014-12/txt/msg01834.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64323 Bug ID: 64323 Summary: LRA: ICE when compiling newlib for ARM. Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Hale.Wang at arm dot com Created attachment 34287 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34287&action=edit This temp file is generated from newlib/newlib/libc/stdlib/dtoa.c. When compiling the newlib stdlib for ARM, GCC 5.0 reported: newlib/newlib/libc/stdlib/dtoa.c:862:1: error: unable to generate reloads for: (insn 2301 287 2302 16 (set (reg:CCFP 101 vfpcc) (compare:CCFP (reg:DF 217 [ D.6454 ]) (const_double:DF 0.0 [0x0.0p+0]))) .../newlib/newlib/libc/stdlib/dtoa.c:282 679 {*cmpdf_vfp} (nil)) /work/tools/gcc-arm-none-eabi-5_0-2014q4-20141211/src/newlib/newlib/libc/stdlib/dtoa.c:862:1: internal compiler error: in curr_insn_transform, at lra-constraints.c:3383 The command line is: arm-none-eabi-gcc -marm -O2 -mfloat-abi=hard dtoa.i I have attached the temp file 'dtoa.i'. If I added the -mno-lra option, there was no error.