aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2004-12-11fibheap.h (struct fibnode): Only use unsigned long bitfields when __GNUC__ ↵Ben Elliston2-1/+6
is defined and ints are less... [include] * fibheap.h (struct fibnode): Only use unsigned long bitfields when __GNUC__ is defined and ints are less than 32-bits wide. [libiberty] * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int). * configure: Regenerate. * config.in: Likewise. From-SVN: r92009
2004-10-08xtensa-config.h (XSHAL_USE_ABSOLUTE_LITERALS, [...]): New.Bob Wilson2-6/+15
2004-10-07 Bob Wilson <bob.wilson@acm.org> * xtensa-config.h (XSHAL_USE_ABSOLUTE_LITERALS, XCHAL_HAVE_PREDICTED_BRANCHES, XCHAL_INST_FETCH_WIDTH): New. (XCHAL_EXTRA_SA_SIZE, XCHAL_EXTRA_SA_ALIGN): Delete. From-SVN: r88727
2004-09-13Spacing bug.DJ Delorie1-1/+1
From-SVN: r87476
2004-09-13* libiberty.h (basename): Prototype for __MINGW32__.Aaron W. LaFramboise2-1/+5
From-SVN: r87475
2004-09-05builtin-attrs.def (ATTR_SENTINEL, [...]): New.Kaveh Ghazi3-5/+20
gcc: * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST): New. * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel' attribute. * c-common.c (handle_sentinel_attribute, check_function_sentinel): New functions. (c_common_attribute_table): Add `sentinel' attribute. (check_function_arguments): Handle `sentinel' attribute. * doc/extend.texi: Document `sentinel' attribute. gcc/testsuite: * gcc.dg/format/sentinel-1.c: New test. include: * ansidecl.h (ATTRIBUTE_SENTINEL): Define. * libiberty.h (concat, reconcat, concat_length, concat_copy, concat_copy2): Use ATTRIBUTE_SENTINEL. From-SVN: r87096
2004-08-18Split ChangeLogIan Lance Taylor2-2122/+2130
From-SVN: r86172
2004-08-02libiberty.h (XDELETE, [...]): Remove any const-qualification before disposal.Gabriel Dos Reis2-3/+8
include/ * libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any const-qualification before disposal. gcc/ * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and vec_p_reserve. * langhooks.h (lang_hooks::builtin_function): Rename parameter from "class" to "bt_class". From-SVN: r85441
2004-07-24* ansidecl.h (ARG_UNUSED): New Macro.Bernardo Innocenti2-3/+15
From-SVN: r85120
2004-07-24libiberty.h (XNEW, [...]): Move here from libcpp/internal.h.Bernardo Innocenti1-0/+31
* libiberty.h (XNEW, XCNEW, XNEWVEC, XCNEWVEC, XOBNEW): Move here from libcpp/internal.h. (XDELETE, XRESIZEVEC, XDELETEVEC, XNEWVAR, XCNEWVAR, XRESIZEVAR): New macros. From-SVN: r85119
2004-07-21ansidecl.h (ATTRIBUTE_PURE): New.Paolo Bonzini2-0/+13
2004-07-21 Paolo Bonzini <bonzini@gnu.org> * ansidecl.h (ATTRIBUTE_PURE): New. From-SVN: r85001
2004-07-13libiberty.h (XNEW, [...]): Move here from libcpp/internal.h.Bernardo Innocenti1-0/+7
* libiberty.h (XNEW, XCNEW, XNEWVEC, XCNEWVEC, XOBNEW): Move here from libcpp/internal.h. (XDELETE, XRESIZEVEC, XDELETEVEC, XNEWVAR, XCNEWVAR, XRESIZEVAR): New macros. From-SVN: r84643
2004-07-13libiberty.h (ASTRDUP): Add casts required for stricter type conversion rules ↵Bernardo Innocenti3-4/+10
of C++. * libiberty.h (ASTRDUP): Add casts required for stricter type conversion rules of C++. * obstack.h (obstack_free): Likewise. From-SVN: r84642
2004-05-13Merge tree-ssa-20020619-branch into mainline.Diego Novillo1-3/+3
From-SVN: r81764
2004-05-04demangle.h: Do not use C++ reserved keyword typename as parameter for...Andreas Jaeger2-19/+24
* demangle.h: Do not use C++ reserved keyword typename as parameter for cplus_demangle_fill_builtin_type. From-SVN: r81481
2004-04-22* hashtab.h (struct htab): Add size_prime_index.Richard Henderson2-4/+12
From-SVN: r81030
2004-04-13hashtab.c (htab_remove_elt_with_hash): New function.Jeff Law2-0/+5
* hashtab.c (htab_remove_elt_with_hash): New function. (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash. * hashtab.h (htab_remove_elt_with_hash): Prototype new function. From-SVN: r80641
2004-03-30* hashtab.h, splay-tree.h: Use new shorter form of GTY markers.Zack Weinberg3-8/+12
From-SVN: r80092
2004-02-25* dyn-string.h: Update copyright date.Ian Lance Taylor2-1/+5
From-SVN: r78415
2004-02-24dyn-string.h: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and the associated ↵Ian Lance Taylor2-29/+5
#defines. * dyn-string.h: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and the associated #defines. From-SVN: r78346
2004-01-13demangle.h: Instead of checking ANSI_PROTOTYPES, just include "libiberty.h".Ian Lance Taylor2-6/+4
2004-01-12 Ian Lance Taylor <ian@wasabisystems.com> * demangle.h: Instead of checking ANSI_PROTOTYPES, just include "libiberty.h". From-SVN: r75789
2004-01-13* demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.Ian Lance Taylor2-0/+7
From-SVN: r75783
2004-01-12demangle.h (enum demangle_component_type): Define.Ian Lance Taylor2-2/+379
* demangle.h (enum demangle_component_type): Define. (struct demangle_operator_info): Declare. (struct demangle_builtin_type_info): Declare. (struct demangle_component): Define. (cplus_demangle_fill_component): Declare. (cplus_demangle_fill_name): Declare. (cplus_demangle_fill_builtin_type): Declare. (cplus_demangle_fill_operator): Declare. (cplus_demangle_fill_extended_operator): Declare. (cplus_demangle_fill_ctor, cplus_demangle_fill_dtor): Declare. (cplus_demangle_v3_components): Declare. (cplus_demangle_print): Declare. * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is defined, rename some functions which are to become static via #define. (CP_STATIC_IF_GLIBCPP_V3): Define. (struct d_operator_info): Move definition to cp-demangle.h, and rename to demangle_operator_info. Change all uses. (enum d_builtin_type_print): Move definition to cp-demangle.h. (struct d_builtin_type_info): Move definition to cp-demangle.h, and rename to demangle_builtin_type_info. Change all uses. (enum d_comp_type): Move definition to include/demangle.h, and rename to demangle_component_type, and change all enums to start with DEMANGLE_COMPONENT_ instead of D_. Change all uses. (struct d_comp): Move definition to include/demangle.h, and rename to demangle_component. Change all uses. (struct d_info): Move definition to cp-demangle.h. (cplus_demangle_fill_name): New function. (cplus_demangle_fill_extended_operator): New function. (cplus_demangle_fill_ctor): New function. (cplus_demangle_fill_dtor): New function. (d_make_empty): Remove type parameter. Change all callers. (d_make_name): Use cplus_demangle_fill_name. (d_make_extended_operator): Use cplus_demangle_fill_extended_operator. (d_make_ctor): Use cplus_demangle_fill_ctor. (d_make_dtor): Use cplus_demangle_fill_dtor. (cplus_demangle_mangled_name): Rename from d_mangled_name. Make non-static by default. Change all callers. (cplus_demangle_operators): Rename from d_operators. Change all uses. Make non-static by default. Add sentinel at end of array. (d_operator_name): Adjust initialization of high for new sentinel in cplus_demangle_operators. (cplus_demangle_builtin_types): Rename from d_builtin_types. Change all uses. Make non-static by default. Change initializer to use D_BUILTIN_TYPE_COUNT instead of magic number 26. (cplus_demangle_type): Rename from d_type. Make non-static by default. Change all callers. (cplus_demangle_init_info): Rename from d_init_info. Make non-static by default. Change all callers. * cp-demangle.h: New file. * cp-demint.c: New file. * Makefile.in: Rebuild dependencies. (CFILES): Add cp-demint.c. (REQUIRED_OFILES): Add cp-demint.o. From-SVN: r75748
2003-12-19fibheap.h (fibnode): Use __extension__ for bit-fields mark and degree if ↵Andreas Tobler2-2/+7
__GNUC__. * include/fibheap.h (fibnode): Use __extension__ for bit-fields mark and degree if __GNUC__. From-SVN: r74836
2003-12-19fibheap.h (fibnode): Use unsigned long int for bit-fields if __GNUC__ is ↵Kazu Hirata2-0/+10
defined. * include/fibheap.h (fibnode): Use unsigned long int for bit-fields if __GNUC__ is defined. From-SVN: r74817
2003-10-22obstack.h: Merge the following change from gnulib...Joseph Myers2-14/+41
include: * obstack.h: Merge the following change from gnulib: 2003-10-21 Paul Eggert <eggert@twinsun.com> * obstack.h (obstack_1grow_fast): Properly parenthesize arg. (obstack_ptr_grow_fast, obstack_int_grow_fast): Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5. Reported by Joseph S. Myers. This bug was also present in the non-GCC version, indicating that this code had always been buggy and had never been widely used. (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank): Use the fast variant of each macro, rather than copying the definiens of the fast variant; that way, we'll be more likely to catch future bugs in the fast variants. gcc: * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of deprecation of casts as lvalues. * fixinc/inclhack.def (obstack_lvalue_cast): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/obstack.h: New test. gcc/testsuite: * gcc.dg/cast-lvalue-1.c: New test. From-SVN: r72826
2003-09-22floatformat.h (struct floatformat): Add field "is_valid".Andrew Cagney2-1/+8
2003-09-22 Andrew Cagney <cagney@redhat.com> * floatformat.h (struct floatformat): Add field "is_valid". 2003-09-22 Andrew Cagney <cagney@redhat.com> * floatformat.c (floatformat_i387_ext_is_valid): New function. (floatformat_always_valid): New function. (floatformat_i387_ext): Initialize new "is_valid" field to "floatformat_i387_ext_is_valid". (floatformat_ieee_single_little): Initialize "is_valid" field to floatformat_always_valid. (floatformat_ieee_double_big): Ditto. (floatformat_ieee_double_little): Ditto. (floatformat_ieee_double_little): Ditto. (floatformat_ieee_double_littlebyte_bigword): Ditto. (floatformat_i960_ext): Ditto. (floatformat_m88110_ext): Ditto. (floatformat_m88110_harris_ext): Ditto. (floatformat_arm_ext_big): Ditto. (floatformat_arm_ext_littlebyte_bigword): Ditto. (floatformat_ia64_spill_big): Ditto. (floatformat_ia64_spill_little): Ditto. (floatformat_ia64_quad_big): Ditto. (floatformat_ia64_quad_little): Ditto. (floatformat_ia64_quad_little): Ditto. (floatformat_is_valid): Call "is_valid". From-SVN: r71659
2003-09-16Index: include/ChangeLogAndrew Cagney2-3/+8
2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.h (floatformat_to_double): Make input buffer constant. (floatformat_from_double, floatformat_is_valid): Ditto. Index: libiberty/ChangeLog 2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.c (get_field): Make "data" constant. (floatformat_is_valid, floatformat_to_double): Make "from" constant, fix casts. (floatformat_from_double): Make "from" constant. From-SVN: r71422
2003-09-15floatformat.h (struct floatformat): Make "exp_bias" signed.Andrew Cagney2-2/+10
2003-09-15 Andrew Cagney <cagney@redhat.com> * floatformat.h (struct floatformat): Make "exp_bias" signed. From-SVN: r71407
2003-09-15* floatformat.h (floatformat_is_valid): Add prototype.Daniel Jacobowitz2-1/+10
From-SVN: r71404
2003-07-10* xtensa-config.h: Undef all macros before defining them.Bob Wilson2-2/+77
From-SVN: r69174
2003-07-06demangle.h: Support C++.H.J. Lu2-0/+12
2003-07-06 H.J. Lu <hongjiu.lu@intel.com> * demangle.h: Support C++. From-SVN: r69016
2003-07-01* filenames.h: New file imported from binutils.Zack Weinberg2-0/+55
From-SVN: r68791
2003-07-01xtensa-config.h: New file imported from binutils.Bob Wilson2-0/+72
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-06-22safe-ctype.h (HC_UNKNOWN, [...]): Rename to HOST_CHARSET_UNKNOWN...Zack Weinberg2-6/+12
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-21safe-ctype.h (HC_UNKNOWN, [...]): New #defines.Zack Weinberg2-8/+29
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-17alloc-pool.c: Don't check HAVE_LONG_DOUBLE.Kaveh R. Ghazi2-11/+4
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-05-15hex.c (_hex_value): Make this unsigned.Jim Blandy2-2/+9
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-07s/burtle/iterativeJason Merrill2-4/+4
From-SVN: r66577
2003-05-07hashtab.c (burtle_hash): New fn.Jason Merrill2-0/+10
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-03-17ansidecl.h (ATTRIBUTE_NONNULL, [...]): New.Kaveh R. Ghazi2-1/+37
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-17ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.Jan Hubicka2-0/+5
* 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-02-27* libiberty.h: Document return value of physmem routines.Kaveh R. Ghazi2-1/+5
From-SVN: r63521
2003-02-21libiberty.h (physmem_total, [...]): Prototype.Kaveh R. Ghazi2-0/+8
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-20* libiberty.h (lrealpath): Add declaration.Daniel Jacobowitz2-0/+8
From-SVN: r63185
2003-01-26hashtab.h (htab_alloc_with_arg, [...]): Add new types.Daniel Jacobowitz2-2/+30
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-10Merge from pch-branch.Geoffrey Keating2-10/+23
From-SVN: r61136
2002-11-24* libiberty.h (basename): Add NetBSD to the list.Simon Burge2-1/+5
From-SVN: r59421
2002-11-22libiberty.h (make_relative_prefix): Add prototype.Daniel Jacobowitz2-0/+10
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-10-27partition.h: Close the extern "C" scope when compiling with C++.Roger Sayle3-2/+10
* 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-27re PR bootstrap/8351 (3.3 20021024 (experimental) fails to bootstrap on cygwin)Roger Sayle2-0/+8
PR bootstrap/8351 * getopt.h: Avoid prototyping getopt with no arguments in C++. Co-Authored-By: DJ Delorie <dj@redhat.com> From-SVN: r58569