• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisionefa9760914311fdd9b9a299f1e6cd5a85d64c5ff (tree)
l'heure2019-05-21 01:17:24
AuteurNick Clifton <nickc@redh...>
CommiterNick Clifton

Message de Log

Correct the alpha sorting of the short options in the usage description of the gprof program.

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.

Change Summary

Modification

--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,5 +1,13 @@
11 2019-05-20 Nick Clifton <nickc@redhat.com>
22
3+ PR 24569
4+ * gprof.c (usage): Restore alphabetical sorting to short options
5+ list. Add -r, -R and -t short options to the list.
6+ (main): Add comment about -g and -G possibly being deprecated.
7+ * gprof.texi: Update usage example in line with changes above.
8+
9+2019-05-20 Nick Clifton <nickc@redhat.com>
10+
311 * po/de.po: Updated German translation.
412
513 2019-05-08 Alan Modra <amodra@gmail.com>
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -160,7 +160,7 @@ static void
160160 usage (FILE *stream, int status)
161161 {
162162 fprintf (stream, _("\
163-Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqSQZ][name]] [-I dirs]\n\
163+Usage: %s [-[abcDhilLrsTvwxyz]] [-[ACeEfFJnNOpPqQRStZ][name]] [-I dirs]\n\
164164 [-d[num]] [-k from/to] [-m min-count] [-t table-length]\n\
165165 [--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n\
166166 [--[no-]flat-profile[=name]] [--[no-]graph[=name]]\n\
@@ -269,6 +269,10 @@ main (int argc, char **argv)
269269 case 'f':
270270 sym_id_add (optarg, INCL_GRAPH);
271271 break;
272+ /* FIXME: The -g and -G options are not present in the getopt_long
273+ invocation above, and they are not documented in gprof.texi.
274+ Therefore they appear to be deprecated. Test this theory and
275+ delete them if true. */
272276 case 'g':
273277 sym_id_add (optarg, EXCL_FLAT);
274278 break;
--- a/gprof/gprof.texi
+++ b/gprof/gprof.texi
@@ -110,7 +110,7 @@ in the section entitled ``GNU Free Documentation License''.
110110
111111 @smallexample
112112 @c man begin SYNOPSIS
113-gprof [ -[abcDhilLrsTvwxyz] ] [ -[ACeEfFJnNOpPqQZ][@var{name}] ]
113+gprof [ -[abcDhilLrsTvwxyz] ] [ -[ACeEfFJnNOpPqQRStZ][@var{name}] ]
114114 [ -I @var{dirs} ] [ -d[@var{num}] ] [ -k @var{from/to} ]
115115 [ -m @var{min-count} ] [ -R @var{map_file} ] [ -t @var{table-length} ]
116116 [ --[no-]annotated-source[=@var{name}] ]