[committed, obvious] gcov-tool: Mark {merge,rewrite}_usage with noreturn attribute

Vladislav Ivanishin vlad@ispras.ru
Mon Jun 10 14:26:00 GMT 2019


This makes similar functions merge_usage, rewrite_usage, and
overlap_usage all have ATTRIBUTE_NORETURN.  (The latter was marked with
it in r264562, the other two were not).

Checked in as r272119.

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog       (revision 272118)
+++ gcc/ChangeLog       (working copy)
@@ -1,3 +1,8 @@
+2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
+
+       * gcov-tool.c (merge_usage, rewrite_usage): Mark with
+       ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
+
 2019-06-10  Jakub Jelinek  <jakub@redhat.com>

        * tree.def (OMP_SCAN): New tree code.
Index: gcc/gcov-tool.c
===================================================================
--- gcc/gcov-tool.c     (revision 272118)
+++ gcc/gcov-tool.c     (working copy)
@@ -188,7 +188,7 @@

 /* Print merge usage and exit.  */

-static void
+static void ATTRIBUTE_NORETURN
 merge_usage (void)
 {
   fnotice (stderr, "Merge subcomand usage:");
@@ -284,7 +284,7 @@

 /* Print profile rewrite usage and exit.  */

-static void
+static void ATTRIBUTE_NORETURN
 rewrite_usage (void)
 {
   fnotice (stderr, "Rewrite subcommand usage:");


-- 
Vlad



More information about the Gcc-patches mailing list