This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple calls to __gcov_init


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]