public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/iains/heads/d-for-darwin)] d: Add dubious extraneous changes, but leave them commented out.
@ 2020-12-21 20:36 Iain D Sandoe
  0 siblings, 0 replies; 2+ messages in thread
From: Iain D Sandoe @ 2020-12-21 20:36 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:603c217f8af85c40a60f12221ce52609b16c7e63

commit 603c217f8af85c40a60f12221ce52609b16c7e63
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 a3db4ae6d89..6df92599cb7 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 742a24ff0bb..39c4775a3b1 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;
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] d: Add dubious extraneous changes, but leave them commented out.
@ 2020-12-13 17:42 Iain D Sandoe
  0 siblings, 0 replies; 2+ messages in thread
From: Iain D Sandoe @ 2020-12-13 17:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d6ca506ffb9c8da0fbeb9ad4ea2dd63382b1ca84

commit d6ca506ffb9c8da0fbeb9ad4ea2dd63382b1ca84
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 218f35838fd..1e46f108722 100644
--- a/gcc/d/decl.cc
+++ b/gcc/d/decl.cc
@@ -1329,10 +1329,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 742a24ff0bb..39c4775a3b1 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;
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-21 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 20:36 [gcc(refs/users/iains/heads/d-for-darwin)] d: Add dubious extraneous changes, but leave them commented out Iain D Sandoe
  -- strict thread matches above, loose matches on Subject: below --
2020-12-13 17:42 Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).