output # <srcline> between #APP and #NO_APP, for asm statements

Andreas Schwab schwab@suse.de
Fri Mar 9 15:12:00 GMT 2007


Alexandre Oliva <aoliva@redhat.com> writes:

> On Mar  9, 2007, Andreas Schwab <schwab@suse.de> wrote:
>
>> No mixed declarations and code.
>
> Ugh, thanks.  Fixed thusly.  (Only compile-checked).

I'm getting a crash while compiling libjava:

/tmp/cvs/gcc-20070309/Build/./gcc/xgcc -shared-libgcc -B/tmp/cvs/gcc-20070309/Build/./gcc -nostdinc++ -L/tmp/cvs/gcc-20070309/Build/ia64-suse-linux/libstdc++-v3/src -L/tmp/cvs/gcc-20070309/Build/ia64-suse-linux/libstdc++-v3/src/.libs -B/tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/bin/ -B/tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/lib/ -isystem /tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/include -isystem /tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../libjava -I./include -I./gcj -I../../../libjava -Iinclude -I../../../libjava/include -I../../../libjava/classpath/include -Iclasspath/include -I../../../libjava/classpath/native/fdlibm -I../../../libjava/../boehm-gc/include -I../boehm-gc/include -I../../../libjava/libltdl -I../../../libjava/libltdl -I../../../libjava/.././libjava/../gcc -I../../../libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFF
 SET_BITS=64 -funwind-tables -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/tmp/cvs/gcc-20070309/Build/root\" -DTOOLEXECLIBDIR=\"/tmp/cvs/gcc-20070309/Build/root/lib\" -DJAVA_HOME=\"/tmp/cvs/gcc-20070309/Build/root\" -DBOOT_CLASS_PATH=\"/tmp/cvs/gcc-20070309/Build/root/share/java/libgcj-4.3.0.jar\" -DJAVA_EXT_DIRS=\"/tmp/cvs/gcc-20070309/Build/root/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/tmp/cvs/gcc-20070309/Build/root/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/tmp/cvs/gcc-20070309/Build/root/lib/gcj-4.3.0\" -DPATH_SEPARATOR=\":\" -DLIBGCJ_DEFAULT_DATABASE=\"/tmp/cvs/gcc-20070309/Build/root/lib/gcj-4.3.0/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.3.0/classmap.db\" -O2 -g -D_GNU_SOURCE -MT java/lang/natObject.lo -MD -MP -MF java/lang/.deps/natObject.Tpo -c ../../../libjava/java/lang/natObject.cc  -fPIC -DPIC -o java/lang/.libs/natObject.o -v
Reading specs from /tmp/cvs/gcc-20070309/Build/./gcc/specs
Target: ia64-suse-linux
Configured with: ../configure --prefix=/tmp/cvs/gcc-20070309/Build/root --build=ia64-suse-linux --host=ia64-suse-linux --enable-shared --enable-threads --enable-__cxa_atexit --with-system-zlib --with-system-libunwind --disable-bootstrap --enable-languages=java
Thread model: posix
gcc version 4.3.0 20070309 (experimental)
 /tmp/cvs/gcc-20070309/Build/./gcc/cc1plus -quiet -nostdinc++ -v -I. -I../../../libjava -I./include -I./gcj -I../../../libjava -Iinclude -I../../../libjava/include -I../../../libjava/classpath/include -Iclasspath/include -I../../../libjava/classpath/native/fdlibm -I../../../libjava/../boehm-gc/include -I../boehm-gc/include -I../../../libjava/libltdl -I../../../libjava/libltdl -I../../../libjava/.././libjava/../gcc -I../../../libjava/../libffi/include -I../libffi/include -iprefix /tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc/ia64-suse-linux/4.3.0/ -isystem /tmp/cvs/gcc-20070309/Build/./gcc/include -isystem /tmp/cvs/gcc-20070309/Build/./gcc/include-fixed -MD java/lang/.libs/natObject.d -MF java/lang/.deps/natObject.Tpo -MP -MT java/lang/natObject.lo -MQ java/lang/.libs/natObject.o -D_GNU_SOURCE -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DPREFIX="/tmp/cvs/gcc-20070309/Build/root" -DTOOLEXECLIBDIR="/tmp/cvs/gcc-20070309/Build/root/lib" -DJAVA_HOME="/tmp/cvs/gcc-20070309/B
 uild/root" -DBOOT_CLASS_PATH="/tmp/cvs/gcc-20070309/Build/root/share/java/libgcj-4.3.0.jar" -DJAVA_EXT_DIRS="/tmp/cvs/gcc-20070309/Build/root/share/java/ext" -DGCJ_ENDORSED_DIRS="/tmp/cvs/gcc-20070309/Build/root/share/java/gcj-endorsed" -DGCJ_VERSIONED_LIBDIR="/tmp/cvs/gcc-20070309/Build/root/lib/gcj-4.3.0" -DPATH_SEPARATOR=":" -DLIBGCJ_DEFAULT_DATABASE="/tmp/cvs/gcc-20070309/Build/root/lib/gcj-4.3.0/classmap.db" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="gcj-4.3.0/classmap.db" -D_GNU_SOURCE -DPIC -isystem /tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/include -isystem /tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/sys-include ../../../libjava/java/lang/natObject.cc -quiet -dumpbase natObject.cc -auxbase-strip java/lang/.libs/natObject.o -g -O2 -Wswitch-enum -Wextra -Wall -version -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -funwind-tables -fPIC -o /tmp/ccYXde5V.s
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/include"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/root/ia64-suse-linux/sys-include"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc/ia64-suse-linux/4.3.0/include"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc/ia64-suse-linux/4.3.0/include-fixed"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc/ia64-suse-linux/4.3.0/../../../../ia64-suse-linux/include"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc//include"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc//lib/gcc/ia64-suse-linux/4.3.0/include"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc//lib/gcc/ia64-suse-linux/4.3.0/include-fixed"
ignoring nonexistent directory "/tmp/cvs/gcc-20070309/Build/gcc/../lib/gcc//lib/gcc/ia64-suse-linux/4.3.0/../../../../ia64-suse-linux/include"
ignoring duplicate directory "../../../libjava"
ignoring duplicate directory "include"
ignoring duplicate directory "../../../libjava/libltdl"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../libjava
 ./include
 ./gcj
 ../../../libjava/include
 ../../../libjava/classpath/include
 classpath/include
 ../../../libjava/classpath/native/fdlibm
 ../../../libjava/../boehm-gc/include
 ../boehm-gc/include
 ../../../libjava/libltdl
 ../../../libjava/.././libjava/../gcc
 ../../../libjava/../libffi/include
 ../libffi/include
 /tmp/cvs/gcc-20070309/Build/./gcc/include
 /tmp/cvs/gcc-20070309/Build/./gcc/include-fixed
 /usr/local/include
 /usr/include
End of search list.
GNU C++ version 4.3.0 20070309 (experimental) (ia64-suse-linux)
        compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: ebd673c01bbc9f525c232bb55ffe58a7

Program received signal SIGSEGV, Segmentation fault.
0x200000000024a210 in strcmp () from /lib/libc.so.6.1
(gdb) bt
#0  0x200000000024a210 in strcmp () from /lib/libc.so.6.1
#1  0x40000000006a5070 in rtx_renumbered_equal_p (x=<value optimized out>, 
    y=<value optimized out>) at ../../gcc/jump.c:1621
#2  0x40000000006a5150 in rtx_renumbered_equal_p (x=<value optimized out>, 
    y=<value optimized out>) at ../../gcc/jump.c:1641
#3  0x40000000006a5150 in rtx_renumbered_equal_p (x=<value optimized out>, 
    y=<value optimized out>) at ../../gcc/jump.c:1641
#4  0x4000000000411740 in old_insns_match_p (mode=11, i1=0x2000000001ba2490, 
    i2=0x2000000001ba2b20) at ../../gcc/cfgcleanup.c:1008
#5  0x4000000000414e30 in try_crossjump_to_edge (mode=11, 
    e1=0x2000000001a51980, e2=<value optimized out>)
    at ../../gcc/cfgcleanup.c:1098
#6  0x4000000000416990 in try_crossjump_bb (mode=11, bb=<value optimized out>)
    at ../../gcc/cfgcleanup.c:1939
#7  0x400000000041a4c0 in cleanup_cfg (mode=11) at ../../gcc/cfgcleanup.c:2130
#8  0x400000000076c920 in rest_of_handle_stack_adjustments ()
    at ../../gcc/regmove.c:2522
#9  0x4000000000711350 in execute_one_pass (pass=0x60000000000416e0)
    at ../../gcc/passes.c:1055
#10 0x4000000000711880 in execute_pass_list (pass=0x60000000000416e0)
    at ../../gcc/passes.c:1107
#11 0x40000000007118c0 in execute_pass_list (pass=0x60000000000402b8)
    at ../../gcc/passes.c:1108
#12 0x40000000007118c0 in execute_pass_list (pass=0x6000000000040270)
    at ../../gcc/passes.c:1108
#13 0x400000000090d6a0 in tree_rest_of_compilation (fndecl=0x20000000006aa3e0)
    at ../../gcc/tree-optimize.c:412
#14 0x40000000002f6da0 in c_expand_body (fndecl=0x20000000006aa3e0)
    at ../../gcc/c-common.c:4243
#15 0x400000000023e6d0 in expand_body (fn=0x20000000006aa3e0)
    at ../../gcc/cp/semantics.c:3103
#16 0x4000000000bd4cc0 in cgraph_expand_function (node=0x20000000018af020)
    at ../../gcc/cgraphunit.c:1015
#17 0x4000000000bda860 in cgraph_optimize () at ../../gcc/cgraphunit.c:1084
#18 0x4000000000153050 in cp_write_global_declarations ()
    at ../../gcc/cp/decl2.c:3302
#19 0x400000000083f130 in toplev_main (argc=<value optimized out>, 
    argv=<value optimized out>) at ../../gcc/toplev.c:1034
#20 0x400000000037e550 in main (argc=75, argv=0x607ffffffe1b1e38)
    at ../../gcc/main.c:35

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list