Index: gdb/testsuite/gdb.arch/amd64-tailcall-ret.c |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.c |
similarity index 76% |
copy from gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c |
copy to gdb/testsuite/gdb.arch/amd64-tailcall-ret.c |
index 84245b6fa66a07b3cbc88d15d7551e3bdd6372dd..ec9a1fbb0c81512216bb7285173adad917a324f1 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c |
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.c |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2011-2012 Free Software Foundation, Inc. |
+ Copyright 2012 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -15,23 +15,25 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-asm (".globl f_start"); |
-asm ("f_start:"); |
- |
volatile int v; |
-void |
-f (int x) |
+static __attribute__ ((noinline, noclone)) void |
+g (void) |
{ |
- v++; |
+ v = 2; |
} |
-asm (".globl f_end"); |
-asm ("f_end:"); |
+static __attribute__ ((noinline, noclone)) void |
+f (void) |
+{ |
+ g (); |
+} |
int |
main (void) |
{ |
- f (1); |
+ f (); /* first */ |
+ f (); /* second */ |
+ v = 3; |
return 0; |
} |