Results for g++ 3.1 application testing on i686-pc-linux-gnu
Richard Henderson
rth@redhat.com
Wed Mar 6 13:26:00 GMT 2002
On Wed, Mar 06, 2002 at 08:00:15AM +0100, Gabriel Dos Reis wrote:
> | I thought C++ allowed us to never emit these unless their
> | address is taken?
>
> Yes, that is the case.
Hmm. A simple test case shows this to be working.
const int xyzzy = 1;
int foo() { return xyzzy; }
./cc1plus -O z.c
_Z3foov:
lda $0,1($31)
ret $31,($26),1
and xyzzy does not appear in the .s file.
r~
More information about the Gcc
mailing list