]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
install.texi (Specific, [...]): Document.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
ad43d46f
KG
12001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * concat.c (reconcat): New function.
4
c1d49704
KG
52001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6
c793eea7
KG
7 * concat.c (vconcat_length, vconcat_copy, concat_length,
8 concat_copy, concat_copy2): New functions.
9 (concat): Use vconcat_length/vconcat_copy.
10
c1d49704
KG
11 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
12 Define.
13
7a98d9b2
KG
142001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15
16 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
17 VA_FIXEDARG & VA_CLOSE.
18
19 * vasprintf.c: Check HAVE_STRING_H when including string.h.
20 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
21 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
22
e2dff3f2
KG
232001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24
25 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
26
d0708dc1
UD
272001-08-23 Ulrich Drepper <drepper@redhat.com>
28
29 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
30
312001-08-23 Ulrich Drepper <drepper@redhat.com>
32
33 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
34 instead of mbrtowc.
35 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
36 wcslen, and __wcscoll instead of wcscoll.
37
ffb9435b
MK
382001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
39
40 * fibheap.c (fibheap_init, fibnode_init): Remove.
41 (fibheap_new, fibnode_new): Use xcalloc to allocate and
42 initialize memory.
43 (fibheap_insert): Remove check for node allocation failure.
44
f379eac3
RH
452001-08-21 Richard Henderson <rth@redhat.com>
46
47 * Makefile.in (fibheap.o): Depend on config.h.
48 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
49 functions for inlining.
50
b1c45ae4
CF
51Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
52
53 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
54 hosting on cygwin.
55 * configure: Regenerate.
56
0310e5ac
AC
572001-08-20 Andrew Cagney <ac131313@redhat.com>
58
59 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
60 HARRIS_FLOAT_FORMAT.
61 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
62 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
63 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
64 (floatformat_m88110_harris_ext): New float formats.
65
8c23e0a4
DB
662001-08-20 Daniel Berlin <dan@cgsoftware.com>
67
68 * fibheap.c: New file. Fibonacci heap.
69
70 * Makefile.in (CFILES): Add fibheap.c.
71 (REQUIRED_OFILES): Add fibheap.o.
72 (fibheap.o): Add dependencies for fibheap.o.
73
91625004
CF
742001-08-17 Christopher Faylor <cgf@cygnus.com>
75
76 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
77 * configure: Regenerate.
78
9e0ba685
RH
792001-08-16 Richard Henderson <rth@redhat.com>
80
81 * hashtab.c (htab_hash_string): New.
82
d80dedbe
AC
832001-08-13 Andrew Cagney <ac131313@redhat.com>
84
85 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
86 name.
87
ccea0d85
IH
882001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
89
90 * regex.c (wcs_regex_compile): Use appropriate string
91 to compare with collating element.
92 Fix the padding for the alignment.
93
b0e9bc8c 942001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
95
96 * lbasename.c (lbasename): Change function definition to return a
97 const char pointer.
98
056400f1
JM
992001-08-07 Jason Merrill <jason_merrill@redhat.com>
100
101 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
102 for".
103
4e627c41
RH
1042001-08-03 Richard Henderson <rth@redhat.com>
105
106 * Makefile.in (concat.o): Depend on config.h.
107
b6a2f884
AJ
1082001-07-30 Andreas Jaeger <aj@suse.de>
109
110 * concat.c: Include "config.h".
111
c4b9cfe0
AJ
1122001-07-30 Andreas Jaeger <aj@suse.de>
113
114 * regex.c: Declare wcs functions only if compiling with
115 MBS_SUPPORT.
116 Don't use #elif for traditional C.
117
1182001-07-23 Ulrich Drepper <drepper@redhat.com>
119
120 * regex.c: Revamp memory allocation for WCHAR functions to
121 not use too much stack.
122
1232001-07-30 Andreas Jaeger <aj@suse.de>
124
125 * regex.c: Declare wcs functions only if compiling with
126 MBS_SUPPORT.
127 Don't use #elif for traditional C.
128
2cf50fd3
DJ
1292001-07-25 Daniel Jacobowitz <drow@mvista.com>
130
131 * Makefile.in (regex.o): Add dependency on config.h.
132
27ffc806
DD
1332001-07-18 Andreas Schwab <schwab@suse.de>
134
135 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
136 underscore character.
137
1382001-07-18 Ulrich Drepper <drepper@redhat.com>
139
140 * regex.c: Limit string length printed in debug messages to 100
141 chars.
142
1432001-07-18 Andreas Jaeger <aj@suse.de>
144
145 * regex.c: Place under LGPL version 2.1.
146
dd771632
JJ
1472001-07-10 Jeff Johnston <jjohnstn@redhat.com>
148
149 * Makefile.in: Add support for regex code.
150 * regex.c: New file.
151
29650b2b
MK
1522001-07-05 Mark Klein <mklein@dis.com>
153
154 * Makefile.in: Add ffs.c dependency.
155 * configure.in: Add ffs.c.
156 * ffs.c: New file.
157
c8b28221
RH
1582001-06-18 Richard Henderson <rth@redhat.com>
159
160 * concat.c: Include <sys/types.h>.
161
473c2d0b
LR
1622001-06-11 Loren J. Rittle <ljrittle@acm.org>
163
a4c03da2 164 bootstrap/3106
473c2d0b
LR
165 * strerror.c (sys_nerr): Hide the OS header version.
166 * strsignal.c (sys_nsig): Likewise.
167
0bdcca68
RH
1682001-06-10 Richard Henderson <rth@redhat.com>
169
170 * concat.c: Include string.h. Fix int vs size_t usage.
171 Simplify the iteration loops. Use memcpy.
172
6de133d3
MK
1732001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
174
175 * partition.c: Fix misspelling of `implementation'.
176
8a153288
TS
1772001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
178
179 * md5.c (md5_init_ctx): Declare constants as unsigned.
180 (md5_process_block): Likewise.
181
641b2721
ZW
1822001-05-07 Zack Weinberg <zackw@stanford.edu>
183
184 * cp-demangle.c (demangle_v3_with_details,
185 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
186 function definition.
187 * ternary.c: Use K+R style function definitions. Use PTR, not
188 void *. Make arguments constant where possible.
189
5cdba4ff
MM
1902001-05-07 Mark Mitchell <mark@codesourcery.com>
191
192 * splay-tree.h (splay_tree_max): New function.
193 (splay_tree_min): Likewise.
194
9dab060e
DB
1952001-04-15 Daniel Berlin <dan@cgsoftware.com>
196
197 * ternary.c: New file - Ternary search tree implementation.
198
199 * Makefile.in: Add ternary.o, and ternary.c dependencies.
200
d02af173
ZW
2012001-04-03 Zack Weinberg <zackw@stanford.edu>
202
203 * make-temp-file.c (try): Inline.
204
94b68558
RH
2052001-02-28 Richard Henderson <rth@redhat.com>
206
207 * Makefile.in (make-temp-file.o): Depend on config.h.
208
27f66c0b
KG
2092001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
210
211 * memchr.c (memchr): Adjust condition to avoid infinite loop.
212
f1a0345c
JJ
2132001-03-23 Jakub Jelinek <jakub@redhat.com>
214
215 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
216 `_' not followed by a digit is invalid.
217
a519fba6
JB
2182001-03-22 Jim Blandy <jimb@redhat.com>
219
220 * cp-demangle.c (string_list_delete): Use dyn_string_delete
221 instead of free, to free the contents as well as the string
222 structure.
223
49ee944b
ZW
2242001-03-21 Zack Weinberg <zackw@stanford.edu>
225
226 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
227 Don't default P_tmpdir to anything. Try /var/tmp before
228 /usr/tmp.
229
33437dc7
ZW
2302001-03-20 Zack Weinberg <zackw@stanford.edu>
231
232 * choose-temp.c: Split off make_temp_file, and the code
233 duplicated between it and choose_temp_base, into...
234 * make-temp-file.c: ... here; new file.
235
236 * Makefile.in (CFILES): Add make-temp-file.c.
237 (REQUIRED_OFILES): Add make-temp-file.o.
238
7dce2eff
JB
2392001-03-20 Jim Blandy <jimb@redhat.com>
240
241 * cp-demangle.c (struct demangling_def): New fields:
242 is_constructor and is_destructor.
243 (demangling_new): Initialize them.
244 (demangle_ctor_dtor_name): Set them, if we detect a constructor
245 or destructor.
246 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
247 is_gnu_v3_mangled_dtor): New functions.
248
e03a61f1
JM
2492001-03-20 Jason Merrill <jason@redhat.com>
250
251 * cplus-dem.c (main): Skip initial $.
252
8860ddab
MM
2532001-03-15 Michael Meissner <meissner@redhat.com>
254
255 * hashtab.c (higher_prime_number): Silence warning that 4294967291
256 might be a signed integer under pre-ISO C systems.
257
2b757d51
NB
2582001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
259 John David Anglin <dave@hiauly1.hia.nrc.ca>
260
261 * libiberty/lbasename.c: New file.
262 * libiberty/Makefile.in: Update for lbasename.
263
1f50aafb
ZW
2642001-03-06 Zack Weinberg <zackw@stanford.edu>
265
266 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
267 * configure.in: Replace all alloca logic with a simple use of
268 the above new macro.
269 * config.table: Kill *-*-beos* entry.
270 * config/mh-beos: Delete.
271 * configure, config.in: Regenerate.
272
273 * Makefile.in (ALLOCA, HFILES): Kill.
274 (REQUIRED_OFILES): Add alloca.o.
275 (alloca.o): Depend on libiberty.h.
276 (argv.o): Don't depend on alloca-conf.h.
277 * alloca-conf.h: Delete.
278 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
279 blocks. Provide the C alloca unconditionally. Use PTR where
280 appropriate. Make i00afunc static.
281 * argv.c: Don't include alloca-conf.h.
282
d9fd5aae
JDA
2832001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
284
285 * cplus-dem.c (main): Cast enum style to int.
286
4031ed65
LR
2872001-02-16 Loren J. Rittle <ljrittle@acm.org>
288
289 * cplus-dem.c (main): Initialize style.
290
2ca46e8a
PE
2912001-02-02 Phil Edwards <pme@sources.redhat.com>
292
293 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
294
3b60dd8e
BM
2952001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
296
297 Add support for Java demangling under the v3 ABI:
298 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
299 (struct demangling_def): Add `style' field.
300 (demangling_new): New parameter `style'. Set it in demangling_t.
301 (demangle_prefix): Use NAMESPACE_SEPARATOR.
302 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
303 (cp_demangle): New parameter `style'. Pass it to demangling_new().
304 (main): Call cp_demangle with extra parameter.
305 (java_demangle_v3): New function.
306 (java_builtin_type_names): New. Table of primitive type names used
307 for Java demangling.
308 (demangle_builtin_type): Look up in java_builtin_type_names if doing
309 Java output.
1f50aafb 310 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
311 demangling.
312 (long_options): Remove obsolete `java' option.
313 (main): Remove explicit handling of `java' option. Instead, pass style
314 parameter in cplus_demangle flags as gdb does.
315 * testsuite/demangle.expected: Add some Java test cases.
316
584932e9
DD
3172000-12-29 DJ Delorie <dj@redhat.com>
318
319 * fnmatch.c: Make the note about the origins of this file more
320 accurate, at least until we can sync with glibc.
321 * getopt.c: Ditto.
322 * getopt1.c: Ditto.
323 * md5.c: Ditto.
324 * obstack.c: Ditto.
325
dac45916
MS
3262000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
327
328 * bsearch.c: New file.
329 * configure.in (funcs): Add bsearch.
330 (AC_CHECK_FUNCS): Likewise.
331 * configure, config.in: Regenerate.
332
a8e4a997
MS
3332000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
334
335 * safe-ctype.c: #include "ansidecl.h".
336 * strtod.c: Likewise.
337
75444da7
MS
3382000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
339
340 * strtoul.c: Include safe-ctype.h, not ctype.h.
341
f6bbde28
ZW
3422000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
343
344 * safe-ctype.c: New file.
345 * Makefile.in (CFILES): Add safe-ctype.c.
346 (REQUIRED_OFILES): Add safe-ctype.o.
347
348 * argv.c: Define ISBLANK and use it, not isspace.
349 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
350 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
351 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
352 before calling TOLOWER(c)/TOUPPER(c).
353
6c1ce62b 3542000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
355
356 * Makefile.in (distclean): When cleaning, remove testsuite.
357
b5d1497d
JM
3582000-12-05 Jason Merrill <jason@redhat.com>
359
360 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
361 name before allocating the dyn_string.
362
c6e13630
JM
3632000-12-04 Jason Merrill <jason@redhat.com>
364
365 * cp-demangle.c: s/new_abi/v3/.
366 * cplus-dem.c: Likewise.
367 (current_demangling_style): Now auto_demangling.
368 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 369 (main): Use standard symbol chars for auto_demangling.
c6e13630 370
a4c9b97e
MM
3712000-11-26 Mark Mitchell <mark@codesourcery.com>
372
373 * hashtab.c (higher_prime_number): Use a table, rather than a
374 seive, to find the next prime.
375
3b3bd9a7
L
3762000-11-22 H.J. Lu <hjl@gnu.org>
377
378 * cplus-dem.c (main): Handle gnat_demangling.
379
d1209685
ZW
3802000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
381
382 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
383 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
384 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
385 argument form of AC_DEFINE in dummy definitions block. Use
386 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
387 in dummy block. Preload cache variables instead of bypassing
388 tests, where possible.
389 * acconfig.h: Removed.
390
391 * xmalloc.c (xmalloc_failed): New function, does error
392 reporting on failed allocation.
393 (xmalloc, xcalloc, xrealloc): Use it.
394
cf183ac2
HPN
3952000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
396
397 * cplus-dem.c (cplus_demangle): Fix formatting.
398 (grow_vect): Ditto.
399 (ada_demangle): Ditto.
400 (internal_cplus_demangle): Ditto.
401 (mop_up): Ditto.
402
4032000-11-21 H.J. Lu <hjl@gnu.org>
404
405 * cplus-dem.c (main): Handle java_demangling.
406
8bcc782c
KG
4072000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
408
409 * cplus-dem.c (grow_vect): Prototype.
410 (ada_demangle): Cast the arg of ctype macros to unsigned char.
411
29120f44
HPN
4122000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
413
414 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
415 parameter `option'.
416
0437a5a8
KB
4172000-11-15 Kenneth Block <kenneth.block@compaq.com>
418
9e038f71 419 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
420 be used in GCC.
421
eab0c1ab 4222000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 423
29120f44 424 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
425 list.
426
d50d20ec
HPN
4272000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
428
429 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
430 xcalloc depending on htab->return_allocation_failure. Return zero
431 if calloc fails.
d50d20ec
HPN
432 (htab_create): Update comment to cover memory allocation.
433 (htab_try_create): New.
434 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 435 Update comment to cover this.
d50d20ec 436
35e9340f
HPN
4372000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
438
439 * hashtab.c: Change void * to PTR where necessary.
440 (htab_create, htab_expand): Correct formatting of comment before
441 function.
442
ea343d1a 4432000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
444
445 * cp-demangle.c (string_list_def): Add caret_position and comments.
446 (result_caret_pos): New macro.
447 (result_append_string): Rename to...
448 (result_add_string): ... this, and insert at caret position.
d1209685 449 Rename throughout.
0870bfd6
AS
450 (result_append): Rename to...
451 (result_add): ... this, and insert at caret position. Rename
d1209685 452 throughout.
0870bfd6
AS
453 (result_append_char): Rename to...
454 (result_add_char): ... this, and insert at caret position. Rename
d1209685 455 throughout.
0870bfd6
AS
456 (result_append_space): Remove.
457 (string_list_new): Initialize caret position.
458 (result_add_separated_char): Use caret position.
459 (result_get_caret): New funtion.
460 (result_set_caret): Likewise.
461 (result_shift_caret): Likewise.
462 (result_previous_char_is_space): Likewise.
463 (substitution_start): Use caret position.
464 (substitution_add): Likewise.
465 (demangling_new): Initialize caret position.
466 (demangle_encoding): Use caret position.
d1209685 467 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
468 (demangle_type_ptr): Use switch statement. Handle pointers to
469 arrays. Don't use result_append_space. Use caret position.
470 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
471 call to demangle_array_type.
472 (demangle_array_type): Add parameter to handle pointers to arrays.
473
f15b9af9
MM
4742000-10-01 Mark Mitchell <mark@codesourcery.com>
475
476 * splay-tree.c (splay_tree_insert): Fix formatting.
477
8f17b5c5
MM
4782000-09-16 Mark Mitchell <mark@codesourcery.com>
479
480 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
481
4eaa189a
MS
4822000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
483
484 * splay-tree.c: #include <stdio.h>.
485
29791078
HPN
4862000-09-14 Hans-Peter Nilsson <hp@axis.com>
487
488 * testsuite/demangle-expected: Add two tests for anonymous
489 namespaces.
490 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
491
2c9f4db7
MM
4922000-09-10 Mark Mitchell <mark@codesourcery.com>
493
494 * splay-tree.c (splay_tree_predecessor): New function.
495 (splay_tree_successor): Likewise.
496
bb22da4b
HPN
4972000-09-10 Hans-Peter Nilsson <hp@axis.com>
498
499 * testsuite/demangle-expected: Add four tests for type_info
500 mangling.
bb22da4b
HPN
501 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
502 for a non-template non-qualified type_info function or node.
503
759e8187
AS
5042000-09-08 Alex Samuel <samuel@codesourcery.com>
505
506 * cp-demangle.c: Fix copyright banner.
507
2ecd81ef
MS
5082000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
509
510 * md5.c: #include "ansidecl.h".
511
d93998ec
AS
5122000-09-06 Alex Samuel <samuel@codesourcery.com>
513
514 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
515 (demangle_type): Handle substitution candidates correctly in the
516 face of special substitutions.
517
1056d228
AS
5182000-09-05 Alex Samuel <samuel@codesourcery.com>
519
520 * cp-demangle.c (demangle_encoding): Rename variable.
521 (demangle_name): Rename parameter. Handle return type
522 suppression.
523 (demangle_nested_name): Rename parameter.
524 (demangle_prefix): Likewise. Change return type suppression.
525 (demangle_unqualified_name): Add parameter. Flag constructors and
526 conversion operators.
527 (demangle_special_name): Fix comment.
528 (demangle_type): Rename variable.
529 (demangle_bare_function_type): Check for missing return type and
d1209685 530 parameter.
1056d228
AS
531 (demangle_class_enum_type): Rename parameter.
532 (demangle_discriminator): Fix misspelling in comment.
533
2f31ed7e
DD
5342000-08-31 DJ Delorie <dj@redhat.com>
535
536 * configure.in (Cygwin): special case cygwin only when we're
537 building cygwin, not when we're hosting cygwin.
538
02bcb9c6
AS
5392000-09-04 Alex Samuel <samuel@codesourcery.com>
540
541 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
542 <expression>.
543
aee749cf
AS
5442000-09-04 Alex Samuel <samuel@codesourcery.com>
545
546 * cp-demangle.c (demangle_type_ptr): Increment position past
547 pointer and reference characters.
548
92a16bbe
AS
5492000-09-04 Alex Samuel <samuel@codesourcery.com>
550
551 * cp-demangle.c (demangle_nv_offset): New function.
552 (demangle_v_offset): Likewise.
553 (demangle_call_offset): Likewise.
554 (demangle_special_name): Update thunk demangling to comply with
555 ABI changes.
d1209685 556
31e0ab1f
AS
5572000-09-03 Alex Samuel <samuel@codesourcery.com>
558
559 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
560 (substitution_def): Remove template_parm_number.
561 (NOT_TEMPLATE_PARM): Remove.
562 (result_insert_string): New macro.
563 (result_insert): Likewise.
564 (result_insert_char): Likewise.
565 (substitution_add): Remove last parameter. Don't store template
d1209685 566 parm number.
31e0ab1f
AS
567 (BFT_NO_RETURN_TYPE): Define as NULL.
568 (demangle_encoding): Adjust call to demangle_bare_function_type.
569 (demangle_name): Adjust substitution. Adjust call to
d1209685 570 substitution_add.
31e0ab1f
AS
571 (demangle_prefix): Adjust call to substitution_add.
572 (demangle_identifier): Handle anonymous namespaces.
573 (demangle_operator_name): Change demangling of vendor-extended
574 operator to match ABI changes.
575 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 576 substitutions here.
31e0ab1f
AS
577 (demangle_type): Adjust calls to demangle_template_param,
578 substitution_add, and demangle_type_ptr. Fix substitution of
579 templated types.
580 (demangle_function_type): Change parameter to a pointer.
581 (demangle_bare_function_type): Likewise. Adjust insertion point.
582 (demangle_template_param): Remove last parameter.
583 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 584 demangle_template_param.
31e0ab1f
AS
585 (is_mangled_char): Accept `$' and `.'.
586 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
587 * dyn-string.c (dyn_string_insert_char): New function.
588
ccbc3eb7
HPN
5892000-08-31 Hans-Peter Nilsson <hp@axis.com>
590
591 * testsuite/demangle-expected: Add nine tests for
592 underscore-after-number followed by five tests for name-signature
593 delimiter.
594
53dce582
RH
5952000-08-28 Richard Henderson <rth@cygnus.com>
596
597 * Makefile.in (md5.o): Depend on config.h.
598
881c6935
JM
5992000-08-28 Jason Merrill <jason@redhat.com>
600
601 * Makefile.in (REQUIRED_OFILES): Add md5.o.
602 (CFILES): Add md5.c.
603 * md5.c: New file.
604
a440fd19
AS
6052000-08-27 Alex Samuel <samuel@codesourcery.com>
606
607 * cp-demangle.c (demangle_name): Initialize template_p in local
608 name case. Don't re-add substitutions as candidates.
609 (demangle_nested_name): Use <unqualified-name>.
610 (demangle_prefix): Likewise. Don't add template names as
611 substitution candidates twice, or re-add a substitution or the
612 last prefix component.
613 (demangle_local_name): Adjust output format.
614
d01ce591
AS
6152000-08-25 Alex Samuel <samuel@codesourcery.com>
616
617 * cp-demangle.c (result_add_separated_char): Change parameter to
618 int.
619 (substitution_add): Don't check for duplicates. Check if
620 previously allocated size is zero.
621 (demangle_name): Remove duplicate check for std substitution.
622 Clear template flag appropriately.
623 (demangle_prefix): Remove argument to demangle_substitution.
624 Don't check that template flag is already set.
625 (demangle_operator_name): Add pt operator.
626 (demangle_type): Don't treat r as built-in type. Remove argument
627 to demangle_substitution. Fix substitution candidate mechanics.
628 Handle <template-template-parm>s. Improve comments.
d1209685 629 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
630 (demangle_substitution): Remove parameter.
631 (print_usage): Remove extra fprintf option.
632
2f59c8eb
GM
6332000-08-24 Greg McGary <greg@mcgary.org>
634
635 * libiberty/random.c (end_ptr): Revert previous change.
636
2f26c11d
GM
6372000-08-24 Greg McGary <greg@mcgary.org>
638
639 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
640 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
641 * libiberty/random.c (end_ptr): Likewise.
642
e282c9c9
AS
6432000-08-23 Alex Samuel <samuel@codesourcery.com>
644
645 * cp-demangle.c (result_close_template_list): Remove function.
646 (result_add_separated_char): New function.
647 (result_open_template_list): New macro.
648 (result_close_template_list): Likewise.
649 (demangle_prefix): Don't set template_p if the
650 prefix ends with a ctor name.
651 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
652 (demangle_type): Check for template args after substitution.
653 (demangle_template_args): Use result_open_template_list.
d1209685 654
c9b6494a
ZW
6552000-08-02 Zack Weinberg <zack@wolery.cumb.org>
656
657 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
658
d1209685 6592000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
660
661 * config/mh-openedition.h: Added -DLE370 definition.
662
0aab2795
ME
6632000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
664
665 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
666 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
667 Cast program to 'char *' in errmsg_arg assignment.
668 (PWAIT_ERROR): Define.
669 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
670 to DJGPP's WIF* macros.
671
c2f275e4
RB
6722000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
673 Jeff Law <law@cygnus.com>
674
73aa9564
RB
675 * getcwd.c: Include string.h, stdlib.h for prototypes
676
c2f275e4 677 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
678 * rename.c: Include config.h, unistd.h
679 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 680
ccbc3eb7
HPN
6812000-07-24 Hans-Peter Nilsson <hp@axis.com>
682
683 * cplus-dem.c (work_stuff_copy_to_from): New.
684 (delete_non_B_K_work_stuff): New.
685 (delete_work_stuff): New.
686 (mop_up): Break out work_stuff partly destruction to
687 delete_non_B_K_work_stuff.
688 (iterate_demangle_function): New.
689 (demangle_prefix): Call iterate_demangle_function instead of
690 demangle_function_name. Leave handling of name-signature
691 __-delimiters to iterate_demangle_function.
692 (demangle_integral_value): Strip an optional
693 following underscore cautiously. Handle negative numbers.
694
3388651c
DB
6952000-07-24 Daniel Berlin <dberlin@redhat.com>
696
d1209685 697 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
698 if (AUTO_DEMANGLING || GNU_DEMANGLING)
699
0fac482e
AS
7002000-07-21 Alex Samuel <samuel@codesourcery.com>
701
702 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
703 allocating ctor mangling.
704 (demangle_array_type): Handle empty and non-constant array length.
705
8502a100 7062000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
707 Jeff Law <law@cygnus.com>
708
c6451ce1
MS
709 * configure.in (AC_CHECK_HEADERS): Add time.h.
710 (AC_HEADER_TIME): Add check.
711 * configure, config.in: Regenerate.
712 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
713
cd447360
MS
714 * configure.in (AC_CHECK_HEADERS): Add limits.h.
715 * configure, config.in: Regenerate.
716 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
717 * strtol.c, strtoul.c: #include "config.h". Portably #include
718 <limits.h> and/or <sys/param.h>.
719 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 720
3b58c099
MS
721 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
722 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
723 * configure, config.in: Regenerate.
724 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
725
8502a100
MS
726 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
727
da0c7743
MS
7282000-07-21 Mike Stump <mrs@wrs.com>
729
730 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 731 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 732
838f8562
KG
7332000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
734
735 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
736
737 * setenv.c (setenv): Initialize variable `ep'.
738
739 * sigsetmask.c (abort): Prototype.
740
741 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
742 __STDC__ for stdarg.h include.
743 (int_vasprintf): Prototype.
744 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
745 definition. Cast `global_total_width' in comparison.
746 (main): Prototype. Return a value.
747
748 * vfork.c (fork): Prototype.
749
750 * xexit.c: Include config.h.
751
e9958132
JM
7522000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
753
754 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
755 and print it with %u.
756
39a6492f
HPN
7572000-07-17 Hans-Peter Nilsson <hp@axis.com>
758
759 * testsuite/regress-demangle (failed test): Show result and
760 expected output.
761
6d0be369
AH
7622000-07-07 Andrew Haley <aph@cygnus.com>
763
764 * cplus-dem.c (main): fflush() after emitting last char before
765 waiting for input.
766
bece74bd
AS
7672000-06-28 Alex Samuel <samuel@codesourcery.com>
768
769 * cp-demangle.c (demangle_encoding): Accept no substitutions.
770 (demangle_name): Handle <substitution> followed by
771 <unqualified-template-name>.
772 (demangle_type): Follow special substitutions with
773 <class-enum-type>
774 (demangle_subtitution): Set template_p for special substitutions.
775 (main): Fix typos.
d1209685 776
229b8ec7
AS
7772000-06-27 Alex Samuel <samuel@codesourcery.com>
778
779 * cp-demangle.c (demangle_special_name): Swap base and derived
780 class when demangling construction vtables.
781
051664b0
AS
7822000-06-21 Alex Samuel <samuel@codesourcery.com>
783
784 * cp-demangle.c: Don't include ctype.h.
785 (IS_DIGIT): New macro.
786 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
787 instead of isdigit and isalpanum.
788 (demangling_def): Make name and next const pointers.
789 (STATUS_ALLOCATION_FAILED): New status code.
790 (dyn_string_append_space): Handle failure in
791 dyn_string_append_char.
792 (int_to_dyn_string): Likewise. Change return value to status_t.
793 (string_list_new): Handle failure of dyn_string_init.
794 (result_close_template_list): Change return type to status_t.
795 Handle failure in dyn_string_append.
796 (result_push): Change return value to status_t. Handle failure in
797 string_list_new. Handle failure of result_push throughout.
798 (substitution_add): Change return value to status_t. Handle
799 dyn_string failures. Handle failure of substitution_add
800 throughout.
801 (template_arg_list_new): Return NULL on allocation failure.
802 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
803 Handle error result throughout.
804 (result_append): Likewise.
805 (result_append_char): Likewise.
806 (result_append_space): Likewise.
807 (demangling_new): Make argument a const pointer. Handle
808 allocation failures.
809 (demangle_template_args): Handle failure in template_arg_list_new
810 and result_close_template_list.
811 (demangle_discriminator): Return if int_to_dyn_string fails.
812 (cp_demangle): Likewise.
813 (cp_demangle_type): New function.
814 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
815 memory allocation failure.
816 (main): Likewise.
817 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
818 IN_LIBGCC2.
819 (dyn_string_init): Change return value to int. Handle
820 RETURN_ON_ALLOCATION_FAILURE case.
821 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
822 (dyn_string_release): Delete the dyn_string.
823 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
824 (dyn_string_copy): Change return type to int.
825 (dyn_string_copy_cstr): Likewise.
826 (dyn_string_prepend): Likewise.
827 (dyn_string_prepend_cstr): Likewise.
828 (dyn_string_insert): Likewise.
829 (dyn_string_insert_cstr): Likewise.
830 (dyn_string_append): Likewise.
831 (dyn_string_append_cstr): Likewise.
832 (dyn_string_append_char): Likewise.
833 (dyn_string_substring): Likewise.
d1209685 834
fe06b696
ZW
8352000-06-09 Zack Weinberg <zack@wolery.cumb.org>
836
837 * cp-demangle.c (demangle_operator_name): Add spaces before
838 names beginning with a letter: delete, delete[], new, new[],
839 sizeof.
840 (demangle_special_name): Handle TF <type> and TJ <type>.
841
6223e158
PDM
842Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
843
844 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
845
48f3e29b
PDM
846Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
847
848 * cp-demangle.c (stdio.h): File included unconditionaly.
849 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
850 * dyn-string.c (stdio.h): File included.
851 * partition.c (partition_print): No `&' needed to take the address of
852 a function.
853
69197e7e
KG
8542000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
855
856 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 857
69197e7e
KG
858 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
859
860 * cp-demangle.c (demangle_char): Change parameter from char to int.
861 (demangle_expression, demangle_expr_primary): Remove extra
862 semi-colon in prototype.
863
864 * dyn-string.c (dyn_string_append_char): Change parameter from
865 char to int.
866
867 * memcmp.c (memcmp): Constify.
868
869 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
870 __extension__.
871
872 * partition.c (elem_compare): Prototype. Don't cast away
873 const-ness.
874
875 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 876
7eb23b1f
KG
8772000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
878
879 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
880
881 * cp-demangle.c: Include demangle.h.
882 (template_arg_list_new): DeANSIfy.
883 (cp_demangle): Make static and add prototype.
884 (operator_code, operators): Constify.
885 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
886
3faa108c
AS
8872000-06-05 Alex Samuel <samuel@codesourcery.com>
888
889 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
890 unsigned char.
891 (demangle_unqualified_name): Likewise.
892 (demangle_number_literally): Likewise.
893 (demangle_type): Likewise.
894 (demangle_substitution): Likewise.
895 (is_mangled_char): Likewise, for isalnum.
896
69afa80d
AS
8972000-06-04 Alex Samuel <samuel@codesourcery.com>
898
899 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
900 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
901 (cp-demangle.o): New dependency.
902 (dyn-string.o): Likewise.
903
904 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
905
906 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
907 demangler.
908 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
909 demangling mode.
910 (gnu_new_abi_symbol_characters): New function.
911 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
912 file.
913 * cp-demangle.c: New file.
d1209685 914
0b72c3df
AC
915Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
916
917 * floatformat.c: Add name to each floatformat field.
918
270cea06
JL
919Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
920
921 * Makefile.in (objalloc.o): Depend on config.h
922
d11ec6f0
ZW
9232000-05-29 Zack Weinberg <zack@wolery.cumb.org>
924
925 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
926 if HAVE_STRING_H.
927 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
928 * objalloc.c: Include config.h. Include stdlib.h and don't
929 declare malloc or free if HAVE_STDLIB_H.
930 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
931 else declare malloc without prototype. Include string.h if
932 HAVE_STRING_H, else declare memset without prototype. Don't
933 include stddef.h.
934
f8e2da56
MS
9352000-05-23 Mike Stump <mrs@wrs.com>
936
937 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 938 -j3.
f8e2da56 939
650f3068
DA
9402000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
941
942 * xmalloc.c: Include config.h for HAVE_SBRK definition.
943
1d2da2e1
HB
9442000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
945
d1209685 946 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
947 probably zero, also eliminate a warning on alpha.
948
47668d0a
DE
9492000-05-15 David Edelsohn <edelsohn@gnu.org>
950
c7a79a32 951 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
952 on $(enable_shared).
953
36348eab
JJ
9542000-05-10 Jakub Jelinek <jakub@redhat.com>
955
956 * config.table: Use mh-sparcpic for sparc*-*-*.
957
209bbe34
NC
9582000-05-08 Nick Clifton <nickc@cygnus.com>
959
960 * Makefile.in (CFILES): Add strncmp.c.
961 (NEEDED): Add strncmp.
962
a85a47fb
KG
9632000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
964
965 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
966 Cast the arguments to `islower' to `unsigned char'.
967 (print_demangler_list): Prototype.
968
4aef973c
PDM
969Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
970
971 * sort.c (UCHAR_MAX): Provide fallback definition.
972
3b94497c
AO
9732000-04-29 Alexandre Oliva <aoliva@cygnus.com>
974
975 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
976 SUBDIRS.
977
24eaa47a
KB
9782000-04-28 Kenneth Block <block@zk3.dec.com>
979 Jason Merrill <jason@casey.cygnus.com>
980
d1209685
ZW
981 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
982 (cplus_demangle_set_style): New function for setting style.
983 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 984
a9266bfa
KG
9852000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
986
987 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
988
989 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
990 (libiberty_AC_FUNC_STRNCMP): Invoke.
991
992 * strncmp.c: New file.
993
8e02c4d0
JH
994Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
995
996 * hashtab.c (htab_expand): Add prototype.
997 (find_empty_slot_for_expand): Likewise.
998
4feeaae3
KG
9992000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1000
1001 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1002 match prototype.
1003 (htab_expand): Cast the return value of xcalloc.
1004
18a94a2f
MM
10052000-04-24 Mark Mitchell <mark@codesourcery.com>
1006
1007 * hashtab.c (hash_pointer): New function.
1008 (eq_pointer): Likewise.
1009 (htab_hash_pointer): New variable.
1010 (htab_eq_pointer): Likewise.
1011
eeb0656f
MM
10122000-04-23 Mark Mitchell <mark@codesourcery.com>
1013
b51024fc
MM
1014 * sort.c (sort_pointers): Fix endianness bugs.
1015
eeb0656f
MM
1016 * sort.c: New file.
1017 * Makefile.in (CFILES): Add sort.c
1018 (REQUIRED_OFILES): Add sort.o.
1019 (sort.o): New target.
1020
7277f72d
MS
10212000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1022
1023 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1024 4.3BSD systems.
1025
e38992e8
RK
1026Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1027
1028 * hashtab.c: Various minor cleanups.
1029 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1030 (htab_find_slot): Likewise.
1031
498e1ab1
DP
10322000-04-16 Dave Pitts <dpitts@cozx.com>
1033
1034 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 1035
dc17cc7b
RH
10362000-04-05 Richard Henderson <rth@cygnus.com>
1037
1038 * splay-tree.c (splay_tree_remove): New.
1039
b13eb66b
MM
10402000-03-30 Mark Mitchell <mark@codesourcery.com>
1041
1042 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1043 codes.
1044 (htab_find_with_hash): Likewise.
1045 (htab_find_slot_with_hash): Likewise.
d1209685 1046
0194e877
ZW
10472000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1048
1049 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1050 unless it will be used. Rearrange loop for better
1051 optimization.
1052 (higher_prime_number): Add static prototype.
1053
abc61fd4
JL
1054Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1055
1056 * Makefile.in (partition.o): Depend on config.h
1057
8c5d513f
BS
10582000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1059
1060 * hashtab.c (find_empty_slot_for_expand): New function.
1061 (htab_expand): Use it instead of htab_find_slot.
1062 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1063 argument HASH.
1064 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1065 (htab_find): New wrapper function.
1066 (htab_find_slot): Likewise.
1067 (htab_traverse): Pass slot, not entry, to called function.
1068
d9d4fb43
AS
10692000-03-09 Alex Samuel <samuel@codesourcery.com>
1070
1071 * Makefile.in (CFILES): Add partition.c.
1072 (REQUIRED_OFILES): Add partition.o.
1073 (partition.o): New rule.
1074 * partition.c: New file.
d1209685 1075
5dc9cffd
ZW
10762000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1077
1078 * hashtab.c (htab_create): Set del_f.
1079 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1080 Use it.
1081
5194cf08
ZW
10822000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1083
1084 * hashtab.c: Remove debugging variables (all_searches,
1085 all_collisions, all_expansions). Delete
1086 all_hash_table_collisions.
1087 (create_hash_table, delete_hash_table, empty_hash_table,
1088 find_hash_table_entry, remove_element_from_hash_table_entry,
1089 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1090 hash_table_elements_number, hash_table_collisions): Rename to:
1091 htab_create, htab_delete, htab_empty, htab_find_slot,
1092 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1093 htab_elements, htab_collisions.
1094 (htab_find): New function, handles common case where you don't
1095 plan to add or delete an entry.
1096 (htab_expand): Don't create a whole new table, just a new
1097 entry vector.
1098 (htab_find_slot): Simplify logic.
1099
5ad5a984
ILT
11001999-08-03 Ian Lance Taylor <ian@zembu.com>
1101
1102 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1103 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1104
1105 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1106 $(TARGETLIB)n so it works on MSDOS.
1107 (install_to_tooldir): Likewise.
1108
11091999-07-21 Ian Lance Taylor <ian@zembu.com>
1110
1111 From Mark Elbrecht:
1112 * makefile.dos: Remove; obsolete.
1113 * configure.bat: Remove; obsolete.
1114
11151999-07-11 Ian Lance Taylor <ian@zembu.com>
1116
1117 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1118 warning.
1119
aeecce42
MK
11202000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1121
1122 * pexecute.c: Conditionally include string.h.
5194cf08 1123 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 1124
1eaf7d9c
KG
11252000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1126
1127 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1128 we're using gcc.
1129
1130 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1131
0fadedb2
GK
11321999-12-27 Geoff Keating <geoffk@cygnus.com>
1133
1134 * vasprintf.c (int_vasprintf): Don't re-read the format character
1135 as this mishandles strings like '%%s'.
1136
08230f26
MM
11371999-12-05 Mark Mitchell <mark@codesourcery.com>
1138
1139 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1140 rather than struct splay_tree_node.
1141 (splay_tree_insert): Use struct splay_tree_s rather than struct
1142 splay_tree.
1143
6de9b8ff
PDM
1144Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1145
1146 * hashtab.c (sys/types.h): File included.
1147
f3636679
JM
11481999-11-22 Jason Merrill <jason@casey.cygnus.com>
1149
1150 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1151 BSD license, pursuant with
1152
1153 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1154
36dd3a44
JL
1155Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1156
1157 * hashtab.c: Include stdio.h.
1158
6e300472
JL
1159Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1160
1161 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1162
df548dfc
PDM
1163Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1164
1165 * xstrdup (sys/types.h): Include this file.
1166
2c375143
NS
11671999-10-28 Nathan Sidwell <nathan@acm.org>
1168
1169 * Makefile.in (SUBDIRS): New macro.
1170 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1171 avoid multiple subdirectory cleaning.
1172 (*-subdir): Use SUBDIRS.
1173
a82cecda
JK
11741999-10-25 Jim Kingdon <http://developer.redhat.com/>
1175
1176 * cplus-dem.c: Move declarations of standard_symbol_characters and
1177 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1178 warnings.
1179
ed38f5d5
ZW
11801999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1181
1182 * hashtab.c (find_hash_table_entry): When returning a
1183 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1184 (clear_hash_table_slot): New function which deletes an entry
1185 by its position in the table, not its value.
1186 (traverse_hash_table): New function which calls a hook
1187 function for every live entry in the table.
1188
b60fe4a7
MM
11891999-10-19 Mark Mitchell <mark@codesourcery.com>
1190
1191 * cplus-dem.c (INTBUF_SIZE): New macro.
1192 (string_append_template_idx): New function.
1193 (demangle_expression): Likewise.
1194 (demangle_integral_value): Use it.
1195 (demangle_real_value): New function, split out from ...
1196 (demangle_template_value_parm): ... here. Use
1197 string_append_template_idx. Use demangle_real_value.
1198 (demangle_template): Use string_append_template_idx.
1199 (demangle_qualified): Use consume_count_with_underscores.
1200 (get_count): Tweak formatting.
1201 (do_type): Use string_append_template_idx.
5194cf08 1202
3da5522a
KG
12031999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1204
1205 * calloc.c: Add a public domain notice.
1206
d7d36ea8
PDM
1207Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1208
1209 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1210
a2f945c6
VM
1211Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1212
1213 * Makefile.in (CFILES): Add hashtab.c
1214 (REQUIRED_OFILES): Add hashtab.o
1215 (hashtab.o): Add dependencies.
1216 * hashtab.c: New file
1217
7f22ec2e
MK
1218Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1219
1220 * basename.c (DIR_SEPARATOR): New macro.
1221 (DIR_SEPARATOR_2): Likewise.
1222 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1223 (IS_DIR_SEPARATOR): Likewise.
1224 (main): Handle MSDOS style pathname.
1225
7c56a6ce
MM
12261999-10-11 Mark Mitchell <mark@codesourcery.com>
1227
1228 * cplus-dem.c (do_type): Handle pointer to member types whose
1229 enclosing classes have namespace scope.
1230
cd32188b
ME
1231Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1232
1233 * config.table: Provide a backup shell for executing move-if-change.
1234
fc232f7a
MM
12351999-10-02 Mark Mitchell <mark@codesourcery.com>
1236
1237 * xmalloc.c (xmalloc): Fix spelling error.
1238 (xcalloc, xrealloc): Likewise.
1239
2a138827
KG
12401999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1241
1242 * cplus-dem.c (fancy_abort, demangle_integral_value,
1243 demangle_arm_hp_template, recursively_demangle,
1244 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1245 (program_name, program_version, fatal): Constify a char*.
1246 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1247 (main): Call return, not exit.
1248
5a657fc3
KG
12491999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1250
1251 * choose-temp.c: Remove obsolete comment about gcc.
1252 (make_temp_file): Constify a char*.
1253
33c5ddcd
KG
1254Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1255
1256 * xmemdup.c: Include sys/types.h.
1257
b10647f1
JG
12581999-09-07 Jeff Garzik <jgarzik@pobox.com>
1259
1260 * xmemdup.c: New xmemdup function.
1261 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1262
3dd6c3af
LV
1263Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1264
5194cf08 1265 * config.table: Add openedition target.
3dd6c3af
LV
1266 * config/mh-openedition: New file.
1267
19e28e2a
ME
1268Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1269
1270 * pexecute.c (pexecute): Fill in temp_base when needed.
1271
4dfeccf9
RH
12721999-08-31 Richard Henderson <rth@cygnus.com>
1273
1274 * getpwd.c: Check HAVE_GETCWD before defining it away.
1275
4ac3cb83
KG
12761999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1277
1278 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1279 (REQUIRED_OFILES): Add getpwd.o.
1280 (getpwd.o): Add target.
1281
1282 * configure.in (AC_PREREQ): Bump to 2.13.
1283 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1284
1285 * getpwd.c: New file, moved here from gcc.
1286
e797ff70
KG
12871999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1288
1289 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1290 comparing against a signed quantity.
1291 (arm_special): Likewise.
1292 (demangle_fund_type): Likewise.
1293 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1294 ATTRIBUTE_UNUSED.
e797ff70
KG
1295 (main): Constify variable `valid_symbols'.
1296
55247fce
PDM
1297Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1298
1299 * strtoul.c (strtoul): Add parentheses around && within ||.
1300
76632dd0
DJ
1301Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1302
1303 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1304 libdir, libsubdir and tooldir.
1305
d080bbfa
MM
13061999-08-01 Mark Mitchell <mark@codesourcery.com>
1307
1308 * splay-tree.c (splay_tree_insert): Return the new node.
1309
a81c752a
RH
13101999-07-14 Richard Henderson <rth@cygnus.com>
1311
5194cf08 1312 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1313 prototyping directly.
1314 * choose-temp.c: Conditionally include string.h.
1315
8f1824d9
JM
13161999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1317
1318 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1319
652374d3
ILT
13201999-07-11 Ian Lance Taylor <ian@zembu.com>
1321
1322 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1323 warning.
1324
a4494286
JM
13251999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1326
1327 * Makefile.in (needed-list): Only include stuff we actually need
1328 for libstdc++.
1329
90e72e20
AS
13301999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1331
1332 * configure.in (checkfuncs): Add gettimeofday.
1333 * config.in, configure: Regenerated.
1334
b569200e
MK
1335Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1336
1337 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1338 the test fails.
1339 * configure: Regenerate.
1340
73919448
MS
13411999-06-10 Mike Stump <mrs@wrs.com>
1342
1343 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1344 parallel builds.
1345
fee9125c
KG
13461999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1347
1348 * putenv.c: Include ansidecl.h to define `const'.
1349 * setenv.c: Likewise.
1350
71cce721
MN
1351Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1352
a7c9637f
JL
1353 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1354 * configure.in (funcs): Add putenv and setenv.
1355 (AC_CHECK_FUNCS): Check for putenv and setenv.
1356 * configure: Rebuilt.
1357 * putenv.c setenv.c: New files.
1358
71cce721
MN
1359 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1360 bytes of space using malloc.
1361
53504016
SG
1362Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1363
1364 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1365 the *mangled pointer beyond the end of the string. Clean up code to
1366 match prevailing coding style.
1367
34842539
MH
13681999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1369
1370 * tmpnam.c (L_tmpnam): Fix typo.
1371
3a08531d
ME
1372Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1373
1374 * cplus-dem.c (standard_symbol_characters): Renamed from
1375 standard_symbol_alphabet. No longer modify TABLE.
1376 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1377 modify TABLE.
1378 (main): Corresponding changes. Use strchr to determine if a
1379 character is valid.
1380
8db9d08b
JB
13811999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1382
1383 * cplus-dem.c (main): Use table lookup to distinguish identifier
1384 characters from non-identifier characters.
1385 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1386
6a071f4a
FF
1387Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1388
1389 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1390 * getruntime.c: Only attempt to include sys/resource.h and
1391 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1392 are defined.
1393
7dd88617
DT
1394Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1395
1396 * configure.in (alloca detection): Handle alloca directly for interix.
1397 * configure: Rebuilt.
1398
7a1528bc
MK
1399Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1400
1401 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1402
76409268
JB
14031999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1404
1405 Fix from Dale Hawkins:
5194cf08 1406 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1407 reallocated properly if we use it again.
1408
1409 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1410 stricter about syntax. Always null-terminate string.
1411
acbbd80a
MK
1412Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1413
1414 * configure.in (checkfuncs): Check for sbrk.
1415 * config.in: Rebuilt.
1416 * configure: Likewise.
1417 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1418
92523551
JB
14191999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1420
1421 Fix from Marcus Daniels:
1422 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1423 identifier looking for another underscore.
1424
36eb4217
MK
1425Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1426
1427 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1428 * xmalloc.c: Likewise.
1429 (xcalloc): UWIN has sbrk.
1430 (xrealloc): Fix guard macro.
1431
2c45d1a0
RH
14321999-04-11 Richard Henderson <rth@cygnus.com>
1433
1434 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1435 or <alloca.h>.
1436 * clock.c (GNU_HZ): New definition.
1437 (clock): Use it.
1438 * getruntime.c: Likewise.
1439
1440 * config.table: Use mh-beos.
1441 * config/mh-beos: New file.
1442
391cdef0
MM
14431999-04-11 Mark Mitchell <mark@codesourcery.com>
1444
1445 * cplus-dem.c (demangle_template_value_parm): Handle
1446 pointers-to-members.
1447 (do_type): Handle template parameters as qualifiers.
1448
9d229989
JB
14491999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1450
1451 * cplus-dem.c: Attempt to handle overflows in counts with some
1452 semblance of grace.
1453 (consume_count): Detect overflows. Return -1 to indicate errors,
1454 instead of zero.
1455 (demangle_template_value_parm, demangle_template): Handle change
1456 to consume_count's return convention.
1457
7c72138a
TT
14581999-04-05 Tom Tromey <tromey@cygnus.com>
1459
1460 * testsuite/regress-demangle: New file.
1461 * testsuite/demangle-expected: New file.
1462
1463 * Makefile.in (all, check, installcheck, info, install-info,
1464 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1465 distclean, maintainer-clean, realclean): Depend on corresponding
1466 `-subdir' target.
1467 (all-subdir check-subdir installcheck-subdir info-subdir
1468 install-info-subdir clean-info-subdir dvi-subdir
1469 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1470 distclean-subdir maintainer-clean-subdir): New target.
1471 * testsuite/Makefile.in: New file.
1472 * configure: Rebuilt.
1473 * configure.in: Create testsuite/Makefile.
1474
ae7f7270
MM
14751999-04-02 Mark Mitchell <mark@codesourcery.com>
1476
1477 * splay-tree.h (splay_tree_compare_pointers): Define.
1478
30f72379
MM
14791999-03-30 Mark Mitchell <mark@codesourcery.com>
1480
1481 * splay-tree.c (splay_tree_compare_ints): Define.
1482
4cc48683
TT
14831999-03-30 Tom Tromey <tromey@cygnus.com>
1484
1485 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1486 don't advance input pointer.
1487 (demangle_class_name): If consume_count didn't find a count, do
1488 nothing. Don't bother with `strlen' sanity check; consume_count
1489 does it for us.
1490
3510075c
JL
14911999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1492
1493 From Art Haas <ahaas@neosoft.com>:
1494 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1495 when doing arm or hp style.
1496 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1497
89f602a7
MK
1498Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1499
1500 * pexecute.c (__CYGWIN32__): Rename to
1501 (__CYGWIN__): this.
1502 * xmalloc.c: Likewise.
1503
1504 Changes to support i386-pc-uwin.
1505 * configure.in (*-*-uwin*): Workaround for vfork bug.
1506 * configure: Regenerate.
1507 * pexecute.c (pexecute): Be like standard Unix.
1508 (pwait): Likewise.
1509 * xmalloc.c (first_break): Define.
1510 (xmalloc_set_program_name): Use.
1511 (xmalloc): Use.
1512
9346c824
FS
1513Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1514
1515 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1516
3510075c
JL
1517Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1518
1519 * config.table: Check cygwin*, not cygwin32*.
1520
8ec65f13
DB
1521Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1522
1523 * Makefile.in: Change mkstemp -> mkstemps.
1524
687361c8
ME
1525Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1526
1527 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1528 * configure.in (funcs): Check for and conditionally add mkstemps to
1529 the list of functions libiberty will provide.
1530 * configure: Rebuilt.
5194cf08 1531
b207e09c
MK
1532Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1533
5194cf08 1534 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1535 platforms that don't have HZ.
1536 * getruntime.c (HZ): Likewise.
1537
16b4c15e
RH
1538Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1539
1540 * Makefile.in (xstrdup.o): Depend on config.h.
1541
38beb75c
UD
1542Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1543
1544 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1545 freeing it.
1546
7e4311a3
KG
1547Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1548
1549 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1550
3510075c
JL
1551Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1552
1553 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1554 splay-tree.o.
1555
15561999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1557
1558 * configure.in: Require autoconf 2.12.1 or higher.
1559
fb9939b8
MM
15601998-12-30 Michael Meissner <meissner@cygnus.com>
1561
1562 * random.c (NULL): Don't redefine NULL if it is already defined.
1563
087aa398
KG
1564Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1565
1566 * argv.c (buildargv): Cast the result of alloca in assignment.
1567
1568 * choose-temp.c: Include stdlib.h.
38beb75c 1569
087aa398 1570 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
1571 (snarf_numeric_literal): Constify first parameter.
1572 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1573 int, not a char.
087aa398
KG
1574 (demangle_qualifier): Likewise.
1575 (demangle_signature): Cast the argument of a ctype function to
1576 unsigned char.
1577 (arm_pt): Add parens around assignment used as truth value.
1578 (demangle_arm_hp_template): Constify variable `args'.
1579 (do_hpacc_template_const_value): Cast the argument of a ctype
1580 function to unsigned char.
1581 (do_hpacc_template_literal): Remove unused variable `i'.
1582 (snarf_numeric_literal): Constify parameter `args'.
1583 Cast the argument of a ctype function to unsigned char.
1584
1585 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 1586 avoid ambiguous `else'.
38beb75c 1587
087aa398 1588 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
1589 `cstart' and `cend' to unsigned char. Cast the argument of macro
1590 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
1591
1592 * objalloc.c (free): Add prototype.
1593
21f2174d
HPN
1594Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1595
1596 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1597
3510075c
JL
1598Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1599
1600 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 1601 doesn't exist.
3510075c 1602 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1603
e8fc8222
AM
1604Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1605
1606 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1607 bumping the pointer we read from. Also prepend these codes,
1608 as we do in other places.
1609
3510075c
JL
16101998-12-18 Nick Clifton <nickc@cygnus.com>
1611
1612 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1613 'const char *' in order to match its usage when calling siblings.
1614 (snarf_numeric_literal): Make first arg 'const char **' in order
1615 to match usage.
11a0bb74 1616
f4f30aa1
JL
1617Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1618
11a0bb74
KG
1619 * choose-temp.c: Don't check IN_GCC anymore.
1620
1621 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1622 * memchr.c (memchr): Likewise.
1623 * memcpy.c (memcpy): Likewise.
1624 * memmove.c (memmove): Likewise.
38beb75c 1625
11a0bb74
KG
1626 * mkstemp.c: Don't check IN_GCC anymore.
1627 * pexecute.c: Likewise.
1628 * splay-tree.c: Likewise.
38beb75c 1629
11a0bb74
KG
1630 * strchr.c (strchr): Use `const', not `CONST'.
1631 * strrchr.c (strrchr): Likewise.
1632 * strtol.c (strtol): Likewise.
1633 * strtoul.c (strtoul): Likewise.
1634
70d5ccef
DT
1635Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1636 Elena Zannoni <ezannoni@cygnus.com>
1637 Stan Shebs <shebs@cygnus.com>
1638 Edith Epstein <eepstein@cygnus.com>
1639 Andres MacLeod <amacleod@cygnus.com>
1640 Satish Pai <pai@apollo.hp.com>
1641
1642 * HP aCC demangling support.
1643 * cplus-dem.c
1644 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
1645 demangling correctly when -edg specified; set the demangling style
1646 when user specifies 'edg'. Set strip_underscore to
1647 prepends_underscore, if not HPUXHPPA. Set
1648 current_demangling_style to hp_demangling if HPUXHPPA. Set
1649 current demangling style correctly if the switch is hp. Read
1650 label correctly also in the HP style case.
70d5ccef 1651 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 1652 function.
70d5ccef 1653 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 1654 style for this case is the same as ARM.
70d5ccef
DT
1655 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1656 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
1657 demangle_arm_pt.); check and set value of temp_start field in
1658 multiple places. Also, when ceching for end of template args,
1659 check to see if at end of static member of template class.
70d5ccef 1660 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 1661 include template args in string defining class.
70d5ccef
DT
1662 (demangle_class_name): use demangel_arm_hp_template.
1663 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
1664 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1665 Handle EDG_DEMANGLING style. Handle constructor and destructor
1666 ops for HP style.
70d5ccef 1667 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
1668 styles. global destructor and constructor for HP style are same
1669 as for ARM style. Same for local variables.
70d5ccef
DT
1670 (demangle_qualified): handle EDG_DEMANGLING style.
1671 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
1672 cases '1' - '9' : initialize the temp_start field to -1 and handle
1673 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1674 and AUTO_DEMANGLING styles. If expecting a function and managed
1675 to demangle the funct args, then handle the LUCID_DEMANGLING,
1676 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1677 class name after "Lnnn_ in HP style case. HP style too needs to
1678 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 1679 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 1680 value param for HP/aCC.
70d5ccef 1681 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 1682 literal parameter for HP aCC.
70d5ccef
DT
1683 (recursively_demangle): new function
1684 (snarf_numeric_literal): new function.
1685 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 1686 to message.
70d5ccef 1687
8d525fa8
CF
1688Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1689
1690 * pexecute.c: Remove obsolete ifdefed cygwin code.
1691
9b1a92d8
KG
1692Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1693
1694 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1695 * cplus-dem.c: Likewise. Conform to libiberty.h.
1696 * pexecute.c: Likewise.
1697 * splay-tree.c: Likewise.
1698
c85c3232
MS
16991998-11-25 Mike Stump <mrs@wrs.com>
1700
1701 * Makefile.in (splay-tree.o): Add config.h dependency.
1702
35a6cd99
KG
1703Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1704
1705 * configure.in: Use AC_PREREQ(2.12.1).
1706
6e6e34b7
BK
17071998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1708
5194cf08 1709 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 1710
59b67c11
JL
1711Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1712
1713 * mpw.c (mpw_access): Add missing parens.
1714
a6458d1d
KG
1715Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1716
1717 * configure.in: Call AC_HEADER_SYS_WAIT.
1718
1719 * pexecute.c: Include sys/wait.h when !IN_GCC.
1720
3510075c
JL
1721Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1722
1723 * pexecute.c: revert back to checking old Cygwin
1724 preprocessor symbol until some time has passed.
1725
1726Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1727
1728 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1729 since it will now support similar constructs.
1730
a9acf741
KG
1731Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1732
1733 * configure.in: Check for calloc.
1734
1735 * calloc.c: New file.
1736
1737 * xmalloc.c (xcalloc): New function.
1738
a49fb37a
AM
1739Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1740
1741 *cplus-dem.c (demangle_prefix): Use the last "__"
1742 in the mangled name when looking for the signature. This allows
1743 template names to begin with "__".
1744
0e714131
MM
17451998-11-08 Mark Mitchell <mark@markmitchell.com>
1746
ec2288ff
MM
1747 * cplus-dem.c (type_kind_t): Add tk_reference.
1748 (demangle_template_value_parm): Handle it.
1749 (do_type): Use it for references, instead of tk_pointer.
1750
0e714131
MM
1751 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1752 not internal_cplus_demangle.
1753
2931b6d4
KG
1754Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1755
1756 * choose-temp.c: Don't include gansidecl.h.
1757 * mkstemp.c: Likewise.
1758 * pexecute.c: Likewise.
1759
dd8f3ed5
GN
1760Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1761
5194cf08
ZW
1762 * configure.in: detect cygwin* instead of cygwin32*
1763 * configure: regenerate
dd8f3ed5 1764
c5f7c445
KG
1765Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1766
1767 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
1768 whether to include config.h. Possibly include unistd.h in the
1769 !IN_GCC case. Define VFORK_STRING as a printable function call
1770 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1771 defined, include vfork.h. If VMS is defined, define vfork()
1772 appropriately. Remove vfork check on USG, we're using autoconf.
1773 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1774 locally what string to use.
c5f7c445 1775
ad3ef78e
MM
17761998-10-26 Mark Mitchell <mark@markmitchell.com>
1777
1778 * splay-tree.c: Tweak include directives to make sure declarations of
1779 xmalloc and free are available.
1780
224301c1
MM
17811998-10-25 Mark Mitchell <mark@markmitchell.com>
1782
1783 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1784 anonymous namespaces.
38beb75c 1785
d9db46fd
MM
17861998-10-23 Mark Mitchell <mark@markmitchell.com>
1787
1788 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1789 with type_quals.
1790 (TYPE_UNQUALIFIED): New macro.
1791 (TYPE_QUAL_CONST): Likewise.
1792 (TYPE_QUAL_VOLATILE): Likewise.
1793 (TYPE_QUAL_RESTRICT): Likewise.
1794 (code_for_qualifier): New function.
1795 (qualifier_string): Likewise.
1796 (demangle_qualifier): Likewise.
1797 (internal_cplus_demangle): Use them.
1798 (demangle_signature): Likewise.
1799 (demangle_template_value_parm): Likewise.
1800 (do_type): Likewise.
1801 (demangle_fund_type)): Likewise.
224301c1 1802
b056ad1c
KG
1803Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1804
1805 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1806 to match prototype.
1807
ed87f9c8
MM
18081998-10-21 Mark Mitchell <mark@markmitchell.com>
1809
1810 * splay-tree.c: New file.
1811 * Makefile.in (CFILES): Add it.
1812 (REQUIRED_OFILES): Likewise.
1813 (splay-tree.o): Add dependencies.
1814
e0c13971
AS
1815Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1816
1817 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1818 range of 'K' index.
1819
91e0f659
KG
1820Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1821
1822 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1823
1824 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1825 `unsigned char'.
1826 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1827 comparing against one.
1828 (cplus_mangle_opname): Likewise.
1829 (demangle_integral_value): Cast argument of ctype macro to
1830 `unsigned char'.
1831 (demangle_template_value_parm): Likewise.
1832 (demangle_template): Initialize variable `bindex'. Cast the
1833 result of `strlen' to (int) when comparing against one. Remove
1834 unused variable `start_of_value_parm'.
1835 (demangle_class_name): Cast the result of `strlen' to (int) when
1836 comparing against one.
1837 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1838 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1839 when comparing against one.
1840 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1841 (get_count): Likewise.
1842 (do_type): Likewise. Cast the result of `strlen' to (int) when
1843 comparing against one.
1844 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1845 (demangle_function_name): Cast the result of `strlen' to (int)
1846 when comparing against one.
1847
1848 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1849 comparing against one.
1850
73aeb2ff
JL
1851Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1852
5194cf08
ZW
1853 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1854 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1855 * config.in, configure: Rebuilt.
ae76f1be 1856
73aeb2ff
JL
1857 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1858 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1859 * config.in, configure: Rebuilt.
1860
dd8f3ed5
GN
1861Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1862
5194cf08 1863 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 1864
f77d8413
MT
1865Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1866
1867 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1868
ca6b370d
JL
1869Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1870
1871 * Merge egcs & devo libiberty.
1872
ab4856b1
ML
1873