gcc build with -fsanitize=undefined shows: markus@x4 testsuite % gcc -c -Os gcc.dg/atomic/c11-atomic-exec-3.c gcc/ira.c:2465:24: runtime error: signed integer overflow: -2095982000 + -65536000 cannot be represented in type 'int' gcc/ira.c:2472:31: runtime error: signed integer overflow: -2095102000 + -65536000 cannot be represented in type 'int'
Author: vmakarov Date: Mon Dec 15 22:18:51 2014 New Revision: 218766 URL: https://gcc.gnu.org/viewcvs?rev=218766&root=gcc&view=rev Log: 2014-12-15 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/63397 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use int64_t. (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto. * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto. (ira_reg_cost, ira_mem_cost): Ditto. (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto. (calculate_allocation_cost, do_reload): Use the right format for int64_t values. Modified: trunk/gcc/ChangeLog trunk/gcc/ira-int.h trunk/gcc/ira.c
Fixed. Thanks.