OSDN Git Service

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