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