[LLVMbugs] [Bug 14974] New: clang is too aggressive in applying #pragma weak
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 16 20:53:29 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14974
Bug #: 14974
Summary: clang is too aggressive in applying #pragma weak
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given
#pragma weak foo
struct S { void foo(); };
void S::foo() {}
#pragma weak zed
namespace bar { void zed() {} }
#pragma weak bah
void bah() {}
#pragma weak baz
extern "C" void baz() {}
Clang produces a weak symbol in all cases. Gcc produces it only for baz, so it
looks like we can restrict the pragma just to extern C decls.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list