Commit Graph

32781 Commits

Author SHA1 Message Date
Joseph Myers 5d220788b3 Add HUGE_VAL macros for more _FloatN, _FloatNx types.
This patch continues the preparation for additional _FloatN / _FloatNx
type support by adding appropriately conditional definitions of
HUGE_VAL_* macros, corresponding to the HUGE_VAL_F128 definition
already present.

Tested for x86_64.

	* math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
	(IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
	[__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
	(HUGE_VAL_F32): Likewise.
	[__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
	(HUGE_VAL_F64): Likewise.
	[__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
	(HUGE_VAL_F32X): Likewise.
	[__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
	(HUGE_VAL_F64X): Likewise.
	[__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
	(HUGE_VAL_F128X): Likewise.
2017-10-26 23:11:18 +00:00
Thierry Vignaud 67ad7163bb add myself as contact for "br" locale
Pablo was l10n/i18n coordinator back in the old days but MandrakeSoft is
dead now

	* localedata/locales/br_FR (LC_IDENTIFICATON): Add
	Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
	for the br_FR locale.
2017-10-26 15:03:59 +02:00
Thierry Vignaud 408dff7ee5 fix nostr for "br" [BZ #21706]
"Ket" is the the most used negative answer, as it's the negative answer
to a positively phrased question
It's used as it or with the verb ("Ne ran ket", ...)
As such, "Ket" is used in most translations.
"Nann" is less used as it's the negative answer to a negatively phrased
question

See https://en.wikipedia.org/wiki/Yes_and_no for explanations about
languages with 3 or 4 form systems.

We still keep "Nn" for short answers as:
- new learners are used to "Non" in french
- and they often misuses "Nann"
- for compatibility with english

	[BZ #21706]
	* localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
2017-10-26 15:01:32 +02:00
Carlos O'Donell 02eec68167 localedef: Add --no-warnings/--warnings option
From localedef --help:

Output control:
...
      --no-warnings=<warnings>   Comma-separated list of warnings to disable;
                             supported warnings are: ascii, intcurrsym
...
      --warnings=<warnings>  Comma-separated list of warnings to enable;
                             supported warnings are: ascii, intcurrsym

Locales using SHIFT_JIS and SHIFT_JISX0213 character maps are not ASCII
compatible. In order to build locales using these character maps, and
have localedef exit with a status of 0, we add new option to localedef
to disable or enable specific warnings. The options are --no-warnings
and --warnings, to disable and enable specific warnings respectively.
The options take a comma-separated list of warning names. The warning
names are taken directly from the generated warning.  When a warning
that can be disabled is issued it will print something like this: foo is
not defined [--no-warnings=foo]

For the initial implementation we add two controllable warnings; first
'ascii' which is used by the localedata installation makefile target to
install SHIFT_JIS and SHIFT_JISX0213-using locales without error; second
'intcurrsym' which allows a program to use a non-standard international
currency symbol without triggering a warning.  The 'intcurrsym' is
useful in the future if country codes are added that are not in our
current ISO 4217 list, and the user wants to avoid the warning. Having
at least two warnings to control gives an example for how the changes
can be extended to more warnings if required in the future.

These changes allow ja_JP.SHIFT_JIS and ja_JP.SHIFT_JISX0213 to be
compiled without warnings using --no-warnings=ascii. The
localedata/Makefile $(INSTALL-SUPPORTED-LOCALES) target is adjusted to
automatically add `--no-warnings=ascii` for such charmaps, and likewise
localedata/gen-locale.sh is adjusted with similar logic.

v2: Bring verbose, be_quiet, and all warning control booleans into
record-status.c, and compile this object file to be used by locale,
iconv, and localedef. Any users include record-status.h.
v3: Fix an instance of boolean coercion in set_warning().

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
2017-10-25 13:36:54 -07:00
Carlos O'Donell 56fa555a83 localedata: Locale and test name are the same.
The localedata collation test data is encoded in a particular
character set. We rename the test data to match the full locale
name with encoding, and adjust the Makefile and sort-test.sh
script. This allows us to have a future C.UTF-8 test that is
disambiguated from the built-in C locale.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
2017-10-25 12:24:31 -07:00
Carlos O'Donell 337ff3c501 localedata: Fix unicode-gen check target.
After the transition to generating a distinct file for Unicode ctype
information e.g. i18n_ctype, the check target was left with the wrong
target name. This patch fixes the check target and regenerates the
files with more information than previously used, filling in the the
LC_IDENTIFICATION data.

Tested on x86_64 by regenerating from Unicode source files, and
running checks. Tested by subsequently rebuilding all locales.
No regressions in testsuite.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
Reported-by: Rafal Luzynski <digitalfreak@lingonborough.com>
2017-10-25 09:17:46 -07:00
Rajalakshmi Srinivasaraghavan 63da5cd4a0 powerpc: Replace lxvd2x/stxvd2x with lvx/stvx in P7's memcpy/memmove
POWER9 DD2.1 and earlier has an issue where some cache inhibited
vector load traps to the kernel, causing a performance degradation.  To
handle this in memcpy and memmove, lvx/stvx is used for aligned
addresses instead of lxvd2x/stxvd2x.

Reference: https://patchwork.ozlabs.org/patch/814059/

	* sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
	lxvd2x/stxvd2x with lvx/stvx.
	* sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2017-10-25 13:14:30 -02:00
H.J. Lu a122dbfb2e Replace "if if " with "if " in comments
* include/alloc_buffer.h: Replace "if if " with "if " in
	comments.
	* sysdeps/mips/memcpy.S: Likkewise.
	* sysdeps/mips/memset.S: Likewise.
	* sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
	Likewise.
	* sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
	Likewise.
	* sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
	Likewise.
2017-10-25 08:05:51 -07:00
Mike FABIAN 9be7530cc0 CJK locales: Add fullwidth yYnN to yesexpr and noexpr [BZ #15261]
[BZ #15261]
	* localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
	yesexpr and noexpr.
	* localedata/locales/hak_TW (LC_MESSAGES): Likewise.
	* localedata/locales/ko_KR (LC_MESSAGES): Likewise.
	* localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
	* localedata/locales/nan_TW (LC_MESSAGES): Likewise.
	* localedata/locales/zh_CN (LC_MESSAGES): Likewise.
	* localedata/locales/zh_HK (LC_MESSAGES): Likewise.
	* localedata/locales/zh_TW (LC_MESSAGES): Likewise.
2017-10-25 13:58:14 +02:00
Mike FABIAN 6ccbf6ff91 Sync LC_MESSAGES of several locales with CLDR
* localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
	* localedata/locales/az_AZ (LC_MESSAGES): Likewise.
	* localedata/locales/el_GR (LC_MESSAGES): Likewise.
	* localedata/locales/ha_NG (LC_MESSAGES): Likewise.
	* localedata/locales/ln_CD (LC_MESSAGES): Likewise.
	* localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
	* localedata/locales/ml_IN (LC_MESSAGES): Likewise.
	* localedata/locales/mt_MT (LC_MESSAGES): Likewise.
	* localedata/locales/os_RU (LC_MESSAGES): Likewise.
	* localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
	* localedata/locales/tt_RU (LC_MESSAGES): Likewise.
	* localedata/locales/wo_SN (LC_MESSAGES): Likewise.
2017-10-25 13:58:14 +02:00
Mike FABIAN 58b1a7eaf9 Use ASCII as much as possible in LC_MESSAGES of all locales to improve readability of the source
* localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
	as possible for better readability of the source.
	* localedata/locales/af_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/ak_GH (LC_MESSAGES): Likewise.
	* localedata/locales/am_ET (LC_MESSAGES): Likewise.
	* localedata/locales/anp_IN (LC_MESSAGES): Likewise.
	* localedata/locales/ar_EG (LC_MESSAGES): Likewise.
	* localedata/locales/as_IN (LC_MESSAGES): Likewise.
	* localedata/locales/ast_ES (LC_MESSAGES): Likewise.
	* localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
	* localedata/locales/az_AZ (LC_MESSAGES): Likewise.
	* localedata/locales/az_IR (LC_MESSAGES): Likewise.
	* localedata/locales/be_BY (LC_MESSAGES): Likewise.
	* localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
	* localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
	* localedata/locales/ber_MA (LC_MESSAGES): Likewise.
	* localedata/locales/bg_BG (LC_MESSAGES): Likewise.
	* localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
	* localedata/locales/bi_VU (LC_MESSAGES): Likewise.
	* localedata/locales/bo_CN (LC_MESSAGES): Likewise.
	* localedata/locales/br_FR (LC_MESSAGES): Likewise.
	* localedata/locales/bs_BA (LC_MESSAGES): Likewise.
	* localedata/locales/ca_ES (LC_MESSAGES): Likewise.
	* localedata/locales/ce_RU (LC_MESSAGES): Likewise.
	* localedata/locales/crh_UA (LC_MESSAGES): Likewise.
	* localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
	* localedata/locales/csb_PL (LC_MESSAGES): Likewise.
	* localedata/locales/cv_RU (LC_MESSAGES): Likewise.
	* localedata/locales/cy_GB (LC_MESSAGES): Likewise.
	* localedata/locales/da_DK (LC_MESSAGES): Likewise.
	* localedata/locales/de_DE (LC_MESSAGES): Likewise.
	* localedata/locales/dv_MV (LC_MESSAGES): Likewise.
	* localedata/locales/dz_BT (LC_MESSAGES): Likewise.
	* localedata/locales/el_GR (LC_MESSAGES): Likewise.
	* localedata/locales/en_CA (LC_MESSAGES): Likewise.
	* localedata/locales/en_US (LC_MESSAGES): Likewise.
	* localedata/locales/es_ES (LC_MESSAGES): Likewise.
	* localedata/locales/et_EE (LC_MESSAGES): Likewise.
	* localedata/locales/eu_ES (LC_MESSAGES): Likewise.
	* localedata/locales/fa_IR (LC_MESSAGES): Likewise.
	* localedata/locales/ff_SN (LC_MESSAGES): Likewise.
	* localedata/locales/fi_FI (LC_MESSAGES): Likewise.
	* localedata/locales/fil_PH (LC_MESSAGES): Likewise.
	* localedata/locales/fo_FO (LC_MESSAGES): Likewise.
	* localedata/locales/fr_BE (LC_MESSAGES): Likewise.
	* localedata/locales/fr_CH (LC_MESSAGES): Likewise.
	* localedata/locales/fr_FR (LC_MESSAGES): Likewise.
	* localedata/locales/fr_LU (LC_MESSAGES): Likewise.
	* localedata/locales/fur_IT (LC_MESSAGES): Likewise.
	* localedata/locales/fy_DE (LC_MESSAGES): Likewise.
	* localedata/locales/ga_IE (LC_MESSAGES): Likewise.
	* localedata/locales/gd_GB (LC_MESSAGES): Likewise.
	* localedata/locales/gl_ES (LC_MESSAGES): Likewise.
	* localedata/locales/gu_IN (LC_MESSAGES): Likewise.
	* localedata/locales/gv_GB (LC_MESSAGES): Likewise.
	* localedata/locales/ha_NG (LC_MESSAGES): Likewise.
	* localedata/locales/hak_TW (LC_MESSAGES): Likewise.
	* localedata/locales/he_IL (LC_MESSAGES): Likewise.
	* localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
	* localedata/locales/hne_IN (LC_MESSAGES): Likewise.
	* localedata/locales/hr_HR (LC_MESSAGES): Likewise.
	* localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
	* localedata/locales/ht_HT (LC_MESSAGES): Likewise.
	* localedata/locales/hu_HU (LC_MESSAGES): Likewise.
	* localedata/locales/hy_AM (LC_MESSAGES): Likewise.
	* localedata/locales/ia_FR (LC_MESSAGES): Likewise.
	* localedata/locales/id_ID (LC_MESSAGES): Likewise.
	* localedata/locales/ig_NG (LC_MESSAGES): Likewise.
	* localedata/locales/ik_CA (LC_MESSAGES): Likewise.
	* localedata/locales/is_IS (LC_MESSAGES): Likewise.
	* localedata/locales/it_CH (LC_MESSAGES): Likewise.
	* localedata/locales/it_IT (LC_MESSAGES): Likewise.
	* localedata/locales/iu_CA (LC_MESSAGES): Likewise.
	* localedata/locales/ja_JP (LC_MESSAGES): Likewise.
	* localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
	* localedata/locales/kl_GL (LC_MESSAGES): Likewise.
	* localedata/locales/ko_KR (LC_MESSAGES): Likewise.
	* localedata/locales/ks_IN (LC_MESSAGES): Likewise.
	* localedata/locales/ku_TR (LC_MESSAGES): Likewise.
	* localedata/locales/kw_GB (LC_MESSAGES): Likewise.
	* localedata/locales/ky_KG (LC_MESSAGES): Likewise.
	* localedata/locales/lb_LU (LC_MESSAGES): Likewise.
	* localedata/locales/lg_UG (LC_MESSAGES): Likewise.
	* localedata/locales/li_NL (LC_MESSAGES): Likewise.
	* localedata/locales/lij_IT (LC_MESSAGES): Likewise.
	* localedata/locales/ln_CD (LC_MESSAGES): Likewise.
	* localedata/locales/lo_LA (LC_MESSAGES): Likewise.
	* localedata/locales/lt_LT (LC_MESSAGES): Likewise.
	* localedata/locales/lv_LV (LC_MESSAGES): Likewise.
	* localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
	* localedata/locales/mg_MG (LC_MESSAGES): Likewise.
	* localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
	* localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
	* localedata/locales/mk_MK (LC_MESSAGES): Likewise.
	* localedata/locales/ml_IN (LC_MESSAGES): Likewise.
	* localedata/locales/mn_MN (LC_MESSAGES): Likewise.
	* localedata/locales/ms_MY (LC_MESSAGES): Likewise.
	* localedata/locales/mt_MT (LC_MESSAGES): Likewise.
	* localedata/locales/my_MM (LC_MESSAGES): Likewise.
	* localedata/locales/nan_TW (LC_MESSAGES): Likewise.
	* localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
	* localedata/locales/nb_NO (LC_MESSAGES): Likewise.
	* localedata/locales/nds_DE (LC_MESSAGES): Likewise.
	* localedata/locales/nds_NL (LC_MESSAGES): Likewise.
	* localedata/locales/ne_NP (LC_MESSAGES): Likewise.
	* localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
	* localedata/locales/niu_NU (LC_MESSAGES): Likewise.
	* localedata/locales/nl_NL (LC_MESSAGES): Likewise.
	* localedata/locales/nn_NO (LC_MESSAGES): Likewise.
	* localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/oc_FR (LC_MESSAGES): Likewise.
	* localedata/locales/om_ET (LC_MESSAGES): Likewise.
	* localedata/locales/or_IN (LC_MESSAGES): Likewise.
	* localedata/locales/os_RU (LC_MESSAGES): Likewise.
	* localedata/locales/pa_IN (LC_MESSAGES): Likewise.
	* localedata/locales/pa_PK (LC_MESSAGES): Likewise.
	* localedata/locales/pap_AW (LC_MESSAGES): Likewise.
	* localedata/locales/pap_CW (LC_MESSAGES): Likewise.
	* localedata/locales/pl_PL (LC_MESSAGES): Likewise.
	* localedata/locales/ps_AF (LC_MESSAGES): Likewise.
	* localedata/locales/pt_BR (LC_MESSAGES): Likewise.
	* localedata/locales/quz_PE (LC_MESSAGES): Likewise.
	* localedata/locales/raj_IN (LC_MESSAGES): Likewise.
	* localedata/locales/ro_RO (LC_MESSAGES): Likewise.
	* localedata/locales/ru_RU (LC_MESSAGES): Likewise.
	* localedata/locales/ru_UA (LC_MESSAGES): Likewise.
	* localedata/locales/rw_RW (LC_MESSAGES): Likewise.
	* localedata/locales/sa_IN (LC_MESSAGES): Likewise.
	* localedata/locales/sc_IT (LC_MESSAGES): Likewise.
	* localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
	* localedata/locales/se_NO (LC_MESSAGES): Likewise.
	* localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
	* localedata/locales/si_LK (LC_MESSAGES): Likewise.
	* localedata/locales/sk_SK (LC_MESSAGES): Likewise.
	* localedata/locales/sl_SI (LC_MESSAGES): Likewise.
	* localedata/locales/sm_WS (LC_MESSAGES): Likewise.
	* localedata/locales/so_DJ (LC_MESSAGES): Likewise.
	* localedata/locales/sq_AL (LC_MESSAGES): Likewise.
	* localedata/locales/sr_RS (LC_MESSAGES): Likewise.
	* localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
	* localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/st_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/sv_SE (LC_MESSAGES): Likewise.
	* localedata/locales/sw_KE (LC_MESSAGES): Likewise.
	* localedata/locales/szl_PL (LC_MESSAGES): Likewise.
	* localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
	* localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
	* localedata/locales/th_TH (LC_MESSAGES): Likewise.
	* localedata/locales/the_NP (LC_MESSAGES): Likewise.
	* localedata/locales/ti_ER (LC_MESSAGES): Likewise.
	* localedata/locales/tk_TM (LC_MESSAGES): Likewise.
	* localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/to_TO (LC_MESSAGES): Likewise.
	* localedata/locales/tr_TR (LC_MESSAGES): Likewise.
	* localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/tt_RU (LC_MESSAGES): Likewise.
	* localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
	* localedata/locales/uk_UA (LC_MESSAGES): Likewise.
	* localedata/locales/unm_US (LC_MESSAGES): Likewise.
	* localedata/locales/ur_IN (LC_MESSAGES): Likewise.
	* localedata/locales/ur_PK (LC_MESSAGES): Likewise.
	* localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
	* localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
	* localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/vi_VN (LC_MESSAGES): Likewise.
	* localedata/locales/wa_BE (LC_MESSAGES): Likewise.
	* localedata/locales/wo_SN (LC_MESSAGES): Likewise.
	* localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
	* localedata/locales/yi_US (LC_MESSAGES): Likewise.
	* localedata/locales/yo_NG (LC_MESSAGES): Likewise.
	* localedata/locales/yue_HK (LC_MESSAGES): Likewise.
	* localedata/locales/zh_CN (LC_MESSAGES): Likewise.
	* localedata/locales/zh_HK (LC_MESSAGES): Likewise.
	* localedata/locales/zh_TW (LC_MESSAGES): Likewise.
	* localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
2017-10-25 13:57:51 +02:00
Mike FABIAN 17e78edb81 brx_IN locale: Fix yesexpr and noexpr
* localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
	(Use first letters of yesstr and nostr correctly instead of using
	full words).
2017-10-25 10:49:36 +02:00
Mike FABIAN 74e7284fe1 ta_IN locale: Fix yesexpr and noexpr
* localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
	(Use first letters of yesstr and nostr correctly).
2017-10-25 10:49:36 +02:00
Mike FABIAN b41a0ff1c8 hi_IN, kn_IN, ks_IN@devanagari locales: In yesexpr and noexpr, also check for the first characters of yesstr and nostr
* localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
	also check for the first characters of yesstr and nostr.
	* localedata/locales/kn_IN (LC_MESSAGES): Likewise.
	* localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
2017-10-25 10:49:36 +02:00
Mike FABIAN d971f38002 cmn_TW locale: Improve yesexpr and noexpr
* localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
	also check for Chinese characters.
2017-10-25 10:49:36 +02:00
Mike FABIAN effc9e1d50 chr_US locale: Fix yesexpr and noexpr
* localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
	match also for the contents of yesstr and nostr. As the first letter
	of yesstr and nostr is equal, checking only for the first letter
	is not enough.
2017-10-25 10:49:36 +02:00
Mike FABIAN 10320881d8 ber_DZ locale: Use copy “"kab_DZ"” in LC_MESSAGES.
* localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
	it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2017-10-25 10:49:36 +02:00
Mike FABIAN d8682a15d0 kab_DZ locale: Add e-mail of main contributor
* localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
	of main contributor.
2017-10-25 10:49:36 +02:00
Mike FABIAN 1bfb86aeb4 zh_SG locale: Use copy "zh_CN" in LC_MESSAGES instead of English
* localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
	instead of using English.
2017-10-25 10:49:36 +02:00
Mike FABIAN da33d60bbe ug_CN locale: Fix noexpr and yesexpr
* localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
	by including the first letters of nostr and yesexpr in the regexp.
	Also make it more readable by using ASCII where possible.
2017-10-25 10:49:36 +02:00
Mike FABIAN 725bbb3e18 ti_IN locale: Fix noexpr
* localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
	the first letter of nostr in the regexp. It agrees with CLDR now.
	Also make it more readable by using ASCII where possible.
2017-10-25 10:49:36 +02:00
Mike FABIAN fe043d8af2 km_KH locale: Fix yesstr and nostr.
* localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
	The yesstr and nostr apparently	came from CLDR. And CLDR has a bug there:
	these strings contain a U+17D6 (which somewhat looks like a colon)
	instead of a real colon to separate the full words for “yes”
	and “no” from the single letter responses.
2017-10-25 10:49:36 +02:00
Mike FABIAN 360a8df3af ka_GE locale: Fix yesexp to make it agree with CLDR.
* localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
	it agree with CLDR (include the first letter of yesstr).
	Also make it more readable by using ASCII where possible.
2017-10-25 10:49:36 +02:00
Mike FABIAN bab7b6b0a6 mr_IN locale: Fix yesstr and nostr and improve yesexpr and noexpr.
* localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
	and improve yesexpr and noexpr. The yesstr and nostr apparently
	came from CLDR. And CLDR has a bug there: these strings contain
	a U+0903 (which looks like a colon) instead of a real colon
	to separate the full words for “yes” and “no” from the single
	letter responses.
2017-10-25 10:49:35 +02:00
Mike FABIAN 3e79f75819 bn_BD locale: Use only the first letters of the full yesstr and nostr in yesexpr and noexpr
Using all characters of the full words for yes and no in yesexpr and noexpr
makes no sense here, especially not because the words for yes and no
share one character.

	* localedata/locales/bn_BD (LC_MESSAGES): Use only the first
	letters of the full yesstr and nostr in yesexpr and noexpr.
2017-10-25 10:49:35 +02:00
Mike FABIAN 4960c87929 Add yesstr, nostr, lang_term, lang_lib to an_ES locale
* localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
	* localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
	* localedata/locales/an_ES: Make source more readable by using ASCII
	where possible.
2017-10-25 10:49:35 +02:00
Mike FABIAN b06a054f58 Add new locale yuw_PG [BZ #20952]
[BZ #20952]
	* localedata/locales/yuw_PG: New file.
	* localedata/SUPPORTED: Add yuw_PG/UTF-8.
	* locale/iso-639.def: Add Yau (Uruwa).
2017-10-25 10:49:35 +02:00
Wilco Dijkstra 905a7725e9 Add single-threaded path to _int_malloc
This patch adds single-threaded fast paths to _int_malloc.

	* malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2017-10-24 12:43:05 +01:00
Wilco Dijkstra 3f6bb8a32e Add single-threaded path to malloc/realloc/calloc/memalloc
This patch adds a single-threaded fast path to malloc, realloc,
calloc and memalloc.  When we're single-threaded, we can bypass
arena_get (which always locks the arena it returns) and just use
the main arena.  Also avoid retrying a different arena since
there is just the main arena.

	* malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
	(__libc_realloc): Likewise.
	(_mid_memalign): Likewise.
	(__libc_calloc): Likewise.
2017-10-24 12:39:24 +01:00
Mike FABIAN 1d479c8c33 Fixes for tpi_PG locale
* localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
	by adding the generic +1 and -0 as in all other locales.
	* localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
	day names and make it more readable by using ASCII where possible.
2017-10-24 08:01:09 +02:00
Joseph Myers 91c3985c23 Update x86 fix-fp-int-compare-invalid.h for GCC 8.
The glibc implementation of iseqsig relies on ordered comparison
operators raising the "invalid" exception for quiet NaN operands, with
a workaround on platforms where a GCC bug means that exception is not
raised.  For x86, that bug has now been fixed for GCC 8, so this patch
disables the workaround in that case.  If and when the corresponding
bugs for powerpc and s390 are fixed, the headers for those platforms
should of course be updated similarly.

Tested for x86_64 and x86, including with GCC mainline.  Note that
other failures appear with GCC mainline because of spurious use of
ordered comparison instructions for unordered operations
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692>.

	* sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
	(FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2017-10-24 00:33:08 +00:00
Adhemerval Zanella aa95a2414e posix: Do not use WNOHANG in waitpid call for Linux posix_spawn
As shown in some buildbot issues on aarch64 and powerpc, calling
clone (VFORK) and waitpid (WNOHANG) does not guarantee the child
is ready to be collected.  This patch changes the call back to 0
as before fe05e1cb6d fix.

This change can lead to the scenario 4.3 described in the commit,
where the waitpid call can hang undefinitely on the call.  However
this is also a very unlikely and also undefinied situation where
both the caller is trying to terminate a pid before posix_spawn
returns and the race pid reuse is triggered.  I don't see how to
correct handle this specific situation within posix_spawn.

Checked on x86_64-linux-gnu, aarch64-linux-gnu and
powerpc64-linux-gnu.

	* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
	WNOHANG in waitpid call.
2017-10-23 13:31:26 -02:00
Siddhesh Poyarekar a2e0a7f12b aarch64: Document _SC_LEVEL1_DCACHE_LINESIZE caveat
The _SC_LEVEL1_DCACHE_LINESIZE is reported using the contents of the
ctr_el0 register, which tells us the minimum observable cache line
size by userspace.  This typically is the same as the L1 cache line
size, but that may not always be true.  It could be a higher level
cache line size as long as cache cleaning and invalidation work
correctly with that line size in userspace.  The falkor core for
example reports the L2 line size as the dcache line size in CTR_EL0
while also reporting the correct L1 dcache line size via CCSIDR_EL1.

	* manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
	_SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.

Reviewed-by: Rical Jasan <ricaljasan@pacific.net>
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
2017-10-23 20:23:35 +05:30
Siddhesh Poyarekar db9bab09a5 Document cache information sysconf variables
Write short descriptions for each of the cache information sysconf
variables.

	* manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
	_SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
	_SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
	_SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
	_SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
	_SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
	_SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
	_SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
	variables.

Reviewed-by: Rical Jasan <ricaljasan@pacific.net>
2017-10-23 20:23:13 +05:30
Szabolcs Nagy be080b6c14 aarch64: Add missing math Makefile for recent commit
Without -fno-math-errno, the builtins just do a call instead of
inlining a single instruction.
2017-10-23 15:34:36 +01:00
Michael Collison 5062680c60 aarch64: Implement math acceleration via builtins
This patch converts asm statements into builtins for AArch64.  As an
example for the file sysdeps/aarch64/fpu/s_ceil.c, we convert the
function from

double
__ceil (double x)
{
  double result;
  asm ("frintp\t%d0, %d1" :
       "=w" (result) : "w" (x) );
  return result;
}

into

double
__ceil (double x)
{
  return __builtin_ceil (x);
}

Tested on aarch64-linux-gnu with gcc-4.9.4 and gcc-6.

	* sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
	with __builtin_sqrt.
	* sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
	with __builtin_sqrtf.
	* sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
	with __builtin_ceil.
	* sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
	with __builtin_ceilf.
	* sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
	with __builtin_floor.
	* sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
	with __builtin_floorf.
	* sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
	with __builtin_fma.
	* sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
	with __builtin_fmaf.
	* sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
	with __builtin_fmax.
	* sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
	with __builtin_fmaxf.
	* sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
	with __builtin_fmin.
	* sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
	with __builtin_fminf.
	* sysdeps/aarch64/fpu/s_frint.c: Delete file.
	* sysdeps/aarch64/fpu/s_frintf.c: Delete file.
	* sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
	with builtin_rint and conversion to int.
	* sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
	* sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
	with builtin_llround.
	* sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
	* sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
	with builtin_rint and conversion to long int.
	* sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
	* sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
	with builtin_lround.
	* sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
	with builtin_lroundf.
	* sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
	statements with __builtin_nearbyint.
	* sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
	statements with __builtin_nearbyintf.
	* sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
	with __builtin_rint.
	* sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
	with __builtin_rintf.
	* sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
	with __builtin_round.
	* sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
	with __builtin_roundf.
	* sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
	with __builtin_trunc.
	* sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
	with __builtin_truncf.
	* sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno.
2017-10-23 10:32:56 +01:00
Alan Modra 174935af03 PowerPC64 power8 strncpy cfi fixes
cfi info for stack adjust needs to be on the insn doing the adjust.
cfi describing register saves can be anywhere after the save insn but
before the reg is altered.  Fewer locations with cfi result in smaller
cfi programs and possibly slightly faster exception handling.  Thus
the LR cfi_offset move.

The idea behind ajusting sp after restoring regs is to break a
register dependency chain, in this case not be using r1 immediately
after it is modified.

The missing LR cfi_restore meant that code after the blr,
unaligned_lt_16 and other labels, would have cfi that said LR was at
cfa+16, but that code is reached without LR being saved.

	* sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
	Adjust stack after restoring regs.  Add missing LR cfi_restore.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2017-10-23 07:46:58 +10:30
Alan Modra 750a0e4967 PowerPC64 power7 strncpy stack handling and cfi
This patch moves the frame setup and teardown to immediately around
the single memset call, as has been done for power8.  I've also
decreased FRAMESIZE to that needed to save the two callee-saved
registers used.  Plus added cfi.

	* sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
	Move LR save and frame setup/teardown and LR restore to
	immediately around memset call.  Provide cfi.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2017-10-23 07:46:07 +10:30
H.J. Lu 5313581cb5 i386: Replace assembly versions of e_powf with generic e_powf.c
This patch replaces i386 assembly versions of e_powf with generic
e_powf.c.  For workload-spec2017.wrf, on Nehalem, it improves
performance by:

                           Before            After     Improvement
reciprocal-throughput      230.855          78.3358       194%
latency                    231.685          94.1259       146%

On Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      239.858          47.4713       405%
latency                    247.57           93.8798       163%

On IvyBridge with --disable-multi-arch, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      269.078          63.3758       324%
latency                    271.473          102.091       165%

	* sysdeps/i386/fpu/e_powf.S: Removed.
	* sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
	* sysdeps/i386/fpu/w_powf.c: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_powf-sse2.
	(CFLAGS-e_powf-sse2.c): New.
	* sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
	* sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2017-10-22 08:12:41 -07:00
H.J. Lu 6089a3ee24 i386: Replace assembly versions of e_log2f with generic e_log2f.c
This patch replaces i386 assembly versions of e_log2f with generic
e_log2f.c.  For workload-spec2017.wrf, on Nehalem, it improves
performance by:

                           Before            After     Improvement
reciprocal-throughput      92.3845          30.8752       199%
latency                    112.855          54.8645       105%

On Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      98.7488          22.7507       334%
latency                    118.01           51.6083       128%

On IvyBridge with --disable-multi-arch, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      106.635          28.8596       269%
latency                    129.888          56.9187       128%

	* sysdeps/i386/fpu/e_log2f.S: Removed.
	* sysdeps/i386/fpu/e_log2f_data.c: Likewise.
	* sysdeps/i386/fpu/w_log2f.c: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_log2f-sse2.
	(CFLAGS-e_log2f-sse2.c): New.
	* sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
	* sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2017-10-22 08:10:18 -07:00
H.J. Lu 80bb593563 x86-64: Add powf with FMA
For workload-spec2017.wrf, on Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      35.4713          27.3842       29%
latency                    82.4537          66.3175       24%

	* sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_powf-fma.
	(CFLAGS-e_powf-fma.c): New.
	* sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
	* sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2017-10-22 08:08:00 -07:00
H.J. Lu 5c7adbd8ed x86-64: Add log2f with FMA
For workload-spec2017.wrf, on Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      16.5937          14.0789       17%
latency                    41.7755          35.3586       18%

	* sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_log2f-fma.
	(CFLAGS-e_log2f-fma.c): New.
	* sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
	* sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2017-10-22 08:06:58 -07:00
H.J. Lu 0ccc7153cc x86-64: Add logf with FMA
For workload-spec2017.wrf, on Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      16.1534          13.8874       16%
latency                    41.9642          34.3072       22%

	* sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_logf-fma.
	(CFLAGS-e_logf-fma.c): New.
	* sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
	* sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2017-10-22 08:05:15 -07:00
H.J. Lu fe596486d6 i386: Replace assembly versions of e_logf with generic e_logf.c
This patch replaces i386 assembly versions of e_logf with generic
e_logf.c.  For workload-spec2017.wrf, on Nehalem, it improves
performance by:

                           Before            After     Improvement
reciprocal-throughput      73.3865          40.0454       83%
latency                    90.0985          54.4479       65%

On Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      75.1384          22.1452       239%
latency                    91.9441          50.7925       81%

On IvyBridge with --disable-multi-arch, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      84.5575          28.7879       193%
latency                    103.971          57.5231       80%

	* sysdeps/i386/fpu/e_logf.S: Removed.
	* sysdeps/i386/fpu/e_logf_data.c: Likewise.
	* sysdeps/i386/fpu/w_logf.c: Likewise.
	* sysdeps/i386/i686/fpu/e_logf.S: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_logf-sse2.
	(CFLAGS-e_logf-sse2.c): New.
	* sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
	* sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2017-10-22 08:02:58 -07:00
H.J. Lu 7eda65f69e i386: Replace assembly versions of e_exp2f with generic e_exp2f.c
This patch replaces i386 assembly versions of e_exp2f with generic
e_exp2f.c.  For workload-spec2017.wrf, on Nehalem, it improves
performance by:

                           Before            After     Improvement
reciprocal-throughput      112.996          40.0454       182%
latency                    126.581          54.4479       132%

On Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      113.14           39.447        186%
latency                    136.068          55.684        144%

On IvyBridge with --disable-multi-arch, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      132.521          40.3759       228%
latency                    145.791          58.4587       149%

	* sysdeps/i386/fpu/e_exp2f.S: Removed.
	* sysdeps/i386/fpu/w_exp2f.c: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_exp2f-sse2.
	(CFLAGS-e_exp2f-sse2.c): New.
	* sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
	* sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2017-10-22 08:00:18 -07:00
H.J. Lu 5d15c96975 x86-64: Add exp2f with FMA
For workload-spec2017.wrf, on Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      13.0291          11.2225       16%
latency                    44.5154          37.5766       18%

	* sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
	Add e_exp2f-fma.
	(CFLAGS-e_exp2f-fma.c): New.
	* sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
	* sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2017-10-22 07:57:50 -07:00
H.J. Lu b2f6137ea5 i386: Replace assembly versions of e_expf with generic e_expf.c
This patch replaces i386 assembly versions of e_expf with generic
e_expf.c.  For workload-spec2017.wrf, on Nehalem, it improves
performance by:

                           Before            After     Improvement
reciprocal-throughput      55.5724          40.2664       38%
latency                    80.0687          60.8517       31%

On Skylake, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      62.4056          39.4188       58%
latency                    85.5496          59.6377       43%

On IvyBridge with --disable-multi-arch, it improves performance by:

                           Before            After     Improvement
reciprocal-throughput      133.707          40.3778       231%
latency                    149.191          63.2515       135%

	* sysdeps/i386/fpu/e_exp2f_data.c: Removed.
	* sysdeps/i386/fpu/e_expf.S: Likewise.
	* sysdeps/i386/fpu/math_errf.c: Likewise.
	* sysdeps/i386/fpu/w_expf.c: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
	Remove e_expf-ia32.
	(CFLAGS-e_expf-sse2.c): New.
	* sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
	* sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2017-10-22 07:54:50 -07:00
H.J. Lu e1f59bebd8 x86-64: Replace assembly versions of e_expf with generic e_expf.c
This patch replaces x86-64 assembly versions of e_expf with generic
e_expf.c.  For workload-spec2017.wrf, on Nehalem, it improves
performance by:

                           Before            After     Improvement
reciprocal-throughput      36.039           20.7749       73%
latency                    58.8096          40.8715       43%

On Skylake, it improves

                           Before            After     Improvement
reciprocal-throughput      18.4436          11.1693       65%
latency                    47.5162          37.5411       26%

	* sysdeps/x86_64/fpu/e_expf.S: Removed.
	* sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
	* sysdeps/x86_64/fpu/w_expf.c: Likewise.
	* sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
	e_expf.c.
	* sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
	New.
	* sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
	* sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
	Renamed to ...
	(__redirect_expf): This.
	(SYMBOL_NAME): Changed to expf.
	(__ieee754_expf): Renamed to ...
	(__expf): This.
	(__GI___expf): This.
	(__ieee754_expf): Add strong_alias.
	(__expf_finite): Likewise.
	(__expf): New.
	Include <sysdeps/ieee754/flt-32/e_expf.c>.
2017-10-22 07:49:55 -07:00
Paul Eggert a159b53fa0 glob: Fix buffer overflow during GLOB_TILDE unescaping [BZ #22332] 2017-10-22 10:01:24 +02:00
Florian Weimer 914c9994d2 Update NEWS and ChangeLog for CVE-2017-15671 2017-10-22 09:29:52 +02:00