This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/48168] [4.7 regression] Solaris 2/SPARC bootstrap broken: ICE in sparc_function_arg_1, at config/sparc/sparc.c:5721


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

--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-03-18 15:15:21 UTC ---
> --- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-03-17 15:21:03 UTC ---
> Duplicate of PR middle-end/48152?

While a C++-only bootstrap indeed completes as of rev 171126, an Ada
bootstrap still fails, but this seems to be a different error.

The failure can be reproduced with

$ gnat1 -quiet -O2 -fPIC -g g-debpoo.adb
+===========================GNAT BUG DETECTED==============================+
| 4.7.0 20110318 (experimental) [trunk revision 171126] (sparc-sun-solaris2.10)
GCC error:|
| output_operand: invalid expression as operand                            |
| Error detected around g-debpoo.adb:1723:4                                |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

system.ads
g-debpoo.adb
g-debpoo.ads
gnat.ads
s-stoele.ads
s-chepoo.ads
s-stopoo.ads
ada.ads
a-finali.ads
s-finroo.ads
a-stream.ads
a-unccon.ads
a-except.ads
s-parame.ads
s-stalib.ads
s-traent.ads
a-exctra.ads
g-io.ads
s-addima.ads
s-memory.ads
s-soflin.ads
s-stache.ads
g-htable.ads
s-htable.ads
g-traceb.ads
s-stoele.adb
a-tags.ads
s-exctab.ads
s-secsta.ads
s-finimp.ads
s-stratt.ads
s-unstyp.ads
s-imgint.ads
s-htable.adb
a-uncdea.ads
s-strhas.ads
s-imgllu.ads


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:423


I find the following stacktrace:

#0  internal_error (gmsgid=0xba4e30 <error reading variable>) at
/vol/gcc/src/hg/trunk/local/gcc/diagnostic.c:837
#1  0x00523524 in output_operand_lossage (cmsgid=0xba4eb0 <error reading
variable>) at /vol/gcc/src/hg/trunk/local/gcc/final.c:3070
#2  0x00523960 in output_addr_const (file=0x11acca8, x=0xfe6a5ce0) at
/vol/gcc/src/hg/trunk/local/gcc/final.c:3613
#3  0x004a6f10 in dw2_asm_output_addr_rtx (size=4, addr=0xfe6a5ce0,
comment=0x0) at /vol/gcc/src/hg/trunk/local/gcc/dwarf2asm.c:282
#4  0x004ac46c in output_loc_operands (loc=0xfe8a0f00, for_eh_or_skip=-1) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:5296
#5  output_loc_sequence (loc=0xfe8a0f00, for_eh_or_skip=-1) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:5360
#6  0x004b5360 in output_die (die=0xfe62fda0) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11254
#7  0x004b4e14 in output_die (die=0xfe62fd70) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11448
#8  0x004b4e14 in output_die (die=0xfe62ec00) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11448
#9  0x004b4e14 in output_die (die=0xfe62e8d0) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11448
#10 0x004b4e14 in output_die (die=0xfe62e720) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11448
#11 0x004b4e14 in output_die (die=0xff3800f0) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11448
#12 0x004b5d74 in output_comp_unit (die=0xff3800f0, output_if_empty=0) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:11521
#13 0x004daf04 in dwarf2out_finish (filename=Unhandled dwarf expression opcode
0xf3
) at /vol/gcc/src/hg/trunk/local/gcc/dwarf2out.c:23613
#14 0x007119e4 in compile_file (argc=6, argv=0xffbff4c4) at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:621
#15 do_compile (argc=6, argv=0xffbff4c4) at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:1900
#16 toplev_main (argc=6, argv=0xffbff4c4) at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:1963
#17 0x001025d4 in _start ()

Seems to be a different error caused by the same patch.

    Rainer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]