[Bug sanitizer/85213] [8 Regression] -fsanitize=undefined internal compiler error: in fold_convert_loc, at fold-const.c:2402
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 6 11:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85213
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Apr 6 11:24:36 2018
New Revision: 259167
URL: https://gcc.gnu.org/viewcvs?rev=259167&root=gcc&view=rev
Log:
PR sanitizer/85213
* fold-const.c (twoval_comparison_p): Remove SAVE_P argument and don't
look through SAVE_EXPRs with non-side-effects argument. Adjust
recursive calls.
(fold_comparison): Adjust twoval_comparison_p caller, don't handle
save_p here.
* c-c++-common/ubsan/pr85213.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr85213.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list