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