1. 11 May, 2008 5 commits
  2. 10 May, 2008 17 commits
  3. 09 May, 2008 13 commits
    • re PR preprocessor/22231 (-MG ignores missing headers even with -c) · 4822e563
      gcc
      	PR preprocessor/22231:
      	* c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
      	proceeding.
      gcc/testsuite
      	PR preprocessor/22231:
      	* gcc.dg/pr22231.c: New file.
      
      From-SVN: r135128
      Tom Tromey committed
    • re PR tree-optimization/36187 (Partitioning problem with SFTs (again)) · cc7f489c
      2008-05-09  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/36187
      	* g++.dg/opt/pr36187.C: New testcase.
      
      From-SVN: r135126
      Richard Biener committed
    • re PR tree-optimization/36129 (ICE with -fprofile-use) · 53a8f709
              PR tree-optimization/36129
              * tree-ssa-cpp.c: Include value-prof.h.
              (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
              built-in function was folded to a constant.
              * Makefile.in (tree-ssa-cpp.c): Depend on value-prof.h
      
      From-SVN: r135123
      Uros Bizjak committed
    • tree-scalar-evolution.c: Document instantiate_scev. · 3f227a8c
      2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
      	    Sebastian Pop  <sebastian.pop@amd.com>
      
      	* tree-scalar-evolution.c: Document instantiate_scev.
      	(instantiate_parameters_1): Renamed instantiate_scev_1.
      	Don't use the same loop for instantiation_loop and evolution_loop.
      	(instantiate_scev): New.
      	(instantiate_parameters): Moved...
      	(resolve_mixers): Update call to instantiate_scev_1 to pass the
      	same loop twice.  Maintains the semantics for this function.
      	* tree-scalar-evolution.h (instantiate_scev): Declare.
      	(instantiate_parameters): ...here.  Now static inline.
      	* tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
      	instead of resolve_mixers.
      
      
      Co-Authored-By: Sebastian Pop <sebastian.pop@amd.com>
      
      From-SVN: r135116
      Jan Sjodin committed
    • * rtl-factoring.c (collect_pattern_seqs): Fix typo. · a3e19be6
      From-SVN: r135115
      Maxim Kuvyrkov committed
    • pa.c (reloc_needed): Use CASE_CONVERT. · 1043771b
              * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
      
              * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
      
              * tree-ssa-structalias.c (get_constraint_for): Likewise.
      
              * c-common.c (c_common_truthvalue_conversion): Likewise.
      
              * tree-object-size.c (compute_object_offset): Likewise.
      
              * tree-inline.c (estimate_num_insns_1): Likewise.
      
              * varasm.c (const_hash_1, compare_constant, copy_constant)
              (compute_reloc_for_constant, output_addressed_constants)
              (initializer_constant_valid_p): Likewise.
      
              * c-omp.c (check_omp_for_incr_expr): Likewise.
      
              * gimplify.c (gimplify_expr): Likewise.
      
              * c-typeck.c (c_finish_return): Likewise.
      
              * tree-vectorizer.c (supportable_widening_operation)
              (supportable_narrowing_operation): Likewise.
      
              * c-pretty-print.c (pp_c_cast_expression, pp_c_expression):
              Likewise.
      
              * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
      
              * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
      
              * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
              (descr_info_loc): Likewise.
      
              * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
      
              * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
              (fold_unary): Likewise.
      
              * builtins.c (get_pointer_alignment): Likewise.
      
              * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
              (instantiate_parameters_1): Likewise.
      
              * tree.c (expr_align, stabilize_reference): Likewise.
      
              * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
      
              * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
      
              * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
      
              * tree-ssa-threadedge.c (simplify_control_stmt_condition):
              Likewise.
      
              * config/alpha/alpha.c (va_list_skip_additions): Likewise.
      
              * c-common.c (c_alignof_expr, check_function_arguments_recurse):
              Likewise.
      
              * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
      
              * varasm.c (initializer_constant_valid_p, output_constant):
              Likewise.
      
              * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
              (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
              (forward_propagate_comparison)
              (tree_ssa_forward_propagate_single_use_vars): Likewise.
      
              * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
      
              * emit-rtl.c (component_ref_for_mem_expr)
              (set_mem_attributes_minus_bitpos): Likewise.
      
              * tree-ssa-phiopt.c (conditional_replacement): Likewise.
      
              * gimplify.c (gimplify_conversion, goa_lhs_expr_p,
              gimplify_expr): Likewise.
      
              * c-typeck.c (default_function_array_conversion,
              build_indirect_ref)
              (build_function_call, pointer_diff, build_compound_expr)
              (c_finish_return): Likewise.
      
              * tree-vect-analyze.c (vect_determine_vectorization_factor):
              Likewise.
      
              * matrix-reorg.c (get_inner_of_cast_expr,
              may_flatten_matrices_1): Likewise.
      
              * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
      
              * expr.c (is_aligning_offset): Likewise.
      
              * tree-ssa-alias.c (is_escape_site): Likewise.
      
              * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
              (check_all_va_list_escapes): Likewise.
      
              * tree-ssa-loop-ivopts.c (determine_base_object)
              (determine_common_wider_type): Likewise.
      
              * dojump.c (do_jump): Likewise.
      
              * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
      
              * tree-gimple.c (is_gimple_cast): Likewise.
      
              * fold-const.c (decode_field_reference, )
              (fold_sign_changed_comparison, fold_unary, fold_comparison)
              (fold_binary): Likewise.
      
              * tree-ssa-alias-warnings.c (find_alias_site_helper)
              (already_warned_in_frontend_p): Likewise.
      
              * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
      
              * tree.c (really_constant_p, get_unwidened): Likewise.
      
              * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
      
              * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
      
              * tree-vrp.c (register_edge_assert_for_2,
              register_edge_assert_for_1): Likewise.
      
              * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
              CONVERT_EXPR_P.
              (CONVERT_EXPR_P): Define.
              (CASE_CONVERT): Define.
      
      From-SVN: r135114
      Tomas Bily committed
    • re PR middle-end/36177 (g++.dg/opt/pr23714.C ICEs with 135041 -> 135057) · 5ba5ab9b
      2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
      
      	PR middle-end/36117
      	* dce.c (deletable_insn_p): Do not delete calls if 
      	df_in_progress.
      	(delete_unmarked_insns): When deleting a call, call 
      	delete_unreachable_blocks.
      	* rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
      	RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed
      	doc.
      
      From-SVN: r135113
      Kenneth Zadeck committed
    • Makefile.am (LTLDFLAGS): New. · 7afa92c5
          libgfortran/
          * Makefile.am (LTLDFLAGS): New.
          (libgfortran_la_LDFLAGS): Use above.
          * Makefile.in: Regenerate.
      
          libffi/
          * Makefile.am (LTLDFLAGS): New.
          (libffi_la_LDFLAGS): Use above.
          * Makefile.in: Regenerate.
      
          libobjc/
          * Makefile.in (LTLDFLAGS): New.
          (libobjc$(libsuffix).la, libobjc_gc$(libsuffix).la): Use above.
      
      From-SVN: r135112
      Julian Brown committed
    • invoke.texi (-fdump-tree-salias): Remove documentation. · 1353232d
      2008-05-08  Richard Guenther  <rguenther@suse.de>
      
      	* doc/invoke.texi (-fdump-tree-salias): Remove documentation.
      	(-ftree-salias): Likewise.
      	(salias-max-implicit-fields): Remove param documentation.
      	(salias-max-array-elements): Likewise.
      	* tree-pass.h (pass_create_structure_vars): Remove.
      	* params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
      	(SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
      	* tree-ssa-alias.c (create_structure_vars): Remove.
      	(gate_structure_vars): Likewise.
      	(pass_create_structure_vars): Likewise.
      	(gate_build_alias): Likewise.
      	(pass_build_alias): Adjust to run always and dump the function.
      	* common.opt (ftree-salias): Hide.
      	* passes.c (init_optimization_passes): Remove
      	pass_create_structure_vars, adjust comment.
      	* params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
      	(PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
      	* opts.c (decode_options): Do not set flag_tree_salias.
      	(common_handle_option): Add OPT_ftree_salias to the backward
      	compatibility section.
      
      	* gcc.dg/tree-ssa/20040911-1.c: Adjust.
      	* gcc.dg/tree-ssa/20040517-1.c: Likewise.
      	* gcc.dg/tree-ssa/pr26421.c: Likewise.
      	* gcc.dg/tree-ssa/pr23382.c: Likewise.
      	* gcc.dg/tree-ssa/alias-15.c: Likewise.
      	* gcc.dg/tree-ssa/inline_asm-1.c: Likewise.
      	* gcc.dg/tree-ssa/inline_asm-2.c: Likewise.
      	* gcc.dg/tree-ssa/pta-fp.c: Likewise.
      	* gcc.dg/tree-ssa/20031015-1.c: Likewise.
      	* gcc.dg/tree-ssa/alias-12.c: Likewise.
      
      From-SVN: r135111
      Richard Guenther committed
    • tree-flow-inline.h (var_can_have_subvars): Move ... · 31de5b77
      2008-05-08  Richard Guenther  <rguenther@suse.de>
      
      	* tree-flow-inline.h (var_can_have_subvars): Move ...
      	* tree-ssa-structalias.c (var_can_have_subvars): ... here.
      	* tree-flow.h (var_can_have_subvars): Remove.
      	(push_fields_onto_fieldstack): Remove.
      	(sort_fieldstack): Likewise.
      	(struct fieldoff): Move ...
      	* tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
      	alias_set and base_for_components fields.
      	(sort_fieldstack): Make static.
      	(push_fields_onto_fieldstack): Likewise.  Remove code that
      	handles anything but RECORD_TYPEs.  Remove alias_set and
      	base_for_components handling.
      	(create_variable_info_for): Adjust.
      
      From-SVN: r135110
      Richard Guenther committed
    • re PR fortran/36162 (Non-ASCII character in module string gives ICE) · 3ee6cb3f
              PR fortran/36162
      
              * module.c (quote_string, unquote_string,
              mio_allocated_wide_string): New functions.
              (mio_expr): Call mio_allocated_wide_string where needed.
      
      	* gfortran.dg/module_widestring_1.f90: New test.
      
      From-SVN: r135109
      Francois-Xavier Coudert committed
    • Formatting fix. · b70837af
      From-SVN: r135106
      Ben Elliston committed
    • Daily bump. · 78a3d80d
      From-SVN: r135101
      GCC Administrator committed
  4. 08 May, 2008 5 commits
    • common.opt (Wframe-larger-than=): Shorten the help message to one line. · c1a3620a
      2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
      	* common.opt (Wframe-larger-than=): Shorten the help message
      	to one line.
      	* doc/invoke.texi (Wframe-larger-than=): Add more description.
      
      From-SVN: r135097
      Seongbae Park committed
    • tree-complex.c (expand_complex_div_wide): Don't create CONDs that trap. · 04b03edb
      	* tree-complex.c (expand_complex_div_wide): Don't create CONDs that
      	trap.
      	* tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
      	trap and that both operands are gimple values.
      	(canonicalize_cond_expr_cond): Use is_gimple_condexpr.
      	* gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
      	is a fp operation.
      
      	* gcc/testsuite/gcc.dg/vect/vect-111.c: Rename to no-trapping-math-vect-111.c
      	* gcc/testsuite/gcc.dg/vect/vect-ifcvt-11.c: Rename to no-trapping-math-vect-ifcvt-11.c
      	* gcc/testsuite/gcc.dg/vect/vect-ifcvt-12.c: Rename to no-trapping-math-vect-ifcvt-12.c
      	* gcc/testsuite/gcc.dg/vect/vect-ifcvt-13.c: Rename to no-trapping-math-vect-ifcvt-13.c
      	* gcc/testsuite/gcc.dg/vect/vect-ifcvt-14.c: Rename to no-trapping-math-vect-ifcvt-14.c
      	* gcc/testsuite/gcc.dg/vect/vect-ifcvt-15.c: Rename to no-trapping-math-vect-ifcvt-15.c
      
      From-SVN: r135093
      Rafael Avila de Espindola committed
    • read-rtl.c (join_c_conditions): Return the first string if the two strings are equal. · 96c92f47
      gcc/
      	* read-rtl.c (join_c_conditions): Return the first string if the
      	two strings are equal.
      
      From-SVN: r135091
      Richard Sandiford committed
    • gensupport.h (pred_data): Add a "num_codes" field. · e663da80
      gcc/
      	* gensupport.h (pred_data): Add a "num_codes" field.
      	(add_predicate_code): Declare.
      	* gensupport.c (add_predicate_code): New function.
      	(std_pred_table): Add an "allows_const_p" field.
      	(std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
      	Remove the (incomplete) list of such codes from the codes field.
      	(init_predicate_table): Use add_predicate_code.  Add all
      	RTX_CONST_OBJs if allows_const_p is true.
      	* genrecog.c (process_define_predicate): Use add_predicate_code.
      
      From-SVN: r135090
      Richard Sandiford committed
    • target-supports.exp (check_effective_target_sync_int_long): Add mips*-*-*. · 977502ff
      2008-05-08  David Daney  <ddaney@avtrex.com>
      
      	* lib/target-supports.exp (check_effective_target_sync_int_long): Add
      	mips*-*-*.
      	(check_effective_target_sync_char_short): Same.
      
      
      2008-05-08  David Daney  <ddaney@avtrex.com>
      	    Richard Sandiford  <rsandifo@nildram.co.uk>
      	
      	* config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
      	special case of constant zero operands.
      	* config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
      	old and	new values.  Special case constant zero values.
      	* config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
      	fails.
      	(MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
      	(MIPS_COMPARE_AND_SWAP_12_0): New macro.
      
      
      Co-Authored-By: Richard Sandiford <rsandifo@nildram.co.uk>
      
      From-SVN: r135088
      David Daney committed