141800Sbostic /*- 241800Sbostic * Copyright (c) 1990 The Regents of the University of California. 341800Sbostic * All rights reserved. 441800Sbostic * 541800Sbostic * This code is derived from software contributed to Berkeley by 641800Sbostic * the Systems Programming Group of the University of Utah Computer 741800Sbostic * Science Department. 841800Sbostic * 941800Sbostic * %sccs.include.redist.c% 1041800Sbostic * 11*59688Shibler * @(#)DEFS.h 5.2 (Berkeley) 05/03/93 1241800Sbostic */ 1341800Sbostic 14*59688Shibler #ifdef __STDC__ 1541800Sbostic #ifdef PROF 16*59688Shibler #if __GNUC__ >= 2 1741800Sbostic #define ENTRY(x) \ 18*59688Shibler .globl _ ## x; .even; _ ## x:; .data; PROF ## x:; .long 0; .text; \ 19*59688Shibler link a6,\#0; lea PROF ## x,a0; jsr mcount; unlk a6 2041800Sbostic #else 2141800Sbostic #define ENTRY(x) \ 22*59688Shibler .globl _ ## x; .even; _ ## x:; .data; PROF ## x:; .long 0; .text; \ 23*59688Shibler link a6,#0; lea PROF ## x,a0; jsr mcount; unlk a6 2441800Sbostic #endif 2541800Sbostic #else 2641800Sbostic #define ENTRY(x) \ 27*59688Shibler .globl _ ## x; .even; _ ## x: 28*59688Shibler #endif 29*59688Shibler #else 30*59688Shibler #ifdef PROF 31*59688Shibler #define ENTRY(x) \ 32*59688Shibler .globl _/**/x; .even; _/**/x:; .data; PROF/**/x:; .long 0; .text; \ 33*59688Shibler link a6,#0; lea PROF/**/x,a0; jsr mcount; unlk a6 34*59688Shibler #else 35*59688Shibler #define ENTRY(x) \ 3641800Sbostic .globl _/**/x; .even; _/**/x: 3741800Sbostic #endif 38*59688Shibler #endif 39