------- Comment #15 from irar at il dot ibm dot com  2006-11-08 12:05 -------
Additional behavior:

If I run bootstrap with BOOT_CFLAGS="-O2 -g -ftree-vectorize -maltivec"
(without -fdump-tree-vect-details), bootstrap fails with 

../../gcc/gcc/recog.c: In function constrain_operands:
../../gcc/gcc/recog.c:2270: internal compiler error: in mark_operand_necessary,
at tree-ssa-dce.c:266

Then I compile recog.c alone with 

/Develop/main-110758/build-vect/./prev-gcc/xgcc
-B/Develop/main-110758/build-vect/./prev-gcc/
-B/Develop/main-110758//powerpc64-suse-linux/bin/ -c   -O2 -g -ftree-vectorize
-maltivec -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute
-Werror    -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I../../gcc/gcc/../libdecnumber -I../libdecnumber    ../../gcc/gcc/recog.c

and again I get 

../../gcc/gcc/recog.c: In function constrain_operands:
../../gcc/gcc/recog.c:2270: internal compiler error: in mark_operand_necessary,
at tree-ssa-dce.c:266


With -quiet I get a different error:

Program received signal SIGSEGV, Segmentation fault.
0x100b1dc4 in is_gimple_min_invariant (t=0x18) at
../../gcc/gcc/tree-gimple.c:172
172       switch (TREE_CODE (t))
(gdb) backtrace
#0  0x100b1dc4 in is_gimple_min_invariant (t=0x18) at
../../gcc/gcc/tree-gimple.c:172
During symbol reading, incomplete CFI data; unspecified registers (e.g., r0) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r2) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r3) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r4) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r5) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r6) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r7) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r8) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r9) at
0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r10)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r11)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r12)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r13)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r14)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r15)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r16)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r17)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r18)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r19)
at 0x100b1dbc.
During symbol reading, incomplete CFI data; unspecified registers (e.g., r20)
at 0x100b1dbc.
#1  0x1013f110 in replace_vuses_in (stmt=0xf74510f0,
replaced_addresses_p=0xff8a9790 "", prop_value=0x10b6b238)
    at ../../gcc/gcc/tree-ssa-propagate.c:958
#2  0x1013f8d4 in substitute_and_fold (prop_value=0x10b6b238, use_ranges_p=0
'\0') at ../../gcc/gcc/tree-ssa-propagate.c:1139
#3  0x100dd070 in fini_copy_prop () at ../../gcc/gcc/tree-ssa-copy.c:914
#4  0x100dd158 in execute_copy_prop (store_copy_prop=0 '\0', phis_only=1
'\001') at ../../gcc/gcc/tree-ssa-copy.c:1035
#5  0x100dd204 in do_phi_only_copy_prop () at
../../gcc/gcc/tree-ssa-copy.c:1076
#6  0x1051b090 in execute_one_pass (pass=0x10915e68) at
../../gcc/gcc/passes.c:853
#7  0x1051b248 in execute_pass_list (pass=0x10915e68) at
../../gcc/gcc/passes.c:897
#8  0x1051b274 in execute_pass_list (pass=0x108875bc) at
../../gcc/gcc/passes.c:898
#9  0x100b1684 in tree_rest_of_compilation (fndecl=0xf7862d00) at
../../gcc/gcc/tree-optimize.c:412
#10 0x10016914 in c_expand_body (fndecl=0xf7862d00) at
../../gcc/gcc/c-decl.c:6689
#11 0x1059b894 in cgraph_expand_function (node=0xf75b3e00) at
../../gcc/gcc/cgraphunit.c:1101
#12 0x1059bb24 in cgraph_expand_all_functions () at
../../gcc/gcc/cgraphunit.c:1166
#13 0x1059c718 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1434
#14 0x1001a024 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:7804
#15 0x104d9928 in compile_file () at ../../gcc/gcc/toplev.c:1012
#16 0x104dbbe4 in do_compile () at ../../gcc/gcc/toplev.c:1957
#17 0x104dbc78 in toplev_main (argc=53, argv=0xff8a9ca4) at
../../gcc/gcc/toplev.c:1989
#18 0x10090518 in main (argc=53, argv=0xff8a9ca4) at ../../gcc/gcc/main.c:35


Moreover, if I add -fdump-tree-vect-details to the above command line, i.e.,
compile recog.c as following:

/Develop/main-110758/build-vect/./prev-gcc/xgcc
-B/Develop/main-110758/build-vect/./prev-gcc/
-B/Develop/main-110758//powerpc64-suse-linux/bin/ -c -O2 -g -ftree-vectorize
-maltivec -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute
-Werror -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libdecnumber -I../libdecnumber -fdump-tree-vect-details
../../gcc/gcc/recog.c

The compilation succeeds.


If I run bootstrap with BOOT_CFLAGS="-O2 -g -ftree-vectorize -maltivec
-fdump-tree-vect-details" (i.e., with dump), -quite and removing
-fdump-tree-vect-details in the command line have no effect on the error I get.
It is always:

../../gcc/gcc/recog.c: In function constrain_operands:
../../gcc/gcc/recog.c:2270: internal compiler error: in mark_operand_necessary,
at tree-ssa-dce.c:266

(see backtrace in comment #9)


So dump and -quite affect compilers behavior. Looks like a memory problem?

Ira


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752

Reply via email to