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


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


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