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