[gcc(refs/users/ibuclaw/heads/darwin)] d: Add dubious extraneous changes, but leave them commented out.

Iain Buclaw ibuclaw@gcc.gnu.org
Sun Mar 7 17:01:24 GMT 2021


https://gcc.gnu.org/g:31fe8dce59d559ff89252a9dd2136445a9887392

commit 31fe8dce59d559ff89252a9dd2136445a9887392
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Nov 30 15:37:38 2020 +0100

    d: Add dubious extraneous changes, but leave them commented out.

Diff:
---
 gcc/d/decl.cc    | 7 +++++++
 gcc/d/modules.cc | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc
index 042abbfc48a..15b04b1e75f 100644
--- a/gcc/d/decl.cc
+++ b/gcc/d/decl.cc
@@ -1330,10 +1330,17 @@ get_symbol_decl (Declaration *decl)
 
       TREE_STATIC (decl->csym) = 1;
       /* The decl has not been defined -- yet.  */
+#if 0	// ???
+      if (!DECL_INITIAL (decl->csym))
+#endif
       DECL_EXTERNAL (decl->csym) = 1;
 
       if (decl->isInstantiated ())
 	d_linkonce_linkage (decl->csym);
+#if 0	// ???
+      else if (VAR_P (decl->csym) && TREE_PUBLIC (decl->csym))
+	d_linkonce_linkage (decl->csym);
+#endif
     }
 
   /* Symbol is going in thread local storage.  */
diff --git a/gcc/d/modules.cc b/gcc/d/modules.cc
index f51277e61ed..868e57e24c5 100644
--- a/gcc/d/modules.cc
+++ b/gcc/d/modules.cc
@@ -173,6 +173,9 @@ build_internal_fn (tree ident, tree expr)
   TREE_PUBLIC (decl) = 0;
   TREE_USED (decl) = 1;
   DECL_ARTIFICIAL (decl) = 1;
+#if 0	// ???
+  DECL_WEAK (decl) = 0;
+#endif
 
   return decl;
 }


More information about the Gcc-cvs mailing list