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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs