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