From: Eric Botcazou Date: Tue, 7 Nov 2017 23:58:52 +0000 (+0000) Subject: * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. X-Git-Tag: basepoints/gcc-9~3566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f47440662e9bdef99847512106a4cc53a0e19cbe;p=thirdparty%2Fgcc.git * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. From-SVN: r254513 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b9e91a2fbaa..2c7cecb0bb17 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 ba3d6d6898c5..55c623e37bb4 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 ());