[LLVMbugs] [Bug 5060] New: clang ignores attribute aligned on some variables
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Sep 26 09:47:44 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5060
Summary: clang ignores attribute aligned on some variables
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
For this C source:
char *foo(void) {
static char p __attribute__((aligned(32)));
return &p;
}
void frob(char *);
void bar(long n) {
char p[n] __attribute__((aligned(32)));
frob(p);
}
clang emits LLVM IR containing these two constructs, missing the alignment
information.
@foo.p = internal global i8 0 ; <i8*> [#uses=1]
%vla = alloca i8, i32 %n3, align 1 ; <i8*> [#uses=1]
--
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