-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"platform:macos
Description
Bugzilla Link | 11116 |
Version | trunk |
OS | MacOS X |
Reporter | LLVM Bugzilla Contributor |
CC | @efriedma-quic,@kopinions |
Extended Description
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.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"platform:macos