]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR sanitizer/69099 (ICE when compiling gcc.dg/atomic/c11-atomic-exec-2.c with...
authorMarek Polacek <polacek@redhat.com>
Wed, 6 Jan 2016 10:24:15 +0000 (10:24 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 6 Jan 2016 10:24:15 +0000 (10:24 +0000)
commit6b131d5b1e7ac7d2c75f71505cd935c3dac28a4b
treefed93df58aa881dc5fef68cb7b3ecaffb7b22bd7
parent396a2ee2ecfc2deb2f6672c9149be22ce244d242
re PR sanitizer/69099 (ICE when compiling gcc.dg/atomic/c11-atomic-exec-2.c with -fsanitize=float-cast-overflow)

PR sanitizer/69099
* c-convert.c (convert) [INTEGER_TYPE]: Drop ARG.  Don't pass ARG to
ubsan_instrument_float_cast.  Fold EXPR.  Use NULL_TREE instead of
NULL.

* convert.c (convert_to_integer_1): Adjust call to
ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
* ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
EXPR instead of ARG.
* ubsan.h (ubsan_instrument_float_cast): Adjust declaration.

* gcc.dg/ubsan/float-cast-overflow-atomic.c: New test.

From-SVN: r232099
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-convert.c
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/float-cast-overflow-atomic.c [new file with mode: 0644]
gcc/ubsan.c
gcc/ubsan.h