public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug d/99914] d: Template symbols not overridable by normal symbols
Date: Sat, 17 Apr 2021 12:37:26 +0000	[thread overview]
Message-ID: <bug-99914-4-2RzC4yRgVU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99914-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99914

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

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

commit r11-8234-gbda519596543e49f77914b5677693e86be5d01d0
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Tue Apr 13 22:28:55 2021 +0200

    d: Add TARGET_D_TEMPLATES_ALWAYS_COMDAT

    Following up on the fix for PR99914, when testing on MinGW, it was found
    not to support weak in the same way as on ELF or Mach-O targets.

    So the linkage has been reverted back to COMDAT for that target, however
    in order to properly support overriding functions and variables, all
    declarations with external linkage must be put on COMDAT.  For this a
    new target hook has been added to control the behavior.

    gcc/ChangeLog:

            PR d/99914
            * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
            * doc/tm.texi: Regenerate.
            * doc/tm.texi.in (D language and ABI): Add @hook for
            TARGET_D_TEMPLATES_ALWAYS_COMDAT.

    gcc/d/ChangeLog:

            PR d/99914
            * d-target.def (d_templates_always_comdat): New hook.
            * d-tree.h (mark_needed): Remove prototype.
            * decl.cc: Include d-target.h.
            (mark_needed): Rename to...
            (d_mark_needed): ...this.  Make static.
            (set_linkage_for_decl): Put variables in comdat if
            d_templates_always_comdat.

      parent reply	other threads:[~2021-04-17 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-05 11:07 [Bug d/99914] New: " ibuclaw at gdcproject dot org
2021-04-05 11:41 ` [Bug d/99914] " cvs-commit at gcc dot gnu.org
2021-04-05 11:53 ` ibuclaw at gdcproject dot org
2021-04-14 12:44 ` cvs-commit at gcc dot gnu.org
2021-04-14 13:02 ` ibuclaw at gdcproject dot org
2021-04-17 12:37 ` cvs-commit at gcc dot gnu.org [this message]

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=bug-99914-4-2RzC4yRgVU@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).