summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Matz <matz@gcc.gnu.org>2004-02-26 14:30:13 +0000
committerMichael Matz <matz@gcc.gnu.org>2004-02-26 14:30:13 +0000
commit886ca18fe8aded5885fc3a28d48c3551ee963df3 (patch)
treef964c7d19cb757e015c5ffd9a964c1b44471980e /gcc
parentcec0e70b442f27e1eab654061caf454de8e1ea5e (diff)
downloadgcc-886ca18fe8aded5885fc3a28d48c3551ee963df3.tar.gz
20000724-1.c: Add regparm attribute to decl and def.
* gcc.dg/20000724-1.c: Add regparm attribute to decl and def. * gcc.dg/991214-1.c: Likewise. * gcc.dg/i386-asm-1.c: Likewise. From-SVN: r78500
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/20000724-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/991214-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/i386-asm-1.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/20000724-1.c b/gcc/testsuite/gcc.dg/20000724-1.c
index 5027d6e9746..3c4f2c39409 100644
--- a/gcc/testsuite/gcc.dg/20000724-1.c
+++ b/gcc/testsuite/gcc.dg/20000724-1.c
@@ -22,7 +22,7 @@ int baz(void *x)
void do_check (struct s *) asm ("do_check") __attribute__((regparm(1)));
-void do_check(struct s *x)
+void __attribute__((regparm(1))) do_check(struct s *x)
{
if (x->a.a || x->b || x->c.a.a)
abort();
diff --git a/gcc/testsuite/gcc.dg/991214-1.c b/gcc/testsuite/gcc.dg/991214-1.c
index c8e3a04049d..68b6b927916 100644
--- a/gcc/testsuite/gcc.dg/991214-1.c
+++ b/gcc/testsuite/gcc.dg/991214-1.c
@@ -4,7 +4,7 @@
/* Test against a problem with the combiner substituting explicit hard reg
references when it shouldn't. */
void foo (int, int) __attribute__ ((regparm (3)));
-void foo (int x, int y)
+void __attribute__((regparm(3))) foo (int x, int y)
{
__asm__ __volatile__("" : : "d" (x), "r" (y));
}
diff --git a/gcc/testsuite/gcc.dg/i386-asm-1.c b/gcc/testsuite/gcc.dg/i386-asm-1.c
index aae0de845b3..bf7aa1d0c4b 100644
--- a/gcc/testsuite/gcc.dg/i386-asm-1.c
+++ b/gcc/testsuite/gcc.dg/i386-asm-1.c
@@ -2,7 +2,7 @@
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O2" } */
-static int bar(int x) __asm__("bar");
+static int bar(int x) __asm__("bar") __attribute__((regparm(1)));
static int __attribute__((regparm(1), noinline, used))
bar(int x)
{