PR target/64688
[official-gcc.git] / libquadmath / ChangeLog
blob1668d05349fe429873932f002cd2c397fb990c63
1 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3         * libquadmath.texi: Bump @copying's copyright year.
5 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
7         PR bootstrap/63784
8         * configure: Regenerated.
10 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12         PR target/63610
13         * configure: Regenerate.
15 2014-10-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17         PR libquadmath/55821
18         * Makefile.am: Unconditionally define libquadmath_TEXINFOS.
19         * Makefile.in: Regenerate.
21 2014-10-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23         PR libquadmath/55821
24         * Makefile.am: Conditionally define info_TEXINFOS and
25         libquadmath_TEXINFOS.
26         * Makefile.in: Regenerate.
28 2014-10-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
30         PR libquadmath/63487
31         * libquadmath.texi (sincosq): Fix typo.
33 2014-01-02  Tobias Burnus  <burnus@net-b.de>
35         * libquadmath.texi: Bump @copying's copyright year.
37 2013-12-04  Richard Sandiford  <rdsandiford@googlemail.com>
39         * Makefile.am (AM_CPPFLAGS): Define.
40         * Makefile.in: Regenerate.
41         * printf/gmp-impl.h: Remove path from longlong.h include.
43 2013-09-20  Alan Modra  <amodra@gmail.com>
45         * configure: Regenerate.
47 2013-03-06  Shakthi Kannan  <shakthimaan@gmail.com>
49         PR libquadmath/55473
50         * quadmath.h: Add 'extern "C"' block for C++ use.
52 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
54         PR libquadmath/56379
55         * strtod/strtod_l.c (mpn_lshift_1): Rewritten as function-like
56         macro.
58 2013-02-17  Tobias Burnus  <burnus@net-b.de>
60         * math/cacoshq.c (cacoshq): Call signbitq instead of signbit.
62 2013-02-06  Richard Sandiford  <rdsandiford@googlemail.com>
64         Revert previous patch.
66 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
68         Update copyright years.
70 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
72         PR libquadmath/56072
73         * libquadmath.texi (M_PI_2q, M_PI_4q): Fix up description.
75 2012-12-13  Jakub Jelinek  <jakub@redhat.com>
77         * math/cbrtq.c (cbrtq): Use Q suffixed floating point constants
78         instead of L suffixed ones.
79         * math/fmaq.c (fmaq): Likewise.
80         * math/rintq.c (TWO112): Likewise.
82 2012-12-03  Tobias Burnus  <burnus@net-b.de>
84         * strtod/strtod_l.c (___STRTOF_INTERNAL): Fix exponent
85         reading.
87 2012-11-25  Tobias Burnus  <burnus@net-b.de>
89         PR libquadmath/55462
90         * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
91         instead of nonexisting HAVE_GET_ROUNDING_MODE.
93 2012-11-23  H.J. Lu  <hongjiu.lu@intel.com>
95         PR bootstrap/55455
96         * quadmath-rounding-mode.h (get_rounding_mode): Don't pass
97         void to fegetround.
99 2012-11-23  Tobias Burnus  <burnus@net-b.de>
100             Joseph Myers  <joseph@codesourcery.com>
102         * quadmath-rounding-mode.h: New.
103         * printf/fpioconst.c: Update from GLIBC. Fix strtod rounding.
104         * printf/fpioconst.h: Ditto.
105         * printf/printf_fp.c (__quadmath_printf_fp): Update from GLIBC.
106         Make printf respect the rounding mode for decimal output.
107         * printf/printf_fphex.c (__quadmath_printf_fphex): Update from
108         GLIBC.  Make printf respect the rounding mode for hex output.
109         * strtod/strtod_l.c: Update from GLIBC. Make strtod respect the
110         rounding mode. Fix strtod handling of underflow.
112 2012-11-22  David S. Miller  <davem@davemloft.net>
113             Tobias Burnus  <burnus@net-b.de>
114             Joseph Myers  <joseph@codesourcery.com>
116         * math/atanq.c (atanq): Update from GLIBC. Handle tiny and
117         very large arguments properly.
118         * math/j0q.c (y0q): Update from GLIBC. Avoid arithmetic
119         underflow when 'x' is very small.
120         * math/j1q.c (y1q): Ditto.
121         * math/log1pq.c (log1pq): Update from GLIBC. Saturate
122         nonzero exponents with absolute value below 0x1p-128 to
123         +/- 0x1p-128.
124         * math/powq.c (powq): Update from GLIBC. If xm1 is
125         smaller than LDBL_EPSILON/2.0L, just return xm1.
127 2012-11-21  Tobias Burnus  <burnus@net-b.de>
129         PR libquadmath/55225
130         * math/lgammaq.c (lgammaq): Use local variable if
131         math.h does not provide signgam.
132         * acinclude.m4 (LIBQUAD_CHECK_MATH_H_SIGNGAM): New check.
133         * configure.ac: Use it.
134         * configure: Regenerate.
135         * config.h.in: Regenerate.
137 2012-11-15  Tobias Burnus  <burnus@net-b.de>
138             Joseph Myers  <joseph@codesourcery.com>
140         * math/fmaq.c (fmaq): Merge from GLIBC. Fix fma
141         underflows with small x * y; Fix overflow results
142         outside round-to-nearest mode; make use of Dekker
143         and Knuth algorithms use round-to-nearest.
145 2012-11-01  Tobias Burnus  <burnus@net-b.de>
147         * math/fmaq.c (fmaq): Fix build.
149 2012-11-01  Tobias Burnus  <burnus@net-b.de>
150             Joseph Myers  <joseph@codesourcery.com>
152         * math/fmaq.c (fmaq): Merge from GLIBC. Handle cases
153         with small x * y using scaling, not as x * y + z.
154         * math/lgammaq.c (lgammaq): Fix signgam handling.
156 2012-11-01  Tobias Burnus  <burnus@net-b.de>
158         * Makefile.am (libquadmath_la_SOURCES): Add new math/* files.
159         * Makefile.in: Regenerated.
160         * math/acoshq.c: Update comment.
161         * math/acosq.c: Ditto.
162         * math/asinhq.c: Ditto.
163         * math/asinq.c: Ditto.
164         * math/atan2q.c: Ditto.
165         * math/atanhq.c: Ditto.
166         * math/ceilq.c: Ditto.
167         * math/copysignq.c: Ditto.
168         * math/cosq.c: Ditto.
169         * math/coshq.c: Ditto.
170         * math/erfq.c: Ditto.
171         * math/fabsq.c: Ditto.
172         * math/finiteq.c: Ditto.
173         * math/floorq.c: Ditto.
174         * math/fmodq.c: Ditto.
175         * math/frexpq.c: Ditto.
176         * math/isnanq.c: Ditto.
177         * math/j0q.c: Ditto.
178         * math/j1q.c: Ditto.
179         * math/ldexpq.c: Ditto.
180         * math/llroundq.c: Ditto.
181         * math/log10q.c: Ditto.
182         * math/log1pq.c: Ditto.
183         * math/log2q.c: Ditto.
184         * math/logq.c: Ditto.
185         * math/lroundq.c: Ditto.
186         * math/modfq.c: Ditto.
187         * math/nextafterq.c: Ditto.
188         * math/powq.c: Ditto.
189         * math/rem_pio2q.c: Ditto.
190         * math/remainderq.c: Ditto.
191         * math/rintq.c: Ditto.
192         * math/roundq.c: Ditto.
193         * math/scalblnq.c: Ditto.
194         * math/scalbnq.c: Ditto.
195         * math/sincosq_kernel.c: Ditto.
196         * math/sinq.c: Ditto.
197         * math/tanq.c: Ditto.
198         * math/expq.c: Ditto.
199         (__expq_table, expq): Renamed local array from __expl_table.
200         * math/cosq_kernel.c (__quadmath_kernel_cosq): Fix sign handling.
201         * math/cacoshq.c: Changes from GLIBC; fix returned sign.
202         * math/casinhq.c: Changes from GLIBC to fix special-case.
203         * math/cbrtq.c: Use modified GLIBC version.
204         * math/complex.c (ccoshd, cexpq, clog10q, clogq, csinhq, csinq,
205         ctanhq, ctanq): Moved to separates files.
206         (mult_c128, div_c128): Removed no longer needed functions.
207         (cexpiq): Call sincosq instead of sinq and cosq.
208         (cosq): Call cosh(-re,im) instead of cosq/sinq/sinh/cosh.
209         * math/ccoshq.c (ccoshq): New file, moved from complex.c and
210         modified based on GLIBC.
211         * math/cexpq.c (cexp): Ditto.
212         * math/clog10q.c (clog10q): Ditto.
213         * math/clogq.c (clogq): Ditto.
214         * math/csinhq.c: Ditto.
215         * math/csinq.c: Ditto.
216         * math/csqrtq.c: Ditto.
217         * math/ctanhq.c: Ditto.
218         * math/ctanq.c: Ditto.
219         * math/fmaq.c (fmaq): Port TININESS_AFTER_ROUNDING handling
220         from GLIBC.
221         * math/ilogbq.c (ilogbq): Add errno = EDOM handling.
222         * math/isinf_nsq.c (__quadmath_isinf_nsq): New file, ported
223         from GLIBC.
224         * math/lgammaq.c (lgammaq): Add signgam handling.
225         * math/sinhq.c (sinhq): Fix sign handling.
226         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
227         * math/tgammaq.c (tgammaq): Ditto.
228         * math/x2y2m1q.c: New file.
229         * quadmath-imp.h (TININESS_AFTER_ROUNDING): New define.
230         (__quadmath_x2y2m1q, __quadmath_isinf_nsq): New prototypes.
232 2012-10-31  Tobias Burnus  <burnus@net-b.de>
233             Joseph Myers <joseph@codesourcery.com>
234             David S. Miller <davem@davemloft.net>
235             Ulrich Drepper <drepper@redhat.com>
236             Marek Polacek <polacek@redhat.com>:
237             Petr Baudis <pasky@suse.cz>
239         * math/complex.c (csqrtq): NaN and INF fixes. 
240         * math/sqrtq.c (sqrt): NaN, INF and < 0 fixes.
241         * math/expm1q.c (expm1q): Changes from GLIBC. Use expq for
242         large parameters. Fix errno for boundary conditions.
243         * math/finiteq.c (finiteq): Add comment.
244         * math/fmaq.c (fmaq): Changes from GLIBC. Fix missing underflows
245         and bad results for some subnormal results. Fix sign of inexact
246         zero return. Fix sign of exact zero return. 
247         Ensure additions are not scheduled after fetestexcept.
248         * math/jnq.c (jnq): Changes from GLIBC. Set up errno properly
249         for ynq. Fix jnq precision.
250         * math/nearbyintq.c (nearbyintq): Changes from GLIBC. Do not
251         manipulate bits before adding and subtracting TWO112[sx].
252         * math/rintq.c (rintq): Ditto.
253         * math/scalbnq.c (scalbnq): Changes from GLIBC. Fix integer
254         overflow.
256 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
258         * configure: Regenerated.
260 2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>
262         PR libstdc++/51007
263         * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
264         * configure: Regenerated.
266 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
268         * configure: Regenerated.
270 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
272         * configure: Regenerate.
274 2011-11-07  Kai Tietz  <ktietz@redhat.com>
276         PR target/51007
277         * quadmath-imp.h (ieee854_float128): Adjust
278         for ms-bitfield layout.
280 2011-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
282         * printf/gmp-impl.h: Adapt path to longlong.h.
284 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
286         * Makefile.am (FLAGS_TO_PASS): Define.
287         * Makefile.in: Regenerate.
289 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
291         * math/rem_pio2q.c (__quadmath_kernel_rem_pio2): Fix up fq to y
292         conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
294 2011-04-03  Tobias Burnus  <burnus@net-b.de>
296         PR fortran/48311
297         * libquadmath.texi (strtoflt128): Fix typo.
298         (quadmath_snprintf): Move note up, make @item.
300 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
302         * printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
303         mempcpy.
305 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
307         PR bootstrap/48135
308         * configure.ac (quadmath_use_symver): Handle --disable-symvers.
309         * configure: Regenerate.
311 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
313         * printf/quadmath-printf.c (quadmath_snprintf): Make sure
314         that for size > 0 str is always zero terminated.
316 2011-02-20  Jakub Jelinek  <jakub@redhat.com>
318         PR bootstrap/47827
319         * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").
321 2011-02-17  Jakub Jelinek  <jakub@redhat.com>
323         * libquadmath.texi (FLT128_DIG, FLT128_MIN_10_EXP,
324         FLT128_MAX_10_EXP): Document.
325         (strtoflt128): Remove obsolete comment.
326         * configure.ac (HAVE_STRTOULL): New check.
327         * printf/gmp-impl.h (mpn_construct_float128): New prototype,
328         define.
329         * printf/mul_n.c: Include <config.h>.
330         * printf/add_n.c: Likewise.
331         * printf/cmp.c: Likewise.
332         * printf/fpioconst.c: Likewise.
333         * printf/mul_1.c: Likewise.
334         * printf/rshift.c: Likewise.
335         * printf/lshift.c: Likewise.
336         * printf/submul_1.c: Likewise.
337         * printf/sub_n.c: Likewise.
338         * printf/divrem.c: Likewise.
339         * printf/addmul_1.c: Likewise.
340         * printf/mul.c: Likewise.
341         * printf/quadmath-printf.h (isupper, isdigit, tolower): Change
342         to avoid evaluating argument multiple times.
343         (isxdigit): Redefine.
344         * strtod/strtoflt128.c: New file.
345         * strtod/strtod_l.c: New file.
346         * strtod/mpn2flt128.c: New file.
347         * strtod/grouping.h: New file.
348         * strtod/tens_in_limb.c: New file.
349         * gdtoa/arith.h: Removed.
350         * gdtoa/gd_qnan.h: Removed.
351         * gdtoa/gdtoa_fltrnds.h: Removed.
352         * gdtoa/gdtoa.h: Removed.
353         * gdtoa/gdtoaimp.h: Removed.
354         * gdtoa/gethex.c: Removed.
355         * gdtoa/gmisc.c: Removed.
356         * gdtoa/hd_init.c: Removed.
357         * gdtoa/hexnan.c: Removed.
358         * gdtoa/makefile: Removed.
359         * gdtoa/misc.c: Removed.
360         * gdtoa/README.gdtoa: Removed.
361         * gdtoa/smisc.c: Removed.
362         * gdtoa/strtodg.c: Removed.
363         * gdtoa/strtopQ.c: Removed.
364         * gdtoa/sum.c: Removed.
365         * quadmath.h (FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP):
366         Define.
367         * Makefile.am (libquadmath_la_SOURCES): Remove gdtoa/*, add
368         strtod/strtoflt128.c, strtod/mpn2flt128.c and strtod/tens_in_limb.c.
369         * config.h.in: Regenerated.
370         * configure: Regenerated.
371         * Makefile.in: Regenerated.
373 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
375         * printf/quadmath-printf.c: Also check __GLIBC__ when checking
376         whether workarounds for printf hook handling should be added.
378         * configure.ac: Check for locale.h too.
379         (USE_LOCALE_SUPPORT): Remove check.
380         (USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
381         (USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
382         * printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
383         or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
384         for wide version.
385         * printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
386         * printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
387         (__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
388         version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
389         Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
390         USE_I18N_NUMBER_H #ifdef.
391         * configure: Regenerated.
392         * config.h.in: Regenerated.
394 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
396         PR bootstrap/47736
397         * configure.ac (HAVE_PRINTF_HOOKS): Test if printf_info struct has
398         user field.
399         * printf/quadmath-printf.c (quadmath_snprintf): Clear whole info
400         field instead of setting individual fields to 0.  Don't set info.user
401         to -1.
402         * configure: Regenerated.
404         * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
405         * printf/printf_fp.c: Don't include <alloca.h>.
406         * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
407         * configure: Regenerated.
409         PR fortran/47642
410         * libquadmath.texi (quadmath_snprintf): Document.
411         (quadmath_flt128tostr): Remove.
412         * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
413         Remove  quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
414         gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
415         * quadmath.h (quadmath_snprintf): New prototype.
416         (quadmath_flt128tostr): Remove.
417         * quadmath_weak.h (quadmath_snprintf): Add.
418         (quadmath_flt128tostr): Remove.
419         * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
420         wctype.h, limits.h, ctype.h, printf.h, errno.h.
421         (AC_USE_SYSTEM_EXTENSIONS): Add.
422         (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
423         USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
424         * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf.  Remove
425         quadmath_flt128tostr.
426         * printf/printf_fphex.c: New file.
427         * printf/_itowa.h: New file.
428         * printf/mul_n.c: New file.
429         * printf/quadmath-printf.h: New file.
430         * printf/submul_1.c: New file.
431         * printf/quadmath-printf.c: New file.
432         * printf/gmp-impl.h: New file.
433         * printf/lshift.c: New file.
434         * printf/fpioconst.h: New file.
435         * printf/add_n.c: New file.
436         * printf/cmp.c: New file.
437         * printf/sub_n.c: New file.
438         * printf/mul.c: New file.
439         * printf/divrem.c: New file.
440         * printf/addmul_1.c: New file.
441         * printf/printf_fp.c: New file.
442         * printf/_itoa.h: New file.
443         * printf/fpioconst.c: New file.
444         * printf/_i18n_number.h: New file.
445         * printf/flt1282mpn.c: New file.
446         * printf/rshift.c: New file.
447         * printf/mul_1.c: New file.
448         * quadmath_io.c: Removed.
449         * gdtoa/gdtoa.c: Removed.
450         * gdtoa/g__fmt.c: Removed.
451         * gdtoa/g_Qfmt.c: Removed.
452         * gdtoa/dmisc.c: Removed.
453         * gdtoa/ulp.c: Removed.
454         * config.h.in: Regenerated.
455         * configure: Regenerated.
456         * Makefile.in: Regenerated.
458 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
460         * Makefile.in: Regenerate.
461         * aclocal.m4: Likewise.
462         * configure: Likewise.
464 2011-01-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
466         PR libquadmath/47293
467         * gdtoa/qd_qnan.h: Fix NAN bit patterns.
468         * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
470 2011-01-17  Tobias Burnus  <burnus@net-b.de>
472         PR fortran/47295
473         * libquadmath.text: Document typedef and constants.
475 2011-01-17  Tobias Burnus  <burnus@net-b.de>
477         PR fortran/46817
478         * quadmath-imp.h: Refer to libquadmath not ot libiberty,
479         bump copyright year and use /**/ instead of // comments.
480         * quadmath.h: Ditto.
481         * quadmath-weak.h: Ditto.
482         * quadmath_io.c: Ditto.
484 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
486         PR libfortran/47322
487         * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
489         PR fortran/46625
490         * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
491         and quadmath_dtoaq.  Add strtoflt128 and quadmath_flt128tostr.
492         * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
493         (strtoflt128, quadmath_flt128tostr): Add.
494         * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
495         (strtoflt128): ... this.  Return __float128, instead of writing
496         to memory pointed by last argument.
497         * quadmath.h: Use C style comments instead of C++ style.
498         (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
499         (strtoflt128, quadmath_flt128tostr): Add prototypes.
500         * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
501         (quadmath_strtopQ): Rename to strtoflt128.  Adjust prototype,
502         adjust examples.
503         * quadmath_io.c (quadmath_dtoaq): Rename to...
504         (quadmath_flt128tostr): ... this.
506         * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
507         Use it for all prototypes.
509         PR fortran/46416
510         * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
511         const from prototype argument.
512         (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
513         llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
514         (__quadmath_extern_inline): Define.
515         (cimagq, conjq, crealq): New inlines.
516         * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
517         math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
518         math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
519         math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
520         * Makefile.in: Regenerated.
521         * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
522         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
523         * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
524         (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
525         tests instead of __BIG_ENDIAN__.
526         * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
527         fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
528         and remquoq.
529         * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
530         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
531         * math/cprojq.c: New file.
532         * math/ilogbq.c: New file.
533         * math/fminq.c: New file.
534         * math/llrintq.c: New file.
535         * math/log2q.c: New file.
536         * math/lrintq.c: New file.
537         * math/crealq.c: New file.
538         * math/nearbyintq.c: New file.
539         * math/fmaxq.c: New file.
540         * math/conjq.c: New file.
541         * math/remquoq.c: New file.
542         * math/cimagq.c: New file.
543         * math/fdimq.c: New file.
545         * math/ldexpq.c: Include errno.h.  Set errno to ERANGE if needed.
547         PR fortran/46416
548         * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
549         New prototypes.
550         (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
551         M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
552         * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
553         catanhq): Add.
554         * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
555         QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
556         * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
557         catanq and catanhq.
558         * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
559         math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
560         and math/catanhq.c.
561         * Makefile.in: Regenerated.
562         * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
563         catanq, catanhq): Add.
564         * math/cacoshq.c: New file.
565         * math/cacosq.c: New file.
566         * math/catanq.c: New file.
567         * math/catanhq.c: New file.
568         * math/casinq.c: New file.
569         * math/casinhq.c: New file.
571         * math/hypotq.c (hypotq): Use Q suffix instead of L.
572         * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
573         * math/cosq.c (cosq): Likewise.
575         PR fortran/46402
576         * quadmath.map (QUADMATH_1.0): Add fmaq.
577         * configure.ac: Check for fenv.h, feholdexcept, fesetround,
578         feupdateenv, fesetenv and fetestexcept.
579         * configure: Regenerated.
580         * config.h.in: Regenerated.
581         * quadmath.h (fmaq): New prototype.
582         * quadmath_weak.h (fmaq): Add.
583         * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
584         * Makefile.in: Regenerated.
585         * quadmath-imp.h: Include config.h.
586         * math/expq.c: Include fenv.h.
587         (USE_FENV_H): Define if libm support for fe* is there.
588         (expq): Add fesetround etc. support if USE_FENV_H is defined.
589         * math/fmaq.c: New file.
590         * libquadmath.texi (fmaq): Add.
592 2011-01-14  Tobias Burnus  <burnus@net-b.de>
594         PR fortran/47182
595         * configure.ac: Use ACX_BUGURL.
596         * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
597         * Makefile.am: Create libquadmath-vers.texi.
598         * configure.in: Regenerate.
599         * Makefile.in: Regenerate.
601 2011-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
603         PR fortran/47174
604         * Makefile.am (libquadmath.info): Unconditionally override
605         target, not only if BUILD_LIBQUADMATH.
606         * Makefile.in: Regenerate.
607         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
608         avoid warning from automake.
610 2010-12-19  Tobias Burnus  <burnus@net-b.de>
612         PR fortran/46520
613         * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
614         * configure: Regenerate
616 2010-12-13  Tobias Burnus  <burnus@net-b.de>
618         PR fortran/46625
619         * gdtoa/gdtoaimp.h: Mangle internal functions by
620         prefixing them with __quadmath. Don't use gdtoa's strcp(y).
621         * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
622         * gdtoa/misc.c (strcpy): Renamed from strcp and only use
623         if NO_STRING_H is set.
624         * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
625         __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
626         __quadmath prefix to internal functions.
627         * math/cosq.c (cosq): Ditto.
628         * math/sinq.c (cosq): Ditto.
629         * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
630         * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
631         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
632         * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
634 2010-12-08  Tobias Burnus  <burnus@net-b.de>
636         PR fortran/46772
637         * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
638         * gdtoa/gdtoaimp.h: Don't declare strtod.
640 2010-12-08  Tobias Burnus  <burnus@net-b.de>
642         PR fortran/46520
643         * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
644         AC_TRY_LINK and cache libquad_have_float128.
645         * configure: Regenerate.
647 2010-12-08  Tobias Burnus  <burnus@net-b.de>
649         PR fortran/46543
650         * configure.ac: Add texinfo checks.
651         * Makefile.am: Handle .texi documentation.
652         * libquadmath.texi: New.
653         * configure: Regenerated.
654         * Makefile.in: Regenerated.
656 2010-12-06  Tobias Burnus  <burnus@net-b.de>
658         PR fortran/46817
659         * quadmath-imp.h: Add LGPL header.
660         * quadmath.h: Add LGPL header.
661         * quadmath_io.c: Add LGPL header.
662         * quadmath_weak.h: Add LGPL header.
664 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
666         PR target/40125
667         PR lto/46695
668         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
669         * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
670         * aclocal.m4: Regenerate.
671         * configure: Regenerate.
672         * Makefile.in: Regenerate.
674 2010-11-30  Tobias Burnus  <burnus@net-b.de>
676         PR fortran/46594
677         * Makefile.am: Install include files in
678         target/version specific directory.
679         * Makefile.in: Regenerate.
681 2010-11-30  Tobias Burnus  <burnus@net-b.de>
683         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
684         LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
685         LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
687 2010-11-29  Kai Tietz  <kai.tietz@onevision.com>
689         * configure: Regenerated.
690         * Makefile.in: Regenerated.
691         * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
692         (target_alias): Use AC_SUBST for it.
693         (GCC_NO_EXECUTABLES): Call it.
694         (AC_PROG_CC): Improve multilib handling.
695         Check that gcc is used for compilation.
696         Use pattern from libssp for symbol versioning checking.
697         * Makefile.am (LTLDFLAGS): Removed.
698         (libquadmath_la_LDFLAGS): Add -no-undefined.
699         (libquadmath_la_LINK): Commented out.
700         (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
701         (AM_MAKEFLAGS): Add hack for argument passing by top-level.
702         (MAKEOVERRIDES): New.
703         * aclocal.m4: Regenerated.
705 2010-11-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
707         * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
708         (libquadmath_la_LDFLAGS): ... here.
709         (quadmath.map-sun): Tabify.
710         Fix sed expression.
711         * Makefile.in: Regenerate.
713 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
714             Tobias Burnus  <burnus@net-b.de>
716         PR fortran/32049
717         Initial implementation and checkin.