This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] gfc_add_field_to_struct refactoring


This is a followup to the patch by Nathan Froyd :
http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00213.html
where some questionable iso_c code was forcing to have one extra argument to the gfc_add_field_to_struct function to set TYPE_FIELDS from outside of it.


That code was creating a FIELD_DECL and adding it, as backend_decl for C_PTR's hidden C_ADDRESS field, and as TYPE_FIELDS for the containing type (which is a void pointer type).
As the field is hidden, it should not be accessible from the front-end, and as the containing type is a void pointer type, the middle-end should not try to access its TYPE_FIELDS.


Thus, I'm removing the code and proceeding with refactoring.

The testsuite run is more than halfway now without new failures
OK for trunk, if it passes?

Mikael

Attachment: type_fields.log
Description: Text document

Attachment: type_fields.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]