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