public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
@ 2011-10-10 15:05 ro at gcc dot gnu.org
  2011-10-10 15:15 ` [Bug bootstrap/50686] " rguenth at gcc dot gnu.org
                   ` (42 more replies)
  0 siblings, 43 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-10-10 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50686
           Summary: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in
                    lookup_cfa_1, at dwarf2cfi.c:595
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ro@gcc.gnu.org
              Host: mips-sgi-irix6.5
            Target: mips-sgi-irix6.5
             Build: mips-sgi-irix6.5


Between 20110930 and 20111007, mips-sgi-irix6.5 bootstrap started to fail in
stage2:

$ /var/gcc/regression/trunk/6.5-gcc/build/./prev-gcc/g++
-B/var/gcc/regression/trunk/6.5-gcc/build/./prev-gcc/
-B/vol/gcc/mips-sgi-irix6.5/bin/ -nostdinc++
-B/var/gcc/regression/trunk/6.5-gcc/build/prev-mips-sgi-irix6.5/libstdc++-v3/src/.libs
-B/var/gcc/regression/trunk/6.5-gcc/build/prev-mips-sgi-irix6.5/libstdc++-v3/libsupc++/.libs
-I/var/gcc/regression/trunk/6.5-gcc/build/prev-mips-sgi-irix6.5/libstdc++-v3/include/mips-sgi-irix6.5
-I/var/gcc/regression/trunk/6.5-gcc/build/prev-mips-sgi-irix6.5/libstdc++-v3/include
-I/vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++
-L/var/gcc/regression/trunk/6.5-gcc/build/prev-mips-sgi-irix6.5/libstdc++-v3/src/.libs
-L/var/gcc/regression/trunk/6.5-gcc/build/prev-mips-sgi-irix6.5/libstdc++-v3/libsupc++/.libs
-c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror   -DHAVE_CONFIG_H -I. -Ijava
-I/vol/gcc/src/hg/trunk/local/gcc -I/vol/gcc/src/hg/trunk/local/gcc/java
-I/vol/gcc/src/hg/trunk/local/gcc/../include -I./../intl
-I/vol/gcc/src/hg/trunk/local/gcc/../libcpp/include -I/vol/gcc/include
-I/vol/gcc/include -I/vol/gcc/include 
-I/vol/gcc/src/hg/trunk/local/gcc/../libdecnumber
-I/vol/gcc/src/hg/trunk/local/gcc/../libdecnumber/dpd -I../libdecnumber
-I/vol/gcc/include  -I/vol/gcc/include -DCLOOG_INT_GMP -DCLOOG_ORG 
/vol/gcc/src/hg/trunk/local/gcc/java/expr.c -o java/expr.o
/vol/gcc/src/hg/trunk/local/gcc/java/expr.c: In function 'int
maybe_adjust_start_pc(JCF*, int, int, int)':
/vol/gcc/src/hg/trunk/local/gcc/java/expr.c:3686:1: internal compiler error: in
lookup_cfa_1, at dwarf2cfi.c:595

It seems I'll have to start a reghunt for the culprit patch since I haven't
found an obvious cause.

  Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
@ 2011-10-10 15:15 ` rguenth at gcc dot gnu.org
  2011-10-12 13:09 ` ro at gcc dot gnu.org
                   ` (41 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
  2011-10-10 15:15 ` [Bug bootstrap/50686] " rguenth at gcc dot gnu.org
@ 2011-10-12 13:09 ` ro at gcc dot gnu.org
  2011-10-12 13:10 ` ro at gcc dot gnu.org
                   ` (40 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-10-12 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-10-12
                 CC|                            |bernds at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> 2011-10-12 13:08:48 UTC ---
The reghunt is not yet complete, but the bad patch is between r179536 (good)
and r179566 (bad).  In that range, I saw PR bootstrap/50621, and indeed
adding -fno-shrink-wrap removes the ICE, so I'm pretty sure r179553 is the
culprit here as well.

I'm attaching my testcase (preprocessed java/expr.c).  With

$ cc1plus -fpreprocessed expr.ii -quiet -mno-synci -mabi=n32 -g -O2

it ICEs.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
  2011-10-10 15:15 ` [Bug bootstrap/50686] " rguenth at gcc dot gnu.org
  2011-10-12 13:09 ` ro at gcc dot gnu.org
@ 2011-10-12 13:10 ` ro at gcc dot gnu.org
  2011-10-12 15:38 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (39 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-10-12 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> 2011-10-12 13:09:59 UTC ---
Created attachment 25473
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25473
unreduced testcase


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-10-12 13:10 ` ro at gcc dot gnu.org
@ 2011-10-12 15:38 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-12 16:46 ` bernds at gcc dot gnu.org
                   ` (38 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-12 15:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-12 15:37:46 UTC ---
> --- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> 2011-10-12 13:08:48 UTC ---
> The reghunt is not yet complete, but the bad patch is between r179536 (good)
> and r179566 (bad).  In that range, I saw PR bootstrap/50621, and indeed
> adding -fno-shrink-wrap removes the ICE, so I'm pretty sure r179553 is the
> culprit here as well.

The reghunt has completed now and as expected, the shrink-wrap patch is
the culprit.  Bernd, could you please have a look?

Thanks.
        Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-10-12 15:38 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-12 16:46 ` bernds at gcc dot gnu.org
  2011-10-12 16:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (37 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-12 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-12 16:46:23 UTC ---
This doesn't seem to happen with a cross compiler :(

When you say "in stage 2", do you mean the stage 1 compiler is crashing, or the
stage 2 compiler is crashing?


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-10-12 16:46 ` bernds at gcc dot gnu.org
@ 2011-10-12 16:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-17 11:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (36 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-12 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-12 16:53:32 UTC ---
> --- Comment #4 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-12 16:46:23 UTC ---
> This doesn't seem to happen with a cross compiler :(

Drats.  I've run the reghunt natively.

> When you say "in stage 2", do you mean the stage 1 compiler is crashing, or the
> stage 2 compiler is crashing?

The stage 1 compiler is crashing.  I've run the reghunt with
--disable-bootstrap and used the cc1plus built.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-10-12 16:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-17 11:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-17 11:40 ` bernds at gcc dot gnu.org
                   ` (35 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-17 11:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-17 11:30:24 UTC ---
Bernd,

IRIX 6.5 bootstrap is now broken for more than a week.  How should we
proceed with this?

Thanks.
        Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2011-10-17 11:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-17 11:40 ` bernds at gcc dot gnu.org
  2011-10-17 14:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (34 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-17 11:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 11:40:25 UTC ---
AFAIK there's no IRIX6.5 machine in the compile farm. Can you debug a bit at
the point of the crash to see what's going on?

Configure won't let me build the target without "--neable-obsolete" anyway, so
is it a serious issue?


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2011-10-17 11:40 ` bernds at gcc dot gnu.org
@ 2011-10-17 14:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-17 15:05 ` bernds at gcc dot gnu.org
                   ` (33 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-17 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-17 14:52:49 UTC ---
> --- Comment #7 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 11:40:25 UTC ---
> AFAIK there's no IRIX6.5 machine in the compile farm. Can you debug a bit at

I think they've got an SGI machine, but were having trouble aquiring the
OS or setting it up.

> the point of the crash to see what's going on?

You'll probably need to tell me in some detail what to look for.  At the
point of the assertion failure, I find

(gdb) p *remember
$1 = {offset = 0, base_offset = 0, reg = 4294967295, indirect = 0, in_use = 0}
(gdb) p/x remember->reg

and the following stacktrace:

#0  fancy_abort (file=0x1451a068 "/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c",
line=595, function=0x1451b100 "lookup_cfa_1") at
/vol/gcc/src/hg/trunk/local/gcc/diagnostic.c:893
#1  0x10e1ae04 in lookup_cfa_1 (cfi=0x5f19338, loc=0x7ffb79b8,
remember=0x7ffb79d0) at /vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:595
#2  0x117a61f8 in convert_cfa_to_fb_loc_list (offset=0) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:15296
#3  0x117ac410 in gen_subprogram_die (decl=0x4f89600, context_die=0x4048030) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:17413
#4  0x117b3d2c in gen_decl_die (decl=0x4f89600, origin=0x0,
context_die=0x4048030) at /vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:19474
#5  0x117b4d6c in dwarf2out_decl (decl=0x4f89600) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:19848
#6  0x117b4e38 in dwarf2out_function_decl (decl=0x4f89600) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:19856
#7  0x11180394 in rest_of_handle_final () at
/vol/gcc/src/hg/trunk/local/gcc/final.c:4252
#8  0x120fe46c in execute_one_pass (pass=0x14701e70) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2064
#9  0x120fe7c4 in execute_pass_list (pass=0x14701e70) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2119
#10 0x120fe7f8 in execute_pass_list (pass=0x14702b90) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2120
#11 0x120fe7f8 in execute_pass_list (pass=0x14702b58) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2120
#12 0x12f8ac80 in tree_rest_of_compilation (fndecl=0x4f89600) at
/vol/gcc/src/hg/trunk/local/gcc/tree-optimize.c:420
#13 0x11f1c8a4 in cgraph_expand_function (node=0x511adf0) at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1805
#14 0x11f1cba0 in cgraph_expand_all_functions () at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1864
#15 0x11f1d86c in cgraph_optimize () at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2141
#16 0x11f1af10 in cgraph_finalize_compilation_unit () at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1312
#17 0x10320e48 in cp_write_global_declarations () at
/vol/gcc/src/hg/trunk/local/gcc/cp/decl2.c:4008
#18 0x12ba7bac in compile_file () at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:581
#19 0x12bab3b8 in do_compile () at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:1925
#20 0x12bab66c in toplev_main (argc=6, argv=0x7ffb7f04) at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:2001
#21 0x1089e3ac in main (argc=6, argv=0x7ffb7f04) at
/vol/gcc/src/hg/trunk/local/gcc/main.c:36

> Configure won't let me build the target without "--neable-obsolete" anyway, so
> is it a serious issue?

It is: this is just meant as an advance warning to users that the port
*might* be removed in 4.8, depending on demand/user feedback, with the
intention of making 4.7 the best gcc release ever on the platform :-)

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2011-10-17 14:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-17 15:05 ` bernds at gcc dot gnu.org
  2011-10-17 15:50 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (32 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-17 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 15:04:17 UTC ---
Well, shooting in the dark, let's get a few preliminaries out of the way - what
are the return values of dwarf2out_do_cfi_asm() and targetm.debug_unwind_info
()?

Also, a few of the last RTL dumps (there ought to be a "dwarf2" one) would be
helpful.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2011-10-17 15:05 ` bernds at gcc dot gnu.org
@ 2011-10-17 15:50 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-17 15:53 ` ro at gcc dot gnu.org
                   ` (31 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-17 15:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-17 15:50:06 UTC ---
> --- Comment #9 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 15:04:17 UTC ---
> Well, shooting in the dark, let's get a few preliminaries out of the way - what
> are the return values of dwarf2out_do_cfi_asm() and targetm.debug_unwind_info
> ()?

The first returns false since MIPS_DEBUGGING_INFO is defined, the second
UI_DWARF2.

> Also, a few of the last RTL dumps (there ought to be a "dwarf2" one) would be
> helpful.

I'm including the last 3 ones since they are huge even compressed:
nothrow, dwarf2, final.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2011-10-17 15:50 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-17 15:53 ` ro at gcc dot gnu.org
  2011-10-17 15:54 ` ro at gcc dot gnu.org
                   ` (30 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-10-17 15:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Rainer Orth <ro at gcc dot gnu.org> 2011-10-17 15:52:15 UTC ---
Created attachment 25521
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25521
nothrow dump


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2011-10-17 15:53 ` ro at gcc dot gnu.org
@ 2011-10-17 15:54 ` ro at gcc dot gnu.org
  2011-10-17 15:55 ` ro at gcc dot gnu.org
                   ` (29 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-10-17 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Rainer Orth <ro at gcc dot gnu.org> 2011-10-17 15:53:11 UTC ---
Created attachment 25522
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25522
dwarf2 dump


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2011-10-17 15:54 ` ro at gcc dot gnu.org
@ 2011-10-17 15:55 ` ro at gcc dot gnu.org
  2011-10-17 16:35 ` bernds at gcc dot gnu.org
                   ` (28 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-10-17 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Rainer Orth <ro at gcc dot gnu.org> 2011-10-17 15:54:02 UTC ---
Created attachment 25523
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25523
final dump


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2011-10-17 15:55 ` ro at gcc dot gnu.org
@ 2011-10-17 16:35 ` bernds at gcc dot gnu.org
  2011-10-17 17:13 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (27 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-17 16:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 16:34:42 UTC ---
Ok, so there are two restore_state notes following each other; note 374 and
note 375. We'll want a breakpoint in add_cfi to catch the two calls where these
notes are added. I'd expect it's from connect_traces, and at

          cfi->dw_cfi_opc = DW_CFA_restore_state;
          add_cfi (cfi);

in that function I'd like to see some state:
p debug_rtx (prev_ti->head)
p debug_rtx (ti->head)
p debug_cfi_row (ti->beg_row)

for each time we reach this code.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2011-10-17 16:35 ` bernds at gcc dot gnu.org
@ 2011-10-17 17:13 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-17 17:38 ` bernds at gcc dot gnu.org
                   ` (26 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-17 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-17 17:13:10 UTC ---
> --- Comment #14 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 16:34:42 UTC ---
> Ok, so there are two restore_state notes following each other; note 374 and
> note 375. We'll want a breakpoint in add_cfi to catch the two calls where these
> notes are added. I'd expect it's from connect_traces, and at
>
>           cfi->dw_cfi_opc = DW_CFA_restore_state;
>           add_cfi (cfi);
>
> in that function I'd like to see some state:
> p debug_rtx (prev_ti->head)
> p debug_rtx (ti->head)
> p debug_cfi_row (ti->beg_row)
>
> for each time we reach this code.

Here's the complete (slightly sanitized) output:

(note 229 161 230 NOTE_INSN_EPILOGUE_BEG)
(code_label 243 324 162 31 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 397 258 259 51 "" [1 uses])
(code_label 283 348 61 48 "" [1 uses])
    .cfi_def_cfa 29, 112
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 115 88 105 NOTE_INSN_EPILOGUE_BEG)
(code_label 110 139 49 62 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 114 122 97 NOTE_INSN_EPILOGUE_BEG)
(code_label 23 127 24 59 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 139 64 106 NOTE_INSN_EPILOGUE_BEG)
(code_label 199 46 48 73 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 120 50 87 NOTE_INSN_EPILOGUE_BEG)
(code_label 31 151 32 76 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 391 327 297 113 "" [1 uses])
(code_label 311 370 118 109 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 393 326 281 114 "" [1 uses])
(code_label 45 367 46 90 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 389 325 156 112 "" [1 uses])
(code_label 312 358 173 110 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 324 223 253 NOTE_INSN_EPILOGUE_BEG)
(code_label 310 341 172 108 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 323 226 262 NOTE_INSN_EPILOGUE_BEG)
(code_label 31 340 171 95 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 160 96 141 NOTE_INSN_EPILOGUE_BEG)
(code_label 152 174 44 122 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 41 26 43 NOTE_INSN_EPILOGUE_BEG)
(code_label 48 62 13 125 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 182 92 129 NOTE_INSN_EPILOGUE_BEG)
(code_label 177 228 22 135 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -40
    .cfi_offset 17, -32
    .cfi_offset 18, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 143 124 128 NOTE_INSN_EPILOGUE_BEG)
(code_label 136 174 13 144 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 142 107 117 NOTE_INSN_EPILOGUE_BEG)
(code_label 62 159 63 142 "" [2 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 179 207 159 NOTE_INSN_EPILOGUE_BEG)
(code_label 170 213 53 155 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 178 193 144 NOTE_INSN_EPILOGUE_BEG)
(code_label 169 199 10 154 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 105 81 93 NOTE_INSN_EPILOGUE_BEG)
(code_label 37 132 38 160 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -40
    .cfi_offset 17, -32
    .cfi_offset 18, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 115 55 97 NOTE_INSN_EPILOGUE_BEG)
(code_label 108 148 13 166 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -40
    .cfi_offset 17, -32
    .cfi_offset 18, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 85 63 87 NOTE_INSN_EPILOGUE_BEG)
(code_label 109 139 48 167 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -40
    .cfi_offset 17, -32
    .cfi_offset 18, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 772 497 498 217 "" [1 uses])
(code_label 528 647 59 209 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -80
    .cfi_offset 17, -72
    .cfi_offset 18, -64
    .cfi_offset 19, -56
    .cfi_offset 20, -48
    .cfi_offset 21, -40
    .cfi_offset 22, -32
    .cfi_offset 23, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 580 638 542 NOTE_INSN_EPILOGUE_BEG)
(code_label 365 646 364 232 "" [1 uses])
    .cfi_def_cfa 29, 96
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 579 609 521 NOTE_INSN_EPILOGUE_BEG)
(code_label 561 615 157 247 "" [1 uses])
    .cfi_def_cfa 29, 96
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(code_label 708 493 357 250 "" [2 uses])
(code_label 560 608 108 246 "" [1 uses])
    .cfi_def_cfa 29, 96
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 103 110 87 NOTE_INSN_EPILOGUE_BEG)
(code_label 131 38 75 269 "" [2 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 239 156 157 284 "" [1 uses])
(code_label 60 214 61 276 "" [2 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 123 77 88 NOTE_INSN_EPILOGUE_BEG)
(code_label 119 139 9 290 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 593 350 239 331 "" [2 uses])
(code_label 603 71 72 332 "" [1 uses])
    .cfi_def_cfa 29, 96
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 200 104 174 NOTE_INSN_EPILOGUE_BEG)
(code_label 50 227 51 344 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 199 105 164 NOTE_INSN_EPILOGUE_BEG)
(code_label 44 224 45 343 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 198 106 154 NOTE_INSN_EPILOGUE_BEG)
(code_label 38 221 39 342 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 197 107 144 NOTE_INSN_EPILOGUE_BEG)
(code_label 32 218 33 341 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 196 108 134 NOTE_INSN_EPILOGUE_BEG)
(code_label 26 215 27 340 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 195 102 124 NOTE_INSN_EPILOGUE_BEG)
(code_label 20 212 21 339 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 194 67 116 NOTE_INSN_EPILOGUE_BEG)
(code_label 56 209 57 345 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(note 161 66 136 NOTE_INSN_EPILOGUE_BEG)
(code_label 144 86 45 359 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 160 56 127 NOTE_INSN_EPILOGUE_BEG)
(code_label 67 90 66 351 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 87 65 75 NOTE_INSN_EPILOGUE_BEG)
(code_label 17 95 18 370 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 436 323 264 399 "" [3 uses])
(code_label 25 385 26 376 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 322 183 253 NOTE_INSN_EPILOGUE_BEG)
(code_label 303 361 119 395 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 124 128 101 NOTE_INSN_EPILOGUE_BEG)
(code_label 120 129 12 408 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 89 64 77 NOTE_INSN_EPILOGUE_BEG)
(code_label 83 105 13 420 "" [1 uses])
    .cfi_def_cfa 29, 32
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 172 138 153 NOTE_INSN_EPILOGUE_BEG)
(code_label 162 217 53 431 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 600 570 573 NOTE_INSN_EPILOGUE_BEG)
(code_label 588 751 203 458 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 599 465 540 NOTE_INSN_EPILOGUE_BEG)
(code_label 128 715 129 438 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 598 463 550 NOTE_INSN_EPILOGUE_BEG)
(code_label 586 690 412 456 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 597 471 530 NOTE_INSN_EPILOGUE_BEG)
(code_label 585 673 407 455 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 882 500 499 460 "" [2 uses])
(code_label 19 635 410 440 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 416 377 365 NOTE_INSN_EPILOGUE_BEG)
(code_label 183 489 184 482 "" [1 uses])
    .cfi_def_cfa 29, 96
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 415 179 336 NOTE_INSN_EPILOGUE_BEG)
(code_label 83 442 84 473 "" [1 uses])
    .cfi_def_cfa 29, 96
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 611 476 439 571 "" [1 uses])
(code_label 464 550 90 567 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -80
    .cfi_offset 17, -72
    .cfi_offset 18, -64
    .cfi_offset 19, -56
    .cfi_offset 20, -48
    .cfi_offset 21, -40
    .cfi_offset 22, -32
    .cfi_offset 23, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 475 235 408 NOTE_INSN_EPILOGUE_BEG)
(code_label 461 512 257 566 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -80
    .cfi_offset 17, -72
    .cfi_offset 18, -64
    .cfi_offset 19, -56
    .cfi_offset 20, -48
    .cfi_offset 21, -40
    .cfi_offset 22, -32
    .cfi_offset 23, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 162 94 145 NOTE_INSN_EPILOGUE_BEG)
(code_label 155 192 16 579 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 161 175 134 NOTE_INSN_EPILOGUE_BEG)
(code_label 51 181 52 577 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -32
    .cfi_offset 17, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 410 457 381 NOTE_INSN_EPILOGUE_BEG)
(code_label 402 470 34 589 "" [1 uses])
    .cfi_def_cfa 29, 128
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 194 170 174 NOTE_INSN_EPILOGUE_BEG)
(code_label 186 255 18 597 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 289 193 158 599 "" [1 uses])
(code_label 187 240 103 598 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 283 236 259 NOTE_INSN_EPILOGUE_BEG)
(code_label 204 355 203 605 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -64
    .cfi_offset 17, -56
    .cfi_offset 18, -48
    .cfi_offset 19, -40
    .cfi_offset 20, -32
    .cfi_offset 21, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 97 47 77 NOTE_INSN_EPILOGUE_BEG)
(code_label 93 120 34 616 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 132 77 104 NOTE_INSN_EPILOGUE_BEG)
(code_label 128 151 17 625 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -40
    .cfi_offset 17, -32
    .cfi_offset 18, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 403 265 377 NOTE_INSN_EPILOGUE_BEG)
(code_label 392 473 85 641 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 402 371 359 NOTE_INSN_EPILOGUE_BEG)
(code_label 19 463 20 627 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 401 245 343 NOTE_INSN_EPILOGUE_BEG)
(code_label 256 447 34 635 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 388 278 279 670 "" [2 uses])
(code_label 296 352 130 668 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -80
    .cfi_offset 17, -72
    .cfi_offset 18, -64
    .cfi_offset 19, -56
    .cfi_offset 20, -48
    .cfi_offset 21, -40
    .cfi_offset 22, -32
    .cfi_offset 23, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 183 149 165 NOTE_INSN_EPILOGUE_BEG)
(code_label 172 229 30 680 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -40
    .cfi_offset 17, -32
    .cfi_offset 18, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 194 244 158 NOTE_INSN_EPILOGUE_BEG)
(code_label 125 257 124 693 "" [1 uses])
    .cfi_def_cfa 29, 48
    .cfi_offset 16, -48
    .cfi_offset 17, -40
    .cfi_offset 18, -32
    .cfi_offset 19, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 428 342 370 NOTE_INSN_EPILOGUE_BEG)
(code_label 413 529 127 720 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 427 396 399 NOTE_INSN_EPILOGUE_BEG)
(code_label 103 476 104 702 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 426 350 382 NOTE_INSN_EPILOGUE_BEG)
(code_label 53 460 54 704 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -72
    .cfi_offset 17, -64
    .cfi_offset 18, -56
    .cfi_offset 19, -48
    .cfi_offset 20, -40
    .cfi_offset 21, -32
    .cfi_offset 22, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 479 569 437 NOTE_INSN_EPILOGUE_BEG)
(code_label 458 586 39 749 "" [1 uses])
    .cfi_def_cfa 29, 112
    .cfi_offset 16, -80
    .cfi_offset 17, -72
    .cfi_offset 18, -64
    .cfi_offset 19, -56
    .cfi_offset 20, -48
    .cfi_offset 21, -40
    .cfi_offset 22, -32
    .cfi_offset 23, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(code_label 665 416 417 754 "" [1 uses])
(code_label 459 528 63 750 "" [1 uses])
    .cfi_def_cfa 29, 112
    .cfi_offset 16, -80
    .cfi_offset 17, -72
    .cfi_offset 18, -64
    .cfi_offset 19, -56
    .cfi_offset 20, -48
    .cfi_offset 21, -40
    .cfi_offset 22, -32
    .cfi_offset 23, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 194 156 178 NOTE_INSN_EPILOGUE_BEG)
(code_label 75 239 76 758 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -64
    .cfi_offset 17, -56
    .cfi_offset 18, -48
    .cfi_offset 19, -40
    .cfi_offset 20, -32
    .cfi_offset 21, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 283 239 264 NOTE_INSN_EPILOGUE_BEG)
(code_label 275 327 80 770 "" [1 uses])
    .cfi_def_cfa 29, 64
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 1017 1250 959 NOTE_INSN_EPILOGUE_BEG)
(code_label 976 1262 157 843 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 1016 1225 944 NOTE_INSN_EPILOGUE_BEG)
(code_label 978 1233 270 845 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 1015 1135 917 NOTE_INSN_EPILOGUE_BEG)
(code_label 523 1143 524 793 "" [1 uses])
    .cfi_def_cfa 29, 80
    .cfi_offset 16, -56
    .cfi_offset 17, -48
    .cfi_offset 18, -40
    .cfi_offset 19, -32
    .cfi_offset 20, -24
    .cfi_offset 28, -16
    .cfi_offset 64, -8

(note 1293 1207 1245 NOTE_INSN_EPILOGUE_BEG)
(code_label 303 1556 304 879 "" [1 uses])
    .cfi_def_cfa 29, 160
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 695 426 638 NOTE_INSN_EPILOGUE_BEG)
(code_label 140 885 141 952 "" [1 uses])
    .cfi_def_cfa 29, 128
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 694 758 599 NOTE_INSN_EPILOGUE_BEG)
(code_label 82 776 83 948 "" [1 uses])
    .cfi_def_cfa 29, 128
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 1708 1723 1709 NOTE_INSN_EPILOGUE_BEG)
(code_label 1220 1863 1221 1077 "" [16 uses])
    .cfi_def_cfa 29, 112
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 1543 1257 1544 NOTE_INSN_EPILOGUE_BEG)
(code_label 1726 1844 1268 1094 "" [1 uses])
    .cfi_def_cfa 29, 112
    .cfi_offset 16, -88
    .cfi_offset 17, -80
    .cfi_offset 18, -72
    .cfi_offset 19, -64
    .cfi_offset 20, -56
    .cfi_offset 21, -48
    .cfi_offset 22, -40
    .cfi_offset 23, -32
    .cfi_offset 28, -24
    .cfi_offset 30, -16
    .cfi_offset 64, -8

(note 370 342 337 NOTE_INSN_EPILOGUE_BEG)
(code_label 144 514 145 1109 "" [4 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31

(code_label 217 444 218 1114 "" [1 uses])
(code_label 198 454 199 1115 "" [1 uses])
    .cfi_def_cfa 29, 16
    .cfi_offset 28, -8
    .cfi_register 64, 31


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (15 preceding siblings ...)
  2011-10-17 17:13 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-17 17:38 ` bernds at gcc dot gnu.org
  2011-10-18 15:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (25 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-17 17:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 17:37:11 UTC ---
Sorry, I was being imprecise - only the instances where we generate notes 374
and 375 are interesting. Can you identify these two?


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (16 preceding siblings ...)
  2011-10-17 17:38 ` bernds at gcc dot gnu.org
@ 2011-10-18 15:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-24 11:43 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (24 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-18 15:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-18 15:37:49 UTC ---
> --- Comment #16 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-17 17:37:11 UTC ---
> Sorry, I was being imprecise - only the instances where we generate notes 374
> and 375 are interesting. Can you identify these two?

Sorry for being dense :-)  I could using conditional breakpoints once I
had unraveled how to identify the note number from an rtx.  Here's what
I found:

note 374:

(note 229 161 230 NOTE_INSN_EPILOGUE_BEG)
(code_label 243 324 162 31 "" [1 uses])
        .cfi_def_cfa 29, 80
        .cfi_offset 16, -72
        .cfi_offset 17, -64
        .cfi_offset 18, -56
        .cfi_offset 19, -48
        .cfi_offset 20, -40
        .cfi_offset 21, -32
        .cfi_offset 22, -24
        .cfi_offset 28, -16
        .cfi_offset 64, -8

note 375:

(note 229 161 230 NOTE_INSN_EPILOGUE_BEG)
(code_label 243 324 375 31 "" [1 uses])
        .cfi_def_cfa 29, 80
        .cfi_offset 16, -72
        .cfi_offset 17, -64
        .cfi_offset 18, -56
        .cfi_offset 19, -48
        .cfi_offset 20, -40
        .cfi_offset 21, -32
        .cfi_offset 22, -24
        .cfi_offset 28, -16
        .cfi_offset 64, -8

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (17 preceding siblings ...)
  2011-10-18 15:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-24 11:43 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-10-24 12:11 ` bernds at gcc dot gnu.org
                   ` (23 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-10-24 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-10-24 11:43:38 UTC ---
Bernd,

could you make some progress on this PR?  IRIX bootstrap is broken for
more than two weeks now.

Thanks.
        Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (18 preceding siblings ...)
  2011-10-24 11:43 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-10-24 12:11 ` bernds at gcc dot gnu.org
  2011-11-21 13:30 ` ro at gcc dot gnu.org
                   ` (22 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2011-10-24 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Bernd Schmidt <bernds at gcc dot gnu.org> 2011-10-24 12:10:21 UTC ---
It's really hard to run a gdb session this way. You're not a gcc newbie, and
you're the only one with an IRIX machine - can you not debug a bit further from
where we are now? You'll have to figure out why we get to that point twice with
the same data - this is making no sense to me. Check whether it's the same
loop, or (unlikely) two calls to connect_traces. If it's the same loop, what
are the indices? What's the contentes of the VEC? etc.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (19 preceding siblings ...)
  2011-10-24 12:11 ` bernds at gcc dot gnu.org
@ 2011-11-21 13:30 ` ro at gcc dot gnu.org
  2011-12-07  9:01 ` jakub at gcc dot gnu.org
                   ` (21 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2011-11-21 13:30 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25473|0                           |1
        is obsolete|                            |

--- Comment #20 from Rainer Orth <ro at gcc dot gnu.org> 2011-11-21 12:21:35 UTC ---
Created attachment 25871
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25871
reduced testcase

I've now been able to reproduce the ICE with a 32-bit i386-pc-solaris2.11 x
mips-sgi-irix6.5 cross compiler, at the same time massively reducing the
testcase:

$ ./cc1plus -fpreprocessed pr50686.ii -quiet -g -O2
pr50686.ii: In function 'int maybe_adjust_start_pc(JCF*, int, int, int)':
pr50686.ii:68:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2244

I haven't been able to investigate further since I've been busy with several
other breakages this weekend, so I'd appreciate if you could have a look
yourself.

Thanks.
  Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (20 preceding siblings ...)
  2011-11-21 13:30 ` ro at gcc dot gnu.org
@ 2011-12-07  9:01 ` jakub at gcc dot gnu.org
  2011-12-07  9:09 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (20 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-07  9:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 09:00:47 UTC ---
Can't reproduce that with x86_64-linux x mips-sgi-irix6.5 cross and current
trunk.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (21 preceding siblings ...)
  2011-12-07  9:01 ` jakub at gcc dot gnu.org
@ 2011-12-07  9:09 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-12-07  9:22 ` jakub at gcc dot gnu.org
                   ` (19 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-12-07  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-12-07 09:08:41 UTC ---
> --- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 09:00:47 UTC ---
> Can't reproduce that with x86_64-linux x mips-sgi-irix6.5 cross and current
> trunk.

As I mentioned, it reproduces in an i386-solaris x mips-sgi-irix6.5
cross and natively as of r182060.  Could you try an i686-linux cross?
I'm not yet set up for that.

Thanks.
        Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (22 preceding siblings ...)
  2011-12-07  9:09 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-12-07  9:22 ` jakub at gcc dot gnu.org
  2011-12-16 17:06 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (18 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-07  9:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #23 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 09:21:16 UTC ---
Can't reproduce with i686-linux x mips-sgi-irix6.5 cross either.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (23 preceding siblings ...)
  2011-12-07  9:22 ` jakub at gcc dot gnu.org
@ 2011-12-16 17:06 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-12-16 20:06 ` pinskia at gcc dot gnu.org
                   ` (17 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-12-16 17:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #24 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-12-16 16:56:55 UTC ---
> --- Comment #23 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 09:21:16 UTC ---
> Can't reproduce with i686-linux x mips-sgi-irix6.5 cross either.

I could, on Centos 5 (x86_64 hardware):

$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: mips-sgi-irix6.5
Configured with: /vol/gcc/src/hg/trunk/local/configure CC='gcc -m32'
--prefix=/var/gcc/irix --disable-nls --target mips-sgi-irix6.5
--with-gmp-include=/vol/gcc/include --with-gmp-lib=/vol/gcc/lib/i686
--disable-libgomp --disable-libquadmath --disable-libssp --disable-lto
--enable-obsolete --enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 20111215 (experimental) [trunk revision 182382] (GCC) 
$ ./cc1plus -fpreprocessed /vol/gcc/src/doc/bugs/pr50686/pr50686.ii -quiet -g
-O2 -o expr.s
/vol/gcc/src/doc/bugs/pr50686/pr50686.ii: In function 'int
maybe_adjust_start_pc(JCF*, int, int, int)':
/vol/gcc/src/doc/bugs/pr50686/pr50686.ii:68:1: internal compiler error: in
maybe_record_trace_start, at dwarf2cfi.c:2244
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (24 preceding siblings ...)
  2011-12-16 17:06 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-12-16 20:06 ` pinskia at gcc dot gnu.org
  2011-12-19 16:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (16 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-16 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-16 20:05:16 UTC ---
Can you try the patch in PR 51471#c11 ? That patch fixes most of the
maybe_record_trace_start on mips* for me.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (25 preceding siblings ...)
  2011-12-16 20:06 ` pinskia at gcc dot gnu.org
@ 2011-12-19 16:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-12-21 16:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (15 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-12-19 16:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #26 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-12-19 16:40:33 UTC ---
> --- Comment #25 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-16 20:05:16 UTC ---
> Can you try the patch in PR 51471#c11 ? That patch fixes most of the
> maybe_record_trace_start on mips* for me.

The patch fixes the ICE in the i686-linux x mips-irix6.5 cross and
allowed a native bootstrap to continue beyond the previous failure
point.

I'm now seeing an Ada ICE which is unrelated since it also just occured
on the 4.6 branch.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (26 preceding siblings ...)
  2011-12-19 16:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-12-21 16:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2012-01-04 13:30 ` rguenth at gcc dot gnu.org
                   ` (14 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-12-21 16:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #27 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-12-21 16:20:12 UTC ---
With the exception of the unrelated Ada bootstrap failure (PR
ada/51624), your patch allowed a mips-sgi-irix6.5 bootstrap to succeed
(for the first time in almost 3 months :-).  AFAICS, there are no
unexpected testsuite failures, so from an IRIX perspective the patch is
good to go.

Thanks a lot.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (27 preceding siblings ...)
  2011-12-21 16:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2012-01-04 13:30 ` rguenth at gcc dot gnu.org
  2012-01-04 13:37 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (13 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-04 13:30 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #28 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-04 13:30:21 UTC ---
Was the patch installed?


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (28 preceding siblings ...)
  2012-01-04 13:30 ` rguenth at gcc dot gnu.org
@ 2012-01-04 13:37 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2012-01-13 20:50 ` jakub at gcc dot gnu.org
                   ` (12 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2012-01-04 13:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #29 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2012-01-04 13:33:20 UTC ---
> --- Comment #28 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-04 13:30:21 UTC ---
> Was the patch installed?

Unfortunately not, I'm currently applying it to my private tree to allow
IRIX to bootstrap at all.  I'm not even sure it was ever submitted.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (29 preceding siblings ...)
  2012-01-04 13:37 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2012-01-13 20:50 ` jakub at gcc dot gnu.org
  2012-01-17 16:57 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (11 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-13 20:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #30 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-13 20:36:16 UTC ---
PR51471 patch has been committed by now, can you recheck if it didn't fix also
this PR?
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183038


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (30 preceding siblings ...)
  2012-01-13 20:50 ` jakub at gcc dot gnu.org
@ 2012-01-17 16:57 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2012-01-19 12:53 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2012-01-17 16:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #31 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2012-01-17 16:23:07 UTC ---
> --- Comment #30 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-13 20:36:16 UTC ---
> PR51471 patch has been committed by now, can you recheck if it didn't fix also
> this PR?

A fresh bootstrap without the previous workaround patch is now in
progress.

    Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (31 preceding siblings ...)
  2012-01-17 16:57 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2012-01-19 12:53 ` rguenth at gcc dot gnu.org
  2012-01-19 13:01 ` ro at gcc dot gnu.org
                   ` (9 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-19 12:53 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
           Priority|P3                          |P4


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (32 preceding siblings ...)
  2012-01-19 12:53 ` rguenth at gcc dot gnu.org
@ 2012-01-19 13:01 ` ro at gcc dot gnu.org
  2013-03-25 14:18 ` ro at gcc dot gnu.org
                   ` (8 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2012-01-19 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #32 from Rainer Orth <ro at gcc dot gnu.org> 2012-01-19 12:56:56 UTC ---
The bootstrap without the old workaround patch has just finished successfully.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (33 preceding siblings ...)
  2012-01-19 13:01 ` ro at gcc dot gnu.org
@ 2013-03-25 14:18 ` ro at gcc dot gnu.org
  2013-03-26 10:18 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (7 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2013-03-25 14:18 UTC (permalink / raw)
  To: gcc-bugs


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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #33 from Rainer Orth <ro at gcc dot gnu.org> 2013-03-25 14:18:21 UTC ---
Unfortunately, after 20130111 (r195101), IRIX 6.5 bootstrap started failing
again:

/vol/gcc/src/hg/gcc-4.7-branch/local/libstdc++-v3/libsupc++/vec.cc: In function
'void __cxxabiv1::__cxa_vec_delete2(void*, std::size_t, std::size_t,
__cxxabiv1:
:__cxa_cdtor_type, void (*)(void*))':
/vol/gcc/src/hg/gcc-4.7-branch/local/libstdc++-v3/libsupc++/vec.cc:323:3:
intern
al compiler error: in maybe_record_trace_start, at dwarf2cfi.c:2231

  Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (34 preceding siblings ...)
  2013-03-25 14:18 ` ro at gcc dot gnu.org
@ 2013-03-26 10:18 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2013-04-03 12:19 ` ro at gcc dot gnu.org
                   ` (6 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2013-03-26 10:18 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #34 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2013-03-26 10:18:00 UTC ---
Unfortunately, Andrew Pinski's patch from PR debug/51471 doesn't help
this time.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (35 preceding siblings ...)
  2013-03-26 10:18 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2013-04-03 12:19 ` ro at gcc dot gnu.org
  2013-04-05 10:41 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (5 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at gcc dot gnu.org @ 2013-04-03 12:19 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #35 from Rainer Orth <ro at gcc dot gnu.org> 2013-04-03 12:19:13 UTC ---
Created attachment 29792
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29792
new testcase

After some digging, I found a bit of what's going on: for a long time (before
4.7 branched) I'd been building on IRIX 6.5 with --enable-checking=release
since
that cuts down bootstrap time by ca. 30% to ca. 36 hours.  At some time after
the
release, I dropped that, assuming that it were the default on a release branch,
which is not true unfortunately.

I've now been able to massively the libstdc++ vec.cc failure and reproduce it
in a i386-pc-solaris2.11 x mips-sgi-irix6.5 cross compiler configured with

--disable-nls --target mips-sgi-irix6.5 \
        --with-gmp-include=/vol/gcc/include --with-gmp-lib=/vol/gcc/lib \
        --disable-libgomp --disable-libquadmath --disable-libssp --disable-lto
\
        --enable-obsolete --enable-languages=c,c++ --enable-checking

The --enable-checking is the key here.

With such a cc1plus, I get the following ICE:

% ./cc1plus -fpreprocessed vec.ii -quiet -mabi=n32 -g -O2 -o vec.s
vec.ii: In function 'void __cxxabiv1::__cxa_vec_delete2(void*, std::size_t,
std::size_t, __cxxabiv1::__cxa_cdtor_type, void (*)(void*))':
vec.ii:55:3: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2231

  Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (36 preceding siblings ...)
  2013-04-03 12:19 ` ro at gcc dot gnu.org
@ 2013-04-05 10:41 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2013-04-05 14:16 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (4 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2013-04-05 10:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #36 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2013-04-05 10:41:42 UTC ---
With the new reduced testcase I'm now also able to reproduce the failure
on an x86_64-unknown-linux-gnu x mips-sgi-irix6.5 cross, configured with

configure \
        --prefix=/var/gcc/irix6 --disable-nls --target mips-sgi-irix6.5 \
        --with-gmp-include=/vol/gcc/include --with-gmp-lib=/vol/gcc/lib \
        --disable-libgomp --disable-libquadmath --disable-libssp --disable-lto
\
        --enable-obsolete --enable-languages=c,c++ --enable-checking

and

% cc1plus -fpreprocessed vec.ii -quiet -mabi=n32 -g -O2 -o vec.s
/vec.ii: In function 'void __cxxabiv1::__cxa_vec_delete2(void*, std::size_t,
std::size_t, __cxxabiv1::__cxa_cdtor_type, void (*)(void*))':
vec.ii:55:3: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2243

It still can be traced down to

r179848 | bernds | 2011-10-12 14:04:04 +0200 (Wed, 12 Oct 2011) | 5 lines

        * function.c (prepare_shrink_wrap, bb_active_p): New function.
        (thread_prologue_and_epilogue_insns): Use bb_active_p.
        Call prepare_shrink_wrap, then recompute bb_active_p for the
        last block.

Bernd, could you please have a fresh look at this bootstrap-breaking
regression you introduced?

Thanks.
        Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (37 preceding siblings ...)
  2013-04-05 10:41 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2013-04-05 14:16 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2013-04-11  8:00 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2013-04-05 14:16 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #37 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2013-04-05 14:16:12 UTC ---
I forgot to mention that for the build to succeed you also need r184239:

------------------------------------------------------------------------
r184239 | jakub | 2012-02-15 00:31:42 +0100 (Wed, 15 Feb 2012) | 6 lines

        PR bootstrap/51969
        Backported from mainline
        2011-11-08  Michael Matz  <matz@suse.de>

        * gengtype.c (write_field_root): Avoid out-of-scope access of newv.

------------------------------------------------------------------------


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (38 preceding siblings ...)
  2013-04-05 14:16 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2013-04-11  8:00 ` rguenth at gcc dot gnu.org
  2013-04-11 11:35 ` bernds at gcc dot gnu.org
                   ` (2 subsequent siblings)
  42 siblings, 0 replies; 44+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11  8:00 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.3                       |4.7.4

--- Comment #38 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:59:37 UTC ---
GCC 4.7.3 is being released, adjusting target milestone.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (39 preceding siblings ...)
  2013-04-11  8:00 ` rguenth at gcc dot gnu.org
@ 2013-04-11 11:35 ` bernds at gcc dot gnu.org
  2013-04-11 14:30 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2014-06-12 13:03 ` rguenth at gcc dot gnu.org
  42 siblings, 0 replies; 44+ messages in thread
From: bernds at gcc dot gnu.org @ 2013-04-11 11:35 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #39 from Bernd Schmidt <bernds at gcc dot gnu.org> 2013-04-11 11:35:33 UTC ---
Created attachment 29857
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29857
Candidate fix

Ok, the --enable-checking made it reproducible. The lesson here is that a good
bug report includes information on how the build was configured.

Try this patch.


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (40 preceding siblings ...)
  2013-04-11 11:35 ` bernds at gcc dot gnu.org
@ 2013-04-11 14:30 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2014-06-12 13:03 ` rguenth at gcc dot gnu.org
  42 siblings, 0 replies; 44+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2013-04-11 14:30 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #40 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2013-04-11 14:30:49 UTC ---
> --- Comment #39 from Bernd Schmidt <bernds at gcc dot gnu.org> 2013-04-11
> 11:35:33 UTC ---
[...]
> Ok, the --enable-checking made it reproducible. The lesson here is that a good
> bug report includes information on how the build was configured.

Couldn't agree more, given how long it took me to reproduce the issue
myself :-)

> Try this patch.

I'm currently running a bootstrap of gcc 4.7.3 with this patch applied
and without any special --enable-checking=release.  It just entered
stage2, so seems to be fine.

I'll report once the bootstrap completed successfully.

Thanks.
        Rainer


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

* [Bug bootstrap/50686] [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595
  2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
                   ` (41 preceding siblings ...)
  2013-04-11 14:30 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2014-06-12 13:03 ` rguenth at gcc dot gnu.org
  42 siblings, 0 replies; 44+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50686

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #42 from Richard Biener <rguenth at gcc dot gnu.org> ---
Unsure if fixed or not.  Closing as fixed.


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

end of thread, other threads:[~2014-06-12 13:03 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-10 15:05 [Bug bootstrap/50686] New: [4.7 regression] IRIX 6.5 bootstrap failure: ICE in in lookup_cfa_1, at dwarf2cfi.c:595 ro at gcc dot gnu.org
2011-10-10 15:15 ` [Bug bootstrap/50686] " rguenth at gcc dot gnu.org
2011-10-12 13:09 ` ro at gcc dot gnu.org
2011-10-12 13:10 ` ro at gcc dot gnu.org
2011-10-12 15:38 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-12 16:46 ` bernds at gcc dot gnu.org
2011-10-12 16:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-17 11:31 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-17 11:40 ` bernds at gcc dot gnu.org
2011-10-17 14:54 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-17 15:05 ` bernds at gcc dot gnu.org
2011-10-17 15:50 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-17 15:53 ` ro at gcc dot gnu.org
2011-10-17 15:54 ` ro at gcc dot gnu.org
2011-10-17 15:55 ` ro at gcc dot gnu.org
2011-10-17 16:35 ` bernds at gcc dot gnu.org
2011-10-17 17:13 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-17 17:38 ` bernds at gcc dot gnu.org
2011-10-18 15:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-24 11:43 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-10-24 12:11 ` bernds at gcc dot gnu.org
2011-11-21 13:30 ` ro at gcc dot gnu.org
2011-12-07  9:01 ` jakub at gcc dot gnu.org
2011-12-07  9:09 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-12-07  9:22 ` jakub at gcc dot gnu.org
2011-12-16 17:06 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-12-16 20:06 ` pinskia at gcc dot gnu.org
2011-12-19 16:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-12-21 16:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
2012-01-04 13:30 ` rguenth at gcc dot gnu.org
2012-01-04 13:37 ` ro at CeBiTec dot Uni-Bielefeld.DE
2012-01-13 20:50 ` jakub at gcc dot gnu.org
2012-01-17 16:57 ` ro at CeBiTec dot Uni-Bielefeld.DE
2012-01-19 12:53 ` rguenth at gcc dot gnu.org
2012-01-19 13:01 ` ro at gcc dot gnu.org
2013-03-25 14:18 ` ro at gcc dot gnu.org
2013-03-26 10:18 ` ro at CeBiTec dot Uni-Bielefeld.DE
2013-04-03 12:19 ` ro at gcc dot gnu.org
2013-04-05 10:41 ` ro at CeBiTec dot Uni-Bielefeld.DE
2013-04-05 14:16 ` ro at CeBiTec dot Uni-Bielefeld.DE
2013-04-11  8:00 ` rguenth at gcc dot gnu.org
2013-04-11 11:35 ` bernds at gcc dot gnu.org
2013-04-11 14:30 ` ro at CeBiTec dot Uni-Bielefeld.DE
2014-06-12 13:03 ` rguenth at gcc dot gnu.org

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).