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