This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gcc at gnu dot org
- Date: Mon, 3 Apr 2006 09:57:13 -0400
- Subject: Re: GCC 4.1.0 doesn't generate DWARF 2 output for function arguments?
- References: <17457.1343.364824.430939@farnswood.snap.net.nz>
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