* remote.c (extended_remote_restart): Pass the correct length
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
545c9aee
DD
12006-04-06 Carlos O'Donell <carlos@codesourcery.com>
2
3 * Makefile.in: Add install-html, install-html-am, and
4 install-html-recursive targets. Define mkdir_p and
5 NORMAL_INSTALL.
6 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
7 * configure: Regenerate.
8 * testsuite/Makefile.in: Add install-html and html targets.
9
8e1e9959
DD
102006-03-31 Mark Mitchell <mark@codesourcery.com>
11
12 * pex-win32.c (<errno.h>): Include.
13 (fix_argv): Remove.
14 (argv_to_cmdline): New function.
15 (std_suffixes): New variable.
16 (no_suffixes): Likewise.
17 (find_executable): New function.
18 (win32_spawn): Likewise.
19 (spawn_script): Use win32_spawn instead of _spawnv[p].
20 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
21 (pex_win32_wait): Likewise.
22
57b126a3
DD
232006-03-24 Jim Blandy <jimb@codesourcery.com>
24
25 * pex-common.c (pex_run): Simplify output name handling.
26
9223c945
DD
272006-03-12 Jim Blandy <jimb@red-bean.com>
28
29 * pex-common.h (struct pex_obj): Doc fixes.
30
312006-03-11 Jim Blandy <jimb@red-bean.com>
32
33 * functions.texi: Regenerate.
34
96f4851a
DD
352006-02-21 Ben Elliston <bje@au.ibm.com>
36
37 * pexecute.c (pwait): Syntax fix for previous change.
38
1c7a49d2
DD
392006-02-17 Uttam Pawar <uttamp@us.ibm.com>
40
41 * pexecute.c (pwait): Free vector pointer.
42 * partition.c (partition_print): Free class_elements pointer.
43
e27d251e
DD
442006-02-11 Roger Sayle <roger@eyesopen.com>
45 R. Scott Bailey <scott.bailey@eds.com>
46 Bill Northcott <w.northcott@unsw.edu.au>
47
48 PR bootstrap/16787
49 * floatformat.c: Include <float.h> where available.
50 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
51
fd7d450d
DD
522006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
53
54 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
55 supported.
56 * configure: Regenerated.
57
67d78caa
DD
582006-01-20 Carlos O'Donell <carlos@codesourcery.com>
59
60 * testsuite/Makefile.in: Add test-expandargv test.
61 * testsuite/test-expandargv.c: New test.
62 * argv.c (expandargv): Check for errors with ferror,
63 rather than just by looking at return value from fread.
64
648c3dc0
DD
652005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
66
67 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
68 to convert from "from".
69 (floatformat_to_double): Likewise.
70 (floatformat_from_double): Use explicit cast to convert from "to".
71
7887b2ce
DD
722005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
73
74 PR java/9861
75 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
76 and include return type when found.
77 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
78 conditional logic to change printing order of return type.when
79 the DMGL_RET_POSTFIX option is present.
80 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
81 call.
82 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
83 * testsuite/demangle-expected: Test cases to verify extended encoding.
84 Updated comment to document --ret-postfix option.
85
718c0ded
DD
862005-11-06 Richard Guenther <rguenther@suse.de>
87
88 * splay-tree.c (rotate_left): New function.
89 (rotate_right): Likewise.
90 (splay_tree_splay_helper): Remove.
91 (splay_tree_splay): Re-implement.
92
fb10537e
DD
932005-10-31 Mark Kettenis <kettenis@gnu.org>
94
95 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
96 New variables.
97
5209596c
MM
982005-10-07 Mark Mitchell <mark@codesourcery.com>
99
100 * at-file.texi: Fix typo.
101
7b96829c
MM
1022005-10-03 Mark Mitchell <mark@codesourcery.com>
103
104 * at-file.texi: New file.
105
48e79b0a
MM
1062005-09-27 Mark Mitchell <mark@codesourcery.com>
107
108 * argv.c (expandargv): Do not use xmalloc_failed.
109
7b17bc29
MM
1102005-09-26 Mark Mitchell <mark@codesourcery.com>
111
112 * argv.c (safe-ctype.h): Include it.
113 (ISBLANK): Remove.
114 (stdio.h): Include.
115 (buildargv): Use ISSPACE instead of ISBLANK.
116 (expandargv): New function.
117 * Makefile.in: Regenerated.
118
f59e96e0
DD
1192005-09-14 Christopher Faylor <cgf@timesys.com>
120
121 * pex-win32.c: Include "windows.h".
122 (backslashify): New function.
123 (fix_argv): Use backslashify to convert path to windows format.
124 Allocate one more place in new argv for potential executable from '#!'
125 parsing.
126 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
127 (openkey): Ditto.
128 (mingw_rootify): Ditto.
129 (msys_rootify): Ditto.
130 (spawn_script): New function.
131 (pex_win32_exec_child): Save translated argv in newargv. Pass to
132 spawn_script if spawnv* fails.
133 (main): New function. Conditional on MAIN. Useful for testing.
134
3b6940c0
DD
1352005-08-17 Mark Kettenis <kettenis@gnu.org>
136
137 * floatformat.c (floatformat_always_valid): Change type of last
138 argument to `void *'.
139 (floatformat_i387_ext_is_valid): Likewise.
140 (floatformat_to_double): Change type of second argument to `const
141 void *'.
142 (floatformat_from_double): Change type of last argument to `void
143 *'.
144 (floatformat_is_valid): Change type of last argument to `const
145 void *'.
146 (ieee_test): Remove redundant casts.
147
a9479c3f
KC
1482005-08-17 Kelley Cook <kcook@gcc.gnu.org>
149
150 * strverscmp.c: Update FSF address.
151 * testsuite/Makefile.in: Likewise.
152 * testsuite/test-demangle.c: Likewise.
153 * testsuite/test-pexecute.c: Likewise.
154
55060c0b
DD
1552005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
156
157 * getopt.c: Include ansidecl.h before system headers.
158
6038baea
DD
1592005-07-22 Ben Elliston <bje@gnu.org>
160
161 * getopt.c: Include "ansidecl.h".
162 (_getopt_initialize): Mark argc and argv parameters as unused.
163
1642005-07-22 Ben Elliston <bje@gnu.org>
165
166 * regex.c (regcomp): Change type of `i' from unsigned to int.
167
c750388a
DD
1682005-07-22 Ben Elliston <bje@gnu.org>
169
170 Recover patch lost in the sourceware repository:
171 2005-07-09 Ben Elliston <bje@au.ibm.com>
172 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
173 * memmove.c: Likewise.
174 * objalloc.c: Likewise.
175
a4e5c0d8
DD
1762005-07-22 Ben Elliston <bje@gnu.org>
177
178 * configure.ac: Check for a getopt(3) declaration.
179 * configure, config.in: Regenerate.
180
4fe19082
DD
1812005-07-15 Ben Elliston <bje@au.ibm.com>
182
183 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
184
f2942ea4
DD
1852005-07-12 Ben Elliston <bje@au.ibm.com>
186
187 * floatformat.c (floatformat_to_double): Add a comment about a
188 potential source of warnings when compiling this file.
189
1902005-07-12 Ben Elliston <bje@au.ibm.com>
191
192 * pexecute.c (pexecute): Cast string litrals to char *.
193 * regex.c (re_comp): Cast a call to gettext() to char *.
194
4cf896a5
KC
1952005-07-07 Kelley Cook <kcook@gcc.gnu.org>
196
197 * config.table: Delete file. Move former contents into ...
198 * configure.ac: ... here and escape any brackets for m4.
199 * Makefile.in (config.status): Remove dependency on config.table.
200 * configure: Regenerate.
201
20ae7c34
KC
2022005-07-07 Kelley Cook <kcook@gcc.gnu.org>
203
204 * config.in: Regenerate for 6/20 change.
205
6ba85b8c
DD
2062005-07-03 Steve Ellcey <sje@cup.hp.com>
207
208 PR other/13906
209 * md5.c (md5_process_bytes): Check alignment.
210
2112005-07-01 Ian Lance Taylor <ian@airs.com>
212
213 PR other/22268
214 * cp-demangle.c (d_expr_primary): Don't run off the end of the
215 string while looking for the end of a literal value.
216 * testsuite/demangle-expected: Add test case.
217
c3cca4c9
DD
2182005-06-30 Daniel Berlin <dberlin@dberlin.org>
219
220 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
221 (DELETED_ENTRY): Ditto.
222
67f3cb05
GK
2232005-06-20 Geoffrey Keating <geoffk@apple.com>
224
225 * strverscmp.c: New.
226 * Makefile.in (CFILES): Add strverscmp.c.
227 (CONFIGURED_OFILES): Add strverscmp.o.
228 (strverscmp.o): New rule.
229 (stamp-functions): Add $(srcdir) to files in source directory.
230 * configure.ac (funcs): Add strverscmp.
231 (AC_CHECK_FUNCS): Add strverscmp.
232 * configure: Regenerate.
233 * functions.texi: Regenerate.
234
01e94249
DD
2352005-05-28 Eli Zaretskii <eliz@gnu.org>
236
237 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
238 * config.in, configure: Regenerate.
239
839e4798
RH
2402005-05-25 Richard Henderson <rth@redhat.com>
241
242 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
243 (d_make_comp, d_print_comp): Likewise.
244 (d_special_name): Generate one.
245 * testsuite/demangle-expected: Add a hidden alias test.
246
abf6a75b
DD
2472005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
248
249 * configure.ac: Check declarations for calloc(), getenv(),
01e94249 250 malloc(), realloc() and sbrk().
abf6a75b
DD
251 * config.in: Regenerate.
252 * configure: Likewise.
253
254 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
255 instead of xmalloc.
256 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
257 * concat.c (liiberty_concat_ptr): Surround definition with an
258 extern "C" block, if __cplusplus.
259 (concat): Use XNEWVEC instead of xmalloc.
260 (reconcat): Likewise.
261 * cp-demangle.c (struct d_print_template): Rename member
01e94249 262 "template" to "template_decl". Adjust use throughout the file.
abf6a75b
DD
263 (d_print_resize): Properly cast return value of realloc().
264 (cplus_demangle_print): Same for malloc().
265 (d_demangle): Likewise.
266 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
267 "typename" to "type_name".
268 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
269 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
270 (demangle_template_value_parm): Likewise.
271 (demangle_template): Likewise.
272 (recursively_demangle): Likewise.
273 (do_hpacc_template_literal): Likewise.
274 (do_arg): Likewise.
275 (remember_type): Likewise.
276 (remember_Ktype): Likewise.
277 (register_Btype): Likewise.
278 (string_need): Use XRESIZEVEC instead of xrealloc().
279 * dyn-string.c (dyn_string_init): Use XNEWVEC.
280 (dyn_string_new): Use XNEW.
281 (dyn_string_resize): Use XRESIZEVEC.
282 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
283 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
284 Otherwise include <stdlib.h>.
285 (exchange): Cast return value of malloc().
286 * hashtab.c (htab_size): Define as both macro and non-inline
287 function.
288 (htab_elements): Likewise.
289 * getpwd.c (getpwd): Use XNEWVEC.
290 (htab_create_alloc_ex): Use C90 prototype-style.
291 * lrealpath.c (lrealpath): Appropriately cast return value of
01e94249 292 malloc().
abf6a75b
DD
293 * make-relative-prefix.c (save_string): Likewise.
294 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
295 the file.
296 (choose_tmpdir): Use XNEWVEC.
297 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
298 * pex-common.c (pex_init_common): Use XNEW.
299 (pex_add_remove): Use XRESIZEVEC.
300 (pex_run): Likewise.
301 (pex_get_status_and_time): Likewise.
302 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
303 * pex-msdos.c (pex_init): Use XNEW.
304 (pex_msdos_exec_child): Likewise.
305 (pex_msdos_exec_child): Use XRESIZEVEC.
306 * pex-unix.c (pex_wait): Use XNEW.
307 * pex-win32.c (fix_argv): Use XNEWVEC.
308 * pexecute.c (pwait): Likewise.
309 * setenv.c (setenv): Properly cast return value of malloc().
310 * sigsetmask.c (sigsetmask): Rename local variables "old" and
311 "new" to "old_sig" and "new_sig".
312 * sort.c (main): Use XNEWVEC.
313 * spaces.c (spaces): Cast return value of malloc().
314 * strndup.c (strndup): Likewise.
315 * ternary.c (ternary_insert): Use XNEW.
316 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
317 with an extern "C" block if __cplusplus.
318 * xstrdup.c (xstrdup): Cast return value of memcpy().
319 * xstrerror.c (strerror): Enclose declaration in an extern "C"
320 block if __cplusplus.
321 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
322
2349f557
DD
3232005-05-16 Andreas Jaeger <aj@suse.de>
324
325 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
326 that it's only declared if needed.
327
328 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
329 defined.
330
e9edcedc
DD
3312005-05-15 Andreas Jaeger <aj@suse.de>
332
333 * functions.texi: Regenerated.
334
f13c9bea
DD
3352005-05-15 Eli Zaretskii <eliz@gnu.org>
336
337 * pexecute.txh: Enclose multi-word data types in @deftypefn in
338 braces. Minor wording fixes. Use --- for em-dash. Use
339 @enumerate in enumerated lists.
340
e9edcedc
DD
341 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
342 braces.
343
282d9ec3
ILT
3442005-05-11 Eli Zaretskii <eliz@gnu.org>
345
346 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
347 sys/stat.h.
348 (pex_init): Fix last argument to pex_init_common.
349 (pex_djgpp_exec_child): Remove leading underscore from _open,
350 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
351 which is undeclared, with `executable', which was unused. Remove
352 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
353 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
354
75919f94
DD
3552005-05-11 Paul Brook <paul@codesourcery.com>
356
357 * Makefile.in: Regenerate dependencies.
358
979c05d3
NC
3592005-05-10 Nick Clifton <nickc@redhat.com>
360
361 * Update the address and phone number of the FSF organization in
362 the GPL notices in the following files:
75919f94
DD
363 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
364 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
365 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
366 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
367 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
368 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
369 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
370 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
371 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
372 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
373 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
374 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
375 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
979c05d3 376
0093138c
DD
3772005-05-06 Kelley Cook <kcook@gcc.gnu.org>
378
379 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
380 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
381 * configure: Regenerate.
382
3832005-05-06 Kelley Cook <kcook@gcc.gnu.org>
384
385 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
386 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
387 * aclocal.m4: Don't include accross.m4.
388 * configure, config.in: Regenerate.
389
c631edf1
DD
3902005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391
392 * fopen_unlocked.c (unlock_std_streams): New.
f13c9bea 393
c631edf1
DD
394 * functions.texi: Regenerate.
395
7b6f6286
DD
3962005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397
398 * fopen_unlocked.c (unlock_stream): New.
399 Consolidate unlocking code into a helper function.
400
401 * functions.texi: Regenerate.
402
fa99459d
DD
4032005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
404
405 * asprintf.c: Include config.h.
406 * basename.c: Likewise.
407 * fdmatch.c: Likewise.
408 * hex.c: Likewise.
409 * lbasename.c: Likewise.
410 * spaces.c: Likewise.
411 * xatexit.c:Likewise.
f13c9bea 412 * configure.ac: Do check declarations for basename, ffs, asprintf
fa99459d
DD
413 and vasprintf for real.
414 * configure: Regenerate.
415
ab70e2a5
DD
4162005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
417
f13c9bea 418 * argv.c (dupargv): Allocate space of argv[argc], not
ab70e2a5
DD
419 sizeof(char *) of that amount. Cast result to char *.
420
ea7143ac
DD
4212005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
422
423 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f13c9bea 424 Replace not with negate.
ea7143ac 425
41c953f9
DD
4262005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
427
428 * configure.ac: Check declarations for basename, ffs, asprintf,
429 vasprintf.
430 * configure: Regenerate.
431 * config.in: Likewise.
432
ac119ae8
DD
4332005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
434
435 * Makefile.in (CFILES): Add fopen_unlocked.c.
436 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
437 Regenerate dependencies.
438
439 * configure.ac: Check for stdio_ext.h and __fsetlocking.
440
441 * fopen_unlocked.c: New file.
442
443 * functions.texi, configure, config.in: Regenerate.
444
6e933b47
DD
4452005-04-04 Ian Lance Taylor <ian@airs.com>
446
447 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
448 declaration before statement.
449
aa55ccb1
DD
4502005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
451
14a88c49
DD
452 * bcmp.c: Fix warnings and implement using memcmp.
453 * bcopy.c: Fix warnings.
454 * bzero.c: Fix warnings and implement using memset.
455
aa55ccb1
DD
456 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
457 -Wstrict-prototypes.
458 * configure, config.in: Regenerate.
459
460 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
461 warnings and reconcile interfaces with relevant standards.
462
b31a49d7
ILT
4632005-04-02 Ian Lance Taylor <ian@airs.com>
464
465 * cp-demangle.c: Update copyright.
466
0e867e79
DD
4672005-03-31 Joseph S. Myers <joseph@codesourcery.com>
468
469 * gettimeofday.c: Add "Supplemental" to @deftypefn.
470 * functions.texi: Regenerate.
471
b109e79a
ILT
4722005-03-28 Ian Lance Taylor <ian@airs.com>
473
474 * pex-common.c: New file.
475 * pex-one.c: New file.
476 * pexecute.c: New file.
477 * pex-common.h: Include <stdio.h>.
478 (struct pex_obj): Define.
479 (struct pex_funcs): Define.
480 (pex_init_common): Declare.
481 * pex-unix.c: Rewrite.
482 * pex-win32.c: Rewrite.
483 * pex-djgpp.c: Rewrite.
484 * pex-msdos.c: Rewrite.
485 * testsuite/text-pexecute.c: New file.
486 * pexecute.txh: Rewrite.
487 * configure.ac: Check for wait3 and wait4. Set CHECK to
488 really-check rather than check-cplus-dem.
489 * functions.texi: Rebuild.
490 * Makefile.in: Rebuild dependencies.
491 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
492 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
493 * testsuite/Makefile.in (really-check): New target.
494 (check-pexecute, test-pexecute): New targets.
495 * configure: Rebuild.
496
864e8148 4972005-03-28 Mark Kettenis <kettenis@gnu.org>
f13c9bea 498
864e8148
DD
499 * unlink-if-ordinary.c: Include <sys/types.h>.
500
e064c173
DD
5012005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
502
503 Convert libiberty to use ISO C prototype style 7/n.
504 * regex.c (PARAMS): Remove definition.
505 (PREFIX): Unconditionaly define using ISO C ## operator.
f13c9bea 506 (init_syntax_once, extract_number, extract_number_and_incr,
e064c173 507 print_fastmap, print_partial_compiled_pattern,
f13c9bea 508 print_compiled_pattern, print_double_string, printchar,
e064c173
DD
509 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
510 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f13c9bea
DD
511 at_begline_loc_p, at_endline_p, group_in_compile_stack,
512 insert_space, wcs_compile_range, byte_compile_range,
513 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
514 re_set_registers, re_search, re_search_2, re_search_3, re_match,
e064c173
DD
515 re_match_2, count_mbs_length, wcs_re_match_2_internal,
516 byte_re_match_2_internal, group_match_null_string_p,
517 alt_match_null_string_p, common_op_match_null_string_p,
f13c9bea 518 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
e064c173
DD
519 regexec, regerror, regfree): Use ISO C prototype style.
520 * partition.c: (elem_compare): Likewise.
521 * cp-demangle.c (print_usage): Likewise.
522
1e45deed
DD
5232005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
524
525 Convert libiberty to use ISO C prototype style 5/n.
526 * random.c (srandom, initstate, setstate, random): Use ISO C
f13c9bea 527 prototypes.
1e45deed
DD
528 * putenv.c (putenv): Likewise.
529 * physmem.c (physmem_available, physmem_total, main): Likewise.
530 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
531 * pex-unix.c (pexecute, pwait): Likewise.
532 * pex-msdos.c (pexecute, pwait): Likewise.
533 * pex-djgpp.c (pexecute, pwait): Likewise.
f13c9bea 534 * partition.c (partition_new, partition_delete, partition_union)
1e45deed 535 (elem_compare, partition_print): Likewise.
f13c9bea
DD
536 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
537 _obstack_allocated_p, _obstack_free, obstack_free,
1e45deed
DD
538 _obstack_memory_used, print_and_abort, obstack_next_free,
539 obstack_object_size, obstack_base): Likewise. Remove codes
540 predicated on !defined(__STDC__).
f13c9bea 541 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1e45deed
DD
542 objalloc_free_block): Use ISO C prototypes.
543 * mkstemps.c (mkstemps): Likewise.
544 * memset.c (memset): Likewise.
545 * mempcpy.c (mempcpy): Likewise.
546 * rename.c (rename): Likewise.
547 * rindex.c (rindex): Likewise.
548 * setenv.c (setenv, unsetenv): Likewise.
549 * sigsetmask.c (sigsetmask): Likewise.
550 * snprintf.c (snprintf): Likewise.
f13c9bea 551 * sort.c (sort_pointers, xmalloc): Likewise.
1e45deed 552 * spaces.c (spaces): Likewise.
f13c9bea
DD
553 * splay-tree.c (splay_tree_delete_helper,
554 splay_tree_splay_helper, splay_tree_splay,
1e45deed 555 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f13c9bea 556 splay_tree_new, splay_tree_xmalloc_allocate,
1e45deed 557 splay_tree_new_with_allocator, splay_tree_delete,
f13c9bea
DD
558 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
559 splay_tree_max, splay_tree_min, splay_tree_predecessor,
560 splay_tree_successor, splay_tree_foreach,
1e45deed
DD
561 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
562 * stpcpy.c (stpcpy): Likewise.
563 * stpncpy.c (stpncpy): Likewise.
564 * strcasecmp.c (strcasecmp): Likewise.
565 * strchr.c (strchr): Likewise.
566 * strdup.c (strdup): Likewise.
567
49b1fae4
DD
5682005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
569
570 Convert libiberty to use ISO C prototype style 6/n.
f13c9bea 571 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
49b1fae4
DD
572 strtoerrno, main): Use ISO C prototype style.
573 * strncasecmp.c (strncasecmp): Likewise.
574 * strncmp.c (strncmp): Likewise.
575 * strndup.c (strndup): Likewise.
576 * strrchr.c (strrchr): Likewise.
f13c9bea 577 * strsignal.c (init_signal_tables, signo_max, strsignal,
49b1fae4
DD
578 strsigno, strtosigno, psignal, main): Likewise.
579 * strstr.c (strstr): Likewise.
580 * strtod.c (strtod, atof): Likewise.
581 * strtol.c (strtol): Likewise.
582 * strtoul.c (strtoul): Likewise.
f13c9bea 583 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
49b1fae4
DD
584 ternary_recursivesearch): Likewise.
585 * tmpnam.c (tmpnam): Likewise.
586 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
587 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
588 * vfork.c (vfork): Likewise.
589 * vfprintf.c (vfprintf): Likewise.
590 * vprintf.c (vprintf): Likewise.
591 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
592 * vsprintf.c (vsprintf): Likewise.
593 * waitpid.c (waitpid): Likewise.
594 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
595 * xexit.c (xexit): Likewise.
f13c9bea 596 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
49b1fae4
DD
597 xcalloc, xrealloc): Likewise.
598 * xmemdup.c (xmemdup): Likewise.
599 * xstrdup.c (xstrdup): Likewise.
600 * xstrerror.c (xstrerror): Likewise.
601 * xstrndup.c (xstrndup): Likewise.
602
6032005-03-27 Andreas Jaeger <aj@suse.de>
604
605 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
606 flags.
607 * configure: Regenerated.
608
6092005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
610
611 * getopt1.c (getopt_long_only): Fix thinko.
612
6132005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
614
615 Convert libiberty to use ISO C prototype style 4/n.
616 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
617 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
618 htab_create_alloc, htab_set_functions_ex, htab_create,
619 htab_try_create, htab_delete, htab_empty,
620 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
621 htab_find, htab_find_slot_with_hash, htab_find_slot,
622 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
623 htab_traverse_noresize, htab_traverse, htab_collisions,
624 htab_hash_string, iterative_hash): Use ISO C prototype.
625 * hex.c (hex_init): Likewise.
626 * index.c (index): Likewise.
627 * insque.c (insque, remque): Likewise.
628 * lbasename.c (lbasename): Likewise.
629 * lrealpath.c (lrealpath): Likewise.
630 * make-relative-prefix.c (save_string, split_directories,
631 free_split_directories, make_relative_prefix): Likewise.
632 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
633 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
634 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
635 * memchr.c (memchr): Likewise.
636 * memcpy.c (memcpy): Likewise.
637 * memmove.c (memmove): Likewise.
638 * gettimeofday.c (gettimeofday): Likewise.
639 * getruntime.c (get_run_time): Likewise.
640 * getpwd.c (getpwd, getpwd): Likewise.
641 * getpagesize.c (getpagesize): Likewise.
642 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
643 * getopt.c (my_index, exchange, _getopt_initialize,
644 _getopt_internal, getopt, main): Likewise.
645 * getcwd.c (getcwd): Likewise.
646 * fnmatch.c (fnmatch): Likewise.
647 * floatformat.c (floatformat_always_valid,
648 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
649 put_field, floatformat_from_double, floatformat_is_valid,
650 ieee_test, main): Likewise.
651 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
652 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
653 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
654 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
655 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
656 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
657 fibheap_link, fibheap_cut, fibheap_cascading_cut,
658 fibnode_insert_after, fibnode_remove): Likewise.
659 * ffs.c (ffs): Likewise.
660 * fdmatch.c (fdmatch): Likewise.
661 * dyn-string.c (dyn_string_init, dyn_string_new,
662 dyn_string_delete, dyn_string_release, dyn_string_resize,
663 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
664 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
665 dyn_string_insert_cstr, dyn_string_insert_char,
666 dyn_string_append, dyn_string_append_cstr,
667 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
668 Likewise.
669
9334f9c6
DD
6702005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
671
672 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
673 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
674 consume_count_with_underscores, code_for_qualifier,
675 qualifier_string, demangle_qualifier, cplus_demangle_opname,
676 cplus_mangle_opname, cplus_demangle_set_style,
677 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
9334f9c6 678 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
679 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
680 delete_work_stuff, mop_up, demangle_signature,
681 demangle_method_args, demangle_template_template_parm,
682 demangle_expression, demangle_integral_value,
683 demangle_real_value, demangle_template_value_parm,
684 demangle_template, arm_pt, demangle_arm_hp_template,
685 demangle_class_name, demangle_class, iterate_demangle_function,
686 demangle_prefix, gnu_special, recursively_demangle, arm_special,
687 demangle_qualified, get_count, do_type, demangle_fund_type,
688 do_hpacc_template_const_value, do_hpacc_template_literal,
689 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
690 register_Btype, remember_Btype, forget_B_and_K_types,
691 forget_types, demangle_args, demangle_nested_args,
692 demangle_function_name, string_need, string_delete, string_init,
693 string_clear, string_empty, string_append, string_appends,
9334f9c6
DD
694 string_appendn, string_prepend, string_prepends, string_prependn,
695 string_append_template_idx): Use ISO C prootype style.
696 * cp-demint.c (cplus_demangle_fill_component,
49b1fae4 697 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
698 cplus_demangle_v3_components): Likewise.
699
7002005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
701
702 Convert libiberty to use ISO C prototype style 2/n.
703 * cp-demangle.h: Remove uses of PARAMS.
704 * cp-demangle.c: Likewise.
49b1fae4
DD
705 (d_dump, cplus_demangle_fill_name,
706 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
707 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
708 d_make_builtin_type, d_make_operator, d_make_extended_operator,
709 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
710 cplus_demangle_mangled_name, has_return_type,
711 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
712 d_prefix, d_unqualified_name, d_source_name, d_number,
713 d_identifier, d_operator_name, d_special_name, d_call_offset,
714 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
715 d_function_type, d_bare_function_type, d_class_enum_type,
716 d_array_type, d_pointer_to_member_type, d_template_param,
717 d_template_args, d_template_arg, d_expression, d_expr_primary,
718 d_local_name, d_discriminator, d_add_substitution,
719 d_substitution, d_print_resize, d_print_append_char,
720 d_print_append_buffer, d_print_error, cplus_demangle_print,
721 d_print_comp, d_print_java_identifier, d_print_mod_list,
722 d_print_mod, d_print_function_type, d_print_array_type,
723 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
724 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9334f9c6 725 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 726 print_usage, main):
9334f9c6
DD
727
7282005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
729
730 Convert libiberty to ISO C prototype style 1/n.
731 * _doprnt.c: Remove conditional #include <varargs.h> on
732 ANSI_PROTOTYPES as the latter is always assumed.
733 (_doprnt, checkit, main): Use ISO C prototype.
734 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
735 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
49b1fae4 736 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
737 * atexit.c (atexit): Likewise
738 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 739 (asprintf): Use ISO C prototype.
9334f9c6
DD
740 * basename.c (basename): Likewise
741 * bcmp.c (bcmp): Likewise.
742 * bcopy.c (bcopy): Likewise.
743 * bzero.c (bzero): Likewise.
744 * bsearch.c (bsearch): Likewise. Improve const-correctness.
745 * choose-temp.c (choose_temp_base): Likewise.
746 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
747 (calloc): Use ISO C prototype.
748 * clock.c (clock): Likewise.
749 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
49b1fae4 750 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
751 concat_copy2, concat, reconcat, main): Use ISO C prototype.
752 * copysign.c (copysign): Likewise.
753
0fad4bdb
DD
7542005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
755
756 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
757 (REQUIRED_OFILES): Add xstrndup.o.
758 (CONFIGURED_OFILES): Add strndup.o.
759 Regenerate dependencies.
760
761 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
762
763 * strndup.c, xstrndup.c: New.
764
765 * config.in, configure, functions.texi: Regenerate.
766
51e32d64
DD
7672005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
768
769 * xmemdup.c, xstrdup.c: Expose the tail call.
770
8ec32723
DD
7712005-03-09 Mark Mitchell <mark@codesourcery.com>
772
773 * configure.ac (funcs): Add gettimeofday.
774 * configure: Regenerated.
775 * gettimeofday.c: New file.
776 * Makefile.in (CFILES): Add gettimeofday.
777 (CONFIGURED_OFILES): Add gettimeofday.o.
778 (./gettimeofday.o): New rule.
779
27ff8836
ILT
7802005-03-09 Ian Lance Taylor <ian@airs.com>
781
782 * pex-os2.c: Remove.
783 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
784 * Makefile.in (CFILES): Remove pex-os2.c.
785 (CONFIGURED_OFILES): Remove pex-os2.o.
786 (pex-os2.o): Remove target.
787 * configure: Rebuild.
788
48e39b59
ILT
7892005-03-07 Ian Lance Taylor <ian@airs.com>
790
791 * mpw-config.in: Remove.
792 * mpw-make.sed: Remove.
793 * mpw.c: Remove.
794 * Makefile.in (CFILES): Remove pex-mpw.c.
795 (CONFIGURED_OFILES): Remove pex-mpw.o.
796 (mpw.o, pex-mpw.o): Remove targets.
797 * maint-tool (undoc): Remove reference to mpw.c.
798
65dce80e
DD
7992005-03-06 DJ Delorie <dj@redhat.com>
800
801 * configure.ac (target_header_dir): vfork is a stub under djgpp.
802 * configure: Regenerated.
803
190eb137
DD
8042005-03-01 Jan Beulich <jbeulich@novell.com>
805
806 * Makefile.in (CFILES): Add unlink-if-ordinary.c
807 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
808 Add dependencies and rule for unlink-if-ordinary.o.
809 * unlink-if-ordinary.c: New.
810
bac7199c
DD
8112005-03-01 Ben Elliston <bje@au.ibm.com>
812
813 * hashtab.c (htab_find_slot_with_hash): Make function
814 documentation clearer.
815
aca9a742
JM
8162005-02-13 Jason Merrill <jason@redhat.com>
817
818 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
819 arguments.
820
b5c3b3de
DD
8212005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
822
823 * hex.c (hex_value): Group 'unsigned int' together to get correct
824 markup.
825 * functions.texi: Regenerated.
49b1fae4 826
46a10049
DD
8272004-12-27 H.J. Lu <hongjiu.lu@intel.com>
828
829 * Makefile.in: Undo to 2004-12-17.
830 * aclocal.m4: Likewise.
831 * config.table: Likewise.
832 * configure.ac: Likewise.
833 * maint-tool: Likewise.
834 * configure: Likewise.
835
fbfdf750
DD
8362004-12-19 H.J. Lu <hongjiu.lu@intel.com>
837
838 PR bootstrap/19072
839 * Makefile.in (enable_shared): New substitute.
840 (LTTARGETLIB): New.
841 (PREFIXTARGETLIB): New.
842 (LTTESTLIB): New.
843 (PREFIXTESTLIB): New.
844 (CCLD): New.
845 (LINK): New.
846 ($(TARGETLIB)): Use $(LINK) to create libraries and create
847 targets by hand.
848 ($(TESTLIB)): Likewise.
849 (mostlyclean): Don't remove .libs. Remove the libtool object
850 directory.
851
852 * config.table (enable_shared): Removed.
853
854 * configure.ac (enable_static): Set to yes.
855 (AC_PROG_LIBTOOL): Removed.
856 (AM_DISABLE_SHARED): Uncommented.
857 (AM_PROG_LIBTOOL): Likewise.
858 (LIBOBJS): Add `./' to avoid VPATH.
859 (LTLIBOBJS): Likewise.
860 (enable_shared): Substitute.
861 * configure: Regenerated.
862
96e00b33
L
8632004-12-18 H.J. Lu <hongjiu.lu@intel.com>
864
865 * Makefile.in (top_builddir): Set to `.'.
866 (OUTPUT_OPTION): Removed.
867 (LIBTOOL): New.
868 (LTLIBOBJS): New.
869 (EXTRA_LTOFILES): New.
870 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
871 (all): Remove stamp-picdir.
872 (LTCOMPILE): New.
873 (.c.lo): New rule.
874 (REQUIRED_LTOFILES): New.
875 (CONFIGURED_LTOFILES): New.
876 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
877 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
878 (stamp-picdir): Completely removed.
879 (maint-missing): Pass $(REQUIRED_LTOFILES)
880 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
881 $(CONFIGURED_OFILES)
882 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
883 $(CONFIGURED_LTOFILES).
884 (mostlyclean): Also remove *.lo .libs.
885 Run "make maint-deps".
886
887 * aclocal.m4: Include ../libtool.m4.
888
889 * config.table: Don't check --enable-shared.
890
891 * configure.ac (AC_PROG_LIBTOOL): Add.
892 (AC_PROG_CC_C_O): Removed.
893 (OUTPUT_OPTION): Removed.
894 (NO_MINUS_C_MINUS_O): Removed.
895 (ltpexecute): New substitute.
896 (LIBOBJS): Cleanup.
897 * configure: Regenerated.
898
899 * maint-tool: Updated for .lo/libtool.
900
40a59a4c
DD
9012004-12-11 Ben Elliston <bje@au.ibm.com>
902
903 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
904 * configure: Regenerate.
905 * config.in: Likewise.
906
9923bc33
DD
9072004-12-07 DJ Delorie <dj@redhat.com>
908
909 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
910 that recursion (and thus large stack space) is not needed.
911
70615d15
DD
9122004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
913
914 * pex-unix.c: Fix the spelling of longjmp.
915
eb129e35
DD
9162004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
917
918 PR other/18623
919 * cp-demangle.c (d_call_offset): Remove useless local variables
920 offset and virtual_offset.
921 * cplus-dem.c (ada_demangle): Remove useless local variable
922 at_start_name.
923 (demangle_template): Remove useless local variable start.
924
3e0f1404
DD
9252004-11-19 Roger Sayle <roger@eyesopen.com>
926
927 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
928 "ansidecl.h" to avoid redeclaration errors with native compilers.
929 * regex.c: Protect config.h from multiple inclusion.
930
6cfb3176
DD
9312004-11-12 Mike Stump <mrs@apple.com>
932
933 * Makefile.in (libiberty.html): Fix html generation.
934
f9b4e353
DD
9352004-09-08 Adam Nemet <anemet@lnxw.com>
936
937 * vasprintf.c: Accept __va_copy in addition to va_copy.
938
49b1fae4 9392004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
940
941 * configure: Regenerate.
942
49b1fae4 9432004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
944
945 * configure.ac: Do not enable multilibs for build-side libiberty.
946
49b1fae4 9472004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
948
949 * lrealpath.c (lrealpath): Add _WIN32 support.
950
a21da8bf
DD
9512004-06-28 Zack Weinberg <zack@codesourcery.com>
952
953 * cp-demangle.h: Declare cplus_demangle_operators,
954 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
955 cplus_demangle_type as static if IN_GLIBCPP_V3.
956
9572004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
958
959 PR other/16240
960 * cp-demangle.c (d_expr_primary): Check for a failure return from
961 cplus_demangle_type.
962 * testsuite/demangle-expected: Add test case.
963
9f7d3e7d
DD
9642004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
965
966 * pex-win32.c (fix_argv): Expand comment.
967
0cb2db3a
DD
9682004-05-25 Daniel Jacobowitz <drow@false.org>
969
970 * Makefile.in: Add .NOEXPORT.
971
25319993
DD
9722004-04-29 Douglas B Rupp <rupp@gnat.com>
973
974 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
975 copyright.
976
7e9f5c71
DD
9772004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
978
979 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
980 * configure: Regenerate.
981
bb6a587d
DD
9822004-04-22 Richard Henderson <rth@redhat.com>
983
984 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
985 (CHAR_BIT): Provide default.
986 (struct prime_ent, prime_tab): New.
987 (higher_prime_index): Rename from higher_prime_number, return index.
988 (htab_mod_1): New.
989 (htab_mod, htab_mod_m2): Use it.
990 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
991 (htab_expand): Likewise.
992 * configure.ac: Check for stdint.h.
993 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
994 * config.in, configure: Rebuild.
995
53239e41
DD
9962004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
997
998 * strerror.c: Include config.h, and redefine sys_nerr and
999 sys_errlist, before including ansidecl.h and libiberty.h.
1000
d6ea4e80
DD
10012004-04-13 Jeff Law <law@redhat.com>
1002
1003 * hashtab.c (htab_remove_elt_with_hash): New function.
1004 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1005
fe046a17
DD
10062004-03-31 Richard Henderson <rth@redhat.com>
1007
1008 * hashtab.c (htab_size): Move to top of file; mark inline.
1009 (htab_elements): Likewise.
1010 (htab_mod, htab_mod_m2): New.
1011 (htab_delete): Refactor htab->size and htab->entries.
1012 (htab_empty): Likewise.
1013 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1014 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1015 (htab_clear_slot): Use htab_size, htab_elements.
1016 (htab_traverse_noresize, htab_traverse): Likewise.
1017
e0c148a7
DD
10182004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1019
12a7367e
DD
1020 * pex-unix.c (pexecute): Use vfork instead of fork, with
1021 appropriate changes to make this safe.
1022 * pex-common.h (STDERR_FILE_NO): Define.
1023
e0c148a7
DD
1024 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1025 an 80 column screen. Run maint-deps.
1026
85f969cd
DD
10272004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1028
1029 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1030 * acconfig.h: Delete redundant file.
1031 * config.in: Regenerate.
1032 * configure: Regenerate.
1033
58670637
DD
10342004-03-09 Hans-Peter Nilsson <hp@axis.com>
1035
1036 * configure: Regenerate for config/accross.m4 correction.
1037
758d77be
DD
10382004-03-07 Andreas Jaeger <aj@suse.de>
1039
1040 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1041 prototypes.
1042 (main): Initialize style.
1043
74aee4eb
DD
10442004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1045
2d733211
DD
1046 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1047 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1048 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1049 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1050 short types to D_PRINT_DEFAULT. Change other integer types to use
1051 new D_PRINT_* values where appropriate. Change float types to
1052 D_PRINT_FLOAT.
1053 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1054 values.
1055 * testsuite/demangle-expected: Adjust two test cases.
1056
1057 * cp-demangle.c (d_print_function_type): Print a space before the
1058 parenthesis around the function type in more cases.
1059 * testsuite/demangle-expected: Adjust one test case.
1060
099f84cf
DD
1061 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1062 parentheses around a cast.
1063 * testsuite/demangle-expected: Adjust two test cases to match new
1064 output.
1065
74aee4eb
DD
1066 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1067
1068 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1069 push more than one of the same CV-qualifier on the top of the
1070 stack.
1071 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1072 move the CV-qualifiers to apply to the element type instead.
1073 (d_print_array_type): When checking the modifiers, keep looking
1074 past ones which have been printed already.
1075 * testsuite/demangle-expected: Add three test cases.
1076
10772004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1078
1079 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1080 empty string correctly.
1081
1082 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1083 not NULL. It is an error if the mangled name is the same as a
1084 built-in type name.
1085 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1086 than cplus_demangle_v3.
1087
1088 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1089 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1090
f9375305
DD
10912004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1092
1093 * regex.c: Include <ansidecl.h>.
1094 (regcomp): Cast i to int.
1095 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1096
cbf0ee79
DD
10972004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1098
1099 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1100 * configure: Regenerate.
1101
37254c9a
DD
11022004-01-22 DJ Delorie <dj@redhat.com>
1103
1104 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1105 with explicit build rules.
1106 (VPATH): Remove.
1107 (.c.o): Poison.
1108 * configure.ac (pexecute, LIBOBJS): Add ./ .
1109 * maint-tool: Build dependencies with explicit rules.
1110
211333f6
DD
11112004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1112
1113 * strdup.c (strdup): Constify the argument.
1114
3795d586
DD
11152004-01-14 Loren J. Rittle <ljrittle@acm.org>
1116
1117 * Makefile.in (distclean): Remove config.cache.
1118
2d6520ee
DJ
11192004-01-13 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1122 takes two parameters.
1123 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1124
59727473
DD
11252004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1126
1127 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1128 defined, rename some functions which are to become static via
1129 #define.
1130 (CP_STATIC_IF_GLIBCPP_V3): Define.
1131 (struct d_operator_info): Move definition to cp-demangle.h, and
1132 rename to demangle_operator_info. Change all uses.
1133 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1134 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1135 and rename to demangle_builtin_type_info. Change all uses.
1136 (enum d_comp_type): Move definition to include/demangle.h, and
1137 rename to demangle_component_type, and change all enums to start
1138 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1139 (struct d_comp): Move definition to include/demangle.h, and rename
1140 to demangle_component. Change all uses.
1141 (struct d_info): Move definition to cp-demangle.h.
1142 (cplus_demangle_fill_name): New function.
1143 (cplus_demangle_fill_extended_operator): New function.
1144 (cplus_demangle_fill_ctor): New function.
1145 (cplus_demangle_fill_dtor): New function.
1146 (d_make_empty): Remove type parameter. Change all callers.
1147 (d_make_name): Use cplus_demangle_fill_name.
1148 (d_make_extended_operator): Use
1149 cplus_demangle_fill_extended_operator.
1150 (d_make_ctor): Use cplus_demangle_fill_ctor.
1151 (d_make_dtor): Use cplus_demangle_fill_dtor.
1152 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1153 non-static by default. Change all callers.
1154 (cplus_demangle_operators): Rename from d_operators. Change all
1155 uses. Make non-static by default. Add sentinel at end of array.
1156 (d_operator_name): Adjust initialization of high for new sentinel
1157 in cplus_demangle_operators.
1158 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1159 Change all uses. Make non-static by default. Change initializer
1160 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1161 (cplus_demangle_type): Rename from d_type. Make non-static by
1162 default. Change all callers.
1163 (cplus_demangle_init_info): Rename from d_init_info. Make
1164 non-static by default. Change all callers.
1165 * cp-demangle.h: New file.
1166 * cp-demint.c: New file.
1167 * Makefile.in: Rebuild dependencies.
1168 (CFILES): Add cp-demint.c.
1169 (REQUIRED_OFILES): Add cp-demint.o.
1170
1a79b024
DD
11712004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1172
1173 * configure.in: Rename file to ...
1174 * configure.ac: ... this.
1175 * Makefile.in: Update a comment for above change.
1176 * README: Likewise.
1177 * config.in: Regenerate.
1178
820542c9
DD
11792004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1180
1181 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1182 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1183 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1184 demangling template parameters.
1185 * testsuite/test-demangle.c (fail): New static function.
1186 (main): Support new options in input file: --no-params,
1187 --is-v3-ctor, and --is-v3-dtor.
1188 * testsuite/demangle-expected: Add --no-params to most tests, and
1189 add the correct result when parameters are not demangled. Add
1190 some simple tests for V3 constructor/destructor recognition.
1191
2f9c4058
DD
11922003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1193
1194 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1195
4fd47f10
DJ
11962003-12-22 Daniel Jacobowitz <drow@mvista.com>
1197
1198 PR debug/13272
1199 * Makefile.in (lbasename.o): Depend on filenames.h.
1200 * lbasename.c: Include "filenames.h" instead of defining
1201 its macros locally.
1202
b6fb00c0
DD
12032003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1204
1205 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1206 dynamic arrays.
1207 (struct d_operator_info): Add len field.
1208 (struct d_builtin_type_info): Add len and java_len fields.
1209 (struct d_standard_sub_info): Add simple_len, full_len, and
1210 set_last_name_len fields.
1211 (struct d_comp): Add len field to s_string.
1212 (struct d_info): Add send, did_subs, and expansion fields.
1213 (d_append_string_constant): Define.
1214 (d_append_string): Remove. Change all users to use
1215 d_append_string_constant or d_append_buffer instead.
1216 (d_make_sub): Add len parameter. Change all callers.
1217 (d_name): Increase expansion when substituting std::.
1218 (d_unqualified_name): Increase expansion for an operator.
1219 (d_number): Don't use multiplication for negative numbers.
1220 (d_identifier): Make sure there are enough characters in the
1221 string for the specified length. Adjust expansion for an
1222 anonymous namespace.
1223 (d_operators): Initialize len field.
1224 (d_special_name, d_ctor_dtor_name): Increase expansion.
1225 (d_builtin_types): Initialize len and java_len fields.
1226 (d_type): Increase expansion for a builtin type.
1227 (d_cv_qualifiers): Increase expansion for each qualifier.
1228 (d_bare_function_type): Decrease expansion when removing single
1229 void parameter.
1230 (d_template_param): Increment did_subs.
1231 (d_expression): Increase expansion for an operator.
1232 (d_expr_primary): Decrease expansion for a type we will print
1233 specially.
1234 (standard_subs): Initialize new fields.
1235 (d_substitution): Increment did_subs when doing a normal
1236 substitution. Increase expansion for a special substitution.
1237 (d_print): Add estimate parameter. Change all callers.
1238 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1239 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1240 (d_print_java_identifier): Rename from d_print_identifier. Handle
1241 only Java case. Change caller.
1242 (d_init_info): Change return type to void. Change all callers.
1243 Initialize send, did_subs, and expansion fields. Do not
1244 initialize comps and subs fields.
1245 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1246 arrays on stack. Make an estimate of the length of the demangled
1247 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1248 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1249 subs arrays on stack.
1250
2730f651
DD
12512003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1252
1253 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1254 after the identifier.
1255 * testsuite/demangle-expected: Add test case.
1256
d4edd112
DD
12572003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1258
1259 Fix for PR c++/13447:
1260 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1261 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1262 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1263 D_COMP_QUAL_NAME.
1264 (is_ctor_or_dtor): Likewise.
1265 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1266 D_COMP_QUAL_NAME.
1267 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1268 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1269 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1270 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1271 * testsuite/demangle-expected: Add two test cases.
1272
1273 * cp-demangle.c (d_print_function_type): Clear the global modifier
1274 list when printing the modifiers, not just when printing the
1275 function parameters.
1276 * testsuite/demangle-expected: Add two test cases.
1277
d35d0cd4
DD
12782003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1279
1280 * cp-demangle.c (d_print_function_type): Print the function
1281 parameters with no modifiers.
1282 * testsuite/demangle-expected: Add test case.
1283
1284 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1285 expect that we've read the entire string.
1286 (is_ctor_or_dtor): Don't expect that we've read the entire
1287 string--reverse patch of 2003-11-29.
1288
09e9708c
DD
12892003-12-15 Brendan Kehoe <brendan@zen.org>
1290
1291 * libiberty/Makefile.in (floatformat.o): Add dependency on
1292 config.h to accompany change of 2003-12-03.
1293
97ceaf5b
DD
12942003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1295
1296 Fix handling of constructor/destructor of standard substitution:
1297 * cp-demangle.c (struct d_standard_sub_info): Define.
1298 (d_substitution): Add prefix argument. Change all callers.
1299 Rework handling of standard substitutions to print full name when
1300 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1301 * testsuite/demangle-expected: Add test case.
1302
1303 Fix handling of negative literal constants:
1304 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1305 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1306 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1307 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1308 * testsuite/demangle-expected: Add test case.
1309
858b45cf
DD
13102003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1311
1312 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1313 (d_last_char): Define new macro.
1314 (d_make_name): Reject an empty name.
1315 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1316 (d_substitution, d_print_identifier): Likewise.
1317 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1318 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1319 (d_print_mod) Use new d_last_char macro.
1320 (d_print_cast): Use new d_last_char macro.
1321 (is_ctor_or_dtor): Don't leak memory.
1322
1323 Fix handling of member function modifiers:
1324 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1325 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1326 (d_dump): Dump new d_comp_type values.
1327 (d_make_comp): Accept new d_comp_type values.
1328 (has_return_type): Only accept _THIS variants of qualifiers.
1329 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1330 qualifiers.
1331 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1332 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1333 qualifiers and printing them at the end, add _THIS qualifiers to
1334 the modifier list.
1335 (d_print_comp) [D_COMP_*_THIS]: New cases.
1336 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1337 qualifiers.
1338 (d_print_mod_list): Add suffix parameter. Change all callers.
1339 Keep walking the list even if the current modifier has been
1340 printed.
1341 (d_print_mod): Handle new _THIS qualifiers.
1342 (d_print_function_type): Handle new _THIS qualifiers when deciding
1343 whether to print a parenthesis. Put a space before the
1344 parenthesis in some cases. Call d_print_mod_list again at the
1345 end, passing suffix as 1.
1346 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1347 * testsuite/demangle-expected: Add test case.
1348
1349 Fix for PR gcc/13304:
1350 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1351 before the '<' is itself a '<', insert a space.
1352 (d_print_cast): Likewise.
1353 * testsuite/demangle-expected: Add test case.
1354
1355 Fix for PR gcc/13244:
1356 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1357 which uses the '>' operator in an extra layer of parens.
1358 * testsuite/demangle-expected: Add test case.
1359
b52927b7
DD
13602003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1361
1362 * floatformat.c: Include "config.h" and <string.h> if available.
1363 (INFINITY, NAN): Define if not defined by <math.h>.
1364 (floatformat_to_double): Handle NaN, infinity, and denormalized
1365 numbers.
1366 (floatformat_from_double): Likewise.
1367 (ieee_test): In debugging code, use little endian rather than big
1368 endian. Correct tests to handle NaN and to check correct sign of
1369 zero. Omit m68k extended test.
1370 (main): Add more debugging cases.
1371
24afc00d
DD
13722003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1373
1374 * cp-demangle.c (d_demangle): Only return success if we consumed
1375 the entire demangled string.
1376 (is_ctor_or_dtor): Likewise.
1377
1378 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1379 to restore expected result of EDG test case to original expected
1380 result.
1381
331c3da2
DD
13822003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1383
1384 * cp-demangle.c (struct d_print_mod): Add templates field.
1385 (d_make_builtin_type): Check for NULL type.
1386 (d_make_extended_operator): Check for NULL name.
1387 (d_make_ctor, d_make_dtor): Likewise.
1388 (d_mangled_name): Add top_level parameter. Change all callers.
1389 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1390 CV-qualifiers.
1391 (d_type): Check some return values we rely on.
1392 (d_bare_function_type, d_array_type): Likewise.
1393 (d_pointer_to_member_type, d_template_args): Likewise.
1394 (d_add_substitution): Fail if argument is NULL.
1395 (d_print_resize): Check whether buf is NULL.
1396 (d_print_comp): Save current templates list with each modifier.
1397 Don't pass the modifier list down when printing a template.
1398 (d_print_cast): Don't pass the modifier list down when printing a
1399 template.
1400 (d_print_mod_list): Temporarily set templates list while printing
1401 a modifier.
1402 (d_print_mod): Check that buf is not NULL before using it.
1403 (d_print_function_type): Print parens if there is no modifier.
1404 (d_init_info): Permit as many substitutions as there are
1405 characters in the mangled name.
1406 * testsuite/demangle-expected: Add two new test cases.
1407
51948b34
DD
14082003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1409
1410 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1411 d_demangle.
1412
6d95373e
DD
14132003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1414
1415 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1416 callers.
1417 (print_usage): Display new -p option.
1418 (long_options): Add --no-params.
1419 (main): Accept and handle -p.
1420
54a962d9
DD
14212003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1422
1423 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1424 whether we have a template.
1425 * testsuite/demangle-expected: Add four new tests.
1426
8fe0d347
DD
14272003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1428
1429 * testsuite/demangle-expected: Minor changes to match output of
1430 new demangler: adjust whitespace in four tests, and change order
1431 of qualifiers in one test.
1432
1433 * cp-demangle.c: Complete rewrite.
1434
dd9d4b48
DD
14352003-11-19 Mark Mitchell <mark@codesourcery.com>
1436
1437 * cp-demangle.c (demangle_type): Correct thinko in substitution
1438 processing.
1439
0976f6a7
DD
14402003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1441
1442 * cp-demangle.c (demangle_operator_name): Remove space before
1443 "sizeof".
1444 (demangle_type_ptr): Put qualifiers in the right place. Handle
1445 qualifiers in pointer to member specially.
1446 (demangle_type): Handle qualifiers for pointer or reference
1447 specially. Handle function type.
1448 (demangle_local_name): Save and restore caret around demangling of
1449 initial encoding.
1450
1451 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1452 cplus_demangle.
1453
1454 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1455
e7e6980b
DD
14562003-10-31 Andreas Jaeger <aj@suse.de>
1457
1458 * floatformat.c (floatformat_always_valid): Add unused attribute.
1459
97ceaf5b
DD
14602003-10-30 Josef Zlomek <zlomekj@suse.cz>
1461
1462 Jan Hubicka <jh@suse.cz>
1463 * vasprintf.c (int_vasprintf): Pass va_list by value.
1464 Use va_copy for copying va_list.
1465 (vasprintf): Pass va_list by value.
1466
686e72d7
DD
14672003-10-30 Josef Zlomek <zlomekj@suse.cz>
1468
1469 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1470 instead of increasing n_elements when inserting to deleted slot.
1471
eec65ede
JB
14722003-10-20 J. Brobecker <brobecker@gnat.com>
1473
1474 * cplus-dem.c (demangle_template): Register a new Btype only
1475 when needed.
1476 * testsuite/demangle-expected: Add a new test.
1477
cd275bff
L
14782003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 * testsuite/demangle-expected: Update the expected output of
1481 _GLOBAL__I__Z2fnv.
1482
e3b1168e
DJ
14832003-10-02 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * strerror.c: Revert last change. Declare static sys_nerr
1486 and sys_errlist using different names.
1487
efb150d5
DJ
14882003-10-01 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * strerror.c: Don't provide or reference sys_errlist if
1491 strerror is available.
1492
b7ca9213
L
14932003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1494
1495 * configure.in: Check if $MAKEINFO is missing.
1496 * configure: Regenerated.
1497
8ddbb593
DJ
14982003-09-24 Daniel Jacobowitz <drow@mvista.com>
1499
1500 * configure.in: Use AC_PROG_CPP_WERROR.
1501 * configure: Regenerated.
1502
5324d185
AC
15032003-09-22 Andrew Cagney <cagney@redhat.com>
1504
1505 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1506 (floatformat_always_valid): New function.
1507 (floatformat_i387_ext): Initialize new "is_valid" field to
1508 "floatformat_i387_ext_is_valid".
1509 (floatformat_ieee_single_little): Initialize "is_valid" field to
1510 floatformat_always_valid.
1511 (floatformat_ieee_double_big): Ditto.
1512 (floatformat_ieee_double_little): Ditto.
1513 (floatformat_ieee_double_little): Ditto.
1514 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1515 (floatformat_i960_ext): Ditto.
1516 (floatformat_m88110_ext): Ditto.
1517 (floatformat_m88110_harris_ext): Ditto.
1518 (floatformat_arm_ext_big): Ditto.
1519 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1520 (floatformat_ia64_spill_big): Ditto.
1521 (floatformat_ia64_spill_little): Ditto.
1522 (floatformat_ia64_quad_big): Ditto.
1523 (floatformat_ia64_quad_little): Ditto.
1524 (floatformat_ia64_quad_little): Ditto.
1525 (floatformat_is_valid): Call "is_valid".
1526
34f4a113
AC
15272003-09-15 Andrew Cagney <cagney@redhat.com>
1528
1529 * floatformat.c (get_field): Make "data" constant.
1530 (floatformat_is_valid, floatformat_to_double): Make "from"
1531 constant, fix casts.
1532 (floatformat_from_double): Make "from" constant.
1533
3f2aacaf
DJ
15342003-09-15 Daniel Jacobowitz <drow@mvista.com>
1535
1536 * floatformat.c (floatformat_is_valid): New function.
1537 (get_field, put_field): Correct comments.
1538
aae66b9f
DD
15392003-09-06 Josef Zlomek <zlomekj@suse.cz>
1540
1541 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1542 FIBHEAPKEY_T.
1543
60b04ee8
DD
15442003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1545
1546 PR bootstrap/12100
1547 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1548 * configure: Rebuilt.
1549
2299a76d
DJ
15502003-08-27 Daniel Jacobowitz <drow@mvista.com>
1551
1552 * aclocal.m4: Include acx.m4 and no-executables.m4.
1553 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1554 (LIB_AC_PROG_CC): Remove.
1555 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1556 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1557 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1558 performing link tests.
1559 * configure: Regenerated.
1560
9ad1aa29
DD
15612003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1562
a21da8bf 1563 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 1564
dbb9d0f3
DD
15652003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1566
1567 * pex-win32.c (pexecute): Mark parameters this_pname and
1568 temp_base as unused. Remove unused variables retries,
1569 sleep_interval. Initialize org_stdin, org_stdout.
1570 (pwait): Mark parameter flags as unused.
1571
15722003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
1573
1574 * pex-win32.c (fix_argv): Ensure that the executable pathname
1575 uses Win32 backslashes.
1576 (pexecute): Cast away constness when assigning *errmsg_arg.
1577
78c5b0a5
L
15782003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1579
1580 * testsuite/demangle-expected: Add more GNU V3 testcases.
1581
70ecf948
DD
15822003-06-22 Zack Weinberg <zack@codesourcery.com>
1583
1584 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1585 not HC_ASCII and HC_EBCDIC.
1586 Add documentation in form expected by gather-docs.
1587 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1588 * Makefile.in, functions.texi: Regenerate.
1589
cbc0188b
DD
15902003-06-21 Zack Weinberg <zack@codesourcery.com>
1591
1592 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1593 for charset determination.
1594
5f73c378
DD
15952003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1596
1597 * configure.in: Add check for malloc.h needed by
1598 m68k for function free().
1599 * configure: Regenerated.
1600 * config.in: Add HAVE_MALLOC_H.
1601 * hashtab.c: include malloc.h were available for
1602 free().
1603
e69f6c8c 16042003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 1605
e69f6c8c
DD
1606 PR bootstrap/10974
1607 * physmem.c: Update comment.
1608 * configure.in: Modify test for _system_configuration for older
1609 AIX systems.
1610
1611 * config.in, configure: Regenerated.
cbc0188b 1612
54c60684
DD
16132003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1614
1615 PR other/10810
1616 * test-demangle.c (getline): Fix fence-post error.
1617
5a4e47bd
NC
16182003-06-03 Nick Clifton <nickc@redhat.com>
1619
1620 * asprintf.c: Change comment to note that -1 is returned upon
1621 error.
1622 * vasprintf.c: Likewise.
1623 (vasprintf): Return -1 upon error.
1624 * functions.texi: Document changes to asprintf and vasprintf.
1625
916f5d13
DD
16262003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1627
1628 * config.table: Accept i[345867]86 variant.
1629
e4f79046
JB
16302003-05-15 Jim Blandy <jimb@redhat.com>
1631
1632 * hex.c (_hex_value): Make this unsigned.
1633 (hex_value): Update documentation for new return type. hex_value
1634 now expands to an unsigned int expression, to avoid unexpected
1635 sign extension when we store it in a bfd_vma, which is larger than
1636 int on some platforms.
1637 * functions.texi: Regenerated.
1638
0f3538e7
DD
16392003-05-07 Josef Zlomek <zlomekj@suse.cz>
1640
1641 * splay-tree.c (splay_tree_predecessor): Fix comment.
1642 (splay_tree_successor): Fix comment.
1643
7108c5dc
JM
16442003-05-07 Jason Merrill <jason@redhat.com>
1645
eafaf5eb 1646 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
1647 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1648 * aclocal.m4: Include accross.m4.
1649 * configure, config.in: Regenerate.
1650
0b555173
DD
16512003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1652
1653 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1654 * configure: Regenerate.
1655
8730135a
DD
16562003-05-03 Carlo Wood <carlo@alinoe.com>
1657
1658 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1659
341eccbc
DD
16602003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1661
1662 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1663 (main): Test that we don't write too much data.
1664
2ed1e5cc
DD
16652003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1666
1667 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1668 vsnprintf.
1669 * snprintf.c, vsnprintf.c: New files.
1670 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1671 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1672 Regenerate dependencies.
1673
1674 * functions.texi, configure, config.in: Regenerated.
1675
10b57b38
DD
16762003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1677
1678 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1679 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1680 and stpncpy.
1681 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1682 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1683 Regenerate dependencies.
1684
1685 * functions.texi, configure, config.in: Regenerated.
1686
ff773b85
DD
16872003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1688
1689 * argv.c: Fix comments.
1690 * calloc.c: Don't unnecessarily include "libiberty.h".
1691 (bzero): Add prototype.
1692 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1693 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1694 with system headers.
1695 * hashtab.c (htab_traverse): Delete unused variables.
1696 * rename.c: Include "ansidecl.h".
1697 (rename): Use standard definition to avoid conflicts with system
1698 headers.
1699 * strsignal.c: Rely on ANSI_PROTOTYPES.
1700 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1701 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1702 * vprintf.c: Include "ansidecl.h" earlier, rely on
1703 ANSI_PROTOTYPES.
1704 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1705 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 1706
ff773b85
DD
1707 * Makefile.in: Regenerate dependencies.
1708
bb325820
DD
17092003-04-15 DJ Delorie <dj@redhat.com>
1710
1711 * maint-tool (deps): Scan for headers in $srcdir also.
1712
258a4893
DD
17132003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1714
1715 PR target/10338
1716 PR bootstrap/10198
1717 PR bootstrap/10140
1718 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1719 __mempcpy.
1720 * regex.c (regerror): Likewise.
1721
ff773b85
DD
17222003-04-14 Roger Sayle <roger@eyesopen.com>
1723
1724 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1725 * memchr.c: Likewise.
1726 * strcasecmp.c: Likewise.
1727 * strncasecmp.c: Likewise.
1728 * strncmp.c: Likewise.
1729 * xatexit.c: Likewise.
1730 * xmalloc.c: Likewise.
1731
1732 * copysign.c: Use traditional function declaration instead of DEFUN.
1733 * sigsetmask.c: Likewise.
1734
1735 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1736 * memset.c: Likewise.
1737
1738 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1739 * memmove.c: Likewise.
1740
eec539c7
DD
17412003-04-14 Roger Sayle <roger@eyesopen.com>
1742
1743 * strdup.c (strdup): Tweak implementation to use memcpy.
1744
daf7c4ad
DD
17452003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1746
1747 * configure.in (HAVE_UINTPTR_T): Always define.
1748 * configure: Regenerated.
1749
aa072e59
AO
17502003-03-23 Alexandre Oliva <aoliva@redhat.com>
1751
1752 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
1753 instead of $$CC alone.
1754 (install_to_tooldir): Use it.
1755
f77ed96c
DD
17562003-17-03 Jan Hubicka <jh@suse.cz>
1757
1758 * hashtab.c (htab_traverse_noresize): Break out from ...
1759 * hashtab.c (htab_traverse): ... here.
1760
2336e177
DD
17612003-12-03 Jan Hubicka <jh@suse.cz>
1762
1763 * hashtab.c (htab_expand): Fix warning.
1764
1765 * hashtab.c (htab_expand): Compute the size of hashtable based
1766 on the number of elements actually used.
1767 (htab_traverse): Call htab_expand when table is too empty.
1768
d8cbbf95
DD
17692003-03-11 Carlo Wood <carlo@gnu.org>
1770
1771 * cplus-dem.c (demangle_integral_value): Correction to reflect
1772 patch of 2002-01-10 in order to also make negative multi-digits
1773 without leading underscore work.
1774
a01fefeb
DD
17752003-03-03 Mark Mitchell <mark@codesourcery.com>
1776
1777 * cplus-dem.c: Add license exception to copyright notice.
1778
638ceb1a
DD
17792003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1780
1781 * physmem.c: Formatting changes from upstream.
1782
ef803806
DD
17832003-02-24 Danny Smith <dannysmith@users.source.forge.net>
1784
1785 * physmem.c (physmem_total): Add _WIN32 support.
1786 (physmem_available): Likewise.
1787
181fa229
DD
17882003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1789
1790 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
1791 GSI_PHYSMEM.
1792 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
1793
cc529274
DD
17942003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1795
1796 * configure.in: Check for sys/systemcfg.h and
1797 _system_configuration.
1798 * physmem.c: Add support for AIX. Tweek formatting as per
1799 upstream coreutils beta.
1800
18012003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1802 Richard Earnshaw <rearnsha@arm.com>
1803 Geoffrey Keating <geoffk@apple.com>
cbc0188b 1804
cc529274
DD
1805 * configure.in: Check for sys/sysctl.h and sysctl.
1806 * physmem.c: Add support for *bsd and darwin.
1807 * Makefile.in: Generate depedency for physmem.o.
1808
192cbe66
DD
18092003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1810
1811 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
1812 Tru64 UNIX.
1813 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
1814 Tru64 UNIX.
1815
1816 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1817 machine/hal_sysinfo.h, sys/table.h.
1818 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1819 * configure, config.in: Regenerate.
1820
ff773b85
DD
18212003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1822
1823 * configure.in: Check for sys/sysmp.h and sysmp.
1824 * physmem.c: Pull upstream copy, add support for irix6.
1825
1826 * config.in, configure: Regenerated.
1827
900d2082
DD
18282003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1829
1830 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1831 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1832 pstat_getdynamic.
cbc0188b 1833
4938384a
DD
18342003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1835
1836 * Makefile.in (CFILES): Add physmem.c.
1837 (REQUIRED_OFILES): Add physmem.o.
1838 * configure.in: Check for sys/pstat.h.
1839 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1840 * physmem.c: New file, copied from textutils.
1841
1842 * config.in, configure: Regenerated.
1843
ba61a412
DJ
18442003-02-20 Daniel Jacobowitz <drow@mvista.com>
1845
1846 * Makefile.in (CFILES): Add lrealpath.c.
1847 (REQUIRED_OFILES): Add lrealpath.o.
1848 (lrealpath.o): Add rule.
1849 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1850 * configure.in: Add realpath and canonicalize_file_name to
1851 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1852 for canonicalize_file_name.
1853 * lrealpath.c: New file.
1854 * make-relative-prefix.c: Update documentation.
1855 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1856 * config.in: Regenerated.
1857 * configure: Regenerated.
1858 * functions.texi: Regenerated.
1859
25dfe0ac
DD
18602003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1861
1862 * cplus_dem.c: Fix typo: intializes -> initializes.
1863
8b90eef4
AO
18642003-02-20 Alexandre Oliva <aoliva@redhat.com>
1865
1866 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1867 config.status.
1868 * configure: Rebuilt.
1869
fcd7c7c9
DD
18702003-02-13 Daniel Jacobowitz <drow@mvista.com>
1871
1872 Fix PR c++/7612.
1873 * cplus-dem.c (demangle_signature): Call string_delete.
1874 Remove extra string_init.
1875 (demangle_arm_hp_template): Call string_delete instead of
1876 string_clear. Add missing string_delete call.
1877 (demangle_qualified): Add missing string_delete call.
1878 (do_type): Remove unused variable btype. Add missing string_delete
1879 call. Call string_delete instead of string_clear.
1880 (demangle_fund_type): Move variable btype inside of the switch
1881 statement. Add missing string_delete call.
1882 (do_arg): Call string_delete instead of string_clear. Remove extra
1883 string_init.
1884 (demangle_nested_args): Free work->previous_argument.
1885
073c427b
DD
18862003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1887
1888 * acconfig.h: New file. Add uintptr_t.
1889 * config.in: Regenerated.
1890
f8bd3000
DD
18912003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1892
1893 * libiberty.texi: Update to GFDL 1.2.
1894
85b9a938
DD
18952003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1896
1897 * Makefile.in (libiberty_topdir): New subst.
1898 (mkinstalldirs): Redefine in terms of the above.
1899 * configure.in: AC_SUBST it.
1900 * configure: Regenerate.
1901
578460f2
AO
19022003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1903
1904 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1905 (info-subdir, install-info-subdir, clean-info-subdir)
1906 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1907 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1908 Pass $(FLAGS_TO_PASS).
1909
7f285245
AO
19102003-01-27 Alexandre Oliva <aoliva@redhat.com>
1911
1912 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1913 /`$$CC -print-multi-os-directory`.
1914
5f9624e3
DJ
19152003-01-26 Daniel Jacobowitz <drow@mvista.com>
1916
1917 * hashtab.c (htab_create_alloc_ex): New function.
1918 (hatab_set_functions_ex): New function.
1919 (htab_delete, htab_expand): Support alternate allocation functions.
1920
9c2259b8
DD
19212003-01-24 Christopher Faylor <cgf@redhat.com>
1922
1923 * configure.in: Remove special pex-cygwin consideration.
1924 * configure: Regenerate.
1925 * pex-cygwin.c: Remove.
1926 * Makefile.in: Remove pex-cygwin.[co] lines.
1927
5a17353c
DD
19282003-01-24 Zack Weinberg <zack@codesourcery.com>
1929
1930 * Makefile.in (CFILES): Add pex-*.c.
1931 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1932 (CONFIGURED_OFILES): Add pex-*.o.
1933 (TEXIFILES): Add pexecute.txh.
1934 (pexecute.o): Delete rule.
1935 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1936 pex-unix.o, pex-win32.o): New rules.
1937 * configure.in: Change AC_INIT argument to xmalloc.c.
1938 Compute appropriate pexecute implementation and substitute it
1939 as @pexecute@.
1940
1941 * pexecute.c: Split up into...
1942 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1943 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1944 new files.
1945
1946 * functions.texi: Regenerate.
1947 * configure: Regenerate.
1948
eed2b28c
DD
19492003-01-20 Josef Zlomek <zlomekj@suse.cz>
1950
1951 * hashtab.c (htab_expand): Fix allocation of new entries.
1952
27a39a5f
DD
19532003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1954
1955 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1956
1957 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1958 mkinstalldirs command.
1959
b51c1553
DD
19602002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1961
1962 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1963 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1964
756954c3
DD
19652002-11-24 Nick Clifton <nickc@redhat.com>
1966
1967 * make-relative-prefix.c (make_relative_prefix): Ensure return
1968 string is empty before using strcat to construct it.
1969
2a80c0a4
DD
19702002-11-22 Daniel Jacobowitz <drow@mvista.com>
1971
1972 * Makefile.in: Add make-relative-prefix.c.
1973 * make-relative-prefix.c: New file.
1974 * functions.texi: Rebuilt.
1975
768b20d8
JJ
19762002-11-16 Jakub Jelinek <jakub@redhat.com>
1977
1978 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1979 used with arguments in traditional C' warnings.
1980
f52d1d64
JJ
19812002-10-16 Jakub Jelinek <jakub@redhat.com>
1982
1983 * config.table: Use mh-s390pic for s390x too.
1984
0d3deb8d
DD
19852002-10-06 Andreas Jaeger <aj@suse.de>
1986
1987 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1988 variable and of strict-aliasing warning.
1989 (grow_vect): Use char as first parameter.
1990
1b67de92
DD
19912002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1992
1993 * Makefile.in (all): Fix multilib parallel build.
1994
585cc78f
DD
19952002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1996
1997 * cp-demangle.c (demangling_new): Cast 0 to enum.
1998 (demangle_char): Cast return of strdup to char *.
1999 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2000 (is_gnu_v3_mangled_dtor): Likewise.
2001 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2002 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2003 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2004 * md5.c (md5_process_bytes): Cast results back to const void *.
2005 (md5_process_block): Add cast to const md5_uint32 *.
2006 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2007 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2008 unsigned short.
2009 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2010 to void *.
2011 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2012
e21b0cc1
NC
20132002-09-19 Nick Clifton <nickc@redhat.com>
2014
2015 * README: Update email addresses for bugs and patches.
2016
a54ba43f
DD
20172002-09-10 Mike Stump <mrs@apple.com>
2018
2019 * splay-tree.c (splay_tree_successor): Fix comments.
2020
20212002-09-11 Zack Weinberg <zack@codesourcery.com>
2022
2023 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
2024 * testsuite/Makefile.in: Adjust for test-demangle.
2025 * testsuite/regress-demangle: Deleted.
2026 * testsuite/test-demangle.c: New file.
2027 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2028 this file is not being read by a shell script.
2029
01cea699
DD
20302002-09-05 Roger Sayle <roger@eyesopen.com>
2031
2032 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2033
a2832523
DD
20342002-08-07 DJ Delorie <dj@redhat.com>
2035
2036 * regex.c (re_error_msgid): Just use a simple array of strings.
2037 (re_compile_pattern): Compensate.
2038 (re_comp): Likewise.
2039 (re_comp): Likewise.
2040 (regerror): Likewise.
2041
1e3f0be0
DD
20422002-07-29 Neil Booth <neil@daikokuya.co.uk>
2043
2044 * cplus-dem.c (PREPEND_BLANK): Remove.
2045
b851d07b
DD
20462002-07-10 Jason Merrill <jason@redhat.com>
2047
2048 * cp-demangle.c (demangle_identifier): Support extended Unicode
2049 characters.
2050
2a9dffbf
DD
20512002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2052
2053 * cp-demangle.c (demangle_v3_with_details): Wrap in
2054 !defined IN_GLIBCPP_V3.
2055
793011ca
DD
20562002-07-01 Mark Mitchell <mark@codesourcery.com>
2057
2058 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2059 Set it for the "st" operator.
2060 (demangle_expression): Handle expressions with types as arguments.
2061
b39b76b8
DD
20622002-06-30 Douglas Rupp <rupp@gnat.com>
2063
2064 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2065 * Makefile.in (OUTPUT_OPTION): Use.
2066
4748c6d8
DD
20672002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2068
2069 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2070 (install_to_tooldir): Likewise.
2071
f9c3326a
DD
20722002-06-17 Douglas Rupp <rupp@gnat.com>
2073
2074 * lbasename.c: Add 2002 to copyright.
2075 (IS_DIR_SEPARATOR): Remove VMS junk.
2076
18893690
DD
20772002-06-05 Geoffrey Keating <geoffk@redhat.com>
2078
2079 * hashtab.c (htab_create): New stub function for backward
2080 compatibility.
2081 (htab_try_create): Likewise.
2082
20832002-06-03 Geoffrey Keating <geoffk@redhat.com>
2084
2085 * hashtab.c (htab_create): Delete.
2086 (htab_try_create): Delete.
2087 (htab_create_alloc): New.
2088 (htab_delete): Support user-specified memory allocation.
2089 (htab_expand): Likewise.
2090
20912002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2092
2093 * configure.in: Fix typo in the code checking for sys_errlist.
2094 * configure: Regenerated.
2095
9296c8b2
DD
20962002-05-13 Andreas Schwab <schwab@suse.de>
2097
2098 * config.table: Use mh-x86pic also for x86-64.
2099
52d98c2d
DD
21002002-05-08 Alexandre Oliva <aoliva@redhat.com>
2101
2102 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2103 script entry, and set LD to it when configuring multilibs.
2104 * configure: Rebuilt.
2105
cafa3917
DD
21062002-05-07 Mark Mitchell <mark@codesourcery.com>
2107
2108 * configure.in (AC_TYPE_PID_T): Use it.
2109 * configure: Regenerated.
2110 * getruntime.c: Include <sys/types.h>.
2111 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2112
b1c933fc
RH
21132002-04-09 Richard Henderson <rth@redhat.com>
2114
2115 * hashtab.c (higher_prime_number): Use 7 as minimum.
2116 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2117 (htab_find_slot_with_hash): Likewise.
2118
0c4460bb
DD
21192002-04-01 Phil Edwards <pme@gcc.gnu.org>
2120
2121 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2122 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2123 not compile if IN_GLIBCPP_V3 defined.
2124 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2125
f2160d2b
DD
21262002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2127
3ebf1f59 2128 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
2129 if it is NULL.
2130
7dd4d42a
DD
21312002-03-27 DJ Delorie <dj@redhat.com>
2132
2133 * hex.c: Add documentation.
2134 (_hex_value): Provide non-ASCII empty table.
2135 (hex_init): Initialize the non-ASCII table.
2136 * functions.texi: Regenerate.
2137
38e57a35
DD
21382002-03-27 Mark Mitchell <mark@codesourcery.com>
2139
2140 * dyn-string.c: Add libgcc exception to copyright notice.
2141
cfed0715
DD
21422002-03-26 H.J. Lu (hjl@gnu.org)
2143
2144 * config.table: Support --with-build-subdir.
2145 * configure.in: Likewise.
2146 * configure: Rebuild.
2147
1504972f
DD
21482002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2149
2150 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2151 seen.
2152
35efcd67
DD
21532002-03-12 Mark Mitchell <mark@codesourcery.com>
2154
2155 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2156 notice.
2157
dabc64ea
DD
21582002-03-11 Douglas B Rupp <rupp@gnat.com>
2159
2160 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2161
3ddbd84c
JB
21622002-03-06 Jim Blandy <jimb@redhat.com>
2163
2164 * splay-tree.c (splay_tree_xmalloc_allocate,
2165 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2166 prototyped definitions. Mark `data' arguments as unused.
2167
efdab807
AC
21682002-03-06 Andrew Cagney <ac131313@redhat.com>
2169
2170 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2171
50d4562d
DD
21722002-03-04 Phil Edwards <pme@gcc.gnu.org>
2173
2174 * configure.in: Add --enable-install-libiberty option.
2175 * Makefile.in (INSTALLED_HEADERS): New variable.
2176 (install_to_libdir): Possibly also copy headers.
2177 * configure: Regenerated.
2178
21792002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2180
2181 * xmalloc.c (xmalloc_fail): Clarify error message further.
2182
6e9980f5
DD
21832002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2184
2185 * xmalloc.c (xmalloc_fail): Clarify error message.
2186
18893690 21872002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
2188
2189 * splay-tree.c (splay_tree_xmalloc_allocate,
2190 splay_tree_xmalloc_deallocate): New functions.
2191 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2192 above functions and a dummy data pointer.
2193 (splay_tree_new_with_allocator): New function.
2194 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2195 splay_tree_remove): Use the splay tree's allocation and
2196 deallocation functions.
2197
59ea9fe7
DD
21982002-02-19 Scott Snyder <snyder@fnal.gov>
2199
2200 * testsuite/demangle-expected: Add test case for infinite loop in
2201 demangler.
2202 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2203 if do_type() doesn't make any progress --- prevents an infinite
2204 loop.
2205
6f848550
DD
22062002-02-18 Carlo Wood <carlo@gnu.org>
2207
2208 PR c++/5390
2209 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2210 numbers that do not start with an underscore; This is needed
2211 for integer template parameters. This doesn't break anything
2212 because multi-digit numbers are never followed by a digit.
2213 * testsuite/demangle-expected: Corrected all mangled test
2214 cases with multi-digit template parameters: g++ 2.95.x does
2215 not generate underscores around these parameters.
2216
44354ae1
DD
22172002-02-05 Jason Merrill <jason@redhat.com>
2218
2219 * cplus-dem.c (flags): Add DMGL_VERBOSE
2220 (cplus_demangle_v3_p): Remove.
2221 (demangle_it): Add DMGL_TYPES to passed flags.
2222 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2223 (cplus_demangle_v3_type): Remove.
2224 (cplus_demangle_v3): Add options parm.
2225
42da15d6
DD
22262002-02-02 H.J. Lu (hjl@gnu.org)
2227
2228 * cp-demangle.c (cp_demangle_type): Do not protect with
2229 IN_LIBGCC2.
2230 (cplus_demangle_v3_all): New.
2231 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2232 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2233
2234 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2235 Initialized to cplus_demangle_v3.
2236 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2237 of cplus_demangle_v3.
2238 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2239 command line symbol.
2240
2241 * testsuite/regress-demangle: Pass the mangled name at the
2242 command line.
2243
b117c158
DD
22442002-02-01 H.J. Lu <hjl@gnu.org>
2245
2246 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2247 DMGL_GNU_V3.
2248
c78d91b1
DD
22492002-01-31 Phil Edwards <pme@gcc.gnu.org>
2250
2251 * cp-demangle.c: Revert yesterday's change.
2252
bef8b55d
DD
22532002-01-31 Adam Megacz <adam@xwt.org>
2254
2255 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2256 wrt HAVE_SYS_ERRLIST.
2257
2c955b8b
DD
22582002-01-30 Phil Edwards <pme@gcc.gnu.org>
2259
2260 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2261 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2262 cp_demangle_type.
2263 * testsuite/demangle-expected: New gnu-v3 test.
2264
58b1717a
RH
22652002-01-22 Momchil Velikov <velco@fadata.bg>
2266
2267 * configure.in (variable detection): Use arrays of unspecified
2268 size instead of plain integers.
2269
cc096b71
DD
22702002-01-18 DJ Delorie <dj@redhat.com>
2271
2272 * Makefile.in (TESTLIB): New. This library is for future
2273 testsuites.
2274 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2275 break down by letter.
2276 (REQUIRED_OFILES): List long-to-compile files first.
2277 (maint-deps): New, target for updating dependencies.
2278 (dependencies): Update.
2279 * maint-tool: Add dependency-generating option.
2280 * configure.in: Check for _doprnt even if we're not providing it.
2281 * configure: Regenerate.
2282
2283 * _doprnt.c: Modifications to allow compiling on any platform.
2284 * copysign.c: Likewise.
2285 * putenv.c: Likewise.
2286 * setenv.c: Likewise.
2287 * vsprintf.c: Likewise.
2288
22892002-01-15 Douglas B Rupp <rupp@gnat.com>
2290
2291 * mkstemps.c (mkstemps): On VMS, open temp file with option
2292 that causes it to be deleted when closed.
2293
20d54542
DD
22942002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295
c23795e2
DD
2296 * cp-demangle.c (long_options): Const-ify.
2297 * cplus-dem.c (long_options): Likewise.
2298
20d54542
DD
2299 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2300 strstr instead.
2301
f348a7b1
DD
23022001-12-31 Ira Ruben <ira@apple.com>
2303
2304 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2305 * configure: Regenerated.
2306
d86cd745
DD
23072001-12-24 Douglas B. Rupp <rupp@gnat.com>
2308
2309 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2310 * configure: Regenerated.
2311
ae533646
DD
23122001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2313
2314 PR other/2719
2315 * cplus-dem.c (consume_count): Treat negative count as an error.
2316 * testsuite/demangle-expected: Added testcase.
2317
c0eb281b
DD
2318Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2319
2320 * configure.in: Hardcode that vfork works on VMS host.
2321 * configure: Regenerated.
2322
2da4c07f
RH
23232001-12-06 Richard Henderson <rth@redhat.com>
2324
2325 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2326 (cplus_demangle): Support no_demangling.
2327
24acd898
DD
23282001-11-27 Zack Weinberg <zack@codesourcery.com>
2329
2330 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2331 in libiberty context. Fix typo in leading comment.
2332 * configure.in: Fix various AC_DEFINEs so autoheader works.
2333 If any of vprintf, vsprintf, vfprintf is missing from libc,
2334 then AC_REPLACE_FUNCS(_doprnt).
2335
fec50157 23362001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 2337 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
2338
2339 * Makefile.in (stamp-h): Depend on Makefile for proper
2340 serialization.
2341 (*-subdir): Depend on config.h for proper serialization.
2342
5527febf
DD
23432001-11-26 DJ Delorie <dj@redhat.com>
2344
2345 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2346 * configure: Regenerate.
2347 * config.h: Add HAVE_ALLOCA_H.
2348
941d74a0
DD
23492001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2350
2351 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2352 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2353 is available.
2354
dc579051
DD
2355Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2356
2357 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2358 * configure.in (HAVE_UINTPTR_T): Test for system defining
2359 uintptr_t and define HAVE_UINTPTR_T appropriately.
2360 * regex.c (uintptr_t): Do not provide a definition if the
2361 system provided one.
2362
2363 * regex.c (PREFIX): Provide an alternate definition for
2364 non-ANSI/ISO compilers.
2365 (ARG_PREFIX): Likewise.
2366
1a78a35a
DD
23672001-11-12 Jim Meyering <meyering@lucent.com>
2368
2369 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2370 this code would end up calling gettext even in packages built
2371 with --disable-nls.
2372 * getopt.c (_): Likewise.
2373 * regex.c (_): Likewise.
2374
4e55c4b6
DD
23752001-11-03 Alan Modra <amodra@bigpond.net.au>
2376
2377 * configure.in: Cope with missing makeinfo.
2378 * configure: Regenerate.
2379
d311a83a
DD
23802001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2381
2382 * hex.c (hex_init): Provide empty stub.
2383
2384 * hex.c (hex_init): Delete.
2385 (_hex_value): Const-ify and initialize at compile-time.
2386
3bc62f91
DD
23872001-10-19 H.J. Lu <hjl@gnu.org>
2388
2389 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2390 necessary.
2391
5d852400
DD
23922001-10-17 DJ Delorie <dj@redhat.com>
2393
2394 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2395 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 2396 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
2397 Improve manual formatting.
2398 * functions.texi: Regenerate.
2399
ba19b94f
DD
24002001-10-15 DJ Delorie <dj@redhat.com>
2401
2402 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2403 (maint-undoc): New.
2404 maint-tool: Add "undoc" tool.
2405 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2406 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2407 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2408 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2409 documentation.
2410 * fnmatch.txh: New.
2411 * functions.texi: Regenerate.
2412
56056af5
DD
24132001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2414
2415 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2416 * strtod.c: Use "ISO C" instead of "ANSI C".
2417 * functions.texi: Regenerate.
2418
99b58139
DD
24192001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2420
2421 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2422 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2423 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2424 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2425 spelling. Give names to function arguments in documentation. Use
2426 (void) prototypes in documentation.
2427 * functions.texi: Regenerate.
2428
e6450fe5
DD
24292001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2430
2431 * argv.c (buildargv, tests, main): Const-ify.
2432 * cp-demangle.c (operator_code): Likewise.
2433 * cplus-dem.c (optable, libiberty_demanglers,
2434 cplus_demangle_set_style, cplus_demangle_name_to_style,
2435 print_demangler_list): Likewise.
2436 * hashtab.c (higher_prime_number): Likewise.
2437 * strcasecmp.c (charmap): Likewise.
2438 * strerror.c (error_info, strerror, main): Likewise.
2439 * strncasecmp.c (charmap): Likewise.
2440 * strsignal.c (signal_info): Likewise.
2441
da191b5b
DD
24422001-09-29 DJ Delorie <dj@redhat.com>
2443
2444 * configure: Regenerate.
2445
916aaa12
DD
24462001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2447
2448 * concat.c: Include stdlib.h.
2449
fa9f0e33
DD
24502001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2451
2452 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2453 @dircategory and @direntry directives. Add @finalout.
2454 (many nodes): Lose the next,prev,up pointers on the @nide line.
2455 (Using, Supplemental Functions, Replacement Functions): Fix
2456 markup.
2457 (Functions): Move around, to allow makeinfo to build the manual
2458 without next,prev,up pointers in thye node lines.
2459 (Licenses): Fix typos.
2460
2461 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2462 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2463 * functions.texi: Regenerate.
2464
2465 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2466 line.
2467
24682001-09-27 DJ Delorie <dj@redhat.com>
2469
2470 * configure.in: Don't use in-tree texinfo, because libiberty must
2471 be built before it. Check for makeinfo version 4 or higher.
2472 * functions.texi: Regenerate.
2473
39423523
DD
24742001-09-20 DJ Delorie <dj@redhat.com>
2475 Phil Edwards <pedwards@disaster.jaj.com>
2476
2477 * configure.in (MAKEINFO, PERL): Detect these.
2478 (--enable-maintainer-mode): Add.
2479 * configure: Regenerate.
2480 * Makefile.in (MAKEINFO, PERL): Define.
2481 (libiberty.info, libiberty.dvi, libiberty.html): New.
2482 (CFILES): Add bsearch.c.
2483 (CONFIGURED_OFILES): New, list of objects configure might add.
2484 (maint-missing, maint-buildall): New, for maintainers only.
2485 (clean, mostlyclean): Add info/dvi/html files.
2486 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2487 * gather-docs: New, for maintainers.
2488 * maint-tool: New, for maintainers.
2489 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2490 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2491 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2492 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2493 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2494 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2495 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2496 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2497 documentation.
2498
66c94e19
DD
24992001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2500
2501 * concat.c (reconcat): Fix for traditional C.
2502
99ee3a8f
DD
25032001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2504
2505 * concat.c (reconcat): New function.
2506
54c20242
DD
25072001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2508
2509 * concat.c (vconcat_length, vconcat_copy, concat_length,
2510 concat_copy, concat_copy2): New functions.
2511 (concat): Use vconcat_length/vconcat_copy.
2512
2513 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2514 Define.
2515
843f21be
DD
25162001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2517
2518 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2519 VA_FIXEDARG & VA_CLOSE.
2520
2521 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2522 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2523 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2524
8a423cb3
DD
25252001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2526
2527 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2528
dc676635
DD
25292001-08-23 Ulrich Drepper <drepper@redhat.com>
2530
2531 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2532
25332001-08-23 Ulrich Drepper <drepper@redhat.com>
2534
2535 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2536 instead of mbrtowc.
2537 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2538 wcslen, and __wcscoll instead of wcscoll.
2539
f080c76d
DD
25402001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2541
3ebf1f59
DD
2542 * fibheap.c (fibheap_init, fibnode_init): Remove.
2543 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2544 initialize memory.
2545 (fibheap_insert): Remove check for node allocation failure.
f080c76d 2546
f01b59ed
DD
25472001-08-21 Richard Henderson <rth@redhat.com>
2548
2549 * Makefile.in (fibheap.o): Depend on config.h.
2550 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2551 functions for inlining.
2552
2553Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2554
2555 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2556 hosting on cygwin.
2557 * configure: Regenerate.
2558
eb828599
AC
25592001-08-20 Andrew Cagney <ac131313@redhat.com>
2560
2561 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2562 HARRIS_FLOAT_FORMAT.
2563 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2564 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2565 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2566 (floatformat_m88110_harris_ext): New float formats.
2567
4e55c4b6
DD
25682001-08-20 Daniel Berlin <dan@cgsoftware.com>
2569
2570 * fibheap.c: New file. Fibonacci heap.
2571
2572 * Makefile.in (CFILES): Add fibheap.c.
2573 (REQUIRED_OFILES): Add fibheap.o.
2574 (fibheap.o): Add dependencies for fibheap.o.
2575
68a41de7
DD
25762001-08-17 Christopher Faylor <cgf@cygnus.com>
2577
2578 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2579 * configure: Regenerate.
2580
8fc34799
DD
25812001-08-16 Richard Henderson <rth@redhat.com>
2582
2583 * hashtab.c (htab_hash_string): New.
2584
16bad250
AC
25852001-08-13 Andrew Cagney <ac131313@redhat.com>
2586
2587 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2588 name.
2589
a9022147
DD
25902001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2591
2592 * regex.c (wcs_regex_compile): Use appropriate string
2593 to compare with collating element.
2594 Fix the padding for the alignment.
2595
8aefe91a 25962001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
2597
2598 * lbasename.c (lbasename): Change function definition to return a
2599 const char pointer.
2600
e7e9b069
DD
26012001-08-07 Jason Merrill <jason_merrill@redhat.com>
2602
2603 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2604 for".
2605
cc5144f8
DD
26062001-08-03 Richard Henderson <rth@redhat.com>
2607
2608 * Makefile.in (concat.o): Depend on config.h.
2609
8aefe91a
DD
26102001-07-30 Andreas Jaeger <aj@suse.de>
2611
2612 * concat.c: Include "config.h".
2613
86710ce2
DD
26142001-07-30 Andreas Jaeger <aj@suse.de>
2615
2616 * regex.c: Declare wcs functions only if compiling with
2617 MBS_SUPPORT.
2618 Don't use #elif for traditional C.
2619
26202001-07-23 Ulrich Drepper <drepper@redhat.com>
2621
2622 * regex.c: Revamp memory allocation for WCHAR functions to
2623 not use too much stack.
2624
26252001-07-30 Andreas Jaeger <aj@suse.de>
2626
2627 * regex.c: Declare wcs functions only if compiling with
2628 MBS_SUPPORT.
2629 Don't use #elif for traditional C.
2630
a5d8f731
DD
26312001-07-25 Daniel Jacobowitz <drow@mvista.com>
2632
2633 * Makefile.in (regex.o): Add dependency on config.h.
2634
6ad8a379
DD
26352001-07-18 Andreas Schwab <schwab@suse.de>
2636
2637 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2638 underscore character.
2639
26402001-07-18 Ulrich Drepper <drepper@redhat.com>
2641
2642 * regex.c: Limit string length printed in debug messages to 100
2643 chars.
2644
26452001-07-18 Andreas Jaeger <aj@suse.de>
2646
2647 * regex.c: Place under LGPL version 2.1.
2648
2a6ef469
DD
26492001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2650
2651 * Makefile.in: Add support for regex code.
2652 * regex.c: New file.
2653
7b78baae
DD
26542001-07-05 Mark Klein <mklein@dis.com>
2655
2656 * Makefile.in: Add ffs.c dependency.
2657 * configure.in: Add ffs.c.
2658 * ffs.c: New file.
2659
926150e2
DD
26602001-06-18 Richard Henderson <rth@redhat.com>
2661
2662 * concat.c: Include <sys/types.h>.
2663
11f6f21d
DD
26642001-06-11 Loren J. Rittle <ljrittle@acm.org>
2665
2666 bootstrap/3106
2667 * strerror.c (sys_nerr): Hide the OS header version.
2668 * strsignal.c (sys_nsig): Likewise.
2669
d42dae6c
DD
26702001-06-10 Richard Henderson <rth@redhat.com>
2671
2672 * concat.c: Include string.h. Fix int vs size_t usage.
2673 Simplify the iteration loops. Use memcpy.
2674
e05c6d27
DD
26752001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2676
2677 * partition.c: Fix misspelling of `implementation'.
2678
b50c4073
DD
26792001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2680
2681 * md5.c (md5_init_ctx): Declare constants as unsigned.
2682 (md5_process_block): Likewise.
2683
457161bf
DD
26842001-05-07 Zack Weinberg <zackw@stanford.edu>
2685
2686 * cp-demangle.c (demangle_v3_with_details,
2687 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2688 function definition.
2689 * ternary.c: Use K+R style function definitions. Use PTR, not
2690 void *. Make arguments constant where possible.
2691
e00bc6a7
DD
26922001-05-07 Mark Mitchell <mark@codesourcery.com>
2693
2694 * splay-tree.h (splay_tree_max): New function.
2695 (splay_tree_min): Likewise.
2696
400ee7e1
DB
26972001-04-15 Daniel Berlin <dan@cgsoftware.com>
2698
2699 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
2700
2701 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 2702
d9697354
DD
27032001-04-03 Zack Weinberg <zackw@stanford.edu>
2704
2705 * make-temp-file.c (try): Inline.
2706
a7bf099b
DD
27072001-02-28 Richard Henderson <rth@redhat.com>
2708
2709 * Makefile.in (make-temp-file.o): Depend on config.h.
2710
30a1def2
DD
27112001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2712
2713 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2714
079c672a
DD
27152001-03-23 Jakub Jelinek <jakub@redhat.com>
2716
2717 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2718 `_' not followed by a digit is invalid.
2719
a88e356a
JB
27202001-03-22 Jim Blandy <jimb@redhat.com>
2721
2722 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2723 instead of free, to free the contents as well as the string
2724 structure.
2725
1dffcc66
DD
27262001-03-21 Zack Weinberg <zackw@stanford.edu>
2727
2728 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2729 Don't default P_tmpdir to anything. Try /var/tmp before
2730 /usr/tmp.
2731
27322001-03-20 Zack Weinberg <zackw@stanford.edu>
2733
2734 * choose-temp.c: Split off make_temp_file, and the code
2735 duplicated between it and choose_temp_base, into...
2736 * make-temp-file.c: ... here; new file.
2737
2738 * Makefile.in (CFILES): Add make-temp-file.c.
2739 (REQUIRED_OFILES): Add make-temp-file.o.
2740
e61231f1
JB
27412001-03-20 Jim Blandy <jimb@redhat.com>
2742
2743 * cp-demangle.c (struct demangling_def): New fields:
2744 is_constructor and is_destructor.
2745 (demangling_new): Initialize them.
2746 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2747 or destructor.
2748 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2749 is_gnu_v3_mangled_dtor): New functions.
2750
a9cbbe6d
DD
27512001-03-20 Jason Merrill <jason@redhat.com>
2752
2753 * cplus-dem.c (main): Skip initial $.
2754
b1e51b3c
DD
27552001-03-15 Michael Meissner <meissner@redhat.com>
2756
2757 * hashtab.c (higher_prime_number): Silence warning that 4294967291
2758 might be a signed integer under pre-ISO C systems.
2759
8aa30e60 27602001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 2761 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 2762
8aa30e60
DD
2763 * libiberty/lbasename.c: New file.
2764 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 2765
30673bf5
DD
27662001-03-06 Zack Weinberg <zackw@stanford.edu>
2767
2768 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
2769 * configure.in: Replace all alloca logic with a simple use of
2770 the above new macro.
2771 * config.table: Kill *-*-beos* entry.
2772 * config/mh-beos: Delete.
2773 * configure, config.in: Regenerate.
fa03f0a7 2774
30673bf5
DD
2775 * Makefile.in (ALLOCA, HFILES): Kill.
2776 (REQUIRED_OFILES): Add alloca.o.
2777 (alloca.o): Depend on libiberty.h.
2778 (argv.o): Don't depend on alloca-conf.h.
2779 * alloca-conf.h: Delete.
2780 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
2781 blocks. Provide the C alloca unconditionally. Use PTR where
2782 appropriate. Make i00afunc static.
2783 * argv.c: Don't include alloca-conf.h.
fa03f0a7 2784
5810f394
DD
27852001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2786
2787 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 2788
a9db032a
DD
27892001-02-16 Loren J. Rittle <ljrittle@acm.org>
2790
2791 * cplus-dem.c (main): Initialize style.
fa03f0a7 2792
8aefe91a
DD
27932001-02-02 Phil Edwards <pme@sources.redhat.com>
2794
2795 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
2796
bc9bf259
DD
27972001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
2798
2799 Add support for Java demangling under the v3 ABI:
2800 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
2801 (struct demangling_def): Add `style' field.
2802 (demangling_new): New parameter `style'. Set it in demangling_t.
2803 (demangle_prefix): Use NAMESPACE_SEPARATOR.
2804 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
2805 (cp_demangle): New parameter `style'. Pass it to demangling_new().
2806 (main): Call cp_demangle with extra parameter.
2807 (java_demangle_v3): New function.
2808 (java_builtin_type_names): New. Table of primitive type names used
2809 for Java demangling.
2810 (demangle_builtin_type): Look up in java_builtin_type_names if doing
2811 Java output.
2812 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
2813 demangling.
2814 (long_options): Remove obsolete `java' option.
2815 (main): Remove explicit handling of `java' option. Instead, pass style
2816 parameter in cplus_demangle flags as gdb does.
2817 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 2818
f6528837
DD
28192000-12-29 DJ Delorie <dj@redhat.com>
2820
2821 * fnmatch.c: Make the note about the origins of this file more
2822 accurate, at least until we can sync with glibc.
2823 * getopt.c: Ditto.
2824 * getopt1.c: Ditto.
2825 * md5.c: Ditto.
2826 * obstack.c: Ditto.
9d969b59 2827
c6da642e
DD
28282000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2829
2830 * bsearch.c: New file.
2831 * configure.in (funcs): Add bsearch.
2832 (AC_CHECK_FUNCS): Likewise.
2833 * configure, config.in: Regenerate.
2834
ae7d06ad 28352000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2836
2837 * safe-ctype.c: #include "ansidecl.h".
2838 * strtod.c: Likewise.
2839
ae7d06ad 28402000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2841
2842 * strtoul.c: Include safe-ctype.h, not ctype.h.
2843
ac424eb3
DD
28442000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2845
2846 * safe-ctype.c: New file.
2847 * Makefile.in (CFILES): Add safe-ctype.c.
2848 (REQUIRED_OFILES): Add safe-ctype.o.
2849
2850 * argv.c: Define ISBLANK and use it, not isspace.
2851 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2852 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2853 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2854 before calling TOLOWER(c)/TOUPPER(c).
2855
4415a860
DD
28562000-12-07 Mike Stump <mrs@wrs.com>
2857
2858 * Makefile.in (distclean): When cleaning, remove testsuite.
2859
849ee224
DD
28602000-12-05 Jason Merrill <jason@redhat.com>
2861
2862 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2863 name before allocating the dyn_string.
2864
ae7d06ad 28652000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
2866
2867 * cp-demangle.c: s/new_abi/v3/.
2868 * cplus-dem.c: Likewise.
2869 (current_demangling_style): Now auto_demangling.
2870 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 2871 (main): Use standard symbol chars for auto_demangling.
e49a569c 2872
ae7d06ad 28732000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
2874
2875 * hashtab.c (higher_prime_number): Use a table, rather than a
2876 seive, to find the next prime.
ae7d06ad
NC
2877
28782000-11-22 H.J. Lu <hjl@gnu.org>
2879
2880 * cplus-dem.c (main): Handle gnat_demangling.
2881
28822000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
2883
2884 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2885 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2886 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2887 argument form of AC_DEFINE in dummy definitions block. Use
2888 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2889 in dummy block. Preload cache variables instead of bypassing
2890 tests, where possible.
2891 * acconfig.h: Removed.
ae7d06ad 2892
2ea7befd
DD
2893 * xmalloc.c (xmalloc_failed): New function, does error
2894 reporting on failed allocation.
2895 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 2896
f1775526
HPN
28972000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2898
2899 * cplus-dem.c (cplus_demangle): Fix formatting.
2900 (grow_vect): Ditto.
2901 (ada_demangle): Ditto.
2902 (internal_cplus_demangle): Ditto.
2903 (mop_up): Ditto.
2904
29052000-11-21 H.J. Lu <hjl@gnu.org>
2906
2907 * cplus-dem.c (main): Handle java_demangling.
2908
ae7d06ad 29092000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
2910
2911 * cplus-dem.c (grow_vect): Prototype.
2912 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2913
5dd42ef4
HPN
29142000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2915
2916 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2917 parameter `option'.
2918
296731c1
DD
29192000-11-15 Kenneth Block <kenneth.block@compaq.com>
2920
8944fb9d 2921 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
2922 be used in GCC.
2923
6e53a714 29242000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 2925
5dd42ef4 2926 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
2927 list.
2928
99a4c1bd
HPN
29292000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2930
2931 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
2932 xcalloc depending on htab->return_allocation_failure. Return zero
2933 if calloc fails.
99a4c1bd
HPN
2934 (htab_create): Update comment to cover memory allocation.
2935 (htab_try_create): New.
2936 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 2937 Update comment to cover this.
99a4c1bd 2938
e0f3df8f
HPN
29392000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2940
2941 * hashtab.c: Change void * to PTR where necessary.
2942 (htab_create, htab_expand): Correct formatting of comment before
2943 function.
2944
ae7d06ad 29452000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
2946
2947 * cp-demangle.c (string_list_def): Add caret_position and comments.
2948 (result_caret_pos): New macro.
2949 (result_append_string): Rename to...
2950 (result_add_string): ... this, and insert at caret position.
ae7d06ad 2951 Rename throughout.
59666b35
DD
2952 (result_append): Rename to...
2953 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 2954 throughout.
59666b35
DD
2955 (result_append_char): Rename to...
2956 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 2957 throughout.
59666b35
DD
2958 (result_append_space): Remove.
2959 (string_list_new): Initialize caret position.
2960 (result_add_separated_char): Use caret position.
2961 (result_get_caret): New funtion.
2962 (result_set_caret): Likewise.
2963 (result_shift_caret): Likewise.
2964 (result_previous_char_is_space): Likewise.
2965 (substitution_start): Use caret position.
2966 (substitution_add): Likewise.
2967 (demangling_new): Initialize caret position.
2968 (demangle_encoding): Use caret position.
ae7d06ad 2969 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
2970 (demangle_type_ptr): Use switch statement. Handle pointers to
2971 arrays. Don't use result_append_space. Use caret position.
2972 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
2973 call to demangle_array_type.
2974 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 2975
ae7d06ad 29762000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2977
2978 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
2979
29802000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2981
2982 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
2983
29842000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2985
2986 * splay-tree.c: #include <stdio.h>.
2987
29882000-09-14 Hans-Peter Nilsson <hp@axis.com>
2989
2990 * testsuite/demangle-expected: Add two tests for anonymous
2991 namespaces.
2992 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2993
29942000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2995
2996 * splay-tree.c (splay_tree_predecessor): New function.
2997 (splay_tree_successor): Likewise.
ae7d06ad
NC
2998
29992000-09-10 Hans-Peter Nilsson <hp@axis.com>
3000
3001 * testsuite/demangle-expected: Add four tests for type_info
3002 mangling.
3003 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
3004 for a non-template non-qualified type_info function or node.
3005
30062000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3007
3008 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
3009
30102000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3011
3012 * md5.c: #include "ansidecl.h".
3013
30142000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3015
3016 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
3017 (demangle_type): Handle substitution candidates correctly in the
3018 face of special substitutions.
ae7d06ad
NC
3019
30202000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3021
3022 * cp-demangle.c (demangle_encoding): Rename variable.
3023 (demangle_name): Rename parameter. Handle return type
3024 suppression.
3025 (demangle_nested_name): Rename parameter.
3026 (demangle_prefix): Likewise. Change return type suppression.
3027 (demangle_unqualified_name): Add parameter. Flag constructors and
3028 conversion operators.
3029 (demangle_special_name): Fix comment.
3030 (demangle_type): Rename variable.
3031 (demangle_bare_function_type): Check for missing return type and
3032 parameter.
3033 (demangle_class_enum_type): Rename parameter.
3034 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
3035
30362000-08-31 DJ Delorie <dj@redhat.com>
3037
3038 * configure.in (Cygwin): special case cygwin only when we're
3039 building cygwin, not when we're hosting cygwin.
3040
30412000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3042
3043 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
3044 <expression>.
ae7d06ad
NC
3045
30462000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3047
3048 * cp-demangle.c (demangle_type_ptr): Increment position past
3049 pointer and reference characters.
ae7d06ad
NC
3050
30512000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3052
3053 * cp-demangle.c (demangle_nv_offset): New function.
3054 (demangle_v_offset): Likewise.
3055 (demangle_call_offset): Likewise.
3056 (demangle_special_name): Update thunk demangling to comply with
3057 ABI changes.
ae7d06ad
NC
3058
30592000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3060
3061 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3062 (substitution_def): Remove template_parm_number.
3063 (NOT_TEMPLATE_PARM): Remove.
3064 (result_insert_string): New macro.
3065 (result_insert): Likewise.
3066 (result_insert_char): Likewise.
3067 (substitution_add): Remove last parameter. Don't store template
3068 parm number.
3069 (BFT_NO_RETURN_TYPE): Define as NULL.
3070 (demangle_encoding): Adjust call to demangle_bare_function_type.
3071 (demangle_name): Adjust substitution. Adjust call to
3072 substitution_add.
3073 (demangle_prefix): Adjust call to substitution_add.
3074 (demangle_identifier): Handle anonymous namespaces.
3075 (demangle_operator_name): Change demangling of vendor-extended
3076 operator to match ABI changes.
3077 (demangle_type_ptr): Change parameters. Make recursive. Handle
3078 substitutions here.
3079 (demangle_type): Adjust calls to demangle_template_param,
3080 substitution_add, and demangle_type_ptr. Fix substitution of
3081 templated types.
3082 (demangle_function_type): Change parameter to a pointer.
3083 (demangle_bare_function_type): Likewise. Adjust insertion point.
3084 (demangle_template_param): Remove last parameter.
3085 (demangle_expr_primary): Remove unused variable. Adjust call to
3086 demangle_template_param.
3087 (is_mangled_char): Accept `$' and `.'.
3088 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3089 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
3090
30912000-08-31 Hans-Peter Nilsson <hp@axis.com>
3092
3093 * testsuite/demangle-expected: Add nine tests for
3094 underscore-after-number followed by five tests for name-signature
3095 delimiter.
3096
30972000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
3098
3099 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
3100
31012000-08-28 Jason Merrill <jason@redhat.com>
3102
3103 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3104 (CFILES): Add md5.c.
3105 * md5.c: New file.
3106
31072000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3108
3109 * cp-demangle.c (demangle_name): Initialize template_p in local
3110 name case. Don't re-add substitutions as candidates.
3111 (demangle_nested_name): Use <unqualified-name>.
3112 (demangle_prefix): Likewise. Don't add template names as
3113 substitution candidates twice, or re-add a substitution or the
3114 last prefix component.
3115 (demangle_local_name): Adjust output format.
ae7d06ad
NC
3116
31172000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3118
3119 * cp-demangle.c (result_add_separated_char): Change parameter to
3120 int.
3121 (substitution_add): Don't check for duplicates. Check if
3122 previously allocated size is zero.
3123 (demangle_name): Remove duplicate check for std substitution.
3124 Clear template flag appropriately.
3125 (demangle_prefix): Remove argument to demangle_substitution.
3126 Don't check that template flag is already set.
3127 (demangle_operator_name): Add pt operator.
3128 (demangle_type): Don't treat r as built-in type. Remove argument
3129 to demangle_substitution. Fix substitution candidate mechanics.
3130 Handle <template-template-parm>s. Improve comments.
3131 (demangle_template_param): Don't handle template arg lists here.
3132 (demangle_substitution): Remove parameter.
3133 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
3134
31352000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
3136
3137 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
3138
31392000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
3140
3141 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3142 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3143 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
3144
31452000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3146
3147 * cp-demangle.c (result_close_template_list): Remove function.
3148 (result_add_separated_char): New function.
3149 (result_open_template_list): New macro.
3150 (result_close_template_list): Likewise.
3151 (demangle_prefix): Don't set template_p if the
3152 prefix ends with a ctor name.
3153 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3154 (demangle_type): Check for template args after substitution.
3155 (demangle_template_args): Use result_open_template_list.
d3e85005 3156
ae7d06ad 31572000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 3158
ae7d06ad 3159 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 3160
ae7d06ad 31612000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
3162
3163 * config/mh-openedition.h: Added -DLE370 definition.
3164
a9f34fb6
JL
31652000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3166
3167 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3168 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3169 Cast program to 'char *' in errmsg_arg assignment.
3170 (PWAIT_ERROR): Define.
3171 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3172 to DJGPP's WIF* macros.
3173
90aaccd1 31742000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 3175 Jeff Law <law@cygnus.com>
90aaccd1 3176
ae7d06ad 3177 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 3178
90aaccd1 3179 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
3180 * rename.c: Include config.h, unistd.h
3181 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 3182
6ef554e3
HPN
31832000-07-24 Hans-Peter Nilsson <hp@axis.com>
3184
3185 * cplus-dem.c (work_stuff_copy_to_from): New.
3186 (delete_non_B_K_work_stuff): New.
3187 (delete_work_stuff): New.
3188 (mop_up): Break out work_stuff partly destruction to
3189 delete_non_B_K_work_stuff.
3190 (iterate_demangle_function): New.
3191 (demangle_prefix): Call iterate_demangle_function instead of
3192 demangle_function_name. Leave handling of name-signature
3193 __-delimiters to iterate_demangle_function.
3194 (demangle_integral_value): Strip an optional
3195 following underscore cautiously. Handle negative numbers.
3196
ae7d06ad 31972000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 3198
ae7d06ad 3199 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
3200 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3201
ae7d06ad
NC
32022000-07-21 Alex Samuel <samuel@codesourcery.com>
3203
3204 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3205 allocating ctor mangling.
3206 (demangle_array_type): Handle empty and non-constant array length.
3207
b1233257 32082000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
3209 Jeff Law <law@cygnus.com>
3210
3211 * configure.in (AC_CHECK_HEADERS): Add time.h.
3212 (AC_HEADER_TIME): Add check.
3213 * configure, config.in: Regenerate.
3214 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3215
3216 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3217 * configure, config.in: Regenerate.
3218 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3219 * strtol.c, strtoul.c: #include "config.h". Portably #include
3220 <limits.h> and/or <sys/param.h>.
3221 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 3222
7d3ffcaf
JL
3223 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3224 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3225 * configure, config.in: Regenerate.
3226 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3227
b1233257
JL
3228 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3229
ae7d06ad
NC
32302000-07-21 Mike Stump <mrs@wrs.com>
3231
3232 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3233 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3234
32352000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3236
3237 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3238
3239 * setenv.c (setenv): Initialize variable `ep'.
3240
3241 * sigsetmask.c (abort): Prototype.
3242
3243 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3244 __STDC__ for stdarg.h include.
3245 (int_vasprintf): Prototype.
3246 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3247 definition. Cast `global_total_width' in comparison.
3248 (main): Prototype. Return a value.
3249
3250 * vfork.c (fork): Prototype.
3251
3252 * xexit.c: Include config.h.
3253
9adf30b2
JL
32542000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3255
3256 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3257 and print it with %u.
3258
2ed78d1b
HPN
32592000-07-17 Hans-Peter Nilsson <hp@axis.com>
3260
3261 * testsuite/regress-demangle (failed test): Show result and
3262 expected output.
3263
0473bdf7
AH
32642000-07-07 Andrew Haley <aph@cygnus.com>
3265
3266 * cplus-dem.c (main): fflush() after emitting last char before
3267 waiting for input.
3268
03d5f569
JM
32692000-06-28 Alex Samuel <samuel@codesourcery.com>
3270
3271 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3272 (demangle_name): Handle <substitution> followed by
3273 <unqualified-template-name>.
3274 (demangle_type): Follow special substitutions with
3275 <class-enum-type>
3276 (demangle_subtitution): Set template_p for special substitutions.
3277 (main): Fix typos.
ae7d06ad 3278
03d5f569
JM
32792000-06-27 Alex Samuel <samuel@codesourcery.com>
3280
3281 * cp-demangle.c (demangle_special_name): Swap base and derived
3282 class when demangling construction vtables.
3283
32842000-06-21 Alex Samuel <samuel@codesourcery.com>
3285
3286 * cp-demangle.c: Don't include ctype.h.
3287 (IS_DIGIT): New macro.
3288 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3289 instead of isdigit and isalpanum.
3290 (demangling_def): Make name and next const pointers.
3291 (STATUS_ALLOCATION_FAILED): New status code.
3292 (dyn_string_append_space): Handle failure in
3293 dyn_string_append_char.
3294 (int_to_dyn_string): Likewise. Change return value to status_t.
3295 (string_list_new): Handle failure of dyn_string_init.
3296 (result_close_template_list): Change return type to status_t.
3297 Handle failure in dyn_string_append.
3298 (result_push): Change return value to status_t. Handle failure in
3299 string_list_new. Handle failure of result_push throughout.
3300 (substitution_add): Change return value to status_t. Handle
3301 dyn_string failures. Handle failure of substitution_add
3302 throughout.
3303 (template_arg_list_new): Return NULL on allocation failure.
3304 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3305 Handle error result throughout.
3306 (result_append): Likewise.
3307 (result_append_char): Likewise.
3308 (result_append_space): Likewise.
3309 (demangling_new): Make argument a const pointer. Handle
3310 allocation failures.
3311 (demangle_template_args): Handle failure in template_arg_list_new
3312 and result_close_template_list.
3313 (demangle_discriminator): Return if int_to_dyn_string fails.
3314 (cp_demangle): Likewise.
3315 (cp_demangle_type): New function.
3316 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3317 memory allocation failure.
3318 (main): Likewise.
3319 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3320 IN_LIBGCC2.
3321 (dyn_string_init): Change return value to int. Handle
3322 RETURN_ON_ALLOCATION_FAILURE case.
3323 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3324 (dyn_string_release): Delete the dyn_string.
3325 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3326 (dyn_string_copy): Change return type to int.
3327 (dyn_string_copy_cstr): Likewise.
3328 (dyn_string_prepend): Likewise.
3329 (dyn_string_prepend_cstr): Likewise.
3330 (dyn_string_insert): Likewise.
3331 (dyn_string_insert_cstr): Likewise.
3332 (dyn_string_append): Likewise.
3333 (dyn_string_append_cstr): Likewise.
3334 (dyn_string_append_char): Likewise.
3335 (dyn_string_substring): Likewise.
ae7d06ad 3336
eb383413 33372000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 3338
eb383413
L
3339 * cp-demangle.c (demangle_operator_name): Add spaces before
3340 names beginning with a letter: delete, delete[], new, new[],
3341 sizeof.
3342 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 3343
eb383413
L
3344Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3345
3346 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3347
3348Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3349
3350 * cp-demangle.c (stdio.h): File included unconditionaly.
3351 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3352 * dyn-string.c (stdio.h): File included.
3353 * partition.c (partition_print): No `&' needed to take the address of
3354 a function.
3355
33562000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3357
3358 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 3359
eb383413
L
3360 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3361
3362 * cp-demangle.c (demangle_char): Change parameter from char to int.
3363 (demangle_expression, demangle_expr_primary): Remove extra
3364 semi-colon in prototype.
3365
3366 * dyn-string.c (dyn_string_append_char): Change parameter from
3367 char to int.
3368
3369 * memcmp.c (memcmp): Constify.
3370
3371 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3372 __extension__.
3373
3374 * partition.c (elem_compare): Prototype. Don't cast away
3375 const-ness.
3376
3377 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 3378
eb383413
L
33792000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3380
3381 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3382
3383 * cp-demangle.c: Include demangle.h.
3384 (template_arg_list_new): DeANSIfy.
3385 (cp_demangle): Make static and add prototype.
3386 (operator_code, operators): Constify.
3387 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3388
33892000-06-05 Alex Samuel <samuel@codesourcery.com>
3390
3391 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3392 unsigned char.
3393 (demangle_unqualified_name): Likewise.
3394 (demangle_number_literally): Likewise.
3395 (demangle_type): Likewise.
3396 (demangle_substitution): Likewise.
3397 (is_mangled_char): Likewise, for isalnum.
3398
33992000-06-04 Alex Samuel <samuel@codesourcery.com>
3400
3401 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3402 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3403 (cp-demangle.o): New dependency.
3404 (dyn-string.o): Likewise.
3405
3406 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3407
3408 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3409 demangler.
3410 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3411 demangling mode.
3412 (gnu_new_abi_symbol_characters): New function.
3413 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3414 file.
3415 * cp-demangle.c: New file.
ae7d06ad 3416
f03aa80d
AC
3417Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3418
3419 * floatformat.c: Add name to each floatformat field.
3420
77bfb694
JL
3421Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3422
3423 * Makefile.in (objalloc.o): Depend on config.h
3424
5c82d20a
ZW
34252000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3426
eb383413 3427 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
3428 if HAVE_STRING_H.
3429 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3430 * objalloc.c: Include config.h. Include stdlib.h and don't
3431 declare malloc or free if HAVE_STDLIB_H.
3432 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3433 else declare malloc without prototype. Include string.h if
3434 HAVE_STRING_H, else declare memset without prototype. Don't
3435 include stddef.h.
3436
eb383413
L
34372000-05-23 Mike Stump <mrs@wrs.com>
3438
3439 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 3440 -j3.
eb383413
L
3441
34422000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3443
3444 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3445
34462000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3447
ae7d06ad 3448 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
3449 probably zero, also eliminate a warning on alpha.
3450
34512000-05-15 David Edelsohn <edelsohn@gnu.org>
3452
3453 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3454 on $(enable_shared).
3455
34562000-05-10 Jakub Jelinek <jakub@redhat.com>
3457
3458 * config.table: Use mh-sparcpic for sparc*-*-*.
3459
34602000-05-08 Nick Clifton <nickc@cygnus.com>
3461
3462 * Makefile.in (CFILES): Add strncmp.c.
3463 (NEEDED): Add strncmp.
3464
34652000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 3466
eb383413
L
3467 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3468 Cast the arguments to `islower' to `unsigned char'.
3469 (print_demangler_list): Prototype.
3470
3471Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3472
3473 * sort.c (UCHAR_MAX): Provide fallback definition.
3474
34752000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
3476
3477 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3478 SUBDIRS.
3479
eb383413
L
34802000-04-28 Kenneth Block <block@zk3.dec.com>
3481 Jason Merrill <jason@casey.cygnus.com>
3482
ae7d06ad
NC
3483 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3484 (cplus_demangle_set_style): New function for setting style.
3485 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
3486
34872000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3488
3489 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3490
3491 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3492 (libiberty_AC_FUNC_STRNCMP): Invoke.
3493
3494 * strncmp.c: New file.
3495
3496Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3497
3498 * hashtab.c (htab_expand): Add prototype.
3499 (find_empty_slot_for_expand): Likewise.
3500
35012000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3502
3503 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3504 match prototype.
3505 (htab_expand): Cast the return value of xcalloc.
3506
35072000-04-24 Mark Mitchell <mark@codesourcery.com>
3508
3509 * hashtab.c (hash_pointer): New function.
3510 (eq_pointer): Likewise.
3511 (htab_hash_pointer): New variable.
3512 (htab_eq_pointer): Likewise.
3513
35142000-04-23 Mark Mitchell <mark@codesourcery.com>
3515
3516 * sort.c (sort_pointers): Fix endianness bugs.
3517
3518 * sort.c: New file.
3519 * Makefile.in (CFILES): Add sort.c
3520 (REQUIRED_OFILES): Add sort.o.
3521 (sort.o): New target.
3522
19be4303
JL
35232000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3524
3525 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3526 4.3BSD systems.
3527
eb383413
L
3528Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3529
3530 * hashtab.c: Various minor cleanups.
3531 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3532 (htab_find_slot): Likewise.
3533
35342000-04-16 Dave Pitts <dpitts@cozx.com>
3535
3536 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 3537
afe36a78
RH
35382000-04-05 Richard Henderson <rth@cygnus.com>
3539
3540 * splay-tree.c (splay_tree_remove): New.
3541
eb383413
L
35422000-03-30 Mark Mitchell <mark@codesourcery.com>
3543
3544 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3545 codes.
3546 (htab_find_with_hash): Likewise.
3547 (htab_find_slot_with_hash): Likewise.
ae7d06ad 3548
eb383413
L
35492000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3550
3551 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3552 unless it will be used. Rearrange loop for better
3553 optimization.
3554 (higher_prime_number): Add static prototype.
3555
b4fe2683
JM
3556Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3557
3558 * Makefile.in (partition.o): Depend on config.h
3559
35602000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3561
3562 * hashtab.c (find_empty_slot_for_expand): New function.
3563 (htab_expand): Use it instead of htab_find_slot.
3564 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3565 argument HASH.
3566 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3567 (htab_find): New wrapper function.
3568 (htab_find_slot): Likewise.
3569 (htab_traverse): Pass slot, not entry, to called function.
3570
35712000-03-09 Alex Samuel <samuel@codesourcery.com>
3572
3573 * Makefile.in (CFILES): Add partition.c.
3574 (REQUIRED_OFILES): Add partition.o.
3575 (partition.o): New rule.
3576 * partition.c: New file.
ae7d06ad 3577
b4fe2683
JM
35782000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3579
3580 * hashtab.c (htab_create): Set del_f.
3581 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3582 Use it.
3583
35842000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3585
3586 * hashtab.c: Remove debugging variables (all_searches,
3587 all_collisions, all_expansions). Delete
3588 all_hash_table_collisions.
3589 (create_hash_table, delete_hash_table, empty_hash_table,
3590 find_hash_table_entry, remove_element_from_hash_table_entry,
3591 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3592 hash_table_elements_number, hash_table_collisions): Rename to:
3593 htab_create, htab_delete, htab_empty, htab_find_slot,
3594 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3595 htab_elements, htab_collisions.
3596 (htab_find): New function, handles common case where you don't
3597 plan to add or delete an entry.
3598 (htab_expand): Don't create a whole new table, just a new
3599 entry vector.
3600 (htab_find_slot): Simplify logic.
3601
08372f14
ILT
36021999-08-03 Ian Lance Taylor <ian@zembu.com>
3603
3604 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3605 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3606
3607 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3608 $(TARGETLIB)n so it works on MSDOS.
3609 (install_to_tooldir): Likewise.
3610
9c8ac5a9
ILT
36111999-07-21 Ian Lance Taylor <ian@zembu.com>
3612
3613 From Mark Elbrecht:
3614 * makefile.dos: Remove; obsolete.
8f36e47c 3615 * configure.bat: Remove; obsolete.
9c8ac5a9 3616
0c0a36a4
ILT
36171999-07-11 Ian Lance Taylor <ian@zembu.com>
3618
3619 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3620 warning.
3621
36222000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3623
3624 * pexecute.c: Conditionally include string.h.
b4fe2683 3625 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
3626
36272000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3628
3629 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3630 we're using gcc.
3631
3632 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3633
36341999-12-27 Geoff Keating <geoffk@cygnus.com>
3635
3636 * vasprintf.c (int_vasprintf): Don't re-read the format character
3637 as this mishandles strings like '%%s'.
3638
36391999-12-05 Mark Mitchell <mark@codesourcery.com>
3640
3641 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3642 rather than struct splay_tree_node.
3643 (splay_tree_insert): Use struct splay_tree_s rather than struct
3644 splay_tree.
3645
3646Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3647
3648 * hashtab.c (sys/types.h): File included.
3649
36501999-11-22 Jason Merrill <jason@casey.cygnus.com>
3651
3652 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3653 BSD license, pursuant with
3654
3655 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3656
3657Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3658
3659 * hashtab.c: Include stdio.h.
3660
3661Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3662
3663 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3664
3665Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3666
3667 * xstrdup (sys/types.h): Include this file.
3668
36691999-10-28 Nathan Sidwell <nathan@acm.org>
3670
3671 * Makefile.in (SUBDIRS): New macro.
3672 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3673 avoid multiple subdirectory cleaning.
3674 (*-subdir): Use SUBDIRS.
3675
36761999-10-25 Jim Kingdon <http://developer.redhat.com/>
3677
3678 * cplus-dem.c: Move declarations of standard_symbol_characters and
3679 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3680 warnings.
3681
36821999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3683
3684 * hashtab.c (find_hash_table_entry): When returning a
3685 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3686 (clear_hash_table_slot): New function which deletes an entry
3687 by its position in the table, not its value.
3688 (traverse_hash_table): New function which calls a hook
3689 function for every live entry in the table.
3690
36911999-10-19 Mark Mitchell <mark@codesourcery.com>
3692
3693 * cplus-dem.c (INTBUF_SIZE): New macro.
3694 (string_append_template_idx): New function.
3695 (demangle_expression): Likewise.
3696 (demangle_integral_value): Use it.
3697 (demangle_real_value): New function, split out from ...
3698 (demangle_template_value_parm): ... here. Use
3699 string_append_template_idx. Use demangle_real_value.
3700 (demangle_template): Use string_append_template_idx.
3701 (demangle_qualified): Use consume_count_with_underscores.
3702 (get_count): Tweak formatting.
3703 (do_type): Use string_append_template_idx.
b4fe2683 3704
0c0a36a4
ILT
37051999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3706
3707 * calloc.c: Add a public domain notice.
3708
3709Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3710
3711 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3712
3713Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3714
3715 * Makefile.in (CFILES): Add hashtab.c
3716 (REQUIRED_OFILES): Add hashtab.o
3717 (hashtab.o): Add dependencies.
3718 * hashtab.c: New file
3719
3720Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3721
3722 * basename.c (DIR_SEPARATOR): New macro.
3723 (DIR_SEPARATOR_2): Likewise.
3724 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3725 (IS_DIR_SEPARATOR): Likewise.
3726 (main): Handle MSDOS style pathname.
3727
37281999-10-11 Mark Mitchell <mark@codesourcery.com>
3729
3730 * cplus-dem.c (do_type): Handle pointer to member types whose
3731 enclosing classes have namespace scope.
3732
3733Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3734
3735 * config.table: Provide a backup shell for executing move-if-change.
3736
37371999-10-02 Mark Mitchell <mark@codesourcery.com>
3738
3739 * xmalloc.c (xmalloc): Fix spelling error.
3740 (xcalloc, xrealloc): Likewise.
3741
37421999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3743
3744 * cplus-dem.c (fancy_abort, demangle_integral_value,
3745 demangle_arm_hp_template, recursively_demangle,
3746 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3747 (program_name, program_version, fatal): Constify a char*.
3748 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3749 (main): Call return, not exit.
3750
37511999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3752
3753 * choose-temp.c: Remove obsolete comment about gcc.
3754 (make_temp_file): Constify a char*.
3755
3756Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3757
3758 * xmemdup.c: Include sys/types.h.
3759
37601999-09-07 Jeff Garzik <jgarzik@pobox.com>
3761
3762 * xmemdup.c: New xmemdup function.
3763 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
3764
3765Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
3766
b4fe2683 3767 * config.table: Add openedition target.
0c0a36a4
ILT
3768 * config/mh-openedition: New file.
3769
3770Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
3771
3772 * pexecute.c (pexecute): Fill in temp_base when needed.
3773
37741999-08-31 Richard Henderson <rth@cygnus.com>
3775
3776 * getpwd.c: Check HAVE_GETCWD before defining it away.
3777
37781999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3779
3780 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
3781 (REQUIRED_OFILES): Add getpwd.o.
3782 (getpwd.o): Add target.
3783
3784 * configure.in (AC_PREREQ): Bump to 2.13.
3785 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
3786
3787 * getpwd.c: New file, moved here from gcc.
3788
37891999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3790
3791 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
3792 comparing against a signed quantity.
3793 (arm_special): Likewise.
3794 (demangle_fund_type): Likewise.
3795 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 3796 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
3797 (main): Constify variable `valid_symbols'.
3798
3799Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
3800
3801 * strtoul.c (strtoul): Add parentheses around && within ||.
3802
3803Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
3804
3805 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
3806 libdir, libsubdir and tooldir.
3807
38081999-08-01 Mark Mitchell <mark@codesourcery.com>
3809
3810 * splay-tree.c (splay_tree_insert): Return the new node.
3811
35ca97ea
RH
38121999-07-14 Richard Henderson <rth@cygnus.com>
3813
b4fe2683 3814 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
3815 prototyping directly.
3816 * choose-temp.c: Conditionally include string.h.
3817
0c0a36a4
ILT
38181999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3819
3820 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3821
af32ff69
ILT
38221999-07-11 Ian Lance Taylor <ian@zembu.com>
3823
3824 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3825 warning.
3826
0c0a36a4
ILT
38271999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3828
3829 * Makefile.in (needed-list): Only include stuff we actually need
3830 for libstdc++.
3831
38321999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3833
3834 * configure.in (checkfuncs): Add gettimeofday.
3835 * config.in, configure: Regenerated.
3836
3837Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3838
3839 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3840 the test fails.
3841 * configure: Regenerate.
3842
38431999-06-10 Mike Stump <mrs@wrs.com>
3844
3845 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3846 parallel builds.
3847
38481999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3849
3850 * putenv.c: Include ansidecl.h to define `const'.
3851 * setenv.c: Likewise.
3852
3853Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3854
3855 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3856 * configure.in (funcs): Add putenv and setenv.
3857 (AC_CHECK_FUNCS): Check for putenv and setenv.
3858 * configure: Rebuilt.
3859 * putenv.c setenv.c: New files.
3860
3861 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3862 bytes of space using malloc.
3863
3864Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3865
3866 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3867 the *mangled pointer beyond the end of the string. Clean up code to
3868 match prevailing coding style.
3869
38701999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3871
3872 * tmpnam.c (L_tmpnam): Fix typo.
3873
3874Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3875
3876 * cplus-dem.c (standard_symbol_characters): Renamed from
3877 standard_symbol_alphabet. No longer modify TABLE.
3878 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3879 modify TABLE.
3880 (main): Corresponding changes. Use strchr to determine if a
3881 character is valid.
3882
e9868447
JB
38831999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3884
3885 * cplus-dem.c (main): Use table lookup to distinguish identifier
3886 characters from non-identifier characters.
3887 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3888
33fbbfbc
RH
3889Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3890
3891 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3892 * getruntime.c: Only attempt to include sys/resource.h and
3893 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3894 are defined.
3895
0c0a36a4
ILT
3896Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3897
3898 * configure.in (alloca detection): Handle alloca directly for interix.
3899 * configure: Rebuilt.
3900
3901Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3902
3903 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3904
252b5132
RH
39051999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3906
3907 Fix from Dale Hawkins:
b4fe2683 3908 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
3909 reallocated properly if we use it again.
3910
3911 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3912 stricter about syntax. Always null-terminate string.
3913
c1687039
ILT
3914Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3915
3916 * configure.in (checkfuncs): Check for sbrk.
3917 * config.in: Rebuilt.
3918 * configure: Likewise.
3919 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3920
0c0a36a4
ILT
39211999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3922
3923 Fix from Marcus Daniels:
3924 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3925 identifier looking for another underscore.
3926
3927Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3928
3929 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3930 * xmalloc.c: Likewise.
3931 (xcalloc): UWIN has sbrk.
3932 (xrealloc): Fix guard macro.
3933
252b5132
RH
39341999-04-11 Richard Henderson <rth@cygnus.com>
3935
3936 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3937 or <alloca.h>.
3938 * clock.c (GNU_HZ): New definition.
3939 (clock): Use it.
3940 * getruntime.c: Likewise.
3941
3942 * config.table: Use mh-beos.
3943 * config/mh-beos: New file.
3944
0c0a36a4
ILT
39451999-04-11 Mark Mitchell <mark@codesourcery.com>
3946
3947 * cplus-dem.c (demangle_template_value_parm): Handle
3948 pointers-to-members.
3949 (do_type): Handle template parameters as qualifiers.
3950
252b5132
RH
39511999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3952
3953 * cplus-dem.c: Attempt to handle overflows in counts with some
3954 semblance of grace.
3955 (consume_count): Detect overflows. Return -1 to indicate errors,
3956 instead of zero.
3957 (demangle_template_value_parm, demangle_template): Handle change
3958 to consume_count's return convention.
3959
0c0a36a4
ILT
39601999-04-05 Tom Tromey <tromey@cygnus.com>
3961
3962 * testsuite/regress-demangle: New file.
3963 * testsuite/demangle-expected: New file.
252b5132 3964
0c0a36a4
ILT
3965 * Makefile.in (all, check, installcheck, info, install-info,
3966 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3967 distclean, maintainer-clean, realclean): Depend on corresponding
3968 `-subdir' target.
3969 (all-subdir check-subdir installcheck-subdir info-subdir
3970 install-info-subdir clean-info-subdir dvi-subdir
3971 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3972 distclean-subdir maintainer-clean-subdir): New target.
3973 * testsuite/Makefile.in: New file.
3974 * configure: Rebuilt.
3975 * configure.in: Create testsuite/Makefile.
252b5132
RH
3976
39771999-04-02 Mark Mitchell <mark@codesourcery.com>
3978
3979 * splay-tree.h (splay_tree_compare_pointers): Define.
3980
39811999-03-30 Mark Mitchell <mark@codesourcery.com>
3982
3983 * splay-tree.c (splay_tree_compare_ints): Define.
3984
39851999-03-30 Tom Tromey <tromey@cygnus.com>
3986
3987 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3988 don't advance input pointer.
3989 (demangle_class_name): If consume_count didn't find a count, do
3990 nothing. Don't bother with `strlen' sanity check; consume_count
3991 does it for us.
3992
39931999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3994
3995 From Art Haas <ahaas@neosoft.com>:
3996 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3997 when doing arm or hp style.
3998 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 3999
252b5132
RH
4000Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
4001
4002 * pexecute.c (__CYGWIN32__): Rename to
4003 (__CYGWIN__): this.
4004 * xmalloc.c: Likewise.
4005
4006 Changes to support i386-pc-uwin.
4007 * configure.in (*-*-uwin*): Workaround for vfork bug.
4008 * configure: Regenerate.
4009 * pexecute.c (pexecute): Be like standard Unix.
4010 (pwait): Likewise.
4011 * xmalloc.c (first_break): Define.
4012 (xmalloc_set_program_name): Use.
4013 (xmalloc): Use.
4014
4015Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4016
4017 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
4018
4019Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
4020
4021 * config.table: Check cygwin*, not cygwin32*.
4022
4023Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
4024
4025 * Makefile.in: Change mkstemp -> mkstemps.
4026
4027Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
4028
4029 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
4030 * configure.in (funcs): Check for and conditionally add mkstemps to
4031 the list of functions libiberty will provide.
4032 * configure: Rebuilt.
b4fe2683 4033
252b5132
RH
4034Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
4035
b4fe2683 4036 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
4037 platforms that don't have HZ.
4038 * getruntime.c (HZ): Likewise.
4039
4040Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
4041
4042 * Makefile.in (xstrdup.o): Depend on config.h.
4043
4044Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
4045
4046 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
4047 freeing it.
4048
4049Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4050
4051 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
4052
4053Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4054
4055 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
4056 splay-tree.o.
4057
40581999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4059
4060 * configure.in: Require autoconf 2.12.1 or higher.
4061
40621998-12-30 Michael Meissner <meissner@cygnus.com>
4063
4064 * random.c (NULL): Don't redefine NULL if it is already defined.
4065
4066Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4067
4068 * argv.c (buildargv): Cast the result of alloca in assignment.
4069
4070 * choose-temp.c: Include stdlib.h.
4071
4072 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
4073 (snarf_numeric_literal): Constify first parameter.
4074 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4075 int, not a char.
252b5132
RH
4076 (demangle_qualifier): Likewise.
4077 (demangle_signature): Cast the argument of a ctype function to
4078 unsigned char.
4079 (arm_pt): Add parens around assignment used as truth value.
4080 (demangle_arm_hp_template): Constify variable `args'.
4081 (do_hpacc_template_const_value): Cast the argument of a ctype
4082 function to unsigned char.
4083 (do_hpacc_template_literal): Remove unused variable `i'.
4084 (snarf_numeric_literal): Constify parameter `args'.
4085 Cast the argument of a ctype function to unsigned char.
4086
4087 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 4088 avoid ambiguous `else'.
252b5132
RH
4089
4090 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
4091 `cstart' and `cend' to unsigned char. Cast the argument of macro
4092 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
4093
4094 * objalloc.c (free): Add prototype.
4095
4096Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4097
4098 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4099
4100Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
4101
4102 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 4103 doesn't exist.
252b5132 4104 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 4105
252b5132
RH
4106Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4107
4108 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
4109 bumping the pointer we read from. Also prepend these codes,
4110 as we do in other places.
4111
41121998-12-18 Nick Clifton <nickc@cygnus.com>
4113
4114 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
4115 'const char *' in order to match its usage when calling siblings.
4116 (snarf_numeric_literal): Make first arg 'const char **' in order
4117 to match usage.
4118
4119Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4120
4121 * choose-temp.c: Don't check IN_GCC anymore.
4122
4123 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
4124 * memchr.c (memchr): Likewise.
4125 * memcpy.c (memcpy): Likewise.
4126 * memmove.c (memmove): Likewise.
4127
4128 * mkstemp.c: Don't check IN_GCC anymore.
4129 * pexecute.c: Likewise.
4130 * splay-tree.c: Likewise.
4131
4132 * strchr.c (strchr): Use `const', not `CONST'.
4133 * strrchr.c (strrchr): Likewise.
4134 * strtol.c (strtol): Likewise.
4135 * strtoul.c (strtoul): Likewise.
4136
4137Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
4138 Elena Zannoni <ezannoni@cygnus.com>
4139 Stan Shebs <shebs@cygnus.com>
4140 Edith Epstein <eepstein@cygnus.com>
4141 Andres MacLeod <amacleod@cygnus.com>
4142 Satish Pai <pai@apollo.hp.com>
4143
4144 * HP aCC demangling support.
4145 * cplus-dem.c
4146 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
4147 demangling correctly when -edg specified; set the demangling style
4148 when user specifies 'edg'. Set strip_underscore to
4149 prepends_underscore, if not HPUXHPPA. Set
4150 current_demangling_style to hp_demangling if HPUXHPPA. Set
4151 current demangling style correctly if the switch is hp. Read
4152 label correctly also in the HP style case.
252b5132 4153 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 4154 function.
252b5132 4155 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 4156 style for this case is the same as ARM.
252b5132
RH
4157 (demangle_args): handle EDG_DEMANGLING style; support HP style.
4158 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
4159 demangle_arm_pt.); check and set value of temp_start field in
4160 multiple places. Also, when ceching for end of template args,
4161 check to see if at end of static member of template class.
252b5132 4162 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 4163 include template args in string defining class.
252b5132
RH
4164 (demangle_class_name): use demangel_arm_hp_template.
4165 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
4166 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4167 Handle EDG_DEMANGLING style. Handle constructor and destructor
4168 ops for HP style.
252b5132 4169 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
4170 styles. global destructor and constructor for HP style are same
4171 as for ARM style. Same for local variables.
252b5132
RH
4172 (demangle_qualified): handle EDG_DEMANGLING style.
4173 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
4174 cases '1' - '9' : initialize the temp_start field to -1 and handle
4175 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4176 and AUTO_DEMANGLING styles. If expecting a function and managed
4177 to demangle the funct args, then handle the LUCID_DEMANGLING,
4178 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4179 class name after "Lnnn_ in HP style case. HP style too needs to
4180 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 4181 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 4182 value param for HP/aCC.
252b5132 4183 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 4184 literal parameter for HP aCC.
252b5132
RH
4185 (recursively_demangle): new function
4186 (snarf_numeric_literal): new function.
4187 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 4188 to message.
252b5132
RH
4189
4190Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4191
4192 * pexecute.c: Remove obsolete ifdefed cygwin code.
4193
4194Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4195
4196 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4197 * cplus-dem.c: Likewise. Conform to libiberty.h.
4198 * pexecute.c: Likewise.
4199 * splay-tree.c: Likewise.
4200
42011998-11-25 Mike Stump <mrs@wrs.com>
4202
4203 * Makefile.in (splay-tree.o): Add config.h dependency.
4204
4205Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4206
4207 * configure.in: Use AC_PREREQ(2.12.1).
4208
42091998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4210
b4fe2683 4211 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
4212
4213Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4214
4215 * mpw.c (mpw_access): Add missing parens.
4216
4217Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4218
4219 * configure.in: Call AC_HEADER_SYS_WAIT.
4220
4221 * pexecute.c: Include sys/wait.h when !IN_GCC.
4222
4223Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4224
4225 * pexecute.c: revert back to checking old Cygwin
4226 preprocessor symbol until some time has passed.
4227
4228Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4229
4230 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4231 since it will now support similar constructs.
4232
4233Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4234
4235 * configure.in: Check for calloc.
4236
4237 * calloc.c: New file.
4238
4239 * xmalloc.c (xcalloc): New function.
4240
4241Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4242
4243 *cplus-dem.c (demangle_prefix): Use the last "__"
4244 in the mangled name when looking for the signature. This allows
4245 template names to begin with "__".
4246
42471998-11-08 Mark Mitchell <mark@markmitchell.com>
4248
4249 * cplus-dem.c (type_kind_t): Add tk_reference.
4250 (demangle_template_value_parm): Handle it.
4251 (do_type): Use it for references, instead of tk_pointer.
4252
4253 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4254 not internal_cplus_demangle.
4255
4256Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4257
4258 * choose-temp.c: Don't include gansidecl.h.
4259 * mkstemp.c: Likewise.
4260 * pexecute.c: Likewise.
4261
4262Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4263
b4fe2683
JM
4264 * configure.in: detect cygwin* instead of cygwin32*
4265 * configure: regenerate
252b5132
RH
4266
4267Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4268
4269 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
4270 whether to include config.h. Possibly include unistd.h in the
4271 !IN_GCC case. Define VFORK_STRING as a printable function call
4272 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4273 defined, include vfork.h. If VMS is defined, define vfork()
4274 appropriately. Remove vfork check on USG, we're using autoconf.
4275 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4276 locally what string to use.
252b5132
RH
4277
42781998-10-26 Mark Mitchell <mark@markmitchell.com>
4279
4280 * splay-tree.c: Tweak include directives to make sure declarations of
4281 xmalloc and free are available.
4282
42831998-10-25 Mark Mitchell <mark@markmitchell.com>
4284
4285 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4286 anonymous namespaces.
4287
42881998-10-23 Mark Mitchell <mark@markmitchell.com>
4289
4290 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4291 with type_quals.
4292 (TYPE_UNQUALIFIED): New macro.
4293 (TYPE_QUAL_CONST): Likewise.
4294 (TYPE_QUAL_VOLATILE): Likewise.
4295 (TYPE_QUAL_RESTRICT): Likewise.
4296 (code_for_qualifier): New function.
4297 (qualifier_string): Likewise.
4298 (demangle_qualifier): Likewise.
4299 (internal_cplus_demangle): Use them.
4300 (demangle_signature): Likewise.
4301 (demangle_template_value_parm): Likewise.
4302 (do_type): Likewise.
4303 (demangle_fund_type)): Likewise.
4304
4305Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4306
4307 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4308 to match prototype.
4309
43101998-10-21 Mark Mitchell <mark@markmitchell.com>
4311
4312 * splay-tree.c: New file.
4313 * Makefile.in (CFILES): Add it.
4314 (REQUIRED_OFILES): Likewise.
4315 (splay-tree.o): Add dependencies.
4316
4317Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4318
4319 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4320 range of 'K' index.
4321
4322Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4323
4324 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4325
4326 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4327 `unsigned char'.
4328 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4329 comparing against one.
4330 (cplus_mangle_opname): Likewise.
4331 (demangle_integral_value): Cast argument of ctype macro to
4332 `unsigned char'.
4333 (demangle_template_value_parm): Likewise.
4334 (demangle_template): Initialize variable `bindex'. Cast the
4335 result of `strlen' to (int) when comparing against one. Remove
4336 unused variable `start_of_value_parm'.
4337 (demangle_class_name): Cast the result of `strlen' to (int) when
4338 comparing against one.
4339 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4340 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4341 when comparing against one.
4342 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4343 (get_count): Likewise.
4344 (do_type): Likewise. Cast the result of `strlen' to (int) when
4345 comparing against one.
4346 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4347 (demangle_function_name): Cast the result of `strlen' to (int)
4348 when comparing against one.
4349
4350 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4351 comparing against one.
4352
4353Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4354
b4fe2683
JM
4355 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4356 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4357 * config.in, configure: Rebuilt.
252b5132
RH
4358
4359 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4360 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4361 * config.in, configure: Rebuilt.
4362
4363Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4364
b4fe2683 4365 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
4366
4367Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4368
4369 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4370
4371Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4372
4373 * Merge egcs & devo libiberty.
4374