1. 30 Jun, 2007 18 commits
    • re PR target/32433 (Code for __builtin_ffs does not benefit from compiler optimizations) · 08024fb5
              PR target/32433
              * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
              (ffs_cmove): New expander to expand using ctz pattern.
              (*ffs_cmove): Remove pattern.
              (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
              (ffsdi2): Expand using ctz pattern.
              (*ffs_rex64): Remove pattern.
      
      From-SVN: r126154
      Uros Bizjak committed
    • re PR fortran/20373 (INTRINSIC symbols can be given the wrong type) · eb2c598d
      gcc/fortran:
      2007-06-30  Daniel Franke  <franke.daniel@gmail.com>
      
      	PR fortran/20373
      	* intrinsic.c (add_functions): Additional function types.
      	(gfc_convert_type_warn): Remove intrinsic-flag from conversion
      	functions.
      	* resolve.c (resolve_symbol): Added type checks to explicitly defined
      	intrinsics.
      
      gcc/testsuite:
      2007-06-28  Daniel Franke  <franke.daniel@gmail.com>
      
      	PR fortran/20373
      	* gfortran.dg/intrinsic.f90: New test.
      
      From-SVN: r126153
      Daniel Franke committed
    • re PR fortran/32555 (Miscompilation of NIST testsuite) · df5be068
      2007-06-30  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/32555
      	* io.c (check_format): Allow zero to precede the
      	P edit descriptor.
      
      2007-06-30  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/32555
      	* gfortran.dg/fmt_zero_check.f90: New.
      
      From-SVN: r126152
      Tobias Burnus committed
    • Fix last ChangeLog entry. · b2e83266
      From-SVN: r126151
      John David Anglin committed
    • pa.md (return): Delete pattern. · 62a53968
      	rtl-optimization/32296
      	* pa.md (return): Delete pattern.
      	(return_internal): Remove "(const_int 1)" from pattern.
      	(epilogue): Use return_internal pattern for trivial returns.
      	* pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
      	* pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
      
      From-SVN: r126150
      John David Anglin committed
    • Fix PR tree-optimization/32540 Fix PR tree-optimization/31651 · 89fb70a3
      2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
      	
      	Fix PR tree-optimization/32540
      	Fix PR tree-optimization/31651
      
      	* tree-ssa-sccvn.c: New file.
      
      	* tree-ssa-sccvn.h: Ditto.
      	
      	* tree-vn.c: Include tree-ssa-sccvn.h
      	(val_expr_paid_d): Removed.
      	(value_table): Ditto.
      	(vn_compute): Ditto.
      	(val_expr_pair_hash): Ditto.
      	(val_expr_pair_expr_eq): Ditto.
      	(copy_vuses_from_stmt): Ditto.
      	(vn_delete): Ditto.
      	(vn_init): Ditto.
      	(shared_vuses_from_stmt): Ditto.
      	(print_creation_to_file): Moved up.
      	(sort_vuses): Ditto.
      	(sort_vuses_heap): Ditto.
      	(set_value_handle): Make non-static.
      	(make_value_handle): Ditto.
      	(vn_add): Rewritten to use sccvn lookups.
      	(vn_add_with_vuses): Ditto.
      	(vn_lookup): Ditto (and second argument removed).
      	(vn_lookup_with_vuses): Ditto.
      	(vn_lookup_or_add): Ditto (and second argument removed);
      	(vn_lookup_or_add_with_vuses): Ditto.
      	(vn_lookup_with_stmt): New.
      	(vn_lookup_or_add_with_stmt): Ditto.
      	(create_value_handle_for_expr): Ditto.
      
      	* tree-ssa-pre.c: Include tree-ssa-sccvn.h.
      	(seen_during_translate): New function.
      	(phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
      	(phi_trans_add): Ditto.
      	(constant_expr_p): FIELD_DECL is always constant.
      	(phi_translate_1): Renamed from phi_translate, add seen bitmap.
      	Use constant_expr_p.
      	Avoid infinite recursion on mutually valued expressions.
      	Change callers of vn_lookup_or_add.
      	(phi_translate): New function.
      	(compute_antic_safe): Allow phi nodes.
      	(create_component_ref_by_pieces): Update for FIELD_DECL change.
      	(find_or_generate_expression): Rewrite slightly.
      	(create_expression_by_pieces): Updated for vn_lookup_or_add
      	change.
      	Update VN_INFO for new names.
      	(insert_into_preds_of_block): Update for new names.
      	(add_to_exp_gen): New function.
      	(add_to_sets): Use vn_lookup_or_add_with_stmt.
      	(find_existing_value_expr): Rewrite to changed vn_lookup.
      	(create_value_expr_from): Ditto, and use add_to_exp_gen.
      	(try_look_through_load): Removed.
      	(try_combine_conversion): Ditto.
      	(get_sccvn_value): New function.
      	(make_values_for_phi): Ditto.
      	(make_values_for_stmt): Ditto.
      	(compute_avail): Rewritten for vn_lookup_or_add changes and to use
      	SCCVN.
      	(init_pre): Update for SCCVN changes.
      	(fini_pre): Ditto.
      	(execute_pre): Ditto.
      
      	* tree-flow.h (make_value_handle): Declare.
      	(set_value_handle): Ditto.
      	(sort_vuses_heap): Ditto.
      	(vn_lookup_or_add_with_stmt): Ditto.
      	(vn_lookup_with_stmt): Ditto.
      	(vn_compute): Remove.
      	(vn_init): Ditto.
      	(vn_delete): Ditto.
      	(vn_lookup): Update arguments.
      
      	* Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
      	(tree-vn.o): Ditto.
      	(tree-ssa-sccvn.o): New.
      	(OBJS-common): Add tree-ssa-sccvn.o
      
      From-SVN: r126149
      Daniel Berlin committed
    • re PR fortran/32472 (ICE in trans-const.c:106 for REPEAT initialization… · 11147af3
      re PR fortran/32472 (ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter)
      
      2007-06-30  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/32472
      	* simplify.c (gfc_simplify_repeat): Add handling of character
      	literal for first argument.
      
      2007-06-30  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30284
      	* gfortran.dg/repeat_f90: New test.
      
      From-SVN: r126148
      Paul Thomas committed
    • re PR fortran/32472 (ICE in trans-const.c:106 for REPEAT initialization… · 64f4bedf
      re PR fortran/32472 (ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter)
      
      2007-06-30  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/32472
      	* simplify.c (gfc_simplify_repeat): Add handling of character
      	literal for first argument.
      
      2007-06-30  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30284
      	* gfortran.dg/repeat_f90: New test.
      
      From-SVN: r126147
      Paul Thomas committed
    • re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings) · 1760a1a8
      2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR testsuite/25241
      testsuite/
      	* gcc.dg/cpp/20000625-1.c: Without dg-options the default is
      	-pedantic-errors, so we should match errors.
      	* gcc.dg/cpp/escape-1.c: Likewise.
      	* gcc.dg/cpp/charconst.c: Empty character constants are errors.
      	* gcc.dg/cpp/direct2.c: This is a mandatory error instead of a
      	warning.
      	* gcc.dg/cpp/endif-pedantic2.c: Use -pedantic-errors to obtain
      	errors instead of warnings.
      	* gcc.dg/cpp/extratokens.c: Use dg-warning instead of dg-error for
      	a pedantic warning.
      	* gcc.dg/cpp/arith-3.c: Likewise.
      
      From-SVN: r126146
      Manuel López-Ibáñez committed
    • re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings) · 72eb00bc
      2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR testsuite/25241
      testsuite/
      	* gcc.dg/pch/valid-1.c: Match each diagnostic with its own directive.
      	* gcc.dg/pch/valid-2.c: Likewise.
      	* gcc.dg/pch/valid-3.c: Likewise.
      	* gcc.dg/pch/warn-1.c: Likewise.
      	* gcc.dg/pch/valid-4.c: Match a warning instead of an error.
      
      From-SVN: r126145
      Manuel López-Ibáñez committed
    • re PR c/4076 (-Wunused doesn't warn about static function only called by itself.) · ad960f56
      2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR c/4076
      	* c-typeck.c (build_external_ref): Don't mark as used if called
      	from itself.
      	* calls.c (rtx_for_function_call): Likewise.
      
      testsuite/
      	* gcc.dg/Wunused-function.c: New.
      
      From-SVN: r126144
      Manuel López-Ibáñez committed
    • revert: dce.c (deletable_insn_p_1): New function, split out from... · a4fbe84b
      gcc/
      	Revert:
      
      	2007-06-27  Richard Sandiford  <richard@codesourcery.com>
      
      	* dce.c (deletable_insn_p_1): New function, split out from...
      	(deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
      	specially, not those inside PARALLELs.  Remove BODY argument
      	and adjust recursive call accordingly.
      	(prescan_insns_for_dce): Update call to delete_insn_p.
      
      From-SVN: r126143
      Richard Sandiford committed
    • combine.c (combine_validate_cost): New parameter NEWOTHERPAT. · 9d35384d
      	* combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
      	(try_combine): Move potential calls to undo_all() so they happen
      	before we commit to using the combined insns.
      
      From-SVN: r126142
      Rask Ingemann Lambertsen committed
    • loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit code. · 2ed22578
      	* loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit    
      	code.
      
      From-SVN: r126141
      Jan Hubicka committed
    • ipa.c (cgraph_postorder): Cast according to the coding conventions. · c5274326
      	* ipa.c (cgraph_postorder): Cast according to the coding conventions.
      	(cgraph_remove_unreachable_nodes): Likewise.
      	* ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
      	* ipa-inline.c (update_caller_keys): Cast according to the coding
      	conventions.
      	(cgraph_decide_recursive_inlining): Likewise.
      	(cgraph_decide_inlining_of_small_function): Likewise.
      	(try_inline): Likewise.
      	(cgraph_decide_inlining_incrementally): Likewise.
      	* ipa-pure-const.c (get_function_state): Likewise.
      	(scan_function): Likewise.
      	(analyze_function): Likewise.
       	(static_execute): Likewise.
      	* gcc/ipa-reference.c (scan_for_static_refs): Likewise.
      	(merge_callee_local_info): Likewise.
      	(analyze_function): Use type safe memory macros.
      	(static_execute): Likewise. Cast according to the coding conventions.
      	* ipa-type-escape.c (scan_for_regs): Cast according to the coding
      	conventions.
      	* ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
      	names.
      	(ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
      	* ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
      	variable names.
      
      From-SVN: r126140
      Thomas Neumann committed
    • Add forgotten PR number to the last changelog entry: · 23512eb3
      2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR middle-end/30024
              * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
              for complex modes (both int and real).
      
      From-SVN: r126137
      Andrew Pinski committed
    • emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0] for complex modes (both int and real). · e90721b1
      2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
              for complex modes (both int and real).
      
      From-SVN: r126136
      Andrew Pinski committed
    • Daily bump. · eb51830f
      From-SVN: r126134
      GCC Administrator committed
  2. 29 Jun, 2007 21 commits
  3. 28 Jun, 2007 1 commit