1 2011-02-16 Jakub Jelinek <jakub@redhat.com>
3 * printf/quadmath-printf.c: Also check __GLIBC__ when checking
4 whether workarounds for printf hook handling should be added.
6 * configure.ac: Check for locale.h too.
7 (USE_LOCALE_SUPPORT): Remove check.
8 (USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
9 (USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
10 * printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
11 or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
13 * printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
14 * printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
15 (__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
16 version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
17 Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
18 USE_I18N_NUMBER_H #ifdef.
19 * configure: Regenerated.
20 * config.h.in: Regenerated.
22 2011-02-14 Jakub Jelinek <jakub@redhat.com>
25 * configure.ac (HAVE_PRINTF_HOOKS): Test if printf_info struct has
27 * printf/quadmath-printf.c (quadmath_snprintf): Clear whole info
28 field instead of setting individual fields to 0. Don't set info.user
30 * configure: Regenerated.
32 * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
33 * printf/printf_fp.c: Don't include <alloca.h>.
34 * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
35 * configure: Regenerated.
38 * libquadmath.texi (quadmath_snprintf): Document.
39 (quadmath_flt128tostr): Remove.
40 * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
41 Remove quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
42 gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
43 * quadmath.h (quadmath_snprintf): New prototype.
44 (quadmath_flt128tostr): Remove.
45 * quadmath_weak.h (quadmath_snprintf): Add.
46 (quadmath_flt128tostr): Remove.
47 * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
48 wctype.h, limits.h, ctype.h, printf.h, errno.h.
49 (AC_USE_SYSTEM_EXTENSIONS): Add.
50 (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
51 USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
52 * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf. Remove
54 * printf/printf_fphex.c: New file.
55 * printf/_itowa.h: New file.
56 * printf/mul_n.c: New file.
57 * printf/quadmath-printf.h: New file.
58 * printf/submul_1.c: New file.
59 * printf/quadmath-printf.c: New file.
60 * printf/gmp-impl.h: New file.
61 * printf/lshift.c: New file.
62 * printf/fpioconst.h: New file.
63 * printf/add_n.c: New file.
64 * printf/cmp.c: New file.
65 * printf/sub_n.c: New file.
66 * printf/mul.c: New file.
67 * printf/divrem.c: New file.
68 * printf/addmul_1.c: New file.
69 * printf/printf_fp.c: New file.
70 * printf/_itoa.h: New file.
71 * printf/fpioconst.c: New file.
72 * printf/_i18n_number.h: New file.
73 * printf/flt1282mpn.c: New file.
74 * printf/rshift.c: New file.
75 * printf/mul_1.c: New file.
76 * quadmath_io.c: Removed.
77 * gdtoa/gdtoa.c: Removed.
78 * gdtoa/g__fmt.c: Removed.
79 * gdtoa/g_Qfmt.c: Removed.
80 * gdtoa/dmisc.c: Removed.
81 * gdtoa/ulp.c: Removed.
82 * config.h.in: Regenerated.
83 * configure: Regenerated.
84 * Makefile.in: Regenerated.
86 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88 * Makefile.in: Regenerate.
89 * aclocal.m4: Likewise.
90 * configure: Likewise.
92 2011-01-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
95 * gdtoa/qd_qnan.h: Fix NAN bit patterns.
96 * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
98 2011-01-17 Tobias Burnus <burnus@net-b.de>
101 * libquadmath.text: Document typedef and constants.
103 2011-01-17 Tobias Burnus <burnus@net-b.de>
106 * quadmath-imp.h: Refer to libquadmath not ot libiberty,
107 bump copyright year and use /**/ instead of // comments.
109 * quadmath-weak.h: Ditto.
110 * quadmath_io.c: Ditto.
112 2011-01-16 Jakub Jelinek <jakub@redhat.com>
115 * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
118 * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
119 and quadmath_dtoaq. Add strtoflt128 and quadmath_flt128tostr.
120 * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
121 (strtoflt128, quadmath_flt128tostr): Add.
122 * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
123 (strtoflt128): ... this. Return __float128, instead of writing
124 to memory pointed by last argument.
125 * quadmath.h: Use C style comments instead of C++ style.
126 (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
127 (strtoflt128, quadmath_flt128tostr): Add prototypes.
128 * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
129 (quadmath_strtopQ): Rename to strtoflt128. Adjust prototype,
131 * quadmath_io.c (quadmath_dtoaq): Rename to...
132 (quadmath_flt128tostr): ... this.
134 * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
135 Use it for all prototypes.
138 * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
139 const from prototype argument.
140 (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
141 llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
142 (__quadmath_extern_inline): Define.
143 (cimagq, conjq, crealq): New inlines.
144 * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
145 math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
146 math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
147 math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
148 * Makefile.in: Regenerated.
149 * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
150 fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
151 * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
152 (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
153 tests instead of __BIG_ENDIAN__.
154 * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
155 fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
157 * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
158 fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
159 * math/cprojq.c: New file.
160 * math/ilogbq.c: New file.
161 * math/fminq.c: New file.
162 * math/llrintq.c: New file.
163 * math/log2q.c: New file.
164 * math/lrintq.c: New file.
165 * math/crealq.c: New file.
166 * math/nearbyintq.c: New file.
167 * math/fmaxq.c: New file.
168 * math/conjq.c: New file.
169 * math/remquoq.c: New file.
170 * math/cimagq.c: New file.
171 * math/fdimq.c: New file.
173 * math/ldexpq.c: Include errno.h. Set errno to ERANGE if needed.
176 * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
178 (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
179 M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
180 * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
182 * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
183 QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
184 * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
186 * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
187 math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
189 * Makefile.in: Regenerated.
190 * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
191 catanq, catanhq): Add.
192 * math/cacoshq.c: New file.
193 * math/cacosq.c: New file.
194 * math/catanq.c: New file.
195 * math/catanhq.c: New file.
196 * math/casinq.c: New file.
197 * math/casinhq.c: New file.
199 * math/hypotq.c (hypotq): Use Q suffix instead of L.
200 * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
201 * math/cosq.c (cosq): Likewise.
204 * quadmath.map (QUADMATH_1.0): Add fmaq.
205 * configure.ac: Check for fenv.h, feholdexcept, fesetround,
206 feupdateenv, fesetenv and fetestexcept.
207 * configure: Regenerated.
208 * config.h.in: Regenerated.
209 * quadmath.h (fmaq): New prototype.
210 * quadmath_weak.h (fmaq): Add.
211 * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
212 * Makefile.in: Regenerated.
213 * quadmath-imp.h: Include config.h.
214 * math/expq.c: Include fenv.h.
215 (USE_FENV_H): Define if libm support for fe* is there.
216 (expq): Add fesetround etc. support if USE_FENV_H is defined.
217 * math/fmaq.c: New file.
218 * libquadmath.texi (fmaq): Add.
220 2011-01-14 Tobias Burnus <burnus@net-b.de>
223 * configure.ac: Use ACX_BUGURL.
224 * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
225 * Makefile.am: Create libquadmath-vers.texi.
226 * configure.in: Regenerate.
227 * Makefile.in: Regenerate.
229 2011-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232 * Makefile.am (libquadmath.info): Unconditionally override
233 target, not only if BUILD_LIBQUADMATH.
234 * Makefile.in: Regenerate.
235 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
236 avoid warning from automake.
238 2010-12-19 Tobias Burnus <burnus@net-b.de>
241 * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
242 * configure: Regenerate
244 2010-12-13 Tobias Burnus <burnus@net-b.de>
247 * gdtoa/gdtoaimp.h: Mangle internal functions by
248 prefixing them with __quadmath. Don't use gdtoa's strcp(y).
249 * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
250 * gdtoa/misc.c (strcpy): Renamed from strcp and only use
251 if NO_STRING_H is set.
252 * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
253 __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
254 __quadmath prefix to internal functions.
255 * math/cosq.c (cosq): Ditto.
256 * math/sinq.c (cosq): Ditto.
257 * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
258 * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
259 * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
260 * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
262 2010-12-08 Tobias Burnus <burnus@net-b.de>
265 * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
266 * gdtoa/gdtoaimp.h: Don't declare strtod.
268 2010-12-08 Tobias Burnus <burnus@net-b.de>
271 * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
272 AC_TRY_LINK and cache libquad_have_float128.
273 * configure: Regenerate.
275 2010-12-08 Tobias Burnus <burnus@net-b.de>
278 * configure.ac: Add texinfo checks.
279 * Makefile.am: Handle .texi documentation.
280 * libquadmath.texi: New.
281 * configure: Regenerated.
282 * Makefile.in: Regenerated.
284 2010-12-06 Tobias Burnus <burnus@net-b.de>
287 * quadmath-imp.h: Add LGPL header.
288 * quadmath.h: Add LGPL header.
289 * quadmath_io.c: Add LGPL header.
290 * quadmath_weak.h: Add LGPL header.
292 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
296 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
297 * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
298 * aclocal.m4: Regenerate.
299 * configure: Regenerate.
300 * Makefile.in: Regenerate.
302 2010-11-30 Tobias Burnus <burnus@net-b.de>
305 * Makefile.am: Install include files in
306 target/version specific directory.
307 * Makefile.in: Regenerate.
309 2010-11-30 Tobias Burnus <burnus@net-b.de>
311 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
312 LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
313 LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
315 2010-11-29 Kai Tietz <kai.tietz@onevision.com>
317 * configure: Regenerated.
318 * Makefile.in: Regenerated.
319 * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
320 (target_alias): Use AC_SUBST for it.
321 (GCC_NO_EXECUTABLES): Call it.
322 (AC_PROG_CC): Improve multilib handling.
323 Check that gcc is used for compilation.
324 Use pattern from libssp for symbol versioning checking.
325 * Makefile.am (LTLDFLAGS): Removed.
326 (libquadmath_la_LDFLAGS): Add -no-undefined.
327 (libquadmath_la_LINK): Commented out.
328 (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
329 (AM_MAKEFLAGS): Add hack for argument passing by top-level.
330 (MAKEOVERRIDES): New.
331 * aclocal.m4: Regenerated.
333 2010-11-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335 * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
336 (libquadmath_la_LDFLAGS): ... here.
337 (quadmath.map-sun): Tabify.
339 * Makefile.in: Regenerate.
341 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
342 Tobias Burnus <burnus@net-b.de>
345 Initial implementation and checkin.