This is the mail archive of the gcc-patches@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: RFA: add debug hook to unwinder


>>>>> "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


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