aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2001-12-06demangle.h (no_demangling): New.Richard Henderson2-0/+7
* 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-10-24* include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.Neil Booth2-1/+8
From-SVN: r46470
2001-10-23libiberty.h (hex_init): Revert delete.Kaveh R. Ghazi2-0/+3
include: * libiberty.h (hex_init): Revert delete. libiberty: * hex.c (hex_init): Provide empty stub. From-SVN: r46421
2001-10-22libiberty.h (_hex_value): Const-ify.Kaveh R. Ghazi2-2/+6
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-07demangle.h (demangler_engine): Const-ify.Kaveh R. Ghazi3-6/+11
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-09-24libiberty.h (reconcat): New function.Kaveh R. Ghazi2-0/+13
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-18libiberty.h (concat, [...]): Improve comments.Kaveh R. Ghazi2-9/+20
* libiberty.h (concat, concat_length, concat_copy, concat_copy2, ACONCAT): Improve comments. From-SVN: r45683
2001-09-18* objalloc.h (OBJALLOC_ALIGN): Define using offsetof.Alan Modra2-6/+9
From-SVN: r45677
2001-09-17libiberty.h (concat_length, [...]): New.Kaveh R. Ghazi2-0/+30
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-17libiberty.h (ASTRDUP): New macro.Kaveh R. Ghazi2-0/+18
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-08-29* ansidecl.h: Update comments reflecting previous change.Kaveh R. Ghazi2-5/+11
From-SVN: r45275
2001-08-27ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.Kaveh R. Ghazi2-4/+8
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-23dyn-string.h, [...]: replace "GNU CC" with "GCC".Lars Brinkhoff6-20/+25
* dyn-string.h, fibheap.h, partition.h, sort.h, splay-tree.h: replace "GNU CC" with "GCC". From-SVN: r45130
2001-08-21fibheap.h: Tidy formatting.Richard Henderson2-13/+19
* fibheap.h: Tidy formatting. (fibnode_t): Limit degree to 31 bits to avoid warning. From-SVN: r45088
2001-08-21floatformat.h (floatformat_arm_ext): Document as deprecated.Andrew Cagney2-1/+17
* 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-20fibheap.h: New file.Daniel Berlin2-0/+84
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-18ansidecl.h: Reorganize for readability...Zack Weinberg2-137/+186
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-16* hashtab.h (htab_hash_string): Declare.Richard Henderson2-0/+7
From-SVN: r44949
2001-08-12Oops, fix check-in date.Andrew Cagney1-1/+1
From-SVN: r44816
2001-08-10(lbasename): Change function declaration to return a const char pointer.Andrew Cagney2-1/+6
From-SVN: r44782
2001-08-02xregex.h (_REGEX_RE_COMP): Define.Mark Kettenis2-0/+10
* xregex.h (_REGEX_RE_COMP): Define. (re_comp): Define to xre_comp. (re_exec): Define to xre_exec. From-SVN: r44585
2001-07-18merge from glibcDJ Delorie2-9/+12
From-SVN: r44138
2001-07-10xregex.h: New file to support libiberty regex.Jeff Johnston3-0/+595
* xregex.h: New file to support libiberty regex. * xregex2.h: Ditto. From-SVN: r43913
2001-05-16* partition.h: Fix misspelling of `implementation'.Matt Kraai2-2/+6
From-SVN: r42171
2001-05-10* ansidecl.h (NULL_PTR): Delete.Kaveh R. Ghazi2-10/+4
From-SVN: r41946
2001-05-08cp-demangle.c (demangle_v3_with_details, [...]): Use K+R style function ↵Zack Weinberg3-5/+14
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-07splay-tree.h (splay_tree_max): New function.Mark Mitchell2-0/+9
* splay-tree.h (splay_tree_max): New function. (splay_tree_min): Likewise. From-SVN: r41895
2001-04-16ternary.h: New file - Ternary search tree header.Daniel Berlin2-0/+54
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-04ansidecl.h: All logic from gcc/gansidecl.h moved here.Zack Weinberg2-0/+32
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-03-31* libiberty.h (alloca): Handle setting C_ALLOCA.Kaveh R. Ghazi2-1/+10
From-SVN: r40978
2001-03-21demangle.h (enum gnu_v3_constructor_kinds, [...]): New declarations.Jim Blandy2-0/+32
* 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-14Fix pathname.DJ Delorie1-1/+1
From-SVN: r40473
2001-03-14Fix copyright datesNick Clifton10-8/+48
From-SVN: r40469
2001-03-10lbasename.c: New file.Neil Booth2-0/+9
* 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-06oops, edited changelogs in wrong treeZack Weinberg1-0/+5
this is the log for the big alloca configuration patch From-SVN: r40260
2001-03-06aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.Zack Weinberg1-0/+14
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-02safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc ↵John David Anglin2-2/+7
compatibility. * safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc compatibility. From-SVN: r40175
2001-02-02Add support for Java demangling under the v3 ABI:Bryce McKinlay1-1/+4
* cp-demangle.c (NAMESPACE_SEPARATOR): New define. (struct demangling_def): Add `style' field. (demangling_new): New parameter `style'. Set it in demangling_t. (demangle_prefix): Use NAMESPACE_SEPARATOR. (demangle_type_ptr): Don't emit pointer symbol if doing Java output. (cp_demangle): New parameter `style'. Pass it to demangling_new(). (main): Call cp_demangle with extra parameter. (java_demangle_v3): New function. (java_builtin_type_names): New. Table of primitive type names used for Java demangling. (demangle_builtin_type): Look up in java_builtin_type_names if doing Java output. * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java demangling. (long_options): Remove obsolete `java' option. (main): Remove explicit handling of `java' option. Instead, pass style parameter in cplus_demangle flags as gdb does. * testsuite/demangle.expected: Add some Java test cases. From-SVN: r39399
2000-12-18COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 ↵Joseph Myers2-3/+9
(fixes... * COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references to 19yy as example year in copyright notice). gcc: * COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references to 19yy as example year in copyright notice). gcc/f: * g77.texi: Update GPL copy not to refer to years 19@var{yy}. include: * COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references to 19yy as example year in copyright notice). From-SVN: r38366
2000-12-16safe-ctype.h: Make code work on all targets and not just on targets where a ↵Herman A.J. ten Brugge2-8/+8
char is 8 bits. * safe-ctype.h: Make code work on all targets and not just on targets where a char is 8 bits. From-SVN: r38312
2000-12-08safe-ctype.h: New file.Zack Weinberg2-0/+109
include: * safe-ctype.h: New file. libiberty: * safe-ctype.c: New file. * Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c). gcc: * Makefile.in (HOST_RTL): Add safe-ctype.o. (safe-ctype.o): New rule. * system.h: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. * cpphash.h: Zap IStable and related macros. Define is_* in terms of safe-ctype.h macros. * cppinit.c: Delete the IStable and all related code. * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and is_space arrays. Delete initialize_char_syntax. Change all references to the above arrays to use macros instead. * tradcpp.h: Define is_idchar, is_idstart, is_space, and is_nvspace in terms of safe_ctype.h's macros. * tradcif.y: is_idchar, is_idstart are macros not arrays. * config/i370/i370.c, config/winnt/dirent.c, config/winnt/fixinc-nt.c, config/winnt/ld.c: Use uppercase ctype macros. If we included ctype.h, include safe-ctype.h instead. * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test ISLOWER(c) before calling TOUPPER(c). * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk. * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x). gcc/ch: * lex.c: Don't bother checking whether ISUPPER(c) before calling TOLOWER(c). Don't bother checking whether isascii(c) before testing ISSPACE(c); ISSPACE(c) includes '\n'. gcc/f: * Make-lang.in: Link f/fini with safe-ctype.o. * bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c). * com.c: Use TOUPPER, not ffesrc_toupper. * fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c). * intrin.c: Don't test IN_CTYPE_DOMAIN(c). * src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their initializing code; use TOUPPER and TOLOWER instead of ffesrc_toupper and ffesrc_tolower. * src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_. Don't define ffesrc_toupper or ffesrc_tolower. gcc/java: * jvgenmain.c: Use ISPRINT not isascii. From-SVN: r38124
2000-12-06* getopt.h obstack.h: Standarize copyright statement.Rodney Brown3-2/+8
From-SVN: r38086
2000-12-05also tweak commentJason Merrill1-1/+1
From-SVN: r38034
2000-12-04* demangle.h: Change "new_abi" to "v3" everywhere.Richard Henderson2-6/+10
From-SVN: r38020
2000-11-22Makefile.in, [...]: Expunge remaining traces of facility for running MD ↵Zack Weinberg2-6/+14
files through C preprocessor. gcc: * Makefile.in, config.gcc, configure.in: Expunge remaining traces of facility for running MD files through C preprocessor. libiberty: * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three argument form of AC_DEFINE in dummy definitions block. Use AC_DEFINE_NOAUTOHEADER for real definitions of things defined in dummy block. Preload cache variables instead of bypassing tests, where possible. * acconfig.h: Removed. * xmalloc.c (xmalloc_failed): New function, does error reporting on failed allocation. (xmalloc, xcalloc, xrealloc): Use it. * libiberty.h: Move #includes to top. Prototype xmalloc_failed. From-SVN: r37650
2000-11-15Correct date and style of last entryHans-Peter Nilsson1-1/+1
From-SVN: r37476
2000-11-15* demangle.h: Add gnat and java demangle styles.Kenneth Block2-2/+13
From-SVN: r37474
2000-11-04hashtab.h (struct htab): Add member return_allocation_failure.Hans-Peter Nilsson2-0/+16
* hashtab.h (struct htab): Add member return_allocation_failure. (htab_try_create): New prototype. Mention which functions may return NULL when this is used. From-SVN: r37246
2000-11-03* hashtab.h: Change void * to PTR where necessary.Hans-Peter Nilsson2-5/+9
From-SVN: r37230
2000-09-10splay-tree.h (splay_tree_predecessor): Declare.Mark Mitchell2-1/+11
* splay-tree.h (splay_tree_predecessor): Declare. * splay-tree.c (splay_tree_predecessor): New function. (splay_tree_successor): Likewise. From-SVN: r36304