[Bug sanitizer/64289] ICE with -fsanitize=float-cast-overflow
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 17 09:27:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64289
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 17 09:26:49 2014
New Revision: 218811
URL: https://gcc.gnu.org/viewcvs?rev=218811&root=gcc&view=rev
Log:
PR sanitizer/64289
* c-convert.c: Include ubsan.h.
(convert): For real -> integral casts and
-fsanitize=float-cast-overflow don't call convert_to_integer, but
instead instrument the float cast directly.
* c-c++-common/ubsan/pr64289.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr64289.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-convert.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list