[MacPorts] #58677: legacy support "error: conflicting asm label" when building some ports
MacPorts
noreply at macports.org
Tue Feb 9 07:33:35 UTC 2021
#58677: legacy support "error: conflicting asm label" when building some ports
-------------------------------------------------+-------------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: leopard
Port: legacy-support legacy-support- | i386 legacy-os
devel |
-------------------------------------------------+-------------------------
Comment (by kencu):
Oh, it a really trivial patch, it looks like:
In this file here: {{{clang/lib/Sema/SemaDecl.cpp}}}
Do this:
{{{
if (AsmLabelAttr *NewA = New->getAttr<AsmLabelAttr>()) {
if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) {
if (OldA->getLabel() != NewA->getLabel()) {
// This redeclaration changes __asm__ label.
- Diag(New->getLocation(), diag::err_different_asm_label);
- Diag(OldA->getLocation(), diag::note_previous_declaration);
+ // Diag(New->getLocation(), diag::err_different_asm_label);
+ // Diag(OldA->getLocation(), diag::note_previous_declaration);
}
} else if (Old->isUsed()) {
// This redeclaration adds an __asm__ label to a declaration that
has
// already been ODR-used.
Diag(New->getLocation(), diag::err_late_asm_label_name)
<< isa<FunctionDecl>(Old) <<
New->getAttr<AsmLabelAttr>()->getRange();
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58677#comment:37>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list