1. 22 Dec, 2006 10 commits
  2. 21 Dec, 2006 16 commits
  3. 20 Dec, 2006 14 commits
    • tree-dfa.c (add_referenced_var): Walk initializers of non-constant/readonly static vars. · 33dde1e1
      	* tree-dfa.c (add_referenced_var): Walk initializers of
      	non-constant/readonly static vars.
      
      From-SVN: r120090
      Jan Hubicka committed
    • tree-flow-inline.h (gimple_var_anns): New function. · adb6509f
      	* tree-flow-inline.h (gimple_var_anns): New function.
      	(var_ann): Use hashtable for static functions.
      	* tree-dfa.c (create_var_ann): Likewise.
      	* tree-ssa.c (var_ann_eq, var_ann_hash): New functions.
      	(init_tree_ssa): Initialize var anns.
      	(delete_tree_ssa): Delete var anns; also clear out gimple_df.
      	* tree-flow.h (struct static_var_ann_d): New structure.
      	(gimple_df): Add var_anns.
      
      From-SVN: r120089
      Jan Hubicka committed
    • re PR c/30242 (internal error in gcc break compilation) · 0fd212e1
      gcc/
      
      2006-12-20  Carlos O'Donell  <carlos@codesourcery.com>
      
      	PR bootstrap/30242
      	* gcc/c-incpath.c (add_standard_paths): Only relocate paths that 
      	begin with the configured prefix.
      
      From-SVN: r120088
      Carlos O'Donell committed
    • asm-b.c: Check for __ppc64__. · 2502ff19
      2006-12-20  Bill Wendling  <wendling@apple.com>
      
      	* gcc.dg/asm-b.c: Check for __ppc64__.
      
      From-SVN: r120085
      Bill Wendling committed
    • re PR fortran/30190 ([4.1 only] Bounds check generates wrong code for… · 6a14cf13
      re PR fortran/30190 ([4.1 only] Bounds check generates wrong code for associated(p1(i)%p2,p1(i)%p2))
      
      2006-12-20  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30190
      	* trans-array.c (gfc_conv_array_ref): Remove gfc_evaluate_now
      	from the -fbounds-check branch.
      
      2006-12-20  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30190
      	* gfortran.dg/bounds_check_5.f90: New test.
      
      From-SVN: r120084
      Paul Thomas committed
    • re PR rtl-optimization/30213 (Wrong code with optimized memset() (possible bug… · 2a4f771a
      re PR rtl-optimization/30213 (Wrong code with optimized memset() (possible bug in RTL bbro optimizer))
      
      	PR target/30213
      	* i386.c (expand_setmem_epilogue): Fix formating.
      	(dsmalest_pow2_greater_than): New function.
      	(ix86_expand_movmem): Improve comments; avoid re-computing of
      	epilogue size.
      	(promote_duplicated_reg_to_size): Break out from ...
      	(expand_setmem): ... this one; reorganize promotion code;
      	improve comments; avoid recomputation of epilogue size.
      
      From-SVN: r120083
      Jan Hubicka committed
    • re PR middle-end/30143 ([4.2 only] OpenMP can produce invalid gimple) · 75a4c3c1
      2006-12-20  Andrew Pinski  <pinskia@gmail.com>
      
              PR middle-end/30143
              * omp-low.c (init_tmp_var): New function.
              (save_tmp_var): New function.
              (lower_omp_1): Use them for VAR_DECL.
      
      2006-12-20  Andrew Pinski  <pinskia@gmail.com>
      
              PR middle-end/30143
              * gcc.dg/gomp/complex-1.c: New testcase.
      
      From-SVN: r120080
      Andrew Pinski committed
    • tree-gimple.c (is_gimple_min_invariant): Treat constant vector CONSTRUCTORs as min invariants. · 1863bbca
      2006-12-20  Andrew Pinski  <pinskia@gmail.com>
      
              * tree-gimple.c (is_gimple_min_invariant): Treat constant vector
              CONSTRUCTORs as min invariants.
      
      From-SVN: r120079
      Andrew Pinski committed
    • trans-expr.c (is_zero_initializer_p): Determine whether a given constant… · 6822a10d
      trans-expr.c (is_zero_initializer_p): Determine whether a given constant expression is a zero initializer.
      
      
      	* trans-expr.c (is_zero_initializer_p): Determine whether a given
      	constant expression is a zero initializer.
      	(gfc_trans_zero_assign): New function to attempt to optimize
      	"a(:) = 0.0" as a call to __builtin_memset (a, 0, sizeof(a));
      	(gfc_trans_assignment): Special case array assignments to a
      	zero initializer constant, using gfc_trans_zero_assign.
      
      	* gfortran.dg/array_memset_1.f90: New test case.
      
      From-SVN: r120078
      Roger Sayle committed
    • rtlanal.c (struct subreg_info, [...]): New. · f1f4e530
      	* rtlanal.c (struct subreg_info, subreg_get_info, subreg_nregs):
      	New.
      	(subreg_regno_offset, subreg_offset_representable_p): Change to
      	wrappers about subreg_get_info.
      	(refers_to_regno_p, reg_overlap_mentioned_p): Use subreg_nregs.
      	* rtl.h (subreg_nregs): Declare.
      	* doc/tm.texi (HARD_REGNO_NREGS_HAS_PADDING): Update to refer to
      	subreg_get_info.
      	* caller-save.c (mark_set_regs, add_stored_regs): Use
      	subreg_nregs.
      	* df-scan.c (df_ref_record): Use subreg_nregs.
      	* flow.c (mark_set_1): Use subreg_nregs.
      	* postreload.c (move2add_note_store): Use subreg_nregs.
      	* reload.c (decompose, refers_to_regno_for_reload_p,
      	reg_overlap_mentioned_for_reload_p): Use subreg_nregs.
      	* resource.c (update_live_status, mark_referenced_resources,
      	mark_set_resources): Use subreg_nregs.
      
      From-SVN: r120076
      Joseph Myers committed
    • loop-unswitch.c (unswitch_loop): Update arguments of duplicate_loop_to_header_edge call. · ee8c1b05
      	* loop-unswitch.c (unswitch_loop): Update arguments of
      	duplicate_loop_to_header_edge call.
      	* tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Ditto.
      	* loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
      	unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
      	Ditto.
      	* cfgloopmanip.c (loop_version): Ditto.
      	(duplicate_loop_to_header_edge): Change
      	type of to_remove to VEC(edge), remove n_to_remove argument.
      	* tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
      	Change type of to_remove to VEC(edge), remove n_to_remove argument.
      	(tree_unroll_loop): Update arguments of
      	tree_duplicate_loop_to_header_edge call.
      	* cfghooks.c (cfg_hook_duplicate_loop_to_header_edge):
      	Change type of to_remove to VEC(edge), remove n_to_remove argument.
      	* cfghooks.h (struct cfg_hooks): Type of
      	cfg_hook_duplicate_loop_to_header_edge changed.
      	(cfg_hook_duplicate_loop_to_header_edge): Declaration changed.
      	* cfgloop.h (duplicate_loop_to_header_edge): Ditto.
      	* tree-flow.h (tree_duplicate_loop_to_header_edge): Ditto.
      
      From-SVN: r120074
      Zdenek Dvorak committed
    • spu.md (vec_widen_umult_hi_v8hi): New. · c882a2c2
              * config/spu/spu.md (vec_widen_umult_hi_v8hi): New.
              (vec_widen_umult_lo_v8hi, vec_widen_smult_hi_v8hi): New.
              (vec_widen_smult_lo_v8hi): New.
              * config/spu/spu.c (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Defined.
              (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Defined.
              (spu_builtin_mul_widen_even, spu_builtin_mul_widen_odd): New.
      
      From-SVN: r120073
      Dorit Nuzman committed
    • re PR fortran/29992 ([4.1 only] INTERFACE equivalent to MODULE PROCEDURE?!) · 71f77fd7
      2006-12-20  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/29992
      	* interface.c (check_sym_interfaces): Module procedures in a
      	generic must be use associated or contained in the module.
      	* decl.c (gfc_match_modproc): Set attribute mod_proc.
      	* gfortran.h (symbol_attribute): Add mod_proc atribute.
      
      	PR fortran/30081
      	* resolve.c (resolve_generic_f, resolve_generic_s): Use
      	gfc_intrinsic_name to find out if the function is intrinsic
      	because it does not have to be a generic intrinsic to be
      	overloaded.
      
      2006-12-20  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/29992
      	* gfortran.dg/generic_9.f90: New test.
      
      	PR fortran/30081
      	* gfortran.dg/generic_10.f90: New test.
      
      From-SVN: r120072
      Paul Thomas committed
    • cgraph.c: Update overall comment; fix vertical spacing. · 0550e7b7
      	* cgraph.c: Update overall comment; fix vertical spacing.
      	* ipa-inline.c (cgraph_decide_inlining): Remove now redundant check.
      
      From-SVN: r120071
      Jan Hubicka committed