]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
cse.c (cse_insn): Copy SRC_CONST before putting it in the REG_EQUAL note.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
34842539
MH
11999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2
3 * tmpnam.c (L_tmpnam): Fix typo.
4
3a08531d
ME
5Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
6
7 * cplus-dem.c (standard_symbol_characters): Renamed from
8 standard_symbol_alphabet. No longer modify TABLE.
9 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
10 modify TABLE.
11 (main): Corresponding changes. Use strchr to determine if a
12 character is valid.
13
8db9d08b
JB
141999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
15
16 * cplus-dem.c (main): Use table lookup to distinguish identifier
17 characters from non-identifier characters.
18 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
19
6a071f4a
FF
20Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
21
22 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
23 * getruntime.c: Only attempt to include sys/resource.h and
24 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
25 are defined.
26
7dd88617
DT
27Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
28
29 * configure.in (alloca detection): Handle alloca directly for interix.
30 * configure: Rebuilt.
31
7a1528bc
MK
32Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
33
34 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
35
76409268
JB
361999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
37
38 Fix from Dale Hawkins:
39 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
40 reallocated properly if we use it again.
41
42 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
43 stricter about syntax. Always null-terminate string.
44
acbbd80a
MK
45Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
46
47 * configure.in (checkfuncs): Check for sbrk.
48 * config.in: Rebuilt.
49 * configure: Likewise.
50 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
51
92523551
JB
521999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
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
36eb4217
MK
58Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
59
60 * pexecute.c: Change all references to __UWIN__ to _UWIN.
61 * xmalloc.c: Likewise.
62 (xcalloc): UWIN has sbrk.
63 (xrealloc): Fix guard macro.
64
391cdef0
MM
651999-04-11 Mark Mitchell <mark@codesourcery.com>
66
67 * cplus-dem.c (demangle_template_value_parm): Handle
68 pointers-to-members.
69 (do_type): Handle template parameters as qualifiers.
70
9d229989
JB
711999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
72
73 * cplus-dem.c: Attempt to handle overflows in counts with some
74 semblance of grace.
75 (consume_count): Detect overflows. Return -1 to indicate errors,
76 instead of zero.
77 (demangle_template_value_parm, demangle_template): Handle change
78 to consume_count's return convention.
79
7c72138a
TT
801999-04-05 Tom Tromey <tromey@cygnus.com>
81
82 * testsuite/regress-demangle: New file.
83 * testsuite/demangle-expected: New file.
84
85 * Makefile.in (all, check, installcheck, info, install-info,
86 clean-info, dvi, install, etags, tags, mostlyclean, clean,
87 distclean, maintainer-clean, realclean): Depend on corresponding
88 `-subdir' target.
89 (all-subdir check-subdir installcheck-subdir info-subdir
90 install-info-subdir clean-info-subdir dvi-subdir
91 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
92 distclean-subdir maintainer-clean-subdir): New target.
93 * testsuite/Makefile.in: New file.
94 * configure: Rebuilt.
95 * configure.in: Create testsuite/Makefile.
96
ae7f7270
MM
971999-04-02 Mark Mitchell <mark@codesourcery.com>
98
99 * splay-tree.h (splay_tree_compare_pointers): Define.
100
30f72379
MM
1011999-03-30 Mark Mitchell <mark@codesourcery.com>
102
103 * splay-tree.c (splay_tree_compare_ints): Define.
104
4cc48683
TT
1051999-03-30 Tom Tromey <tromey@cygnus.com>
106
107 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
108 don't advance input pointer.
109 (demangle_class_name): If consume_count didn't find a count, do
110 nothing. Don't bother with `strlen' sanity check; consume_count
111 does it for us.
112
3510075c
JL
1131999-03-16 Stan Shebs <shebs@andros.cygnus.com>
114
115 From Art Haas <ahaas@neosoft.com>:
116 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
117 when doing arm or hp style.
118 (demangle_nested_args): Decr forgetting_types field when done.
119
89f602a7
MK
120Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
121
122 * pexecute.c (__CYGWIN32__): Rename to
123 (__CYGWIN__): this.
124 * xmalloc.c: Likewise.
125
126 Changes to support i386-pc-uwin.
127 * configure.in (*-*-uwin*): Workaround for vfork bug.
128 * configure: Regenerate.
129 * pexecute.c (pexecute): Be like standard Unix.
130 (pwait): Likewise.
131 * xmalloc.c (first_break): Define.
132 (xmalloc_set_program_name): Use.
133 (xmalloc): Use.
134
9346c824
FS
135Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
136
137 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
138
3510075c
JL
139Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
140
141 * config.table: Check cygwin*, not cygwin32*.
142
8ec65f13
DB
143Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
144
145 * Makefile.in: Change mkstemp -> mkstemps.
146
687361c8
ME
147Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
148
149 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
150 * configure.in (funcs): Check for and conditionally add mkstemps to
151 the list of functions libiberty will provide.
152 * configure: Rebuilt.
153
b207e09c
MK
154Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
155
156 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
157 platforms that don't have HZ.
158 * getruntime.c (HZ): Likewise.
159
16b4c15e
RH
160Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
161
162 * Makefile.in (xstrdup.o): Depend on config.h.
163
38beb75c
UD
164Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
165
166 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
167 freeing it.
168
7e4311a3
KG
169Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
170
171 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
172
3510075c
JL
173Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
174
175 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
176 splay-tree.o.
177
1781999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
179
180 * configure.in: Require autoconf 2.12.1 or higher.
181
fb9939b8
MM
1821998-12-30 Michael Meissner <meissner@cygnus.com>
183
184 * random.c (NULL): Don't redefine NULL if it is already defined.
185
087aa398
KG
186Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
187
188 * argv.c (buildargv): Cast the result of alloca in assignment.
189
190 * choose-temp.c: Include stdlib.h.
38beb75c 191
087aa398
KG
192 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
193 (snarf_numeric_literal): Constify first parameter.
194 (code_for_qualifier): Avoid a gcc extension, make the parameter an
195 int, not a char.
196 (demangle_qualifier): Likewise.
197 (demangle_signature): Cast the argument of a ctype function to
198 unsigned char.
199 (arm_pt): Add parens around assignment used as truth value.
200 (demangle_arm_hp_template): Constify variable `args'.
201 (do_hpacc_template_const_value): Cast the argument of a ctype
202 function to unsigned char.
203 (do_hpacc_template_literal): Remove unused variable `i'.
204 (snarf_numeric_literal): Constify parameter `args'.
205 Cast the argument of a ctype function to unsigned char.
206
207 * floatformat.c (floatformat_to_double): Add explicit braces to
208 avoid ambiguous `else'.
38beb75c 209
087aa398
KG
210 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
211 `cstart' and `cend' to unsigned char. Cast the argument of macro
212 `FOLD', which uses ctype functions, to unsigned char.
213
214 * objalloc.c (free): Add prototype.
215
21f2174d
HPN
216Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
217
218 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
219
3510075c
JL
220Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
221
222 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
223 doesn't exist.
224 (do_hpacc_template_literal): remove unused variable `i'.
225
e8fc8222
AM
226Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
227
228 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
229 bumping the pointer we read from. Also prepend these codes,
230 as we do in other places.
231
3510075c
JL
2321998-12-18 Nick Clifton <nickc@cygnus.com>
233
234 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
235 'const char *' in order to match its usage when calling siblings.
236 (snarf_numeric_literal): Make first arg 'const char **' in order
237 to match usage.
11a0bb74 238
f4f30aa1
JL
239Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
240
11a0bb74
KG
241 * choose-temp.c: Don't check IN_GCC anymore.
242
243 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
244 * memchr.c (memchr): Likewise.
245 * memcpy.c (memcpy): Likewise.
246 * memmove.c (memmove): Likewise.
38beb75c 247
11a0bb74
KG
248 * mkstemp.c: Don't check IN_GCC anymore.
249 * pexecute.c: Likewise.
250 * splay-tree.c: Likewise.
38beb75c 251
11a0bb74
KG
252 * strchr.c (strchr): Use `const', not `CONST'.
253 * strrchr.c (strrchr): Likewise.
254 * strtol.c (strtol): Likewise.
255 * strtoul.c (strtoul): Likewise.
256
70d5ccef
DT
257Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
258 Elena Zannoni <ezannoni@cygnus.com>
259 Stan Shebs <shebs@cygnus.com>
260 Edith Epstein <eepstein@cygnus.com>
261 Andres MacLeod <amacleod@cygnus.com>
262 Satish Pai <pai@apollo.hp.com>
263
264 * HP aCC demangling support.
265 * cplus-dem.c
266 (main): Remove default to HP style demangling, set to EDG
267 demangling correctly when -edg specified; set the demangling style
268 when user specifies 'edg'. Set strip_underscore to
269 prepends_underscore, if not HPUXHPPA. Set
270 current_demangling_style to hp_demangling if HPUXHPPA. Set
271 current demangling style correctly if the switch is hp. Read
272 label correctly also in the HP style case.
273 (work_stuff): add temp_start field; add field for volatile member
274 function.
275 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
276 style for this case is the same as ARM.
277 (demangle_args): handle EDG_DEMANGLING style; support HP style.
278 (demangle_arm_hp_template): new function. (It was
279 demangle_arm_pt.); check and set value of temp_start field in
280 multiple places. Also, when ceching for end of template args,
281 check to see if at end of static member of template class.
282 (demangle_class): new local variable : save_class_name_end Don't
283 include template args in string defining class.
284 (demangle_class_name): use demangel_arm_hp_template.
285 (demangle_function_name): handle case where demangling style is
286 HP_DEMANGLING and currently point at an 'X' in the mangled name.
287 Handle EDG_DEMANGLING style. Handle constructor and destructor
288 ops for HP style.
289 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
290 styles. global destructor and constructor for HP style are same
291 as for ARM style. Same for local variables.
292 (demangle_qualified): handle EDG_DEMANGLING style.
293 (demangle_signature): add case for volatile member function. For
294 cases '1' - '9' : initialize the temp_start field to -1 and handle
295 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
296 and AUTO_DEMANGLING styles. If expecting a function and managed
297 to demangle the funct args, then handle the LUCID_DEMANGLING,
298 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
299 class name after "Lnnn_ in HP style case. HP style too needs to
300 forget types. _nnn is OK for HP style, so don't report failure.
301 (do_hpacc_template_const_value): new function. Handle template's
302 value param for HP/aCC.
303 (do_hpacc_template_literal): new function. Handle a template's
304 literal parameter for HP aCC.
305 (recursively_demangle): new function
306 (snarf_numeric_literal): new function.
307 (usage): add 'edg' to the list of demangling styles; add hp switch
308 to message.
309
8d525fa8
CF
310Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
311
312 * pexecute.c: Remove obsolete ifdefed cygwin code.
313
9b1a92d8
KG
314Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
315
316 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
317 * cplus-dem.c: Likewise. Conform to libiberty.h.
318 * pexecute.c: Likewise.
319 * splay-tree.c: Likewise.
320
c85c3232
MS
3211998-11-25 Mike Stump <mrs@wrs.com>
322
323 * Makefile.in (splay-tree.o): Add config.h dependency.
324
35a6cd99
KG
325Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
326
327 * configure.in: Use AC_PREREQ(2.12.1).
328
6e6e34b7
BK
3291998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
330
331 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
332
59b67c11
JL
333Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
334
335 * mpw.c (mpw_access): Add missing parens.
336
a6458d1d
KG
337Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
338
339 * configure.in: Call AC_HEADER_SYS_WAIT.
340
341 * pexecute.c: Include sys/wait.h when !IN_GCC.
342
3510075c
JL
343Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
344
345 * pexecute.c: revert back to checking old Cygwin
346 preprocessor symbol until some time has passed.
347
348Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
349
350 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
351 since it will now support similar constructs.
352
a9acf741
KG
353Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
354
355 * configure.in: Check for calloc.
356
357 * calloc.c: New file.
358
359 * xmalloc.c (xcalloc): New function.
360
a49fb37a
AM
361Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
362
363 *cplus-dem.c (demangle_prefix): Use the last "__"
364 in the mangled name when looking for the signature. This allows
365 template names to begin with "__".
366
0e714131
MM
3671998-11-08 Mark Mitchell <mark@markmitchell.com>
368
ec2288ff
MM
369 * cplus-dem.c (type_kind_t): Add tk_reference.
370 (demangle_template_value_parm): Handle it.
371 (do_type): Use it for references, instead of tk_pointer.
372
0e714131
MM
373 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
374 not internal_cplus_demangle.
375
2931b6d4
KG
376Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
377
378 * choose-temp.c: Don't include gansidecl.h.
379 * mkstemp.c: Likewise.
380 * pexecute.c: Likewise.
381
dd8f3ed5
GN
382Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
383
384 * configure.in: detect cygwin* instead of cygwin32*
385 * configure: regenerate
386
c5f7c445
KG
387Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
388
389 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
390 whether to include config.h. Possibly include unistd.h in the
391 !IN_GCC case. Define VFORK_STRING as a printable function call
392 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
393 defined, include vfork.h. If VMS is defined, define vfork()
394 appropriately. Remove vfork check on USG, we're using autoconf.
395 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
396 locally what string to use.
397
ad3ef78e
MM
3981998-10-26 Mark Mitchell <mark@markmitchell.com>
399
400 * splay-tree.c: Tweak include directives to make sure declarations of
401 xmalloc and free are available.
402
224301c1
MM
4031998-10-25 Mark Mitchell <mark@markmitchell.com>
404
405 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
406 anonymous namespaces.
38beb75c 407
d9db46fd
MM
4081998-10-23 Mark Mitchell <mark@markmitchell.com>
409
410 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
411 with type_quals.
412 (TYPE_UNQUALIFIED): New macro.
413 (TYPE_QUAL_CONST): Likewise.
414 (TYPE_QUAL_VOLATILE): Likewise.
415 (TYPE_QUAL_RESTRICT): Likewise.
416 (code_for_qualifier): New function.
417 (qualifier_string): Likewise.
418 (demangle_qualifier): Likewise.
419 (internal_cplus_demangle): Use them.
420 (demangle_signature): Likewise.
421 (demangle_template_value_parm): Likewise.
422 (do_type): Likewise.
423 (demangle_fund_type)): Likewise.
224301c1 424
b056ad1c
KG
425Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
426
427 * splay-tree.c (splay_tree_foreach_helper): Make definition static
428 to match prototype.
429
ed87f9c8
MM
4301998-10-21 Mark Mitchell <mark@markmitchell.com>
431
432 * splay-tree.c: New file.
433 * Makefile.in (CFILES): Add it.
434 (REQUIRED_OFILES): Likewise.
435 (splay-tree.o): Add dependencies.
436
e0c13971
AS
437Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
438
439 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
440 range of 'K' index.
441
91e0f659
KG
442Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
443
444 * choose-temp.c: Prototype mkstemps() when IN_GCC.
445
446 * cplus-dem.c (consume_count): Cast argument of ctype macro to
447 `unsigned char'.
448 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
449 comparing against one.
450 (cplus_mangle_opname): Likewise.
451 (demangle_integral_value): Cast argument of ctype macro to
452 `unsigned char'.
453 (demangle_template_value_parm): Likewise.
454 (demangle_template): Initialize variable `bindex'. Cast the
455 result of `strlen' to (int) when comparing against one. Remove
456 unused variable `start_of_value_parm'.
457 (demangle_class_name): Cast the result of `strlen' to (int) when
458 comparing against one.
459 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
460 (gnu_special): Likewise. Cast the result of `strlen' to (int)
461 when comparing against one.
462 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
463 (get_count): Likewise.
464 (do_type): Likewise. Cast the result of `strlen' to (int) when
465 comparing against one.
466 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
467 (demangle_function_name): Cast the result of `strlen' to (int)
468 when comparing against one.
469
470 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
471 comparing against one.
472
73aeb2ff
JL
473Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
474
ae76f1be
JL
475 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
476 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
477 * config.in, configure: Rebuilt.
478
73aeb2ff
JL
479 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
480 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
481 * config.in, configure: Rebuilt.
482
dd8f3ed5
GN
483Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
484
485 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
486
f77d8413
MT
487Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
488
489 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
490
ca6b370d
JL
491Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
492
493 * Merge egcs & devo libiberty.
494
ab4856b1
ML
495