https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70225
Bug ID: 70225 Summary: ICE at tree.c:10783 Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tarasevich at cs dot uni-saarland.de Target Milestone: --- Created attachment 37957 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37957&action=edit test case Test case pr24257.c from torture test suite triggers ICE at tree.c:10783, when compiled with "-Os -fcheck-data-deps". GCC 5.3.0 built from source on Ubuntu 14.04 ../build/gcc_530_clean_bin/bin/gcc -Os -fcheck-data-deps -v -save-temps /home/tarasevich/source/gcc_530/gcc/testsuite//gcc.dg//torture//pr24257.c Using built-in specs. COLLECT_GCC=../build/gcc_530_clean_bin/bin/gcc COLLECT_LTO_WRAPPER=/home/tarasevich/build/gcc_530_clean_bin/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../../source/gcc_530/configure --prefix=/home/tarasevich/build/gcc_530_clean_bin/ --enable-languages=c --disable-multilib --disable-bootstrap CC=/home/tarasevich/build/llvm_371_bin/bin/clang CXX=/home/tarasevich/build/llvm_371_bin/bin/clang++ Thread model: posix gcc version 5.3.0 (GCC) COLLECT_GCC_OPTIONS='-Os' '-fcheck-data-deps' '-v' '-save-temps' '-mtune=generic' '-march=x86-64' /home/tarasevich/build/gcc_530_clean_bin/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/cc1 -E -quiet -v -imultiarch x86_64-linux-gnu /home/tarasevich/source/gcc_530/gcc/testsuite//gcc.dg//torture//pr24257.c -mtune=generic -march=x86-64 -fcheck-data-deps -Os -fpch-preprocess -o pr24257.i ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/home/tarasevich/build/gcc_530_clean_bin/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/tarasevich/build/gcc_530_clean_bin/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include /usr/local/include /home/tarasevich/build/gcc_530_clean_bin/include /home/tarasevich/build/gcc_530_clean_bin/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. COLLECT_GCC_OPTIONS='-Os' '-fcheck-data-deps' '-v' '-save-temps' '-mtune=generic' '-march=x86-64' /home/tarasevich/build/gcc_530_clean_bin/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/cc1 -fpreprocessed pr24257.i -quiet -dumpbase pr24257.c -mtune=generic -march=x86-64 -auxbase pr24257 -Os -version -fcheck-data-deps -o pr24257.s GNU C11 (GCC) version 5.3.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.2.1 Compatible Clang 3.7.1 (tags/RELEASE_371/final 263010), GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C11 (GCC) version 5.3.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 4.2.1 Compatible Clang 3.7.1 (tags/RELEASE_371/final 263010), GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: c53bb545b4c066cdbf5e42f0b9d9ad8b /home/tarasevich/source/gcc_530/gcc/testsuite//gcc.dg//torture//pr24257.c: In function 'oof': /home/tarasevich/source/gcc_530/gcc/testsuite//gcc.dg//torture//pr24257.c:20:6: internal compiler error: in int_cst_value, at tree.c:10783 void oof(A *s, int n) ^ 0xaed214 int_cst_value(tree_node const*) ../../../source/gcc_530/gcc/tree.c:10783 0xece07d init_omega_eq_with_af(omega_pb_d*, unsigned int, unsigned int, tree_node*, data_dependence_relation*) ../../../source/gcc_530/gcc/tree-data-ref.c:3772 0xecd417 omega_setup_subscript(tree_node*, tree_node*, data_dependence_relation*, omega_pb_d*, bool*) ../../../source/gcc_530/gcc/tree-data-ref.c:3922 0xecd417 init_omega_for_ddr_1(data_reference*, data_reference*, data_dependence_relation*, omega_pb_d*, bool*) ../../../source/gcc_530/gcc/tree-data-ref.c:3959 0xec7b63 init_omega_for_ddr(data_dependence_relation*, bool*) ../../../source/gcc_530/gcc/tree-data-ref.c:4142 0xec7b63 compute_affine_dependence(data_dependence_relation*, loop*) ../../../source/gcc_530/gcc/tree-data-ref.c:4301 0xec83ba compute_all_dependences(vec<data_reference*, va_heap, vl_ptr>, vec<data_dependence_relation*, va_heap, vl_ptr>*, vec<loop*, va_heap, vl_ptr>, bool) ../../../source/gcc_530/gcc/tree-data-ref.c:4384 0xec8de8 compute_data_dependences_for_loop(loop*, bool, vec<loop*, va_heap, vl_ptr>*, vec<data_reference*, va_heap, vl_ptr>*, vec<data_dependence_relation*, va_heap, vl_ptr>*) ../../../source/gcc_530/gcc/tree-data-ref.c:4712 0xec9148 analyze_all_data_dependences(loop*) ../../../source/gcc_530/gcc/tree-data-ref.c:4820 0xec9148 tree_check_data_deps() ../../../source/gcc_530/gcc/tree-data-ref.c:4868 0xa1b99d (anonymous namespace)::pass_check_data_deps::execute(function*) ../../../source/gcc_530/gcc/tree-ssa-loop.c:342 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.