comparison 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
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
60 ASSERT (last_fn_entered == foo); 60 ASSERT (last_fn_entered == foo);
61 61
62 return 0; 62 return 0;
63 } 63 }
64 64
65 void __cyg_profile_func_enter (void (*fn)(), void (*parent)()) NOCHK; 65 void __cyg_profile_func_enter (void*, void*) NOCHK;
66 void __cyg_profile_func_exit (void (*fn)(), void (*parent)()) NOCHK; 66 void __cyg_profile_func_exit (void*, void*) NOCHK;
67 67
68 __attribute__ ((noinline)) 68 __attribute__ ((noinline))
69 void __cyg_profile_func_enter (void (*fn)(), void (*parent)()) 69 void __cyg_profile_func_enter (void *fn, void *parent)
70 { 70 {
71 entry_calls++; 71 entry_calls++;
72 last_fn_entered = fn; 72 last_fn_entered = (void (*)())fn;
73 } 73 }
74 __attribute__ ((noinline)) 74 __attribute__ ((noinline))
75 void __cyg_profile_func_exit (void (*fn)(), void (*parent)()) 75 void __cyg_profile_func_exit (void *fn, void *parent)
76 { 76 {
77 exit_calls++; 77 exit_calls++;
78 last_fn_exited = fn; 78 last_fn_exited = (void (*)())fn;
79 } 79 }