[Bug sanitizer/83014] ICE in pretty-print with -fsanitize=bounds
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 23 11:19:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83014
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42695
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42695&action=edit
gcc8-pr83014.patch
Untested fix. I believe this is because on mingw host HOST_LONG_LONG_FORMAT
is redefined to "I64", but that is a Microsoft-ism that pp_printf of course
doesn't handle. pp_unsigned_wide_integer or pp_scalar it uses should handle
this fine by using the host sprintf into a temporary buffer and then just
appending the digit buffer.
As this needs mingw host, I can't really test whether it fixes this though, can
only bootstrap/regtest it on linux.
More information about the Gcc-bugs
mailing list