OSDN Git Service

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