Fix declarations of _DINFINITY, _SINFINITY and _SQNAN
[official-gcc.git] / libquadmath / ChangeLog
bloba59cec9c811ff73f03d258e6020eb87334f79cb4
1 2022-01-11  Jakub Jelinek  <jakub@redhat.com>
3         * configure.ac: Set XCFLAGS to -mno-gnu-attribute on
4         powerpc64le*-linux*.
5         * configure: Regenerated.
7 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
9         * libquadmath.texi: Bump @copying's copyright year.
11 2021-06-08  Martin Liska  <mliska@suse.cz>
13         * libquadmath.texi: Fix typo.
15 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17         * configure: Re-generate.
19 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
21         * libquadmath.texi: Bump @copying's copyright year.
23 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
25         PR target/97865
26         * configure: Regenerate.
28 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
30         * configure: Regenerate.
32 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
34         PR bootstrap/95413
35         * configure: Regenerated.
37 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39         PR bootstrap/95147
40         * configure: Regenerated.
42 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
44         * configure: Regenerated.
46 2020-02-12  Sandra Loosemore  <sandra@codesourcery.com>
48         PR libstdc++/79193
49         PR libstdc++/88999
51         * configure: Regenerated.
53 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
55         * configure.ac: Handle `--with-toolexeclibdir='.
56         * Makefile.in: Regenerate.
57         * aclocal.m4: Regenerate.
58         * configure: Regenerate.
60 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
62         Update copyright years.
64         * libquadmath.texi: Bump @copying's copyright year.
66 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
68         * configure: Regenerate.
70 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
72         * quadmath.h (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq,
73         M_PI_2q, M_PI_4q, M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q,
74         M_SQRT1_2q): Use two more decimal places.
76 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
78         Update copyright years.
80         * libquadmath.texi: Bump @copying's copyright year.
82 2018-12-11  Jakub Jelinek  <jakub@redhat.com>
84         PR c/88430
85         * quadmath_weak.h (__qmath2): Add __quadmath_throw.
87 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
89         * quadmath-imp.h (ieee854_float128): Use mantissa0, mantissa1,
90         mantissa2 and mantissa3 fields instead of mant_high and mant_low.
91         Change nan field to ieee_nan.
92         * update-quadmath.py (update_sources): Also update fmaq.c.
93         * math/nanq.c (nanq): Use ieee_nan field of union.
94         Zero-initialize f.  Set quiet_nan field.
95         * printf/flt1282mpn.c, printf/printf_fphex.c, strtod/mpn2flt128.c,
96         strtod/strtoflt128.c: Use mantissa0, mantissa1, mantissa2 and
97         mantissa3 fields.  Use ieee_nan and quiet_nan field.
98         * math/fmaq.c: Regenerate from glibc sources with
99         update-quadmath.py.
101 2018-11-05  Joseph Myers  <joseph@codesourcery.com>
103         PR libquadmath/68686
104         * Makefile.am: (libquadmath_la_SOURCES): Remove math/isinf_nsq.c.
105         Add math/exp2q.c math/issignalingq.c math/lgammaq_neg.c
106         math/lgammaq_product.c math/tanq_kernel.c math/tgammaq_product.c
107         math/casinhq_kernel.c.
108         * Makefile.in: Regenerate.
109         * libquadmath.texi (exp2q, issignalingq): Document.
110         * quadmath-imp.h: Include <errno.h>, <limits.h>, <stdbool.h> and
111         <fenv.h>.
112         (HIGH_ORDER_BIT_IS_SET_FOR_SNAN, FIX_FLT128_LONG_CONVERT_OVERFLOW)
113         (FIX_FLT128_LLONG_CONVERT_OVERFLOW, __quadmath_kernel_tanq)
114         (__quadmath_gamma_productq, __quadmath_gammaq_r)
115         (__quadmath_lgamma_negq, __quadmath_lgamma_productq)
116         (__quadmath_lgammaq_r, __quadmath_kernel_casinhq, mul_splitq)
117         (math_check_force_underflow_complex, __glibc_likely)
118         (__glibc_unlikely, struct rm_ctx, SET_RESTORE_ROUNDF128)
119         (libc_feholdsetround_ctx, libc_feresetround_ctx): New.
120         (feraiseexcept, fenv_t, feholdexcept, fesetround, feupdateenv)
121         (fesetenv, fetestexcept, feclearexcept): Define if not supported
122         through <fenv.h>.
123         (__quadmath_isinf_nsq): Remove.
124         * quadmath.h (exp2q, issignalingq): New.
125         * quadmath.map (QUADMATH_1.2): New.
126         * quadmath_weak.h (exp2q, issignalingq): New.
127         * update-quadmath.py: New file.
128         * math/isinf_nsq.c: Remove file.
129         * math/casinhq_kernel.c, math/exp2q.c, math/expq_table.h,
130         math/issignalingq.c, math/lgammaq_neg.c, math/lgammaq_product.c,
131         math/tanq_kernel.c, math/tgammaq_product.c: New files.  Generated
132         from glibc sources with update-quadmath.py.
133         * math/acoshq.c, math/acosq.c, math/asinhq.c, math/asinq.c,
134         math/atan2q.c, math/atanhq.c, math/atanq.c, math/cacoshq.c,
135         math/cacosq.c, math/casinhq.c, math/casinq.c, math/catanhq.c,
136         math/catanq.c, math/cbrtq.c, math/ccoshq.c, math/ceilq.c,
137         math/cexpq.c, math/cimagq.c, math/clog10q.c, math/clogq.c,
138         math/conjq.c, math/copysignq.c, math/coshq.c, math/cosq.c,
139         math/cosq_kernel.c, math/cprojq.c, math/crealq.c, math/csinhq.c,
140         math/csinq.c, math/csqrtq.c, math/ctanhq.c, math/ctanq.c,
141         math/erfq.c, math/expm1q.c, math/expq.c, math/fabsq.c,
142         math/fdimq.c, math/finiteq.c, math/floorq.c, math/fmaxq.c,
143         math/fminq.c, math/fmodq.c, math/frexpq.c, math/hypotq.c,
144         math/ilogbq.c, math/isinfq.c, math/isnanq.c, math/j0q.c,
145         math/j1q.c, math/jnq.c, math/ldexpq.c, math/lgammaq.c,
146         math/llrintq.c, math/llroundq.c, math/log10q.c, math/log1pq.c,
147         math/log2q.c, math/logbq.c, math/logq.c, math/lrintq.c,
148         math/lroundq.c, math/modfq.c, math/nearbyintq.c,
149         math/nextafterq.c, math/powq.c, math/remainderq.c, math/remquoq.c,
150         math/rintq.c, math/roundq.c, math/scalblnq.c, math/scalbnq.c,
151         math/signbitq.c, math/sincos_table.c, math/sincosq.c,
152         math/sincosq_kernel.c, math/sinhq.c, math/sinq.c,
153         math/sinq_kernel.c, math/tanhq.c, math/tanq.c, math/tgammaq.c,
154         math/truncq.c, math/x2y2m1q.c: Regenerate from glibc sources with
155         update-quadmath.py.
157 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
159         PR bootstrap/82856
160         * Makefile.am: Include multilib.am.
161         (AUTOMAKE_OPTIONS): Remove 1.8.  Add info-in-builddir.
162         (all-local): Define outside conditional code.
163         (CLEANFILES): Remove libquadmath.info.
164         * configure.ac: Remove AC_PREREQ.
165         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
167 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
169         * configure: Regenerated.
171 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
173         * configure: Regenerated.
175 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
177         PR jit/85384
178         * configure: Regenerate.
180 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
182         PR target/84148
183         * configure: Regenerate.
185 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
187         * libquadmath.texi: Bump @copying's copyright year.
189 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
191         * Makefile.am: Update AM_CFLAGS.
192         * Makefile.in: Regenerate:
193         * acinclude.m4: Add enable.m4 and cet.m4.
194         * configure: Regenerate.
195         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
197 2017-11-05  Tom de Vries  <tom@codesourcery.com>
199         PR other/82784
200         * printf/gmp-impl.h (MPN_MUL_N_RECURSE): Remove semicolon after
201         "do {} while (0)".
203 2017-09-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
205         PR libquadmath/81848
206         * configure.ac (powerpc*-linux*): Use attribute mode KC to create
207         complex __float128 on PowerPC instead of attribute mode TC.
208         * quadmath.h (__complex128): Likewise.
209         * configure: Regenerate.
210         * math/cbrtq.c (CBRT2): Use __float128 not long double.
211         (CBRT4): Likewise.
212         (CBRT2I): Likewise.
213         (CBRT4I): Likewise.
214         * math/j0q.c (U0): Likewise.
215         * math/sqrtq.c (sqrtq): Don't depend on implicit conversion
216         between __float128, instead explicitly convert the __float128
217         value to long double because the PowerPC does not allow __float128
218         and long double in the same expression.
220 2017-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
222         * math/powq.c (powq): Use uint32_t instead of u_int32_t.
224 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
226         PR libquadmath/65757
227         * quadmath-imp.h (math_opt_barrier, math_force_eval,
228         math_narrow_eval, math_check_force_underflow,
229         math_check_force_underflow_nonneg): Define.
230         * math/ceilq.c: Backport changes from upstream glibc
231         between 2012-11-01 and 2017-07-13.
232         * math/remquoq.c: Likewise.
233         * math/expq.c: Likewise.
234         * math/llroundq.c: Likewise.
235         * math/logq.c: Likewise.
236         * math/atanq.c: Likewise.
237         * math/nearbyintq.c: Likewise.
238         * math/scalblnq.c: Likewise.
239         * math/finiteq.c: Likewise.
240         * math/atanhq.c: Likewise.
241         * math/expm1q.c: Likewise.
242         * math/sinhq.c: Likewise.
243         * math/log10q.c: Likewise.
244         * math/rintq.c: Likewise.
245         * math/roundq.c: Likewise.
246         * math/fmaq.c: Likewise.
247         * math/erfq.c: Likewise.
248         * math/log2q.c: Likewise.
249         * math/lroundq.c: Likewise.
250         * math/j1q.c: Likewise.
251         * math/scalbnq.c: Likewise.
252         * math/truncq.c: Likewise.
253         * math/frexpq.c: Likewise.
254         * math/sincosq.c: Likewise.
255         * math/tanhq.c: Likewise.
256         * math/asinq.c: Likewise.
257         * math/coshq.c: Likewise.
258         * math/j0q.c: Likewise.
259         * math/asinhq.c: Likewise.
260         * math/floorq.c: Likewise.
261         * math/sinq_kernel.c: Likewise.
262         * math/powq.c: Likewise.
263         * math/hypotq.c: Likewise.
264         * math/sincos_table.c: Likewise.
265         * math/rem_pio2q.c: Likewise.
266         * math/nextafterq.c: Likewise.
267         * math/log1pq.c: Likewise.
268         * math/sincosq_kernel.c: Likewise.
269         * math/tanq.c: Likewise.
270         * math/acosq.c: Likewise.
271         * math/lrintq.c: Likewise.
272         * math/llrintq.c: Likewise.
274 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
276         * configure.ac (ACX_BUGURL): Update.
277         * configure: Regenerate.
279 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
281         PR other/79046
282         * configure.ac: Add GCC_BASE_VER.
283         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
284         get version from BASE-VER file.
285         * configure: Regenerated.
286         * Makefile.in: Regenerated.
288 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
290         * libquadmath.texi: Bump @copying's copyright year.
292 2016-11-15  Matthias Klose  <doko@ubuntu.com>
294         * configure: Regenerate.
296 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
298         * libquadmath.texi: Bump @copying's copyright year.
300 2015-08-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
302         * Makefile.am (libquadmath_la_SOURCES): Add matha/logbq.c.
303         * Makefile.in: Regenerate.
304         * libquadmath.texi: Document logbq.
305         * quadmath.h: Add logbq prototype.
306         * quadmath.map: Add logbq.
307         * quadmath_weak.h: Add logbq prototype.
308         * math/logbq.c: New file
310 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
312         * Makefile.in: Regenerated with automake-1.11.6.
313         * aclocal.m4: Likewise.
314         * configure: Likewise.
316 2015-01-26  Matthias Klose  <doko@ubuntu.com>
318         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
319         * configure: Regenerate.
321 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
323         * libquadmath.texi: Bump @copying's copyright year.
325 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
327         PR bootstrap/63784
328         * configure: Regenerated.
330 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
332         PR target/63610
333         * configure: Regenerate.
335 2014-10-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
337         PR libquadmath/55821
338         * Makefile.am: Unconditionally define libquadmath_TEXINFOS.
339         * Makefile.in: Regenerate.
341 2014-10-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
343         PR libquadmath/55821
344         * Makefile.am: Conditionally define info_TEXINFOS and
345         libquadmath_TEXINFOS.
346         * Makefile.in: Regenerate.
348 2014-10-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
350         PR libquadmath/63487
351         * libquadmath.texi (sincosq): Fix typo.
353 2014-01-02  Tobias Burnus  <burnus@net-b.de>
355         * libquadmath.texi: Bump @copying's copyright year.
357 2013-12-04  Richard Sandiford  <rdsandiford@googlemail.com>
359         * Makefile.am (AM_CPPFLAGS): Define.
360         * Makefile.in: Regenerate.
361         * printf/gmp-impl.h: Remove path from longlong.h include.
363 2013-09-20  Alan Modra  <amodra@gmail.com>
365         * configure: Regenerate.
367 2013-03-06  Shakthi Kannan  <shakthimaan@gmail.com>
369         PR libquadmath/55473
370         * quadmath.h: Add 'extern "C"' block for C++ use.
372 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
374         PR libquadmath/56379
375         * strtod/strtod_l.c (mpn_lshift_1): Rewritten as function-like
376         macro.
378 2013-02-17  Tobias Burnus  <burnus@net-b.de>
380         * math/cacoshq.c (cacoshq): Call signbitq instead of signbit.
382 2013-02-06  Richard Sandiford  <rdsandiford@googlemail.com>
384         Revert previous patch.
386 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
388         Update copyright years.
390 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
392         PR libquadmath/56072
393         * libquadmath.texi (M_PI_2q, M_PI_4q): Fix up description.
395 2012-12-13  Jakub Jelinek  <jakub@redhat.com>
397         * math/cbrtq.c (cbrtq): Use Q suffixed floating point constants
398         instead of L suffixed ones.
399         * math/fmaq.c (fmaq): Likewise.
400         * math/rintq.c (TWO112): Likewise.
402 2012-12-03  Tobias Burnus  <burnus@net-b.de>
404         * strtod/strtod_l.c (___STRTOF_INTERNAL): Fix exponent
405         reading.
407 2012-11-25  Tobias Burnus  <burnus@net-b.de>
409         PR libquadmath/55462
410         * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
411         instead of nonexisting HAVE_GET_ROUNDING_MODE.
413 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
415         PR bootstrap/55455
416         * quadmath-rounding-mode.h (get_rounding_mode): Don't pass
417         void to fegetround.
419 2012-11-23  Tobias Burnus  <burnus@net-b.de>
420             Joseph Myers  <joseph@codesourcery.com>
422         * quadmath-rounding-mode.h: New.
423         * printf/fpioconst.c: Update from GLIBC. Fix strtod rounding.
424         * printf/fpioconst.h: Ditto.
425         * printf/printf_fp.c (__quadmath_printf_fp): Update from GLIBC.
426         Make printf respect the rounding mode for decimal output.
427         * printf/printf_fphex.c (__quadmath_printf_fphex): Update from
428         GLIBC.  Make printf respect the rounding mode for hex output.
429         * strtod/strtod_l.c: Update from GLIBC. Make strtod respect the
430         rounding mode. Fix strtod handling of underflow.
432 2012-11-22  David S. Miller  <davem@davemloft.net>
433             Tobias Burnus  <burnus@net-b.de>
434             Joseph Myers  <joseph@codesourcery.com>
436         * math/atanq.c (atanq): Update from GLIBC. Handle tiny and
437         very large arguments properly.
438         * math/j0q.c (y0q): Update from GLIBC. Avoid arithmetic
439         underflow when 'x' is very small.
440         * math/j1q.c (y1q): Ditto.
441         * math/log1pq.c (log1pq): Update from GLIBC. Saturate
442         nonzero exponents with absolute value below 0x1p-128 to
443         +/- 0x1p-128.
444         * math/powq.c (powq): Update from GLIBC. If xm1 is
445         smaller than LDBL_EPSILON/2.0L, just return xm1.
447 2012-11-21  Tobias Burnus  <burnus@net-b.de>
449         PR libquadmath/55225
450         * math/lgammaq.c (lgammaq): Use local variable if
451         math.h does not provide signgam.
452         * acinclude.m4 (LIBQUAD_CHECK_MATH_H_SIGNGAM): New check.
453         * configure.ac: Use it.
454         * configure: Regenerate.
455         * config.h.in: Regenerate.
457 2012-11-15  Tobias Burnus  <burnus@net-b.de>
458             Joseph Myers  <joseph@codesourcery.com>
460         * math/fmaq.c (fmaq): Merge from GLIBC. Fix fma
461         underflows with small x * y; Fix overflow results
462         outside round-to-nearest mode; make use of Dekker
463         and Knuth algorithms use round-to-nearest.
465 2012-11-01  Tobias Burnus  <burnus@net-b.de>
467         * math/fmaq.c (fmaq): Fix build.
469 2012-11-01  Tobias Burnus  <burnus@net-b.de>
470             Joseph Myers  <joseph@codesourcery.com>
472         * math/fmaq.c (fmaq): Merge from GLIBC. Handle cases
473         with small x * y using scaling, not as x * y + z.
474         * math/lgammaq.c (lgammaq): Fix signgam handling.
476 2012-11-01  Tobias Burnus  <burnus@net-b.de>
478         * Makefile.am (libquadmath_la_SOURCES): Add new math/* files.
479         * Makefile.in: Regenerated.
480         * math/acoshq.c: Update comment.
481         * math/acosq.c: Ditto.
482         * math/asinhq.c: Ditto.
483         * math/asinq.c: Ditto.
484         * math/atan2q.c: Ditto.
485         * math/atanhq.c: Ditto.
486         * math/ceilq.c: Ditto.
487         * math/copysignq.c: Ditto.
488         * math/cosq.c: Ditto.
489         * math/coshq.c: Ditto.
490         * math/erfq.c: Ditto.
491         * math/fabsq.c: Ditto.
492         * math/finiteq.c: Ditto.
493         * math/floorq.c: Ditto.
494         * math/fmodq.c: Ditto.
495         * math/frexpq.c: Ditto.
496         * math/isnanq.c: Ditto.
497         * math/j0q.c: Ditto.
498         * math/j1q.c: Ditto.
499         * math/ldexpq.c: Ditto.
500         * math/llroundq.c: Ditto.
501         * math/log10q.c: Ditto.
502         * math/log1pq.c: Ditto.
503         * math/log2q.c: Ditto.
504         * math/logq.c: Ditto.
505         * math/lroundq.c: Ditto.
506         * math/modfq.c: Ditto.
507         * math/nextafterq.c: Ditto.
508         * math/powq.c: Ditto.
509         * math/rem_pio2q.c: Ditto.
510         * math/remainderq.c: Ditto.
511         * math/rintq.c: Ditto.
512         * math/roundq.c: Ditto.
513         * math/scalblnq.c: Ditto.
514         * math/scalbnq.c: Ditto.
515         * math/sincosq_kernel.c: Ditto.
516         * math/sinq.c: Ditto.
517         * math/tanq.c: Ditto.
518         * math/expq.c: Ditto.
519         (__expq_table, expq): Renamed local array from __expl_table.
520         * math/cosq_kernel.c (__quadmath_kernel_cosq): Fix sign handling.
521         * math/cacoshq.c: Changes from GLIBC; fix returned sign.
522         * math/casinhq.c: Changes from GLIBC to fix special-case.
523         * math/cbrtq.c: Use modified GLIBC version.
524         * math/complex.c (ccoshd, cexpq, clog10q, clogq, csinhq, csinq,
525         ctanhq, ctanq): Moved to separates files.
526         (mult_c128, div_c128): Removed no longer needed functions.
527         (cexpiq): Call sincosq instead of sinq and cosq.
528         (cosq): Call cosh(-re,im) instead of cosq/sinq/sinh/cosh.
529         * math/ccoshq.c (ccoshq): New file, moved from complex.c and
530         modified based on GLIBC.
531         * math/cexpq.c (cexp): Ditto.
532         * math/clog10q.c (clog10q): Ditto.
533         * math/clogq.c (clogq): Ditto.
534         * math/csinhq.c: Ditto.
535         * math/csinq.c: Ditto.
536         * math/csqrtq.c: Ditto.
537         * math/ctanhq.c: Ditto.
538         * math/ctanq.c: Ditto.
539         * math/fmaq.c (fmaq): Port TININESS_AFTER_ROUNDING handling
540         from GLIBC.
541         * math/ilogbq.c (ilogbq): Add errno = EDOM handling.
542         * math/isinf_nsq.c (__quadmath_isinf_nsq): New file, ported
543         from GLIBC.
544         * math/lgammaq.c (lgammaq): Add signgam handling.
545         * math/sinhq.c (sinhq): Fix sign handling.
546         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
547         * math/tgammaq.c (tgammaq): Ditto.
548         * math/x2y2m1q.c: New file.
549         * quadmath-imp.h (TININESS_AFTER_ROUNDING): New define.
550         (__quadmath_x2y2m1q, __quadmath_isinf_nsq): New prototypes.
552 2012-10-31  Tobias Burnus  <burnus@net-b.de>
553             Joseph Myers <joseph@codesourcery.com>
554             David S. Miller <davem@davemloft.net>
555             Ulrich Drepper <drepper@redhat.com>
556             Marek Polacek <polacek@redhat.com>:
557             Petr Baudis <pasky@suse.cz>
559         * math/complex.c (csqrtq): NaN and INF fixes. 
560         * math/sqrtq.c (sqrt): NaN, INF and < 0 fixes.
561         * math/expm1q.c (expm1q): Changes from GLIBC. Use expq for
562         large parameters. Fix errno for boundary conditions.
563         * math/finiteq.c (finiteq): Add comment.
564         * math/fmaq.c (fmaq): Changes from GLIBC. Fix missing underflows
565         and bad results for some subnormal results. Fix sign of inexact
566         zero return. Fix sign of exact zero return. 
567         Ensure additions are not scheduled after fetestexcept.
568         * math/jnq.c (jnq): Changes from GLIBC. Set up errno properly
569         for ynq. Fix jnq precision.
570         * math/nearbyintq.c (nearbyintq): Changes from GLIBC. Do not
571         manipulate bits before adding and subtracting TWO112[sx].
572         * math/rintq.c (rintq): Ditto.
573         * math/scalbnq.c (scalbnq): Changes from GLIBC. Fix integer
574         overflow.
576 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
578         * configure: Regenerated.
580 2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>
582         PR libstdc++/51007
583         * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
584         * configure: Regenerated.
586 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
588         * configure: Regenerated.
590 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
592         * configure: Regenerate.
594 2011-11-07  Kai Tietz  <ktietz@redhat.com>
596         PR target/51007
597         * quadmath-imp.h (ieee854_float128): Adjust
598         for ms-bitfield layout.
600 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
602         * printf/gmp-impl.h: Adapt path to longlong.h.
604 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
606         * Makefile.am (FLAGS_TO_PASS): Define.
607         * Makefile.in: Regenerate.
609 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
611         * math/rem_pio2q.c (__quadmath_kernel_rem_pio2): Fix up fq to y
612         conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
614 2011-04-03  Tobias Burnus  <burnus@net-b.de>
616         PR fortran/48311
617         * libquadmath.texi (strtoflt128): Fix typo.
618         (quadmath_snprintf): Move note up, make @item.
620 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
622         * printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
623         mempcpy.
625 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
627         PR bootstrap/48135
628         * configure.ac (quadmath_use_symver): Handle --disable-symvers.
629         * configure: Regenerate.
631 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
633         * printf/quadmath-printf.c (quadmath_snprintf): Make sure
634         that for size > 0 str is always zero terminated.
636 2011-02-20  Jakub Jelinek  <jakub@redhat.com>
638         PR bootstrap/47827
639         * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").
641 2011-02-17  Jakub Jelinek  <jakub@redhat.com>
643         * libquadmath.texi (FLT128_DIG, FLT128_MIN_10_EXP,
644         FLT128_MAX_10_EXP): Document.
645         (strtoflt128): Remove obsolete comment.
646         * configure.ac (HAVE_STRTOULL): New check.
647         * printf/gmp-impl.h (mpn_construct_float128): New prototype,
648         define.
649         * printf/mul_n.c: Include <config.h>.
650         * printf/add_n.c: Likewise.
651         * printf/cmp.c: Likewise.
652         * printf/fpioconst.c: Likewise.
653         * printf/mul_1.c: Likewise.
654         * printf/rshift.c: Likewise.
655         * printf/lshift.c: Likewise.
656         * printf/submul_1.c: Likewise.
657         * printf/sub_n.c: Likewise.
658         * printf/divrem.c: Likewise.
659         * printf/addmul_1.c: Likewise.
660         * printf/mul.c: Likewise.
661         * printf/quadmath-printf.h (isupper, isdigit, tolower): Change
662         to avoid evaluating argument multiple times.
663         (isxdigit): Redefine.
664         * strtod/strtoflt128.c: New file.
665         * strtod/strtod_l.c: New file.
666         * strtod/mpn2flt128.c: New file.
667         * strtod/grouping.h: New file.
668         * strtod/tens_in_limb.c: New file.
669         * gdtoa/arith.h: Removed.
670         * gdtoa/gd_qnan.h: Removed.
671         * gdtoa/gdtoa_fltrnds.h: Removed.
672         * gdtoa/gdtoa.h: Removed.
673         * gdtoa/gdtoaimp.h: Removed.
674         * gdtoa/gethex.c: Removed.
675         * gdtoa/gmisc.c: Removed.
676         * gdtoa/hd_init.c: Removed.
677         * gdtoa/hexnan.c: Removed.
678         * gdtoa/makefile: Removed.
679         * gdtoa/misc.c: Removed.
680         * gdtoa/README.gdtoa: Removed.
681         * gdtoa/smisc.c: Removed.
682         * gdtoa/strtodg.c: Removed.
683         * gdtoa/strtopQ.c: Removed.
684         * gdtoa/sum.c: Removed.
685         * quadmath.h (FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP):
686         Define.
687         * Makefile.am (libquadmath_la_SOURCES): Remove gdtoa/*, add
688         strtod/strtoflt128.c, strtod/mpn2flt128.c and strtod/tens_in_limb.c.
689         * config.h.in: Regenerated.
690         * configure: Regenerated.
691         * Makefile.in: Regenerated.
693 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
695         * printf/quadmath-printf.c: Also check __GLIBC__ when checking
696         whether workarounds for printf hook handling should be added.
698         * configure.ac: Check for locale.h too.
699         (USE_LOCALE_SUPPORT): Remove check.
700         (USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
701         (USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
702         * printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
703         or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
704         for wide version.
705         * printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
706         * printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
707         (__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
708         version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
709         Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
710         USE_I18N_NUMBER_H #ifdef.
711         * configure: Regenerated.
712         * config.h.in: Regenerated.
714 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
716         PR bootstrap/47736
717         * configure.ac (HAVE_PRINTF_HOOKS): Test if printf_info struct has
718         user field.
719         * printf/quadmath-printf.c (quadmath_snprintf): Clear whole info
720         field instead of setting individual fields to 0.  Don't set info.user
721         to -1.
722         * configure: Regenerated.
724         * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
725         * printf/printf_fp.c: Don't include <alloca.h>.
726         * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
727         * configure: Regenerated.
729         PR fortran/47642
730         * libquadmath.texi (quadmath_snprintf): Document.
731         (quadmath_flt128tostr): Remove.
732         * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
733         Remove  quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
734         gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
735         * quadmath.h (quadmath_snprintf): New prototype.
736         (quadmath_flt128tostr): Remove.
737         * quadmath_weak.h (quadmath_snprintf): Add.
738         (quadmath_flt128tostr): Remove.
739         * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
740         wctype.h, limits.h, ctype.h, printf.h, errno.h.
741         (AC_USE_SYSTEM_EXTENSIONS): Add.
742         (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
743         USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
744         * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf.  Remove
745         quadmath_flt128tostr.
746         * printf/printf_fphex.c: New file.
747         * printf/_itowa.h: New file.
748         * printf/mul_n.c: New file.
749         * printf/quadmath-printf.h: New file.
750         * printf/submul_1.c: New file.
751         * printf/quadmath-printf.c: New file.
752         * printf/gmp-impl.h: New file.
753         * printf/lshift.c: New file.
754         * printf/fpioconst.h: New file.
755         * printf/add_n.c: New file.
756         * printf/cmp.c: New file.
757         * printf/sub_n.c: New file.
758         * printf/mul.c: New file.
759         * printf/divrem.c: New file.
760         * printf/addmul_1.c: New file.
761         * printf/printf_fp.c: New file.
762         * printf/_itoa.h: New file.
763         * printf/fpioconst.c: New file.
764         * printf/_i18n_number.h: New file.
765         * printf/flt1282mpn.c: New file.
766         * printf/rshift.c: New file.
767         * printf/mul_1.c: New file.
768         * quadmath_io.c: Removed.
769         * gdtoa/gdtoa.c: Removed.
770         * gdtoa/g__fmt.c: Removed.
771         * gdtoa/g_Qfmt.c: Removed.
772         * gdtoa/dmisc.c: Removed.
773         * gdtoa/ulp.c: Removed.
774         * config.h.in: Regenerated.
775         * configure: Regenerated.
776         * Makefile.in: Regenerated.
778 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
780         * Makefile.in: Regenerate.
781         * aclocal.m4: Likewise.
782         * configure: Likewise.
784 2011-01-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
786         PR libquadmath/47293
787         * gdtoa/qd_qnan.h: Fix NAN bit patterns.
788         * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
790 2011-01-17  Tobias Burnus  <burnus@net-b.de>
792         PR fortran/47295
793         * libquadmath.text: Document typedef and constants.
795 2011-01-17  Tobias Burnus  <burnus@net-b.de>
797         PR fortran/46817
798         * quadmath-imp.h: Refer to libquadmath not ot libiberty,
799         bump copyright year and use /**/ instead of // comments.
800         * quadmath.h: Ditto.
801         * quadmath-weak.h: Ditto.
802         * quadmath_io.c: Ditto.
804 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
806         PR libfortran/47322
807         * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
809         PR fortran/46625
810         * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
811         and quadmath_dtoaq.  Add strtoflt128 and quadmath_flt128tostr.
812         * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
813         (strtoflt128, quadmath_flt128tostr): Add.
814         * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
815         (strtoflt128): ... this.  Return __float128, instead of writing
816         to memory pointed by last argument.
817         * quadmath.h: Use C style comments instead of C++ style.
818         (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
819         (strtoflt128, quadmath_flt128tostr): Add prototypes.
820         * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
821         (quadmath_strtopQ): Rename to strtoflt128.  Adjust prototype,
822         adjust examples.
823         * quadmath_io.c (quadmath_dtoaq): Rename to...
824         (quadmath_flt128tostr): ... this.
826         * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
827         Use it for all prototypes.
829         PR fortran/46416
830         * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
831         const from prototype argument.
832         (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
833         llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
834         (__quadmath_extern_inline): Define.
835         (cimagq, conjq, crealq): New inlines.
836         * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
837         math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
838         math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
839         math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
840         * Makefile.in: Regenerated.
841         * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
842         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
843         * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
844         (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
845         tests instead of __BIG_ENDIAN__.
846         * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
847         fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
848         and remquoq.
849         * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
850         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
851         * math/cprojq.c: New file.
852         * math/ilogbq.c: New file.
853         * math/fminq.c: New file.
854         * math/llrintq.c: New file.
855         * math/log2q.c: New file.
856         * math/lrintq.c: New file.
857         * math/crealq.c: New file.
858         * math/nearbyintq.c: New file.
859         * math/fmaxq.c: New file.
860         * math/conjq.c: New file.
861         * math/remquoq.c: New file.
862         * math/cimagq.c: New file.
863         * math/fdimq.c: New file.
865         * math/ldexpq.c: Include errno.h.  Set errno to ERANGE if needed.
867         PR fortran/46416
868         * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
869         New prototypes.
870         (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
871         M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
872         * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
873         catanhq): Add.
874         * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
875         QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
876         * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
877         catanq and catanhq.
878         * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
879         math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
880         and math/catanhq.c.
881         * Makefile.in: Regenerated.
882         * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
883         catanq, catanhq): Add.
884         * math/cacoshq.c: New file.
885         * math/cacosq.c: New file.
886         * math/catanq.c: New file.
887         * math/catanhq.c: New file.
888         * math/casinq.c: New file.
889         * math/casinhq.c: New file.
891         * math/hypotq.c (hypotq): Use Q suffix instead of L.
892         * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
893         * math/cosq.c (cosq): Likewise.
895         PR fortran/46402
896         * quadmath.map (QUADMATH_1.0): Add fmaq.
897         * configure.ac: Check for fenv.h, feholdexcept, fesetround,
898         feupdateenv, fesetenv and fetestexcept.
899         * configure: Regenerated.
900         * config.h.in: Regenerated.
901         * quadmath.h (fmaq): New prototype.
902         * quadmath_weak.h (fmaq): Add.
903         * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
904         * Makefile.in: Regenerated.
905         * quadmath-imp.h: Include config.h.
906         * math/expq.c: Include fenv.h.
907         (USE_FENV_H): Define if libm support for fe* is there.
908         (expq): Add fesetround etc. support if USE_FENV_H is defined.
909         * math/fmaq.c: New file.
910         * libquadmath.texi (fmaq): Add.
912 2011-01-14  Tobias Burnus  <burnus@net-b.de>
914         PR fortran/47182
915         * configure.ac: Use ACX_BUGURL.
916         * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
917         * Makefile.am: Create libquadmath-vers.texi.
918         * configure.in: Regenerate.
919         * Makefile.in: Regenerate.
921 2011-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
923         PR fortran/47174
924         * Makefile.am (libquadmath.info): Unconditionally override
925         target, not only if BUILD_LIBQUADMATH.
926         * Makefile.in: Regenerate.
927         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
928         avoid warning from automake.
930 2010-12-19  Tobias Burnus  <burnus@net-b.de>
932         PR fortran/46520
933         * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
934         * configure: Regenerate
936 2010-12-13  Tobias Burnus  <burnus@net-b.de>
938         PR fortran/46625
939         * gdtoa/gdtoaimp.h: Mangle internal functions by
940         prefixing them with __quadmath. Don't use gdtoa's strcp(y).
941         * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
942         * gdtoa/misc.c (strcpy): Renamed from strcp and only use
943         if NO_STRING_H is set.
944         * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
945         __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
946         __quadmath prefix to internal functions.
947         * math/cosq.c (cosq): Ditto.
948         * math/sinq.c (cosq): Ditto.
949         * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
950         * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
951         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
952         * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
954 2010-12-08  Tobias Burnus  <burnus@net-b.de>
956         PR fortran/46772
957         * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
958         * gdtoa/gdtoaimp.h: Don't declare strtod.
960 2010-12-08  Tobias Burnus  <burnus@net-b.de>
962         PR fortran/46520
963         * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
964         AC_TRY_LINK and cache libquad_have_float128.
965         * configure: Regenerate.
967 2010-12-08  Tobias Burnus  <burnus@net-b.de>
969         PR fortran/46543
970         * configure.ac: Add texinfo checks.
971         * Makefile.am: Handle .texi documentation.
972         * libquadmath.texi: New.
973         * configure: Regenerated.
974         * Makefile.in: Regenerated.
976 2010-12-06  Tobias Burnus  <burnus@net-b.de>
978         PR fortran/46817
979         * quadmath-imp.h: Add LGPL header.
980         * quadmath.h: Add LGPL header.
981         * quadmath_io.c: Add LGPL header.
982         * quadmath_weak.h: Add LGPL header.
984 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
986         PR target/40125
987         PR lto/46695
988         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
989         * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
990         * aclocal.m4: Regenerate.
991         * configure: Regenerate.
992         * Makefile.in: Regenerate.
994 2010-11-30  Tobias Burnus  <burnus@net-b.de>
996         PR fortran/46594
997         * Makefile.am: Install include files in
998         target/version specific directory.
999         * Makefile.in: Regenerate.
1001 2010-11-30  Tobias Burnus  <burnus@net-b.de>
1003         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
1004         LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
1005         LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
1007 2010-11-29  Kai Tietz  <kai.tietz@onevision.com>
1009         * configure: Regenerated.
1010         * Makefile.in: Regenerated.
1011         * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
1012         (target_alias): Use AC_SUBST for it.
1013         (GCC_NO_EXECUTABLES): Call it.
1014         (AC_PROG_CC): Improve multilib handling.
1015         Check that gcc is used for compilation.
1016         Use pattern from libssp for symbol versioning checking.
1017         * Makefile.am (LTLDFLAGS): Removed.
1018         (libquadmath_la_LDFLAGS): Add -no-undefined.
1019         (libquadmath_la_LINK): Commented out.
1020         (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
1021         (AM_MAKEFLAGS): Add hack for argument passing by top-level.
1022         (MAKEOVERRIDES): New.
1023         * aclocal.m4: Regenerated.
1025 2010-11-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1027         * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
1028         (libquadmath_la_LDFLAGS): ... here.
1029         (quadmath.map-sun): Tabify.
1030         Fix sed expression.
1031         * Makefile.in: Regenerate.
1033 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1034             Tobias Burnus  <burnus@net-b.de>
1036         PR fortran/32049
1037         Initial implementation and checkin.
1039 Copyright (C) 2010-2018 Free Software Foundation, Inc.
1041 Copying and distribution of this file, with or without modification,
1042 are permitted in any medium without royalty provided the copyright
1043 notice and this notice are preserved.