Correct the alpha sorting of the short options in the usage description of the gprof...
authorNick Clifton <nickc@redhat.com>
Mon, 20 May 2019 16:17:24 +0000 (17:17 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 20 May 2019 16:17:24 +0000 (17:17 +0100)
PR 24569
* gprof.c (usage): Restore alphabetical sorting to short options
list.  Add -r, -R and -t short options to the list.
(main): Add comment about -g and -G possibly being deprecated.
* gprof.texi: Update usage example in line with changes above.

gprof/ChangeLog
gprof/gprof.c
gprof/gprof.texi

index 614ef4589dc499588776aa6dcfc918f2c34ae099..1acb81aabc844058b3b91cd650f2070b04af4e45 100644 (file)
@@ -1,3 +1,11 @@
+2019-05-20  Nick Clifton  <nickc@redhat.com>
+
+       PR 24569
+       * gprof.c (usage): Restore alphabetical sorting to short options
+       list.  Add -r, -R and -t short options to the list.
+       (main): Add comment about -g and -G possibly being deprecated.
+       * gprof.texi: Update usage example in line with changes above.
+
 2019-05-20  Nick Clifton  <nickc@redhat.com>
 
        * po/de.po: Updated German translation.
index db425a6996daba899bddb0c29fe129ec8c85ef8f..da1411b30a6e20d964cedd287ce77020a854af88 100644 (file)
@@ -160,7 +160,7 @@ static void
 usage (FILE *stream, int status)
 {
   fprintf (stream, _("\
-Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqSQZ][name]] [-I dirs]\n\
+Usage: %s [-[abcDhilLrsTvwxyz]] [-[ACeEfFJnNOpPqQRStZ][name]] [-I dirs]\n\
        [-d[num]] [-k from/to] [-m min-count] [-t table-length]\n\
        [--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n\
        [--[no-]flat-profile[=name]] [--[no-]graph[=name]]\n\
@@ -269,6 +269,10 @@ main (int argc, char **argv)
        case 'f':
          sym_id_add (optarg, INCL_GRAPH);
          break;
+         /* FIXME: The -g and -G options are not present in the getopt_long
+            invocation above, and they are not documented in gprof.texi.
+            Therefore they appear to be deprecated.  Test this theory and
+            delete them if true.  */
        case 'g':
          sym_id_add (optarg, EXCL_FLAT);
          break;
index 5d9f659bed10d57d8206ec4bdffbd0127bb821a4..790cd6b133495a4da9c84a809fc0736df698bff4 100644 (file)
@@ -110,7 +110,7 @@ in the section entitled ``GNU Free Documentation License''.
 
 @smallexample
 @c man begin SYNOPSIS
-gprof [ -[abcDhilLrsTvwxyz] ] [ -[ACeEfFJnNOpPqQZ][@var{name}] ]
+gprof [ -[abcDhilLrsTvwxyz] ] [ -[ACeEfFJnNOpPqQRStZ][@var{name}] ]
  [ -I @var{dirs} ] [ -d[@var{num}] ] [ -k @var{from/to} ]
  [ -m @var{min-count} ] [ -R @var{map_file} ] [ -t @var{table-length} ]
  [ --[no-]annotated-source[=@var{name}] ]
This page took 0.02765 seconds and 4 git commands to generate.