This is the mail archive of the gcc@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]

Re: Can't build gcc cvs trunk 20050409 gnat tools on sparc-linux:tree check: accessed operand 2 of view_convert_expr with 1 operands invisit_assignment, at tree-ssa-ccp.c:1074


On Sun, 2005-04-10 at 01:13 +0200, Andreas Schwab wrote:
> Laurent GUERBY <laurent@guerby.net> writes:
> 
> > Should I replace ",1" by ",0" or is something more ambitious needed?
> 
> I tried that on ia64, and the result was a miscompiled stage2 compiler.

Same thing on x86, I killed stage3 gnat1 after 20 minutes of CPU time:

stage2/xgcc -Bstage2/ -B/home/guerby/work/gcc/install/install-20050410T103121/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer      -gnatpg -gnata -I--I. -Iada -I/home/guerby/work/gcc/version-head/gcc/ada /home/guerby/work/gcc/version-head/gcc/ada/ada.ads -o ada/ada.o
xgcc: Internal error: Killed (program gnat1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [ada/ada.o] Error 1

gdb attach showed gnat1 stuck in elaboration code on some array
initialization.

Laurent

guerby@m:~> gdb -p 31958
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux".
Attaching to process 31958
Reading symbols from /home/guerby/work/gcc/build/build-20050410T103121/gcc/stage2/gnat1...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x080bbb8c in csets._elabb () at /home/guerby/work/gcc/version-head/gcc/ada/csets.adb:627
627        Fold_IBM_PC_437 : constant Translate_Table := Translate_Table'(
(gdb) l
622
623        --  Note: Code page 437 is the typical default in DOS, Windows and OS/2
624        --  for PC's in the US, it corresponds to the original PC character set.
625        --  See also the definitions for code page 850.
626
627        Fold_IBM_PC_437 : constant Translate_Table := Translate_Table'(
628
629           'a' => 'A',
630           'b' => 'B',
631           'c' => 'C',
Current language:  auto; currently minimal
(gdb) bt
#0  0x080bbb8c in csets._elabb () at /home/guerby/work/gcc/version-head/gcc/ada/csets.adb:627
#1  0x0804aa25 in adainit () at b_gnat1.c:327
#2  0x08064be0 in gnat_parse_file (set_yydebug=0) at /home/guerby/work/gcc/version-head/gcc/ada/misc.c:240
#3  0x085ca2c5 in toplev_main (argc=128, argv=0xbfffea44) at /home/guerby/work/gcc/version-head/gcc/toplev.c:1000
#4  0x40046b10 in __libc_start_main () from /lib/tls/libc.so.6
#5  0x08049ee1 in _start () at start.S:119
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /home/guerby/work/gcc/build/build-20050410T103121/gcc/stage2/gnat1, process 31958



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