Commit 10b923de by H.J. Lu Committed by H.J. Lu

re PR middle-end/37843 (unaligned stack in main due to tail call optimization)

2008-11-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/37843
	* gcc.target/i386/pr37843-1.c: Make it Linux only.
	* gcc.target/i386/pr37843-2.c: Likewise.

From-SVN: r142222
parent 39dfdd20
2008-11-26 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/37843
* gcc.target/i386/pr37843-1.c: Make it Linux only.
* gcc.target/i386/pr37843-2.c: Likewise.
2008-11-26 Kai Tietz <kai.tietz@onevision.com> 2008-11-26 Kai Tietz <kai.tietz@onevision.com>
* gcc.dg/callabi/func-indirect.c: New. * gcc.dg/callabi/func-indirect.c: New.
......
/* Test for stack alignment with sibcall optimization. */ /* Test for stack alignment with sibcall optimization. */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -mpreferred-stack-boundary=6 -mincoming-stack-boundary=5" } */ /* { dg-options "-O2 -mpreferred-stack-boundary=6 -mincoming-stack-boundary=5" } */
/* { dg-final { scan-assembler "and\[lq\]?\[\\t \]*\\$-64,\[\\t \]*%\[re\]?sp" } } */ /* { dg-final { scan-assembler "and\[lq\]?\[\\t \]*\\$-64,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler "call\[\\t \]*foo" } } */ /* { dg-final { scan-assembler "call\[\\t \]*foo" } } */
......
/* Test for stack alignment with sibcall optimization. */ /* Test for stack alignment with sibcall optimization. */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -mpreferred-stack-boundary=6 -mincoming-stack-boundary=6" } */ /* { dg-options "-O2 -mpreferred-stack-boundary=6 -mincoming-stack-boundary=6" } */
/* { dg-final { scan-assembler-not "and\[lq\]?\[\\t \]*\\$-64,\[\\t \]*%\[re\]?sp" } } */ /* { dg-final { scan-assembler-not "and\[lq\]?\[\\t \]*\\$-64,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler-not "call\[\\t \]*foo" } } */ /* { dg-final { scan-assembler-not "call\[\\t \]*foo" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment