Use c89 function declarations in MCOUNT definition.
This commit is contained in:
parent
436a58b1ab
commit
b83eb5c056
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: profile.h,v 1.19 2006/08/07 23:24:55 tsutsui Exp $ */
|
||||
/* $NetBSD: profile.h,v 1.20 2012/03/21 19:59:18 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -43,7 +43,7 @@
|
|||
#define MCOUNT \
|
||||
extern void mcount(void) __asm(MCOUNT_ENTRY) \
|
||||
__attribute__((__no_instrument_function__)); \
|
||||
void mcount() { \
|
||||
void mcount(void) { \
|
||||
int selfpc, frompcindex; \
|
||||
__asm("movl %%a6@(4),%0" : "=r" (selfpc)); \
|
||||
__asm("movl %%a6@(0)@(4),%0" : "=r" (frompcindex)); \
|
||||
|
@ -56,7 +56,7 @@ void mcount() { \
|
|||
* to do something different.
|
||||
*/
|
||||
#define MCOUNT \
|
||||
extern void mcount(void) __asm("mcount"); void mcount() { \
|
||||
extern void mcount(void) __asm("mcount"); void mcount(void) { \
|
||||
int selfpc, frompcindex; \
|
||||
__asm("movl %%a6@(4),%0" : "=r" (selfpc)); \
|
||||
__asm("movl %%a6@(0),%%a0 ; movl %%a0@(4),%0" : "=r" (frompcindex) : /* no inputs */ : "a0"); \
|
||||
|
|
Loading…
Reference in New Issue