summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-25 07:21:54 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-25 07:21:54 +0000
commita815e00cd27b34c6606f54b3ea678fc65583e731 (patch)
tree68adfcfa40470fee983eaaf77fde50b12d07357a /gcc/crtstuff.c
parentacc1a7c4e5dbaaa21eac3666c8cd726eec221084 (diff)
downloadgcc-a815e00cd27b34c6606f54b3ea678fc65583e731.tar.gz
* crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
(fini_dummy, init_dummy): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35971 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 8603547e590..3783b5af0f9 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -62,6 +62,10 @@ Boston, MA 02111-1307, USA. */
#include "defaults.h"
#include "frame.h"
+#ifndef CRT_CALL_STATIC_FUNCTION
+# define CRT_CALL_STATIC_FUNCTION(func) func ()
+#endif
+
/* We do not want to add the weak attribute to the declarations of these
routines in frame.h because that will cause the definition of these
symbols to be weak as well.
@@ -213,7 +217,7 @@ static void __attribute__ ((__unused__))
fini_dummy (void)
{
asm (FINI_SECTION_ASM_OP);
- __do_global_dtors_aux ();
+ CRT_CALL_STATIC_FUNCTION (__do_global_dtors_aux);
#ifdef FORCE_FINI_SECTION_ALIGN
FORCE_FINI_SECTION_ALIGN;
#endif
@@ -237,7 +241,7 @@ static void __attribute__ ((__unused__))
init_dummy (void)
{
asm (INIT_SECTION_ASM_OP);
- frame_dummy ();
+ CRT_CALL_STATIC_FUNCTION (frame_dummy);
#ifdef FORCE_INIT_SECTION_ALIGN
FORCE_INIT_SECTION_ALIGN;
#endif
@@ -402,7 +406,7 @@ static void __attribute__ ((__unused__))
init_dummy (void)
{
asm (INIT_SECTION_ASM_OP);
- __do_global_ctors_aux ();
+ CRT_CALL_STATIC_FUNCTION (__do_global_ctors_aux);
#ifdef FORCE_INIT_SECTION_ALIGN
FORCE_INIT_SECTION_ALIGN;
#endif