Commit 14b56832 by DJ Delorie Committed by DJ Delorie

stormy16.c (xstormy16_function_profiler): New.

* config/stormy16/stormy16.c (xstormy16_function_profiler): New.
* config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
* config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.

From-SVN: r66538
parent dea2913c
2003-05-06 DJ Delorie <dj@redhat.com>
* config/stormy16/stormy16.c (xstormy16_function_profiler): New.
* config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
* config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
2003-05-06 <neil@cat.daikokuya.co.uk> 2003-05-06 <neil@cat.daikokuya.co.uk>
* c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
......
/* Prototypes for exported functions defined in xstormy16.c /* Prototypes for exported functions defined in xstormy16.c
Copyright (C) 2000, 2001 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
Contributed by Red Hat, Inc. Contributed by Red Hat, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -29,6 +29,7 @@ extern int xstormy16_initial_elimination_offset PARAMS ((int, int)); ...@@ -29,6 +29,7 @@ extern int xstormy16_initial_elimination_offset PARAMS ((int, int));
extern int direct_return PARAMS ((void)); extern int direct_return PARAMS ((void));
extern int xstormy16_interrupt_function_p PARAMS ((void)); extern int xstormy16_interrupt_function_p PARAMS ((void));
extern int xstormy16_epilogue_uses PARAMS ((int)); extern int xstormy16_epilogue_uses PARAMS ((int));
extern void xstormy16_function_profiler PARAMS ((void));
#if defined (TREE_CODE) #if defined (TREE_CODE)
# if defined (HAVE_MACHINE_MODES) # if defined (HAVE_MACHINE_MODES)
......
...@@ -1222,6 +1222,13 @@ xstormy16_epilogue_uses (regno) ...@@ -1222,6 +1222,13 @@ xstormy16_epilogue_uses (regno)
} }
return 0; return 0;
} }
void
xstormy16_function_profiler ()
{
sorry ("function_profiler support");
}
/* Return an updated summarizer variable CUM to advance past an /* Return an updated summarizer variable CUM to advance past an
argument in the argument list. The values MODE, TYPE and NAMED argument in the argument list. The values MODE, TYPE and NAMED
......
...@@ -1614,7 +1614,7 @@ enum reg_class ...@@ -1614,7 +1614,7 @@ enum reg_class
This declaration must be present, but it can be an abort if profiling is This declaration must be present, but it can be an abort if profiling is
not implemented. */ not implemented. */
#define FUNCTION_PROFILER(FILE, LABELNO) abort () #define FUNCTION_PROFILER(FILE, LABELNO) xstormy16_function_profiler ()
/* Define this macro if the code for function profiling should come before the /* Define this macro if the code for function profiling should come before the
function prologue. Normally, the profiling code comes after. */ function prologue. Normally, the profiling code comes after. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment