Results for g++ 3.1 application testing on i686-pc-linux-gnu
Richard Henderson
rth@redhat.com
Wed Mar 6 13:30:00 GMT 2002
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~
More information about the Gcc
mailing list