aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2005-10-26 07:25:57 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2005-10-26 07:25:57 +0000
commit694a2f6ea681d5e14af695d1c1848a1bd223d69c (patch)
tree8444f3b0059333dd1aea5f73488ac8d168dc139f /gcc/testsuite/gcc.dg
parent43f237b43f37cf15bd834e631aa82910cd9a50d8 (diff)
downloadgcc-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/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/nested-func-4.c21
1 files changed, 21 insertions, 0 deletions
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;
+}