From 94e5ea9f51e811e063babaf8c2bcdc1467253638 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Tue, 7 Nov 2017 23:58:52 +0000 Subject: [PATCH] * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254513 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/gimple-pretty-print.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b9e91a2fba..2c7cecb0bb1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-07 Eric Botcazou + + * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. + 2017-11-07 Jakub Jelinek PR target/82855 diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index ba3d6d6898c..55c623e37bb 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 ()); -- 2.11.4.GIT