[Bug ipa/80663] New: signed integer overflow in ipa-split.c

zeccav at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon May 8 07:48:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80663

            Bug ID: 80663
           Summary: signed integer overflow in ipa-split.c
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

// from PR ipa/80212
// { dg-options "-O2 --param partial-inlining-entry-probability=1234567" }
// gcc/ipa-split.c:448:4: runtime error: signed integer overflow: 10000 *
1234567 cannot be represented in type 'int'
// ipa-split.c:448 "* PARAM_VALUE (PARAM_PARTIAL_INLINING_ENTRY_PROBABILITY) /
100))"

struct b
{
};
struct d : virtual b
{
};
main () { d a; }


More information about the Gcc-bugs mailing list