[Bug middle-end/59134] [4.7/4.8/4.9 regression] infinite loop between store_fixed_bit_field and store_split_bit_field with STRICT_ALIGNMENT

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 3 11:29:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59134

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
typedef struct {
  char pad;
  int arr[0];
} __attribute__((packed)) str;

str *
foo (int* src)
{
  str *s = __builtin_malloc (sizeof (str) + sizeof (int));
  s->arr[0] = 0x12345678;
  return s;
}


as said elsewhere - IMHO the mode on op0 should not be that of the
base object (QImode) but that of the access (SImode).



More information about the Gcc-bugs mailing list