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