2012-01-09 Richard Guenther * tree-streamer-out.c (write_ts_optimization): Fix spelling. 2012-01-08 Jan Hubicka PR tree-optimize/51680 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition on when known_vals needs to be computed; cleanup. 2012-01-08 Jan Hubicka PR tree-optimize/51694 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks. 2012-01-08 Jonathan Wakely * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined for -std=c++98 and -std=c++11 too. 2012-01-08 Chung-Lin Tang * cfgloop.c (cancel_loop): Add free() of bbs array. 2012-01-07 Jan Hubicka PR tree-optimization/51600 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code that benefits small functions. 2012-01-07 Jan Hubicka * ipa-inline.c (want_inline_small_function_p): Fix formating. 2012-01-07 Jan Hubicka PR tree-optimization/51680 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions whose inlining reduce unit size. 2012-01-07 Alexandre Oliva PR bootstrap/51725 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node. Add canonical node to containing_mem chain after the non-canonical one, even if there weren't any locs to propagate. (remove_useless_values): Keep only canonical values. (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr. (cselib_invalidate_mem): Likewise. Ensure v is canonical, and canonicalize mem_chain elements that are not discarded. 2012-01-06 Jakub Jelinek PR target/47333 * cgraphunit.c (cgraph_optimize): Call output_weakrefs before emitting functions. PR gcov-profile/50127 * bb-reorder.c (partition_hot_cold_basic_blocks): Call clear_aux_for_blocks. 2012-01-06 Alexandre Oliva PR debug/51746 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too. 2012-01-06 Arnaud Charlet * c-decl.c (ext_block): Moved up. (collect_all_refs, for_each_global_decl): Take ext_block into account. 2012-01-06 Han Shen Translate built-in include paths for sysroot. * Makefile.in (gcc_gxx_include_dir_add_sysroot): New. (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT. * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field. * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to control whether sysroot should be prepended to gxx include dir. * configure: Regenerate. 2012-01-06 Torvald Riegel PR rtl-optimization/51771 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New. * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib. 2012-01-05 Eric Botcazou PR tree-optimization/51315 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate. (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p. 2012-01-05 Uros Bizjak PR target/51681 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands for shrp pattern. Correctly handle and fixup shift variable. Return false when shift > nelt for BYTES_BIG_ENDIAN target. 2012-01-05 Jakub Jelinek PR debug/51762 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE note when !ACCUMULATE_OUTGOING_ARGS. 2012-01-05 Eric Botcazou * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated condition. (extract_range_from_unary_expr_1): Avoid useless computations. 2012-01-05 Jakub Jelinek PR rtl-optimization/51767 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition of jump_block and add an extra edge for degenerated asm gotos. PR middle-end/51768 * stmt.c (check_unique_operand_names): Don't ICE during error reporting if i is from labels chain. PR middle-end/44777 * profile.c (branch_prob): Split bbs that have exit edge and need a fake entry edge too. 2012-01-05 Jan Hubicka PR middle-end/49710 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when unlooping loops. >>>>>>> .r182937 2012-01-05 Richard Guenther PR lto/50490 * tree-streamer-out.c (write_ts_optimization): New function. (streamer_write_tree_body): Call it. * tree-streamer-in.c (lto_input_ts_optimization): New function. (streamer_read_tree_body): Call it. * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE. 2012-01-05 Jakub Jelinek PR middle-end/51761 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field. * gimplify.c (gimplify_cleanup_point_expr): Save and set in_cleanup_point_expr before gimplify_stmt call and restore it afterwards. (gimplify_target_expr): Don't add {CLOBBER} cleanup if in_cleanup_point_expr is false. 2012-01-05 Richard Guenther PR middle-end/51764 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move to c.opt. * toplev.c (process_options): Reject combining mudflap and LTO. * tree-nomudflap.c (nogo): Use sorry instead of internal_error. 2012-01-05 Richard Guenther PR tree-optimization/51760 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT, not VARYING. (bit_value_unop): Handle UNDEFINED operands. (bit_value_binop): Likewise. 2012-01-05 Georg-Johann Lay * config/avr/avr.c (avr_replace_prefix): Remove. (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix. (avr_asm_function_rodata_section): Ditto. (avr_asm_select_section): Ditto. 2012-01-05 Marcus Shawcroft * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND insertion. 2012-01-05 Jakub Jelinek PR bootstrap/51648 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn calls that have any non-fake successor edges. PR debug/51746 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL. 2012-01-04 Eric Botcazou PR tree-optimization/51624 * tree-sra.c (build_ref_for_model): When replicating a chain of COMPONENT_REFs, stop as soon as the offset would become negative. 2012-01-04 Jakub Jelinek PR debug/51695 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions in .debug_loc on the floor. 2012-01-04 Andrew Pinski * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2. 2012-01-04 Andrew Pinski Adam Nemet * config/mips/mips.md (size): Add SI and DI. (SIZE): New mode attribute. (U): New code attribute. * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi. (mips_lbux_): Delete. (mips_lx_ext_): New pattern. (mips_lhx): Use gen_mips_lhx_extsi. (mips_lhx_): Delete. (mips_lwx): Delete. (mips_lx): New expand. (mips_lwx_): Delete. (mips_lx_): New pattern. (*mips_lwx__ext): Likewise. * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type. * config/mips/mips.c (mips_lx_address_p): New function. (mips_rtx_costs ): Call mips_lx_address_p. (dsp64): New availability predicate. (mips_builtins): Add an entry for __builtin_mips_ldx. * config/mips/mips.h (ISA_HAS_LBX): New define. (ISA_HAS_LBUX): Likewise. (ISA_HAS_LHX): Likewise. (ISA_HAS_LHUX): Likewise. (ISA_HAS_LWX): Likewise. (ISA_HAS_LWUX): Likewise. (ISA_HAS_LDX): Likewise. * doc/extend.texi (__builtin_mips_ldx): Document. 2012-01-04 Tristan Gingold * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define when long pointers are used. * config.build (*-*-*vms*): Handle all OpenVMS targets. (alpha64-dec-*vms*, alpha*-dec-*vms*) (ia64-hp-*vms*): Remove. * config/vms/xm-vms64.h: Delete. 2012-01-04 Aldy Hernandez PR middle-end/51472 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly. 2012-01-04 Aldy Hernandez * opts.c (finish_options): Remove duplicate sorry. 2012-01-04 Aldy Hernandez PR middle-end/51696 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name correctly. 2012-01-04 Richard Guenther PR middle-end/51750 * tree.c (size_low_cst): New function. * tree.h (size_low_cst): Declare. * fold-const.c (fold_comparison): Use it to extract the low part of the POINTER_PLUS_EXPR offset. 2012-01-04 Georg-Johann Lay Fix clearing ZERO_REG * config/avr/avr.md (cc): Add alternative "ldi". (movqi_insn): Use it in cc attribute. * config/avr/avr.c (notice_update_cc): Handle CC_LDI. (output_reload_in_const): Use CLR to move 0 to ZERO_REG. (output_reload_insisf): Use ZERO_REG to pre-clear register. 2012-01-04 Andreas Krebbel * configure: Regenerate. 2012-01-04 Richard Guenther PR tree-optimization/49651 * tree-ssa-structalias.c (type_can_have_subvars): New function. (var_can_have_subvars): Use it. (get_constraint_for_1): Only consider subfields if there can be any. 2012-01-03 Jakub Jelinek PR bootstrap/51725 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val to its new canonical_cselib_val and the cselib_val was in first_containing_mem chain, but the canonical_cselib_val was not, add the latter into the chain. (cselib_invalidate_mem): Compare canonical_cselib_val of addr_list chain elt with v. PR pch/51722 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef): Allocate e.info using ggc_strdup instead of xstrdup. (output_macinfo_op): Don't ggc_strdup fd->filename. (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC, then ggc_strdup it. Don't free inc->info or cur->info. (output_macinfo): Don't free ref->info or file->info. 2012-01-03 Ira Rosen PR tree-optimization/51269 * tree-vect-loop-manip.c (set_prologue_iterations): Make first_niters a pointer. (slpeel_tree_peel_loop_to_edge): Likewise. (vect_do_peeling_for_loop_bound): Update call to slpeel_tree_peel_loop_to_edge. (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters here. Remove it from the parameters list. (vect_do_peeling_for_alignment): Update calls and compute wide_prolog_niters. 2012-01-03 Richard Guenther PR tree-optimization/51070 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop): Properly handle calls. 2012-01-03 Richard Guenther PR tree-optimization/51692 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove the LHS of allocation stmts. 2012-01-03 Olivier Hainque * system.h: Prior to #define, #undef fopen and freopen unconditionally. 2012-01-03 Olivier Hainque * collect2.c (main): In AIX specific computations for vector insertions, use CONST_CAST2 to cast from char ** to const char **. 2012-01-03 Richard Guenther PR debug/51650 * dwarf2out.c (dwarf2out_finish): Always create a DIE for the context of a limbo DIE when it does not already exist. 2012-01-03 Jakub Jelinek PR tree-optimization/51719 * value-prof.c (gimple_ic): When indirect call isn't noreturn, but direct call is, clear direct call's lhs and don't add fallthrough edge from dcall_bb to join_bb and PHIs. 2012-01-03 Andreas Krebbel * config/s390/s390.md ("*cmp_ccs"): Fix comment mentioning the instructions emitted by the pattern. ("*TDC_insn_"): Add comment. 2012-01-03 Richard Guenther PR middle-end/51730 * fold-const.c (fold_comparison): Properly canonicalize tree offset and HOST_WIDE_INT bit position. 2012-01-02 Uros Bizjak * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct operands for extzv pattern. 2012-01-02 Jakub Jelinek PR bootstrap/51725 * cselib.c (add_mem_for_addr): Call canonical_cselib_val on mem_elt first. 2012-01-02 Sandra Loosemore * doc/invoke.texi (-flto and related options): Copy-edit. 2012-01-02 Richard Sandiford * config/mips/mips.md (loadgp_newabi_): Add missing earlyclobber. 2012-01-02 Jakub Jelinek * config/i386/sse.md (*avx2_gatherdi_3, *avx2_gatherdi_4): New patterns. 2012-01-02 Richard Sandiford * expr.h (move_by_pieces_ninsns): Declare. * expr.c (move_by_pieces_ninsns): Make external. * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare. (mips_store_by_pieces_p): Likewise. * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p. (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p. * config/mips/mips.c (mips_move_by_pieces_p): New function. (mips_store_by_pieces_p): Likewise. 2012-01-02 Jakub Jelinek * passes.c (register_one_dump_file): Free full_name. * reload1.c (reload): Don't allocate reg_max_ref_width here. (calculate_elim_costs_all_insns): Free offsets_at and offsets_known_at at the end and clear the pointers. 2012-01-02 Georg-Johann Lay * config/avr/avr.opt (-mbranch-cost): Fix double definition of this option introduced in r180739. 2012-01-02 Georg-Johann Lay PR target/51345 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h (tmake_file target=avr): Add avr/t-multilib. * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__. * config/avr/genmultilib.awk: New file. * config/avr/t-multilib: New auto-generated file. * config/avr/multilib.h: New auto-generated file. * config/avr/t-avr (AVR_MCUS): New variable. (genopt.sh): Use it. (s-mlib): Depend on t-multilib. (t-multilib, multilib.h): New dependencies. (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS. (MULTILIB_OPTIONS): Remove. (MULTILIB_MATCHES): Remove. (MULTILIB_DIRNAMES): Remove. (MULTILIB_EXCEPTIONS): Remove: * config/avr/genopt.sh: Don't use hard coded file name; pass AVR_MCUS from t-avr instead. 2012-01-02 Georg-Johann Lay * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23". 2012-01-02 Georg-Johann Lay Implement light-weight DImode support. * config/avr/avr-dimode.md: New file. * config/avr/avr.md: Include it. (adjust_len): Add plus64, compare64. (HIDI): Remove code iterator. (code_stdname): New code attribute. (rotx, rotsmode): Remove DI. (rotl3, *rotw, *rotb): Use HISI instead of HIDI as code iterator. * config/avr/avr-protos.h (avr_have_dimode): New. (avr_out_plus64, avr_out_compare64): New. * config/avr/avr.c (avr_out_compare): Handle DImode. (avr_have_dimode): New variable definition and initialization. (avr_out_compare64, avr_out_plus64): New functions. (avr_out_plus_1): Use simplify_unary_operation to negate xval. (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64. (avr_compare_pattern): Skip DImode comparisons. 2012-01-02 Revital Eres * ddg.c (def_has_ccmode_p): New function. (add_cross_iteration_register_deps, create_ddg_dep_from_intra_loop_link): Call it. 2012-01-02 Richard Guenther PR other/51679 * invoke.texi (fassociative-math): Remove spurious paranthesis. 2012-01-01 Jakub Jelinek * gcc.c (process_command): Update copyright notice dates. * gcov.c (print_version): Likewise. * gcov-dump.c (print_version): Likewise. * mips-tfile.c (main): Likewise. * mips-tdump.c (main): Likewise. 2012-01-01 Ira Rosen PR tree-optimization/51704 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that a use is inside the basic block or loop before accessing its vect info. 2012-01-01 Jan Hubicka PR rtl-optimization/51069 * cfgloopmanip.c (remove_path): Removing path making irreducible region unconditional makes BB part of the region. 2012-01-01 Jakub Jelinek PR tree-optimization/51683 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away calls with side-effects. * tree-ssa-ccp.c (ccp_fold_stmt): Likewise. Copyright (C) 2012 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.