PATCH to config/i386/ [basic-improvements-branch]

Diego Novillo dnovillo@redhat.com
Sat Oct 12 06:34:00 GMT 2002


On Fri, 11 Oct 2002, Richard Henderson wrote:

> I've applied your patch, with the addition of disabling
> all sibcalls for 64-bit.  As you noted elsewhere, we 
> currently don't create any in the first place, but should
> that be fixed, we don't have patterns for them.
> 
This patch causes a bootstrap failure on x86.  I've removed it to
get a full SPEC run.  Unless it's something obvious, I'll trace
it more after it's done.


Diego.

-----------------------------------------------------------------------------
$ make bootstrap
[ ... ]
./xgcc -B./ -B/home/dnovillo/perf/sbox/bib/local/inst/i686-pc-linux-gnu/bin/ -isystem /home/dnovillo/perf/sbox/bib/local/inst/i686-pc-linux-gnu/include -isystem /home/dnovillo/perf/sbox/bib/local/inst/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I/home/dnovillo/perf/sbox/bib/local/src/gcc -I/home/dnovillo/perf/sbox/bib/local/src/gcc/. -I/home/dnovillo/perf/sbox/bib/local/src/gcc/config -I/home/dnovillo/perf/sbox/bib/local/src/gcc/../include  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer \
   -c /home/dnovillo/perf/sbox/bib/local/src/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
/home/dnovillo/perf/sbox/bib/local/src/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/home/dnovillo/perf/sbox/bib/local/src/gcc/crtstuff.c:282: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/notnfs/dnovillo/sbox/bib/bld/gcc'
make: *** [stage2_build] Error 2

$ gdb ./cc1
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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 "i386-redhat-linux"...
Breakpoint 1 at 0x80d6f46: file /home/dnovillo/perf/sbox/bib/local/src/gcc/diagnostic.c, line 1363.
Breakpoint 2 at 0x8049480
Breakpoint 3 at 0x8049280
(gdb) run  -fpreprocessed crtstuff.i -quiet -dumpbase crtstuff.c -auxbase-strip crtbegin.o -g0 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -version -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer -o crtstuff.s

Program received signal SIGSEGV, Segmentation fault.
0x08212a97 in gen_add3_insn (r0=0x40192850, r1=0x4001b220, c=0x401993b4)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/optabs.c:4218
4218      return (GEN_FCN (icode) (r0, r1, c));

(gdb) bt
#0  0x08212a97 in gen_add3_insn (r0=0x40192850, r1=0x4001b220, c=0x401993b4)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/optabs.c:4218
#1  0x08311eb3 in regmove_optimize (f=0x4001f420, nregs=1075418036,
    regmove_dump_file=0x0)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/regmove.c:1074
#2  0x0828194d in rest_of_compilation (decl=0x40192850)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/toplev.c:3137
#3  0x0806736b in c_expand_body (fndecl=0x40192850, nested_p=0, can_defer_p=1)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/c-decl.c:6534
#4  0x08066f47 in finish_function (nested=0, can_defer_p=1073852960)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/c-decl.c:6405
#5  0x08049d2c in yyparse () at c-parse.y:403
#6  0x08055e89 in c_common_parse_file (set_yydebug=1073852960)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/c-lex.c:159
#7  0x082806ad in compile_file ()
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/toplev.c:2126
#8  0x08285c25 in do_compile ()
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/toplev.c:5326
#9  0x08285ccd in toplev_main (argc=1073852960, argv=0xbffff200)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/toplev.c:5356
#10 0x080a6adb in main (argc=1073852960, argv=0x4001b220)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/main.c:35
#11 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
-----------------------------------------------------------------------------



More information about the Gcc-patches mailing list