[Bug rtl-optimization/103437] New: gcc/ira-color.c:2813:5: runtime error: signed integer overflow: 15 * 147462000 cannot be represented in type 'int'
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 26 09:16:44 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103437
Bug ID: 103437
Summary: gcc/ira-color.c:2813:5: runtime error: signed integer
overflow: 15 * 147462000 cannot be represented in type
'int'
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: vmakarov at gcc dot gnu.org
Blocks: 63426
Target Milestone: ---
Happens for one of Go test-cases:
$ /home/marxin/Programming/gcc/objdir/gcc/testsuite/go5/../../gccgo
-B/home/marxin/Programming/gcc/objdir/gcc/testsuite/go5/../../
/home/marxin/Programming/gcc/gcc/testsuite/go.test/test/cmplxdivide.go
/home/marxin/Programming/gcc/gcc/testsuite/go.test/test/cmplxdivide1.go
-fdiagnostics-plain-output
-I/home/marxin/Programming/gcc/objdir/x86_64-pc-linux-gnu/./libgo
-pedantic-errors
-L/home/marxin/Programming/gcc/objdir/x86_64-pc-linux-gnu/./libgo
-L/home/marxin/Programming/gcc/objdir/x86_64-pc-linux-gnu/./libgo/.libs -lm -o
./cmplxdivide.o
../../gcc/ira-color.c:2813:5: runtime error: signed integer overflow: 15 *
147462000 cannot be represented in type 'int'
#0 0x28667a3 in setup_allocno_priorities ../../gcc/ira-color.c:2813
#1 0x288adcc in fast_allocation ../../gcc/ira-color.c:4920
#2 0x288adcc in ira_color() ../../gcc/ira-color.c:5016
#3 0x27e4b2c in ira ../../gcc/ira.c:5765
#4 0x27e4b2c in execute ../../gcc/ira.c:6075
#5 0x2dcf8f1 in execute_one_pass(opt_pass*) ../../gcc/passes.c:2567
#6 0x2dd2e74 in execute_pass_list_1 ../../gcc/passes.c:2656
#7 0x2dd2ebb in execute_pass_list_1 ../../gcc/passes.c:2657
#8 0x2dd2f81 in execute_pass_list(function*, opt_pass*)
../../gcc/passes.c:2667
#9 0x18b6eb0 in cgraph_node::expand() ../../gcc/cgraphunit.c:1834
#10 0x18bc40b in output_in_order ../../gcc/cgraphunit.c:2141
#11 0x18bc40b in symbol_table::compile() ../../gcc/cgraphunit.c:2345
#12 0x18bc40b in symbol_table::compile() ../../gcc/cgraphunit.c:2259
#13 0x18caa27 in symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2529
#14 0x335f42f in compile_file ../../gcc/toplev.c:479
#15 0xd0655d in do_compile ../../gcc/toplev.c:2156
#16 0xd0655d in toplev::main(int, char**) ../../gcc/toplev.c:2308
#17 0xd0bc80 in main ../../gcc/main.c:39
#18 0x7ffff6f175bf in __libc_start_call_main (/lib64/libc.so.6+0x405bf)
#19 0x7ffff6f1767b in __libc_start_main_alias_2 (/lib64/libc.so.6+0x4067b)
#20 0xd0c1a4 in _start
(/home/marxin/Programming/gcc/objdir/gcc/go1+0xd0c1a4)
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426
[Bug 63426] [meta-bug] Issues found with -fsanitize=undefined
More information about the Gcc-bugs
mailing list