-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c backend with array types can produce code rejected by gcc 4.0.1 #1290
Comments
Could someone please have a look at this? This bug prefends PyPy from using the later gcc versions. |
Eric, I'd love to see this fixed, but don't have bandwidth to investigate it. I'd suggest making a call for help |
test case for current llvm cvs head |
Potential patch here: |
Rationale of patch is here: |
Nice work, I applied Gordon's testcase here: and here's a slightly adapted version of his patch: Thanks Gordon! -Chris |
great stuff! thank you Gordon and Chris! |
Extended Description
The C backend can currently (recent head) produce code with such patterns:
/* Global Declarations /
/ Structure forward decls */
struct l_structtype_s;
/* Typedefs /
typedef struct l_structtype_s l_fixarray_array3[3]; / problematic
declaration */
typedef struct l_structtype_s l_structtype_s;
/* Structure contents */
struct l_structtype_s {
int field0;
};
gcc 4.0.1 will reject this with a "array type has incomplete element type" error.
this seems not valid C, precedently gcc accepted it as a (fragile) extension.
The text was updated successfully, but these errors were encountered: