1 /*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department. 8 * 9 * %sccs.include.redist.c% 10 * 11 * @(#)DEFS.h 5.2 (Berkeley) 05/03/93 12 */ 13 14 #ifdef __STDC__ 15 #ifdef PROF 16 #if __GNUC__ >= 2 17 #define ENTRY(x) \ 18 .globl _ ## x; .even; _ ## x:; .data; PROF ## x:; .long 0; .text; \ 19 link a6,\#0; lea PROF ## x,a0; jsr mcount; unlk a6 20 #else 21 #define ENTRY(x) \ 22 .globl _ ## x; .even; _ ## x:; .data; PROF ## x:; .long 0; .text; \ 23 link a6,#0; lea PROF ## x,a0; jsr mcount; unlk a6 24 #endif 25 #else 26 #define ENTRY(x) \ 27 .globl _ ## x; .even; _ ## x: 28 #endif 29 #else 30 #ifdef PROF 31 #define ENTRY(x) \ 32 .globl _/**/x; .even; _/**/x:; .data; PROF/**/x:; .long 0; .text; \ 33 link a6,#0; lea PROF/**/x,a0; jsr mcount; unlk a6 34 #else 35 #define ENTRY(x) \ 36 .globl _/**/x; .even; _/**/x: 37 #endif 38 #endif 39