1. 26 Nov, 2004 27 commits
  2. 25 Nov, 2004 13 commits
    • parts of PR rtl-opt/18463, rtl-opt/17647 · b7ca416f
      2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
      
              parts of PR rtl-opt/18463, rtl-opt/17647
              * cse.c (canon_for_address): New function.
              (find_best_addr): Call canon_for_address before getting the
              address's cost when checking if we should take that address.
      
      From-SVN: r91308
      Andrew Pinski committed
    • tree-phinodes.c (add_phi_arg): Take "tree" instead of "tree *" as the first argument. · d2e398df
      	* tree-phinodes.c (add_phi_arg): Take "tree" instead of
      	"tree *" as the first argument.
      	* tree-flow.h: Update the prototype of add_phi_arg.
      	* lambda-code.c, tree-cfg.c, tree-into-ssa.c,
      	tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
      	tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
      	tree-vectorizer.c: Update all call sites of add_phi_arg.
      
      From-SVN: r91307
      Kazu Hirata committed
    • bitmap.c (bitmap_malloc_alloc, [...]): Remove. · 9f8e7478
      	* bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
      	* bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
      	(BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
      	(BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
      
      From-SVN: r91306
      Nathan Sidwell committed
    • re PR tree-optimization/18587 (build_v_may_defs and build_vuses can be improved when adding) · e288e2f5
      
      2004-11-25  Andrew Macleod  <amacleod@redhat.com>
      
      	PR tree-optimization/18587
      	* tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
      	call clobbered caches as invalid.
      	* tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New.  Flag
      	indicating whether the call clobbered operand cache is valid.
      	(ssa_ro_call_cache_valid): New.  Flag indicating whether the pure/const
      	call operand cache is valid.
      	(clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New.
      	cached list of operands for cached call virtual operands.
      	(clobbered_aliased_loads, clobbered_aliased_stores,
      	ro_call_aliased_load): New.  flags caching whether alias bits are to be
      	set in call stmt's.  */
      	(fini_ssa_operands): Remove call operand caches if present.
      	(get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands):
      	Pass stmt annotation to add_stmt_operand.
      	(get_call_expr_operands): Add call clobbered variables first.
      	(add_stmt_operand): Take stmt annotation rather than stmt as a param.
      	(add_call_clobber_ops, add_call_read_ops): Use the call operand cache
      	if it is valid, otherise fill the cache.
      	* tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
      
      	* tree-flow.h (struct var_ann_d): Add in_vuse_list and in_v_may_def_list
      	bits.
      	* tree-ssa-operands.c (cleanup_v_may_defs): New.  Clear the in_list bits
      	for the v_may_def elements and empty the operand build array.
      	(finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant VUSES
      	by checking the in_v_may_def_list bit.
      	(append_v_may_def, append_vuse): Use the in_list bit rather than
      	scanning the array for duplicates.
      
      From-SVN: r91305
      Andrew MacLeod committed
    • ResourceBundle.java (BundleKey): Don't implement Cloneable. · 5257260c
      2004-11-25  Bryce McKinlay  <mckinlay@redhat.com>
      
      	* java/util/ResourceBundle.java (BundleKey): Don't implement
      	Cloneable.
      	(BundleKey.clone): Removed.
      	(getBundle): Copy BundleKey using constructor, not clone().
      
      From-SVN: r91304
      Bryce McKinlay committed
    • s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF displacements are not short. · 227a39fa
      	* config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
      	displacements are not short.
      
      From-SVN: r91303
      Ulrich Weigand committed
    • s390.c (legitimize_pic_address): Use s390_load_address to load addresses. · 6aea2f6d
      	* config/s390/s390.c (legitimize_pic_address): Use s390_load_address
      	to load addresses.
      
      From-SVN: r91302
      Ulrich Weigand committed
    • re PR c++/18001 (Badly formatted error message (quotation problem)) · 5ae9ba3e
      	PR c++/18001
      	* c-common.h (lvalue_use): Move here from c-ctypeck.c.
      	(lvalue_or_else): Declare.
      	* c-common.c (lvalue_or_else): Move here from c-typeck.c.
      	* c-typeck.c (lvalue_use): Remove.
      	(lvalue_or_else): Remove.
      
      	PR c++/18556
      	* toplev.c (check_global_declarations): Set DECL_IGNORED_P on
      	unemitted variables with static storage duration.
      
      	PR c++/18445
      	* class.c (instantiate_type): Treat NON_DEPENDENT_EXPRs with
      	unknown_type as non matching.  Tidy up.
      	* pt.c (build_non_dependent_expr): Do not build a
      	NON_DEPENDENT_EXPR for a VAR_DECL.
      
      	PR c++/18001
      	* cp-tree.h (lvalue_or_else): Remove declaration.
      	* tree.c (lvalue_or_else): Remove.
      	* typeck.c (build_unary_op): Adjust call to lvalue_or_else.
      	(build_modify_expr): Likewise.
      
      	PR c++/18625
      	* decl.c (duplicate_decls): Return error_mark_node on error, as
      	specified.
      
      	PR c++/18466
      	* decl.c (grokvardecl): Keep track of whether or not a there was
      	explicit qualification.
      	* name-lookup.c (set_decl_namespace): Complain about explicit
      	qualification of a name within its own namespace.
      
      	PR c++/18545
      	* typeck.c (check_return_expr): Robustify.
      
      	PR c++/18445
      	* g++.dg/template/crash28.C: Likewise.
      
      	PR c++/18001
      	* g++.dg/expr/unary2.C: Adjust lvalue messages.
      	* g++.dg/ext/lvaddr.C: Likewise.
      	* g++.dg/opt/pr7503-3.C: Likewise.
      
      	PR c++/18466
      	* g++.dg/parse/qualified3.C: New test.
      	* g++.old-deja/g++.other/friend7.C: Remove bogus qualification.
      
      	PR c++/18545
      	* g++.dg/expr/return1.C: New test.
      
      From-SVN: r91301
      Mark Mitchell committed
    • Friend class name lookup 3/n, PR c++/3332 · 87c465f5
      	Friend class name lookup 3/n, PR c++/3332
      	* name-lookup.c (push_inner_scope, pop_inner_scope): New functions.
      	(lookup_type_scope): Don't deal with name from user declaration
      	specially.
      	* name-lookup.h (push_inner_scope, pop_inner_scope): Add declarations.
      	* parser.c (cp_parser_class_specifier): Use push_inner_scope and
      	pop_inner_scope.
      
      	* g++.dg/lookup/friend3.C: New test.
      	* g++.dg/lookup/friend4.C: Likewise.
      	* g++.dg/lookup/friend5.C: Likewise.
      
      From-SVN: r91300
      Kriang Lerdsuwanakij committed
    • Friend class name lookup 2/n, PR c++/14513, c++/15410 · 29ef83de
      	Friend class name lookup 2/n, PR c++/14513, c++/15410
      	* name-lookup.c (lookup_name_real): Simplify.
      	(lookup_type_scope): Add SCOPE parameter.  Handle friend class
      	lookup.
      	* name-lookup.h (tag_scope): New enum type.
      	(lookup_type_scope): Adjust declaration.
      	* decl.c (lookup_and_check_tag, xref_tag, xref_tag_from_type):
      	Change bool parameter GLOBALIZED to TAG_SCOPE parameter SCOPE.
      	(start_enum): Likewise.  Add assertion test that NAME is
      	IDENTIFIER_NODE.  Use anonymous name for dummy ENUMERAL_TYPE in
      	case of error.
      	* cp-tree.h (xref_tag, xref_tag_from_type): Adjust declarations.
      	* parser.c (cp_parser_elaborated_type_specifier,
      	cp_parser_class_head): Adjust call to xref_tag.
      	* pt.c (lookup_template_class, instantiate_class_template):
      	Likewise.
      	* rtti.c (init_rtti_processing, build_dynamic_cast_1,
      	tinfo_base_init, emit_support_tinfos): Likewise.
      
      	* g++.dg/lookup/friend2.C: New test.
      	* g++.dg/template/friend31.C: Likewise.
      
      From-SVN: r91299
      Kriang Lerdsuwanakij committed
    • Resync. · 3c13948a
      From-SVN: r91298
      Arnaud Charlet committed
    • g-socthi-mingw.ads, [...]: Remove C_Read and C_Write from internal… · 670d2c11
      g-socthi-mingw.ads, [...]: Remove C_Read and C_Write from internal implementation unit GNAT.Sockets.Thin...
      
      	* g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
      	internal implementation unit GNAT.Sockets.Thin,
      	as their usage for sockets is non-portable (using the read and write
      	functions from the system runtime library is fine on UNIX but won't
      	work under Windows).
      
      	* mingw32.h: Update copyright notice.
      
      From-SVN: r91297
      Arnaud Charlet committed
    • ada-tree.h: Minor reformatting of previous change to avoid lines longer than 79 characters. · 061fd2bf
      	* ada-tree.h: Minor reformatting of previous change to avoid lines
      	longer than 79 characters.
      
      From-SVN: r91296
      Arnaud Charlet committed