[LLVMbugs] [Bug 3649] New: stack is not saved/restored correctly with multiple VLAs
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Feb 22 09:30:24 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3649
Summary: stack is not saved/restored correctly with multiple VLAs
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu, andersca at mac.com
The printed addresses below should be constant:
--
ddunbar at frank:tmp$ cat t.c
#include <stdio.h>
int f0(int n) {
int arr[n];
for (unsigned i=0; i<n; ++i) {
int arr[n << 10];
printf("%p\n", arr);
}
return 0;
}
int main() {
f0(10);
return 0;
}
ddunbar at frank:tmp$ xcc t.c && ./a.out
0xbfe67788
0xbfe5d788
0xbfe53788
0xbfe49788
0xbfe3f788
0xbfe35788
0xbfe2b788
0xbfe21788
0xbfe17788
0xbfe0d788
--
--
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