-freduce-all-givs and fortran

Andreas Jaeger aj@suse.de
Thu Sep 6 17:00:00 GMT 2001


Daniel Berlin <dan@cgsoftware.com> writes:

> What's the stack trace?

Here're some details:
Macintyre:/private/build-rth/gcc:[130]$ stage1/xgcc -Bstage1/ -B/opt/gcc-3.1-devel-rth/i686-pc-linux-gnu/bin/ -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I/private/gcc-rth/gcc -I/private/gcc-rth/gcc/. -I/private/gcc-rth/gcc/config -I/private/gcc-rth/gcc/../include /private/gcc-rth/gcc/dwarfout.c -o dwarfout.o -v -save-temps
Reading specs from stage1/specs
Configured with: /private/gcc-rth/configure --prefix=/opt/gcc-3.1-devel-rth --enable-threads=posix --disable-nls --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.1 20010906 (experimental)
 stage1/cpp0 -lang-c -v -I. -I. -I/private/gcc-rth/gcc -I/private/gcc-rth/gcc/. -I/private/gcc-rth/gcc/config -I/private/gcc-rth/gcc/../include -iprefix stage1/../lib/gcc-lib/i686-pc-linux-gnu/3.1/ -isystem include -isystem stage1/include -isystem /opt/gcc-3.1-devel-rth/i686-pc-linux-gnu/bin/include -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -DIN_GCC -DHAVE_CONFIG_H /private/gcc-rth/gcc/dwarfout.c dwarfout.i
ignoring nonexistent directory "stage1/include"
ignoring nonexistent directory "/opt/gcc-3.1-devel-rth/i686-pc-linux-gnu/bin/include"
GNU CPP version 3.1 20010906 (experimental) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "lib/gcc-lib/i686-pc-linux-gnu/3.1/include"
ignoring nonexistent directory "lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/gcc-3.1-devel-rth/lib/gcc-lib/i686-pc-linux-gnu/3.1/include"
ignoring nonexistent directory "/opt/gcc-3.1-devel-rth/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "."
ignoring duplicate directory "/private/gcc-rth/gcc"
#include "..." search starts here:
#include <...> search starts here:
 .
 /private/gcc-rth/gcc
 /private/gcc-rth/gcc/config
 /private/gcc-rth/include
 include
 /usr/local/include
 /usr/include
End of search list.
 stage1/cc1 -fpreprocessed dwarfout.i -quiet -dumpbase dwarfout.c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -Wno-long-long -pedantic -version -o dwarfout.s
GNU CPP version 3.1 20010906 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 3.1 20010906 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 2.95.3 20010315 (SuSE).

I interrupted it in gdb when memory was getting low (cc1 used at this
point 512 MB):

Program received signal SIGINT, Interrupt.
0x082d0319 in simplify_binary_operation (code=PLUS, mode=SImode, 
    op0=0x4073c538, op1=0x40179218) at /private/gcc-rth/gcc/simplify-rtx.c:844
844     }
(gdb) bt
#0  0x082d0319 in simplify_binary_operation (code=PLUS, mode=SImode, 
    op0=0x4073c538, op1=0x40179218) at /private/gcc-rth/gcc/simplify-rtx.c:844
#1  0x082d2aa6 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x41d78f10, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1805
#2  0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x41d78f10, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1258
#3  0x082d143c in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x41d79240, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1282
#4  0x082d2aa6 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x41d78f00, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1805
#5  0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x41d78f00, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1258
#6  0x082d143c in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x41d79238, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1282
#7  0x082d2aa6 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x41d78ef0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1805
#8  0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x41d78ef0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1258
#9  0x082d143c in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x41d79230, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1282
#10 0x082d2aa6 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x41d78ee0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1805
#11 0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
[the patterns repeats...]
(gdb) bt -20
#2951558 0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x407d8300, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1258
#2951559 0x082d143c in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x40691438, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1282
#2951560 0x082d2aa6 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x407d81f0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1805
#2951561 0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x407d81f0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1258
#2951562 0x082d3293 in simplify_relational_operation (code=LEU, mode=SImode, 
    op0=0x407d81f0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1962
#2951563 0x08341f2e in combine_simplify_rtx (x=0x406ac590, op0_mode=SImode, 
    last=0, in_dest=0) at /private/gcc-rth/gcc/combine.c:3690
#2951564 0x08341884 in subst (x=0x406ac590, from=0x40667760, to=0x407d81f0, 
    in_dest=0, unique_copy=0) at /private/gcc-rth/gcc/combine.c:3496
#2951565 0x083417f2 in subst (x=0x406ac280, from=0x40667760, to=0x407d81f0, 
    in_dest=0, unique_copy=0) at /private/gcc-rth/gcc/combine.c:3466
#2951566 0x083417f2 in subst (x=0x406ac270, from=0x40667760, to=0x407d81f0, 
    in_dest=0, unique_copy=0) at /private/gcc-rth/gcc/combine.c:3466
#2951567 0x0833d8a3 in try_combine (i3=0x4064f000, i2=0x405f31a0, 
    i1=0x407919a0, new_direct_jump_p=0xbfffef08)
    at /private/gcc-rth/gcc/combine.c:1965
#2951568 0x0833b490 in combine_instructions (f=0x40785b00, nregs=303)
    at /private/gcc-rth/gcc/combine.c:632
#2951569 0x082f616a in rest_of_compilation (decl=0x4060e000)
    at /private/gcc-rth/gcc/toplev.c:3268
#2951570 0x08070217 in c_expand_body (fndecl=0x4060e000, nested_p=0)
    at /private/gcc-rth/gcc/c-decl.c:6724
#2951571 0x0806fe9e in finish_function (nested=0)
    at /private/gcc-rth/gcc/c-decl.c:6641
#2951572 0x0804a7cc in yyparse_1 () at c-parse.y:358
#2951573 0x080559d5 in yyparse () at /private/gcc-rth/gcc/c-lex.c:161
#2951574 0x082f423e in compile_file (name=0x851f820 "dwarfout.i")
    at /private/gcc-rth/gcc/toplev.c:2319
#2951575 0x082f9090 in toplev_main (argc=19, argv=0xbffff6a4)
    at /private/gcc-rth/gcc/toplev.c:4928
#2951576 0x080bd616 in main (argc=19, argv=0xbffff6a4)
    at /private/gcc-rth/gcc/main.c:34
#2951577 0x4003d7ee in __libc_start_main () from /lib/libc.so.6
(gdb) frame 2951563
#2951563 0x08341f2e in combine_simplify_rtx (x=0x406ac590, op0_mode=SImode, 
    last=0, in_dest=0) at /private/gcc-rth/gcc/combine.c:3690
3690            temp = simplify_relational_operation (code, cmp_mode,
(gdb) do
#2951562 0x082d3293 in simplify_relational_operation (code=LEU, mode=SImode, 
    op0=0x407d81f0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1962
1962      if (INTEGRAL_MODE_P (mode) && trueop1 != const0_rtx
(gdb) do
#2951561 0x082d131b in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x407d81f0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1258
1258              if (INTEGRAL_MODE_P (mode)

(gdb) p *op0
$2 = {code = PLUS, mode = SImode, jump = 0, call = 0, unchanging = 0, 
  volatil = 0, in_struct = 0, used = 1, integrated = 0, frame_related = 0, 
  fld = {{rtwint = 1080472400, rtint = 1080472400, rtuint = 1080472400, 
      rtstr = 0x4066b350 ":", rtx = 0x4066b350, rtvec = 0x4066b350, 
      rttype = 1080472400, rt_addr_diff_vec_flags = {min_align = 80, 
        base_after_vec = 1, min_after_vec = 1, max_after_vec = 0, 
        min_after_base = 0, max_after_base = 1, offset_unsigned = 1, 2, 
        scale = 102}, rt_cselib = 0x4066b350, rtbit = 0x4066b350, 
      rttree = 0x4066b350, bb = 0x4066b350}}}
(gdb) p op0
$3 = 0x407d81f0
(gdb) pr

(plus:SI (reg:SI 148)
    (const:SI (plus:SI (symbol_ref/f:SI ("*.LC289"))
            (const_int 1 [0x1]))))

(gdb) p op1
$4 = 0x40667750
(gdb) pr

(reg/v/f:SI 118)

(gdb) do
#2951560 0x082d2aa6 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x407d81f0, op1=0x40667750) at /private/gcc-rth/gcc/simplify-rtx.c:1805
1805                  tem = simplify_binary_operation (ncode, mode, lhs, rhs);
(gdb) p op0
$5 = 0x407d81f0
(gdb) pr

(plus:SI (reg:SI 148)
    (const:SI (plus:SI (symbol_ref/f:SI ("*.LC289"))
            (const_int 1 [0x1]))))

Hope this helps,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-patches mailing list