This is the mail archive of the
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: <email@example.com> <firstname.lastname@example.org> <4A31E890.email@example.com> <firstname.lastname@example.org> <email@example.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Ian" == Ian Lance Taylor <firstname.lastname@example.org> 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.