tree-if-conv.c: fix ICE seen with -fno-tree-forwprop (PR tree-optimization/84178)
[official-gcc.git] / libquadmath / ChangeLog
blob33ca15f055579645ab0104535d2c683fec0bc1db
1 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3         PR target/84148
4         * configure: Regenerate.
6 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
8         * libquadmath.texi: Bump @copying's copyright year.
10 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12         * Makefile.am: Update AM_CFLAGS.
13         * Makefile.in: Regenerate:
14         * acinclude.m4: Add enable.m4 and cet.m4.
15         * configure: Regenerate.
16         * configure.ac: Set CET_FLAGS. Update XCFLAGS.
18 2017-11-05  Tom de Vries  <tom@codesourcery.com>
20         PR other/82784
21         * printf/gmp-impl.h (MPN_MUL_N_RECURSE): Remove semicolon after
22         "do {} while (0)".
24 2017-09-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
26         PR libquadmath/81848
27         * configure.ac (powerpc*-linux*): Use attribute mode KC to create
28         complex __float128 on PowerPC instead of attribute mode TC.
29         * quadmath.h (__complex128): Likewise.
30         * configure: Regenerate.
31         * math/cbrtq.c (CBRT2): Use __float128 not long double.
32         (CBRT4): Likewise.
33         (CBRT2I): Likewise.
34         (CBRT4I): Likewise.
35         * math/j0q.c (U0): Likewise.
36         * math/sqrtq.c (sqrtq): Don't depend on implicit conversion
37         between __float128, instead explicitly convert the __float128
38         value to long double because the PowerPC does not allow __float128
39         and long double in the same expression.
41 2017-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
43         * math/powq.c (powq): Use uint32_t instead of u_int32_t.
45 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
47         PR libquadmath/65757
48         * quadmath-imp.h (math_opt_barrier, math_force_eval,
49         math_narrow_eval, math_check_force_underflow,
50         math_check_force_underflow_nonneg): Define.
51         * math/ceilq.c: Backport changes from upstream glibc
52         between 2012-11-01 and 2017-07-13.
53         * math/remquoq.c: Likewise.
54         * math/expq.c: Likewise.
55         * math/llroundq.c: Likewise.
56         * math/logq.c: Likewise.
57         * math/atanq.c: Likewise.
58         * math/nearbyintq.c: Likewise.
59         * math/scalblnq.c: Likewise.
60         * math/finiteq.c: Likewise.
61         * math/atanhq.c: Likewise.
62         * math/expm1q.c: Likewise.
63         * math/sinhq.c: Likewise.
64         * math/log10q.c: Likewise.
65         * math/rintq.c: Likewise.
66         * math/roundq.c: Likewise.
67         * math/fmaq.c: Likewise.
68         * math/erfq.c: Likewise.
69         * math/log2q.c: Likewise.
70         * math/lroundq.c: Likewise.
71         * math/j1q.c: Likewise.
72         * math/scalbnq.c: Likewise.
73         * math/truncq.c: Likewise.
74         * math/frexpq.c: Likewise.
75         * math/sincosq.c: Likewise.
76         * math/tanhq.c: Likewise.
77         * math/asinq.c: Likewise.
78         * math/coshq.c: Likewise.
79         * math/j0q.c: Likewise.
80         * math/asinhq.c: Likewise.
81         * math/floorq.c: Likewise.
82         * math/sinq_kernel.c: Likewise.
83         * math/powq.c: Likewise.
84         * math/hypotq.c: Likewise.
85         * math/sincos_table.c: Likewise.
86         * math/rem_pio2q.c: Likewise.
87         * math/nextafterq.c: Likewise.
88         * math/log1pq.c: Likewise.
89         * math/sincosq_kernel.c: Likewise.
90         * math/tanq.c: Likewise.
91         * math/acosq.c: Likewise.
92         * math/lrintq.c: Likewise.
93         * math/llrintq.c: Likewise.
95 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
97         * configure.ac (ACX_BUGURL): Update.
98         * configure: Regenerate.
100 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
102         PR other/79046
103         * configure.ac: Add GCC_BASE_VER.
104         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
105         get version from BASE-VER file.
106         * configure: Regenerated.
107         * Makefile.in: Regenerated.
109 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
111         * libquadmath.texi: Bump @copying's copyright year.
113 2016-11-15  Matthias Klose  <doko@ubuntu.com>
115         * configure: Regenerate.
117 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
119         * libquadmath.texi: Bump @copying's copyright year.
121 2015-08-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
123         * Makefile.am (libquadmath_la_SOURCES): Add matha/logbq.c.
124         * Makefile.in: Regenerate.
125         * libquadmath.texi: Document logbq.
126         * quadmath.h: Add logbq prototype.
127         * quadmath.map: Add logbq.
128         * quadmath_weak.h: Add logbq prototype.
129         * math/logbq.c: New file
131 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
133         * Makefile.in: Regenerated with automake-1.11.6.
134         * aclocal.m4: Likewise.
135         * configure: Likewise.
137 2015-01-26  Matthias Klose  <doko@ubuntu.com>
139         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
140         * configure: Regenerate.
142 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
144         * libquadmath.texi: Bump @copying's copyright year.
146 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
148         PR bootstrap/63784
149         * configure: Regenerated.
151 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
153         PR target/63610
154         * configure: Regenerate.
156 2014-10-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
158         PR libquadmath/55821
159         * Makefile.am: Unconditionally define libquadmath_TEXINFOS.
160         * Makefile.in: Regenerate.
162 2014-10-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
164         PR libquadmath/55821
165         * Makefile.am: Conditionally define info_TEXINFOS and
166         libquadmath_TEXINFOS.
167         * Makefile.in: Regenerate.
169 2014-10-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
171         PR libquadmath/63487
172         * libquadmath.texi (sincosq): Fix typo.
174 2014-01-02  Tobias Burnus  <burnus@net-b.de>
176         * libquadmath.texi: Bump @copying's copyright year.
178 2013-12-04  Richard Sandiford  <rdsandiford@googlemail.com>
180         * Makefile.am (AM_CPPFLAGS): Define.
181         * Makefile.in: Regenerate.
182         * printf/gmp-impl.h: Remove path from longlong.h include.
184 2013-09-20  Alan Modra  <amodra@gmail.com>
186         * configure: Regenerate.
188 2013-03-06  Shakthi Kannan  <shakthimaan@gmail.com>
190         PR libquadmath/55473
191         * quadmath.h: Add 'extern "C"' block for C++ use.
193 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
195         PR libquadmath/56379
196         * strtod/strtod_l.c (mpn_lshift_1): Rewritten as function-like
197         macro.
199 2013-02-17  Tobias Burnus  <burnus@net-b.de>
201         * math/cacoshq.c (cacoshq): Call signbitq instead of signbit.
203 2013-02-06  Richard Sandiford  <rdsandiford@googlemail.com>
205         Revert previous patch.
207 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
209         Update copyright years.
211 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
213         PR libquadmath/56072
214         * libquadmath.texi (M_PI_2q, M_PI_4q): Fix up description.
216 2012-12-13  Jakub Jelinek  <jakub@redhat.com>
218         * math/cbrtq.c (cbrtq): Use Q suffixed floating point constants
219         instead of L suffixed ones.
220         * math/fmaq.c (fmaq): Likewise.
221         * math/rintq.c (TWO112): Likewise.
223 2012-12-03  Tobias Burnus  <burnus@net-b.de>
225         * strtod/strtod_l.c (___STRTOF_INTERNAL): Fix exponent
226         reading.
228 2012-11-25  Tobias Burnus  <burnus@net-b.de>
230         PR libquadmath/55462
231         * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
232         instead of nonexisting HAVE_GET_ROUNDING_MODE.
234 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
236         PR bootstrap/55455
237         * quadmath-rounding-mode.h (get_rounding_mode): Don't pass
238         void to fegetround.
240 2012-11-23  Tobias Burnus  <burnus@net-b.de>
241             Joseph Myers  <joseph@codesourcery.com>
243         * quadmath-rounding-mode.h: New.
244         * printf/fpioconst.c: Update from GLIBC. Fix strtod rounding.
245         * printf/fpioconst.h: Ditto.
246         * printf/printf_fp.c (__quadmath_printf_fp): Update from GLIBC.
247         Make printf respect the rounding mode for decimal output.
248         * printf/printf_fphex.c (__quadmath_printf_fphex): Update from
249         GLIBC.  Make printf respect the rounding mode for hex output.
250         * strtod/strtod_l.c: Update from GLIBC. Make strtod respect the
251         rounding mode. Fix strtod handling of underflow.
253 2012-11-22  David S. Miller  <davem@davemloft.net>
254             Tobias Burnus  <burnus@net-b.de>
255             Joseph Myers  <joseph@codesourcery.com>
257         * math/atanq.c (atanq): Update from GLIBC. Handle tiny and
258         very large arguments properly.
259         * math/j0q.c (y0q): Update from GLIBC. Avoid arithmetic
260         underflow when 'x' is very small.
261         * math/j1q.c (y1q): Ditto.
262         * math/log1pq.c (log1pq): Update from GLIBC. Saturate
263         nonzero exponents with absolute value below 0x1p-128 to
264         +/- 0x1p-128.
265         * math/powq.c (powq): Update from GLIBC. If xm1 is
266         smaller than LDBL_EPSILON/2.0L, just return xm1.
268 2012-11-21  Tobias Burnus  <burnus@net-b.de>
270         PR libquadmath/55225
271         * math/lgammaq.c (lgammaq): Use local variable if
272         math.h does not provide signgam.
273         * acinclude.m4 (LIBQUAD_CHECK_MATH_H_SIGNGAM): New check.
274         * configure.ac: Use it.
275         * configure: Regenerate.
276         * config.h.in: Regenerate.
278 2012-11-15  Tobias Burnus  <burnus@net-b.de>
279             Joseph Myers  <joseph@codesourcery.com>
281         * math/fmaq.c (fmaq): Merge from GLIBC. Fix fma
282         underflows with small x * y; Fix overflow results
283         outside round-to-nearest mode; make use of Dekker
284         and Knuth algorithms use round-to-nearest.
286 2012-11-01  Tobias Burnus  <burnus@net-b.de>
288         * math/fmaq.c (fmaq): Fix build.
290 2012-11-01  Tobias Burnus  <burnus@net-b.de>
291             Joseph Myers  <joseph@codesourcery.com>
293         * math/fmaq.c (fmaq): Merge from GLIBC. Handle cases
294         with small x * y using scaling, not as x * y + z.
295         * math/lgammaq.c (lgammaq): Fix signgam handling.
297 2012-11-01  Tobias Burnus  <burnus@net-b.de>
299         * Makefile.am (libquadmath_la_SOURCES): Add new math/* files.
300         * Makefile.in: Regenerated.
301         * math/acoshq.c: Update comment.
302         * math/acosq.c: Ditto.
303         * math/asinhq.c: Ditto.
304         * math/asinq.c: Ditto.
305         * math/atan2q.c: Ditto.
306         * math/atanhq.c: Ditto.
307         * math/ceilq.c: Ditto.
308         * math/copysignq.c: Ditto.
309         * math/cosq.c: Ditto.
310         * math/coshq.c: Ditto.
311         * math/erfq.c: Ditto.
312         * math/fabsq.c: Ditto.
313         * math/finiteq.c: Ditto.
314         * math/floorq.c: Ditto.
315         * math/fmodq.c: Ditto.
316         * math/frexpq.c: Ditto.
317         * math/isnanq.c: Ditto.
318         * math/j0q.c: Ditto.
319         * math/j1q.c: Ditto.
320         * math/ldexpq.c: Ditto.
321         * math/llroundq.c: Ditto.
322         * math/log10q.c: Ditto.
323         * math/log1pq.c: Ditto.
324         * math/log2q.c: Ditto.
325         * math/logq.c: Ditto.
326         * math/lroundq.c: Ditto.
327         * math/modfq.c: Ditto.
328         * math/nextafterq.c: Ditto.
329         * math/powq.c: Ditto.
330         * math/rem_pio2q.c: Ditto.
331         * math/remainderq.c: Ditto.
332         * math/rintq.c: Ditto.
333         * math/roundq.c: Ditto.
334         * math/scalblnq.c: Ditto.
335         * math/scalbnq.c: Ditto.
336         * math/sincosq_kernel.c: Ditto.
337         * math/sinq.c: Ditto.
338         * math/tanq.c: Ditto.
339         * math/expq.c: Ditto.
340         (__expq_table, expq): Renamed local array from __expl_table.
341         * math/cosq_kernel.c (__quadmath_kernel_cosq): Fix sign handling.
342         * math/cacoshq.c: Changes from GLIBC; fix returned sign.
343         * math/casinhq.c: Changes from GLIBC to fix special-case.
344         * math/cbrtq.c: Use modified GLIBC version.
345         * math/complex.c (ccoshd, cexpq, clog10q, clogq, csinhq, csinq,
346         ctanhq, ctanq): Moved to separates files.
347         (mult_c128, div_c128): Removed no longer needed functions.
348         (cexpiq): Call sincosq instead of sinq and cosq.
349         (cosq): Call cosh(-re,im) instead of cosq/sinq/sinh/cosh.
350         * math/ccoshq.c (ccoshq): New file, moved from complex.c and
351         modified based on GLIBC.
352         * math/cexpq.c (cexp): Ditto.
353         * math/clog10q.c (clog10q): Ditto.
354         * math/clogq.c (clogq): Ditto.
355         * math/csinhq.c: Ditto.
356         * math/csinq.c: Ditto.
357         * math/csqrtq.c: Ditto.
358         * math/ctanhq.c: Ditto.
359         * math/ctanq.c: Ditto.
360         * math/fmaq.c (fmaq): Port TININESS_AFTER_ROUNDING handling
361         from GLIBC.
362         * math/ilogbq.c (ilogbq): Add errno = EDOM handling.
363         * math/isinf_nsq.c (__quadmath_isinf_nsq): New file, ported
364         from GLIBC.
365         * math/lgammaq.c (lgammaq): Add signgam handling.
366         * math/sinhq.c (sinhq): Fix sign handling.
367         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
368         * math/tgammaq.c (tgammaq): Ditto.
369         * math/x2y2m1q.c: New file.
370         * quadmath-imp.h (TININESS_AFTER_ROUNDING): New define.
371         (__quadmath_x2y2m1q, __quadmath_isinf_nsq): New prototypes.
373 2012-10-31  Tobias Burnus  <burnus@net-b.de>
374             Joseph Myers <joseph@codesourcery.com>
375             David S. Miller <davem@davemloft.net>
376             Ulrich Drepper <drepper@redhat.com>
377             Marek Polacek <polacek@redhat.com>:
378             Petr Baudis <pasky@suse.cz>
380         * math/complex.c (csqrtq): NaN and INF fixes. 
381         * math/sqrtq.c (sqrt): NaN, INF and < 0 fixes.
382         * math/expm1q.c (expm1q): Changes from GLIBC. Use expq for
383         large parameters. Fix errno for boundary conditions.
384         * math/finiteq.c (finiteq): Add comment.
385         * math/fmaq.c (fmaq): Changes from GLIBC. Fix missing underflows
386         and bad results for some subnormal results. Fix sign of inexact
387         zero return. Fix sign of exact zero return. 
388         Ensure additions are not scheduled after fetestexcept.
389         * math/jnq.c (jnq): Changes from GLIBC. Set up errno properly
390         for ynq. Fix jnq precision.
391         * math/nearbyintq.c (nearbyintq): Changes from GLIBC. Do not
392         manipulate bits before adding and subtracting TWO112[sx].
393         * math/rintq.c (rintq): Ditto.
394         * math/scalbnq.c (scalbnq): Changes from GLIBC. Fix integer
395         overflow.
397 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
399         * configure: Regenerated.
401 2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>
403         PR libstdc++/51007
404         * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
405         * configure: Regenerated.
407 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
409         * configure: Regenerated.
411 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
413         * configure: Regenerate.
415 2011-11-07  Kai Tietz  <ktietz@redhat.com>
417         PR target/51007
418         * quadmath-imp.h (ieee854_float128): Adjust
419         for ms-bitfield layout.
421 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
423         * printf/gmp-impl.h: Adapt path to longlong.h.
425 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
427         * Makefile.am (FLAGS_TO_PASS): Define.
428         * Makefile.in: Regenerate.
430 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
432         * math/rem_pio2q.c (__quadmath_kernel_rem_pio2): Fix up fq to y
433         conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
435 2011-04-03  Tobias Burnus  <burnus@net-b.de>
437         PR fortran/48311
438         * libquadmath.texi (strtoflt128): Fix typo.
439         (quadmath_snprintf): Move note up, make @item.
441 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
443         * printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
444         mempcpy.
446 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
448         PR bootstrap/48135
449         * configure.ac (quadmath_use_symver): Handle --disable-symvers.
450         * configure: Regenerate.
452 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
454         * printf/quadmath-printf.c (quadmath_snprintf): Make sure
455         that for size > 0 str is always zero terminated.
457 2011-02-20  Jakub Jelinek  <jakub@redhat.com>
459         PR bootstrap/47827
460         * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").
462 2011-02-17  Jakub Jelinek  <jakub@redhat.com>
464         * libquadmath.texi (FLT128_DIG, FLT128_MIN_10_EXP,
465         FLT128_MAX_10_EXP): Document.
466         (strtoflt128): Remove obsolete comment.
467         * configure.ac (HAVE_STRTOULL): New check.
468         * printf/gmp-impl.h (mpn_construct_float128): New prototype,
469         define.
470         * printf/mul_n.c: Include <config.h>.
471         * printf/add_n.c: Likewise.
472         * printf/cmp.c: Likewise.
473         * printf/fpioconst.c: Likewise.
474         * printf/mul_1.c: Likewise.
475         * printf/rshift.c: Likewise.
476         * printf/lshift.c: Likewise.
477         * printf/submul_1.c: Likewise.
478         * printf/sub_n.c: Likewise.
479         * printf/divrem.c: Likewise.
480         * printf/addmul_1.c: Likewise.
481         * printf/mul.c: Likewise.
482         * printf/quadmath-printf.h (isupper, isdigit, tolower): Change
483         to avoid evaluating argument multiple times.
484         (isxdigit): Redefine.
485         * strtod/strtoflt128.c: New file.
486         * strtod/strtod_l.c: New file.
487         * strtod/mpn2flt128.c: New file.
488         * strtod/grouping.h: New file.
489         * strtod/tens_in_limb.c: New file.
490         * gdtoa/arith.h: Removed.
491         * gdtoa/gd_qnan.h: Removed.
492         * gdtoa/gdtoa_fltrnds.h: Removed.
493         * gdtoa/gdtoa.h: Removed.
494         * gdtoa/gdtoaimp.h: Removed.
495         * gdtoa/gethex.c: Removed.
496         * gdtoa/gmisc.c: Removed.
497         * gdtoa/hd_init.c: Removed.
498         * gdtoa/hexnan.c: Removed.
499         * gdtoa/makefile: Removed.
500         * gdtoa/misc.c: Removed.
501         * gdtoa/README.gdtoa: Removed.
502         * gdtoa/smisc.c: Removed.
503         * gdtoa/strtodg.c: Removed.
504         * gdtoa/strtopQ.c: Removed.
505         * gdtoa/sum.c: Removed.
506         * quadmath.h (FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP):
507         Define.
508         * Makefile.am (libquadmath_la_SOURCES): Remove gdtoa/*, add
509         strtod/strtoflt128.c, strtod/mpn2flt128.c and strtod/tens_in_limb.c.
510         * config.h.in: Regenerated.
511         * configure: Regenerated.
512         * Makefile.in: Regenerated.
514 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
516         * printf/quadmath-printf.c: Also check __GLIBC__ when checking
517         whether workarounds for printf hook handling should be added.
519         * configure.ac: Check for locale.h too.
520         (USE_LOCALE_SUPPORT): Remove check.
521         (USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
522         (USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
523         * printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
524         or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
525         for wide version.
526         * printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
527         * printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
528         (__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
529         version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
530         Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
531         USE_I18N_NUMBER_H #ifdef.
532         * configure: Regenerated.
533         * config.h.in: Regenerated.
535 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
537         PR bootstrap/47736
538         * configure.ac (HAVE_PRINTF_HOOKS): Test if printf_info struct has
539         user field.
540         * printf/quadmath-printf.c (quadmath_snprintf): Clear whole info
541         field instead of setting individual fields to 0.  Don't set info.user
542         to -1.
543         * configure: Regenerated.
545         * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
546         * printf/printf_fp.c: Don't include <alloca.h>.
547         * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
548         * configure: Regenerated.
550         PR fortran/47642
551         * libquadmath.texi (quadmath_snprintf): Document.
552         (quadmath_flt128tostr): Remove.
553         * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
554         Remove  quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
555         gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
556         * quadmath.h (quadmath_snprintf): New prototype.
557         (quadmath_flt128tostr): Remove.
558         * quadmath_weak.h (quadmath_snprintf): Add.
559         (quadmath_flt128tostr): Remove.
560         * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
561         wctype.h, limits.h, ctype.h, printf.h, errno.h.
562         (AC_USE_SYSTEM_EXTENSIONS): Add.
563         (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
564         USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
565         * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf.  Remove
566         quadmath_flt128tostr.
567         * printf/printf_fphex.c: New file.
568         * printf/_itowa.h: New file.
569         * printf/mul_n.c: New file.
570         * printf/quadmath-printf.h: New file.
571         * printf/submul_1.c: New file.
572         * printf/quadmath-printf.c: New file.
573         * printf/gmp-impl.h: New file.
574         * printf/lshift.c: New file.
575         * printf/fpioconst.h: New file.
576         * printf/add_n.c: New file.
577         * printf/cmp.c: New file.
578         * printf/sub_n.c: New file.
579         * printf/mul.c: New file.
580         * printf/divrem.c: New file.
581         * printf/addmul_1.c: New file.
582         * printf/printf_fp.c: New file.
583         * printf/_itoa.h: New file.
584         * printf/fpioconst.c: New file.
585         * printf/_i18n_number.h: New file.
586         * printf/flt1282mpn.c: New file.
587         * printf/rshift.c: New file.
588         * printf/mul_1.c: New file.
589         * quadmath_io.c: Removed.
590         * gdtoa/gdtoa.c: Removed.
591         * gdtoa/g__fmt.c: Removed.
592         * gdtoa/g_Qfmt.c: Removed.
593         * gdtoa/dmisc.c: Removed.
594         * gdtoa/ulp.c: Removed.
595         * config.h.in: Regenerated.
596         * configure: Regenerated.
597         * Makefile.in: Regenerated.
599 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
601         * Makefile.in: Regenerate.
602         * aclocal.m4: Likewise.
603         * configure: Likewise.
605 2011-01-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
607         PR libquadmath/47293
608         * gdtoa/qd_qnan.h: Fix NAN bit patterns.
609         * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
611 2011-01-17  Tobias Burnus  <burnus@net-b.de>
613         PR fortran/47295
614         * libquadmath.text: Document typedef and constants.
616 2011-01-17  Tobias Burnus  <burnus@net-b.de>
618         PR fortran/46817
619         * quadmath-imp.h: Refer to libquadmath not ot libiberty,
620         bump copyright year and use /**/ instead of // comments.
621         * quadmath.h: Ditto.
622         * quadmath-weak.h: Ditto.
623         * quadmath_io.c: Ditto.
625 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
627         PR libfortran/47322
628         * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
630         PR fortran/46625
631         * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
632         and quadmath_dtoaq.  Add strtoflt128 and quadmath_flt128tostr.
633         * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
634         (strtoflt128, quadmath_flt128tostr): Add.
635         * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
636         (strtoflt128): ... this.  Return __float128, instead of writing
637         to memory pointed by last argument.
638         * quadmath.h: Use C style comments instead of C++ style.
639         (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
640         (strtoflt128, quadmath_flt128tostr): Add prototypes.
641         * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
642         (quadmath_strtopQ): Rename to strtoflt128.  Adjust prototype,
643         adjust examples.
644         * quadmath_io.c (quadmath_dtoaq): Rename to...
645         (quadmath_flt128tostr): ... this.
647         * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
648         Use it for all prototypes.
650         PR fortran/46416
651         * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
652         const from prototype argument.
653         (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
654         llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
655         (__quadmath_extern_inline): Define.
656         (cimagq, conjq, crealq): New inlines.
657         * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
658         math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
659         math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
660         math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
661         * Makefile.in: Regenerated.
662         * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
663         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
664         * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
665         (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
666         tests instead of __BIG_ENDIAN__.
667         * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
668         fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
669         and remquoq.
670         * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
671         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
672         * math/cprojq.c: New file.
673         * math/ilogbq.c: New file.
674         * math/fminq.c: New file.
675         * math/llrintq.c: New file.
676         * math/log2q.c: New file.
677         * math/lrintq.c: New file.
678         * math/crealq.c: New file.
679         * math/nearbyintq.c: New file.
680         * math/fmaxq.c: New file.
681         * math/conjq.c: New file.
682         * math/remquoq.c: New file.
683         * math/cimagq.c: New file.
684         * math/fdimq.c: New file.
686         * math/ldexpq.c: Include errno.h.  Set errno to ERANGE if needed.
688         PR fortran/46416
689         * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
690         New prototypes.
691         (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
692         M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
693         * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
694         catanhq): Add.
695         * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
696         QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
697         * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
698         catanq and catanhq.
699         * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
700         math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
701         and math/catanhq.c.
702         * Makefile.in: Regenerated.
703         * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
704         catanq, catanhq): Add.
705         * math/cacoshq.c: New file.
706         * math/cacosq.c: New file.
707         * math/catanq.c: New file.
708         * math/catanhq.c: New file.
709         * math/casinq.c: New file.
710         * math/casinhq.c: New file.
712         * math/hypotq.c (hypotq): Use Q suffix instead of L.
713         * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
714         * math/cosq.c (cosq): Likewise.
716         PR fortran/46402
717         * quadmath.map (QUADMATH_1.0): Add fmaq.
718         * configure.ac: Check for fenv.h, feholdexcept, fesetround,
719         feupdateenv, fesetenv and fetestexcept.
720         * configure: Regenerated.
721         * config.h.in: Regenerated.
722         * quadmath.h (fmaq): New prototype.
723         * quadmath_weak.h (fmaq): Add.
724         * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
725         * Makefile.in: Regenerated.
726         * quadmath-imp.h: Include config.h.
727         * math/expq.c: Include fenv.h.
728         (USE_FENV_H): Define if libm support for fe* is there.
729         (expq): Add fesetround etc. support if USE_FENV_H is defined.
730         * math/fmaq.c: New file.
731         * libquadmath.texi (fmaq): Add.
733 2011-01-14  Tobias Burnus  <burnus@net-b.de>
735         PR fortran/47182
736         * configure.ac: Use ACX_BUGURL.
737         * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
738         * Makefile.am: Create libquadmath-vers.texi.
739         * configure.in: Regenerate.
740         * Makefile.in: Regenerate.
742 2011-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
744         PR fortran/47174
745         * Makefile.am (libquadmath.info): Unconditionally override
746         target, not only if BUILD_LIBQUADMATH.
747         * Makefile.in: Regenerate.
748         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
749         avoid warning from automake.
751 2010-12-19  Tobias Burnus  <burnus@net-b.de>
753         PR fortran/46520
754         * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
755         * configure: Regenerate
757 2010-12-13  Tobias Burnus  <burnus@net-b.de>
759         PR fortran/46625
760         * gdtoa/gdtoaimp.h: Mangle internal functions by
761         prefixing them with __quadmath. Don't use gdtoa's strcp(y).
762         * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
763         * gdtoa/misc.c (strcpy): Renamed from strcp and only use
764         if NO_STRING_H is set.
765         * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
766         __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
767         __quadmath prefix to internal functions.
768         * math/cosq.c (cosq): Ditto.
769         * math/sinq.c (cosq): Ditto.
770         * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
771         * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
772         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
773         * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
775 2010-12-08  Tobias Burnus  <burnus@net-b.de>
777         PR fortran/46772
778         * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
779         * gdtoa/gdtoaimp.h: Don't declare strtod.
781 2010-12-08  Tobias Burnus  <burnus@net-b.de>
783         PR fortran/46520
784         * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
785         AC_TRY_LINK and cache libquad_have_float128.
786         * configure: Regenerate.
788 2010-12-08  Tobias Burnus  <burnus@net-b.de>
790         PR fortran/46543
791         * configure.ac: Add texinfo checks.
792         * Makefile.am: Handle .texi documentation.
793         * libquadmath.texi: New.
794         * configure: Regenerated.
795         * Makefile.in: Regenerated.
797 2010-12-06  Tobias Burnus  <burnus@net-b.de>
799         PR fortran/46817
800         * quadmath-imp.h: Add LGPL header.
801         * quadmath.h: Add LGPL header.
802         * quadmath_io.c: Add LGPL header.
803         * quadmath_weak.h: Add LGPL header.
805 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
807         PR target/40125
808         PR lto/46695
809         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
810         * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
811         * aclocal.m4: Regenerate.
812         * configure: Regenerate.
813         * Makefile.in: Regenerate.
815 2010-11-30  Tobias Burnus  <burnus@net-b.de>
817         PR fortran/46594
818         * Makefile.am: Install include files in
819         target/version specific directory.
820         * Makefile.in: Regenerate.
822 2010-11-30  Tobias Burnus  <burnus@net-b.de>
824         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
825         LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
826         LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
828 2010-11-29  Kai Tietz  <kai.tietz@onevision.com>
830         * configure: Regenerated.
831         * Makefile.in: Regenerated.
832         * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
833         (target_alias): Use AC_SUBST for it.
834         (GCC_NO_EXECUTABLES): Call it.
835         (AC_PROG_CC): Improve multilib handling.
836         Check that gcc is used for compilation.
837         Use pattern from libssp for symbol versioning checking.
838         * Makefile.am (LTLDFLAGS): Removed.
839         (libquadmath_la_LDFLAGS): Add -no-undefined.
840         (libquadmath_la_LINK): Commented out.
841         (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
842         (AM_MAKEFLAGS): Add hack for argument passing by top-level.
843         (MAKEOVERRIDES): New.
844         * aclocal.m4: Regenerated.
846 2010-11-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
848         * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
849         (libquadmath_la_LDFLAGS): ... here.
850         (quadmath.map-sun): Tabify.
851         Fix sed expression.
852         * Makefile.in: Regenerate.
854 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
855             Tobias Burnus  <burnus@net-b.de>
857         PR fortran/32049
858         Initial implementation and checkin.
860 Copyright (C) 2010-2018 Free Software Foundation, Inc.
862 Copying and distribution of this file, with or without modification,
863 are permitted in any medium without royalty provided the copyright
864 notice and this notice are preserved.