OSDN Git Service

* Makefile.am (FLAGS_TO_PASS): Define.
[pf3gnuchains/gcc-fork.git] / libquadmath / ChangeLog
1 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
2
3         * Makefile.am (FLAGS_TO_PASS): Define.
4         * Makefile.in: Regenerate.
5
6 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
7
8         * math/rem_pio2q.c (__quadmath_kernel_rem_pio2): Fix up fq to y
9         conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
10
11 2011-04-03  Tobias Burnus  <burnus@net-b.de>
12
13         PR fortran/48311
14         * libquadmath.texi (strtoflt128): Fix typo.
15         (quadmath_snprintf): Move note up, make @item.
16
17 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
18
19         * printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
20         mempcpy.
21
22 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23
24         PR bootstrap/48135
25         * configure.ac (quadmath_use_symver): Handle --disable-symvers.
26         * configure: Regenerate.
27
28 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
29
30         * printf/quadmath-printf.c (quadmath_snprintf): Make sure
31         that for size > 0 str is always zero terminated.
32
33 2011-02-20  Jakub Jelinek  <jakub@redhat.com>
34
35         PR bootstrap/47827
36         * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").
37
38 2011-02-17  Jakub Jelinek  <jakub@redhat.com>
39
40         * libquadmath.texi (FLT128_DIG, FLT128_MIN_10_EXP,
41         FLT128_MAX_10_EXP): Document.
42         (strtoflt128): Remove obsolete comment.
43         * configure.ac (HAVE_STRTOULL): New check.
44         * printf/gmp-impl.h (mpn_construct_float128): New prototype,
45         define.
46         * printf/mul_n.c: Include <config.h>.
47         * printf/add_n.c: Likewise.
48         * printf/cmp.c: Likewise.
49         * printf/fpioconst.c: Likewise.
50         * printf/mul_1.c: Likewise.
51         * printf/rshift.c: Likewise.
52         * printf/lshift.c: Likewise.
53         * printf/submul_1.c: Likewise.
54         * printf/sub_n.c: Likewise.
55         * printf/divrem.c: Likewise.
56         * printf/addmul_1.c: Likewise.
57         * printf/mul.c: Likewise.
58         * printf/quadmath-printf.h (isupper, isdigit, tolower): Change
59         to avoid evaluating argument multiple times.
60         (isxdigit): Redefine.
61         * strtod/strtoflt128.c: New file.
62         * strtod/strtod_l.c: New file.
63         * strtod/mpn2flt128.c: New file.
64         * strtod/grouping.h: New file.
65         * strtod/tens_in_limb.c: New file.
66         * gdtoa/arith.h: Removed.
67         * gdtoa/gd_qnan.h: Removed.
68         * gdtoa/gdtoa_fltrnds.h: Removed.
69         * gdtoa/gdtoa.h: Removed.
70         * gdtoa/gdtoaimp.h: Removed.
71         * gdtoa/gethex.c: Removed.
72         * gdtoa/gmisc.c: Removed.
73         * gdtoa/hd_init.c: Removed.
74         * gdtoa/hexnan.c: Removed.
75         * gdtoa/makefile: Removed.
76         * gdtoa/misc.c: Removed.
77         * gdtoa/README.gdtoa: Removed.
78         * gdtoa/smisc.c: Removed.
79         * gdtoa/strtodg.c: Removed.
80         * gdtoa/strtopQ.c: Removed.
81         * gdtoa/sum.c: Removed.
82         * quadmath.h (FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP):
83         Define.
84         * Makefile.am (libquadmath_la_SOURCES): Remove gdtoa/*, add
85         strtod/strtoflt128.c, strtod/mpn2flt128.c and strtod/tens_in_limb.c.
86         * config.h.in: Regenerated.
87         * configure: Regenerated.
88         * Makefile.in: Regenerated.
89
90 2011-02-16  Jakub Jelinek  <jakub@redhat.com>
91
92         * printf/quadmath-printf.c: Also check __GLIBC__ when checking
93         whether workarounds for printf hook handling should be added.
94
95         * configure.ac: Check for locale.h too.
96         (USE_LOCALE_SUPPORT): Remove check.
97         (USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
98         (USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
99         * printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
100         or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
101         for wide version.
102         * printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
103         * printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
104         (__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
105         version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
106         Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
107         USE_I18N_NUMBER_H #ifdef.
108         * configure: Regenerated.
109         * config.h.in: Regenerated.
110
111 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
112
113         PR bootstrap/47736
114         * configure.ac (HAVE_PRINTF_HOOKS): Test if printf_info struct has
115         user field.
116         * printf/quadmath-printf.c (quadmath_snprintf): Clear whole info
117         field instead of setting individual fields to 0.  Don't set info.user
118         to -1.
119         * configure: Regenerated.
120
121         * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
122         * printf/printf_fp.c: Don't include <alloca.h>.
123         * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
124         * configure: Regenerated.
125
126         PR fortran/47642
127         * libquadmath.texi (quadmath_snprintf): Document.
128         (quadmath_flt128tostr): Remove.
129         * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
130         Remove  quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
131         gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
132         * quadmath.h (quadmath_snprintf): New prototype.
133         (quadmath_flt128tostr): Remove.
134         * quadmath_weak.h (quadmath_snprintf): Add.
135         (quadmath_flt128tostr): Remove.
136         * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
137         wctype.h, limits.h, ctype.h, printf.h, errno.h.
138         (AC_USE_SYSTEM_EXTENSIONS): Add.
139         (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
140         USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
141         * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf.  Remove
142         quadmath_flt128tostr.
143         * printf/printf_fphex.c: New file.
144         * printf/_itowa.h: New file.
145         * printf/mul_n.c: New file.
146         * printf/quadmath-printf.h: New file.
147         * printf/submul_1.c: New file.
148         * printf/quadmath-printf.c: New file.
149         * printf/gmp-impl.h: New file.
150         * printf/lshift.c: New file.
151         * printf/fpioconst.h: New file.
152         * printf/add_n.c: New file.
153         * printf/cmp.c: New file.
154         * printf/sub_n.c: New file.
155         * printf/mul.c: New file.
156         * printf/divrem.c: New file.
157         * printf/addmul_1.c: New file.
158         * printf/printf_fp.c: New file.
159         * printf/_itoa.h: New file.
160         * printf/fpioconst.c: New file.
161         * printf/_i18n_number.h: New file.
162         * printf/flt1282mpn.c: New file.
163         * printf/rshift.c: New file.
164         * printf/mul_1.c: New file.
165         * quadmath_io.c: Removed.
166         * gdtoa/gdtoa.c: Removed.
167         * gdtoa/g__fmt.c: Removed.
168         * gdtoa/g_Qfmt.c: Removed.
169         * gdtoa/dmisc.c: Removed.
170         * gdtoa/ulp.c: Removed.
171         * config.h.in: Regenerated.
172         * configure: Regenerated.
173         * Makefile.in: Regenerated.
174
175 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
176
177         * Makefile.in: Regenerate.
178         * aclocal.m4: Likewise.
179         * configure: Likewise.
180
181 2011-01-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
182
183         PR libquadmath/47293
184         * gdtoa/qd_qnan.h: Fix NAN bit patterns.
185         * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
186
187 2011-01-17  Tobias Burnus  <burnus@net-b.de>
188
189         PR fortran/47295
190         * libquadmath.text: Document typedef and constants.
191
192 2011-01-17  Tobias Burnus  <burnus@net-b.de>
193
194         PR fortran/46817
195         * quadmath-imp.h: Refer to libquadmath not ot libiberty,
196         bump copyright year and use /**/ instead of // comments.
197         * quadmath.h: Ditto.
198         * quadmath-weak.h: Ditto.
199         * quadmath_io.c: Ditto.
200
201 2011-01-16  Jakub Jelinek  <jakub@redhat.com>
202
203         PR libfortran/47322
204         * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
205
206         PR fortran/46625
207         * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
208         and quadmath_dtoaq.  Add strtoflt128 and quadmath_flt128tostr.
209         * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
210         (strtoflt128, quadmath_flt128tostr): Add.
211         * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
212         (strtoflt128): ... this.  Return __float128, instead of writing
213         to memory pointed by last argument.
214         * quadmath.h: Use C style comments instead of C++ style.
215         (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
216         (strtoflt128, quadmath_flt128tostr): Add prototypes.
217         * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
218         (quadmath_strtopQ): Rename to strtoflt128.  Adjust prototype,
219         adjust examples.
220         * quadmath_io.c (quadmath_dtoaq): Rename to...
221         (quadmath_flt128tostr): ... this.
222
223         * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
224         Use it for all prototypes.
225
226         PR fortran/46416
227         * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
228         const from prototype argument.
229         (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
230         llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
231         (__quadmath_extern_inline): Define.
232         (cimagq, conjq, crealq): New inlines.
233         * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
234         math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
235         math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
236         math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
237         * Makefile.in: Regenerated.
238         * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
239         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
240         * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
241         (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
242         tests instead of __BIG_ENDIAN__.
243         * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
244         fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
245         and remquoq.
246         * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
247         fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
248         * math/cprojq.c: New file.
249         * math/ilogbq.c: New file.
250         * math/fminq.c: New file.
251         * math/llrintq.c: New file.
252         * math/log2q.c: New file.
253         * math/lrintq.c: New file.
254         * math/crealq.c: New file.
255         * math/nearbyintq.c: New file.
256         * math/fmaxq.c: New file.
257         * math/conjq.c: New file.
258         * math/remquoq.c: New file.
259         * math/cimagq.c: New file.
260         * math/fdimq.c: New file.
261
262         * math/ldexpq.c: Include errno.h.  Set errno to ERANGE if needed.
263
264         PR fortran/46416
265         * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
266         New prototypes.
267         (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
268         M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
269         * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
270         catanhq): Add.
271         * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
272         QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
273         * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
274         catanq and catanhq.
275         * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
276         math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
277         and math/catanhq.c.
278         * Makefile.in: Regenerated.
279         * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
280         catanq, catanhq): Add.
281         * math/cacoshq.c: New file.
282         * math/cacosq.c: New file.
283         * math/catanq.c: New file.
284         * math/catanhq.c: New file.
285         * math/casinq.c: New file.
286         * math/casinhq.c: New file.
287
288         * math/hypotq.c (hypotq): Use Q suffix instead of L.
289         * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
290         * math/cosq.c (cosq): Likewise.
291
292         PR fortran/46402
293         * quadmath.map (QUADMATH_1.0): Add fmaq.
294         * configure.ac: Check for fenv.h, feholdexcept, fesetround,
295         feupdateenv, fesetenv and fetestexcept.
296         * configure: Regenerated.
297         * config.h.in: Regenerated.
298         * quadmath.h (fmaq): New prototype.
299         * quadmath_weak.h (fmaq): Add.
300         * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
301         * Makefile.in: Regenerated.
302         * quadmath-imp.h: Include config.h.
303         * math/expq.c: Include fenv.h.
304         (USE_FENV_H): Define if libm support for fe* is there.
305         (expq): Add fesetround etc. support if USE_FENV_H is defined.
306         * math/fmaq.c: New file.
307         * libquadmath.texi (fmaq): Add.
308
309 2011-01-14  Tobias Burnus  <burnus@net-b.de>
310
311         PR fortran/47182
312         * configure.ac: Use ACX_BUGURL.
313         * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
314         * Makefile.am: Create libquadmath-vers.texi.
315         * configure.in: Regenerate.
316         * Makefile.in: Regenerate.
317
318 2011-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
319
320         PR fortran/47174
321         * Makefile.am (libquadmath.info): Unconditionally override
322         target, not only if BUILD_LIBQUADMATH.
323         * Makefile.in: Regenerate.
324         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
325         avoid warning from automake.
326
327 2010-12-19  Tobias Burnus  <burnus@net-b.de>
328
329         PR fortran/46520
330         * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
331         * configure: Regenerate
332
333 2010-12-13  Tobias Burnus  <burnus@net-b.de>
334
335         PR fortran/46625
336         * gdtoa/gdtoaimp.h: Mangle internal functions by
337         prefixing them with __quadmath. Don't use gdtoa's strcp(y).
338         * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
339         * gdtoa/misc.c (strcpy): Renamed from strcp and only use
340         if NO_STRING_H is set.
341         * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
342         __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
343         __quadmath prefix to internal functions.
344         * math/cosq.c (cosq): Ditto.
345         * math/sinq.c (cosq): Ditto.
346         * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
347         * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
348         * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
349         * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
350
351 2010-12-08  Tobias Burnus  <burnus@net-b.de>
352
353         PR fortran/46772
354         * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
355         * gdtoa/gdtoaimp.h: Don't declare strtod.
356
357 2010-12-08  Tobias Burnus  <burnus@net-b.de>
358
359         PR fortran/46520
360         * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
361         AC_TRY_LINK and cache libquad_have_float128.
362         * configure: Regenerate.
363
364 2010-12-08  Tobias Burnus  <burnus@net-b.de>
365
366         PR fortran/46543
367         * configure.ac: Add texinfo checks.
368         * Makefile.am: Handle .texi documentation.
369         * libquadmath.texi: New.
370         * configure: Regenerated.
371         * Makefile.in: Regenerated.
372
373 2010-12-06  Tobias Burnus  <burnus@net-b.de>
374
375         PR fortran/46817
376         * quadmath-imp.h: Add LGPL header.
377         * quadmath.h: Add LGPL header.
378         * quadmath_io.c: Add LGPL header.
379         * quadmath_weak.h: Add LGPL header.
380
381 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
382
383         PR target/40125
384         PR lto/46695
385         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
386         * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
387         * aclocal.m4: Regenerate.
388         * configure: Regenerate.
389         * Makefile.in: Regenerate.
390
391 2010-11-30  Tobias Burnus  <burnus@net-b.de>
392
393         PR fortran/46594
394         * Makefile.am: Install include files in
395         target/version specific directory.
396         * Makefile.in: Regenerate.
397
398 2010-11-30  Tobias Burnus  <burnus@net-b.de>
399
400         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
401         LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
402         LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
403
404 2010-11-29  Kai Tietz  <kai.tietz@onevision.com>
405
406         * configure: Regenerated.
407         * Makefile.in: Regenerated.
408         * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
409         (target_alias): Use AC_SUBST for it.
410         (GCC_NO_EXECUTABLES): Call it.
411         (AC_PROG_CC): Improve multilib handling.
412         Check that gcc is used for compilation.
413         Use pattern from libssp for symbol versioning checking.
414         * Makefile.am (LTLDFLAGS): Removed.
415         (libquadmath_la_LDFLAGS): Add -no-undefined.
416         (libquadmath_la_LINK): Commented out.
417         (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
418         (AM_MAKEFLAGS): Add hack for argument passing by top-level.
419         (MAKEOVERRIDES): New.
420         * aclocal.m4: Regenerated.
421
422 2010-11-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
423
424         * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
425         (libquadmath_la_LDFLAGS): ... here.
426         (quadmath.map-sun): Tabify.
427         Fix sed expression.
428         * Makefile.in: Regenerate.
429
430 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
431             Tobias Burnus  <burnus@net-b.de>
432
433         PR fortran/32049
434         Initial implementation and checkin.