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

Message ID 87muipbjoy.fsf@ispras.ru
State New
Headers show
Series
  • [committed,obvious] gcov-tool: Mark {merge,rewrite}_usage with noreturn attribute
Related show

Commit Message

Vladislav Ivanishin June 10, 2019, 2:26 p.m.
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.



-- 
Vlad

Patch

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:");