Bob Wilson
b31185fe2f
* xtensa-config.h: Undef all macros before defining them.
...
From-SVN: r69174
2003-07-10 05:08:27 +00:00
H.J. Lu
513dab3208
demangle.h: Support C++.
...
2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
* demangle.h: Support C++.
From-SVN: r69016
2003-07-06 14:45:37 -07:00
Zack Weinberg
b6728b1b51
* filenames.h: New file imported from binutils.
...
From-SVN: r68791
2003-07-01 20:29:16 +00:00
Bob Wilson
e677f70c66
xtensa-config.h: New file imported from binutils.
...
include/ChangeLog:
* xtensa-config.h: New file imported from binutils.
gcc/ChangeLog:
* config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
top-level include directory.
* config/xtensa/lib2funcs.S: Likewise.
* config/xtensa/xtensa.h: Likewise.
* config/xtensa/xtensa-config.h: Remove.
* doc/install.texi: Update location of "xtensa-config.h" header.
From-SVN: r68747
2003-07-01 00:14:33 +00:00
Zack Weinberg
21299dbda4
safe-ctype.h (HC_UNKNOWN, [...]): Rename to HOST_CHARSET_UNKNOWN...
...
include:
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to
HOST_CHARSET_UNKNOWN, HOST_CHARSET_ASCII, HOST_CHARSET_EBCDIC
respectively.
libiberty:
* safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
not HC_ASCII and HC_EBCDIC.
Add documentation in form expected by gather-docs.
* hex.c: Use HOST_CHARSET, not hand-coded check of character set.
* Makefile.in, functions.texi: Regenerate.
gcc:
* config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
From-SVN: r68335
2003-06-22 15:59:49 +00:00
Zack Weinberg
7468e0b523
safe-ctype.h (HC_UNKNOWN, [...]): New #defines.
...
include:
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC, HOST_CHARSET):
New #defines.
libiberty:
* safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
for charset determination.
gcc:
* aclocal.m4 (gcc_AC_C_CHARSET): Delete.
* configure.in: Don't use gcc_AC_C_CHARSET.
* configure, config.in: Regenerate.
* config/i370/i370.c, config/i370/i370.h: Use
(HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
From-SVN: r68317
2003-06-21 23:22:30 +00:00
Kaveh R. Ghazi
a54928c932
alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
...
gcc:
* alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
* fixinc/gnu-regex.c: Don't define `volatile'.
* ggc-page.c: Don't check HAVE_LONG_DOUBLE.
* ggc-simple.c: Likewise.
* system.h: Don't define `volatile'.
* aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
* configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
call these macros.
* config.in, configure: Regenerated.
include:
* ansidecl.h: Delete HAVE_LONG_DOUBLE GCC bootstrap support.
From-SVN: r68085
2003-06-17 14:10:01 +00:00
Jim Blandy
49a19cfd34
hex.c (_hex_value): Make this unsigned.
...
libiberty/ChangeLog:
2003-05-14 Jim Blandy <jimb@redhat.com>
* hex.c (_hex_value): Make this unsigned.
(hex_value): Update documentation for new return type. hex_value
now expands to an unsigned int expression, to avoid unexpected
sign extension when we store it in a bfd_vma, which is larger than
int on some platforms.
* functions.texi: Regenerated.
include/ChangeLog:
2003-05-14 Jim Blandy <jimb@redhat.com>
* libiberty.h (hex_value): Make the value an unsigned int, to
avoid unexpected sign-extension when cast to unsigned types larger
than int --- like bfd_vma, on some platforms.
(_hex_value): Update declaration.
From-SVN: r66840
2003-05-15 19:02:13 +00:00
Jason Merrill
9d70d418db
s/burtle/iterative
...
From-SVN: r66577
2003-05-07 16:30:32 -04:00
Jason Merrill
5cc5a0d00d
hashtab.c (burtle_hash): New fn.
...
libiberty/
* hashtab.c (burtle_hash): New fn.
* configure.in: Add AC_C_BIGENDIAN_CROSS.
* aclocal.m4: Include accross.m4.
* configure, config.in: Regenerate.
include/
* hashtab.h (burtle_hash): Prototype.
(burtle_hash_object): New macro.
From-SVN: r66565
2003-05-07 14:07:58 -04:00
Kaveh R. Ghazi
d41c4351fe
ansidecl.h (ATTRIBUTE_NONNULL, [...]): New.
...
include:
* ansidecl.h (ATTRIBUTE_NONNULL, ATTRIBUTE_NULL_PRINTF,
ATTRIBUTE_NULL_PRINTF_1, ATTRIBUTE_NULL_PRINTF_2,
ATTRIBUTE_NULL_PRINTF_3, ATTRIBUTE_NULL_PRINTF_4,
ATTRIBUTE_NULL_PRINTF_5): New.
(ATTRIBUTE_PRINTF): Add ATTRIBUTE_NONNULL.
gcc:
* dwarf2asm.h: Delete obsolete comment.
(dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
dw2_asm_output_pcrel, dw2_asm_output_addr,
dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
From-SVN: r64505
2003-03-17 22:57:27 +00:00
Jan Hubicka
dbccdc4211
ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
...
* ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
* hashtab.h (htab_traverse_noresize): Declare.
* hashtab.c (htab_traverse_noresize): Break out from ...
* hashtab.c (htab_traverse): ... here.
From-SVN: r64496
2003-03-17 17:59:58 +00:00
Kaveh R. Ghazi
9308be9056
* libiberty.h: Document return value of physmem routines.
...
From-SVN: r63521
2003-02-27 20:28:40 +00:00
Kaveh R. Ghazi
a354191ebf
libiberty.h (physmem_total, [...]): Prototype.
...
include:
* libiberty.h (physmem_total, physmem_available): Prototype.
libiberty:
* Makefile.in (CFILES): Add physmem.c.
(REQUIRED_OFILES): Add physmem.o.
* configure.in: Check for sys/pstat.h.
(checkfuncs): Add pstat_getstatic and pstat_getdynamic.
* physmem.c: New file, copied from textutils.
* config.in, configure: Regenerated.
From-SVN: r63198
2003-02-21 00:27:04 +00:00
Daniel Jacobowitz
378ca31ee5
* libiberty.h (lrealpath): Add declaration.
...
From-SVN: r63185
2003-02-20 22:10:40 +00:00
Daniel Jacobowitz
74828682c7
hashtab.h (htab_alloc_with_arg, [...]): Add new types.
...
include/
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
(htab_create_alloc_ex): New prototype.
(htab_set_functions_ex): New prototype.
libiberty/
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.
From-SVN: r61820
2003-01-26 07:09:41 +00:00
Geoffrey Keating
17211ab553
Merge from pch-branch.
...
From-SVN: r61136
2003-01-10 02:22:34 +00:00
Simon Burge
f60d9a8a86
* libiberty.h (basename): Add NetBSD to the list.
...
From-SVN: r59421
2002-11-24 06:54:38 +00:00
Daniel Jacobowitz
42766f8db1
libiberty.h (make_relative_prefix): Add prototype.
...
include/
* libiberty.h (make_relative_prefix): Add prototype.
libiberty/
* Makefile.in: Add make-relative-prefix.c.
* make-relative-prefix.c: New file.
* functions.texi: Rebuilt.
gcc/
* gcc.c (make_relative_prefix, split_directories)
(free_split_directories): Removed.
From-SVN: r59385
2002-11-22 20:01:07 +00:00
Roger Sayle
45329aca77
partition.h: Close the extern "C" scope when compiling with C++.
...
* partition.h: Close the extern "C" scope when compiling with C++.
* getopt.h: Update copyright year from the previous patch.
From-SVN: r58570
2002-10-27 01:00:34 +00:00
Roger Sayle
f416dcd5bf
re PR bootstrap/8351 (3.3 20021024 (experimental) fails to bootstrap on cygwin)
...
PR bootstrap/8351
* getopt.h: Avoid prototyping getopt with no arguments in C++.
Co-Authored-By: DJ Delorie <dj@redhat.com>
From-SVN: r58569
2002-10-27 00:54:50 +00:00
Nathan Tallent
e4aaa2f87d
ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the list of platform compilers that may look...
...
* ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the
list of platform compilers that may look, smell and act
like __STDC__ but that may not define it.
From-SVN: r58513
2002-10-24 19:36:25 -04:00
David O'Brien
6ba08913bd
Remove bogus copyright message in my last entry.
...
From-SVN: r58188
2002-10-16 03:45:02 +00:00
David O'Brien
520157677f
getopt.h: getopt is in unistd.h.
...
2002-10-11 David O'Brien <obrien@FreeBSD.org>
* getopt.h: getopt is in unistd.h. The Single UNIX(tm) Specification,
Version 2 Copyright (c)1997 The Open Group
Approved by: Committed as obvious.
From-SVN: r58078
2002-10-12 04:01:04 +00:00
Alexandre Oliva
e2bb0cb4b3
libiberty.h (asprintf, vasprintf): Don't declare them if the corresponding HAVE_DECL_ macro is 1.
...
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.
From-SVN: r57324
2002-09-20 00:21:54 +00:00
Alan Modra
8ff82b06d6
demangle.h: #include "ansidecl.h" rather than #include <ansidecl.h>.
...
* demangle.h: #include "ansidecl.h" rather than #include <ansidecl.h>.
* fibheap.h: Likewise.
* hashtab.h: Likewise.
* partition.h: Likewise.
* sort.h: Likewise.
* splay-tree.h: Likewise.
From-SVN: r54974
2002-06-25 09:44:15 +09:30
Alan Modra
66443ad2fd
libiberty.h (basename): Don't declare if HAVE_DECL_BASENAME.
...
* libiberty.h (basename): Don't declare if HAVE_DECL_BASENAME.
* getopt.h (getopt): Don't declare if HAVE_DECL_GETOPT.
From-SVN: r54941
2002-06-24 14:38:02 +09:30
DJ Delorie
917ccc05a6
hashtab.h (htab): Rearrange new members for backward compatibility.
...
* hashtab.h (htab): Rearrange new members for backward
compatibility.
(htab_create): Don't use a macro that requires other headers.
From-SVN: r54316
2002-06-06 08:42:06 -04:00
Geoffrey Keating
045b3a49ca
Index: include/ChangeLog
...
Index: include/ChangeLog
* hashtab.h (htab_create): Restore prototype for backward
compatibility.
(htab_try_create): Likewise.
Index: libiberty/ChangeLog
* hashtab.c (htab_create): New stub function for backward
compatibility.
(htab_try_create): Likewise.
From-SVN: r54300
2002-06-06 03:23:27 +00:00
Geoffrey Keating
e2500fedef
Merge from pch-branch up to tag pch-commit-20020603.
...
From-SVN: r54232
2002-06-04 07:11:05 +00:00
David S. Miller
4780f10144
xregex2.h (__restrict_arr): Define to __restrict on GCC 3.1 and later.
...
2002-04-16 David S. Miller <davem@redhat.com>
* xregex2.h (__restrict_arr): Define to __restrict on GCC
3.1 and later. Do not redefine.
From-SVN: r52383
2002-04-16 17:12:54 -07:00
Phil Edwards
7bf421c163
dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
...
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
From-SVN: r51707
2002-04-01 21:54:28 +00:00
Andrew Cagney
ccc49bed1c
Remove floatformat_arm_ext.
...
From-SVN: r50345
2002-03-06 06:29:00 +00:00
Jim Blandy
00c2f96f89
Allow the user to specify functions for allocating memory for splay tree roots and nodes.
...
include:
Allow the user to specify functions for allocating memory for
splay tree roots and nodes.
* splay-tree.h (splay_tree_allocate_fn, splay_tree_deallocate_fn):
New types.
(splay_tree): New fields: `allocate', `deallocate', and
`allocate_data'.
(splay_tree_new_with_allocator): New function declaration.
libiberty:
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): New functions.
(splay_tree_new): Call splay_tree_new_with_allocator, passing the
above functions and a dummy data pointer.
(splay_tree_new_with_allocator): New function.
(splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
splay_tree_remove): Use the splay tree's allocation and
deallocation functions.
From-SVN: r49968
2002-02-22 17:01:23 +00:00
Jason Merrill
c13db5d119
demangle.h (cplus_demangle_v3): Add "options" parm.
...
* demangle.h (cplus_demangle_v3): Add "options" parm.
(cplus_demangle_v3_type): Remove prototype.
(DMGL_VERBOSE): New macro.
(DMGL_TYPES): New macro.
* cplus-dem.c (flags): Add DMGL_VERBOSE
(cplus_demangle_v3_p): Remove.
(demangle_it): Add DMGL_TYPES to passed flags.
* cp-demangle.c (cplus_demangle_v3_all): Remove.
(cplus_demangle_v3_type): Remove.
(cplus_demangle_v3): Add options parm.
* collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
From-SVN: r49525
2002-02-05 11:33:31 -05:00
DJ Delorie
02ae22b851
minor typo
...
From-SVN: r49461
2002-02-03 08:10:29 -05:00
H.J. Lu
4437e4d46b
demangle.h (cplus_demangle_v3_type): New prototype.
...
2002-02-02 H.J. Lu (hjl@gnu.org )
* demangle.h (cplus_demangle_v3_type): New prototype.
From-SVN: r49455
2002-02-02 19:59:23 -08:00
Kaveh R. Ghazi
b05c4e590b
* libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC.
...
From-SVN: r49299
2002-01-28 21:08:34 +00:00
Richard Henderson
d06ba3c7e6
demangle.h (no_demangling): New.
...
* demangle.h (no_demangling): New.
(NO_DEMANGLING_STYLE_STRING): New.
* cplus-dem.c (libiberty_demanglers): Add no_demangling case.
(cplus_demangle): Support no_demangling.
From-SVN: r47733
2001-12-06 13:56:15 -08:00
Neil Booth
5a6943c725
* include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.
...
From-SVN: r46470
2001-10-24 19:29:16 +00:00
Kaveh R. Ghazi
e5969ba63a
libiberty.h (hex_init): Revert delete.
...
include:
* libiberty.h (hex_init): Revert delete.
libiberty:
* hex.c (hex_init): Provide empty stub.
From-SVN: r46421
2001-10-23 03:17:29 +00:00
Kaveh R. Ghazi
26ad2982d8
libiberty.h (_hex_value): Const-ify.
...
include:
* libiberty.h (_hex_value): Const-ify.
(hex_init): Delete.
libiberty:
* hex.c (hex_init): Delete.
(_hex_value): Const-ify and initialize at compile-time.
From-SVN: r46417
2001-10-22 22:32:57 +00:00
Kaveh R. Ghazi
0be6abca22
demangle.h (demangler_engine): Const-ify.
...
include:
* demangle.h (demangler_engine): Const-ify.
* libiberty.h (buildargv): Likewise.
libiberty:
* argv.c (buildargv, tests, main): Const-ify.
* cp-demangle.c (operator_code): Likewise.
* cplus-dem.c (optable, libiberty_demanglers,
cplus_demangle_set_style, cplus_demangle_name_to_style,
print_demangler_list): Likewise.
* hashtab.c (higher_prime_number): Likewise.
* strcasecmp.c (charmap): Likewise.
* strerror.c (error_info, strerror, main): Likewise.
* strncasecmp.c (charmap): Likewise.
* strsignal.c (signal_info): Likewise.
From-SVN: r46060
2001-10-07 14:45:04 +00:00
Kaveh R. Ghazi
ad43d46f3a
libiberty.h (reconcat): New function.
...
include:
* libiberty.h (reconcat): New function.
libiberty:
* concat.c (reconcat): New function.
gcc:
* c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid
leak by passing malloc'ed pointer to reconcat, not concat.
From-SVN: r45789
2001-09-24 22:38:22 +00:00
Kaveh R. Ghazi
69ee340e99
libiberty.h (concat, [...]): Improve comments.
...
* libiberty.h (concat, concat_length, concat_copy, concat_copy2,
ACONCAT): Improve comments.
From-SVN: r45683
2001-09-18 20:07:31 +00:00
Alan Modra
b9bc4bf6de
* objalloc.h (OBJALLOC_ALIGN): Define using offsetof.
...
From-SVN: r45677
2001-09-18 23:09:40 +09:30
Kaveh R. Ghazi
c793eea7ab
libiberty.h (concat_length, [...]): New.
...
include:
* libiberty.h (concat_length, concat_copy, concat_copy2,
libiberty_concat_ptr, ACONCAT): New.
libiberty:
* concat.c (vconcat_length, vconcat_copy, concat_length,
concat_copy, concat_copy2): New functions.
(concat): Use vconcat_length/vconcat_copy.
gcc:
* gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
From-SVN: r45664
2001-09-17 22:15:10 +00:00
Kaveh R. Ghazi
c1d49704bc
libiberty.h (ASTRDUP): New macro.
...
include:
* libiberty.h (ASTRDUP): New macro.
libiberty_optr, libiberty_nptr, libiberty_len): Declare.
libiberty:
* alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
Define.
gcc:
* c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
alloca/strcpy.
From-SVN: r45657
2001-09-17 18:48:45 +00:00
Kaveh R. Ghazi
c864312278
* ansidecl.h: Update comments reflecting previous change.
...
From-SVN: r45275
2001-08-29 19:44:39 +00:00
Kaveh R. Ghazi
e2dff3f2f6
ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.
...
include:
* ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.
libiberty:
* concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
From-SVN: r45204
2001-08-27 19:10:39 +00:00