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