This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR 23296: Strange -O3 -finstrument-functions behaviour
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc at gcc dot gnu dot org
- Cc: bart dot vanassche at gmail dot com, richards at transitive dot com
- Date: Mon, 29 Jun 2009 14:09:40 -0700
- Subject: Re: PR 23296: Strange -O3 -finstrument-functions behaviour
- References: <g4r5x316e0.fsf@richards-desktop.transitives.com>
Richard Sandiford <richards@transitive.com> writes:
> Is this really the intended behaviour? Andrew closed the bug as invalid,
> saying that this is what we expect, but the docs seem to suggest that we
> ought to do something like:
>
> ...
> __cyg_profile_func_enter (&main, ...);
> ...
> __cyg_profile_func_enter (&g, ...);
> ...
> __cyg_profile_func_exit (&g, ...);
> ...
> __cyg_profile_func_exit (&main, ...);
> ...
I agree. The docs seem reasonably clear.
Ian