Fix documentation and a ctor in gcov.c
authorMartin Liska <mliska@suse.cz>
Tue, 2 May 2017 15:37:41 +0000 (17:37 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 2 May 2017 15:37:41 +0000 (15:37 +0000)
2017-05-02  Martin Liska  <mliska@suse.cz>

* doc/gcov.texi: Add missing preposition.
* gcov.c (function_info::function_info): Properly fill up
all member variables.

From-SVN: r247507

gcc/ChangeLog
gcc/doc/gcov.texi
gcc/gcov.c

index b177645b802407f4e5a59b74a40ec5cefadb322d..b181765d076f834d0a496cb0ce84129ea55ad240 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-02  Martin Liska  <mliska@suse.cz>
+
+       * doc/gcov.texi: Add missing preposition.
+       * gcov.c (function_info::function_info): Properly fill up
+       all member variables.
+
 2017-04-26  Tamar Christina  <tamar.christina@arm.com>
 
        * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
index c96f86df83072bc06738d3f55c07e015e08f5e5d..706aa6cf0b0ce48bcff8aa8a3442ad8177cebe8f 100644 (file)
@@ -325,7 +325,7 @@ containing no code.  Unexecuted lines are marked @samp{#####} or
 @samp{====}, depending on whether they are reachable by
 non-exceptional paths or only exceptional paths such as C++ exception
 handlers, respectively. Given @samp{-a} option, unexecuted blocks are
-marked @samp{$$$$$} or @samp{%%%%%}, depending whether a basic block
+marked @samp{$$$$$} or @samp{%%%%%}, depending on whether a basic block
 is reachable via non-exceptional or exceptional paths.
 
 Some lines of information at the start have @var{line_number} of zero.
index 4e6771e79d02563153641a650dc6725078d18169..a5aa4aadcac5a358006140303edd390667405b3e 100644 (file)
@@ -435,10 +435,11 @@ static char *mangle_name (const char *, char *);
 static void release_structures (void);
 extern int main (int, char **);
 
-function_info::function_info ()
+function_info::function_info (): name (NULL), demangled_name (NULL),
+  ident (0), lineno_checksum (0), cfg_checksum (0), has_catch (0),
+  blocks (), blocks_executed (0), counts (NULL), num_counts (0),
+  line (0), src (0), next_file_fn (NULL), next (NULL)
 {
-  /* The type is POD, so that we can use memset.  */
-  memset (this, 0, sizeof (*this));
 }
 
 function_info::~function_info ()