aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-05-02 17:37:41 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-05-02 15:37:41 +0000
commit4e8bfd79138bdd9003c2437db3fee9a5b5d06cec (patch)
tree9ad8f644ba8009e5b6b80f0ee3ca0cec42c1838a /gcc/gcov.c
parent22677ff0c4bd069d574a57c9a45efdcc89578560 (diff)
downloadgcc-4e8bfd79138bdd9003c2437db3fee9a5b5d06cec.zip
gcc-4e8bfd79138bdd9003c2437db3fee9a5b5d06cec.tar.gz
gcc-4e8bfd79138bdd9003c2437db3fee9a5b5d06cec.tar.bz2
Fix documentation and a ctor in gcov.c
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
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 4e6771e..a5aa4aa 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -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 ()