aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-aux/config.sub62
-rw-r--r--lib/gnulib.mk.in4
-rw-r--r--lib/regcomp.c27
-rw-r--r--lib/verify.h3
4 files changed, 49 insertions, 47 deletions
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 52eb02e29a2..97d38aa6ec8 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -569,12 +569,14 @@ case $basic_machine in
569 1750a | 580 \ 569 1750a | 580 \
570 | a29k \ 570 | a29k \
571 | aarch64 | aarch64_be \ 571 | aarch64 | aarch64_be \
572 | abacus \
572 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 573 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
573 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 574 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
574 | am33_2.0 \ 575 | am33_2.0 \
575 | arc | arceb \ 576 | arc | arceb \
576 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \ 577 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
577 | avr | avr32 \ 578 | avr | avr32 \
579 | asmjs \
578 | ba \ 580 | ba \
579 | be32 | be64 \ 581 | be32 | be64 \
580 | bfin \ 582 | bfin \
@@ -628,7 +630,7 @@ case $basic_machine in
628 | riscv | riscv32 | riscv64 \ 630 | riscv | riscv32 | riscv64 \
629 | rl78 | rx \ 631 | rl78 | rx \
630 | score \ 632 | score \
631 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 633 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh[23]ele \
632 | sh64 | sh64le \ 634 | sh64 | sh64le \
633 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 635 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
634 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 636 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
@@ -654,15 +656,18 @@ case $basic_machine in
654 leon|leon[3-9]) 656 leon|leon[3-9])
655 basic_machine=sparc-$basic_machine 657 basic_machine=sparc-$basic_machine
656 ;; 658 ;;
659 m6811-* | m68hc11-* | m6812-* | m68hc12-* | m68hcs12x-* | nvptx-* | picochip-*)
660 ;;
657 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) 661 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
658 basic_machine=$basic_machine-unknown 662 basic_machine=$basic_machine-unknown
659 os=${os:-none}
660 ;; 663 ;;
661 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) 664 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
662 ;; 665 ;;
663 m9s12z | m68hcs12z | hcs12z | s12z) 666 m9s12z | m68hcs12z | hcs12z | s12z)
664 basic_machine=s12z-unknown 667 basic_machine=s12z-unknown
665 os=${os:-none} 668 ;;
669 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
670 basic_machine=s12z-`echo "$basic_machine" | sed 's/^[^-]*-//'`
666 ;; 671 ;;
667 ms1) 672 ms1)
668 basic_machine=mt-unknown 673 basic_machine=mt-unknown
@@ -672,7 +677,8 @@ case $basic_machine in
672 ;; 677 ;;
673 xgate) 678 xgate)
674 basic_machine=$basic_machine-unknown 679 basic_machine=$basic_machine-unknown
675 os=${os:-none} 680 ;;
681 xgate-*)
676 ;; 682 ;;
677 xscaleeb) 683 xscaleeb)
678 basic_machine=armeb-unknown 684 basic_machine=armeb-unknown
@@ -689,22 +695,26 @@ case $basic_machine in
689 basic_machine=$basic_machine-pc 695 basic_machine=$basic_machine-pc
690 ;; 696 ;;
691 # Recognize the basic CPU types with company name. 697 # Recognize the basic CPU types with company name.
692 580-* \ 698 1750a-* | 580-* \
693 | a29k-* \ 699 | a29k-* \
694 | aarch64-* | aarch64_be-* \ 700 | aarch64-* | aarch64_be-* \
701 | abacus-* \
695 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 702 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
696 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 703 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
697 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ 704 | alphapca5[67]-* | alpha64pca5[67]-* \
698 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 705 | am33_2.0-* \
706 | arc-* | arceb-* \
707 | arm-* | arm[lb]e-* | arme[lb]-* | armv*-* \
699 | avr-* | avr32-* \ 708 | avr-* | avr32-* \
709 | asmjs-* \
700 | ba-* \ 710 | ba-* \
701 | be32-* | be64-* \ 711 | be32-* | be64-* \
702 | bfin-* | bs2000-* \ 712 | bfin-* | bs2000-* \
703 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 713 | c[123]* | c30-* | [cjt]90-* | c4x-* \
704 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \ 714 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
705 | d10v-* | d30v-* | dlx-* \ 715 | d10v-* | d30v-* | dlx-* | dsp16xx-* \
706 | e2k-* | elxsi-* \ 716 | e2k-* | elxsi-* | epiphany-* \
707 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 717 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | ft32-* | fx80-* \
708 | h8300-* | h8500-* \ 718 | h8300-* | h8500-* \
709 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 719 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
710 | hexagon-* \ 720 | hexagon-* \
@@ -714,8 +724,8 @@ case $basic_machine in
714 | le32-* | le64-* \ 724 | le32-* | le64-* \
715 | lm32-* \ 725 | lm32-* \
716 | m32c-* | m32r-* | m32rle-* \ 726 | m32c-* | m32r-* | m32rle-* \
717 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 727 | m5200-* | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* | v70-* | w65-* \
718 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 728 | m88110-* | m88k-* | maxq-* | mb-* | mcore-* | mep-* | metag-* \
719 | microblaze-* | microblazeel-* \ 729 | microblaze-* | microblazeel-* \
720 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 730 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
721 | mips16-* \ 731 | mips16-* \
@@ -739,6 +749,7 @@ case $basic_machine in
739 | mipsr5900-* | mipsr5900el-* \ 749 | mipsr5900-* | mipsr5900el-* \
740 | mipstx39-* | mipstx39el-* \ 750 | mipstx39-* | mipstx39el-* \
741 | mmix-* \ 751 | mmix-* \
752 | mn10200-* | mn10300-* \
742 | moxie-* \ 753 | moxie-* \
743 | mt-* \ 754 | mt-* \
744 | msp430-* \ 755 | msp430-* \
@@ -748,6 +759,7 @@ case $basic_machine in
748 | none-* | np1-* | ns16k-* | ns32k-* \ 759 | none-* | np1-* | ns16k-* | ns32k-* \
749 | open8-* \ 760 | open8-* \
750 | or1k*-* \ 761 | or1k*-* \
762 | or32-* \
751 | orion-* \ 763 | orion-* \
752 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 764 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
753 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 765 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
@@ -755,14 +767,15 @@ case $basic_machine in
755 | pyramid-* \ 767 | pyramid-* \
756 | riscv-* | riscv32-* | riscv64-* \ 768 | riscv-* | riscv32-* | riscv64-* \
757 | rl78-* | romp-* | rs6000-* | rx-* \ 769 | rl78-* | romp-* | rs6000-* | rx-* \
758 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 770 | score-* \
759 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 771 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]ae[lb]-* | sh[23]e-* | she[lb]-* | sh[lb]e-* \
772 | sh[1234]e[lb]-* | sh[12345][lb]e-* | sh[23]ele-* | sh64-* | sh64le-* \
760 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 773 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
761 | sparclite-* \ 774 | sparclite-* \
762 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ 775 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
776 | spu-* \
763 | tahoe-* \ 777 | tahoe-* \
764 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 778 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
765 | tile*-* \
766 | tron-* \ 779 | tron-* \
767 | ubicom32-* \ 780 | ubicom32-* \
768 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 781 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
@@ -787,9 +800,6 @@ case $basic_machine in
787 3b*) 800 3b*)
788 basic_machine=we32k-att 801 basic_machine=we32k-att
789 ;; 802 ;;
790 abacus)
791 basic_machine=abacus-unknown
792 ;;
793 alliant | fx80) 803 alliant | fx80)
794 basic_machine=fx80-alliant 804 basic_machine=fx80-alliant
795 ;; 805 ;;
@@ -805,9 +815,6 @@ case $basic_machine in
805 amiga | amiga-*) 815 amiga | amiga-*)
806 basic_machine=m68k-unknown 816 basic_machine=m68k-unknown
807 ;; 817 ;;
808 asmjs)
809 basic_machine=asmjs-unknown
810 ;;
811 blackfin-*) 818 blackfin-*)
812 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` 819 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
813 os=linux 820 os=linux
@@ -1154,6 +1161,9 @@ case $basic_machine in
1154 sh5el) 1161 sh5el)
1155 basic_machine=sh5le-unknown 1162 basic_machine=sh5le-unknown
1156 ;; 1163 ;;
1164 sh5el-*)
1165 basic_machine=sh5le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1166 ;;
1157 simso-wrs) 1167 simso-wrs)
1158 basic_machine=sparclite-wrs 1168 basic_machine=sparclite-wrs
1159 os=vxworks 1169 os=vxworks
@@ -1179,9 +1189,11 @@ case $basic_machine in
1179 sun386 | sun386i | roadrunner) 1189 sun386 | sun386i | roadrunner)
1180 basic_machine=i386-sun 1190 basic_machine=i386-sun
1181 ;; 1191 ;;
1192 tile*-*)
1193 ;;
1182 tile*) 1194 tile*)
1183 basic_machine=$basic_machine-unknown 1195 basic_machine=$basic_machine-unknown
1184 os=linux-gnu 1196 os=${os:-linux-gnu}
1185 ;; 1197 ;;
1186 tx39) 1198 tx39)
1187 basic_machine=mipstx39-unknown 1199 basic_machine=mipstx39-unknown
@@ -1214,7 +1226,6 @@ case $basic_machine in
1214 ;; 1226 ;;
1215 none) 1227 none)
1216 basic_machine=none-none 1228 basic_machine=none-none
1217 os=${os:-none}
1218 ;; 1229 ;;
1219 1230
1220# Here we handle the default manufacturer of certain CPU types. It is in 1231# Here we handle the default manufacturer of certain CPU types. It is in
@@ -1246,9 +1257,6 @@ case $basic_machine in
1246 we32k) 1257 we32k)
1247 basic_machine=we32k-att 1258 basic_machine=we32k-att
1248 ;; 1259 ;;
1249 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1250 basic_machine=sh-unknown
1251 ;;
1252 cydra) 1260 cydra)
1253 basic_machine=cydra-cydrome 1261 basic_machine=cydra-cydrome
1254 ;; 1262 ;;
@@ -1354,7 +1362,7 @@ case $os in
1354 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ 1362 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1355 | aos* | aros* | cloudabi* | sortix* \ 1363 | aos* | aros* | cloudabi* | sortix* \
1356 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ 1364 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1357 | clix* | riscos* | uniplus* | iris* | rtu* | xenix* \ 1365 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1358 | knetbsd* | mirbsd* | netbsd* \ 1366 | knetbsd* | mirbsd* | netbsd* \
1359 | bitrig* | openbsd* | solidbsd* | libertybsd* \ 1367 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1360 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \ 1368 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index 7ad390875b0..666105b74bb 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -238,6 +238,8 @@ GL_GENERATE_STDALIGN_H = @GL_GENERATE_STDALIGN_H@
238GL_GENERATE_STDDEF_H = @GL_GENERATE_STDDEF_H@ 238GL_GENERATE_STDDEF_H = @GL_GENERATE_STDDEF_H@
239GL_GENERATE_STDINT_H = @GL_GENERATE_STDINT_H@ 239GL_GENERATE_STDINT_H = @GL_GENERATE_STDINT_H@
240GMALLOC_OBJ = @GMALLOC_OBJ@ 240GMALLOC_OBJ = @GMALLOC_OBJ@
241GMP_LIB = @GMP_LIB@
242GMP_OBJ = @GMP_OBJ@
241GNULIB_ALPHASORT = @GNULIB_ALPHASORT@ 243GNULIB_ALPHASORT = @GNULIB_ALPHASORT@
242GNULIB_ATOLL = @GNULIB_ATOLL@ 244GNULIB_ATOLL = @GNULIB_ATOLL@
243GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ 245GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@
@@ -1720,7 +1722,7 @@ BUILT_SOURCES += $(GETOPT_H) $(GETOPT_CDEFS_H)
1720 1722
1721# We need the following in order to create <getopt.h> when the system 1723# We need the following in order to create <getopt.h> when the system
1722# doesn't have one that works with the given compiler. 1724# doesn't have one that works with the given compiler.
1723getopt.h: getopt.in.h $(top_builddir)/config.status 1725getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
1724 $(AM_V_GEN)rm -f $@-t $@ && \ 1726 $(AM_V_GEN)rm -f $@-t $@ && \
1725 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 1727 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1726 sed -e 's|@''GUARD_PREFIX''@|GL|g' \ 1728 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
diff --git a/lib/regcomp.c b/lib/regcomp.c
index 53eb2263740..0e4816c89c2 100644
--- a/lib/regcomp.c
+++ b/lib/regcomp.c
@@ -2684,15 +2684,14 @@ parse_dup_op (bin_tree_t *elem, re_string_t *regexp, re_dfa_t *dfa,
2684 2684
2685# ifdef RE_ENABLE_I18N 2685# ifdef RE_ENABLE_I18N
2686/* Convert the byte B to the corresponding wide character. In a 2686/* Convert the byte B to the corresponding wide character. In a
2687 unibyte locale, treat B as itself if it is an encoding error. 2687 unibyte locale, treat B as itself. In a multibyte locale, return
2688 In a multibyte locale, return WEOF if B is an encoding error. */ 2688 WEOF if B is an encoding error. */
2689static wint_t 2689static wint_t
2690parse_byte (unsigned char b, re_charset_t *mbcset) 2690parse_byte (unsigned char b, re_charset_t *mbcset)
2691{ 2691{
2692 wint_t wc = __btowc (b); 2692 return mbcset == NULL ? b : __btowc (b);
2693 return wc == WEOF && !mbcset ? b : wc;
2694} 2693}
2695#endif 2694# endif
2696 2695
2697 /* Local function for parse_bracket_exp only used in case of NOT _LIBC. 2696 /* Local function for parse_bracket_exp only used in case of NOT _LIBC.
2698 Build the range expression which starts from START_ELEM, and ends 2697 Build the range expression which starts from START_ELEM, and ends
@@ -3531,18 +3530,10 @@ build_equiv_class (bitset_t sbcset, const unsigned char *name)
3531 continue; 3530 continue;
3532 /* Compare only if the length matches and the collation rule 3531 /* Compare only if the length matches and the collation rule
3533 index is the same. */ 3532 index is the same. */
3534 if (len == weights[idx2 & 0xffffff] && (idx1 >> 24) == (idx2 >> 24)) 3533 if (len == weights[idx2 & 0xffffff] && (idx1 >> 24) == (idx2 >> 24)
3535 { 3534 && memcmp (weights + (idx1 & 0xffffff) + 1,
3536 int cnt = 0; 3535 weights + (idx2 & 0xffffff) + 1, len) == 0)
3537 3536 bitset_set (sbcset, ch);
3538 while (cnt <= len &&
3539 weights[(idx1 & 0xffffff) + 1 + cnt]
3540 == weights[(idx2 & 0xffffff) + 1 + cnt])
3541 ++cnt;
3542
3543 if (cnt > len)
3544 bitset_set (sbcset, ch);
3545 }
3546 } 3537 }
3547 /* Check whether the array has enough space. */ 3538 /* Check whether the array has enough space. */
3548 if (BE (*equiv_class_alloc == mbcset->nequiv_classes, 0)) 3539 if (BE (*equiv_class_alloc == mbcset->nequiv_classes, 0))
@@ -3802,9 +3793,9 @@ free_charset (re_charset_t *cset)
3802# ifdef _LIBC 3793# ifdef _LIBC
3803 re_free (cset->coll_syms); 3794 re_free (cset->coll_syms);
3804 re_free (cset->equiv_classes); 3795 re_free (cset->equiv_classes);
3796# endif
3805 re_free (cset->range_starts); 3797 re_free (cset->range_starts);
3806 re_free (cset->range_ends); 3798 re_free (cset->range_ends);
3807# endif
3808 re_free (cset->char_classes); 3799 re_free (cset->char_classes);
3809 re_free (cset); 3800 re_free (cset);
3810} 3801}
diff --git a/lib/verify.h b/lib/verify.h
index bc7f99dbd73..3b57ddee0ac 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -276,7 +276,8 @@ template <int w>
276 when 'assume' silences warnings even with older GCCs. */ 276 when 'assume' silences warnings even with older GCCs. */
277# define assume(R) ((R) ? (void) 0 : __builtin_trap ()) 277# define assume(R) ((R) ? (void) 0 : __builtin_trap ())
278#else 278#else
279# define assume(R) ((void) (0 && (R))) 279 /* Some tools grok NOTREACHED, e.g., Oracle Studio 12.6. */
280# define assume(R) ((R) ? (void) 0 : /*NOTREACHED*/ (void) 0)
280#endif 281#endif
281 282
282/* @assert.h omit end@ */ 283/* @assert.h omit end@ */