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]

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


H.J. Lu wrote:

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?

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.

OK everywhere.


Thanks,
Uros.


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