1. Vincenzo Ampolo
  2. gdc

Commits

Daniel Green  committed 2120e0c

Fixes bd1f89846e93 to maintain MinGW support.

  • Participants
  • Parent commits 6852d67
  • Branches default

Comments (0)

Files changed (1)

File d/d-objfile.cc

View file
        even if the target supports one-only. */
     if (! D_DECL_IS_TEMPLATE(decl_tree) || gen.emitTemplates != TEprivate)
     {
+        /* MinGW requires a comdat_group to take advantage of 
+           make_decl_one_only. */
+#ifdef TARGET_WINDOS
+        comdat = true;
+#endif
+        
         /* The following makes assumptions about the behavior
            of make_decl_one_only */
         if (SUPPORTS_ONE_ONLY)