This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH gcc.dg/20001117-1.c fix for callee cleanup calling convention


This test will fail during execution for callee stack cleanup
calling convention because the profiling functions are not correctly
declared.

E.g. the ip2k target or other where RETURN_POPS_ARGS() != 0 for
2 arguments.

Fix attached.

-- 
Øyvind Harboe
http://www.zylin.com
Index: 20001117-1.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20001117-1.c,v
retrieving revision 1.4
diff -u -r1.4 20001117-1.c
--- 20001117-1.c	3 Aug 2004 08:22:21 -0000	1.4
+++ 20001117-1.c	11 Mar 2005 14:58:18 -0000
@@ -24,5 +24,5 @@
   exit (0);
 }
 
-void __attribute__((no_instrument_function)) __cyg_profile_func_enter() { }
-void __attribute__((no_instrument_function)) __cyg_profile_func_exit() { } 
+void __attribute__((no_instrument_function)) __cyg_profile_func_enter(void *this_fn, void *call_site) { }
+void __attribute__((no_instrument_function)) __cyg_profile_func_exit(void *this_fn, void *call_site) { } 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]