This is the mail archive of the
mailing list for the GCC project.
Re: RFC/RFHelp: c-decl.c rewrite - almost but not quite
On Mar 18, 2004, at 11:01, Andrew Pinski wrote:
Some investigating work on my part, some of the Objective-C failures is
due to the front-end putting a variable in the global scope only as
there is no file scope at the point which it inserts it.
The function which causes this is
But the code to use the decl has been dead for a long time and maybe
The code that used it was removed
but it was "#if 0" before that and I cannot find the place where it
was "#if 0" out.
I will run the whole Objective-C testsuite on this change.
One more fix fixed all the ICEs in the testsuite.
The fix was to check to make sure that file_scope was not null in
because it can be called when no files are being parsed.
now this leads to either a warning message:
In file included from
next_mapping.h: In function `objc_sizeof_type':
next_mapping.h:135: warning: unexpected type for `id' (struct
And an error message:
common.h: In function `compare_structures':
common.h:21: error: dereferencing pointer to incomplete type
void compare_structures (Class class, const char* type)
struct objc_struct_layout layout;
struct objc_ivar_list* ivars = class->ivars; // <--- error message
The error message is incorrect because Class is of type "struct
objc_class *" which is defined
in objc-class.h which is included (checked by looking into the
preprocessed file) but it is
also defined by the Objective-C front-end.
Both of these issues might be caused by an use of xref_tag but I do not