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

Reply via email to