wide-int.cc (debug): New.

* wide-int.cc (debug) [const wide_int &]: New.
	(debug) [const wide_int *]: New.
	(debug) [const widest_int &]: New.
	(debug) [const widest_int *]: New.

From-SVN: r253866
This commit is contained in:
Aldy Hernandez 2017-10-18 19:49:08 +00:00 committed by Aldy Hernandez
parent 9cfd7f2c79
commit e61a4f5212
2 changed files with 40 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2017-10-18 Aldy Hernandez <aldyh@redhat.com>
* wide-int.cc (debug) [const wide_int &]: New.
(debug) [const wide_int *]: New.
(debug) [const widest_int &]: New.
(debug) [const widest_int *]: New.
2017-10-18 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/82556

View file

@ -2146,6 +2146,39 @@ template void generic_wide_int <wide_int_ref_storage <true> >::dump () const;
template void offset_int::dump () const;
template void widest_int::dump () const;
/* We could add all the above ::dump variants here, but wide_int and
widest_int should handle the common cases. Besides, you can always
call the dump method directly. */
DEBUG_FUNCTION void
debug (const wide_int &ref)
{
ref.dump ();
}
DEBUG_FUNCTION void
debug (const wide_int *ptr)
{
if (ptr)
debug (*ptr);
else
fprintf (stderr, "<nil>\n");
}
DEBUG_FUNCTION void
debug (const widest_int &ref)
{
ref.dump ();
}
DEBUG_FUNCTION void
debug (const widest_int *ptr)
{
if (ptr)
debug (*ptr);
else
fprintf (stderr, "<nil>\n");
}
#if CHECKING_P