xref: /csrg-svn/lib/libc/hp300/DEFS.h (revision 61115)
141800Sbostic /*-
2*61115Sbostic  * Copyright (c) 1990, 1993
3*61115Sbostic  *	The Regents of the University of California.  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*61115Sbostic  *	@(#)DEFS.h	8.1 (Berkeley) 06/04/93
1241800Sbostic  */
1341800Sbostic 
1459688Shibler #ifdef __STDC__
1541800Sbostic #ifdef PROF
1659688Shibler #if __GNUC__ >= 2
1741800Sbostic #define	ENTRY(x) \
1859688Shibler 	.globl _ ## x; .even; _ ## x:; .data; PROF ## x:; .long 0; .text; \
1959688Shibler 	link a6,\#0; lea PROF ## x,a0; jsr mcount; unlk a6
2041800Sbostic #else
2141800Sbostic #define	ENTRY(x) \
2259688Shibler 	.globl _ ## x; .even; _ ## x:; .data; PROF ## x:; .long 0; .text; \
2359688Shibler 	link a6,#0; lea PROF ## x,a0; jsr mcount; unlk a6
2441800Sbostic #endif
2541800Sbostic #else
2641800Sbostic #define	ENTRY(x) \
2759688Shibler 	.globl _ ## x; .even; _ ## x:
2859688Shibler #endif
2959688Shibler #else
3059688Shibler #ifdef PROF
3159688Shibler #define	ENTRY(x) \
3259688Shibler 	.globl _/**/x; .even; _/**/x:; .data; PROF/**/x:; .long 0; .text; \
3359688Shibler 	link a6,#0; lea PROF/**/x,a0; jsr mcount; unlk a6
3459688Shibler #else
3559688Shibler #define	ENTRY(x) \
3641800Sbostic 	.globl _/**/x; .even; _/**/x:
3741800Sbostic #endif
3859688Shibler #endif
39