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