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: PING: PATCH: PR middle-end/37843:[4.4 Regression] unalignedstack in maindue to tail call optimizatiP


From: "H.J. Lu" <hjl.tools@gmail.com>

Even after middle-end patch is applied, pr37843-3.c only works with
non-PIC. I am applying this patch.
H.J.
---
Index: gcc.target/i386/pr37843-3.c
===================================================================
--- gcc.target/i386/pr37843-3.c (revision 142277)
+++ gcc.target/i386/pr37843-3.c (working copy)
@@ -1,5 +1,5 @@
/* Test for stack alignment with sibcall optimization. */
-/* { dg-do compile { target { *-*-linux* && ilp32 } } } */
+/* { dg-do compile { target { *-*-linux* && { ilp32 && nonpic } } } } */
/* { dg-options "-O2 -std=gnu99 -mpreferred-stack-boundary=4 -mincoming-stack-boundary=2" } */
/* { dg-final { scan-assembler-not "andl\[\\t \]*\\$-16,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler-not "call\[\\t \]*foo" } } */

Why did you leave in *-*-linux* ? Other nonpic x86 targets should test it also IMHO.


--Kaveh


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