decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef.
authorDoug Evans <dje@canuck.cygnus.com>
Sat, 11 May 1996 11:39:49 +0000 (11:39 +0000)
committerDoug Evans <dje@gnu.org>
Sat, 11 May 1996 11:39:49 +0000 (11:39 +0000)
* decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef.
(finish_file): Likewise.

From-SVN: r11970

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 431c8b59c95604b99c5c775eb56a8a65a9972586..ee57c7e17243f496811b9e47398b7bb1e1b8c7df 100644 (file)
@@ -1,3 +1,8 @@
+Sat May 11 04:33:50 1996  Doug Evans  <dje@canuck.cygnus.com>
+
+       * decl2.c (finish_vtable_vardecl): Surround DECL_ONE_ONLY with ifdef.
+       (finish_file): Likewise.
+
 Tue May  7 20:39:57 1996  Mike Stump  <mrs@cygnus.com>
 
        * cp-tree.h (build_overload_call_maybe): Removed.
index 667d65b06bc3c36c5755ad6f6a062b5b3ffe3a9a..2ca80b5137fd531b169ff5c3aeb113d51156182b 100644 (file)
@@ -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)
              {