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