public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/ibuclaw/heads/darwin)] d: Add dubious extraneous changes, but leave them commented out.
Date: Thu,  3 Dec 2020 22:57:39 +0000 (GMT)	[thread overview]
Message-ID: <20201203225739.76C073854830@sourceware.org> (raw)

https://gcc.gnu.org/g:0859c7ae1a80a1949d1eb4f1f70bf9f53d93ff3c

commit 0859c7ae1a80a1949d1eb4f1f70bf9f53d93ff3c
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;
 }


             reply	other threads:[~2020-12-03 22:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-03 22:57 Iain Buclaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-07 17:01 Iain Buclaw
2021-01-30 19:08 Iain Buclaw
2021-01-28 17:31 Iain Buclaw
2021-01-11 11:39 Iain Buclaw
2020-12-22 13:40 Iain Buclaw
2020-12-09  9:50 Iain Buclaw
2020-12-05 23:47 Iain Buclaw
2020-11-30 14:38 Iain Buclaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201203225739.76C073854830@sourceware.org \
    --to=ibuclaw@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).