This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/80067] [6/7 Regression] ICE in fold_comparison with -fsanitize=undefined
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Mar 2017 08:16:59 +0000
- Subject: [Bug sanitizer/80067] [6/7 Regression] ICE in fold_comparison with -fsanitize=undefined
- Auto-submitted: auto-generated
- References: <bug-80067-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80067
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Mar 28 08:16:27 2017
New Revision: 246522
URL: https://gcc.gnu.org/viewcvs?rev=246522&root=gcc&view=rev
Log:
PR sanitizer/80067
* fold-const.c (fold_comparison): Use protected_set_expr_location
instead of SET_EXPR_LOCATION.
* c-c++-common/ubsan/shift-10.c: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/c-c++-common/ubsan/shift-10.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/fold-const.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog