This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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] | |
whereas the "true" globals are clobbered on any call anywhere. To do this, we need to distinguish between those variables local to a file, and those that aren't. HAS_FILE_SCOPE_P would do this.
This all seems like it needs to be a langhook.
How does this work in C++, to handle (for instance) private static variables in classes?
Do you look at DECL_CONTEXT for that?
friend classes wouldn't matter, even if we were field based.How do you cope with friend classes and subclasses?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |