<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">We use asm symbol redefining to allow some of legacysupport's magic to work
in certain circumstances this errors, always (so far) involving the &lt;assert.h&gt;
header. work around this by allowing asm symbol redefining again on &lt; 10.6
where this feature is used at present, until/unless we can come up with some more
elegant solution to the problem that doesn't require this.

see https://trac.macports.org/ticket/58677 for further details


--- a/tools/clang/lib/Sema/SemaDecl.cpp.orig	2021-09-19 10:11:38.000000000 -0700
+++ b/tools/clang/lib/Sema/SemaDecl.cpp	2021-09-19 10:16:42.000000000 -0700
@@ -2634,8 +2634,8 @@
     if (AsmLabelAttr *OldA = Old-&gt;getAttr&lt;AsmLabelAttr&gt;()) {
       if (OldA-&gt;getLabel() != NewA-&gt;getLabel()) {
         // This redeclaration changes __asm__ label.
-        Diag(New-&gt;getLocation(), diag::err_different_asm_label);
-        Diag(OldA-&gt;getLocation(), diag::note_previous_declaration);
+        // Diag(New-&gt;getLocation(), diag::err_different_asm_label);
+        // Diag(OldA-&gt;getLocation(), diag::note_previous_declaration);
       }
     } else if (Old-&gt;isUsed()) {
       // This redeclaration adds an __asm__ label to a declaration that has
</pre></body></html>