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