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