re PR sanitizer/83014 (ICE in pretty-print with -fsanitize=bounds)
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Nov 2017 08:35:10 +0000 (09:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Nov 2017 08:35:10 +0000 (09:35 +0100)
commit96281645bdaeb0e7fb5f7340c47f60a2dbc800b2
tree3a4e2f0ac43fd6daf365662ac82800c3ccd775db
parent51feb980c997f8046fa1a679a27828bcca2d3754
re PR sanitizer/83014 (ICE in pretty-print with -fsanitize=bounds)

PR sanitizer/83014
* ubsan.c (ubsan_type_descriptor): Use pp_unsigned_wide_integer
instead of pp_printf with HOST_WIDE_INT_PRINT_DEC.  Avoid calling
tree_to_uhwi twice.

* gcc.dg/ubsan/pr83014.c: New test.

From-SVN: r255134
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr83014.c [new file with mode: 0644]
gcc/ubsan.c