This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: Results for g++ 3.1 application testing on i686-pc-linux-gnu


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~


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