public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/47630] New: [4.6 regression] ICE in queue_insn, at haifa-sched.c:1322 compiling 64-bit libjava/java/lang/natString.cc
Date: Mon, 07 Feb 2011 12:25:00 -0000	[thread overview]
Message-ID: <bug-47630-4@http.gcc.gnu.org/bugzilla/> (raw)

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

           Summary: [4.6 regression] ICE in queue_insn, at
                    haifa-sched.c:1322 compiling 64-bit
                    libjava/java/lang/natString.cc
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ro@gcc.gnu.org
                CC: aoliva@gcc.gnu.org
              Host: mips-sgi-irix6.5
            Target: mips-sgi-irix6.5
             Build: mips-sgi-irix6.5


Created attachment 23263
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23263
preporcessed natString.cc

For more than a week, mainline fails to bootstrap on IRIX 6.5:

/vol/gcc/src/hg/trunk/local/libjava/java/lang/natString.cc: In member function
'jint java::lang::String::indexOf(jstring, jint)':
/vol/gcc/src/hg/trunk/local/libjava/java/lang/natString.cc:832:1: internal
compiler error: in queue_insn, at haifa-sched.c:1322

This happens both with the old and the current version of the Alexandre's patch
to haifa-sched.c.

I find the following cc1plus stacktrace:

#0  fancy_abort (file=0x10bba438 <error reading variable>, line=1322, 
    function=0x10bbadf0 <error reading variable>)
    at /vol/gcc/src/hg/trunk/local/gcc/diagnostic.c:893
#1  0x105bc700 in queue_insn (next=0x4acdf40, delay=1)
    at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:1322
#2  change_queue_index (next=0x4acdf40, delay=1)
    at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:3968
#3  0x105bffb0 in fix_tick_ready (next=0x4acdf40)
    at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:3936
#4  try_ready (next=0x4acdf40)
    at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:3891
#5  0x108c4bd0 in init_ready_list ()
    at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:2119
#6  0x105c37a4 in schedule_block (target_bb=0x7ffb7a64)
    at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:2877
#7  0x108c8f44 in schedule_region ()
    at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3000
#8  schedule_insns () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3321
#9  schedule_insns () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3300
#10 0x108c929c in rest_of_handle_sched ()
    at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3511
#11 0x106bf144 in execute_one_pass (pass=0x10cba0e0)
    at /vol/gcc/src/hg/trunk/local/gcc/passes.c:1561
#12 0x106bf500 in execute_pass_list (pass=0x10cba0e0)
    at /vol/gcc/src/hg/trunk/local/gcc/passes.c:1616
#13 0x106bf51c in execute_pass_list (pass=0x10cb90d8)
    at /vol/gcc/src/hg/trunk/local/gcc/passes.c:1617
#14 0x108e57a8 in tree_rest_of_compilation (fndecl=0x41a6b80)
    at /vol/gcc/src/hg/trunk/local/gcc/tree-optimize.c:422
#15 0x1080fb7c in cgraph_expand_function (node=0x4a30740)
    at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1563
#16 0x10812b60 in cgraph_expand_all_functions ()
    at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1622
#17 cgraph_optimize () at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1882
#18 0x10813250 in cgraph_finalize_compilation_unit ()
    at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1083
#19 0x1015ad50 in cp_write_global_declarations ()
    at /vol/gcc/src/hg/trunk/local/gcc/cp/decl2.c:3977
#20 0x105acd34 in compile_file (argc=10, argv=0x7ffb7f04)
    at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:591
#21 do_compile (argc=10, argv=0x7ffb7f04)
    at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1874
#22 toplev_main (argc=10, argv=0x7ffb7f04)
    at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1937
#23 0x10082620 in __start ()

(gdb) up
#1  0x105bc700 in queue_insn (next=0x4acdf40, delay=1) at
/vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:1322
(gdb) p insn
$1 = (rtx) 0x4acdf40
(gdb) pr
(debug_insn 72 71 73 7 (var_location:SI j (subreg:SI (reg/v:DI 213 [ j+-4 ])
4)) -1
     (nil))

The problem can be reproduced with included natString.ii and

$ cc1plus -fpreprocessed natString.ii -mabi=64 -mno-synci -g -O2 -fno-rtti
-fnon-call-exceptions -fdollars-in-identifiers


             reply	other threads:[~2011-02-07 12:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07 12:25 ro at gcc dot gnu.org [this message]
2011-02-07 12:50 ` [Bug bootstrap/47630] " rguenth at gcc dot gnu.org
2011-02-07 13:21 ` jakub at gcc dot gnu.org
2011-02-12 13:54 ` aoliva at gcc dot gnu.org
2011-02-19 21:03 ` aoliva at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-47630-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).