[PATCH] fix for pr 57474
Jeff Law
law@redhat.com
Mon Jun 3 19:51:00 GMT 2013
On 05/31/2013 06:28 PM, Iyer, Balaji V wrote:
> Hello Everyone,
> PR reports that sec_implicit2 and sec_implicit regression tests were failing in darwin. I looked into it and it is due to an uninitialized variable (rhs_length). This patch pasted below should fix that issue. Is this OK for trunk?
>
> Here are the ChangeLog entries:
>
> 2013-05-31 Balaji V. Iyer <balaji.v.iyer@intel.com>
> PR c/57474
> * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
> array to NULL_TREE if they are unused. Also added a check for the
> field to be NULL before its fields are used in future.
Does lhs_length need similar initialization & checks? If not, why?
jeff
More information about the Gcc-patches
mailing list