| Index: gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.c
|
| diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c b/gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.c
|
| similarity index 78%
|
| copy from gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c
|
| copy to gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.c
|
| index 84245b6fa66a07b3cbc88d15d7551e3bdd6372dd..d27572776c670e3f794e10510645bac7abc19473 100644
|
| --- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c
|
| +++ b/gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.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);
|
| + v = 1;
|
| + f ();
|
| + v = 3;
|
| return 0;
|
| }
|
|
|