[PATCH, C] Fix PR40563

Shujing Zhao pearly.zhao@oracle.com
Tue Aug 17 08:59:00 GMT 2010


On 08/14/2010 01:02 AM, Joseph S. Myers wrote:
> On Fri, 30 Jul 2010, 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?
> 
> This patch is OK.
> 
Retested on current trunk and committed revision 163296. Thanks

Pearly



More information about the Gcc-patches mailing list