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]

[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;


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