Austin Schuh | dace2a6 | 2020-08-18 10:56:48 -0700 | [diff] [blame] | 1 | divert(-1) |
| 2 | |
| 3 | dnl m4 macros for HPPA assembler. |
| 4 | |
| 5 | dnl Copyright 2002 Free Software Foundation, Inc. |
| 6 | |
| 7 | dnl This file is part of the GNU MP Library. |
| 8 | dnl |
| 9 | dnl The GNU MP Library is free software; you can redistribute it and/or modify |
| 10 | dnl it under the terms of either: |
| 11 | dnl |
| 12 | dnl * the GNU Lesser General Public License as published by the Free |
| 13 | dnl Software Foundation; either version 3 of the License, or (at your |
| 14 | dnl option) any later version. |
| 15 | dnl |
| 16 | dnl or |
| 17 | dnl |
| 18 | dnl * the GNU General Public License as published by the Free Software |
| 19 | dnl Foundation; either version 2 of the License, or (at your option) any |
| 20 | dnl later version. |
| 21 | dnl |
| 22 | dnl or both in parallel, as here. |
| 23 | dnl |
| 24 | dnl The GNU MP Library is distributed in the hope that it will be useful, but |
| 25 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 26 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 27 | dnl for more details. |
| 28 | dnl |
| 29 | dnl You should have received copies of the GNU General Public License and the |
| 30 | dnl GNU Lesser General Public License along with the GNU MP Library. If not, |
| 31 | dnl see https://www.gnu.org/licenses/. |
| 32 | |
| 33 | |
| 34 | dnl hppa assembler comments are introduced with ";". |
| 35 | dnl |
| 36 | dnl For cooperation with cpp, apparently lines "# 123" set the line number, |
| 37 | dnl and other lines starting with a "#" are ignored. |
| 38 | |
| 39 | changecom(;) |
| 40 | |
| 41 | |
| 42 | dnl Called: PROLOGUE_cpu(GSYM_PREFIX`'foo) |
| 43 | dnl EPILOGUE_cpu(GSYM_PREFIX`'foo) |
| 44 | dnl |
| 45 | dnl These are the same as the basic PROLOGUE_cpu and EPILOGUE_cpu in |
| 46 | dnl mpn/asm-defs.m4, but using .proc / .procend. These are standard and on |
| 47 | dnl an ELF system they do what .type and .size normally do. |
| 48 | |
| 49 | define(`PROLOGUE_cpu', |
| 50 | m4_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 | |
| 60 | define(`EPILOGUE_cpu', |
| 61 | m4_assert_numargs(1) |
| 62 | ` .procend') |
| 63 | |
| 64 | divert |