Skip to content
Snippets Groups Projects
  1. Sep 26, 2005
    • Mark Mitchell's avatar
      libiberty.h (expandargv): New function. · 97393d0a
      Mark Mitchell authored
      	* libiberty.h (expandargv): New function.
      
      	* argv.c (safe-ctype.h): Include it.
      	(ISBLANK): Remove.
      	(stdio.h): Include.
      	(buildargv): Use ISSPACE instead of ISBLANK.
      	(expandargv): New function.
      
      From-SVN: r104664
      97393d0a
  2. Sep 15, 2005
    • Christopher Faylor's avatar
      pex-win32.c: Include "windows.h". · 0d676b85
      Christopher Faylor authored
      * pex-win32.c: Include "windows.h".
      (backslashify): New function.
      (fix_argv): Use backslashify to convert path to windows format.  Allocate one
      more place in new argv for potential executable from '#!' parsing.
      (tack_on_executable): New function.  Conditional on USE_MINGW_MSYS
      (openkey): Ditto.
      (mingw_rootify): Ditto.
      (msys_rootify): Ditto.
      (spawn_script): New function.
      (pex_win32_exec_child): Save translated argv in newargv.  Pass to spawn_script
      if spawnv* fails.
      (main): New function.  Conditional on MAIN.  Useful for testing.
      
      From-SVN: r104292
      0d676b85
  3. Aug 17, 2005
    • Mark Kettenis's avatar
      floatformat.c (floatformat_always_valid): Change type of last argument to `void *'. · e89b6c1c
      Mark Kettenis authored
      [libiberty]
      * floatformat.c (floatformat_always_valid): Change type of last
      argument to `void *'.
      (floatformat_i387_ext_is_valid): Likewise.
      (floatformat_to_double): Change type of second argument to `const
      void *'.
      (floatformat_from_double): Change type of last argument to `void
      *'.
      (floatformat_is_valid): Change type of last argument to `const
      void *'.
      (ieee_test): Remove redundant casts.
      [include]
      * floatformat.h (struct floatformat): Change type of large
      argument for is_valid member to `const void *'.
      (floatformat_to_double): Change type of second argument to `const
      void *'.
      (floatformat_from_double): Change type of last argument to `void
      *'.
      (floatformat_is_valid): Change type of last argument to `const
      void *'.
      
      From-SVN: r103218
      e89b6c1c
    • Kelley Cook's avatar
      strverscmp.c: Update FSF address. · 0cbe2a68
      Kelley Cook authored
      2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* strverscmp.c: Update FSF address.
      	* testsuite/Makefile.in: Likewise.
      	* testsuite/test-demangle.c: Likewise.
      	* testsuite/test-pexecute.c: Likewise.
      
      From-SVN: r103199
      0cbe2a68
  4. Jul 23, 2005
  5. Jul 22, 2005
  6. Jul 15, 2005
  7. Jul 12, 2005
  8. Jul 07, 2005
    • Kelley Cook's avatar
      config.table: Delete file. · 769b009e
      Kelley Cook authored
      2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* config.table: Delete file.  Move former contents into ...
      	* configure.ac: ... here and escape any brackets for m4.
      	* Makefile.in (config.status): Remove dependency on config.table.
      	* configure: Regenerate.
      
      From-SVN: r101684
      769b009e
    • Kelley Cook's avatar
      config.in: Regenerate for 6/20 change. · f379ddd1
      Kelley Cook authored
      2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* config.in: Regenerate for 6/20 change.
      
      From-SVN: r101683
      f379ddd1
  9. Jul 03, 2005
  10. Jul 01, 2005
  11. Jun 30, 2005
    • Daniel Berlin's avatar
      [multiple changes] · a3648cfc
      Daniel Berlin authored
      2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree-complex.c (complex_variable_components): Now a hashtable.
      	(cvc_lookup): Ditto.
      	(cvc_insert): Ditto.
      	(create_components): Use referenced var iterator.
      	Initialize hashtable.	Use cvc_insert/lookup.
      	(extract_components): Use cvc_insert/lookup.
      	(update_complex_components): Ditto.
      	(update_complex_components_on_edge): Ditto.
      	* tree-dfa.c (referenced_vars): Now a hashtable.
      	(dump_referenced_vars): Use iterator.
      	(referenced_var_lookup): New function.
      	(referenced_var_insert): Ditto.
      	(add_referenced_var): Use referenced_var_insert.
      	(mark_new_vars_to_rename): Use DECL_UID.
      	* tree-flow-inline.h (first_htab_element): New function.
      	(end_htab_p): Ditto.
      	(next_htab_element): Ditto.
      	(first_referenced_var): Ditto.
      	(end_referenced_vars_p): Ditto.
      	(next_referenced_var): Ditto.
      	(is_call_clobbered): Use DECL_UID.
      	(mark_call_clobbered): Ditto.
      	(clear_call_clobbered): Ditto.
      	(mark_non_addressable): Ditto.
      	* tree-flow.h (htab_iterator): New struct.
      	(FOR_EACH_HTAB_ELEMENT): New macro.
      	(struct int_tree_map): New struct.
      	(int_tree_map_hash): Prototype.
      	(int_tree_map_eq): Ditto.
      	(referenced_var_iterator): Ditto.
      	(FOR_EACH_REFERENCED_VAR): New macro.
      	(referenced_vars): Now a hashtable.
      	* tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
      	(add_new_name_mapping): Ditto.
      	(mark_def_sites): Ditto.
      	(insert_phi_nodes): Use referenced_var iterator.
      	(mark_def_site_blocks): Ditto.
      	(mark_sym_for_renaming): Use DECL_UID.
      	* tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
      	(lookup_element): Ditto.
      	(find_candidates_for_sra): Use referenced_vars iterator.
      	Use DECL_UID.
      	* tree-ssa-alias.c (NUM_REFERENCES): New macro.
      	(NUM_REFERENCES_CLEAR): Ditto.
      	(NUM_REFERENCES_INC): Ditto.
      	(NUM_REFERENCES_SET): Ditto.
      	(alias_obstack): New bitmap obstack.
      	(struct alias_map_d): Use bitmap, not sbitmap.
      	(struct alias_info): Remove num_references.
      	(init_alias_info): Use referenced_var iterator.
      	Initialize bitmap obstack.
      	(delete_alias_info): Use referenced_var iterator.
      	Free bitmap obstack.
      	(compute_points_to_and_addr_escape): Use DECL_UID.
      	Use new NUM_REFERENCES macros.
      	(compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
      	Use new NUM_REFERENCES macros.
      	(group_aliases_into): Update prototype to use bitmap.
      	(setup_pointers_and_addressables): Use referenced_vars iterator.
      	Use DECL_UID. Use new NUM_REFERENCES macros.
      	(add_pointed_to_var): Use DECL_UID.
      	(dump_alias_info): Use referenced_var iterator.
      	(add_type_alias): Ditto.
      	(used_portions): Now a hashtable.
      	(used_part_map_eq): New function.
      	(used_part_map_hash): Ditto.
      	(free_used_part_map): Ditto.
      	(up_lookup): Ditto.
      	(up_insert): Ditto.
      	(get_or_create_used_part_for): Use up_lookup.
      	(create_overlap_variables_for): Ditto.
      	(find_used_portions): Use up_insert.
      	Use DECL_UID.
      	(create_structure_vars): Init used_portions hashtable, use
      	referenced_vars iterator.
      	* tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
      	Use DECL_UID.
      	* tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
      	* tree-ssa-operands.c (get_asm_expr_operands): Ditto.
      	(note_addressable): Ditto.
      	* tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
      	* tree-ssa.c (verify_flow_insensitive_alias_info): Use
      	referenced_var iterator.
      	Use DECL_UID.
      	(delete_tree_ssa): Ditto.
      	(int_tree_map_eq): New function.
      	(int_tree_map_hash): Ditto.
      	* tree-stdarg.c (find_va_list_reference): Use DECL_UID.
      	(va_list_ptr_read): Ditto.
      	(va_list_counter_struct_op): Ditto.
      	(va_list_ptr_write): Ditto.
      	(check_va_list_escapes): Ditto.
      	(check_all_va_list_escapes): Ditto.
      	(execute_optimize_stdarg): Ditto.
      	* tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
      	iterator.
      2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
      
      	* hashtab.h (HTAB_DELETED_ENTRY): New macro.
      	(HTAB_EMPTY_ENTRY): New macro.
      
      2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
      
      	* hashtab.c (EMPTY_ENTRY): Moved and renamed.
      	(DELETED_ENTRY): Ditto.
      
      From-SVN: r101480
      a3648cfc
  12. Jun 21, 2005
    • Geoffrey Keating's avatar
      Index: include/ChangeLog · 83fbfe42
      Geoffrey Keating authored
      2005-06-20  Geoffrey Keating  <geoffk@apple.com>
      
      	* libiberty.h (strverscmp): Prototype.
      
      Index: libiberty/ChangeLog
      2005-06-20  Geoffrey Keating  <geoffk@apple.com>
      
      	* strverscmp.c: New.
      	* Makefile.in (CFILES): Add strverscmp.c.
      	(CONFIGURED_OFILES): Add strverscmp.o.
      	(strverscmp.o): New rule.
      	(stamp-functions): Add $(srcdir) to files in source directory.
      	* configure.ac (funcs): Add strverscmp.
      	(AC_CHECK_FUNCS): Add strverscmp.
      	* configure: Regenerate.
      	* functions.texi: Regenerate.
      
      From-SVN: r101226
      83fbfe42
  13. May 28, 2005
    • Eli Zaretskii's avatar
      libiberty.h: (snprintf) [!HAVE_DECL_SNPRINTF]: Declare if needed. · ddcf783b
      Eli Zaretskii authored
      include:
      2005-05-28  Eli Zaretskii  <eliz@gnu.org>
      
      	* libiberty.h: (snprintf) [!HAVE_DECL_SNPRINTF]: Declare if
      	needed.
      	(vsnprintf) [!HAVE_DECL_VSNPRINTF]: Declare if needed.
      
      libiberty:
      2005-05-28  Eli Zaretskii  <eliz@gnu.org>
      
      	* configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
      	* config.in, configure: Regenerate.
      
      From-SVN: r100292
      ddcf783b
  14. May 25, 2005
    • Richard Henderson's avatar
      demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New. · 15da2806
      Richard Henderson authored
      include/
      	* demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New.
      libiberty/
      	* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
      	(d_make_comp, d_print_comp): Likewise.
      	(d_special_name): Generate one.
      	* testsuite/demangle-expected: Add a hidden alias test.
      
      From-SVN: r100174
      15da2806
  15. May 24, 2005
    • Gabriel Dos Reis's avatar
      libiberty.h (ACONCAT): Properly cast value of alloca(). · d7cf8390
      Gabriel Dos Reis authored
      include/
      2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
      	* libiberty.h (ACONCAT): Properly cast value of alloca().
      
      	* ansidecl.h (ATTRIBUTE_UNUSED_LABEL): Don't define if
      	__cplusplus.
      
      libiberty/
      2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
      	* configure.ac: Check declarations for calloc(), getenv(),
      	malloc(), realloc() and sbrk().
      	* config.in: Regenerate.
      	* configure: Likewise.
      
      	* alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
      	instead of xmalloc.
      	* choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
      	* concat.c (liiberty_concat_ptr): Surround definition with an
      	extern "C" block, if __cplusplus.
      	(concat): Use XNEWVEC instead of xmalloc.
      	(reconcat): Likewise.
      	* cp-demangle.c (struct d_print_template): Rename member
      	"template" to "template_decl".  Adjust use throughout the file.
      	(d_print_resize): Properly cast return value of realloc().
      	(cplus_demangle_print): Same for malloc().
      	(d_demangle): Likewise.
      	* cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
      	"typename" to "type_name".
      	* cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
      	(work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
      	(demangle_template_value_parm): Likewise.
      	(demangle_template): Likewise.
      	(recursively_demangle): Likewise.
      	(do_hpacc_template_literal): Likewise.
      	(do_arg): Likewise.
      	(remember_type): Likewise.
      	(remember_Ktype): Likewise.
      	(register_Btype): Likewise.
      	(string_need): Use XRESIZEVEC instead of xrealloc().
      	* dyn-string.c (dyn_string_init): Use XNEWVEC.
      	(dyn_string_new): Use XNEW.
      	(dyn_string_resize): Use XRESIZEVEC.
      	* fnmatch.c (fnmatch): Rename local variable "not" to "negate".
      	* getopt.c (getenv): Declare only if !__cplusplus and !getenv.
      	Otherwise include <stdlib.h>.
      	(exchange): Cast return value of malloc().
      	* hashtab.c (htab_size): Define as both macro and non-inline
      	function.
      	(htab_elements): Likewise.
      	* getpwd.c (getpwd): Use XNEWVEC.
      	(htab_create_alloc_ex): Use C90 prototype-style.
      	* lrealpath.c (lrealpath): Appropriately cast return value of
      	malloc().
      	* make-relative-prefix.c (save_string): Likewise.
      	* make-temp-file.c (try_dir): Rename from "try".  Adjust use in
      	the file.
      	(choose_tmpdir): Use XNEWVEC.
      	* mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
      	* pex-common.c (pex_init_common): Use XNEW.
      	(pex_add_remove): Use XRESIZEVEC.
      	(pex_run): Likewise.
      	(pex_get_status_and_time): Likewise.
      	* pex-djgpp.c (pex_djgpp_exec_child): Likewise.
      	* pex-msdos.c (pex_init): Use XNEW.
      	(pex_msdos_exec_child): Likewise.
      	(pex_msdos_exec_child): Use XRESIZEVEC.
      	* pex-unix.c (pex_wait): Use XNEW.
      	* pex-win32.c (fix_argv): Use XNEWVEC.
      	* pexecute.c (pwait): Likewise.
      	* setenv.c (setenv): Properly cast return value of malloc().
      	* sigsetmask.c (sigsetmask): Rename local variables "old" and
      	"new" to "old_sig" and "new_sig".
      	* sort.c (main): Use XNEWVEC.
      	* spaces.c (spaces): Cast return value of malloc().
      	* strndup.c (strndup): Likewise.
      	* ternary.c (ternary_insert): Use XNEW.
      	* xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
      	with an extern "C" block if __cplusplus.
      	* xstrdup.c (xstrdup): Cast return value of memcpy().
      	* xstrerror.c (strerror): Enclose declaration in an extern "C"
      	block if __cplusplus.
      	* xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
      
      From-SVN: r100115
      d7cf8390
  16. May 16, 2005
  17. May 15, 2005
  18. May 12, 2005
    • Eli Zaretskii's avatar
      pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and sys/stat.h. · 5db1c531
      Eli Zaretskii authored
      2005-05-11  Eli Zaretskii  <eliz@gnu.org>
      
      	* pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
      	sys/stat.h.
      	(pex_init): Fix last argument to pex_init_common.
      	(pex_djgpp_exec_child): Remove leading underscore from _open,
      	_dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
      	which is undeclared, with `executable', which was unused.  Remove
      	unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
      	(pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
      
      From-SVN: r99606
      5db1c531
  19. May 11, 2005
  20. May 10, 2005
  21. May 07, 2005
    • Kelley Cook's avatar
      aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove. · c1300f45
      Kelley Cook authored
      2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
      	* configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
      	* configure: Regenerate.
      
      From-SVN: r99344
      c1300f45
    • Kelley Cook's avatar
      configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. · fbc1bc09
      Kelley Cook authored
      2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
      	Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
      	* aclocal.m4: Don't include accross.m4.
      	* configure, config.in: Regenerate.
      
      From-SVN: r99343
      fbc1bc09
  22. Apr 26, 2005
  23. Apr 16, 2005
    • Kaveh R. Ghazi's avatar
      libiberty.h (unlock_stream): New. · 6feaa084
      Kaveh R. Ghazi authored
      include:
      	* libiberty.h (unlock_stream): New.
      
      libiberty:
      	* fopen_unlocked.c (unlock_stream): New.
      	Consolidate unlocking code into a helper function.
      
      	* functions.texi: Regenerate.
      
      From-SVN: r98234
      6feaa084
    • Gabriel Dos Reis's avatar
      asprintf.c: Include config.h. · 3c60ae5a
      Gabriel Dos Reis authored
              * asprintf.c: Include config.h.
              * basename.c: Likewise.
              * fdmatch.c: Likewise.
              * hex.c: Likewise.
              * lbasename.c: Likewise.
              * spaces.c: Likewise.
              * xatexit.c:Likewise.
              * configure.ac:  Do check declarations for basename, ffs, asprintf
              and vasprintf for real.
              * configure: Regenerate.
      
      From-SVN: r98218
      3c60ae5a
  24. Apr 13, 2005
  25. Apr 12, 2005
Loading