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