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: Stage2 Miscompilaton of Ada?


On 5/13/05, Andreas Jaeger <aj@suse.de> wrote:
> Christian Joensson <christian.joensson@gmail.com> writes:
> 
> > On 5/13/05, Andreas Jaeger <aj@suse.de> wrote:
> >> Anybody with the same problem?
> >
> > maybe, maybe not, I'm in an endless loop at
> 
> Yes, that's the same problem, if I do a parallel build, it hanges
> there also...
> 
> >
> > stage2/xgcc -Bstage2/ -B/usr/local/sparc-linux/bin/ -c -g -O2
> > -gnatpg -gnata -I- -I. -Iada
> > -I/usr/local/src/trunk/gcc-binutils/gcc/ada
> > /usr/local/src/trunk/gcc-binutils/gcc/ada/ada.ads -o ada/ada.o
> >
> > that was with LAST_UPDATED about Wed May 11 23:40:49 CEST 2005

still there, as we all know...

but here's what I get when attaching gdb and killing gnat...

[chj@ultra10 trunk]$ gdb /usr/local/src/trunk/objdir32/gcc/stage2/gnat1 24659
GNU gdb Red Hat Linux (6.3.0.0-0.29rh)
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 "sparc-redhat-linux"...Using host
libthread_db library "/lib/libthread_db.so.1".

Attaching to program: /usr/local/src/trunk/objdir32/gcc/stage2/gnat1,
process 24659
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2

warning: linux_test_for_tracefork: unexpected result from waitpid
(24742, status 0xb7f)
0x0007ef20 in csets._elabb () at /usr/local/src/trunk/gcc/gcc/ada/csets.adb:627
627        Fold_IBM_PC_437 : constant Translate_Table := Translate_Table'(
(gdb) c
Continuing.






Program received signal SIGTERM, Terminated.
0x0007ef20 in csets._elabb () at /usr/local/src/trunk/gcc/gcc/ada/csets.adb:627
627        Fold_IBM_PC_437 : constant Translate_Table := Translate_Table'(
Current language:  auto; currently ada
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) n
Not confirmed.
(gdb) Quit
(gdb) bt
#0  0x0007ef20 in csets._elabb ()
    at /usr/local/src/trunk/gcc/gcc/ada/csets.adb:627
#1  0x00012b88 in adainit () at ada/b_gnat1.c:327
#2  0x0002c190 in gnat_parse_file (set_yydebug=0)
    at /usr/local/src/trunk/gcc/gcc/ada/misc.c:240
#3  0x004c3168 in toplev_main (argc=Variable "argc" is not available.
)
    at /usr/local/src/trunk/gcc/gcc/toplev.c:1000
#4  0x7004b63c in __libc_start_main () from /lib/libc.so.6
#5  0x00011c60 in _start ()
#6  0x00011c60 in _start ()
Previous frame identical to this frame (corrupt stack?)
(gdb)


> 
> Andreas
> --
> Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
>  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
>   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
> 
> 
> 


-- 
Cheers,

/ChJ


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