This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/67486] New: ira-color.c sanitizer detects signed integer overflow
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Sep 2015 14:54:44 +0000
- Subject: [Bug tree-optimization/67486] New: ira-color.c sanitizer detects signed integer overflow
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67486
Bug ID: 67486
Summary: ira-color.c sanitizer detects signed integer overflow
Product: gcc
Version: 5.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Target Milestone: ---
Created attachment 36302
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36302&action=edit
C file to compile with g++ -Os -fPIC -std=gnu++11
// g++ -Os -fPIC -std=gnu++11
// sanitizer error message
// gcc/ira-color.c:1816:41: runtime error: signed integer overflow: 2097195682
- -131071000 cannot be represented in type 'int [33]'
// offending statement "full_costs[j] -= conflict_costs[k];"
// Target: x86_64-unknown-linux-gnu
// COLLECT_GCC_OPTIONS='-Os' '-fPIC' '-std=gnu++11' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
The source is pretty large I am attaching it