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
Lars Brinkhoff
88c1082bf8
dyn-string.h, [...]: replace "GNU CC" with "GCC".
...
* dyn-string.h, fibheap.h, partition.h, sort.h, splay-tree.h:
replace "GNU CC" with "GCC".
From-SVN: r45130
2001-08-23 12:07:58 +00:00
Richard Henderson
d7a0e799d3
fibheap.h: Tidy formatting.
...
* fibheap.h: Tidy formatting.
(fibnode_t): Limit degree to 31 bits to avoid warning.
From-SVN: r45088
2001-08-21 18:53:38 -07:00
Andrew Cagney
0310e5ac70
floatformat.h (floatformat_arm_ext): Document as deprecated.
...
* floatformat.h (floatformat_arm_ext): Document as deprecated.
(floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
(floatformat_ia64_spill_little, floatformat_ia64_quad_little)
(floatformat_ia64_spill_big, floatformat_ia64_quad_big)
(floatformat_m88110_harris_ext): Declare.
From-SVN: r45065
2001-08-21 00:09:09 +00:00
Daniel Berlin
8c23e0a440
fibheap.h: New file.
...
include/
2001-08-20 Daniel Berlin <dan@cgsoftware.com>
* fibheap.h: New file. Fibonacci heap.
libiberty/
2001-08-20 Daniel Berlin <dan@cgsoftware.com>
* fibheap.c: New file. Fibonacci heap.
* Makefile.in (CFILES): Add fibheap.c.
(REQUIRED_OFILES): Add fibheap.o.
(fibheap.o): Add dependencies for fibheap.o.
From-SVN: r45062
2001-08-20 20:06:07 +00:00
Zack Weinberg
b649398a84
ansidecl.h: Reorganize for readability...
...
include:
* ansidecl.h: Reorganize for readability, remove documentation
of obsolete macros, document PARAMS and VPARAMS. Add new
macros VA_OPEN, VA_CLOSE, and VA_FIXEDARG for nicer variadic
function implementation.
gcc:
* cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
From-SVN: r45011
2001-08-18 20:46:45 +00:00
Richard Henderson
457f49df10
* hashtab.h (htab_hash_string): Declare.
...
From-SVN: r44949
2001-08-16 18:54:01 -07:00
Andrew Cagney
b0e9bc8cc3
Oops, fix check-in date.
...
From-SVN: r44816
2001-08-12 02:06:34 +00:00
Andrew Cagney
0ef5547d0e
(lbasename): Change function declaration to return a const char pointer.
...
From-SVN: r44782
2001-08-10 23:45:11 +00:00
Mark Kettenis
ead4cf347a
xregex.h (_REGEX_RE_COMP): Define.
...
* xregex.h (_REGEX_RE_COMP): Define.
(re_comp): Define to xre_comp.
(re_exec): Define to xre_exec.
From-SVN: r44585
2001-08-02 19:23:47 -04:00
DJ Delorie
27ffc806c4
merge from glibc
...
From-SVN: r44138
2001-07-18 19:40:00 -04:00
Jeff Johnston
3eb90047bc
xregex.h: New file to support libiberty regex.
...
* xregex.h: New file to support libiberty regex.
* xregex2.h: Ditto.
From-SVN: r43913
2001-07-10 20:10:28 -04:00
Matt Kraai
c25d4f6a6b
* partition.h: Fix misspelling of `implementation'.
...
From-SVN: r42171
2001-05-16 21:00:55 +00:00
Kaveh R. Ghazi
f59328a83d
* ansidecl.h (NULL_PTR): Delete.
...
From-SVN: r41946
2001-05-10 19:11:58 +00:00
Zack Weinberg
641b2721c4
cp-demangle.c (demangle_v3_with_details, [...]): Use K+R style function definition.
...
* cp-demangle.c (demangle_v3_with_details,
is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
function definition.
* ternary.c: Use K+R style function definitions. Use PTR, not
void *. Make arguments constant where possible.
* demangle.h: Use PARAMS for all prototypes.
* ternary.h: Use PARAMS for all prototypes. Use PTR, not void *.
Make arguments constant where possible.
From-SVN: r41910
2001-05-08 06:13:58 +00:00
Mark Mitchell
5cdba4ff5f
splay-tree.h (splay_tree_max): New function.
...
* splay-tree.h (splay_tree_max): New function.
(splay_tree_min): Likewise.
From-SVN: r41895
2001-05-07 15:45:24 +00:00
Daniel Berlin
9dab060e9d
ternary.h: New file - Ternary search tree header.
...
2001-04-15 Daniel Berlin <dan@cgsoftware.com>
* ternary.h: New file - Ternary search tree header.
2001-04-15 Daniel Berlin <dan@cgsoftware.com>
* ternary.c: New file - Ternary search tree implementation.
* Makefile.in: Add ternary.o, and ternary.c dependencies.
From-SVN: r41380
2001-04-16 15:30:17 +00:00
Zack Weinberg
d02af17340
ansidecl.h: All logic from gcc/gansidecl.h moved here.
...
include:
* ansidecl.h: All logic from gcc/gansidecl.h moved here.
gcc:
* gansidecl.h: Delete file.
* configure.in: Change all refs to gansidecl.h to use
ansidecl.h. Adjust *_file_list so they know where ansidecl.h
lives.
* configure: Regenerate.
* Makefile.in (intl.o): Don't depend on gansidecl.h.
* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
Don't include gansidecl.h.
* intl.c, main.c, version.c, fixinc/fixlib.h,
fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
gansidecl.h.
gcc/java:
* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
on gansidecl.h.
* buffer.c, jvgenmain.c: Don't include gansidecl.h.
libiberty:
* make-temp-file.c (try): Inline.
From-SVN: r41069
2001-04-04 00:46:27 +00:00
Kaveh R. Ghazi
cc56c744ee
* libiberty.h (alloca): Handle setting C_ALLOCA.
...
From-SVN: r40978
2001-03-31 18:59:56 +00:00
Jim Blandy
2d32013ffe
demangle.h (enum gnu_v3_constructor_kinds, [...]): New declarations.
...
* demangle.h (enum gnu_v3_constructor_kinds,
is_gnu_v3_mangled_ctor, enum gnu_v3_destructor_kinds,
is_gnu_v3_mangled_dtor): New declarations.
From-SVN: r40709
2001-03-21 14:37:53 -05:00
DJ Delorie
4cf6b384ac
Fix pathname.
...
From-SVN: r40473
2001-03-14 16:34:39 -05:00
Nick Clifton
01f537aba0
Fix copyright dates
...
From-SVN: r40469
2001-03-14 19:44:38 +00:00
Neil Booth
2b757d5101
lbasename.c: New file.
...
* libiberty/lbasename.c: New file.
* libiberty/Makefile.in: Update for lbasename.
* include/libiberty.h: Add lbasename.
Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>
From-SVN: r40363
2001-03-10 10:41:25 +00:00
Zack Weinberg
1f50aafb85
oops, edited changelogs in wrong tree
...
this is the log for the big alloca configuration patch
From-SVN: r40260
2001-03-06 10:01:28 +00:00
Zack Weinberg
b548dffbda
aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
...
libiberty:
* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
* configure.in: Replace all alloca logic with a simple use of
the above new macro.
* config.table: Kill *-*-beos* entry.
* config/mh-beos: Delete.
* configure, config.in: Regenerate.
* Makefile.in (ALLOCA, HFILES): Kill.
(REQUIRED_OFILES): Add alloca.o.
(alloca.o): Depend on libiberty.h.
(argv.o): Don't depend on alloca-conf.h.
* alloca-conf.h: Delete.
* alloca.c: Include libiberty.h. Kill all #ifdef emacs
blocks. Provide the C alloca unconditionally. Use PTR where
appropriate. Make i00afunc static.
* argv.c: Don't include alloca-conf.h.
include:
* libiberty.h: Prototype C_alloca; define alloca to either
__builtin_alloca or C_alloca as appropriate.
gcc:
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
AC_FUNC_ALLOCA.
* configure, config.in: Regenerate.
* config.gcc: Remove references to deleted files.
* genattr.c, genattrtab.c, genextract.c, genoutput.c,
genrecog.c, rtl.c: Do not use alloca anywhere.
* Makefile.in, build-make, system.h, config/x-interix,
config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
config/arc/xm-arc.h, config/arm/xm-arm.h,
config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
config/h8300/xm-h8300.h, config/i370/x-oe,
config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
config/i386/x-ncr3000, config/i386/x-sco5,
config/i386/xm-dgux.h, config/i860/x-sysv4,
config/i960/xm-i960.h, config/m32r/xm-m32r.h,
config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
config/m68k/x-hp320g, config/m69k/x-mot3300,
config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
config/m68k/xm-mot3300.h, config/m88k/x-dolph,
config/m88k/x-sysv4, config/m88k/x-tekXD88,
config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
config/mips/x-iris, config/mips/x-iris3,
config/mips/x-sni-svr4, config/mips/x-sysv,
config/mips/xm-iris6.h, config/mips/xm-mips.h,
config/mips/xm-nws3250v4.h, config/pa/x-hpux,
config/pa/x-pa-mpeix, config/pa/xm-pa.h,
config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
config/pa/xm-papro.h, config/romp/xm-romp.h,
config/rs6000/x-aix31, config/rs6000/x-aix41,
config/rs6000/x-beos, config/rs6000/x-lynx,
config/rs6000/x-mach, config/rs6000/x-rs6000,
config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
config/sparc/x-sysv4, config/sparc/xm-linux.h,
config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
config/vax/xm-vms.h: Eradicate all references to alloca and
related stuff.
* config/xm-alloca.h, config/clipper/x-clix,
config/i386/xm-sysv4.h, config/i860/x-fx2800,
config/i860/x-sysv3, config/m88k/x-sysv3,
config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
(contained only alloca related hacks).
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
USE_C_ALLOCA.
From-SVN: r40259
2001-03-06 09:52:35 +00:00