GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?
Daniel Jacobowitz
drow@false.org
Mon Apr 3 13:57:00 GMT 2006
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
More information about the Gcc
mailing list