mips gcc -O1: Address exception error on store doubleword
Andreas Schwab
schwab@suse.de
Thu Aug 9 15:05:00 GMT 2007
"Alex Gonzalez" <langabe@gmail.com> writes:
> I was under the assumption that the compiler made sure that it doesn't
> store a doubleword that is not aligned on a doubleword boundary. Is
> this a bug in the optimizer?
If the pointers are not correctly aligned for their target type then you
are invoking undefined behaviour. If the aligment of PVAR is at least
doubleword then the compiler may use doubleword accesses for copying.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc
mailing list