problem with unaligned access on Alpha
Richard Henderson
rth@cygnus.com
Wed Jun 30 15:43:00 GMT 1999
On Thu, Jun 24, 1999 at 09:54:04AM +0100, Christian Groessler wrote:
> I assume for shorts only. If I replace "unsigned short *" with "unsigned
> int *" I do get unaligned traps.
Yes.
> Now I see. The code for aligned word access breaks when the
> word is unaligned at address+7, if I understand the assembly code
> correctly.
Yes.
> ... but maybe this case is hard to detect (to give a warning etc.).
Impossible, actually.
r~
More information about the Gcc
mailing list