Subject: Re: in-kernel workaround for PR 14746
To: None <firstname.lastname@example.org, email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 12/03/2001 16:50:06
>> Is struct assignment even _supposed_ to work?
> No it isn't, and it doesn't. The Correct(tm) solution is to use
> memcpy, but gcc on sparch64 optimises this into a copy that doesn't
> cope with alignment issues.
If gcc turns a memcpy call into something inline that doesn't deal with
misalignment, surely that means that optimization is broken, since it
didn't preserve the no-alignment-required semantics of memcpy?
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML firstname.lastname@example.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B