This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Debug info for function with variable number of arguments is incorrect (rs6000)
- From: Aleksandr Platonov <pam at oktetlabs dot ru>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 27 Dec 2012 18:56:05 +0400
- Subject: Debug info for function with variable number of arguments is incorrect (rs6000)
- Reply-to: gcc at gcc dot gnu dot org
Hi.
Debug information for function with variable number of arguments is
incorrect on PowerPC (rs6000). I created bug for this problem
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55586) but got no response.
I have tried different versions of GCC and this problem observed in all
of them.
GCC generates two elements in .debug_line section for the first function
line (function header) and the second element is for address right after
the branch instruction.
If I remove "bne" instruction generation from setup_incoming_varargs()
function (gcc/config/rs6000/rs6000.c) then there will be only
one .debug_line element for the first function line.
Is it excepted behavior that "bne" instruction leads to split
of .debug_line section element?
Could anybody help me to find GCC version where debug info for function
with variable number of arguments is correct on PowerPC?
--
Aleksandr Platonov