[LLVMbugs] [Bug 5348] New: asm attribute applied after use of function is broken
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Oct 29 11:10:32 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5348
Summary: asm attribute applied after use of function is broken
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
We should do something different on the following code:
--
ddunbar at ozzy:tmp$ cat t.c
void f0(void);
void g0() {
f0();
}
extern void f0(void) __asm__ ("bar");
void f0() {
extern void f1(void);
f1();
}
ddunbar at ozzy:tmp$ clang -emit-llvm -S -o - t.c
; ModuleID = 't.c'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-apple-darwin10.0"
define void @g0() nounwind ssp {
entry:
call void @f0() ssp
ret void
}
declare void @f0() ssp
define void @"\01bar"() nounwind ssp {
entry:
call void @f1() ssp
ret void
}
declare void @f1() ssp
ddunbar at ozzy:tmp$
--
gcc/llvm-gcc drop the __asm__ attribute and warn about it, perhaps we should
just make this an error?
--
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