Skip to content

Commit

Permalink
mpn/x86_64/x86_64-defs.m4 (COFF_TYPE): Copy from mpn/x86/x86-defs.m4
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Bodrato committed Nov 1, 2020
1 parent df39ba8 commit 79bc1d2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mpn/x86_64/x86_64-defs.m4
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,28 @@ define(`PROLOGUE_cpu',
m4_assert_numargs(1)
` GLOBL $1
TYPE($1,`function')
COFF_TYPE($1)
$1:
')


dnl Usage: COFF_TYPE(GSYM_PREFIX`'foo)
dnl
dnl Emit COFF style ".def ... .endef" type information for a function, when
dnl supported. The argument should include any GSYM_PREFIX.
dnl
dnl See autoconf macro GMP_ASM_COFF_TYPE for HAVE_COFF_TYPE.

define(COFF_TYPE,
m4_assert_numargs(1)
m4_assert_defined(`HAVE_COFF_TYPE')
`ifelse(HAVE_COFF_TYPE,yes,
`.def $1
.scl 2
.type 32
.endef')')


dnl Usage: ASSERT([cond][,instructions])
dnl
dnl If WANT_ASSERT is 1, output the given instructions and expect the given
Expand Down

0 comments on commit 79bc1d2

Please sign in to comment.