]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
recog.c (push_operand): Fix error in last change that caused undefined symbol on...
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
49ee944b
ZW
12001-03-21 Zack Weinberg <zackw@stanford.edu>
2
3 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
4 Don't default P_tmpdir to anything. Try /var/tmp before
5 /usr/tmp.
6
33437dc7
ZW
72001-03-20 Zack Weinberg <zackw@stanford.edu>
8
9 * choose-temp.c: Split off make_temp_file, and the code
10 duplicated between it and choose_temp_base, into...
11 * make-temp-file.c: ... here; new file.
12
13 * Makefile.in (CFILES): Add make-temp-file.c.
14 (REQUIRED_OFILES): Add make-temp-file.o.
15
e03a61f1
JM
162001-03-20 Jason Merrill <jason@redhat.com>
17
18 * cplus-dem.c (main): Skip initial $.
19
8860ddab
MM
202001-03-15 Michael Meissner <meissner@redhat.com>
21
22 * hashtab.c (higher_prime_number): Silence warning that 4294967291
23 might be a signed integer under pre-ISO C systems.
24
2b757d51
NB
252001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
26 John David Anglin <dave@hiauly1.hia.nrc.ca>
27
28 * libiberty/lbasename.c: New file.
29 * libiberty/Makefile.in: Update for lbasename.
30
1f50aafb
ZW
312001-03-06 Zack Weinberg <zackw@stanford.edu>
32
33 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
34 * configure.in: Replace all alloca logic with a simple use of
35 the above new macro.
36 * config.table: Kill *-*-beos* entry.
37 * config/mh-beos: Delete.
38 * configure, config.in: Regenerate.
39
40 * Makefile.in (ALLOCA, HFILES): Kill.
41 (REQUIRED_OFILES): Add alloca.o.
42 (alloca.o): Depend on libiberty.h.
43 (argv.o): Don't depend on alloca-conf.h.
44 * alloca-conf.h: Delete.
45 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
46 blocks. Provide the C alloca unconditionally. Use PTR where
47 appropriate. Make i00afunc static.
48 * argv.c: Don't include alloca-conf.h.
49
d9fd5aae
JDA
502001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
51
52 * cplus-dem.c (main): Cast enum style to int.
53
4031ed65
LR
542001-02-16 Loren J. Rittle <ljrittle@acm.org>
55
56 * cplus-dem.c (main): Initialize style.
57
2ca46e8a
PE
582001-02-02 Phil Edwards <pme@sources.redhat.com>
59
60 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
61
3b60dd8e
BM
622001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
63
64 Add support for Java demangling under the v3 ABI:
65 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
66 (struct demangling_def): Add `style' field.
67 (demangling_new): New parameter `style'. Set it in demangling_t.
68 (demangle_prefix): Use NAMESPACE_SEPARATOR.
69 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
70 (cp_demangle): New parameter `style'. Pass it to demangling_new().
71 (main): Call cp_demangle with extra parameter.
72 (java_demangle_v3): New function.
73 (java_builtin_type_names): New. Table of primitive type names used
74 for Java demangling.
75 (demangle_builtin_type): Look up in java_builtin_type_names if doing
76 Java output.
1f50aafb 77 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
78 demangling.
79 (long_options): Remove obsolete `java' option.
80 (main): Remove explicit handling of `java' option. Instead, pass style
81 parameter in cplus_demangle flags as gdb does.
82 * testsuite/demangle.expected: Add some Java test cases.
83
584932e9
DD
842000-12-29 DJ Delorie <dj@redhat.com>
85
86 * fnmatch.c: Make the note about the origins of this file more
87 accurate, at least until we can sync with glibc.
88 * getopt.c: Ditto.
89 * getopt1.c: Ditto.
90 * md5.c: Ditto.
91 * obstack.c: Ditto.
92
dac45916
MS
932000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
94
95 * bsearch.c: New file.
96 * configure.in (funcs): Add bsearch.
97 (AC_CHECK_FUNCS): Likewise.
98 * configure, config.in: Regenerate.
99
a8e4a997
MS
1002000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
101
102 * safe-ctype.c: #include "ansidecl.h".
103 * strtod.c: Likewise.
104
75444da7
MS
1052000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
106
107 * strtoul.c: Include safe-ctype.h, not ctype.h.
108
f6bbde28
ZW
1092000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
110
111 * safe-ctype.c: New file.
112 * Makefile.in (CFILES): Add safe-ctype.c.
113 (REQUIRED_OFILES): Add safe-ctype.o.
114
115 * argv.c: Define ISBLANK and use it, not isspace.
116 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
117 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
118 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
119 before calling TOLOWER(c)/TOUPPER(c).
120
6c1ce62b 1212000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
122
123 * Makefile.in (distclean): When cleaning, remove testsuite.
124
b5d1497d
JM
1252000-12-05 Jason Merrill <jason@redhat.com>
126
127 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
128 name before allocating the dyn_string.
129
c6e13630
JM
1302000-12-04 Jason Merrill <jason@redhat.com>
131
132 * cp-demangle.c: s/new_abi/v3/.
133 * cplus-dem.c: Likewise.
134 (current_demangling_style): Now auto_demangling.
135 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 136 (main): Use standard symbol chars for auto_demangling.
c6e13630 137
a4c9b97e
MM
1382000-11-26 Mark Mitchell <mark@codesourcery.com>
139
140 * hashtab.c (higher_prime_number): Use a table, rather than a
141 seive, to find the next prime.
142
3b3bd9a7
L
1432000-11-22 H.J. Lu <hjl@gnu.org>
144
145 * cplus-dem.c (main): Handle gnat_demangling.
146
d1209685
ZW
1472000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
148
149 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
150 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
151 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
152 argument form of AC_DEFINE in dummy definitions block. Use
153 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
154 in dummy block. Preload cache variables instead of bypassing
155 tests, where possible.
156 * acconfig.h: Removed.
157
158 * xmalloc.c (xmalloc_failed): New function, does error
159 reporting on failed allocation.
160 (xmalloc, xcalloc, xrealloc): Use it.
161
cf183ac2
HPN
1622000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
163
164 * cplus-dem.c (cplus_demangle): Fix formatting.
165 (grow_vect): Ditto.
166 (ada_demangle): Ditto.
167 (internal_cplus_demangle): Ditto.
168 (mop_up): Ditto.
169
1702000-11-21 H.J. Lu <hjl@gnu.org>
171
172 * cplus-dem.c (main): Handle java_demangling.
173
8bcc782c
KG
1742000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175
176 * cplus-dem.c (grow_vect): Prototype.
177 (ada_demangle): Cast the arg of ctype macros to unsigned char.
178
29120f44
HPN
1792000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
180
181 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
182 parameter `option'.
183
0437a5a8
KB
1842000-11-15 Kenneth Block <kenneth.block@compaq.com>
185
9e038f71 186 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
187 be used in GCC.
188
eab0c1ab 1892000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 190
29120f44 191 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
192 list.
193
d50d20ec
HPN
1942000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
195
196 * hashtab.c (htab_expand): Change to return int. Use calloc or
197 xcalloc depending on htab->return_allocation_failure. Return zero
198 if calloc fails.
199 (htab_create): Update comment to cover memory allocation.
200 (htab_try_create): New.
201 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
202 Update comment to cover this.
203
35e9340f
HPN
2042000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
205
206 * hashtab.c: Change void * to PTR where necessary.
207 (htab_create, htab_expand): Correct formatting of comment before
208 function.
209
ea343d1a 2102000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
211
212 * cp-demangle.c (string_list_def): Add caret_position and comments.
213 (result_caret_pos): New macro.
214 (result_append_string): Rename to...
215 (result_add_string): ... this, and insert at caret position.
d1209685 216 Rename throughout.
0870bfd6
AS
217 (result_append): Rename to...
218 (result_add): ... this, and insert at caret position. Rename
d1209685 219 throughout.
0870bfd6
AS
220 (result_append_char): Rename to...
221 (result_add_char): ... this, and insert at caret position. Rename
d1209685 222 throughout.
0870bfd6
AS
223 (result_append_space): Remove.
224 (string_list_new): Initialize caret position.
225 (result_add_separated_char): Use caret position.
226 (result_get_caret): New funtion.
227 (result_set_caret): Likewise.
228 (result_shift_caret): Likewise.
229 (result_previous_char_is_space): Likewise.
230 (substitution_start): Use caret position.
231 (substitution_add): Likewise.
232 (demangling_new): Initialize caret position.
233 (demangle_encoding): Use caret position.
d1209685 234 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
235 (demangle_type_ptr): Use switch statement. Handle pointers to
236 arrays. Don't use result_append_space. Use caret position.
237 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
238 call to demangle_array_type.
239 (demangle_array_type): Add parameter to handle pointers to arrays.
240
f15b9af9
MM
2412000-10-01 Mark Mitchell <mark@codesourcery.com>
242
243 * splay-tree.c (splay_tree_insert): Fix formatting.
244
8f17b5c5
MM
2452000-09-16 Mark Mitchell <mark@codesourcery.com>
246
247 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
248
4eaa189a
MS
2492000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
250
251 * splay-tree.c: #include <stdio.h>.
252
29791078
HPN
2532000-09-14 Hans-Peter Nilsson <hp@axis.com>
254
255 * testsuite/demangle-expected: Add two tests for anonymous
256 namespaces.
257 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
258
2c9f4db7
MM
2592000-09-10 Mark Mitchell <mark@codesourcery.com>
260
261 * splay-tree.c (splay_tree_predecessor): New function.
262 (splay_tree_successor): Likewise.
263
bb22da4b
HPN
2642000-09-10 Hans-Peter Nilsson <hp@axis.com>
265
266 * testsuite/demangle-expected: Add four tests for type_info
267 mangling.
bb22da4b
HPN
268 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
269 for a non-template non-qualified type_info function or node.
270
759e8187
AS
2712000-09-08 Alex Samuel <samuel@codesourcery.com>
272
273 * cp-demangle.c: Fix copyright banner.
274
2ecd81ef
MS
2752000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
276
277 * md5.c: #include "ansidecl.h".
278
d93998ec
AS
2792000-09-06 Alex Samuel <samuel@codesourcery.com>
280
281 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
282 (demangle_type): Handle substitution candidates correctly in the
283 face of special substitutions.
284
1056d228
AS
2852000-09-05 Alex Samuel <samuel@codesourcery.com>
286
287 * cp-demangle.c (demangle_encoding): Rename variable.
288 (demangle_name): Rename parameter. Handle return type
289 suppression.
290 (demangle_nested_name): Rename parameter.
291 (demangle_prefix): Likewise. Change return type suppression.
292 (demangle_unqualified_name): Add parameter. Flag constructors and
293 conversion operators.
294 (demangle_special_name): Fix comment.
295 (demangle_type): Rename variable.
296 (demangle_bare_function_type): Check for missing return type and
d1209685 297 parameter.
1056d228
AS
298 (demangle_class_enum_type): Rename parameter.
299 (demangle_discriminator): Fix misspelling in comment.
300
2f31ed7e
DD
3012000-08-31 DJ Delorie <dj@redhat.com>
302
303 * configure.in (Cygwin): special case cygwin only when we're
304 building cygwin, not when we're hosting cygwin.
305
02bcb9c6
AS
3062000-09-04 Alex Samuel <samuel@codesourcery.com>
307
308 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
309 <expression>.
310
aee749cf
AS
3112000-09-04 Alex Samuel <samuel@codesourcery.com>
312
313 * cp-demangle.c (demangle_type_ptr): Increment position past
314 pointer and reference characters.
315
92a16bbe
AS
3162000-09-04 Alex Samuel <samuel@codesourcery.com>
317
318 * cp-demangle.c (demangle_nv_offset): New function.
319 (demangle_v_offset): Likewise.
320 (demangle_call_offset): Likewise.
321 (demangle_special_name): Update thunk demangling to comply with
322 ABI changes.
d1209685 323
31e0ab1f
AS
3242000-09-03 Alex Samuel <samuel@codesourcery.com>
325
326 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
327 (substitution_def): Remove template_parm_number.
328 (NOT_TEMPLATE_PARM): Remove.
329 (result_insert_string): New macro.
330 (result_insert): Likewise.
331 (result_insert_char): Likewise.
332 (substitution_add): Remove last parameter. Don't store template
d1209685 333 parm number.
31e0ab1f
AS
334 (BFT_NO_RETURN_TYPE): Define as NULL.
335 (demangle_encoding): Adjust call to demangle_bare_function_type.
336 (demangle_name): Adjust substitution. Adjust call to
d1209685 337 substitution_add.
31e0ab1f
AS
338 (demangle_prefix): Adjust call to substitution_add.
339 (demangle_identifier): Handle anonymous namespaces.
340 (demangle_operator_name): Change demangling of vendor-extended
341 operator to match ABI changes.
342 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 343 substitutions here.
31e0ab1f
AS
344 (demangle_type): Adjust calls to demangle_template_param,
345 substitution_add, and demangle_type_ptr. Fix substitution of
346 templated types.
347 (demangle_function_type): Change parameter to a pointer.
348 (demangle_bare_function_type): Likewise. Adjust insertion point.
349 (demangle_template_param): Remove last parameter.
350 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 351 demangle_template_param.
31e0ab1f
AS
352 (is_mangled_char): Accept `$' and `.'.
353 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
354 * dyn-string.c (dyn_string_insert_char): New function.
355
ccbc3eb7
HPN
3562000-08-31 Hans-Peter Nilsson <hp@axis.com>
357
358 * testsuite/demangle-expected: Add nine tests for
359 underscore-after-number followed by five tests for name-signature
360 delimiter.
361
53dce582
RH
3622000-08-28 Richard Henderson <rth@cygnus.com>
363
364 * Makefile.in (md5.o): Depend on config.h.
365
881c6935
JM
3662000-08-28 Jason Merrill <jason@redhat.com>
367
368 * Makefile.in (REQUIRED_OFILES): Add md5.o.
369 (CFILES): Add md5.c.
370 * md5.c: New file.
371
a440fd19
AS
3722000-08-27 Alex Samuel <samuel@codesourcery.com>
373
374 * cp-demangle.c (demangle_name): Initialize template_p in local
375 name case. Don't re-add substitutions as candidates.
376 (demangle_nested_name): Use <unqualified-name>.
377 (demangle_prefix): Likewise. Don't add template names as
378 substitution candidates twice, or re-add a substitution or the
379 last prefix component.
380 (demangle_local_name): Adjust output format.
381
d01ce591
AS
3822000-08-25 Alex Samuel <samuel@codesourcery.com>
383
384 * cp-demangle.c (result_add_separated_char): Change parameter to
385 int.
386 (substitution_add): Don't check for duplicates. Check if
387 previously allocated size is zero.
388 (demangle_name): Remove duplicate check for std substitution.
389 Clear template flag appropriately.
390 (demangle_prefix): Remove argument to demangle_substitution.
391 Don't check that template flag is already set.
392 (demangle_operator_name): Add pt operator.
393 (demangle_type): Don't treat r as built-in type. Remove argument
394 to demangle_substitution. Fix substitution candidate mechanics.
395 Handle <template-template-parm>s. Improve comments.
d1209685 396 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
397 (demangle_substitution): Remove parameter.
398 (print_usage): Remove extra fprintf option.
399
2f59c8eb
GM
4002000-08-24 Greg McGary <greg@mcgary.org>
401
402 * libiberty/random.c (end_ptr): Revert previous change.
403
2f26c11d
GM
4042000-08-24 Greg McGary <greg@mcgary.org>
405
406 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
407 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
408 * libiberty/random.c (end_ptr): Likewise.
409
e282c9c9
AS
4102000-08-23 Alex Samuel <samuel@codesourcery.com>
411
412 * cp-demangle.c (result_close_template_list): Remove function.
413 (result_add_separated_char): New function.
414 (result_open_template_list): New macro.
415 (result_close_template_list): Likewise.
416 (demangle_prefix): Don't set template_p if the
417 prefix ends with a ctor name.
418 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
419 (demangle_type): Check for template args after substitution.
420 (demangle_template_args): Use result_open_template_list.
d1209685 421
c9b6494a
ZW
4222000-08-02 Zack Weinberg <zack@wolery.cumb.org>
423
424 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
425
d1209685 4262000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
427
428 * config/mh-openedition.h: Added -DLE370 definition.
429
0aab2795
ME
4302000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
431
432 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
433 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
434 Cast program to 'char *' in errmsg_arg assignment.
435 (PWAIT_ERROR): Define.
436 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
437 to DJGPP's WIF* macros.
438
c2f275e4
RB
4392000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
440 Jeff Law <law@cygnus.com>
441
73aa9564
RB
442 * getcwd.c: Include string.h, stdlib.h for prototypes
443
c2f275e4 444 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
445 * rename.c: Include config.h, unistd.h
446 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 447
ccbc3eb7
HPN
4482000-07-24 Hans-Peter Nilsson <hp@axis.com>
449
450 * cplus-dem.c (work_stuff_copy_to_from): New.
451 (delete_non_B_K_work_stuff): New.
452 (delete_work_stuff): New.
453 (mop_up): Break out work_stuff partly destruction to
454 delete_non_B_K_work_stuff.
455 (iterate_demangle_function): New.
456 (demangle_prefix): Call iterate_demangle_function instead of
457 demangle_function_name. Leave handling of name-signature
458 __-delimiters to iterate_demangle_function.
459 (demangle_integral_value): Strip an optional
460 following underscore cautiously. Handle negative numbers.
461
3388651c
DB
4622000-07-24 Daniel Berlin <dberlin@redhat.com>
463
d1209685 464 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
465 if (AUTO_DEMANGLING || GNU_DEMANGLING)
466
0fac482e
AS
4672000-07-21 Alex Samuel <samuel@codesourcery.com>
468
469 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
470 allocating ctor mangling.
471 (demangle_array_type): Handle empty and non-constant array length.
472
8502a100 4732000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
474 Jeff Law <law@cygnus.com>
475
c6451ce1
MS
476 * configure.in (AC_CHECK_HEADERS): Add time.h.
477 (AC_HEADER_TIME): Add check.
478 * configure, config.in: Regenerate.
479 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
480
cd447360
MS
481 * configure.in (AC_CHECK_HEADERS): Add limits.h.
482 * configure, config.in: Regenerate.
483 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
484 * strtol.c, strtoul.c: #include "config.h". Portably #include
485 <limits.h> and/or <sys/param.h>.
486 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 487
3b58c099
MS
488 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
489 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
490 * configure, config.in: Regenerate.
491 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
492
8502a100
MS
493 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
494
da0c7743
MS
4952000-07-21 Mike Stump <mrs@wrs.com>
496
497 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 498 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 499
838f8562
KG
5002000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
501
502 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
503
504 * setenv.c (setenv): Initialize variable `ep'.
505
506 * sigsetmask.c (abort): Prototype.
507
508 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
509 __STDC__ for stdarg.h include.
510 (int_vasprintf): Prototype.
511 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
512 definition. Cast `global_total_width' in comparison.
513 (main): Prototype. Return a value.
514
515 * vfork.c (fork): Prototype.
516
517 * xexit.c: Include config.h.
518
e9958132
JM
5192000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
520
521 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
522 and print it with %u.
523
39a6492f
HPN
5242000-07-17 Hans-Peter Nilsson <hp@axis.com>
525
526 * testsuite/regress-demangle (failed test): Show result and
527 expected output.
528
6d0be369
AH
5292000-07-07 Andrew Haley <aph@cygnus.com>
530
531 * cplus-dem.c (main): fflush() after emitting last char before
532 waiting for input.
533
bece74bd
AS
5342000-06-28 Alex Samuel <samuel@codesourcery.com>
535
536 * cp-demangle.c (demangle_encoding): Accept no substitutions.
537 (demangle_name): Handle <substitution> followed by
538 <unqualified-template-name>.
539 (demangle_type): Follow special substitutions with
540 <class-enum-type>
541 (demangle_subtitution): Set template_p for special substitutions.
542 (main): Fix typos.
d1209685 543
229b8ec7
AS
5442000-06-27 Alex Samuel <samuel@codesourcery.com>
545
546 * cp-demangle.c (demangle_special_name): Swap base and derived
547 class when demangling construction vtables.
548
051664b0
AS
5492000-06-21 Alex Samuel <samuel@codesourcery.com>
550
551 * cp-demangle.c: Don't include ctype.h.
552 (IS_DIGIT): New macro.
553 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
554 instead of isdigit and isalpanum.
555 (demangling_def): Make name and next const pointers.
556 (STATUS_ALLOCATION_FAILED): New status code.
557 (dyn_string_append_space): Handle failure in
558 dyn_string_append_char.
559 (int_to_dyn_string): Likewise. Change return value to status_t.
560 (string_list_new): Handle failure of dyn_string_init.
561 (result_close_template_list): Change return type to status_t.
562 Handle failure in dyn_string_append.
563 (result_push): Change return value to status_t. Handle failure in
564 string_list_new. Handle failure of result_push throughout.
565 (substitution_add): Change return value to status_t. Handle
566 dyn_string failures. Handle failure of substitution_add
567 throughout.
568 (template_arg_list_new): Return NULL on allocation failure.
569 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
570 Handle error result throughout.
571 (result_append): Likewise.
572 (result_append_char): Likewise.
573 (result_append_space): Likewise.
574 (demangling_new): Make argument a const pointer. Handle
575 allocation failures.
576 (demangle_template_args): Handle failure in template_arg_list_new
577 and result_close_template_list.
578 (demangle_discriminator): Return if int_to_dyn_string fails.
579 (cp_demangle): Likewise.
580 (cp_demangle_type): New function.
581 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
582 memory allocation failure.
583 (main): Likewise.
584 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
585 IN_LIBGCC2.
586 (dyn_string_init): Change return value to int. Handle
587 RETURN_ON_ALLOCATION_FAILURE case.
588 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
589 (dyn_string_release): Delete the dyn_string.
590 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
591 (dyn_string_copy): Change return type to int.
592 (dyn_string_copy_cstr): Likewise.
593 (dyn_string_prepend): Likewise.
594 (dyn_string_prepend_cstr): Likewise.
595 (dyn_string_insert): Likewise.
596 (dyn_string_insert_cstr): Likewise.
597 (dyn_string_append): Likewise.
598 (dyn_string_append_cstr): Likewise.
599 (dyn_string_append_char): Likewise.
600 (dyn_string_substring): Likewise.
d1209685 601
fe06b696
ZW
6022000-06-09 Zack Weinberg <zack@wolery.cumb.org>
603
604 * cp-demangle.c (demangle_operator_name): Add spaces before
605 names beginning with a letter: delete, delete[], new, new[],
606 sizeof.
607 (demangle_special_name): Handle TF <type> and TJ <type>.
608
6223e158
PDM
609Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
610
611 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
612
48f3e29b
PDM
613Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
614
615 * cp-demangle.c (stdio.h): File included unconditionaly.
616 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
617 * dyn-string.c (stdio.h): File included.
618 * partition.c (partition_print): No `&' needed to take the address of
619 a function.
620
69197e7e
KG
6212000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
622
623 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 624
69197e7e
KG
625 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
626
627 * cp-demangle.c (demangle_char): Change parameter from char to int.
628 (demangle_expression, demangle_expr_primary): Remove extra
629 semi-colon in prototype.
630
631 * dyn-string.c (dyn_string_append_char): Change parameter from
632 char to int.
633
634 * memcmp.c (memcmp): Constify.
635
636 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
637 __extension__.
638
639 * partition.c (elem_compare): Prototype. Don't cast away
640 const-ness.
641
642 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 643
7eb23b1f
KG
6442000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
645
646 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
647
648 * cp-demangle.c: Include demangle.h.
649 (template_arg_list_new): DeANSIfy.
650 (cp_demangle): Make static and add prototype.
651 (operator_code, operators): Constify.
652 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
653
3faa108c
AS
6542000-06-05 Alex Samuel <samuel@codesourcery.com>
655
656 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
657 unsigned char.
658 (demangle_unqualified_name): Likewise.
659 (demangle_number_literally): Likewise.
660 (demangle_type): Likewise.
661 (demangle_substitution): Likewise.
662 (is_mangled_char): Likewise, for isalnum.
663
69afa80d
AS
6642000-06-04 Alex Samuel <samuel@codesourcery.com>
665
666 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
667 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
668 (cp-demangle.o): New dependency.
669 (dyn-string.o): Likewise.
670
671 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
672
673 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
674 demangler.
675 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
676 demangling mode.
677 (gnu_new_abi_symbol_characters): New function.
678 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
679 file.
680 * cp-demangle.c: New file.
d1209685 681
0b72c3df
AC
682Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
683
684 * floatformat.c: Add name to each floatformat field.
685
270cea06
JL
686Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
687
688 * Makefile.in (objalloc.o): Depend on config.h
689
d11ec6f0
ZW
6902000-05-29 Zack Weinberg <zack@wolery.cumb.org>
691
692 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
693 if HAVE_STRING_H.
694 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
695 * objalloc.c: Include config.h. Include stdlib.h and don't
696 declare malloc or free if HAVE_STDLIB_H.
697 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
698 else declare malloc without prototype. Include string.h if
699 HAVE_STRING_H, else declare memset without prototype. Don't
700 include stddef.h.
701
f8e2da56
MS
7022000-05-23 Mike Stump <mrs@wrs.com>
703
704 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
705 -j3.
706
650f3068
DA
7072000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
708
709 * xmalloc.c: Include config.h for HAVE_SBRK definition.
710
1d2da2e1
HB
7112000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
712
d1209685 713 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
714 probably zero, also eliminate a warning on alpha.
715
47668d0a
DE
7162000-05-15 David Edelsohn <edelsohn@gnu.org>
717
c7a79a32 718 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
719 on $(enable_shared).
720
36348eab
JJ
7212000-05-10 Jakub Jelinek <jakub@redhat.com>
722
723 * config.table: Use mh-sparcpic for sparc*-*-*.
724
209bbe34
NC
7252000-05-08 Nick Clifton <nickc@cygnus.com>
726
727 * Makefile.in (CFILES): Add strncmp.c.
728 (NEEDED): Add strncmp.
729
a85a47fb
KG
7302000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
731
732 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
733 Cast the arguments to `islower' to `unsigned char'.
734 (print_demangler_list): Prototype.
735
4aef973c
PDM
736Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
737
738 * sort.c (UCHAR_MAX): Provide fallback definition.
739
3b94497c
AO
7402000-04-29 Alexandre Oliva <aoliva@cygnus.com>
741
742 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
743 SUBDIRS.
744
24eaa47a
KB
7452000-04-28 Kenneth Block <block@zk3.dec.com>
746 Jason Merrill <jason@casey.cygnus.com>
747
d1209685
ZW
748 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
749 (cplus_demangle_set_style): New function for setting style.
750 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 751
a9266bfa
KG
7522000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
753
754 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
755
756 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
757 (libiberty_AC_FUNC_STRNCMP): Invoke.
758
759 * strncmp.c: New file.
760
8e02c4d0
JH
761Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
762
763 * hashtab.c (htab_expand): Add prototype.
764 (find_empty_slot_for_expand): Likewise.
765
4feeaae3
KG
7662000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
767
768 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
769 match prototype.
770 (htab_expand): Cast the return value of xcalloc.
771
18a94a2f
MM
7722000-04-24 Mark Mitchell <mark@codesourcery.com>
773
774 * hashtab.c (hash_pointer): New function.
775 (eq_pointer): Likewise.
776 (htab_hash_pointer): New variable.
777 (htab_eq_pointer): Likewise.
778
eeb0656f
MM
7792000-04-23 Mark Mitchell <mark@codesourcery.com>
780
b51024fc
MM
781 * sort.c (sort_pointers): Fix endianness bugs.
782
eeb0656f
MM
783 * sort.c: New file.
784 * Makefile.in (CFILES): Add sort.c
785 (REQUIRED_OFILES): Add sort.o.
786 (sort.o): New target.
787
7277f72d
MS
7882000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
789
790 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
791 4.3BSD systems.
792
e38992e8
RK
793Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
794
795 * hashtab.c: Various minor cleanups.
796 (htab_find_slot_with_hash): INSERT is now enum insert_option.
797 (htab_find_slot): Likewise.
798
498e1ab1
DP
7992000-04-16 Dave Pitts <dpitts@cozx.com>
800
801 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 802
dc17cc7b
RH
8032000-04-05 Richard Henderson <rth@cygnus.com>
804
805 * splay-tree.c (splay_tree_remove): New.
806
b13eb66b
MM
8072000-03-30 Mark Mitchell <mark@codesourcery.com>
808
809 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
810 codes.
811 (htab_find_with_hash): Likewise.
812 (htab_find_slot_with_hash): Likewise.
d1209685 813
0194e877
ZW
8142000-03-29 Zack Weinberg <zack@wolery.cumb.org>
815
816 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
817 unless it will be used. Rearrange loop for better
818 optimization.
819 (higher_prime_number): Add static prototype.
820
abc61fd4
JL
821Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
822
823 * Makefile.in (partition.o): Depend on config.h
824
8c5d513f
BS
8252000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
826
827 * hashtab.c (find_empty_slot_for_expand): New function.
828 (htab_expand): Use it instead of htab_find_slot.
829 (htab_find_with_hash): Renamed from htab_find; now accepts extra
830 argument HASH.
831 (htab_find_slot_with_hash): Likewise for htab_find_slot.
832 (htab_find): New wrapper function.
833 (htab_find_slot): Likewise.
834 (htab_traverse): Pass slot, not entry, to called function.
835
d9d4fb43
AS
8362000-03-09 Alex Samuel <samuel@codesourcery.com>
837
838 * Makefile.in (CFILES): Add partition.c.
839 (REQUIRED_OFILES): Add partition.o.
840 (partition.o): New rule.
841 * partition.c: New file.
d1209685 842
5dc9cffd
ZW
8432000-03-09 Zack Weinberg <zack@wolery.cumb.org>
844
845 * hashtab.c (htab_create): Set del_f.
846 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
847 Use it.
848
5194cf08
ZW
8492000-03-08 Zack Weinberg <zack@wolery.cumb.org>
850
851 * hashtab.c: Remove debugging variables (all_searches,
852 all_collisions, all_expansions). Delete
853 all_hash_table_collisions.
854 (create_hash_table, delete_hash_table, empty_hash_table,
855 find_hash_table_entry, remove_element_from_hash_table_entry,
856 clear_hash_table_slot, traverse_hash_table, hash_table_size,
857 hash_table_elements_number, hash_table_collisions): Rename to:
858 htab_create, htab_delete, htab_empty, htab_find_slot,
859 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
860 htab_elements, htab_collisions.
861 (htab_find): New function, handles common case where you don't
862 plan to add or delete an entry.
863 (htab_expand): Don't create a whole new table, just a new
864 entry vector.
865 (htab_find_slot): Simplify logic.
866
5ad5a984
ILT
8671999-08-03 Ian Lance Taylor <ian@zembu.com>
868
869 * floatformat.c: Add casts to avoid signed/unsigned warnings.
870 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
871
872 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
873 $(TARGETLIB)n so it works on MSDOS.
874 (install_to_tooldir): Likewise.
875
8761999-07-21 Ian Lance Taylor <ian@zembu.com>
877
878 From Mark Elbrecht:
879 * makefile.dos: Remove; obsolete.
880 * configure.bat: Remove; obsolete.
881
8821999-07-11 Ian Lance Taylor <ian@zembu.com>
883
884 * splay-tree.c (splay_tree_insert): Add initialization to avoid
885 warning.
886
aeecce42
MK
8872000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
888
889 * pexecute.c: Conditionally include string.h.
5194cf08 890 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 891
1eaf7d9c
KG
8922000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
893
894 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
895 we're using gcc.
896
897 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
898
0fadedb2
GK
8991999-12-27 Geoff Keating <geoffk@cygnus.com>
900
901 * vasprintf.c (int_vasprintf): Don't re-read the format character
902 as this mishandles strings like '%%s'.
903
08230f26
MM
9041999-12-05 Mark Mitchell <mark@codesourcery.com>
905
906 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
907 rather than struct splay_tree_node.
908 (splay_tree_insert): Use struct splay_tree_s rather than struct
909 splay_tree.
910
6de9b8ff
PDM
911Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
912
913 * hashtab.c (sys/types.h): File included.
914
f3636679
JM
9151999-11-22 Jason Merrill <jason@casey.cygnus.com>
916
917 * strtoul.c, strtol.c, random.c: Remove advertising clause from
918 BSD license, pursuant with
919
920 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
921
36dd3a44
JL
922Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
923
924 * hashtab.c: Include stdio.h.
925
6e300472
JL
926Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
927
928 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
929
df548dfc
PDM
930Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
931
932 * xstrdup (sys/types.h): Include this file.
933
2c375143
NS
9341999-10-28 Nathan Sidwell <nathan@acm.org>
935
936 * Makefile.in (SUBDIRS): New macro.
937 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
938 avoid multiple subdirectory cleaning.
939 (*-subdir): Use SUBDIRS.
940
a82cecda
JK
9411999-10-25 Jim Kingdon <http://developer.redhat.com/>
942
943 * cplus-dem.c: Move declarations of standard_symbol_characters and
944 hp_symbol_characters inside #ifdef MAIN to avoid compiler
945 warnings.
946
ed38f5d5
ZW
9471999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
948
949 * hashtab.c (find_hash_table_entry): When returning a
950 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
951 (clear_hash_table_slot): New function which deletes an entry
952 by its position in the table, not its value.
953 (traverse_hash_table): New function which calls a hook
954 function for every live entry in the table.
955
b60fe4a7
MM
9561999-10-19 Mark Mitchell <mark@codesourcery.com>
957
958 * cplus-dem.c (INTBUF_SIZE): New macro.
959 (string_append_template_idx): New function.
960 (demangle_expression): Likewise.
961 (demangle_integral_value): Use it.
962 (demangle_real_value): New function, split out from ...
963 (demangle_template_value_parm): ... here. Use
964 string_append_template_idx. Use demangle_real_value.
965 (demangle_template): Use string_append_template_idx.
966 (demangle_qualified): Use consume_count_with_underscores.
967 (get_count): Tweak formatting.
968 (do_type): Use string_append_template_idx.
5194cf08 969
3da5522a
KG
9701999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
971
972 * calloc.c: Add a public domain notice.
973
d7d36ea8
PDM
974Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
975
976 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
977
a2f945c6
VM
978Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
979
980 * Makefile.in (CFILES): Add hashtab.c
981 (REQUIRED_OFILES): Add hashtab.o
982 (hashtab.o): Add dependencies.
983 * hashtab.c: New file
984
7f22ec2e
MK
985Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
986
987 * basename.c (DIR_SEPARATOR): New macro.
988 (DIR_SEPARATOR_2): Likewise.
989 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
990 (IS_DIR_SEPARATOR): Likewise.
991 (main): Handle MSDOS style pathname.
992
7c56a6ce
MM
9931999-10-11 Mark Mitchell <mark@codesourcery.com>
994
995 * cplus-dem.c (do_type): Handle pointer to member types whose
996 enclosing classes have namespace scope.
997
cd32188b
ME
998Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
999
1000 * config.table: Provide a backup shell for executing move-if-change.
1001
fc232f7a
MM
10021999-10-02 Mark Mitchell <mark@codesourcery.com>
1003
1004 * xmalloc.c (xmalloc): Fix spelling error.
1005 (xcalloc, xrealloc): Likewise.
1006
2a138827
KG
10071999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1008
1009 * cplus-dem.c (fancy_abort, demangle_integral_value,
1010 demangle_arm_hp_template, recursively_demangle,
1011 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1012 (program_name, program_version, fatal): Constify a char*.
1013 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1014 (main): Call return, not exit.
1015
5a657fc3
KG
10161999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1017
1018 * choose-temp.c: Remove obsolete comment about gcc.
1019 (make_temp_file): Constify a char*.
1020
33c5ddcd
KG
1021Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1022
1023 * xmemdup.c: Include sys/types.h.
1024
b10647f1
JG
10251999-09-07 Jeff Garzik <jgarzik@pobox.com>
1026
1027 * xmemdup.c: New xmemdup function.
1028 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1029
3dd6c3af
LV
1030Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1031
5194cf08 1032 * config.table: Add openedition target.
3dd6c3af
LV
1033 * config/mh-openedition: New file.
1034
19e28e2a
ME
1035Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1036
1037 * pexecute.c (pexecute): Fill in temp_base when needed.
1038
4dfeccf9
RH
10391999-08-31 Richard Henderson <rth@cygnus.com>
1040
1041 * getpwd.c: Check HAVE_GETCWD before defining it away.
1042
4ac3cb83
KG
10431999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1044
1045 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1046 (REQUIRED_OFILES): Add getpwd.o.
1047 (getpwd.o): Add target.
1048
1049 * configure.in (AC_PREREQ): Bump to 2.13.
1050 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1051
1052 * getpwd.c: New file, moved here from gcc.
1053
e797ff70
KG
10541999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1055
1056 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1057 comparing against a signed quantity.
1058 (arm_special): Likewise.
1059 (demangle_fund_type): Likewise.
1060 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 1061 ATTRIBUTE_UNUSED.
e797ff70
KG
1062 (main): Constify variable `valid_symbols'.
1063
55247fce
PDM
1064Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1065
1066 * strtoul.c (strtoul): Add parentheses around && within ||.
1067
76632dd0
DJ
1068Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1069
1070 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1071 libdir, libsubdir and tooldir.
1072
d080bbfa
MM
10731999-08-01 Mark Mitchell <mark@codesourcery.com>
1074
1075 * splay-tree.c (splay_tree_insert): Return the new node.
1076
a81c752a
RH
10771999-07-14 Richard Henderson <rth@cygnus.com>
1078
5194cf08 1079 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
1080 prototyping directly.
1081 * choose-temp.c: Conditionally include string.h.
1082
8f1824d9
JM
10831999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1084
1085 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1086
652374d3
ILT
10871999-07-11 Ian Lance Taylor <ian@zembu.com>
1088
1089 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1090 warning.
1091
a4494286
JM
10921999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1093
1094 * Makefile.in (needed-list): Only include stuff we actually need
1095 for libstdc++.
1096
90e72e20
AS
10971999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1098
1099 * configure.in (checkfuncs): Add gettimeofday.
1100 * config.in, configure: Regenerated.
1101
b569200e
MK
1102Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1103
1104 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1105 the test fails.
1106 * configure: Regenerate.
1107
73919448
MS
11081999-06-10 Mike Stump <mrs@wrs.com>
1109
1110 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1111 parallel builds.
1112
fee9125c
KG
11131999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1114
1115 * putenv.c: Include ansidecl.h to define `const'.
1116 * setenv.c: Likewise.
1117
71cce721
MN
1118Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1119
a7c9637f
JL
1120 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1121 * configure.in (funcs): Add putenv and setenv.
1122 (AC_CHECK_FUNCS): Check for putenv and setenv.
1123 * configure: Rebuilt.
1124 * putenv.c setenv.c: New files.
1125
71cce721
MN
1126 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1127 bytes of space using malloc.
1128
53504016
SG
1129Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1130
1131 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1132 the *mangled pointer beyond the end of the string. Clean up code to
1133 match prevailing coding style.
1134
34842539
MH
11351999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1136
1137 * tmpnam.c (L_tmpnam): Fix typo.
1138
3a08531d
ME
1139Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1140
1141 * cplus-dem.c (standard_symbol_characters): Renamed from
1142 standard_symbol_alphabet. No longer modify TABLE.
1143 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1144 modify TABLE.
1145 (main): Corresponding changes. Use strchr to determine if a
1146 character is valid.
1147
8db9d08b
JB
11481999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1149
1150 * cplus-dem.c (main): Use table lookup to distinguish identifier
1151 characters from non-identifier characters.
1152 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1153
6a071f4a
FF
1154Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1155
1156 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1157 * getruntime.c: Only attempt to include sys/resource.h and
1158 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1159 are defined.
1160
7dd88617
DT
1161Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1162
1163 * configure.in (alloca detection): Handle alloca directly for interix.
1164 * configure: Rebuilt.
1165
7a1528bc
MK
1166Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1167
1168 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1169
76409268
JB
11701999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1171
1172 Fix from Dale Hawkins:
5194cf08 1173 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
1174 reallocated properly if we use it again.
1175
1176 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1177 stricter about syntax. Always null-terminate string.
1178
acbbd80a
MK
1179Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1180
1181 * configure.in (checkfuncs): Check for sbrk.
1182 * config.in: Rebuilt.
1183 * configure: Likewise.
1184 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1185
92523551
JB
11861999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1187
1188 Fix from Marcus Daniels:
1189 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1190 identifier looking for another underscore.
1191
36eb4217
MK
1192Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1193
1194 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1195 * xmalloc.c: Likewise.
1196 (xcalloc): UWIN has sbrk.
1197 (xrealloc): Fix guard macro.
1198
2c45d1a0
RH
11991999-04-11 Richard Henderson <rth@cygnus.com>
1200
1201 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1202 or <alloca.h>.
1203 * clock.c (GNU_HZ): New definition.
1204 (clock): Use it.
1205 * getruntime.c: Likewise.
1206
1207 * config.table: Use mh-beos.
1208 * config/mh-beos: New file.
1209
391cdef0
MM
12101999-04-11 Mark Mitchell <mark@codesourcery.com>
1211
1212 * cplus-dem.c (demangle_template_value_parm): Handle
1213 pointers-to-members.
1214 (do_type): Handle template parameters as qualifiers.
1215
9d229989
JB
12161999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1217
1218 * cplus-dem.c: Attempt to handle overflows in counts with some
1219 semblance of grace.
1220 (consume_count): Detect overflows. Return -1 to indicate errors,
1221 instead of zero.
1222 (demangle_template_value_parm, demangle_template): Handle change
1223 to consume_count's return convention.
1224
7c72138a
TT
12251999-04-05 Tom Tromey <tromey@cygnus.com>
1226
1227 * testsuite/regress-demangle: New file.
1228 * testsuite/demangle-expected: New file.
1229
1230 * Makefile.in (all, check, installcheck, info, install-info,
1231 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1232 distclean, maintainer-clean, realclean): Depend on corresponding
1233 `-subdir' target.
1234 (all-subdir check-subdir installcheck-subdir info-subdir
1235 install-info-subdir clean-info-subdir dvi-subdir
1236 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1237 distclean-subdir maintainer-clean-subdir): New target.
1238 * testsuite/Makefile.in: New file.
1239 * configure: Rebuilt.
1240 * configure.in: Create testsuite/Makefile.
1241
ae7f7270
MM
12421999-04-02 Mark Mitchell <mark@codesourcery.com>
1243
1244 * splay-tree.h (splay_tree_compare_pointers): Define.
1245
30f72379
MM
12461999-03-30 Mark Mitchell <mark@codesourcery.com>
1247
1248 * splay-tree.c (splay_tree_compare_ints): Define.
1249
4cc48683
TT
12501999-03-30 Tom Tromey <tromey@cygnus.com>
1251
1252 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1253 don't advance input pointer.
1254 (demangle_class_name): If consume_count didn't find a count, do
1255 nothing. Don't bother with `strlen' sanity check; consume_count
1256 does it for us.
1257
3510075c
JL
12581999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1259
1260 From Art Haas <ahaas@neosoft.com>:
1261 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1262 when doing arm or hp style.
1263 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1264
89f602a7
MK
1265Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1266
1267 * pexecute.c (__CYGWIN32__): Rename to
1268 (__CYGWIN__): this.
1269 * xmalloc.c: Likewise.
1270
1271 Changes to support i386-pc-uwin.
1272 * configure.in (*-*-uwin*): Workaround for vfork bug.
1273 * configure: Regenerate.
1274 * pexecute.c (pexecute): Be like standard Unix.
1275 (pwait): Likewise.
1276 * xmalloc.c (first_break): Define.
1277 (xmalloc_set_program_name): Use.
1278 (xmalloc): Use.
1279
9346c824
FS
1280Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1281
1282 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1283
3510075c
JL
1284Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1285
1286 * config.table: Check cygwin*, not cygwin32*.
1287
8ec65f13
DB
1288Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1289
1290 * Makefile.in: Change mkstemp -> mkstemps.
1291
687361c8
ME
1292Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1293
1294 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1295 * configure.in (funcs): Check for and conditionally add mkstemps to
1296 the list of functions libiberty will provide.
1297 * configure: Rebuilt.
5194cf08 1298
b207e09c
MK
1299Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1300
5194cf08 1301 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1302 platforms that don't have HZ.
1303 * getruntime.c (HZ): Likewise.
1304
16b4c15e
RH
1305Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1306
1307 * Makefile.in (xstrdup.o): Depend on config.h.
1308
38beb75c
UD
1309Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1310
1311 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1312 freeing it.
1313
7e4311a3
KG
1314Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1315
1316 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1317
3510075c
JL
1318Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1319
1320 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1321 splay-tree.o.
1322
13231999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1324
1325 * configure.in: Require autoconf 2.12.1 or higher.
1326
fb9939b8
MM
13271998-12-30 Michael Meissner <meissner@cygnus.com>
1328
1329 * random.c (NULL): Don't redefine NULL if it is already defined.
1330
087aa398
KG
1331Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1332
1333 * argv.c (buildargv): Cast the result of alloca in assignment.
1334
1335 * choose-temp.c: Include stdlib.h.
38beb75c 1336
087aa398
KG
1337 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1338 (snarf_numeric_literal): Constify first parameter.
1339 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1340 int, not a char.
1341 (demangle_qualifier): Likewise.
1342 (demangle_signature): Cast the argument of a ctype function to
1343 unsigned char.
1344 (arm_pt): Add parens around assignment used as truth value.
1345 (demangle_arm_hp_template): Constify variable `args'.
1346 (do_hpacc_template_const_value): Cast the argument of a ctype
1347 function to unsigned char.
1348 (do_hpacc_template_literal): Remove unused variable `i'.
1349 (snarf_numeric_literal): Constify parameter `args'.
1350 Cast the argument of a ctype function to unsigned char.
1351
1352 * floatformat.c (floatformat_to_double): Add explicit braces to
1353 avoid ambiguous `else'.
38beb75c 1354
087aa398
KG
1355 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1356 `cstart' and `cend' to unsigned char. Cast the argument of macro
1357 `FOLD', which uses ctype functions, to unsigned char.
1358
1359 * objalloc.c (free): Add prototype.
1360
21f2174d
HPN
1361Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1362
1363 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1364
3510075c
JL
1365Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1366
1367 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1368 doesn't exist.
1369 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1370
e8fc8222
AM
1371Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1372
1373 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1374 bumping the pointer we read from. Also prepend these codes,
1375 as we do in other places.
1376
3510075c
JL
13771998-12-18 Nick Clifton <nickc@cygnus.com>
1378
1379 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1380 'const char *' in order to match its usage when calling siblings.
1381 (snarf_numeric_literal): Make first arg 'const char **' in order
1382 to match usage.
11a0bb74 1383
f4f30aa1
JL
1384Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1385
11a0bb74
KG
1386 * choose-temp.c: Don't check IN_GCC anymore.
1387
1388 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1389 * memchr.c (memchr): Likewise.
1390 * memcpy.c (memcpy): Likewise.
1391 * memmove.c (memmove): Likewise.
38beb75c 1392
11a0bb74
KG
1393 * mkstemp.c: Don't check IN_GCC anymore.
1394 * pexecute.c: Likewise.
1395 * splay-tree.c: Likewise.
38beb75c 1396
11a0bb74
KG
1397 * strchr.c (strchr): Use `const', not `CONST'.
1398 * strrchr.c (strrchr): Likewise.
1399 * strtol.c (strtol): Likewise.
1400 * strtoul.c (strtoul): Likewise.
1401
70d5ccef
DT
1402Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1403 Elena Zannoni <ezannoni@cygnus.com>
1404 Stan Shebs <shebs@cygnus.com>
1405 Edith Epstein <eepstein@cygnus.com>
1406 Andres MacLeod <amacleod@cygnus.com>
1407 Satish Pai <pai@apollo.hp.com>
1408
1409 * HP aCC demangling support.
1410 * cplus-dem.c
1411 (main): Remove default to HP style demangling, set to EDG
1412 demangling correctly when -edg specified; set the demangling style
1413 when user specifies 'edg'. Set strip_underscore to
1414 prepends_underscore, if not HPUXHPPA. Set
1415 current_demangling_style to hp_demangling if HPUXHPPA. Set
1416 current demangling style correctly if the switch is hp. Read
1417 label correctly also in the HP style case.
1418 (work_stuff): add temp_start field; add field for volatile member
1419 function.
1420 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1421 style for this case is the same as ARM.
1422 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1423 (demangle_arm_hp_template): new function. (It was
1424 demangle_arm_pt.); check and set value of temp_start field in
1425 multiple places. Also, when ceching for end of template args,
1426 check to see if at end of static member of template class.
1427 (demangle_class): new local variable : save_class_name_end Don't
1428 include template args in string defining class.
1429 (demangle_class_name): use demangel_arm_hp_template.
1430 (demangle_function_name): handle case where demangling style is
1431 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1432 Handle EDG_DEMANGLING style. Handle constructor and destructor
1433 ops for HP style.
1434 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1435 styles. global destructor and constructor for HP style are same
1436 as for ARM style. Same for local variables.
1437 (demangle_qualified): handle EDG_DEMANGLING style.
1438 (demangle_signature): add case for volatile member function. For
1439 cases '1' - '9' : initialize the temp_start field to -1 and handle
1440 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1441 and AUTO_DEMANGLING styles. If expecting a function and managed
1442 to demangle the funct args, then handle the LUCID_DEMANGLING,
1443 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1444 class name after "Lnnn_ in HP style case. HP style too needs to
1445 forget types. _nnn is OK for HP style, so don't report failure.
1446 (do_hpacc_template_const_value): new function. Handle template's
1447 value param for HP/aCC.
1448 (do_hpacc_template_literal): new function. Handle a template's
1449 literal parameter for HP aCC.
1450 (recursively_demangle): new function
1451 (snarf_numeric_literal): new function.
1452 (usage): add 'edg' to the list of demangling styles; add hp switch
1453 to message.
1454
8d525fa8
CF
1455Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1456
1457 * pexecute.c: Remove obsolete ifdefed cygwin code.
1458
9b1a92d8
KG
1459Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1460
1461 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1462 * cplus-dem.c: Likewise. Conform to libiberty.h.
1463 * pexecute.c: Likewise.
1464 * splay-tree.c: Likewise.
1465
c85c3232
MS
14661998-11-25 Mike Stump <mrs@wrs.com>
1467
1468 * Makefile.in (splay-tree.o): Add config.h dependency.
1469
35a6cd99
KG
1470Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1471
1472 * configure.in: Use AC_PREREQ(2.12.1).
1473
6e6e34b7
BK
14741998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1475
5194cf08 1476 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 1477
59b67c11
JL
1478Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1479
1480 * mpw.c (mpw_access): Add missing parens.
1481
a6458d1d
KG
1482Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1483
1484 * configure.in: Call AC_HEADER_SYS_WAIT.
1485
1486 * pexecute.c: Include sys/wait.h when !IN_GCC.
1487
3510075c
JL
1488Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1489
1490 * pexecute.c: revert back to checking old Cygwin
1491 preprocessor symbol until some time has passed.
1492
1493Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1494
1495 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1496 since it will now support similar constructs.
1497
a9acf741
KG
1498Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1499
1500 * configure.in: Check for calloc.
1501
1502 * calloc.c: New file.
1503
1504 * xmalloc.c (xcalloc): New function.
1505
a49fb37a
AM
1506Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1507
1508 *cplus-dem.c (demangle_prefix): Use the last "__"
1509 in the mangled name when looking for the signature. This allows
1510 template names to begin with "__".
1511
0e714131
MM
15121998-11-08 Mark Mitchell <mark@markmitchell.com>
1513
ec2288ff
MM
1514 * cplus-dem.c (type_kind_t): Add tk_reference.
1515 (demangle_template_value_parm): Handle it.
1516 (do_type): Use it for references, instead of tk_pointer.
1517
0e714131
MM
1518 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1519 not internal_cplus_demangle.
1520
2931b6d4
KG
1521Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1522
1523 * choose-temp.c: Don't include gansidecl.h.
1524 * mkstemp.c: Likewise.
1525 * pexecute.c: Likewise.
1526
dd8f3ed5
GN
1527Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1528
5194cf08
ZW
1529 * configure.in: detect cygwin* instead of cygwin32*
1530 * configure: regenerate
dd8f3ed5 1531
c5f7c445
KG
1532Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1533
1534 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1535 whether to include config.h. Possibly include unistd.h in the
1536 !IN_GCC case. Define VFORK_STRING as a printable function call
1537 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1538 defined, include vfork.h. If VMS is defined, define vfork()
1539 appropriately. Remove vfork check on USG, we're using autoconf.
1540 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1541 locally what string to use.
1542
ad3ef78e
MM
15431998-10-26 Mark Mitchell <mark@markmitchell.com>
1544
1545 * splay-tree.c: Tweak include directives to make sure declarations of
1546 xmalloc and free are available.
1547
224301c1
MM
15481998-10-25 Mark Mitchell <mark@markmitchell.com>
1549
1550 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1551 anonymous namespaces.
38beb75c 1552
d9db46fd
MM
15531998-10-23 Mark Mitchell <mark@markmitchell.com>
1554
1555 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1556 with type_quals.
1557 (TYPE_UNQUALIFIED): New macro.
1558 (TYPE_QUAL_CONST): Likewise.
1559 (TYPE_QUAL_VOLATILE): Likewise.
1560 (TYPE_QUAL_RESTRICT): Likewise.
1561 (code_for_qualifier): New function.
1562 (qualifier_string): Likewise.
1563 (demangle_qualifier): Likewise.
1564 (internal_cplus_demangle): Use them.
1565 (demangle_signature): Likewise.
1566 (demangle_template_value_parm): Likewise.
1567 (do_type): Likewise.
1568 (demangle_fund_type)): Likewise.
224301c1 1569
b056ad1c
KG
1570Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1571
1572 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1573 to match prototype.
1574
ed87f9c8
MM
15751998-10-21 Mark Mitchell <mark@markmitchell.com>
1576
1577 * splay-tree.c: New file.
1578 * Makefile.in (CFILES): Add it.
1579 (REQUIRED_OFILES): Likewise.
1580 (splay-tree.o): Add dependencies.
1581
e0c13971
AS
1582Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1583
1584 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1585 range of 'K' index.
1586
91e0f659
KG
1587Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1588
1589 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1590
1591 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1592 `unsigned char'.
1593 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1594 comparing against one.
1595 (cplus_mangle_opname): Likewise.
1596 (demangle_integral_value): Cast argument of ctype macro to
1597 `unsigned char'.
1598 (demangle_template_value_parm): Likewise.
1599 (demangle_template): Initialize variable `bindex'. Cast the
1600 result of `strlen' to (int) when comparing against one. Remove
1601 unused variable `start_of_value_parm'.
1602 (demangle_class_name): Cast the result of `strlen' to (int) when
1603 comparing against one.
1604 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1605 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1606 when comparing against one.
1607 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1608 (get_count): Likewise.
1609 (do_type): Likewise. Cast the result of `strlen' to (int) when
1610 comparing against one.
1611 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1612 (demangle_function_name): Cast the result of `strlen' to (int)
1613 when comparing against one.
1614
1615 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1616 comparing against one.
1617
73aeb2ff
JL
1618Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1619
5194cf08
ZW
1620 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1621 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1622 * config.in, configure: Rebuilt.
ae76f1be 1623
73aeb2ff
JL
1624 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1625 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1626 * config.in, configure: Rebuilt.
1627
dd8f3ed5
GN
1628Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1629
5194cf08 1630 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 1631
f77d8413
MT
1632Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1633
1634 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1635
ca6b370d
JL
1636Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1637
1638 * Merge egcs & devo libiberty.
1639
ab4856b1
ML
1640