[LLVMbugs] [Bug 745] NEW: Inappropriate handling of structs with arrays
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Apr 21 12:01:08 PDT 2006
http://llvm.org/bugs/show_bug.cgi?id=745
Summary: Inappropriate handling of structs with arrays
Product: tools
Version: 1.6
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: domagoj at engineer.com
#include <stdlib.h>
struct RT {
char a;
char b;
int c;
int d[50][50];
} glob;
int main(int argc, char **argv) {
glob.a = 1;
glob.b = 2;
glob.c = 3;
printf("glob.1 = %d\n", *(&glob + 1));
}
compiles 62 seconds, spits out 18kb bc file with 5063 tmp vars. For
larger arrays (say 1000 X 2000) it never returns. GCC has no problems
compiling such examples.
A 10-liner shouldn't kill the compiler :-)
Domagoj
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list