https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70372
Bug ID: 70372 Summary: ICE: in wide_int_to_tree, at tree.c:1488 with -fno-tree-fre and v2ti vectors Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Target: x86_64-pc-linux-gnu Created attachment 38068 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38068&action=edit reduced testcase Compiler output: $ gcc -O -fno-tree-fre testcase.c testcase.c: In function 'foo': testcase.c:5:1: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi] { ^ testcase.c:4:1: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6 foo (v2ti u, v2ti v) ^~~ testcase.c:4:1: internal compiler error: in wide_int_to_tree, at tree.c:1488 0xe4eac3 wide_int_to_tree(tree_node*, generic_wide_int<wide_int_ref_storage<false> > const&) /repo/gcc-trunk/gcc/tree.c:1488 0xe4fd60 build_int_cst_type(tree_node*, long) /repo/gcc-trunk/gcc/tree.c:1311 0xd5964d eliminate_plus_minus_pair /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:824 0xd5964d optimize_ops_list /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:1819 0xd5b1a4 reassociate_bb /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:5105 0xd5ae17 reassociate_bb /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:5198 0xd5da1a do_reassoc /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:5312 0xd5da1a execute_reassoc /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:5399 0xd5da1a execute /repo/gcc-trunk/gcc/tree-ssa-reassoc.c:5438 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. $ gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-234405-checking-yes-rtl-df-nographite/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-234405-checking-yes-rtl-df-nographite Thread model: posix gcc version 6.0.0 20160322 (experimental) (GCC) Tested revisions: trunk r234405 - FAIL trunk r234373 - FAIL 5-branch r234375 - OK