diff gcc/testsuite/gcc.c-torture/execute/eeprof-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line diff
--- a/gcc/testsuite/gcc.c-torture/execute/eeprof-1.c	Thu Oct 25 07:37:49 2018 +0900
+++ b/gcc/testsuite/gcc.c-torture/execute/eeprof-1.c	Thu Feb 13 11:34:05 2020 +0900
@@ -62,18 +62,18 @@
   return 0;
 }
 
-void __cyg_profile_func_enter (void (*fn)(), void (*parent)()) NOCHK;
-void __cyg_profile_func_exit (void (*fn)(), void (*parent)()) NOCHK;
+void __cyg_profile_func_enter (void*, void*) NOCHK;
+void __cyg_profile_func_exit (void*, void*) NOCHK;
 
 __attribute__ ((noinline))
-void __cyg_profile_func_enter (void (*fn)(), void (*parent)())
+void __cyg_profile_func_enter (void *fn, void *parent)
 {
   entry_calls++;
-  last_fn_entered = fn;
+  last_fn_entered = (void (*)())fn;
 }
 __attribute__ ((noinline))
-void __cyg_profile_func_exit (void (*fn)(), void (*parent)())
+void __cyg_profile_func_exit (void *fn, void *parent)
 {
   exit_calls++;
-  last_fn_exited = fn;
+  last_fn_exited = (void (*)())fn;
 }