From: deraadt Date: Thu, 14 Dec 1995 02:26:01 +0000 (+0000) Subject: from netbsd; cannot be sure cpp can handle x ## y X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cfcdc37110458d87a5e830f2af747400643078f0;p=openbsd from netbsd; cannot be sure cpp can handle x ## y --- diff --git a/lib/libc/arch/vax/DEFS.h b/lib/libc/arch/vax/DEFS.h index 2473550fa75..9bf5ebee98c 100644 --- a/lib/libc/arch/vax/DEFS.h +++ b/lib/libc/arch/vax/DEFS.h @@ -1,4 +1,4 @@ -/* $NetBSD: DEFS.h,v 1.1 1995/04/17 12:23:33 ragge Exp $ */ +/* $NetBSD: DEFS.h,v 1.2 1995/12/09 13:28:38 ragge Exp $ */ /* * Copyright (c) 1982, 1993 * The Regents of the University of California. All rights reserved. @@ -47,6 +47,7 @@ #define R10 0x400 #define R11 0x800 +#ifdef __STDC__ #ifdef PROF #define ENTRY(x, regs) \ .globl _ ## x ## ; .align 2; _ ## x ## : .word regs; \ @@ -60,3 +61,19 @@ #define ASENTRY(x, regs) \ .globl x; .align 2; x ## : .word regs #endif +# else +#ifdef PROF +#define ENTRY(x, regs) \ + .globl _/**/x; .align 2; _/**/x: .word regs; \ + .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount +#define ASENTRY(x, regs) \ + .globl x; .align 2; x: .word regs; \ + .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount +#else +#define ENTRY(x, regs) \ + .globl _/**/x; .align 2; _/**/x: .word regs +#define ASENTRY(x, regs) \ + .globl x; .align 2; x: .word regs +#endif +#endif +