re PR testsuite/39907 (Aligned access to unaligned address)
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 18 May 2009 16:53:25 +0000 (16:53 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 18 May 2009 16:53:25 +0000 (09:53 -0700)
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.

From-SVN: r147667

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/x86_64/abi/asm-support.S

index c900c201f7e147872d6c21090bf865e17cca4d9d..1645ea4befd96ff9bdbcf6b907b69aa50a640ba8 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2009-05-18  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/40164
index 61b66e1490a9fddb76b87f569235802b9572671f..cb1e31ea785d122b0865957b4be24f824395018c 100644 (file)
@@ -49,7 +49,9 @@ snapshot:
        .type   snapshot_ret, @function
 snapshot_ret:
        movq    %rdi, rdi(%rip)
+       subq    $8, %rsp
        call    *callthis(%rip)
+       addq    $8, %rsp
        movq    %rax, rax(%rip)
        movq    %rdx, rdx(%rip)
        movdqu  %xmm0, xmm_regs+0(%rip)