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