1. 08 Jul, 2008 12 commits
    • re PR c++/34963 (ICE completely broken destructor) · ff7437d0
      gcc/cp/
      
      2008-07-08  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/34963
      	* decl.c (grokdeclarator): Reset storage_class and staticp for friend
      	functions declared with a storage class qualifier.
      
      gcc/testsuite/
      
      2008-07-08  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/34963
      	* g++.dg/parse/dtor13.C: New test.
      
      From-SVN: r137637
      Simon Martin committed
    • Actually add libjava/gnu/gcj/convert/make-trie.h. · b622a383
      From-SVN: r137636
      Ralf Wildenhues committed
    • On behalf of Tianwei, for the following change: · 7039a415
      2008-07-07  Tianwei Sheng  <tianweis@google.com>
      
      	* df-core.c (df_remove_problem): Adjust the access to avoid out of
      	bounds array access.
      
      From-SVN: r137634
      Tianwei Sheng committed
    • tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst. · 4c44c315
      	* tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
      	dst.
      
      From-SVN: r137633
      Jakub Jelinek committed
    • Fix PR tree-optimization/23455 Fix PR tree-optimization/35286 Fix PR tree-optimization/35287 · c9145754
      2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
      	
      	Fix PR tree-optimization/23455
      	Fix PR tree-optimization/35286
      	Fix PR tree-optimization/35287
      	* Makefile.in (OBJS-common): Remove tree-vn.o.
      	tree-vn.o: Remove.
      	* dbgcnt.def: Add treepre_insert debug counter.
      	* gcc/tree-flow.h (add_to_value): Updated for other changes.
      	(debug_value_expressions): Ditto.
      	(print_value_expressions): Ditto.
      	* tree-pretty-print.c (dump_generic_node): Updated for
      	VALUE_HANDLE removal.
      	* tree-ssa-dom.c (record_equality): Ditto.
      	(cprop_operand): Ditto.
      	(lookup_avail_expr): Ditto.
      	* tree-ssa-threadedge.c
      	(record_temporary_equivalences_from_stmts_at_dest): Ditto.
      	(simplify_control_stmt_condition): Ditto.
      	* tree.c (tree_code_size): Ditto.
      	(tree_node_structure): Ditto.
      	(iterative_hash_expr): Ditto.
      	* tree.def: Ditto.
      	* tree.h (VALUE_HANDLE_ID): Ditto.
      	(VALUE_HANDLE_EXPR_SET): Ditto.
      	(struct tree_value_handle): Ditto.
      	(union tree_node): Ditto.
      	* treestruct.def: Ditto.
      	* tree-vn.c: Removed.
      	* tree-ssa-pre.c: Rewritten entirely.
      	* tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
      	(constant_value_ids): Ditto.
      	(vn_nary_op_t): Moved to header.
      	(vn_phi_t): Ditto.
      	(vn_reference_op_t): Ditto
      	(vn_reference_t): Ditto.
      	(next_value_id): New variable.
      	(VN_INFO): Add an assert.
      	(vn_constant_eq): New function.
      	(vn_constant_hash): Ditto.
      	(get_or_alloc_constant_value_id): Ditto.
      	(value_id_constant_p): Ditto.
      	(vn_reference_compute_hash): De-staticify.
      	(copy_reference_ops_from_ref): Don't use get_callee_fndecl.
      	Disable some code with a FIXME.
      	Remove VALUE_HANDLE use.
      	(valueize_refs): Update opcode if it changes from ssa name to
      	constant.
      	(vn_reference_lookup_1): Add new argument.
      	(vn_reference_lookup):  Ditto.
      	(vn_reference_lookup_pieces): New function.
      	(vn_reference_insert): Add return type. Modify to deal with value
      	ids.
      	(vn_reference_insert_pieces):  New function.
      	(vn_nary_op_compute_hash): De-staticify.
      	(vn_nary_op_eq): Ditto.
      	(vn_nary_op_lookup_pieces): New function.
      	(vn_nary_op_lookup): Add new argument.  
      	(vn_nary_op_insert_pieces): New function.
      	(vn_nary_op_insert): Add return type. Modify to deal with value
      	ids.
      	(vn_phi_insert): Ditto.
      	(visit_unary_op): Update for callee changes.
      	(visit_binary_op): Ditto.
      	(visit_reference_op_load): Ditto.
      	(visit_reference_op_store): Ditto.
      	(init_scc_vn): Init next_value_id, constant_to_value_id and
      	constant_value_ids. 
      	(free_scc_vn): Free them.
      	(set_hashtable_value_ids): New function.
      	(run_scc_vn): Use it.
      	(get_max_value_id): New function.
      	(get_next_value_id): Ditto.
      	(expressions_equal_p): Moved from tree-vn.c
      	(sort_vuses): Ditto.
      	(sort_vuses_heap): Ditto.
      	* tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
      	above).
      	* tree.c (iterative_hash_hashval_t): Made non-static
      	* tree.h (iterative_hash_hashval_t): Declare it.
      
      From-SVN: r137631
      Daniel Berlin committed
    • ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params instead of… · 771578a0
      ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params instead of ipa_create_node_params.
      
      2008-07-08  Martin Jambor  <mjambor@suse.cz>
      
      	* ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
      	instead of ipa_create_node_params.
      	(ipcp_driver): Allocate infos with ipa_check_create_node_params and
      	ipa_check_create_edge_args, free them with
      	free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
      
      	* ipa-prop.c: Include flags.h and tree-inline.h.
      	(ipa_node_params_vector): New variable.
      	(ipa_edge_args_vector): New variable.
      	(edge_removal_hook_holder): New variable.
      	(node_removal_hook_holder): New variable.
      	(edge_duplication_hook_holder): New variable.
      	(node_duplication_hook_holder): New variable.
      	(ipa_detect_param_modifications): Check for presence of modified flags.
      	(ipa_compute_jump_functions): Check for presence of jump functions.
      	(ipa_free_edge_args_substructures): New function.
      	(ipa_create_node_params): Removed.
      	(ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
      	(ipa_free_node_params_substructures): New function.
      	(ipa_free_all_node_params): Changed to deallocate the on-the-side
      	vector.
      	(ipa_edge_removal_hook): New function.
      	(ipa_node_removal_hook): New function.
      	(duplicate_array): New function.
      	(ipa_edge_duplication_hook): New function.
      	(ipa_node_duplication_hook): New function.
      	(ipa_register_cgraph_hooks): New function.
      	(ipa_unregister_cgraph_hooks): New function.
      	(free_all_ipa_structures_after_ipa_cp): New function.
      	
      	* ipa-prop.h: Include vec.h.
      	(ipa_node_params_t): New typedef with vector types for it.
      	(ipa_edge_args_t):  New typedef with vector types for it.
      	(IPA_NODE_REF): Changed to access an on-the-side vector.
      	(IPA_EDGE_REF): Changed to access an on-the-side vector.
      	(ipa_check_create_node_params): New function.
      	(ipa_check_create_edge_args): New function.
      	
      	* Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
      	all users.
      
      From-SVN: r137620
      Martin Jambor committed
    • t-softfp-compat: Update comments. · d1349557
      2008-07-08  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/64/t-softfp-compat: Update comments.
      
      From-SVN: r137619
      H.J. Lu committed
    • type_traits: Add common_type. · cfa9a96b
      2008-07-08  Chris Fairles  <chris.fairles@gmail.com>
      
              * include/std/type_traits: Add common_type.
              * testsuite/20_util/common_type/requirements/
      	explicit_instantiation.cc: New.
              * testsuite/20_util/common_type/requirements/
      	typedefs-1.cc: Likewise.
      
      From-SVN: r137618
      Chris Fairles committed
    • libtool-version: Bump soversion. · 5acba8a2
      2008-07-08  Matthias Klose  <doko@ubuntu.com>
      
              * libtool-version: Bump soversion.
      
      From-SVN: r137614
      Matthias Klose committed
    • libstdc++.exp (check_v3_target_stdint): New. · a7543cfd
      2008-07-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/lib/libstdc++.exp (check_v3_target_stdint): New.
      	* testsuite/lib/dg-options.exp (dg-require-cstdint): New.
      	* testsuite/20_util/ratio/cons/cons1.cc: Use it.
      	* testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops1.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops2.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops3.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
      	* testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
      	* testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
      
      	* include/std/type_traits: Fix comment typo.
      
      From-SVN: r137612
      Paolo Carlini committed
    • struct-layout-1_generate.c (vector_types): Add v32qi, v16hi, v8si, v4di, v8sf,… · d508e6f8
      struct-layout-1_generate.c (vector_types): Add v32qi, v16hi, v8si, v4di, v8sf, v4df, u32qi, u16hi, u8si, u4di, u8sf and u4df.
      
      2008-07-07  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gcc.dg/compat/struct-layout-1_generate.c (vector_types): Add
      	v32qi, v16hi, v8si, v4di, v8sf, v4df, u32qi, u16hi, u8si, u4di,
      	u8sf and u4df.
      
      	* gcc.dg/compat/union-m128-1_main.c: Run only on x86.  Remove
      	__x86_64__ check.  Include "cpuid.h".
      	(main): Check SSE2 at runtime.
      
      	* gcc.dg/compat/union-m128-1_x.c: Compile with -msse2.  Remove
      	__x86_64__ check.
      	* gcc.dg/compat/union-m128-1_y.c: Likewise.
      
      	* gcc.dg/compat/vector-1_x.c: Add 32byte vector tests.
      	* gcc.dg/compat/vector-1_y.c: Likewise.
      	* gcc.dg/compat/vector-2_x.c: Likewise.
      	* gcc.dg/compat/vector-2_y.c: Likewise.
      
      	* gcc.dg/compat/vector-1a_main.c: New.
      	* gcc.dg/compat/vector-1a_x.c: Likewise.
      	* gcc.dg/compat/vector-1a_y.c: Likewise.
      	* gcc.dg/compat/vector-2a_main.c: Likewise.
      	* gcc.dg/compat/vector-2a_x.c: Likewise.
      	* gcc.dg/compat/vector-2a_y.c: Likewise.
      
      	* gcc.dg/compat/vector-defs.h (v32qi): New.
      	(v16hi): Likewise.
      	(v8si): Likewise.
      	(v4di): Likewise.
      	(v8sf): Likewise.
      	(v4df): Likewise.
      	(u32qi): Likewise.
      	(u16hi): Likewise.
      	(u8si): Likewise.
      	(u4di): Likewise.
      	(u8sf): Likewise.
      	(u4df): Likewise.
      
      	* lib/compat.exp (compat-get-options-main): Support dg-skip-if.
      
      From-SVN: r137611
      H.J. Lu committed
    • Daily bump. · 5510cef5
      From-SVN: r137608
      GCC Administrator committed
  2. 07 Jul, 2008 28 commits