diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2013-01-03 21:06:49 +0100 |
---|---|---|
committer | Marc Glisse <glisse@gcc.gnu.org> | 2013-01-03 20:06:49 +0000 |
commit | 8ac16127cf8c60a4fd33288cb044043cbf014bd6 (patch) | |
tree | 8333424ab8e4eaff4241a11934358310633c59e2 /gcc | |
parent | ffa6d5dfbfd38f61a92c5dc7ff18074f893da1c4 (diff) | |
download | gcc-8ac16127cf8c60a4fd33288cb044043cbf014bd6.zip gcc-8ac16127cf8c60a4fd33288cb044043cbf014bd6.tar.gz gcc-8ac16127cf8c60a4fd33288cb044043cbf014bd6.tar.bz2 |
re PR bootstrap/50167 (gmp memory functions are extern "C" (graphite))
2013-01-03 Marc Glisse <marc.glisse@inria.fr>
PR bootstrap/50167
gcc/
* graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
* graphite-poly.c (debug_gmp_value): Likewise.
PR bootstrap/50177
libcpp/
* line-map.c (get_combined_adhoc_loc): Cast from extern "C" type.
(new_linemap): Likewise.
(linemap_enter_macro): Likewise.
From-SVN: r194868
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/graphite-interchange.c | 11 | ||||
-rw-r--r-- | gcc/graphite-poly.c | 7 |
3 files changed, 9 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf83a07..80bfc2f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-01-03 Marc Glisse <marc.glisse@inria.fr> + + PR bootstrap/50167 + * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf. + * graphite-poly.c (debug_gmp_value): Likewise. + 2013-01-03 Uros Bizjak <ubizjak@gmail.com> PR target/55712 diff --git a/gcc/graphite-interchange.c b/gcc/graphite-interchange.c index eb1a8b5..4b97627 100644 --- a/gcc/graphite-interchange.c +++ b/gcc/graphite-interchange.c @@ -240,15 +240,8 @@ pdr_stride_in_loop (mpz_t stride, graphite_dim_t depth, poly_dr_p pdr) if (dump_file && (dump_flags & TDF_DETAILS)) { - char *str; - void (*gmp_free) (void *, size_t); - - fprintf (dump_file, "\nStride in BB_%d, DR_%d, depth %d:", - pbb_index (pbb), PDR_ID (pdr), (int) depth); - str = mpz_get_str (0, 10, stride); - fprintf (dump_file, " %s ", str); - mp_get_memory_functions (NULL, NULL, &gmp_free); - (*gmp_free) (str, strlen (str) + 1); + gmp_fprintf (dump_file, "\nStride in BB_%d, DR_%d, depth %d: %Zd ", + pbb_index (pbb), PDR_ID (pdr), (int) depth, stride); } } diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index 21bab94..0662387 100644 --- a/gcc/graphite-poly.c +++ b/gcc/graphite-poly.c @@ -55,12 +55,7 @@ along with GCC; see the file COPYING3. If not see 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); + gmp_fprintf (stderr, "%Zd", val); } /* Return the maximal loop depth in SCOP. */ |