Re: Multiple calls to __gcov_init

2006-05-04 Thread Jan Hubicka
> On Tue, Apr 25, 2006 at 03:05:26PM +0200, Richard Guenther wrote: > > On 4/25/06, Momchil Velikov <[EMAIL PROTECTED]> 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 >

Re: Multiple calls to __gcov_init

2006-04-25 Thread Joe Buck
On Tue, Apr 25, 2006 at 03:05:26PM +0200, Richard Guenther wrote: > On 4/25/06, Momchil Velikov <[EMAIL PROTECTED]> 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

Re: Multiple calls to __gcov_init

2006-04-25 Thread Richard Guenther
On 4/25/06, Momchil Velikov <[EMAIL PROTECTED]> 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"