This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[stack]: Adjust gcc.dg/torture/stackalign/regparm-1.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 9 Apr 2008 10:55:28 -0700
- Subject: [stack]: Adjust gcc.dg/torture/stackalign/regparm-1.c
Hi,
After merging with trunk, __regparm__(3) is no longer allowed on
nested function. I checked in the patch enclosed here to adjust
the testcase.
H.J.
---
2008-04-09 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/torture/stackalign/regparm-1.c (foo): Use __regparm__(2)
on nested function.
Index: gcc.dg/torture/stackalign/regparm-1.c
===================================================================
--- gcc.dg/torture/stackalign/regparm-1.c (revision 2091)
+++ gcc.dg/torture/stackalign/regparm-1.c (working copy)
@@ -12,7 +12,7 @@ int test_nested (int i)
{
aligned y;
- int __attribute__ ((__noinline__, __regparm__(3))) foo (int j, int k, int l)
+ int __attribute__ ((__noinline__, __regparm__(2))) foo (int j, int k, int l)
{
aligned x;