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