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

Reply via email to