* gdb.base/display.c (do_loops): Add float variable `f'.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
843f21be
DD
12001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
4 VA_FIXEDARG & VA_CLOSE.
5
6 * vasprintf.c: Check HAVE_STRING_H when including string.h.
7 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
8 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
9
8a423cb3
DD
102001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11
12 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
13
dc676635
DD
142001-08-23 Ulrich Drepper <drepper@redhat.com>
15
16 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
17
182001-08-23 Ulrich Drepper <drepper@redhat.com>
19
20 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
21 instead of mbrtowc.
22 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
23 wcslen, and __wcscoll instead of wcscoll.
24
f080c76d
DD
252001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
26
27 * fibheap.c (fibheap_init, fibnode_init): Remove.
28 (fibheap_new, fibnode_new): Use xcalloc to allocate and
29 initialize memory.
30 (fibheap_insert): Remove check for node allocation failure.
31
f01b59ed
DD
322001-08-21 Richard Henderson <rth@redhat.com>
33
34 * Makefile.in (fibheap.o): Depend on config.h.
35 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
36 functions for inlining.
37
38Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
39
40 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
41 hosting on cygwin.
42 * configure: Regenerate.
43
8e777d6a
DD
442001-08-20 Daniel Berlin <dan@cgsoftware.com>
45
46 * fibheap.c: New file. Fibonacci heap.
47
48 * Makefile.in (CFILES): Add fibheap.c.
49 (REQUIRED_OFILES): Add fibheap.o.
50 (fibheap.o): Add dependencies for fibheap.o.
51
eb828599
AC
522001-08-20 Andrew Cagney <ac131313@redhat.com>
53
54 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
55 HARRIS_FLOAT_FORMAT.
56 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
57 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
58 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
59 (floatformat_m88110_harris_ext): New float formats.
60
68a41de7
DD
612001-08-17 Christopher Faylor <cgf@cygnus.com>
62
63 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
64 * configure: Regenerate.
65
8fc34799
DD
662001-08-16 Richard Henderson <rth@redhat.com>
67
68 * hashtab.c (htab_hash_string): New.
69
16bad250
AC
702001-08-13 Andrew Cagney <ac131313@redhat.com>
71
72 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
73 name.
74
a9022147
DD
752001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
76
77 * regex.c (wcs_regex_compile): Use appropriate string
78 to compare with collating element.
79 Fix the padding for the alignment.
80
8aefe91a 812001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
82
83 * lbasename.c (lbasename): Change function definition to return a
84 const char pointer.
85
e7e9b069
DD
862001-08-07 Jason Merrill <jason_merrill@redhat.com>
87
88 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
89 for".
90
cc5144f8
DD
912001-08-03 Richard Henderson <rth@redhat.com>
92
93 * Makefile.in (concat.o): Depend on config.h.
94
8aefe91a
DD
952001-07-30 Andreas Jaeger <aj@suse.de>
96
97 * concat.c: Include "config.h".
98
86710ce2
DD
992001-07-30 Andreas Jaeger <aj@suse.de>
100
101 * regex.c: Declare wcs functions only if compiling with
102 MBS_SUPPORT.
103 Don't use #elif for traditional C.
104
1052001-07-23 Ulrich Drepper <drepper@redhat.com>
106
107 * regex.c: Revamp memory allocation for WCHAR functions to
108 not use too much stack.
109
1102001-07-30 Andreas Jaeger <aj@suse.de>
111
112 * regex.c: Declare wcs functions only if compiling with
113 MBS_SUPPORT.
114 Don't use #elif for traditional C.
115
a5d8f731
DD
1162001-07-25 Daniel Jacobowitz <drow@mvista.com>
117
118 * Makefile.in (regex.o): Add dependency on config.h.
119
6ad8a379
DD
1202001-07-18 Andreas Schwab <schwab@suse.de>
121
122 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
123 underscore character.
124
1252001-07-18 Ulrich Drepper <drepper@redhat.com>
126
127 * regex.c: Limit string length printed in debug messages to 100
128 chars.
129
1302001-07-18 Andreas Jaeger <aj@suse.de>
131
132 * regex.c: Place under LGPL version 2.1.
133
2a6ef469
DD
1342001-07-10 Jeff Johnston <jjohnstn@redhat.com>
135
136 * Makefile.in: Add support for regex code.
137 * regex.c: New file.
138
7b78baae
DD
1392001-07-05 Mark Klein <mklein@dis.com>
140
141 * Makefile.in: Add ffs.c dependency.
142 * configure.in: Add ffs.c.
143 * ffs.c: New file.
144
926150e2
DD
1452001-06-18 Richard Henderson <rth@redhat.com>
146
147 * concat.c: Include <sys/types.h>.
148
11f6f21d
DD
1492001-06-11 Loren J. Rittle <ljrittle@acm.org>
150
151 bootstrap/3106
152 * strerror.c (sys_nerr): Hide the OS header version.
153 * strsignal.c (sys_nsig): Likewise.
154
d42dae6c
DD
1552001-06-10 Richard Henderson <rth@redhat.com>
156
157 * concat.c: Include string.h. Fix int vs size_t usage.
158 Simplify the iteration loops. Use memcpy.
159
e05c6d27
DD
1602001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
161
162 * partition.c: Fix misspelling of `implementation'.
163
b50c4073
DD
1642001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
165
166 * md5.c (md5_init_ctx): Declare constants as unsigned.
167 (md5_process_block): Likewise.
168
457161bf
DD
1692001-05-07 Zack Weinberg <zackw@stanford.edu>
170
171 * cp-demangle.c (demangle_v3_with_details,
172 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
173 function definition.
174 * ternary.c: Use K+R style function definitions. Use PTR, not
175 void *. Make arguments constant where possible.
176
e00bc6a7
DD
1772001-05-07 Mark Mitchell <mark@codesourcery.com>
178
179 * splay-tree.h (splay_tree_max): New function.
180 (splay_tree_min): Likewise.
181
400ee7e1
DB
1822001-04-15 Daniel Berlin <dan@cgsoftware.com>
183
184 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
185
186 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 187
d9697354
DD
1882001-04-03 Zack Weinberg <zackw@stanford.edu>
189
190 * make-temp-file.c (try): Inline.
191
a7bf099b
DD
1922001-02-28 Richard Henderson <rth@redhat.com>
193
194 * Makefile.in (make-temp-file.o): Depend on config.h.
195
30a1def2
DD
1962001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
197
198 * memchr.c (memchr): Adjust condition to avoid infinite loop.
199
079c672a
DD
2002001-03-23 Jakub Jelinek <jakub@redhat.com>
201
202 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
203 `_' not followed by a digit is invalid.
204
a88e356a
JB
2052001-03-22 Jim Blandy <jimb@redhat.com>
206
207 * cp-demangle.c (string_list_delete): Use dyn_string_delete
208 instead of free, to free the contents as well as the string
209 structure.
210
1dffcc66
DD
2112001-03-21 Zack Weinberg <zackw@stanford.edu>
212
213 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
214 Don't default P_tmpdir to anything. Try /var/tmp before
215 /usr/tmp.
216
2172001-03-20 Zack Weinberg <zackw@stanford.edu>
218
219 * choose-temp.c: Split off make_temp_file, and the code
220 duplicated between it and choose_temp_base, into...
221 * make-temp-file.c: ... here; new file.
222
223 * Makefile.in (CFILES): Add make-temp-file.c.
224 (REQUIRED_OFILES): Add make-temp-file.o.
225
e61231f1
JB
2262001-03-20 Jim Blandy <jimb@redhat.com>
227
228 * cp-demangle.c (struct demangling_def): New fields:
229 is_constructor and is_destructor.
230 (demangling_new): Initialize them.
231 (demangle_ctor_dtor_name): Set them, if we detect a constructor
232 or destructor.
233 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
234 is_gnu_v3_mangled_dtor): New functions.
235
a9cbbe6d
DD
2362001-03-20 Jason Merrill <jason@redhat.com>
237
238 * cplus-dem.c (main): Skip initial $.
239
b1e51b3c
DD
2402001-03-15 Michael Meissner <meissner@redhat.com>
241
242 * hashtab.c (higher_prime_number): Silence warning that 4294967291
243 might be a signed integer under pre-ISO C systems.
244
8aa30e60 2452001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 246 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 247
8aa30e60
DD
248 * libiberty/lbasename.c: New file.
249 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 250
30673bf5
DD
2512001-03-06 Zack Weinberg <zackw@stanford.edu>
252
253 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
254 * configure.in: Replace all alloca logic with a simple use of
255 the above new macro.
256 * config.table: Kill *-*-beos* entry.
257 * config/mh-beos: Delete.
258 * configure, config.in: Regenerate.
fa03f0a7 259
30673bf5
DD
260 * Makefile.in (ALLOCA, HFILES): Kill.
261 (REQUIRED_OFILES): Add alloca.o.
262 (alloca.o): Depend on libiberty.h.
263 (argv.o): Don't depend on alloca-conf.h.
264 * alloca-conf.h: Delete.
265 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
266 blocks. Provide the C alloca unconditionally. Use PTR where
267 appropriate. Make i00afunc static.
268 * argv.c: Don't include alloca-conf.h.
fa03f0a7 269
5810f394
DD
2702001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
271
272 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 273
a9db032a
DD
2742001-02-16 Loren J. Rittle <ljrittle@acm.org>
275
276 * cplus-dem.c (main): Initialize style.
fa03f0a7 277
8aefe91a
DD
2782001-02-02 Phil Edwards <pme@sources.redhat.com>
279
280 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
281
bc9bf259
DD
2822001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
283
284 Add support for Java demangling under the v3 ABI:
285 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
286 (struct demangling_def): Add `style' field.
287 (demangling_new): New parameter `style'. Set it in demangling_t.
288 (demangle_prefix): Use NAMESPACE_SEPARATOR.
289 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
290 (cp_demangle): New parameter `style'. Pass it to demangling_new().
291 (main): Call cp_demangle with extra parameter.
292 (java_demangle_v3): New function.
293 (java_builtin_type_names): New. Table of primitive type names used
294 for Java demangling.
295 (demangle_builtin_type): Look up in java_builtin_type_names if doing
296 Java output.
297 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
298 demangling.
299 (long_options): Remove obsolete `java' option.
300 (main): Remove explicit handling of `java' option. Instead, pass style
301 parameter in cplus_demangle flags as gdb does.
302 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 303
f6528837
DD
3042000-12-29 DJ Delorie <dj@redhat.com>
305
306 * fnmatch.c: Make the note about the origins of this file more
307 accurate, at least until we can sync with glibc.
308 * getopt.c: Ditto.
309 * getopt1.c: Ditto.
310 * md5.c: Ditto.
311 * obstack.c: Ditto.
9d969b59 312
c6da642e
DD
3132000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
314
315 * bsearch.c: New file.
316 * configure.in (funcs): Add bsearch.
317 (AC_CHECK_FUNCS): Likewise.
318 * configure, config.in: Regenerate.
319
ae7d06ad 3202000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
321
322 * safe-ctype.c: #include "ansidecl.h".
323 * strtod.c: Likewise.
324
ae7d06ad 3252000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
326
327 * strtoul.c: Include safe-ctype.h, not ctype.h.
328
ac424eb3
DD
3292000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
330
331 * safe-ctype.c: New file.
332 * Makefile.in (CFILES): Add safe-ctype.c.
333 (REQUIRED_OFILES): Add safe-ctype.o.
334
335 * argv.c: Define ISBLANK and use it, not isspace.
336 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
337 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
338 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
339 before calling TOLOWER(c)/TOUPPER(c).
340
4415a860
DD
3412000-12-07 Mike Stump <mrs@wrs.com>
342
343 * Makefile.in (distclean): When cleaning, remove testsuite.
344
849ee224
DD
3452000-12-05 Jason Merrill <jason@redhat.com>
346
347 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
348 name before allocating the dyn_string.
349
ae7d06ad 3502000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
351
352 * cp-demangle.c: s/new_abi/v3/.
353 * cplus-dem.c: Likewise.
354 (current_demangling_style): Now auto_demangling.
355 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 356 (main): Use standard symbol chars for auto_demangling.
e49a569c 357
ae7d06ad 3582000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
359
360 * hashtab.c (higher_prime_number): Use a table, rather than a
361 seive, to find the next prime.
ae7d06ad
NC
362
3632000-11-22 H.J. Lu <hjl@gnu.org>
364
365 * cplus-dem.c (main): Handle gnat_demangling.
366
3672000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
368
369 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
370 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
371 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
372 argument form of AC_DEFINE in dummy definitions block. Use
373 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
374 in dummy block. Preload cache variables instead of bypassing
375 tests, where possible.
376 * acconfig.h: Removed.
ae7d06ad 377
2ea7befd
DD
378 * xmalloc.c (xmalloc_failed): New function, does error
379 reporting on failed allocation.
380 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 381
f1775526
HPN
3822000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
383
384 * cplus-dem.c (cplus_demangle): Fix formatting.
385 (grow_vect): Ditto.
386 (ada_demangle): Ditto.
387 (internal_cplus_demangle): Ditto.
388 (mop_up): Ditto.
389
3902000-11-21 H.J. Lu <hjl@gnu.org>
391
392 * cplus-dem.c (main): Handle java_demangling.
393
ae7d06ad 3942000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
395
396 * cplus-dem.c (grow_vect): Prototype.
397 (ada_demangle): Cast the arg of ctype macros to unsigned char.
398
5dd42ef4
HPN
3992000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
400
401 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
402 parameter `option'.
403
296731c1
DD
4042000-11-15 Kenneth Block <kenneth.block@compaq.com>
405
8944fb9d 406 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
407 be used in GCC.
408
6e53a714 4092000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 410
5dd42ef4 411 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
412 list.
413
99a4c1bd
HPN
4142000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
415
416 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
417 xcalloc depending on htab->return_allocation_failure. Return zero
418 if calloc fails.
99a4c1bd
HPN
419 (htab_create): Update comment to cover memory allocation.
420 (htab_try_create): New.
421 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 422 Update comment to cover this.
99a4c1bd 423
e0f3df8f
HPN
4242000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
425
426 * hashtab.c: Change void * to PTR where necessary.
427 (htab_create, htab_expand): Correct formatting of comment before
428 function.
429
ae7d06ad 4302000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
431
432 * cp-demangle.c (string_list_def): Add caret_position and comments.
433 (result_caret_pos): New macro.
434 (result_append_string): Rename to...
435 (result_add_string): ... this, and insert at caret position.
ae7d06ad 436 Rename throughout.
59666b35
DD
437 (result_append): Rename to...
438 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 439 throughout.
59666b35
DD
440 (result_append_char): Rename to...
441 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 442 throughout.
59666b35
DD
443 (result_append_space): Remove.
444 (string_list_new): Initialize caret position.
445 (result_add_separated_char): Use caret position.
446 (result_get_caret): New funtion.
447 (result_set_caret): Likewise.
448 (result_shift_caret): Likewise.
449 (result_previous_char_is_space): Likewise.
450 (substitution_start): Use caret position.
451 (substitution_add): Likewise.
452 (demangling_new): Initialize caret position.
453 (demangle_encoding): Use caret position.
ae7d06ad 454 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
455 (demangle_type_ptr): Use switch statement. Handle pointers to
456 arrays. Don't use result_append_space. Use caret position.
457 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
458 call to demangle_array_type.
459 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 460
ae7d06ad 4612000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
462
463 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
464
4652000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
466
467 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
468
4692000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
470
471 * splay-tree.c: #include <stdio.h>.
472
4732000-09-14 Hans-Peter Nilsson <hp@axis.com>
474
475 * testsuite/demangle-expected: Add two tests for anonymous
476 namespaces.
477 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
478
4792000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
480
481 * splay-tree.c (splay_tree_predecessor): New function.
482 (splay_tree_successor): Likewise.
ae7d06ad
NC
483
4842000-09-10 Hans-Peter Nilsson <hp@axis.com>
485
486 * testsuite/demangle-expected: Add four tests for type_info
487 mangling.
488 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
489 for a non-template non-qualified type_info function or node.
490
4912000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
492
493 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
494
4952000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
496
497 * md5.c: #include "ansidecl.h".
498
4992000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
500
501 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
502 (demangle_type): Handle substitution candidates correctly in the
503 face of special substitutions.
ae7d06ad
NC
504
5052000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
506
507 * cp-demangle.c (demangle_encoding): Rename variable.
508 (demangle_name): Rename parameter. Handle return type
509 suppression.
510 (demangle_nested_name): Rename parameter.
511 (demangle_prefix): Likewise. Change return type suppression.
512 (demangle_unqualified_name): Add parameter. Flag constructors and
513 conversion operators.
514 (demangle_special_name): Fix comment.
515 (demangle_type): Rename variable.
516 (demangle_bare_function_type): Check for missing return type and
517 parameter.
518 (demangle_class_enum_type): Rename parameter.
519 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
520
5212000-08-31 DJ Delorie <dj@redhat.com>
522
523 * configure.in (Cygwin): special case cygwin only when we're
524 building cygwin, not when we're hosting cygwin.
525
5262000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
527
528 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
529 <expression>.
ae7d06ad
NC
530
5312000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
532
533 * cp-demangle.c (demangle_type_ptr): Increment position past
534 pointer and reference characters.
ae7d06ad
NC
535
5362000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
537
538 * cp-demangle.c (demangle_nv_offset): New function.
539 (demangle_v_offset): Likewise.
540 (demangle_call_offset): Likewise.
541 (demangle_special_name): Update thunk demangling to comply with
542 ABI changes.
ae7d06ad
NC
543
5442000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
545
546 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
547 (substitution_def): Remove template_parm_number.
548 (NOT_TEMPLATE_PARM): Remove.
549 (result_insert_string): New macro.
550 (result_insert): Likewise.
551 (result_insert_char): Likewise.
552 (substitution_add): Remove last parameter. Don't store template
553 parm number.
554 (BFT_NO_RETURN_TYPE): Define as NULL.
555 (demangle_encoding): Adjust call to demangle_bare_function_type.
556 (demangle_name): Adjust substitution. Adjust call to
557 substitution_add.
558 (demangle_prefix): Adjust call to substitution_add.
559 (demangle_identifier): Handle anonymous namespaces.
560 (demangle_operator_name): Change demangling of vendor-extended
561 operator to match ABI changes.
562 (demangle_type_ptr): Change parameters. Make recursive. Handle
563 substitutions here.
564 (demangle_type): Adjust calls to demangle_template_param,
565 substitution_add, and demangle_type_ptr. Fix substitution of
566 templated types.
567 (demangle_function_type): Change parameter to a pointer.
568 (demangle_bare_function_type): Likewise. Adjust insertion point.
569 (demangle_template_param): Remove last parameter.
570 (demangle_expr_primary): Remove unused variable. Adjust call to
571 demangle_template_param.
572 (is_mangled_char): Accept `$' and `.'.
573 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
574 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
575
5762000-08-31 Hans-Peter Nilsson <hp@axis.com>
577
578 * testsuite/demangle-expected: Add nine tests for
579 underscore-after-number followed by five tests for name-signature
580 delimiter.
581
5822000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
583
584 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
585
5862000-08-28 Jason Merrill <jason@redhat.com>
587
588 * Makefile.in (REQUIRED_OFILES): Add md5.o.
589 (CFILES): Add md5.c.
590 * md5.c: New file.
591
5922000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
593
594 * cp-demangle.c (demangle_name): Initialize template_p in local
595 name case. Don't re-add substitutions as candidates.
596 (demangle_nested_name): Use <unqualified-name>.
597 (demangle_prefix): Likewise. Don't add template names as
598 substitution candidates twice, or re-add a substitution or the
599 last prefix component.
600 (demangle_local_name): Adjust output format.
ae7d06ad
NC
601
6022000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
603
604 * cp-demangle.c (result_add_separated_char): Change parameter to
605 int.
606 (substitution_add): Don't check for duplicates. Check if
607 previously allocated size is zero.
608 (demangle_name): Remove duplicate check for std substitution.
609 Clear template flag appropriately.
610 (demangle_prefix): Remove argument to demangle_substitution.
611 Don't check that template flag is already set.
612 (demangle_operator_name): Add pt operator.
613 (demangle_type): Don't treat r as built-in type. Remove argument
614 to demangle_substitution. Fix substitution candidate mechanics.
615 Handle <template-template-parm>s. Improve comments.
616 (demangle_template_param): Don't handle template arg lists here.
617 (demangle_substitution): Remove parameter.
618 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
619
6202000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
621
622 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
623
6242000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
625
626 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
627 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
628 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
629
6302000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
631
632 * cp-demangle.c (result_close_template_list): Remove function.
633 (result_add_separated_char): New function.
634 (result_open_template_list): New macro.
635 (result_close_template_list): Likewise.
636 (demangle_prefix): Don't set template_p if the
637 prefix ends with a ctor name.
638 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
639 (demangle_type): Check for template args after substitution.
640 (demangle_template_args): Use result_open_template_list.
d3e85005 641
ae7d06ad 6422000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 643
ae7d06ad 644 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 645
ae7d06ad 6462000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
647
648 * config/mh-openedition.h: Added -DLE370 definition.
649
a9f34fb6
JL
6502000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
651
652 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
653 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
654 Cast program to 'char *' in errmsg_arg assignment.
655 (PWAIT_ERROR): Define.
656 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
657 to DJGPP's WIF* macros.
658
90aaccd1 6592000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 660 Jeff Law <law@cygnus.com>
90aaccd1 661
ae7d06ad 662 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 663
90aaccd1 664 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
665 * rename.c: Include config.h, unistd.h
666 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 667
6ef554e3
HPN
6682000-07-24 Hans-Peter Nilsson <hp@axis.com>
669
670 * cplus-dem.c (work_stuff_copy_to_from): New.
671 (delete_non_B_K_work_stuff): New.
672 (delete_work_stuff): New.
673 (mop_up): Break out work_stuff partly destruction to
674 delete_non_B_K_work_stuff.
675 (iterate_demangle_function): New.
676 (demangle_prefix): Call iterate_demangle_function instead of
677 demangle_function_name. Leave handling of name-signature
678 __-delimiters to iterate_demangle_function.
679 (demangle_integral_value): Strip an optional
680 following underscore cautiously. Handle negative numbers.
681
ae7d06ad 6822000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 683
ae7d06ad 684 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
685 if (AUTO_DEMANGLING || GNU_DEMANGLING)
686
ae7d06ad
NC
6872000-07-21 Alex Samuel <samuel@codesourcery.com>
688
689 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
690 allocating ctor mangling.
691 (demangle_array_type): Handle empty and non-constant array length.
692
b1233257 6932000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
694 Jeff Law <law@cygnus.com>
695
696 * configure.in (AC_CHECK_HEADERS): Add time.h.
697 (AC_HEADER_TIME): Add check.
698 * configure, config.in: Regenerate.
699 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
700
701 * configure.in (AC_CHECK_HEADERS): Add limits.h.
702 * configure, config.in: Regenerate.
703 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
704 * strtol.c, strtoul.c: #include "config.h". Portably #include
705 <limits.h> and/or <sys/param.h>.
706 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 707
7d3ffcaf
JL
708 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
709 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
710 * configure, config.in: Regenerate.
711 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
712
b1233257
JL
713 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
714
ae7d06ad
NC
7152000-07-21 Mike Stump <mrs@wrs.com>
716
717 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
718 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
719
7202000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
721
722 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
723
724 * setenv.c (setenv): Initialize variable `ep'.
725
726 * sigsetmask.c (abort): Prototype.
727
728 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
729 __STDC__ for stdarg.h include.
730 (int_vasprintf): Prototype.
731 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
732 definition. Cast `global_total_width' in comparison.
733 (main): Prototype. Return a value.
734
735 * vfork.c (fork): Prototype.
736
737 * xexit.c: Include config.h.
738
9adf30b2
JL
7392000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
740
741 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
742 and print it with %u.
743
2ed78d1b
HPN
7442000-07-17 Hans-Peter Nilsson <hp@axis.com>
745
746 * testsuite/regress-demangle (failed test): Show result and
747 expected output.
748
0473bdf7
AH
7492000-07-07 Andrew Haley <aph@cygnus.com>
750
751 * cplus-dem.c (main): fflush() after emitting last char before
752 waiting for input.
753
03d5f569
JM
7542000-06-28 Alex Samuel <samuel@codesourcery.com>
755
756 * cp-demangle.c (demangle_encoding): Accept no substitutions.
757 (demangle_name): Handle <substitution> followed by
758 <unqualified-template-name>.
759 (demangle_type): Follow special substitutions with
760 <class-enum-type>
761 (demangle_subtitution): Set template_p for special substitutions.
762 (main): Fix typos.
ae7d06ad 763
03d5f569
JM
7642000-06-27 Alex Samuel <samuel@codesourcery.com>
765
766 * cp-demangle.c (demangle_special_name): Swap base and derived
767 class when demangling construction vtables.
768
7692000-06-21 Alex Samuel <samuel@codesourcery.com>
770
771 * cp-demangle.c: Don't include ctype.h.
772 (IS_DIGIT): New macro.
773 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
774 instead of isdigit and isalpanum.
775 (demangling_def): Make name and next const pointers.
776 (STATUS_ALLOCATION_FAILED): New status code.
777 (dyn_string_append_space): Handle failure in
778 dyn_string_append_char.
779 (int_to_dyn_string): Likewise. Change return value to status_t.
780 (string_list_new): Handle failure of dyn_string_init.
781 (result_close_template_list): Change return type to status_t.
782 Handle failure in dyn_string_append.
783 (result_push): Change return value to status_t. Handle failure in
784 string_list_new. Handle failure of result_push throughout.
785 (substitution_add): Change return value to status_t. Handle
786 dyn_string failures. Handle failure of substitution_add
787 throughout.
788 (template_arg_list_new): Return NULL on allocation failure.
789 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
790 Handle error result throughout.
791 (result_append): Likewise.
792 (result_append_char): Likewise.
793 (result_append_space): Likewise.
794 (demangling_new): Make argument a const pointer. Handle
795 allocation failures.
796 (demangle_template_args): Handle failure in template_arg_list_new
797 and result_close_template_list.
798 (demangle_discriminator): Return if int_to_dyn_string fails.
799 (cp_demangle): Likewise.
800 (cp_demangle_type): New function.
801 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
802 memory allocation failure.
803 (main): Likewise.
804 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
805 IN_LIBGCC2.
806 (dyn_string_init): Change return value to int. Handle
807 RETURN_ON_ALLOCATION_FAILURE case.
808 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
809 (dyn_string_release): Delete the dyn_string.
810 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
811 (dyn_string_copy): Change return type to int.
812 (dyn_string_copy_cstr): Likewise.
813 (dyn_string_prepend): Likewise.
814 (dyn_string_prepend_cstr): Likewise.
815 (dyn_string_insert): Likewise.
816 (dyn_string_insert_cstr): Likewise.
817 (dyn_string_append): Likewise.
818 (dyn_string_append_cstr): Likewise.
819 (dyn_string_append_char): Likewise.
820 (dyn_string_substring): Likewise.
ae7d06ad 821
eb383413 8222000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 823
eb383413
L
824 * cp-demangle.c (demangle_operator_name): Add spaces before
825 names beginning with a letter: delete, delete[], new, new[],
826 sizeof.
827 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 828
eb383413
L
829Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
830
831 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
832
833Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
834
835 * cp-demangle.c (stdio.h): File included unconditionaly.
836 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
837 * dyn-string.c (stdio.h): File included.
838 * partition.c (partition_print): No `&' needed to take the address of
839 a function.
840
8412000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
842
843 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 844
eb383413
L
845 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
846
847 * cp-demangle.c (demangle_char): Change parameter from char to int.
848 (demangle_expression, demangle_expr_primary): Remove extra
849 semi-colon in prototype.
850
851 * dyn-string.c (dyn_string_append_char): Change parameter from
852 char to int.
853
854 * memcmp.c (memcmp): Constify.
855
856 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
857 __extension__.
858
859 * partition.c (elem_compare): Prototype. Don't cast away
860 const-ness.
861
862 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 863
eb383413
L
8642000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
865
866 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
867
868 * cp-demangle.c: Include demangle.h.
869 (template_arg_list_new): DeANSIfy.
870 (cp_demangle): Make static and add prototype.
871 (operator_code, operators): Constify.
872 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
873
8742000-06-05 Alex Samuel <samuel@codesourcery.com>
875
876 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
877 unsigned char.
878 (demangle_unqualified_name): Likewise.
879 (demangle_number_literally): Likewise.
880 (demangle_type): Likewise.
881 (demangle_substitution): Likewise.
882 (is_mangled_char): Likewise, for isalnum.
883
8842000-06-04 Alex Samuel <samuel@codesourcery.com>
885
886 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
887 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
888 (cp-demangle.o): New dependency.
889 (dyn-string.o): Likewise.
890
891 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
892
893 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
894 demangler.
895 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
896 demangling mode.
897 (gnu_new_abi_symbol_characters): New function.
898 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
899 file.
900 * cp-demangle.c: New file.
ae7d06ad 901
f03aa80d
AC
902Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
903
904 * floatformat.c: Add name to each floatformat field.
905
77bfb694
JL
906Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
907
908 * Makefile.in (objalloc.o): Depend on config.h
909
5c82d20a
ZW
9102000-05-29 Zack Weinberg <zack@wolery.cumb.org>
911
eb383413 912 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
913 if HAVE_STRING_H.
914 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
915 * objalloc.c: Include config.h. Include stdlib.h and don't
916 declare malloc or free if HAVE_STDLIB_H.
917 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
918 else declare malloc without prototype. Include string.h if
919 HAVE_STRING_H, else declare memset without prototype. Don't
920 include stddef.h.
921
eb383413
L
9222000-05-23 Mike Stump <mrs@wrs.com>
923
924 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 925 -j3.
eb383413
L
926
9272000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
928
929 * xmalloc.c: Include config.h for HAVE_SBRK definition.
930
9312000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
932
ae7d06ad 933 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
934 probably zero, also eliminate a warning on alpha.
935
9362000-05-15 David Edelsohn <edelsohn@gnu.org>
937
938 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
939 on $(enable_shared).
940
9412000-05-10 Jakub Jelinek <jakub@redhat.com>
942
943 * config.table: Use mh-sparcpic for sparc*-*-*.
944
9452000-05-08 Nick Clifton <nickc@cygnus.com>
946
947 * Makefile.in (CFILES): Add strncmp.c.
948 (NEEDED): Add strncmp.
949
9502000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 951
eb383413
L
952 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
953 Cast the arguments to `islower' to `unsigned char'.
954 (print_demangler_list): Prototype.
955
956Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
957
958 * sort.c (UCHAR_MAX): Provide fallback definition.
959
9602000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
961
962 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
963 SUBDIRS.
964
eb383413
L
9652000-04-28 Kenneth Block <block@zk3.dec.com>
966 Jason Merrill <jason@casey.cygnus.com>
967
ae7d06ad
NC
968 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
969 (cplus_demangle_set_style): New function for setting style.
970 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
971
9722000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
973
974 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
975
976 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
977 (libiberty_AC_FUNC_STRNCMP): Invoke.
978
979 * strncmp.c: New file.
980
981Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
982
983 * hashtab.c (htab_expand): Add prototype.
984 (find_empty_slot_for_expand): Likewise.
985
9862000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
987
988 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
989 match prototype.
990 (htab_expand): Cast the return value of xcalloc.
991
9922000-04-24 Mark Mitchell <mark@codesourcery.com>
993
994 * hashtab.c (hash_pointer): New function.
995 (eq_pointer): Likewise.
996 (htab_hash_pointer): New variable.
997 (htab_eq_pointer): Likewise.
998
9992000-04-23 Mark Mitchell <mark@codesourcery.com>
1000
1001 * sort.c (sort_pointers): Fix endianness bugs.
1002
1003 * sort.c: New file.
1004 * Makefile.in (CFILES): Add sort.c
1005 (REQUIRED_OFILES): Add sort.o.
1006 (sort.o): New target.
1007
19be4303
JL
10082000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1009
1010 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1011 4.3BSD systems.
1012
eb383413
L
1013Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1014
1015 * hashtab.c: Various minor cleanups.
1016 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1017 (htab_find_slot): Likewise.
1018
10192000-04-16 Dave Pitts <dpitts@cozx.com>
1020
1021 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1022
afe36a78
RH
10232000-04-05 Richard Henderson <rth@cygnus.com>
1024
1025 * splay-tree.c (splay_tree_remove): New.
1026
eb383413
L
10272000-03-30 Mark Mitchell <mark@codesourcery.com>
1028
1029 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1030 codes.
1031 (htab_find_with_hash): Likewise.
1032 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1033
eb383413
L
10342000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1035
1036 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1037 unless it will be used. Rearrange loop for better
1038 optimization.
1039 (higher_prime_number): Add static prototype.
1040
b4fe2683
JM
1041Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1042
1043 * Makefile.in (partition.o): Depend on config.h
1044
10452000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1046
1047 * hashtab.c (find_empty_slot_for_expand): New function.
1048 (htab_expand): Use it instead of htab_find_slot.
1049 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1050 argument HASH.
1051 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1052 (htab_find): New wrapper function.
1053 (htab_find_slot): Likewise.
1054 (htab_traverse): Pass slot, not entry, to called function.
1055
10562000-03-09 Alex Samuel <samuel@codesourcery.com>
1057
1058 * Makefile.in (CFILES): Add partition.c.
1059 (REQUIRED_OFILES): Add partition.o.
1060 (partition.o): New rule.
1061 * partition.c: New file.
ae7d06ad 1062
b4fe2683
JM
10632000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1064
1065 * hashtab.c (htab_create): Set del_f.
1066 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1067 Use it.
1068
10692000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1070
1071 * hashtab.c: Remove debugging variables (all_searches,
1072 all_collisions, all_expansions). Delete
1073 all_hash_table_collisions.
1074 (create_hash_table, delete_hash_table, empty_hash_table,
1075 find_hash_table_entry, remove_element_from_hash_table_entry,
1076 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1077 hash_table_elements_number, hash_table_collisions): Rename to:
1078 htab_create, htab_delete, htab_empty, htab_find_slot,
1079 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1080 htab_elements, htab_collisions.
1081 (htab_find): New function, handles common case where you don't
1082 plan to add or delete an entry.
1083 (htab_expand): Don't create a whole new table, just a new
1084 entry vector.
1085 (htab_find_slot): Simplify logic.
1086
08372f14
ILT
10871999-08-03 Ian Lance Taylor <ian@zembu.com>
1088
1089 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1090 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1091
1092 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1093 $(TARGETLIB)n so it works on MSDOS.
1094 (install_to_tooldir): Likewise.
1095
9c8ac5a9
ILT
10961999-07-21 Ian Lance Taylor <ian@zembu.com>
1097
1098 From Mark Elbrecht:
1099 * makefile.dos: Remove; obsolete.
8f36e47c 1100 * configure.bat: Remove; obsolete.
9c8ac5a9 1101
0c0a36a4
ILT
11021999-07-11 Ian Lance Taylor <ian@zembu.com>
1103
1104 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1105 warning.
1106
11072000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1108
1109 * pexecute.c: Conditionally include string.h.
b4fe2683 1110 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1111
11122000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1113
1114 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1115 we're using gcc.
1116
1117 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1118
11191999-12-27 Geoff Keating <geoffk@cygnus.com>
1120
1121 * vasprintf.c (int_vasprintf): Don't re-read the format character
1122 as this mishandles strings like '%%s'.
1123
11241999-12-05 Mark Mitchell <mark@codesourcery.com>
1125
1126 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1127 rather than struct splay_tree_node.
1128 (splay_tree_insert): Use struct splay_tree_s rather than struct
1129 splay_tree.
1130
1131Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1132
1133 * hashtab.c (sys/types.h): File included.
1134
11351999-11-22 Jason Merrill <jason@casey.cygnus.com>
1136
1137 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1138 BSD license, pursuant with
1139
1140 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1141
1142Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1143
1144 * hashtab.c: Include stdio.h.
1145
1146Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1147
1148 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1149
1150Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1151
1152 * xstrdup (sys/types.h): Include this file.
1153
11541999-10-28 Nathan Sidwell <nathan@acm.org>
1155
1156 * Makefile.in (SUBDIRS): New macro.
1157 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1158 avoid multiple subdirectory cleaning.
1159 (*-subdir): Use SUBDIRS.
1160
11611999-10-25 Jim Kingdon <http://developer.redhat.com/>
1162
1163 * cplus-dem.c: Move declarations of standard_symbol_characters and
1164 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1165 warnings.
1166
11671999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1168
1169 * hashtab.c (find_hash_table_entry): When returning a
1170 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1171 (clear_hash_table_slot): New function which deletes an entry
1172 by its position in the table, not its value.
1173 (traverse_hash_table): New function which calls a hook
1174 function for every live entry in the table.
1175
11761999-10-19 Mark Mitchell <mark@codesourcery.com>
1177
1178 * cplus-dem.c (INTBUF_SIZE): New macro.
1179 (string_append_template_idx): New function.
1180 (demangle_expression): Likewise.
1181 (demangle_integral_value): Use it.
1182 (demangle_real_value): New function, split out from ...
1183 (demangle_template_value_parm): ... here. Use
1184 string_append_template_idx. Use demangle_real_value.
1185 (demangle_template): Use string_append_template_idx.
1186 (demangle_qualified): Use consume_count_with_underscores.
1187 (get_count): Tweak formatting.
1188 (do_type): Use string_append_template_idx.
b4fe2683 1189
0c0a36a4
ILT
11901999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1191
1192 * calloc.c: Add a public domain notice.
1193
1194Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1195
1196 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1197
1198Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1199
1200 * Makefile.in (CFILES): Add hashtab.c
1201 (REQUIRED_OFILES): Add hashtab.o
1202 (hashtab.o): Add dependencies.
1203 * hashtab.c: New file
1204
1205Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1206
1207 * basename.c (DIR_SEPARATOR): New macro.
1208 (DIR_SEPARATOR_2): Likewise.
1209 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1210 (IS_DIR_SEPARATOR): Likewise.
1211 (main): Handle MSDOS style pathname.
1212
12131999-10-11 Mark Mitchell <mark@codesourcery.com>
1214
1215 * cplus-dem.c (do_type): Handle pointer to member types whose
1216 enclosing classes have namespace scope.
1217
1218Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1219
1220 * config.table: Provide a backup shell for executing move-if-change.
1221
12221999-10-02 Mark Mitchell <mark@codesourcery.com>
1223
1224 * xmalloc.c (xmalloc): Fix spelling error.
1225 (xcalloc, xrealloc): Likewise.
1226
12271999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1228
1229 * cplus-dem.c (fancy_abort, demangle_integral_value,
1230 demangle_arm_hp_template, recursively_demangle,
1231 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1232 (program_name, program_version, fatal): Constify a char*.
1233 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1234 (main): Call return, not exit.
1235
12361999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1237
1238 * choose-temp.c: Remove obsolete comment about gcc.
1239 (make_temp_file): Constify a char*.
1240
1241Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1242
1243 * xmemdup.c: Include sys/types.h.
1244
12451999-09-07 Jeff Garzik <jgarzik@pobox.com>
1246
1247 * xmemdup.c: New xmemdup function.
1248 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1249
1250Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1251
b4fe2683 1252 * config.table: Add openedition target.
0c0a36a4
ILT
1253 * config/mh-openedition: New file.
1254
1255Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1256
1257 * pexecute.c (pexecute): Fill in temp_base when needed.
1258
12591999-08-31 Richard Henderson <rth@cygnus.com>
1260
1261 * getpwd.c: Check HAVE_GETCWD before defining it away.
1262
12631999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1264
1265 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1266 (REQUIRED_OFILES): Add getpwd.o.
1267 (getpwd.o): Add target.
1268
1269 * configure.in (AC_PREREQ): Bump to 2.13.
1270 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1271
1272 * getpwd.c: New file, moved here from gcc.
1273
12741999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1275
1276 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1277 comparing against a signed quantity.
1278 (arm_special): Likewise.
1279 (demangle_fund_type): Likewise.
1280 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1281 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1282 (main): Constify variable `valid_symbols'.
1283
1284Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1285
1286 * strtoul.c (strtoul): Add parentheses around && within ||.
1287
1288Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1289
1290 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1291 libdir, libsubdir and tooldir.
1292
12931999-08-01 Mark Mitchell <mark@codesourcery.com>
1294
1295 * splay-tree.c (splay_tree_insert): Return the new node.
1296
35ca97ea
RH
12971999-07-14 Richard Henderson <rth@cygnus.com>
1298
b4fe2683 1299 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1300 prototyping directly.
1301 * choose-temp.c: Conditionally include string.h.
1302
0c0a36a4
ILT
13031999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1304
1305 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1306
af32ff69
ILT
13071999-07-11 Ian Lance Taylor <ian@zembu.com>
1308
1309 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1310 warning.
1311
0c0a36a4
ILT
13121999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1313
1314 * Makefile.in (needed-list): Only include stuff we actually need
1315 for libstdc++.
1316
13171999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1318
1319 * configure.in (checkfuncs): Add gettimeofday.
1320 * config.in, configure: Regenerated.
1321
1322Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1323
1324 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1325 the test fails.
1326 * configure: Regenerate.
1327
13281999-06-10 Mike Stump <mrs@wrs.com>
1329
1330 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1331 parallel builds.
1332
13331999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1334
1335 * putenv.c: Include ansidecl.h to define `const'.
1336 * setenv.c: Likewise.
1337
1338Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1339
1340 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1341 * configure.in (funcs): Add putenv and setenv.
1342 (AC_CHECK_FUNCS): Check for putenv and setenv.
1343 * configure: Rebuilt.
1344 * putenv.c setenv.c: New files.
1345
1346 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1347 bytes of space using malloc.
1348
1349Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1350
1351 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1352 the *mangled pointer beyond the end of the string. Clean up code to
1353 match prevailing coding style.
1354
13551999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1356
1357 * tmpnam.c (L_tmpnam): Fix typo.
1358
1359Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1360
1361 * cplus-dem.c (standard_symbol_characters): Renamed from
1362 standard_symbol_alphabet. No longer modify TABLE.
1363 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1364 modify TABLE.
1365 (main): Corresponding changes. Use strchr to determine if a
1366 character is valid.
1367
e9868447
JB
13681999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1369
1370 * cplus-dem.c (main): Use table lookup to distinguish identifier
1371 characters from non-identifier characters.
1372 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1373
33fbbfbc
RH
1374Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1375
1376 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1377 * getruntime.c: Only attempt to include sys/resource.h and
1378 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1379 are defined.
1380
0c0a36a4
ILT
1381Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1382
1383 * configure.in (alloca detection): Handle alloca directly for interix.
1384 * configure: Rebuilt.
1385
1386Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1387
1388 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1389
252b5132
RH
13901999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1391
1392 Fix from Dale Hawkins:
b4fe2683 1393 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1394 reallocated properly if we use it again.
1395
1396 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1397 stricter about syntax. Always null-terminate string.
1398
c1687039
ILT
1399Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1400
1401 * configure.in (checkfuncs): Check for sbrk.
1402 * config.in: Rebuilt.
1403 * configure: Likewise.
1404 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1405
0c0a36a4
ILT
14061999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1407
1408 Fix from Marcus Daniels:
1409 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1410 identifier looking for another underscore.
1411
1412Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1413
1414 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1415 * xmalloc.c: Likewise.
1416 (xcalloc): UWIN has sbrk.
1417 (xrealloc): Fix guard macro.
1418
252b5132
RH
14191999-04-11 Richard Henderson <rth@cygnus.com>
1420
1421 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1422 or <alloca.h>.
1423 * clock.c (GNU_HZ): New definition.
1424 (clock): Use it.
1425 * getruntime.c: Likewise.
1426
1427 * config.table: Use mh-beos.
1428 * config/mh-beos: New file.
1429
0c0a36a4
ILT
14301999-04-11 Mark Mitchell <mark@codesourcery.com>
1431
1432 * cplus-dem.c (demangle_template_value_parm): Handle
1433 pointers-to-members.
1434 (do_type): Handle template parameters as qualifiers.
1435
252b5132
RH
14361999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1437
1438 * cplus-dem.c: Attempt to handle overflows in counts with some
1439 semblance of grace.
1440 (consume_count): Detect overflows. Return -1 to indicate errors,
1441 instead of zero.
1442 (demangle_template_value_parm, demangle_template): Handle change
1443 to consume_count's return convention.
1444
0c0a36a4
ILT
14451999-04-05 Tom Tromey <tromey@cygnus.com>
1446
1447 * testsuite/regress-demangle: New file.
1448 * testsuite/demangle-expected: New file.
252b5132 1449
0c0a36a4
ILT
1450 * Makefile.in (all, check, installcheck, info, install-info,
1451 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1452 distclean, maintainer-clean, realclean): Depend on corresponding
1453 `-subdir' target.
1454 (all-subdir check-subdir installcheck-subdir info-subdir
1455 install-info-subdir clean-info-subdir dvi-subdir
1456 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1457 distclean-subdir maintainer-clean-subdir): New target.
1458 * testsuite/Makefile.in: New file.
1459 * configure: Rebuilt.
1460 * configure.in: Create testsuite/Makefile.
252b5132
RH
1461
14621999-04-02 Mark Mitchell <mark@codesourcery.com>
1463
1464 * splay-tree.h (splay_tree_compare_pointers): Define.
1465
14661999-03-30 Mark Mitchell <mark@codesourcery.com>
1467
1468 * splay-tree.c (splay_tree_compare_ints): Define.
1469
14701999-03-30 Tom Tromey <tromey@cygnus.com>
1471
1472 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1473 don't advance input pointer.
1474 (demangle_class_name): If consume_count didn't find a count, do
1475 nothing. Don't bother with `strlen' sanity check; consume_count
1476 does it for us.
1477
14781999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1479
1480 From Art Haas <ahaas@neosoft.com>:
1481 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1482 when doing arm or hp style.
1483 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1484
252b5132
RH
1485Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1486
1487 * pexecute.c (__CYGWIN32__): Rename to
1488 (__CYGWIN__): this.
1489 * xmalloc.c: Likewise.
1490
1491 Changes to support i386-pc-uwin.
1492 * configure.in (*-*-uwin*): Workaround for vfork bug.
1493 * configure: Regenerate.
1494 * pexecute.c (pexecute): Be like standard Unix.
1495 (pwait): Likewise.
1496 * xmalloc.c (first_break): Define.
1497 (xmalloc_set_program_name): Use.
1498 (xmalloc): Use.
1499
1500Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1501
1502 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1503
1504Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1505
1506 * config.table: Check cygwin*, not cygwin32*.
1507
1508Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1509
1510 * Makefile.in: Change mkstemp -> mkstemps.
1511
1512Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1513
1514 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1515 * configure.in (funcs): Check for and conditionally add mkstemps to
1516 the list of functions libiberty will provide.
1517 * configure: Rebuilt.
b4fe2683 1518
252b5132
RH
1519Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1520
b4fe2683 1521 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1522 platforms that don't have HZ.
1523 * getruntime.c (HZ): Likewise.
1524
1525Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1526
1527 * Makefile.in (xstrdup.o): Depend on config.h.
1528
1529Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1530
1531 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1532 freeing it.
1533
1534Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1535
1536 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1537
1538Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1539
1540 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1541 splay-tree.o.
1542
15431999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1544
1545 * configure.in: Require autoconf 2.12.1 or higher.
1546
15471998-12-30 Michael Meissner <meissner@cygnus.com>
1548
1549 * random.c (NULL): Don't redefine NULL if it is already defined.
1550
1551Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1552
1553 * argv.c (buildargv): Cast the result of alloca in assignment.
1554
1555 * choose-temp.c: Include stdlib.h.
1556
1557 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
1558 (snarf_numeric_literal): Constify first parameter.
1559 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1560 int, not a char.
252b5132
RH
1561 (demangle_qualifier): Likewise.
1562 (demangle_signature): Cast the argument of a ctype function to
1563 unsigned char.
1564 (arm_pt): Add parens around assignment used as truth value.
1565 (demangle_arm_hp_template): Constify variable `args'.
1566 (do_hpacc_template_const_value): Cast the argument of a ctype
1567 function to unsigned char.
1568 (do_hpacc_template_literal): Remove unused variable `i'.
1569 (snarf_numeric_literal): Constify parameter `args'.
1570 Cast the argument of a ctype function to unsigned char.
1571
1572 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 1573 avoid ambiguous `else'.
252b5132
RH
1574
1575 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
1576 `cstart' and `cend' to unsigned char. Cast the argument of macro
1577 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
1578
1579 * objalloc.c (free): Add prototype.
1580
1581Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1582
1583 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1584
1585Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1586
1587 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 1588 doesn't exist.
252b5132 1589 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1590
252b5132
RH
1591Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1592
1593 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1594 bumping the pointer we read from. Also prepend these codes,
1595 as we do in other places.
1596
15971998-12-18 Nick Clifton <nickc@cygnus.com>
1598
1599 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1600 'const char *' in order to match its usage when calling siblings.
1601 (snarf_numeric_literal): Make first arg 'const char **' in order
1602 to match usage.
1603
1604Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1605
1606 * choose-temp.c: Don't check IN_GCC anymore.
1607
1608 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1609 * memchr.c (memchr): Likewise.
1610 * memcpy.c (memcpy): Likewise.
1611 * memmove.c (memmove): Likewise.
1612
1613 * mkstemp.c: Don't check IN_GCC anymore.
1614 * pexecute.c: Likewise.
1615 * splay-tree.c: Likewise.
1616
1617 * strchr.c (strchr): Use `const', not `CONST'.
1618 * strrchr.c (strrchr): Likewise.
1619 * strtol.c (strtol): Likewise.
1620 * strtoul.c (strtoul): Likewise.
1621
1622Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1623 Elena Zannoni <ezannoni@cygnus.com>
1624 Stan Shebs <shebs@cygnus.com>
1625 Edith Epstein <eepstein@cygnus.com>
1626 Andres MacLeod <amacleod@cygnus.com>
1627 Satish Pai <pai@apollo.hp.com>
1628
1629 * HP aCC demangling support.
1630 * cplus-dem.c
1631 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
1632 demangling correctly when -edg specified; set the demangling style
1633 when user specifies 'edg'. Set strip_underscore to
1634 prepends_underscore, if not HPUXHPPA. Set
1635 current_demangling_style to hp_demangling if HPUXHPPA. Set
1636 current demangling style correctly if the switch is hp. Read
1637 label correctly also in the HP style case.
252b5132 1638 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 1639 function.
252b5132 1640 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 1641 style for this case is the same as ARM.
252b5132
RH
1642 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1643 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
1644 demangle_arm_pt.); check and set value of temp_start field in
1645 multiple places. Also, when ceching for end of template args,
1646 check to see if at end of static member of template class.
252b5132 1647 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 1648 include template args in string defining class.
252b5132
RH
1649 (demangle_class_name): use demangel_arm_hp_template.
1650 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
1651 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1652 Handle EDG_DEMANGLING style. Handle constructor and destructor
1653 ops for HP style.
252b5132 1654 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
1655 styles. global destructor and constructor for HP style are same
1656 as for ARM style. Same for local variables.
252b5132
RH
1657 (demangle_qualified): handle EDG_DEMANGLING style.
1658 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
1659 cases '1' - '9' : initialize the temp_start field to -1 and handle
1660 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1661 and AUTO_DEMANGLING styles. If expecting a function and managed
1662 to demangle the funct args, then handle the LUCID_DEMANGLING,
1663 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1664 class name after "Lnnn_ in HP style case. HP style too needs to
1665 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 1666 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 1667 value param for HP/aCC.
252b5132 1668 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 1669 literal parameter for HP aCC.
252b5132
RH
1670 (recursively_demangle): new function
1671 (snarf_numeric_literal): new function.
1672 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 1673 to message.
252b5132
RH
1674
1675Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1676
1677 * pexecute.c: Remove obsolete ifdefed cygwin code.
1678
1679Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1680
1681 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1682 * cplus-dem.c: Likewise. Conform to libiberty.h.
1683 * pexecute.c: Likewise.
1684 * splay-tree.c: Likewise.
1685
16861998-11-25 Mike Stump <mrs@wrs.com>
1687
1688 * Makefile.in (splay-tree.o): Add config.h dependency.
1689
1690Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1691
1692 * configure.in: Use AC_PREREQ(2.12.1).
1693
16941998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1695
b4fe2683 1696 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1697
1698Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1699
1700 * mpw.c (mpw_access): Add missing parens.
1701
1702Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1703
1704 * configure.in: Call AC_HEADER_SYS_WAIT.
1705
1706 * pexecute.c: Include sys/wait.h when !IN_GCC.
1707
1708Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1709
1710 * pexecute.c: revert back to checking old Cygwin
1711 preprocessor symbol until some time has passed.
1712
1713Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1714
1715 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1716 since it will now support similar constructs.
1717
1718Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1719
1720 * configure.in: Check for calloc.
1721
1722 * calloc.c: New file.
1723
1724 * xmalloc.c (xcalloc): New function.
1725
1726Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1727
1728 *cplus-dem.c (demangle_prefix): Use the last "__"
1729 in the mangled name when looking for the signature. This allows
1730 template names to begin with "__".
1731
17321998-11-08 Mark Mitchell <mark@markmitchell.com>
1733
1734 * cplus-dem.c (type_kind_t): Add tk_reference.
1735 (demangle_template_value_parm): Handle it.
1736 (do_type): Use it for references, instead of tk_pointer.
1737
1738 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1739 not internal_cplus_demangle.
1740
1741Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1742
1743 * choose-temp.c: Don't include gansidecl.h.
1744 * mkstemp.c: Likewise.
1745 * pexecute.c: Likewise.
1746
1747Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1748
b4fe2683
JM
1749 * configure.in: detect cygwin* instead of cygwin32*
1750 * configure: regenerate
252b5132
RH
1751
1752Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1753
1754 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
1755 whether to include config.h. Possibly include unistd.h in the
1756 !IN_GCC case. Define VFORK_STRING as a printable function call
1757 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1758 defined, include vfork.h. If VMS is defined, define vfork()
1759 appropriately. Remove vfork check on USG, we're using autoconf.
1760 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1761 locally what string to use.
252b5132
RH
1762
17631998-10-26 Mark Mitchell <mark@markmitchell.com>
1764
1765 * splay-tree.c: Tweak include directives to make sure declarations of
1766 xmalloc and free are available.
1767
17681998-10-25 Mark Mitchell <mark@markmitchell.com>
1769
1770 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1771 anonymous namespaces.
1772
17731998-10-23 Mark Mitchell <mark@markmitchell.com>
1774
1775 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1776 with type_quals.
1777 (TYPE_UNQUALIFIED): New macro.
1778 (TYPE_QUAL_CONST): Likewise.
1779 (TYPE_QUAL_VOLATILE): Likewise.
1780 (TYPE_QUAL_RESTRICT): Likewise.
1781 (code_for_qualifier): New function.
1782 (qualifier_string): Likewise.
1783 (demangle_qualifier): Likewise.
1784 (internal_cplus_demangle): Use them.
1785 (demangle_signature): Likewise.
1786 (demangle_template_value_parm): Likewise.
1787 (do_type): Likewise.
1788 (demangle_fund_type)): Likewise.
1789
1790Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1791
1792 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1793 to match prototype.
1794
17951998-10-21 Mark Mitchell <mark@markmitchell.com>
1796
1797 * splay-tree.c: New file.
1798 * Makefile.in (CFILES): Add it.
1799 (REQUIRED_OFILES): Likewise.
1800 (splay-tree.o): Add dependencies.
1801
1802Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1803
1804 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1805 range of 'K' index.
1806
1807Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1808
1809 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1810
1811 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1812 `unsigned char'.
1813 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1814 comparing against one.
1815 (cplus_mangle_opname): Likewise.
1816 (demangle_integral_value): Cast argument of ctype macro to
1817 `unsigned char'.
1818 (demangle_template_value_parm): Likewise.
1819 (demangle_template): Initialize variable `bindex'. Cast the
1820 result of `strlen' to (int) when comparing against one. Remove
1821 unused variable `start_of_value_parm'.
1822 (demangle_class_name): Cast the result of `strlen' to (int) when
1823 comparing against one.
1824 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1825 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1826 when comparing against one.
1827 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1828 (get_count): Likewise.
1829 (do_type): Likewise. Cast the result of `strlen' to (int) when
1830 comparing against one.
1831 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1832 (demangle_function_name): Cast the result of `strlen' to (int)
1833 when comparing against one.
1834
1835 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1836 comparing against one.
1837
1838Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1839
b4fe2683
JM
1840 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1841 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1842 * config.in, configure: Rebuilt.
252b5132
RH
1843
1844 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1845 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1846 * config.in, configure: Rebuilt.
1847
1848Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1849
b4fe2683 1850 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
1851
1852Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1853
1854 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1855
1856Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1857
1858 * Merge egcs & devo libiberty.
1859