re PR sanitizer/64289 (ICE with -fsanitize=float-cast-overflow)
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Dec 2014 09:26:49 +0000 (10:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Dec 2014 09:26:49 +0000 (10:26 +0100)
commit8f94a8c4cc27e04b3c8ef2f8b650263aab6ff4db
tree3e4f830105b96d05efc3b91b0cae82022f8bb826
parente16a69a8f22a2b86f216e917be5578fa4d21d7b8
re PR sanitizer/64289 (ICE with -fsanitize=float-cast-overflow)

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.

From-SVN: r218811
gcc/c/ChangeLog
gcc/c/c-convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr64289.c [new file with mode: 0644]