aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite-ppl.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2011-01-25 06:44:41 +0000
committerSebastian Pop <spop@gcc.gnu.org>2011-01-25 06:44:41 +0000
commit07f3593c36be1a200b3852083b95f364ae413c7d (patch)
tree51f0ffcab94891fe4d511642f39709dd4efcb4a2 /gcc/graphite-ppl.c
parent27b9aa80ca495e2a8ec73b7e2d04e7e4462b6355 (diff)
downloadgcc-07f3593c36be1a200b3852083b95f364ae413c7d.zip
gcc-07f3593c36be1a200b3852083b95f364ae413c7d.tar.gz
gcc-07f3593c36be1a200b3852083b95f364ae413c7d.tar.bz2
Add debug_gmp_value.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com> * graphite-ppl.c (debug_gmp_value): New. * graphite-ppl.h (debug_gmp_value): Declared. From-SVN: r169199
Diffstat (limited to 'gcc/graphite-ppl.c')
-rw-r--r--gcc/graphite-ppl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/graphite-ppl.c b/gcc/graphite-ppl.c
index fffa3ee..3013b33c 100644
--- a/gcc/graphite-ppl.c
+++ b/gcc/graphite-ppl.c
@@ -502,4 +502,17 @@ ppl_build_relation (int dim, int pos1, int pos2, int c,
return cstr;
}
+/* Print to STDERR the GMP value VAL. */
+
+DEBUG_FUNCTION void
+debug_gmp_value (mpz_t val)
+{
+ char *str = mpz_get_str (0, 10, val);
+ void (*gmp_free) (void *, size_t);
+
+ fprintf (stderr, "%s", str);
+ mp_get_memory_functions (NULL, NULL, &gmp_free);
+ (*gmp_free) (str, strlen (str) + 1);
+}
+
#endif