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