This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/67485] expmed.c sanitizer detects 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: Sat, 30 Apr 2016 11:45:35 +0000
- Subject: [Bug middle-end/67485] expmed.c sanitizer detects overflow
- Auto-submitted: auto-generated
- References: <bug-67485-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485
--- Comment #1 from Vittorio Zecca <zeccav at gmail dot com> ---
Still in 6.1.0 at line 3162 of expmed.c
"val_so_far -= (HOST_WIDE_INT) 1 << log;"
../../gcc-6.1.0/gcc/expmed.c:3162:42: runtime error: signed integer overflow:
-9223372036854775808 - 1 cannot be represented in type 'long int'