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