diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2010-11-09 21:22:51 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2010-11-09 21:22:51 +0100 |
commit | b90bca4c9e1221ced136be6ddb09811ff75e660a (patch) | |
tree | d0d5af28ce0a432b4a827437e7836d8cfe6ef5bb /doc/configuration | |
parent | 0814b475fc197dcbe88217ac460fa2673c19536d (diff) | |
download | gmp-b90bca4c9e1221ced136be6ddb09811ff75e660a.tar.gz |
Get rid of K&R support.
Diffstat (limited to 'doc/configuration')
-rw-r--r-- | doc/configuration | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/doc/configuration b/doc/configuration index b28e21777..77dc73f3c 100644 --- a/doc/configuration +++ b/doc/configuration @@ -121,14 +121,9 @@ To add a completely new mpn function file, do the following, iii) If HAVE_NATIVE_func is going to be used, then add a #undef to the AH_VERBATIM([HAVE_NATIVE] block in configure.in. - iv) Add file.c to nodist_libdummy_la_SOURCES in mpn/Makefile.am (in - order to get an ansi2knr rule). If the file is only in - assembler then this step is unnecessary, but do it anyway so as - not to forget if later a .c version is added. - - v) If the function can be provided by a multi-function file, then - add to the "case" statement in configure.in which lists each - multi-function filename and what function files it can provide. + iv) If the function can be provided by a multi-function file, then + add to the "case" statement in configure.in which lists each + multi-function filename and what function files it can provide. ** Adding a test program @@ -245,10 +240,6 @@ INSTALL.autoconf can be copied from INSTALL in autoconf. ltmain.sh comes from libtool. Remove it and run "libtoolize --copy", or just copy the file by hand. -ansi2knr.c, ansi2knr.1, install-sh and doc/mdate-sh come from automake -and can be updated by copying or by removing and running "automake ---add-missing --copy". - texinfo.tex can be updated from ftp.gnu.org. Check it still works with "make gmp.dvi", "make gmp.ps" and "make gmp.pdf". @@ -367,30 +358,6 @@ they're the same size, which is unfortunate because casts should be used in such cases, for the benefit of K&R compilers with int!=long and where the difference matters in function calls. -** K&R support - -Function definitions must be in the GNU stylized form to work. See -the ansi2knr.1 man page (included in the GMP sources). - -__GMP_PROTO is used for function prototypes, other ANSI / K&R -differences are conditionalized in various places. - -Proper testing of the K&R support requires a compiler which gives an -error for ANSI-isms. Configuring with --host=none is a good idea, to -test all the generic C code. - -When using an ANSI compiler, the ansi2knr setups can be partially -tested with - - ./configure am_cv_prog_cc_stdc=no ac_cv_prog_cc_stdc=no - -This will test the use of $U and the like in the makefiles, but not -much else. - -Forcing the cache variables can be used with a compiler like HP C -which is K&R by default but to which configure normally adds ANSI mode -flags. This then should be a good full K&R test. - * Other Notes ** Compatibility |