This is the mail archive of the gcc@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: GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?


On Mon, Apr 03, 2006 at 11:21:35PM +1200, Nick Roberts wrote:
> 
> I've just upgraded to Fedora Core 5 (kernel 2.6.15-1.2054_FC5) and with the
> program below I get results which didn't occur before (Fedora Core 3).  I
> posted them to gdb@sources.redhat.com but I think something is up with GCC
> 4.1.0.  I no longer have Core 3 so I've compared output with Mandrake.  These
> results are with DWARF 2.  GCC 4.1.0 with stabs worked as expected

They've been optimized away.  Not surprising, since they are unused,
although slightly surprising that it happened with -O0.

On x86, where they're on the stack on entry, we could probably have
done better even with optimization.


-- 
Daniel Jacobowitz
CodeSourcery


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