* is pr26565 broken again?
@ 2009-07-29 3:30 DJ Delorie
0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2009-07-29 3:30 UTC (permalink / raw)
To: gcc
On s390x it produces this insn:
(insn 8 7 9 3 323444.c:15 (set (mem/s:DI (reg:DI 46) [0 S8 A64])
(mem/s:DI (reg/v/f:DI 45 [ tp ]) [0 S8 A64])) -1 (nil))
Note that the alignments are 64 bit again, despite the field being
packed. mep-elf has similar results.
void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
struct timeval {
long tv_sec;
};
struct outdata {
long align;
char seq;
struct timeval tv __attribute__((packed));
};
void send_probe(struct outdata *outdata, struct timeval *tp)
{
memcpy(&(outdata->tv), tp, sizeof outdata->tv);
}
send_probe (struct outdata * outdata, struct timeval * tp)
{
struct timeval * D.1971;
# BLOCK 2 freq:10000
# PRED: ENTRY [100.0%] (fallthru,exec)
D.1971_2 = &outdata_1(D)->tv;
memcpy (D.1971_2, tp_3(D), 8); [tail call]
return;
# SUCC: EXIT [100.0%]
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-29 3:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-29 3:30 is pr26565 broken again? DJ Delorie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).