http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59333
Bug ID: 59333 Summary: ICE with long long and -m32 -fsanitize=undefined Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org long long int foo (long long int i, long long int j) { return i * j; } $ ./cc1 -quiet -fsanitize=undefined x.c -m32 x.c: In function ‘foo’: x.c:4:3: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7672 return i * j; ^ 0x72fc9c expand_expr_addr_expr_1 /home/marek/src/gcc/gcc/expr.c:7672 0x7239f1 expand_expr_addr_expr /home/marek/src/gcc/gcc/expr.c:7756 0x7239f1 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) /home/marek/src/gcc/gcc/expr.c:10508 0x63b788 expand_expr /home/marek/src/gcc/gcc/expr.h:453 0x63b788 store_one_arg /home/marek/src/gcc/gcc/calls.c:4513 0x640c70 expand_call(tree_node*, rtx_def*, int) /home/marek/src/gcc/gcc/calls.c:3052 0x62803c expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /home/marek/src/gcc/gcc/builtins.c:6904 0x723912 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) /home/marek/src/gcc/gcc/expr.c:10283 0x811544 expand_normal /home/marek/src/gcc/gcc/expr.h:459 0x811544 ubsan_expand_si_overflow_mul_check(gimple_statement_base*) /home/marek/src/gcc/gcc/internal-fn.c:421 0x6543f7 expand_call_stmt /home/marek/src/gcc/gcc/cfgexpand.c:2185 0x6543f7 expand_gimple_stmt_1 /home/marek/src/gcc/gcc/cfgexpand.c:3164 0x6543f7 expand_gimple_stmt /home/marek/src/gcc/gcc/cfgexpand.c:3316 0x655b63 expand_gimple_basic_block /home/marek/src/gcc/gcc/cfgexpand.c:5156 0x657496 gimple_expand_cfg /home/marek/src/gcc/gcc/cfgexpand.c:5722 0x657496 execute /home/marek/src/gcc/gcc/cfgexpand.c:5942