This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/83014] ICE in pretty-print with -fsanitize=bounds
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Nov 2017 08:35:41 +0000
- Subject: [Bug sanitizer/83014] ICE in pretty-print with -fsanitize=bounds
- Auto-submitted: auto-generated
- References: <bug-83014-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83014
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Nov 24 08:35:10 2017
New Revision: 255134
URL: https://gcc.gnu.org/viewcvs?rev=255134&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/ubsan/pr83014.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/ubsan.c