aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-11-07 23:58:52 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-11-07 23:58:52 +0000
commitf47440662e9bdef99847512106a4cc53a0e19cbe (patch)
tree96e7e275bdff485fb3d794d616469d3ccfdcdf71
parent5666f12bbaee553b39876ab1d9f5bb6d2c41303d (diff)
downloadgcc-f47440662e9bdef99847512106a4cc53a0e19cbe.zip
gcc-f47440662e9bdef99847512106a4cc53a0e19cbe.tar.gz
gcc-f47440662e9bdef99847512106a4cc53a0e19cbe.tar.bz2
* gimple-pretty-print.c (dump_profile): Return "" instead of NULL.
From-SVN: r254513
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gimple-pretty-print.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8b9e91a..2c7cecb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2017-11-07 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gimple-pretty-print.c (dump_profile): Return "" instead of NULL.
+
2017-11-07 Jakub Jelinek <jakub@redhat.com>
PR target/82855
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c
index ba3d6d6..55c623e 100644
--- a/gcc/gimple-pretty-print.c
+++ b/gcc/gimple-pretty-print.c
@@ -86,7 +86,7 @@ dump_profile (profile_count &count)
{
char *buf;
if (!count.initialized_p ())
- return NULL;
+ return "";
if (count.ipa_p ())
buf = xasprintf ("[count: %" PRId64 "]",
count.to_gcov_type ());