This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Dec 2013 11:29:50 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-59134-4 at http dot gcc dot gnu dot org/bugzilla/>
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).