45f382ddb0e8de5ab8239fe8e088d57521758912
[gcc.git] / libquadmath / ChangeLog
1 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2
3 * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
4 * printf/printf_fp.c: Don't include <alloca.h>.
5 * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
6 * configure: Regenerated.
7
8 PR fortran/47642
9 * libquadmath.texi (quadmath_snprintf): Document.
10 (quadmath_flt128tostr): Remove.
11 * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
12 Remove quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
13 gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
14 * quadmath.h (quadmath_snprintf): New prototype.
15 (quadmath_flt128tostr): Remove.
16 * quadmath_weak.h (quadmath_snprintf): Add.
17 (quadmath_flt128tostr): Remove.
18 * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
19 wctype.h, limits.h, ctype.h, printf.h, errno.h.
20 (AC_USE_SYSTEM_EXTENSIONS): Add.
21 (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
22 USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
23 * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf. Remove
24 quadmath_flt128tostr.
25 * printf/printf_fphex.c: New file.
26 * printf/_itowa.h: New file.
27 * printf/mul_n.c: New file.
28 * printf/quadmath-printf.h: New file.
29 * printf/submul_1.c: New file.
30 * printf/quadmath-printf.c: New file.
31 * printf/gmp-impl.h: New file.
32 * printf/lshift.c: New file.
33 * printf/fpioconst.h: New file.
34 * printf/add_n.c: New file.
35 * printf/cmp.c: New file.
36 * printf/sub_n.c: New file.
37 * printf/mul.c: New file.
38 * printf/divrem.c: New file.
39 * printf/addmul_1.c: New file.
40 * printf/printf_fp.c: New file.
41 * printf/_itoa.h: New file.
42 * printf/fpioconst.c: New file.
43 * printf/_i18n_number.h: New file.
44 * printf/flt1282mpn.c: New file.
45 * printf/rshift.c: New file.
46 * printf/mul_1.c: New file.
47 * quadmath_io.c: Removed.
48 * gdtoa/gdtoa.c: Removed.
49 * gdtoa/g__fmt.c: Removed.
50 * gdtoa/g_Qfmt.c: Removed.
51 * gdtoa/dmisc.c: Removed.
52 * gdtoa/ulp.c: Removed.
53 * config.h.in: Regenerated.
54 * configure: Regenerated.
55 * Makefile.in: Regenerated.
56
57 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58
59 * Makefile.in: Regenerate.
60 * aclocal.m4: Likewise.
61 * configure: Likewise.
62
63 2011-01-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
64
65 PR libquadmath/47293
66 * gdtoa/qd_qnan.h: Fix NAN bit patterns.
67 * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
68
69 2011-01-17 Tobias Burnus <burnus@net-b.de>
70
71 PR fortran/47295
72 * libquadmath.text: Document typedef and constants.
73
74 2011-01-17 Tobias Burnus <burnus@net-b.de>
75
76 PR fortran/46817
77 * quadmath-imp.h: Refer to libquadmath not ot libiberty,
78 bump copyright year and use /**/ instead of // comments.
79 * quadmath.h: Ditto.
80 * quadmath-weak.h: Ditto.
81 * quadmath_io.c: Ditto.
82
83 2011-01-16 Jakub Jelinek <jakub@redhat.com>
84
85 PR libfortran/47322
86 * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
87
88 PR fortran/46625
89 * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
90 and quadmath_dtoaq. Add strtoflt128 and quadmath_flt128tostr.
91 * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
92 (strtoflt128, quadmath_flt128tostr): Add.
93 * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
94 (strtoflt128): ... this. Return __float128, instead of writing
95 to memory pointed by last argument.
96 * quadmath.h: Use C style comments instead of C++ style.
97 (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
98 (strtoflt128, quadmath_flt128tostr): Add prototypes.
99 * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
100 (quadmath_strtopQ): Rename to strtoflt128. Adjust prototype,
101 adjust examples.
102 * quadmath_io.c (quadmath_dtoaq): Rename to...
103 (quadmath_flt128tostr): ... this.
104
105 * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
106 Use it for all prototypes.
107
108 PR fortran/46416
109 * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
110 const from prototype argument.
111 (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
112 llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
113 (__quadmath_extern_inline): Define.
114 (cimagq, conjq, crealq): New inlines.
115 * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
116 math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
117 math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
118 math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
119 * Makefile.in: Regenerated.
120 * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
121 fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
122 * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
123 (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
124 tests instead of __BIG_ENDIAN__.
125 * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
126 fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
127 and remquoq.
128 * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
129 fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
130 * math/cprojq.c: New file.
131 * math/ilogbq.c: New file.
132 * math/fminq.c: New file.
133 * math/llrintq.c: New file.
134 * math/log2q.c: New file.
135 * math/lrintq.c: New file.
136 * math/crealq.c: New file.
137 * math/nearbyintq.c: New file.
138 * math/fmaxq.c: New file.
139 * math/conjq.c: New file.
140 * math/remquoq.c: New file.
141 * math/cimagq.c: New file.
142 * math/fdimq.c: New file.
143
144 * math/ldexpq.c: Include errno.h. Set errno to ERANGE if needed.
145
146 PR fortran/46416
147 * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
148 New prototypes.
149 (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
150 M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
151 * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
152 catanhq): Add.
153 * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
154 QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
155 * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
156 catanq and catanhq.
157 * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
158 math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
159 and math/catanhq.c.
160 * Makefile.in: Regenerated.
161 * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
162 catanq, catanhq): Add.
163 * math/cacoshq.c: New file.
164 * math/cacosq.c: New file.
165 * math/catanq.c: New file.
166 * math/catanhq.c: New file.
167 * math/casinq.c: New file.
168 * math/casinhq.c: New file.
169
170 * math/hypotq.c (hypotq): Use Q suffix instead of L.
171 * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
172 * math/cosq.c (cosq): Likewise.
173
174 PR fortran/46402
175 * quadmath.map (QUADMATH_1.0): Add fmaq.
176 * configure.ac: Check for fenv.h, feholdexcept, fesetround,
177 feupdateenv, fesetenv and fetestexcept.
178 * configure: Regenerated.
179 * config.h.in: Regenerated.
180 * quadmath.h (fmaq): New prototype.
181 * quadmath_weak.h (fmaq): Add.
182 * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
183 * Makefile.in: Regenerated.
184 * quadmath-imp.h: Include config.h.
185 * math/expq.c: Include fenv.h.
186 (USE_FENV_H): Define if libm support for fe* is there.
187 (expq): Add fesetround etc. support if USE_FENV_H is defined.
188 * math/fmaq.c: New file.
189 * libquadmath.texi (fmaq): Add.
190
191 2011-01-14 Tobias Burnus <burnus@net-b.de>
192
193 PR fortran/47182
194 * configure.ac: Use ACX_BUGURL.
195 * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
196 * Makefile.am: Create libquadmath-vers.texi.
197 * configure.in: Regenerate.
198 * Makefile.in: Regenerate.
199
200 2011-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
201
202 PR fortran/47174
203 * Makefile.am (libquadmath.info): Unconditionally override
204 target, not only if BUILD_LIBQUADMATH.
205 * Makefile.in: Regenerate.
206 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
207 avoid warning from automake.
208
209 2010-12-19 Tobias Burnus <burnus@net-b.de>
210
211 PR fortran/46520
212 * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
213 * configure: Regenerate
214
215 2010-12-13 Tobias Burnus <burnus@net-b.de>
216
217 PR fortran/46625
218 * gdtoa/gdtoaimp.h: Mangle internal functions by
219 prefixing them with __quadmath. Don't use gdtoa's strcp(y).
220 * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
221 * gdtoa/misc.c (strcpy): Renamed from strcp and only use
222 if NO_STRING_H is set.
223 * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
224 __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
225 __quadmath prefix to internal functions.
226 * math/cosq.c (cosq): Ditto.
227 * math/sinq.c (cosq): Ditto.
228 * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
229 * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
230 * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
231 * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
232
233 2010-12-08 Tobias Burnus <burnus@net-b.de>
234
235 PR fortran/46772
236 * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
237 * gdtoa/gdtoaimp.h: Don't declare strtod.
238
239 2010-12-08 Tobias Burnus <burnus@net-b.de>
240
241 PR fortran/46520
242 * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
243 AC_TRY_LINK and cache libquad_have_float128.
244 * configure: Regenerate.
245
246 2010-12-08 Tobias Burnus <burnus@net-b.de>
247
248 PR fortran/46543
249 * configure.ac: Add texinfo checks.
250 * Makefile.am: Handle .texi documentation.
251 * libquadmath.texi: New.
252 * configure: Regenerated.
253 * Makefile.in: Regenerated.
254
255 2010-12-06 Tobias Burnus <burnus@net-b.de>
256
257 PR fortran/46817
258 * quadmath-imp.h: Add LGPL header.
259 * quadmath.h: Add LGPL header.
260 * quadmath_io.c: Add LGPL header.
261 * quadmath_weak.h: Add LGPL header.
262
263 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
264
265 PR target/40125
266 PR lto/46695
267 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
268 * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
269 * aclocal.m4: Regenerate.
270 * configure: Regenerate.
271 * Makefile.in: Regenerate.
272
273 2010-11-30 Tobias Burnus <burnus@net-b.de>
274
275 PR fortran/46594
276 * Makefile.am: Install include files in
277 target/version specific directory.
278 * Makefile.in: Regenerate.
279
280 2010-11-30 Tobias Burnus <burnus@net-b.de>
281
282 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
283 LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
284 LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
285
286 2010-11-29 Kai Tietz <kai.tietz@onevision.com>
287
288 * configure: Regenerated.
289 * Makefile.in: Regenerated.
290 * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
291 (target_alias): Use AC_SUBST for it.
292 (GCC_NO_EXECUTABLES): Call it.
293 (AC_PROG_CC): Improve multilib handling.
294 Check that gcc is used for compilation.
295 Use pattern from libssp for symbol versioning checking.
296 * Makefile.am (LTLDFLAGS): Removed.
297 (libquadmath_la_LDFLAGS): Add -no-undefined.
298 (libquadmath_la_LINK): Commented out.
299 (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
300 (AM_MAKEFLAGS): Add hack for argument passing by top-level.
301 (MAKEOVERRIDES): New.
302 * aclocal.m4: Regenerated.
303
304 2010-11-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305
306 * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
307 (libquadmath_la_LDFLAGS): ... here.
308 (quadmath.map-sun): Tabify.
309 Fix sed expression.
310 * Makefile.in: Regenerate.
311
312 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
313 Tobias Burnus <burnus@net-b.de>
314
315 PR fortran/32049
316 Initial implementation and checkin.