[Patch, fortran] PR31163 - SAVEd derived types with ALLOCATABLE components don't work

Tobias Burnus burnus@net-b.de
Wed Mar 14 20:15:00 GMT 2007


Andrew Pinski wrote:
> On 3/14/07, Tobias Burnus <burnus@net-b.de> wrote:
>>   static struct foo t = {};
>>   if ((real4[0:] *) t.x.data != 0B)
> The t variable is still zero initialized as defined by either {} or by
> the case of being a static variable.
That means we could optimize

  static struct foo_type f_a = {.mv={.data=0B}};

to

  static struct foo_type f_a = {};

for pointers?


Tobias



More information about the Gcc-patches mailing list