1. 01 Jan, 2006 2 commits
  2. 31 Dec, 2005 6 commits
  3. 30 Dec, 2005 6 commits
    • tree-outof-ssa.c (_elim_graph): Change the type of STACK to VEC(int,heap). · 1f452424
      	* tree-outof-ssa.c (_elim_graph): Change the type of STACK to
      	VEC(int,heap).
      	(new_elim_graph, delete_elim_graph, elim_forward,
      	eliminate_phi): Use the VEC API on STACK.
      
      From-SVN: r109182
      Kazu Hirata committed
    • tree.h (VALUE_HANDLE_VUSES): New. · c90186eb
      2005-12-29  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree.h (VALUE_HANDLE_VUSES): New.
      	(struct tree_value_handle): Add vuses.
      
      	* tree-vn.c (struct val_expr_pair_d): Remove stmt, add vuses.
      	(vn_compute): Remove stmt argument.
      	Don't use vuses in hash value computation.
      	(val_expr_pair_eq): Compare vuse lists.
      	(copy_vuses_from_stmt): New function.
      	(shared_vuses_from_stmt): Ditto.
      	(vn_add): Rewrite in terms of vn_add_with_vuses.
      	(vn_add_with_vuses): New function.
      	(vn_lookup): Rewrite in terms of vn_lookup_with_vuses.
      	(vn_lookup_with_vuses): New function.
      	(vuses_compare): New function.
      	(print_creation_to_file): Ditto.
      	(vn_lookup_or_add): Rewrite to handle vuses.
      	(sort_vuses): New function.
      	(vn_lookup_or_add_with_vuses): Ditto.
      	(vn_init): Initialize shared_lookup_vuses.
      	(vn_delete): Free shared_lookup_vuses.
      
      	* tree-ssa-pre.c: Update todo list.
      	(bb_value_sets_t): Add rvuse_in, rvuse_out, rvuse_gen, and
      	rvuse_kill.
      	(RVUSE_IN): New macro.
      	(RVUSE_GEN): Ditto.
      	(RVUSE_KILL): Ditto.
      	(RVUSE_OUT): Ditto.
      	(modify_expr_node_pool): New function.
      	(pretemp): New.
      	(storetemp): Ditto.
      	(mergephitemp): Ditto.
      	(prephitemp): Ditto.
      	(struct expr_pred_trans_d): Add vuses member.
      	(expr_pred_trans_eq): Compare vuses.
      	(phi_trans_lookup): Add vuses argument.
      	(phi_trans_add): Ditto.
      	(translate_vuses_through_block): New function.
      	(phi_translate): Use vuses to ask about those expressions that can
      	have vuses.
      	Properly translate virtual uses through phis, and use
      	vn_lookup_or_add_with vuses.  Handle tcc_reference.
      	(phi_translate_set): Don't add pointless translations to the
      	cache.
      	(get_representative): New function.
      	(vuses_dies_in_block_x): Ditto.
      	(valid_in_set): Add block argument.  Check virtual use validity.
      	(clean): Add block argument. Update call to valid_in_set
      	(compute_antic_aux): Update call to clean.
      	(dump_bitmap_of_names): New function.
      	(compute_vuse_representatives): Ditto.
      	(compute_rvuse): Ditto.
      	(can_value_number_call): Modified to accept calls with vuses.
      	(can_value_number_operation): New function.
      	(can_PRE_operation): Ditto.
      	(need_creation): New vector of stores that may need creation.
      	(find_or_generate_expression): use can_PRE_operation.
      	(create_expression_by_pieces): Handle INDIRECT_REF.
      	Only create one temp until we have to change types.
      	Mark new vars for renaming.
      	(insert_into_preds_of_block): Ignore loopiness of loads.
      	Use can_PRE_operation.
      	Only create one temp until we have to chnge types.
      	(insert_aux): Use can_PRE_operation.
      	Don't pass name to insert_into_preds_of_block.
      	(insert_extra_phis): Only use one temp until we have to change
      	types.
      	(poolify_tree): New function.
      	(modify_expr_template): New var.
      	(poolify_modify_expr): New function.
      	(insert_fake_stores): Ditto.
      	(realify_fake_stores): Ditto.
      	(compute_avail): Use can_value_number_operation.
      	(mark_operand_necessary): Return NULL for non-SSA names.
      	(remove_dead_inserted_code): Update comment.
      	(init_pre): Initialize pretemp, need_creation, storetemp,
      	mergephitemp, prephitemp.
      	Create modify_expr_node_pool.
      	(fini_pre): Free modify_expr_node_pool and need_creation array.
      	(execute_pre): Call insert_fake_stores, compute_rvuse, and
      	realify_fake_stores. 
      	* tree-flow.h (vn_compute): Fix prototype.
      	(vn_add): Ditto.
      	(vn_lookup): Ditto.
      	(sort_vuses): New.
      	(vn_lookup_or_add_with_vuses): Ditto.
      	(vn_add_with_vuses): Ditto.
      	(vn_lookup_with_vuses): Ditto.
      	* passes.c (pass_may_alias): Add.
      
      From-SVN: r109180
      Daniel Berlin committed
    • c-pretty-print.h (struct c_pretty_print_info): Add new member "constant". · a176426f
      2005-12-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
              * c-pretty-print.h (struct c_pretty_print_info): Add new
                member
              "constant".
              (pp_constant): New macro.
              * c-pretty-print.c (pp_c_pretty_printer_init): Set
                pp->constant.
      
      cp/
      2005-12-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
              * cxx-pretty-print.c (pp_cxx_constant): New.  Print
              string-literal in parens if input program says so.
              (pp_cxx_primary_expression): Hand off constant printing to
              pp_cxx_constant.
              (pp_cxx_pretty_printer_init): Set pp->c_base.constant.
              (pp_cxx_expression): Use pp_cxx_constant for literals.
              * error.c (dump_expr): Use pp_constant for literals.
      
      From-SVN: r109176
      Gabriel Dos Reis committed
    • re PR fortran/22607 (Elemental character functions don't work) · cf013e9f
      fortran/
      2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/22607
              * trans-decl.c(gfc_get_extern_function_decl): Don't set
              DECL_IS_PURE (fndecl) = 1 for return-by-reference
              functions.
      
              fortran/PR 25396
              * interface.c (gfc_extend_expr): Initialize
              e->value.function.name to NULL.
      
      
      
      testsuite/
      2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>
      
              PR fortran/22607
              * gfortran-dg/pure_byref_3.f90: New.
      
              fortran/PR 25396
              * gfortran.dg/userdef_operator_1.f90: New.
      
      From-SVN: r109171
      Erik Edelmann committed
    • re PR middle-end/25586 (FAIL: gfortran.dg/cray_pointers_2.f90 at -O2 and above) · ae21215e
      	PR fortran/25586
      	* pa.md: Remove REG_POINTER check from REG+REG peephole2 floating-point
      	store patterns.
      
      From-SVN: r109166
      John David Anglin committed
    • Daily bump. · 3bc77af7
      From-SVN: r109160
      GCC Administrator committed
  4. 29 Dec, 2005 11 commits
  5. 28 Dec, 2005 15 commits
    • config.gcc (mt-*-*): Add --with-arch support. · 6e0eea31
      	* config.gcc (mt-*-*): Add --with-arch support.
      	(--with): Print accepted options on error.
      	* config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.
      
      	* config/mt/mt.c (DEF_VEC_P(basic_block),
      	DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.
      
      From-SVN: r109124
      Nathan Sidwell committed
    • re PR libfortran/25139 ("Invalid argument" error on I/O) · 03345deb
      2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/25139
      	* gfortran.dg/backspace_2.f: New test.
      
      From-SVN: r109123
      Jerry DeLisle committed
    • re PR libfortran/25139 ("Invalid argument" error on I/O) · 844234fb
      2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/25139
      	* io/unix.c (fd_truncate): Set s->active to zero.
      	PR libgfortran/25510
      	* libgfortran.h: Add ERROR_INTERNAL and ERROR_INTERNAL_UNIT.
      	* runtime/error.c (translate_error): Add messages for new errors.
      	* io/list_read.c (next_char): Use new errors.
      	* io/transfer.c (next_record_r) (next_record_w): Use new errors.
      
      From-SVN: r109122
      Jerry DeLisle committed
    • re PR fortran/25587 (Garbage in output of -fdump-tree-original) · ff7417d4
      2005-12-28  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR fortran/25587
              * trans-io.c (gfc_build_st_parameter): Correct off by one error.
      
      From-SVN: r109120
      Andrew Pinski committed
    • natPlainSocketImplWin32.cc (connect): Same as previous patch, but for win32. · b21606a6
      2005-12-28  Anthony Green  <green@redhat.com>
       
      	* gnu/java/net/natPlainSocketImplWin32.cc (connect): Same 
      	as previous patch, but for win32.
      
      From-SVN: r109119
      Anthony Green committed
    • natPlainSocketImplPosix.cc (connect): Record address and port before attempting anything. · 44fae9ca
      2005-12-28  Anthony Green  <green@redhat.com>
      
      	* gnu/java/net/natPlainSocketImplPosix.cc (connect): Record
      	address and port before attempting anything.
      
      From-SVN: r109116
      Anthony Green committed
    • [multiple changes] · 5c3bb9eb
      2005-12-27  Tom Tromey  <tromey@redhat.com>
      
      	* gnu/java/nio/SelectorImpl.java: Added import.
      
      2005-12-26  Anthony Green  <green@redhat.com>
      
              * java/net/Socket.java (connect): Don't close the socket on
              exceptions.
      
              * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount
              of data to read (dst.remaining()).
              * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto.
      
              * gnu/java/nio/SelectorImpl.java (select): Handle OP_CONNECT
              properly.
      
      From-SVN: r109114
      Anthony Green committed
    • locks.h (compare_and_swap): Add ldcw semaphore to make operation atomic. · 3779973b
      	* sysdep/pa/locks.h (compare_and_swap): Add ldcw semaphore to make
      	operation atomic.
      
      From-SVN: r109110
      John David Anglin committed
    • re PR tree-optimization/25394 (libgcc2.c:2033: ICE: tree check: expected tree… · 3eb04608
      re PR tree-optimization/25394 (libgcc2.c:2033: ICE: tree check: expected tree that contains 'decl common' structure, have 'name_memory_tag')
      
      2005-12-28  Daniel Berlin  <dberlin@dberlin.org>
      
      	Fix PR tree-optimization/25394
      	* fold-const.c (fold_checksum_tree): Guard 
      	portions of checksumming with correct structure checks.
      
      From-SVN: r109109
      Daniel Berlin committed
    • lwg-active.html, [...]: Import Revision 40. · bb8a23ac
      2005-12-28  Paolo Carlini  <pcarlini@suse.de>
      
      	* docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 40.
      
      From-SVN: r109108
      Paolo Carlini committed
    • Make-lang.in: Remove distdir from comment. · b3482bb1
      2005-12-28  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
      
              * Make-lang.in: Remove distdir from comment.
      
      From-SVN: r109107
      Rafael Ávila de Espíndola committed
    • Make-lang.in (treelang.distdir): Remove. · 2dfb0dd8
      2005-12-28  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
      
              * Make-lang.in (treelang.distdir): Remove.
      
      From-SVN: r109106
      Rafael Ávila de Espíndola committed
    • testsuite_allocator.h (check_deallocate_null): Return true. · 001a2a47
      2005-12-28  Chris Jefferson  <chris@bubblescope.net>
      
      	* testsuite/testsuite_allocator.h (check_deallocate_null): Return true.
      
      From-SVN: r109104
      Chris Jefferson committed
    • [multiple changes] · e7c59a0e
      2005-12-28  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/std/std_bitset.h (bitset<>::_M_copy_from_string,
      	bitset<>::_M_copy_to_string, bitset<>::operator>>): Reverse loop.
      
      	* testsuite/25_algorithms/heap/heap.cc (test01): Always enable
      	complexity checks.
      	* testsuite/18_support/numeric_limits/specialization.cc: Avoid
      	unused parameter warning.
      	* testsuite/18_support/numeric_limits/traps.cc: Acoid unused variable
      	warning.
      	* testsuite/ext/malloc_allocator/deallocate_global.cc: Fix format
      	string.
      	* testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise.
      	* testsuite/ext/array_allocator/2.cc: Remove unused variable.
      	* testsuite/tr1/3_function_objects/mem_fn.cc: Avoid unused variable
      	warnings.
      	* testsuite/tr1/6_containers/unordered/instantiate/set.cc: Just
      	instantiate.
      	* testsuite/tr1/6_containers/unordered/instantiate/map.cc: Likewise.
      	* testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Likewise.
      	* testsuite/tr1/6_containers/unordered/instantiate/multiset.cc:
      	Likewise.
      	* testsuite/tr1/6_containers/unordered/instantiate/multimap.cc:
      	Likewise.
      	* testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
      	Avoid unused variable warnings.
      	* testsuite/tr1/6_containers/array/requirements/zero_sized_arrays.cc:
      	Likewise.
      	* testsuite/thread/18185.cc: Likewise.
      	* testsuite/27_io/ios_base/storage/11584.cc: Likewise; avoid comparison
      	between signed and unsigned warning.
      	* testsuite/27_io/types/1.cc: Avoid unused variable warnings.
      	* testsuite/testsuite_allocator.h (check_new): Likewise.
      	(check_deallocate_null): Adjust return type.
      	* testsuite/testsuite_hooks.h (bitmask_operators): Avoid unused
      	variable warnings.
      	* testsuite/21_strings/c_strings/wchar_t/24559.cc: Avoid unused
      	variable warning.
      
      2005-12-28  Chris Jefferson  <chris@bubblescope.net>
      
      	* include/std/std_bitset.h (bitset<0>::set, bitset<0>::reset,
      	bitset<0>::flip, bitset<0>::test): Add inline specializations for
      	bitset<0>.
      
      	* testsuite/tr1/6_containers/unordered/insert/multiset_range.cc
      	(test01): Add static cast.
      	* testsuite/tr1/6_containers/unordered/insert/set_range.cc
      	(test01): Likewise.
      	* testsuite/testsuite_hooks.h (operator==(NonDefaultConstructible,
      	NonDefaultConstructible), operator<(NonDefaultConstructible,
      	NonDefaultConstrictible)): Avoid unused parameter warning.
      
      From-SVN: r109103
      Paolo Carlini committed
    • re PR libfortran/25550 (file data corrupted after reading end of file) · 6c8ccf1c
      2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/25550
      	* gfortran.dg/endfile.f: New test.
      
      From-SVN: r109102
      Jerry DeLisle committed