diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-05-21 20:33:40 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-05-21 20:33:40 +0000 |
commit | 61b0f6ee6f701a605fd4f1d8a1c69fd636484ad3 (patch) | |
tree | 523c9dc1628f5be34b724fe458acd24780e437eb /sys/arch | |
parent | b68373adc74ff468434033873ee10b60a2d937df (diff) |
Make _PROF_PROLOGUE visible if PROF is defined; will be needed by libc
shortly.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/include/asm.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/vax/include/asm.h b/sys/arch/vax/include/asm.h index 6b6345ae5ff..aef8f8f2f23 100644 --- a/sys/arch/vax/include/asm.h +++ b/sys/arch/vax/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.8 2003/06/02 23:27:57 millert Exp $ */ +/* $OpenBSD: asm.h,v 1.9 2008/05/21 20:33:39 miod Exp $ */ /* $NetBSD: asm.h,v 1.9 1999/01/15 13:31:28 bouyer Exp $ */ /* * Copyright (c) 1982, 1993 @@ -76,10 +76,12 @@ # endif #endif +#define _ALTENTRY(x) \ + .globl x; .type x,@function; x: #define _ENTRY(x, regs) \ - .text; _ALIGN_TEXT; .globl x; .type x,@function; x: .word regs + .text; _ALIGN_TEXT; _ALTENTRY(x) .word regs -#ifdef GPROF +#if defined(PROF) || defined(GPROF) # ifdef __ELF__ # define _PROF_PROLOGUE \ .data; 1:; .long 0; .text; moval 1b,r0; jsb _ASM_LABEL(__mcount) @@ -95,7 +97,7 @@ #define NENTRY(x, regs) _ENTRY(_C_LABEL(x), regs) #define ASENTRY(x, regs) _ENTRY(_ASM_LABEL(x), regs); _PROF_PROLOGUE -#define ALTENTRY(x) .globl _C_LABEL(x); _C_LABEL(x): +#define ALTENTRY(x) _ALTENTRY(_C_LABEL(x)) #define RCSID(x) .text; .asciz x #ifdef __ELF__ |