Difference in DWARF Info generated by GCC 3.4.6 and GCC 4.1.1

2007-04-24 Thread Rohit Arul Raj
Hi all, I am working with GCC 4.1.1, I need some clarification for the DWARF information generated by this sample Program, #include int fun(const char*, ...); /* Variadic function */ int fun(const char *raj,...) { return 9; } int main() { fun("Hello world",3,2); return 0; } For the s

Re: Difference in DWARF Info generated by GCC 3.4.6 and GCC 4.1.1

2007-04-16 Thread Ian Lance Taylor
"Rohit Arul Raj" <[EMAIL PROTECTED]> writes: > 1. In DIE for fun, with 3.4.6, the frame base is taken in terms of > Frame Pointer (DW_OP_reg14), where is in 4.1.1, it is taken in terms > of Stack Pointer (DW_OP_reg15). > > (For my backend, reg-no 14 is Frame Pointer and reg-no 15 is Stack Pointer

Difference in DWARF Info generated by GCC 3.4.6 and GCC 4.1.1

2007-04-16 Thread Rohit Arul Raj
Hello all, I ran a sample program with gcc 3.4.6 and gcc 4.1.1 compiler. I need some clarifications regarding the DWARFinfo generated by these 2 compilers. Sample Program: #include int fun(const char*, ...); /* Variadic function */ int fun(const char *raj,...) { return 9; } int main() { f