powerpc MD_DO_NOT_NEED_FALLTHRU.

OK'ed by Matt Thomas.
This commit is contained in:
skrll 2006-10-19 18:59:30 +00:00
parent b7e3bcb0e5
commit 7e68cfaa21

View File

@ -1,4 +1,4 @@
/* $NetBSD: dot_init.h,v 1.3 2006/07/07 19:57:29 ross Exp $ */
/* $NetBSD: dot_init.h,v 1.4 2006/10/19 18:59:30 skrll Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@ -35,20 +35,10 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
/*
* These must be extern to avoid warnings ("declared static but never defined")
* However, only the declaration is extern, the actually __asm() defines them
* as static.
*/
#define INIT_FALLTHRU_DECL void init_fallthru(void)
#define FINI_FALLTHRU_DECL void fini_fallthru(void)
#define INIT_FALLTHRU() init_fallthru()
#define FINI_FALLTHRU() fini_fallthru()
#define MD_SECTION_PROLOGUE(sect, entry_pt) \
__asm ( \
".section "#sect",\"ax\",@progbits \n" \
".global "#entry_pt" \n" \
#entry_pt": \n" \
" stwu %r1,-16(%r1) \n" \
" mflr %r0 \n" \
@ -65,8 +55,10 @@
" blr \n" \
".previous")
#define MD_INIT_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.init, init_fallthru)
#define MD_FINI_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.fini, fini_fallthru)
#define MD_INIT_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.init, _init)
#define MD_FINI_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.fini, _fini)
#define MD_INIT_SECTION_EPILOGUE MD_SECTION_EPILOGUE(.init)
#define MD_FINI_SECTION_EPILOGUE MD_SECTION_EPILOGUE(.fini)
#define MD_DO_NOT_NEED_FALLTHRU