*** empty log message ***
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
563d09a5
EB
12007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
2 Eric Botcazou <ebotcazou@libertysurf.fr>
3
4 PR other/16513
5 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
6 Install headers in multilib independent location.
7
1f92e180
DD
82007-02-26 DJ Delorie <dj@redhat.com>
9
10 * configure.ac: add djgpp-specific results, so we don't have to
11 link during a cross compilation.
12 * configure: Regenerated.
13
6dd7f013
DD
142007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15
16 * hex.c: Fix typo.
17 * choose-temp.c: Likewise.
18 * functions.texi: Regenerate.
19
53d7966f
VP
202007-01-31 Vladimir Prus <vladimir@codesourcery.com>
21
22 * pex-common.h (struct pex_obj): New fields
23 stderr_pipe and read_err.
24 * pex-common.c (pex_init_common): Initialize
25 stderr_pipe.
26 (pex_run_in_environment): Add error checking
27 for PEX_STDERR_TO_PIPE. Create a pipe
28 for stderr if necessary.
29 (pex_read_err): New.
30 (pex_free): Close read_err.
31 * pexecute.txh: Document changes.
32 * functions.texi: Regenerated.
33
71f2e6f4
BE
342007-01-31 Ben Elliston <bje@au.ibm.com>
35
36 * strsignal.c (psignal): Change type of signo to int.
37 * functions.texi: Regenerate.
38
208c1674
DD
392007-01-29 Simon Baldwin <simonb@google.com>
40
41 * cp-demangle.h (cplus_demangle_operators): External definition
42 suppressed if not building for libstdc++.
43 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
44 to demangling, provides a malloc-less version of __cxa_demangle.
45 (cplus_demangle_print_callback): Public callback version of
46 cplus_demangle_print.
47 (struct d_growable_string): New growable string structure.
48 (d_growable_string_init): New function, provides support for
49 growable strings separate from print info.
50 (d_growable_string_resize): Likewise.
51 (d_growable_string_append_buffer): Likewise.
52 (d_growable_string_callback_adapter):): Likewise.
53 (d_print_init): New print info initialization function.
54 (d_print_error): Macro replace by inline function.
55 (d_print_saw_error): Likewise.
56 (d_append_char): Likewise.
57 (d_append_buffer): Likewise.
58 (d_append_string): New inline function, replaces the
59 d_append_string_constant macro.
60 (d_flush_buffer): New function, flushes buffer to callback.
61 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
62 for unsupported dynamic arrays replaced by alloca().
63 (d_demangle): Return string length estimating removed.
64 (d_dump): Moved error case handling from call site into function.
65 (d_print_resize): Function removed.
66 (d_print_append_char): Likewise.
67 (d_print_append_buffer): Likewise.
68 (d_print_error): Likewise.
69 (d_print_comp): Added special case handling for Java arrays.
70 (java_demangle_v3): Removed string post-processing for Java arrays,
71 now replaced by special case handling in d_print_comp.
72 (cplus_demangle_v3_callback): Augmented interface to demangling,
73 provides a malloc-less version of cplus_demangle_v3.
74 (java_demangle_v3_callback): Augmented interface to demangling,
75 provides a malloc-less version of java_demangle_v3.
76
cc0732ba
BE
772007-01-12 Ben Elliston <bje@au.ibm.com>
78
0bbe7a79
BE
79 * pex-unix.c (writeerr): Cast write result to void.
80
cc0732ba
BE
81 * choose-temp.c (choose_temp_base): Check the result of the call
82 to mktemp rather than testing the length of the modified string.
2da20a1b 83
6ef6358e
GK
842006-12-20 Geoffrey Keating <geoffk@apple.com>
85
86 * cp-demangle.h: Add comment explaining what to do to avoid
87 overrunning string.
88 (d_check_char): New.
89 (d_next_char): Don't advance past trailing '\0'.
90 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
91 (d_nested_name): Likewise.
92 (d_special_name): Likewise.
93 (d_call_offset): Likewise.
94 (d_function_type): Likewise.
95 (d_array_type): Likewise.
96 (d_pointer_to_member_type): Likewise.
97 (d_template_param): Likewise.
98 (d_template_args): Likewise.
99 (d_template_arg): Likewise.
100 (d_expr_primary): Likewise.
101 (d_local_name): Likewise.
102 (d_substitution): Likewise.
103 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
104 * testsuite/test-demangle.c: Include sys/mman.h.
105 (MAP_ANONYMOUS): Define.
106 (protect_end): New.
107 (main): Use protect_end.
108 * testsuite/demangle-expected: Add testcases for overrunning
109 the end of the string.
110
d8f813d4
JR
1112006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
112 J"orn Rennecke <joern.rennecke@st.com>
113
114 PR driver/29931
115 * make-relative-prefix.c (make_relative_prefix_1): New function,
116 broken out of make_relative_prefix. Make link resolution dependent
117 on new parameter.
118 (make_relative_prefix): Use make_relative_prefix_1.
119 (make_relative_prefix_ignore_links): New function.
120
fb347196
VP
1212006-11-08 Vladimir Prus <vladimir@codesourcery.com>
122
123 * pex-win32.c (no_suffixes): Remove.
124 (std_suffixes): Add "" as first element.
125 (find_executable): Remove detection of already-present
126 extension. Try all suffixes in std_suffixes.
3c9f59e4 127
9e59254c
JB
1282006-11-07 Julian Brown <julian@codesourcery.com>
129
130 * floatformat.c (get_field): Fix segfault with little-endian word
131 order on 64-bit hosts.
132 (put_field): Likewise.
133 (min): Move definition.
134
3ac01eb2
DD
1352006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
136
137 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
138 (find_executable): Likewise.
139 (win32_spawn): Cast alloca return to (char**).
140 Replace malloc with XNEWVEC.
141 bcopy.c (bcopy): Add explict casts in assignments.
142
78de3ccc
DD
1432006-10-25 Ben Elliston <bje@au.ibm.com>
144
145 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
146
bff368bd
DD
1472006-10-10 Brooks Moses <bmoses@stanford.edu>
148
149 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
150 * testsuite/Makefile.in: Added empty "pdf" target.
151
e63f184e
DD
1522006-09-22 Ian Lance Taylor <ian@airs.com>
153
154 PR other/29176
155 * cp-demangle.c (d_substitution): Check for overflow when
156 computing substitution index.
157
069e4b19
CV
1582006-08-30 Corinna Vinschen <corinna@vinschen.de>
159
160 * configure.ac: Add case for Mingw as host.
161 * configure: Regenerate.
162
cb6c09ac
DD
1632006-08-27 Ian Lance Taylor <ian@airs.com>
164
165 PR driver/27622
166 * pex-common.h (struct pex_funcs): Add toclose parameter to
167 exec_child field.
168 * pex-common.c (pex_run_in_environment): Pass toclose to
169 exec_child.
170 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
171 * pex-unix.c (pex_unix_exec_child): Likewise.
172 * pex-msdos.c (pex_msdos_exec_child): Likewise.
173 * pex-win32.c (pex_win32_exec_child): Likewise.
174
175 PR other/28797
176 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
177 for a qualified member which is not a function.
178 * testsuite/demangle-expected: Add test case.
179
a7d421b8
DD
1802006-07-27 Jan Hubicka <jh@suse.cz>
181
182 PR rtl-optimization/28071
183 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
184 downsize the hashtable.
185
6816f995
AO
1862006-07-04 Peter O'Gorman <peter@pogma.com>
187
188 * Makefile.in: chmod 644 before ranlib during install.
189
7741be99
DD
1902006-06-02 Mark Shinwell <shinwell@codesourcery.com>
191
192 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
193 to environ.
194
014a8caf
DD
1952006-06-01 Mark Shinwell <shinwell@codesourcery.com>
196
197 * pex-common.c: New function pex_run_in_environment.
198 * pex-common.h: Add environment parameter to exec_child.
199 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
200 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
201 (pex_djgpp_exec_child): Pass environment to child process.
202 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
203 (pex_unix_exec_child): Pass environment to child process.
204 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
205 New function env_compare for comparing VAR=VALUE pairs.
206 (win32_spawn): Assemble environment block and pass to CreateProcess.
207 (spawn_script): Pass environment through to win32_spawn.
208 (pex_win32_exec_child): Pass environment through to spawn_script and
209 win32_spawn.
210 * functions.texi: Regenerate.
211 * pexecute.txh: Document pex_run_in_environment.
212
069c63e2
DD
2132006-05-28 Mark Shinwell <shinwell@codesourcery.com>
214
215 * mkstemps.c: Open temporary files in binary mode.
216
f6b66e90
DD
2172006-05-12 Anton Blanchard <anton@samba.org>
218
219 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
220 hold "int%u_t".
221
c77d28ac
JB
2222006-04-24 Julian Brown <julian@codesourcery.com>
223
224 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
225
3db2e6dd
DD
2262006-03-29 Jim Blandy <jimb@codesourcery.com>
227
b5d60b68 228 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
3db2e6dd
DD
229 (pex_init_common): Initialize obj->input_file.
230 (pex_run): Close any file opened by pex_input_file.
b5d60b68
DD
231 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
232 * pex-common.h (struct pex_obj): New field input_file.
3db2e6dd 233 (struct pex_funcs): New function ptr fdopenw.
b5d60b68
DD
234 * pex-unix.c (pex_unix_fdopenw): New function.
235 (funcs): List it as our fdopenw function.
236 * pex-win32.c (pex_win32_fdopenw): New function.
237 (funcs): List it as our fdopenw function.
238 * pex-djgpp.c (funcs): Leave fdopenw null.
239 * pex-msdos (funcs): Same.
240 * functions.texi: Regenerated.
3db2e6dd
DD
241
2422006-04-10 Jim Blandy <jimb@codesourcery.com>
243
244 * pex-common.c (temp_file): New function, containing guts of
245 pex-style temporary file name generation.
246 (pex_run): Use it.
247
545c9aee
DD
2482006-04-06 Carlos O'Donell <carlos@codesourcery.com>
249
250 * Makefile.in: Add install-html, install-html-am, and
251 install-html-recursive targets. Define mkdir_p and
252 NORMAL_INSTALL.
253 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
254 * configure: Regenerate.
255 * testsuite/Makefile.in: Add install-html and html targets.
256
8e1e9959
DD
2572006-03-31 Mark Mitchell <mark@codesourcery.com>
258
259 * pex-win32.c (<errno.h>): Include.
260 (fix_argv): Remove.
261 (argv_to_cmdline): New function.
262 (std_suffixes): New variable.
263 (no_suffixes): Likewise.
264 (find_executable): New function.
265 (win32_spawn): Likewise.
266 (spawn_script): Use win32_spawn instead of _spawnv[p].
267 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
268 (pex_win32_wait): Likewise.
269
57b126a3
DD
2702006-03-24 Jim Blandy <jimb@codesourcery.com>
271
272 * pex-common.c (pex_run): Simplify output name handling.
273
9223c945
DD
2742006-03-12 Jim Blandy <jimb@red-bean.com>
275
276 * pex-common.h (struct pex_obj): Doc fixes.
277
2782006-03-11 Jim Blandy <jimb@red-bean.com>
279
280 * functions.texi: Regenerate.
281
96f4851a
DD
2822006-02-21 Ben Elliston <bje@au.ibm.com>
283
284 * pexecute.c (pwait): Syntax fix for previous change.
285
1c7a49d2
DD
2862006-02-17 Uttam Pawar <uttamp@us.ibm.com>
287
288 * pexecute.c (pwait): Free vector pointer.
289 * partition.c (partition_print): Free class_elements pointer.
290
e27d251e
DD
2912006-02-11 Roger Sayle <roger@eyesopen.com>
292 R. Scott Bailey <scott.bailey@eds.com>
293 Bill Northcott <w.northcott@unsw.edu.au>
294
295 PR bootstrap/16787
296 * floatformat.c: Include <float.h> where available.
297 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
298
fd7d450d
DD
2992006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
300
301 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
302 supported.
303 * configure: Regenerated.
304
67d78caa
DD
3052006-01-20 Carlos O'Donell <carlos@codesourcery.com>
306
307 * testsuite/Makefile.in: Add test-expandargv test.
308 * testsuite/test-expandargv.c: New test.
309 * argv.c (expandargv): Check for errors with ferror,
310 rather than just by looking at return value from fread.
311
648c3dc0
DD
3122005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
313
314 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
315 to convert from "from".
316 (floatformat_to_double): Likewise.
317 (floatformat_from_double): Use explicit cast to convert from "to".
318
7887b2ce
DD
3192005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
320
321 PR java/9861
322 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
323 and include return type when found.
324 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
325 conditional logic to change printing order of return type.when
326 the DMGL_RET_POSTFIX option is present.
327 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
328 call.
329 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
330 * testsuite/demangle-expected: Test cases to verify extended encoding.
331 Updated comment to document --ret-postfix option.
332
718c0ded
DD
3332005-11-06 Richard Guenther <rguenther@suse.de>
334
335 * splay-tree.c (rotate_left): New function.
336 (rotate_right): Likewise.
337 (splay_tree_splay_helper): Remove.
338 (splay_tree_splay): Re-implement.
339
fb10537e
DD
3402005-10-31 Mark Kettenis <kettenis@gnu.org>
341
342 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
343 New variables.
344
5209596c
MM
3452005-10-07 Mark Mitchell <mark@codesourcery.com>
346
347 * at-file.texi: Fix typo.
348
7b96829c
MM
3492005-10-03 Mark Mitchell <mark@codesourcery.com>
350
351 * at-file.texi: New file.
352
48e79b0a
MM
3532005-09-27 Mark Mitchell <mark@codesourcery.com>
354
355 * argv.c (expandargv): Do not use xmalloc_failed.
356
7b17bc29
MM
3572005-09-26 Mark Mitchell <mark@codesourcery.com>
358
359 * argv.c (safe-ctype.h): Include it.
360 (ISBLANK): Remove.
361 (stdio.h): Include.
362 (buildargv): Use ISSPACE instead of ISBLANK.
363 (expandargv): New function.
364 * Makefile.in: Regenerated.
365
f59e96e0
DD
3662005-09-14 Christopher Faylor <cgf@timesys.com>
367
368 * pex-win32.c: Include "windows.h".
369 (backslashify): New function.
370 (fix_argv): Use backslashify to convert path to windows format.
371 Allocate one more place in new argv for potential executable from '#!'
372 parsing.
373 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
374 (openkey): Ditto.
375 (mingw_rootify): Ditto.
376 (msys_rootify): Ditto.
377 (spawn_script): New function.
378 (pex_win32_exec_child): Save translated argv in newargv. Pass to
379 spawn_script if spawnv* fails.
380 (main): New function. Conditional on MAIN. Useful for testing.
381
3b6940c0
DD
3822005-08-17 Mark Kettenis <kettenis@gnu.org>
383
384 * floatformat.c (floatformat_always_valid): Change type of last
385 argument to `void *'.
386 (floatformat_i387_ext_is_valid): Likewise.
387 (floatformat_to_double): Change type of second argument to `const
388 void *'.
389 (floatformat_from_double): Change type of last argument to `void
390 *'.
391 (floatformat_is_valid): Change type of last argument to `const
392 void *'.
393 (ieee_test): Remove redundant casts.
394
a9479c3f
KC
3952005-08-17 Kelley Cook <kcook@gcc.gnu.org>
396
397 * strverscmp.c: Update FSF address.
398 * testsuite/Makefile.in: Likewise.
399 * testsuite/test-demangle.c: Likewise.
400 * testsuite/test-pexecute.c: Likewise.
401
55060c0b
DD
4022005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
403
404 * getopt.c: Include ansidecl.h before system headers.
405
6038baea
DD
4062005-07-22 Ben Elliston <bje@gnu.org>
407
408 * getopt.c: Include "ansidecl.h".
409 (_getopt_initialize): Mark argc and argv parameters as unused.
410
4112005-07-22 Ben Elliston <bje@gnu.org>
412
413 * regex.c (regcomp): Change type of `i' from unsigned to int.
414
c750388a
DD
4152005-07-22 Ben Elliston <bje@gnu.org>
416
417 Recover patch lost in the sourceware repository:
418 2005-07-09 Ben Elliston <bje@au.ibm.com>
419 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
420 * memmove.c: Likewise.
421 * objalloc.c: Likewise.
422
a4e5c0d8
DD
4232005-07-22 Ben Elliston <bje@gnu.org>
424
425 * configure.ac: Check for a getopt(3) declaration.
426 * configure, config.in: Regenerate.
427
4fe19082
DD
4282005-07-15 Ben Elliston <bje@au.ibm.com>
429
430 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
431
f2942ea4
DD
4322005-07-12 Ben Elliston <bje@au.ibm.com>
433
434 * floatformat.c (floatformat_to_double): Add a comment about a
435 potential source of warnings when compiling this file.
436
4372005-07-12 Ben Elliston <bje@au.ibm.com>
438
439 * pexecute.c (pexecute): Cast string litrals to char *.
440 * regex.c (re_comp): Cast a call to gettext() to char *.
441
4cf896a5
KC
4422005-07-07 Kelley Cook <kcook@gcc.gnu.org>
443
444 * config.table: Delete file. Move former contents into ...
445 * configure.ac: ... here and escape any brackets for m4.
446 * Makefile.in (config.status): Remove dependency on config.table.
447 * configure: Regenerate.
448
20ae7c34
KC
4492005-07-07 Kelley Cook <kcook@gcc.gnu.org>
450
451 * config.in: Regenerate for 6/20 change.
452
6ba85b8c
DD
4532005-07-03 Steve Ellcey <sje@cup.hp.com>
454
455 PR other/13906
456 * md5.c (md5_process_bytes): Check alignment.
457
4582005-07-01 Ian Lance Taylor <ian@airs.com>
459
460 PR other/22268
461 * cp-demangle.c (d_expr_primary): Don't run off the end of the
462 string while looking for the end of a literal value.
463 * testsuite/demangle-expected: Add test case.
464
c3cca4c9
DD
4652005-06-30 Daniel Berlin <dberlin@dberlin.org>
466
467 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
468 (DELETED_ENTRY): Ditto.
469
67f3cb05
GK
4702005-06-20 Geoffrey Keating <geoffk@apple.com>
471
472 * strverscmp.c: New.
473 * Makefile.in (CFILES): Add strverscmp.c.
474 (CONFIGURED_OFILES): Add strverscmp.o.
475 (strverscmp.o): New rule.
476 (stamp-functions): Add $(srcdir) to files in source directory.
477 * configure.ac (funcs): Add strverscmp.
478 (AC_CHECK_FUNCS): Add strverscmp.
479 * configure: Regenerate.
480 * functions.texi: Regenerate.
481
01e94249
DD
4822005-05-28 Eli Zaretskii <eliz@gnu.org>
483
484 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
485 * config.in, configure: Regenerate.
486
839e4798
RH
4872005-05-25 Richard Henderson <rth@redhat.com>
488
489 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
490 (d_make_comp, d_print_comp): Likewise.
491 (d_special_name): Generate one.
492 * testsuite/demangle-expected: Add a hidden alias test.
493
abf6a75b
DD
4942005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
495
496 * configure.ac: Check declarations for calloc(), getenv(),
01e94249 497 malloc(), realloc() and sbrk().
abf6a75b
DD
498 * config.in: Regenerate.
499 * configure: Likewise.
500
501 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
502 instead of xmalloc.
503 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
504 * concat.c (liiberty_concat_ptr): Surround definition with an
505 extern "C" block, if __cplusplus.
506 (concat): Use XNEWVEC instead of xmalloc.
507 (reconcat): Likewise.
508 * cp-demangle.c (struct d_print_template): Rename member
01e94249 509 "template" to "template_decl". Adjust use throughout the file.
abf6a75b
DD
510 (d_print_resize): Properly cast return value of realloc().
511 (cplus_demangle_print): Same for malloc().
512 (d_demangle): Likewise.
513 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
514 "typename" to "type_name".
515 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
516 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
517 (demangle_template_value_parm): Likewise.
518 (demangle_template): Likewise.
519 (recursively_demangle): Likewise.
520 (do_hpacc_template_literal): Likewise.
521 (do_arg): Likewise.
522 (remember_type): Likewise.
523 (remember_Ktype): Likewise.
524 (register_Btype): Likewise.
525 (string_need): Use XRESIZEVEC instead of xrealloc().
526 * dyn-string.c (dyn_string_init): Use XNEWVEC.
527 (dyn_string_new): Use XNEW.
528 (dyn_string_resize): Use XRESIZEVEC.
529 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
530 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
531 Otherwise include <stdlib.h>.
532 (exchange): Cast return value of malloc().
533 * hashtab.c (htab_size): Define as both macro and non-inline
534 function.
535 (htab_elements): Likewise.
536 * getpwd.c (getpwd): Use XNEWVEC.
537 (htab_create_alloc_ex): Use C90 prototype-style.
538 * lrealpath.c (lrealpath): Appropriately cast return value of
01e94249 539 malloc().
abf6a75b
DD
540 * make-relative-prefix.c (save_string): Likewise.
541 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
542 the file.
543 (choose_tmpdir): Use XNEWVEC.
544 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
545 * pex-common.c (pex_init_common): Use XNEW.
546 (pex_add_remove): Use XRESIZEVEC.
547 (pex_run): Likewise.
548 (pex_get_status_and_time): Likewise.
549 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
550 * pex-msdos.c (pex_init): Use XNEW.
551 (pex_msdos_exec_child): Likewise.
552 (pex_msdos_exec_child): Use XRESIZEVEC.
553 * pex-unix.c (pex_wait): Use XNEW.
554 * pex-win32.c (fix_argv): Use XNEWVEC.
555 * pexecute.c (pwait): Likewise.
556 * setenv.c (setenv): Properly cast return value of malloc().
557 * sigsetmask.c (sigsetmask): Rename local variables "old" and
558 "new" to "old_sig" and "new_sig".
559 * sort.c (main): Use XNEWVEC.
560 * spaces.c (spaces): Cast return value of malloc().
561 * strndup.c (strndup): Likewise.
562 * ternary.c (ternary_insert): Use XNEW.
563 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
564 with an extern "C" block if __cplusplus.
565 * xstrdup.c (xstrdup): Cast return value of memcpy().
566 * xstrerror.c (strerror): Enclose declaration in an extern "C"
567 block if __cplusplus.
568 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
569
2349f557
DD
5702005-05-16 Andreas Jaeger <aj@suse.de>
571
572 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
573 that it's only declared if needed.
574
575 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
576 defined.
577
e9edcedc
DD
5782005-05-15 Andreas Jaeger <aj@suse.de>
579
580 * functions.texi: Regenerated.
581
f13c9bea
DD
5822005-05-15 Eli Zaretskii <eliz@gnu.org>
583
584 * pexecute.txh: Enclose multi-word data types in @deftypefn in
585 braces. Minor wording fixes. Use --- for em-dash. Use
586 @enumerate in enumerated lists.
587
e9edcedc
DD
588 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
589 braces.
590
282d9ec3
ILT
5912005-05-11 Eli Zaretskii <eliz@gnu.org>
592
593 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
594 sys/stat.h.
595 (pex_init): Fix last argument to pex_init_common.
596 (pex_djgpp_exec_child): Remove leading underscore from _open,
597 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
598 which is undeclared, with `executable', which was unused. Remove
599 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
600 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
601
75919f94
DD
6022005-05-11 Paul Brook <paul@codesourcery.com>
603
604 * Makefile.in: Regenerate dependencies.
605
979c05d3
NC
6062005-05-10 Nick Clifton <nickc@redhat.com>
607
608 * Update the address and phone number of the FSF organization in
609 the GPL notices in the following files:
75919f94
DD
610 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
611 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
612 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
613 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
614 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
615 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
616 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
617 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
618 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
619 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
620 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
621 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
622 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
979c05d3 623
0093138c
DD
6242005-05-06 Kelley Cook <kcook@gcc.gnu.org>
625
626 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
627 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
628 * configure: Regenerate.
629
6302005-05-06 Kelley Cook <kcook@gcc.gnu.org>
631
632 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
633 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
634 * aclocal.m4: Don't include accross.m4.
635 * configure, config.in: Regenerate.
636
c631edf1
DD
6372005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
638
639 * fopen_unlocked.c (unlock_std_streams): New.
f13c9bea 640
c631edf1
DD
641 * functions.texi: Regenerate.
642
7b6f6286
DD
6432005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
644
645 * fopen_unlocked.c (unlock_stream): New.
646 Consolidate unlocking code into a helper function.
647
648 * functions.texi: Regenerate.
649
fa99459d
DD
6502005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
651
652 * asprintf.c: Include config.h.
653 * basename.c: Likewise.
654 * fdmatch.c: Likewise.
655 * hex.c: Likewise.
656 * lbasename.c: Likewise.
657 * spaces.c: Likewise.
658 * xatexit.c:Likewise.
f13c9bea 659 * configure.ac: Do check declarations for basename, ffs, asprintf
fa99459d
DD
660 and vasprintf for real.
661 * configure: Regenerate.
662
ab70e2a5
DD
6632005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
664
f13c9bea 665 * argv.c (dupargv): Allocate space of argv[argc], not
ab70e2a5
DD
666 sizeof(char *) of that amount. Cast result to char *.
667
ea7143ac
DD
6682005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
669
670 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f13c9bea 671 Replace not with negate.
ea7143ac 672
41c953f9
DD
6732005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
674
675 * configure.ac: Check declarations for basename, ffs, asprintf,
676 vasprintf.
677 * configure: Regenerate.
678 * config.in: Likewise.
679
ac119ae8
DD
6802005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
681
682 * Makefile.in (CFILES): Add fopen_unlocked.c.
683 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
684 Regenerate dependencies.
685
686 * configure.ac: Check for stdio_ext.h and __fsetlocking.
687
688 * fopen_unlocked.c: New file.
689
690 * functions.texi, configure, config.in: Regenerate.
691
6e933b47
DD
6922005-04-04 Ian Lance Taylor <ian@airs.com>
693
694 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
695 declaration before statement.
696
aa55ccb1
DD
6972005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
698
14a88c49
DD
699 * bcmp.c: Fix warnings and implement using memcmp.
700 * bcopy.c: Fix warnings.
701 * bzero.c: Fix warnings and implement using memset.
702
aa55ccb1
DD
703 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
704 -Wstrict-prototypes.
705 * configure, config.in: Regenerate.
706
707 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
708 warnings and reconcile interfaces with relevant standards.
709
b31a49d7
ILT
7102005-04-02 Ian Lance Taylor <ian@airs.com>
711
712 * cp-demangle.c: Update copyright.
713
0e867e79
DD
7142005-03-31 Joseph S. Myers <joseph@codesourcery.com>
715
716 * gettimeofday.c: Add "Supplemental" to @deftypefn.
717 * functions.texi: Regenerate.
718
b109e79a
ILT
7192005-03-28 Ian Lance Taylor <ian@airs.com>
720
721 * pex-common.c: New file.
722 * pex-one.c: New file.
723 * pexecute.c: New file.
724 * pex-common.h: Include <stdio.h>.
725 (struct pex_obj): Define.
726 (struct pex_funcs): Define.
727 (pex_init_common): Declare.
728 * pex-unix.c: Rewrite.
729 * pex-win32.c: Rewrite.
730 * pex-djgpp.c: Rewrite.
731 * pex-msdos.c: Rewrite.
732 * testsuite/text-pexecute.c: New file.
733 * pexecute.txh: Rewrite.
734 * configure.ac: Check for wait3 and wait4. Set CHECK to
735 really-check rather than check-cplus-dem.
736 * functions.texi: Rebuild.
737 * Makefile.in: Rebuild dependencies.
738 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
739 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
740 * testsuite/Makefile.in (really-check): New target.
741 (check-pexecute, test-pexecute): New targets.
742 * configure: Rebuild.
743
864e8148 7442005-03-28 Mark Kettenis <kettenis@gnu.org>
f13c9bea 745
864e8148
DD
746 * unlink-if-ordinary.c: Include <sys/types.h>.
747
e064c173
DD
7482005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
749
750 Convert libiberty to use ISO C prototype style 7/n.
751 * regex.c (PARAMS): Remove definition.
752 (PREFIX): Unconditionaly define using ISO C ## operator.
f13c9bea 753 (init_syntax_once, extract_number, extract_number_and_incr,
e064c173 754 print_fastmap, print_partial_compiled_pattern,
f13c9bea 755 print_compiled_pattern, print_double_string, printchar,
e064c173
DD
756 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
757 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f13c9bea
DD
758 at_begline_loc_p, at_endline_p, group_in_compile_stack,
759 insert_space, wcs_compile_range, byte_compile_range,
760 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
761 re_set_registers, re_search, re_search_2, re_search_3, re_match,
e064c173
DD
762 re_match_2, count_mbs_length, wcs_re_match_2_internal,
763 byte_re_match_2_internal, group_match_null_string_p,
764 alt_match_null_string_p, common_op_match_null_string_p,
f13c9bea 765 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
e064c173
DD
766 regexec, regerror, regfree): Use ISO C prototype style.
767 * partition.c: (elem_compare): Likewise.
768 * cp-demangle.c (print_usage): Likewise.
769
1e45deed
DD
7702005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
771
772 Convert libiberty to use ISO C prototype style 5/n.
773 * random.c (srandom, initstate, setstate, random): Use ISO C
f13c9bea 774 prototypes.
1e45deed
DD
775 * putenv.c (putenv): Likewise.
776 * physmem.c (physmem_available, physmem_total, main): Likewise.
777 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
778 * pex-unix.c (pexecute, pwait): Likewise.
779 * pex-msdos.c (pexecute, pwait): Likewise.
780 * pex-djgpp.c (pexecute, pwait): Likewise.
f13c9bea 781 * partition.c (partition_new, partition_delete, partition_union)
1e45deed 782 (elem_compare, partition_print): Likewise.
f13c9bea
DD
783 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
784 _obstack_allocated_p, _obstack_free, obstack_free,
1e45deed
DD
785 _obstack_memory_used, print_and_abort, obstack_next_free,
786 obstack_object_size, obstack_base): Likewise. Remove codes
787 predicated on !defined(__STDC__).
f13c9bea 788 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1e45deed
DD
789 objalloc_free_block): Use ISO C prototypes.
790 * mkstemps.c (mkstemps): Likewise.
791 * memset.c (memset): Likewise.
792 * mempcpy.c (mempcpy): Likewise.
793 * rename.c (rename): Likewise.
794 * rindex.c (rindex): Likewise.
795 * setenv.c (setenv, unsetenv): Likewise.
796 * sigsetmask.c (sigsetmask): Likewise.
797 * snprintf.c (snprintf): Likewise.
f13c9bea 798 * sort.c (sort_pointers, xmalloc): Likewise.
1e45deed 799 * spaces.c (spaces): Likewise.
f13c9bea
DD
800 * splay-tree.c (splay_tree_delete_helper,
801 splay_tree_splay_helper, splay_tree_splay,
1e45deed 802 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f13c9bea 803 splay_tree_new, splay_tree_xmalloc_allocate,
1e45deed 804 splay_tree_new_with_allocator, splay_tree_delete,
f13c9bea
DD
805 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
806 splay_tree_max, splay_tree_min, splay_tree_predecessor,
807 splay_tree_successor, splay_tree_foreach,
1e45deed
DD
808 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
809 * stpcpy.c (stpcpy): Likewise.
810 * stpncpy.c (stpncpy): Likewise.
811 * strcasecmp.c (strcasecmp): Likewise.
812 * strchr.c (strchr): Likewise.
813 * strdup.c (strdup): Likewise.
814
49b1fae4
DD
8152005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
816
817 Convert libiberty to use ISO C prototype style 6/n.
f13c9bea 818 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
49b1fae4
DD
819 strtoerrno, main): Use ISO C prototype style.
820 * strncasecmp.c (strncasecmp): Likewise.
821 * strncmp.c (strncmp): Likewise.
822 * strndup.c (strndup): Likewise.
823 * strrchr.c (strrchr): Likewise.
f13c9bea 824 * strsignal.c (init_signal_tables, signo_max, strsignal,
49b1fae4
DD
825 strsigno, strtosigno, psignal, main): Likewise.
826 * strstr.c (strstr): Likewise.
827 * strtod.c (strtod, atof): Likewise.
828 * strtol.c (strtol): Likewise.
829 * strtoul.c (strtoul): Likewise.
f13c9bea 830 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
49b1fae4
DD
831 ternary_recursivesearch): Likewise.
832 * tmpnam.c (tmpnam): Likewise.
833 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
834 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
835 * vfork.c (vfork): Likewise.
836 * vfprintf.c (vfprintf): Likewise.
837 * vprintf.c (vprintf): Likewise.
838 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
839 * vsprintf.c (vsprintf): Likewise.
840 * waitpid.c (waitpid): Likewise.
841 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
842 * xexit.c (xexit): Likewise.
f13c9bea 843 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
49b1fae4
DD
844 xcalloc, xrealloc): Likewise.
845 * xmemdup.c (xmemdup): Likewise.
846 * xstrdup.c (xstrdup): Likewise.
847 * xstrerror.c (xstrerror): Likewise.
848 * xstrndup.c (xstrndup): Likewise.
849
8502005-03-27 Andreas Jaeger <aj@suse.de>
851
852 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
853 flags.
854 * configure: Regenerated.
855
8562005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
857
858 * getopt1.c (getopt_long_only): Fix thinko.
859
8602005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
861
862 Convert libiberty to use ISO C prototype style 4/n.
863 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
864 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
865 htab_create_alloc, htab_set_functions_ex, htab_create,
866 htab_try_create, htab_delete, htab_empty,
867 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
868 htab_find, htab_find_slot_with_hash, htab_find_slot,
869 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
870 htab_traverse_noresize, htab_traverse, htab_collisions,
871 htab_hash_string, iterative_hash): Use ISO C prototype.
872 * hex.c (hex_init): Likewise.
873 * index.c (index): Likewise.
874 * insque.c (insque, remque): Likewise.
875 * lbasename.c (lbasename): Likewise.
876 * lrealpath.c (lrealpath): Likewise.
877 * make-relative-prefix.c (save_string, split_directories,
878 free_split_directories, make_relative_prefix): Likewise.
879 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
880 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
881 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
882 * memchr.c (memchr): Likewise.
883 * memcpy.c (memcpy): Likewise.
884 * memmove.c (memmove): Likewise.
885 * gettimeofday.c (gettimeofday): Likewise.
886 * getruntime.c (get_run_time): Likewise.
887 * getpwd.c (getpwd, getpwd): Likewise.
888 * getpagesize.c (getpagesize): Likewise.
889 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
890 * getopt.c (my_index, exchange, _getopt_initialize,
891 _getopt_internal, getopt, main): Likewise.
892 * getcwd.c (getcwd): Likewise.
893 * fnmatch.c (fnmatch): Likewise.
894 * floatformat.c (floatformat_always_valid,
895 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
896 put_field, floatformat_from_double, floatformat_is_valid,
897 ieee_test, main): Likewise.
898 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
899 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
900 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
901 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
902 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
903 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
904 fibheap_link, fibheap_cut, fibheap_cascading_cut,
905 fibnode_insert_after, fibnode_remove): Likewise.
906 * ffs.c (ffs): Likewise.
907 * fdmatch.c (fdmatch): Likewise.
908 * dyn-string.c (dyn_string_init, dyn_string_new,
909 dyn_string_delete, dyn_string_release, dyn_string_resize,
910 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
911 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
912 dyn_string_insert_cstr, dyn_string_insert_char,
913 dyn_string_append, dyn_string_append_cstr,
914 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
915 Likewise.
916
9334f9c6
DD
9172005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
918
919 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
920 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
921 consume_count_with_underscores, code_for_qualifier,
922 qualifier_string, demangle_qualifier, cplus_demangle_opname,
923 cplus_mangle_opname, cplus_demangle_set_style,
924 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
9334f9c6 925 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
926 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
927 delete_work_stuff, mop_up, demangle_signature,
928 demangle_method_args, demangle_template_template_parm,
929 demangle_expression, demangle_integral_value,
930 demangle_real_value, demangle_template_value_parm,
931 demangle_template, arm_pt, demangle_arm_hp_template,
932 demangle_class_name, demangle_class, iterate_demangle_function,
933 demangle_prefix, gnu_special, recursively_demangle, arm_special,
934 demangle_qualified, get_count, do_type, demangle_fund_type,
935 do_hpacc_template_const_value, do_hpacc_template_literal,
936 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
937 register_Btype, remember_Btype, forget_B_and_K_types,
938 forget_types, demangle_args, demangle_nested_args,
939 demangle_function_name, string_need, string_delete, string_init,
940 string_clear, string_empty, string_append, string_appends,
9334f9c6
DD
941 string_appendn, string_prepend, string_prepends, string_prependn,
942 string_append_template_idx): Use ISO C prootype style.
943 * cp-demint.c (cplus_demangle_fill_component,
49b1fae4 944 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
945 cplus_demangle_v3_components): Likewise.
946
9472005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
948
949 Convert libiberty to use ISO C prototype style 2/n.
950 * cp-demangle.h: Remove uses of PARAMS.
951 * cp-demangle.c: Likewise.
49b1fae4
DD
952 (d_dump, cplus_demangle_fill_name,
953 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
954 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
955 d_make_builtin_type, d_make_operator, d_make_extended_operator,
956 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
957 cplus_demangle_mangled_name, has_return_type,
958 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
959 d_prefix, d_unqualified_name, d_source_name, d_number,
960 d_identifier, d_operator_name, d_special_name, d_call_offset,
961 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
962 d_function_type, d_bare_function_type, d_class_enum_type,
963 d_array_type, d_pointer_to_member_type, d_template_param,
964 d_template_args, d_template_arg, d_expression, d_expr_primary,
965 d_local_name, d_discriminator, d_add_substitution,
966 d_substitution, d_print_resize, d_print_append_char,
967 d_print_append_buffer, d_print_error, cplus_demangle_print,
968 d_print_comp, d_print_java_identifier, d_print_mod_list,
969 d_print_mod, d_print_function_type, d_print_array_type,
970 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
971 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9334f9c6 972 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 973 print_usage, main):
9334f9c6
DD
974
9752005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
976
977 Convert libiberty to ISO C prototype style 1/n.
978 * _doprnt.c: Remove conditional #include <varargs.h> on
979 ANSI_PROTOTYPES as the latter is always assumed.
980 (_doprnt, checkit, main): Use ISO C prototype.
981 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
982 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
49b1fae4 983 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
984 * atexit.c (atexit): Likewise
985 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 986 (asprintf): Use ISO C prototype.
9334f9c6
DD
987 * basename.c (basename): Likewise
988 * bcmp.c (bcmp): Likewise.
989 * bcopy.c (bcopy): Likewise.
990 * bzero.c (bzero): Likewise.
991 * bsearch.c (bsearch): Likewise. Improve const-correctness.
992 * choose-temp.c (choose_temp_base): Likewise.
993 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
994 (calloc): Use ISO C prototype.
995 * clock.c (clock): Likewise.
996 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
49b1fae4 997 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
998 concat_copy2, concat, reconcat, main): Use ISO C prototype.
999 * copysign.c (copysign): Likewise.
1000
0fad4bdb
DD
10012005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1002
1003 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
1004 (REQUIRED_OFILES): Add xstrndup.o.
1005 (CONFIGURED_OFILES): Add strndup.o.
1006 Regenerate dependencies.
1007
1008 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
1009
1010 * strndup.c, xstrndup.c: New.
1011
1012 * config.in, configure, functions.texi: Regenerate.
1013
51e32d64
DD
10142005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1015
1016 * xmemdup.c, xstrdup.c: Expose the tail call.
1017
8ec32723
DD
10182005-03-09 Mark Mitchell <mark@codesourcery.com>
1019
1020 * configure.ac (funcs): Add gettimeofday.
1021 * configure: Regenerated.
1022 * gettimeofday.c: New file.
1023 * Makefile.in (CFILES): Add gettimeofday.
1024 (CONFIGURED_OFILES): Add gettimeofday.o.
1025 (./gettimeofday.o): New rule.
1026
27ff8836
ILT
10272005-03-09 Ian Lance Taylor <ian@airs.com>
1028
1029 * pex-os2.c: Remove.
1030 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
1031 * Makefile.in (CFILES): Remove pex-os2.c.
1032 (CONFIGURED_OFILES): Remove pex-os2.o.
1033 (pex-os2.o): Remove target.
1034 * configure: Rebuild.
1035
48e39b59
ILT
10362005-03-07 Ian Lance Taylor <ian@airs.com>
1037
1038 * mpw-config.in: Remove.
1039 * mpw-make.sed: Remove.
1040 * mpw.c: Remove.
1041 * Makefile.in (CFILES): Remove pex-mpw.c.
1042 (CONFIGURED_OFILES): Remove pex-mpw.o.
1043 (mpw.o, pex-mpw.o): Remove targets.
1044 * maint-tool (undoc): Remove reference to mpw.c.
1045
65dce80e
DD
10462005-03-06 DJ Delorie <dj@redhat.com>
1047
1048 * configure.ac (target_header_dir): vfork is a stub under djgpp.
1049 * configure: Regenerated.
1050
190eb137
DD
10512005-03-01 Jan Beulich <jbeulich@novell.com>
1052
1053 * Makefile.in (CFILES): Add unlink-if-ordinary.c
1054 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
1055 Add dependencies and rule for unlink-if-ordinary.o.
1056 * unlink-if-ordinary.c: New.
1057
bac7199c
DD
10582005-03-01 Ben Elliston <bje@au.ibm.com>
1059
1060 * hashtab.c (htab_find_slot_with_hash): Make function
1061 documentation clearer.
1062
aca9a742
JM
10632005-02-13 Jason Merrill <jason@redhat.com>
1064
1065 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
1066 arguments.
1067
b5c3b3de
DD
10682005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
1069
1070 * hex.c (hex_value): Group 'unsigned int' together to get correct
1071 markup.
1072 * functions.texi: Regenerated.
49b1fae4 1073
46a10049
DD
10742004-12-27 H.J. Lu <hongjiu.lu@intel.com>
1075
1076 * Makefile.in: Undo to 2004-12-17.
1077 * aclocal.m4: Likewise.
1078 * config.table: Likewise.
1079 * configure.ac: Likewise.
1080 * maint-tool: Likewise.
1081 * configure: Likewise.
1082
fbfdf750
DD
10832004-12-19 H.J. Lu <hongjiu.lu@intel.com>
1084
1085 PR bootstrap/19072
1086 * Makefile.in (enable_shared): New substitute.
1087 (LTTARGETLIB): New.
1088 (PREFIXTARGETLIB): New.
1089 (LTTESTLIB): New.
1090 (PREFIXTESTLIB): New.
1091 (CCLD): New.
1092 (LINK): New.
1093 ($(TARGETLIB)): Use $(LINK) to create libraries and create
1094 targets by hand.
1095 ($(TESTLIB)): Likewise.
1096 (mostlyclean): Don't remove .libs. Remove the libtool object
1097 directory.
1098
1099 * config.table (enable_shared): Removed.
1100
1101 * configure.ac (enable_static): Set to yes.
1102 (AC_PROG_LIBTOOL): Removed.
1103 (AM_DISABLE_SHARED): Uncommented.
1104 (AM_PROG_LIBTOOL): Likewise.
1105 (LIBOBJS): Add `./' to avoid VPATH.
1106 (LTLIBOBJS): Likewise.
1107 (enable_shared): Substitute.
1108 * configure: Regenerated.
1109
96e00b33
L
11102004-12-18 H.J. Lu <hongjiu.lu@intel.com>
1111
1112 * Makefile.in (top_builddir): Set to `.'.
1113 (OUTPUT_OPTION): Removed.
1114 (LIBTOOL): New.
1115 (LTLIBOBJS): New.
1116 (EXTRA_LTOFILES): New.
1117 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1118 (all): Remove stamp-picdir.
1119 (LTCOMPILE): New.
1120 (.c.lo): New rule.
1121 (REQUIRED_LTOFILES): New.
1122 (CONFIGURED_LTOFILES): New.
1123 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1124 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1125 (stamp-picdir): Completely removed.
1126 (maint-missing): Pass $(REQUIRED_LTOFILES)
1127 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1128 $(CONFIGURED_OFILES)
1129 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1130 $(CONFIGURED_LTOFILES).
1131 (mostlyclean): Also remove *.lo .libs.
1132 Run "make maint-deps".
1133
1134 * aclocal.m4: Include ../libtool.m4.
1135
1136 * config.table: Don't check --enable-shared.
1137
1138 * configure.ac (AC_PROG_LIBTOOL): Add.
1139 (AC_PROG_CC_C_O): Removed.
1140 (OUTPUT_OPTION): Removed.
1141 (NO_MINUS_C_MINUS_O): Removed.
1142 (ltpexecute): New substitute.
1143 (LIBOBJS): Cleanup.
1144 * configure: Regenerated.
1145
1146 * maint-tool: Updated for .lo/libtool.
1147
40a59a4c
DD
11482004-12-11 Ben Elliston <bje@au.ibm.com>
1149
1150 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1151 * configure: Regenerate.
1152 * config.in: Likewise.
1153
9923bc33
DD
11542004-12-07 DJ Delorie <dj@redhat.com>
1155
1156 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1157 that recursion (and thus large stack space) is not needed.
1158
70615d15
DD
11592004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
1160
1161 * pex-unix.c: Fix the spelling of longjmp.
1162
eb129e35
DD
11632004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
1164
1165 PR other/18623
1166 * cp-demangle.c (d_call_offset): Remove useless local variables
1167 offset and virtual_offset.
1168 * cplus-dem.c (ada_demangle): Remove useless local variable
1169 at_start_name.
1170 (demangle_template): Remove useless local variable start.
1171
3e0f1404
DD
11722004-11-19 Roger Sayle <roger@eyesopen.com>
1173
1174 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1175 "ansidecl.h" to avoid redeclaration errors with native compilers.
1176 * regex.c: Protect config.h from multiple inclusion.
1177
6cfb3176
DD
11782004-11-12 Mike Stump <mrs@apple.com>
1179
1180 * Makefile.in (libiberty.html): Fix html generation.
1181
f9b4e353
DD
11822004-09-08 Adam Nemet <anemet@lnxw.com>
1183
1184 * vasprintf.c: Accept __va_copy in addition to va_copy.
1185
49b1fae4 11862004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
1187
1188 * configure: Regenerate.
1189
49b1fae4 11902004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
1191
1192 * configure.ac: Do not enable multilibs for build-side libiberty.
1193
49b1fae4 11942004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
1195
1196 * lrealpath.c (lrealpath): Add _WIN32 support.
1197
a21da8bf
DD
11982004-06-28 Zack Weinberg <zack@codesourcery.com>
1199
1200 * cp-demangle.h: Declare cplus_demangle_operators,
1201 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1202 cplus_demangle_type as static if IN_GLIBCPP_V3.
1203
12042004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
1205
1206 PR other/16240
1207 * cp-demangle.c (d_expr_primary): Check for a failure return from
1208 cplus_demangle_type.
1209 * testsuite/demangle-expected: Add test case.
1210
9f7d3e7d
DD
12112004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1212
1213 * pex-win32.c (fix_argv): Expand comment.
1214
0cb2db3a
DD
12152004-05-25 Daniel Jacobowitz <drow@false.org>
1216
1217 * Makefile.in: Add .NOEXPORT.
1218
25319993
DD
12192004-04-29 Douglas B Rupp <rupp@gnat.com>
1220
1221 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1222 copyright.
1223
7e9f5c71
DD
12242004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1225
1226 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1227 * configure: Regenerate.
1228
bb6a587d
DD
12292004-04-22 Richard Henderson <rth@redhat.com>
1230
1231 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1232 (CHAR_BIT): Provide default.
1233 (struct prime_ent, prime_tab): New.
1234 (higher_prime_index): Rename from higher_prime_number, return index.
1235 (htab_mod_1): New.
1236 (htab_mod, htab_mod_m2): Use it.
1237 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1238 (htab_expand): Likewise.
1239 * configure.ac: Check for stdint.h.
1240 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1241 * config.in, configure: Rebuild.
1242
53239e41
DD
12432004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
1244
1245 * strerror.c: Include config.h, and redefine sys_nerr and
1246 sys_errlist, before including ansidecl.h and libiberty.h.
1247
d6ea4e80
DD
12482004-04-13 Jeff Law <law@redhat.com>
1249
1250 * hashtab.c (htab_remove_elt_with_hash): New function.
1251 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1252
fe046a17
DD
12532004-03-31 Richard Henderson <rth@redhat.com>
1254
1255 * hashtab.c (htab_size): Move to top of file; mark inline.
1256 (htab_elements): Likewise.
1257 (htab_mod, htab_mod_m2): New.
1258 (htab_delete): Refactor htab->size and htab->entries.
1259 (htab_empty): Likewise.
1260 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1261 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1262 (htab_clear_slot): Use htab_size, htab_elements.
1263 (htab_traverse_noresize, htab_traverse): Likewise.
1264
e0c148a7
DD
12652004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1266
12a7367e
DD
1267 * pex-unix.c (pexecute): Use vfork instead of fork, with
1268 appropriate changes to make this safe.
1269 * pex-common.h (STDERR_FILE_NO): Define.
1270
e0c148a7
DD
1271 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1272 an 80 column screen. Run maint-deps.
1273
85f969cd
DD
12742004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1275
1276 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1277 * acconfig.h: Delete redundant file.
1278 * config.in: Regenerate.
1279 * configure: Regenerate.
1280
58670637
DD
12812004-03-09 Hans-Peter Nilsson <hp@axis.com>
1282
1283 * configure: Regenerate for config/accross.m4 correction.
1284
758d77be
DD
12852004-03-07 Andreas Jaeger <aj@suse.de>
1286
1287 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1288 prototypes.
1289 (main): Initialize style.
1290
74aee4eb
DD
12912004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1292
2d733211
DD
1293 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1294 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1295 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1296 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1297 short types to D_PRINT_DEFAULT. Change other integer types to use
1298 new D_PRINT_* values where appropriate. Change float types to
1299 D_PRINT_FLOAT.
1300 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1301 values.
1302 * testsuite/demangle-expected: Adjust two test cases.
1303
1304 * cp-demangle.c (d_print_function_type): Print a space before the
1305 parenthesis around the function type in more cases.
1306 * testsuite/demangle-expected: Adjust one test case.
1307
099f84cf
DD
1308 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1309 parentheses around a cast.
1310 * testsuite/demangle-expected: Adjust two test cases to match new
1311 output.
1312
74aee4eb
DD
1313 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1314
1315 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1316 push more than one of the same CV-qualifier on the top of the
1317 stack.
1318 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1319 move the CV-qualifiers to apply to the element type instead.
1320 (d_print_array_type): When checking the modifiers, keep looking
1321 past ones which have been printed already.
1322 * testsuite/demangle-expected: Add three test cases.
1323
13242004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1325
1326 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1327 empty string correctly.
1328
1329 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1330 not NULL. It is an error if the mangled name is the same as a
1331 built-in type name.
1332 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1333 than cplus_demangle_v3.
1334
1335 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1336 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1337
f9375305
DD
13382004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1339
1340 * regex.c: Include <ansidecl.h>.
1341 (regcomp): Cast i to int.
1342 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1343
cbf0ee79
DD
13442004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1345
1346 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1347 * configure: Regenerate.
1348
37254c9a
DD
13492004-01-22 DJ Delorie <dj@redhat.com>
1350
1351 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1352 with explicit build rules.
1353 (VPATH): Remove.
1354 (.c.o): Poison.
1355 * configure.ac (pexecute, LIBOBJS): Add ./ .
1356 * maint-tool: Build dependencies with explicit rules.
1357
211333f6
DD
13582004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1359
1360 * strdup.c (strdup): Constify the argument.
1361
3795d586
DD
13622004-01-14 Loren J. Rittle <ljrittle@acm.org>
1363
1364 * Makefile.in (distclean): Remove config.cache.
1365
2d6520ee
DJ
13662004-01-13 Daniel Jacobowitz <drow@mvista.com>
1367
1368 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1369 takes two parameters.
1370 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1371
59727473
DD
13722004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1373
1374 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1375 defined, rename some functions which are to become static via
1376 #define.
1377 (CP_STATIC_IF_GLIBCPP_V3): Define.
1378 (struct d_operator_info): Move definition to cp-demangle.h, and
1379 rename to demangle_operator_info. Change all uses.
1380 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1381 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1382 and rename to demangle_builtin_type_info. Change all uses.
1383 (enum d_comp_type): Move definition to include/demangle.h, and
1384 rename to demangle_component_type, and change all enums to start
1385 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1386 (struct d_comp): Move definition to include/demangle.h, and rename
1387 to demangle_component. Change all uses.
1388 (struct d_info): Move definition to cp-demangle.h.
1389 (cplus_demangle_fill_name): New function.
1390 (cplus_demangle_fill_extended_operator): New function.
1391 (cplus_demangle_fill_ctor): New function.
1392 (cplus_demangle_fill_dtor): New function.
1393 (d_make_empty): Remove type parameter. Change all callers.
1394 (d_make_name): Use cplus_demangle_fill_name.
1395 (d_make_extended_operator): Use
1396 cplus_demangle_fill_extended_operator.
1397 (d_make_ctor): Use cplus_demangle_fill_ctor.
1398 (d_make_dtor): Use cplus_demangle_fill_dtor.
1399 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1400 non-static by default. Change all callers.
1401 (cplus_demangle_operators): Rename from d_operators. Change all
1402 uses. Make non-static by default. Add sentinel at end of array.
1403 (d_operator_name): Adjust initialization of high for new sentinel
1404 in cplus_demangle_operators.
1405 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1406 Change all uses. Make non-static by default. Change initializer
1407 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1408 (cplus_demangle_type): Rename from d_type. Make non-static by
1409 default. Change all callers.
1410 (cplus_demangle_init_info): Rename from d_init_info. Make
1411 non-static by default. Change all callers.
1412 * cp-demangle.h: New file.
1413 * cp-demint.c: New file.
1414 * Makefile.in: Rebuild dependencies.
1415 (CFILES): Add cp-demint.c.
1416 (REQUIRED_OFILES): Add cp-demint.o.
1417
1a79b024
DD
14182004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1419
1420 * configure.in: Rename file to ...
1421 * configure.ac: ... this.
1422 * Makefile.in: Update a comment for above change.
1423 * README: Likewise.
1424 * config.in: Regenerate.
1425
820542c9
DD
14262004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1427
1428 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1429 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1430 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1431 demangling template parameters.
1432 * testsuite/test-demangle.c (fail): New static function.
1433 (main): Support new options in input file: --no-params,
1434 --is-v3-ctor, and --is-v3-dtor.
1435 * testsuite/demangle-expected: Add --no-params to most tests, and
1436 add the correct result when parameters are not demangled. Add
1437 some simple tests for V3 constructor/destructor recognition.
1438
2f9c4058
DD
14392003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1440
1441 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1442
4fd47f10
DJ
14432003-12-22 Daniel Jacobowitz <drow@mvista.com>
1444
1445 PR debug/13272
1446 * Makefile.in (lbasename.o): Depend on filenames.h.
1447 * lbasename.c: Include "filenames.h" instead of defining
1448 its macros locally.
1449
b6fb00c0
DD
14502003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1451
1452 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1453 dynamic arrays.
1454 (struct d_operator_info): Add len field.
1455 (struct d_builtin_type_info): Add len and java_len fields.
1456 (struct d_standard_sub_info): Add simple_len, full_len, and
1457 set_last_name_len fields.
1458 (struct d_comp): Add len field to s_string.
1459 (struct d_info): Add send, did_subs, and expansion fields.
1460 (d_append_string_constant): Define.
1461 (d_append_string): Remove. Change all users to use
1462 d_append_string_constant or d_append_buffer instead.
1463 (d_make_sub): Add len parameter. Change all callers.
1464 (d_name): Increase expansion when substituting std::.
1465 (d_unqualified_name): Increase expansion for an operator.
1466 (d_number): Don't use multiplication for negative numbers.
1467 (d_identifier): Make sure there are enough characters in the
1468 string for the specified length. Adjust expansion for an
1469 anonymous namespace.
1470 (d_operators): Initialize len field.
1471 (d_special_name, d_ctor_dtor_name): Increase expansion.
1472 (d_builtin_types): Initialize len and java_len fields.
1473 (d_type): Increase expansion for a builtin type.
1474 (d_cv_qualifiers): Increase expansion for each qualifier.
1475 (d_bare_function_type): Decrease expansion when removing single
1476 void parameter.
1477 (d_template_param): Increment did_subs.
1478 (d_expression): Increase expansion for an operator.
1479 (d_expr_primary): Decrease expansion for a type we will print
1480 specially.
1481 (standard_subs): Initialize new fields.
1482 (d_substitution): Increment did_subs when doing a normal
1483 substitution. Increase expansion for a special substitution.
1484 (d_print): Add estimate parameter. Change all callers.
1485 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1486 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1487 (d_print_java_identifier): Rename from d_print_identifier. Handle
1488 only Java case. Change caller.
1489 (d_init_info): Change return type to void. Change all callers.
1490 Initialize send, did_subs, and expansion fields. Do not
1491 initialize comps and subs fields.
1492 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1493 arrays on stack. Make an estimate of the length of the demangled
1494 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1495 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1496 subs arrays on stack.
1497
2730f651
DD
14982003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1499
1500 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1501 after the identifier.
1502 * testsuite/demangle-expected: Add test case.
1503
d4edd112
DD
15042003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1505
1506 Fix for PR c++/13447:
1507 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1508 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1509 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1510 D_COMP_QUAL_NAME.
1511 (is_ctor_or_dtor): Likewise.
1512 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1513 D_COMP_QUAL_NAME.
1514 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1515 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1516 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
1517 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
1518 * testsuite/demangle-expected: Add two test cases.
1519
1520 * cp-demangle.c (d_print_function_type): Clear the global modifier
1521 list when printing the modifiers, not just when printing the
1522 function parameters.
1523 * testsuite/demangle-expected: Add two test cases.
1524
d35d0cd4
DD
15252003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1526
1527 * cp-demangle.c (d_print_function_type): Print the function
1528 parameters with no modifiers.
1529 * testsuite/demangle-expected: Add test case.
1530
1531 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
1532 expect that we've read the entire string.
1533 (is_ctor_or_dtor): Don't expect that we've read the entire
1534 string--reverse patch of 2003-11-29.
1535
09e9708c
DD
15362003-12-15 Brendan Kehoe <brendan@zen.org>
1537
1538 * libiberty/Makefile.in (floatformat.o): Add dependency on
1539 config.h to accompany change of 2003-12-03.
1540
97ceaf5b
DD
15412003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
1542
1543 Fix handling of constructor/destructor of standard substitution:
1544 * cp-demangle.c (struct d_standard_sub_info): Define.
1545 (d_substitution): Add prefix argument. Change all callers.
1546 Rework handling of standard substitutions to print full name when
1547 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
1548 * testsuite/demangle-expected: Add test case.
1549
1550 Fix handling of negative literal constants:
1551 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
1552 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
1553 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
1554 (d_print_comp): Handle D_COMP_LITERAL_NEG.
1555 * testsuite/demangle-expected: Add test case.
1556
858b45cf
DD
15572003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
1558
1559 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
1560 (d_last_char): Define new macro.
1561 (d_make_name): Reject an empty name.
1562 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
1563 (d_substitution, d_print_identifier): Likewise.
1564 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
1565 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
1566 (d_print_mod) Use new d_last_char macro.
1567 (d_print_cast): Use new d_last_char macro.
1568 (is_ctor_or_dtor): Don't leak memory.
1569
1570 Fix handling of member function modifiers:
1571 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
1572 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
1573 (d_dump): Dump new d_comp_type values.
1574 (d_make_comp): Accept new d_comp_type values.
1575 (has_return_type): Only accept _THIS variants of qualifiers.
1576 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
1577 qualifiers.
1578 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
1579 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
1580 qualifiers and printing them at the end, add _THIS qualifiers to
1581 the modifier list.
1582 (d_print_comp) [D_COMP_*_THIS]: New cases.
1583 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
1584 qualifiers.
1585 (d_print_mod_list): Add suffix parameter. Change all callers.
1586 Keep walking the list even if the current modifier has been
1587 printed.
1588 (d_print_mod): Handle new _THIS qualifiers.
1589 (d_print_function_type): Handle new _THIS qualifiers when deciding
1590 whether to print a parenthesis. Put a space before the
1591 parenthesis in some cases. Call d_print_mod_list again at the
1592 end, passing suffix as 1.
1593 (is_ctor_or_dtor): Look for new _THIS qualifiers.
1594 * testsuite/demangle-expected: Add test case.
1595
1596 Fix for PR gcc/13304:
1597 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
1598 before the '<' is itself a '<', insert a space.
1599 (d_print_cast): Likewise.
1600 * testsuite/demangle-expected: Add test case.
1601
1602 Fix for PR gcc/13244:
1603 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
1604 which uses the '>' operator in an extra layer of parens.
1605 * testsuite/demangle-expected: Add test case.
1606
b52927b7
DD
16072003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
1608
1609 * floatformat.c: Include "config.h" and <string.h> if available.
1610 (INFINITY, NAN): Define if not defined by <math.h>.
1611 (floatformat_to_double): Handle NaN, infinity, and denormalized
1612 numbers.
1613 (floatformat_from_double): Likewise.
1614 (ieee_test): In debugging code, use little endian rather than big
1615 endian. Correct tests to handle NaN and to check correct sign of
1616 zero. Omit m68k extended test.
1617 (main): Add more debugging cases.
1618
24afc00d
DD
16192003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
1620
1621 * cp-demangle.c (d_demangle): Only return success if we consumed
1622 the entire demangled string.
1623 (is_ctor_or_dtor): Likewise.
1624
1625 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
1626 to restore expected result of EDG test case to original expected
1627 result.
1628
331c3da2
DD
16292003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
1630
1631 * cp-demangle.c (struct d_print_mod): Add templates field.
1632 (d_make_builtin_type): Check for NULL type.
1633 (d_make_extended_operator): Check for NULL name.
1634 (d_make_ctor, d_make_dtor): Likewise.
1635 (d_mangled_name): Add top_level parameter. Change all callers.
1636 (d_encoding): If DMGL_PARAMS is not set, strip off initial
1637 CV-qualifiers.
1638 (d_type): Check some return values we rely on.
1639 (d_bare_function_type, d_array_type): Likewise.
1640 (d_pointer_to_member_type, d_template_args): Likewise.
1641 (d_add_substitution): Fail if argument is NULL.
1642 (d_print_resize): Check whether buf is NULL.
1643 (d_print_comp): Save current templates list with each modifier.
1644 Don't pass the modifier list down when printing a template.
1645 (d_print_cast): Don't pass the modifier list down when printing a
1646 template.
1647 (d_print_mod_list): Temporarily set templates list while printing
1648 a modifier.
1649 (d_print_mod): Check that buf is not NULL before using it.
1650 (d_print_function_type): Print parens if there is no modifier.
1651 (d_init_info): Permit as many substitutions as there are
1652 characters in the mangled name.
1653 * testsuite/demangle-expected: Add two new test cases.
1654
51948b34
DD
16552003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
1656
1657 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
1658 d_demangle.
1659
6d95373e
DD
16602003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
1661
1662 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
1663 callers.
1664 (print_usage): Display new -p option.
1665 (long_options): Add --no-params.
1666 (main): Accept and handle -p.
1667
54a962d9
DD
16682003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
1669
1670 * cp-demangle.c (has_return_type): Skip qualifiers when checking
1671 whether we have a template.
1672 * testsuite/demangle-expected: Add four new tests.
1673
8fe0d347
DD
16742003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
1675
1676 * testsuite/demangle-expected: Minor changes to match output of
1677 new demangler: adjust whitespace in four tests, and change order
1678 of qualifiers in one test.
1679
1680 * cp-demangle.c: Complete rewrite.
1681
dd9d4b48
DD
16822003-11-19 Mark Mitchell <mark@codesourcery.com>
1683
1684 * cp-demangle.c (demangle_type): Correct thinko in substitution
1685 processing.
1686
0976f6a7
DD
16872003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
1688
1689 * cp-demangle.c (demangle_operator_name): Remove space before
1690 "sizeof".
1691 (demangle_type_ptr): Put qualifiers in the right place. Handle
1692 qualifiers in pointer to member specially.
1693 (demangle_type): Handle qualifiers for pointer or reference
1694 specially. Handle function type.
1695 (demangle_local_name): Save and restore caret around demangling of
1696 initial encoding.
1697
1698 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
1699 cplus_demangle.
1700
1701 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
1702
e7e6980b
DD
17032003-10-31 Andreas Jaeger <aj@suse.de>
1704
1705 * floatformat.c (floatformat_always_valid): Add unused attribute.
1706
97ceaf5b
DD
17072003-10-30 Josef Zlomek <zlomekj@suse.cz>
1708
1709 Jan Hubicka <jh@suse.cz>
1710 * vasprintf.c (int_vasprintf): Pass va_list by value.
1711 Use va_copy for copying va_list.
1712 (vasprintf): Pass va_list by value.
1713
686e72d7
DD
17142003-10-30 Josef Zlomek <zlomekj@suse.cz>
1715
1716 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
1717 instead of increasing n_elements when inserting to deleted slot.
1718
eec65ede
JB
17192003-10-20 J. Brobecker <brobecker@gnat.com>
1720
1721 * cplus-dem.c (demangle_template): Register a new Btype only
1722 when needed.
1723 * testsuite/demangle-expected: Add a new test.
1724
cd275bff
L
17252003-10-16 H.J. Lu <hongjiu.lu@intel.com>
1726
1727 * testsuite/demangle-expected: Update the expected output of
1728 _GLOBAL__I__Z2fnv.
1729
e3b1168e
DJ
17302003-10-02 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * strerror.c: Revert last change. Declare static sys_nerr
1733 and sys_errlist using different names.
1734
efb150d5
DJ
17352003-10-01 Daniel Jacobowitz <drow@mvista.com>
1736
1737 * strerror.c: Don't provide or reference sys_errlist if
1738 strerror is available.
1739
b7ca9213
L
17402003-10-01 H.J. Lu <hongjiu.lu@intel.com>
1741
1742 * configure.in: Check if $MAKEINFO is missing.
1743 * configure: Regenerated.
1744
8ddbb593
DJ
17452003-09-24 Daniel Jacobowitz <drow@mvista.com>
1746
1747 * configure.in: Use AC_PROG_CPP_WERROR.
1748 * configure: Regenerated.
1749
5324d185
AC
17502003-09-22 Andrew Cagney <cagney@redhat.com>
1751
1752 * floatformat.c (floatformat_i387_ext_is_valid): New function.
1753 (floatformat_always_valid): New function.
1754 (floatformat_i387_ext): Initialize new "is_valid" field to
1755 "floatformat_i387_ext_is_valid".
1756 (floatformat_ieee_single_little): Initialize "is_valid" field to
1757 floatformat_always_valid.
1758 (floatformat_ieee_double_big): Ditto.
1759 (floatformat_ieee_double_little): Ditto.
1760 (floatformat_ieee_double_little): Ditto.
1761 (floatformat_ieee_double_littlebyte_bigword): Ditto.
1762 (floatformat_i960_ext): Ditto.
1763 (floatformat_m88110_ext): Ditto.
1764 (floatformat_m88110_harris_ext): Ditto.
1765 (floatformat_arm_ext_big): Ditto.
1766 (floatformat_arm_ext_littlebyte_bigword): Ditto.
1767 (floatformat_ia64_spill_big): Ditto.
1768 (floatformat_ia64_spill_little): Ditto.
1769 (floatformat_ia64_quad_big): Ditto.
1770 (floatformat_ia64_quad_little): Ditto.
1771 (floatformat_ia64_quad_little): Ditto.
1772 (floatformat_is_valid): Call "is_valid".
1773
34f4a113
AC
17742003-09-15 Andrew Cagney <cagney@redhat.com>
1775
1776 * floatformat.c (get_field): Make "data" constant.
1777 (floatformat_is_valid, floatformat_to_double): Make "from"
1778 constant, fix casts.
1779 (floatformat_from_double): Make "from" constant.
1780
3f2aacaf
DJ
17812003-09-15 Daniel Jacobowitz <drow@mvista.com>
1782
1783 * floatformat.c (floatformat_is_valid): New function.
1784 (get_field, put_field): Correct comments.
1785
aae66b9f
DD
17862003-09-06 Josef Zlomek <zlomekj@suse.cz>
1787
1788 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
1789 FIBHEAPKEY_T.
1790
60b04ee8
DD
17912003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1792
1793 PR bootstrap/12100
1794 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
1795 * configure: Rebuilt.
1796
2299a76d
DJ
17972003-08-27 Daniel Jacobowitz <drow@mvista.com>
1798
1799 * aclocal.m4: Include acx.m4 and no-executables.m4.
1800 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
1801 (LIB_AC_PROG_CC): Remove.
1802 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
1803 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
1804 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
1805 performing link tests.
1806 * configure: Regenerated.
1807
9ad1aa29
DD
18082003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1809
a21da8bf 1810 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 1811
dbb9d0f3
DD
18122003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
1813
1814 * pex-win32.c (pexecute): Mark parameters this_pname and
1815 temp_base as unused. Remove unused variables retries,
1816 sleep_interval. Initialize org_stdin, org_stdout.
1817 (pwait): Mark parameter flags as unused.
1818
18192003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
1820
1821 * pex-win32.c (fix_argv): Ensure that the executable pathname
1822 uses Win32 backslashes.
1823 (pexecute): Cast away constness when assigning *errmsg_arg.
1824
78c5b0a5
L
18252003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1826
1827 * testsuite/demangle-expected: Add more GNU V3 testcases.
1828
70ecf948
DD
18292003-06-22 Zack Weinberg <zack@codesourcery.com>
1830
1831 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
1832 not HC_ASCII and HC_EBCDIC.
1833 Add documentation in form expected by gather-docs.
1834 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
1835 * Makefile.in, functions.texi: Regenerate.
1836
cbc0188b
DD
18372003-06-21 Zack Weinberg <zack@codesourcery.com>
1838
1839 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
1840 for charset determination.
1841
5f73c378
DD
18422003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
1843
1844 * configure.in: Add check for malloc.h needed by
1845 m68k for function free().
1846 * configure: Regenerated.
1847 * config.in: Add HAVE_MALLOC_H.
1848 * hashtab.c: include malloc.h were available for
1849 free().
1850
e69f6c8c 18512003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 1852
e69f6c8c
DD
1853 PR bootstrap/10974
1854 * physmem.c: Update comment.
1855 * configure.in: Modify test for _system_configuration for older
1856 AIX systems.
1857
1858 * config.in, configure: Regenerated.
cbc0188b 1859
54c60684
DD
18602003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1861
1862 PR other/10810
1863 * test-demangle.c (getline): Fix fence-post error.
1864
5a4e47bd
NC
18652003-06-03 Nick Clifton <nickc@redhat.com>
1866
1867 * asprintf.c: Change comment to note that -1 is returned upon
1868 error.
1869 * vasprintf.c: Likewise.
1870 (vasprintf): Return -1 upon error.
1871 * functions.texi: Document changes to asprintf and vasprintf.
1872
916f5d13
DD
18732003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
1874
1875 * config.table: Accept i[345867]86 variant.
1876
e4f79046
JB
18772003-05-15 Jim Blandy <jimb@redhat.com>
1878
1879 * hex.c (_hex_value): Make this unsigned.
1880 (hex_value): Update documentation for new return type. hex_value
1881 now expands to an unsigned int expression, to avoid unexpected
1882 sign extension when we store it in a bfd_vma, which is larger than
1883 int on some platforms.
1884 * functions.texi: Regenerated.
1885
0f3538e7
DD
18862003-05-07 Josef Zlomek <zlomekj@suse.cz>
1887
1888 * splay-tree.c (splay_tree_predecessor): Fix comment.
1889 (splay_tree_successor): Fix comment.
1890
7108c5dc
JM
18912003-05-07 Jason Merrill <jason@redhat.com>
1892
eafaf5eb 1893 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
1894 * configure.in: Add AC_C_BIGENDIAN_CROSS.
1895 * aclocal.m4: Include accross.m4.
1896 * configure, config.in: Regenerate.
1897
0b555173
DD
18982003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1899
1900 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
1901 * configure: Regenerate.
1902
8730135a
DD
19032003-05-03 Carlo Wood <carlo@alinoe.com>
1904
1905 * cp-demangle.c: Fix typo in "char_traints" string-literal.
1906
341eccbc
DD
19072003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1908
1909 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
1910 (main): Test that we don't write too much data.
1911
2ed1e5cc
DD
19122003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1913
1914 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
1915 vsnprintf.
1916 * snprintf.c, vsnprintf.c: New files.
1917 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
1918 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
1919 Regenerate dependencies.
1920
1921 * functions.texi, configure, config.in: Regenerated.
1922
10b57b38
DD
19232003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1924
1925 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
1926 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
1927 and stpncpy.
1928 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
1929 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
1930 Regenerate dependencies.
1931
1932 * functions.texi, configure, config.in: Regenerated.
1933
ff773b85
DD
19342003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1935
1936 * argv.c: Fix comments.
1937 * calloc.c: Don't unnecessarily include "libiberty.h".
1938 (bzero): Add prototype.
1939 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1940 * getcwd.c (getcwd): Use standard definition to avoid conflicts
1941 with system headers.
1942 * hashtab.c (htab_traverse): Delete unused variables.
1943 * rename.c: Include "ansidecl.h".
1944 (rename): Use standard definition to avoid conflicts with system
1945 headers.
1946 * strsignal.c: Rely on ANSI_PROTOTYPES.
1947 * strstr.c: Check GNUC >= 2, not GNUC == 2.
1948 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
1949 * vprintf.c: Include "ansidecl.h" earlier, rely on
1950 ANSI_PROTOTYPES.
1951 * vsprintf.c: Include "ansidecl.h" earlier, rely on
1952 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 1953
ff773b85
DD
1954 * Makefile.in: Regenerate dependencies.
1955
bb325820
DD
19562003-04-15 DJ Delorie <dj@redhat.com>
1957
1958 * maint-tool (deps): Scan for headers in $srcdir also.
1959
258a4893
DD
19602003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1961
1962 PR target/10338
1963 PR bootstrap/10198
1964 PR bootstrap/10140
1965 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
1966 __mempcpy.
1967 * regex.c (regerror): Likewise.
1968
ff773b85
DD
19692003-04-14 Roger Sayle <roger@eyesopen.com>
1970
1971 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
1972 * memchr.c: Likewise.
1973 * strcasecmp.c: Likewise.
1974 * strncasecmp.c: Likewise.
1975 * strncmp.c: Likewise.
1976 * xatexit.c: Likewise.
1977 * xmalloc.c: Likewise.
1978
1979 * copysign.c: Use traditional function declaration instead of DEFUN.
1980 * sigsetmask.c: Likewise.
1981
1982 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
1983 * memset.c: Likewise.
1984
1985 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
1986 * memmove.c: Likewise.
1987
eec539c7
DD
19882003-04-14 Roger Sayle <roger@eyesopen.com>
1989
1990 * strdup.c (strdup): Tweak implementation to use memcpy.
1991
daf7c4ad
DD
19922003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1993
1994 * configure.in (HAVE_UINTPTR_T): Always define.
1995 * configure: Regenerated.
1996
aa072e59
AO
19972003-03-23 Alexandre Oliva <aoliva@redhat.com>
1998
1999 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
2000 instead of $$CC alone.
2001 (install_to_tooldir): Use it.
2002
f77ed96c
DD
20032003-17-03 Jan Hubicka <jh@suse.cz>
2004
2005 * hashtab.c (htab_traverse_noresize): Break out from ...
2006 * hashtab.c (htab_traverse): ... here.
2007
2336e177
DD
20082003-12-03 Jan Hubicka <jh@suse.cz>
2009
2010 * hashtab.c (htab_expand): Fix warning.
2011
2012 * hashtab.c (htab_expand): Compute the size of hashtable based
2013 on the number of elements actually used.
2014 (htab_traverse): Call htab_expand when table is too empty.
2015
d8cbbf95
DD
20162003-03-11 Carlo Wood <carlo@gnu.org>
2017
2018 * cplus-dem.c (demangle_integral_value): Correction to reflect
2019 patch of 2002-01-10 in order to also make negative multi-digits
2020 without leading underscore work.
2021
a01fefeb
DD
20222003-03-03 Mark Mitchell <mark@codesourcery.com>
2023
2024 * cplus-dem.c: Add license exception to copyright notice.
2025
638ceb1a
DD
20262003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2027
2028 * physmem.c: Formatting changes from upstream.
2029
ef803806
DD
20302003-02-24 Danny Smith <dannysmith@users.source.forge.net>
2031
2032 * physmem.c (physmem_total): Add _WIN32 support.
2033 (physmem_available): Likewise.
2034
181fa229
DD
20352003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2036
2037 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
2038 GSI_PHYSMEM.
2039 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2040
cc529274
DD
20412003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2042
2043 * configure.in: Check for sys/systemcfg.h and
2044 _system_configuration.
2045 * physmem.c: Add support for AIX. Tweek formatting as per
2046 upstream coreutils beta.
2047
20482003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2049 Richard Earnshaw <rearnsha@arm.com>
2050 Geoffrey Keating <geoffk@apple.com>
cbc0188b 2051
cc529274
DD
2052 * configure.in: Check for sys/sysctl.h and sysctl.
2053 * physmem.c: Add support for *bsd and darwin.
2054 * Makefile.in: Generate depedency for physmem.o.
2055
192cbe66
DD
20562003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2057
2058 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
2059 Tru64 UNIX.
2060 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
2061 Tru64 UNIX.
2062
2063 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
2064 machine/hal_sysinfo.h, sys/table.h.
2065 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
2066 * configure, config.in: Regenerate.
2067
ff773b85
DD
20682003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2069
2070 * configure.in: Check for sys/sysmp.h and sysmp.
2071 * physmem.c: Pull upstream copy, add support for irix6.
2072
2073 * config.in, configure: Regenerated.
2074
900d2082
DD
20752003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2076
2077 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2078 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2079 pstat_getdynamic.
cbc0188b 2080
4938384a
DD
20812003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2082
2083 * Makefile.in (CFILES): Add physmem.c.
2084 (REQUIRED_OFILES): Add physmem.o.
2085 * configure.in: Check for sys/pstat.h.
2086 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2087 * physmem.c: New file, copied from textutils.
2088
2089 * config.in, configure: Regenerated.
2090
ba61a412
DJ
20912003-02-20 Daniel Jacobowitz <drow@mvista.com>
2092
2093 * Makefile.in (CFILES): Add lrealpath.c.
2094 (REQUIRED_OFILES): Add lrealpath.o.
2095 (lrealpath.o): Add rule.
2096 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2097 * configure.in: Add realpath and canonicalize_file_name to
2098 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
2099 for canonicalize_file_name.
2100 * lrealpath.c: New file.
2101 * make-relative-prefix.c: Update documentation.
2102 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
2103 * config.in: Regenerated.
2104 * configure: Regenerated.
2105 * functions.texi: Regenerated.
2106
25dfe0ac
DD
21072003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2108
2109 * cplus_dem.c: Fix typo: intializes -> initializes.
2110
8b90eef4
AO
21112003-02-20 Alexandre Oliva <aoliva@redhat.com>
2112
2113 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2114 config.status.
2115 * configure: Rebuilt.
2116
fcd7c7c9
DD
21172003-02-13 Daniel Jacobowitz <drow@mvista.com>
2118
2119 Fix PR c++/7612.
2120 * cplus-dem.c (demangle_signature): Call string_delete.
2121 Remove extra string_init.
2122 (demangle_arm_hp_template): Call string_delete instead of
2123 string_clear. Add missing string_delete call.
2124 (demangle_qualified): Add missing string_delete call.
2125 (do_type): Remove unused variable btype. Add missing string_delete
2126 call. Call string_delete instead of string_clear.
2127 (demangle_fund_type): Move variable btype inside of the switch
2128 statement. Add missing string_delete call.
2129 (do_arg): Call string_delete instead of string_clear. Remove extra
2130 string_init.
2131 (demangle_nested_args): Free work->previous_argument.
2132
073c427b
DD
21332003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2134
2135 * acconfig.h: New file. Add uintptr_t.
2136 * config.in: Regenerated.
2137
f8bd3000
DD
21382003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2139
2140 * libiberty.texi: Update to GFDL 1.2.
2141
85b9a938
DD
21422003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2143
2144 * Makefile.in (libiberty_topdir): New subst.
2145 (mkinstalldirs): Redefine in terms of the above.
2146 * configure.in: AC_SUBST it.
2147 * configure: Regenerate.
2148
578460f2
AO
21492003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2150
2151 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2152 (info-subdir, install-info-subdir, clean-info-subdir)
2153 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2154 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2155 Pass $(FLAGS_TO_PASS).
2156
7f285245
AO
21572003-01-27 Alexandre Oliva <aoliva@redhat.com>
2158
2159 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2160 /`$$CC -print-multi-os-directory`.
2161
5f9624e3
DJ
21622003-01-26 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * hashtab.c (htab_create_alloc_ex): New function.
2165 (hatab_set_functions_ex): New function.
2166 (htab_delete, htab_expand): Support alternate allocation functions.
2167
9c2259b8
DD
21682003-01-24 Christopher Faylor <cgf@redhat.com>
2169
2170 * configure.in: Remove special pex-cygwin consideration.
2171 * configure: Regenerate.
2172 * pex-cygwin.c: Remove.
2173 * Makefile.in: Remove pex-cygwin.[co] lines.
2174
5a17353c
DD
21752003-01-24 Zack Weinberg <zack@codesourcery.com>
2176
2177 * Makefile.in (CFILES): Add pex-*.c.
2178 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2179 (CONFIGURED_OFILES): Add pex-*.o.
2180 (TEXIFILES): Add pexecute.txh.
2181 (pexecute.o): Delete rule.
2182 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2183 pex-unix.o, pex-win32.o): New rules.
2184 * configure.in: Change AC_INIT argument to xmalloc.c.
2185 Compute appropriate pexecute implementation and substitute it
2186 as @pexecute@.
2187
2188 * pexecute.c: Split up into...
2189 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2190 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2191 new files.
2192
2193 * functions.texi: Regenerate.
2194 * configure: Regenerate.
2195
eed2b28c
DD
21962003-01-20 Josef Zlomek <zlomekj@suse.cz>
2197
2198 * hashtab.c (htab_expand): Fix allocation of new entries.
2199
27a39a5f
DD
22002003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2201
2202 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2203
2204 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2205 mkinstalldirs command.
2206
b51c1553
DD
22072002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2208
2209 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2210 Define for hosts with HOST_EXECUTABLE_SUFFIX.
2211
756954c3
DD
22122002-11-24 Nick Clifton <nickc@redhat.com>
2213
2214 * make-relative-prefix.c (make_relative_prefix): Ensure return
2215 string is empty before using strcat to construct it.
2216
2a80c0a4
DD
22172002-11-22 Daniel Jacobowitz <drow@mvista.com>
2218
2219 * Makefile.in: Add make-relative-prefix.c.
2220 * make-relative-prefix.c: New file.
2221 * functions.texi: Rebuilt.
2222
768b20d8
JJ
22232002-11-16 Jakub Jelinek <jakub@redhat.com>
2224
2225 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2226 used with arguments in traditional C' warnings.
2227
f52d1d64
JJ
22282002-10-16 Jakub Jelinek <jakub@redhat.com>
2229
2230 * config.table: Use mh-s390pic for s390x too.
2231
0d3deb8d
DD
22322002-10-06 Andreas Jaeger <aj@suse.de>
2233
2234 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2235 variable and of strict-aliasing warning.
2236 (grow_vect): Use char as first parameter.
2237
1b67de92
DD
22382002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2239
2240 * Makefile.in (all): Fix multilib parallel build.
2241
585cc78f
DD
22422002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
2243
2244 * cp-demangle.c (demangling_new): Cast 0 to enum.
2245 (demangle_char): Cast return of strdup to char *.
2246 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2247 (is_gnu_v3_mangled_dtor): Likewise.
2248 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2249 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2250 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2251 * md5.c (md5_process_bytes): Cast results back to const void *.
2252 (md5_process_block): Add cast to const md5_uint32 *.
2253 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2254 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2255 unsigned short.
2256 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2257 to void *.
2258 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2259
e21b0cc1
NC
22602002-09-19 Nick Clifton <nickc@redhat.com>
2261
2262 * README: Update email addresses for bugs and patches.
2263
a54ba43f
DD
22642002-09-10 Mike Stump <mrs@apple.com>
2265
2266 * splay-tree.c (splay_tree_successor): Fix comments.
2267
22682002-09-11 Zack Weinberg <zack@codesourcery.com>
2269
2270 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
2271 * testsuite/Makefile.in: Adjust for test-demangle.
2272 * testsuite/regress-demangle: Deleted.
2273 * testsuite/test-demangle.c: New file.
2274 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2275 this file is not being read by a shell script.
2276
01cea699
DD
22772002-09-05 Roger Sayle <roger@eyesopen.com>
2278
2279 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2280
a2832523
DD
22812002-08-07 DJ Delorie <dj@redhat.com>
2282
2283 * regex.c (re_error_msgid): Just use a simple array of strings.
2284 (re_compile_pattern): Compensate.
2285 (re_comp): Likewise.
2286 (re_comp): Likewise.
2287 (regerror): Likewise.
2288
1e3f0be0
DD
22892002-07-29 Neil Booth <neil@daikokuya.co.uk>
2290
2291 * cplus-dem.c (PREPEND_BLANK): Remove.
2292
b851d07b
DD
22932002-07-10 Jason Merrill <jason@redhat.com>
2294
2295 * cp-demangle.c (demangle_identifier): Support extended Unicode
2296 characters.
2297
2a9dffbf
DD
22982002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2299
2300 * cp-demangle.c (demangle_v3_with_details): Wrap in
2301 !defined IN_GLIBCPP_V3.
2302
793011ca
DD
23032002-07-01 Mark Mitchell <mark@codesourcery.com>
2304
2305 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2306 Set it for the "st" operator.
2307 (demangle_expression): Handle expressions with types as arguments.
2308
b39b76b8
DD
23092002-06-30 Douglas Rupp <rupp@gnat.com>
2310
2311 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2312 * Makefile.in (OUTPUT_OPTION): Use.
2313
4748c6d8
DD
23142002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2315
2316 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2317 (install_to_tooldir): Likewise.
2318
f9c3326a
DD
23192002-06-17 Douglas Rupp <rupp@gnat.com>
2320
2321 * lbasename.c: Add 2002 to copyright.
2322 (IS_DIR_SEPARATOR): Remove VMS junk.
2323
18893690
DD
23242002-06-05 Geoffrey Keating <geoffk@redhat.com>
2325
2326 * hashtab.c (htab_create): New stub function for backward
2327 compatibility.
2328 (htab_try_create): Likewise.
2329
23302002-06-03 Geoffrey Keating <geoffk@redhat.com>
2331
2332 * hashtab.c (htab_create): Delete.
2333 (htab_try_create): Delete.
2334 (htab_create_alloc): New.
2335 (htab_delete): Support user-specified memory allocation.
2336 (htab_expand): Likewise.
2337
23382002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2339
2340 * configure.in: Fix typo in the code checking for sys_errlist.
2341 * configure: Regenerated.
2342
9296c8b2
DD
23432002-05-13 Andreas Schwab <schwab@suse.de>
2344
2345 * config.table: Use mh-x86pic also for x86-64.
2346
52d98c2d
DD
23472002-05-08 Alexandre Oliva <aoliva@redhat.com>
2348
2349 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2350 script entry, and set LD to it when configuring multilibs.
2351 * configure: Rebuilt.
2352
cafa3917
DD
23532002-05-07 Mark Mitchell <mark@codesourcery.com>
2354
2355 * configure.in (AC_TYPE_PID_T): Use it.
2356 * configure: Regenerated.
2357 * getruntime.c: Include <sys/types.h>.
2358 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2359
b1c933fc
RH
23602002-04-09 Richard Henderson <rth@redhat.com>
2361
2362 * hashtab.c (higher_prime_number): Use 7 as minimum.
2363 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2364 (htab_find_slot_with_hash): Likewise.
2365
0c4460bb
DD
23662002-04-01 Phil Edwards <pme@gcc.gnu.org>
2367
2368 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2369 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2370 not compile if IN_GLIBCPP_V3 defined.
2371 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2372
f2160d2b
DD
23732002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2374
3ebf1f59 2375 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
2376 if it is NULL.
2377
7dd4d42a
DD
23782002-03-27 DJ Delorie <dj@redhat.com>
2379
2380 * hex.c: Add documentation.
2381 (_hex_value): Provide non-ASCII empty table.
2382 (hex_init): Initialize the non-ASCII table.
2383 * functions.texi: Regenerate.
2384
38e57a35
DD
23852002-03-27 Mark Mitchell <mark@codesourcery.com>
2386
2387 * dyn-string.c: Add libgcc exception to copyright notice.
2388
cfed0715
DD
23892002-03-26 H.J. Lu (hjl@gnu.org)
2390
2391 * config.table: Support --with-build-subdir.
2392 * configure.in: Likewise.
2393 * configure: Rebuild.
2394
1504972f
DD
23952002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2396
2397 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2398 seen.
2399
35efcd67
DD
24002002-03-12 Mark Mitchell <mark@codesourcery.com>
2401
2402 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2403 notice.
2404
dabc64ea
DD
24052002-03-11 Douglas B Rupp <rupp@gnat.com>
2406
2407 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2408
3ddbd84c
JB
24092002-03-06 Jim Blandy <jimb@redhat.com>
2410
2411 * splay-tree.c (splay_tree_xmalloc_allocate,
2412 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2413 prototyped definitions. Mark `data' arguments as unused.
2414
efdab807
AC
24152002-03-06 Andrew Cagney <ac131313@redhat.com>
2416
2417 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2418
50d4562d
DD
24192002-03-04 Phil Edwards <pme@gcc.gnu.org>
2420
2421 * configure.in: Add --enable-install-libiberty option.
2422 * Makefile.in (INSTALLED_HEADERS): New variable.
2423 (install_to_libdir): Possibly also copy headers.
2424 * configure: Regenerated.
2425
24262002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2427
2428 * xmalloc.c (xmalloc_fail): Clarify error message further.
2429
6e9980f5
DD
24302002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2431
2432 * xmalloc.c (xmalloc_fail): Clarify error message.
2433
18893690 24342002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
2435
2436 * splay-tree.c (splay_tree_xmalloc_allocate,
2437 splay_tree_xmalloc_deallocate): New functions.
2438 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2439 above functions and a dummy data pointer.
2440 (splay_tree_new_with_allocator): New function.
2441 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2442 splay_tree_remove): Use the splay tree's allocation and
2443 deallocation functions.
2444
59ea9fe7
DD
24452002-02-19 Scott Snyder <snyder@fnal.gov>
2446
2447 * testsuite/demangle-expected: Add test case for infinite loop in
2448 demangler.
2449 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2450 if do_type() doesn't make any progress --- prevents an infinite
2451 loop.
2452
6f848550
DD
24532002-02-18 Carlo Wood <carlo@gnu.org>
2454
2455 PR c++/5390
2456 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2457 numbers that do not start with an underscore; This is needed
2458 for integer template parameters. This doesn't break anything
2459 because multi-digit numbers are never followed by a digit.
2460 * testsuite/demangle-expected: Corrected all mangled test
2461 cases with multi-digit template parameters: g++ 2.95.x does
2462 not generate underscores around these parameters.
2463
44354ae1
DD
24642002-02-05 Jason Merrill <jason@redhat.com>
2465
2466 * cplus-dem.c (flags): Add DMGL_VERBOSE
2467 (cplus_demangle_v3_p): Remove.
2468 (demangle_it): Add DMGL_TYPES to passed flags.
2469 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2470 (cplus_demangle_v3_type): Remove.
2471 (cplus_demangle_v3): Add options parm.
2472
42da15d6
DD
24732002-02-02 H.J. Lu (hjl@gnu.org)
2474
2475 * cp-demangle.c (cp_demangle_type): Do not protect with
2476 IN_LIBGCC2.
2477 (cplus_demangle_v3_all): New.
2478 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2479 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2480
2481 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2482 Initialized to cplus_demangle_v3.
2483 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2484 of cplus_demangle_v3.
2485 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2486 command line symbol.
2487
2488 * testsuite/regress-demangle: Pass the mangled name at the
2489 command line.
2490
b117c158
DD
24912002-02-01 H.J. Lu <hjl@gnu.org>
2492
2493 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2494 DMGL_GNU_V3.
2495
c78d91b1
DD
24962002-01-31 Phil Edwards <pme@gcc.gnu.org>
2497
2498 * cp-demangle.c: Revert yesterday's change.
2499
bef8b55d
DD
25002002-01-31 Adam Megacz <adam@xwt.org>
2501
2502 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2503 wrt HAVE_SYS_ERRLIST.
2504
2c955b8b
DD
25052002-01-30 Phil Edwards <pme@gcc.gnu.org>
2506
2507 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2508 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2509 cp_demangle_type.
2510 * testsuite/demangle-expected: New gnu-v3 test.
2511
58b1717a
RH
25122002-01-22 Momchil Velikov <velco@fadata.bg>
2513
2514 * configure.in (variable detection): Use arrays of unspecified
2515 size instead of plain integers.
2516
cc096b71
DD
25172002-01-18 DJ Delorie <dj@redhat.com>
2518
2519 * Makefile.in (TESTLIB): New. This library is for future
2520 testsuites.
2521 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
2522 break down by letter.
2523 (REQUIRED_OFILES): List long-to-compile files first.
2524 (maint-deps): New, target for updating dependencies.
2525 (dependencies): Update.
2526 * maint-tool: Add dependency-generating option.
2527 * configure.in: Check for _doprnt even if we're not providing it.
2528 * configure: Regenerate.
2529
2530 * _doprnt.c: Modifications to allow compiling on any platform.
2531 * copysign.c: Likewise.
2532 * putenv.c: Likewise.
2533 * setenv.c: Likewise.
2534 * vsprintf.c: Likewise.
2535
25362002-01-15 Douglas B Rupp <rupp@gnat.com>
2537
2538 * mkstemps.c (mkstemps): On VMS, open temp file with option
2539 that causes it to be deleted when closed.
2540
20d54542
DD
25412002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2542
c23795e2
DD
2543 * cp-demangle.c (long_options): Const-ify.
2544 * cplus-dem.c (long_options): Likewise.
2545
20d54542
DD
2546 * cplus-dem.c (mystrstr): Delete. All callers changed to use
2547 strstr instead.
2548
f348a7b1
DD
25492001-12-31 Ira Ruben <ira@apple.com>
2550
2551 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
2552 * configure: Regenerated.
2553
d86cd745
DD
25542001-12-24 Douglas B. Rupp <rupp@gnat.com>
2555
2556 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
2557 * configure: Regenerated.
2558
ae533646
DD
25592001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
2560
2561 PR other/2719
2562 * cplus-dem.c (consume_count): Treat negative count as an error.
2563 * testsuite/demangle-expected: Added testcase.
2564
c0eb281b
DD
2565Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
2566
2567 * configure.in: Hardcode that vfork works on VMS host.
2568 * configure: Regenerated.
2569
2da4c07f
RH
25702001-12-06 Richard Henderson <rth@redhat.com>
2571
2572 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
2573 (cplus_demangle): Support no_demangling.
2574
24acd898
DD
25752001-11-27 Zack Weinberg <zack@codesourcery.com>
2576
2577 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
2578 in libiberty context. Fix typo in leading comment.
2579 * configure.in: Fix various AC_DEFINEs so autoheader works.
2580 If any of vprintf, vsprintf, vfprintf is missing from libc,
2581 then AC_REPLACE_FUNCS(_doprnt).
2582
fec50157 25832001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 2584 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
2585
2586 * Makefile.in (stamp-h): Depend on Makefile for proper
2587 serialization.
2588 (*-subdir): Depend on config.h for proper serialization.
2589
5527febf
DD
25902001-11-26 DJ Delorie <dj@redhat.com>
2591
2592 * configure.in: Check for alloca.h (for regex.c and putenv.c).
2593 * configure: Regenerate.
2594 * config.h: Add HAVE_ALLOCA_H.
2595
941d74a0
DD
25962001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2597
2598 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
2599 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
2600 is available.
2601
dc579051
DD
2602Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
2603
2604 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
2605 * configure.in (HAVE_UINTPTR_T): Test for system defining
2606 uintptr_t and define HAVE_UINTPTR_T appropriately.
2607 * regex.c (uintptr_t): Do not provide a definition if the
2608 system provided one.
2609
2610 * regex.c (PREFIX): Provide an alternate definition for
2611 non-ANSI/ISO compilers.
2612 (ARG_PREFIX): Likewise.
2613
1a78a35a
DD
26142001-11-12 Jim Meyering <meyering@lucent.com>
2615
2616 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2617 this code would end up calling gettext even in packages built
2618 with --disable-nls.
2619 * getopt.c (_): Likewise.
2620 * regex.c (_): Likewise.
2621
4e55c4b6
DD
26222001-11-03 Alan Modra <amodra@bigpond.net.au>
2623
2624 * configure.in: Cope with missing makeinfo.
2625 * configure: Regenerate.
2626
d311a83a
DD
26272001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2628
2629 * hex.c (hex_init): Provide empty stub.
2630
2631 * hex.c (hex_init): Delete.
2632 (_hex_value): Const-ify and initialize at compile-time.
2633
3bc62f91
DD
26342001-10-19 H.J. Lu <hjl@gnu.org>
2635
2636 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
2637 necessary.
2638
5d852400
DD
26392001-10-17 DJ Delorie <dj@redhat.com>
2640
2641 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
2642 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 2643 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
2644 Improve manual formatting.
2645 * functions.texi: Regenerate.
2646
ba19b94f
DD
26472001-10-15 DJ Delorie <dj@redhat.com>
2648
2649 * Makefile.in (TEXIFILES): Add fnmatch.txh.
2650 (maint-undoc): New.
2651 maint-tool: Add "undoc" tool.
2652 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
2653 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
2654 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
2655 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
2656 documentation.
2657 * fnmatch.txh: New.
2658 * functions.texi: Regenerate.
2659
56056af5
DD
26602001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
2661
2662 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
2663 * strtod.c: Use "ISO C" instead of "ANSI C".
2664 * functions.texi: Regenerate.
2665
99b58139
DD
26662001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
2667
2668 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
2669 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
2670 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
2671 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
2672 spelling. Give names to function arguments in documentation. Use
2673 (void) prototypes in documentation.
2674 * functions.texi: Regenerate.
2675
e6450fe5
DD
26762001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2677
2678 * argv.c (buildargv, tests, main): Const-ify.
2679 * cp-demangle.c (operator_code): Likewise.
2680 * cplus-dem.c (optable, libiberty_demanglers,
2681 cplus_demangle_set_style, cplus_demangle_name_to_style,
2682 print_demangler_list): Likewise.
2683 * hashtab.c (higher_prime_number): Likewise.
2684 * strcasecmp.c (charmap): Likewise.
2685 * strerror.c (error_info, strerror, main): Likewise.
2686 * strncasecmp.c (charmap): Likewise.
2687 * strsignal.c (signal_info): Likewise.
2688
da191b5b
DD
26892001-09-29 DJ Delorie <dj@redhat.com>
2690
2691 * configure: Regenerate.
2692
916aaa12
DD
26932001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2694
2695 * concat.c: Include stdlib.h.
2696
fa9f0e33
DD
26972001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2698
2699 * libiberty.texi: (Top level): Add syncodeindex pg. Add
2700 @dircategory and @direntry directives. Add @finalout.
2701 (many nodes): Lose the next,prev,up pointers on the @nide line.
2702 (Using, Supplemental Functions, Replacement Functions): Fix
2703 markup.
2704 (Functions): Move around, to allow makeinfo to build the manual
2705 without next,prev,up pointers in thye node lines.
2706 (Licenses): Fix typos.
2707
2708 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
2709 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
2710 * functions.texi: Regenerate.
2711
2712 * copying-lib.texi: Lose the next,prev,up pointers on the @node
2713 line.
2714
27152001-09-27 DJ Delorie <dj@redhat.com>
2716
2717 * configure.in: Don't use in-tree texinfo, because libiberty must
2718 be built before it. Check for makeinfo version 4 or higher.
2719 * functions.texi: Regenerate.
2720
39423523
DD
27212001-09-20 DJ Delorie <dj@redhat.com>
2722 Phil Edwards <pedwards@disaster.jaj.com>
2723
2724 * configure.in (MAKEINFO, PERL): Detect these.
2725 (--enable-maintainer-mode): Add.
2726 * configure: Regenerate.
2727 * Makefile.in (MAKEINFO, PERL): Define.
2728 (libiberty.info, libiberty.dvi, libiberty.html): New.
2729 (CFILES): Add bsearch.c.
2730 (CONFIGURED_OFILES): New, list of objects configure might add.
2731 (maint-missing, maint-buildall): New, for maintainers only.
2732 (clean, mostlyclean): Add info/dvi/html files.
2733 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
2734 * gather-docs: New, for maintainers.
2735 * maint-tool: New, for maintainers.
2736 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
2737 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
2738 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
2739 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
2740 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
2741 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
2742 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
2743 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
2744 documentation.
2745
66c94e19
DD
27462001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2747
2748 * concat.c (reconcat): Fix for traditional C.
2749
99ee3a8f
DD
27502001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2751
2752 * concat.c (reconcat): New function.
2753
54c20242
DD
27542001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2755
2756 * concat.c (vconcat_length, vconcat_copy, concat_length,
2757 concat_copy, concat_copy2): New functions.
2758 (concat): Use vconcat_length/vconcat_copy.
2759
2760 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
2761 Define.
2762
843f21be
DD
27632001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2764
2765 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
2766 VA_FIXEDARG & VA_CLOSE.
2767
2768 * vasprintf.c: Check HAVE_STRING_H when including string.h.
2769 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
2770 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
2771
8a423cb3
DD
27722001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2773
2774 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
2775
dc676635
DD
27762001-08-23 Ulrich Drepper <drepper@redhat.com>
2777
2778 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
2779
27802001-08-23 Ulrich Drepper <drepper@redhat.com>
2781
2782 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2783 instead of mbrtowc.
2784 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2785 wcslen, and __wcscoll instead of wcscoll.
2786
f080c76d
DD
27872001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2788
3ebf1f59
DD
2789 * fibheap.c (fibheap_init, fibnode_init): Remove.
2790 (fibheap_new, fibnode_new): Use xcalloc to allocate and
2791 initialize memory.
2792 (fibheap_insert): Remove check for node allocation failure.
f080c76d 2793
f01b59ed
DD
27942001-08-21 Richard Henderson <rth@redhat.com>
2795
2796 * Makefile.in (fibheap.o): Depend on config.h.
2797 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
2798 functions for inlining.
2799
2800Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
2801
2802 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
2803 hosting on cygwin.
2804 * configure: Regenerate.
2805
eb828599
AC
28062001-08-20 Andrew Cagney <ac131313@redhat.com>
2807
2808 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
2809 HARRIS_FLOAT_FORMAT.
2810 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
2811 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
2812 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
2813 (floatformat_m88110_harris_ext): New float formats.
2814
4e55c4b6
DD
28152001-08-20 Daniel Berlin <dan@cgsoftware.com>
2816
2817 * fibheap.c: New file. Fibonacci heap.
2818
2819 * Makefile.in (CFILES): Add fibheap.c.
2820 (REQUIRED_OFILES): Add fibheap.o.
2821 (fibheap.o): Add dependencies for fibheap.o.
2822
68a41de7
DD
28232001-08-17 Christopher Faylor <cgf@cygnus.com>
2824
2825 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
2826 * configure: Regenerate.
2827
8fc34799
DD
28282001-08-16 Richard Henderson <rth@redhat.com>
2829
2830 * hashtab.c (htab_hash_string): New.
2831
16bad250
AC
28322001-08-13 Andrew Cagney <ac131313@redhat.com>
2833
2834 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
2835 name.
2836
a9022147
DD
28372001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
2838
2839 * regex.c (wcs_regex_compile): Use appropriate string
2840 to compare with collating element.
2841 Fix the padding for the alignment.
2842
8aefe91a 28432001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
2844
2845 * lbasename.c (lbasename): Change function definition to return a
2846 const char pointer.
2847
e7e9b069
DD
28482001-08-07 Jason Merrill <jason_merrill@redhat.com>
2849
2850 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
2851 for".
2852
cc5144f8
DD
28532001-08-03 Richard Henderson <rth@redhat.com>
2854
2855 * Makefile.in (concat.o): Depend on config.h.
2856
8aefe91a
DD
28572001-07-30 Andreas Jaeger <aj@suse.de>
2858
2859 * concat.c: Include "config.h".
2860
86710ce2
DD
28612001-07-30 Andreas Jaeger <aj@suse.de>
2862
2863 * regex.c: Declare wcs functions only if compiling with
2864 MBS_SUPPORT.
2865 Don't use #elif for traditional C.
2866
28672001-07-23 Ulrich Drepper <drepper@redhat.com>
2868
2869 * regex.c: Revamp memory allocation for WCHAR functions to
2870 not use too much stack.
2871
28722001-07-30 Andreas Jaeger <aj@suse.de>
2873
2874 * regex.c: Declare wcs functions only if compiling with
2875 MBS_SUPPORT.
2876 Don't use #elif for traditional C.
2877
a5d8f731
DD
28782001-07-25 Daniel Jacobowitz <drow@mvista.com>
2879
2880 * Makefile.in (regex.o): Add dependency on config.h.
2881
6ad8a379
DD
28822001-07-18 Andreas Schwab <schwab@suse.de>
2883
2884 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
2885 underscore character.
2886
28872001-07-18 Ulrich Drepper <drepper@redhat.com>
2888
2889 * regex.c: Limit string length printed in debug messages to 100
2890 chars.
2891
28922001-07-18 Andreas Jaeger <aj@suse.de>
2893
2894 * regex.c: Place under LGPL version 2.1.
2895
2a6ef469
DD
28962001-07-10 Jeff Johnston <jjohnstn@redhat.com>
2897
2898 * Makefile.in: Add support for regex code.
2899 * regex.c: New file.
2900
7b78baae
DD
29012001-07-05 Mark Klein <mklein@dis.com>
2902
2903 * Makefile.in: Add ffs.c dependency.
2904 * configure.in: Add ffs.c.
2905 * ffs.c: New file.
2906
926150e2
DD
29072001-06-18 Richard Henderson <rth@redhat.com>
2908
2909 * concat.c: Include <sys/types.h>.
2910
11f6f21d
DD
29112001-06-11 Loren J. Rittle <ljrittle@acm.org>
2912
2913 bootstrap/3106
2914 * strerror.c (sys_nerr): Hide the OS header version.
2915 * strsignal.c (sys_nsig): Likewise.
2916
d42dae6c
DD
29172001-06-10 Richard Henderson <rth@redhat.com>
2918
2919 * concat.c: Include string.h. Fix int vs size_t usage.
2920 Simplify the iteration loops. Use memcpy.
2921
e05c6d27
DD
29222001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2923
2924 * partition.c: Fix misspelling of `implementation'.
2925
b50c4073
DD
29262001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2927
2928 * md5.c (md5_init_ctx): Declare constants as unsigned.
2929 (md5_process_block): Likewise.
2930
457161bf
DD
29312001-05-07 Zack Weinberg <zackw@stanford.edu>
2932
2933 * cp-demangle.c (demangle_v3_with_details,
2934 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
2935 function definition.
2936 * ternary.c: Use K+R style function definitions. Use PTR, not
2937 void *. Make arguments constant where possible.
2938
e00bc6a7
DD
29392001-05-07 Mark Mitchell <mark@codesourcery.com>
2940
2941 * splay-tree.h (splay_tree_max): New function.
2942 (splay_tree_min): Likewise.
2943
400ee7e1
DB
29442001-04-15 Daniel Berlin <dan@cgsoftware.com>
2945
2946 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
2947
2948 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 2949
d9697354
DD
29502001-04-03 Zack Weinberg <zackw@stanford.edu>
2951
2952 * make-temp-file.c (try): Inline.
2953
a7bf099b
DD
29542001-02-28 Richard Henderson <rth@redhat.com>
2955
2956 * Makefile.in (make-temp-file.o): Depend on config.h.
2957
30a1def2
DD
29582001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2959
2960 * memchr.c (memchr): Adjust condition to avoid infinite loop.
2961
079c672a
DD
29622001-03-23 Jakub Jelinek <jakub@redhat.com>
2963
2964 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
2965 `_' not followed by a digit is invalid.
2966
a88e356a
JB
29672001-03-22 Jim Blandy <jimb@redhat.com>
2968
2969 * cp-demangle.c (string_list_delete): Use dyn_string_delete
2970 instead of free, to free the contents as well as the string
2971 structure.
2972
1dffcc66
DD
29732001-03-21 Zack Weinberg <zackw@stanford.edu>
2974
2975 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
2976 Don't default P_tmpdir to anything. Try /var/tmp before
2977 /usr/tmp.
2978
29792001-03-20 Zack Weinberg <zackw@stanford.edu>
2980
2981 * choose-temp.c: Split off make_temp_file, and the code
2982 duplicated between it and choose_temp_base, into...
2983 * make-temp-file.c: ... here; new file.
2984
2985 * Makefile.in (CFILES): Add make-temp-file.c.
2986 (REQUIRED_OFILES): Add make-temp-file.o.
2987
e61231f1
JB
29882001-03-20 Jim Blandy <jimb@redhat.com>
2989
2990 * cp-demangle.c (struct demangling_def): New fields:
2991 is_constructor and is_destructor.
2992 (demangling_new): Initialize them.
2993 (demangle_ctor_dtor_name): Set them, if we detect a constructor
2994 or destructor.
2995 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
2996 is_gnu_v3_mangled_dtor): New functions.
2997
a9cbbe6d
DD
29982001-03-20 Jason Merrill <jason@redhat.com>
2999
3000 * cplus-dem.c (main): Skip initial $.
3001
b1e51b3c
DD
30022001-03-15 Michael Meissner <meissner@redhat.com>
3003
3004 * hashtab.c (higher_prime_number): Silence warning that 4294967291
3005 might be a signed integer under pre-ISO C systems.
3006
8aa30e60 30072001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 3008 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 3009
8aa30e60
DD
3010 * libiberty/lbasename.c: New file.
3011 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 3012
30673bf5
DD
30132001-03-06 Zack Weinberg <zackw@stanford.edu>
3014
3015 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
3016 * configure.in: Replace all alloca logic with a simple use of
3017 the above new macro.
3018 * config.table: Kill *-*-beos* entry.
3019 * config/mh-beos: Delete.
3020 * configure, config.in: Regenerate.
fa03f0a7 3021
30673bf5
DD
3022 * Makefile.in (ALLOCA, HFILES): Kill.
3023 (REQUIRED_OFILES): Add alloca.o.
3024 (alloca.o): Depend on libiberty.h.
3025 (argv.o): Don't depend on alloca-conf.h.
3026 * alloca-conf.h: Delete.
3027 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
3028 blocks. Provide the C alloca unconditionally. Use PTR where
3029 appropriate. Make i00afunc static.
3030 * argv.c: Don't include alloca-conf.h.
fa03f0a7 3031
5810f394
DD
30322001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3033
3034 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 3035
a9db032a
DD
30362001-02-16 Loren J. Rittle <ljrittle@acm.org>
3037
3038 * cplus-dem.c (main): Initialize style.
fa03f0a7 3039
8aefe91a
DD
30402001-02-02 Phil Edwards <pme@sources.redhat.com>
3041
3042 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
3043
bc9bf259
DD
30442001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
3045
3046 Add support for Java demangling under the v3 ABI:
3047 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
3048 (struct demangling_def): Add `style' field.
3049 (demangling_new): New parameter `style'. Set it in demangling_t.
3050 (demangle_prefix): Use NAMESPACE_SEPARATOR.
3051 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
3052 (cp_demangle): New parameter `style'. Pass it to demangling_new().
3053 (main): Call cp_demangle with extra parameter.
3054 (java_demangle_v3): New function.
3055 (java_builtin_type_names): New. Table of primitive type names used
3056 for Java demangling.
3057 (demangle_builtin_type): Look up in java_builtin_type_names if doing
3058 Java output.
3059 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3060 demangling.
3061 (long_options): Remove obsolete `java' option.
3062 (main): Remove explicit handling of `java' option. Instead, pass style
3063 parameter in cplus_demangle flags as gdb does.
3064 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 3065
f6528837
DD
30662000-12-29 DJ Delorie <dj@redhat.com>
3067
3068 * fnmatch.c: Make the note about the origins of this file more
3069 accurate, at least until we can sync with glibc.
3070 * getopt.c: Ditto.
3071 * getopt1.c: Ditto.
3072 * md5.c: Ditto.
3073 * obstack.c: Ditto.
9d969b59 3074
c6da642e
DD
30752000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3076
3077 * bsearch.c: New file.
3078 * configure.in (funcs): Add bsearch.
3079 (AC_CHECK_FUNCS): Likewise.
3080 * configure, config.in: Regenerate.
3081
ae7d06ad 30822000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
3083
3084 * safe-ctype.c: #include "ansidecl.h".
3085 * strtod.c: Likewise.
3086
ae7d06ad 30872000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
3088
3089 * strtoul.c: Include safe-ctype.h, not ctype.h.
3090
ac424eb3
DD
30912000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
3092
3093 * safe-ctype.c: New file.
3094 * Makefile.in (CFILES): Add safe-ctype.c.
3095 (REQUIRED_OFILES): Add safe-ctype.o.
3096
3097 * argv.c: Define ISBLANK and use it, not isspace.
3098 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
3099 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
3100 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
3101 before calling TOLOWER(c)/TOUPPER(c).
3102
4415a860
DD
31032000-12-07 Mike Stump <mrs@wrs.com>
3104
3105 * Makefile.in (distclean): When cleaning, remove testsuite.
3106
849ee224
DD
31072000-12-05 Jason Merrill <jason@redhat.com>
3108
3109 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
3110 name before allocating the dyn_string.
3111
ae7d06ad 31122000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
3113
3114 * cp-demangle.c: s/new_abi/v3/.
3115 * cplus-dem.c: Likewise.
3116 (current_demangling_style): Now auto_demangling.
3117 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 3118 (main): Use standard symbol chars for auto_demangling.
e49a569c 3119
ae7d06ad 31202000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
3121
3122 * hashtab.c (higher_prime_number): Use a table, rather than a
3123 seive, to find the next prime.
ae7d06ad
NC
3124
31252000-11-22 H.J. Lu <hjl@gnu.org>
3126
3127 * cplus-dem.c (main): Handle gnat_demangling.
3128
31292000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
3130
3131 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
3132 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
3133 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
3134 argument form of AC_DEFINE in dummy definitions block. Use
3135 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
3136 in dummy block. Preload cache variables instead of bypassing
3137 tests, where possible.
3138 * acconfig.h: Removed.
ae7d06ad 3139
2ea7befd
DD
3140 * xmalloc.c (xmalloc_failed): New function, does error
3141 reporting on failed allocation.
3142 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 3143
f1775526
HPN
31442000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
3145
3146 * cplus-dem.c (cplus_demangle): Fix formatting.
3147 (grow_vect): Ditto.
3148 (ada_demangle): Ditto.
3149 (internal_cplus_demangle): Ditto.
3150 (mop_up): Ditto.
3151
31522000-11-21 H.J. Lu <hjl@gnu.org>
3153
3154 * cplus-dem.c (main): Handle java_demangling.
3155
ae7d06ad 31562000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
3157
3158 * cplus-dem.c (grow_vect): Prototype.
3159 (ada_demangle): Cast the arg of ctype macros to unsigned char.
3160
5dd42ef4
HPN
31612000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
3162
3163 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
3164 parameter `option'.
3165
296731c1
DD
31662000-11-15 Kenneth Block <kenneth.block@compaq.com>
3167
8944fb9d 3168 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
3169 be used in GCC.
3170
6e53a714 31712000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 3172
5dd42ef4 3173 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
3174 list.
3175
99a4c1bd
HPN
31762000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
3177
3178 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
3179 xcalloc depending on htab->return_allocation_failure. Return zero
3180 if calloc fails.
99a4c1bd
HPN
3181 (htab_create): Update comment to cover memory allocation.
3182 (htab_try_create): New.
3183 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 3184 Update comment to cover this.
99a4c1bd 3185
e0f3df8f
HPN
31862000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
3187
3188 * hashtab.c: Change void * to PTR where necessary.
3189 (htab_create, htab_expand): Correct formatting of comment before
3190 function.
3191
ae7d06ad 31922000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
3193
3194 * cp-demangle.c (string_list_def): Add caret_position and comments.
3195 (result_caret_pos): New macro.
3196 (result_append_string): Rename to...
3197 (result_add_string): ... this, and insert at caret position.
ae7d06ad 3198 Rename throughout.
59666b35
DD
3199 (result_append): Rename to...
3200 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 3201 throughout.
59666b35
DD
3202 (result_append_char): Rename to...
3203 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 3204 throughout.
59666b35
DD
3205 (result_append_space): Remove.
3206 (string_list_new): Initialize caret position.
3207 (result_add_separated_char): Use caret position.
3208 (result_get_caret): New funtion.
3209 (result_set_caret): Likewise.
3210 (result_shift_caret): Likewise.
3211 (result_previous_char_is_space): Likewise.
3212 (substitution_start): Use caret position.
3213 (substitution_add): Likewise.
3214 (demangling_new): Initialize caret position.
3215 (demangle_encoding): Use caret position.
ae7d06ad 3216 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
3217 (demangle_type_ptr): Use switch statement. Handle pointers to
3218 arrays. Don't use result_append_space. Use caret position.
3219 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
3220 call to demangle_array_type.
3221 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 3222
ae7d06ad 32232000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
3224
3225 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
3226
32272000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
3228
3229 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
3230
32312000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3232
3233 * splay-tree.c: #include <stdio.h>.
3234
32352000-09-14 Hans-Peter Nilsson <hp@axis.com>
3236
3237 * testsuite/demangle-expected: Add two tests for anonymous
3238 namespaces.
3239 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
3240
32412000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
3242
3243 * splay-tree.c (splay_tree_predecessor): New function.
3244 (splay_tree_successor): Likewise.
ae7d06ad
NC
3245
32462000-09-10 Hans-Peter Nilsson <hp@axis.com>
3247
3248 * testsuite/demangle-expected: Add four tests for type_info
3249 mangling.
3250 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
3251 for a non-template non-qualified type_info function or node.
3252
32532000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3254
3255 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
3256
32572000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3258
3259 * md5.c: #include "ansidecl.h".
3260
32612000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3262
3263 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
3264 (demangle_type): Handle substitution candidates correctly in the
3265 face of special substitutions.
ae7d06ad
NC
3266
32672000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3268
3269 * cp-demangle.c (demangle_encoding): Rename variable.
3270 (demangle_name): Rename parameter. Handle return type
3271 suppression.
3272 (demangle_nested_name): Rename parameter.
3273 (demangle_prefix): Likewise. Change return type suppression.
3274 (demangle_unqualified_name): Add parameter. Flag constructors and
3275 conversion operators.
3276 (demangle_special_name): Fix comment.
3277 (demangle_type): Rename variable.
3278 (demangle_bare_function_type): Check for missing return type and
3279 parameter.
3280 (demangle_class_enum_type): Rename parameter.
3281 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
3282
32832000-08-31 DJ Delorie <dj@redhat.com>
3284
3285 * configure.in (Cygwin): special case cygwin only when we're
3286 building cygwin, not when we're hosting cygwin.
3287
32882000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3289
3290 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
3291 <expression>.
ae7d06ad
NC
3292
32932000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3294
3295 * cp-demangle.c (demangle_type_ptr): Increment position past
3296 pointer and reference characters.
ae7d06ad
NC
3297
32982000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3299
3300 * cp-demangle.c (demangle_nv_offset): New function.
3301 (demangle_v_offset): Likewise.
3302 (demangle_call_offset): Likewise.
3303 (demangle_special_name): Update thunk demangling to comply with
3304 ABI changes.
ae7d06ad
NC
3305
33062000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3307
3308 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3309 (substitution_def): Remove template_parm_number.
3310 (NOT_TEMPLATE_PARM): Remove.
3311 (result_insert_string): New macro.
3312 (result_insert): Likewise.
3313 (result_insert_char): Likewise.
3314 (substitution_add): Remove last parameter. Don't store template
3315 parm number.
3316 (BFT_NO_RETURN_TYPE): Define as NULL.
3317 (demangle_encoding): Adjust call to demangle_bare_function_type.
3318 (demangle_name): Adjust substitution. Adjust call to
3319 substitution_add.
3320 (demangle_prefix): Adjust call to substitution_add.
3321 (demangle_identifier): Handle anonymous namespaces.
3322 (demangle_operator_name): Change demangling of vendor-extended
3323 operator to match ABI changes.
3324 (demangle_type_ptr): Change parameters. Make recursive. Handle
3325 substitutions here.
3326 (demangle_type): Adjust calls to demangle_template_param,
3327 substitution_add, and demangle_type_ptr. Fix substitution of
3328 templated types.
3329 (demangle_function_type): Change parameter to a pointer.
3330 (demangle_bare_function_type): Likewise. Adjust insertion point.
3331 (demangle_template_param): Remove last parameter.
3332 (demangle_expr_primary): Remove unused variable. Adjust call to
3333 demangle_template_param.
3334 (is_mangled_char): Accept `$' and `.'.
3335 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3336 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
3337
33382000-08-31 Hans-Peter Nilsson <hp@axis.com>
3339
3340 * testsuite/demangle-expected: Add nine tests for
3341 underscore-after-number followed by five tests for name-signature
3342 delimiter.
3343
33442000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
3345
3346 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
3347
33482000-08-28 Jason Merrill <jason@redhat.com>
3349
3350 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3351 (CFILES): Add md5.c.
3352 * md5.c: New file.
3353
33542000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3355
3356 * cp-demangle.c (demangle_name): Initialize template_p in local
3357 name case. Don't re-add substitutions as candidates.
3358 (demangle_nested_name): Use <unqualified-name>.
3359 (demangle_prefix): Likewise. Don't add template names as
3360 substitution candidates twice, or re-add a substitution or the
3361 last prefix component.
3362 (demangle_local_name): Adjust output format.
ae7d06ad
NC
3363
33642000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3365
3366 * cp-demangle.c (result_add_separated_char): Change parameter to
3367 int.
3368 (substitution_add): Don't check for duplicates. Check if
3369 previously allocated size is zero.
3370 (demangle_name): Remove duplicate check for std substitution.
3371 Clear template flag appropriately.
3372 (demangle_prefix): Remove argument to demangle_substitution.
3373 Don't check that template flag is already set.
3374 (demangle_operator_name): Add pt operator.
3375 (demangle_type): Don't treat r as built-in type. Remove argument
3376 to demangle_substitution. Fix substitution candidate mechanics.
3377 Handle <template-template-parm>s. Improve comments.
3378 (demangle_template_param): Don't handle template arg lists here.
3379 (demangle_substitution): Remove parameter.
3380 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
3381
33822000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
3383
3384 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
3385
33862000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
3387
3388 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3389 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3390 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
3391
33922000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
3393
3394 * cp-demangle.c (result_close_template_list): Remove function.
3395 (result_add_separated_char): New function.
3396 (result_open_template_list): New macro.
3397 (result_close_template_list): Likewise.
3398 (demangle_prefix): Don't set template_p if the
3399 prefix ends with a ctor name.
3400 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3401 (demangle_type): Check for template args after substitution.
3402 (demangle_template_args): Use result_open_template_list.
d3e85005 3403
ae7d06ad 34042000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 3405
ae7d06ad 3406 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 3407
ae7d06ad 34082000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
3409
3410 * config/mh-openedition.h: Added -DLE370 definition.
3411
a9f34fb6
JL
34122000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3413
3414 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3415 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3416 Cast program to 'char *' in errmsg_arg assignment.
3417 (PWAIT_ERROR): Define.
3418 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3419 to DJGPP's WIF* macros.
3420
90aaccd1 34212000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 3422 Jeff Law <law@cygnus.com>
90aaccd1 3423
ae7d06ad 3424 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 3425
90aaccd1 3426 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
3427 * rename.c: Include config.h, unistd.h
3428 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 3429
6ef554e3
HPN
34302000-07-24 Hans-Peter Nilsson <hp@axis.com>
3431
3432 * cplus-dem.c (work_stuff_copy_to_from): New.
3433 (delete_non_B_K_work_stuff): New.
3434 (delete_work_stuff): New.
3435 (mop_up): Break out work_stuff partly destruction to
3436 delete_non_B_K_work_stuff.
3437 (iterate_demangle_function): New.
3438 (demangle_prefix): Call iterate_demangle_function instead of
3439 demangle_function_name. Leave handling of name-signature
3440 __-delimiters to iterate_demangle_function.
3441 (demangle_integral_value): Strip an optional
3442 following underscore cautiously. Handle negative numbers.
3443
ae7d06ad 34442000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 3445
ae7d06ad 3446 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
3447 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3448
ae7d06ad
NC
34492000-07-21 Alex Samuel <samuel@codesourcery.com>
3450
3451 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3452 allocating ctor mangling.
3453 (demangle_array_type): Handle empty and non-constant array length.
3454
b1233257 34552000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
3456 Jeff Law <law@cygnus.com>
3457
3458 * configure.in (AC_CHECK_HEADERS): Add time.h.
3459 (AC_HEADER_TIME): Add check.
3460 * configure, config.in: Regenerate.
3461 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3462
3463 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3464 * configure, config.in: Regenerate.
3465 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3466 * strtol.c, strtoul.c: #include "config.h". Portably #include
3467 <limits.h> and/or <sys/param.h>.
3468 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 3469
7d3ffcaf
JL
3470 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3471 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3472 * configure, config.in: Regenerate.
3473 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3474
b1233257
JL
3475 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3476
ae7d06ad
NC
34772000-07-21 Mike Stump <mrs@wrs.com>
3478
3479 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
3480 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
3481
34822000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3483
3484 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3485
3486 * setenv.c (setenv): Initialize variable `ep'.
3487
3488 * sigsetmask.c (abort): Prototype.
3489
3490 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3491 __STDC__ for stdarg.h include.
3492 (int_vasprintf): Prototype.
3493 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3494 definition. Cast `global_total_width' in comparison.
3495 (main): Prototype. Return a value.
3496
3497 * vfork.c (fork): Prototype.
3498
3499 * xexit.c: Include config.h.
3500
9adf30b2
JL
35012000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3502
3503 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3504 and print it with %u.
3505
2ed78d1b
HPN
35062000-07-17 Hans-Peter Nilsson <hp@axis.com>
3507
3508 * testsuite/regress-demangle (failed test): Show result and
3509 expected output.
3510
0473bdf7
AH
35112000-07-07 Andrew Haley <aph@cygnus.com>
3512
3513 * cplus-dem.c (main): fflush() after emitting last char before
3514 waiting for input.
3515
03d5f569
JM
35162000-06-28 Alex Samuel <samuel@codesourcery.com>
3517
3518 * cp-demangle.c (demangle_encoding): Accept no substitutions.
3519 (demangle_name): Handle <substitution> followed by
3520 <unqualified-template-name>.
3521 (demangle_type): Follow special substitutions with
3522 <class-enum-type>
3523 (demangle_subtitution): Set template_p for special substitutions.
3524 (main): Fix typos.
ae7d06ad 3525
03d5f569
JM
35262000-06-27 Alex Samuel <samuel@codesourcery.com>
3527
3528 * cp-demangle.c (demangle_special_name): Swap base and derived
3529 class when demangling construction vtables.
3530
35312000-06-21 Alex Samuel <samuel@codesourcery.com>
3532
3533 * cp-demangle.c: Don't include ctype.h.
3534 (IS_DIGIT): New macro.
3535 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
3536 instead of isdigit and isalpanum.
3537 (demangling_def): Make name and next const pointers.
3538 (STATUS_ALLOCATION_FAILED): New status code.
3539 (dyn_string_append_space): Handle failure in
3540 dyn_string_append_char.
3541 (int_to_dyn_string): Likewise. Change return value to status_t.
3542 (string_list_new): Handle failure of dyn_string_init.
3543 (result_close_template_list): Change return type to status_t.
3544 Handle failure in dyn_string_append.
3545 (result_push): Change return value to status_t. Handle failure in
3546 string_list_new. Handle failure of result_push throughout.
3547 (substitution_add): Change return value to status_t. Handle
3548 dyn_string failures. Handle failure of substitution_add
3549 throughout.
3550 (template_arg_list_new): Return NULL on allocation failure.
3551 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
3552 Handle error result throughout.
3553 (result_append): Likewise.
3554 (result_append_char): Likewise.
3555 (result_append_space): Likewise.
3556 (demangling_new): Make argument a const pointer. Handle
3557 allocation failures.
3558 (demangle_template_args): Handle failure in template_arg_list_new
3559 and result_close_template_list.
3560 (demangle_discriminator): Return if int_to_dyn_string fails.
3561 (cp_demangle): Likewise.
3562 (cp_demangle_type): New function.
3563 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
3564 memory allocation failure.
3565 (main): Likewise.
3566 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
3567 IN_LIBGCC2.
3568 (dyn_string_init): Change return value to int. Handle
3569 RETURN_ON_ALLOCATION_FAILURE case.
3570 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
3571 (dyn_string_release): Delete the dyn_string.
3572 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
3573 (dyn_string_copy): Change return type to int.
3574 (dyn_string_copy_cstr): Likewise.
3575 (dyn_string_prepend): Likewise.
3576 (dyn_string_prepend_cstr): Likewise.
3577 (dyn_string_insert): Likewise.
3578 (dyn_string_insert_cstr): Likewise.
3579 (dyn_string_append): Likewise.
3580 (dyn_string_append_cstr): Likewise.
3581 (dyn_string_append_char): Likewise.
3582 (dyn_string_substring): Likewise.
ae7d06ad 3583
eb383413 35842000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 3585
eb383413
L
3586 * cp-demangle.c (demangle_operator_name): Add spaces before
3587 names beginning with a letter: delete, delete[], new, new[],
3588 sizeof.
3589 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 3590
eb383413
L
3591Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
3592
3593 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
3594
3595Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
3596
3597 * cp-demangle.c (stdio.h): File included unconditionaly.
3598 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
3599 * dyn-string.c (stdio.h): File included.
3600 * partition.c (partition_print): No `&' needed to take the address of
3601 a function.
3602
36032000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3604
3605 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 3606
eb383413
L
3607 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
3608
3609 * cp-demangle.c (demangle_char): Change parameter from char to int.
3610 (demangle_expression, demangle_expr_primary): Remove extra
3611 semi-colon in prototype.
3612
3613 * dyn-string.c (dyn_string_append_char): Change parameter from
3614 char to int.
3615
3616 * memcmp.c (memcmp): Constify.
3617
3618 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
3619 __extension__.
3620
3621 * partition.c (elem_compare): Prototype. Don't cast away
3622 const-ness.
3623
3624 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 3625
eb383413
L
36262000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3627
3628 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
3629
3630 * cp-demangle.c: Include demangle.h.
3631 (template_arg_list_new): DeANSIfy.
3632 (cp_demangle): Make static and add prototype.
3633 (operator_code, operators): Constify.
3634 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
3635
36362000-06-05 Alex Samuel <samuel@codesourcery.com>
3637
3638 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
3639 unsigned char.
3640 (demangle_unqualified_name): Likewise.
3641 (demangle_number_literally): Likewise.
3642 (demangle_type): Likewise.
3643 (demangle_substitution): Likewise.
3644 (is_mangled_char): Likewise, for isalnum.
3645
36462000-06-04 Alex Samuel <samuel@codesourcery.com>
3647
3648 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
3649 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
3650 (cp-demangle.o): New dependency.
3651 (dyn-string.o): Likewise.
3652
3653 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
3654
3655 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
3656 demangler.
3657 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
3658 demangling mode.
3659 (gnu_new_abi_symbol_characters): New function.
3660 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
3661 file.
3662 * cp-demangle.c: New file.
ae7d06ad 3663
f03aa80d
AC
3664Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
3665
3666 * floatformat.c: Add name to each floatformat field.
3667
77bfb694
JL
3668Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
3669
3670 * Makefile.in (objalloc.o): Depend on config.h
3671
5c82d20a
ZW
36722000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3673
eb383413 3674 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
3675 if HAVE_STRING_H.
3676 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
3677 * objalloc.c: Include config.h. Include stdlib.h and don't
3678 declare malloc or free if HAVE_STDLIB_H.
3679 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
3680 else declare malloc without prototype. Include string.h if
3681 HAVE_STRING_H, else declare memset without prototype. Don't
3682 include stddef.h.
3683
eb383413
L
36842000-05-23 Mike Stump <mrs@wrs.com>
3685
3686 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 3687 -j3.
eb383413
L
3688
36892000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3690
3691 * xmalloc.c: Include config.h for HAVE_SBRK definition.
3692
36932000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
3694
ae7d06ad 3695 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
3696 probably zero, also eliminate a warning on alpha.
3697
36982000-05-15 David Edelsohn <edelsohn@gnu.org>
3699
3700 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
3701 on $(enable_shared).
3702
37032000-05-10 Jakub Jelinek <jakub@redhat.com>
3704
3705 * config.table: Use mh-sparcpic for sparc*-*-*.
3706
37072000-05-08 Nick Clifton <nickc@cygnus.com>
3708
3709 * Makefile.in (CFILES): Add strncmp.c.
3710 (NEEDED): Add strncmp.
3711
37122000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 3713
eb383413
L
3714 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
3715 Cast the arguments to `islower' to `unsigned char'.
3716 (print_demangler_list): Prototype.
3717
3718Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
3719
3720 * sort.c (UCHAR_MAX): Provide fallback definition.
3721
37222000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
3723
3724 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
3725 SUBDIRS.
3726
eb383413
L
37272000-04-28 Kenneth Block <block@zk3.dec.com>
3728 Jason Merrill <jason@casey.cygnus.com>
3729
ae7d06ad
NC
3730 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
3731 (cplus_demangle_set_style): New function for setting style.
3732 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
3733
37342000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3735
3736 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
3737
3738 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
3739 (libiberty_AC_FUNC_STRNCMP): Invoke.
3740
3741 * strncmp.c: New file.
3742
3743Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
3744
3745 * hashtab.c (htab_expand): Add prototype.
3746 (find_empty_slot_for_expand): Likewise.
3747
37482000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3749
3750 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
3751 match prototype.
3752 (htab_expand): Cast the return value of xcalloc.
3753
37542000-04-24 Mark Mitchell <mark@codesourcery.com>
3755
3756 * hashtab.c (hash_pointer): New function.
3757 (eq_pointer): Likewise.
3758 (htab_hash_pointer): New variable.
3759 (htab_eq_pointer): Likewise.
3760
37612000-04-23 Mark Mitchell <mark@codesourcery.com>
3762
3763 * sort.c (sort_pointers): Fix endianness bugs.
3764
3765 * sort.c: New file.
3766 * Makefile.in (CFILES): Add sort.c
3767 (REQUIRED_OFILES): Add sort.o.
3768 (sort.o): New target.
3769
19be4303
JL
37702000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3771
3772 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
3773 4.3BSD systems.
3774
eb383413
L
3775Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3776
3777 * hashtab.c: Various minor cleanups.
3778 (htab_find_slot_with_hash): INSERT is now enum insert_option.
3779 (htab_find_slot): Likewise.
3780
37812000-04-16 Dave Pitts <dpitts@cozx.com>
3782
3783 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 3784
afe36a78
RH
37852000-04-05 Richard Henderson <rth@cygnus.com>
3786
3787 * splay-tree.c (splay_tree_remove): New.
3788
eb383413
L
37892000-03-30 Mark Mitchell <mark@codesourcery.com>
3790
3791 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
3792 codes.
3793 (htab_find_with_hash): Likewise.
3794 (htab_find_slot_with_hash): Likewise.
ae7d06ad 3795
eb383413
L
37962000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3797
3798 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
3799 unless it will be used. Rearrange loop for better
3800 optimization.
3801 (higher_prime_number): Add static prototype.
3802
b4fe2683
JM
3803Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
3804
3805 * Makefile.in (partition.o): Depend on config.h
3806
38072000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
3808
3809 * hashtab.c (find_empty_slot_for_expand): New function.
3810 (htab_expand): Use it instead of htab_find_slot.
3811 (htab_find_with_hash): Renamed from htab_find; now accepts extra
3812 argument HASH.
3813 (htab_find_slot_with_hash): Likewise for htab_find_slot.
3814 (htab_find): New wrapper function.
3815 (htab_find_slot): Likewise.
3816 (htab_traverse): Pass slot, not entry, to called function.
3817
38182000-03-09 Alex Samuel <samuel@codesourcery.com>
3819
3820 * Makefile.in (CFILES): Add partition.c.
3821 (REQUIRED_OFILES): Add partition.o.
3822 (partition.o): New rule.
3823 * partition.c: New file.
ae7d06ad 3824
b4fe2683
JM
38252000-03-09 Zack Weinberg <zack@wolery.cumb.org>
3826
3827 * hashtab.c (htab_create): Set del_f.
3828 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
3829 Use it.
3830
38312000-03-08 Zack Weinberg <zack@wolery.cumb.org>
3832
3833 * hashtab.c: Remove debugging variables (all_searches,
3834 all_collisions, all_expansions). Delete
3835 all_hash_table_collisions.
3836 (create_hash_table, delete_hash_table, empty_hash_table,
3837 find_hash_table_entry, remove_element_from_hash_table_entry,
3838 clear_hash_table_slot, traverse_hash_table, hash_table_size,
3839 hash_table_elements_number, hash_table_collisions): Rename to:
3840 htab_create, htab_delete, htab_empty, htab_find_slot,
3841 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
3842 htab_elements, htab_collisions.
3843 (htab_find): New function, handles common case where you don't
3844 plan to add or delete an entry.
3845 (htab_expand): Don't create a whole new table, just a new
3846 entry vector.
3847 (htab_find_slot): Simplify logic.
3848
08372f14
ILT
38491999-08-03 Ian Lance Taylor <ian@zembu.com>
3850
3851 * floatformat.c: Add casts to avoid signed/unsigned warnings.
3852 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
3853
3854 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
3855 $(TARGETLIB)n so it works on MSDOS.
3856 (install_to_tooldir): Likewise.
3857
9c8ac5a9
ILT
38581999-07-21 Ian Lance Taylor <ian@zembu.com>
3859
3860 From Mark Elbrecht:
3861 * makefile.dos: Remove; obsolete.
8f36e47c 3862 * configure.bat: Remove; obsolete.
9c8ac5a9 3863
0c0a36a4
ILT
38641999-07-11 Ian Lance Taylor <ian@zembu.com>
3865
3866 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3867 warning.
3868
38692000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3870
3871 * pexecute.c: Conditionally include string.h.
b4fe2683 3872 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
3873
38742000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3875
3876 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
3877 we're using gcc.
3878
3879 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
3880
38811999-12-27 Geoff Keating <geoffk@cygnus.com>
3882
3883 * vasprintf.c (int_vasprintf): Don't re-read the format character
3884 as this mishandles strings like '%%s'.
3885
38861999-12-05 Mark Mitchell <mark@codesourcery.com>
3887
3888 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
3889 rather than struct splay_tree_node.
3890 (splay_tree_insert): Use struct splay_tree_s rather than struct
3891 splay_tree.
3892
3893Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
3894
3895 * hashtab.c (sys/types.h): File included.
3896
38971999-11-22 Jason Merrill <jason@casey.cygnus.com>
3898
3899 * strtoul.c, strtol.c, random.c: Remove advertising clause from
3900 BSD license, pursuant with
3901
3902 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
3903
3904Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
3905
3906 * hashtab.c: Include stdio.h.
3907
3908Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
3909
3910 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
3911
3912Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
3913
3914 * xstrdup (sys/types.h): Include this file.
3915
39161999-10-28 Nathan Sidwell <nathan@acm.org>
3917
3918 * Makefile.in (SUBDIRS): New macro.
3919 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
3920 avoid multiple subdirectory cleaning.
3921 (*-subdir): Use SUBDIRS.
3922
39231999-10-25 Jim Kingdon <http://developer.redhat.com/>
3924
3925 * cplus-dem.c: Move declarations of standard_symbol_characters and
3926 hp_symbol_characters inside #ifdef MAIN to avoid compiler
3927 warnings.
3928
39291999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
3930
3931 * hashtab.c (find_hash_table_entry): When returning a
3932 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
3933 (clear_hash_table_slot): New function which deletes an entry
3934 by its position in the table, not its value.
3935 (traverse_hash_table): New function which calls a hook
3936 function for every live entry in the table.
3937
39381999-10-19 Mark Mitchell <mark@codesourcery.com>
3939
3940 * cplus-dem.c (INTBUF_SIZE): New macro.
3941 (string_append_template_idx): New function.
3942 (demangle_expression): Likewise.
3943 (demangle_integral_value): Use it.
3944 (demangle_real_value): New function, split out from ...
3945 (demangle_template_value_parm): ... here. Use
3946 string_append_template_idx. Use demangle_real_value.
3947 (demangle_template): Use string_append_template_idx.
3948 (demangle_qualified): Use consume_count_with_underscores.
3949 (get_count): Tweak formatting.
3950 (do_type): Use string_append_template_idx.
b4fe2683 3951
0c0a36a4
ILT
39521999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3953
3954 * calloc.c: Add a public domain notice.
3955
3956Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
3957
3958 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
3959
3960Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
3961
3962 * Makefile.in (CFILES): Add hashtab.c
3963 (REQUIRED_OFILES): Add hashtab.o
3964 (hashtab.o): Add dependencies.
3965 * hashtab.c: New file
3966
3967Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
3968
3969 * basename.c (DIR_SEPARATOR): New macro.
3970 (DIR_SEPARATOR_2): Likewise.
3971 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
3972 (IS_DIR_SEPARATOR): Likewise.
3973 (main): Handle MSDOS style pathname.
3974
39751999-10-11 Mark Mitchell <mark@codesourcery.com>
3976
3977 * cplus-dem.c (do_type): Handle pointer to member types whose
3978 enclosing classes have namespace scope.
3979
3980Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
3981
3982 * config.table: Provide a backup shell for executing move-if-change.
3983
39841999-10-02 Mark Mitchell <mark@codesourcery.com>
3985
3986 * xmalloc.c (xmalloc): Fix spelling error.
3987 (xcalloc, xrealloc): Likewise.
3988
39891999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3990
3991 * cplus-dem.c (fancy_abort, demangle_integral_value,
3992 demangle_arm_hp_template, recursively_demangle,
3993 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
3994 (program_name, program_version, fatal): Constify a char*.
3995 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
3996 (main): Call return, not exit.
3997
39981999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3999
4000 * choose-temp.c: Remove obsolete comment about gcc.
4001 (make_temp_file): Constify a char*.
4002
4003Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4004
4005 * xmemdup.c: Include sys/types.h.
4006
40071999-09-07 Jeff Garzik <jgarzik@pobox.com>
4008
4009 * xmemdup.c: New xmemdup function.
4010 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
4011
4012Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
4013
b4fe2683 4014 * config.table: Add openedition target.
0c0a36a4
ILT
4015 * config/mh-openedition: New file.
4016
4017Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
4018
4019 * pexecute.c (pexecute): Fill in temp_base when needed.
4020
40211999-08-31 Richard Henderson <rth@cygnus.com>
4022
4023 * getpwd.c: Check HAVE_GETCWD before defining it away.
4024
40251999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4026
4027 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
4028 (REQUIRED_OFILES): Add getpwd.o.
4029 (getpwd.o): Add target.
4030
4031 * configure.in (AC_PREREQ): Bump to 2.13.
4032 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
4033
4034 * getpwd.c: New file, moved here from gcc.
4035
40361999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4037
4038 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
4039 comparing against a signed quantity.
4040 (arm_special): Likewise.
4041 (demangle_fund_type): Likewise.
4042 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 4043 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
4044 (main): Constify variable `valid_symbols'.
4045
4046Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
4047
4048 * strtoul.c (strtoul): Add parentheses around && within ||.
4049
4050Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
4051
4052 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
4053 libdir, libsubdir and tooldir.
4054
40551999-08-01 Mark Mitchell <mark@codesourcery.com>
4056
4057 * splay-tree.c (splay_tree_insert): Return the new node.
4058
35ca97ea
RH
40591999-07-14 Richard Henderson <rth@cygnus.com>
4060
b4fe2683 4061 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
4062 prototyping directly.
4063 * choose-temp.c: Conditionally include string.h.
4064
0c0a36a4
ILT
40651999-07-12 Jason Merrill <jason@yorick.cygnus.com>
4066
4067 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
4068
af32ff69
ILT
40691999-07-11 Ian Lance Taylor <ian@zembu.com>
4070
4071 * splay-tree.c (splay_tree_insert): Add initialization to avoid
4072 warning.
4073
0c0a36a4
ILT
40741999-07-07 Jason Merrill <jason@yorick.cygnus.com>
4075
4076 * Makefile.in (needed-list): Only include stuff we actually need
4077 for libstdc++.
4078
40791999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4080
4081 * configure.in (checkfuncs): Add gettimeofday.
4082 * config.in, configure: Regenerated.
4083
4084Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
4085
4086 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
4087 the test fails.
4088 * configure: Regenerate.
4089
40901999-06-10 Mike Stump <mrs@wrs.com>
4091
4092 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
4093 parallel builds.
4094
40951999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4096
4097 * putenv.c: Include ansidecl.h to define `const'.
4098 * setenv.c: Likewise.
4099
4100Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
4101
4102 * Makefile.in (CFILES): Add putenv.c and setenv.c.
4103 * configure.in (funcs): Add putenv and setenv.
4104 (AC_CHECK_FUNCS): Check for putenv and setenv.
4105 * configure: Rebuilt.
4106 * putenv.c setenv.c: New files.
4107
4108 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
4109 bytes of space using malloc.
4110
4111Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4112
4113 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
4114 the *mangled pointer beyond the end of the string. Clean up code to
4115 match prevailing coding style.
4116
41171999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4118
4119 * tmpnam.c (L_tmpnam): Fix typo.
4120
4121Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
4122
4123 * cplus-dem.c (standard_symbol_characters): Renamed from
4124 standard_symbol_alphabet. No longer modify TABLE.
4125 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
4126 modify TABLE.
4127 (main): Corresponding changes. Use strchr to determine if a
4128 character is valid.
4129
e9868447
JB
41301999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
4131
4132 * cplus-dem.c (main): Use table lookup to distinguish identifier
4133 characters from non-identifier characters.
4134 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
4135
33fbbfbc
RH
4136Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
4137
4138 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
4139 * getruntime.c: Only attempt to include sys/resource.h and
4140 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
4141 are defined.
4142
0c0a36a4
ILT
4143Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
4144
4145 * configure.in (alloca detection): Handle alloca directly for interix.
4146 * configure: Rebuilt.
4147
4148Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
4149
4150 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
4151
252b5132
RH
41521999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
4153
4154 Fix from Dale Hawkins:
b4fe2683 4155 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
4156 reallocated properly if we use it again.
4157
4158 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
4159 stricter about syntax. Always null-terminate string.
4160
c1687039
ILT
4161Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
4162
4163 * configure.in (checkfuncs): Check for sbrk.
4164 * config.in: Rebuilt.
4165 * configure: Likewise.
4166 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
4167
0c0a36a4
ILT
41681999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
4169
4170 Fix from Marcus Daniels:
4171 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
4172 identifier looking for another underscore.
4173
4174Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
4175
4176 * pexecute.c: Change all references to __UWIN__ to _UWIN.
4177 * xmalloc.c: Likewise.
4178 (xcalloc): UWIN has sbrk.
4179 (xrealloc): Fix guard macro.
4180
252b5132
RH
41811999-04-11 Richard Henderson <rth@cygnus.com>
4182
4183 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
4184 or <alloca.h>.
4185 * clock.c (GNU_HZ): New definition.
4186 (clock): Use it.
4187 * getruntime.c: Likewise.
4188
4189 * config.table: Use mh-beos.
4190 * config/mh-beos: New file.
4191
0c0a36a4
ILT
41921999-04-11 Mark Mitchell <mark@codesourcery.com>
4193
4194 * cplus-dem.c (demangle_template_value_parm): Handle
4195 pointers-to-members.
4196 (do_type): Handle template parameters as qualifiers.
4197
252b5132
RH
41981999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
4199
4200 * cplus-dem.c: Attempt to handle overflows in counts with some
4201 semblance of grace.
4202 (consume_count): Detect overflows. Return -1 to indicate errors,
4203 instead of zero.
4204 (demangle_template_value_parm, demangle_template): Handle change
4205 to consume_count's return convention.
4206
0c0a36a4
ILT
42071999-04-05 Tom Tromey <tromey@cygnus.com>
4208
4209 * testsuite/regress-demangle: New file.
4210 * testsuite/demangle-expected: New file.
252b5132 4211
0c0a36a4
ILT
4212 * Makefile.in (all, check, installcheck, info, install-info,
4213 clean-info, dvi, install, etags, tags, mostlyclean, clean,
4214 distclean, maintainer-clean, realclean): Depend on corresponding
4215 `-subdir' target.
4216 (all-subdir check-subdir installcheck-subdir info-subdir
4217 install-info-subdir clean-info-subdir dvi-subdir
4218 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
4219 distclean-subdir maintainer-clean-subdir): New target.
4220 * testsuite/Makefile.in: New file.
4221 * configure: Rebuilt.
4222 * configure.in: Create testsuite/Makefile.
252b5132
RH
4223
42241999-04-02 Mark Mitchell <mark@codesourcery.com>
4225
4226 * splay-tree.h (splay_tree_compare_pointers): Define.
4227
42281999-03-30 Mark Mitchell <mark@codesourcery.com>
4229
4230 * splay-tree.c (splay_tree_compare_ints): Define.
4231
42321999-03-30 Tom Tromey <tromey@cygnus.com>
4233
4234 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
4235 don't advance input pointer.
4236 (demangle_class_name): If consume_count didn't find a count, do
4237 nothing. Don't bother with `strlen' sanity check; consume_count
4238 does it for us.
4239
42401999-03-16 Stan Shebs <shebs@andros.cygnus.com>
4241
4242 From Art Haas <ahaas@neosoft.com>:
4243 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
4244 when doing arm or hp style.
4245 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 4246
252b5132
RH
4247Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
4248
4249 * pexecute.c (__CYGWIN32__): Rename to
4250 (__CYGWIN__): this.
4251 * xmalloc.c: Likewise.
4252
4253 Changes to support i386-pc-uwin.
4254 * configure.in (*-*-uwin*): Workaround for vfork bug.
4255 * configure: Regenerate.
4256 * pexecute.c (pexecute): Be like standard Unix.
4257 (pwait): Likewise.
4258 * xmalloc.c (first_break): Define.
4259 (xmalloc_set_program_name): Use.
4260 (xmalloc): Use.
4261
4262Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4263
4264 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
4265
4266Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
4267
4268 * config.table: Check cygwin*, not cygwin32*.
4269
4270Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
4271
4272 * Makefile.in: Change mkstemp -> mkstemps.
4273
4274Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
4275
4276 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
4277 * configure.in (funcs): Check for and conditionally add mkstemps to
4278 the list of functions libiberty will provide.
4279 * configure: Rebuilt.
b4fe2683 4280
252b5132
RH
4281Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
4282
b4fe2683 4283 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
4284 platforms that don't have HZ.
4285 * getruntime.c (HZ): Likewise.
4286
4287Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
4288
4289 * Makefile.in (xstrdup.o): Depend on config.h.
4290
4291Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
4292
4293 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
4294 freeing it.
4295
4296Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4297
4298 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
4299
4300Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4301
4302 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
4303 splay-tree.o.
4304
43051999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4306
4307 * configure.in: Require autoconf 2.12.1 or higher.
4308
43091998-12-30 Michael Meissner <meissner@cygnus.com>
4310
4311 * random.c (NULL): Don't redefine NULL if it is already defined.
4312
4313Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4314
4315 * argv.c (buildargv): Cast the result of alloca in assignment.
4316
4317 * choose-temp.c: Include stdlib.h.
4318
4319 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
4320 (snarf_numeric_literal): Constify first parameter.
4321 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4322 int, not a char.
252b5132
RH
4323 (demangle_qualifier): Likewise.
4324 (demangle_signature): Cast the argument of a ctype function to
4325 unsigned char.
4326 (arm_pt): Add parens around assignment used as truth value.
4327 (demangle_arm_hp_template): Constify variable `args'.
4328 (do_hpacc_template_const_value): Cast the argument of a ctype
4329 function to unsigned char.
4330 (do_hpacc_template_literal): Remove unused variable `i'.
4331 (snarf_numeric_literal): Constify parameter `args'.
4332 Cast the argument of a ctype function to unsigned char.
4333
4334 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 4335 avoid ambiguous `else'.
252b5132
RH
4336
4337 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
4338 `cstart' and `cend' to unsigned char. Cast the argument of macro
4339 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
4340
4341 * objalloc.c (free): Add prototype.
4342
4343Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4344
4345 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4346
4347Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
4348
4349 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 4350 doesn't exist.
252b5132 4351 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 4352
252b5132
RH
4353Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4354
4355 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
4356 bumping the pointer we read from. Also prepend these codes,
4357 as we do in other places.
4358
43591998-12-18 Nick Clifton <nickc@cygnus.com>
4360
4361 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
4362 'const char *' in order to match its usage when calling siblings.
4363 (snarf_numeric_literal): Make first arg 'const char **' in order
4364 to match usage.
4365
4366Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4367
4368 * choose-temp.c: Don't check IN_GCC anymore.
4369
4370 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
4371 * memchr.c (memchr): Likewise.
4372 * memcpy.c (memcpy): Likewise.
4373 * memmove.c (memmove): Likewise.
4374
4375 * mkstemp.c: Don't check IN_GCC anymore.
4376 * pexecute.c: Likewise.
4377 * splay-tree.c: Likewise.
4378
4379 * strchr.c (strchr): Use `const', not `CONST'.
4380 * strrchr.c (strrchr): Likewise.
4381 * strtol.c (strtol): Likewise.
4382 * strtoul.c (strtoul): Likewise.
4383
4384Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
4385 Elena Zannoni <ezannoni@cygnus.com>
4386 Stan Shebs <shebs@cygnus.com>
4387 Edith Epstein <eepstein@cygnus.com>
4388 Andres MacLeod <amacleod@cygnus.com>
4389 Satish Pai <pai@apollo.hp.com>
4390
4391 * HP aCC demangling support.
4392 * cplus-dem.c
4393 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
4394 demangling correctly when -edg specified; set the demangling style
4395 when user specifies 'edg'. Set strip_underscore to
4396 prepends_underscore, if not HPUXHPPA. Set
4397 current_demangling_style to hp_demangling if HPUXHPPA. Set
4398 current demangling style correctly if the switch is hp. Read
4399 label correctly also in the HP style case.
252b5132 4400 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 4401 function.
252b5132 4402 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 4403 style for this case is the same as ARM.
252b5132
RH
4404 (demangle_args): handle EDG_DEMANGLING style; support HP style.
4405 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
4406 demangle_arm_pt.); check and set value of temp_start field in
4407 multiple places. Also, when ceching for end of template args,
4408 check to see if at end of static member of template class.
252b5132 4409 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 4410 include template args in string defining class.
252b5132
RH
4411 (demangle_class_name): use demangel_arm_hp_template.
4412 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
4413 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4414 Handle EDG_DEMANGLING style. Handle constructor and destructor
4415 ops for HP style.
252b5132 4416 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
4417 styles. global destructor and constructor for HP style are same
4418 as for ARM style. Same for local variables.
252b5132
RH
4419 (demangle_qualified): handle EDG_DEMANGLING style.
4420 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
4421 cases '1' - '9' : initialize the temp_start field to -1 and handle
4422 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4423 and AUTO_DEMANGLING styles. If expecting a function and managed
4424 to demangle the funct args, then handle the LUCID_DEMANGLING,
4425 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4426 class name after "Lnnn_ in HP style case. HP style too needs to
4427 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 4428 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 4429 value param for HP/aCC.
252b5132 4430 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 4431 literal parameter for HP aCC.
252b5132
RH
4432 (recursively_demangle): new function
4433 (snarf_numeric_literal): new function.
4434 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 4435 to message.
252b5132
RH
4436
4437Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4438
4439 * pexecute.c: Remove obsolete ifdefed cygwin code.
4440
4441Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4442
4443 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4444 * cplus-dem.c: Likewise. Conform to libiberty.h.
4445 * pexecute.c: Likewise.
4446 * splay-tree.c: Likewise.
4447
44481998-11-25 Mike Stump <mrs@wrs.com>
4449
4450 * Makefile.in (splay-tree.o): Add config.h dependency.
4451
4452Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4453
4454 * configure.in: Use AC_PREREQ(2.12.1).
4455
44561998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4457
b4fe2683 4458 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
4459
4460Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4461
4462 * mpw.c (mpw_access): Add missing parens.
4463
4464Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4465
4466 * configure.in: Call AC_HEADER_SYS_WAIT.
4467
4468 * pexecute.c: Include sys/wait.h when !IN_GCC.
4469
4470Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4471
4472 * pexecute.c: revert back to checking old Cygwin
4473 preprocessor symbol until some time has passed.
4474
4475Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4476
4477 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4478 since it will now support similar constructs.
4479
4480Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4481
4482 * configure.in: Check for calloc.
4483
4484 * calloc.c: New file.
4485
4486 * xmalloc.c (xcalloc): New function.
4487
4488Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4489
4490 *cplus-dem.c (demangle_prefix): Use the last "__"
4491 in the mangled name when looking for the signature. This allows
4492 template names to begin with "__".
4493
44941998-11-08 Mark Mitchell <mark@markmitchell.com>
4495
4496 * cplus-dem.c (type_kind_t): Add tk_reference.
4497 (demangle_template_value_parm): Handle it.
4498 (do_type): Use it for references, instead of tk_pointer.
4499
4500 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4501 not internal_cplus_demangle.
4502
4503Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4504
4505 * choose-temp.c: Don't include gansidecl.h.
4506 * mkstemp.c: Likewise.
4507 * pexecute.c: Likewise.
4508
4509Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4510
b4fe2683
JM
4511 * configure.in: detect cygwin* instead of cygwin32*
4512 * configure: regenerate
252b5132
RH
4513
4514Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4515
4516 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
4517 whether to include config.h. Possibly include unistd.h in the
4518 !IN_GCC case. Define VFORK_STRING as a printable function call
4519 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
4520 defined, include vfork.h. If VMS is defined, define vfork()
4521 appropriately. Remove vfork check on USG, we're using autoconf.
4522 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
4523 locally what string to use.
252b5132
RH
4524
45251998-10-26 Mark Mitchell <mark@markmitchell.com>
4526
4527 * splay-tree.c: Tweak include directives to make sure declarations of
4528 xmalloc and free are available.
4529
45301998-10-25 Mark Mitchell <mark@markmitchell.com>
4531
4532 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
4533 anonymous namespaces.
4534
45351998-10-23 Mark Mitchell <mark@markmitchell.com>
4536
4537 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
4538 with type_quals.
4539 (TYPE_UNQUALIFIED): New macro.
4540 (TYPE_QUAL_CONST): Likewise.
4541 (TYPE_QUAL_VOLATILE): Likewise.
4542 (TYPE_QUAL_RESTRICT): Likewise.
4543 (code_for_qualifier): New function.
4544 (qualifier_string): Likewise.
4545 (demangle_qualifier): Likewise.
4546 (internal_cplus_demangle): Use them.
4547 (demangle_signature): Likewise.
4548 (demangle_template_value_parm): Likewise.
4549 (do_type): Likewise.
4550 (demangle_fund_type)): Likewise.
4551
4552Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4553
4554 * splay-tree.c (splay_tree_foreach_helper): Make definition static
4555 to match prototype.
4556
45571998-10-21 Mark Mitchell <mark@markmitchell.com>
4558
4559 * splay-tree.c: New file.
4560 * Makefile.in (CFILES): Add it.
4561 (REQUIRED_OFILES): Likewise.
4562 (splay-tree.o): Add dependencies.
4563
4564Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4565
4566 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
4567 range of 'K' index.
4568
4569Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4570
4571 * choose-temp.c: Prototype mkstemps() when IN_GCC.
4572
4573 * cplus-dem.c (consume_count): Cast argument of ctype macro to
4574 `unsigned char'.
4575 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
4576 comparing against one.
4577 (cplus_mangle_opname): Likewise.
4578 (demangle_integral_value): Cast argument of ctype macro to
4579 `unsigned char'.
4580 (demangle_template_value_parm): Likewise.
4581 (demangle_template): Initialize variable `bindex'. Cast the
4582 result of `strlen' to (int) when comparing against one. Remove
4583 unused variable `start_of_value_parm'.
4584 (demangle_class_name): Cast the result of `strlen' to (int) when
4585 comparing against one.
4586 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
4587 (gnu_special): Likewise. Cast the result of `strlen' to (int)
4588 when comparing against one.
4589 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
4590 (get_count): Likewise.
4591 (do_type): Likewise. Cast the result of `strlen' to (int) when
4592 comparing against one.
4593 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
4594 (demangle_function_name): Cast the result of `strlen' to (int)
4595 when comparing against one.
4596
4597 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
4598 comparing against one.
4599
4600Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
4601
b4fe2683
JM
4602 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
4603 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
4604 * config.in, configure: Rebuilt.
252b5132
RH
4605
4606 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
4607 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
4608 * config.in, configure: Rebuilt.
4609
4610Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
4611
b4fe2683 4612 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
4613
4614Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
4615
4616 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
4617
4618Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
4619
4620 * Merge egcs & devo libiberty.
4621