* cp-tree.h (DECL_NEEDED_P): Tweak.

From-SVN: r35426
This commit is contained in:
Mark Mitchell 2000-08-02 16:02:43 +00:00 committed by Mark Mitchell
parent b6cc0a7290
commit 3f954fc3f3
3 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-08-02 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (DECL_NEEDED_P): Tweak.
2000-07-28 Jason Merrill <jason@redhat.com> 2000-07-28 Jason Merrill <jason@redhat.com>
* lang-specs.h: Use %i in rule for .ii files. * lang-specs.h: Use %i in rule for .ii files.

View File

@ -1936,7 +1936,7 @@ struct lang_decl
anything that isn't comdat, but we don't know for sure whether or anything that isn't comdat, but we don't know for sure whether or
not something is comdat until end-of-file. */ not something is comdat until end-of-file. */
#define DECL_NEEDED_P(DECL) \ #define DECL_NEEDED_P(DECL) \
((at_eof && !DECL_COMDAT (DECL)) \ ((at_eof && TREE_PUBLIC (DECL) && !DECL_COMDAT (DECL)) \
|| (TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME ((DECL)))) \ || (TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME ((DECL)))) \
|| (flag_syntax_only && TREE_USED ((DECL)))) || (flag_syntax_only && TREE_USED ((DECL))))

View File

@ -0,0 +1,19 @@
// Build don't run:
// Origin: scott snyder <snyder@fnal.gov>
struct basic_string
{
~basic_string();
};
struct Side
{
void name()
{
static basic_string sname;
}
};
int main ()
{
}