[LLVMbugs] [Bug 22830] New: function alias via __asm__ is not honored if the alias is defined after the call (gcc behaves differently)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 6 14:56:44 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22830
Bug ID: 22830
Summary: function alias via __asm__ is not honored if the alias
is defined after the call (gcc behaves differently)
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: kcc at google.com
CC: llvmbugs at cs.uiuc.edu, roland at hack.frob.com
Classification: Unclassified
I don't know whether this is something that needs to be fixed in Clang,
but at least I want to document this incompatibility with GCC in form of a bug.
% cat b.c
extern void FOO();
void call() { FOO(); }
extern __typeof (FOO) FOO __asm__ ("BAR") ;
% gcc b.c -c && nm b.o
U BAR <<<<<<<<<<<<<<<<
0000000000000000 T call
% clang b.c -c && nm b.o
0000000000000000 T call
U FOO <<<<<<<<<<<<<<<<
%
This is minimized from glibc sources where FOO=strtol.
Most likely it's easier to fix this in glibc than to support it in Clang.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150306/268e37b7/attachment.html>
More information about the llvm-bugs
mailing list