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
This commit is contained in:
DJ Delorie 2003-05-06 18:47:45 -04:00 committed by DJ Delorie
parent dea2913c14
commit 14b5683275
4 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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>
* c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes

View File

@ -1,5 +1,5 @@
/* 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.
This file is part of GNU CC.
@ -29,6 +29,7 @@ extern int xstormy16_initial_elimination_offset PARAMS ((int, int));
extern int direct_return PARAMS ((void));
extern int xstormy16_interrupt_function_p PARAMS ((void));
extern int xstormy16_epilogue_uses PARAMS ((int));
extern void xstormy16_function_profiler PARAMS ((void));
#if defined (TREE_CODE)
# if defined (HAVE_MACHINE_MODES)

View File

@ -1222,6 +1222,13 @@ xstormy16_epilogue_uses (regno)
}
return 0;
}
void
xstormy16_function_profiler ()
{
sorry ("function_profiler support");
}
/* Return an updated summarizer variable CUM to advance past an
argument in the argument list. The values MODE, TYPE and NAMED

View File

@ -1614,7 +1614,7 @@ enum reg_class
This declaration must be present, but it can be an abort if profiling is
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
function prologue. Normally, the profiling code comes after. */