xref: /netbsd-src/external/lgpl3/gmp/dist/mpn/pa32/pa-defs.m4 (revision ce54336801cf28877c3414aa2fcb251dddd543a2)
1divert(-1)
2
3dnl  m4 macros for HPPA assembler.
4
5dnl  Copyright 2002 Free Software Foundation, Inc.
6
7dnl  This file is part of the GNU MP Library.
8dnl
9dnl  The GNU MP Library is free software; you can redistribute it and/or modify
10dnl  it under the terms of either:
11dnl
12dnl    * the GNU Lesser General Public License as published by the Free
13dnl      Software Foundation; either version 3 of the License, or (at your
14dnl      option) any later version.
15dnl
16dnl  or
17dnl
18dnl    * the GNU General Public License as published by the Free Software
19dnl      Foundation; either version 2 of the License, or (at your option) any
20dnl      later version.
21dnl
22dnl  or both in parallel, as here.
23dnl
24dnl  The GNU MP Library is distributed in the hope that it will be useful, but
25dnl  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26dnl  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
27dnl  for more details.
28dnl
29dnl  You should have received copies of the GNU General Public License and the
30dnl  GNU Lesser General Public License along with the GNU MP Library.  If not,
31dnl  see https://www.gnu.org/licenses/.
32
33
34dnl  hppa assembler comments are introduced with ";".
35dnl
36dnl  For cooperation with cpp, apparently lines "# 123" set the line number,
37dnl  and other lines starting with a "#" are ignored.
38
39changecom(;)
40
41
42dnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo)
43dnl          EPILOGUE_cpu(GSYM_PREFIX`'foo)
44dnl
45dnl  These are the same as the basic PROLOGUE_cpu and EPILOGUE_cpu in
46dnl  mpn/asm-defs.m4, but using .proc / .procend.  These are standard and on
47dnl  an ELF system they do what .type and .size normally do.
48
49define(`PROLOGUE_cpu',
50m4_assert_numargs(1)
51	`.code
52	ALIGN(8)
53	.export	`$1',entry
54`$1'LABEL_SUFFIX'
55	.proc
56	.callinfo)	dnl  This is really bogus, but allows us to compile
57			dnl  again on hppa machines.
58
59
60define(`EPILOGUE_cpu',
61m4_assert_numargs(1)
62`	.procend')
63
64divert
65