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] for PR 17949


Incidentally, here's an even more complex test case, that your patch
does handle, but that my previous suggestion would not.


r~


typedef struct
{
  int i;
} B;

typedef struct
{
  int x;
  short i;
  B f __attribute__ ((packed));
} A;

A a[3];
int i;

main ()
{
  int j;
  for (j = 0; j < 2; j++)
   i += a[j].f.i;
}


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