[Bug c/18287] Unaligned access to fields inside packed records

ebotcazou at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 2 11:03:00 GMT 2005


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-01-02 11:03 -------
Clobber_Hour_Of:
	save	%sp, -112, %sp
	st	%i0, [%fp+68]
	ld	[%fp+68], %g1
	add	%g1, 5, %g1
	mov	%g1, %o0
	call	Assign_Hour_Of, 0
	 nop

is wrong: you can't merely add 5 to the address on STRICT_ALIGNMENT platforms.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18287



More information about the Gcc-bugs mailing list