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: PR 23296: Strange -O3 -finstrument-functions behaviour


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


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