stormy16.c (xstormy16_function_profiler): New.
authorDJ Delorie <dj@redhat.com>
Tue, 6 May 2003 22:47:45 +0000 (18:47 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 6 May 2003 22:47:45 +0000 (18:47 -0400)
* 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
gcc/config/stormy16/stormy16-protos.h
gcc/config/stormy16/stormy16.c
gcc/config/stormy16/stormy16.h

index 73764dabf115e7f9026d270d78ffb149c9057e22..a5c4d990038ac2359890ad9fbc6833281c6868cc 100644 (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
index e957de1403c2adf314260ab02e7dfbf718fa2b04..1c4c3ce5e4e6a389bffc273d541139bc8c139042 100644 (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)
index d819981ea9a4537de261f078a8a276cb8e73c0fb..e244a0ca5b4b2e1813e2ed1cb3f06d416f035654 100644 (file)
@@ -1222,6 +1222,13 @@ xstormy16_epilogue_uses (regno)
     }
   return 0;
 }
+
+void
+xstormy16_function_profiler ()
+{
+  sorry ("function_profiler support");
+}
+
 \f
 /* Return an updated summarizer variable CUM to advance past an
    argument in the argument list.  The values MODE, TYPE and NAMED
index 9c1c6caf007f44fe05d30d6df0a2dec414f03339..8281356850c28a99b8754a3095ec674a8559cfe9 100644 (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.  */