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 Guenther <richard dot guenther at gmail dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jun 2009 10:16:47 -0600
- Subject: Re: RFA: add debug hook to unwinder
- References: <m3ocv5s935.fsf@fleche.redhat.com> <m3octnzsca.fsf@fleche.redhat.com> <4A31E890.7020609@redhat.com> <84fc9c000906120838w4075911aq6607980936da59dc@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Richard" == Richard Guenther <richard.guenther@gmail.com> writes:
>>> +static void
>>> +_Unwind_DebugHook (void *cfa __attribute__ ((__unused__)),
Richard> Hm, and if it is static then the compiler may as well change
Richard> its calling ABI (like for example IPA-SRA might remove the
Richard> two unused params). No idea how to prevent that while still
Richard> having it being static though ...
We could go back to having it not be static, and rely on symbol
visibility again. Even that seems likely to fail if we ever use
--combine or LTO on libgcc.
In any case, I'm happy to implement and test whatever approach you
like best.
Tom