Fix typo setting user_specified variable when parsing -Z option.
authorNick Clifton <nickc@redhat.com>
Mon, 1 Oct 2018 16:17:54 +0000 (17:17 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 1 Oct 2018 16:18:20 +0000 (17:18 +0100)
PR 23698
* gprof.c (main): Fix typo setting user_specified variable when
parsing -Z option.

gprof/ChangeLog
gprof/gprof.c

index ce748f60f0215f2b4f0033482c0986101738d9f9..da083a54af79f90bb777d8744d8dfb3526f19b48 100644 (file)
@@ -1,3 +1,9 @@
+2018-10-01  Nick Clifton  <nickc@redhat.com>
+
+       PR 23698
+       * gprof.c (main): Fix typo setting user_specified variable when
+       parsing -Z option.
+
 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * gprof.texi: Use command-line consistently when used in a compount
index 43e209096c9457209ba63872c3999cdb051d4ee9..db425a6996daba899bddb0c29fe129ec8c85ef8f 100644 (file)
@@ -452,7 +452,7 @@ This program is free software.  This program has absolutely no warranty.\n"));
            {
              output_style &= ~STYLE_EXEC_COUNTS;
            }
-         user_specified |= STYLE_ANNOTATED_SOURCE;
+         user_specified |= STYLE_EXEC_COUNTS;
          break;
        case OPTION_DEMANGLE:
          demangle = TRUE;