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]

Re: [PATCH, C] Fix PR40563


On 07/30/2010 05:58 PM, Shujing Zhao wrote:
OK. Clear the comment of diagnose_uninitialized_cst_member. C_TYPE_FIELDS_READONLY is used before recursing the struct or union.
Uninitialized array of structures would be diagnosed if one of members is const.
The warned type is changed to "strip_array_types (TREE_TYPE (decl)", so that it would warn struct or union type, not the array.


The testcase is fixed to test the recursing and test the array of structure that has const member.

Tested on trunk and bootstraped.
Is it ok?

ping.


Thanks
Pearly


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