This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
CVS'd sources at 200006010830 UTC: cc1plus crashes while scanning options.
- To: gcc at gcc dot gnu dot org
- Subject: CVS'd sources at 200006010830 UTC: cc1plus crashes while scanning options.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Thu, 01 Jun 2000 11:33:29 +0200
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
L.S.,
On alphaev6-unknown-linux-gnu, I get:
./xgcc -B/usr/snp/alphaev6-unknown-linux-gnu/bin/ -B./ -isystem
/usr/snp/alphaev6-unknown-linux-gnu/include -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long
-O2 -g -O2 -isystem ./include -fPIC -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -g -O2 -I. -I../../egcs/gcc
-I../../egcs/gcc/config -I../../egcs/gcc/../include \
-c ../../egcs/gcc/cp/tinfo.cc
cc1plus: warning: Ignoring command line option '-Wstrict-prototypes'
in stage 2 (i.e. the ./cc1plus compiler is the stage 3 compiler).
Gdb says:
[toon@super gcc]$ gdb cc1plus core
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 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 "alpha-redhat-linux"...
Core was generated by `./cc1plus /tmp/ccct5uuu.ii -quiet -dumpbase
tinfo.cc -g -g1 -g -O2 -O2 -O2 -O2'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0 strcmp () at ../sysdeps/alpha/strcmp.S:41
../sysdeps/alpha/strcmp.S:41: No such file or directory.
Current language: auto; currently asm
Breakpoint 1 at 0x2000015d408: file exit.c, line 35.
Breakpoint 2 at 0x12008e820: file ../../egcs/gcc/rtl.c, line 1261.
Breakpoint 3 at 0x2000015b7d0: file ../sysdeps/generic/abort.c, line 55.
(gdb) where
#0 strcmp () at ../sysdeps/alpha/strcmp.S:41
#1 0x12020ece0 in compare_options (p1=0x11fffee47,
p2=0x202b2c9a00000001)
at ../../../egcs/gcc/cp/decl2.c:581
#2 0x2000015ba70 in bsearch (key=0x11fffe750, base=0x1203d9220,
nmemb=8,
size=4, compar=0x12020ecc0 <compare_options>) at bsearch.c:38
#3 0x12020edf4 in lang_decode_option (argc=536866375,
argv=0x202b2c9a00000001)
at ../../../egcs/gcc/cp/decl2.c:630
#4 0x12000ab78 in main (argc=21, argv=0x11fffe848)
at ../../egcs/gcc/toplev.c:4539
#5 0x2000014ffb0 in __libc_start_main (main=0x12000a6c0 <main>,
argc=21,
argv=0x11fffe848, init=0x1200020e0 <_init>, fini=0x1202781e0
<_fini>,
rtld_fini=0x11fffee47, stack_end=0x11fffe830)
at ../sysdeps/generic/libc-start.c:78
(gdb) up
#1 0x12020ece0 in compare_options (p1=0x11fffee47,
p2=0x202b2c9a00000001)
at ../../../egcs/gcc/cp/decl2.c:581
581 return strcmp (*((char **) p1), *((char **) p2));
Current language: auto; currently c
(gdb) list
576 static int
577 compare_options (p1, p2)
578 const PTR p1;
579 const PTR p2;
580 {
581 return strcmp (*((char **) p1), *((char **) p2));
582 }
583
584 /* Decode the string P as a language-specific option.
585 Return the number of strings consumed for a valid option.
Note the value of argv !
HTH,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)