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