This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR testsuite/39907: Aligned access to unaligned address


Hi,

gcc.target/x86_64/abi/asm-support.S doesn't preserve stack alignment
for

extern void (*callthis)(void);

void
foo ()
{
  (*callthis) ();
}

which should generate

foo:
	subq	$8, %rsp
	call	*callthis(%rip)
	addq	$8, %rsp
	ret

Tested on Linux/x86-64.  OK for trunk/4.4/4.3?

Thanks.


-- 
H.J.
--
2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/39907
	* gcc.target/x86_64/abi/asm-support.S (snapshot_ret): Preserve
	stack alignment.

Attachment: gcc-pr39907-1.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]