https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71179
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |tree-optimization --- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> --- Confirmed as a tree-optimization problem. (gdb) b internal_error Breakpoint 1 at 0x192bbd1: file ../../git/gcc/gcc/diagnostic.c, line 1254. (gdb) r Starting program: /home/uros/gcc-build/prev-gcc/cc1 -funsafe-math-optimizations -O2 -msse4.1 -quiet bug285.c warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000 Breakpoint 1, internal_error (gmsgid=0x20c9c85 "in %s, at %s:%d") at ../../git/gcc/gcc/diagnostic.c:1254 1254 rich_location richloc (line_table, input_location); (gdb) bt #0 internal_error (gmsgid=0x20c9c85 "in %s, at %s:%d") at ../../git/gcc/gcc/diagnostic.c:1254 #1 0x000000000192bca9 in fancy_abort (file=0x1a23a30 "../../git/gcc/gcc/fold-const.c", line=2360, function=0x1a27720 <fold_convert_loc(unsigned int, tree_node*, tree_node*)::__FUNCTION__> "fold_convert_loc") at ../../git/gcc/gcc/diagnostic.c:1327 #2 0x00000000009fb2c0 in fold_convert_loc (loc=0, type=0x2aaab02c6e70, arg=0x2aaaae9de318) at ../../git/gcc/gcc/fold-const.c:2360 #3 0x0000000000fad13c in transform_add_to_multiply (stmt=0x2aaaaed0e840, ops=0x7fffffffc890) at ../../git/gcc/gcc/tree-ssa-reassoc.c:1816 #4 0x0000000000fb7ade in reassociate_bb (bb=0x2aaaae9cbbc8) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5189 #5 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaaae9cbd68) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #6 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaaae9cbe38) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #7 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaaae9cbf08) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #8 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaab0402000) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #9 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaab04020d0) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #10 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaab04021a0) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #11 0x0000000000fb7f6d in reassociate_bb (bb=0x2aaaae9cb410) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5278 #12 0x0000000000fb7fdb in do_reassoc () at ../../git/gcc/gcc/tree-ssa-reassoc.c:5392 #13 0x0000000000fb8820 in execute_reassoc (insert_powi_p=true) at ../../git/gcc/gcc/tree-ssa-reassoc.c:5479 (gdb) f 2 #2 0x00000000009fb2c0 in fold_convert_loc (loc=0, type=0x2aaab02c6e70, arg=0x2aaaae9de318) at ../../git/gcc/gcc/fold-const.c:2360 2360 gcc_assert (tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE (orig))); (gdb) list 2355 } 2356 2357 case VECTOR_TYPE: 2358 if (integer_zerop (arg)) 2359 return build_zero_vector (type); 2360 gcc_assert (tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE (orig))); 2361 gcc_assert (INTEGRAL_TYPE_P (orig) || POINTER_TYPE_P (orig) 2362 || TREE_CODE (orig) == VECTOR_TYPE); 2363 return fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, arg);