Based on patches from Donn Terry <donn@interix.com>:
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
1198f921
ILT
11999-08-05 Ian Lance Taylor <ian@zembu.com>
2
3 * xmalloc.c: Control all uses of SBRK with a single define,
4 USE_SBRK. Don't define it if __INTERIX.
5
08372f14
ILT
61999-08-03 Ian Lance Taylor <ian@zembu.com>
7
8 * floatformat.c: Add casts to avoid signed/unsigned warnings.
9 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
10
11 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
12 $(TARGETLIB)n so it works on MSDOS.
13 (install_to_tooldir): Likewise.
14
9c8ac5a9
ILT
151999-07-21 Ian Lance Taylor <ian@zembu.com>
16
17 From Mark Elbrecht:
18 * makefile.dos: Remove; obsolete.
8f36e47c 19 * configure.bat: Remove; obsolete.
9c8ac5a9 20
35ca97ea
RH
211999-07-14 Richard Henderson <rth@cygnus.com>
22
23 * argv.c: Include stdlib.h and string.h instead of
24 prototyping directly.
25 * choose-temp.c: Conditionally include string.h.
26
af32ff69
ILT
271999-07-11 Ian Lance Taylor <ian@zembu.com>
28
29 * splay-tree.c (splay_tree_insert): Add initialization to avoid
30 warning.
31
e9868447
JB
321999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
33
34 * cplus-dem.c (main): Use table lookup to distinguish identifier
35 characters from non-identifier characters.
36 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
37
33fbbfbc
RH
38Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
39
40 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
41 * getruntime.c: Only attempt to include sys/resource.h and
42 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
43 are defined.
44
252b5132
RH
451999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
46
47 Fix from Dale Hawkins:
48 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
49 reallocated properly if we use it again.
50
51 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
52 stricter about syntax. Always null-terminate string.
53
54 Fix from Marcus Daniels:
55 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
56 identifier looking for another underscore.
57
581999-04-11 Richard Henderson <rth@cygnus.com>
59
60 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
61 or <alloca.h>.
62 * clock.c (GNU_HZ): New definition.
63 (clock): Use it.
64 * getruntime.c: Likewise.
65
66 * config.table: Use mh-beos.
67 * config/mh-beos: New file.
68
691999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
70
71 * cplus-dem.c: Attempt to handle overflows in counts with some
72 semblance of grace.
73 (consume_count): Detect overflows. Return -1 to indicate errors,
74 instead of zero.
75 (demangle_template_value_parm, demangle_template): Handle change
76 to consume_count's return convention.
77
78Thu Apr 8 14:43:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
79
80 * xmalloc.c, pexecute.c: Define __CYGWIN__ when being compiled
81 with old __CYGWIN32__ compiler.
82
831999-04-02 Mark Mitchell <mark@codesourcery.com>
84
85 * splay-tree.h (splay_tree_compare_pointers): Define.
86
871999-03-30 Mark Mitchell <mark@codesourcery.com>
88
89 * splay-tree.c (splay_tree_compare_ints): Define.
90
911999-03-30 Tom Tromey <tromey@cygnus.com>
92
93 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
94 don't advance input pointer.
95 (demangle_class_name): If consume_count didn't find a count, do
96 nothing. Don't bother with `strlen' sanity check; consume_count
97 does it for us.
98
991999-03-16 Stan Shebs <shebs@andros.cygnus.com>
100
101 From Art Haas <ahaas@neosoft.com>:
102 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
103 when doing arm or hp style.
104 (demangle_nested_args): Decr forgetting_types field when done.
105
106Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
107
108 * pexecute.c (__CYGWIN32__): Rename to
109 (__CYGWIN__): this.
110 * xmalloc.c: Likewise.
111
112 Changes to support i386-pc-uwin.
113 * configure.in (*-*-uwin*): Workaround for vfork bug.
114 * configure: Regenerate.
115 * pexecute.c (pexecute): Be like standard Unix.
116 (pwait): Likewise.
117 * xmalloc.c (first_break): Define.
118 (xmalloc_set_program_name): Use.
119 (xmalloc): Use.
120
121Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
122
123 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
124
125Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
126
127 * config.table: Check cygwin*, not cygwin32*.
128
129Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
130
131 * Makefile.in: Change mkstemp -> mkstemps.
132
133Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
134
135 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
136 * configure.in (funcs): Check for and conditionally add mkstemps to
137 the list of functions libiberty will provide.
138 * configure: Rebuilt.
139
140Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
141
142 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
143 platforms that don't have HZ.
144 * getruntime.c (HZ): Likewise.
145
146Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
147
148 * Makefile.in (xstrdup.o): Depend on config.h.
149
150Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
151
152 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
153 freeing it.
154
155Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
156
157 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
158
159Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
160
161 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
162 splay-tree.o.
163
1641999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
165
166 * configure.in: Require autoconf 2.12.1 or higher.
167
1681998-12-30 Michael Meissner <meissner@cygnus.com>
169
170 * random.c (NULL): Don't redefine NULL if it is already defined.
171
172Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
173
174 * argv.c (buildargv): Cast the result of alloca in assignment.
175
176 * choose-temp.c: Include stdlib.h.
177
178 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
179 (snarf_numeric_literal): Constify first parameter.
180 (code_for_qualifier): Avoid a gcc extension, make the parameter an
181 int, not a char.
182 (demangle_qualifier): Likewise.
183 (demangle_signature): Cast the argument of a ctype function to
184 unsigned char.
185 (arm_pt): Add parens around assignment used as truth value.
186 (demangle_arm_hp_template): Constify variable `args'.
187 (do_hpacc_template_const_value): Cast the argument of a ctype
188 function to unsigned char.
189 (do_hpacc_template_literal): Remove unused variable `i'.
190 (snarf_numeric_literal): Constify parameter `args'.
191 Cast the argument of a ctype function to unsigned char.
192
193 * floatformat.c (floatformat_to_double): Add explicit braces to
194 avoid ambiguous `else'.
195
196 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
197 `cstart' and `cend' to unsigned char. Cast the argument of macro
198 `FOLD', which uses ctype functions, to unsigned char.
199
200 * objalloc.c (free): Add prototype.
201
202Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
203
204 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
205
206Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
207
208 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
209 doesn't exist.
210 (do_hpacc_template_literal): remove unused variable `i'.
211
212Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
213
214 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
215 bumping the pointer we read from. Also prepend these codes,
216 as we do in other places.
217
2181998-12-18 Nick Clifton <nickc@cygnus.com>
219
220 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
221 'const char *' in order to match its usage when calling siblings.
222 (snarf_numeric_literal): Make first arg 'const char **' in order
223 to match usage.
224
225Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
226
227 * choose-temp.c: Don't check IN_GCC anymore.
228
229 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
230 * memchr.c (memchr): Likewise.
231 * memcpy.c (memcpy): Likewise.
232 * memmove.c (memmove): Likewise.
233
234 * mkstemp.c: Don't check IN_GCC anymore.
235 * pexecute.c: Likewise.
236 * splay-tree.c: Likewise.
237
238 * strchr.c (strchr): Use `const', not `CONST'.
239 * strrchr.c (strrchr): Likewise.
240 * strtol.c (strtol): Likewise.
241 * strtoul.c (strtoul): Likewise.
242
243Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
244 Elena Zannoni <ezannoni@cygnus.com>
245 Stan Shebs <shebs@cygnus.com>
246 Edith Epstein <eepstein@cygnus.com>
247 Andres MacLeod <amacleod@cygnus.com>
248 Satish Pai <pai@apollo.hp.com>
249
250 * HP aCC demangling support.
251 * cplus-dem.c
252 (main): Remove default to HP style demangling, set to EDG
253 demangling correctly when -edg specified; set the demangling style
254 when user specifies 'edg'. Set strip_underscore to
255 prepends_underscore, if not HPUXHPPA. Set
256 current_demangling_style to hp_demangling if HPUXHPPA. Set
257 current demangling style correctly if the switch is hp. Read
258 label correctly also in the HP style case.
259 (work_stuff): add temp_start field; add field for volatile member
260 function.
261 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
262 style for this case is the same as ARM.
263 (demangle_args): handle EDG_DEMANGLING style; support HP style.
264 (demangle_arm_hp_template): new function. (It was
265 demangle_arm_pt.); check and set value of temp_start field in
266 multiple places. Also, when ceching for end of template args,
267 check to see if at end of static member of template class.
268 (demangle_class): new local variable : save_class_name_end Don't
269 include template args in string defining class.
270 (demangle_class_name): use demangel_arm_hp_template.
271 (demangle_function_name): handle case where demangling style is
272 HP_DEMANGLING and currently point at an 'X' in the mangled name.
273 Handle EDG_DEMANGLING style. Handle constructor and destructor
274 ops for HP style.
275 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
276 styles. global destructor and constructor for HP style are same
277 as for ARM style. Same for local variables.
278 (demangle_qualified): handle EDG_DEMANGLING style.
279 (demangle_signature): add case for volatile member function. For
280 cases '1' - '9' : initialize the temp_start field to -1 and handle
281 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
282 and AUTO_DEMANGLING styles. If expecting a function and managed
283 to demangle the funct args, then handle the LUCID_DEMANGLING,
284 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
285 class name after "Lnnn_ in HP style case. HP style too needs to
286 forget types. _nnn is OK for HP style, so don't report failure.
287 (do_hpacc_template_const_value): new function. Handle template's
288 value param for HP/aCC.
289 (do_hpacc_template_literal): new function. Handle a template's
290 literal parameter for HP aCC.
291 (recursively_demangle): new function
292 (snarf_numeric_literal): new function.
293 (usage): add 'edg' to the list of demangling styles; add hp switch
294 to message.
295
296Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
297
298 * pexecute.c: Remove obsolete ifdefed cygwin code.
299
300Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
301
302 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
303 * cplus-dem.c: Likewise. Conform to libiberty.h.
304 * pexecute.c: Likewise.
305 * splay-tree.c: Likewise.
306
3071998-11-25 Mike Stump <mrs@wrs.com>
308
309 * Makefile.in (splay-tree.o): Add config.h dependency.
310
311Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
312
313 * configure.in: Use AC_PREREQ(2.12.1).
314
3151998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
316
317 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
318
319Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
320
321 * mpw.c (mpw_access): Add missing parens.
322
323Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
324
325 * configure.in: Call AC_HEADER_SYS_WAIT.
326
327 * pexecute.c: Include sys/wait.h when !IN_GCC.
328
329Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
330
331 * pexecute.c: revert back to checking old Cygwin
332 preprocessor symbol until some time has passed.
333
334Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
335
336 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
337 since it will now support similar constructs.
338
339Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
340
341 * configure.in: Check for calloc.
342
343 * calloc.c: New file.
344
345 * xmalloc.c (xcalloc): New function.
346
347Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
348
349 *cplus-dem.c (demangle_prefix): Use the last "__"
350 in the mangled name when looking for the signature. This allows
351 template names to begin with "__".
352
3531998-11-08 Mark Mitchell <mark@markmitchell.com>
354
355 * cplus-dem.c (type_kind_t): Add tk_reference.
356 (demangle_template_value_parm): Handle it.
357 (do_type): Use it for references, instead of tk_pointer.
358
359 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
360 not internal_cplus_demangle.
361
362Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
363
364 * choose-temp.c: Don't include gansidecl.h.
365 * mkstemp.c: Likewise.
366 * pexecute.c: Likewise.
367
368Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
369
370 * configure.in: detect cygwin* instead of cygwin32*
371 * configure: regenerate
372
373Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
374
375 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
376 whether to include config.h. Possibly include unistd.h in the
377 !IN_GCC case. Define VFORK_STRING as a printable function call
378 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
379 defined, include vfork.h. If VMS is defined, define vfork()
380 appropriately. Remove vfork check on USG, we're using autoconf.
381 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
382 locally what string to use.
383
3841998-10-26 Mark Mitchell <mark@markmitchell.com>
385
386 * splay-tree.c: Tweak include directives to make sure declarations of
387 xmalloc and free are available.
388
3891998-10-25 Mark Mitchell <mark@markmitchell.com>
390
391 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
392 anonymous namespaces.
393
3941998-10-23 Mark Mitchell <mark@markmitchell.com>
395
396 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
397 with type_quals.
398 (TYPE_UNQUALIFIED): New macro.
399 (TYPE_QUAL_CONST): Likewise.
400 (TYPE_QUAL_VOLATILE): Likewise.
401 (TYPE_QUAL_RESTRICT): Likewise.
402 (code_for_qualifier): New function.
403 (qualifier_string): Likewise.
404 (demangle_qualifier): Likewise.
405 (internal_cplus_demangle): Use them.
406 (demangle_signature): Likewise.
407 (demangle_template_value_parm): Likewise.
408 (do_type): Likewise.
409 (demangle_fund_type)): Likewise.
410
411Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
412
413 * splay-tree.c (splay_tree_foreach_helper): Make definition static
414 to match prototype.
415
4161998-10-21 Mark Mitchell <mark@markmitchell.com>
417
418 * splay-tree.c: New file.
419 * Makefile.in (CFILES): Add it.
420 (REQUIRED_OFILES): Likewise.
421 (splay-tree.o): Add dependencies.
422
423Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
424
425 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
426 range of 'K' index.
427
428Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
429
430 * choose-temp.c: Prototype mkstemps() when IN_GCC.
431
432 * cplus-dem.c (consume_count): Cast argument of ctype macro to
433 `unsigned char'.
434 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
435 comparing against one.
436 (cplus_mangle_opname): Likewise.
437 (demangle_integral_value): Cast argument of ctype macro to
438 `unsigned char'.
439 (demangle_template_value_parm): Likewise.
440 (demangle_template): Initialize variable `bindex'. Cast the
441 result of `strlen' to (int) when comparing against one. Remove
442 unused variable `start_of_value_parm'.
443 (demangle_class_name): Cast the result of `strlen' to (int) when
444 comparing against one.
445 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
446 (gnu_special): Likewise. Cast the result of `strlen' to (int)
447 when comparing against one.
448 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
449 (get_count): Likewise.
450 (do_type): Likewise. Cast the result of `strlen' to (int) when
451 comparing against one.
452 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
453 (demangle_function_name): Cast the result of `strlen' to (int)
454 when comparing against one.
455
456 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
457 comparing against one.
458
459Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
460
461 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
462 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
463 * config.in, configure: Rebuilt.
464
465 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
466 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
467 * config.in, configure: Rebuilt.
468
469Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
470
471 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
472
473Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
474
475 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
476
477Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
478
479 * Merge egcs & devo libiberty.
480