From: Niels Möller Date: Wed, 6 Feb 2013 09:22:31 +0000 (+0100) Subject: Use changecom and divert in asm.m4. X-Git-Tag: nettle_2.7_release_20130424~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26cdf2af1984abefe15d9828fa5a18c190964366;p=thirdparty%2Fnettle.git Use changecom and divert in asm.m4. --- diff --git a/ChangeLog b/ChangeLog index 23a5b191..1034cea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-02-06 Niels Möller + + * asm.m4: Use changecom to disable m4 quoting. Use divert to + suppress output. + 2013-02-05 Niels Möller * testsuite/rsa-keygen-test.c (test_main): Updated expected diff --git a/asm.m4 b/asm.m4 index d632585b..f24442da 100644 --- a/asm.m4 +++ b/asm.m4 @@ -1,9 +1,13 @@ +divert(-1) changequote(<,>)dnl dnl (progn (modify-syntax-entry ?< "(>") (modify-syntax-entry ?> ")<") ) dnl FORTRAN style comment character define(, < dnl>)dnl +dnl Disable m4 comment processing, since the default, #, is used for +dnl constants on some architectures, in particular ARM. +changecom()dnl dnl Including files from the srcdir define(, )dnl @@ -23,9 +27,11 @@ define(, <.size C_NAME($1), . - C_NAME($1)>,<>)>) dnl Argument to ALIGN is always logarithmic +dnl FIXME: the << operator is not supported by Solaris m4, +dnl and ** is not supported by OpenBSD m4. +dnl We should switch to non-logarithmic ALIGN instead. -dnl Need changequote to be able to use the << operator (using ** -dnl instead is not portable, and is not supported by openbsd m4). +dnl Need changequote to be able to use the << operator. define(, > balance @@ -68,3 +74,5 @@ STRUCTURE(AES) STRUCT(TABLE1, AES_TABLE_SIZE) STRUCT(TABLE2, AES_TABLE_SIZE) STRUCT(TABLE3, AES_TABLE_SIZE) + +divert