From 14b568327592995e3e9a1bd8762fab7aaeb8c040 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 6 May 2003 18:47:45 -0400 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/stormy16/stormy16-protos.h | 3 ++- gcc/config/stormy16/stormy16.c | 7 +++++++ gcc/config/stormy16/stormy16.h | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73764dabf11..a5c4d990038 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-05-06 DJ Delorie + + * 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 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes diff --git a/gcc/config/stormy16/stormy16-protos.h b/gcc/config/stormy16/stormy16-protos.h index e957de1403c..1c4c3ce5e4e 100644 --- a/gcc/config/stormy16/stormy16-protos.h +++ b/gcc/config/stormy16/stormy16-protos.h @@ -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) diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index d819981ea9a..e244a0ca5b4 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -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 diff --git a/gcc/config/stormy16/stormy16.h b/gcc/config/stormy16/stormy16.h index 9c1c6caf007..8281356850c 100644 --- a/gcc/config/stormy16/stormy16.h +++ b/gcc/config/stormy16/stormy16.h @@ -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. */