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