2016-01-15 Richard Biener PR tree-optimization/66856 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here. * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count. (vect_create_new_slp_node): Increment stmt reference count. (vect_get_and_check_slp_defs): Make sure stmts are nor already in an SLP tree before swapping operands. (vect_build_slp_tree): Likewise. (destroy_bb_vec_info): Free stmt info after SLP instances. * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count. * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field. (STMT_VINFO_NUM_SLP_USES): New macro. 2016-01-15 Richard Biener PR debug/69137 * dwarf2out.c (add_linkage_name_raw): New function split out from ... (add_linkage_name): ... here. (gen_typedef_die): Use add_linkage_name_raw instead of add_linkage_attr to delay DECL_ASSEMBLER_NAME computation if necessary. 2016-01-15 Cesar Philippidis * gimplify.c (oacc_default_clause): Decode reference and pointer types for both kernels and parallel regions. 2016-01-15 Richard Sandiford PR middle-end/69246 * calls.c (emit_call_1): Force n_popped to zero for sibcalls. 2016-01-15 Ilya Enkovich * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo. (convert_scalars_to_vector): Likewise. 2016-01-15 Jonathan Wakely * doc/extend.texi (Type Traits): Fix grammar. 2016-01-15 Martin Jambor * tree-inline.c (remap_decl): Use existing dclarations if remapping a type and prevent_decl_creation_for_types. (replace_locals_stmt): Do an initial remapping of non-VLA typed decls first. Do real remapping with prevent_decl_creation_for_types set. * tree-inline.h (copy_body_data): New field prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid padding. 2016-01-15 Dominik Vogt * config/s390/s390.opt (mmvcle): More verbose help text. 2016-01-15 Dominik Vogt * config/s390/s390.opt: Add period to -mzvector option text. 2016-01-15 Richard Biener PR tree-optimization/68961 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost of invariants in stores again. 2016-01-15 Sebastian Huber * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib. 2016-01-15 Ilya Enkovich * config/i386/i386.c (ix86_expand_branch): Don't split DI mode xor instruction to SI mode. 2016-01-15 Jan Hubicka PR ipa/68148 * ipa-icf.c (sem_function::merge): Virtual functions may become reachable even if they address is not taken and there are no idrect calls. 2016-01-15 Jan Hubicka * lto-streamer-out.c (subtract_estimated_size): New function. (get_symbol_initial_value): Use it. 2016-01-15 Christian Bruel PR target/65837 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag. (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins, (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins. use add_builtin_function_ext_scope instead of add_builtin_function. (neon_set_p, neon_crypto_set_p): Remove. (arm_init_builtins): Always call arm_init_neon_builtins and arm_init_crypto_builtins. (arm_expand_builtin): Check that builtins are allowed for the arch. * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype. * config/arm/arm.c (arm_valid_target_attribute_tree): Remove arm_init_neon_builtins call. 2016-01-15 Richard Biener PR tree-optimization/69117 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member. * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info of the leader conservatively. (free_scc_vn): Restore original SSA name infos. 2016-01-14 Jeff Law PR tree-optimization/69270 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a single bit of precision, verify it's also unsigned. (record_edge_info): Use constant_boolean_node rather than fold_convert to convert boolean_true/boolean_false to the right type. 2016-01-14 Richard Henderson PR rtl-opt/69014 * loop-doloop.c (record_reg_sets): New. (doloop_optimize): Reject the transform if the sequence clobbers registers live at the end of the loop block. (doloop_optimize_loops): Enable df_live if needed. 2016-01-14 Michael Meissner * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change. * gcc/config/rs6000/rs6000.c: Likewise. * gcc/config/rs6000/rs6000.h: Likewise. * gcc/config/rs6000/rs6000.md: Likewise. * gcc/doc/extend.texi: Likewsie. 2016-01-14 Jeff Law * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment typo. 2016-01-14 Richard Henderson PR c/69272 PR tree-opt/68964 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size. * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p instead of builtin_decl_declared_p to test for declaration. 2016-01-14 Nicklas Bo Jensen * doc/loop.texi (Loop Analysis and Representation): Document loop_depth function. 2016-01-14 Tom de Vries PR tree-optimization/68773 * omp-low.c (expand_omp_target): Don't set force_output. * varpool.c (varpool_node::get_create): Same. * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and offload_funcs with force_output. 2016-01-14 Jakub Jelinek PR debug/69244 * lra-eliminations.c (move_plus_up): Don't change anything if either the outer or inner subreg mode is not MODE_INT. * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards. 2016-01-14 Alan Lawrence * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m}, reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m}, reduc_uplus_@var{m}): Remove. * expr.c (expand_expr_real_2): Remove expansion path for reduc_[us](min|max|plus) optabs. * optabs-tree.c (scalar_reduc_to_vector): Remove. * optabs-tree.h (scalar_reduc_to_vector): Remove. * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab, reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove. * tree-vect-loop.c (vectorizable_reduction): Remove test for reduc_[us](min|max|plus) optabs. 2016-01-14 Alan Lawrence * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove. (reduc_plus_scal_v2sf): New. (reduc_smax_v2sf): Rename to... (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract. (reduc_smin_v2sf): Rename to... (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract. 2016-01-14 Jan Hubicka * alias.c (compare_base_symbol_refs): New function. (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use it. 2016-01-14 Jakub Jelinek PR middle-end/68146 PR tree-optimization/69155 * tree-complex.c: Include cfganal.h. (phis_to_revisit): New variable. (extract_component): Add phiarg_p argument. Assert that returned SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true. (update_phi_components): Partly rewrite to use loop over real/imag components instead of code duplication. If extract_component returns SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or create_tmp_reg into the PHI node instead, and mention the phi triplet in phis_to_revisit. (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded in phis_to_revisit at the end. 2016-01-14 Richard Biener PR tree-optimization/68060 * tree-vect-loop.c (vect_is_simple_reduction): Check the outer loop reduction is only used in the inner loop before detecting a double reduction. 2016-01-14 Jakub Jelinek PR target/68269 * combine.c (expand_field_assignment): Punt if compute_mode is unsupported scalar mode. 2016-01-14 Richard Biener PR tree-optimization/66856 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build SLP node only if it built successfully. (vect_analyze_slp_instance): Adjust. 2016-01-14 Jeff Law PR tree-optimization/69270 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function. (record_edge_info): Use it. Convert boolean_{true,false}_node to the type of op0. 2016-01-13 Jan Hubicka PR ipa/66487 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): use block_ultimate_origin (noncall-stmt_may_be_vtbl_ptr_store): Likewise. 2016-01-13 Sandra Loosemore * doc/invoke.texi (Submodel Options): Rename section to "Machine-Dependent Options" to better reflect its content. Rewrite introductory text to remove archaic CPU names. Update references. 2016-01-13 Sandra Loosemore * doc/invoke.texi (Code Gen Options): Move section up in file, before target-specific options. Update menu and option summary to reflect the new section ordering. 2016-01-13 Jonathan Wakely * doc/invoke.texi (C Dialect Options): Adjust -std default for C++. (C++ Dialect Options): Add cross-reference to -std option. * doc/standards.texi (C++ Language): Document C++14 support. 2016-01-13 Michael Meissner * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support for pack/unpack functions for __ibm128. (PACK_IF): Likewise. (UNPACK_IF): Likewise. * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add support for __ibm128 pack/unpack functions. (rs6000_invalid_builtin): Likewise. (rs6000_init_builtins): Likewise. (rs6000_opt_masks): Likewise. * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name. (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack functions (RS6000_BTM_COMMON): Likewise. * config/rs6000/rs6000.md (f128_vsx): New mode attribute. (unpack): Use FMOVE128_FPR iterator instead of FMOVE128, to disallow __builtin_{pack,unpack}_longdouble if long double is IEEE 128-bit floating point. Add support for the double values to be in Altivec registers for TF/IF packing and unpacking, but restrict TD packing sub-fields to be FPR registers. Don't allow overlapped register support for packing. Allow pack inputs to be memory locations. Don't build generator functions for unpack_dm and unpack_nodm. (unpack_dm): Likewise. (unpack_nodm): Likewise. (pack): Likewise. * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add built-in functions to pack/unpack explicit __ibm128 values. (__builtin_unpack_ibm128): Likewise. * doc/extend.texi (PowerPC Built-in Functions): Document __builtin_pack_ibm128 and __builtin_unpack_ibm128. 2016-01-13 Bernd Schmidt PR c/66208 * c-common.c (check_function_nonnull): Remove unnecessary declaration. Add new arg loc and pass it down as context. (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer to the location to use for the warning. (check_function_arguments): New arg loc. All callers changed. Pass it to check_function_nonnull. * c-common.h (check_function_arguments): Adjust declaration. 2016-01-13 Jakub Jelinek PR tree-optimization/69156 * gimple.c (validate_type): Removed. (gimple_builtin_call_types_compatible_p): Use useless_type_conversion_p instead of validate_type. * value-prof.c (gimple_stringop_fixed_value): Fold icall_size to correct type. 2016-01-13 Jonathan Wakely * doc/extend.texi (__atomic Builtins): Clarify compare_exchange effects. 2016-01-13 Richard Henderson PR tree-opt/68964 * target.def (builtin_tm_load, builtin_tm_store): Remove. * config/i386/i386.c (ix86_builtin_tm_load): Remove. (ix86_builtin_tm_store): Remove. (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove. (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove. * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove. (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove. * doc/tm.texi: Rebuild. * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New. (BUILT_IN_TM_MEMCPY_RTWN): New. * trans-mem.c (tm_log_emit_stmt): Rearrange code for better fallback from vector to integer helpers. (build_tm_load): Handle vector types directly, instead of via target hook. (build_tm_store): Likewise. (expand_assign_tm): Prepare for register types not handled by the above. Copy them to memory and use memcpy. * tree.c (tm_define_builtin): New. (find_tm_vector_type): New. (build_tm_vector_builtins): New. (build_common_builtin_nodes): Call it. 2016-01-13 Uros Bizjak * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for TARGET_SSE_MATH without TARGET_SSE2. Rewrite. 2016-01-13 Tom de Vries PR tree-optimization/69169 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle handled_struct_type param. (create_variable_info_for, intra_create_variable_infos): Call create_variable_info_for_1 with extra arg. 2016-01-13 Yvan Roux * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a" and "armv8.1-a+crc" entries. 2016-01-13 Alexander Fomin PR target/69228 * config/i386/sse.md (define_expand "avx512pf_gatherpfsf"): Change first operand predicate from register_or_constm1_operand to register_operand. (define_expand "avx512pf_gatherpfdf"): Likewise. (define_expand "avx512pf_scatterpfsf"): Likewise. (define_expand "avx512pf_scatterpfdf"): Likewise. (define_insn "*avx512pf_gatherpfsf"): Remove. (define_insn "*avx512pf_gatherpfdf"): Likewise. (define_insn "*avx512pf_scatterpfsf"): Likewise. (define_insn "*avx512pf_scatterpfdf"): Likewise. * config/i386/i386.c (ix86_expand_builtin): Remove first operand comparison with constm1_rtx from vec_prefetch_gen part. 2016-01-13 Richard Biener PR tree-optimization/69013 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): Exchange assert for a test. 2016-01-13 Andreas Krebbel PR target/69247 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg. 2016-01-13 Richard Biener PR tree-optimization/69242 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus assert with a check. 2016-01-13 Richard Biener PR tree-optimization/69186 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Properly guard vect_update_misalignment_for_peel call. 2016-01-12 Jeff Law PR tree-optimization/pr67755 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field "need_profile_correction". (thread_block_1): Initialize new field to false by default. If we have multiple thread paths through a common joiner to different final targets, then set new field to true. (compute_path_counts): Only do count adjustment when it's really needed. 2016-01-12 Sandra Loosemore * doc/invoke.texi (Spec Files): Move section down in file, past all command-line option descriptions. 2016-01-12 Trevor Saunders PR middle-end/54809 * doc/gty.texi: Remove documentation of mark_hook. * gengtype.c (struct write_types_data): Remove code to support mark_hook attribute. (walk_type): Likewise. (write_func_for_structure): Likewise. 2016-01-12 Sandra Loosemore * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to Directory Options, and -specs= to Overall Options. (Overall Options): Adjust similarly. Reorder to group related options together. Make -specs= cross-reference the spec file details. (Directory Options): Adjust similarly. 2016-01-12 Jeff Law * tree-ssa-threadupdate.c: Various whitespace and typo fixes. 2016-01-12 Olivier Hainque * gcc.c (spec_undefvar_allowed): New global. (process_command): Set to true when running for --version or --help, alone or together. (getenv_spec_function): When the variable is not defined, use the variable name as the variable value if we're allowed not to issue a fatal error. 2016-01-12 Bin Cheng PR tree-optimization/68911 * tree-vrp.c (adjust_range_with_scev): Check overflow in range information computed for expression "init + nit * step". 2016-01-12 Sandra Loosemore * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information about name of GCC executable. Remove deleted node from menu. (Directory Options) <-B>: Remove cross-reference to deleted node. (Target Options): Delete section. 2016-01-12 Christian Bruel PR target/69180 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX. 2016-01-12 Jakub Jelinek PR target/69198 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure aligned_mem is properly set for AVX512-VL floating point masked stores. PR target/69175 * ifcvt.c (cond_exec_process_if_block): When removing the last insn from then_bb, remove also any possible barriers that follow it. 2016-01-12 H.J. Lu PR target/68456 PR target/69226 * config/i386/iamcu.h (SIZE_TYPE): New macro. (PTRDIFF_TYPE): Likewise. (WCHAR_TYPE): Likewise. (WCHAR_TYPE_SIZE): Likewise. (STDINT_LONG32): Likewise. 2016-01-12 Richard Biener PR tree-optimization/69053 * tree-vect-loop.c (get_initial_def_for_reduction): Properly convert initial value for cond reductions. 2016-01-12 Richard Biener PR tree-optimization/69007 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move widen_sum after dot_prod and sad. 2016-01-12 Richard Biener PR tree-optimization/69168 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and pattern stmt SLP type. * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may end up unused so cope with that case. 2016-01-12 Richard Biener PR tree-optimization/69157 * tree-vect-stmts.c (vectorizable_mask_load_store): Check stmts def type only during analyze phase. (vectorizable_call): Likewise. (vectorizable_simd_clone_call): Likewise. (vectorizable_conversion): Likewise. (vectorizable_assignment): Likewise. (vectorizable_shift): Likewise. (vectorizable_operation): Likewise. (vectorizable_store): Likewise. (vectorizable_load): Likewise. 2016-01-12 Richard Biener PR tree-optimization/69174 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical space. (vectorizable_load): Properly compute the number of loads needed for permuted strided SLP loads and do not spuriously assign to SLP_TREE_VEC_STMTS. 2016-01-12 Andris Pavenis * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive (MD_EXEC_PREFIX): Remove. (MD_STARTFILE_PREFIX) Removee. (FILE_NAME_ABSOLUTE_P): Remove. (CPP_SPEC): Do not read macros from sys/version.h. (LINK_COMMAND_SPEC): Remove. (LOCAL_INCLUDE_DIR): Remove. (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix. (POST_LINK_SPEC): Define to invoke stubify after linker (LIBSTDCXX): Remove define (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map. (DEFAULT_PCC_STRUCT_RETURN): Define to 1. (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210. (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message. (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info. (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove. (i386_djgpp_asm_named_section): Add propotype of new procedure * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define. (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h). (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX in config/i386/djgpp.h). (STANDARD_STARTFILE_PREFIX_2): Define identical to STANDARD_STARTFILE_PREFIX_1. (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h). (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal installation errors. (MAX_OFILE_ALIGNMENT): Define to 128. (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h. * config/i386/djgpp.c: New file. Add implementation of i386_djgpp_asm_named_section. * config/i386/djgpp.opt: Remove obsolete option -mbnu210. * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS. Add rule for building djgpp.o. 2016-01-11 Bill Schmidt * config/rs6000/rs6000.c (v2df_reduction_p): New function. (rtx_is_swappable_p): Reductions are swappable. (insn_is_swappable_p): V2DF reductions are swappable. 2016-01-11 John David Anglin * config/pa/pa.c (pa_emit_move_sequence): Handle floating point reloads for other unsupported memory operands. 2016-01-12 Kugan Vivekanandarajah Jim Wilson PR target/69194 * config/arm/arm-builtins.c (arm_expand_neon_args): Call copy_to_mode_reg instead of force_reg. 2016-01-11 H.J. Lu PR target/69225 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if TARGET_80387 is true. 2016-01-11 Jakub Jelinek PR target/69071 * lra-eliminations.c (move_plus_up): Only move plus up if subreg of the constant can be simplified into constant and use the simplified subreg of the constant instead of the original constant. * fold-const.c (fold_convertible_p): Don't return true for conversion of VECTOR_TYPE to same sized integral type. (fold_convert_loc): Fix up formatting. Fold conversion of VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR instead of NOP_EXPR. PR tree-optimization/69214 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI. Formatting fix. PR tree-optimization/69207 * tree-vect-slp.c (vect_get_constant_vectors): For VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of fold_convertible_p to vector_type's element type, and always use VCE for non-VECTOR_BOOLEAN_TYPE_P. 2016-01-11 Richard Biener PR tree-optimization/69173 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only fixup the cycle if all stmts are in a pattern. 2016-01-11 Uros Bizjak PR middle-end/68999 * alias.c (base_alias_check): Move check for addresses with alignment ANDs before the call for compare_base_decls. (memrefs_conflict_p): Return -1 for different decls that went through alignment adjustments. 2016-01-11 Kyrylo Tkachov PR rtl-optimization/68796 * config/aarch64/aarch64.md (*and_compare0): New pattern. * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode and QImode comparisons against zero with CC_NZmode. * config/aarch64/iterators.md (short_mask): New mode_attr. 2016-01-11 H.J. Lu * config/i386/sse.md (_load_mask): Remove snprintf. (_store_mask): Likewise. 2016-01-11 Bernd Schmidt Kyrylo Tkachov PR rtl-optimization/68841 * ifcvt.c (struct noce_if_info): Add orig_x field. (bbs_ok_for_cmove_arith): Add to_rename parameter. Don't record conflicts on to_rename if it's present. Allow memory destinations in sets. (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple blocks, passing orig_x to the checks. (noce_process_if_block): Set if_info->orig_x appropriately. 2016-01-11 Tom de Vries PR tree-optimization/69069 * tree-parloops.c (create_parallel_loop): Add missing phi args. 2016-01-11 Yuri Rumyantsev PR rtl-optimization/68920 * config/i386/i386.c (ix86_option_override_internal): Restrict number of conditional moves for RTL if-conversion to 1 for TARGET_ONE_IF_CONV_INSN. * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros. * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros. * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new parameter to restirct number of conditional moves for RTL if-conversion. * doc/invoke.texi (max-rtl-if-conversion-insns): Document it. * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of conditionl moves. 2016-01-11 Alexandre Oliva PR bootstrap/69123 * var-tracking.c (drop_overlapping_mem_locs): Operate on all onepart vars. Fix typo in comment. Fix reversed condition in unshare test. (dataflow_set_remove_mem_locs): Operate on all onepart vars. PR bootstrap/69123 * var-tracking.c (dump_onepart_variable_differences): New. (dataflow_set_different): If a detailed dump is requested, delay early returns and dump differences between onepart variables present before and after, and added variables. 2016-01-11 Ilya Enkovich PR target/69010 * expr.c (expand_expr_real_1): For boolean vector constants with a scalar mode use const_scalar_mask_from_tree. (const_scalar_mask_from_tree): New. * optabs.c (expand_vec_cond_mask_expr): Use mask mode assigned to a mask type to handle constants. 2016-01-11 Martin Jambor PR ipa/69044 * ipa-cp.c (estimate_local_effects): Do not clone for removal of useless parameters if we cannot change function signature. 2016-01-11 Martin Jambor PR ipa/66616 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature flag. 2016-01-11 Tom de Vries PR tree-optimization/69109 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow latch with phi. 2016-01-11 Tom de Vries PR tree-optimization/69108 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi res is not used in a phi. 2016-01-11 Yury Gribov PR 67425 * common.opt (frandom-seed): Fix parameter name. * doc/invoke.texi (frandom-seed): Ditto and describe parameter. 2016-01-11 Tom de Vries PR tree-optimization/69058 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp not supported. 2016-01-11 Andrew Burgess * config/arc/arc.opt (mdiv-rem): Add period to the end. (mcode-density): Likewise. 2016-01-10 Tom de Vries PR tree-optimization/69062 * tree-parloops.c (loop_has_phi_with_address_arg): New function. (parallelize_loops): Don't paralelize loop that has phi with address arg. 2016-01-10 Tom de Vries PR tree-optimization/69039 * tree-parloops.c (try_create_reduction_list): Only allow single exit phi for reduction. 2016-01-09 John David Anglin PR middle-end/68743 * match.pd: Require target has function_c99_misc before doing truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc. 2016-01-09 Gerald Pfeifer * configure.ac (isl_options_set_schedule_serialize_sccs): Also use GMPINC. * configure: Regenerate. 2016-01-09 Jakub Jelinek PR middle-end/50865 PR tree-optimization/69097 * fold-const.h (expr_not_equal_to): New prototype. * fold-const.c: Include stringpool.h and tree-ssanames.h. (expr_not_equal_to): New function. * match.pd (X % -Y is the same as X % Y): Don't optimize unless X is known not to be equal to minimum or Y is known not to be equal to -1. * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument. fold TRUNC_MOD_EXPR if the second argument is not a power of two. (simplify_stmt_using_ranges): Adjust caller. (vrp_finalize): Call set_value_range on SSA_NAMEs before calling substitute_and_fold. 2016-01-09 Jan Hubicka * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL w/o DECL_NAME. 2016-01-08 Jakub Jelinek PR tree-optimization/69167 * gimple-fold.c (replace_stmt_with_simplification): Also punt if new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of ops[0] comparison. * gimple-match-head.c (maybe_push_res_to_seq): Likewise. 2016-01-08 Alan Lawrence Richard Biener PR tree-optimization/68707 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP instances that can be handled via vect_load_lanes. 2016-01-08 Uros Bizjak * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2 if we can't determine address equivalence. * alias.c (compare_base_decl): Update for changed return value of symtab_node::equal_address_to. 2016-01-08 Jason Merrill PR c++/68983 PR c++/67557 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here. * expr.c (store_field): Not here. * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a call with TREE_ADDRESSABLE type. * tree-cfg.c (verify_gimple_call): Adjust. 2016-01-08 Olivier Hainque * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with libc_internal. 2016-01-08 Alan Lawrence * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to... (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element. (reduc_smin_v2sf): Rename to... (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element. (reduc_splus_v2sf): Rename to... (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element. 2016-01-08 Jakub Jelinek PR tree-optimization/69162 * gimplify.c (gimplify_va_arg_expr): Encode original type of valist argument in another argument. (gimplify_modify_expr): Adjust for the above change. Cleanup. * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument to determine the va_list type, build a MEM_REF instead of build_fold_indirect_ref. PR tree-optimization/69172 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to gimple_build. 2016-01-08 Thomas Preud'homme PR tree-optimization/67781 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg and cmpnop in two steps: first the ones not accessed in original gimple expression in a endian independent way and then the ones not accessed in the final result in an endian-specific way. 2016-01-08 Jakub Jelinek PR tree-optimization/69083 * tree-vect-slp.c (vect_get_constant_vectors): For VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's element type. If op is fold_convertible_p to vector_type's element type, use NOP_EXPR instead of VCE. 2016-01-08 Segher Boessenkool PR rtl-optimization/67778 PR rtl-optimization/68634 PR rtl-optimization/68909 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop block from the stack until done with it. Remove a superfluous bitmap set. Remove a superfluous bitmap test. 2016-01-07 Martin Sebor PR c/68966 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document constraint on the type of arguments. 2016-01-07 Andreas Tobler * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check unaligned_access on the gcc_options set. * config/arm/arm.c (arm_option_override_internal): Use SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. 2016-01-07 Uros Bizjak PR target/69140 * config/i386/i386.c (ix86_frame_pointer_required): Enable frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned. 2016-01-07 Uros Bizjak Revert 2016-01-06 Uros Bizjak PR target/69140 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid depending on frame_pointer_needed before remaining integer and SSE registers are saved. 2016-01-07 Sandra Loosemore PR 1078 * doc/extend.texi (Nvidia PDX Function Attributes): New section. 2016-01-07 H.J. Lu PR target/69171 * config/i386/sse.md (_sqrt2): Use the "xBm" constraint. (float2): Use round_nimm_scalar_predicate. (sse_cvtsi2ssq): Likewise. (sse_cvtss2si): Likewise. (sse_cvtss2siq): Likewise. (sse2_cvtsi2sdq): Likewise. (sse2_cvtsd2si): Likewise. (sse2_cvtsd2siq): Likewise. * config/i386/subst.md (round_nimm_scalar_predicate): New predicate. 2015-12-15 Bernd Schmidt PR middle-end/67639 * varasm.c (make_decl_rtl): Mark invalid register vars as DECL_EXTERNAL. PR rtl-optimization/66206 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx. All callers changed. 2016-01-07 Jakub Jelinek PR tree-optimization/69141 * tree-ssa-pre.c: Include langhooks.h. (eliminate_dom_walker::before_dom_children): Use lang_hooks.decl_printable_name instead of cgraph_node::get ()->name (). PR middle-end/68960 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy it and DECL_ALIGN too. 2016-01-06 Robert Suchanek * config/mips/mips-ftypes.def: Sort to lexicographical order. 2016-01-06 Uros Bizjak PR target/69140 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid depending on frame_pointer_needed before remaining integer and SSE registers are saved. 2015-01-06 Bill Schmidt * config/rs6000/vsx.md (*p9_vecload_): Replace VSX_M mode iterator with VSX_M2. (*p9_vecstore_): Likewise. (*vsx_le_permute_): Restrict to !TARGET_P9_VECTOR. (*vsx_le_perm_load_ for VSX_LE_128): Likewise. (*vsx_le_perm_store_ for VSX_LE_128): Likewise. (define_split for VSX_LE128 stores): Likewise. (define_peephole2 for TImode LE swaps): Likewise. (define_split for VSX_LE128 post-reload stores): Likewise. 2016-01-06 Marek Polacek PR sanitizer/69099 * convert.c (convert_to_integer_1): Adjust call to ubsan_instrument_float_cast. Use NULL_TREE instead of NULL. * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use EXPR instead of ARG. * ubsan.h (ubsan_instrument_float_cast): Adjust declaration. 2016-01-05 Sandra Loosemore PR 1078 * doc/extend.texi (RL78 Variable Attributes): New section. 2016-01-05 Marek Polacek PR c/69104 * builtins.c (get_memmodel): Use expansion point location rather than the input location. Call warning_at rather than warning. (expand_builtin_atomic_compare_exchange): Likewise. (expand_builtin_atomic_load): Likewise. (expand_builtin_atomic_store): Likewise. (expand_builtin_atomic_clear): Likewise. 2016-01-05 H.J. Lu PR target/68991 * config/i386/i386.c (ix86_expand_vector_logical_operator): Replace nonimmediate_operand with vector_operand. * config/i386/predicates.md (vector_operand): New predicate. (general_vector_operand): Replace nonimmediate_operand with vector_operand. * config/i386/sse.md: Replace nonimmediate_operand with vector_operand and m constraint with Bm constraint on SSE patterns with 16-byte memory operand. * config/i386/subst.md (round_nimm_predicate): Replace nonimmediate_operand with vector_operand. (round_saeonly_nimm_predicate): Likewise. (round_saeonly_nimm_scalar_predicate): New. 2016-01-05 H.J. Lu PR target/68991 * config/i386/constraints.md (Bm): New constraint. * config/i386/predicates.md (vector_memory_operand): New predicate. * config/i386/sse.md: Replace xm with xBm in plusminus and any_logic patterns. 2016-01-05 Sandra Loosemore PR 1078 * doc/extend.texi (V850 Function Attributes): New section. (V850 Variable Attributes): New section. 2016-01-05 Sandra Loosemore PR 1078 * doc/extend.texi (MicroBlaze Function Attributes): Document interrupt_handler and fast_interrupt attributes. 2016-01-05 Sergei Trofimovich PR other/60465 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64 for local symbolic operands. * config/ia64/predicates.md (local_symbolic_operand64): New predicate. 2016-01-05 Kyrylo Tkachov PR rtl-optimization/68651 * combine.c (combine_simplify_rtx): Canonicalize x + x into x << 1. 2016-01-05 Nathan Sidwell * alias.c (compare_base_decls): Use symtab_node::get. 2016-01-05 Nick Clifton PR target/68770 * ira-costs.c (copy_cost): Initialise the t_icode field of the secondary_reload_info structure. PR target/66655 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak decls if weak support is available. 2016-01-04 Martin Sebor * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model. 2016-01-04 Michael Meissner * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add OPTION_MASK_P9_DFORM. * config/rs6000/constraints.md (wo constraint): New constraint for ISA 3.0 (power9). * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support for wo constraint. (rs6000_init_hard_regno_mode_ok): Likewise. * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for wo constraint. * config/rs6000/altivec.md (altivec_vperm_): Clean up vperm expanders not to have constraints. Add support for ISA 3.0 xxperm instruction. Add support for fusing xxlor with xxperm. (altivec_vperm__internal): Likewise. (altivec_vperm_v8hiv16qi): Likewise. (altivec_vperm_v16q): Likewise. (altivec_vperm__uns): Likewise. (vperm_v8hiv4si): Likewise. (vperm_v16qiv8hi): Likewise. * doc/md.texi (RS/6000 constraints): Document wo constraint. 2016-01-04 Jakub Jelinek Update copyright years. * gcc.c (process_command): Update copyright notice dates. * gcov-dump.c (print_version): Ditto. * gcov.c (print_version): Ditto. * gcov-tool.c (print_version): Ditto. * gengtype.c (create_file): Ditto. * doc/cpp.texi: Bump @copying's copyright year. * doc/cppinternals.texi: Ditto. * doc/gcc.texi: Ditto. * doc/gccint.texi: Ditto. * doc/gcov.texi: Ditto. * doc/install.texi: Ditto. * doc/invoke.texi: Ditto. 2016-01-04 Eric Botcazou * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer modes larger than TImode as TImode if NEON is not enabled. 2016-01-04 Eric Botcazou PR target/69100 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit mode for %f0-%f31 only if TARGET_FPU. 2016-01-04 Eric Botcazou PR target/69072 * config/sparc/sparc.c (scan_record_type): Take into account subfields to compute the PACKED_P predicate. (function_arg_record_value): Minor tweaks. 2016-01-04 Thomas Preud'homme * doc/install.texi (--with-multilib-list): Describe the meaning of the option for arm*-*-* targets. 2016-01-03 Sandra Loosemore * doc/extend.texi (Common Function Attributes): Move docs for MSP430-specific attributes to.... (MSP430 Function Attributes): ...here. Delete the redundant entries and copy-edit the remaining text. (MSP430 Variable Attributes): Use uniform format for index entries and add a cross-reference to the corresponding function attribute docs. 2016-01-03 Vladimír Čunát * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -finite-math typo. (x86 Options): Likewise. 2016-01-01 Sandra Loosemore PR 1078 * extend.texi (Common Function Attributes) : New. * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer to corresponding attribute. 2016-01-01 Sandra Loosemore * doc/extend.texi (Common Function Attributes) : Move to correct alphabetization of table. Copy-edit and correct markup. : Likewise. : Likewise. : Likewise. * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>: Correct punctuation. (Code Gen Options) <-fno-plt>: Copy-edit. 2016-01-01 Bernd Edlinger PR target/68917 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of SI values. Explicitly convert SI to DI and vice-versa. 2016-01-01 Jakub Jelinek PR tree-optimization/69070 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST. PR sanitizer/69055 * ubsan.c (ubsan_instrument_float_cast): Call initialize_sanitizer_builtins. PR target/69015 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump). Copyright (C) 2016 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.