Skip to content
Snippets Groups Projects
Commit 343be0b5 authored by Niels Möller's avatar Niels Möller
Browse files

Refactor PROLOGUE macro in asm.m4.

parent 1f0c7e6b
No related branches found
No related tags found
No related merge requests found
2015-01-12 Niels Möller <nisse@lysator.liu.se> 2015-01-12 Niels Möller <nisse@lysator.liu.se>
* asm.m4 (DECLARE_FUNC): New macro, extracted from PROLOGUE.
(PROLOGUE): Use it.
* configure.ac (OPT_NETTLE_OBJS, OPT_HOGWEED_OBJS): Renamed * configure.ac (OPT_NETTLE_OBJS, OPT_HOGWEED_OBJS): Renamed
substituted variables, and list the object files rather than substituted variables, and list the object files rather than
source files. source files.
......
...@@ -13,21 +13,20 @@ dnl Including files from the srcdir ...@@ -13,21 +13,20 @@ dnl Including files from the srcdir
define(<include_src>, <include(srcdir/$1)>)dnl define(<include_src>, <include(srcdir/$1)>)dnl
dnl Pseudo ops dnl Pseudo ops
define(<DECLARE_FUNC>,
define(<PROLOGUE>,
<ifelse(ELF_STYLE,yes, <ifelse(ELF_STYLE,yes,
<.globl C_NAME($1) <.type $1,TYPE_FUNCTION>,
.type C_NAME($1),TYPE_FUNCTION COFF_STYLE, yes,
C_NAME($1):>, <.def $1
COFF_STYLE, <yes>,
<.globl C_NAME($1)
.def C_NAME($1)
.scl 2 .scl 2
.type 32 .type 32
.endef .endef>,
C_NAME($1):>, <>)>)
define(<PROLOGUE>,
<.globl C_NAME($1) <.globl C_NAME($1)
C_NAME($1):>)>) DECLARE_FUNC(C_NAME($1))
C_NAME($1):>)
define(<EPILOGUE>, define(<EPILOGUE>,
<ifelse(ELF_STYLE,yes, <ifelse(ELF_STYLE,yes,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment