From: Doug Evans Date: Sat, 11 May 1996 11:39:49 +0000 (+0000) Subject: decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=574baa641db6d80b3656164a97efec735d588d4d;p=gcc.git decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef. * decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef. (finish_file): Likewise. From-SVN: r11970 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 431c8b59c95..ee57c7e1724 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Sat May 11 04:33:50 1996 Doug Evans + + * decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef. + (finish_file): Likewise. + Tue May 7 20:39:57 1996 Mike Stump * cp-tree.h (build_overload_call_maybe): Removed. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 667d65b06bc..2ca80b5137f 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2592,7 +2592,11 @@ finish_vtable_vardecl (prev, vars) { if (write_virtuals >= 0 && ! DECL_EXTERNAL (vars) - && ((TREE_PUBLIC (vars) && ! DECL_WEAK (vars) && ! DECL_ONE_ONLY (vars)) + && ((TREE_PUBLIC (vars) && ! DECL_WEAK (vars) +#ifdef DECL_ONE_ONLY + && ! DECL_ONE_ONLY (vars) +#endif + ) || TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (vars))) && ! TREE_ASM_WRITTEN (vars)) { @@ -3245,7 +3249,10 @@ finish_file () else if (DECL_INITIAL (decl) == 0) p = &TREE_CHAIN (*p); else if ((TREE_PUBLIC (decl) && ! DECL_WEAK (decl) - && ! DECL_ONE_ONLY (decl)) +#ifdef DECL_ONE_ONLY + && ! DECL_ONE_ONLY (decl) +#endif + ) || TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) || flag_keep_inline_functions) {