merge from gcc
[external/binutils.git] / libdecnumber / ChangeLog
1 2008-10-27  Janis Johnson  <janis187@us.ibm.com>
2
3         PR other/37897
4         * decDouble.h (decDouble): Replace struct with union accessible
5         by more types.
6         * decSingle.h (decSingle): Ditto.
7         * decQuad.h (decQuad): Ditto.
8         * decNumberLocal.h (DFWORD, DFBYTE, DFWWORD): access decFloat via
9         new members.
10         * decBasic.c (decFloatCompareTotal): Avoid type-pun violation.
11         (decNumberCompare): Ditto.
12
13 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14
15         * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies.
16         * configure: Regenerate.
17
18 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19
20         * Makefile.in (datarootdir): New variable.
21
22 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
23
24         * dconfig.h: New.
25         * decContext.c, decExcept.c, decExcept.h, decLibrary.c,
26         decNumber.c, decNumberLocal.h, decRound.c, dpd/decimal128.c,
27         dpd/decimal32.c, dpd/decimal64.c: Include dconfig.h not config.h.
28         * dpd/decimal128Local.h (decimal128SetSign, decimal128ClearSign,
29         decimal128FlipSign): Use WORDS_BIGENDIAN not
30         FLOAT_WORDS_BIG_ENDIAN.
31         * bid/host-ieee128.c: Include dconfig.h.
32         (__host_to_ieee_128, __ieee_to_host_128): Swap 64-bit halves of
33         value if WORDS_BIGENDIAN.
34
35 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
36
37         PR bootstrap/35457
38         * aclocal.m4: Regenerate.
39         * configure: Regenerate.
40
41 2008-04-18  Ben Elliston  <bje@au.ibm.com>
42
43         * Makefile.in (distclean): Add gstdint.h.
44
45 2008-01-25  Janis Johnson  <janis187@us.ibm.com>
46
47         * decCommonSymbols.h: Commit.
48         * decDPDSybmols.h: Commit.
49
50         * Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
51         * decCommonSymbols.h: New file.
52         * decCommon.c: Include it.
53         * decDPDSymbols.h: New file.
54         * decDPD.h: Include it.
55         * decNumberLocal.h: Include the two new files.
56         * decContextSymbols.h (DECPOWERS, DECSTICKYTAB): New.
57         * decNumberSymbols.h (LNnn, d2utable): New.
58         * dpd/decimal32Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
59         * dpd/decimal64Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
60         * dpd/decimal128Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
61         * dpd/decimal32.c: Remove redefine of DPD2BIN, BIN2DPD.
62         * dpd/decimal64.c: Ditto.
63         * dpd/decimal128.c: Ditto.
64
65 2007-11-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
66
67         * Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies
68         and substitute $< for the source file in compilation command.
69         (decimal64.o): Likewise.
70         (decimal128.o): Likewise.
71         (bid2dpd_dpd2bid.o): Likewise.
72         (host-ieee32.o): Likewise.
73         (host-ieee64.o): Likewise.
74         (host-ieee128.o): Likewise.
75
76 2007-10-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
77
78         * configure.ac: Add ADDITIONAL_OBJS variable.
79         * Makefile.in (bid_OBS): New.
80         (libdecnumber_a_OBJS): Add ADDITIONAL_OBJS, remove condition
81         on enable_decimal_float.
82         * configure: Regenerate.
83
84 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
85             Ben Elliston  <bje@au.ibm.com>
86
87         * Makefile.in (libdecnumber_a_OBJS): Remove decUtility.o
88         (dependencies): Add Symbols headers.
89         * decContext.c: Upgrade to decNumber 3.53.
90         * decContext.h: Ditto.
91         * decDPD.h: Ditto.
92         * decNumber.c: Ditto.
93         * decNumber.h: Ditto.
94         * decNumberLocal.h: Ditto.
95         * decBasic.c: New file from decNumber 3.53.
96         * decCommon.c: Ditto.
97         * decDouble.c: Ditto.
98         * decDouble.h: Ditto.
99         * decQuad.c: Ditto.
100         * decQuad.h: Ditto.
101         * decSingle.c: Ditto.
102         * decSingle.h: Ditto.
103         * decPacked.c: Ditto.
104         * decPacked.h: Ditto.
105         * dpd/decimal128.c: Upgrade to decNumber 3.53.
106         * dpd/decimal128.h: Ditto.
107         * dpd/decimal32.c: Ditto.
108         * dpd/decimal32.h: Ditto.
109         * dpd/decimal64.c: Ditto.
110         * dpd/decimal64.h: Ditto.
111         * decLibrary.c (__dec_byte_swap): Remove.
112         * decContextSymbols.h: New file.
113         * decDoubleSymbols.h: New file.
114         * decNumberSymbols.h: New file.
115         * decPackedSymbols.h: New file.
116         * decQuadSymbols.h: New file.
117         * decSingleSymbols.h: New file.
118         * decUtility.c: Delete file.
119         * decUtility.h: Delete file.
120         * bid/decimal128Symbols.h: New file.
121         * bid/decimal128Local.h: New file.
122         * bid/decimal32Symbols.h: New file.
123         * bid/decimal64Symbols.h: New file.
124         * bid/host-ieee128.c (__swap128): Remove.
125         (__host_to_ieee_128, __ieee_to_host_128): Don't handle endianness.
126         * bid/host-ieee32.c (__dec_type_swap): Remove.
127         (__host_to_ieee_32, __ieee_to_host_32): Don't handle endianness.
128         * bid/host-ieee64.c (__swap64): Remove.
129         (__host_to_ieee_64, __ieee_to_host_64): Don't handle endianness.
130         * dpd/decimal32Symbols.h: New file.
131         * dpd/decimal64Symbols.h: New file.
132         * dpd/decimal128Symbols.h: New file.
133         * dpd/decimal128Local.h: New file.
134
135 2007-06-18  Martin Michlmayr  <tbm@cyrius.com>
136             H.J. Lu  <hongjiu.lu@intel.com>
137
138         * configure.ac: Add AC_CANONICAL_TARGET.
139         * configure: Regenerated.
140
141 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
142
143         * Makefile.in (aclocal.m4): Depend on stdint.m4 instead of
144         acx.m4.
145
146         * aclocal.m4: Regenerated by aclocal 1.9.6.
147
148 2007-04-11  Kai Tietz   <kai.tietz@onevision.com>
149
150         * configure: Regenerate.
151
152 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
153             H.J. Lu  <hongjiu.lu@intel.com>
154             Marius Cornea  <marius.cornea@intel.com>
155
156         * Makefile.in (enable_decimal_float): New.
157         (libdecnumber_a_OBJS): Add bid2dpd_dpd2bid.o, host-ieee32.o,
158         host-ieee64.o and host-ieee128.o for BID.
159         (libdecnumber_a_SOURCES): Support DPD and BID.
160         (decimal32.o): Support dependency for both DPD and BID.
161         (decimal64.o): Likewise.
162         (decimal128.o): Likewise.
163         (bid2dpd_dpd2bid.o): New target.
164         (host-ieee32.o): Likewise.
165         (host-ieee64.o): Likewise.
166         (host-ieee128.o): Likewise.
167
168         * bid/bid-dpd.h: New file.
169         * bid/decimal128.c: Likewise.
170         * bid/decimal128.h: Likewise.
171         * bid/decimal32.c: Likewise.
172         * bid/decimal32.h: Likewise.
173         * bid/decimal64.c: Likewise.
174         * bid/decimal64.h: Likewise.
175         * bid/host-ieee128.c: Likewise.
176         * bid/host-ieee32.c: Likewise.
177         * bid/host-ieee64.c: Likewise.
178         * bid/bid2dpd_dpd2bid.c: Likewise.
179         * bid/bid2dpd_dpd2bid.h: Likewise.
180
181         * decimal128.c: Moved to ...
182         * dpd/decimal128.c: This.
183         * decimal128.h:  Moved to ...
184         * dpd/decimal128.h: This.
185         * decimal32.c: Moved to ...
186         * dpd/decimal32.c: This.
187         * decimal32.h: Moved to ...
188         * dpd/decimal32.h: This.
189         * decimal64.c: Moved to ...
190         * dpd/decimal64.c: This.
191         * decimal64.h: Moved to ...
192         * dpd/decimal64.h: This.
193
194         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
195         Add AC_C_BIGENDIAN.  Substitute enable_decimal_float.
196         * config.in: Add decimal support variables.
197         * configure: Regenerate.
198
199         PR other/30530
200         * decimal128.h (decimal128ClearSign): New.
201         (decimal128FlipSign): Likewise.
202
203         * decimal32.h: (decimal32ClearSign): New.
204         (decimal32FlipSign): Likewise.
205
206         * decimal64.h (decimal64ClearSign): New.
207         (decimal64FlipSign): Likewise.
208
209 2007-03-08  Ben Elliston  <bje@au.ibm.com>
210
211         * decContext.c, decContext.h, decDPD.h, decimal128.c,
212         decimal128.h, decimal32.c, decimal32.h, decimal64.c, decimal64.h,
213         decLibrary.c, decNumber.c, decNumber.h, decNumberLocal.h,
214         decRound.c, decRound.h, decUtility.c, decUtility.h: Add
215         libgcc-style license exception clause.
216
217 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
218
219         * Makefile.in: Add dummy install-pdf target.
220
221 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
222
223         * decExcept.c: New.
224         * decExcept.h: New.
225
226 2006-11-29  Janis Johnson  <janis187@us.ibm.com>
227
228         * decRound.c: Move declarations to new file, update comments.
229         * decRound.h: New file.
230
231 2006-11-21  Janis Johnson  <janis187@us.ibm.com>
232
233         * decLibrary.c (__dec_type_swap): Add prototype.
234         (__dfp_enable_traps, dfp_raise): Delete.
235
236         * Makefile.in: Don't include decRound in library used by compiler.
237
238 2006-10-10  Brooks Moses  <bmoses@stanford.edu> 
239         * Makefile.in: Added empty "pdf" target.
240
241 2006-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
242
243         * decNumber.c (decNumberPower): Constify.
244         * decNumber.h (decNumberPower): Likewise.
245
246 2006-09-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
247
248         * configure.ac (ACX_PROG_CC_WARNING_OPTS): Add -Wcast-qual.
249         * configure, config.in: Regenerate.
250
251         * decContext.c (decContextStatusToString): Constify.
252         * decContext.h (decContextStatusToString): Likewise.
253         * decNumber.c (decNumberToString, decNumberToEngString,
254         decNumberAbs, decNumberAdd, decNumberCompare, decNumberDivide,
255         decNumberDivideInteger, decNumberMax, decNumberMin,
256         decNumberMinus, decNumberPlus, decNumberMultiply,
257         decNumberNormalize, decNumberQuantize, decNumberRescale,
258          decNumberRemainder, decNumberRemainderNear,
259         decNumberSameQuantum, decNumberSquareRoot, decNumberSubtract,
260         decNumberToIntegralValue, decNumberCopy, decToString, decAddOp,
261         decDivideOp, decMultiplyOp, decQuantizeOp, decCompareOp,
262         decCompare, decUnitCompare, decUnitAddSub, decRoundOperand,
263         decCopyFit, decSetCoeff, decGetInt, decNaNs, decGetDigits,
264         decNumberShow, decDumpAr, decCheckOperands, decCheckNumber):
265         Likewise.
266         * decNumber.h (decNumberToString, decNumberToEngString,
267         decNumberAbs, decNumberAdd, decNumberCompare, decNumberDivide,
268         decNumberDivideInteger, decNumberMax, decNumberMin,
269         decNumberMinus, decNumberMultiply, decNumberNormalize,
270         decNumberPlus, decNumberQuantize, decNumberRemainder,
271          decNumberRemainderNear, decNumberRescale,
272         decNumberSameQuantum, decNumberSquareRoot, decNumberSubtract,
273         decNumberToIntegralValue, decNumberCopy): Likewise.
274         * decUtility.c (decDensePackCoeff, decDenseUnpackCoeff):
275         Likewise.
276         * decUtility.h (decDensePackCoeff, decDenseUnpackCoeff):
277         Likewise.
278         * decimal128.c (decimal128FromNumber, decimal128ToNumber,
279         decimal128ToString, decimal128ToEngString, decimal128Show):
280         Likewise.
281         * decimal128.h (decimal128ToString, decimal128ToEngString,
282         decimal128FromNumber, decimal128ToNumber): Likewise.
283         * decimal32.c (decimal32FromNumber, decimal32ToNumber,
284         decimal32ToString, decimal32ToEngString, decimal32Show):
285         Likewise.
286         * decimal32.h (decimal32ToString, decimal32ToEngString,
287         decimal32FromNumber, decimal32ToNumber): Likewise.
288         * decimal64.c (decimal64FromNumber, decimal64ToNumber,
289         decimal64ToString, decimal64ToEngString, decimal64Show):
290         Likewise.
291         * decimal64.h (decimal64ToString, decimal64ToEngString,
292         decimal64FromNumber, decimal64ToNumber): Likewise.
293
294 2006-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
295
296         * decContext.c (decContextSetStatusFromString): Constify.
297         * decContext.h (decContextSetStatusFromString): Likewise.
298         * decNumber.c (decNumberFromString): Likewise.
299         * decNumber.h (decNumberFromString): Likewise.
300         * decimal128.c (decimal128FromString): Likewise.
301         * decimal128.h (decimal128FromString): Likewise.
302         * decimal32.c (decimal32FromString): Likewise.
303         * decimal32.h (decimal32FromString): Likewise.
304         * decimal64.c (decimal64FromString): Likewise.
305         * decimal64.h (decimal64FromString): Likewise.
306
307 2006-07-25  Paolo Bonzini  <bonzini@gnu.org>
308
309         PR build/26188
310         * configure: Regenerate.
311
312 2006-06-23  Ben Elliston  <bje@au.ibm.com>
313
314         * decNumber.h (decNumberNegate): Remove.
315
316 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
317
318         * Makefile.in: Add install-html target. Add install-html to .PHONY
319
320 2006-02-06  Ben Elliston  <bje@au.ibm.com>
321
322         * decLibrary.c (__dec_byte_swap): Use uint32_t for argument and
323         return types.
324
325 2006-01-03  Roger Sayle  <roger@eyesopen.com>
326             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
327
328         * decNumber.c (__NO_STRING_INLINES): Define to prevent glibc macro
329         definition of strcpy from generating compilation warnings.
330
331 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
332
333         PR target/25259
334         * configure.ac: Use GCC_HEADER_STDINT.
335         * decContext.h: Include gstdint.h.
336         * aclocal.m4: Regenerate.
337         * configure: Regenerate.
338
339 2005-12-20  Roger Sayle  <roger@eyesopen.com>
340
341         * decNumber.c (decStrEq): Cast string contents to unsigned char
342         instead of int before calling tolower.
343
344 2005-12-20  Roger Sayle  <roger@eyesopen.com>
345
346         * decNumber.c (decStrEq): Cast operands to int before calling
347         tolower to avoid compilation warnings on Tru64.
348
349 2005-12-05  Ben Elliston  <bje@au.ibm.com>
350
351         * Makefile.in (clean): Remove stray reference to libcpp.a.
352
353         * decimal128.h, decContext.c, decRound.c, decimal32.c,
354         decNumber.c, decContext.h, decimal64.c, decimal32.h, decNumber.h,
355         decimal64.h, decUtility.c, decLibrary.c, configure.ac,
356         decNumberLocal.h, decUtility.h, decDPD.h, decimal128.c: Update FSF
357         office address.
358
359 2005-12-01  Ben Elliston  <bje@au.ibm.com>
360
361         * Makefile.in (libdecnumber_a_SOURCES): Drop decLibrary.c.
362         * decUtility.c (__dec_byte_swap): Move from here ..
363         * decLibrary.c: .. to here.
364
365 2005-11-23  Gerald Pfeifer  <gerald@pfeifer.com>
366
367         * decContext.h: Properly guard inclusion of stdint.h
368         * decContext.c: Include config.h
369         * decLibrary.c: Ditto.
370         * decNumber.c: Ditto.
371         * decRound.c: Ditto.
372         * decUtility.c: Ditto.
373         * decimal32.c: Ditto.
374         * decimal64.c: Ditto.
375         * decimal128.c: Ditto.
376         
377 2005-11-29  Ben Elliston  <bje@au.ibm.com>
378
379         * decUtility.c: Remove redundant #includes.
380         * decUtility.h (__dec_byte_swap): Remove prototype.
381
382 2005-11-29  Ben Elliston  <bje@au.ibm.com>
383
384         * configure.ac: New file.
385         * aclocal.m4: Likewise.
386         * Makefile.in: Likewise.
387         * configure: Generate.
388         * config.in: Likewise.
389
390 2005-11-29  Ben Elliston  <bje@au.ibm.com>
391
392         * decimal32.h, decimal64.h, decimal128.h: New.
393         * decimal32.c, decimal64.c, decimal128.c: Likewise.
394         * decContext.c, decContext.h: Likewise.
395         * decUtility.c, decUtility.h: Likewise.
396         * decNumber.c, decNumber.h, decNumberLocal.h: Likewise.
397         * decDPD.h: Likewise.
398         * decLibrary.c, decRound.c: Likewise.