1. 22 Oct, 2003 1 commit
    • obstack.h: Merge the following change from gnulib... · dc70e81d
      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
      Joseph Myers committed
  2. 22 Sep, 2003 1 commit
    • floatformat.h (struct floatformat): Add field "is_valid". · 83c07342
      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
      Andrew Cagney committed
  3. 16 Sep, 2003 1 commit
    • Index: include/ChangeLog · c9fbef12
      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
      Andrew Cagney committed
  4. 15 Sep, 2003 2 commits
  5. 10 Jul, 2003 1 commit
  6. 06 Jul, 2003 1 commit
  7. 01 Jul, 2003 2 commits
  8. 22 Jun, 2003 1 commit
    • safe-ctype.h (HC_UNKNOWN, [...]): Rename to HOST_CHARSET_UNKNOWN... · 21299dbd
      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
      Zack Weinberg committed
  9. 21 Jun, 2003 1 commit
    • safe-ctype.h (HC_UNKNOWN, [...]): New #defines. · 7468e0b5
      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
      Zack Weinberg committed
  10. 17 Jun, 2003 1 commit
    • alloc-pool.c: Don't check HAVE_LONG_DOUBLE. · a54928c9
      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
      Kaveh R. Ghazi committed
  11. 15 May, 2003 1 commit
    • hex.c (_hex_value): Make this unsigned. · 49a19cfd
      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
      Jim Blandy committed
  12. 07 May, 2003 2 commits
  13. 17 Mar, 2003 2 commits
    • ansidecl.h (ATTRIBUTE_NONNULL, [...]): New. · d41c4351
      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
      Kaveh R. Ghazi committed
    • ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize. · dbccdc42
      	* 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
      Jan Hubicka committed
  14. 27 Feb, 2003 1 commit
  15. 21 Feb, 2003 1 commit
    • libiberty.h (physmem_total, [...]): Prototype. · a354191e
      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
      Kaveh R. Ghazi committed
  16. 20 Feb, 2003 1 commit
  17. 26 Jan, 2003 1 commit
    • hashtab.h (htab_alloc_with_arg, [...]): Add new types. · 74828682
      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
      Daniel Jacobowitz committed
  18. 10 Jan, 2003 1 commit
  19. 24 Nov, 2002 1 commit
  20. 22 Nov, 2002 1 commit
  21. 27 Oct, 2002 2 commits
  22. 24 Oct, 2002 1 commit
  23. 16 Oct, 2002 1 commit
  24. 12 Oct, 2002 1 commit
  25. 20 Sep, 2002 1 commit
  26. 25 Jun, 2002 1 commit
  27. 24 Jun, 2002 1 commit
  28. 06 Jun, 2002 2 commits
  29. 04 Jun, 2002 1 commit
  30. 17 Apr, 2002 1 commit
  31. 01 Apr, 2002 1 commit
  32. 06 Mar, 2002 1 commit
  33. 22 Feb, 2002 1 commit
    • Allow the user to specify functions for allocating memory for splay tree roots and nodes. · 00c2f96f
      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
      Jim Blandy committed
  34. 05 Feb, 2002 1 commit
    • demangle.h (cplus_demangle_v3): Add "options" parm. · c13db5d1
              * 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
      Jason Merrill committed