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: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Aug 2016 16:48:47 +0000
- Subject: [Bug middle-end/67485] expmed.c sanitizer detects overflow
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-67485-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Aug 16 16:48:16 2016
New Revision: 239507
URL: https://gcc.gnu.org/viewcvs?rev=239507&root=gcc&view=rev
Log:
PR middle-end/67485
* expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
only cast it to SHWI for the final comparison.
* gcc.c-torture/compile/pr67485.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr67485.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expmed.c
trunk/gcc/testsuite/ChangeLog