This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: add debug hook to unwinder
- From: Tom Tromey <tromey at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jun 2009 08:59:18 -0600
- Subject: Re: RFA: add debug hook to unwinder
- References: <m3ocv5s935.fsf@fleche.redhat.com> <m3octnzsca.fsf@fleche.redhat.com> <4A31E890.7020609@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "rth" == Richard Henderson <rth@redhat.com> writes:
>> +static void
>> +_Unwind_DebugHook (void *cfa __attribute__ ((__unused__)),
>> + void *handler __attribute__ ((__unused__)))
rth> I think you should mark this function noinline for safety.
rth> Otherwise some future version of the compiler could decide
rth> to inline this and eliminate the _Unwind_DebugHook symbol
rth> entirely.
There's a noinline declaration a few lines up:
static void _Unwind_DebugHook (void *, void *) __attribute__ ((__noinline__));
Tom