diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2005-10-26 07:25:57 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2005-10-26 07:25:57 +0000 |
commit | 694a2f6ea681d5e14af695d1c1848a1bd223d69c (patch) | |
tree | 8444f3b0059333dd1aea5f73488ac8d168dc139f /gcc/testsuite | |
parent | 43f237b43f37cf15bd834e631aa82910cd9a50d8 (diff) | |
download | gcc-694a2f6ea681d5e14af695d1c1848a1bd223d69c.zip gcc-694a2f6ea681d5e14af695d1c1848a1bd223d69c.tar.gz gcc-694a2f6ea681d5e14af695d1c1848a1bd223d69c.tar.bz2 |
ia64.c (ia64_output_function_profiler): Emit an indirect call to _mcount if the function needs a static chain.
* config/ia64/ia64.c (ia64_output_function_profiler): Emit an
indirect call to _mcount if the function needs a static chain.
From-SVN: r105917
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/nested-func-4.c | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ef1196..a59b549 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-10-25 Eric Botcazou <ebotcazou@adacore.com> + + * gcc.dg/nested-func-4.c: New test. + 2005-10-26 Paul Thomas <pault@gcc.gnu.org> PR fortran/24158 diff --git a/gcc/testsuite/gcc.dg/nested-func-4.c b/gcc/testsuite/gcc.dg/nested-func-4.c new file mode 100644 index 0000000..5a17f78 --- /dev/null +++ b/gcc/testsuite/gcc.dg/nested-func-4.c @@ -0,0 +1,21 @@ +/* { dg-do run } */ +/* { dg-options "-pg" } */ + +extern void abort(void); + +void foo(int i) +{ + void bar(void) + { + if (i != 2) + abort (); + } + + bar(); +} + +int main(void) +{ + foo (2); + return 0; +} |