This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Multiple calls to __gcov_init
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Momchil Velikov" <velco at fadata dot bg>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Apr 2006 15:05:26 +0200
- Subject: Re: Multiple calls to __gcov_init
- References: <444E1DE4.7040009@fadata.bg>
On 4/25/06, Momchil Velikov <velco@fadata.bg> wrote:
> Why does GCC emit multiple calls to __gcov_init, via mulitple (two) entries in
> the ctors table? For example "int foo () { return 0; }" compiled with "gcc -S
> -fprofile-generate" produces the following assembly file, where the ".ctors"
> section conrtains two entries.
-funit-at-a-time fixes it. But who uses -fprofile-generate with -O0
these days...
Richard.