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