Debug info for function with variable number of arguments is incorrect (rs6000)

2012-12-27 Thread Aleksandr Platonov
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



RE: Internal Compiler Error

2012-12-27 Thread Iyer, Balaji V
The best way to handle this issue is to submit a bugzilla bug-request with a 
small test case that will replicate the internal error.

Thanks,

Balaji V. Iyer.

> -Original Message-
> From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of
> tanle
> Sent: Monday, December 24, 2012 11:44 AM
> To: gcc@gcc.gnu.org; gcc-h...@gcc.gnu.org
> Subject: Internal Compiler Error
> 
> Could you explain for you about "Internal Compiler Error"?
> I am building the Linux kernel for microbalze (Atlys Board), there are some 
> errors
> as:
> fs/ext2/super.c: In function 'ext2_fill_super':
> fs/ext2/super.c:1144:1: internal compiler error: in reload, at
> reload1.c:1059
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See  for instructions.
> make[2]: *** [fs/ext2/super.o] Error 1
> make[1]: *** [fs/ext2] Error 2
> make: *** [fs] Error 2
> I use gcc version 4.6.1
> 
> Best Regards
> TanLe