MD_DO_NOT_NEED_FALLTHRU - from Nick Hudson.
This commit is contained in:
parent
89b1051729
commit
cc10b3e0c8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dot_init.h,v 1.2 2001/10/13 09:21:50 scw Exp $ */
|
||||
/* $NetBSD: dot_init.h,v 1.3 2007/01/02 14:32:34 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 Ross Harvey
|
||||
|
@ -36,20 +36,10 @@
|
|||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
#include <machine/asm.h>
|
||||
|
||||
/*
|
||||
* 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"\
|
||||
" .align 2 \n"\
|
||||
" /* fall thru */ \n"\
|
||||
|
@ -63,8 +53,10 @@
|
|||
" rts \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
|
||||
|
|
Loading…
Reference in New Issue