[LLVMbugs] [Bug 3576] New: llvm-gcc ignores local attribute used without -funit-at-a-time
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Feb 13 13:05:57 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3576
Summary: llvm-gcc ignores local attribute used without -funit-at-
a-time
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
ddunbar at ozzy:CodeGen$ echo "void f1() { static int l0 __attribute__((used)) =
5222; }" | llvm-gcc -emit-llvm -S -o - -x c -
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin10.0"
define void @f1() nounwind {
entry:
br label %return
return: ; preds = %entry
ret void
}
ddunbar at ozzy:CodeGen$ echo "void f1() { static int l0 __attribute__((used)) =
5222; }" | llvm-gcc -emit-llvm -S -o - -x c - -funit-at-a-time
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin10.0"
@l0.1444 = internal global i32 5222 ; <i32*> [#uses=1]
@llvm.used = appending global [1 x i8*] [ i8* bitcast (i32* @l0.1444 to i8*) ],
section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
define void @f1() nounwind {
entry:
br label %return
return: ; preds = %entry
ret void
}
--
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