This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67338] New: fold-const sanitizer runtime error in roundup_loc
- 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, 24 Aug 2015 12:21:46 +0000
- Subject: [Bug c/67338] New: fold-const sanitizer runtime error in roundup_loc
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67338
Bug ID: 67338
Summary: fold-const sanitizer runtime error in roundup_loc
Product: gcc
Version: 5.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Target Milestone: ---
Running a sanitized version of gcc 5.2.0 I get the following:
// ../../gcc-5.2.0/gcc/fold-const.c:16036:8: runtime error: negation of
-2147483648 cannot be represented in type 'int'; cast to an unsigned type to
negate this value to itself
// fold-const.c:16036 "val &= - (int) divisor;"
// int should be wide_int?
// Target: x86_64-unknown-linux-gnu
// COLLECT_GCC_OPTIONS='-mtune=generic' '-march=x86-64'
struct { __attribute__((aligned (1 << 28))) double a; };