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