diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2017-07-25 09:59:44 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2017-07-25 09:59:44 +0000 |
commit | d172f538fd607f6e603af086ddcb0c112d199d7d (patch) | |
tree | 40ac61f147ffa123b216eb9b3c851f2b267cee43 /gcc/gimple-pretty-print.c | |
parent | d49718d6ff41cdf8ed6b013b9e099f7ec3541053 (diff) | |
download | gcc-d172f538fd607f6e603af086ddcb0c112d199d7d.zip gcc-d172f538fd607f6e603af086ddcb0c112d199d7d.tar.gz gcc-d172f538fd607f6e603af086ddcb0c112d199d7d.tar.bz2 |
re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)
gcc/
PR 81487
* hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
* gimple-pretty-print.c (dump_profile, dump_probability): Same.
* tree-ssa-structalias.c (alias_get_name): Same.
From-SVN: r250499
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r-- | gcc/gimple-pretty-print.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index 4012b3b..c8eb9c4 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -91,10 +91,10 @@ dump_profile (int frequency, profile_count &count) char *buf; if (count.initialized_p ()) - asprintf (&buf, "[%.2f%%] [count: %" PRId64 "]", fvalue, - count.to_gcov_type ()); + buf = xasprintf ("[%.2f%%] [count: %" PRId64 "]", fvalue, + count.to_gcov_type ()); else - asprintf (&buf, "[%.2f%%] [count: INV]", fvalue); + buf = xasprintf ("[%.2f%%] [count: INV]", fvalue); const char *ret = xstrdup_for_dump (buf); free (buf); @@ -121,12 +121,12 @@ dump_probability (profile_probability probability, profile_count &count) char *buf; if (count.initialized_p ()) - asprintf (&buf, "[%.2f%%] [count: %" PRId64 "]", fvalue, - count.to_gcov_type ()); + buf = xasprintf ("[%.2f%%] [count: %" PRId64 "]", fvalue, + count.to_gcov_type ()); else if (probability.initialized_p ()) - asprintf (&buf, "[%.2f%%] [count: INV]", fvalue); + buf = xasprintf ("[%.2f%%] [count: INV]", fvalue); else - asprintf (&buf, "[INV] [count: INV]"); + buf = xasprintf ("[INV] [count: INV]"); const char *ret = xstrdup_for_dump (buf); free (buf); |