merge GMP 6.2.1.diff -r1.5 -r1.6 src/external/lgpl3/gmp/dist/Makefile.in
(mrg)
--- src/external/lgpl3/gmp/dist/Makefile.in 2020/09/27 00:30:26 1.5
+++ src/external/lgpl3/gmp/dist/Makefile.in 2021/07/11 21:15:45 1.6
@@ -91,26 +91,27 @@ | @@ -91,26 +91,27 @@ | |||
91 | # 5.0.1 10:1:0 6:1:2 4:21:1 | 91 | # 5.0.1 10:1:0 6:1:2 4:21:1 | |
92 | # 5.0.2 10:2:0 6:2:2 4:22:1 | 92 | # 5.0.2 10:2:0 6:2:2 4:22:1 | |
93 | # 5.0.3 10:3:0 6:3:2 4:23:1 | 93 | # 5.0.3 10:3:0 6:3:2 4:23:1 | |
94 | # 5.0.4 10:4:0 6:4:2 4:24:1 | 94 | # 5.0.4 10:4:0 6:4:2 4:24:1 | |
95 | # 5.0.5 10:5:0 6:5:2 4:25:1 | 95 | # 5.0.5 10:5:0 6:5:2 4:25:1 | |
96 | # 5.1.0 11:0:1 7:0:3 - | 96 | # 5.1.0 11:0:1 7:0:3 - | |
97 | # 5.1.1 11:1:1 7:1:3 - | 97 | # 5.1.1 11:1:1 7:1:3 - | |
98 | # 5.1.2 11:2:1 7:2:3 - | 98 | # 5.1.2 11:2:1 7:2:3 - | |
99 | # 6.0.0 12:0:2 8:0:4 - | 99 | # 6.0.0 12:0:2 8:0:4 - | |
100 | # 6.1.0 13:0:3 9:0:5 - | 100 | # 6.1.0 13:0:3 9:0:5 - | |
101 | # 6.1.1 13:1:3 9:1:5 - | 101 | # 6.1.1 13:1:3 9:1:5 - | |
102 | # 6.1.2 13:2:3 9:2:5 - | 102 | # 6.1.2 13:2:3 9:2:5 - | |
103 | # 6.2.0 14:0:4 10:0:6 - | 103 | # 6.2.0 14:0:4 10:0:6 - | |
104 | # 6.2.1 14:1:4 10:1:6 - | |||
104 | # | 105 | # | |
105 | # Starting at 3:0:0 is a slight abuse of the versioning system, but it | 106 | # Starting at 3:0:0 is a slight abuse of the versioning system, but it | |
106 | # ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux | 107 | # ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux | |
107 | # packages of gmp 2. Pretend gmp 2 was 2:0:0, so the interface changes for | 108 | # packages of gmp 2. Pretend gmp 2 was 2:0:0, so the interface changes for | |
108 | # gmp 3 mean 3:0:0 is right. | 109 | # gmp 3 mean 3:0:0 is right. | |
109 | # | 110 | # | |
110 | # We interpret "implementation changed" in item "1." above as meaning any | 111 | # We interpret "implementation changed" in item "1." above as meaning any | |
111 | # release, ie. the REVISION is incremented every time (if nothing else). | 112 | # release, ie. the REVISION is incremented every time (if nothing else). | |
112 | # Even if we thought the code generated will be identical on all systems, | 113 | # Even if we thought the code generated will be identical on all systems, | |
113 | # it's still good to get the shared library filename (like | 114 | # it's still good to get the shared library filename (like | |
114 | # libgmpxx.so.3.0.4) incrementing, to make it clear which GMP it's from. | 115 | # libgmpxx.so.3.0.4) incrementing, to make it clear which GMP it's from. | |
115 | 116 | |||
116 | 117 | |||
@@ -556,58 +557,59 @@ oldincludedir = @oldincludedir@ | @@ -556,58 +557,59 @@ oldincludedir = @oldincludedir@ | |||
556 | pdfdir = @pdfdir@ | 557 | pdfdir = @pdfdir@ | |
557 | prefix = @prefix@ | 558 | prefix = @prefix@ | |
558 | program_transform_name = @program_transform_name@ | 559 | program_transform_name = @program_transform_name@ | |
559 | psdir = @psdir@ | 560 | psdir = @psdir@ | |
560 | sbindir = @sbindir@ | 561 | sbindir = @sbindir@ | |
561 | sharedstatedir = @sharedstatedir@ | 562 | sharedstatedir = @sharedstatedir@ | |
562 | srcdir = @srcdir@ | 563 | srcdir = @srcdir@ | |
563 | sysconfdir = @sysconfdir@ | 564 | sysconfdir = @sysconfdir@ | |
564 | target_alias = @target_alias@ | 565 | target_alias = @target_alias@ | |
565 | top_build_prefix = @top_build_prefix@ | 566 | top_build_prefix = @top_build_prefix@ | |
566 | top_builddir = @top_builddir@ | 567 | top_builddir = @top_builddir@ | |
567 | top_srcdir = @top_srcdir@ | 568 | top_srcdir = @top_srcdir@ | |
568 | LIBGMP_LT_CURRENT = 14 | 569 | LIBGMP_LT_CURRENT = 14 | |
569 | LIBGMP_LT_REVISION = 0 | 570 | LIBGMP_LT_REVISION = 1 | |
570 | LIBGMP_LT_AGE = 4 | 571 | LIBGMP_LT_AGE = 4 | |
571 | LIBGMPXX_LT_CURRENT = 10 | 572 | LIBGMPXX_LT_CURRENT = 10 | |
572 | LIBGMPXX_LT_REVISION = 0 | 573 | LIBGMPXX_LT_REVISION = 1 | |
573 | LIBGMPXX_LT_AGE = 6 | 574 | LIBGMPXX_LT_AGE = 6 | |
574 | SUBDIRS = tests mpn mpz mpq mpf printf scanf rand cxx demos tune doc | 575 | SUBDIRS = tests mpn mpz mpq mpf printf scanf rand cxx demos tune doc | |
575 | 576 | |||
576 | # Put asl.h here for now. | 577 | # Put asl.h here for now. | |
577 | 578 | |||
578 | # The "test -f" support for srcdir!=builddir is similar to the automake .c.o | 579 | # The "test -f" support for srcdir!=builddir is similar to the automake .c.o | |
579 | # etc rules, but with each foo.c explicitly, since $< is not portable | 580 | # etc rules, but with each foo.c explicitly, since $< is not portable | |
580 | # outside an inference rule. | 581 | # outside an inference rule. | |
581 | # | 582 | # | |
582 | # A quoted 'foo.c' is used with the "test -f"'s to avoid Sun make rewriting | 583 | # A quoted 'foo.c' is used with the "test -f"'s to avoid Sun make rewriting | |
583 | # it as part of its VPATH support. See the autoconf manual "Limitations of | 584 | # it as part of its VPATH support. See the autoconf manual "Limitations of | |
584 | # Make". | 585 | # Make". | |
585 | # | 586 | # | |
586 | # Generated .h files which are used by gmp-impl.h are BUILT_SOURCES since | 587 | # Generated .h files which are used by gmp-impl.h are BUILT_SOURCES since | |
587 | # they must exist before anything can be compiled. | 588 | # they must exist before anything can be compiled. | |
588 | # | 589 | # | |
589 | # Other generated .h files are also BUILT_SOURCES so as to get all the | 590 | # Other generated .h files are also BUILT_SOURCES so as to get all the | |
590 | # build-system stuff over and done with at the start. Also, dependencies on | 591 | # build-system stuff over and done with at the start. Also, dependencies on | |
591 | # the .h files are not properly expressed for the various objects that use | 592 | # the .h files are not properly expressed for the various objects that use | |
592 | # them. | 593 | # them. | |
593 | 594 | |||
594 | # Distribute mini-gmp. Test sources copied by dist-hook. | 595 | # Distribute mini-gmp. Test sources copied by dist-hook. | |
595 | EXTRA_DIST = configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf \ | 596 | EXTRA_DIST = configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf \ | |
596 | COPYING.LESSERv3 COPYINGv2 COPYINGv3 asl.h gmpxx.h bootstrap.c \ | 597 | COPYING.LESSERv3 COPYINGv2 COPYINGv3 asl.h gmpxx.h bootstrap.c \ | |
597 | gen-fac.c gen-fib.c gen-bases.c gen-trialdivtab.c \ | 598 | gen-fac.c gen-fib.c gen-bases.c gen-trialdivtab.c \ | |
598 | gen-jacobitab.c gen-psqr.c mini-gmp/README mini-gmp/mini-gmp.c \ | 599 | gen-jacobitab.c gen-psqr.c mini-gmp/README mini-gmp/mini-gmp.c \ | |
599 | mini-gmp/mini-gmp.h mini-gmp/mini-mpq.c mini-gmp/mini-mpq.h \ | 600 | mini-gmp/mini-gmp.h mini-gmp/ChangeLog mini-gmp/mini-mpq.c \ | |
600 | mini-gmp/tests/Makefile mini-gmp/tests/run-tests | 601 | mini-gmp/mini-mpq.h mini-gmp/tests/Makefile \ | |
602 | mini-gmp/tests/run-tests | |||
601 | pkgconfigdir = $(libdir)/pkgconfig | 603 | pkgconfigdir = $(libdir)/pkgconfig | |
602 | pkgconfig_DATA = gmp.pc $(am__append_1) | 604 | pkgconfig_DATA = gmp.pc $(am__append_1) | |
603 | @WANT_CXX_TRUE@GMPXX_HEADERS_OPTION = gmpxx.h | 605 | @WANT_CXX_TRUE@GMPXX_HEADERS_OPTION = gmpxx.h | |
604 | 606 | |||
605 | # gmp.h is architecture dependent, mainly since it encodes the limb size used | 607 | # gmp.h is architecture dependent, mainly since it encodes the limb size used | |
606 | # in libgmp. For that reason it belongs under $exec_prefix not $prefix, | 608 | # in libgmp. For that reason it belongs under $exec_prefix not $prefix, | |
607 | # strictly speaking. | 609 | # strictly speaking. | |
608 | # | 610 | # | |
609 | # $exec_prefix/include is not in the default include path for gcc built to | 611 | # $exec_prefix/include is not in the default include path for gcc built to | |
610 | # the same $prefix and $exec_prefix, which might mean gmp.h is not found, | 612 | # the same $prefix and $exec_prefix, which might mean gmp.h is not found, | |
611 | # but anyone knowledgeable enough to be playing with exec_prefix will be able | 613 | # but anyone knowledgeable enough to be playing with exec_prefix will be able | |
612 | # to address that. | 614 | # to address that. | |
613 | # | 615 | # | |
@@ -1499,27 +1501,27 @@ dist-hook: | @@ -1499,27 +1501,27 @@ dist-hook: | |||
1499 | -find $(distdir) \( -name CVS -type d \) -o -name "*~" -o -name ".#*" \ | 1501 | -find $(distdir) \( -name CVS -type d \) -o -name "*~" -o -name ".#*" \ | |
1500 | | xargs rm -rf | 1502 | | xargs rm -rf | |
1501 | cp "$(srcdir)"/mini-gmp/tests/*.[ch] "$(distdir)/mini-gmp/tests" | 1503 | cp "$(srcdir)"/mini-gmp/tests/*.[ch] "$(distdir)/mini-gmp/tests" | |
1502 | # grep -F $(VERSION) $(srcdir)/Makefile.am \ | 1504 | # grep -F $(VERSION) $(srcdir)/Makefile.am \ | |
1503 | # | grep -q "^# *$(VERSION) *$(LIBGMP_LT_CURRENT):$(LIBGMP_LT_REVISION):$(LIBGMP_LT_AGE) *$(LIBGMPXX_LT_CURRENT):$(LIBGMPXX_LT_REVISION):$(LIBGMPXX_LT_AGE)" | 1505 | # | grep -q "^# *$(VERSION) *$(LIBGMP_LT_CURRENT):$(LIBGMP_LT_REVISION):$(LIBGMP_LT_AGE) *$(LIBGMPXX_LT_CURRENT):$(LIBGMPXX_LT_REVISION):$(LIBGMPXX_LT_AGE)" | |
1504 | # test -z "`sed -n 's/^# *[0-9]*\.[0-9]*\.[0-9]* *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\).*/A\1\nB\2\nC\3/p' $(srcdir)/Makefile.am | grep -v 'A6:3:3\|B3:5:0\|C4:7:1' | sort | uniq -d`" | 1506 | # test -z "`sed -n 's/^# *[0-9]*\.[0-9]*\.[0-9]* *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\).*/A\1\nB\2\nC\3/p' $(srcdir)/Makefile.am | grep -v 'A6:3:3\|B3:5:0\|C4:7:1' | sort | uniq -d`" | |
1505 | 1507 | |||
1506 | .PHONY: check-mini-gmp clean-mini-gmp | 1508 | .PHONY: check-mini-gmp clean-mini-gmp | |
1507 | 1509 | |||
1508 | check-mini-gmp: | 1510 | check-mini-gmp: | |
1509 | abs_srcdir="`cd $(srcdir) && pwd`" ; \ | 1511 | abs_srcdir="`cd $(srcdir) && pwd`" ; \ | |
1510 | $(MKDIR_P) mini-gmp/tests \ | 1512 | $(MKDIR_P) mini-gmp/tests \ | |
1511 | && cd mini-gmp/tests \ | 1513 | && cd mini-gmp/tests \ | |
1512 | && TEST_LIBRARY_PATH="../../.libs" \ | 1514 | && TEST_SHLIB_DIR="${abs_top_builddir}/.libs" \ | |
1513 | $(MAKE) -f "$$abs_srcdir/mini-gmp/tests/Makefile" \ | 1515 | $(MAKE) -f "$$abs_srcdir/mini-gmp/tests/Makefile" \ | |
1514 | VPATH="$$abs_srcdir/mini-gmp/tests" \ | 1516 | VPATH="$$abs_srcdir/mini-gmp/tests" \ | |
1515 | srcdir="$$abs_srcdir/mini-gmp/tests" \ | 1517 | srcdir="$$abs_srcdir/mini-gmp/tests" \ | |
1516 | MINI_GMP_DIR="$$abs_srcdir/mini-gmp" \ | 1518 | MINI_GMP_DIR="$$abs_srcdir/mini-gmp" \ | |
1517 | LDFLAGS="-L../../.libs" \ | 1519 | LDFLAGS="-L../../.libs" \ | |
1518 | LIBS="-lgmp -lm" \ | 1520 | LIBS="-lgmp -lm" \ | |
1519 | CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I../.." check | 1521 | CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I../.." check | |
1520 | 1522 | |||
1521 | clean-mini-gmp: | 1523 | clean-mini-gmp: | |
1522 | if [ -d mini-gmp/tests ] ; then \ | 1524 | if [ -d mini-gmp/tests ] ; then \ | |
1523 | abs_srcdir="`cd $(srcdir) && pwd`" ; \ | 1525 | abs_srcdir="`cd $(srcdir) && pwd`" ; \ | |
1524 | cd mini-gmp/tests \ | 1526 | cd mini-gmp/tests \ | |
1525 | && $(MAKE) -f "$$abs_srcdir/mini-gmp/tests/Makefile" clean ; \ | 1527 | && $(MAKE) -f "$$abs_srcdir/mini-gmp/tests/Makefile" clean ; \ |
--- src/external/lgpl3/gmp/dist/gmp-impl.h 2020/09/27 00:30:26 1.5
+++ src/external/lgpl3/gmp/dist/gmp-impl.h 2021/07/11 21:15:45 1.6
@@ -281,33 +281,33 @@ typedef struct {mp_limb_t inv21, inv32, | @@ -281,33 +281,33 @@ typedef struct {mp_limb_t inv21, inv32, | |||
281 | returns doesn't alias anything. */ | 281 | returns doesn't alias anything. */ | |
282 | #if HAVE_ATTRIBUTE_MALLOC | 282 | #if HAVE_ATTRIBUTE_MALLOC | |
283 | #define ATTRIBUTE_MALLOC __attribute__ ((malloc)) | 283 | #define ATTRIBUTE_MALLOC __attribute__ ((malloc)) | |
284 | #else | 284 | #else | |
285 | #define ATTRIBUTE_MALLOC | 285 | #define ATTRIBUTE_MALLOC | |
286 | #endif | 286 | #endif | |
287 | 287 | |||
288 | 288 | |||
289 | #if ! HAVE_STRCHR | 289 | #if ! HAVE_STRCHR | |
290 | #define strchr(s,c) index(s,c) | 290 | #define strchr(s,c) index(s,c) | |
291 | #endif | 291 | #endif | |
292 | 292 | |||
293 | #if ! HAVE_MEMSET | 293 | #if ! HAVE_MEMSET | |
294 | #define memset(p, c, n) \ | 294 | #define memset(p, c, n) \ | |
295 | do { \ | 295 | do { \ | |
296 | ASSERT ((n) >= 0); \ | 296 | unsigned char *__memset__p = (unsigned char *) (p); \ | |
297 | char *__memset__p = (p); \ | 297 | int __i; \ | |
298 | int __i; \ | 298 | ASSERT ((n) >= 0); \ | |
299 | for (__i = 0; __i < (n); __i++) \ | 299 | for (__i = 0; __i < (n); __i++) \ | |
300 | __memset__p[__i] = (c); \ | 300 | __memset__p[__i] = (c); \ | |
301 | } while (0) | 301 | } while (0) | |
302 | #endif | 302 | #endif | |
303 | 303 | |||
304 | /* va_copy is standard in C99, and gcc provides __va_copy when in strict C89 | 304 | /* va_copy is standard in C99, and gcc provides __va_copy when in strict C89 | |
305 | mode. Falling back to a memcpy will give maximum portability, since it | 305 | mode. Falling back to a memcpy will give maximum portability, since it | |
306 | works no matter whether va_list is a pointer, struct or array. */ | 306 | works no matter whether va_list is a pointer, struct or array. */ | |
307 | #if ! defined (va_copy) && defined (__va_copy) | 307 | #if ! defined (va_copy) && defined (__va_copy) | |
308 | #define va_copy(dst,src) __va_copy(dst,src) | 308 | #define va_copy(dst,src) __va_copy(dst,src) | |
309 | #endif | 309 | #endif | |
310 | #if ! defined (va_copy) | 310 | #if ! defined (va_copy) | |
311 | #define va_copy(dst,src) \ | 311 | #define va_copy(dst,src) \ | |
312 | do { memcpy (&(dst), &(src), sizeof (va_list)); } while (0) | 312 | do { memcpy (&(dst), &(src), sizeof (va_list)); } while (0) | |
313 | #endif | 313 | #endif |
--- src/external/lgpl3/gmp/dist/config.guess 2020/11/17 10:35:15 1.6
+++ src/external/lgpl3/gmp/dist/config.guess 2021/07/11 21:15:45 1.7
@@ -982,29 +982,39 @@ main () | @@ -982,29 +982,39 @@ main () | |||
982 | case 23: /* Zen */ | 982 | case 23: /* Zen */ | |
983 | cpu_64bit = 1, cpu_avx = 1; | 983 | cpu_64bit = 1, cpu_avx = 1; | |
984 | switch (model) | 984 | switch (model) | |
985 | { | 985 | { | |
986 | case 1: | 986 | case 1: | |
987 | case 8: | 987 | case 8: | |
988 | case 17: | 988 | case 17: | |
989 | case 24: | 989 | case 24: | |
990 | modelstr = "zen"; | 990 | modelstr = "zen"; | |
991 | break; | 991 | break; | |
992 | default: | 992 | default: | |
993 | modelstr = "zen2"; | 993 | modelstr = "zen2"; | |
994 | break; | 994 | break; | |
995 | } | 995 | } | |
996 | break; | |||
997 | case 25: /* Zen 3 */ | |||
998 | cpu_64bit = 1, cpu_avx = 1; | |||
999 | modelstr = "zen3"; | |||
1000 | break; | |||
996 | } | 1001 | } | |
997 | } | 1002 | } | |
1003 | else if (strcmp (vendor_string, "HygonGenuine") == 0) | |||
1004 | { | |||
1005 | cpu_64bit = 1, cpu_avx = 1; | |||
1006 | modelstr = "zen"; | |||
1007 | } | |||
998 | else if (strcmp (vendor_string, "CyrixInstead") == 0) | 1008 | else if (strcmp (vendor_string, "CyrixInstead") == 0) | |
999 | { | 1009 | { | |
1000 | /* Should recognize Cyrix' processors too. */ | 1010 | /* Should recognize Cyrix' processors too. */ | |
1001 | } | 1011 | } | |
1002 | else if (strcmp (vendor_string, "CentaurHauls") == 0) | 1012 | else if (strcmp (vendor_string, "CentaurHauls") == 0) | |
1003 | { | 1013 | { | |
1004 | switch (family) | 1014 | switch (family) | |
1005 | { | 1015 | { | |
1006 | case 6: | 1016 | case 6: | |
1007 | if (model < 9) modelstr = "viac3"; | 1017 | if (model < 9) modelstr = "viac3"; | |
1008 | else if (model < 15) modelstr = "viac32"; | 1018 | else if (model < 15) modelstr = "viac32"; | |
1009 | else cpu_64bit = 1, modelstr = "nano"; | 1019 | else cpu_64bit = 1, modelstr = "nano"; | |
1010 | break; | 1020 | break; |
--- src/external/lgpl3/gmp/dist/configfsf.sub 2020/09/27 00:30:26 1.6
+++ src/external/lgpl3/gmp/dist/configfsf.sub 2021/07/11 21:15:45 1.7
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh | |
2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. | |
3 | # Copyright 1992-2020 Free Software Foundation, Inc. | 3 | # Copyright 1992-2020 Free Software Foundation, Inc. | |
4 | 4 | |||
5 | timestamp='2020-01-01' | 5 | timestamp='2020-10-13' | |
6 | 6 | |||
7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it | |
8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 3 of the License, or | 9 | # the Free Software Foundation; either version 3 of the License, or | |
10 | # (at your option) any later version. | 10 | # (at your option) any later version. | |
11 | # | 11 | # | |
12 | # This program is distributed in the hope that it will be useful, but | 12 | # This program is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | # General Public License for more details. | 15 | # General Public License for more details. | |
16 | # | 16 | # | |
17 | # You should have received a copy of the GNU General Public License | 17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | 18 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
@@ -114,534 +114,537 @@ esac | @@ -114,534 +114,537 @@ esac | |||
114 | # shellcheck disable=SC2162 | 114 | # shellcheck disable=SC2162 | |
115 | IFS="-" read field1 field2 field3 field4 <<EOF | 115 | IFS="-" read field1 field2 field3 field4 <<EOF | |
116 | $1 | 116 | $1 | |
117 | EOF | 117 | EOF | |
118 | 118 | |||
119 | # Separate into logical components for further validation | 119 | # Separate into logical components for further validation | |
120 | case $1 in | 120 | case $1 in | |
121 | *-*-*-*-*) | 121 | *-*-*-*-*) | |
122 | echo Invalid configuration \`"$1"\': more than four components >&2 | 122 | echo Invalid configuration \`"$1"\': more than four components >&2 | |
123 | exit 1 | 123 | exit 1 | |
124 | ;; | 124 | ;; | |
125 | *-*-*-*) | 125 | *-*-*-*) | |
126 | basic_machine=$field1-$field2 | 126 | basic_machine=$field1-$field2 | |
127 | os=$field3-$field4 | 127 | basic_os=$field3-$field4 | |
128 | ;; | 128 | ;; | |
129 | *-*-*) | 129 | *-*-*) | |
130 | # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two | 130 | # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two | |
131 | # parts | 131 | # parts | |
132 | maybe_os=$field2-$field3 | 132 | maybe_os=$field2-$field3 | |
133 | case $maybe_os in | 133 | case $maybe_os in | |
134 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ | 134 | nto-qnx* | linux-* | uclinux-uclibc* \ | |
135 | | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ | |||
136 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | 135 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | |
137 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | 136 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | |
138 | | storm-chaos* | os2-emx* | rtmk-nova*) | 137 | | storm-chaos* | os2-emx* | rtmk-nova*) | |
139 | basic_machine=$field1 | 138 | basic_machine=$field1 | |
140 | os=$maybe_os | 139 | basic_os=$maybe_os | |
141 | ;; | 140 | ;; | |
142 | android-linux) | 141 | android-linux) | |
143 | basic_machine=$field1-unknown | 142 | basic_machine=$field1-unknown | |
144 | os=linux-android | 143 | basic_os=linux-android | |
145 | ;; | 144 | ;; | |
146 | *) | 145 | *) | |
147 | basic_machine=$field1-$field2 | 146 | basic_machine=$field1-$field2 | |
148 | os=$field3 | 147 | basic_os=$field3 | |
149 | ;; | 148 | ;; | |
150 | esac | 149 | esac | |
151 | ;; | 150 | ;; | |
152 | *-*) | 151 | *-*) | |
153 | # A lone config we happen to match not fitting any pattern | 152 | # A lone config we happen to match not fitting any pattern | |
154 | case $field1-$field2 in | 153 | case $field1-$field2 in | |
155 | decstation-3100) | 154 | decstation-3100) | |
156 | basic_machine=mips-dec | 155 | basic_machine=mips-dec | |
157 | os= | 156 | basic_os= | |
158 | ;; | 157 | ;; | |
159 | *-*) | 158 | *-*) | |
160 | # Second component is usually, but not always the OS | 159 | # Second component is usually, but not always the OS | |
161 | case $field2 in | 160 | case $field2 in | |
162 | # Prevent following clause from handling this valid os | 161 | # Prevent following clause from handling this valid os | |
163 | sun*os*) | 162 | sun*os*) | |
164 | basic_machine=$field1 | 163 | basic_machine=$field1 | |
165 | os=$field2 | 164 | basic_os=$field2 | |
166 | ;; | 165 | ;; | |
167 | # Manufacturers | 166 | # Manufacturers | |
168 | dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | 167 | dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | |
169 | | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | 168 | | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | |
170 | | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | 169 | | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | |
171 | | convergent* | ncr* | news | 32* | 3600* | 3100* \ | 170 | | convergent* | ncr* | news | 32* | 3600* | 3100* \ | |
172 | | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | 171 | | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | |
173 | | ultra | tti* | harris | dolphin | highlevel | gould \ | 172 | | ultra | tti* | harris | dolphin | highlevel | gould \ | |
174 | | cbm | ns | masscomp | apple | axis | knuth | cray \ | 173 | | cbm | ns | masscomp | apple | axis | knuth | cray \ | |
175 | | microblaze* | sim | cisco \ | 174 | | microblaze* | sim | cisco \ | |
176 | | oki | wec | wrs | winbond) | 175 | | oki | wec | wrs | winbond) | |
177 | basic_machine=$field1-$field2 | 176 | basic_machine=$field1-$field2 | |
178 | os= | 177 | basic_os= | |
179 | ;; | 178 | ;; | |
180 | *) | 179 | *) | |
181 | basic_machine=$field1 | 180 | basic_machine=$field1 | |
182 | os=$field2 | 181 | basic_os=$field2 | |
183 | ;; | 182 | ;; | |
184 | esac | 183 | esac | |
185 | ;; | 184 | ;; | |
186 | esac | 185 | esac | |
187 | ;; | 186 | ;; | |
188 | *) | 187 | *) | |
189 | # Convert single-component short-hands not valid as part of | 188 | # Convert single-component short-hands not valid as part of | |
190 | # multi-component configurations. | 189 | # multi-component configurations. | |
191 | case $field1 in | 190 | case $field1 in | |
192 | 386bsd) | 191 | 386bsd) | |
193 | basic_machine=i386-pc | 192 | basic_machine=i386-pc | |
194 | os=bsd | 193 | basic_os=bsd | |
195 | ;; | 194 | ;; | |
196 | a29khif) | 195 | a29khif) | |
197 | basic_machine=a29k-amd | 196 | basic_machine=a29k-amd | |
198 | os=udi | 197 | basic_os=udi | |
199 | ;; | 198 | ;; | |
200 | adobe68k) | 199 | adobe68k) | |
201 | basic_machine=m68010-adobe | 200 | basic_machine=m68010-adobe | |
202 | os=scout | 201 | basic_os=scout | |
203 | ;; | 202 | ;; | |
204 | alliant) | 203 | alliant) | |
205 | basic_machine=fx80-alliant | 204 | basic_machine=fx80-alliant | |
206 | os= | 205 | basic_os= | |
207 | ;; | 206 | ;; | |
208 | altos | altos3068) | 207 | altos | altos3068) | |
209 | basic_machine=m68k-altos | 208 | basic_machine=m68k-altos | |
210 | os= | 209 | basic_os= | |
211 | ;; | 210 | ;; | |
212 | am29k) | 211 | am29k) | |
213 | basic_machine=a29k-none | 212 | basic_machine=a29k-none | |
214 | os=bsd | 213 | basic_os=bsd | |
215 | ;; | 214 | ;; | |
216 | amdahl) | 215 | amdahl) | |
217 | basic_machine=580-amdahl | 216 | basic_machine=580-amdahl | |
218 | os=sysv | 217 | basic_os=sysv | |
219 | ;; | 218 | ;; | |
220 | amiga) | 219 | amiga) | |
221 | basic_machine=m68k-unknown | 220 | basic_machine=m68k-unknown | |
222 | os= | 221 | basic_os= | |
223 | ;; | 222 | ;; | |
224 | amigaos | amigados) | 223 | amigaos | amigados) | |
225 | basic_machine=m68k-unknown | 224 | basic_machine=m68k-unknown | |
226 | os=amigaos | 225 | basic_os=amigaos | |
227 | ;; | 226 | ;; | |
228 | amigaunix | amix) | 227 | amigaunix | amix) | |
229 | basic_machine=m68k-unknown | 228 | basic_machine=m68k-unknown | |
230 | os=sysv4 | 229 | basic_os=sysv4 | |
231 | ;; | 230 | ;; | |
232 | apollo68) | 231 | apollo68) | |
233 | basic_machine=m68k-apollo | 232 | basic_machine=m68k-apollo | |
234 | os=sysv | 233 | basic_os=sysv | |
235 | ;; | 234 | ;; | |
236 | apollo68bsd) | 235 | apollo68bsd) | |
237 | basic_machine=m68k-apollo | 236 | basic_machine=m68k-apollo | |
238 | os=bsd | 237 | basic_os=bsd | |
239 | ;; | 238 | ;; | |
240 | aros) | 239 | aros) | |
241 | basic_machine=i386-pc | 240 | basic_machine=i386-pc | |
242 | os=aros | 241 | basic_os=aros | |
243 | ;; | 242 | ;; | |
244 | aux) | 243 | aux) | |
245 | basic_machine=m68k-apple | 244 | basic_machine=m68k-apple | |
246 | os=aux | 245 | basic_os=aux | |
247 | ;; | 246 | ;; | |
248 | balance) | 247 | balance) | |
249 | basic_machine=ns32k-sequent | 248 | basic_machine=ns32k-sequent | |
250 | os=dynix | 249 | basic_os=dynix | |
251 | ;; | 250 | ;; | |
252 | blackfin) | 251 | blackfin) | |
253 | basic_machine=bfin-unknown | 252 | basic_machine=bfin-unknown | |
254 | os=linux | 253 | basic_os=linux | |
255 | ;; | 254 | ;; | |
256 | cegcc) | 255 | cegcc) | |
257 | basic_machine=arm-unknown | 256 | basic_machine=arm-unknown | |
258 | os=cegcc | 257 | basic_os=cegcc | |
259 | ;; | 258 | ;; | |
260 | convex-c1) | 259 | convex-c1) | |
261 | basic_machine=c1-convex | 260 | basic_machine=c1-convex | |
262 | os=bsd | 261 | basic_os=bsd | |
263 | ;; | 262 | ;; | |
264 | convex-c2) | 263 | convex-c2) | |
265 | basic_machine=c2-convex | 264 | basic_machine=c2-convex | |
266 | os=bsd | 265 | basic_os=bsd | |
267 | ;; | 266 | ;; | |
268 | convex-c32) | 267 | convex-c32) | |
269 | basic_machine=c32-convex | 268 | basic_machine=c32-convex | |
270 | os=bsd | 269 | basic_os=bsd | |
271 | ;; | 270 | ;; | |
272 | convex-c34) | 271 | convex-c34) | |
273 | basic_machine=c34-convex | 272 | basic_machine=c34-convex | |
274 | os=bsd | 273 | basic_os=bsd | |
275 | ;; | 274 | ;; | |
276 | convex-c38) | 275 | convex-c38) | |
277 | basic_machine=c38-convex | 276 | basic_machine=c38-convex | |
278 | os=bsd | 277 | basic_os=bsd | |
279 | ;; | 278 | ;; | |
280 | cray) | 279 | cray) | |
281 | basic_machine=j90-cray | 280 | basic_machine=j90-cray | |
282 | os=unicos | 281 | basic_os=unicos | |
283 | ;; | 282 | ;; | |
284 | crds | unos) | 283 | crds | unos) | |
285 | basic_machine=m68k-crds | 284 | basic_machine=m68k-crds | |
286 | os= | 285 | basic_os= | |
287 | ;; | 286 | ;; | |
288 | da30) | 287 | da30) | |
289 | basic_machine=m68k-da30 | 288 | basic_machine=m68k-da30 | |
290 | os= | 289 | basic_os= | |
291 | ;; | 290 | ;; | |
292 | decstation | pmax | pmin | dec3100 | decstatn) | 291 | decstation | pmax | pmin | dec3100 | decstatn) | |
293 | basic_machine=mips-dec | 292 | basic_machine=mips-dec | |
294 | os= | 293 | basic_os= | |
295 | ;; | 294 | ;; | |
296 | delta88) | 295 | delta88) | |
297 | basic_machine=m88k-motorola | 296 | basic_machine=m88k-motorola | |
298 | os=sysv3 | 297 | basic_os=sysv3 | |
299 | ;; | 298 | ;; | |
300 | dicos) | 299 | dicos) | |
301 | basic_machine=i686-pc | 300 | basic_machine=i686-pc | |
302 | os=dicos | 301 | basic_os=dicos | |
303 | ;; | 302 | ;; | |
304 | djgpp) | 303 | djgpp) | |
305 | basic_machine=i586-pc | 304 | basic_machine=i586-pc | |
306 | os=msdosdjgpp | 305 | basic_os=msdosdjgpp | |
307 | ;; | 306 | ;; | |
308 | ebmon29k) | 307 | ebmon29k) | |
309 | basic_machine=a29k-amd | 308 | basic_machine=a29k-amd | |
310 | os=ebmon | 309 | basic_os=ebmon | |
311 | ;; | 310 | ;; | |
312 | es1800 | OSE68k | ose68k | ose | OSE) | 311 | es1800 | OSE68k | ose68k | ose | OSE) | |
313 | basic_machine=m68k-ericsson | 312 | basic_machine=m68k-ericsson | |
314 | os=ose | 313 | basic_os=ose | |
315 | ;; | 314 | ;; | |
316 | gmicro) | 315 | gmicro) | |
317 | basic_machine=tron-gmicro | 316 | basic_machine=tron-gmicro | |
318 | os=sysv | 317 | basic_os=sysv | |
319 | ;; | 318 | ;; | |
320 | go32) | 319 | go32) | |
321 | basic_machine=i386-pc | 320 | basic_machine=i386-pc | |
322 | os=go32 | 321 | basic_os=go32 | |
323 | ;; | 322 | ;; | |
324 | h8300hms) | 323 | h8300hms) | |
325 | basic_machine=h8300-hitachi | 324 | basic_machine=h8300-hitachi | |
326 | os=hms | 325 | basic_os=hms | |
327 | ;; | 326 | ;; | |
328 | h8300xray) | 327 | h8300xray) | |
329 | basic_machine=h8300-hitachi | 328 | basic_machine=h8300-hitachi | |
330 | os=xray | 329 | basic_os=xray | |
331 | ;; | 330 | ;; | |
332 | h8500hms) | 331 | h8500hms) | |
333 | basic_machine=h8500-hitachi | 332 | basic_machine=h8500-hitachi | |
334 | os=hms | 333 | basic_os=hms | |
335 | ;; | 334 | ;; | |
336 | harris) | 335 | harris) | |
337 | basic_machine=m88k-harris | 336 | basic_machine=m88k-harris | |
338 | os=sysv3 | 337 | basic_os=sysv3 | |
339 | ;; | 338 | ;; | |
340 | hp300 | hp300hpux) | 339 | hp300 | hp300hpux) | |
341 | basic_machine=m68k-hp | 340 | basic_machine=m68k-hp | |
342 | os=hpux | 341 | basic_os=hpux | |
343 | ;; | 342 | ;; | |
344 | hp300bsd) | 343 | hp300bsd) | |
345 | basic_machine=m68k-hp | 344 | basic_machine=m68k-hp | |
346 | os=bsd | 345 | basic_os=bsd | |
347 | ;; | 346 | ;; | |
348 | hppaosf) | 347 | hppaosf) | |
349 | basic_machine=hppa1.1-hp | 348 | basic_machine=hppa1.1-hp | |
350 | os=osf | 349 | basic_os=osf | |
351 | ;; | 350 | ;; | |
352 | hppro) | 351 | hppro) | |
353 | basic_machine=hppa1.1-hp | 352 | basic_machine=hppa1.1-hp | |
354 | os=proelf | 353 | basic_os=proelf | |
355 | ;; | 354 | ;; | |
356 | i386mach) | 355 | i386mach) | |
357 | basic_machine=i386-mach | 356 | basic_machine=i386-mach | |
358 | os=mach | 357 | basic_os=mach | |
359 | ;; | 358 | ;; | |
360 | isi68 | isi) | 359 | isi68 | isi) | |
361 | basic_machine=m68k-isi | 360 | basic_machine=m68k-isi | |
362 | os=sysv | 361 | basic_os=sysv | |
363 | ;; | 362 | ;; | |
364 | m68knommu) | 363 | m68knommu) | |
365 | basic_machine=m68k-unknown | 364 | basic_machine=m68k-unknown | |
366 | os=linux | 365 | basic_os=linux | |
367 | ;; | 366 | ;; | |
368 | magnum | m3230) | 367 | magnum | m3230) | |
369 | basic_machine=mips-mips | 368 | basic_machine=mips-mips | |
370 | os=sysv | 369 | basic_os=sysv | |
371 | ;; | 370 | ;; | |
372 | merlin) | 371 | merlin) | |
373 | basic_machine=ns32k-utek | 372 | basic_machine=ns32k-utek | |
374 | os=sysv | 373 | basic_os=sysv | |
375 | ;; | 374 | ;; | |
376 | mingw64) | 375 | mingw64) | |
377 | basic_machine=x86_64-pc | 376 | basic_machine=x86_64-pc | |
378 | os=mingw64 | 377 | basic_os=mingw64 | |
379 | ;; | 378 | ;; | |
380 | mingw32) | 379 | mingw32) | |
381 | basic_machine=i686-pc | 380 | basic_machine=i686-pc | |
382 | os=mingw32 | 381 | basic_os=mingw32 | |
383 | ;; | 382 | ;; | |
384 | mingw32ce) | 383 | mingw32ce) | |
385 | basic_machine=arm-unknown | 384 | basic_machine=arm-unknown | |
386 | os=mingw32ce | 385 | basic_os=mingw32ce | |
387 | ;; | 386 | ;; | |
388 | monitor) | 387 | monitor) | |
389 | basic_machine=m68k-rom68k | 388 | basic_machine=m68k-rom68k | |
390 | os=coff | 389 | basic_os=coff | |
391 | ;; | 390 | ;; | |
392 | morphos) | 391 | morphos) | |
393 | basic_machine=powerpc-unknown | 392 | basic_machine=powerpc-unknown | |
394 | os=morphos | 393 | basic_os=morphos | |
395 | ;; | 394 | ;; | |
396 | moxiebox) | 395 | moxiebox) | |
397 | basic_machine=moxie-unknown | 396 | basic_machine=moxie-unknown | |
398 | os=moxiebox | 397 | basic_os=moxiebox | |
399 | ;; | 398 | ;; | |
400 | msdos) | 399 | msdos) | |
401 | basic_machine=i386-pc | 400 | basic_machine=i386-pc | |
402 | os=msdos | 401 | basic_os=msdos | |
403 | ;; | 402 | ;; | |
404 | msys) | 403 | msys) | |
405 | basic_machine=i686-pc | 404 | basic_machine=i686-pc | |
406 | os=msys | 405 | basic_os=msys | |
407 | ;; | 406 | ;; | |
408 | mvs) | 407 | mvs) | |
409 | basic_machine=i370-ibm | 408 | basic_machine=i370-ibm | |
410 | os=mvs | 409 | basic_os=mvs | |
411 | ;; | 410 | ;; | |
412 | nacl) | 411 | nacl) | |
413 | basic_machine=le32-unknown | 412 | basic_machine=le32-unknown | |
414 | os=nacl | 413 | basic_os=nacl | |
415 | ;; | 414 | ;; | |
416 | ncr3000) | 415 | ncr3000) | |
417 | basic_machine=i486-ncr | 416 | basic_machine=i486-ncr | |
418 | os=sysv4 | 417 | basic_os=sysv4 | |
419 | ;; | 418 | ;; | |
420 | netbsd386) | 419 | netbsd386) | |
421 | basic_machine=i386-pc | 420 | basic_machine=i386-pc | |
422 | os=netbsd | 421 | basic_os=netbsd | |
423 | ;; | 422 | ;; | |
424 | netwinder) | 423 | netwinder) | |
425 | basic_machine=armv4l-rebel | 424 | basic_machine=armv4l-rebel | |
426 | os=linux | 425 | basic_os=linux | |
427 | ;; | 426 | ;; | |
428 | news | news700 | news800 | news900) | 427 | news | news700 | news800 | news900) | |
429 | basic_machine=m68k-sony | 428 | basic_machine=m68k-sony | |
430 | os=newsos | 429 | basic_os=newsos | |
431 | ;; | 430 | ;; | |
432 | news1000) | 431 | news1000) | |
433 | basic_machine=m68030-sony | 432 | basic_machine=m68030-sony | |
434 | os=newsos | 433 | basic_os=newsos | |
435 | ;; | 434 | ;; | |
436 | necv70) | 435 | necv70) | |
437 | basic_machine=v70-nec | 436 | basic_machine=v70-nec | |
438 | os=sysv | 437 | basic_os=sysv | |
439 | ;; | 438 | ;; | |
440 | nh3000) | 439 | nh3000) | |
441 | basic_machine=m68k-harris | 440 | basic_machine=m68k-harris | |
442 | os=cxux | 441 | basic_os=cxux | |
443 | ;; | 442 | ;; | |
444 | nh[45]000) | 443 | nh[45]000) | |
445 | basic_machine=m88k-harris | 444 | basic_machine=m88k-harris | |
446 | os=cxux | 445 | basic_os=cxux | |
447 | ;; | 446 | ;; | |
448 | nindy960) | 447 | nindy960) | |
449 | basic_machine=i960-intel | 448 | basic_machine=i960-intel | |
450 | os=nindy | 449 | basic_os=nindy | |
451 | ;; | 450 | ;; | |
452 | mon960) | 451 | mon960) | |
453 | basic_machine=i960-intel | 452 | basic_machine=i960-intel | |
454 | os=mon960 | 453 | basic_os=mon960 | |
455 | ;; | 454 | ;; | |
456 | nonstopux) | 455 | nonstopux) | |
457 | basic_machine=mips-compaq | 456 | basic_machine=mips-compaq | |
458 | os=nonstopux | 457 | basic_os=nonstopux | |
459 | ;; | 458 | ;; | |
460 | os400) | 459 | os400) | |
461 | basic_machine=powerpc-ibm | 460 | basic_machine=powerpc-ibm | |
462 | os=os400 | 461 | basic_os=os400 | |
463 | ;; | 462 | ;; | |
464 | OSE68000 | ose68000) | 463 | OSE68000 | ose68000) | |
465 | basic_machine=m68000-ericsson | 464 | basic_machine=m68000-ericsson | |
466 | os=ose | 465 | basic_os=ose | |
467 | ;; | 466 | ;; | |
468 | os68k) | 467 | os68k) | |
469 | basic_machine=m68k-none | 468 | basic_machine=m68k-none | |
470 | os=os68k | 469 | basic_os=os68k | |
471 | ;; | 470 | ;; | |
472 | paragon) | 471 | paragon) | |
473 | basic_machine=i860-intel | 472 | basic_machine=i860-intel | |
474 | os=osf | 473 | basic_os=osf | |
475 | ;; | 474 | ;; | |
476 | parisc) | 475 | parisc) | |
477 | basic_machine=hppa-unknown | 476 | basic_machine=hppa-unknown | |
478 | os=linux | 477 | basic_os=linux | |
478 | ;; | |||
479 | psp) | |||
480 | basic_machine=mipsallegrexel-sony | |||
481 | basic_os=psp | |||
479 | ;; | 482 | ;; | |
480 | pw32) | 483 | pw32) | |
481 | basic_machine=i586-unknown | 484 | basic_machine=i586-unknown | |
482 | os=pw32 | 485 | basic_os=pw32 | |
483 | ;; | 486 | ;; | |
484 | rdos | rdos64) | 487 | rdos | rdos64) | |
485 | basic_machine=x86_64-pc | 488 | basic_machine=x86_64-pc | |
486 | os=rdos | 489 | basic_os=rdos | |
487 | ;; | 490 | ;; | |
488 | rdos32) | 491 | rdos32) | |
489 | basic_machine=i386-pc | 492 | basic_machine=i386-pc | |
490 | os=rdos | 493 | basic_os=rdos | |
491 | ;; | 494 | ;; | |
492 | rom68k) | 495 | rom68k) | |
493 | basic_machine=m68k-rom68k | 496 | basic_machine=m68k-rom68k | |
494 | os=coff | 497 | basic_os=coff | |
495 | ;; | 498 | ;; | |
496 | sa29200) | 499 | sa29200) | |
497 | basic_machine=a29k-amd | 500 | basic_machine=a29k-amd | |
498 | os=udi | 501 | basic_os=udi | |
499 | ;; | 502 | ;; | |
500 | sei) | 503 | sei) | |
501 | basic_machine=mips-sei | 504 | basic_machine=mips-sei | |
502 | os=seiux | 505 | basic_os=seiux | |
503 | ;; | 506 | ;; | |
504 | sequent) | 507 | sequent) | |
505 | basic_machine=i386-sequent | 508 | basic_machine=i386-sequent | |
506 | os= | 509 | basic_os= | |
507 | ;; | 510 | ;; | |
508 | sps7) | 511 | sps7) | |
509 | basic_machine=m68k-bull | 512 | basic_machine=m68k-bull | |
510 | os=sysv2 | 513 | basic_os=sysv2 | |
511 | ;; | 514 | ;; | |
512 | st2000) | 515 | st2000) | |
513 | basic_machine=m68k-tandem | 516 | basic_machine=m68k-tandem | |
514 | os= | 517 | basic_os= | |
515 | ;; | 518 | ;; | |
516 | stratus) | 519 | stratus) | |
517 | basic_machine=i860-stratus | 520 | basic_machine=i860-stratus | |
518 | os=sysv4 | 521 | basic_os=sysv4 | |
519 | ;; | 522 | ;; | |
520 | sun2) | 523 | sun2) | |
521 | basic_machine=m68000-sun | 524 | basic_machine=m68000-sun | |
522 | os= | 525 | basic_os= | |
523 | ;; | 526 | ;; | |
524 | sun2os3) | 527 | sun2os3) | |
525 | basic_machine=m68000-sun | 528 | basic_machine=m68000-sun | |
526 | os=sunos3 | 529 | basic_os=sunos3 | |
527 | ;; | 530 | ;; | |
528 | sun2os4) | 531 | sun2os4) | |
529 | basic_machine=m68000-sun | 532 | basic_machine=m68000-sun | |
530 | os=sunos4 | 533 | basic_os=sunos4 | |
531 | ;; | 534 | ;; | |
532 | sun3) | 535 | sun3) | |
533 | basic_machine=m68k-sun | 536 | basic_machine=m68k-sun | |
534 | os= | 537 | basic_os= | |
535 | ;; | 538 | ;; | |
536 | sun3os3) | 539 | sun3os3) | |
537 | basic_machine=m68k-sun | 540 | basic_machine=m68k-sun | |
538 | os=sunos3 | 541 | basic_os=sunos3 | |
539 | ;; | 542 | ;; | |
540 | sun3os4) | 543 | sun3os4) | |
541 | basic_machine=m68k-sun | 544 | basic_machine=m68k-sun | |
542 | os=sunos4 | 545 | basic_os=sunos4 | |
543 | ;; | 546 | ;; | |
544 | sun4) | 547 | sun4) | |
545 | basic_machine=sparc-sun | 548 | basic_machine=sparc-sun | |
546 | os= | 549 | basic_os= | |
547 | ;; | 550 | ;; | |
548 | sun4os3) | 551 | sun4os3) | |
549 | basic_machine=sparc-sun | 552 | basic_machine=sparc-sun | |
550 | os=sunos3 | 553 | basic_os=sunos3 | |
551 | ;; | 554 | ;; | |
552 | sun4os4) | 555 | sun4os4) | |
553 | basic_machine=sparc-sun | 556 | basic_machine=sparc-sun | |
554 | os=sunos4 | 557 | basic_os=sunos4 | |
555 | ;; | 558 | ;; | |
556 | sun4sol2) | 559 | sun4sol2) | |
557 | basic_machine=sparc-sun | 560 | basic_machine=sparc-sun | |
558 | os=solaris2 | 561 | basic_os=solaris2 | |
559 | ;; | 562 | ;; | |
560 | sun386 | sun386i | roadrunner) | 563 | sun386 | sun386i | roadrunner) | |
561 | basic_machine=i386-sun | 564 | basic_machine=i386-sun | |
562 | os= | 565 | basic_os= | |
563 | ;; | 566 | ;; | |
564 | sv1) | 567 | sv1) | |
565 | basic_machine=sv1-cray | 568 | basic_machine=sv1-cray | |
566 | os=unicos | 569 | basic_os=unicos | |
567 | ;; | 570 | ;; | |
568 | symmetry) | 571 | symmetry) | |
569 | basic_machine=i386-sequent | 572 | basic_machine=i386-sequent | |
570 | os=dynix | 573 | basic_os=dynix | |
571 | ;; | 574 | ;; | |
572 | t3e) | 575 | t3e) | |
573 | basic_machine=alphaev5-cray | 576 | basic_machine=alphaev5-cray | |
574 | os=unicos | 577 | basic_os=unicos | |
575 | ;; | 578 | ;; | |
576 | t90) | 579 | t90) | |
577 | basic_machine=t90-cray | 580 | basic_machine=t90-cray | |
578 | os=unicos | 581 | basic_os=unicos | |
579 | ;; | 582 | ;; | |
580 | toad1) | 583 | toad1) | |
581 | basic_machine=pdp10-xkl | 584 | basic_machine=pdp10-xkl | |
582 | os=tops20 | 585 | basic_os=tops20 | |
583 | ;; | 586 | ;; | |
584 | tpf) | 587 | tpf) | |
585 | basic_machine=s390x-ibm | 588 | basic_machine=s390x-ibm | |
586 | os=tpf | 589 | basic_os=tpf | |
587 | ;; | 590 | ;; | |
588 | udi29k) | 591 | udi29k) | |
589 | basic_machine=a29k-amd | 592 | basic_machine=a29k-amd | |
590 | os=udi | 593 | basic_os=udi | |
591 | ;; | 594 | ;; | |
592 | ultra3) | 595 | ultra3) | |
593 | basic_machine=a29k-nyu | 596 | basic_machine=a29k-nyu | |
594 | os=sym1 | 597 | basic_os=sym1 | |
595 | ;; | 598 | ;; | |
596 | v810 | necv810) | 599 | v810 | necv810) | |
597 | basic_machine=v810-nec | 600 | basic_machine=v810-nec | |
598 | os=none | 601 | basic_os=none | |
599 | ;; | 602 | ;; | |
600 | vaxv) | 603 | vaxv) | |
601 | basic_machine=vax-dec | 604 | basic_machine=vax-dec | |
602 | os=sysv | 605 | basic_os=sysv | |
603 | ;; | 606 | ;; | |
604 | vms) | 607 | vms) | |
605 | basic_machine=vax-dec | 608 | basic_machine=vax-dec | |
606 | os=vms | 609 | basic_os=vms | |
607 | ;; | 610 | ;; | |
608 | vsta) | 611 | vsta) | |
609 | basic_machine=i386-pc | 612 | basic_machine=i386-pc | |
610 | os=vsta | 613 | basic_os=vsta | |
611 | ;; | 614 | ;; | |
612 | vxworks960) | 615 | vxworks960) | |
613 | basic_machine=i960-wrs | 616 | basic_machine=i960-wrs | |
614 | os=vxworks | 617 | basic_os=vxworks | |
615 | ;; | 618 | ;; | |
616 | vxworks68) | 619 | vxworks68) | |
617 | basic_machine=m68k-wrs | 620 | basic_machine=m68k-wrs | |
618 | os=vxworks | 621 | basic_os=vxworks | |
619 | ;; | 622 | ;; | |
620 | vxworks29k) | 623 | vxworks29k) | |
621 | basic_machine=a29k-wrs | 624 | basic_machine=a29k-wrs | |
622 | os=vxworks | 625 | basic_os=vxworks | |
623 | ;; | 626 | ;; | |
624 | xbox) | 627 | xbox) | |
625 | basic_machine=i686-pc | 628 | basic_machine=i686-pc | |
626 | os=mingw32 | 629 | basic_os=mingw32 | |
627 | ;; | 630 | ;; | |
628 | ymp) | 631 | ymp) | |
629 | basic_machine=ymp-cray | 632 | basic_machine=ymp-cray | |
630 | os=unicos | 633 | basic_os=unicos | |
631 | ;; | 634 | ;; | |
632 | *) | 635 | *) | |
633 | basic_machine=$1 | 636 | basic_machine=$1 | |
634 | os= | 637 | basic_os= | |
635 | ;; | 638 | ;; | |
636 | esac | 639 | esac | |
637 | ;; | 640 | ;; | |
638 | esac | 641 | esac | |
639 | 642 | |||
640 | # Decode 1-component or ad-hoc basic machines | 643 | # Decode 1-component or ad-hoc basic machines | |
641 | case $basic_machine in | 644 | case $basic_machine in | |
642 | # Here we handle the default manufacturer of certain CPU types. It is in | 645 | # Here we handle the default manufacturer of certain CPU types. It is in | |
643 | # some cases the only manufacturer, in others, it is the most popular. | 646 | # some cases the only manufacturer, in others, it is the most popular. | |
644 | w89k) | 647 | w89k) | |
645 | cpu=hppa1.1 | 648 | cpu=hppa1.1 | |
646 | vendor=winbond | 649 | vendor=winbond | |
647 | ;; | 650 | ;; | |
@@ -673,69 +676,69 @@ case $basic_machine in | @@ -673,69 +676,69 @@ case $basic_machine in | |||
673 | # Recognize the various machine names and aliases which stand | 676 | # Recognize the various machine names and aliases which stand | |
674 | # for a CPU type and a company and sometimes even an OS. | 677 | # for a CPU type and a company and sometimes even an OS. | |
675 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | 678 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
676 | cpu=m68000 | 679 | cpu=m68000 | |
677 | vendor=att | 680 | vendor=att | |
678 | ;; | 681 | ;; | |
679 | 3b*) | 682 | 3b*) | |
680 | cpu=we32k | 683 | cpu=we32k | |
681 | vendor=att | 684 | vendor=att | |
682 | ;; | 685 | ;; | |
683 | bluegene*) | 686 | bluegene*) | |
684 | cpu=powerpc | 687 | cpu=powerpc | |
685 | vendor=ibm | 688 | vendor=ibm | |
686 | os=cnk | 689 | basic_os=cnk | |
687 | ;; | 690 | ;; | |
688 | decsystem10* | dec10*) | 691 | decsystem10* | dec10*) | |
689 | cpu=pdp10 | 692 | cpu=pdp10 | |
690 | vendor=dec | 693 | vendor=dec | |
691 | os=tops10 | 694 | basic_os=tops10 | |
692 | ;; | 695 | ;; | |
693 | decsystem20* | dec20*) | 696 | decsystem20* | dec20*) | |
694 | cpu=pdp10 | 697 | cpu=pdp10 | |
695 | vendor=dec | 698 | vendor=dec | |
696 | os=tops20 | 699 | basic_os=tops20 | |
697 | ;; | 700 | ;; | |
698 | delta | 3300 | motorola-3300 | motorola-delta \ | 701 | delta | 3300 | motorola-3300 | motorola-delta \ | |
699 | | 3300-motorola | delta-motorola) | 702 | | 3300-motorola | delta-motorola) | |
700 | cpu=m68k | 703 | cpu=m68k | |
701 | vendor=motorola | 704 | vendor=motorola | |
702 | ;; | 705 | ;; | |
703 | dpx2*) | 706 | dpx2*) | |
704 | cpu=m68k | 707 | cpu=m68k | |
705 | vendor=bull | 708 | vendor=bull | |
706 | os=sysv3 | 709 | basic_os=sysv3 | |
707 | ;; | 710 | ;; | |
708 | encore | umax | mmax) | 711 | encore | umax | mmax) | |
709 | cpu=ns32k | 712 | cpu=ns32k | |
710 | vendor=encore | 713 | vendor=encore | |
711 | ;; | 714 | ;; | |
712 | elxsi) | 715 | elxsi) | |
713 | cpu=elxsi | 716 | cpu=elxsi | |
714 | vendor=elxsi | 717 | vendor=elxsi | |
715 | os=${os:-bsd} | 718 | basic_os=${basic_os:-bsd} | |
716 | ;; | 719 | ;; | |
717 | fx2800) | 720 | fx2800) | |
718 | cpu=i860 | 721 | cpu=i860 | |
719 | vendor=alliant | 722 | vendor=alliant | |
720 | ;; | 723 | ;; | |
721 | genix) | 724 | genix) | |
722 | cpu=ns32k | 725 | cpu=ns32k | |
723 | vendor=ns | 726 | vendor=ns | |
724 | ;; | 727 | ;; | |
725 | h3050r* | hiux*) | 728 | h3050r* | hiux*) | |
726 | cpu=hppa1.1 | 729 | cpu=hppa1.1 | |
727 | vendor=hitachi | 730 | vendor=hitachi | |
728 | os=hiuxwe2 | 731 | basic_os=hiuxwe2 | |
729 | ;; | 732 | ;; | |
730 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | 733 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | |
731 | cpu=hppa1.0 | 734 | cpu=hppa1.0 | |
732 | vendor=hp | 735 | vendor=hp | |
733 | ;; | 736 | ;; | |
734 | hp9k2[0-9][0-9] | hp9k31[0-9]) | 737 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
735 | cpu=m68000 | 738 | cpu=m68000 | |
736 | vendor=hp | 739 | vendor=hp | |
737 | ;; | 740 | ;; | |
738 | hp9k3[2-9][0-9]) | 741 | hp9k3[2-9][0-9]) | |
739 | cpu=m68k | 742 | cpu=m68k | |
740 | vendor=hp | 743 | vendor=hp | |
741 | ;; | 744 | ;; | |
@@ -758,102 +761,102 @@ case $basic_machine in | @@ -758,102 +761,102 @@ case $basic_machine in | |||
758 | vendor=hp | 761 | vendor=hp | |
759 | ;; | 762 | ;; | |
760 | hp9k8[0-9][13679] | hp8[0-9][13679]) | 763 | hp9k8[0-9][13679] | hp8[0-9][13679]) | |
761 | cpu=hppa1.1 | 764 | cpu=hppa1.1 | |
762 | vendor=hp | 765 | vendor=hp | |
763 | ;; | 766 | ;; | |
764 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | 767 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | |
765 | cpu=hppa1.0 | 768 | cpu=hppa1.0 | |
766 | vendor=hp | 769 | vendor=hp | |
767 | ;; | 770 | ;; | |
768 | i*86v32) | 771 | i*86v32) | |
769 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | 772 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
770 | vendor=pc | 773 | vendor=pc | |
771 | os=sysv32 | 774 | basic_os=sysv32 | |
772 | ;; | 775 | ;; | |
773 | i*86v4*) | 776 | i*86v4*) | |
774 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | 777 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
775 | vendor=pc | 778 | vendor=pc | |
776 | os=sysv4 | 779 | basic_os=sysv4 | |
777 | ;; | 780 | ;; | |
778 | i*86v) | 781 | i*86v) | |
779 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | 782 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
780 | vendor=pc | 783 | vendor=pc | |
781 | os=sysv | 784 | basic_os=sysv | |
782 | ;; | 785 | ;; | |
783 | i*86sol2) | 786 | i*86sol2) | |
784 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | 787 | cpu=`echo "$1" | sed -e 's/86.*/86/'` | |
785 | vendor=pc | 788 | vendor=pc | |
786 | os=solaris2 | 789 | basic_os=solaris2 | |
787 | ;; | 790 | ;; | |
788 | j90 | j90-cray) | 791 | j90 | j90-cray) | |
789 | cpu=j90 | 792 | cpu=j90 | |
790 | vendor=cray | 793 | vendor=cray | |
791 | os=${os:-unicos} | 794 | basic_os=${basic_os:-unicos} | |
792 | ;; | 795 | ;; | |
793 | iris | iris4d) | 796 | iris | iris4d) | |
794 | cpu=mips | 797 | cpu=mips | |
795 | vendor=sgi | 798 | vendor=sgi | |
796 | case $os in | 799 | case $basic_os in | |
797 | irix*) | 800 | irix*) | |
798 | ;; | 801 | ;; | |
799 | *) | 802 | *) | |
800 | os=irix4 | 803 | basic_os=irix4 | |
801 | ;; | 804 | ;; | |
802 | esac | 805 | esac | |
803 | ;; | 806 | ;; | |
804 | miniframe) | 807 | miniframe) | |
805 | cpu=m68000 | 808 | cpu=m68000 | |
806 | vendor=convergent | 809 | vendor=convergent | |
807 | ;; | 810 | ;; | |
808 | *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) | 811 | *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) | |
809 | cpu=m68k | 812 | cpu=m68k | |
810 | vendor=atari | 813 | vendor=atari | |
811 | os=mint | 814 | basic_os=mint | |
812 | ;; | 815 | ;; | |
813 | news-3600 | risc-news) | 816 | news-3600 | risc-news) | |
814 | cpu=mips | 817 | cpu=mips | |
815 | vendor=sony | 818 | vendor=sony | |
816 | os=newsos | 819 | basic_os=newsos | |
817 | ;; | 820 | ;; | |
818 | next | m*-next) | 821 | next | m*-next) | |
819 | cpu=m68k | 822 | cpu=m68k | |
820 | vendor=next | 823 | vendor=next | |
821 | case $os in | 824 | case $basic_os in | |
822 | openstep*) | 825 | openstep*) | |
823 | ;; | 826 | ;; | |
824 | nextstep*) | 827 | nextstep*) | |
825 | ;; | 828 | ;; | |
826 | ns2*) | 829 | ns2*) | |
827 | os=nextstep2 | 830 | basic_os=nextstep2 | |
828 | ;; | 831 | ;; | |
829 | *) | 832 | *) | |
830 | os=nextstep3 | 833 | basic_os=nextstep3 | |
831 | ;; | 834 | ;; | |
832 | esac | 835 | esac | |
833 | ;; | 836 | ;; | |
834 | np1) | 837 | np1) | |
835 | cpu=np1 | 838 | cpu=np1 | |
836 | vendor=gould | 839 | vendor=gould | |
837 | ;; | 840 | ;; | |
838 | op50n-* | op60c-*) | 841 | op50n-* | op60c-*) | |
839 | cpu=hppa1.1 | 842 | cpu=hppa1.1 | |
840 | vendor=oki | 843 | vendor=oki | |
841 | os=proelf | 844 | basic_os=proelf | |
842 | ;; | 845 | ;; | |
843 | pa-hitachi) | 846 | pa-hitachi) | |
844 | cpu=hppa1.1 | 847 | cpu=hppa1.1 | |
845 | vendor=hitachi | 848 | vendor=hitachi | |
846 | os=hiuxwe2 | 849 | basic_os=hiuxwe2 | |
847 | ;; | 850 | ;; | |
848 | pbd) | 851 | pbd) | |
849 | cpu=sparc | 852 | cpu=sparc | |
850 | vendor=tti | 853 | vendor=tti | |
851 | ;; | 854 | ;; | |
852 | pbb) | 855 | pbb) | |
853 | cpu=m68k | 856 | cpu=m68k | |
854 | vendor=tti | 857 | vendor=tti | |
855 | ;; | 858 | ;; | |
856 | pc532) | 859 | pc532) | |
857 | cpu=ns32k | 860 | cpu=ns32k | |
858 | vendor=pc532 | 861 | vendor=pc532 | |
859 | ;; | 862 | ;; | |
@@ -870,49 +873,49 @@ case $basic_machine in | @@ -870,49 +873,49 @@ case $basic_machine in | |||
870 | vendor=ibm | 873 | vendor=ibm | |
871 | ;; | 874 | ;; | |
872 | rm[46]00) | 875 | rm[46]00) | |
873 | cpu=mips | 876 | cpu=mips | |
874 | vendor=siemens | 877 | vendor=siemens | |
875 | ;; | 878 | ;; | |
876 | rtpc | rtpc-*) | 879 | rtpc | rtpc-*) | |
877 | cpu=romp | 880 | cpu=romp | |
878 | vendor=ibm | 881 | vendor=ibm | |
879 | ;; | 882 | ;; | |
880 | sde) | 883 | sde) | |
881 | cpu=mipsisa32 | 884 | cpu=mipsisa32 | |
882 | vendor=sde | 885 | vendor=sde | |
883 | os=${os:-elf} | 886 | basic_os=${basic_os:-elf} | |
884 | ;; | 887 | ;; | |
885 | simso-wrs) | 888 | simso-wrs) | |
886 | cpu=sparclite | 889 | cpu=sparclite | |
887 | vendor=wrs | 890 | vendor=wrs | |
888 | os=vxworks | 891 | basic_os=vxworks | |
889 | ;; | 892 | ;; | |
890 | tower | tower-32) | 893 | tower | tower-32) | |
891 | cpu=m68k | 894 | cpu=m68k | |
892 | vendor=ncr | 895 | vendor=ncr | |
893 | ;; | 896 | ;; | |
894 | vpp*|vx|vx-*) | 897 | vpp*|vx|vx-*) | |
895 | cpu=f301 | 898 | cpu=f301 | |
896 | vendor=fujitsu | 899 | vendor=fujitsu | |
897 | ;; | 900 | ;; | |
898 | w65) | 901 | w65) | |
899 | cpu=w65 | 902 | cpu=w65 | |
900 | vendor=wdc | 903 | vendor=wdc | |
901 | ;; | 904 | ;; | |
902 | w89k-*) | 905 | w89k-*) | |
903 | cpu=hppa1.1 | 906 | cpu=hppa1.1 | |
904 | vendor=winbond | 907 | vendor=winbond | |
905 | os=proelf | 908 | basic_os=proelf | |
906 | ;; | 909 | ;; | |
907 | none) | 910 | none) | |
908 | cpu=none | 911 | cpu=none | |
909 | vendor=none | 912 | vendor=none | |
910 | ;; | 913 | ;; | |
911 | leon|leon[3-9]) | 914 | leon|leon[3-9]) | |
912 | cpu=sparc | 915 | cpu=sparc | |
913 | vendor=$basic_machine | 916 | vendor=$basic_machine | |
914 | ;; | 917 | ;; | |
915 | leon-*|leon[3-9]-*) | 918 | leon-*|leon[3-9]-*) | |
916 | cpu=sparc | 919 | cpu=sparc | |
917 | vendor=`echo "$basic_machine" | sed 's/-.*//'` | 920 | vendor=`echo "$basic_machine" | sed 's/-.*//'` | |
918 | ;; | 921 | ;; | |
@@ -945,31 +948,31 @@ EOF | @@ -945,31 +948,31 @@ EOF | |||
945 | cpu=$basic_machine | 948 | cpu=$basic_machine | |
946 | vendor=unknown | 949 | vendor=unknown | |
947 | ;; | 950 | ;; | |
948 | esac | 951 | esac | |
949 | 952 | |||
950 | unset -v basic_machine | 953 | unset -v basic_machine | |
951 | 954 | |||
952 | # Decode basic machines in the full and proper CPU-Company form. | 955 | # Decode basic machines in the full and proper CPU-Company form. | |
953 | case $cpu-$vendor in | 956 | case $cpu-$vendor in | |
954 | # Here we handle the default manufacturer of certain CPU types in canonical form. It is in | 957 | # Here we handle the default manufacturer of certain CPU types in canonical form. It is in | |
955 | # some cases the only manufacturer, in others, it is the most popular. | 958 | # some cases the only manufacturer, in others, it is the most popular. | |
956 | craynv-unknown) | 959 | craynv-unknown) | |
957 | vendor=cray | 960 | vendor=cray | |
958 | os=${os:-unicosmp} | 961 | basic_os=${basic_os:-unicosmp} | |
959 | ;; | 962 | ;; | |
960 | c90-unknown | c90-cray) | 963 | c90-unknown | c90-cray) | |
961 | vendor=cray | 964 | vendor=cray | |
962 | os=${os:-unicos} | 965 | basic_os=${Basic_os:-unicos} | |
963 | ;; | 966 | ;; | |
964 | fx80-unknown) | 967 | fx80-unknown) | |
965 | vendor=alliant | 968 | vendor=alliant | |
966 | ;; | 969 | ;; | |
967 | romp-unknown) | 970 | romp-unknown) | |
968 | vendor=ibm | 971 | vendor=ibm | |
969 | ;; | 972 | ;; | |
970 | mmix-unknown) | 973 | mmix-unknown) | |
971 | vendor=knuth | 974 | vendor=knuth | |
972 | ;; | 975 | ;; | |
973 | microblaze-unknown | microblazeel-unknown) | 976 | microblaze-unknown | microblazeel-unknown) | |
974 | vendor=xilinx | 977 | vendor=xilinx | |
975 | ;; | 978 | ;; | |
@@ -993,69 +996,69 @@ case $cpu-$vendor in | @@ -993,69 +996,69 @@ case $cpu-$vendor in | |||
993 | ;; | 996 | ;; | |
994 | orion-unknown) | 997 | orion-unknown) | |
995 | vendor=highlevel | 998 | vendor=highlevel | |
996 | ;; | 999 | ;; | |
997 | xps-unknown | xps100-unknown) | 1000 | xps-unknown | xps100-unknown) | |
998 | cpu=xps100 | 1001 | cpu=xps100 | |
999 | vendor=honeywell | 1002 | vendor=honeywell | |
1000 | ;; | 1003 | ;; | |
1001 | 1004 | |||
1002 | # Here we normalize CPU types with a missing or matching vendor | 1005 | # Here we normalize CPU types with a missing or matching vendor | |
1003 | dpx20-unknown | dpx20-bull) | 1006 | dpx20-unknown | dpx20-bull) | |
1004 | cpu=rs6000 | 1007 | cpu=rs6000 | |
1005 | vendor=bull | 1008 | vendor=bull | |
1006 | os=${os:-bosx} | 1009 | basic_os=${basic_os:-bosx} | |
1007 | ;; | 1010 | ;; | |
1008 | 1011 | |||
1009 | # Here we normalize CPU types irrespective of the vendor | 1012 | # Here we normalize CPU types irrespective of the vendor | |
1010 | amd64-*) | 1013 | amd64-*) | |
1011 | cpu=x86_64 | 1014 | cpu=x86_64 | |
1012 | ;; | 1015 | ;; | |
1013 | blackfin-*) | 1016 | blackfin-*) | |
1014 | cpu=bfin | 1017 | cpu=bfin | |
1015 | os=linux | 1018 | basic_os=linux | |
1016 | ;; | 1019 | ;; | |
1017 | c54x-*) | 1020 | c54x-*) | |
1018 | cpu=tic54x | 1021 | cpu=tic54x | |
1019 | ;; | 1022 | ;; | |
1020 | c55x-*) | 1023 | c55x-*) | |
1021 | cpu=tic55x | 1024 | cpu=tic55x | |
1022 | ;; | 1025 | ;; | |
1023 | c6x-*) | 1026 | c6x-*) | |
1024 | cpu=tic6x | 1027 | cpu=tic6x | |
1025 | ;; | 1028 | ;; | |
1026 | e500v[12]-*) | 1029 | e500v[12]-*) | |
1027 | cpu=powerpc | 1030 | cpu=powerpc | |
1028 | os=$os"spe" | 1031 | basic_os=${basic_os}"spe" | |
1029 | ;; | 1032 | ;; | |
1030 | mips3*-*) | 1033 | mips3*-*) | |
1031 | cpu=mips64 | 1034 | cpu=mips64 | |
1032 | ;; | 1035 | ;; | |
1033 | ms1-*) | 1036 | ms1-*) | |
1034 | cpu=mt | 1037 | cpu=mt | |
1035 | ;; | 1038 | ;; | |
1036 | m68knommu-*) | 1039 | m68knommu-*) | |
1037 | cpu=m68k | 1040 | cpu=m68k | |
1038 | os=linux | 1041 | basic_os=linux | |
1039 | ;; | 1042 | ;; | |
1040 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) | 1043 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) | |
1041 | cpu=s12z | 1044 | cpu=s12z | |
1042 | ;; | 1045 | ;; | |
1043 | openrisc-*) | 1046 | openrisc-*) | |
1044 | cpu=or32 | 1047 | cpu=or32 | |
1045 | ;; | 1048 | ;; | |
1046 | parisc-*) | 1049 | parisc-*) | |
1047 | cpu=hppa | 1050 | cpu=hppa | |
1048 | os=linux | 1051 | basic_os=linux | |
1049 | ;; | 1052 | ;; | |
1050 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | 1053 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | |
1051 | cpu=i586 | 1054 | cpu=i586 | |
1052 | ;; | 1055 | ;; | |
1053 | pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) | 1056 | pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) | |
1054 | cpu=i686 | 1057 | cpu=i686 | |
1055 | ;; | 1058 | ;; | |
1056 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | 1059 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | |
1057 | cpu=i686 | 1060 | cpu=i686 | |
1058 | ;; | 1061 | ;; | |
1059 | pentium4-*) | 1062 | pentium4-*) | |
1060 | cpu=i786 | 1063 | cpu=i786 | |
1061 | ;; | 1064 | ;; | |
@@ -1091,90 +1094,89 @@ case $cpu-$vendor in | @@ -1091,90 +1094,89 @@ case $cpu-$vendor in | |||
1091 | ;; | 1094 | ;; | |
1092 | tx39-*) | 1095 | tx39-*) | |
1093 | cpu=mipstx39 | 1096 | cpu=mipstx39 | |
1094 | ;; | 1097 | ;; | |
1095 | tx39el-*) | 1098 | tx39el-*) | |
1096 | cpu=mipstx39el | 1099 | cpu=mipstx39el | |
1097 | ;; | 1100 | ;; | |
1098 | x64-*) | 1101 | x64-*) | |
1099 | cpu=x86_64 | 1102 | cpu=x86_64 | |
1100 | ;; | 1103 | ;; | |
1101 | xscale-* | xscalee[bl]-*) | 1104 | xscale-* | xscalee[bl]-*) | |
1102 | cpu=`echo "$cpu" | sed 's/^xscale/arm/'` | 1105 | cpu=`echo "$cpu" | sed 's/^xscale/arm/'` | |
1103 | ;; | 1106 | ;; | |
1107 | arm64-*) | |||
1108 | cpu=aarch64 | |||
1109 | ;; | |||
1104 | 1110 | |||
1105 | # Recognize the canonical CPU Types that limit and/or modify the | 1111 | # Recognize the canonical CPU Types that limit and/or modify the | |
1106 | # company names they are paired with. | 1112 | # company names they are paired with. | |
1107 | cr16-*) | 1113 | cr16-*) | |
1108 | os=${os:-elf} | 1114 | basic_os=${basic_os:-elf} | |
1109 | ;; | 1115 | ;; | |
1110 | crisv32-* | etraxfs*-*) | 1116 | crisv32-* | etraxfs*-*) | |
1111 | cpu=crisv32 | 1117 | cpu=crisv32 | |
1112 | vendor=axis | 1118 | vendor=axis | |
1113 | ;; | 1119 | ;; | |
1114 | cris-* | etrax*-*) | 1120 | cris-* | etrax*-*) | |
1115 | cpu=cris | 1121 | cpu=cris | |
1116 | vendor=axis | 1122 | vendor=axis | |
1117 | ;; | 1123 | ;; | |
1118 | crx-*) | 1124 | crx-*) | |
1119 | os=${os:-elf} | 1125 | basic_os=${basic_os:-elf} | |
1120 | ;; | 1126 | ;; | |
1121 | neo-tandem) | 1127 | neo-tandem) | |
1122 | cpu=neo | 1128 | cpu=neo | |
1123 | vendor=tandem | 1129 | vendor=tandem | |
1124 | ;; | 1130 | ;; | |
1125 | nse-tandem) | 1131 | nse-tandem) | |
1126 | cpu=nse | 1132 | cpu=nse | |
1127 | vendor=tandem | 1133 | vendor=tandem | |
1128 | ;; | 1134 | ;; | |
1129 | nsr-tandem) | 1135 | nsr-tandem) | |
1130 | cpu=nsr | 1136 | cpu=nsr | |
1131 | vendor=tandem | 1137 | vendor=tandem | |
1132 | ;; | 1138 | ;; | |
1133 | nsv-tandem) | 1139 | nsv-tandem) | |
1134 | cpu=nsv | 1140 | cpu=nsv | |
1135 | vendor=tandem | 1141 | vendor=tandem | |
1136 | ;; | 1142 | ;; | |
1137 | nsx-tandem) | 1143 | nsx-tandem) | |
1138 | cpu=nsx | 1144 | cpu=nsx | |
1139 | vendor=tandem | 1145 | vendor=tandem | |
1140 | ;; | 1146 | ;; | |
1141 | s390-*) | 1147 | mipsallegrexel-sony) | |
1142 | cpu=s390 | 1148 | cpu=mipsallegrexel | |
1143 | vendor=ibm | 1149 | vendor=sony | |
1144 | ;; | |||
1145 | s390x-*) | |||
1146 | cpu=s390x | |||
1147 | vendor=ibm | |||
1148 | ;; | 1150 | ;; | |
1149 | tile*-*) | 1151 | tile*-*) | |
1150 | os=${os:-linux-gnu} | 1152 | basic_os=${basic_os:-linux-gnu} | |
1151 | ;; | 1153 | ;; | |
1152 | 1154 | |||
1153 | *) | 1155 | *) | |
1154 | # Recognize the canonical CPU types that are allowed with any | 1156 | # Recognize the canonical CPU types that are allowed with any | |
1155 | # company name. | 1157 | # company name. | |
1156 | case $cpu in | 1158 | case $cpu in | |
1157 | 1750a | 580 \ | 1159 | 1750a | 580 \ | |
1158 | | a29k \ | 1160 | | a29k \ | |
1159 | | aarch64 | aarch64_be \ | 1161 | | aarch64 | aarch64_be \ | |
1160 | | abacus \ | 1162 | | abacus \ | |
1161 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | 1163 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | |
1162 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | 1164 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | |
1163 | | alphapca5[67] | alpha64pca5[67] \ | 1165 | | alphapca5[67] | alpha64pca5[67] \ | |
1164 | | am33_2.0 \ | 1166 | | am33_2.0 \ | |
1165 | | amdgcn \ | 1167 | | amdgcn \ | |
1166 | | arc | arceb \ | 1168 | | arc | arceb \ | |
1167 | | arm | arm[lb]e | arme[lb] | armv* \ | 1169 | | arm | arm[lb]e | arme[lb] | armv* \ | |
1168 | | avr | avr32 \ | 1170 | | avr | avr32 \ | |
1169 | | asmjs \ | 1171 | | asmjs \ | |
1170 | | ba \ | 1172 | | ba \ | |
1171 | | be32 | be64 \ | 1173 | | be32 | be64 \ | |
1172 | | bfin | bpf | bs2000 \ | 1174 | | bfin | bpf | bs2000 \ | |
1173 | | c[123]* | c30 | [cjt]90 | c4x \ | 1175 | | c[123]* | c30 | [cjt]90 | c4x \ | |
1174 | | c8051 | clipper | craynv | csky | cydra \ | 1176 | | c8051 | clipper | craynv | csky | cydra \ | |
1175 | | d10v | d30v | dlx | dsp16xx \ | 1177 | | d10v | d30v | dlx | dsp16xx \ | |
1176 | | e2k | elxsi | epiphany \ | 1178 | | e2k | elxsi | epiphany \ | |
1177 | | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ | 1179 | | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ | |
1178 | | h8300 | h8500 \ | 1180 | | h8300 | h8500 \ | |
1179 | | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | 1181 | | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | |
1180 | | hexagon \ | 1182 | | hexagon \ | |
@@ -1219,26 +1221,27 @@ case $cpu-$vendor in | @@ -1219,26 +1221,27 @@ case $cpu-$vendor in | |||
1219 | | nios | nios2 | nios2eb | nios2el \ | 1221 | | nios | nios2 | nios2eb | nios2el \ | |
1220 | | none | np1 | ns16k | ns32k | nvptx \ | 1222 | | none | np1 | ns16k | ns32k | nvptx \ | |
1221 | | open8 \ | 1223 | | open8 \ | |
1222 | | or1k* \ | 1224 | | or1k* \ | |
1223 | | or32 \ | 1225 | | or32 \ | |
1224 | | orion \ | 1226 | | orion \ | |
1225 | | picochip \ | 1227 | | picochip \ | |
1226 | | pdp10 | pdp11 | pj | pjl | pn | power \ | 1228 | | pdp10 | pdp11 | pj | pjl | pn | power \ | |
1227 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | 1229 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | |
1228 | | pru \ | 1230 | | pru \ | |
1229 | | pyramid \ | 1231 | | pyramid \ | |
1230 | | riscv | riscv32 | riscv64 \ | 1232 | | riscv | riscv32 | riscv64 \ | |
1231 | | rl78 | romp | rs6000 | rx \ | 1233 | | rl78 | romp | rs6000 | rx \ | |
1234 | | s390 | s390x \ | |||
1232 | | score \ | 1235 | | score \ | |
1233 | | sh | shl \ | 1236 | | sh | shl \ | |
1234 | | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ | 1237 | | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ | |
1235 | | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ | 1238 | | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ | |
1236 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ | 1239 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ | |
1237 | | sparclite \ | 1240 | | sparclite \ | |
1238 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | 1241 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | |
1239 | | spu \ | 1242 | | spu \ | |
1240 | | tahoe \ | 1243 | | tahoe \ | |
1241 | | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | 1244 | | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | |
1242 | | tron \ | 1245 | | tron \ | |
1243 | | ubicom32 \ | 1246 | | ubicom32 \ | |
1244 | | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | 1247 | | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | |
@@ -1265,157 +1268,137 @@ esac | @@ -1265,157 +1268,137 @@ esac | |||
1265 | case $vendor in | 1268 | case $vendor in | |
1266 | digital*) | 1269 | digital*) | |
1267 | vendor=dec | 1270 | vendor=dec | |
1268 | ;; | 1271 | ;; | |
1269 | commodore*) | 1272 | commodore*) | |
1270 | vendor=cbm | 1273 | vendor=cbm | |
1271 | ;; | 1274 | ;; | |
1272 | *) | 1275 | *) | |
1273 | ;; | 1276 | ;; | |
1274 | esac | 1277 | esac | |
1275 | 1278 | |||
1276 | # Decode manufacturer-specific aliases for certain operating systems. | 1279 | # Decode manufacturer-specific aliases for certain operating systems. | |
1277 | 1280 | |||
1278 | if [ x$os != x ] | 1281 | if test x$basic_os != x | |
1279 | then | 1282 | then | |
1283 | ||||
1284 | # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just | |||
1285 | # set os. | |||
1286 | case $basic_os in | |||
1287 | gnu/linux*) | |||
1288 | kernel=linux | |||
1289 | os=`echo $basic_os | sed -e 's|gnu/linux|gnu|'` | |||
1290 | ;; | |||
1291 | os2-emx) | |||
1292 | kernel=os2 | |||
1293 | os=`echo $basic_os | sed -e 's|os2-emx|emx|'` | |||
1294 | ;; | |||
1295 | nto-qnx*) | |||
1296 | kernel=nto | |||
1297 | os=`echo $basic_os | sed -e 's|nto-qnx|qnx|'` | |||
1298 | ;; | |||
1299 | *-*) | |||
1300 | # shellcheck disable=SC2162 | |||
1301 | IFS="-" read kernel os <<EOF | |||
1302 | $basic_os | |||
1303 | EOF | |||
1304 | ;; | |||
1305 | # Default OS when just kernel was specified | |||
1306 | nto*) | |||
1307 | kernel=nto | |||
1308 | os=`echo $basic_os | sed -e 's|nto|qnx|'` | |||
1309 | ;; | |||
1310 | linux*) | |||
1311 | kernel=linux | |||
1312 | os=`echo $basic_os | sed -e 's|linux|gnu|'` | |||
1313 | ;; | |||
1314 | *) | |||
1315 | kernel= | |||
1316 | os=$basic_os | |||
1317 | ;; | |||
1318 | esac | |||
1319 | ||||
1320 | # Now, normalize the OS (knowing we just have one component, it's not a kernel, | |||
1321 | # etc.) | |||
1280 | case $os in | 1322 | case $os in | |
1281 | # First match some system type aliases that might get confused | 1323 | # First match some system type aliases that might get confused | |
1282 | # with valid system types. | 1324 | # with valid system types. | |
1283 | # solaris* is a basic system type, with this one exception. | 1325 | # solaris* is a basic system type, with this one exception. | |
1284 | auroraux) | 1326 | auroraux) | |
1285 | os=auroraux | 1327 | os=auroraux | |
1286 | ;; | 1328 | ;; | |
1287 | bluegene*) | 1329 | bluegene*) | |
1288 | os=cnk | 1330 | os=cnk | |
1289 | ;; | 1331 | ;; | |
1290 | solaris1 | solaris1.*) | 1332 | solaris1 | solaris1.*) | |
1291 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | 1333 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
1292 | ;; | 1334 | ;; | |
1293 | solaris) | 1335 | solaris) | |
1294 | os=solaris2 | 1336 | os=solaris2 | |
1295 | ;; | 1337 | ;; | |
1296 | unixware*) | 1338 | unixware*) | |
1297 | os=sysv4.2uw | 1339 | os=sysv4.2uw | |
1298 | ;; | 1340 | ;; | |
1299 | gnu/linux*) | |||
1300 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | |||
1301 | ;; | |||
1302 | # es1800 is here to avoid being matched by es* (a different OS) | 1341 | # es1800 is here to avoid being matched by es* (a different OS) | |
1303 | es1800*) | 1342 | es1800*) | |
1304 | os=ose | 1343 | os=ose | |
1305 | ;; | 1344 | ;; | |
1306 | # Some version numbers need modification | 1345 | # Some version numbers need modification | |
1307 | chorusos*) | 1346 | chorusos*) | |
1308 | os=chorusos | 1347 | os=chorusos | |
1309 | ;; | 1348 | ;; | |
1310 | isc) | 1349 | isc) | |
1311 | os=isc2.2 | 1350 | os=isc2.2 | |
1312 | ;; | 1351 | ;; | |
1313 | sco6) | 1352 | sco6) | |
1314 | os=sco5v6 | 1353 | os=sco5v6 | |
1315 | ;; | 1354 | ;; | |
1316 | sco5) | 1355 | sco5) | |
1317 | os=sco3.2v5 | 1356 | os=sco3.2v5 | |
1318 | ;; | 1357 | ;; | |
1319 | sco4) | 1358 | sco4) | |
1320 | os=sco3.2v4 | 1359 | os=sco3.2v4 | |
1321 | ;; | 1360 | ;; | |
1322 | sco3.2.[4-9]*) | 1361 | sco3.2.[4-9]*) | |
1323 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | 1362 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | |
1324 | ;; | 1363 | ;; | |
1325 | sco3.2v[4-9]* | sco5v6*) | 1364 | sco*v* | scout) | |
1326 | # Don't forget version if it is 3.2v4 or newer. | |||
1327 | ;; | |||
1328 | scout) | |||
1329 | # Don't match below | 1365 | # Don't match below | |
1330 | ;; | 1366 | ;; | |
1331 | sco*) | 1367 | sco*) | |
1332 | os=sco3.2v2 | 1368 | os=sco3.2v2 | |
1333 | ;; | 1369 | ;; | |
1334 | psos*) | 1370 | psos*) | |
1335 | os=psos | 1371 | os=psos | |
1336 | ;; | 1372 | ;; | |
1337 | # Now accept the basic system types. | |||
1338 | # The portable systems comes first. | |||
1339 | # Each alternative MUST end in a * to match a version number. | |||
1340 | # sysv* is not here because it comes later, after sysvr4. | |||
1341 | gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ | |||
1342 | | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ | |||
1343 | | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | |||
1344 | | sym* | kopensolaris* | plan9* \ | |||
1345 | | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | |||
1346 | | aos* | aros* | cloudabi* | sortix* | twizzler* \ | |||
1347 | | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | |||
1348 | | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | |||
1349 | | knetbsd* | mirbsd* | netbsd* \ | |||
1350 | | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \ | |||
1351 | | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \ | |||
1352 | | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ | |||
1353 | | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ | |||
1354 | | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \ | |||
1355 | | chorusrdb* | cegcc* | glidix* \ | |||
1356 | | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ | |||
1357 | | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \ | |||
1358 | | linux-newlib* | linux-musl* | linux-uclibc* \ | |||
1359 | | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | |||
1360 | | interix* | uwin* | mks* | rhapsody* | darwin* \ | |||
1361 | | openstep* | oskit* | conix* | pw32* | nonstopux* \ | |||
1362 | | storm-chaos* | tops10* | tenex* | tops20* | its* \ | |||
1363 | | os2* | vos* | palmos* | uclinux* | nucleus* \ | |||
1364 | | morphos* | superux* | rtmk* | windiss* \ | |||
1365 | | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | |||
1366 | | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | |||
1367 | | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | |||
1368 | | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | |||
1369 | | nsk* | powerunix) | |||
1370 | # Remember, each alternative MUST END IN *, to match a version number. | |||
1371 | ;; | |||
1372 | qnx*) | 1373 | qnx*) | |
1373 | case $cpu in | 1374 | os=qnx | |
1374 | x86 | i*86) | |||
1375 | ;; | |||
1376 | *) | |||
1377 | os=nto-$os | |||
1378 | ;; | |||
1379 | esac | |||
1380 | ;; | 1375 | ;; | |
1381 | hiux*) | 1376 | hiux*) | |
1382 | os=hiuxwe2 | 1377 | os=hiuxwe2 | |
1383 | ;; | 1378 | ;; | |
1384 | nto-qnx*) | |||
1385 | ;; | |||
1386 | nto*) | |||
1387 | os=`echo $os | sed -e 's|nto|nto-qnx|'` | |||
1388 | ;; | |||
1389 | sim | xray | os68k* | v88r* \ | |||
1390 | | windows* | osx | abug | netware* | os9* \ | |||
1391 | | macos* | mpw* | magic* | mmixware* | mon960* | lnews*) | |||
1392 | ;; | |||
1393 | linux-dietlibc) | |||
1394 | os=linux-dietlibc | |||
1395 | ;; | |||
1396 | linux*) | |||
1397 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | |||
1398 | ;; | |||
1399 | lynx*178) | 1379 | lynx*178) | |
1400 | os=lynxos178 | 1380 | os=lynxos178 | |
1401 | ;; | 1381 | ;; | |
1402 | lynx*5) | 1382 | lynx*5) | |
1403 | os=lynxos5 | 1383 | os=lynxos5 | |
1404 | ;; | 1384 | ;; | |
1385 | lynxos*) | |||
1386 | # don't get caught up in next wildcard | |||
1387 | ;; | |||
1405 | lynx*) | 1388 | lynx*) | |
1406 | os=lynxos | 1389 | os=lynxos | |
1407 | ;; | 1390 | ;; | |
1408 | mac*) | 1391 | mac[0-9]*) | |
1409 | os=`echo "$os" | sed -e 's|mac|macos|'` | 1392 | os=`echo "$os" | sed -e 's|mac|macos|'` | |
1410 | ;; | 1393 | ;; | |
1411 | opened*) | 1394 | opened*) | |
1412 | os=openedition | 1395 | os=openedition | |
1413 | ;; | 1396 | ;; | |
1414 | os400*) | 1397 | os400*) | |
1415 | os=os400 | 1398 | os=os400 | |
1416 | ;; | 1399 | ;; | |
1417 | sunos5*) | 1400 | sunos5*) | |
1418 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | 1401 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | |
1419 | ;; | 1402 | ;; | |
1420 | sunos6*) | 1403 | sunos6*) | |
1421 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | 1404 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | |
@@ -1465,91 +1448,79 @@ case $os in | @@ -1465,91 +1448,79 @@ case $os in | |||
1465 | ;; | 1448 | ;; | |
1466 | oss*) | 1449 | oss*) | |
1467 | os=sysv3 | 1450 | os=sysv3 | |
1468 | ;; | 1451 | ;; | |
1469 | svr4*) | 1452 | svr4*) | |
1470 | os=sysv4 | 1453 | os=sysv4 | |
1471 | ;; | 1454 | ;; | |
1472 | svr3) | 1455 | svr3) | |
1473 | os=sysv3 | 1456 | os=sysv3 | |
1474 | ;; | 1457 | ;; | |
1475 | sysvr4) | 1458 | sysvr4) | |
1476 | os=sysv4 | 1459 | os=sysv4 | |
1477 | ;; | 1460 | ;; | |
1478 | # This must come after sysvr4. | |||
1479 | sysv*) | |||
1480 | ;; | |||
1481 | ose*) | 1461 | ose*) | |
1482 | os=ose | 1462 | os=ose | |
1483 | ;; | 1463 | ;; | |
1484 | *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) | 1464 | *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) | |
1485 | os=mint | 1465 | os=mint | |
1486 | ;; | 1466 | ;; | |
1487 | zvmoe) | |||
1488 | os=zvmoe | |||
1489 | ;; | |||
1490 | dicos*) | 1467 | dicos*) | |
1491 | os=dicos | 1468 | os=dicos | |
1492 | ;; | 1469 | ;; | |
1493 | pikeos*) | 1470 | pikeos*) | |
1494 | # Until real need of OS specific support for | 1471 | # Until real need of OS specific support for | |
1495 | # particular features comes up, bare metal | 1472 | # particular features comes up, bare metal | |
1496 | # configurations are quite functional. | 1473 | # configurations are quite functional. | |
1497 | case $cpu in | 1474 | case $cpu in | |
1498 | arm*) | 1475 | arm*) | |
1499 | os=eabi | 1476 | os=eabi | |
1500 | ;; | 1477 | ;; | |
1501 | *) | 1478 | *) | |
1502 | os=elf | 1479 | os=elf | |
1503 | ;; | 1480 | ;; | |
1504 | esac | 1481 | esac | |
1505 | ;; | 1482 | ;; | |
1506 | nacl*) | |||
1507 | ;; | |||
1508 | ios) | |||
1509 | ;; | |||
1510 | none) | |||
1511 | ;; | |||
1512 | *-eabi) | |||
1513 | ;; | |||
1514 | *) | 1483 | *) | |
1515 | echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 | 1484 | # No normalization, but not necessarily accepted, that comes below. | |
1516 | exit 1 | |||
1517 | ;; | 1485 | ;; | |
1518 | esac | 1486 | esac | |
1487 | ||||
1519 | else | 1488 | else | |
1520 | 1489 | |||
1521 | # Here we handle the default operating systems that come with various machines. | 1490 | # Here we handle the default operating systems that come with various machines. | |
1522 | # The value should be what the vendor currently ships out the door with their | 1491 | # The value should be what the vendor currently ships out the door with their | |
1523 | # machine or put another way, the most popular os provided with the machine. | 1492 | # machine or put another way, the most popular os provided with the machine. | |
1524 | 1493 | |||
1525 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | 1494 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | |
1526 | # "-sun"), then you have to tell the case statement up towards the top | 1495 | # "-sun"), then you have to tell the case statement up towards the top | |
1527 | # that MANUFACTURER isn't an operating system. Otherwise, code above | 1496 | # that MANUFACTURER isn't an operating system. Otherwise, code above | |
1528 | # will signal an error saying that MANUFACTURER isn't an operating | 1497 | # will signal an error saying that MANUFACTURER isn't an operating | |
1529 | # system, and we'll never get to this point. | 1498 | # system, and we'll never get to this point. | |
1530 | 1499 | |||
1500 | kernel= | |||
1531 | case $cpu-$vendor in | 1501 | case $cpu-$vendor in | |
1532 | score-*) | 1502 | score-*) | |
1533 | os=elf | 1503 | os=elf | |
1534 | ;; | 1504 | ;; | |
1535 | spu-*) | 1505 | spu-*) | |
1536 | os=elf | 1506 | os=elf | |
1537 | ;; | 1507 | ;; | |
1538 | *-acorn) | 1508 | *-acorn) | |
1539 | os=riscix1.2 | 1509 | os=riscix1.2 | |
1540 | ;; | 1510 | ;; | |
1541 | arm*-rebel) | 1511 | arm*-rebel) | |
1542 | os=linux | 1512 | kernel=linux | |
1513 | os=gnu | |||
1543 | ;; | 1514 | ;; | |
1544 | arm*-semi) | 1515 | arm*-semi) | |
1545 | os=aout | 1516 | os=aout | |
1546 | ;; | 1517 | ;; | |
1547 | c4x-* | tic4x-*) | 1518 | c4x-* | tic4x-*) | |
1548 | os=coff | 1519 | os=coff | |
1549 | ;; | 1520 | ;; | |
1550 | c8051-*) | 1521 | c8051-*) | |
1551 | os=elf | 1522 | os=elf | |
1552 | ;; | 1523 | ;; | |
1553 | clipper-intergraph) | 1524 | clipper-intergraph) | |
1554 | os=clix | 1525 | os=clix | |
1555 | ;; | 1526 | ;; | |
@@ -1695,99 +1666,188 @@ case $cpu-$vendor in | @@ -1695,99 +1666,188 @@ case $cpu-$vendor in | |||
1695 | *-apple) | 1666 | *-apple) | |
1696 | os=macos | 1667 | os=macos | |
1697 | ;; | 1668 | ;; | |
1698 | *-atari*) | 1669 | *-atari*) | |
1699 | os=mint | 1670 | os=mint | |
1700 | ;; | 1671 | ;; | |
1701 | *-wrs) | 1672 | *-wrs) | |
1702 | os=vxworks | 1673 | os=vxworks | |
1703 | ;; | 1674 | ;; | |
1704 | *) | 1675 | *) | |
1705 | os=none | 1676 | os=none | |
1706 | ;; | 1677 | ;; | |
1707 | esac | 1678 | esac | |
1679 | ||||
1708 | fi | 1680 | fi | |
1709 | 1681 | |||
1682 | # Now, validate our (potentially fixed-up) OS. | |||
1683 | case $os in | |||
1684 | # Sometimes we do "kernel-abi", so those need to count as OSes. | |||
1685 | musl* | newlib* | uclibc*) | |||
1686 | ;; | |||
1687 | # Likewise for "kernel-libc" | |||
1688 | eabi | eabihf | gnueabi | gnueabihf) | |||
1689 | ;; | |||
1690 | # Now accept the basic system types. | |||
1691 | # The portable systems comes first. | |||
1692 | # Each alternative MUST end in a * to match a version number. | |||
1693 | gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ | |||
1694 | | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ | |||
1695 | | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | |||
1696 | | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ | |||
1697 | | hiux* | abug | nacl* | netware* | windows* \ | |||
1698 | | os9* | macos* | osx* | ios* \ | |||
1699 | | mpw* | magic* | mmixware* | mon960* | lnews* \ | |||
1700 | | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | |||
1701 | | aos* | aros* | cloudabi* | sortix* | twizzler* \ | |||
1702 | | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | |||
1703 | | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | |||
1704 | | mirbsd* | netbsd* | dicos* | openedition* | ose* \ | |||
1705 | | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \ | |||
1706 | | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ | |||
1707 | | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ | |||
1708 | | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ | |||
1709 | | udi* | lites* | ieee* | go32* | aux* | hcos* \ | |||
1710 | | chorusrdb* | cegcc* | glidix* \ | |||
1711 | | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ | |||
1712 | | midipix* | mingw32* | mingw64* | mint* \ | |||
1713 | | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | |||
1714 | | interix* | uwin* | mks* | rhapsody* | darwin* \ | |||
1715 | | openstep* | oskit* | conix* | pw32* | nonstopux* \ | |||
1716 | | storm-chaos* | tops10* | tenex* | tops20* | its* \ | |||
1717 | | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ | |||
1718 | | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ | |||
1719 | | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | |||
1720 | | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | |||
1721 | | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | |||
1722 | | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | |||
1723 | | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*) | |||
1724 | ;; | |||
1725 | # This one is extra strict with allowed versions | |||
1726 | sco3.2v2 | sco3.2v[4-9]* | sco5v6*) | |||
1727 | # Don't forget version if it is 3.2v4 or newer. | |||
1728 | ;; | |||
1729 | none) | |||
1730 | ;; | |||
1731 | *) | |||
1732 | echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 | |||
1733 | exit 1 | |||
1734 | ;; | |||
1735 | esac | |||
1736 | ||||
1737 | # As a final step for OS-related things, validate the OS-kernel combination | |||
1738 | # (given a valid OS), if there is a kernel. | |||
1739 | case $kernel-$os in | |||
1740 | linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* ) | |||
1741 | ;; | |||
1742 | uclinux-uclibc* ) | |||
1743 | ;; | |||
1744 | -dietlibc* | -newlib* | -musl* | -uclibc* ) | |||
1745 | # These are just libc implementations, not actual OSes, and thus | |||
1746 | # require a kernel. | |||
1747 | echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 | |||
1748 | exit 1 | |||
1749 | ;; | |||
1750 | kfreebsd*-gnu* | kopensolaris*-gnu*) | |||
1751 | ;; | |||
1752 | nto-qnx*) | |||
1753 | ;; | |||
1754 | os2-emx) | |||
1755 | ;; | |||
1756 | *-eabi* | *-gnueabi*) | |||
1757 | ;; | |||
1758 | -*) | |||
1759 | # Blank kernel with real OS is always fine. | |||
1760 | ;; | |||
1761 | *-*) | |||
1762 | echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 | |||
1763 | exit 1 | |||
1764 | ;; | |||
1765 | esac | |||
1766 | ||||
1710 | # Here we handle the case where we know the os, and the CPU type, but not the | 1767 | # Here we handle the case where we know the os, and the CPU type, but not the | |
1711 | # manufacturer. We pick the logical manufacturer. | 1768 | # manufacturer. We pick the logical manufacturer. | |
1712 | case $vendor in | 1769 | case $vendor in | |
1713 | unknown) | 1770 | unknown) | |
1714 | case $os in | 1771 | case $cpu-$os in | |
1715 | riscix*) | 1772 | *-riscix*) | |
1716 | vendor=acorn | 1773 | vendor=acorn | |
1717 | ;; | 1774 | ;; | |
1718 | sunos*) | 1775 | *-sunos*) | |
1719 | vendor=sun | 1776 | vendor=sun | |
1720 | ;; | 1777 | ;; | |
1721 | cnk*|-aix*) | 1778 | *-cnk* | *-aix*) | |
1722 | vendor=ibm | 1779 | vendor=ibm | |
1723 | ;; | 1780 | ;; | |
1724 | beos*) | 1781 | *-beos*) | |
1725 | vendor=be | 1782 | vendor=be | |
1726 | ;; | 1783 | ;; | |
1727 | hpux*) | 1784 | *-hpux*) | |
1728 | vendor=hp | 1785 | vendor=hp | |
1729 | ;; | 1786 | ;; | |
1730 | mpeix*) | 1787 | *-mpeix*) | |
1731 | vendor=hp | 1788 | vendor=hp | |
1732 | ;; | 1789 | ;; | |
1733 | hiux*) | 1790 | *-hiux*) | |
1734 | vendor=hitachi | 1791 | vendor=hitachi | |
1735 | ;; | 1792 | ;; | |
1736 | unos*) | 1793 | *-unos*) | |
1737 | vendor=crds | 1794 | vendor=crds | |
1738 | ;; | 1795 | ;; | |
1739 | dgux*) | 1796 | *-dgux*) | |
1740 | vendor=dg | 1797 | vendor=dg | |
1741 | ;; | 1798 | ;; | |
1742 | luna*) | 1799 | *-luna*) | |
1743 | vendor=omron | 1800 | vendor=omron | |
1744 | ;; | 1801 | ;; | |
1745 | genix*) | 1802 | *-genix*) | |
1746 | vendor=ns | 1803 | vendor=ns | |
1747 | ;; | 1804 | ;; | |
1748 | clix*) | 1805 | *-clix*) | |
1749 | vendor=intergraph | 1806 | vendor=intergraph | |
1750 | ;; | 1807 | ;; | |
1751 | mvs* | opened*) | 1808 | *-mvs* | *-opened*) | |
1809 | vendor=ibm | |||
1810 | ;; | |||
1811 | *-os400*) | |||
1752 | vendor=ibm | 1812 | vendor=ibm | |
1753 | ;; | 1813 | ;; | |
1754 | os400*) | 1814 | s390-* | s390x-*) | |
1755 | vendor=ibm | 1815 | vendor=ibm | |
1756 | ;; | 1816 | ;; | |
1757 | ptx*) | 1817 | *-ptx*) | |
1758 | vendor=sequent | 1818 | vendor=sequent | |
1759 | ;; | 1819 | ;; | |
1760 | tpf*) | 1820 | *-tpf*) | |
1761 | vendor=ibm | 1821 | vendor=ibm | |
1762 | ;; | 1822 | ;; | |
1763 | vxsim* | vxworks* | windiss*) | 1823 | *-vxsim* | *-vxworks* | *-windiss*) | |
1764 | vendor=wrs | 1824 | vendor=wrs | |
1765 | ;; | 1825 | ;; | |
1766 | aux*) | 1826 | *-aux*) | |
1767 | vendor=apple | 1827 | vendor=apple | |
1768 | ;; | 1828 | ;; | |
1769 | hms*) | 1829 | *-hms*) | |
1770 | vendor=hitachi | 1830 | vendor=hitachi | |
1771 | ;; | 1831 | ;; | |
1772 | mpw* | macos*) | 1832 | *-mpw* | *-macos*) | |
1773 | vendor=apple | 1833 | vendor=apple | |
1774 | ;; | 1834 | ;; | |
1775 | *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) | 1835 | *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) | |
1776 | vendor=atari | 1836 | vendor=atari | |
1777 | ;; | 1837 | ;; | |
1778 | vos*) | 1838 | *-vos*) | |
1779 | vendor=stratus | 1839 | vendor=stratus | |
1780 | ;; | 1840 | ;; | |
1781 | esac | 1841 | esac | |
1782 | ;; | 1842 | ;; | |
1783 | esac | 1843 | esac | |
1784 | 1844 | |||
1785 | echo "$cpu-$vendor-$os" | 1845 | echo "$cpu-$vendor-${kernel:+$kernel-}$os" | |
1786 | exit | 1846 | exit | |
1787 | 1847 | |||
1788 | # Local variables: | 1848 | # Local variables: | |
1789 | # eval: (add-hook 'before-save-hook 'time-stamp) | 1849 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1790 | # time-stamp-start: "timestamp='" | 1850 | # time-stamp-start: "timestamp='" | |
1791 | # time-stamp-format: "%:y-%02m-%02d" | 1851 | # time-stamp-format: "%:y-%02m-%02d" | |
1792 | # time-stamp-end: "'" | 1852 | # time-stamp-end: "'" | |
1793 | # End: | 1853 | # End: |
--- src/external/lgpl3/gmp/dist/gmp-h.in 2020/09/27 00:30:26 1.6
+++ src/external/lgpl3/gmp/dist/gmp-h.in 2021/07/11 21:15:45 1.7
@@ -2320,18 +2320,18 @@ enum | @@ -2320,18 +2320,18 @@ enum | |||
2320 | GMP_ERROR_UNSUPPORTED_ARGUMENT = 1, | 2320 | GMP_ERROR_UNSUPPORTED_ARGUMENT = 1, | |
2321 | GMP_ERROR_DIVISION_BY_ZERO = 2, | 2321 | GMP_ERROR_DIVISION_BY_ZERO = 2, | |
2322 | GMP_ERROR_SQRT_OF_NEGATIVE = 4, | 2322 | GMP_ERROR_SQRT_OF_NEGATIVE = 4, | |
2323 | GMP_ERROR_INVALID_ARGUMENT = 8 | 2323 | GMP_ERROR_INVALID_ARGUMENT = 8 | |
2324 | }; | 2324 | }; | |
2325 | 2325 | |||
2326 | /* Define CC and CFLAGS which were used to build this version of GMP */ | 2326 | /* Define CC and CFLAGS which were used to build this version of GMP */ | |
2327 | #define __GMP_CC "@CC@" | 2327 | #define __GMP_CC "@CC@" | |
2328 | #define __GMP_CFLAGS "@CFLAGS@" | 2328 | #define __GMP_CFLAGS "@CFLAGS@" | |
2329 | 2329 | |||
2330 | /* Major version number is the value of __GNU_MP__ too, above. */ | 2330 | /* Major version number is the value of __GNU_MP__ too, above. */ | |
2331 | #define __GNU_MP_VERSION 6 | 2331 | #define __GNU_MP_VERSION 6 | |
2332 | #define __GNU_MP_VERSION_MINOR 2 | 2332 | #define __GNU_MP_VERSION_MINOR 2 | |
2333 | #define __GNU_MP_VERSION_PATCHLEVEL 0 | 2333 | #define __GNU_MP_VERSION_PATCHLEVEL 1 | |
2334 | #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL) | 2334 | #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL) | |
2335 | 2335 | |||
2336 | #define __GMP_H__ | 2336 | #define __GMP_H__ | |
2337 | #endif /* __GMP_H__ */ | 2337 | #endif /* __GMP_H__ */ |
--- src/external/lgpl3/gmp/dist/configfsf.guess 2020/09/27 00:30:26 1.4
+++ src/external/lgpl3/gmp/dist/configfsf.guess 2021/07/11 21:15:45 1.5
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh | |
2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. | |
3 | # Copyright 1992-2020 Free Software Foundation, Inc. | 3 | # Copyright 1992-2020 Free Software Foundation, Inc. | |
4 | 4 | |||
5 | timestamp='2020-01-01' | 5 | timestamp='2020-10-22' | |
6 | 6 | |||
7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it | |
8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 3 of the License, or | 9 | # the Free Software Foundation; either version 3 of the License, or | |
10 | # (at your option) any later version. | 10 | # (at your option) any later version. | |
11 | # | 11 | # | |
12 | # This program is distributed in the hope that it will be useful, but | 12 | # This program is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | # General Public License for more details. | 15 | # General Public License for more details. | |
16 | # | 16 | # | |
17 | # You should have received a copy of the GNU General Public License | 17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | 18 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
@@ -140,60 +140,59 @@ case "$UNAME_SYSTEM" in | @@ -140,60 +140,59 @@ case "$UNAME_SYSTEM" in | |||
140 | Linux|GNU|GNU/*) | 140 | Linux|GNU|GNU/*) | |
141 | # If the system lacks a compiler, then just pick glibc. | 141 | # If the system lacks a compiler, then just pick glibc. | |
142 | # We could probably try harder. | 142 | # We could probably try harder. | |
143 | LIBC=gnu | 143 | LIBC=gnu | |
144 | 144 | |||
145 | set_cc_for_build | 145 | set_cc_for_build | |
146 | cat <<-EOF > "$dummy.c" | 146 | cat <<-EOF > "$dummy.c" | |
147 | #include <features.h> | 147 | #include <features.h> | |
148 | #if defined(__UCLIBC__) | 148 | #if defined(__UCLIBC__) | |
149 | LIBC=uclibc | 149 | LIBC=uclibc | |
150 | #elif defined(__dietlibc__) | 150 | #elif defined(__dietlibc__) | |
151 | LIBC=dietlibc | 151 | LIBC=dietlibc | |
152 | #else | 152 | #else | |
153 | #include <stdarg.h> | |||
154 | #ifdef __DEFINED_va_list | |||
155 | LIBC=musl | |||
156 | #else | |||
153 | LIBC=gnu | 157 | LIBC=gnu | |
154 | #endif | 158 | #endif | |
159 | #endif | |||
155 | EOF | 160 | EOF | |
156 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | 161 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | |
157 | ||||
158 | # If ldd exists, use it to detect musl libc. | |||
159 | if command -v ldd >/dev/null && \ | |||
160 | ldd --version 2>&1 | grep -q ^musl | |||
161 | then | |||
162 | LIBC=musl | |||
163 | fi | |||
164 | ;; | 162 | ;; | |
165 | esac | 163 | esac | |
166 | 164 | |||
167 | # Note: order is significant - the case branches are not exclusive. | 165 | # Note: order is significant - the case branches are not exclusive. | |
168 | 166 | |||
169 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | 167 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
170 | *:NetBSD:*:*) | 168 | *:NetBSD:*:*) | |
171 | # NetBSD (nbsd) targets should (where applicable) match one or | 169 | # NetBSD (nbsd) targets should (where applicable) match one or | |
172 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | 170 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
173 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | 171 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
174 | # switched to ELF, *-*-netbsd* would select the old | 172 | # switched to ELF, *-*-netbsd* would select the old | |
175 | # object file format. This provides both forward | 173 | # object file format. This provides both forward | |
176 | # compatibility and a consistent mechanism for selecting the | 174 | # compatibility and a consistent mechanism for selecting the | |
177 | # object file format. | 175 | # object file format. | |
178 | # | 176 | # | |
179 | # Note: NetBSD doesn't particularly care about the vendor | 177 | # Note: NetBSD doesn't particularly care about the vendor | |
180 | # portion of the name. We always set it to "unknown". | 178 | # portion of the name. We always set it to "unknown". | |
181 | sysctl="sysctl -n hw.machine_arch" | 179 | sysctl="sysctl -n hw.machine_arch" | |
182 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ | 180 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ | |
183 | "/sbin/$sysctl" 2>/dev/null || \ | 181 | "/sbin/$sysctl" 2>/dev/null || \ | |
184 | "/usr/sbin/$sysctl" 2>/dev/null || \ | 182 | "/usr/sbin/$sysctl" 2>/dev/null || \ | |
185 | echo unknown)` | 183 | echo unknown)` | |
186 | case "$UNAME_MACHINE_ARCH" in | 184 | case "$UNAME_MACHINE_ARCH" in | |
185 | aarch64eb) machine=aarch64_be-unknown ;; | |||
187 | armeb) machine=armeb-unknown ;; | 186 | armeb) machine=armeb-unknown ;; | |
188 | arm*) machine=arm-unknown ;; | 187 | arm*) machine=arm-unknown ;; | |
189 | sh3el) machine=shl-unknown ;; | 188 | sh3el) machine=shl-unknown ;; | |
190 | sh3eb) machine=sh-unknown ;; | 189 | sh3eb) machine=sh-unknown ;; | |
191 | sh5el) machine=sh5le-unknown ;; | 190 | sh5el) machine=sh5le-unknown ;; | |
192 | earmv*) | 191 | earmv*) | |
193 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | 192 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
194 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | 193 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | |
195 | machine="${arch}${endian}"-unknown | 194 | machine="${arch}${endian}"-unknown | |
196 | ;; | 195 | ;; | |
197 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | 196 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
198 | esac | 197 | esac | |
199 | # The Operating System including object format, if it has switched | 198 | # The Operating System including object format, if it has switched | |
@@ -394,27 +393,27 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAM | @@ -394,27 +393,27 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAM | |||
394 | exit ;; | 393 | exit ;; | |
395 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 394 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
396 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | 395 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
397 | exit ;; | 396 | exit ;; | |
398 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | 397 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
399 | echo i386-pc-auroraux"$UNAME_RELEASE" | 398 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
400 | exit ;; | 399 | exit ;; | |
401 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | 400 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | |
402 | set_cc_for_build | 401 | set_cc_for_build | |
403 | SUN_ARCH=i386 | 402 | SUN_ARCH=i386 | |
404 | # If there is a compiler, see if it is configured for 64-bit objects. | 403 | # If there is a compiler, see if it is configured for 64-bit objects. | |
405 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | 404 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
406 | # This test works for both compilers. | 405 | # This test works for both compilers. | |
407 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | 406 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |
408 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | 407 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
409 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | 408 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
410 | grep IS_64BIT_ARCH >/dev/null | 409 | grep IS_64BIT_ARCH >/dev/null | |
411 | then | 410 | then | |
412 | SUN_ARCH=x86_64 | 411 | SUN_ARCH=x86_64 | |
413 | fi | 412 | fi | |
414 | fi | 413 | fi | |
415 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | 414 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
416 | exit ;; | 415 | exit ;; | |
417 | sun4*:SunOS:6*:*) | 416 | sun4*:SunOS:6*:*) | |
418 | # According to config.sub, this is the proper way to canonicalize | 417 | # According to config.sub, this is the proper way to canonicalize | |
419 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | 418 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | |
420 | # it's likely to be more like Solaris than SunOS4. | 419 | # it's likely to be more like Solaris than SunOS4. | |
@@ -534,30 +533,30 @@ EOF | @@ -534,30 +533,30 @@ EOF | |||
534 | exit ;; | 533 | exit ;; | |
535 | m88k:CX/UX:7*:*) | 534 | m88k:CX/UX:7*:*) | |
536 | echo m88k-harris-cxux7 | 535 | echo m88k-harris-cxux7 | |
537 | exit ;; | 536 | exit ;; | |
538 | m88k:*:4*:R4*) | 537 | m88k:*:4*:R4*) | |
539 | echo m88k-motorola-sysv4 | 538 | echo m88k-motorola-sysv4 | |
540 | exit ;; | 539 | exit ;; | |
541 | m88k:*:3*:R3*) | 540 | m88k:*:3*:R3*) | |
542 | echo m88k-motorola-sysv3 | 541 | echo m88k-motorola-sysv3 | |
543 | exit ;; | 542 | exit ;; | |
544 | AViiON:dgux:*:*) | 543 | AViiON:dgux:*:*) | |
545 | # DG/UX returns AViiON for all architectures | 544 | # DG/UX returns AViiON for all architectures | |
546 | UNAME_PROCESSOR=`/usr/bin/uname -p` | 545 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
547 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | 546 | if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 | |
548 | then | 547 | then | |
549 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | 548 | if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ | |
550 | [ "$TARGET_BINARY_INTERFACE"x = x ] | 549 | test "$TARGET_BINARY_INTERFACE"x = x | |
551 | then | 550 | then | |
552 | echo m88k-dg-dgux"$UNAME_RELEASE" | 551 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
553 | else | 552 | else | |
554 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | 553 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
555 | fi | 554 | fi | |
556 | else | 555 | else | |
557 | echo i586-dg-dgux"$UNAME_RELEASE" | 556 | echo i586-dg-dgux"$UNAME_RELEASE" | |
558 | fi | 557 | fi | |
559 | exit ;; | 558 | exit ;; | |
560 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | 559 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | |
561 | echo m88k-dolphin-sysv3 | 560 | echo m88k-dolphin-sysv3 | |
562 | exit ;; | 561 | exit ;; | |
563 | M88*:*:R3*:*) | 562 | M88*:*:R3*:*) | |
@@ -570,27 +569,27 @@ EOF | @@ -570,27 +569,27 @@ EOF | |||
570 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | 569 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | |
571 | echo m68k-tektronix-bsd | 570 | echo m68k-tektronix-bsd | |
572 | exit ;; | 571 | exit ;; | |
573 | *:IRIX*:*:*) | 572 | *:IRIX*:*:*) | |
574 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | 573 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | |
575 | exit ;; | 574 | exit ;; | |
576 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | 575 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | |
577 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | 576 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
578 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | 577 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
579 | i*86:AIX:*:*) | 578 | i*86:AIX:*:*) | |
580 | echo i386-ibm-aix | 579 | echo i386-ibm-aix | |
581 | exit ;; | 580 | exit ;; | |
582 | ia64:AIX:*:*) | 581 | ia64:AIX:*:*) | |
583 | if [ -x /usr/bin/oslevel ] ; then | 582 | if test -x /usr/bin/oslevel ; then | |
584 | IBM_REV=`/usr/bin/oslevel` | 583 | IBM_REV=`/usr/bin/oslevel` | |
585 | else | 584 | else | |
586 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | 585 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
587 | fi | 586 | fi | |
588 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | 587 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | |
589 | exit ;; | 588 | exit ;; | |
590 | *:AIX:2:3) | 589 | *:AIX:2:3) | |
591 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | 590 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | |
592 | set_cc_for_build | 591 | set_cc_for_build | |
593 | sed 's/^ //' << EOF > "$dummy.c" | 592 | sed 's/^ //' << EOF > "$dummy.c" | |
594 | #include <sys/systemcfg.h> | 593 | #include <sys/systemcfg.h> | |
595 | 594 | |||
596 | main() | 595 | main() | |
@@ -610,27 +609,27 @@ EOF | @@ -610,27 +609,27 @@ EOF | |||
610 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | 609 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | |
611 | echo rs6000-ibm-aix3.2.4 | 610 | echo rs6000-ibm-aix3.2.4 | |
612 | else | 611 | else | |
613 | echo rs6000-ibm-aix3.2 | 612 | echo rs6000-ibm-aix3.2 | |
614 | fi | 613 | fi | |
615 | exit ;; | 614 | exit ;; | |
616 | *:AIX:*:[4567]) | 615 | *:AIX:*:[4567]) | |
617 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | 616 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | |
618 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | 617 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | |
619 | IBM_ARCH=rs6000 | 618 | IBM_ARCH=rs6000 | |
620 | else | 619 | else | |
621 | IBM_ARCH=powerpc | 620 | IBM_ARCH=powerpc | |
622 | fi | 621 | fi | |
623 | if [ -x /usr/bin/lslpp ] ; then | 622 | if test -x /usr/bin/lslpp ; then | |
624 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | 623 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | | |
625 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | 624 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` | |
626 | else | 625 | else | |
627 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | 626 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
628 | fi | 627 | fi | |
629 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | 628 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | |
630 | exit ;; | 629 | exit ;; | |
631 | *:AIX:*:*) | 630 | *:AIX:*:*) | |
632 | echo rs6000-ibm-aix | 631 | echo rs6000-ibm-aix | |
633 | exit ;; | 632 | exit ;; | |
634 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | 633 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
635 | echo romp-ibm-bsd4.4 | 634 | echo romp-ibm-bsd4.4 | |
636 | exit ;; | 635 | exit ;; | |
@@ -645,41 +644,41 @@ EOF | @@ -645,41 +644,41 @@ EOF | |||
645 | exit ;; | 644 | exit ;; | |
646 | 9000/[34]??:4.3bsd:1.*:*) | 645 | 9000/[34]??:4.3bsd:1.*:*) | |
647 | echo m68k-hp-bsd | 646 | echo m68k-hp-bsd | |
648 | exit ;; | 647 | exit ;; | |
649 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | 648 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | |
650 | echo m68k-hp-bsd4.4 | 649 | echo m68k-hp-bsd4.4 | |
651 | exit ;; | 650 | exit ;; | |
652 | 9000/[34678]??:HP-UX:*:*) | 651 | 9000/[34678]??:HP-UX:*:*) | |
653 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | 652 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
654 | case "$UNAME_MACHINE" in | 653 | case "$UNAME_MACHINE" in | |
655 | 9000/31?) HP_ARCH=m68000 ;; | 654 | 9000/31?) HP_ARCH=m68000 ;; | |
656 | 9000/[34]??) HP_ARCH=m68k ;; | 655 | 9000/[34]??) HP_ARCH=m68k ;; | |
657 | 9000/[678][0-9][0-9]) | 656 | 9000/[678][0-9][0-9]) | |
658 | if [ -x /usr/bin/getconf ]; then | 657 | if test -x /usr/bin/getconf; then | |
659 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | 658 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | |
660 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | 659 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
661 | case "$sc_cpu_version" in | 660 | case "$sc_cpu_version" in | |
662 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | 661 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | |
663 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | 662 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | |
664 | 532) # CPU_PA_RISC2_0 | 663 | 532) # CPU_PA_RISC2_0 | |
665 | case "$sc_kernel_bits" in | 664 | case "$sc_kernel_bits" in | |
666 | 32) HP_ARCH=hppa2.0n ;; | 665 | 32) HP_ARCH=hppa2.0n ;; | |
667 | 64) HP_ARCH=hppa2.0w ;; | 666 | 64) HP_ARCH=hppa2.0w ;; | |
668 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | 667 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | |
669 | esac ;; | 668 | esac ;; | |
670 | esac | 669 | esac | |
671 | fi | 670 | fi | |
672 | if [ "$HP_ARCH" = "" ]; then | 671 | if test "$HP_ARCH" = ""; then | |
673 | set_cc_for_build | 672 | set_cc_for_build | |
674 | sed 's/^ //' << EOF > "$dummy.c" | 673 | sed 's/^ //' << EOF > "$dummy.c" | |
675 | 674 | |||
676 | #define _HPUX_SOURCE | 675 | #define _HPUX_SOURCE | |
677 | #include <stdlib.h> | 676 | #include <stdlib.h> | |
678 | #include <unistd.h> | 677 | #include <unistd.h> | |
679 | 678 | |||
680 | int main () | 679 | int main () | |
681 | { | 680 | { | |
682 | #if defined(_SC_KERNEL_BITS) | 681 | #if defined(_SC_KERNEL_BITS) | |
683 | long bits = sysconf(_SC_KERNEL_BITS); | 682 | long bits = sysconf(_SC_KERNEL_BITS); | |
684 | #endif | 683 | #endif | |
685 | long cpu = sysconf (_SC_CPU_VERSION); | 684 | long cpu = sysconf (_SC_CPU_VERSION); | |
@@ -698,27 +697,27 @@ EOF | @@ -698,27 +697,27 @@ EOF | |||
698 | } break; | 697 | } break; | |
699 | #else /* !defined(_SC_KERNEL_BITS) */ | 698 | #else /* !defined(_SC_KERNEL_BITS) */ | |
700 | puts ("hppa2.0"); break; | 699 | puts ("hppa2.0"); break; | |
701 | #endif | 700 | #endif | |
702 | default: puts ("hppa1.0"); break; | 701 | default: puts ("hppa1.0"); break; | |
703 | } | 702 | } | |
704 | exit (0); | 703 | exit (0); | |
705 | } | 704 | } | |
706 | EOF | 705 | EOF | |
707 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | 706 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | |
708 | test -z "$HP_ARCH" && HP_ARCH=hppa | 707 | test -z "$HP_ARCH" && HP_ARCH=hppa | |
709 | fi ;; | 708 | fi ;; | |
710 | esac | 709 | esac | |
711 | if [ "$HP_ARCH" = hppa2.0w ] | 710 | if test "$HP_ARCH" = hppa2.0w | |
712 | then | 711 | then | |
713 | set_cc_for_build | 712 | set_cc_for_build | |
714 | 713 | |||
715 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | 714 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | |
716 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | 715 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | |
717 | # generating 64-bit code. GNU and HP use different nomenclature: | 716 | # generating 64-bit code. GNU and HP use different nomenclature: | |
718 | # | 717 | # | |
719 | # $ CC_FOR_BUILD=cc ./config.guess | 718 | # $ CC_FOR_BUILD=cc ./config.guess | |
720 | # => hppa2.0w-hp-hpux11.23 | 719 | # => hppa2.0w-hp-hpux11.23 | |
721 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | 720 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | |
722 | # => hppa64-hp-hpux11.23 | 721 | # => hppa64-hp-hpux11.23 | |
723 | 722 | |||
724 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | 723 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
@@ -772,27 +771,27 @@ EOF | @@ -772,27 +771,27 @@ EOF | |||
772 | 9000/8??:4.3bsd:*:*) | 771 | 9000/8??:4.3bsd:*:*) | |
773 | echo hppa1.0-hp-bsd | 772 | echo hppa1.0-hp-bsd | |
774 | exit ;; | 773 | exit ;; | |
775 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | 774 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | |
776 | echo hppa1.0-hp-mpeix | 775 | echo hppa1.0-hp-mpeix | |
777 | exit ;; | 776 | exit ;; | |
778 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | 777 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
779 | echo hppa1.1-hp-osf | 778 | echo hppa1.1-hp-osf | |
780 | exit ;; | 779 | exit ;; | |
781 | hp8??:OSF1:*:*) | 780 | hp8??:OSF1:*:*) | |
782 | echo hppa1.0-hp-osf | 781 | echo hppa1.0-hp-osf | |
783 | exit ;; | 782 | exit ;; | |
784 | i*86:OSF1:*:*) | 783 | i*86:OSF1:*:*) | |
785 | if [ -x /usr/sbin/sysversion ] ; then | 784 | if test -x /usr/sbin/sysversion ; then | |
786 | echo "$UNAME_MACHINE"-unknown-osf1mk | 785 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
787 | else | 786 | else | |
788 | echo "$UNAME_MACHINE"-unknown-osf1 | 787 | echo "$UNAME_MACHINE"-unknown-osf1 | |
789 | fi | 788 | fi | |
790 | exit ;; | 789 | exit ;; | |
791 | parisc*:Lites*:*:*) | 790 | parisc*:Lites*:*:*) | |
792 | echo hppa1.1-hp-lites | 791 | echo hppa1.1-hp-lites | |
793 | exit ;; | 792 | exit ;; | |
794 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | 793 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | |
795 | echo c1-convex-bsd | 794 | echo c1-convex-bsd | |
796 | exit ;; | 795 | exit ;; | |
797 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | 796 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | |
798 | if getsysinfo -f scalar_acc | 797 | if getsysinfo -f scalar_acc | |
@@ -1085,27 +1084,37 @@ EOF | @@ -1085,27 +1084,37 @@ EOF | |||
1085 | sh*:Linux:*:*) | 1084 | sh*:Linux:*:*) | |
1086 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1085 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1087 | exit ;; | 1086 | exit ;; | |
1088 | sparc:Linux:*:* | sparc64:Linux:*:*) | 1087 | sparc:Linux:*:* | sparc64:Linux:*:*) | |
1089 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1088 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1090 | exit ;; | 1089 | exit ;; | |
1091 | tile*:Linux:*:*) | 1090 | tile*:Linux:*:*) | |
1092 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1091 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1093 | exit ;; | 1092 | exit ;; | |
1094 | vax:Linux:*:*) | 1093 | vax:Linux:*:*) | |
1095 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | 1094 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
1096 | exit ;; | 1095 | exit ;; | |
1097 | x86_64:Linux:*:*) | 1096 | x86_64:Linux:*:*) | |
1098 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | 1097 | set_cc_for_build | |
1098 | LIBCABI=$LIBC | |||
1099 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |||
1100 | if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ | |||
1101 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |||
1102 | grep IS_X32 >/dev/null | |||
1103 | then | |||
1104 | LIBCABI="$LIBC"x32 | |||
1105 | fi | |||
1106 | fi | |||
1107 | echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" | |||
1099 | exit ;; | 1108 | exit ;; | |
1100 | xtensa*:Linux:*:*) | 1109 | xtensa*:Linux:*:*) | |
1101 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | 1110 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1102 | exit ;; | 1111 | exit ;; | |
1103 | i*86:DYNIX/ptx:4*:*) | 1112 | i*86:DYNIX/ptx:4*:*) | |
1104 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1113 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | |
1105 | # earlier versions are messed up and put the nodename in both | 1114 | # earlier versions are messed up and put the nodename in both | |
1106 | # sysname and nodename. | 1115 | # sysname and nodename. | |
1107 | echo i386-sequent-sysv4 | 1116 | echo i386-sequent-sysv4 | |
1108 | exit ;; | 1117 | exit ;; | |
1109 | i*86:UNIX_SV:4.2MP:2.*) | 1118 | i*86:UNIX_SV:4.2MP:2.*) | |
1110 | # Unixware is an offshoot of SVR4, but it has its own version | 1119 | # Unixware is an offshoot of SVR4, but it has its own version | |
1111 | # number series starting with 2... | 1120 | # number series starting with 2... | |
@@ -1274,27 +1283,27 @@ EOF | @@ -1274,27 +1283,27 @@ EOF | |||
1274 | echo "$UNAME_MACHINE"-stratus-vos | 1283 | echo "$UNAME_MACHINE"-stratus-vos | |
1275 | exit ;; | 1284 | exit ;; | |
1276 | *:VOS:*:*) | 1285 | *:VOS:*:*) | |
1277 | # From Paul.Green@stratus.com. | 1286 | # From Paul.Green@stratus.com. | |
1278 | echo hppa1.1-stratus-vos | 1287 | echo hppa1.1-stratus-vos | |
1279 | exit ;; | 1288 | exit ;; | |
1280 | mc68*:A/UX:*:*) | 1289 | mc68*:A/UX:*:*) | |
1281 | echo m68k-apple-aux"$UNAME_RELEASE" | 1290 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1282 | exit ;; | 1291 | exit ;; | |
1283 | news*:NEWS-OS:6*:*) | 1292 | news*:NEWS-OS:6*:*) | |
1284 | echo mips-sony-newsos6 | 1293 | echo mips-sony-newsos6 | |
1285 | exit ;; | 1294 | exit ;; | |
1286 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | 1295 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | |
1287 | if [ -d /usr/nec ]; then | 1296 | if test -d /usr/nec; then | |
1288 | echo mips-nec-sysv"$UNAME_RELEASE" | 1297 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1289 | else | 1298 | else | |
1290 | echo mips-unknown-sysv"$UNAME_RELEASE" | 1299 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1291 | fi | 1300 | fi | |
1292 | exit ;; | 1301 | exit ;; | |
1293 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | 1302 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | |
1294 | echo powerpc-be-beos | 1303 | echo powerpc-be-beos | |
1295 | exit ;; | 1304 | exit ;; | |
1296 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | 1305 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | |
1297 | echo powerpc-apple-beos | 1306 | echo powerpc-apple-beos | |
1298 | exit ;; | 1307 | exit ;; | |
1299 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | 1308 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | |
1300 | echo i586-pc-beos | 1309 | echo i586-pc-beos | |
@@ -1322,41 +1331,44 @@ EOF | @@ -1322,41 +1331,44 @@ EOF | |||
1322 | exit ;; | 1331 | exit ;; | |
1323 | SX-8R:SUPER-UX:*:*) | 1332 | SX-8R:SUPER-UX:*:*) | |
1324 | echo sx8r-nec-superux"$UNAME_RELEASE" | 1333 | echo sx8r-nec-superux"$UNAME_RELEASE" | |
1325 | exit ;; | 1334 | exit ;; | |
1326 | SX-ACE:SUPER-UX:*:*) | 1335 | SX-ACE:SUPER-UX:*:*) | |
1327 | echo sxace-nec-superux"$UNAME_RELEASE" | 1336 | echo sxace-nec-superux"$UNAME_RELEASE" | |
1328 | exit ;; | 1337 | exit ;; | |
1329 | Power*:Rhapsody:*:*) | 1338 | Power*:Rhapsody:*:*) | |
1330 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | 1339 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1331 | exit ;; | 1340 | exit ;; | |
1332 | *:Rhapsody:*:*) | 1341 | *:Rhapsody:*:*) | |
1333 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | 1342 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1334 | exit ;; | 1343 | exit ;; | |
1344 | arm64:Darwin:*:*) | |||
1345 | echo aarch64-apple-darwin"$UNAME_RELEASE" | |||
1346 | exit ;; | |||
1335 | *:Darwin:*:*) | 1347 | *:Darwin:*:*) | |
1336 | UNAME_PROCESSOR=`uname -p` | 1348 | UNAME_PROCESSOR=`uname -p` | |
1337 | case $UNAME_PROCESSOR in | 1349 | case $UNAME_PROCESSOR in | |
1338 | unknown) UNAME_PROCESSOR=powerpc ;; | 1350 | unknown) UNAME_PROCESSOR=powerpc ;; | |
1339 | esac | 1351 | esac | |
1340 | if command -v xcode-select > /dev/null 2> /dev/null && \ | 1352 | if command -v xcode-select > /dev/null 2> /dev/null && \ | |
1341 | ! xcode-select --print-path > /dev/null 2> /dev/null ; then | 1353 | ! xcode-select --print-path > /dev/null 2> /dev/null ; then | |
1342 | # Avoid executing cc if there is no toolchain installed as | 1354 | # Avoid executing cc if there is no toolchain installed as | |
1343 | # cc will be a stub that puts up a graphical alert | 1355 | # cc will be a stub that puts up a graphical alert | |
1344 | # prompting the user to install developer tools. | 1356 | # prompting the user to install developer tools. | |
1345 | CC_FOR_BUILD=no_compiler_found | 1357 | CC_FOR_BUILD=no_compiler_found | |
1346 | else | 1358 | else | |
1347 | set_cc_for_build | 1359 | set_cc_for_build | |
1348 | fi | 1360 | fi | |
1349 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | 1361 | if test "$CC_FOR_BUILD" != no_compiler_found; then | |
1350 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | 1362 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1351 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1363 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1352 | grep IS_64BIT_ARCH >/dev/null | 1364 | grep IS_64BIT_ARCH >/dev/null | |
1353 | then | 1365 | then | |
1354 | case $UNAME_PROCESSOR in | 1366 | case $UNAME_PROCESSOR in | |
1355 | i386) UNAME_PROCESSOR=x86_64 ;; | 1367 | i386) UNAME_PROCESSOR=x86_64 ;; | |
1356 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | 1368 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
1357 | esac | 1369 | esac | |
1358 | fi | 1370 | fi | |
1359 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | 1371 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1360 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | 1372 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1361 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1373 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1362 | grep IS_PPC >/dev/null | 1374 | grep IS_PPC >/dev/null | |
@@ -1619,26 +1631,32 @@ the system type. Please install a C comp | @@ -1619,26 +1631,32 @@ the system type. Please install a C comp | |||
1619 | EOF | 1631 | EOF | |
1620 | ;; | 1632 | ;; | |
1621 | esac | 1633 | esac | |
1622 | 1634 | |||
1623 | cat >&2 <<EOF | 1635 | cat >&2 <<EOF | |
1624 | 1636 | |||
1625 | This script (version $timestamp), has failed to recognize the | 1637 | This script (version $timestamp), has failed to recognize the | |
1626 | operating system you are using. If your script is old, overwrite *all* | 1638 | operating system you are using. If your script is old, overwrite *all* | |
1627 | copies of config.guess and config.sub with the latest versions from: | 1639 | copies of config.guess and config.sub with the latest versions from: | |
1628 | 1640 | |||
1629 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | 1641 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1630 | and | 1642 | and | |
1631 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | 1643 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1644 | EOF | |||
1645 | ||||
1646 | year=`echo $timestamp | sed 's,-.*,,'` | |||
1647 | # shellcheck disable=SC2003 | |||
1648 | if test "`expr "\`date +%Y\`" - "$year"`" -lt 3 ; then | |||
1649 | cat >&2 <<EOF | |||
1632 | 1650 | |||
1633 | If $0 has already been updated, send the following data and any | 1651 | If $0 has already been updated, send the following data and any | |
1634 | information you think might be pertinent to config-patches@gnu.org to | 1652 | information you think might be pertinent to config-patches@gnu.org to | |
1635 | provide the necessary information to handle your system. | 1653 | provide the necessary information to handle your system. | |
1636 | 1654 | |||
1637 | config.guess timestamp = $timestamp | 1655 | config.guess timestamp = $timestamp | |
1638 | 1656 | |||
1639 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 1657 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1640 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 1658 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1641 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 1659 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1642 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 1660 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1643 | 1661 | |||
1644 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | 1662 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | |
@@ -1646,22 +1664,23 @@ uname -v = `(uname -v) 2>/dev/null || ec | @@ -1646,22 +1664,23 @@ uname -v = `(uname -v) 2>/dev/null || ec | |||
1646 | 1664 | |||
1647 | hostinfo = `(hostinfo) 2>/dev/null` | 1665 | hostinfo = `(hostinfo) 2>/dev/null` | |
1648 | /bin/universe = `(/bin/universe) 2>/dev/null` | 1666 | /bin/universe = `(/bin/universe) 2>/dev/null` | |
1649 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | 1667 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | |
1650 | /bin/arch = `(/bin/arch) 2>/dev/null` | 1668 | /bin/arch = `(/bin/arch) 2>/dev/null` | |
1651 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | 1669 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | |
1652 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | 1670 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | |
1653 | 1671 | |||
1654 | UNAME_MACHINE = "$UNAME_MACHINE" | 1672 | UNAME_MACHINE = "$UNAME_MACHINE" | |
1655 | UNAME_RELEASE = "$UNAME_RELEASE" | 1673 | UNAME_RELEASE = "$UNAME_RELEASE" | |
1656 | UNAME_SYSTEM = "$UNAME_SYSTEM" | 1674 | UNAME_SYSTEM = "$UNAME_SYSTEM" | |
1657 | UNAME_VERSION = "$UNAME_VERSION" | 1675 | UNAME_VERSION = "$UNAME_VERSION" | |
1658 | EOF | 1676 | EOF | |
1677 | fi | |||
1659 | 1678 | |||
1660 | exit 1 | 1679 | exit 1 | |
1661 | 1680 | |||
1662 | # Local variables: | 1681 | # Local variables: | |
1663 | # eval: (add-hook 'before-save-hook 'time-stamp) | 1682 | # eval: (add-hook 'before-save-hook 'time-stamp) | |
1664 | # time-stamp-start: "timestamp='" | 1683 | # time-stamp-start: "timestamp='" | |
1665 | # time-stamp-format: "%:y-%02m-%02d" | 1684 | # time-stamp-format: "%:y-%02m-%02d" | |
1666 | # time-stamp-end: "'" | 1685 | # time-stamp-end: "'" | |
1667 | # End: | 1686 | # End: |
--- src/external/lgpl3/gmp/dist/longlong.h 2020/09/27 00:30:26 1.4
+++ src/external/lgpl3/gmp/dist/longlong.h 2021/07/11 21:15:45 1.5
@@ -426,39 +426,39 @@ long __MPN(count_leading_zeros) (UDItype | @@ -426,39 +426,39 @@ long __MPN(count_leading_zeros) (UDItype | |||
426 | __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ | 426 | __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ | |
427 | : "=r" (sh), \ | 427 | : "=r" (sh), \ | |
428 | "=&r" (sl) \ | 428 | "=&r" (sl) \ | |
429 | : "r" ((USItype) (ah)), \ | 429 | : "r" ((USItype) (ah)), \ | |
430 | "rICal" ((USItype) (bh)), \ | 430 | "rICal" ((USItype) (bh)), \ | |
431 | "r" ((USItype) (al)), \ | 431 | "r" ((USItype) (al)), \ | |
432 | "rICal" ((USItype) (bl))) | 432 | "rICal" ((USItype) (bl))) | |
433 | #endif | 433 | #endif | |
434 | 434 | |||
435 | #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \ | 435 | #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \ | |
436 | && W_TYPE_SIZE == 32 | 436 | && W_TYPE_SIZE == 32 | |
437 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | 437 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | |
438 | do { \ | 438 | do { \ | |
439 | if (__builtin_constant_p (bl) && -(USItype)(bl) < 0x100) \ | 439 | if (__builtin_constant_p (bl) && -(USItype)(bl) < (USItype)(bl)) \ | |
440 | __asm__ ("subs\t%1, %4, %5\n\tadc\t%0, %2, %3" \ | 440 | __asm__ ("subs\t%1, %4, %5\n\tadc\t%0, %2, %3" \ | |
441 | : "=r" (sh), "=&r" (sl) \ | 441 | : "=r" (sh), "=&r" (sl) \ | |
442 | : "r" (ah), "rI" (bh), \ | 442 | : "r" (ah), "rI" (bh), \ | |
443 | "%r" (al), "rI" (-(USItype)(bl)) __CLOBBER_CC); \ | 443 | "%r" (al), "rI" (-(USItype)(bl)) __CLOBBER_CC); \ | |
444 | else \ | 444 | else \ | |
445 | __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \ | 445 | __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \ | |
446 | : "=r" (sh), "=&r" (sl) \ | 446 | : "=r" (sh), "=&r" (sl) \ | |
447 | : "r" (ah), "rI" (bh), "%r" (al), "rI" (bl) __CLOBBER_CC); \ | 447 | : "r" (ah), "rI" (bh), "%r" (al), "rI" (bl) __CLOBBER_CC); \ | |
448 | } while (0) | 448 | } while (0) | |
449 | /* FIXME: Extend the immediate range for the low word by using both ADDS and | 449 | /* FIXME: Extend the immediate range for the low word by using both ADDS and | |
450 | SUBS, since they set carry in the same way. Note: We need separate | 450 | SUBS, since they set carry in the same way. We need separate definitions | |
451 | definitions for thumb and non-thumb to to th absense of RSC under thumb. */ | 451 | for thumb and non-thumb since thumb lacks RSC. */ | |
452 | #if defined (__thumb__) | 452 | #if defined (__thumb__) | |
453 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | 453 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | |
454 | do { \ | 454 | do { \ | |
455 | if (__builtin_constant_p (ah) && __builtin_constant_p (bh) \ | 455 | if (__builtin_constant_p (ah) && __builtin_constant_p (bh) \ | |
456 | && (ah) == (bh)) \ | 456 | && (ah) == (bh)) \ | |
457 | __asm__ ("subs\t%1, %2, %3\n\tsbc\t%0, %0, %0" \ | 457 | __asm__ ("subs\t%1, %2, %3\n\tsbc\t%0, %0, %0" \ | |
458 | : "=r" (sh), "=r" (sl) \ | 458 | : "=r" (sh), "=r" (sl) \ | |
459 | : "r" (al), "rI" (bl) __CLOBBER_CC); \ | 459 | : "r" (al), "rI" (bl) __CLOBBER_CC); \ | |
460 | else if (__builtin_constant_p (al)) \ | 460 | else if (__builtin_constant_p (al)) \ | |
461 | __asm__ ("rsbs\t%1, %5, %4\n\tsbc\t%0, %2, %3" \ | 461 | __asm__ ("rsbs\t%1, %5, %4\n\tsbc\t%0, %2, %3" \ | |
462 | : "=r" (sh), "=&r" (sl) \ | 462 | : "=r" (sh), "=&r" (sl) \ | |
463 | : "r" (ah), "rI" (bh), "rI" (al), "r" (bl) __CLOBBER_CC); \ | 463 | : "r" (ah), "rI" (bh), "rI" (al), "r" (bl) __CLOBBER_CC); \ | |
464 | else if (__builtin_constant_p (bl)) \ | 464 | else if (__builtin_constant_p (bl)) \ | |
@@ -494,27 +494,27 @@ long __MPN(count_leading_zeros) (UDItype | @@ -494,27 +494,27 @@ long __MPN(count_leading_zeros) (UDItype | |||
494 | if (__builtin_constant_p (bl)) \ | 494 | if (__builtin_constant_p (bl)) \ | |
495 | __asm__ ("subs\t%1, %4, %5\n\trsc\t%0, %3, %2" \ | 495 | __asm__ ("subs\t%1, %4, %5\n\trsc\t%0, %3, %2" \ | |
496 | : "=r" (sh), "=&r" (sl) \ | 496 | : "=r" (sh), "=&r" (sl) \ | |
497 | : "rI" (ah), "r" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ | 497 | : "rI" (ah), "r" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ | |
498 | else \ | 498 | else \ | |
499 | __asm__ ("rsbs\t%1, %5, %4\n\trsc\t%0, %3, %2" \ | 499 | __asm__ ("rsbs\t%1, %5, %4\n\trsc\t%0, %3, %2" \ | |
500 | : "=r" (sh), "=&r" (sl) \ | 500 | : "=r" (sh), "=&r" (sl) \ | |
501 | : "rI" (ah), "r" (bh), "rI" (al), "r" (bl) __CLOBBER_CC); \ | 501 | : "rI" (ah), "r" (bh), "rI" (al), "r" (bl) __CLOBBER_CC); \ | |
502 | } \ | 502 | } \ | |
503 | else if (__builtin_constant_p (bl)) \ | 503 | else if (__builtin_constant_p (bl)) \ | |
504 | __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ | 504 | __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ | |
505 | : "=r" (sh), "=&r" (sl) \ | 505 | : "=r" (sh), "=&r" (sl) \ | |
506 | : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ | 506 | : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ | |
507 | else /* only bh might be a constant */ \ | 507 | else \ | |
508 | __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ | 508 | __asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ | |
509 | : "=r" (sh), "=&r" (sl) \ | 509 | : "=r" (sh), "=&r" (sl) \ | |
510 | : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ | 510 | : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC); \ | |
511 | } while (0) | 511 | } while (0) | |
512 | #endif | 512 | #endif | |
513 | #if defined (__ARM_ARCH_2__) || defined (__ARM_ARCH_2A__) \ | 513 | #if defined (__ARM_ARCH_2__) || defined (__ARM_ARCH_2A__) \ | |
514 | || defined (__ARM_ARCH_3__) | 514 | || defined (__ARM_ARCH_3__) | |
515 | #define umul_ppmm(xh, xl, a, b) \ | 515 | #define umul_ppmm(xh, xl, a, b) \ | |
516 | do { \ | 516 | do { \ | |
517 | register USItype __t0, __t1, __t2; \ | 517 | register USItype __t0, __t1, __t2; \ | |
518 | __asm__ ("%@ Inlined umul_ppmm\n" \ | 518 | __asm__ ("%@ Inlined umul_ppmm\n" \ | |
519 | " mov %2, %5, lsr #16\n" \ | 519 | " mov %2, %5, lsr #16\n" \ | |
520 | " mov %0, %6, lsr #16\n" \ | 520 | " mov %0, %6, lsr #16\n" \ | |
@@ -550,44 +550,42 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype | @@ -550,44 +550,42 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype | |||
550 | do { UWtype __di; \ | 550 | do { UWtype __di; \ | |
551 | __di = __MPN(invert_limb) (d); \ | 551 | __di = __MPN(invert_limb) (d); \ | |
552 | udiv_qrnnd_preinv (q, r, n1, n0, d, __di); \ | 552 | udiv_qrnnd_preinv (q, r, n1, n0, d, __di); \ | |
553 | } while (0) | 553 | } while (0) | |
554 | #define UDIV_PREINV_ALWAYS 1 | 554 | #define UDIV_PREINV_ALWAYS 1 | |
555 | #define UDIV_NEEDS_NORMALIZATION 1 | 555 | #define UDIV_NEEDS_NORMALIZATION 1 | |
556 | #endif /* LONGLONG_STANDALONE */ | 556 | #endif /* LONGLONG_STANDALONE */ | |
557 | #endif /* defined(__ARM_ARCH_2__) ... */ | 557 | #endif /* defined(__ARM_ARCH_2__) ... */ | |
558 | #define count_leading_zeros(count, x) count_leading_zeros_gcc_clz(count, x) | 558 | #define count_leading_zeros(count, x) count_leading_zeros_gcc_clz(count, x) | |
559 | #define count_trailing_zeros(count, x) count_trailing_zeros_gcc_ctz(count, x) | 559 | #define count_trailing_zeros(count, x) count_trailing_zeros_gcc_ctz(count, x) | |
560 | #endif /* __arm__ */ | 560 | #endif /* __arm__ */ | |
561 | 561 | |||
562 | #if defined (__aarch64__) && W_TYPE_SIZE == 64 | 562 | #if defined (__aarch64__) && W_TYPE_SIZE == 64 | |
563 | /* FIXME: Extend the immediate range for the low word by using both | |||
564 | ADDS and SUBS, since they set carry in the same way. */ | |||
565 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | 563 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | |
566 | do { \ | 564 | do { \ | |
567 | if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x1000) \ | 565 | if (__builtin_constant_p (bl) && ~(UDItype)(bl) <= (UDItype)(bl)) \ | |
568 | __asm__ ("subs\t%1, %x4, %5\n\tadc\t%0, %x2, %x3" \ | 566 | __asm__ ("subs\t%1, %x4, %5\n\tadc\t%0, %x2, %x3" \ | |
569 | : "=r" (sh), "=&r" (sl) \ | 567 | : "=r" (sh), "=&r" (sl) \ | |
570 | : "rZ" ((UDItype)(ah)), "rZ" ((UDItype)(bh)), \ | 568 | : "rZ" ((UDItype)(ah)), "rZ" ((UDItype)(bh)), \ | |
571 | "%r" ((UDItype)(al)), "rI" (-(UDItype)(bl)) __CLOBBER_CC);\ | 569 | "%r" ((UDItype)(al)), "rI" (-(UDItype)(bl)) __CLOBBER_CC);\ | |
572 | else \ | 570 | else \ | |
573 | __asm__ ("adds\t%1, %x4, %5\n\tadc\t%0, %x2, %x3" \ | 571 | __asm__ ("adds\t%1, %x4, %5\n\tadc\t%0, %x2, %x3" \ | |
574 | : "=r" (sh), "=&r" (sl) \ | 572 | : "=r" (sh), "=&r" (sl) \ | |
575 | : "rZ" ((UDItype)(ah)), "rZ" ((UDItype)(bh)), \ | 573 | : "rZ" ((UDItype)(ah)), "rZ" ((UDItype)(bh)), \ | |
576 | "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) __CLOBBER_CC);\ | 574 | "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) __CLOBBER_CC);\ | |
577 | } while (0) | 575 | } while (0) | |
578 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | 576 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | |
579 | do { \ | 577 | do { \ | |
580 | if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x1000) \ | 578 | if (__builtin_constant_p (bl) && ~(UDItype)(bl) <= (UDItype)(bl)) \ | |
581 | __asm__ ("adds\t%1, %x4, %5\n\tsbc\t%0, %x2, %x3" \ | 579 | __asm__ ("adds\t%1, %x4, %5\n\tsbc\t%0, %x2, %x3" \ | |
582 | : "=r,r" (sh), "=&r,&r" (sl) \ | 580 | : "=r,r" (sh), "=&r,&r" (sl) \ | |
583 | : "rZ,rZ" ((UDItype)(ah)), "rZ,rZ" ((UDItype)(bh)), \ | 581 | : "rZ,rZ" ((UDItype)(ah)), "rZ,rZ" ((UDItype)(bh)), \ | |
584 | "r,Z" ((UDItype)(al)), "rI,r" (-(UDItype)(bl)) __CLOBBER_CC);\ | 582 | "r,Z" ((UDItype)(al)), "rI,r" (-(UDItype)(bl)) __CLOBBER_CC);\ | |
585 | else \ | 583 | else \ | |
586 | __asm__ ("subs\t%1, %x4, %5\n\tsbc\t%0, %x2, %x3" \ | 584 | __asm__ ("subs\t%1, %x4, %5\n\tsbc\t%0, %x2, %x3" \ | |
587 | : "=r,r" (sh), "=&r,&r" (sl) \ | 585 | : "=r,r" (sh), "=&r,&r" (sl) \ | |
588 | : "rZ,rZ" ((UDItype)(ah)), "rZ,rZ" ((UDItype)(bh)), \ | 586 | : "rZ,rZ" ((UDItype)(ah)), "rZ,rZ" ((UDItype)(bh)), \ | |
589 | "r,Z" ((UDItype)(al)), "rI,r" ((UDItype)(bl)) __CLOBBER_CC);\ | 587 | "r,Z" ((UDItype)(al)), "rI,r" ((UDItype)(bl)) __CLOBBER_CC);\ | |
590 | } while(0); | 588 | } while(0); | |
591 | #if __GMP_GNUC_PREREQ (4,9) | 589 | #if __GMP_GNUC_PREREQ (4,9) | |
592 | #define umul_ppmm(w1, w0, u, v) \ | 590 | #define umul_ppmm(w1, w0, u, v) \ | |
593 | do { \ | 591 | do { \ | |
@@ -1046,27 +1044,27 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype | @@ -1046,27 +1044,27 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype | |||
1046 | __asm__ ("addq %5,%q1\n\tadcq %3,%q0" \ | 1044 | __asm__ ("addq %5,%q1\n\tadcq %3,%q0" \ | |
1047 | : "=r" (sh), "=&r" (sl) \ | 1045 | : "=r" (sh), "=&r" (sl) \ | |
1048 | : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \ | 1046 | : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \ | |
1049 | "%1" ((UDItype)(al)), "rme" ((UDItype)(bl))) | 1047 | "%1" ((UDItype)(al)), "rme" ((UDItype)(bl))) | |
1050 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | 1048 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | |
1051 | __asm__ ("subq %5,%q1\n\tsbbq %3,%q0" \ | 1049 | __asm__ ("subq %5,%q1\n\tsbbq %3,%q0" \ | |
1052 | : "=r" (sh), "=&r" (sl) \ | 1050 | : "=r" (sh), "=&r" (sl) \ | |
1053 | : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \ | 1051 | : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \ | |
1054 | "1" ((UDItype)(al)), "rme" ((UDItype)(bl))) | 1052 | "1" ((UDItype)(al)), "rme" ((UDItype)(bl))) | |
1055 | #if X86_ASM_MULX \ | 1053 | #if X86_ASM_MULX \ | |
1056 | && (HAVE_HOST_CPU_haswell || HAVE_HOST_CPU_broadwell \ | 1054 | && (HAVE_HOST_CPU_haswell || HAVE_HOST_CPU_broadwell \ | |
1057 | || HAVE_HOST_CPU_skylake || HAVE_HOST_CPU_bd4 || HAVE_HOST_CPU_zen) | 1055 | || HAVE_HOST_CPU_skylake || HAVE_HOST_CPU_bd4 || HAVE_HOST_CPU_zen) | |
1058 | #define umul_ppmm(w1, w0, u, v) \ | 1056 | #define umul_ppmm(w1, w0, u, v) \ | |
1059 | __asm__ ("mulx\t%3, %0, %1" \ | 1057 | __asm__ ("mulx\t%3, %q0, %q1" \ | |
1060 | : "=r" (w0), "=r" (w1) \ | 1058 | : "=r" (w0), "=r" (w1) \ | |
1061 | : "%d" ((UDItype)(u)), "rm" ((UDItype)(v))) | 1059 | : "%d" ((UDItype)(u)), "rm" ((UDItype)(v))) | |
1062 | #else | 1060 | #else | |
1063 | #define umul_ppmm(w1, w0, u, v) \ | 1061 | #define umul_ppmm(w1, w0, u, v) \ | |
1064 | __asm__ ("mulq\t%3" \ | 1062 | __asm__ ("mulq\t%3" \ | |
1065 | : "=a" (w0), "=d" (w1) \ | 1063 | : "=a" (w0), "=d" (w1) \ | |
1066 | : "%0" ((UDItype)(u)), "rm" ((UDItype)(v))) | 1064 | : "%0" ((UDItype)(u)), "rm" ((UDItype)(v))) | |
1067 | #endif | 1065 | #endif | |
1068 | #define udiv_qrnnd(q, r, n1, n0, dx) /* d renamed to dx avoiding "=d" */\ | 1066 | #define udiv_qrnnd(q, r, n1, n0, dx) /* d renamed to dx avoiding "=d" */\ | |
1069 | __asm__ ("divq %4" /* stringification in K&R C */ \ | 1067 | __asm__ ("divq %4" /* stringification in K&R C */ \ | |
1070 | : "=a" (q), "=d" (r) \ | 1068 | : "=a" (q), "=d" (r) \ | |
1071 | : "0" ((UDItype)(n0)), "1" ((UDItype)(n1)), "rm" ((UDItype)(dx))) | 1069 | : "0" ((UDItype)(n0)), "1" ((UDItype)(n1)), "rm" ((UDItype)(dx))) | |
1072 | 1070 | |||
@@ -1484,56 +1482,57 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype | @@ -1484,56 +1482,57 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype | |||
1484 | "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ | 1482 | "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ | |
1485 | __CLOBBER_CC); \ | 1483 | __CLOBBER_CC); \ | |
1486 | else \ | 1484 | else \ | |
1487 | __asm__ ("add%I5c %1,%4,%5\n\tadde %0,%2,%3" \ | 1485 | __asm__ ("add%I5c %1,%4,%5\n\tadde %0,%2,%3" \ | |
1488 | : "=r" (sh), "=&r" (sl) \ | 1486 | : "=r" (sh), "=&r" (sl) \ | |
1489 | : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ | 1487 | : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ | |
1490 | "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ | 1488 | "%r" ((UDItype)(al)), "rI" ((UDItype)(bl)) \ | |
1491 | __CLOBBER_CC); \ | 1489 | __CLOBBER_CC); \ | |
1492 | } while (0) | 1490 | } while (0) | |
1493 | /* We use "*rI" for the constant operand here, since with just "I", gcc barfs. | 1491 | /* We use "*rI" for the constant operand here, since with just "I", gcc barfs. | |
1494 | This might seem strange, but gcc folds away the dead code late. */ | 1492 | This might seem strange, but gcc folds away the dead code late. */ | |
1495 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | 1493 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | |
1496 | do { \ | 1494 | do { \ | |
1497 | if (__builtin_constant_p (bl) && bl > -0x8000 && bl <= 0x8000) { \ | 1495 | if (__builtin_constant_p (bl) \ | |
1496 | && (bl) > -0x8000 && (bl) <= 0x8000 && (bl) != 0) { \ | |||
1498 | if (__builtin_constant_p (ah) && (ah) == 0) \ | 1497 | if (__builtin_constant_p (ah) && (ah) == 0) \ | |
1499 | __asm__ ("addic %1,%3,%4\n\tsubfze %0,%2" \ | 1498 | __asm__ ("addic %1,%3,%4\n\tsubfze %0,%2" \ | |
1500 | : "=r" (sh), "=&r" (sl) \ | 1499 | : "=r" (sh), "=&r" (sl) \ | |
1501 | : "r" ((UDItype)(bh)), \ | 1500 | : "r" ((UDItype)(bh)), \ | |
1502 | "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | 1501 | "r" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | |
1503 | __CLOBBER_CC); \ | 1502 | __CLOBBER_CC); \ | |
1504 | else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ | 1503 | else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ | |
1505 | __asm__ ("addic %1,%3,%4\n\tsubfme %0,%2" \ | 1504 | __asm__ ("addic %1,%3,%4\n\tsubfme %0,%2" \ | |
1506 | : "=r" (sh), "=&r" (sl) \ | 1505 | : "=r" (sh), "=&r" (sl) \ | |
1507 | : "r" ((UDItype)(bh)), \ | 1506 | : "r" ((UDItype)(bh)), \ | |
1508 | "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | 1507 | "r" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | |
1509 | __CLOBBER_CC); \ | 1508 | __CLOBBER_CC); \ | |
1510 | else if (__builtin_constant_p (bh) && (bh) == 0) \ | 1509 | else if (__builtin_constant_p (bh) && (bh) == 0) \ | |
1511 | __asm__ ("addic %1,%3,%4\n\taddme %0,%2" \ | 1510 | __asm__ ("addic %1,%3,%4\n\taddme %0,%2" \ | |
1512 | : "=r" (sh), "=&r" (sl) \ | 1511 | : "=r" (sh), "=&r" (sl) \ | |
1513 | : "r" ((UDItype)(ah)), \ | 1512 | : "r" ((UDItype)(ah)), \ | |
1514 | "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | 1513 | "r" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | |
1515 | __CLOBBER_CC); \ | 1514 | __CLOBBER_CC); \ | |
1516 | else if (__builtin_constant_p (bh) && (bh) == ~(UDItype) 0) \ | 1515 | else if (__builtin_constant_p (bh) && (bh) == ~(UDItype) 0) \ | |
1517 | __asm__ ("addic %1,%3,%4\n\taddze %0,%2" \ | 1516 | __asm__ ("addic %1,%3,%4\n\taddze %0,%2" \ | |
1518 | : "=r" (sh), "=&r" (sl) \ | 1517 | : "=r" (sh), "=&r" (sl) \ | |
1519 | : "r" ((UDItype)(ah)), \ | 1518 | : "r" ((UDItype)(ah)), \ | |
1520 | "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | 1519 | "r" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | |
1521 | __CLOBBER_CC); \ | 1520 | __CLOBBER_CC); \ | |
1522 | else \ | 1521 | else \ | |
1523 | __asm__ ("addic %1,%4,%5\n\tsubfe %0,%3,%2" \ | 1522 | __asm__ ("addic %1,%4,%5\n\tsubfe %0,%3,%2" \ | |
1524 | : "=r" (sh), "=&r" (sl) \ | 1523 | : "=r" (sh), "=&r" (sl) \ | |
1525 | : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ | 1524 | : "r" ((UDItype)(ah)), "r" ((UDItype)(bh)), \ | |
1526 | "rI" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | 1525 | "r" ((UDItype)(al)), "*rI" (-((UDItype)(bl))) \ | |
1527 | __CLOBBER_CC); \ | 1526 | __CLOBBER_CC); \ | |
1528 | } else { \ | 1527 | } else { \ | |
1529 | if (__builtin_constant_p (ah) && (ah) == 0) \ | 1528 | if (__builtin_constant_p (ah) && (ah) == 0) \ | |
1530 | __asm__ ("subf%I3c %1,%4,%3\n\tsubfze %0,%2" \ | 1529 | __asm__ ("subf%I3c %1,%4,%3\n\tsubfze %0,%2" \ | |
1531 | : "=r" (sh), "=&r" (sl) \ | 1530 | : "=r" (sh), "=&r" (sl) \ | |
1532 | : "r" ((UDItype)(bh)), \ | 1531 | : "r" ((UDItype)(bh)), \ | |
1533 | "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ | 1532 | "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ | |
1534 | __CLOBBER_CC); \ | 1533 | __CLOBBER_CC); \ | |
1535 | else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ | 1534 | else if (__builtin_constant_p (ah) && (ah) == ~(UDItype) 0) \ | |
1536 | __asm__ ("subf%I3c %1,%4,%3\n\tsubfme %0,%2" \ | 1535 | __asm__ ("subf%I3c %1,%4,%3\n\tsubfme %0,%2" \ | |
1537 | : "=r" (sh), "=&r" (sl) \ | 1536 | : "=r" (sh), "=&r" (sl) \ | |
1538 | : "r" ((UDItype)(bh)), \ | 1537 | : "r" ((UDItype)(bh)), \ | |
1539 | "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ | 1538 | "rI" ((UDItype)(al)), "r" ((UDItype)(bl)) \ | |
@@ -2046,38 +2045,42 @@ extern __longlong_h_C UWtype mpn_udiv_qr | @@ -2046,38 +2045,42 @@ extern __longlong_h_C UWtype mpn_udiv_qr | |||
2046 | (q) = mpn_udiv_qrnnd_r ((UWtype) (n1), (UWtype) (n0), (UWtype) d, \ | 2045 | (q) = mpn_udiv_qrnnd_r ((UWtype) (n1), (UWtype) (n0), (UWtype) d, \ | |
2047 | &__udiv_qrnnd_r); \ | 2046 | &__udiv_qrnnd_r); \ | |
2048 | (r) = __udiv_qrnnd_r; \ | 2047 | (r) = __udiv_qrnnd_r; \ | |
2049 | } while (0) | 2048 | } while (0) | |
2050 | #endif | 2049 | #endif | |
2051 | 2050 | |||
2052 | 2051 | |||
2053 | /* If this machine has no inline assembler, use C macros. */ | 2052 | /* If this machine has no inline assembler, use C macros. */ | |
2054 | 2053 | |||
2055 | #if !defined (add_ssaaaa) | 2054 | #if !defined (add_ssaaaa) | |
2056 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | 2055 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | |
2057 | do { \ | 2056 | do { \ | |
2058 | UWtype __x; \ | 2057 | UWtype __x; \ | |
2059 | __x = (al) + (bl); \ | 2058 | UWtype __al = (al); \ | |
2060 | (sh) = (ah) + (bh) + (__x < (al)); \ | 2059 | UWtype __bl = (bl); \ | |
2060 | __x = __al + __bl; \ | |||
2061 | (sh) = (ah) + (bh) + (__x < __al); \ | |||
2061 | (sl) = __x; \ | 2062 | (sl) = __x; \ | |
2062 | } while (0) | 2063 | } while (0) | |
2063 | #endif | 2064 | #endif | |
2064 | 2065 | |||
2065 | #if !defined (sub_ddmmss) | 2066 | #if !defined (sub_ddmmss) | |
2066 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | 2067 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | |
2067 | do { \ | 2068 | do { \ | |
2068 | UWtype __x; \ | 2069 | UWtype __x; \ | |
2069 | __x = (al) - (bl); \ | 2070 | UWtype __al = (al); \ | |
2070 | (sh) = (ah) - (bh) - ((al) < (bl)); \ | 2071 | UWtype __bl = (bl); \ | |
2072 | __x = __al - __bl; \ | |||
2073 | (sh) = (ah) - (bh) - (__al < __bl); \ | |||
2071 | (sl) = __x; \ | 2074 | (sl) = __x; \ | |
2072 | } while (0) | 2075 | } while (0) | |
2073 | #endif | 2076 | #endif | |
2074 | 2077 | |||
2075 | /* If we lack umul_ppmm but have smul_ppmm, define umul_ppmm in terms of | 2078 | /* If we lack umul_ppmm but have smul_ppmm, define umul_ppmm in terms of | |
2076 | smul_ppmm. */ | 2079 | smul_ppmm. */ | |
2077 | #if !defined (umul_ppmm) && defined (smul_ppmm) | 2080 | #if !defined (umul_ppmm) && defined (smul_ppmm) | |
2078 | #define umul_ppmm(w1, w0, u, v) \ | 2081 | #define umul_ppmm(w1, w0, u, v) \ | |
2079 | do { \ | 2082 | do { \ | |
2080 | UWtype __w1; \ | 2083 | UWtype __w1; \ | |
2081 | UWtype __xm0 = (u), __xm1 = (v); \ | 2084 | UWtype __xm0 = (u), __xm1 = (v); \ | |
2082 | smul_ppmm (__w1, w0, __xm0, __xm1); \ | 2085 | smul_ppmm (__w1, w0, __xm0, __xm1); \ | |
2083 | (w1) = __w1 + (-(__xm0 >> (W_TYPE_SIZE - 1)) & __xm1) \ | 2086 | (w1) = __w1 + (-(__xm0 >> (W_TYPE_SIZE - 1)) & __xm1) \ |
--- src/external/lgpl3/gmp/dist/configure 2020/09/27 00:30:26 1.8
+++ src/external/lgpl3/gmp/dist/configure 2021/07/11 21:15:45 1.9
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh | |
2 | # From configure.ac Revision. | 2 | # From configure.ac Revision. | |
3 | # Guess values for system-dependent variables and create Makefiles. | 3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.69 for GNU MP 6.2.0. | 4 | # Generated by GNU Autoconf 2.69 for GNU MP 6.2.1. | |
5 | # | 5 | # | |
6 | # Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. | 6 | # Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. | |
7 | # | 7 | # | |
8 | # | 8 | # | |
9 | # | 9 | # | |
10 | # Copyright 1996-2020 Free Software Foundation, Inc. | 10 | # Copyright 1996-2020 Free Software Foundation, Inc. | |
11 | # | 11 | # | |
12 | # This file is part of the GNU MP Library. | 12 | # This file is part of the GNU MP Library. | |
13 | # | 13 | # | |
14 | # The GNU MP Library is free software; you can redistribute it and/or modify | 14 | # The GNU MP Library is free software; you can redistribute it and/or modify | |
15 | # it under the terms of either: | 15 | # it under the terms of either: | |
16 | # | 16 | # | |
17 | # * the GNU Lesser General Public License as published by the Free | 17 | # * the GNU Lesser General Public License as published by the Free | |
@@ -613,28 +613,28 @@ ac_hostname=`(hostname || uname -n) 2>/d | @@ -613,28 +613,28 @@ ac_hostname=`(hostname || uname -n) 2>/d | |||
613 | # | 613 | # | |
614 | ac_default_prefix=/usr/local | 614 | ac_default_prefix=/usr/local | |
615 | ac_clean_files= | 615 | ac_clean_files= | |
616 | ac_config_libobj_dir=. | 616 | ac_config_libobj_dir=. | |
617 | LIBOBJS= | 617 | LIBOBJS= | |
618 | cross_compiling=no | 618 | cross_compiling=no | |
619 | subdirs= | 619 | subdirs= | |
620 | MFLAGS= | 620 | MFLAGS= | |
621 | MAKEFLAGS= | 621 | MAKEFLAGS= | |
622 | 622 | |||
623 | # Identity of this package. | 623 | # Identity of this package. | |
624 | PACKAGE_NAME='GNU MP' | 624 | PACKAGE_NAME='GNU MP' | |
625 | PACKAGE_TARNAME='gmp' | 625 | PACKAGE_TARNAME='gmp' | |
626 | PACKAGE_VERSION='6.2.0' | 626 | PACKAGE_VERSION='6.2.1' | |
627 | PACKAGE_STRING='GNU MP 6.2.0' | 627 | PACKAGE_STRING='GNU MP 6.2.1' | |
628 | PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html' | 628 | PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html' | |
629 | PACKAGE_URL='http://www.gnu.org/software/gmp/' | 629 | PACKAGE_URL='http://www.gnu.org/software/gmp/' | |
630 | 630 | |||
631 | ac_unique_file="gmp-impl.h" | 631 | ac_unique_file="gmp-impl.h" | |
632 | # Factoring default headers for most tests. | 632 | # Factoring default headers for most tests. | |
633 | ac_includes_default="\ | 633 | ac_includes_default="\ | |
634 | #include <stdio.h> | 634 | #include <stdio.h> | |
635 | #ifdef HAVE_SYS_TYPES_H | 635 | #ifdef HAVE_SYS_TYPES_H | |
636 | # include <sys/types.h> | 636 | # include <sys/types.h> | |
637 | #endif | 637 | #endif | |
638 | #ifdef HAVE_SYS_STAT_H | 638 | #ifdef HAVE_SYS_STAT_H | |
639 | # include <sys/stat.h> | 639 | # include <sys/stat.h> | |
640 | #endif | 640 | #endif | |
@@ -1404,27 +1404,27 @@ for ac_var in $ac_precious_vars; do | @@ -1404,27 +1404,27 @@ for ac_var in $ac_precious_vars; do | |||
1404 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 1404 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1405 | eval ac_env_${ac_var}_value=\$${ac_var} | 1405 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1406 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 1406 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1407 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 1407 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1408 | done | 1408 | done | |
1409 | 1409 | |||
1410 | # | 1410 | # | |
1411 | # Report the --help message. | 1411 | # Report the --help message. | |
1412 | # | 1412 | # | |
1413 | if test "$ac_init_help" = "long"; then | 1413 | if test "$ac_init_help" = "long"; then | |
1414 | # Omit some internal or obsolete options to make the list less imposing. | 1414 | # Omit some internal or obsolete options to make the list less imposing. | |
1415 | # This message is too long to be a string in the A/UX 3.1 sh. | 1415 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1416 | cat <<_ACEOF | 1416 | cat <<_ACEOF | |
1417 | \`configure' configures GNU MP 6.2.0 to adapt to many kinds of systems. | 1417 | \`configure' configures GNU MP 6.2.1 to adapt to many kinds of systems. | |
1418 | 1418 | |||
1419 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1419 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1420 | 1420 | |||
1421 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 1421 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1422 | VAR=VALUE. See below for descriptions of some of the useful variables. | 1422 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1423 | 1423 | |||
1424 | Defaults for the options are specified in brackets. | 1424 | Defaults for the options are specified in brackets. | |
1425 | 1425 | |||
1426 | Configuration: | 1426 | Configuration: | |
1427 | -h, --help display this help and exit | 1427 | -h, --help display this help and exit | |
1428 | --help=short display options specific to this package | 1428 | --help=short display options specific to this package | |
1429 | --help=recursive display the short help of all the included packages | 1429 | --help=recursive display the short help of all the included packages | |
1430 | -V, --version display version information and exit | 1430 | -V, --version display version information and exit | |
@@ -1474,27 +1474,27 @@ _ACEOF | @@ -1474,27 +1474,27 @@ _ACEOF | |||
1474 | Program names: | 1474 | Program names: | |
1475 | --program-prefix=PREFIX prepend PREFIX to installed program names | 1475 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1476 | --program-suffix=SUFFIX append SUFFIX to installed program names | 1476 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1477 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | 1477 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1478 | 1478 | |||
1479 | System types: | 1479 | System types: | |
1480 | --build=BUILD configure for building on BUILD [guessed] | 1480 | --build=BUILD configure for building on BUILD [guessed] | |
1481 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | 1481 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1482 | _ACEOF | 1482 | _ACEOF | |
1483 | fi | 1483 | fi | |
1484 | 1484 | |||
1485 | if test -n "$ac_init_help"; then | 1485 | if test -n "$ac_init_help"; then | |
1486 | case $ac_init_help in | 1486 | case $ac_init_help in | |
1487 | short | recursive ) echo "Configuration of GNU MP 6.2.0:";; | 1487 | short | recursive ) echo "Configuration of GNU MP 6.2.1:";; | |
1488 | esac | 1488 | esac | |
1489 | cat <<\_ACEOF | 1489 | cat <<\_ACEOF | |
1490 | 1490 | |||
1491 | Optional Features: | 1491 | Optional Features: | |
1492 | --disable-option-checking ignore unrecognized --enable/--with options | 1492 | --disable-option-checking ignore unrecognized --enable/--with options | |
1493 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 1493 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1494 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 1494 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1495 | --enable-silent-rules less verbose build output (undo: "make V=1") | 1495 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1496 | --disable-silent-rules verbose build output (undo: "make V=0") | 1496 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1497 | --enable-maintainer-mode | 1497 | --enable-maintainer-mode | |
1498 | enable make rules and dependencies not useful (and | 1498 | enable make rules and dependencies not useful (and | |
1499 | sometimes confusing) to the casual installer | 1499 | sometimes confusing) to the casual installer | |
1500 | --enable-assert enable ASSERT checking [default=no] | 1500 | --enable-assert enable ASSERT checking [default=no] | |
@@ -1614,27 +1614,27 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_ | @@ -1614,27 +1614,27 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_ | |||
1614 | elif test -f "$ac_srcdir/configure"; then | 1614 | elif test -f "$ac_srcdir/configure"; then | |
1615 | echo && | 1615 | echo && | |
1616 | $SHELL "$ac_srcdir/configure" --help=recursive | 1616 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1617 | else | 1617 | else | |
1618 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 1618 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1619 | fi || ac_status=$? | 1619 | fi || ac_status=$? | |
1620 | cd "$ac_pwd" || { ac_status=$?; break; } | 1620 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1621 | done | 1621 | done | |
1622 | fi | 1622 | fi | |
1623 | 1623 | |||
1624 | test -n "$ac_init_help" && exit $ac_status | 1624 | test -n "$ac_init_help" && exit $ac_status | |
1625 | if $ac_init_version; then | 1625 | if $ac_init_version; then | |
1626 | cat <<\_ACEOF | 1626 | cat <<\_ACEOF | |
1627 | GNU MP configure 6.2.0 | 1627 | GNU MP configure 6.2.1 | |
1628 | generated by GNU Autoconf 2.69 | 1628 | generated by GNU Autoconf 2.69 | |
1629 | 1629 | |||
1630 | Copyright (C) 2012 Free Software Foundation, Inc. | 1630 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1631 | This configure script is free software; the Free Software Foundation | 1631 | This configure script is free software; the Free Software Foundation | |
1632 | gives unlimited permission to copy, distribute and modify it. | 1632 | gives unlimited permission to copy, distribute and modify it. | |
1633 | 1633 | |||
1634 | 1634 | |||
1635 | 1635 | |||
1636 | Copyright 1996-2020 Free Software Foundation, Inc. | 1636 | Copyright 1996-2020 Free Software Foundation, Inc. | |
1637 | 1637 | |||
1638 | This file is part of the GNU MP Library. | 1638 | This file is part of the GNU MP Library. | |
1639 | 1639 | |||
1640 | The GNU MP Library is free software; you can redistribute it and/or modify | 1640 | The GNU MP Library is free software; you can redistribute it and/or modify | |
@@ -2620,27 +2620,27 @@ fi | @@ -2620,27 +2620,27 @@ fi | |||
2620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 2620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2621 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 2621 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2622 | rm -f conftest.val | 2622 | rm -f conftest.val | |
2623 | 2623 | |||
2624 | fi | 2624 | fi | |
2625 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 2625 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2626 | as_fn_set_status $ac_retval | 2626 | as_fn_set_status $ac_retval | |
2627 | 2627 | |||
2628 | } # ac_fn_c_compute_int | 2628 | } # ac_fn_c_compute_int | |
2629 | cat >config.log <<_ACEOF | 2629 | cat >config.log <<_ACEOF | |
2630 | This file contains any messages produced by compilers while | 2630 | This file contains any messages produced by compilers while | |
2631 | running configure, to aid debugging if configure makes a mistake. | 2631 | running configure, to aid debugging if configure makes a mistake. | |
2632 | 2632 | |||
2633 | It was created by GNU MP $as_me 6.2.0, which was | 2633 | It was created by GNU MP $as_me 6.2.1, which was | |
2634 | generated by GNU Autoconf 2.69. Invocation command line was | 2634 | generated by GNU Autoconf 2.69. Invocation command line was | |
2635 | 2635 | |||
2636 | $ $0 $@ | 2636 | $ $0 $@ | |
2637 | 2637 | |||
2638 | _ACEOF | 2638 | _ACEOF | |
2639 | exec 5>>config.log | 2639 | exec 5>>config.log | |
2640 | { | 2640 | { | |
2641 | cat <<_ASUNAME | 2641 | cat <<_ASUNAME | |
2642 | ## --------- ## | 2642 | ## --------- ## | |
2643 | ## Platform. ## | 2643 | ## Platform. ## | |
2644 | ## --------- ## | 2644 | ## --------- ## | |
2645 | 2645 | |||
2646 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 2646 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
@@ -3597,27 +3597,27 @@ fi | @@ -3597,27 +3597,27 @@ fi | |||
3597 | 3597 | |||
3598 | # test whether we have cygpath | 3598 | # test whether we have cygpath | |
3599 | if test -z "$CYGPATH_W"; then | 3599 | if test -z "$CYGPATH_W"; then | |
3600 | if (cygpath --version) >/dev/null 2>/dev/null; then | 3600 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3601 | CYGPATH_W='cygpath -w' | 3601 | CYGPATH_W='cygpath -w' | |
3602 | else | 3602 | else | |
3603 | CYGPATH_W=echo | 3603 | CYGPATH_W=echo | |
3604 | fi | 3604 | fi | |
3605 | fi | 3605 | fi | |
3606 | 3606 | |||
3607 | 3607 | |||
3608 | # Define the identity of the package. | 3608 | # Define the identity of the package. | |
3609 | PACKAGE='gmp' | 3609 | PACKAGE='gmp' | |
3610 | VERSION='6.2.0' | 3610 | VERSION='6.2.1' | |
3611 | 3611 | |||
3612 | 3612 | |||
3613 | cat >>confdefs.h <<_ACEOF | 3613 | cat >>confdefs.h <<_ACEOF | |
3614 | #define PACKAGE "$PACKAGE" | 3614 | #define PACKAGE "$PACKAGE" | |
3615 | _ACEOF | 3615 | _ACEOF | |
3616 | 3616 | |||
3617 | 3617 | |||
3618 | cat >>confdefs.h <<_ACEOF | 3618 | cat >>confdefs.h <<_ACEOF | |
3619 | #define VERSION "$VERSION" | 3619 | #define VERSION "$VERSION" | |
3620 | _ACEOF | 3620 | _ACEOF | |
3621 | 3621 | |||
3622 | # Some tools Automake needs. | 3622 | # Some tools Automake needs. | |
3623 | 3623 | |||
@@ -4350,27 +4350,27 @@ echo "include_mpn(\`alpha/default.m4')" | @@ -4350,27 +4350,27 @@ echo "include_mpn(\`alpha/default.m4')" | |||
4350 | gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" | 4350 | gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" | |
4351 | ;; | 4351 | ;; | |
4352 | armcortexa12 | armcortexa17) | 4352 | armcortexa12 | armcortexa17) | |
4353 | path="arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" | 4353 | path="arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" | |
4354 | gcc_cflags_arch="-march=armv7ve -march=armv7-a" | 4354 | gcc_cflags_arch="-march=armv7ve -march=armv7-a" | |
4355 | gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" | 4355 | gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" | |
4356 | ;; | 4356 | ;; | |
4357 | armcortexa12neon | armcortexa17neon) | 4357 | armcortexa12neon | armcortexa17neon) | |
4358 | path="arm/v7a/cora17/neon arm/v7a/cora15/neon arm/neon arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" | 4358 | path="arm/v7a/cora17/neon arm/v7a/cora15/neon arm/neon arm/v7a/cora17 arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" | |
4359 | gcc_cflags_arch="-march=armv7ve -march=armv7-a" | 4359 | gcc_cflags_arch="-march=armv7ve -march=armv7-a" | |
4360 | gcc_cflags_neon="-mfpu=neon" | 4360 | gcc_cflags_neon="-mfpu=neon" | |
4361 | gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" | 4361 | gcc_cflags_tune="-mtune=cortex-a15 -mtune=cortex-a9" | |
4362 | ;; | 4362 | ;; | |
4363 | armcortexa53 | armcortexa53neon) | 4363 | armcortexa53 | armcortexa53neon | armcortexa55 | armcortexa55neon) | |
4364 | abilist="64 32" | 4364 | abilist="64 32" | |
4365 | path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm" | 4365 | path="arm/neon arm/v7a/cora9 arm/v6t2 arm/v6 arm/v5 arm" | |
4366 | path_64="arm64/cora53 arm64" | 4366 | path_64="arm64/cora53 arm64" | |
4367 | gcc_cflags_arch="-march=armv8-a" | 4367 | gcc_cflags_arch="-march=armv8-a" | |
4368 | gcc_cflags_neon="-mfpu=neon" | 4368 | gcc_cflags_neon="-mfpu=neon" | |
4369 | gcc_cflags_tune="-mtune=cortex-a53" | 4369 | gcc_cflags_tune="-mtune=cortex-a53" | |
4370 | ;; | 4370 | ;; | |
4371 | armcortexa57 | armcortexa57neon) | 4371 | armcortexa57 | armcortexa57neon) | |
4372 | abilist="64 32" | 4372 | abilist="64 32" | |
4373 | path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" | 4373 | path="arm/v7a/cora15/neon arm/neon arm/v7a/cora15 arm/v6t2 arm/v6 arm/v5 arm" | |
4374 | path_64="arm64/cora57 arm64" | 4374 | path_64="arm64/cora57 arm64" | |
4375 | gcc_cflags_arch="-march=armv8-a" | 4375 | gcc_cflags_arch="-march=armv8-a" | |
4376 | gcc_cflags_neon="-mfpu=neon" | 4376 | gcc_cflags_neon="-mfpu=neon" | |
@@ -5562,27 +5562,27 @@ echo "include_mpn(\`vax/elf.m4')" >> $gm | @@ -5562,27 +5562,27 @@ echo "include_mpn(\`vax/elf.m4')" >> $gm | |||
5562 | gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8" | 5562 | gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8" | |
5563 | gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" | 5563 | gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" | |
5564 | path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86" | 5564 | path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86" | |
5565 | path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64" | 5565 | path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64" | |
5566 | x86_have_mulx=yes | 5566 | x86_have_mulx=yes | |
5567 | ;; | 5567 | ;; | |
5568 | zen | zennoavx) | 5568 | zen | zennoavx) | |
5569 | gcc_cflags_cpu="-mtune=znver1 -mtune=amdfam10 -mtune=k8" | 5569 | gcc_cflags_cpu="-mtune=znver1 -mtune=amdfam10 -mtune=k8" | |
5570 | gcc_cflags_arch="-march=znver1 -march=amdfam10 -march=k8" | 5570 | gcc_cflags_arch="-march=znver1 -march=amdfam10 -march=k8" | |
5571 | path="x86/k7/mmx x86/k7 x86/mmx x86" | 5571 | path="x86/k7/mmx x86/k7 x86/mmx x86" | |
5572 | x86_have_mulx=yes | 5572 | x86_have_mulx=yes | |
5573 | path_64="x86_64/zen x86_64" | 5573 | path_64="x86_64/zen x86_64" | |
5574 | ;; | 5574 | ;; | |
5575 | zen2 | zen2noavx) | 5575 | zen2 | zen2noavx | zen3 | zen3noavx) | |
5576 | gcc_cflags_cpu="-mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8" | 5576 | gcc_cflags_cpu="-mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8" | |
5577 | gcc_cflags_arch="-march=znver2 -march=znver1 -march=amdfam10 -march=k8" | 5577 | gcc_cflags_arch="-march=znver2 -march=znver1 -march=amdfam10 -march=k8" | |
5578 | path="x86/k7/mmx x86/k7 x86/mmx x86" | 5578 | path="x86/k7/mmx x86/k7 x86/mmx x86" | |
5579 | x86_have_mulx=yes | 5579 | x86_have_mulx=yes | |
5580 | path_64="x86_64/zen2 x86_64/zen x86_64" | 5580 | path_64="x86_64/zen2 x86_64/zen x86_64" | |
5581 | ;; | 5581 | ;; | |
5582 | core2) | 5582 | core2) | |
5583 | gcc_cflags_cpu="-mtune=core2 -mtune=k8" | 5583 | gcc_cflags_cpu="-mtune=core2 -mtune=k8" | |
5584 | gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" | 5584 | gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" | |
5585 | path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" | 5585 | path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86" | |
5586 | path_64="x86_64/core2 x86_64" | 5586 | path_64="x86_64/core2 x86_64" | |
5587 | ;; | 5587 | ;; | |
5588 | corei | coreinhm | coreiwsm | nehalem | westmere) | 5588 | corei | coreinhm | coreiwsm | nehalem | westmere) | |
@@ -5686,27 +5686,27 @@ echo "define( | @@ -5686,27 +5686,27 @@ echo "define( | | ||
5686 | any_x32_testlist="sizeof-long-4" | 5686 | any_x32_testlist="sizeof-long-4" | |
5687 | 5687 | |||
5688 | abilist="64 x32 32" | 5688 | abilist="64 x32 32" | |
5689 | if test "$enable_assembly" = "yes" ; then | 5689 | if test "$enable_assembly" = "yes" ; then | |
5690 | extra_functions_64="$extra_functions_64 invert_limb_table" | 5690 | extra_functions_64="$extra_functions_64 invert_limb_table" | |
5691 | extra_functions_x32=$extra_functions_64 | 5691 | extra_functions_x32=$extra_functions_64 | |
5692 | fi | 5692 | fi | |
5693 | 5693 | |||
5694 | case $host in | 5694 | case $host in | |
5695 | *-*-solaris*) | 5695 | *-*-solaris*) | |
5696 | # Sun cc. | 5696 | # Sun cc. | |
5697 | cc_64_cflags="-xO3 -m64" | 5697 | cc_64_cflags="-xO3 -m64" | |
5698 | ;; | 5698 | ;; | |
5699 | *-*-mingw* | *-*-cygwin) | 5699 | *-*-mingw* | *-*-msys | *-*-cygwin) | |
5700 | limb_64=longlong | 5700 | limb_64=longlong | |
5701 | CALLING_CONVENTIONS_OBJS_64="" | 5701 | CALLING_CONVENTIONS_OBJS_64="" | |
5702 | 5702 | |||
5703 | $as_echo "#define HOST_DOS64 1" >>confdefs.h | 5703 | $as_echo "#define HOST_DOS64 1" >>confdefs.h | |
5704 | 5704 | |||
5705 | GMP_NONSTD_ABI_64=DOS64 | 5705 | GMP_NONSTD_ABI_64=DOS64 | |
5706 | ;; | 5706 | ;; | |
5707 | esac | 5707 | esac | |
5708 | ;; | 5708 | ;; | |
5709 | esac | 5709 | esac | |
5710 | ;; | 5710 | ;; | |
5711 | 5711 | |||
5712 | 5712 | |||
@@ -5715,27 +5715,27 @@ $as_echo "#define HOST_DOS64 1" >>confde | @@ -5715,27 +5715,27 @@ $as_echo "#define HOST_DOS64 1" >>confde | |||
5715 | enable_assembly=no | 5715 | enable_assembly=no | |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5 | 5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&5 | |
5717 | $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;} | 5717 | $as_echo "$as_me: WARNING: the \"none\" host is obsolete, use --disable-assembly" >&2;} | |
5718 | ;; | 5718 | ;; | |
5719 | 5719 | |||
5720 | esac | 5720 | esac | |
5721 | 5721 | |||
5722 | # mingw can be built by the cygwin gcc if -mno-cygwin is added. For | 5722 | # mingw can be built by the cygwin gcc if -mno-cygwin is added. For | |
5723 | # convenience add this automatically if it works. Actual mingw gcc accepts | 5723 | # convenience add this automatically if it works. Actual mingw gcc accepts | |
5724 | # -mno-cygwin too, but of course is the default. mingw only runs on the | 5724 | # -mno-cygwin too, but of course is the default. mingw only runs on the | |
5725 | # x86s, but allow any CPU here so as to catch "none" too. | 5725 | # x86s, but allow any CPU here so as to catch "none" too. | |
5726 | # | 5726 | # | |
5727 | case $host in | 5727 | case $host in | |
5728 | *-*-mingw*) | 5728 | *-*-mingw* | *-*-msys) | |
5729 | gcc_cflags_optlist="$gcc_cflags_optlist nocygwin" | 5729 | gcc_cflags_optlist="$gcc_cflags_optlist nocygwin" | |
5730 | gcc_cflags_nocygwin="-mno-cygwin" | 5730 | gcc_cflags_nocygwin="-mno-cygwin" | |
5731 | ;; | 5731 | ;; | |
5732 | esac | 5732 | esac | |
5733 | 5733 | |||
5734 | 5734 | |||
5735 | CFLAGS_or_unset=${CFLAGS-'(unset)'} | 5735 | CFLAGS_or_unset=${CFLAGS-'(unset)'} | |
5736 | CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} | 5736 | CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} | |
5737 | 5737 | |||
5738 | cat >&5 <<EOF | 5738 | cat >&5 <<EOF | |
5739 | User: | 5739 | User: | |
5740 | ABI=$ABI | 5740 | ABI=$ABI | |
5741 | CC=$CC | 5741 | CC=$CC | |
@@ -7288,31 +7288,32 @@ case $host in | @@ -7288,31 +7288,32 @@ case $host in | |||
7288 | fat_functions="add_n addmul_1 bdiv_dbm1c com cnd_add_n cnd_sub_n | 7288 | fat_functions="add_n addmul_1 bdiv_dbm1c com cnd_add_n cnd_sub_n | |
7289 | copyd copyi dive_1 divrem_1 | 7289 | copyd copyi dive_1 divrem_1 | |
7290 | gcd_11 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2 | 7290 | gcd_11 lshift lshiftc mod_1 mod_1_1 mod_1_1_cps mod_1_2 | |
7291 | mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1 | 7291 | mod_1_2_cps mod_1_4 mod_1_4_cps mod_34lsub1 mode1o mul_1 | |
7292 | mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1 | 7292 | mul_basecase mullo_basecase pre_divrem_1 pre_mod_1 redc_1 | |
7293 | redc_2 rshift sqr_basecase sub_n submul_1" | 7293 | redc_2 rshift sqr_basecase sub_n submul_1" | |
7294 | 7294 | |||
7295 | if test "$abi" = 32; then | 7295 | if test "$abi" = 32; then | |
7296 | extra_functions="$extra_functions fat fat_entry" | 7296 | extra_functions="$extra_functions fat fat_entry" | |
7297 | path="x86/fat x86" | 7297 | path="x86/fat x86" | |
7298 | fat_path="x86 x86/fat x86/i486 | 7298 | fat_path="x86 x86/fat x86/i486 | |
7299 | x86/k6 x86/k6/mmx x86/k6/k62mmx | 7299 | x86/k6 x86/k6/mmx x86/k6/k62mmx | |
7300 | x86/k7 x86/k7/mmx | 7300 | x86/k7 x86/k7/mmx | |
7301 | x86/k8 x86/k10 x86/bt1 | 7301 | x86/k8 x86/k10 x86/bt1 x86/bd1 | |
7302 | x86/pentium x86/pentium/mmx | 7302 | x86/pentium x86/pentium/mmx | |
7303 | x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2 | 7303 | x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2 | |
7304 | x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2 | 7304 | x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2 | |
7305 | x86/core2 x86/coreinhm x86/coreisbr | 7305 | x86/core2 x86/coreinhm x86/coreisbr | |
7306 | x86/goldmont x86/silvermont | |||
7306 | x86/atom x86/atom/mmx x86/atom/sse2 x86/nano" | 7307 | x86/atom x86/atom/mmx x86/atom/sse2 x86/nano" | |
7307 | fi | 7308 | fi | |
7308 | 7309 | |||
7309 | if test "$abi" = 64; then | 7310 | if test "$abi" = 64; then | |
7310 | gcc_64_cflags="" | 7311 | gcc_64_cflags="" | |
7311 | extra_functions_64="$extra_functions_64 fat fat_entry" | 7312 | extra_functions_64="$extra_functions_64 fat fat_entry" | |
7312 | path_64="x86_64/fat x86_64" | 7313 | path_64="x86_64/fat x86_64" | |
7313 | fat_path="x86_64 x86_64/fat | 7314 | fat_path="x86_64 x86_64/fat | |
7314 | x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bt1 x86_64/bt2 x86_64/zen | 7315 | x86_64/k8 x86_64/k10 x86_64/bd1 x86_64/bt1 x86_64/bt2 x86_64/zen | |
7315 | x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr | 7316 | x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr | |
7316 | x86_64/coreihwl x86_64/coreibwl x86_64/skylake x86_64/atom | 7317 | x86_64/coreihwl x86_64/coreibwl x86_64/skylake x86_64/atom | |
7317 | x86_64/silvermont x86_64/goldmont x86_64/nano" | 7318 | x86_64/silvermont x86_64/goldmont x86_64/nano" | |
7318 | fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n" | 7319 | fat_functions="$fat_functions addmul_2 addlsh1_n addlsh2_n sublsh1_n" | |
@@ -12103,27 +12104,27 @@ test -z "$DLLTOOL" && DLLTOOL=dlltool | @@ -12103,27 +12104,27 @@ test -z "$DLLTOOL" && DLLTOOL=dlltool | |||
12103 | 12104 | |||
12104 | test -z "$OBJDUMP" && OBJDUMP=objdump | 12105 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
12105 | 12106 | |||
12106 | 12107 | |||
12107 | 12108 | |||
12108 | 12109 | |||
12109 | 12110 | |||
12110 | 12111 | |||
12111 | 12112 | |||
12112 | 12113 | |||
12113 | LIBGMP_DLL=0 | 12114 | LIBGMP_DLL=0 | |
12114 | 12115 | |||
12115 | case $host in | 12116 | case $host in | |
12116 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) | 12117 | *-*-cygwin* | *-*-mingw* | *-*-msys | *-*-pw32* | *-*-os2*) | |
12117 | # By default, build only static. | 12118 | # By default, build only static. | |
12118 | if test -z "$enable_shared"; then | 12119 | if test -z "$enable_shared"; then | |
12119 | enable_shared=no | 12120 | enable_shared=no | |
12120 | fi | 12121 | fi | |
12121 | # Don't allow both static and DLL. | 12122 | # Don't allow both static and DLL. | |
12122 | if test "$enable_shared" != no && test "$enable_static" != no; then | 12123 | if test "$enable_shared" != no && test "$enable_static" != no; then | |
12123 | as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each. | 12124 | as_fn_error $? "cannot build both static and DLL, since gmp.h is different for each. | |
12124 | Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5 | 12125 | Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5 | |
12125 | fi | 12126 | fi | |
12126 | 12127 | |||
12127 | # "-no-undefined" is required when building a DLL, see documentation on | 12128 | # "-no-undefined" is required when building a DLL, see documentation on | |
12128 | # AC_LIBTOOL_WIN32_DLL. | 12129 | # AC_LIBTOOL_WIN32_DLL. | |
12129 | # | 12130 | # | |
@@ -26216,26 +26217,38 @@ $as_echo "$gmp_cv_asm_align_log" >&6; } | @@ -26216,26 +26217,38 @@ $as_echo "$gmp_cv_asm_align_log" >&6; } | |||
26216 | 26217 | |||
26217 | 26218 | |||
26218 | echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4 | 26219 | echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4 | |
26219 | 26220 | |||
26220 | 26221 | |||
26221 | 26222 | |||
26222 | case $host in | 26223 | case $host in | |
26223 | arm*-*-* | aarch64*-*-*) | 26224 | arm*-*-* | aarch64*-*-*) | |
26224 | case $ABI in | 26225 | case $ABI in | |
26225 | 32) | 26226 | 32) | |
26226 | 26227 | |||
26227 | echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i | 26228 | echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i | |
26228 | ;; | 26229 | ;; | |
26230 | 64) | |||
26231 | case $host in | |||
26232 | *-*-darwin*) | |||
26233 | ||||
26234 | echo "include_mpn(\`arm64/darwin.m4')" >> $gmp_tmpconfigm4i | |||
26235 | ;; | |||
26236 | *) | |||
26237 | ||||
26238 | echo "include_mpn(\`arm64/arm64-defs.m4')" >> $gmp_tmpconfigm4i | |||
26239 | ;; | |||
26240 | esac | |||
26241 | ;; | |||
26229 | esac | 26242 | esac | |
26230 | ;; | 26243 | ;; | |
26231 | hppa*-*-*) | 26244 | hppa*-*-*) | |
26232 | # for both pa32 and pa64 | 26245 | # for both pa32 and pa64 | |
26233 | 26246 | |||
26234 | echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i | 26247 | echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i | |
26235 | 26248 | |||
26236 | ;; | 26249 | ;; | |
26237 | ia64*-*-* | itanium-*-* | itanium2-*-*) | 26250 | ia64*-*-* | itanium-*-* | itanium2-*-*) | |
26238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5 | 26251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5 | |
26239 | $as_echo_n "checking whether assembler .align padding is good... " >&6; } | 26252 | $as_echo_n "checking whether assembler .align padding is good... " >&6; } | |
26240 | if ${gmp_cv_asm_ia64_align_ok+:} false; then : | 26253 | if ${gmp_cv_asm_ia64_align_ok+:} false; then : | |
26241 | $as_echo_n "(cached) " >&6 | 26254 | $as_echo_n "(cached) " >&6 | |
@@ -26899,33 +26912,26 @@ $as_echo "$as_me: WARNING: | assembled b | @@ -26899,33 +26912,26 @@ $as_echo "$as_me: WARNING: | assembled b | |||
26899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 | 26912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 | |
26900 | $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} | 26913 | $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} | |
26901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5 | 26914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Older x86 instructions will be used." >&5 | |
26902 | $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;} | 26915 | $as_echo "$as_me: WARNING: | Older x86 instructions will be used." >&2;} | |
26903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 | 26916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 | |
26904 | $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} | 26917 | $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} | |
26905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 | 26918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 | |
26906 | $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} | 26919 | $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} | |
26907 | : | 26920 | : | |
26908 | ;; | 26921 | ;; | |
26909 | esac | 26922 | esac | |
26910 | 26923 | |||
26911 | fi | 26924 | fi | |
26912 | case $ABI in | |||
26913 | 32) | |||
26914 | ||||
26915 | echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i | |||
26916 | ||||
26917 | $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h | |||
26918 | ||||
26919 | 26925 | |||
26920 | 26926 | |||
26921 | 26927 | |||
26922 | 26928 | |||
26923 | 26929 | |||
26924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5 | 26930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5 | |
26925 | $as_echo_n "checking for assembler COFF type directives... " >&6; } | 26931 | $as_echo_n "checking for assembler COFF type directives... " >&6; } | |
26926 | if ${gmp_cv_asm_x86_coff_type+:} false; then : | 26932 | if ${gmp_cv_asm_x86_coff_type+:} false; then : | |
26927 | $as_echo_n "(cached) " >&6 | 26933 | $as_echo_n "(cached) " >&6 | |
26928 | else | 26934 | else | |
26929 | cat >conftest.s <<EOF | 26935 | cat >conftest.s <<EOF | |
26930 | $gmp_cv_asm_text | 26936 | $gmp_cv_asm_text | |
26931 | $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr | 26937 | $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr | |
@@ -26948,26 +26954,33 @@ else | @@ -26948,26 +26954,33 @@ else | |||
26948 | cat conftest.out >&5 | 26954 | cat conftest.out >&5 | |
26949 | echo "configure: failed program was:" >&5 | 26955 | echo "configure: failed program was:" >&5 | |
26950 | cat conftest.s >&5 | 26956 | cat conftest.s >&5 | |
26951 | gmp_cv_asm_x86_coff_type=no | 26957 | gmp_cv_asm_x86_coff_type=no | |
26952 | fi | 26958 | fi | |
26953 | rm -f conftest* | 26959 | rm -f conftest* | |
26954 | 26960 | |||
26955 | 26961 | |||
26956 | fi | 26962 | fi | |
26957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5 | 26963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5 | |
26958 | $as_echo "$gmp_cv_asm_x86_coff_type" >&6; } | 26964 | $as_echo "$gmp_cv_asm_x86_coff_type" >&6; } | |
26959 | echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4 | 26965 | echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4 | |
26960 | 26966 | |||
26967 | case $ABI in | |||
26968 | 32) | |||
26969 | ||||
26970 | echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i | |||
26971 | ||||
26972 | $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h | |||
26973 | ||||
26961 | 26974 | |||
26962 | 26975 | |||
26963 | 26976 | |||
26964 | 26977 | |||
26965 | 26978 | |||
26966 | 26979 | |||
26967 | 26980 | |||
26968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5 | 26981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5 | |
26969 | $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; } | 26982 | $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; } | |
26970 | if ${gmp_cv_asm_x86_got_underscore+:} false; then : | 26983 | if ${gmp_cv_asm_x86_got_underscore+:} false; then : | |
26971 | $as_echo_n "(cached) " >&6 | 26984 | $as_echo_n "(cached) " >&6 | |
26972 | else | 26985 | else | |
26973 | gmp_cv_asm_x86_got_underscore="not applicable" | 26986 | gmp_cv_asm_x86_got_underscore="not applicable" | |
@@ -27165,27 +27178,27 @@ echo "include_mpn(\`x86/darwin.m4')" >> | @@ -27165,27 +27178,27 @@ echo "include_mpn(\`x86/darwin.m4')" >> | |||
27165 | esac | 27178 | esac | |
27166 | ;; | 27179 | ;; | |
27167 | 64|x32) | 27180 | 64|x32) | |
27168 | 27181 | |||
27169 | echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i | 27182 | echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i | |
27170 | 27183 | |||
27171 | $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h | 27184 | $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h | |
27172 | 27185 | |||
27173 | case $host in | 27186 | case $host in | |
27174 | *-*-darwin*) | 27187 | *-*-darwin*) | |
27175 | 27188 | |||
27176 | echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i | 27189 | echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i | |
27177 | ;; | 27190 | ;; | |
27178 | *-*-mingw* | *-*-cygwin) | 27191 | *-*-mingw* | *-*-msys | *-*-cygwin) | |
27179 | 27192 | |||
27180 | echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i | 27193 | echo "include_mpn(\`x86_64/dos64.m4')" >> $gmp_tmpconfigm4i | |
27181 | ;; | 27194 | ;; | |
27182 | *-openbsd*) | 27195 | *-openbsd*) | |
27183 | 27196 | |||
27184 | echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4 | 27197 | echo "define(<OPENBSD>,1)" >> $gmp_tmpconfigm4 | |
27185 | ;; | 27198 | ;; | |
27186 | *-linux*) | 27199 | *-linux*) | |
27187 | 27200 | |||
27188 | echo "define(<LINUX>,1)" >> $gmp_tmpconfigm4 | 27201 | echo "define(<LINUX>,1)" >> $gmp_tmpconfigm4 | |
27189 | ;; | 27202 | ;; | |
27190 | esac | 27203 | esac | |
27191 | ;; | 27204 | ;; | |
@@ -28509,27 +28522,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr | @@ -28509,27 +28522,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr | |||
28509 | 28522 | |||
28510 | exec 6>&1 | 28523 | exec 6>&1 | |
28511 | ## ----------------------------------- ## | 28524 | ## ----------------------------------- ## | |
28512 | ## Main body of $CONFIG_STATUS script. ## | 28525 | ## Main body of $CONFIG_STATUS script. ## | |
28513 | ## ----------------------------------- ## | 28526 | ## ----------------------------------- ## | |
28514 | _ASEOF | 28527 | _ASEOF | |
28515 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 28528 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
28516 | 28529 | |||
28517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 28530 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
28518 | # Save the log message, to keep $0 and so on meaningful, and to | 28531 | # Save the log message, to keep $0 and so on meaningful, and to | |
28519 | # report actual input values of CONFIG_FILES etc. instead of their | 28532 | # report actual input values of CONFIG_FILES etc. instead of their | |
28520 | # values after options handling. | 28533 | # values after options handling. | |
28521 | ac_log=" | 28534 | ac_log=" | |
28522 | This file was extended by GNU MP $as_me 6.2.0, which was | 28535 | This file was extended by GNU MP $as_me 6.2.1, which was | |
28523 | generated by GNU Autoconf 2.69. Invocation command line was | 28536 | generated by GNU Autoconf 2.69. Invocation command line was | |
28524 | 28537 | |||
28525 | CONFIG_FILES = $CONFIG_FILES | 28538 | CONFIG_FILES = $CONFIG_FILES | |
28526 | CONFIG_HEADERS = $CONFIG_HEADERS | 28539 | CONFIG_HEADERS = $CONFIG_HEADERS | |
28527 | CONFIG_LINKS = $CONFIG_LINKS | 28540 | CONFIG_LINKS = $CONFIG_LINKS | |
28528 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 28541 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
28529 | $ $0 $@ | 28542 | $ $0 $@ | |
28530 | 28543 | |||
28531 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 28544 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
28532 | " | 28545 | " | |
28533 | 28546 | |||
28534 | _ACEOF | 28547 | _ACEOF | |
28535 | 28548 | |||
@@ -28581,27 +28594,27 @@ Configuration links: | @@ -28581,27 +28594,27 @@ Configuration links: | |||
28581 | $config_links | 28594 | $config_links | |
28582 | 28595 | |||
28583 | Configuration commands: | 28596 | Configuration commands: | |
28584 | $config_commands | 28597 | $config_commands | |
28585 | 28598 | |||
28586 | Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. | 28599 | Report bugs to <gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html>. | |
28587 | GNU MP home page: <http://www.gnu.org/software/gmp/>. | 28600 | GNU MP home page: <http://www.gnu.org/software/gmp/>. | |
28588 | General help using GNU software: <http://www.gnu.org/gethelp/>." | 28601 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
28589 | 28602 | |||
28590 | _ACEOF | 28603 | _ACEOF | |
28591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 28604 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28592 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 28605 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
28593 | ac_cs_version="\\ | 28606 | ac_cs_version="\\ | |
28594 | GNU MP config.status 6.2.0 | 28607 | GNU MP config.status 6.2.1 | |
28595 | configured by $0, generated by GNU Autoconf 2.69, | 28608 | configured by $0, generated by GNU Autoconf 2.69, | |
28596 | with options \\"\$ac_cs_config\\" | 28609 | with options \\"\$ac_cs_config\\" | |
28597 | 28610 | |||
28598 | Copyright (C) 2012 Free Software Foundation, Inc. | 28611 | Copyright (C) 2012 Free Software Foundation, Inc. | |
28599 | This config.status script is free software; the Free Software Foundation | 28612 | This config.status script is free software; the Free Software Foundation | |
28600 | gives unlimited permission to copy, distribute and modify it." | 28613 | gives unlimited permission to copy, distribute and modify it." | |
28601 | 28614 | |||
28602 | ac_pwd='$ac_pwd' | 28615 | ac_pwd='$ac_pwd' | |
28603 | srcdir='$srcdir' | 28616 | srcdir='$srcdir' | |
28604 | INSTALL='$INSTALL' | 28617 | INSTALL='$INSTALL' | |
28605 | MKDIR_P='$MKDIR_P' | 28618 | MKDIR_P='$MKDIR_P' | |
28606 | AWK='$AWK' | 28619 | AWK='$AWK' | |
28607 | test -n "\$AWK" || AWK=awk | 28620 | test -n "\$AWK" || AWK=awk |
--- src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c 2020/09/27 00:30:26 1.4
+++ src/external/lgpl3/gmp/dist/mpn/generic/mod_1_1.c 2021/07/11 21:15:46 1.5
@@ -246,27 +246,27 @@ mpn_mod_1_1p_cps (mp_limb_t cps[4], mp_l | @@ -246,27 +246,27 @@ mpn_mod_1_1p_cps (mp_limb_t cps[4], mp_l | |||
246 | invert_limb (bi, b); | 246 | invert_limb (bi, b); | |
247 | 247 | |||
248 | cps[0] = bi; | 248 | cps[0] = bi; | |
249 | cps[1] = cnt; | 249 | cps[1] = cnt; | |
250 | 250 | |||
251 | if (LIKELY (cnt != 0)) | 251 | if (LIKELY (cnt != 0)) | |
252 | { | 252 | { | |
253 | mp_limb_t B1modb = -b; | 253 | mp_limb_t B1modb = -b; | |
254 | B1modb *= ((bi >> (GMP_LIMB_BITS-cnt)) | (CNST_LIMB(1) << cnt)); | 254 | B1modb *= ((bi >> (GMP_LIMB_BITS-cnt)) | (CNST_LIMB(1) << cnt)); | |
255 | ASSERT (B1modb <= b); /* NB: not fully reduced mod b */ | 255 | ASSERT (B1modb <= b); /* NB: not fully reduced mod b */ | |
256 | cps[2] = B1modb >> cnt; | 256 | cps[2] = B1modb >> cnt; | |
257 | } | 257 | } | |
258 | B2modb = - b * bi; | 258 | B2modb = - b * bi; | |
259 | ASSERT (B2modb <= b); // NB: equality iff b = B/2 | 259 | ASSERT (B2modb <= b); /* NB: equality iff b = B/2 */ | |
260 | cps[3] = B2modb; | 260 | cps[3] = B2modb; | |
261 | } | 261 | } | |
262 | 262 | |||
263 | mp_limb_t | 263 | mp_limb_t | |
264 | mpn_mod_1_1p (mp_srcptr ap, mp_size_t n, mp_limb_t b, const mp_limb_t bmodb[4]) | 264 | mpn_mod_1_1p (mp_srcptr ap, mp_size_t n, mp_limb_t b, const mp_limb_t bmodb[4]) | |
265 | { | 265 | { | |
266 | int cnt; | 266 | int cnt; | |
267 | mp_limb_t bi, B1modb; | 267 | mp_limb_t bi, B1modb; | |
268 | mp_limb_t r0, r1; | 268 | mp_limb_t r0, r1; | |
269 | mp_limb_t r; | 269 | mp_limb_t r; | |
270 | 270 | |||
271 | ASSERT (n >= 2); /* fix tuneup.c if this is changed */ | 271 | ASSERT (n >= 2); /* fix tuneup.c if this is changed */ | |
272 | 272 |