+2008-08-28 Nick Clifton <nickc@redhat.com>
+
+ * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
+
+2008-08-28 Paul Brook <paul@codesourcery.com>
+
+ * config/arm/vfp11.md: Update license notice.
+ * config/arm/cortex-r4.md: Ditto.
+
+2008-08-28 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/37207
+ * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
+ tuplification bug.
+
+2008-08-28 Dodji Seketeli <dodji@redhat.com>
+
+ PR c++/36741
+ * tree.c (int_fits_type_p): Don't forget unsigned integers
+ of type sizetype which higher end word equals -1.
+
+2008-08-28 Ira Rosen <irar@il.ibm.com>
+
+ * target.h (struct vectorize): Add new target builtin.
+ * tree-vectorizer.c (destroy_loop_vec_info): Call
+ vect_free_slp_instance instead of vect_free_slp_node.
+ * tree-vectorizer.h (enum slp_load_perm_type): New.
+ (struct _slp_instance): Add new fields.
+ (SLP_INSTANCE_LOAD_PERMUTATION): New.
+ (SLP_INSTANCE_LOADS): New.
+ (vect_free_slp_tree): Remove.
+ (vect_free_slp_instance): Declare.
+ (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
+ (vectorizable_load): Add argument.
+ (vect_transform_slp_perm_load): New.
+ * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
+ vectorizable_load.
+ (vect_get_place_in_interleaving_chain): New function.
+ (vect_free_slp_tree): Make static.
+ (vect_free_slp_instance): New function.
+ (vect_build_slp_tree): Add new arguments. Allow load permutations and
+ collect the load location in the interleaving chain.
+ (vect_supported_slp_permutation_p): New function.
+ (vect_supported_load_permutation_p): Likewise.
+ (vect_analyze_slp_instance): In case of loads permutation, call
+ vect_supported_load_permutation_p to check that the permutation is
+ supported.
+ * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
+ * tree-vect-transform.c (vect_transform_stmt): Add new argument.
+ (vect_create_mask_and_perm): New function.
+ (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
+ (vectorizable_load): Add an argument. Don't keep the created vectors
+ statements in the node if permutation is required. Call
+ vect_transform_slp_perm_load to generate the permutation.
+ (vect_transform_stmt): Add new argument. Call vectorizable_load with
+ additional argument.
+ (vect_schedule_slp_instance): In case of loads permutation, allocate
+ vectorized statements structure for all the related SLP nodes. Call
+ vect_transform_stmt with addditional argument.
+ (vect_transform_loop): Call vect_transform_stmt with correct arguments.
+ * config/spu/spu.c (spu_builtin_vec_perm): New.
+ (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
+ * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
+ * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
+ (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
+
+2008-08-28 Chris Fairles <chris.fairles@gmail.com>
+
+ * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
+ __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
+ __gthread_cond_signal, __gthread_cond_timedwait,
+ __gthread_cond_timedwait_recursive): New functions.
+ * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
+ Likewise.
+ * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
+ thread interfaces.
+
+2008-08-28 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/37005
+ * fold-const.c (maybe_canonicalize_comparison_1): Require
+ undefined overflow only for canonicalizing A +- CST cmp CST.
+ Make sure to not generate new constants that are not inside
+ their TYPE_MIN/MAX_VALUE range.
+ (maybe_canonicalize_comparison): Remove undefined overflow
+ checking from here.
+ (fold_binary): Remove now duplicate folding.
+
+2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
+ use not updated in the last change.
+
+2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
+ (IRA_COVER_CLASSES): Add FPUL_REGS.
+
+2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR 37217
+ * c-common.c (conversion_warning): Check for null operands.
+
+2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR c/31673
+ * c-decl.c (check_for_loop_decls): Improve error message. Give
+ hint.
+
+2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR c/37186
+ * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
+ (convert_for_assignment): Pass corrent OPT_W* parameter to
+ WARN_FOR_ASSIGNMENT.
+
+2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/35321
+ * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
+
+2008-08-27 Paul Brook <paul@codesourcery.com>
+
+ * config.gcc: Loosen checks for arm uclinux eabi targets.
+
+2008-08-27 Paul Brook <paul@codesourcery.com>
+
+ * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
+ _clzsi2.
+ * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
+
+2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
+
+ * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
+ the enumerators of an ENUMERAL_TYPE.
+ * dbxout.c (dbxout_type): Ditto.
+
+2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
+ PR rtl-opt/37219
+ * fwprop.c (fwprop): Check that the loop_father is the outer loop.
+ (fwprop_addr): Check that the loop_father is not the outer loop.
+
+2008-08-26 Paul Brook <paul@codesourcery.com>
+
+ * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
+ Remove documentation entry for fmul type.
+ Use fmuls to annotate single-precision multiplication patterns,
+ fmuld to annotate double-precision multiplication patterns,
+ fmacs to annotate single-precision multiply-accumulate patterns
+ and fmacd to annotate double-precision multiply-accumulate patterns.
+ * config/arm/vfp11.md: Update reservations accordingly.
+ * config/arm/arm.md: Note that certain values of the "type"
+ attribute are documented in vfp.md.
+ * config/arm/arm1020e.md: Remove out of date duplicate comment.
+ (v10_cvt): Use new fmul types.
+
+2008-08-26 Paul Brook <paul@codesourcery.com>
+
+ * config/arm/vfp.md: Move pipeline description for VFP11 to...
+ * config/arm/vfp11.md: ...here. New.
+ * config/arm/arm.md: Include vfp11.md.
+
+2008-08-26 Hans-Peter Nilsson <hp@axis.com>
+
+ * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
+ parameter to inform call.
+
+2008-08-26 Jeff Law <law@redhat.com>
+
+ * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
+ avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
+ preferred class when copying a constant into a partial word register.
+
+2008-08-26 Ben Elliston <bje@au.ibm.com>
+
+ * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
+ * cp/typeck.c: Likewise.
+ * cp/tree.c: Likewise.
+ * gimple-low.c: Likewise.
+ * jump.c: Likewise.
+
+2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
+
+ * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
+ ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
+
+ * doc/passes.texi: Describe IRA.
+
+ * doc/tm.texi (IRA_COVER_CLASSES,
+ IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
+
+ * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
+ (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
+ -fira-propagate-cost, -fno-ira-share-save-slots,
+ -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
+
+ * flags.h (ira_algorithm): New enumeration.
+ (flag_ira_algorithm, flag_ira_verbose): New external variable
+ declarations.
+
+ * postreload.c (gate_handle_postreload): Don't do post reload
+ optimizations unless the reload is completed.
+
+ * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
+ IRA.
+
+ * tree-pass.h (pass_ira): New external variable declaration.
+
+ * reload.h: Add 2008 to the Copyright.
+
+ * cfgloopanal.c: Include params.h.
+ (estimate_reg_pressure_cost): Decrease cost for IRA optimization
+ mode.
+
+ * params.h (IRA_MAX_LOOPS_NUM): New macro.
+
+ * toplev.c (ira.h): New include.
+ (flag_ira_algorithm, flag_ira_verbose): New external variables.
+ (backend_init_target): Call ira_init.
+ (backend_init): Call ira_init_once.
+ (finalize): Call finish_ira_once.
+
+ * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
+ flag_ira_share_save_slots, flag_ira_share_spill_slots): New
+ external variables.
+
+ * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
+ may_move_out_cost): New external variable declarations.
+ (move_table): New typedef.
+
+ * caller-save.c: Include headers output.h and ira.h.
+ (no_caller_save_reg_set): New global variable.
+ (save_slots_num, save_slots): New variables.
+ (reg_save_code, reg_restore_code, add_stored_regs): Add
+ prototypes.
+ (init_caller_save): Set up no_caller_save_reg_set.
+ (init_save_areas): Reset save_slots_num.
+ (saved_hard_reg): New structure.
+ (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
+ (initiate_saved_hard_regs, new_saved_hard_reg,
+ finish_saved_hard_regs, saved_hard_reg_compare_func): New
+ functions.
+ (setup_save_areas): Add code for sharing stack slots.
+ (all_blocks): New variable.
+ (save_call_clobbered_regs): Process pseudo-register too.
+ (mark_set_regs): Process pseudo-register too.
+ (insert_one_insn): Put the insn after bb note in a empty basic
+ block. Add insn check.
+
+ * global.c (eliminable_regset): Make it external.
+ (mark_elimination): Use DF_LR_IN for IRA.
+ (pseudo_for_reload_consideration_p): New.
+ (build_insn_chain): Make it external. Don't ignore spilled
+ pseudos for IRA. Use pseudo_for_reload_consideration_p.
+ (gate_handle_global_alloc): New function.
+ (pass_global_alloc): Add the gate function.
+
+ * opts.c (decode_options): Set up flag_ira. Print the warning for
+ -fira.
+ (common_handle_option): Process -fira-algorithm and -fira-verbose.
+
+ * timevar.def (TV_IRA, TV_RELOAD): New passes.
+
+ * regmove.c (regmove_optimize): Don't do replacement of output for
+ IRA.
+
+ * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
+ New external variable declarations.
+
+ * local-alloc.c (update_equiv_regs): Make it external. Return
+ true if jump label rebuilding should be done. Rescan new_insn for
+ notes.
+ (gate_handle_local_alloc): New function.
+ (pass_local_alloc): Add the gate function.
+
+ * alias.c (value_addr_p, stack_addr_p): New functions.
+ (nonoverlapping_memrefs_p): Use them for IRA.
+
+ * common.opt (fira, fira-algorithm, fira-coalesce,
+ fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
+ fira-verbose): New options.
+
+ * regclass.c (reg_class_subclasses, contains_reg_of_mode,
+ move_cost, may_move_in_cost, may_move_out_cost): Make the
+ variables external.
+ (move_table): Remove typedef.
+ (init_move_cost): Make it external.
+ (allocate_reg_info, resize_reg_info, setup_reg_classes): New
+ functions.
+
+ * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
+ setup_reg_classes): New function prototypes.
+ (eliminable_regset): New external variable declaration.
+ (build_insn_chain, update_equiv_regs): New function prototypes.
+
+ * Makefile.in (IRA_INT_H): New definition.
+ (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
+ ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
+ (reload1.o, toplev.o): Add dependence on ira.h.
+ (cfgloopanal.o): Add PARAMS_H.
+ (caller-save.o): Add dependence on output.h and ira.h.
+ (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
+ ira-emit.o, ira-lives.o): New entries.
+
+ * passes.c (pass_ira): New pass.
+
+ * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
+
+ * reload1.c (ira.h): Include the header.
+ (changed_allocation_pseudos): New bitmap.
+ (init_reload): Initiate the bitmap.
+ (compute_use_by_pseudos): Permits spilled registers in FROM.
+ (temp_pseudo_reg_arr): New variable.
+ (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
+ IRA. Call alter_reg with the additional parameter. Don't clear
+ spilled_pseudos for IRA. Restore original insn chain for IRA.
+ Clear changed_allocation_pseudos at the end of reload.
+ (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
+ (hard_regno_to_pseudo_regno): New variable.
+ (count_pseudo): Check spilled pseudos. Set up
+ hard_regno_to_pseudo_regno.
+ (count_spilled_pseudo): Check spilled pseudos. Update
+ hard_regno_to_pseudo_regno.
+ (find_reg): Use better_spill_reload_regno_p. Check
+ hard_regno_to_pseudo_regno.
+ (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
+ code for IRA.
+ (eliminate_regs_1): Use additional parameter for alter_reg.
+ (finish_spills): Set up pseudo_previous_regs only for spilled
+ pseudos. Call reassign_pseudos once for all spilled pseudos, pass
+ more arguments. Don't clear live_throughout and dead_or_set for
+ spilled pseudos. Use additional parameter for alter_reg. Call
+ mark_allocation_change. Set up changed_allocation_pseudos.
+ Remove sanity check.
+ (emit_input_reload_insns, delete_output_reload): Use additional
+ parameter for alter_reg. Call mark_allocation_change.
+ (substitute, gen_reload_chain_without_interm_reg_p): New
+ functions.
+ (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
+
+ * testsuite/gcc.dg/20080410-1.c: New file.
+
+ * config/s390/s390.h (IRA_COVER_CLASSES,
+ IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
+
+ * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
+
+ * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
+
+ * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
+
+ * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
+
+ * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
+
+ * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
+
+ 2008-08-24 Jeff Law <law@redhat.com>
+ * ira.c (setup_reg_class_intersect_union): Prefer smallest class
+ when ignoring unavailable registers.
+
+ 2008-08-24 Jeff Law <law@redhat.com>
+ * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
+ FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
+ * ira.c (setup_eliminable_regset): Check stack_realign_needed.
+ * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
+
+ 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
+ * ira-build.c (allocno_range_compare_func): Stabilize sort.
+
+ 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
+ * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
+ * reload1.c (find_reg): Process registers in register allocation order.
+
+ 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
+ * toplev.c (backend_init_target): Move ira_init call from
+ here...
+ (lang_dependent_init_target): ...to here.
+
+ 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
+ * ira.c (setup_class_subset_and_memory_move_costs): Don't
+ calculate memory move costs for NO_REGS.
+
+ 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
+ * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
+ STACK_REGS is defined.
+
+ 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
+ * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
+
+ 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
+ * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
+
+ 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
+ * config/sh/sh.h (IRA_COVER_CLASSES): Define.
+ * config/sh/sh.md (movsicc_true+3): Check if emit returns a
+ barrier.
+
+2008-08-26 Victor Kaplansky <victork@il.ibm.com>
+ Dorit Nuzman <dorit@il.ibm.com>
+
+ * gcc/config/spu/spu.md (vec_extract_evenv4si,
+ vec_extract_evenv4sf, vec_extract_evenv8hi,
+ vec_extract_evenv16qi, vec_extract_oddv4si,
+ vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
+ vec_interleave_highv4sf, vec_interleave_lowv4sf,
+ vec_interleave_highv4si, vec_interleave_lowv4si,
+ vec_interleave_highv8hi, vec_interleave_lowv8hi,
+ vec_interleave_highv16qi, vec_interleave_lowv16qi,
+ vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
+
+2008-08-25 Janis Johnson <janis187@us.ibm.com>
+
+ PR target/36756
+ * config/rs6000/rs6000.c (optimization_options): Don't default to
+ section anchors without toplevel reorder.
+
+2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
+ (mfc_end_critical_section): Likewise.
+
+2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
+ all type qualifiers from element type to vector type.
+
+2008-08-25 David Daney <ddaney@avtrex.com>
+
+ * config/mips/mips.md (immediate_insn): Move up in file, fix
+ comment typo, reformat.
+ (fetchop_bit, atomic_hiqi_op memory_barrier,
+ sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
+ sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
+ sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
+ sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
+ sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
+ sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
+ sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
+ sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
+ sync_old_nand<mode>, sync_new_nand<mode>,
+ sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
+ test_and_set_12): Moved to sync.md.
+ (sync.md): Include.
+ * config/mips/sync.md: New file.
+
+2008-08-25 Richard Henderson <rth@redhat.com>
+
+ * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
+ (regsave): Likewise.
+ (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
+ (output_cfi_directive): Likewise.
+ (div_data_align): New.
+ (output_cfi): Use it.
+
+2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
+
+ * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
+ * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
+ (TARGET_OCTEON): New macro.
+ (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
+ (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
+ (ISA_HAS_POP): New macro.
+ * config/mips/driver-native.c (host_detect_local_cpu): Handle
+ Octeon.
+ * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
+ Handle Octeon.
+ * config/mips/mips.md (cpu): Add octeon.
+ (type): Add pop attribute value.
+ (popcount<mode>2): New pattern.
+ * doc/invoke.texi (-march=@var{arch}): Add octeon.
+
+2008-08-24 Jan Hubicka <jh@suse.cz>
+
+ * doc/invoke.texi (-fipa-cp-clone): New option.
+ (-fipa-cp): Update docs.
+ (--param ipcp-unit-growth):New.
+ * ipa-cp.c: Include fibheap.h, params.h
+ (ipcp_initialize_node_lattices): When not cloning, all externally
+ visible functions are bottom.
+ (ipcp_need_redirect_p): Accept clones.
+ (ipcp_insert_stage): Use cost driven heuristics.
+ (max_count, dead_nodes): New static vars.
+ (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
+ ipcp_const_param_count): New functions.
+ * common.opt (ipa-cp-clone): New command line option.
+ * params.def (ipcp-unit-growth): New.
+
+2008-08-24 Jan Hubicka <jh@suse.cz>
+
+ * tree-inline.c (tree_function_versioning): Look harder
+ for referenced vars.
+
+2008-08-24 Razya Ladelsky <razya@il.ibm.com>
+
+ PR tree-optimization/37185
+ * matrix-reorg.c (transform_access_sites): Update changed stmt.
+
+2008-08-23 Jan Hubicka <jh@suse.cz>
+
+ * ipa-cp.c (ipcp_analyze_node): New function.
+ (ipcp_update_cloned_node): Use it.
+ (ipcp_init_stage): Likewise.
+ * ipa-inline.c (function_insertion_hook_holder): New static var.
+ (analyze_function): Break out from ....
+ (inline_generate_summary): Here; register insertion hook.
+ (cgraph_decide_inlining): Remove hook.
+ (add_new_function): New function.
+
+2008-08-23 Jan Hubicka <jh@suse.cz>
+
+ * opts.c (decode_options): Revert accidental change enabling ipa-cp.
+
+2008-08-23 Jan Hubicka <jh@suse.cz>
+
+ * ipa-cp.c (constant_val_insert): Remove.
+ (ipcp_propagate_one_const): Remove.
+ (ipcp_create_replace_map): Always insert replacements to the map.
+ (ipcp_insert_stage): Do not try to insert statements by hand.
+ * tree-inline.c (insert_init_stmt): Break out from ...
+ (setup_one_parameter): ... here; allow NULL BB pointer.
+ (tree_function_versioning): Use setup_one_parameter to process
+ replacement map.
+
+2008-08-23 Jan Hubicka <jh@suse.cz>
+
+ * tree.c (decl_address_ip_invariant_p): New function.
+ * tree.h (decl_address_ip_invariant_p): Declare.
+ * gimple.c (strip_invariant_refs): Break out from ...
+ (is_gimple_invariant_address): ... here
+ (is_gimple_ip_invariant_address): New function.
+ (is_gimple_ip_invariant): New function.
+ * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
+ Declare.
+
+ * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
+ (ipcp_lat_is_insertable): All constants are insertable.
+ (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
+ IPA_CONST_VALUE_REF.
+ (ipcp_initialize_node_lattices): Propagate all types of operands.
+ (build_const_val): Do not handle IPA_CONST_VALUE_REF.
+ (ipcp_create_replace_map): Reformat.
+ (ipcp_need_redirect_p): Simplify.
+ (ipcp_insert_stage): Check that argument is used before clonning.
+ * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
+ (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
+ (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
+ (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
+ * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
+ (jump_func_type): Remove IPA_CONST_VALUE_REF.
+ * tree-inline.c (tree_function_versioning): Add variables referenced by
+ replacing trees.
+
+2008-08-23 Jan Hubicka <jh@suse.cz>
+
+ PR target/37094
+ * i386.c (standard_80387_constant_p): Use optimize_size.
+
+2008-08-23 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/37161
+ * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
+ * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
+ (vect_determine_vectorization_factor): Move the scalar type
+ retrieval to vect_get_smallest_scalar_type.
+ (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
+ scalar type. Remove redundant computation.
+ * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
+ (vect_get_slp_defs): Take the type of RHS into account if
+ necessary by calling vect_get_smallest_scalar_type. Call
+ vect_get_constant_vectors with additional argument.
+
+2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR 35648
+ * doc/invoke.texi (Wwrite-strings): Clarify description.
+
+2008-08-23 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/37174
+ * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
+ def stmt is a part of the loop before accessing its stmt_vec_info.
+
+2008-08-22 Anatoly Sokolov <aesok@post.ru>
+
+ PR target/11259
+ * config/avr/avr.md (UNSPEC_SWAP): New constants.
+ (*swap): New insn pattern.
+ (*ashlqi3): Rename from ashlqi3 insn pattern.
+ (ashlqi3): New expanders.
+ (*lshrqi3): Rename from lshrqi3 insn pattern.
+ (lshrqi3): New expanders.
+ (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
+ lshrqi3_const5, lshrqi3_const6): New splitters.
+ (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
+ lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
+ peephole2 patterns.
+
+2008-08-22 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/37078
+ * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
+ [+INF, +INF] ranges.
+
+2008-08-22 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/37143
+ * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
+ a conversion statement instead of a copy.
+
+2008-08-22 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/37184
+ * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
+ CCCmode, CCOmode and CCSmode destination modes.
+
+ PR target/37191
+ * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
+ from different units in a single alternative.
+ (*vec_extractv2sf_1): Ditto.
+ (*vec_extractv2si_0): Ditto.
+ (*vec_extractv2si_1): Ditto.
+ * config/i386/sse.md (sse2_storehpd): Ditto.
+ (sse2_storelpd): Ditto.
+ (sse2_loadhpd): Ditto.
+ (sse2_loadlpd): Ditto.
+
+ PR target/37197
+ * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
+ (popcountsi2): Ditto.
+ (clzdi2_abm): Ditto.
+ (popcountdi2): Ditto.
+ (clzhi2_abm): Ditto.
+ (popcounthi2): Ditto.
+
+2008-08-22 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/36548
+ PR middle-end/37125
+ * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
+ if the multiplication does not overflow.
+
+2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
+
+ * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
+
+2008-08-21 Richard Henderson <rth@redhat.com>
+
+ * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
+ spurrious comma from test.
+ * configure: Rebuild.
+
+2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR 30457
+ * builtins.c (fold_builtin_next_arg): Add warning about undefined
+ behaviour.
+
+2008-08-21 Aldy Hernandez <aldyh@redhat.com>
+
+ * c-tree.h (grokfield): New argument.
+ * c-decl.c (grokfield): Handle new location argument.
+ * c-parser.c (c_parser_struct_declaration): Pass location to
+ grokfield.
+
+2008-08-21 Richard Guenther <rguenther@suse.de>
+
+ * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
+
+2008-08-21 Jan Hubicka <jh@suse.cz>
+
+ * cgraph.c (first_cgraph_function_insertion_hook): New variable.
+ (cgraph_add_function_insertion_hook,
+ cgraph_remove_function_insertion_hook,
+ cgraph_call_function_insertion_hooks): New functions.
+ * cgraph.h (cgraph_add_function_insertion_hook,
+ cgraph_remove_function_insertion_hook,
+ cgraph_call_function_insertion_hooks): Declare.
+ * ipa-reference.c (function_insertion_hook_holder): New variable.
+ (check_operand, look_for_address_of): When checking late, do not care
+ about module bitmaps.
+ (add_new_function): New function.
+ (generate_summary): Register hooks; zero module bitmaps.
+ (propagate): Unregister hooks.
+ * ipa-pure-const.c (function_insertion_hook_holder): New variable.
+ (add_new_function): New function.
+ (generate_summary): Register hook.
+ (propagate): Remove hook.
+
+ * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
+
+ * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
+ * ipa-cp.c (ipcp_update_cloned_node): New function.
+ (build_const_val): Handle functions correctly; bring type logic
+ into sync with tree-inline.c
+ (ipcp_init_stage): Take care of computing stuff needed by
+ indirect inlining; update clones.
+ (ipcp_generate_summary): Break out of ipcp_driver.
+ (ipcp_driver): Do only execution and transformation.
+ (pass_ipa_cp): Make IPA_PASS.
+ * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
+ offset to address.
+ * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
+ ipcp, some info is already available.
+ * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
+ * tree-inline.c (remap_ssa_name): Unshare expression.
+
+2008-08-21 Richard Guenther <rguenther@suse.de>
+
+ * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
+ a PHI ask VN if it is already available.
+ * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
+ * tree-ssa-sccvn.c (vn_phi_lookup): Export.
+
+2008-08-21 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/36817
+ * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
+ makes sure to produce a result of the correct type.
+
+2008-08-21 Jan Hubicka <jh@suse.cz>
+ Backport from LTO branch:
+
+ 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
+ Jan Hubicka <jh@suse.cz>
+
+ * ipa-pure-const.c
+ (init_state, finish_state, set_function_state, generate_summary):
+ New functions.
+ (scan_stmt): Renamed from scan_function. Changed to keep state in
+ local static vars rather than cgraph aux field.
+ (propagate): Renamed from static_execute. Changed to keep state in
+ local static vars rather than cgraph aux field.
+ (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
+ * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
+
+ 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
+
+ * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
+ * ipa-reference.c (init_function_info, generate_summary,
+ propagate): New functions.
+ (analyze_function): Call init_function_info.
+ (static_execute): Stripped into generate_summary and propagate.
+ (pass_ipa_reference): Made into ipa_opt_pass.
+
+2008-08-21 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/37181
+ * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
+ folding result.
+ (extract_range_from_unary_expr): Likewise.
+
2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* diagnostic.c (pedwarn_at): Rename as pedwarn.
2008-08-19 Rafael Espindola <espindola@google.com>
- * varasm.c (weak_decls): Move earlier in the file.
- (assemble_external): Add weak decls to the weak_decls list.
- (declare_weak): Don't add decls to the weak_decls list.
+ * varasm.c (weak_decls): Move earlier in the file.
+ (assemble_external): Add weak decls to the weak_decls list.
+ (declare_weak): Don't add decls to the weak_decls list.
2008-08-19 H.J. Lu <hongjiu.lu@intel.com>