This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/80663] New: signed integer overflow in ipa-split.c
- 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, 08 May 2017 07:00:44 +0000
- Subject: [Bug ipa/80663] New: signed integer overflow in ipa-split.c
- Auto-submitted: auto-generated
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; }