summaryrefslogtreecommitdiff
path: root/gcc/sreal.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/sreal.c')
-rw-r--r--gcc/sreal.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/sreal.c b/gcc/sreal.c
index 62063f33820..f7600212476 100644
--- a/gcc/sreal.c
+++ b/gcc/sreal.c
@@ -72,6 +72,22 @@ dump_sreal (FILE *file, sreal *x)
#endif
}
+DEBUG_FUNCTION void
+debug (sreal &ref)
+{
+ dump_sreal (stderr, &ref);
+}
+
+DEBUG_FUNCTION void
+debug (sreal *ptr)
+{
+ if (ptr)
+ debug (*ptr);
+ else
+ fprintf (stderr, "<nil>\n");
+}
+
+
/* Copy the sreal number. */
static inline void