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: Ian Lance Taylor <iant at google dot com>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jun 2009 19:30:55 -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> <m3prd99b97.fsf@google.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Ian" == Ian Lance Taylor <iant@google.com> writes:
>> Hm, and if it is static then the compiler may as well change its calling
>> ABI (like for example IPA-SRA might remove the two unused params).
>> No idea how to prevent that while still having it being static though ...
Ian> Does it matter? The compiler should not change the calling convention
Ian> if that convention is not represented correctly in the debug info. If
Ian> it is represented correctly in the debug info, gdb should be able to
Ian> find the arguments.
If the optimizer notices that the arguments are unused, couldn't it
elect not to pass them? That would matter, because gdb uses (will use
-- the patch isn't in yet) the values to decide what to do.
Tom