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