GCC CVS mainline does not build on i686-linux (rtlcheck failure)

Andreas Jaeger aj@suse.de
Sat Oct 12 06:40:00 GMT 2002


With current GCC CVS mainline, I get this failure on i686-linux-gnu:

$ /builds/gcc/gcc-3.3-devel/gcc/xgcc -B/builds/gcc/gcc-3.3-devel/gcc/ -B/opt/gcc/3.3-devel/i686-pc-linux-gnu/bin/
 -B/opt/gcc/3.3-devel/i686-pc-linux-gnu/lib/ -isystem /opt/gcc/3.3-devel/i686-pc-linux-gnu/include -c -DSkip_f2c_Undefs -I. -I/cvs/gcc/libf2c/libF77 -I.. -I/cvs/gcc/libf2c/libF77/.. -DSTDC_HEADERS=1 -DRETSIGTYPE=void -DIEEE_drem=1 -DSkip_f2c_Undefs=1 -DIEEE_COMPLEX_DIVIDE=1 -W -Wall -O2 -g -O2 -ffloat-store /cvs/gcc/libf2c/libF77/z_log.c  -fPIC -DPIC -o .libs/z_log.o -v -save-temps
Reading specs from /builds/gcc/gcc-3.3-devel/gcc/specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc/3.3-devel --disable-nls --enable-threads=posix --enable-clocale=gnu --enable-__cxa_atexit --enable-shared --enable-languages=c,c++,f77,java,objc,ada,treelang --enable-checking=misc,tree,rtl,gc,rtlflag --with-system-zlib
Thread model: posix
gcc version 3.3 20021012 (experimental)
 /builds/gcc/gcc-3.3-devel/gcc/cc1 -E -quiet -v -I. -I/cvs/gcc/libf2c/libF77 -I.. -I/cvs/gcc/libf2c/libF77/.. -iprefix /builds/gcc/gcc-3.3-devel/gcc/../lib/gcc-lib/i686-pc-linux-gnu/3.3/ -isystem /builds/gcc/gcc-3.3-devel/gcc/include -isystem /opt/gcc/3.3-devel/i686-pc-linux-gnu/bin/include -isystem /opt/gcc/3.3-devel/i686-pc-linux-gnu/lib/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -DSkip_f2c_Undefs -DSTDC_HEADERS=1 -DRETSIGTYPE=void -DIEEE_drem=1 -DSkip_f2c_Undefs=1 -DIEEE_COMPLEX_DIVIDE=1 -DPIC -isystem /opt/gcc/3.3-devel/i686-pc-linux-gnu/include /cvs/gcc/libf2c/libF77/z_log.c -W -Wall -ffloat-store -fPIC -O2 -O2 z_log.i
ignoring nonexistent directory "/opt/gcc/3.3-devel/i686-pc-linux-gnu/bin/include"
ignoring nonexistent directory "/opt/gcc/3.3-devel/i686-pc-linux-gnu/lib/include"
ignoring nonexistent directory "/opt/gcc/3.3-devel/i686-pc-linux-gnu/include"
ignoring nonexistent directory "/builds/gcc/gcc-3.3-devel/lib/gcc-lib/i686-pc-linux-gnu/3.3/include"
ignoring nonexistent directory "/builds/gcc/gcc-3.3-devel/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/gcc/3.3-devel/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /cvs/gcc/libf2c/libF77
 ..
 /cvs/gcc/libf2c
 /builds/gcc/gcc-3.3-devel/gcc/include
 /usr/local/include
 /opt/gcc/3.3-devel/include
 /opt/gcc/3.3-devel/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
 /usr/include
End of search list.
 /builds/gcc/gcc-3.3-devel/gcc/cc1 -fpreprocessed z_log.i -quiet -dumpbase z_log.c -auxbase-strip .libs/z_log.o -g -O2 -O2 -W -Wall -version -ffloat-store -fPIC -o z_log.s
GNU C version 3.3 20021012 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.3 20021012 (experimental).
/usr/include/bits/mathinline.h: In function `z_log':
/usr/include/bits/mathinline.h:425: internal compiler error: RTL check: expected code `reg', have `mem' in decl_conflicts_with_clobbers_p, at stmt.c:1417
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

(gdb) r -fpreprocessed z_log.i -quiet -dumpbase z_log.c -auxbase-strip .libs/z_log.o -g -O2 -O2 -W -Wall -version -ffloat-store -fPIC -o z_log.s
Breakpoint 2 at 0x40050586
Breakpoint 3 at 0x4004f345
GNU C version 3.3 20021012 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.3 20021012 (experimental).
/usr/include/bits/mathinline.h: In function `z_log':
/usr/include/bits/mathinline.h:425: internal compiler error: RTL check: expected code `reg', have `mem' in decl_conflicts_with_clobbers_p, at stmt.c:1417
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Breakpoint 2, 0x40050586 in exit () from /lib/libc.so.6
(gdb) bt
#0  0x40050586 in exit () from /lib/libc.so.6
#1  0x080f72f3 in internal_error (msgid=0x869bc60 "RTL check: expected code `%s', have `%s' in %s, at %s:%d") at /cvs/gcc/gcc/diagnostic.c:1198
#2  0x0848b97b in rtl_check_failed_code1 () at /cvs/gcc/gcc/rtl.c:609
#3  0x084b0cc2 in decl_conflicts_with_clobbers_p (decl=0xbfffe47c, clobbered_regs=0xbfffe618) at /cvs/gcc/gcc/stmt.c:1437
#4  0x084b1298 in expand_asm_operands (string=0x402188a0, outputs=0x40219514, inputs=0x40219528, clobbers=0x4021999c, vol=1, 
    filename=0x87a66c2 "/usr/include/bits/mathinline.h", line=425) at /cvs/gcc/gcc/stmt.c:1649
#5  0x080779c0 in c_expand_asm_operands (string=0x90, outputs=0x40219514, inputs=0x90, clobbers=0x90, vol=144, 
    filename=0x90 <Address 0x90 out of bounds>, line=144) at /cvs/gcc/gcc/c-typeck.c:6943
#6  0x080919da in genrtl_asm_stmt (cv_qualifier=0x40219514, string=0x402186c0, output_operands=0x40219514, input_operands=0x40219528, 
    clobbers=0x40219550, asm_input_p=1075942676) at /cvs/gcc/gcc/c-semantics.c:733
#7  0x080920de in expand_stmt (t=0x401fbd68) at /cvs/gcc/gcc/c-semantics.c:852
#8  0x0809188a in genrtl_compound_stmt (t=0x402194d8) at /cvs/gcc/gcc/c-semantics.c:700
#9  0x08091dc8 in expand_stmt (t=0x402194d8) at /cvs/gcc/gcc/c-semantics.c:814
#10 0x0809188a in genrtl_compound_stmt (t=0x4021944c) at /cvs/gcc/gcc/c-semantics.c:700
#11 0x08091dc8 in expand_stmt (t=0x4021944c) at /cvs/gcc/gcc/c-semantics.c:814
#12 0x080849d6 in c_expand_expr (exp=0x40219460, target=0x0, tmode=DFmode, modifier=0) at /cvs/gcc/gcc/c-common.c:4268
#13 0x0815284e in expand_expr (exp=0x40219460, target=0x0, tmode=DFmode, modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:9234
#14 0x081527fd in expand_expr (exp=0x40218720, target=0x0, tmode=DFmode, modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:6733
#15 0x081414cb in store_expr (exp=0x40218720, target=0x4015fe4c, want_value=0) at /cvs/gcc/gcc/expr.c:4389
#16 0x081408a9 in expand_assignment (to=0x4020cc00, from=0x40218720, want_value=0, suggest_reg=1) at /cvs/gcc/gcc/expr.c:4067
#17 0x0814a7bb in expand_expr (exp=0x1, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL) at /cvs/gcc/gcc/expr.c:8886
#18 0x084b3045 in expand_expr_stmt_value (exp=0x4020cc40, want_value=0, maybe_last=144) at /cvs/gcc/gcc/stmt.c:2152
#19 0x08090483 in genrtl_expr_stmt_value (expr=0x4020cc40, want_value=0, maybe_last=0) at /cvs/gcc/gcc/c-semantics.c:354
#20 0x08091d67 in expand_stmt (t=0x4020cc40) at /cvs/gcc/gcc/c-semantics.c:787
#21 0x0809188a in genrtl_compound_stmt (t=0x40213a78) at /cvs/gcc/gcc/c-semantics.c:700
#22 0x08091dc8 in expand_stmt (t=0x40213a78) at /cvs/gcc/gcc/c-semantics.c:814
#23 0x08066639 in c_expand_body (fndecl=0x402169a0, nested_p=0, can_defer_p=1) at /cvs/gcc/gcc/c-decl.c:6493
#24 0x08066289 in finish_function (nested=0, can_defer_p=144) at /cvs/gcc/gcc/c-decl.c:6390
#25 0x08049bd2 in yyparse () at c-parse.y:403
#26 0x080554b9 in c_common_parse_file (set_yydebug=144) at /cvs/gcc/gcc/c-lex.c:159
#27 0x084c2ddd in compile_file () at /cvs/gcc/gcc/toplev.c:2137
#28 0x084c8175 in do_compile () at /cvs/gcc/gcc/toplev.c:5342
#29 0x084c821d in toplev_main (argc=144, argv=0xbffff300) at /cvs/gcc/gcc/toplev.c:5372
#30 0x080a3ffb in main (argc=144, argv=0x90) at /cvs/gcc/gcc/main.c:35
#31 0x4003c4a2 in __libc_start_main () from /lib/libc.so.6
Breakpoint 4, decl_conflicts_with_clobbers_p (decl=0x4021a150, clobbered_regs=0xbfffe618) at /cvs/gcc/gcc/stmt.c:1415
1415      if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL)
(gdb) p decl
$2 = (union tree_node *) 0x4021a150
(gdb) pt
 <var_decl 0x4021a150 __value
    type <real_type 0x4014da80 long double XF
        size <integer_cst 0x40143ca0 constant 96>
        unit size <integer_cst 0x40143ce0 constant 12>
        align 32 symtab 0 alias set 5 precision 96
        pointer_to_this <pointer_type 0x401ab9a0>>
    used in_system_header regdecl XF file /usr/include/bits/mathinline.h line 425
    size <integer_cst 0x40218680 type <integer_type 0x4014d5b0 bit_size_type> constant 96>
    unit size <integer_cst 0x402186a0 type <integer_type 0x4014d540 unsigned int> constant 12>
    align 96 context <function_decl 0x402169a0 z_log> abstract_origin <var_decl 0x401be9a0 __value>
    (mem/f:XF (plus:SI (reg/f:SI 54 virtual-stack-vars)
        (const_int -112 [0xffffff90])) [5 __value+0 S12 A96])>

Preprocessed sources are attached,

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: z_log.i.bz2
Type: application/x-bzip2
Size: 4158 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20021012/f565c5d7/attachment.bz2>
-------------- next part --------------
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


More information about the Gcc-bugs mailing list