This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/80100] simplify-rtx.c sanitizer detects undefined behaviour with optimization
- 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, 11 Apr 2017 17:22:22 +0000
- Subject: [Bug middle-end/80100] simplify-rtx.c sanitizer detects undefined behaviour with optimization
- Auto-submitted: auto-generated
- References: <bug-80100-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80100
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 11 17:21:51 2017
New Revision: 246851
URL: https://gcc.gnu.org/viewcvs?rev=246851&root=gcc&view=rev
Log:
PR middle-end/80100
* simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
left shift in unsigned HOST_WIDE_INT type.
* gcc.dg/pr80100.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr80100.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/simplify-rtx.c
trunk/gcc/testsuite/ChangeLog