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 10:21:01AM +0100, Gabriel Dos Reis wrote:
>     // x.H
>      exten const int l;
> 
>     // x.C
>     #include "x.H"
>     const int l = 9;	// at this point 'l' should emitted global.

Ignoring the separate header file for a moment,

	extern const int xyzzy;
	const int xyzzy = 1;

does in fact emit xyzzy to the .s file, and

	extern const int xyzzy;
	int foo() { return xyzzy; }

does in fact reference xyzzy as a symbol.

So if these symbols aren't being referenced properly in some other
situation, someone should come up with a better example.


r~


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