[LLVMbugs] [Bug 11116] New: Weak aliases are not supported on MacOS X

130 views
Skip to first unread message

bugzill...@llvm.org

unread,
Oct 12, 2011, 5:15:28 AM10/12/11
to llvm...@cs.uiuc.edu
http://llvm.org/bugs/show_bug.cgi?id=11116

Summary: Weak aliases are not supported on MacOS X
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassigne...@nondot.org
ReportedBy: ll...@martin-whitaker.me.uk
CC: llvm...@cs.uiuc.edu


When compiling the following (simplified) code fragment:

int get_value(int *value)
{
return *value;
}

int get_value_alias(int *high) __attribute__ ((weak, alias ("get_value")));

for MacOS X, clang reports the following error:

% clang -ccc-host-triple i386-apple-darwin -c -o bug.o bug.c
bug.c:6:54: error: only weak aliases are supported on darwin
int get_value_alias(int *high) __attribute__ ((weak, alias ("get_value")));

It would appear that clang does not support weak aliases on MacOS X (I asked on
the cfe-dev list, but nobody suggested a solution). If it is not possible to
support weak aliases for this target, I suggest changing the error message to
indicate this fact.

--
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.
_______________________________________________
LLVMbugs mailing list
LLVM...@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply all
Reply to author
Forward
0 new messages