[tree-ssa] Bootstrap broken on x86_64-linux-gnu
Daniel Berlin
dberlin@dberlin.org
Wed Oct 29 17:14:00 GMT 2003
I think I hit this bug yesterday when making load PRE work.
Another fun "we have to resize an array when we split an edge" problem.
Please try this patch.
Hopefully, it'll apply. I have some other changes in the same tree, so
i had to do some hand editing on the diff.
If not, it should be easy to see what i'm trying to do anyway (prevent
us from accessing a non existent array member).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssaprediff.diff
Type: application/octet-stream
Size: 1868 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20031029/b288d956/attachment.obj>
-------------- next part --------------
On Oct 29, 2003, at 4:02 AM, Andreas Jaeger wrote:
>
> Bootstrap of current tree-ssa branch fails on x86_64-linux-gnu now
> with:
>
> stage1/xgcc -Bstage1/
> -B/opt/gcc/tree-ssa-20020619-branch/x86_64-suse-linux-gnu/bin/ -c -g
> -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long -Werror -fno-common
> -Wno-error -DHAVE_CONFIG_H -I. -I.
> -I/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc
> -I/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/.
> -I/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/../include
> -I/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/../libbanshee/
> libcompat
> -I/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/../libbanshee
> -I/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/../libbanshee/
> points-to /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/combine.c
> -o combine.o
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/combine.c: In
> function `try_combine':
>
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/combine.c:1486:
> internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> make[2]: *** [combine.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
>
> I configured with:
> # /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/configure
> --prefix=/opt/gcc/tree-ssa-20020619-branch --disable-nls
> --enable-threads=posix --enable-clocale=gnu --enable-__cxa_atexit
> --enable-shared --enable-languages=c,c++,java,f95,objc
> --enable-checking=misc,tree,rtl,gc,rtlflag --with-system-zlib
> x86_64-suse-linux-gnu
> --with-gcc-version-trigger=/usr/src/aj/cvs/gcc-tree-ssa-20020619-
> branch/gcc/version.c --with-libbanshee
>
> gdb shows:
>
> (gdb) r -fpreprocessed combine.i -quiet -dumpbase combine.c -mtune=k8
> -auxbase-strip combine.o -g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -Werror -Wno-error -version -fno-common -o combine.s
> Starting program: /abuild/aj/builds/gcc/one/gcc/stage1/cc1
> -fpreprocessed combine.i -quiet -dumpbase combine.c -mtune=k8
> -auxbase-strip combine.o -g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -Werror -Wno-error -version -fno-common -o combine.s
> Breakpoint 2 at 0x2a9569fc30
> Breakpoint 3 at 0x2a9569ed00
> GNU C version 3.5-tree-ssa 20031029 (merged 20031026)
> (x86_64-suse-linux-gnu)
> compiled by GNU C version 3.3.1 (SuSE Linux).
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000cfa44c in make_ssa_name (var=0x2a96f3d620, stmt=0x131)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree.c:5241
> 5241 if ((!DECL_P (var)
> (gdb) bt
> #0 0x0000000000cfa44c in make_ssa_name (var=0x2a96f3d620, stmt=0x131)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree.c:5241
> #1 0x000000000051287f in insert_one_operand (ei=0x2a9b4bf480,
> ephi=0x2a96f3d7e0, opnd_indx=0, x=0x1c60738, succ=0x1891a88)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-ssa-pre.c:1915
> #2 0x0000000000513c62 in finalize_1 (ei=0x2a9b4bf480)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-ssa-pre.c:2099
> #3 0x000000000051918e in pre_expression (slot=0x2a9b4bf480,
> data=0x1c90580,
> vars_to_rename=0x1704f00)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-ssa-pre.c:3089
> #4 0x000000000051a455 in tree_perform_ssapre (fndecl=0x2a960d11c0,
> phase=TDI_pre)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-ssa-pre.c:3292
> #5 0x00000000004dfda0 in optimize_function_tree (fndecl=0x2a960d11c0)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-optimize.c:153
> #6 0x00000000004e03c1 in tree_rest_of_compilation
> (fndecl=0x2a960d11c0,
> nested_p=false)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-optimize.c:302
> #7 0x0000000000428735 in c_expand_body_1 (fndecl=0x2a960d11c0,
> nested_p=0)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/c-decl.c:6202
> #8 0x0000000000428aca in c_expand_body (fndecl=0x2a960d11c0)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/c-decl.c:6232
> #9 0x0000000000d88d49 in cgraph_expand_function (node=0x2a9619d780)
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/cgraphunit.c:497
> #10 0x0000000000d8af3f in cgraph_expand_all_functions ()
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/cgraphunit.c:1330
> #11 0x0000000000d8b14a in cgraph_optimize ()
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/cgraphunit.c:1394
> #12 0x0000000000487025 in c_objc_common_finish_file ()
> at
> /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/c-objc-common.c:243
> #13 0x000000000040e1cd in finish_file ()
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/c-lang.c:196
> #14 0x000000000047865b in c_common_parse_file (set_yydebug=0)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/c-opts.c:1227
> #15 0x0000000000cdaeb2 in compile_file ()
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/toplev.c:1876
> #16 0x0000000000ce012a in do_compile ()
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/toplev.c:4744
> #17 0x0000000000ce01c2 in toplev_main (argc=24, argv=0x7fbfffef38)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/toplev.c:4784
> #18 0x00000000004b4f0f in main (argc=24, argv=0x7fbfffef38)
> at /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/gcc/main.c:35
>
>
>
> Andreas
> --
> Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
> SuSE Linux AG, Deutschherrnstr. 15-19, 90429 N?rnberg, Germany
> GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
More information about the Gcc
mailing list