public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56732] New: ICE
@ 2013-03-25 22:48 diffgeom at gmail dot com
  2013-03-26  9:40 ` [Bug rtl-optimization/56732] ICE in advance_target_bb mikpe at it dot uu.se
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: diffgeom at gmail dot com @ 2013-03-25 22:48 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 8400 bytes --]


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56732

             Bug #: 56732
           Summary: ICE
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: diffgeom@gmail.com


Created attachment 29723
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29723
Preprocessed source code

I was trying to compile Ndless with GCC 4.8.0 (configured to cross-compile to
arm-none-eabi), and it fails on this file. This compiled in GCC 4.7.2. It seems
that it compiles only if I remove the optimization flag or change it to -O1,
but not with -O2, -O3, or -Os.

The command line used to compile it is:
"/usr/local/bin/arm-none-eabi-gcc" -mcpu=arm7tdmi -I
"/home/rajiv/.ndless/include" -I
"/home/rajiv/ndless/ndless/Ndless-SDK/ndless/bin/../include" -I
"/home/rajiv/ndless/ndless/Ndless-SDK/ndless/bin/../3rd/nSDL/include" -I
"/home/rajiv/ndless/ndless/Ndless-SDK/ndless/bin/../3rd/nspireio/include" -fpic
-fno-builtin -D _TINSPIRE -Os -nostdlib -Wall -W -Wno-strict-aliasing -c
ploaderhook.c

The error occurs at function plh_hook:

ploaderhook.c: In function ‘plh_hook’:
ploaderhook.c:156:1: internal compiler error: in advance_target_bb, at
sched-rgn.c:3552
 HOOK_DEFINE(plh_hook) {
 ^
0x78f082 advance_target_bb
        ../../gcc-4.8.0/gcc/sched-rgn.c:3551
0x78f082 advance_target_bb
        ../../gcc-4.8.0/gcc/sched-rgn.c:3546
0xb35ec2 commit_schedule
        ../../gcc-4.8.0/gcc/haifa-sched.c:5619
0xb40292 schedule_block(basic_block_def**, void*)
        ../../gcc-4.8.0/gcc/haifa-sched.c:6416
0x7946aa schedule_region
        ../../gcc-4.8.0/gcc/sched-rgn.c:3048
0x7946aa schedule_insns
        ../../gcc-4.8.0/gcc/sched-rgn.c:3384
0x7946aa schedule_insns()
        ../../gcc-4.8.0/gcc/sched-rgn.c:3363
0x794a1c rest_of_handle_sched2
        ../../gcc-4.8.0/gcc/sched-rgn.c:3608
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.




Operating System: Ubuntu 12.10 x86_64

Output of arm-none-eabi-gcc -v:

Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/arm-none-eabi/4.8.0/lto-wrapper
Target: arm-none-eabi
Configured with: ../gcc-4.8.0/configure --target=arm-none-eabi
--prefix=/usr/local --enable-interwork --enable-multilib
--enable-languages=c,c++ --with-system-zlib --with-newlib --disable-shared
--with-gnu-as --with-gnu-ld --with-float=soft --disable-werror
Thread model: single
gcc version 4.8.0 (GCC)

I have attached the preprocessed source code.

-Rajiv
>From gcc-bugs-return-418405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 22:55:55 2013
Return-Path: <gcc-bugs-return-418405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14891 invoked by alias); 25 Mar 2013 22:55:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14821 invoked by uid 48); 25 Mar 2013 22:55:48 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56725] extra spaces in error message
Date: Mon, 25 Mar 2013 22:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Ever Confirmed
Message-ID: <bug-56725-4-8kWElcLcc8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56725-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56725-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01846.txt.bz2
Content-length: 1973


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56725

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-03-25
                 CC|                            |manu at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-03-25 22:55:48 UTC ---
This is because the second error is not an error but a note clarifying with
first error. In g++, some notes are "indented" because the output is such a
mess it is hard to find out stuff. The fix is to replace the second permerror
by inform like: (totally untested)

Index: gcc/cp/call.c
===================================================================
--- gcc/cp/call.c       (revision 197018)
+++ gcc/cp/call.c       (working copy)
@@ -5834,15 +5834,15 @@ convert_like_real (conversion *convs, tr
                                      complain);
          else if (t->kind == ck_identity)
            break;
        }

-      permerror (loc, "invalid conversion from %qT to %qT",
-                TREE_TYPE (expr), totype);
-      if (fn)
-       permerror (DECL_SOURCE_LOCATION (fn),
-                  "  initializing argument %P of %qD", argnum, fn);
+      if (permerror (loc, "invalid conversion from %qT to %qT",
+                     TREE_TYPE (expr), totype)
+          && fn)
+       inform (DECL_SOURCE_LOCATION (fn),
+                "when initializing argument %P of %qD", argnum, fn);

       return cp_convert (totype, expr, complain);
     }

   if (issue_conversion_warnings && (complain & tf_warning))
>From gcc-bugs-return-418406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 23:02:11 2013
Return-Path: <gcc-bugs-return-418406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20327 invoked by alias); 25 Mar 2013 23:02:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20270 invoked by uid 48); 25 Mar 2013 23:02:04 -0000
From: "olegendo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/49880] SuperH: ICE when -m4 is used with -mdivÊll-div1
Date: Mon, 25 Mar 2013 23:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: olegendo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-49880-4-7gxleVohW3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49880-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49880-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01847.txt.bz2
Content-length: 284


http://gcc.gnu.org/bugzilla/show_bug.cgi?idI880

--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> 2013-03-25 23:02:04 UTC ---
Although it doesn't show up here, I've also backported the fix to the 4.7
branch and committed it as rev. 197071.

OK to close this PR?


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-31 15:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-25 22:48 [Bug c/56732] New: ICE diffgeom at gmail dot com
2013-03-26  9:40 ` [Bug rtl-optimization/56732] ICE in advance_target_bb mikpe at it dot uu.se
2013-03-26 13:35 ` mikpe at it dot uu.se
2013-03-26 14:24 ` rguenth at gcc dot gnu.org
2013-04-26 12:25 ` gretay at gcc dot gnu.org
2013-04-30 12:07 ` enrico.scholz at informatik dot tu-chemnitz.de
2013-05-01 17:32 ` gretay at gcc dot gnu.org
2013-05-24 15:18 ` gretay at gcc dot gnu.org
2013-05-24 15:19 ` gretay at gcc dot gnu.org
2013-05-31 15:31 ` diffgeom at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).