From 86a2db336a819376663e4a44141e569dcef21015 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 3 Jan 2013 10:47:48 +0100 Subject: [PATCH] ChangeLog rotation. From-SVN: r194840 --- gcc/ChangeLog | 35421 +------------------------------- gcc/ChangeLog-2012 | 35424 +++++++++++++++++++++++++++++++++ gcc/ada/ChangeLog | 8691 +------- gcc/ada/ChangeLog-2012 | 8694 ++++++++ gcc/cp/ChangeLog | 3064 +-- gcc/cp/ChangeLog-2012 | 3067 +++ gcc/fortran/ChangeLog | 2795 +-- gcc/fortran/ChangeLog-2012 | 2798 +++ gcc/testsuite/ChangeLog | 11180 +---------- gcc/testsuite/ChangeLog-2012 | 11183 +++++++++++ libgfortran/ChangeLog | 1273 +- libgfortran/ChangeLog-2012 | 1276 ++ libjava/ChangeLog | 237 +- libjava/ChangeLog-2012 | 240 + libstdc++-v3/ChangeLog | 4691 +---- libstdc++-v3/ChangeLog-1998 | 5 + libstdc++-v3/ChangeLog-1999 | 5 + libstdc++-v3/ChangeLog-2000 | 5 + libstdc++-v3/ChangeLog-2001 | 6 + libstdc++-v3/ChangeLog-2002 | 6 + libstdc++-v3/ChangeLog-2003 | 6 + libstdc++-v3/ChangeLog-2004 | 6 + libstdc++-v3/ChangeLog-2005 | 6 + libstdc++-v3/ChangeLog-2006 | 6 + libstdc++-v3/ChangeLog-2007 | 6 + libstdc++-v3/ChangeLog-2008 | 6 + libstdc++-v3/ChangeLog-2009 | 6 + libstdc++-v3/ChangeLog-2010 | 6 + libstdc++-v3/ChangeLog-2011 | 1 - libstdc++-v3/ChangeLog-2012 | 4693 +++++ 30 files changed, 67462 insertions(+), 67341 deletions(-) create mode 100644 gcc/ChangeLog-2012 create mode 100644 gcc/ada/ChangeLog-2012 create mode 100644 gcc/cp/ChangeLog-2012 create mode 100644 gcc/fortran/ChangeLog-2012 create mode 100644 gcc/testsuite/ChangeLog-2012 create mode 100644 libgfortran/ChangeLog-2012 create mode 100644 libjava/ChangeLog-2012 create mode 100644 libstdc++-v3/ChangeLog-2012 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2a5cb327e1..da7cc295e71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -131,35427 +131,8 @@ PR tree-optimization/55831 * tree-vect-loop.c (get_initial_def_for_induction): Use gsi_after_labels instead of gsi_start_bb. - -2012-12-27 David Edelsohn - - * config/rs6000/rs6000.c (rs6000_deligitimze_address): Do not - delegitimize TLS addresses on AIX. - (rs6000_legitimize_tls_address_aix): Append TLS symbol qualifier. - Set SYMBOL_FLAG_LOCAL on module symbol. - (output_toc): Do not append TLS symbol qualifier here. - * config/rs6000/rs6000.md (tls_get_addr_internal): Add GPR 4 to - clobbers. - -2012-12-27 Andreas Schwab - - * target.def (supports_function_versions): Fix typo. - -2012-12-26 Sriraman Tallam - - * doc/tm.texi.in (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Document - new target hook. - * doc/tm.texi: Regenerate. - * c-family/c-common.c (handle_target_attribute): Retain target attribute - for targets that support versioning. - * target.def (supports_function_versions): New hook. - * cp/class.c (add_method): Remove calls - to DECL_FUNCTION_SPECIFIC_TARGET. - * config/i386/i386.c (ix86_function_versions): Use target string - to check for function versions instead of target flags. - * (ix86_supports_function_versions): New function. - * (is_function_default_version): Check target string. - * TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS: New macro. - -2012-12-27 Steven Bosscher - - * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set. - -2012-12-25 John David Anglin - - PR target/53789 - * config/pa/pa.md (movsi): Reject expansion of TLS symbol references - after reload starts. - -2012-12-22 Jan Hubicka - - PR lto/54728 - * cgraph.h (symtab_real_symbol_p): Drop code looking for external functions. - * lto-streamer-out.c (output_symbol_p): New function. - (produce_symtab) Use it. - -2012-12-21 Martin Jambor - - PR tree-optimization/55355 - * tree-sra.c (type_internals_preclude_sra_p): Also check that - bit_position is small enough to fit a single HOST_WIDE_INT. - -2012-12-21 Eric Botcazou - - * rtlanal.c (volatile_insn_p): Delete commented out code. - (side_effects_p): Likewise. - (may_trap_p_1) : Return 1 again. - * target.def (unspec_may_trap_p): Adjust comment. - * targhooks.c (default_unspec_may_trap_p): Don't handle UNSPEC_VOLATILE. - * config/ia64/ia64.c (ia64_unspec_may_trap_p): Adjust to above change. - -2012-12-21 Vladimir Makarov - - PR middle-end/55775 - * lra-assigns.c (improve_inheritance): Do nothing after - LRA_MAX_INHERITANCE_PASSES pass. - * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Rename to - LRA_MAX_CONSTRAINT_ITERATION_NUMBER. Move to lra-int.h. - (MAX_INHERITANCE_PASSES): Rename to LRA_MAX_INHERITANCE_PASSES. - Move to lra-int.h. - * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Move from - lra-constraints.c. - (LRA_MAX_INHERITANCE_PASSES): Ditto. - -2012-12-21 Steve Ellcey - - PR bootstrap/54128 - * ira.c (build_insn_chain): Check only NONDEBUG instructions for - register usage. - -2012-12-21 David Edelsohn - - * varasm.c (bss_initializer_p): Remove static. - * output.h (bss_initializer_p): Declare. - * xcoffout.c (xcoff_tbss_section_name): Define. - * xcoffout.h (xcoff_tbss_section_name): Declare. - * config/rs6000/xcoff.h (TARGET_ENCODE_SECTION_INFO): Define. - (ASM_OUTPUT_TLS_COMMON): Merge strings. - * config/rs6000/rs6000.c (tls_private_data_section): New. - (output_toc): Only output CSECT decoration for TLS. - Output appropriate CSECT for data or bss. - (rs6000_xcoff_asm_init_sections) Define tls_private_data_section. - (rs6000_xcoff_select_section): Handle TLS bss and private data. - (rs6000_xcoff_file_start): Generate xcoff_tbss_section_name. - (rs6000_xcoff_encode_section_info): Strip SYMBOL_FLAG_HAS_BLOCK_INFO - from native TLS symbols. - -2012-12-21 Richard Biener - - PR rtl-optimization/52996 - * cprop.c (bypass_block): When loops are to be preserved - do not bypass loop headers. Revert earlier kludge to remove - loops when doing that. - -2012-12-21 Richard Biener - - PR bootstrap/54659 - * system.h: Include gmp.h. - * tree-ssa-loop-niter.c: Do not include gmp.h here. - * double-int.h: Likewise. - * realmpfr.h: Likewise. - -2012-12-21 Greta Yorsh - - * config/arm/cortex-a7.md: New file. - * config/arm/t-arm (MD_INCLUDES): Add cortex-a7.md. - * config/arm/arm.md: Include cortex-a7.md. - (generic_sched): Don't use generic scheduler for Cortex-A7. - (generic_vfp): Likewise. - * config/arm/arm.c: (TARGET_SCHED_REORDER): Use arm_sched_reorder. - (arm_sched_reorder,cortexa7_sched_reorder): New function. - (cortexa7_older_only,cortexa7_younger): Likewise. - (arm_issue_rate): Add Cortex-A7. - -2012-12-20 Ian Bolton - - * gcc/config/aarch64/aarch64.md - (*addsi3_aarch64_uxtw): New pattern. - (*addsi3_compare0_uxtw): New pattern. - (*add__si_uxtw): New pattern. - (*add__si_uxtw): New pattern. - (*add__shft_si_uxtw): New pattern. - (*add__mult_si_uxtw): New pattern. - (*add_si_multp2_uxtw): New pattern. - (*addsi3_carryin_uxtw): New pattern. - (*addsi3_carryin_alt1_uxtw): New pattern. - (*addsi3_carryin_alt2_uxtw): New pattern. - (*addsi3_carryin_alt3_uxtw): New pattern. - (*add_uxtsi_multp2_uxtw): New pattern. - (*subsi3_uxtw): New pattern. - (*subsi3_compare0_uxtw): New pattern. - (*sub__si_uxtw): New pattern. - (*sub_mul_imm_si_uxtw): New pattern. - (*sub__si_uxtw): New pattern. - (*sub__shft_si_uxtw): New pattern. - (*sub_si_multp2_uxtw): New pattern. - (*sub_uxtsi_multp2_uxtw): New pattern. - (*negsi2_uxtw): New pattern. - (*negsi2_compare0_uxtw): New pattern. - (*neg__si2_uxtw): New pattern. - (*neg_mul_imm_si2_uxtw): New pattern. - (*mulsi3_uxtw): New pattern. - (*maddsi_uxtw): New pattern. - (*msubsi_uxtw): New pattern. - (*mulsi_neg_uxtw): New pattern. - (*divsi3_uxtw): New pattern. - -2012-12-20 Jakub Jelinek - - PR middle-end/55750 - * gimplify.c (gimplify_self_mod_expr): Don't force lvalue to - pass is_gimple_min_lval. - -2012-12-20 Richard Henderson - Andreas Krebbel - - * config/s390/constraints.md (NxxDq, NxxSq): New. - * config/s390/predicates.md (contiguous_bitmask_operand): New. - * config/s390/s390.c (print_operand) ['e', 'f', 's', 't']: New - operand letters. - * config/s390/s390.md (bfstart, bfend): New mode attrs. - (*insv_zEC12_noshift): Use them. - (*insv_z10_noshift): Likewise. - (*insv_or_z10_noshift): Likewise. - - * config/s390/s390.md (*insv_l_di_reg_extimm): Un-macroize from :P. - - * config/s390/s390.md (*anddi3_cc): Add risbg alternative. - (*anddi3_cconly, *anddi3): Likewise. - (*andsi3, *andsi3_cconly, *andsi3_zarch): Likewise. - - * config/s390/s390.md (bitsize): New mode attr. - (*extzv, *extzv, *insv_zEC12, *insv_z10): Use it. - (extend2, zero_extendsi2): Likewise. - (zero_extenddi2, fixuns_trunc2): Likewise. - - * config/s390/predicates.md (nonzero_shift_count_operand): New. - * config/s390/s390-protos.h (s390_extzv_shift_ok): Declare. - * config/s390/s390.c (s390_extzv_shift_ok): New function. - * config/s390/s390.md (extzv): New expander. - (*extzv_zEC12, *extzv_z10): New insns. - (*pre_z10_extzv): Rename from *extzv; simplify with - nonzero_shift_count_operand. - (*extzv__srl, *extzv__sll): New insns. - - * config/s390/s390.md (IXOR): New code iterator. - (*rsbg__noshift): Rename from *insv_or_z10_noshift; - macro-ize to handle XOR too. - (*rsbg_di_rotl, *rsbg__srl, *rsbg__sll): - New patterns. - - * config/s390/s390.md (*insv_rnsbg_noshift, *insv_rnsbg_srl): New. - -2012-12-20 Thomas Schwinge - - PR bootstrap/55202 - * configure.ac : Use POSIX shell syntax. - * configure: Regenerate. - -2012-12-20 Andreas Krebbel - - PR target/55754 - * config/arm/arm.c (arm_canonicalize_comparison): Remove - op0_preserve_value check for zero_extend to and transformation. - -2012-12-20 Teresa Johnson - Jakub Jelinek - - PR gcov-profile/55734 - * gcov-io.c (gcov_read_summary): Use __builtin_popcount instead - of __builtin_popcountll when building libgcov.a, otherwise use - popcount_hwi. - (gcov_histo_index): When not building libgcov.a, use floor_log2 - instead of __builtin_clzll. - -2012-12-20 Richard Biener - - PR middle-end/55740 - * cfghooks.c (merge_blocks): Properly handle merging of - two loop headers. - -2012-12-20 Roland Stigge - Matthias Klose - - * config/rs6000/t-spe (MULTIARCH_DIRNAME): Remove. - * config/rs6000/t-linux (MULTIARCH_DIRNAME): Define name for - powerpc-linux-gnuspe. - -2012-12-19 Matthias Klose - - * config/i386/t-kfreebsd (MULTIARCH_DIRNAME): Add comma to - separate arguments in make function. - -2012-12-19 Uros Bizjak - Yuri Rumyantsev - - * config/i386/i386.h (enum ix86_tune_indices): Add - X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE. - (TARGET_AVOID_MEM_OPND_FOR_CMOVE): New define. - * config/i386/i386.c (initial_ix86_tune_features) - : Initialize. - * config/i386/i386.md (splitters to avoid cmove memory operands): New. - (peephole2s to avoid cmove memory operands): New. - -2012-12-19 Kyrylo Tkachov - - * config/arm/arm.md (f_minmaxs, f_minmaxd): New types. - * config/arm/vfp.md (smax3): New pattern. - (smin3): Likewise. - -2012-12-19 Richard Biener - - * targhooks.h (default_canonicalize_comparison): Fix prototype. - * targhooks.c (default_canonicalize_comparison): Define. - -2012-12-19 Richard Biener - - PR tree-optimization/55736 - PR tree-optimization/55703 - * gimplify.c (prune_expr_location): New function. - (unshare_expr_without_location): Likewise. - * tree.h (unshare_expr_without_location): Declare. - * ipa-prop.c (prune_expression_for_jf): Remove. - (prune_expression_for_jf_1): Likewise. - (ipa_set_jf_constant): Use unshare_expr_without_location. - (ipa_set_jf_arith_pass_through): Likewise. - (determine_known_aggregate_parts): Likewise. - * tree-switch-conversion.c (build_constructors): Use - unshare_expr_without_location on all constructor elements. - -2012-12-19 Andreas Krebbel - - * target.def: Define canonicalize_comparison hook. - * targhooks.h (default_canonicalize_comparison): New prototype. - * targhooks.c (default_canonicalize_comparison): New function. - * doc/tm.texi: Add documentation for the new target hook. - * doc/tm.texi.in: Likewise. - * combine.c (try_combine): Adjust to use the target hook. - * config/alpha/alpha.h (CANONICALIZE_COMPARISON): Remove macro - definition. - * config/alpha/alpha.c (alpha_canonicalize_comparison): New function. - (TARGET_CANONICALIZE_COMPARISON): New macro definition. - * config/arm/arm-protos.h (arm_canonicalize_comparison): Remove - prototype. - * config/arm/arm.c (arm_canonicalize_comparison): Add new parameter. - (TARGET_CANONICALIZE_COMPARISON): New macro definition. - * config/arm/arm.h (CANONICALIZE_COMPARISON): Remove macro definition. - * config/s390/s390-protos.h (s390_canonicalize_comparison): Remove - prototype. - * config/s390/s390.c (s390_canonicalize_comparison): Add new parameter. - (TARGET_CANONICALIZE_COMPARISON): New macro definition. - * config/s390/s390.h (CANONICALIZE_COMPARISON): Remove macro definition. - * config/sh/sh-protos.h (sh_canonicalize_comparison): Remove prototype. - * config/sh/sh.c (sh_canonicalize_comparison): Add new prototype. New - function overloading the old one. - (TARGET_CANONICALIZE_COMPARISON): New macro definition. - * config/sh/sh.h (CANONICALIZE_COMPARISON): Remove macro definition. - * config/spu/spu.c (spu_canonicalize_comparison): New function. - (TARGET_CANONICALIZE_COMPARISON): New macro definition. - * config/spu/spu.h (CANONICALIZE_COMPARISON): Remove macro definition. - -2012-12-19 Jakub Jelinek - - PR debug/55730 - * dwarf2out.c (mem_loc_descriptor): Ignore CLOBBER. - * valtrack.c (gen_lowpart_for_debug): New function. - (propagate_for_debug): Temporarily set rtl_hooks.gen_lowpart_no_emit - to gen_lowpart_for_debug. - -2012-12-18 Jan Hubicka - - PR tree-optimization/55683 - * ipa-prop.c (try_make_edge_direct_virtual_call): Look into constants - for binfo. - -2012-12-19 Terry Guo - - * config/arm/arm.c (thumb_find_work_register): Check argument - register number based on current PCS. - -2012-12-18 Jakub Jelinek - - PR target/55562 - * sbitmap.c (bitmap_and, bitmap_xor, bitmap_ior): Return whether - dst sbitmap changed even if it doesn't have popcount. - -2012-12-18 James Greenhalgh - - * config/aarch64/aarch64.md (insv_imm): Add modes - for source operands. - -2012-12-18 James Greenhalgh - - * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): - Remove unused variables. - (aarch64_split_compare_and_swap): Likewise. - -2012-12-18 Kyrylo Tkachov - - * config/arm/driver-arm.c (arm_cpu_table): Add Cortex-A7. - -2012-12-18 Aldy Hernandez - - PR other/54324 - * doc/install.texi (Tools/packages necessary for building GCC): - Suggest --disable-stage1-checking for older GCC's. - -2012-12-18 Aldy Hernandez - - PR other/54324 - * tree-ssa-coalesce.c (struct ssa_name_var_hash): Remove "union" - from template parameter. - -2012-12-18 Richard Biener - - PR middle-end/54838 - * cfgloopmanip.c (fix_loop_structure): Re-discover latch - edges first and mark loops for removal if no latch edges remain. - Properly re-create LOOPS_HAVE_FALLTHRU_PREHEADERS. - * loop-init.c (loop_optimizer_finalize): Set - LOOPS_MAY_HAVE_MULTIPLE_LATCHES. - -2012-12-18 Richard Biener - - PR tree-optimization/55555 - * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Properly - analyze evolution of the index for the loop it is used in. - * tree-scalar-evolution.c (instantiate_scev_name): Take - inner loop we will be creating a chrec for. Generalize - fix for PR40281 and prune invalid SCEVs. - (instantiate_scev_poly): Likewise - pass down inner loop - we will be creating a chrec for. - (instantiate_scev_binary): Take and pass through inner loop. - (instantiate_array_ref): Likewise. - (instantiate_scev_convert): Likewise. - (instantiate_scev_not): Likewise. - (instantiate_scev_3): Likewise. - (instantiate_scev_2): Likewise. - (instantiate_scev_1): Likewise. - (instantiate_scev_r): Likewise. - (resolve_mixers): Adjust. - (instantiate_scev): Likewise. - -2012-12-18 Jakub Jelinek - - PR debug/55717 - * rtlhooks-def.h (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Define to - gen_lowpart_if_possible. - (gen_lowpart_no_emit_general): Remove prototype. - * rtlhooks.c (gen_lowpart_no_emit_general): Removed. - * simplify-rtx.c (simplify_unary_operation_1, - simplify_binary_operation_1): Continue simplifying if - rtl_hooks.gen_lowpart_no_emit returns NULL_RTX. - * dwarf2out.c (mem_loc_descriptor) : Handle - truncation like lowpart SUBREG. - -2012-12-17 Gerald Pfeifer - - * doc/contrib.texi (Contributors): Update Kaveh Ghazi's entry; - remove broken link to Rutgers University. - -2012-12-17 Jan-Benedict Glaw - - * varasm.c (pending_assemble_externals_processed): Guard - with ASM_OUTPUT_EXTERNAL. - -2012-12-17 Andrew Stubbs - Ulrich Weigand - - * config/arm/arm.md (zero_extenddi2): Add extra alternatives - for NEON registers. - Add alternative for one-instruction extend-in-place. - (extenddi2): Likewise. - Add constraints for Thumb-mode memory loads. - Prevent extend splitters doing NEON alternatives. - * config/arm/iterators.md (qhs_extenddi_cstr, qhs_zextenddi_cstr): - Adjust constraints to add new alternatives. - * config/arm/neon.md: Add splitters for zero- and sign-extend. - -2012-12-17 Greta Yorsh - - * config/arm/arm.md (type): Add "simple_alu_shift" to attribute "type". - (core_cycles): Update for simple_alu_shift. - (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Use simple_alu_shift - instead of a CPU-speicific condition for "type" attribute. - (thumb1_zero_extendqisi2_v6,arm_zero_extendqisi2_v6): Likewise. - (thumb1_extendhisi2,arm_extendhisi2_v6,arm_extendqisi_v6): Likewise. - (thumb1_extendqisi2): Likewise. - * config/arm/thumb2.md (thumb2_extendqisi_v6): Likewise. - (thumb2_zero_extendhisi2_v6,thumb2_zero_extendqisi2_v6) Likewise. - * config/arm/arm1020e.md (alu_shift_op): Use simple_alu_shift. - * config/arm/arm1026ejs.md (alu_shift_op): Likewise. - * config/arm/arm1136jfs.md (11_alu_shift_op): Likewise. - * config/arm/arm926ejs.md (9_alu_op): Likewise. - * config/arm/cortex-a15.md (cortex_a15_alu_shift): Likewise. - * config/arm/cortex-a5.md (cortex_a5_alu_shift): Likewise. - * config/arm/cortex-a8.md (cortex_a8_alu_shift,cortex_a8_mov): Likewise. - * config/arm/cortex-a9.md (cortex_a9_dp,cortex_a9_dp_shift): Likewise. - * config/arm/cortex-m4.md (cortex_m4_alu): Likewise. - * config/arm/cortex-r4.md (cortex_r4_alu_shift): Likewise. - * config/arm/fa526.md (526_alu_shift_op): Likewise. - * config/arm/fa606te.md (fa606te_core): Likewise. - * config/arm/fa626te.md (626te_alu_shift_op): Likewise. - * config/arm/fa726te.md (726te_alu_shift_op): Likewise. - * config/arm/fmp626.md (mp626_alu_shift_op): Likewise. - -2012-12-17 Richard Biener - - PR middle-end/54781 - * alias.c (ao_ref_from_mem): More appropriately constrain the - base object we feed to the tree oracle. Remove dead code. - -2012-12-17 James Greenhalgh - Tejas Belagod - - * config/aarch64/aarch64.c - (aarch64_autovectorize_vector_sizes): New. - (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define. - -2012-12-16 John David Anglin - - PR middle-end/55709 - Forward port from 4.7 branch: - 2012-04-10 John David Anglin - - PR middle-end/52894 - * varasm.c (process_pending_assemble_externals): Set - pending_assemble_externals_processed true. - (assemble_external): Call assemble_external_real if the pending - assemble externals have been processed. - -2012-12-16 Eric Botcazou - Tomash Brechko - - PR target/55673 - * config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed - handling of before and after cases. - * config/sparc/sync.md (atomic_store): Fix pasto. - -2012-12-16 Eric Botcazou - - PR rtl-optimization/55630 - * expr.c (expand_assignment): Do not call copy_blkmode_to_reg to move - BLKmode return values to the return register. - -2012-12-15 Alexandre Oliva - - PR libmudflap/53952 - * expr.c (mem_ref_refers_to_non_mem_p): Factor out - implementation into... - (addr_expr_of_non_mem_decl_p_1): ... this new function. - (addr_expr_of_non_mem_decl_p): New. - * tree.h (addr_expr_of_non_mem_decl_p): Declare. - * tree-mudflap.c (mf_xform_derefs_1): Don't change MEM_REFs - and TARGET_MEM_REFs that have an ADDR_EXPR of a non-mem DECL - as base operand. - -2012-12-14 Yvan Roux - - * optabs.c (expand_atomic_store): Elide redundant model test. - -2012-12-14 Teresa Johnson - - PR gcov-profile/55674 - * lto-cgraph.c (merge_profile_summaries): Set min correctly the - first time we merge into a histogram entry. - -2012-12-14 Richard Biener - - PR tree-optimization/55684 - * tree-ssa-loop-ivcanon.c (remove_redundant_iv_tests): Handle - gracefully the case where we cannot compute the number of - iterations at an exit. - -2012-12-14 Richard Biener - - PR tree-optimization/55687 - * tree-chrec.h (no_evolution_in_loop_p): Properly use - tree_contains_chrecs. - -2012-12-13 Richard Henderson - - PR middle-end/55492 - * optabs.c (expand_atomic_load): Emit acquire barrier after the load. - -2012-12-13 Richard Henderson - - * config/alpha/alpha.c (alpha_pad_function_end): Consider barriers - when looking for NOTE_INSN_CALL_ARG_LOCATION. - -2012-12-13 Richard Biener - - PR middle-end/53476 - * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7 - behavior. - -2012-12-13 Kyrylo Tkachov - - * config/arm/unspecs.md: Add copyright notice. - -2012-12-13 Jakub Jelinek - - * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Avoid - -Wsign-compare warning. - -2012-12-13 Richard Biener - - PR lto/55660 - * tree-streamer.c (record_common_node): Check that we are not - recursively pre-loading nodes we want to skip. Handle - char_type_node appearing as part of va_list_type_node. - -2012-12-13 Jakub Jelinek - - PR gcov-profile/55650 - * coverage.c (coverage_obj_init): Return false if no functions - are being emitted. - -2012-12-13 Steven Bosscher - - * bitmap.c (struct bitmap_descriptor): Remove forward declaration. - (struct bitmap_head_def): Remove desc pointer. Add descriptor_id - field. Reorder fields for pointer alignment. - * bitmap.c: Include vec.h. - (struct bitmap_descriptor): Rename to bitmap_descriptor_d. - (bitmap_descriptor): New typedef, pointer to bitmap_descriptor_d. - Update all struct bitmap_descriptor references. - (next_bitmap_desc_id): New running index for bitmap desciptors. - (bitmap_descriptors): Vec of all bitmap descriptors by descriptor id. - (hash_descriptor, eq_descriptor): Update for struct bitmap_descriptor - change. - (bitmap_descriptor): Rename function to get_bitmap_descriptor. - Stuff newly allocated bitmap descriptor into bitmap_descriptors. - Set the bitmap descriptor id. - (bitmap_register): Lookup bitmap desciptor and store its ID in - the passed bitmap. - (register_overhead): Likewise. - (bitmap_find_bit): Lookup descriptor by id in bitmap_descriptors. - (print_statistics): Update for struct bitmap_descriptor change. - - * Makefile.in: Fix bitmap.o dependencies. - -2012-12-13 Richard Biener - - * tree-ssa-pre.c (get_representative_for): Adjust dumping. - Mark created SSA names for release. - (eliminate_bb): Insert only when expr is not NULL. - -2012-12-12 Jakub Jelinek - - PR debug/55665 - * tree-inline.c (remap_decls): Change nonlocalized_list - to pointer to pointer to vector from pointer to vector. - (remap_block): Pass address of BLOCK_NONLOCALIZED_VARS. - - PR sanitizer/55508 - * builtin-attrs.def (ATTR_TMPURE_NOTHROW_LEAF_LIST, - ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): New. - * asan.c (ATTR_TMPURE_NOTHROW_LEAF_LIST, - ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): Define. - * sanitizer.def: Make __asan_report_* and __asan_handle_no_return - builtins tm pure. - -2012-12-12 Steve Ellcey - - * config/mips/mips.c (mips_option_override): Set - mips_dbx_regno entries to IGNORED_DWARF_REGNUM by default. - -2012-12-12 Steven Bosscher - - * graph.c: Include sbitmap.h and cfgloop.h. - (draw_cfg_nodes_no_loops): New function to dump basic blocks in - topological order if the function does not have a loop tree. - Handle unreachable blocks also. - (draw_cfg_nodes_for_loop): New function to dump basic blocks in - one loop tree node as a named cluster of nodes. - (draw_cfg_nodes): New function to draw all CFG nodes. - (draw_cfg_edges): New function to draw all CFG edges. - (print_graph_cfg): Simplify using the new functions. - * Makefile.in (graph.o): Fix dependencies. - -2012-12-12 Steven Bosscher - - * dumpfile.h (enum tree_dump_index): Remove TDI_vcg. - * dumpfile.c (dump_files[]): Remove entry for TDI_vcg. - * tree-cfg.c (gimple_cfg2vcg): Remove. - (build_gimple_cfg): Don't call it. - * doc/invoke.texi (-fdump-tree-vcg): Remove documentation. - Correct GraphViz documentation, it does handle multiple functions - in a single dump. - -2012-12-12 Zdenek Dvorak - - PR tree-optimization/55481 - * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall - back to general rewriting if we cannot leave an original biv - definition alone. - -2012-12-12 Jakub Jelinek - - PR target/55659 - Revert - 2012-12-11 Jakub Jelinek - - PR middle-end/43631 - * var-tracking.c (emit_note_insn_var_location): If insn is followed - by BARRIER, put note after the BARRIER. - (next_non_note_insn_var_location): Skip over BARRIERs. - (emit_notes_in_bb): If call is followed by BARRIER, put note after - the BARRIER. - - 2012-12-06 Jakub Jelinek - - PR middle-end/43631 - * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb): - Clear BLOCK_FOR_INSN on notes emitted in between basic blocks, - don't adjust BB_END when inserting note after BB_END of some bb. - -2012-12-12 Steven Bosscher - Jakub Jelinek - - PR middle-end/52640 - * varasm.c (pending_assemble_externals_set): New pointer set. - (process_pending_assemble_externals): Destroy the pointer set. - (assemble_external): See if decl is in pending_assemble_externals_set, - and add it to pending_assemble_externals if necessary. - (init_varasm_once): Allocate pending_assemble_externals_set. - -2012-12-12 Jakub Jelinek - - PR fortran/55633 - * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): - Ignore bounds on which bound += double_int_one overflowed. - -2012-12-11 Eric Botcazou - - PR target/54121 - * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto. - (tldo_stb_sp64): Likewise. - (tldo_sth_sp32): Likewise. - (tldo_sth_sp64): Likewise. - (tldo_stw_sp32): Likewise. - (tldo_stw_sp64): Likewise. - (tldo_stx_sp64): Likewise. - -2012-12-11 Jakub Jelinek - - PR rtl-optimization/55193 - * lra-constraints.c (loc_equivalence_callback): New function. - (lra_constraints): Call simplify_replace_fn_rtx instead of - loc_equivalence_change_p on DEBUG_INSNs. - -2012-12-11 Kyrylo Tkachov - - PR target/55642 - * config/arm/thumb2.md (*thumb2_abssi2): - Set ce_count attribute to 2. - (*thumb2_neg_abssi2): Likewise. - -2012-12-11 Jakub Jelinek - - * varasm.c (get_variable_section): Don't return lcomm_section - for asan_protect_global decls. - * asan.c (asan_protect_global): Only avoid public common variables. - Don't call get_variable_section here. - - PR middle-end/43631 - PR bootstrap/55615 - * var-tracking.c (emit_note_insn_var_location): If insn is followed - by BARRIER, put note after the BARRIER. - (next_non_note_insn_var_location): Skip over BARRIERs. - (emit_notes_in_bb): If call is followed by BARRIER, put note after - the BARRIER. - - * sanitizer.def: Add comment about importance of ordering of - BUILT_IN_ASAN_REPORT* builtins. - * cfgcleanup.c (old_insns_match_p): Don't cross-jump __asan_report_* - builtins. - - * sanitizer.def (BUILT_IN_ASAN_HANDLE_NO_RETURN): New builtin. - * asan.c (instrument_builtin_call): Change is_gimple_builtin_call - gcc_assert to gcc_checking_assert. - (maybe_instrument_call): Imit __builtin___asan_handle_no_return () - before noreturn calls other than __builtin_trap () and - __builtin_unreachable (). - -2012-12-11 Richard Biener - - PR other/54324 - * doc/install.texi (Tools/packages necessary for building GCC): - State ISO C++98 host compiler requirement. Increment minimum - GCC version required for building all languages for a cross-compiler - to 3.4 or later. - -2012-12-11 Richard Biener - - PR tree-optimization/55079 - * tree-vrp.c (extract_range_from_binary_expr_1): Handle MAX/MIN_EXPR - for more cases. - (register_edge_assert_for_2): Register asserts for post-in/decrement - tests. - (check_array_ref): Dump what expression we emit array bound - warnings for. - (search_for_addr_array): Likewise. - -2012-12-11 Eric Botcazou - - * tree-ssa-loop-ivopts.c (prepare_decl_rtl) : Generate RTL - only for a DECL which HAS_RTL_P. - -2012-12-11 Andreas Krebbel - - * config/s390/predicates.md ("execute_operation"): New predicate. - * config/s390/s390.md ("*execute_rl", "*execute"): Use the new - predicate. - -2012-12-10 Xinliang David Li - - * config/i386/i386.c: Enable push/pop in pro/epilogue for modern CPUs. - -2012-12-10 Steve Ellcey - - * config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option. - -2012-12-10 Steve Ellcey - - PR target/54061 - * rtl.h (IGNORED_DWARF_REGNUM): New. - * dwarf2out.c (reg_loc_descriptor): Check for IGNORED_DWARF_REGNUM. - (mem_loc_descriptor): Ditto. - * config/mips/mips.h (ALL_COP_REG_FIRST): New. - (ALL_COP_REG_LAST): New. - (ALL_COP_REG_NUM): Redefine using above macros. - * config/mips/mips.c (mips_option_override): Set mips_dbx_regno - coprocessor entries to IGNORED_DWARF_REGNUM. - -2012-12-10 H.J. Lu - - PR lto/55466 - * lto-symtab.c (lto_symtab_merge_decls_1): Don't record the - prevailing variable. - * lto.c (lto_register_var_decl_in_symtab): Don't record static - variables. - (lto_main): Record the global variables if WPA isn't enabled. - -2012-12-10 Richard Biener - - PR tree-optimization/55107 - * tree-ssa-pre.c (struct pre_stats): Remove constified field. - (bitmap_set_replace_value): Add gcc_unreachable. - (do_regular_insertion): Re-write all_same handling. Insert - an assignment instead of a PHI in this case. - (eliminate_bb): Record availability also for SSA names defined - by a constant. - (do_pre): Do not record constified events. - (execute_fre): Likewise. - -2012-12-10 Andreas Krebbel - - * config/spu/spu.md: Replace "operands" with "operands != NULL" in - insn conditions. - -2012-12-10 Jakub Jelinek - - * asan.c (asan_init_shadow_ptr_types): Move earlier in the file. - Call initialize_sanitizer_builtins at the end. - (asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0]) - as character type instead of char_type_node. - (asan_emit_stack_protection): Call asan_init_shadow_ptr_types - if shadow_ptr_types isn't initialized. - (asan_protect_global): Return true for STRING_CSTs except those - created by asan_pp_string. - (count_string_csts, add_string_csts): New functions. - (struct asan_add_string_csts_data): New type. - (asan_finish_file): Clear flag_asan at the beginning, restore at the - end. Traverse constant_pool_htab () to look for protected - STRING_CSTs. Don't call initialize_sanitizer_builtins, - instead call asan_init_shadow_ptr_types if shadow_ptr_types isn't - initialized yet. - (asan_instrument): Don't call initialize_sanitizer_builtins. - * varasm.c (output_constant_def_contents): If STRING_CST should be - asan protected, align it sufficiently and emit padding after it. - (categorize_decl_for_section): If flag_asan, don't put STRING_CSTs - that should be asan protected into mergeable sections. For - -fmerge-all-constants, ignore it for -fmudflap or if decl is - asan protected. - -2012-12-10 Kyrylo Tkachov - - * config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm, - Vrintz to type. - (type features): Add Requires_arch type constructor. - (ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features. - * config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn, - Vrinta, Vrintp, Vrintm, Vrintz, Vrintx. - * config/arm/neon-testgen.ml (effective_target): Define check for - Requires_arch 8. - * config/arm/neon-gen.ml (print_feature_test_start): Handle - Requires_arch. - (print_feature_test_end): Likewise. - Add 2012 to Copyright notice. - * doc/arm-neon-intrinsics.texi: Regenerate. - * config/arm/arm_neon.h: Regenerate. - -2012-12-10 Kai Tietz - - * stmt.c (expand_sjlj_dispatch_table): Fix off by one. - - PR target/53912 - * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t. - (expand_case): Likewise. - - PR target/53912 - * print-tree.c (print_node): Cast from pointer via uintptr_t. - -2012-12-10 Jakub Jelinek - - * asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs - accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE. - -2012-12-08 Eric Botcazou - - * lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of - variables in the global constant pool. - -2012-12-08 Steven Bosscher - - PR rtl-optimization/55158 - * sched-rgn.c (bb_state_array, bb_state): Add some explaining - comment, and initialize to NULL explicitly. - (realloc_bb_state_array): New function. - (free_bb_state_array): New function. - (schedule_region): Call realloc_bb_state_array after schedule_block. - (sched_rgn_init): Use realloc_bb_state_array to initialize bb_state. - (sched_rgn_finish): Use free_bb_state_array to free it. - -2012-12-08 Eric Botcazou - - * tree-ssa-loop-im.c (for_each_index) : New case. - -2012-12-07 Sriraman Tallan - - * toplev.c (process_options): Do not warn when -ffunction-sections - and -fprofile are used together. - -2012-12-07 Steven Bosscher - - * ree.c (struct ext_cand): Remove GTY markers. - -2012-12-07 Vladimir Makarov - - PR rtl-optimization/55141 - * lra-constraints.c (lra_constraints): Use biggest mode for - df_set_regs_ever_live. - -2012-12-07 Jan Hubicka - - * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND - parameter. - (try_unroll_loop_completely) Update. - -2012-12-07 Jakub Jelinek - - PR fortran/55395 - * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL - for -g for any kind of debug info. - -2012-12-07 Richard Biener - - PR tree-optimization/54886 - * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly - free all memory. - -2012-12-07 Martin Jambor - - PR middle-end/55078 - * ipa-inline-transform.c (inline_call): Turn #if 0 to - #ifdef ENABLE_CHECKING. - * ipa-prop.c (try_make_edge_direct_simple_call): Use - ipa_value_from_jfunc. - (try_make_edge_direct_virtual_call): Likewise. - (update_indirect_edges_after_inlining): Lookup new_root_info and pass - it to the functions above. - -2012-12-07 Martin Jambor - - PR tree-optimization/55590 - * tree-sra.c (build_ref_for_offset): Use get_object_alignment_1 to - get base alignment. - -2012-12-06 Uros Bizjak - H.J. Lu - - PR target/55597 - * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode, - before using it as insn or call equivalent. - -2012-12-06 Peter Bergner - - * config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define. - * config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function. - * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN. - -2012-12-06 Jakub Jelinek - - PR fortran/55395 - * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL - if -g and emitting DWARF2+. - -2012-12-06 Pat Haugen - - * config/rs6000/rs6000.c (rs6000_option_override_internal): Set - default loop peeling limits. - -2012-12-06 Jason Merrill - - PR c++/55032 - PR c++/55245 - * tree.c (build_array_type_1): Re-layout if we found it in the - hash table. - -2012-12-06 Jack Howarth - - PR 55599/sanitizer - * config/darwin.h (LINK_COMMAND_SPEC_A): Remove static libasan support. - -2012-12-06 Jakub Jelinek - - PR middle-end/43631 - * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb): - Clear BLOCK_FOR_INSN on notes emitted in between basic blocks, - don't adjust BB_END when inserting note after BB_END of some bb. - - PR c++/55137 - * fold-const.c (fold_binary_loc) : Don't introduce - TREE_OVERFLOW through reassociation. If type doesn't have defined - overflow, but one or both of the operands do, use the wrapping type - for reassociation and only convert to type at the end. - -2012-12-06 Richard Biener - - * gimple-fold.c (fold_stmt_1): Remove code handling folding stmts away. - -2012-12-06 Kyrylo Tkachov - - * doc/sourcebuild.texi: Document arm_v8_neon_ok. - -2012-12-06 Kyrylo Tkachov - - * config/arm/arm.c (neon_itype): Define NEON_RINT enum element. - (neon_builtin_data): Register vrintn, vrinta, vrintp, vrintm, - vrintz, vrintx neon builtins. - (arm_init_neon_builtins): Handle NEON_RINT. - (arm_expand_neon_builtin): Likewise. - * config/arm/unspecs.md: New file. - * config/arm/arm.md ("unspec"): Move to unspecs.md. - * config/arm/iterators.md (NEON_VRINT): New int iterator. - (nvrint_variant): New int attribute. - * config/arm/neon.md - (neon_vrint): New pattern. - ("unspec"): Move to unspecs.md. - * config/arm/iwmmxt2.md ("unspec"): Move to unspecs.md. - -2012-12-05 John David Anglin - - * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify - opaque cond in all call insns. - -2012-12-05 Steven Bosscher - - PR rtl-optimization/55604 - * lra-lives.c (lra_create_live_ranges): If there are no referenced - pseudos left, do not compute live ranges. - -2012-12-05 Steven Bosscher - - * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation. - * doc/tm.texi: Regenerate. - * regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer - existing files global.c and local-alloc.c. - * regmove.c (copy_src_to_dest): Likewise. - * function.h (struct rtl_data): Likewise. - * ira-color.c (allocno_priority_compare_func): Likewise. - * regstat.c (regstat_compute_ri): Likewise. - * config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h, - config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h, - config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h, - config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h, - config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h, - config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise. - -2012-12-05 Aldy Hernandez - - PR target/54160 - * config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H). - * config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__ when - in obj mode. - Include libcpp/internal.h. - -2012-12-05 Michael Eager - - PR rtl-optimization/54739 - * config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete - patterns. - -2012-12-05 James Greenhalgh - - * config/aarch64/aarch64-simd-builtins.def: Add new builtins. - * config/aarch64/aarch64-simd.md (simd_type): Add uzp. - (aarch64_): New. - * config/aarch64/aarch64.c (aarch64_evpc_trn): New. - (aarch64_evpc_uzp): Likewise. - (aarch64_evpc_zip): Likewise. - (aarch64_expand_vec_perm_const_1): Check for trn, zip, uzp patterns. - * config/aarch64/iterators.md (unspec): Add neccessary unspecs. - (PERMUTE): New. - (perm_insn): Likewise. - (perm_hilo): Likewise. - -2012-12-05 James Greenhalgh - - * config/aarch64/aarch64-protos.h - (aarch64_split_combinev16qi): New. - (aarch64_expand_vec_perm): Likewise. - (aarch64_expand_vec_perm_const): Likewise. - * config/aarch64/aarch64-simd.md (vec_perm_const): New. - (vec_perm): Likewise. - (aarch64_tbl1): Likewise. - (aarch64_tbl2v16qi): Likewise. - (aarch64_combinev16qi): New. - * config/aarch64/aarch64.c - (aarch64_vectorize_vec_perm_const_ok): New. - (aarch64_split_combinev16qi): Likewise. - (MAX_VECT_LEN): Define. - (expand_vec_perm_d): New. - (aarch64_expand_vec_perm_1): Likewise. - (aarch64_expand_vec_perm): Likewise. - (aarch64_evpc_tbl): Likewise. - (aarch64_expand_vec_perm_const_1): Likewise. - (aarch64_expand_vec_perm_const): Likewise. - (aarch64_vectorize_vec_perm_const_ok): Likewise. - (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Likewise. - * config/aarch64/iterators.md - (unspec): Add UNSPEC_TBL, UNSPEC_CONCAT. - (V_cmp_result): Add mapping for V2DF. - -2012-12-05 Yufeng Zhang - - * config/aarch64/aarch64.c (aarch64_simd_mangle_map_entry): New - typedef. - (aarch64_simd_mangle_map): New table. - (aarch64_mangle_type): Locate and return the mangled name for - a given AdvSIMD vector type. - -2012-12-05 Yufeng Zhang - - * config/aarch64/aarch64.c (aarch64_mangle_type): New function. - (TARGET_MANGLE_TYPE): Define. - -2012-12-05 James Greenhalgh - - * config/aarch64/aarch64-builtins.c - (aarch64_builtin_vectorized_function): New. - * config/aarch64/aarch64-protos.h - (aarch64_builtin_vectorized_function): Declare. - * config/aarch64/aarch64-simd-builtins.def (frintz, frintp): Add. - (frintm, frinti, frintx, frinta, fcvtzs, fcvtzu): Likewise. - (fcvtas, fcvtau, fcvtps, fcvtpu, fcvtms, fcvtmu): Likewise. - * config/aarch64/aarch64-simd.md - (aarch64_frint_): New. - (2): Likewise. - (aarch64_fcvt): Likewise. - (l2): Likewise. - * config/aarch64/aarch64.c (TARGET_VECTORIZE_BUILTINS): Define. - (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise. - * config/aarch64/aarch64.md - (btrunc2, ceil2, floor2) - (round2, rint2, nearbyint2): Consolidate as... - (2): ...this. - (lceil2, lfloor2) - (lround2) - (lrint2): Consolidate as... - (l2): ... this. - * config/aarch64/iterators.md (fcvt_target): New. - (FCVT_TARGET): Likewise. - (FRINT): Likewise. - (FCVT): Likewise. - (frint_pattern): Likewise. - (frint_suffix): Likewise. - (fcvt_pattern): Likewise. - -2012-12-05 Steven Bosscher - - * passes.c (pass_init_dump_file): Only open a clean graph dump file if - the dump was not already initialized. - - Revert: - 2012-12-03 Steven Bosscher - * passes.c (finish_optimization_passes): Don't finish graph dumps here. - (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps. - (execute_one_pass): Don't set up graph dumps here. - -2012-12-05 Richard Biener - - PR lto/55525 - * gimple-streamer-in.c (input_gimple_stmt): Fixup ARRAY_REFs as well. - -2012-12-04 Ian Lance Taylor - - * godump.c (find_dummy_types): Output a dummy type if we couldn't - output the real type. - -2012-12-04 Steven Bosscher - - * rtl.h (print_insn_with_notes): Remove prototype. - (rtl_dump_bb_for_graph): New prototype. - * sched-vis.c (print_insn_with_notes): Make static again. Fix - printing of notes. - (rtl_dump_bb_for_graph): New function. - * cfghooks.h (struct cfg_hooks) : New hook. - (dump_bb_for_graph): New prototype. - * cfghooks.c (dump_bb_for_graph): New function. - * tree-cfg.c (gimple_cfg_hooks): Register gimple_dump_bb_for_graph - as dump_bb_for_graph hook implementation for GIMPLE. - * cfgrtl.c (rtl_cfg_hooks): Likewise for rtl_dump_bb_for_graph. - (cfg_layout_rtl_cfg_hooks): Likewise. - * graph.c (draw_cfg_node): Don't include sbitmap.h, rtl.h, tree.h, - gimple.h, and gimple-pretty-print.h. - (draw_cfg_node, draw_cfg_node_succ_edges): Use the uniqe function - definition number instead of the function declaration UID. - (print_graph_cfg): Take a struct function instead of a tree. - Use the dump_bb_for_graph hook to dump the basic block content. - * graph.h (print_graph_cfg): Update prototype. - * passes.c (execute_function_dump): Update print_graph_cfg call. - * Makefile.in (graph.o): Fixup dependencies. - -2012-12-04 Marcus Shawcroft - - * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set - TYPE_STUB_DECL. - -2012-12-04 Andreas Krebbel - - * config/s390/s390.c (s390_select_ccmode): Enable using CC of - x + imm for higher immediates on z9-109 upwards. - -2012-12-04 Richard Earnshaw - - * arm.opt (cirrus-fix-invalid-insns): Delete option. - * invoke.texi (cirrus-fix-invalid-insns): Remove documentation. - -2012-12-04 Jakub Jelinek - - * tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first - store it into a SSA_NAME. - - PR sanitizer/55439 - * Makefile.in (tsan.o): Depend on tree-ssa-propagate.h. - * sanitizer.def: Add __tsan_atomic* builtins. - * asan.c (initialize_sanitizer_builtins): Adjust to also - initialize __tsan_atomic* builtins. - * tsan.c: Include tree-ssa-propagate.h. - (enum tsan_atomic_action): New enum. - (tsan_atomic_table): New table. - (instrument_builtin_call): New function. - (instrument_gimple): Take pointer to gimple_stmt_iterator - instead of gimple_stmt_iterator. Call instrument_builtin_call - on builtin call stmts. - (instrument_memory_accesses): Adjust instrument_gimple caller. - * builtin-types.def (BT_FN_BOOL_VPTR_PTR_I1_INT_INT, - BT_FN_BOOL_VPTR_PTR_I2_INT_INT, BT_FN_BOOL_VPTR_PTR_I4_INT_INT, - BT_FN_BOOL_VPTR_PTR_I8_INT_INT, BT_FN_BOOL_VPTR_PTR_I16_INT_INT): New. - -2012-12-04 Tejas Belagod - - * config/aarch64/aarch64.c (aarch64_simd_vector_alignment, - aarch64_simd_vector_alignment_reachable): New. - (TARGET_VECTOR_ALIGNMENT, TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): - Define. - -2012-12-04 Richard Biener - - PR tree-optimization/55124 - * tree-ssa-pre.c (find_or_generate_expression): Instead of - ICEing when we are not able to generate an expression defer it - by signalling failure. Fix possible wrong-code issue by - not picking random REFERENCE expressions as fallback. - (create_component_ref_by_pieces_1): Adjust. Add failure paths. - (create_expression_by_pieces): Likewise. - (insert_into_preds_of_block): When expression generation failed - for one edge make sure to not insert a PHI node. - -2012-12-03 Eric Botcazou - - * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch - area if the function allocates dynamic stack space. - (ia64_initial_elimination_offset): Adjust offsets to above change. - -2012-12-03 Steven Bosscher - - * gcse.c (struct reg_use): Remove unused struct. - (gcse_emit_move_after): Do not create REG_EQUAL notes that reference - the SET_DEST of the instruction the note would be attached to. - * cse.c (cse_main): Add the DF_NOTE problem. - -2012-12-03 Jakub Jelinek - - * sanitizer.def: Add Address Sanitizer builtins. - Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and - BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*. - * Makefile.in (asan.o): Depend on langhooks.h. - (tsan.o): Depend on asan.h. - * asan.h (initialize_sanitizer_builtins): New prototype. - * asan.c: Include langhooks.h. - (report_error_func): Use builtin_decl_implicit of corresponding - BUILT_IN_ASAN_REPORT_{LOAD,STORE}*. - (asan_init_func): Removed. - (initialize_sanitizer_builtins): New function. - (asan_finish_file): Call it. Use builtin_decl_implicit - on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}. - (asan_instrument): Call initialize_sanitizer_builtins. - * builtins.def (DEF_SANITIZER_BUILTIN): Change condition to - (flag_asan || flag_tsan). - * tsan.c: Include asan.h and tsan.h. - (get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_* - to BUILT_IN_TSAN_{READ,WRITE}*. - (tsan_pass): Call initialize_sanitizer_builtins. - (tsan_gate, tsan_gate_O0): Don't check if - builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true. - (tsan_finish_file): Call initialize_sanitizer_builtins. - * builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type. - -2012-12-03 Aldy Hernandez - - PR middle-end/55401 - * trans-mem.c (get_tm_region_blocks): Exclude uninstrumented - blocks from vector if requested. - (collect_bb2reg): Pass new argument to get_tm_region_blocks. - (get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P - argument, and pass it to expand_regions. - (execute_tm_mark): Pass new argument to get_bb_regions_instrumented. - (execute_tm_edges): Same. - -2012-12-03 Jakub Jelinek - - * asan.c (instrument_mem_region_access): Don't instrument - if base doesn't have pointer type or len integral type. - Add cast if len doesn't have size_t compatible type. - (instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD, - BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR, - BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE - and BUILT_IN_ATOMIC_STORE. - - * asan.c (instrument_assignment): Instrument lhs only - for gimple_store_p and rhs1 only for gimple_assign_load_p. - -2012-12-03 Michael Zolotukhin - - * Makefile.in: Add target mddump, build/genmddump.o. Extend - genprogrtl with mddump. - * genmddump.c: New. - -2012-12-03 Steven Bosscher - - * rtl.h (print_insn_with_notes): Prototype. - * sched-vis.c (print_insn_with_notes): Export it. - - * gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype. - * gimple-pretty-print.c (print_gimple_expr): Flush the buffer. - (pp_gimple_stmt_1): Don't do it here. - (gimple_dump_bb_for_graph): New function. - * tree-pretty-print.c (print_generic_expr): Flush the buffer here. - (dump_generic_node): Don't flush the buffer here. - - * graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg. - * graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h. - (draw_cfg_node): Handle GIMPLE basic blocks also. - (print_rtl_graph_with_bb): Rename to print_graph_cfg. - * passes.c (finish_optimization_passes): Don't finish graph dumps here. - (execute_function_dump): Use print_graph_cfg. Enable dumping the CFG - for GIMPLE also. - (pass_init_dump_file): Wrap in TV_DUMP. Set up CFG graph dumps. - (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps. - (execute_one_pass): Don't set up graph dumps here. - -2012-12-03 Eric Botcazou - - * tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag - in the non-always executed case. - -2012-12-03 Sofiane Naci - - * config/aarch64/aarch64.c (aarch64_build_constant): Update prototype. - Call emit_move_insn instead of printing movi/movn/movz instructions. - Call gen_insv_immdi instead of printing movk instruction. - (aarch64_add_constant): Update prototype. - Generate RTL instead of printing add/sub instructions. - (aarch64_output_mi_thunk): Update calls to aarch64_build_constant - and aarch64_add_constant. - -2012-12-03 Kai Tietz - - PR target/53912 - * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t. - - PR target/53912 - * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT. - - PR target/53912 - * pointer-set.c (hash1): Cast from pointer via uintptr_t. - -2012-12-02 Marek Polacek - - PR middle-end/54838 - * cprop.c (bypass_block): Determine number of latches. Return - when there is more than one latch edge. - -2012-12-02 Teresa Johnson - - PR gcov-profile/55551 - * lto-cgraph.c (merge_profile_summaries): Handle scaled histogram - entries that map to the same index. - -2012-12-02 Steven Bosscher - - * optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL - notes. - * fwprop.c (forward_propagate_and_simplify): Likewise. - -2012-12-02 Steven Bosscher - - * function.h (struct rtl_data): Remove epilogue_delay_list. - * reorg.c (find_end_label): Simplify always-true test. - (optimize_skip): Likewise. - * final.c (leaf_function_p): Don't loop over epilogue_delay_list. - (leaf_renumber_regs): Likewise. - * varasm.c (mark_constant_pool): Likewise. - * except.c (set_nothrow_function_flags): Likewise. - * cfgrtl.c (print_rtl_with_bb): Likewise. - -2012-12-02 Hans-Peter Nilsson - - * config/mmix/mmix.c (mmix_function_value): Set the mode of the - returned PARALLEL to that of the return-value, not VOIDmode. - -2012-12-02 Sandra Loosemore - - * doc/extend.texi: Various corrections to punctuation and grammar - throughout the file. Use consistent terminology and proper names. - Correct some minor markup issues. - -2010-12-01 Xinliang David Li - - * config/i386/i386.c: Allow sign extend instructions (cltd etc) - on modern CPUs. - -2012-12-02 Steven Bosscher - - * reorg.c: Remove an obsolete comment. - * config/pa/pa.md: Add back the HP-PA comment here, with details. - -2012-11-30 Eric Botcazou - - * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): - Deal with degenerate cases where the bitsize isn't positive. - Rework comment. - -2012-11-30 David Edelsohn - - * xcoffout.c (xcoff_tls_data_section_name): Define. - * xcoffout.h (xcoff_tls_data_section_name): Declare. - * config/rs6000/rs6000.c (tls_data_section): Define. - (TARGET_USE_BLOCKS_FOR_DECL_P): Define. - (rs6000_legitimize_tls_address_aix): New function. - (rs6000_legitimize_tls_address): Use new function for AIX. - (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols. - Allow TLS symbol in constant pool other than ELF. - (rs6000_legitimate_address_p): Allow TLS symbol other than ELF. - (rs6000_assemble_visibility): Do not emit anything on AIX. - (output_toc): Handle alias of TLS general-dynamic symbols. - Emit TLS decorations on symbols. - (rs6000_use_blocks_for_decl_p): New function. - (rs6000_xcoff_output_tls_section_asm_op): New function. - (rs6000_xcoff_asm_init_sections): Initialize tls_data_section. - (rs6000_xcoff_select_section): Choose tls_data_section for - thread-local storage. - (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name. - (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF. - * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF. - (tls_get_tpointer): New. - (tle_get_tpointer_internal): New. - (tls_get_addr): New. - (tls_get_addr_internal): New. - * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define. - -2012-11-30 Teresa Johnson - - * lto-cgraph.c (output_profile_summary): Stream out sum_all - and histogram. - (input_profile_summary): Stream in sum_all and histogram. - (merge_profile_summaries): Merge sum_all and histogram, and - change to use RDIV. - (input_symtab): Call compute_working_sets after merging summaries. - * gcov-io.c (gcov_histo_index): Make extern for compiler. - * gcov-io.h (gcov_histo_index): Ditto. - * profile.c (compute_working_sets): Remove static keyword. - * profile.h (compute_working_sets): Ditto. - * Makefile.in (lto-cgraph.o): Depend on profile.h. - -2012-11-30 Martin Jambor - - PR middle-end/52890 - PR tree-optimization/55415 - PR tree-optimization/54386 - PR target/55448 - * ipa-prop.c (ipa_modify_call_arguments): Be optimistic when - get_pointer_alignment_1 returns false and the base was not a - dereference. - * tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align, - added check for required alignment. Update the user. - -2012-11-30 Ramana Radhakrishnan - Greta Yorsh - - * config/arm/arm.md (type): Subdivide "alu" into "alu_reg" - and "simple_alu_imm". - (core_cycles): Use new names. - (arm_addsi3): Set type of patterns to use to alu_reg and simple_alu_imm. - (addsi3_compare0, addsi3_compare0_scratch): Likewise. - (addsi3_compare_op1, addsi3_compare_op2, compare_addsi2_op0): Likewise. - (compare_addsi2_op1, arm_subsi3_insn, subsi3_compare0): Likewise. - (subsi3_compare, arm_decscc,arm_andsi3_insn): Likewise. - (thumb1_andsi3_insn, andsi3_compare0_scratch): Likewise. - (zeroextractsi_compare0_scratch,iorsi3_insn,iorsi3_compare0): Likewise. - (iorsi3_compare0_scratch, arm_xorsi3, thumb1_xorsi3_insn): Likewise. - (xorsi3_compare0, xorsi3_compare0_scratch): Likewise. - (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Likewise. - (thumb1_zero_extendqisi2_v, arm_zero_extendqisi2_v6): Likewise. - (thumb1_extendhisi2, arm_extendqisi_v6): Likewise. - (thumb1_extendqisi2, arm_movsi_insn): Likewise. - (movsi_compare0, movhi_insn_arch4, movhi_bytes): Likewise. - (arm_movqi_insn, thumb1_movqi_insn, arm_cmpsi_insn): Likewise. - (movsicc_insn, if_plus_move, if_move_plus): Likewise. - * config/arm/neon.md (neon_mov/VDX): Likewise. - (neon_mov/VQXMOV): Likewise. - * config/arm/arm1020e.md (1020alu_op): Likewise. - * config/arm/fmp626.md (mp626_alu_op): Likewise. - * config/arm/fa726te.md (726te_alu_op): Likewise. - * config/arm/fa626te.md (626te_alu_op): Likewise. - * config/arm/fa606te.md (606te_alu_op): Likewise. - * config/arm/fa526.md (526_alu_op): Likewise. - * config/arm/cortex-r4.md (cortex_r4_alu, cortex_r4_mov): Likewise. - * config/arm/cortex-m4.md (cortex_m4_alu): Likewise. - * config/arm/cortex-a9.md (cprtex_a9_dp): Likewise. - * config/arm/cortex-a8.md (cortex_a8_alu, cortex_a8_mov): Likewise. - * config/arm/cortex-a5.md (cortex_a5_alu): Likewise. - * config/arm/cortex-a15.md (cortex_a15_alu): Likewise. - * config/arm/arm926ejs.md (9_alu_op): Likewise. - * config/arm/arm1136jfs.md (11_alu_op): Likewise. - * config/arm/arm1026ejs.md (alu_op): Likewise. - -2012-11-30 Richard Biener - - * tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here. - -2012-11-30 Richard Biener - - * tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating - value_ids. - -2012-11-30 Steven Bosscher - - * coretypes.h (struct pretty_print_info): Make a coretype. - (typedef pretty_printer): Likewise. - * pretty-print.h (typedef pretty_printer): Not needed here anymore. - * pretty-print.c (pp_write_text_as_dot_label_to_stream): New function. - * rtl.h (str_pattern_slim): New prototype. - (print_value, print_pattern, print_insn): Adjust prototypes to take - a pretty-printer rather than a char buffer. - * sched-vis.c (safe_concat): Remove. - (print_exp): Print into a pretty-printer. - (print_value): Likewise. - (print_pattern): Likewise. - (print_insn): Likewise. - (print_insn_with_notes): New static function. - (init_rtl_slim_pretty_print): New function. - (dump_value_slim): Simplify. Print into and flush a pretty-printer. - (dump_insn_slim): Likewise. - (dump_rtl_slim): Likewise. - (str_pattern_slim): New function. - * haifa-sched.c (model_recompute): Use str_pattern_slim instead of - static buffers. - (model_record_pressures): Likewise. - (schedule_insn): Likewise. - * sel-sched-dump.c (dump_insn_rtx_1): Likewise. - (sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code. - * graph.c: Include pretty-print.h. - (init_graph_slim_pretty_print): New function. - (print_escaped_line): Removed here, and reincarnated as - pp_write_text_as_dot_label_to_stream. - (draw_cfg_node): Print into a pretty printer. - (draw_cfg_node_succ_edges): Likewise. - (print_rtl_graph_with_bb): Likewise. - * Makefile.in (graph.o): Fix dependencies. - (tree-optimize.o, toplev.o, sched-vis.o): Likewise. - -2012-11-30 Jakub Jelinek - - * tsan.c (is_load_of_const_p): Removed. - (instrument_expr): Use result of get_inner_reference - instead of get_base_address, avoid some unnecessary tests, - use !pt_solution_includes and !may_be_aliased tests to - check whether base might escape current function. - -2012-11-30 Michael Zolotukhin - - * gensupport.c (maybe_eval_c_test): Remove not-null check for expr. - * read-rtl.c (apply_iterators): Initialize condition with "" instead - of NULL. - -2012-11-30 Kai Tietz - - * config/i386/host-mingw32.c (va_granularity): Make none-const. - (mingw32_gt_pch_alloc_granularity): Return OS' allocation granularity. - (mingw32_gt_pch_use_address): Retry mapping of used address - as multiple instances might interfer. - - * config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with - cygwin-host. - -2012-11-29 Eric Botcazou - - PR middle-end/55321 - * calls.c (emit_library_call_value_1): Mark as no-nonlocal if no-throw. - -2012-11-29 Vladimir Makarov - - PR middle-end/55456 - * lra-int.h (lra_new_regno_start): New external. - * lra.c (lra_new_regno_start): New global. - (lra): Set up lra_new_regno_start. - * lra-constraints.c (match_reload): Sync values only for original - pseudos. - -2012-11-29 Kai Tietz - - PR target/53912 - * prefix.c (lookup_key): Replace xmalloc/xrealloc - use by XNEWVEC/XRESIZEVEC. - -2012-11-29 Richard Earnshaw - - PR target/55073 - * config/arm/neon.md (neon_vtrn_internal): Split into expand - and insn patterns. Re-order insn arguments to tie inputs to outputs. - (neon_vzip_internal): Likewise. - (neon_vuzp_internal): Likewise. - -2012-11-29 Marc Glisse - - PR c++/53094 - * fold-const.c (fold): Replace a CONSTRUCTOR with a VECTOR_CST. - -2012-11-29 Richard Biener - - * tree-ssa-pre.c (get_expr_value_id): Do not add expr - to the set of value expressions here. - (add_to_exp_gen, make_values_for_phi): Fold into ... - (compute_avail): ... here, and avoid useless work. Dump - avail sets in processing order. - (do_pre): Do not dump avail sets here. - -2012-11-29 Matthew Gretton-Dann - - PR target/54974 - * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on - Thumb pool ranges. - (thumb1_extendhisi2): Reduce Thumb pool range. - (arm_movdi): Likewise. - (thumb1_movdi_insn): Likewise. - (thumb1_movsi_insn): Likewise. - (pic_load_addr_unified): Likewise. - (pic_load_addr_32bit): Likewise. - (pic_load_addr_thumb1): Likewise. - (thumb1_movhf): Likewise. - (arm_movsf_soft_insn): Likewise. - (thumb1_movsf_soft_insn): Likewise. - (movdf_soft_insn): Likewise. - (thumb1_movdf_soft_insn): Likewise. - * config/arm/neon.md (*neon_mov): Likewise. - (*neon_mov): Likwise. - * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise. - (*thumb2_movhi_insn): Likewise. - (*thumb2_extendqisi_v6): Likewise. - (*thumb2_zero_extendqisi_v6): Likewise. - (*thumb2_zero_extendqisi2_v6): Likewise. - * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise. - (*movdi_vfp): Likewise. - (*movdi_vfp_cortexa8): Likewise. - (*thumb2_movsf_vfp): Likewise. - (*thumb2_movdf_vfp): Likewise. - -2012-11-29 Kai Tietz - - PR target/55171 - * config/i386/i386.c (get_scratch_register_on_entry): Handle - thiscall-convention. - (split_stack_prologue_scratch_regno): Likewise. - (ix86_static_chain): Likewise. - (x86_output_mi_thunk): Likewise. - -2012-11-29 Marek Polacek - - * cprop.c (bypass_block): Improve debug message. - -2012-11-29 Oleg Raikhman - - * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS): - Make r40..r43 call-used. - (REG_ALLOC_ORDER): Sort r40..r43 into the call-used registers. - -2012-11-29 Joern Rennecke - - * config/epiphany/predicates.md (addsub_operator): New predicate. - * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute. - * config/epiphany/epiphany.md (isub_i+1): New peephole2. - * config/epiphany/epiphany-protos.h (get_attr_sched_use_fpu): Declare. - - * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define. - (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise. - * config/epiphany/t-epiphany (SPECS): Set. - (specs): New rule. - - * config/epiphany/epiphany.md (isub_i+1): Work around generator bug. - - * config/epiphany/epiphany.c (epiphany_adjust_cost): Use - reg_overlap_mentioned_p. - -2012-11-28 Jakub Jelinek - - PR debug/36728 - PR debug/55467 - PR middle-end/55507 - PR bootstrap/55511 - * cselib.c (cselib_process_insn): If cselib_preserve_constants, - don't reset table and exit early on volatile insns and setjmp. - Reset table afterwards on setjmp. - -2012-11-28 Andrew Pinski - - PR bootstrap/54279 - * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++. - -2012-11-28 Richard Sandiford - - PR rtl-optimization/55052 - * simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check. - -2012-11-28 David Edelsohn - - * target.def (use_blocks_for_decl_p): New hook. - * varasm.c (use_blocks_for_decl_p): Apply hook as final condition. - * doc/tm.texi.in (USE_BLOCKS_FOR_DECL_P): New description. - * doc/tm.texi: Regenerated. - -2012-11-28 Richard Sandiford - - PR middle-end/55438 - * expmed.c (simple_mem_bitfield_p): New function, extracted from - store_bit_field_1 and extract_bit_field_1. Use GET_MODE_ALIGNMENT - rather than bitsize when checking the alignment. - (store_bit_field_1, extract_bit_field_1): Call it. - * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): - Don't limit ALIGN_. Assume that memory is mapped in chunks of at - least word size, regardless of BIGGEST_ALIGNMENT. - (bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather - than unit when checking the alignment. - (get_best_mode): Use GET_MODE_ALIGNMENT. - -2012-11-28 Vladimir Makarov - - PR rtl-optimization/55512 - * lra-assigns.c (assign_by_spills): Assigned arbitrary hard regs - to failed reload pseudos instead of changing asm pattern. - * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Increase value. - -2012-11-28 Markus Trippelsdorf - - PR other/55358 - * dse.c (rest_of_handle_dse): Remove superfluous clearing. - -2012-11-28 Joern Rennecke - - * config/epiphany/predicates.md (move_double_src_operand): - Check that misaligned addresses are offsettable. - (move_dest_operand): Likewise. - * config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a - misaligned stack address to reg+index. - - * config/epiphany/epiphany.opt (mfp-iarith): New option. - * config/epiphany/epiphgany.md (addsi3): Check for TARGET_FP_IARITH. - (subsi3, iadd, isub): Rename to .. - (subsi3_i, iadd_i, isub_i): .. This. - (subsi3, iadd, isub): New define_expands. - - * config/epiphany/epiphgany.md (attribute type): Add v2fp. - (attribute fp_mode): Test for v2fp. - (v2sf3_i): Change type to v2fp. - * config/epiphany/epiphany-sched.md (fp_arith_nearest, - fp_arith_trunc): Combine to .. - (fp_arith): .. this. - (v2fp_arith): New insn reservation. - - * config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern. - -2012-11-28 Oleg Raikhman - - * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define. - -2012-11-28 Joern Rennecke - - * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define. - * config/epiphany/epiphany-protos.h (epiphany_regno_rename_ok): - Declare. - * config/epiphany/epiphany.c (epiphany_regno_rename_ok): New function. - - * config/epiphany/epiphany.md (mov, *mov_insn): Check - for misaligned memory operands. - * config/epiphany/predicates.md (misaligned_operand): New predicate. - - * config/epiphany/epiphany.opt (-may-round-for-trunc): New option. - * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it - into account. - -2012-11-28 Richard Biener - - PR tree-optimization/54547 - * tree-vrp.c (set_and_canonicalize_value_range): Handle - 1-bit anti-ranges explicitely. - (extract_range_from_assert): Properly canonicalize all - built anti-ranges. - -2012-11-28 Eric Botcazou - - * stor-layout.c (layout_type) : Do not clear TREE_OVERFLOW - on overflowed zeroes, except in one specific case. - -2012-11-28 Marc Glisse - - PR middle-end/55266 - * fold-const.c (fold_ternary_loc) [BIT_FIELD_REF]: Handle - CONSTRUCTOR with vector elements. - * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle CONSTRUCTOR - and BIT_FIELD_REF. - -2012-11-28 Richard Biener - - PR c/35634 - * gimple.h (gimplify_self_mod_expr): Declare. - * gimplify.c (gimplify_self_mod_expr): Export. Take a different - type for performing the arithmetic in. - (gimplify_expr): Adjust. - * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Strip - sign conversions we can re-apply after adjusting the IV. - -2012-11-28 Steven Bosscher - - PR rtl-optimization/55006 - * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member. - (analyze_iv_to_split_insn): Record it. - (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL - notes that refer to IVs that are being split. - (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv. Twice. - Use FOR_BB_INSNS_SAFE. - -2012-11-27 Steven Bosscher - - * rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove - prototypes. - (debug_rtl_slim): Rename to dump_rtl_slim. - (print_value_slim): Rename to dump_value_slim. - * ira.c (ira_update_equiv_info_by_shuffle_insn): Update - print_value_slim user. - * lra.c (lra_process_new_insns): Use dump_insn_slim to dump single - insns. Use dump_rtl_slim for insn chains. - * lra-constraints.c (get_reload_reg): Update print_value_slim user. - (process_addr_reg): Likewise. - (equiv_address_substitution): Likewise. - (inherit_reload_reg): Likewise. Use dump_insn_slim to dump single - insns. - (check_and_process_move): Likewise. - (lra_constraints): Likewise. - (split_reg): Likewise. - (update_ebb_live_info): Likewise. - (remove_inheritance_pseudos): Likewise. - * sched-vis.c: Don't include sched-int.h. - Remove #ifdef INSN_SCHEDULING tests. - (print_value_slim): Rename to dump_value_slim. Simplify a few - cases using GET_RTX_NAME. - (print_pattern): Do not handle UNSPEC and UNSPECV here, explain why. - (print_insn): Reorganize code to be independent of INSN_SCHEDULING. - Always print CALL_INSN patterns. Harmonize INSN_UID dumping template. - Handle NOTE_INSN_CALL_ARG_LOCATION. - (dump_rtl_slim): Copied from debug_rtl_slim. - (debug_rtl_slim): Wrapper around dump_rtl_slim to stderr. - * haifa-sched.c (schedule_insn): Update print_insn user. - -2012-11-27 Vladimir Makarov - - PR rtl-optimization/55458 - * lra-assigns.c: Include rtl-error.h. - (assign_by_spills): Report about asm impossible constraints. - * Makefile.in (lra-assigns.c): Add $(RTL_ERROR_H). - -2012-11-27 Paolo Bonzini - - PR rtl-optimization/55489 - * gcse.c (compute_transp): Precompute a canonical version - of XEXP (x, 0), and pass it to canon_true_dependence. - - * alias.c (init_alias_analysis): Fix allocation of reg_known_value. - -2012-11-27 Diego Novillo - - * vec.h: Replace 'class vec' with 'struct vec' everywhere. - (ggc_internal_cleared_alloc_stat): Remove. - (va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call. - (va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call. - (vec::copy): Replace ALONE_MEM_STAT_DECL with - ALONE_CXX_MEM_STAT_INFO. - (vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO. - (vec_safe_reserve_exact): Likewise. - (vec_alloc): Likewise. - (vec_safe_grow): Likewise. - (vec_safe_grow_cleared): Likewise. - (vec_safe_push): Likewise. - (vec_safe_insert): Likewise. - (vec_safe_splice): Likewise. - (vec_alloc): Likewise. - (vec_check_alloc): Likewise. - -2012-11-27 Marc Glisse - - * tree-cfg.c (verify_gimple_comparison): Verify that vector - comparison returns a vector. - -2012-11-27 Meador Inge - - * collect2.c (main): Call find_file_set_debug. - (find_a_find, add_prefix, prefix_from_env, prefix_from_string): - Factor out into ... - * file-find.c (New file): ... here and ... - * file-find.h (New file): ... here. - * gcc-ar.c (standard_exec_prefix): New variable. - (standard_libexec_prefix): Ditto. - (tooldir_base_prefix) Ditto. - (self_exec_prefix): Ditto. - (self_libexec_prefix): Ditto. - (self_tooldir_prefix): Ditto. - (target_version): Ditto. - (path): Ditto. - (target_path): Ditto. - (setup_prefixes): New function. - (main): Rework how wrapped programs are found. - * Makefile.in (OBJS-libcommon-target): Add file-find.o. - (AR_OBJS): New variable. - (gcc-ar$(exeext)): Add dependency on $(AR_OBJS). - (gcc-nm$(exeext)): Ditto. - (gcc-ranlib(exeext)): Ditto. - (COLLECT2_OBJS): Add file-find.o. - (collect2.o): Add file-find.h prerequisite. - (file-find.o): New rule. - -2010-11-27 Dehao Chen - - * ipa-prop.c (ipa_modify_call_arguments): Set loc correctly. - * emit-rtl.c (last_location): Remove unused variable. - -2012-11-27 Uros Bizjak - - * config/i386/i386.md - (*jcc__i387 splitters): Remove - unneeded temporary. - -2012-11-27 Dehao Chen - - * cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly. - (cfg_layout_merge_blocks): Likewise. - -2012-11-27 Jakub Jelinek - - * passes.c (init_optimization_passes): Add pass_asan and pass_tsan - to -Og optimization passes. - -2012-11-27 H.J. Lu - Markus Trippelsdorf - - PR lto/54795 - * lto-opts.c (lto_write_options): Also handle - OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and - OPT_SPECIAL_program_name. - - PR lto/55474 - * lto-wrapper.c (merge_and_complain): Handle - OPT_SPECIAL_unknown, OPT_SPECIAL_ignore, - OPT_SPECIAL_program_name and OPT_SPECIAL_input_file. - -2012-11-27 Jakub Jelinek - - PR middle-end/52650 - * function.c (instantiate_virtual_regs_in_insn): Don't delete invalid - asm gotos, instead just clear their template and inputs. - - PR tree-optimization/55110 - * tree-vect-loop.c (vectorizable_reduction): Don't assert - that STMT_VINFO_RELATED_STMT of orig_stmt is stmt. - -2012-11-27 Richard Biener - - * gimple-fold.c (fold_stmt_1): Remove unnecessary code. - -2012-11-27 Bin Cheng - - * config/arm/arm.c (thumb1_reorg): New function. - (arm_reorg): Call thumb1_reorg. - (thumb1_final_prescan_insn): Record src operand in thumb1_cc_op0. - * config/arm/arm.md : Remove peephole2 patterns which rewrite move - into subtract of ZERO. - -2012-11-27 Richard Biener - - PR middle-end/55331 - * gimple-fold.c (gimplify_and_update_call_from_tree): Replace - stmt with a NOP instead of removing it. - -2012-11-27 Steven Bosscher - - * loop-invariant.c (check_invariant_table_size): Take sizeof of - the right type. - - * reorg.c (resource_conflicts_p): Use hard_reg_set_intersect_p. - (rare_destination): Remove. - (mostly_true_jump): Simplify. Base result on REG_BR_PROP notes if - available, otherwise assume branches are not taken. - (fill_eager_delay_slots): Update mostly_true_jump call. - (relax_delay_slots): Likewise. - -2012-11-26 Eric Botcazou - - * reorg.c (redundant_insn): Do not handle DEBUG_INSNs. - -2012-11-26 Vladimir Makarov - - PR target/55277 - * lra-constraints.c (in_class_p): Check reg class contents too. - -2012-11-26 James Greenhalgh - - * config/aarch64/aarch64-builtins.c (aarch64_builtin_decls): New. - (aarch64_init_simd_builtins): Store declaration after builtin - initialisation. - (aarch64_builtin_decl): New. - * config/aarch64/aarch64-protos.h (aarch64_builtin_decl): New. - * config/aarch64/aarch64.c (TARGET_BUILTIN_DECL): Define. - -2012-11-26 Steven Bosscher - - * doc/invoke.texi: Remove -dv documentation. Fix up graph dump related - documentation. Document the '-graph' dump option. Complete the '-slim' - dump option documentation. - - * common.opt (Variable graph_dump_format): Remove. - * flag-types.h (enum graph_dump_types): Remove. - * flags.h (dump_for_graph): Remove. - * opts.c (decode_d_option): Remove -dv handling. - * sched-int.h (print_insn, print_pattern, print_value): Move prototypes - from here ... - * rtl.h: ...to here. Add note that these functions ought to be in - another file. - * sched-vis.c (print_insn): Add detailed dump for insn notes. - * print-rtl.c (dump_for_graph): Remove. - (print_rtx): Remove dump_for_graph related code. - * graph.c: Almost complete re-write to dump DOT (GraphViz) dumps - instead of VCG dumps. - * graph.h (print_rtl_graph_with_bb): Update prototype. - * passes.c (finish_optimization_passes): Fix profile dump finishing. - Unconditionally loop over graph dumps to finalize. - (execute_function_dump): Split code to dump graphs to separate block. - (execute_one_pass): Don't set TDF_GRAPH here, let the dump option - decoders do their job. - - * ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION. - * toplev.c: Don't include graph.h. - * tree-optimize.c: Don't include graph.h. - -2012-11-26 Marek Polacek - - * cprop.c (hash_set): Remove variable. Use regno variable directly. - -2012-11-26 Eric Botcazou - - * tree.h (DECL_RESTRICTED_P): Delete. - (DECL_READ_P): Add comment. - (DECL_NONSHAREABLE): Likewise. - (TYPE_NO_FORCE_BLK): Fix comment. - (struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3. - * tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P. - * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise. - * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise. - - * alias.c (nonoverlapping_component_refs_p): Fix thinko. - -2012-11-26 Kyrylo Tkachov - - * doc/sourcebuild.texi: Document arm_v8_vfp_ok. - -2012-11-26 Kyrylo Tkachov - - * config/arm/arm.h (TARGET_FPU_ARMV8): New macro. - * config/arm/arm.md (UNSPEC_VRINTZ, UNSPEC_VRINTP, UNSPEC_VRINTM) - (UNSPEC_VRINTR, UNSPEC_VRINTX, UNSPEC_VRINTA): New unspecs. - (f_rints, f_rintd): New types. - * config/arm/iterators.md (VRINT): New int iterator. - (F_fma_type): Remove. - (vfp_type): New mode attribute. - (vfp_double_cond): Likewise. - (vrint_pattern, vrint_variant, vrint_predicable): New int attribute. - * config/arm/vfp.md (fma4): Use vfp_type iterator - instead of F_fma_type. - (*fmsub4, *fnmsub4, *fnmadd4): Likewise. - (2): New pattern. - -2012-11-26 Eric Botcazou - - * fold-const.c (const_binop): Adjust comment. - (extract_muldiv_1): Likewise. - (fold_comparison): Likewise. - * stor-layout.c (place_field): Fix typo. - * tree.c (double_int_fits_to_tree_p): Remove obsolete comment. - (force_fit_type_double): Likewise. Fix long line. - -2012-11-26 Greta Yorsh - - * config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets. - -2012-11-26 Matthias Klose - - * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix unbalanced - parentheses. - -2012-11-26 Jakub Jelinek - - PR tree-optimization/54471 - * tree-vrp.c (extract_range_from_binary_expr_1): For MULT_EXPR, - don't canonicalize range if min2 is zero. - -2012-11-26 Hans-Peter Nilsson - - PR middle-end/55030 - * builtins.c (expand_builtin_setjmp_receiver): Update comment - regarding purpose of blockage. - * emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for - the head comment. - * rtlanal.c (volatile_insn_p): Ditto. - * doc/md.texi (blockage): Update similarly. Change wording to - require one of two forms, rather than implying a wider choice. - * cse.c (cse_insn): Where checking for blocking insns, use - volatile_insn_p instead of manual check for volatile ASM. - * dse.c (scan_insn): Ditto. - * cselib.c (cselib_process_insn): Ditto. - -2012-11-25 Uros Bizjak - - * config/i386/sse.md (_loadu): - Do not depend on TARGET_SSE_TYPELESS_STORES. - (_loaddqu): Ditto. - (_storeu): Fix handling of - TARGET_SSE_TYPELESS_STORES. - (_storedqu): Ditto. - -2012-11-25 Steven Bosscher - - * doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation. - (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise. - * doc/tm.texi: Regenerate. - * reorg.c (fill_simple_delay_slots): Remove code conditional on - DELAY_SLOTS_FOR_EPILOGUE being defined. - (make_return_insns, dbr_schedule): Likewise. - * system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison. - (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise. - -2012-11-24 Jack Howarth - - * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fsanitize=address. - -2012-11-24 Matthias Klose - - * configure.ac (multiarch): Use $enableval instead of $withval. - * configure: Regenerate. - * config/i386/t-kfreebsd (MULTILIB_OSDIRNAMES): Filter out x32. - * gcc/config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use - x86_64-linux-gnux32 as multiarch name for x32. - -2012-11-23 Tobias Burnus - - * doc/invoke.texi (-fsanitize=address): Remove obsolete remark. - -2012-11-23 Jakub Jelinek - - PR c++/54046 - * Makefile.in (gimple-low.o): Depend on langhooks.h. - * gimple-low.c: Include langhooks.c. - (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK, - by default call lang_hooks.block_may_fallthru. - * langhooks.h (struct lang_hooks): Add block_may_fallthru langhook. - * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define. - (LANG_HOOKS_INITIALIZER): Use it. - -2012-11-23 Jan Hubicka - - * i386-c.c (ix86_target_macros_internal): Update handling of core - chips. - * i386.c (DUMMY_STRINGOP_ALGS): Update - (*_cost): Update. - (core_cost): Copy from generic64_cost; fix stringop descriptors. - (m_CORE2_32, m_CORE2_64, m_COREI7_32, m_COREI7_64, m_CORE2I7_32, - m_CORE2I7_64): Remove. - (m_CORE2, m_COREI7, m_CORE2I7): Update. - (initial_ix86_tune_features): Update. - (processor_target): Update. - (ix86_option_override_internal): Update. - (ix86_option_override_internal): Remove PROCESSOR_CORE2_64, - PROCESSOR_COREI7_64 special cases. - (decide_alg): Add noalign parameter; set it. - (ix86_expand_movmem, ix86_expand_setmem): Update noalign handling. - (ix86_issue_rate): Update. - (ia32_multipass_dfa_lookahead): Update. - (ix86_sched_init_global): Update. - (get_builtin_code_for_version): Update. - * i386.h (stringop_strategy): Add noalign flag. - (TARGET_CORE2_32, TARGET_CORE2_64, TARGET_COREI7_32, TARGET_COREI7_64): - Remove. - (TARGET_CORE2, TARGET_COREI7): New. - (enum processor_type): Remove PROCESSOR_CORE2_32, PROCESSOR_CORE2_64, - PROCESSOR_COREI7_32, PROCESSOR_COREI7_64; add PROCESSOR_CORE2, - PROCESSOR_COREI7. - -2012-11-23 Eric Botcazou - - PR rtl-optimization/55388 - * alias.c (nonoverlapping_component_refs_p): Handle bitfields. - * emit-rtl.c (adjust_address_1): Deal with VOIDmode early. - * expmed.c (store_bit_field): Turn the call to adjust_address - into a call to adjust_bitfield_address_size. - -2012-11-23 Vladimir Makarov - - * lra.c (lra): Move init_reg_info and expand_reg_info calls before - init_insn_recog_data. - -2012-11-23 Jakub Jelinek - - * tsan.c: Fix up comment formatting. - (instrument_gimple): Ignore gimple_clobber_p stmts. - (pass_tsan, pass_tsan_O0): Remove TODO_update_address_taken - from todo_flags_finish. - - PR sanitizer/55435 - * asan.c (gate_asan): Don't instrument functions with - no_address_safety_analysis attribute. - (gate_asan_O0): Use !optimize && gate_asan (). - * doc/extend.texi (no_address_safety_analysis): Document new - function attribute. - -2012-11-22 Teresa Johnson - Jan Hubicka - - * predict.c (maybe_hot_count_p): Use threshold from profiled working - set instead of hard limit. - (cgraph_maybe_hot_edge_p): Invoke maybe_hot_count_p() instead of - directly checking limit. - * params.def (HOT_BB_COUNT_FRACTION): Remove. - (HOT_BB_COUNT_WS_PERMILLE): New parameter. - * doc/invoke.texi (hot-bb-count-fraction): Remove. - (hot-bb-count-ws-permille): Document. - -2012-11-22 Vladimir Makarov - - PR middle-end/55430 - * lra.c: Move #include "hard-reg-set.h" before #include "rtl.h". - (new_insn_reg): Update biggest_mode. - (collect_non_operand_hard_regs): Check eliminable regs too. - (initialize_lra_reg_info_element): Initialize biggest_mode. - (add_regs_to_insn_regno_info): Ignore non-allocatable - non-eliminable hard regs. - (lra.c): Move setting lra_no_alloc_regs before - init_insn_recog_data. - * lra-constraints.c (simplify_operand_subreg): Add a comment. - (lra_constraints): Ignore equivalent memory of - regs occuring in paradoxical subregs. - * lra-lives.c (lra_create_live_ranges): Add a comment. - -2012-11-22 Dmitry Vyukov - Wei Mi - - * builtins.def (DEF_SANITIZER_BUILTIN): Define tsan builtins. - * sanitizer.def: Ditto. - * Makefile.in (tsan.o): Add tsan.o target. - (BUILTINS_DEF): Add sanitizer.def. - * passes.c (init_optimization_passes): Add tsan passes. - * tree-pass.h (register_pass_info): Ditto. - * toplev.c (compile_file): Ditto. - * doc/invoke.texi: Document tsan related options. - * gcc.c (LINK_COMMAND_SPEC): Add LIBTSAN_SPEC in link command if - -fsanitize=thread. - * tsan.c: New file about tsan. - * tsan.h: Ditto. - * common.opt: Add -fsanitize=thread. - -2012-11-22 Uros Bizjak - - * doc/md.texi (RTL Templates Transformation): Use @pxref for - cross-reference in parentheses. - -2012-11-22 Marcus Shawcroft - - * doc/md.texi (AArch64 family): Remove Utf. - -2012-11-22 Uros Bizjak - - * config/i386/i386.md (*jcc_0_i387): Macroize insn - from *fp_jcc_3_387 using X87MODEF mode iterator. - (*jcc_0_r_i387): New. - (*jccxf_i387): Ditto. - (*jccxf_r_i387): Ditto. - (*jcc_i387): Macroize insn from *fp_jcc_1_387 using - MODEF mode iterator. - (*jcc_r_i387): Macroize insn from *fp_jcc_1r_387 using - MODEF mode iterator. - (*jccu_i387): Macroize insn from *fp_jcc_2_387 using - X87MODEF mode iterator. - (*jccu_r_i387): Macroize insn from *fp_jcc_2r_387 using - X87MODEF mode iterator. - (*jcc{,u}_i387 splitters): Macroize splitters using - X87MODEF mode iterator. - (*jcc__i387): Macroize insn - from *fp_jcc_4__387 using X87MODEF mode iterator. - (*jcc__r_i387): New. - (*jcc__i387 splitters): Macroize - splitters using X87MODEF and SWI24 mode iterators. - -2012-11-22 Uros Bizjak - - * config/i386/i386.md (FPCMP): New mode iterator. - (unord): New mode attribute. - (*cmp_0_i387): Macroize insn from *cmpfp_0 - using X87MODEF mode iterator. - (*cmp_0_cc_i387): Macroize insn from *cmpfp_0_cc using - X87MODEF mode iterator. - (*cmpxf_i387): Rename from *cmpfp_xf. - (*cmpxf_cc_i387): Rename from *cmpfp_xf_cc. - (*cmp_i387): Rename from *cmpfp_. - (*cmp_cc_i387): Rename from *cmpfp__cc. - (*cmpu_i387): Macroize insn from *cmpfp_u using X87MODEF - mode iterator. - (*cmpu_cc_i387): Macroize insn from *cmpfp_u_cc using X87MODEF - mode iterator. - (*cmp__i387): Macroize_insn from - *cmpfp_ using X87MODEF mode iterator. - (*cmp__cc_i387): Macroize_insn from - *cmpfp__cc using X87MODEF mode iterator. - (*cmpi_mixed): Macroize insn from - *cmpfp_i{,u}_mixed using FPCMP and MODEF mode iterators. - (*cmpi_mixed): Macroize insn from - *cmpfp_i{,u}_sse using FPCMP and MODEF mode iterators. - (*cmpi_i387): Macroize insn from - *cmpfp_i{,u}_387 using FPCMP and X87MODEF mode iterators. - -2012-11-22 Ian Bolton - - * config/aarch64/aarch64.md (bswaphi2): New pattern. - -2012-11-22 H.J. Lu - - PR sanitizer/55379 - * gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with - -fsanitize=address. - -2012-11-22 H.J. Lu - - * gcc.c (ADD_STATIC_LIBASAN_LIBS): New macro. Defined - with STATIC_LIBASAN_LIBS. - (LIBASAN_SPEC): Add STATIC_LIBASAN_LIBS. - * config/gnu-user.h (STATIC_LIBASAN_LIBS): New macro. - -2012-11-22 Kyrylo Tkachov - - * config/arm/arm.md (*arm_abssi2): Define predicable attribute. - (*arm_neg_abssi2): Likewise. - * config/arm/thumb2.md (*thumb2_abssi2): Likewise. - (*thumb2_neg_abssi2): Likewise. - -2012-11-22 Jakub Jelinek - - * ree.c (struct ext_modified): Add ATTRIBUTE_PACKED. - -2012-11-22 Georg-Johann Lay - - Adjust decimal point of signed accum mode to GCC default. - - PR target/54222 - * config/avr/avr-modes.def (HA, SA, DA): Remove mode adjustments. - (TA): Move decimal point one bit to the right. - * config/avr/avr.c (avr_out_fract): Rewrite. - -2012-11-21 Matthias Klose - - * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME. - * config.gcc (tmake_file): Include alpha/t-linux. - -2012-11-21 Matthias Klose - - * config/m68k/t-linux: Define MULTIARCH_DIRNAME. - -2012-11-21 Matthias Klose - - * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME. - * config.gcc (tmake_file): Include ia64/t-linux. - -2012-11-21 Vladimir Makarov - - PR rtl-optimization/55414 - * lra-constraints.c (Index): New function. - (lra_constraints): Check dead equiv init insns. - -2012-11-21 Richard Henderson - - * config/alpha/alpha.md (extvmisaligndi): Rename from extv; update - mode of operand 1; remove ancient extract_bit_field workaround. - (insvmisaligndi): Rename from insv and update similarly. - (extzvmisaligndi): Rename from extzv and update similarly; split out... - (extzvdi): New expander. - -2012-11-21 H.J. Lu - - * doc/cpp.texi: Document __SANITIZE_ADDRESS__. - -2012-11-21 H.J. Lu - - PR c/55397 - * cppbuiltin.c (define_builtin_macros_for_compilation_flags): - Define __SANITIZE_ADDRESS__ for flag_asan. - -2012-11-21 Wei Mi - - * common.opt: Change faddress-sanitizer to fsanitize=address. - * toplev.c (process_options): Likewise. - * gcc.c (LINK_COMMAND_SPEC): Likewise. - * testsuite/lib/asan-dg.exp - (check_effective_target_faddress_sanitizer): Likewise. - (asan_init): Likewise. - * doc/invoke.texi (-fsanitize=address): Document. - -2012-11-21 Martin Jambor - - * ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to - do_clone_for_all_contexts. Update all uses. New flag - is_all_contexts_clone. - * ipa-cp.c (cgraph_edge_brings_value_p): Also consider the case when cs - leads to the clone for all contexts. - (perhaps_add_new_callers): Likewise. - (decide_whether_version_node): Remove bogus !plats->aggs test. Set - is_all_contexts_clone when cloning for all contexts. - -2012-11-21 Martin Jambor - - PR tree-optimization/55260 - * ipa-cp.c (intersect_aggregates_with_edge): New function. - (find_aggregate_values_for_callers_subset): Part moved to the function - above. Call it. - (cgraph_edge_brings_all_agg_vals_for_node): Reimplemented using - intersect_aggregates_with_edge. - -2012-11-21 Matthias Klose - - * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. - -2012-11-21 Teresa Johnson - - PR gcov-profile/55417 - * profile.c (compute_working_sets): Check index first - to avoid out-of-bounds array access. - -2012-11-21 Matthias Klose - - * config/aarch64/t-aarch64-linux: Define MULTIARCH_DIRNAME for - linux target. - -2012-11-21 Uros Bizjak - - * config/i386/i386.md - (*float2_mixed_with_temp): Use SWI48 mode - iterator instead of SWI48x. Update insn constraint. - (*float2_mixed_interunit): Ditto. - (*float2_mixed_nointerunit): Ditto. - (*float2_sse_with_temp): Ditto. - (*float2_sse_interunit): Ditto. - (*float2_sse_nointerunit): Ditto. - (*float2 splitters): Ditto. - (lrint2): Ditto. - -2012-11-21 Marcus Shawcroft - - * Makefile.in (gengtype-lex.o): Add dependency on $(BCONFIG_H). - -2012-11-21 Bin Cheng - - * config/arm/arm-cores.def (cortex-m1, cortex-m0) - (cortex-m0plus): Use v6m. - * config/arm/arm-protos.h (tune_params): Add - logical_op_non_short_circuit. - * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune) - (arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune) - (arm_cortex_tune, arm_cortex_a15_tune, arm_cortex_a5_tune) - (arm_cortex_a9_tune, arm_fa726te_tune): Set - logical_op_non_short_circuit field. - (arm_v6m_tune): New tune_params struct. - * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. - -2012-11-20 Matthias Klose - - * configure.ac: Substitute `with_cpu'. - * configure: Regenerate. - * Makefile.in: Define `with_cpu'. - * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. - * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME. - * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2 - to the list. - (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS. - * config/rs6000/t-spe: Define MULTIARCH_DIRNAME. - * config.gcc (tmake_file): - Include rs6000/t-linux for 32bit non-biarch configurations. - -2012-11-20 Matthias Klose - - * doc/install.texi: Move multiarch paragraph out of multilib - documentation. - -2012-11-20 Matthias Klose - - * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target. - -2012-11-20 Richard Sandiford - - * stor-layout.c (bit_field_mode_iterator::next_mode): Fix signedness. - -2012-11-20 Vladimir Makarov - - PR rtl-optimization/55396 - * lra-constraints.c (get_reload_reg): Change class if it is - different from reg class. - -2012-11-20 Jakub Jelinek - - * vec.h (class vec_prefix): Change into struct. - Rename field alloc_PRIVATE_ back to alloc_. - Rename field num_PRIVATE_ to num_. - Update all users. - (class vec): Rename field pfx_PRIVATE_ to vecpfx_. - Rename field data_PRIVATE_ to vecdata_. - Update all users. - (class vec): Make every field public. - Rename field vec_PRIVATE_ back to vec_. - Update all users. - -2012-11-20 Richard Sandiford - - PR middle-end/55403 - PR middle-end/55391 - * expmed.c (store_bit_field_1): Use adjust_bitfield_address_size - rather than adjust_bitfield_address to change the mode of a reference. - (extract_bit_field_1): Likewise. - -2012-11-20 Michael Meissner - - * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment - explaining the register ordering preferences. - -2012-11-20 Aldy Hernandez - - PR tree-optimization/55350 - * gimple-ssa-strength-reduction.c (replace_dependent): Handle - POINTER_PLUS_EXPR correctly. - -2012-11-20 Uros Bizjak - - * config/i386/i386.md (fix_trunc_sse): Macroize - insn from fix_trunc{si,di}_sse using SWI48 mode iterator. - (peephole2 to avoid vector decoded forms): Macroize peephole2 - using MODEF mode iterator. Use SWI48 mode iterator instead of SWI48x. - -2012-11-20 Uros Bizjak - - PR target/19398 - * config/i386/i386.md - (peephole2 to shorten x87->SSE reload sequences): Remove peephole2. - * config/i386/i386.h (enum ix86_tune_indices) - : Remove. - (TARGET_SHORTEN_X87_SSE): Remove. - * config/i386/i386.c (initial_ix86_tune_features): Update. - -2012-11-20 Vladimir Makarov - - PR target/19398 - * lra-constraints.c (process_alt_operands): Discourage reloads - through secondary memory. - -2012-11-20 David Edelsohn - - * config/rs6000/rs6000.md (largetoc_low): Revert. - (largetoc_low_aix): New. - -2012-11-20 Diego Novillo - Jakub Jelinek - - * vec.h (struct vnull): Declare. - (vNULL): Declare. - * vec.c (vNULL): Define. - * bb-reorder.c: Replace all vec() initializers with vNULL. - * cfgexpand.c: Likewise. - * cfgloop.c: Likewise. - * cfgloopanal.c: Likewise. - * cfgloopmanip.c: Likewise. - * cgraph.c: Likewise. - * config/c6x/c6x.c: Likewise. - * config/i386/i386.c: Likewise. - * df-core.c: Likewise. - * dominance.c: Likewise. - * dwarf2out.c: Likewise. - * except.c: Likewise. - * function.c: Likewise. - * gcse.c: Likewise. - * genautomata.c: Likewise. - * graphds.c: Likewise. - * graphite-scop-detection.c: Likewise. - * graphite.c: Likewise. - * haifa-sched.c: Likewise. - * ifcvt.c: Likewise. - * ipa-cp.c: Likewise. - * ipa-inline-analysis.c: Likewise. - * ipa-inline-transform.c: Likewise. - * ipa-inline.c: Likewise. - * ipa-prop.c: Likewise. - * ipa-split.c: Likewise. - * ipa-utils.c: Likewise. - * ira-build.c: Likewise. - * lto-cgraph.c: Likewise. - * lto-streamer-in.c: Likewise. - * lto-symtab.c: Likewise. - * opts-global.c: Likewise. - * passes.c: Likewise. - * ree.c: Likewise. - * sched-deps.c: Likewise. - * sel-sched-ir.c: Likewise. - * sel-sched-ir.h: Likewise. - * sel-sched.c: Likewise. - * stor-layout.c: Likewise. - * trans-mem.c: Likewise. - * tree-call-cdce.c: Likewise. - * tree-cfg.c: Likewise. - * tree-data-ref.c: Likewise. - * tree-diagnostic.c: Likewise. - * tree-eh.c: Likewise. - * tree-loop-distribution.c: Likewise. - * tree-predcom.c: Likewise. - * tree-ssa-loop-im.c: Likewise. - * tree-ssa-loop-ivcanon.c: Likewise. - * tree-ssa-loop-manip.c: Likewise. - * tree-ssa-loop-niter.c: Likewise. - * tree-ssa-loop-prefetch.c: Likewise. - * tree-ssa-math-opts.c: Likewise. - * tree-ssa-phiopt.c: Likewise. - * tree-ssa-pre.c: Likewise. - * tree-ssa-propagate.c: Likewise. - * tree-ssa-reassoc.c: Likewise. - * tree-ssa-sccvn.c: Likewise. - * tree-ssa-structalias.c: Likewise. - * tree-ssa-threadedge.c: Likewise. - * tree-ssa-uninit.c: Likewise. - * tree-stdarg.c: Likewise. - * tree-switch-conversion.c: Likewise. - * tree-vect-data-refs.c: Likewise. - * tree-vect-loop.c: Likewise. - * tree-vect-slp.c: Likewise. - * tree-vect-stmts.c: Likewise. - * value-prof.c: Likewise. - * varasm.c: Likewise. - -2012-11-20 Diego Novillo - - * Makefile.in (tlink.o): Add dependency on VEC_H. - -2012-11-20 Diego Novillo - - PR middle-end/55398 - * vec.h (class vec_prefix): Make every field public. - Rename field alloc_ to alloc_PRIVATE_. - Rename field num_ to num_PRIVATE_. - Update all users. - (class vec): Make every field public. - Rename field pfx_ to pfx_PRIVATE_. - Rename field data_ to data_PRIVATE_. - Update all users. - (class vec): Make every field public. - Rename field vec_ to vec_PRIVATE_. - Update all users. - -2012-11-20 Kai Tietz - - PR target/55268 - * i386.c (ix86_mangle_decl_assembler_name): Use - SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME if defined. - * cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Rename - to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME. - -2012-11-20 Uros Bizjak - - * config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode. - -2012-11-20 Nick Clifton - - * config/v850/v850.c (F): New function. Mark the given insn as - being frame related. - (v850_all_frame_related): New function. Mark the given push insn - as being frame related. - (v850_pass_by_reference): When using the RH850 ABI do not pass - arguments by reference. - (v850_strict_argument_naming): Delete function. - (v850_function_arg): Use word alignment with the RH850 ABI. - (v850_arg_partial_bytes): Likewise. - (v850_function_arg_advance): Likewise. - (v850_print_operand): Handle CONST_INT and CONST_DOUBLE. - (compute_register_save_size): Use df_regs_ever_live_p. - (increment_stack): Mark prologue adjustments as being frame related. - (expand_prologue): Handle pretend args. Mark insns generated as - being frame related. - (expand_epilogue): Likewise. - (v850_return_in_memory): When using the RH850 ABI return - aggregates in memory. - (v850_setup_incoming_varargs): Delete function. - (v850_option_override): New function. - (TARGET_DEBUG_UNWIND_INFO): Delete definition. - (TARGET_SETUP_INCOMING_VARARGS): Likewise. - (TARGET_STRICT_ARGUMENT_NAMING): Likewise. - (TARGET_OPTION_OVERRIDE): Define. - * config/v850/v850.h (ASM_SPEC): Pass 8byte-align and gcc-abi - options on to assembler. - (LINK_SPEC): Likewise. - (TARGET_CPU_CPP_BUILTINS): Define __V850_8BYTE_ALIGN__ and - __V850_GCC_ABI__. - (STACK_BOUNDARY): Set to BIGGEST_ALIGNMENT. - (FUNCTION_BOUNDARY): With the RH850 ABI always 32-bit alignment. - (BIGGEST_ALIGNMENT): With -8byte-align set to 64-bits. - (BIGGEST_FIELD_ALIGNMENT): Likewise. - (enum reg_class): Swap EVEN_REGS and GENERAL_REGS. - (REG_CLASS_NAMES): Likewise. - (REG_CLASS_CONTENTS): Likewise. - (struct cum_arg): Delete anonymous_args field. - (INIT_CUMULATIVE_ARGS): Update. - (PREFERRED_DEBUG): Set to DWARF2_DEBUG. - (DWARF2_FRAME_INFO): Define. - (DWARF2_UNWIND_INFO): Define. - (INCOMING_RETURN_ADDR_RTX): Define. - (DWARF_FRAME_RETURN_COLUMN): Define. - (TARGET_USE_FPU): Define. - * config/v850/v850.md: Replace TARGET_V850E2V3 in floating point - insns with TARGET_USE_FPU. - (fixuns_truncsfsi2): New pattern. - (fixuns_truncdfsi2): New pattern. - (fix_truncsfdi2): New pattern. - (fixuns_truncsfdi2): New pattern. - (fix_truncdfdi2): New pattern. - (fixuns_truncdfdi2): New pattern. - (unsfloatsisf2): New pattern. - (unsfloatsidf2): New pattern. - (floatdisf2): New pattern. - (unsfloatdisf2): New pattern. - (floatdidf2): New pattern. - (unsfloatdidf2): New pattern. - (fnmasf4): Fix RTl description. - (fnmssf4): Likewise. - * config/v850/v850.opt (mrelax): New option. - (mlong-jumps): Likewise. - (msoft-float): Likewise. - (mhard-float): Likewise. - (mrh850-abi): Likewise. - (mgcc-abi): Likewise. - (m8byte-align): Likewise. - * config/v850/t-v850 (MULTILIB_OPTIONS): Update multilib options. - (MULTILIB_DIRNAMES): Likewise. - -2012-11-20 Nick Clifton - - * config/rx/rx.c (rx_function_arg_boundary): When using the RX ABI - align stack arguments to their natural alignment. - (rx_narrow_volatile_bitfield): New function. Allows narrow - volatile bitfields. - (rx_ok_to_inline): New function. Do not inline functions with - local variables into a naked caller. - (TARGET_NARROW_VOLATILE_BITFIELD): Define. - (TARGET_CAN_INLINE_P): Define. - * config/rx/rx.c (TARGET_CPU_CPP_BUILTINS): Define __RX_ABI__ or - __RX_GC_ABI__. - (ASM_SPEC): Pass -mgcc-abi on to the assembler. - (STRICT_ALIGNMENT): Set to false. - (CTORS_SECTION_ASM_OP): Add executable attribute. - (DTORS_SECTION_ASM_OP): Add executable attribute. - (INIT_ARRAY_SECTION_ASM_OP): Add executable attribute. - (FINI_ARRAY_SECTION_ASM_OP): Add executable attribute. - * config/rx/rx.md (subdi3): Don't allow MEMs as the third operand, - as it causes too much reload pressure. - * config/rx/rx.opt (mgcc-abi): New option. - (mrx-abi): New option. - * config/rx/t-rx (MULTILIB_OPTIONS): Show how to add an ABI multilib. - (MULTILIB_DIRNAMES): Likewise. - -2012-11-20 James Greenhalgh - Tejas Belagod - - * config/aarch64/aarch64-builtins.c - (aarch64_simd_builtin_type_bits): Rename to... - (aarch64_simd_builtin_type_mode): ...this, make sequential. - (aarch64_simd_builtin_datum): Refactor members. - (VAR1, VAR2, ..., VAR12): Update accordingly. - (aarch64_simd_builtin_data): Include from aarch64-simd-builtins.def. - (aarch64_builtins): Update accordingly. - (init_aarch64_simd_builtins): Refactor, rename to... - (aarch64_init_simd_builtins): ...this. - (aarch64_simd_builtin_compare): Remove. - (locate_simd_builtin_icode): Likewise. - * config/aarch64/aarch64-protos.h (aarch64_init_builtins): New. - (aarch64_expand_builtin): New. - * config/aarch64/aarch64-simd-builtins.def: New file. - * config/aarch64/aarch64.c (aarch64_init_builtins): - Move to aarch64-builtins.c. - (aarch64_expand_builtin): Likewise. - * config/aarch64/aarch64.h - (aarch64_builtins): Move to aarch64-builtins.c. - -2012-11-20 Martin Jambor - - PR tree-optimization/55260 - * ipa-cp.c (find_aggregate_values_for_callers_subset): Rename info to - dest_info, use caller_info instead of info when determining whether - callee is a clone. - -2012-11-20 Andrey Turetskiy - - * config/i386/sse.md (*_pmulhrsw3): Merge - *avx2_pmulhrswv16hi3 and *ssse3_pmulhrswv8hi3 into one pattern. - -2012-11-20 Sofiane Naci - - * config/aarch64/aarch64.md - (define_attr "sync_*"): Remove. - (define_attr "length"): Update. - Include atomics.md. - * config/aarch64/aarch64-protos.h - (aarch64_expand_compare_and_swap): Add function prototype. - (aarch64_split_compare_and_swap): Likewise. - (aarch64_split_atomic_op): Likewise. - (aarch64_expand_sync): Remove function prototype. - (aarch64_output_sync_insn): Likewise. - (aarch64_output_sync_lock_release): Likewise. - (aarch64_sync_loop_insns): Likewise. - (struct aarch64_sync_generator): Remove. - (enum aarch64_sync_generator_tag): Likewise. - * config/aarch64/aarch64.c - (aarch64_legitimize_sync_memory): Remove function. - (aarch64_emit): Likewise. - (aarch64_insn_count): Likewise. - (aarch64_output_asm_insn): Likewise. - (aarch64_load_store_suffix): Likewise. - (aarch64_output_sync_load): Likewise. - (aarch64_output_sync_store): Likewise. - (aarch64_output_op2): Likewise. - (aarch64_output_op3): Likewise. - (aarch64_output_sync_loop): Likewise. - (aarch64_get_sync_operand): Likewise. - (aarch64_process_output_sync_insn): Likewise. - (aarch64_output_sync_insn): Likewise. - (aarch64_output_sync_lock_release): Likewise. - (aarch64_sync_loop_insns): Likewise. - (aarch64_call_generator): Likewise. - (aarch64_expand_sync): Likewise. - (* emit_f): Remove variable. - (aarch64_insn_count): Likewise. - (FETCH_SYNC_OPERAND): Likewise. - (aarch64_emit_load_exclusive): New function. - (aarch64_emit_store_exclusive): Likewise. - (aarch64_emit_unlikely_jump): Likewise. - (aarch64_expand_compare_and_swap): Likewise. - (aarch64_split_compare_and_swap): Likewise. - (aarch64_split_atomic_op): Likewise. - * config/aarch64/iterators.md - (atomic_sfx): New mode attribute. - (atomic_optab): New code attribute. - (atomic_op_operand): Likewise. - (atomic_op_str): Likewise. - (syncop): Rename to atomic_op. - * config/aarch64/sync.md: Delete. - * config/aarch64/atomics.md: New file. - -2012-11-20 Jakub Jelinek - - PR middle-end/55094 - * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note - on the trap insn for !ACCUMULATE_OUTGOING_ARGS. - * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns - on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS - fail if the last real insn doesn't have REG_ARGS_SIZE note. - - PR rtl-optimization/54921 - * cselib.h (fp_setter_insn): New prototype. - * cselib.c (fp_setter_insn): New function. - (cselib_process_insn): If frame_pointer_needed, - call cselib_invalidate_rtx (stack_pointer_rtx) after - processing a frame pointer setter. - * var-tracking.c (fp_setter): Removed. - (vt_initialize): Use fp_setter_insn instead of fp_setter. - -2012-11-19 Michael Meissner - - * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move - constraints so that the traditional floating point loads, stores, - and moves are done first, then the VSX loads, stores, and moves, - and finally the GPR loads, stores, and moves so that reload - chooses FPRs over GPRs, and uses the traditional load/store - instructions which provide an offset. - (movdf_hardfloat64): Likewise. - -2012-11-19 Richard Sandiford - - PR middle-end/55359 - * simplify-rtx.c (simplify_subreg): Return null for invalid offsets. - -2012-11-19 Aldy Hernandez - - * trans-mem.c (execute_tm_mark): Release bb_regions. - -2012-11-19 Aldy Hernandez - - * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks. - (get_bb_regions_instrumented): Add new traverse_clone argument and - use it. - (expand_regions_1): Same. - (expand_region): Same. - (execute_tm_mark): Pass new argument to expand_regions. - (expand_block_edges): Pass new argument to get_bb_regions_instrumented. - -2012-11-19 Sofiane Naci - - * config/aarch64/aarch64.c - (aarch64_output_mi_thunk): Refactor to generate RTL patterns. - -2012-11-19 Mans Rullgard - - PR target/55276 - * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask - for TARGET_ALTIVEC_ABI. Zero vrsave_save_offset if - !TARGET_ALTIVEC_VRSAVE. - (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size - not vrsave_mask. - -2012-11-19 David Edelsohn - - PR bootstrap/55384 - * system.h (vec_free): Undef. - -2012-11-19 Jakub Jelinek - - PR middle-end/54630 - * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static - keyword from ssa_name_hash var. - -2012-11-19 Maxim Kuznetsov - Kirill Yukhin - Michael Zolotukhin - - * doc/md.texi: Document define_subst. - * gensupport.c (MAX_OPERANDS): New define. - (operand_data): New. - (match_operand_entries_in_pattern): New. - (used_operands_numbers): New. - (subst_true): New. - (subst_false): New. - (define_subst_queue): New. - (define_subst_tail): New. - (define_subst_attr_queue): New. - (define_subst_attr_tail): New. - (has_subst_attribute): New. - (subst_pattern_match): New. - (get_alternatives_number): New. - (alter_output_for_subst_insn): New. - (alter_attrs_for_subst_insn): New. - (process_substs_on_one_elem): New. - (subst_dup): New. - (process_define_subst): New. - (duplicate_alternatives): New. - (duplicate_each_alternative): New. - (constraints_handler_t): New typedef. - (alter_constraints): New. - (adjust_operands_numbers): New. - (replace_duplicating_operands_in_pattern): New. - (remove_from_queue): New. - (process_rtx): Handle define_subst and define_subst_attr. - (change_subst_attribute): New. - (alter_predicate_for_insn): Fix formatting. - (alter_attrs_for_insn): Likewise. - (alter_output_for_insn): Likewise. - (mark_operands_from_match_dup): New. - (mark_operands_used_in_match_dup): New. - (find_first_unused_number_of_operand): New. - (renumerate_operands_in_pattern): New. - (generate_match_dup): New. - (check_define_attr_duplicates): New. - (init_rtx_reader_args_cb): Add checking for duplicated attrs and - processing of define_subst. - (read_md_rtx): Handle define_subst. - * read-rtl.c (struct subst_attr_to_iter_mapping): New. - (substs): New global. - (apply_subst_iterator): New. - (bind_subst_iter_and_attr): New. - (find_subst_iter_by_attr): New. - (map_attr_string): Handle subst-iterators. - (add_condition_to_rtx): Handle define_subst. - (apply_iterators): Likewise. - (initialize_iterators): Likewise. - (add_define_attr_for_define_subst): New. - (add_define_subst_attr): New. - (read_subst_mapping): New. - (read_rtx): Handle define_subst_attr. - (read_rtx_code): Add subst-attributes recognition during reading of - strings. - * rtl.def (DEFINE_EXPAND): Add vector of attributes. - (DEFINE_SUBST): New. - (DEFINE_SUBST_ATTR): New. - -2012-11-19 Tom de Vries - - PR rtl-optimization/55315 - - * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a - const is a nonzero address. - -2012-11-18 Sandra Loosemore - - * doc/extend.texi: Use @smallexample consistently. Add @noindent - when continuing a sentence or paragraph past an example. Change - tabs to spaces in examples. - -2012-11-18 Richard Sandiford - - * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m}) - (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document. - (insv, extv, extzv): Deprecate. - * optabs.def (insv_optab, extv_optab, extzv_optab) - (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab): - New optabs. - * optabs.c (get_optab_extraction_insn): New function. - (get_extraction_insn): Use it. - * config/mips/mips.md (extv): Split into... - (extvmisalign, extv): ...these new patterns. Rename - existing extv pattern to... - (*extv): ...this. - (extzv): Split into... - (extzvmisalign, extzv): ...these new patterns. Rename - existing extzv pattern to... - (*extzv): ...this. - (insv): Split into... - (insvmisalign, insv): ...these new patterns. Rename - existing insv pattern to... - (*insv): ...this. Use const_int_operand rather than - immediate_operand. - * config/mips/mips.c (mips_block_move_straight): Use set_mem_size - to set the size of BLKmode accesses. - (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory, - turning it from an "rtx *" to an rtx. - (mips_expand_ext_as_unaligned_load): Simplify for new optab - interface. Update call to mips_get_unaligned_mem. - (mips_expand_ins_as_unaligned_store): Update call to - mips_get_unaligned_mem. - -2012-11-18 Richard Sandiford - - * Makefile.in (recog.o): Add insn-codes.h. - * expr.h (extraction_pattern): Move to optabs.h. - (mode_for_extraction): Delete. - * optabs.h (extraction_insn): New structure. - (extraction_pattern): Moved from expr.h. - (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare. - * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv) - (HAVE_extzv, CODE_FOR_extzv): Provide defaults. - (extraction_type): New enum. - (get_traditional_extraction_insn, get_extraction_insn) - (get_best_reg_extraction_insn, get_best_mem_extraction_insn): - New functions. - * combine.c (make_extraction): Use get_best_reg_extraction_insn - instead of mode_for_extraction. - * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv) - (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv): - Remove fallback definitions. - (mode_for_extraction): Delete. - (adjust_bit_field_mem_for_reg): New function. - (store_bit_field_using_insv): Replace OP_MODE parameter with - an extraction_insn. Pass struct_mode to narrow_bit_field_mem. - (extract_bit_field_using_extv): Likewise EXT_MODE. - (store_bit_field_1): Use get_best_reg_extraction_insn and - get_best_mem_extraction_insn instead of mode_for_extraction. - Use adjust_bit_field_mem_for_reg when forcing memory to a - register and doing a register insertion. Update calls to - store_bit_field_using_insv. - (extract_bit_field_1): Likewise extractions and calls to - extract_bit_field_using_extv. - (store_Bit_field): When narrowing to a bitregion, don't use the - insv mode as a limit. - * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv): - Provide defaults. - (simplify_while_replacing): Use insn_data instead of - mode_for_extraction. - -2012-11-18 Richard Sandiford - - * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): - Set up a default value of bitregion_end_. - (bit_field_mode_iterator::next_mode): Always apply bitregion_end_ - check. Include SLOW_UNALIGNED_ACCESS in the alignment check. - (get_best_mode): Ignore modes that are wider than the alignment. - -2012-11-18 Richard Sandiford - - * machmode.h (bit_field_mode_iterator): New class. - (get_best_mode): Change final parameter to bool. - * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator) - (bit_field_mode_iterator::next_mode): New functions, split out from... - (get_best_mode): ...here. Change final parameter to bool. - Use bit_field_mode_iterator. - -2012-11-18 Richard Sandiford - - * expmed.c (narrow_bit_field_mem): New function. - (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field) - (extract_bit_field_1): Use it. - -2012-11-18 Richard Sandiford - - * expr.h (adjust_address_1): Add a size parameter. - (adjust_address, adjust_address_nv, adjust_bitfield_address) - (adjust_bitfield_address_nv): Adjust accordingly. - (adjust_bitfield_address_size): Define. - * emit-rtl.c (adjust_address_1): Add a size parameter. - Use it to set the size if MODE has no size. Check whether - the size matches before returning the original memref. - Require the size to be known for adjust_object. - (adjust_automodify_address_1, widen_memory_access): Update calls - to adjust_address_1. - -2012-11-18 Richard Sandiford - - * combine.c (make_extraction): Handle TRUNCATEd INNERs. - -2012-11-18 Richard Sandiford - - * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here. - * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs, - using their size instead of the COMPONENT_REF's. - -2012-11-17 Matthias Klose - - * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. - -2012-11-17 Diego Novillo - - VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * vec.c (register_overhead): Convert it into - member function of vec_prefix. - (release_overhead): Likewise. - (calculate_allocation): Likewise. - (vec_heap_free): Remove. - (vec_gc_o_reserve_1): Remove. - (vec_heap_o_reserve_1): Remove. - (vec_stack_o_reserve_1): Remove. - (vec_stack_o_reserve_exact): Remove. - (register_stack_vec): New. - (stack_vec_register_index): New. - (unregister_stack_vec): New. - (vec_assert_fail): Remove. - * vec.h: Conditionally include ggc.h. Document conditional hackery. - Update top-level documentation. - (ALONE_VEC_CHECK_INFO): Remove. - (VEC_CHECK_INFO): Remove. - (ALONE_VEC_CHECK_DECL): Remove. - (VEC_CHECK_DECL): Remove. - (ALONE_VEC_CHECK_PASS): Remove. - (VEC_CHECK_PASS): Remove. - (VEC_ASSERT): Remove. - (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and va_stack. - Mark fields alloc_ and num_ as protected. - (struct vec_t): Remove. Remove all function members. - (struct vl_embed): Declare. - (struct vl_ptr): Declare. - (free): Remove. - (reserve_exact): Remove. - (reserve): Remove. - (safe_splice): Remove. - (safe_push): Remove. - (safe_grow): Remove. - (safe_grow_cleared): Remove. - (safe_insert): Remove. - (DEF_VEC_I): Remove. - (DEF_VEC_ALLOC_I): Remove. - (DEF_VEC_P): Remove. - (DEF_VEC_ALLOC_P): Remove. - (DEF_VEC_O): Remove. - (DEF_VEC_ALLOC_O): Remove. - (DEF_VEC_ALLOC_P_STACK): Remove. - (DEF_VEC_ALLOC_O_STACK): Remove. - (DEF_VEC_ALLOC_I_STACK): Remove. - (DEF_VEC_A): Remove. - (DEF_VEC_ALLOC_A): Remove. - (vec_stack_p_reserve_exact_1): Remove. - (vec_stack_o_reserve): Remove. - (vec_stack_o_reserve_exact): Remove. - (VEC_length): Remove. - (VEC_empty): Remove. - (VEC_address): Remove. - (vec_address): Remove. - (VEC_last): Remove. - (VEC_index): Remove. - (VEC_iterate): Remove. - (VEC_embedded_size): Remove. - (VEC_embedded_init): Remove. - (VEC_free): Remove. - (VEC_copy): Remove. - (VEC_space): Remove. - (VEC_reserve): Remove. - (VEC_reserve_exact): Remove. - (VEC_splice): Remove. - (VEC_safe_splice): Remove. - (VEC_quick_push): Remove. - (VEC_safe_push): Remove. - (VEC_pop): Remove. - (VEC_truncate): Remove. - (VEC_safe_grow): Remove. - (VEC_replace): Remove. - (VEC_quick_insert): Remove. - (VEC_safe_insert): Remove. - (VEC_ordered_remove): Remove. - (VEC_unordered_remove): Remove. - (VEC_block_remove): Remove. - (VEC_lower_bound): Remove. - (VEC_alloc): Remove. - (VEC_qsort): Remove. - - (va_heap): Declare. - (va_heap::default_layout): New typedef to vl_ptr. - (va_heap::reserve): New. - (va_heap::release): New. - (va_gc): Declare. - (va_gc::default_layout): New typedef to vl_embed. - (va_gc::reserve): New. - (va_gc::release): New. - (va_gc_atomic): Declare. Inherit from va_gc. - (va_stack): Declare. - (va_stack::default_layout): New typedef to vl_ptr. - (va_stack::alloc): New. - (va_stack::reserve): New. - (va_stack::release): New. - (register_stack_vec): Declare. - (stack_vec_register_index): Declare. - (unregister_stack_vec): Declare. - - (vec): Declare - empty vec template. - (vec): Partial specialization for embedded - layout. - (vec::allocated): New. - (vec::length): New. - (vec::is_empty): New. - (vec::address): New. - (vec::operator[]): New. - (vec::last New. - (vec::space): New. - (vec::iterate): New. - (vec::iterate): New. - (vec::copy): New. - (vec::splice): New. - (vec::quick_push New. - (vec::pop New. - (vec::truncate): New. - (vec::quick_insert): New. - (vec::ordered_remove): New. - (vec::unordered_remove): New. - (vec::block_remove): New. - (vec::qsort): New. - (vec::lower_bound): New. - (vec::embedded_size): New. - (vec::embedded_init): New. - (vec::quick_grow): New. - (vec::quick_grow_cleared): New. - (vec_safe_space): New. - (vec_safe_length): New. - (vec_safe_address): New. - (vec_safe_is_empty): New. - (vec_safe_reserve): New. - (vec_safe_reserve_exact): New. - (vec_alloc): New. - (vec_free): New. - (vec_safe_grow): New. - (vec_safe_grow_cleared): New. - (vec_safe_iterate): New. - (vec_safe_push): New. - (vec_safe_insert): New. - (vec_safe_truncate): New. - (vec_safe_copy): New. - (vec_safe_splice): New. - - (vec): New partial specialization for the space - efficient layout. - (vec::exists): New. - (vec::is_empty): New. - (vec::length): New. - (vec::address): New. - (vec::operator[]): New. - (vec::operator!=): New. - (vec::operator==): New. - (vec::last): New. - (vec::space): New. - (vec::iterate): New. - (vec::copy): New. - (vec::reserve): New. - (vec::reserve_exact): New. - (vec::splice): New. - (vec::safe_splice): New. - (vec::quick_push): New. - (vec::safe_push): New. - (vec::pop): New. - (vec::truncate): New. - (vec::safe_grow): New. - (vec::safe_grow_cleared): New. - (vec::quick_grow): New. - (vec::quick_grow_cleared): New. - (vec::quick_insert): New. - (vec::safe_insert): New. - (vec::ordered_remove): New. - (vec::unordered_remove): New. - (vec::block_remove): New. - (vec::qsort): New. - (vec::lower_bound): New. - (vec_stack_alloc): Define. - (FOR_EACH_VEC_SAFE_ELT): Define. - * vecir.h: Remove. Update all users. - * vecprim.h: Remove. Update all users. - Move uchar to coretypes.h. - - * Makefile.in (VEC_H): Add $(GGC_H). - Remove vecir.h and vecprim.h dependencies everywhere. - -2012-11-16 Diego Novillo - - * gengtype-lex.l (VEC): Remove. - Add characters in the set [\!\>\.-]. - * gengtype-parse.c (token_names): Remove "VEC". - (require_template_declaration): Remove handling of VEC_TOKEN. - (type): Likewise. - Call create_user_defined_type when parsing GTY((user)). - * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED. - (write_state_undefined_type): New. - (write_state_type): Call write_state_undefined_type for TYPE_UNDEFINED. - (read_state_type): Call read_state_undefined_type for TYPE_UNDEFINED. - * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED. - (create_user_defined_type): Make extern. - (type_for_name): Factor out of resolve_typedef. - (create_undefined_type): New - (resolve_typedef): Call it when we cannot find a previous - typedef and the type is not a template. - (find_structure): Accept TYPE_UNDEFINED. - (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES, - default to false. - Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or - ALLOWED_UNDEFINED_TYPES is set. - Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT. - (filter_type_name): Accept templates with more than one argument. - (output_mangled_typename): Handle TYPE_UNDEFINED - (walk_type): Likewise. - (write_types_process_field): Likewise. - (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S - should not be a user-defined type. - (write_types_local_user_process_field): Handle TYPE_ARRAY, - TYPE_NONE and TYPE_UNDEFINED. - (write_types_local_process_field): Likewise. - (contains_scalar_p): Return 0 for TYPE_USER_STRUCT. - (write_root): Reject user-defined types that are not pointers. - Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT - and TYPE_PARAM_STRUCT. - (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and TYPE_ARRAY. - (dump_typekind): Handle TYPE_UNDEFINED. - * gengtype.h (enum typekind): Add TYPE_UNDEFINED. - (create_user_defined_type): Declare. - (enum gty_token): Remove VEC_TOKEN. - -2012-11-16 Diego Novillo - - Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * coretypes.h (uchar): Define. - * alias.c: Use new vec API in vec.h. - * asan.c: Likewise. - * attribs.c: Likewise. - * basic-block.h: Likewise. - * bb-reorder.c: Likewise. - * builtins.c: Likewise. - * calls.c: Likewise. - * cfg.c: Likewise. - * cfganal.c: Likewise. - * cfgcleanup.c: Likewise. - * cfgexpand.c: Likewise. - * cfghooks.c: Likewise. - * cfghooks.h: Likewise. - * cfgloop.c: Likewise. - * cfgloop.h: Likewise. - * cfgloopanal.c: Likewise. - * cfgloopmanip.c: Likewise. - * cfgrtl.c: Likewise. - * cgraph.c: Likewise. - * cgraph.h: Likewise. - * cgraphclones.c: Likewise. - * cgraphunit.c: Likewise. - * combine.c: Likewise. - * compare-elim.c: Likewise. - * coverage.c: Likewise. - * cprop.c: Likewise. - * data-streamer.h: Likewise. - * dbxout.c: Likewise. - * dce.c: Likewise. - * df-core.c: Likewise. - * df-problems.c: Likewise. - * df-scan.c: Likewise. - * dominance.c: Likewise. - * domwalk.c: Likewise. - * domwalk.h: Likewise. - * dse.c: Likewise. - * dwarf2cfi.c: Likewise. - * dwarf2out.c: Likewise. - * dwarf2out.h: Likewise. - * emit-rtl.c: Likewise. - * except.c: Likewise. - * except.h: Likewise. - * expr.c: Likewise. - * expr.h: Likewise. - * final.c: Likewise. - * fold-const.c: Likewise. - * function.c: Likewise. - * function.h: Likewise. - * fwprop.c: Likewise. - * gcc.c: Likewise. - * gcse.c: Likewise. - * genattr.c: Likewise. - * genattrtab.c: Likewise. - * genautomata.c: Likewise. - * genextract.c: Likewise. - * genopinit.c: Likewise - * ggc-common.c: Likewise. - * ggc.h: Likewise. - * gimple-low.c: Likewise. - * gimple-ssa-strength-reduction.c: Likewise. - * gimple-streamer-in.c: Likewise. - * gimple.c: Likewise. - * gimple.h: Likewise. - * gimplify.c: Likewise. - * graph.c: Likewise. - * graphds.c: Likewise. - * graphds.h: Likewise. - * graphite-blocking.c: Likewise. - * graphite-clast-to-gimple.c: Likewise. - * graphite-dependences.c: Likewise. - * graphite-interchange.c: Likewise. - * graphite-optimize-isl.c: Likewise. - * graphite-poly.c: Likewise. - * graphite-poly.h: Likewise. - * graphite-scop-detection.c: Likewise. - * graphite-scop-detection.h: Likewise. - * graphite-sese-to-poly.c: Likewise. - * graphite.c: Likewise. - * godump.c: Likewise. - * haifa-sched.c: Likewise. - * hw-doloop.c: Likewise. - * hw-doloop.h: Likewise. - * ifcvt.c: Likewise. - * insn-addr.h: Likewise. - * ipa-cp.c: Likewise. - * ipa-inline-analysis.c: Likewise. - * ipa-inline-transform.c: Likewise. - * ipa-inline.c: Likewise. - * ipa-inline.h: Likewise. - * ipa-prop.c: Likewise. - * ipa-prop.h: Likewise. - * ipa-pure-const.c: Likewise. - * ipa-ref-inline.h: Likewise. - * ipa-ref.c: Likewise. - * ipa-ref.h: Likewise. - * ipa-reference.c: Likewise. - * ipa-split.c: Likewise. - * ipa-utils.c: Likewise. - * ipa-utils.h: Likewise. - * ipa.c: Likewise. - * ira-build.c: Likewise. - * ira-color.c: Likewise. - * ira-emit.c: Likewise. - * ira-int.h: Likewise. - * ira.c: Likewise. - * loop-invariant.c: Likewise. - * loop-unroll.c: Likewise. - * lower-subreg.c: Likewise. - * lra-lives.c: Likewise. - * lra.c: Likewise. - * lto-cgraph.c: Likewise. - * lto-section-out.c: Likewise. - * lto-streamer-in.c: Likewise. - * lto-streamer-out.c: Likewise. - * lto-streamer.h: Likewise. - * lto-symtab.c: Likewise. - * mcf.c: Likewise. - * modulo-sched.c: Likewise. - * omp-low.c: Likewise. - * opts-common.c: Likewise. - * opts-global.c: Likewise. - * opts.c: Likewise. - * opts.h: Likewise. - * passes.c: Likewise. - * predict.c: Likewise. - * print-tree.c: Likewise. - * profile.c: Likewise. - * profile.h: Likewise. - * read-rtl.c: Likewise. - * ree.c: Likewise. - * reg-stack.c: Likewise. - * regrename.c: Likewise. - * regrename.h: Likewise. - * reload.c: Likewise. - * reload.h: Likewise. - * reload1.c: Likewise. - * rtl.h: Likewise. - * sched-deps.c: Likewise. - * sched-int.h: Likewise. - * sdbout.c: Likewise. - * sel-sched-dump.c: Likewise. - * sel-sched-ir.c: Likewise. - * sel-sched-ir.h: Likewise. - * sel-sched.c: Likewise. - * sese.c: Likewise. - * sese.h: Likewise. - * statistics.h: Likewise. - * stmt.c: Likewise. - * stor-layout.c: Likewise. - * store-motion.c: Likewise. - * tlink.c: Likewise. - * toplev.c: Likewise. - * trans-mem.c: Likewise. - * tree-browser.c: Likewise. - * tree-call-cdce.c: Likewise. - * tree-cfg.c: Likewise. - * tree-cfgcleanup.c: Likewise. - * tree-chrec.c: Likewise. - * tree-chrec.h: Likewise. - * tree-complex.c: Likewise. - * tree-data-ref.c: Likewise. - * tree-data-ref.h: Likewise. - * tree-dfa.c: Likewise. - * tree-diagnostic.c: Likewise. - * tree-dump.c: Likewise. - * tree-eh.c: Likewise. - * tree-emutls.c: Likewise. - * tree-flow.h: Likewise. - * tree-if-conv.c: Likewise. - * tree-inline.c: Likewise. - * tree-inline.h: Likewise. - * tree-into-ssa.c: Likewise. - * tree-iterator.c: Likewise. - * tree-loop-distribution.c: Likewise. - * tree-mudflap.c: Likewise. - * tree-optimize.c: Likewise. - * tree-outof-ssa.c: Likewise. - * tree-parloops.c: Likewise. - * tree-phinodes.c: Likewise. - * tree-predcom.c: Likewise. - * tree-pretty-print.c: Likewise. - * tree-scalar-evolution.c: Likewise. - * tree-sra.c: Likewise. - * tree-ssa-address.c: Likewise. - * tree-ssa-alias.c: Likewise. - * tree-ssa-ccp.c: Likewise. - * tree-ssa-coalesce.c: Likewise. - * tree-ssa-dce.c: Likewise. - * tree-ssa-dom.c: Likewise. - * tree-ssa-forwprop.c: Likewise. - * tree-ssa-live.c: Likewise. - * tree-ssa-live.h: Likewise. - * tree-ssa-loop-im.c: Likewise. - * tree-ssa-loop-ivcanon.c: Likewise. - * tree-ssa-loop-ivopts.c: Likewise. - * tree-ssa-loop-manip.c: Likewise. - * tree-ssa-loop-niter.c: Likewise. - * tree-ssa-loop-prefetch.c: Likewise. - * tree-ssa-math-opts.c: Likewise. - * tree-ssa-operands.c: Likewise. - * tree-ssa-phiopt.c: Likewise. - * tree-ssa-phiprop.c: Likewise. - * tree-ssa-pre.c: Likewise. - * tree-ssa-propagate.c: Likewise. - * tree-ssa-reassoc.c: Likewise. - * tree-ssa-sccvn.c: Likewise. - * tree-ssa-sccvn.h: Likewise. - * tree-ssa-strlen.c: Likewise. - * tree-ssa-structalias.c: Likewise. - * tree-ssa-tail-merge.c: Likewise. - * tree-ssa-threadedge.c: Likewise. - * tree-ssa-threadupdate.c: Likewise. - * tree-ssa-uncprop.c: Likewise. - * tree-ssa-uninit.c: Likewise. - * tree-ssa.c: Likewise. - * tree-ssanames.c: Likewise. - * tree-stdarg.c: Likewise. - * tree-streamer-in.c: Likewise. - * tree-streamer-out.c: Likewise. - * tree-streamer.c: Likewise. - * tree-streamer.h: Likewise. - * tree-switch-conversion.c: Likewise. - * tree-vect-data-refs.c: Likewise. - * tree-vect-generic.c: Likewise. - * tree-vect-loop-manip.c: Likewise. - * tree-vect-loop.c: Likewise. - * tree-vect-patterns.c: Likewise. - * tree-vect-slp.c: Likewise. - * tree-vect-stmts.c: Likewise. - * tree-vectorizer.c: Likewise. - * tree-vectorizer.h: Likewise. - * tree-vrp.c: Likewise. - * tree.c: Likewise. - * tree.h: Likewise. - * value-prof.c: Likewise. - * value-prof.h: Likewise. - * var-tracking.c: Likewise. - * varasm.c: Likewise. - * varpool.c: Likewise. - * vmsdbgout.c: Likewise. - * config/bfin/bfin.c: Likewise. - * config/c6x/c6x.c: Likewise. - * config/darwin.c: Likewise. - * config/i386/i386.c: Likewise. - * config/ia64/ia64.c: Likewise. - * config/mep/mep.c: Likewise. - * config/mips/mips.c: Likewise. - * config/pa/pa.c: Likewise. - * config/rs6000/rs6000-c.c: Likewise. - * config/rs6000/rs6000.c: Likewise. - * config/rx/rx.c: Likewise. - * config/spu/spu-c.c: Likewise. - * config/vms/vms.c: Likewise. - * config/vxworks.c: Likewise. - * config/epiphany/resolve-sw-modes.c: Likewise. - -2012-11-17 Jakub Jelinek - - PR tree-optimization/55236 - * fold-const.c (make_range_step) : For -fwrapv - and signed ARG0_TYPE, force low and high to be non-NULL. - -2012-11-17 H.J. Lu - - * common.opt (static-libasan): New option. - * gcc.c (LIBASAN_SPEC): New macro. - (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC. - * doc/invoke.texi: Document -static-libasan. - -2012-11-17 Vladimir Makarov - - PR rtl-optimization/55342 - * lra-assigns.c (spill_for): Try to allocate other reload pseudos - before and after spilling. - -2012-11-16 Sandra Loosemore - - * doc/extend.texi: Various copy-edits to comply with GCC coding - standards for spelling, terminology, and markup, including use of - American spelling, correct use of terms like "back end" and - "run time", use correct name for GCC, use "@:" markup. - -2012-11-16 Jakub Jelinek - - PR tree-optimization/55329 - * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear - bits in needed_eh_cleanup while iterating over the bitmap. - Look through all forwarder blocks at once. - -2012-11-16 Jan Hubicka - - * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce - to 100. - -2012-11-16 Simon Baldwin - - * doc/cppopts.texi: Document -f[no-]canonical-system-headers. - * doc/install.texi: Document --enable-canonical-system-headers. - -2012-11-16 Vladimir Makarov - - PR rtl-optimization/55330 - * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro. - (lra_inheritance, lra_undo_inheritance): Use it to limit number of - the passes. - -2012-11-16 Matthias Klose - - * config/pa/t-linux: New file; define MULTIARCH_DIRNAME. - * config.gcc (tmake_file): - Include pa/t-linux. - -2012-11-16 Jakub Jelinek - - PR target/54073 - * config/i386/i386.md (movcc): Use comparison_operator - instead of ordered_comparison_operator resp. - ix86_fp_comparison_operator predicates. - * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode - or for -m32 DImode comparisons. - -2012-11-16 Jan Hubicka - - PR tree-optimization/54717 - * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges - with ANTIC_IN. - -2012-11-16 Uros Bizjak - - * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument. - * config/i386/i386.h (EMIT_MODE_SET): Update. - * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function. - (ix86_emit_mode_set) : Call ix86_avx_emit_vzeroupper. - -2012-11-16 Ganesh Gopalasubramanian - - bdver3 Enablement - * doc/extend.texi: Add details about bdver3. - * doc/invoke.texi: Add details about bdver3. - * config.gcc (i[34567]86-*-linux* | ...): Add bdver3. - (case ${target}): Add bdver3. - * config/i386/i386.h (TARGET_BDVER3): New definition. - * config/i386/i386.md (define_attr "cpu"): Add bdver3. - * config/i386/sse.md (sseshuf, sseshuf1): New type attributes. - * config/i386/athlon.md: Handle sseshuf attribute. - * config/i386/atom.md: Likewise. - * config/i386/ppro.md: Likewise. - * config/i386/bdver1.md: Likewise. - * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3. - * config/i386/i386-c.c (ix86_target_macros_internal): Add - bdver3 def_and_undef - * config/i386/driver-i386.c (host_detect_local_cpu): Let - -march=native recognize bdver3 processors. - * config/i386/i386.c (struct processor_costs bdver3_cost): New. - (m_BDVER3): New definition. - (m_AMD_MULTIPLE): Includes m_BDVER3. - (initial_ix86_tune_features): Add bdver3 tune. - (processor_target_table): Add bdver3 entry. - (static const char *const cpu_names): Add bdver3 entry. - (software_prefetching_beneficial_p): Add bdver3. - (ix86_option_override_internal): Add bdver3 instruction sets. - (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2. - (ix86_issue_rate): Add bdver3. - (ix86_adjust_cost): Add bdver3. - (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3. - (enum processor_type): Add PROCESSOR_BDVER3. - * config/i386/bdver3.md: New file describing bdver3 pipelines. - -2012-11-15 David S. Miller - - * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs. - - * configure.ac: Add check for assembler SPARC4 instruction support. - * configure: Rebuild. - * config.in: Add HAVE_AS_SPARC4 section. - * config/sparc/sparc.opt (mcbcond): New option. - * doc/invoke.texi: Document it. - * config/sparc/constraints.md: New constraint 'A' for 5-bit signed - immediates. - * doc/md.texi: Document it. - * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND. - (sparc_option_override): Likewise. - (emit_cbcond_insn): New function. - (emit_conditional_branch_insn): Call it. - (emit_cbcond_nop): New function. - (output_ubranch): Use cbcond, remove label arg. - (output_cbcond): New function. - * config/sparc/sparc-protos.h (output_ubranch): Update. - (output_cbcond): Declare it. - (emit_cbcond_nop): Likewise. - * config/sparc/sparc.md (type attribute): New types 'cbcond' - and uncond_cbcond. - (emit_cbcond_nop): New attribute. - (length attribute): Handle cbcond and uncond_cbcond. - (in_call_delay attribute): Reject cbcond and uncond_cbcond. - (in_branch_delay attribute): Likewise. - (in_uncond_branch_delay attribute): Likewise. - (in_annul_branch_delay attribute): Likewise. - (*cbcond_sp32, *cbcond_sp64): New insn patterns. - (jump): Rewrite into an expander. - (*jump_ubranch, *jump_cbcond): New patterns. - * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'. - * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it - when target default is niagara4. - (SPARC_SIMM5_P): Define. - * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust. - (AS_SPARC32_FLAG): Define. - (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use - AS_NIAGARA4_FLAG as needed. - -2012-11-15 Steve Ellcey - - * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp. - -2012-11-15 Tom de Vries - - PR tree-optimization/54619 - * tree-ssa-loop-ivopts.c (get_use_type): New function. - (get_computation_at): Use get_use_type. - (get_computation_cost_at): Declare and set mem_mode. Use mem_mode. - -2012-11-15 Jakub Jelinek - - * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch - DECL_ASSEMBLER_NAME. - (asan_init_func): Likewise. - (asan_finish_file): Use void * instead of __asan_global * as type of - __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls. - -2012-11-15 Matthias Klose - - * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature. - -2012-11-14 Jan Hubicka - - PR bootstrap/55051 - * gcov-io.c (gcov_read_summary): Fix array bound check. - -2012-11-14 Sterling Augustine - - PR debug/55328 - * dwarf2out.c (index_address_table_entry): Check a node's refcount. - -2012-11-14 Jan Hubicka - - PR bootstrap/55051 - * ipa-inline.c (edge_badness): Improve dumping; fix overflow. - -2012-11-14 Matthias Klose - - * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. - * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME. - * config.gcc (tmake_file): Include sparc/t-linux - for 32bit non-biarch configurations. - -2012-11-14 Matthias Klose - - * doc/invoke.texi: Document -print-multiarch. - * doc/install.texi: Document --enable-multiarch. - * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME. - * configure.ac: Add --enable-multiarch option. - * configure: Regenerate. - * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib. - enable_multiarch, with_float: New macros. - if_multiarch: New macro, define in terms of enable_multiarch. - * genmultilib: Add new argument for the multiarch name. - * gcc.c (multiarch_dir): Define. - (for_each_path): Search for multiarch suffixes. - (driver_handle_option): Handle multiarch option. - (do_spec_1): Pass -imultiarch if defined. - (main): Print multiarch. - (set_multilib_dir): Separate multilib and multiarch names - from multilib_select. - (print_multilib_info): Ignore multiarch names in multilib_select. - * incpath.c (add_standard_paths): Search the multiarch include dirs. - * cppdefault.h (default_include): Document multiarch in multilib - member. - * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an - include directory for multiarch directories. - * common.opt: New options --print-multiarch and -imultilib. - * config.gcc (tmake_file): - Include i386/t-linux. - (tmake_file): - Include i386/t-kfreebsd. - (tmake_file): Include i386/t-gnu. - * config/i386/t-linux64: Add multiarch names in - MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME. - * config/i386/t-gnu: New file. - * config/i386/t-kfreebsd: Likewise. - * config/i386/t-linux: Likewise. - -2012-11-14 Jan Hubicka - - * tree.c (set_call_expr_flags): New function. - (local_define_builtin): Use it. - * tree.h (set_call_expr_flags): Declare. - -2012-11-14 Uros Bizjak - Vladimir Yakovlev - - PR target/47440 - * config/i386/i386.c (gate_insert_vzeroupper): New function. - (rest_of_handle_insert_vzeroupper): Ditto. - (struct rtl_opt_pass pass_insert_vzeroupper): New. - (ix86_option_override): Register vzeroupper insertion pass here. - (ix86_check_avx256_register): Handle SUBREGs properly. - (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128] - initialization. - -2012-11-14 David Edelsohn - - * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test. - * configure: Regenerated. - * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if - other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC - and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means - CMODEL_LARGE on AIX. - (ASM_SPEC): -mvsx implies -mpwr6. Add -many. - (ASM_DEFAULT_SPEC): Use -mpwr4. - (TARGET_CMODEL): Define. - (SET_CMODEL): Define. - * config/rs6000/rs6000.md (largetoc_high_aix): New. - (largetoc_high_plus_aix): New. - (largetoc_low): Change to mode iterator. Test TARGET_TOC - instead of TARGET_ELF. - (tocref): Remove TARGET_ELF test. - * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC - symbols on AIX. - * config/rs6000/aix64.opt (mcmodel): New. - -2012-11-14 Andreas Tobler - - * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard - variables with ASM_OUTPUT_TYPE_DIRECTIVE and - HAVE_GNU_INDIRECT_FUNCTION where needed. - -2012-11-13 Ian Lance Taylor - - * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such - that any of these options disables the others. - -2012-11-13 Sriraman Tallam - - * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node - instead of cgraph_get_create_node. - * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move - ifunc not supported code to the end. - -2012-11-13 Martin Jambor - - PR tree-optimization/55253 - * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable - flag. - -2012-11-13 Eric Botcazou - H.J. Lu - - PR middle-end/55142 - * config/i386/i386.c (legitimize_pic_address): Properly handle - REG + CONST. - (ix86_print_operand_address): Set code to 'k' when forcing - addr32 prefix. For x32, zero-extend negative displacement if - it < -16*1024*1024. - -2012-11-13 Uros Bizjak - - PR target/41993 - * mode-switching.c (create_pre_exit): Set return_copy to last_insn if - copy_start is not a function return regno. Skip debug instructions - in instruction scan loop. - -2012-11-13 Andrew Stubbs - Ulrich Weigand - - * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment. - * config/arm/arm.md (opt, opt_enabled): New attributes. - (enabled): Use opt_enabled. - (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case. - (ashldi3): Allow general operands for TARGET_NEON case. - * config/arm/iterators.md (rshifts): New code iterator. - (shift, shifttype): New code attributes. - * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type. - (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon, - signed_shift_di3_neon, unsigned_shift_di3_neon, - ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber, - di3_neon): New patterns. - -2012-11-13 Jakub Jelinek - - * Makefile.in (asan.o): Depend on $(TM_P_H). - - PR tree-optimization/55281 - * tree-vect-generic.c (expand_vector_condition): Accept any - is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P. - * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is - either integer_all_onesp or integer_zerop. - * tree-vect-stmts.c (vectorizable_condition): Build the condition - using corresponding vector integer type instead of vectype. - - PR rtl-optimization/54127 - * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting - asm goto labels from BB_HEAD (e->dest) to target bb, decrement - LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of - BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or - REG_LABEL_TARGET and REG_LABEL_OPERAND. - -2012-11-12 Jakub Jelinek - - * asan.c (instrument_builtin_call) : Fix up - dest assignment. - -2012-11-13 Hans-Peter Nilsson - - PR target/55257 - * config/cris/cris.c (cris_asm_output_mi_thunk): Call - final_start_function and final_end_function. - -2012-11-12 David Edelsohn - - * asan.c: Include tm_p.h. - -2012-11-12 John David Anglin - - PR target/55195 - * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types. - (in_branch_delay): Don't allow sibcall or sh_func_adrs insns. - (in_nullified_branch_delay): Likewise. - (in_call_delay): Likewise. - Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for - new types. Add opaque cond to mark all calls, sibcalls, dyncalls and - the $$sh_func_adrs call as variable. Update type of sibcalls and - $$sh_func_adrs call. - * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated - length instead of adjustment. Handle negative and undefined call - adjustments for insn_default_length. Remove adjustment for millicode - insn with unfilled delay slot. - (pa_output_millicode_call): Update for revised millicode length. - * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH. - -2012-11-12 Eric Botcazou - - * tree-ssa-ccp.c (dump_lattice_value) : Fix duplication. - -2012-11-12 Eric Botcazou - - * common.opt (fvar-tracking-uninit): Document. - * toplev.c (process_options): Fix handling of flag_var_tracking_uninit. - * config/darwin.c (darwin_override_options): Likewise. - -2012-11-12 Steven Bosscher - - * sched-vis.c (print_pattern): Handle NULL patterns. - -2012-11-12 Steven Bosscher - Jakub Jelinek - - PR rtl-optimization/51447 - * df-scan.c (df_get_entry_block_def_set): Add global regs to the set. - * df-problems.c (df_lr_local_compute): Make global regs always live. - * dce.c (deletable_insn_p): Make insns setting a global reg - inherently necessary. - -2012-11-12 Ian Bolton - - * config/aarch64/aarch64.md (cmov_insn): Emit CSINC when - one of the alternatives is constant 1. - * config/aarch64/constraints.md: New constraint. - * config/aarch64/predicates.md: Rename predicate - aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1. - -2012-11-12 Ian Bolton - - * config/aarch64/aarch64.md (*compare_neg): New pattern. - -2012-11-12 Tobias Burnus - - * doc/invoke.texi: Move -faddress-sanitizer from Optimization - Options to Debugging Options. - -2012-11-12 Jakub Jelinek - - * asan.c: Formatting cleanups. - -2012-11-12 Wei Mi - - * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if - -faddress-sanitizer is on. - -2012-11-12 Dodji Seketeli - - * gimple.h (is_gimple_builtin_call): Declare ... - * gimple.c (is_gimple_builtin_call): ... new public function. - * asan.c (insert_if_then_before_iter, instrument_mem_region_access, - instrument_strlen_call, maybe_instrument_builtin_call, - instrument_call): New static functions. - (create_cond_insert_point): Renamed - create_cond_insert_point_before_iter into this. Add a new - parameter to decide whether to insert the condition before or - after the statement iterator. - (build_check_stmt): Adjust for the new create_cond_insert_point. - Add a new parameter to decide whether to add the instrumentation - code before or after the statement iterator. - (instrument_assignment): Factorize from ... - (transform_statements): ... here. Use maybe_instrument_call to - instrument builtin function calls as well. - (instrument_derefs): Adjust for the new parameter of - build_check_stmt. Fix detection of bit-field access. - -2012-11-12 Dodji Seketeli - - * asan.c (create_cond_insert_point_before_iter): Factorize out of ... - (build_check_stmt): ... here. - -2012-11-12 Dodji Seketeli - - * asan.c (create_cond_insert_point_before_iter): Factorize out of ... - (build_check_stmt): ... here. - -2012-11-12 Dodji Seketeli - - * asan.c (build_check_stmt): Accept the memory access to be - represented by an SSA_NAME. - -2012-11-12 Jakub Jelinek - Wei Mi - - * varasm.c: Include asan.h. - (assemble_noswitch_variable): Grow size by asan_red_zone_size - if decl is asan protected. - (place_block_symbol): Likewise. - (assemble_variable): If decl is asan protected, increase - DECL_ALIGN if needed, and for decls emitted using - assemble_variable_contents append padding zeros after it. - * Makefile.in (varasm.o): Depend on asan.h. - * asan.c: Include output.h. - (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables. - (asan_pp_initialize, asan_pp_string): New functions. - (asan_emit_stack_protection): Use asan_pp{,_initialized} - instead of local pp{,_initialized} vars, use asan_pp_initialize - and asan_pp_string helpers. - (asan_needs_local_alias, asan_protect_global, - asan_global_struct, asan_add_global): New functions. - (asan_finish_file): Protect global vars that can be protected. Use - asan_ctor_statements instead of ctor_statements - * asan.h (asan_protect_global): New prototype. - (asan_red_zone_size): New inline function. - -2012-11-12 Jakub Jelinek - - * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H). - (cfgexpand.o): Depend on asan.h. - * asan.c: Include expr.h and optabs.h. - (asan_shadow_set): New variable. - (asan_shadow_cst, asan_emit_stack_protection): New functions. - (asan_init_shadow_ptr_types): Initialize also asan_shadow_set. - * cfgexpand.c: Include asan.h. Define HOST_WIDE_INT heap vector. - (partition_stack_vars): If i is large alignment and j small - alignment or vice versa, break out of the loop instead of continue, - and put the test earlier. If flag_asan, break out of the loop - if for small alignment size is different. - (struct stack_vars_data): New type. - (expand_stack_vars): Add DATA argument. Change PRED type to - function taking size_t argument instead of tree. Adjust pred - calls. Fill DATA in and add needed padding in between variables - if -faddress-sanitizer. - (defer_stack_allocation): Defer everything for flag_asan. - (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take - size_t index into stack_vars array instead of the decl directly. - (asan_decl_phase_3): New function. - (expand_used_vars): Return var destruction sequence. Adjust - expand_stack_vars calls, add another one for flag_asan. Call - asan_emit_stack_protection if expand_stack_vars added anything - to the vectors. - (expand_gimple_basic_block): Add disable_tail_calls argument. - (gimple_expand_cfg): Pass true to it if expand_used_vars returned - non-NULL. Emit the sequence returned by expand_used_vars after - return_label. - * asan.h (asan_emit_stack_protection): New prototype. - (asan_shadow_set): New decl. - (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE, - ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define. - (asan_protect_stack_decl): New inline. - * toplev.c (process_options): Also disable -faddress-sanitizer on - !FRAME_GROWS_DOWNWARDS targets. - -2012-11-12 Jakub Jelinek - - * asan.c (build_check_stmt): Rename join_bb variable to else_bb. - (gate_asan_O0): New function. - (pass_asan_O0): New variable. - * passes.c (init_optimization_passes): Add pass_asan_O0. - * tree-pass.h (pass_asan_O0): New declaration. - -2012-11-12 Jakub Jelinek - Xinliang David Li - Dodji Seketeli - - * Makefile.in (GTFILES): Add $(srcdir)/asan.c. - (asan.o): Update the dependencies of asan.o. - * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h - function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h, - langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but - included headers. - (shadow_ptr_types): New variable. - (report_error_func): Change is_store argument to bool, don't append - newline to function name. - (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define. - (build_check_stmt): Change is_store argument to bool. Emit GIMPLE - directly instead of creating trees and gimplifying them. Mark - the error reporting function as very unlikely. - (instrument_derefs): Change is_store argument to bool. Use - int_size_in_bytes to compute size_in_bytes, simplify size check. - Use build_fold_addr_expr instead of build_addr. - (transform_statements): Adjust instrument_derefs caller. - Use gimple_assign_single_p as stmt test. Don't look at MEM refs - in rhs2. - (asan_init_shadow_ptr_types): New function. - (asan_instrument): Don't push/pop gimplify context. - Call asan_init_shadow_ptr_types if not yet initialized. - * asan.h (ASAN_SHADOW_SHIFT): Adjust comment. - -2012-11-12 Jakub Jelinek - - * toplev.c (process_options): Warn and turn off - -faddress-sanitizer if not supported by target. - * asan.c: Include target.h. - (asan_scale, asan_offset_log_32, asan_offset_log_64, - asan_offset_log): Removed. - (build_check_stmt): Use ASAN_SHADOW_SHIFT and - targetm.asan_shadow_offset (). - (asan_instrument): Don't initialize asan_offset_log. - * asan.h (ASAN_SHADOW_SHIFT): Define. - * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook. - * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it. - * doc/tm.texi: Regenerated. - * Makefile.in (asan.o): Depend on $(TARGET_H). - * config/i386/i386.c (ix86_asan_shadow_offset): New function. - (TARGET_ASAN_SHADOW_OFFSET): Define. - -2012-11-12 Wei Mi - Diego Novillo - Dodji Seketeli - - * Makefile.in: Add asan.c and its dependencies. - * common.opt: Add -faddress-sanitizer option. - * doc/invoke.texi: Document the new flag. - * passes.c: Add the asan pass. - * toplev.c (compile_file): Call asan_finish_file. - * asan.c: New file. - * asan.h: New file. - * tree-pass.h: Declare pass_asan. - -2012-11-12 Tobias Burnus - - * diagnostic.c (diagnostic_append_note): Also call va_end when - inhibit_notes_p is true. - -2012-11-12 Bin Cheng - - * gcse.c (struct bb_data): Add new fields, old_pressure, live_in - and backup. - (get_regno_pressure_class): Add prototype. - (update_bb_reg_pressure): New. - (should_hoist_expr_to_dom): Add new parameter from. - Monitor the change of reg pressure and use it to drive hoisting. - (hoist_code): Update LIVE and reg pressure information. - (calculate_bb_reg_pressure): Initialize live_in and backup. - -2012-11-12 Oleg Endo - - * doc/md.texi (Standard Pattern Names For Generation): Fix swapped - sine and cosine operands in the sincos description. - -2012-11-12 Oleg Endo - - PR target/53512 - * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands. - -2012-11-11 H.J. Lu - - * config/i386/i386.md (*movti_internal_rex64): Remove "!" from - riF->o alternative. - -2012-11-11 Eric Botcazou - - * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak. - * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto. - -2012-11-11 Eric Botcazou - H.J. Lu - - PR rtl-optimization/55247 - PR middle-end/55259 - * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0, - handle ZERO_EXTEND. - * recog.c (offsettable_address_addr_space_p): Likewise. - -2012-11-11 Steven Bosscher - - PR middle-end/55263 - * postreload.c (rest_of_handle_postreload): With non-call exceptions, - if edges are purged call cleanup_cfg to remove unreachable blocks. - -2012-11-11 Sandra Loosemore - - * doc/extend.texi: Copy-edit to use "built-in function" instead - of "builtin", per GCC coding standards. Also use consistent - capitalization in titles of sections describing built-in functions. - -2012-11-11 Martin Jambor - - PR tree-optimization/55238 - * ipa-cp.c (agg_pass_through_permissible_p): New function. - (propagate_aggs_accross_jump_function): Use it. - (find_aggregate_values_for_callers_subset): Likewise and relax an - assert. - -2012-11-10 Uros Bizjak - - PR target/47440 - * config/i386/i386.c (check_avx256_stores): Remove. - (ix86_check_avx256_register): New. - (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register. - Check the whole RTX for 256bit registers using for_each_rtx. - (ix86_check_avx_stores): New. - (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN - if there are no 256bit registers used in the function return register. - (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register. - (ix86_avx_u128_mode_exit): Ditto. - -2012-11-10 Jan Hubicka - - PR middle-end/48636 - * ipa-inline.c (want_inline_small_function_p): Take aray index hint. - (edge_badness): Likewise. - * ipa-inline.h (inline_hints_vals): Add array_index and comments. - (inline_summary): Add ARRAY_INDEX. - * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint. - (reset_inline_summary): Handle array_index hint. - (inline_node_duplication_hook): Likewise. - (dump_inline_summary): Likewise. - (array_index_predicate): New function. - (estimate_function_body_sizes): Use it. - (estimate_node_size_and_time): Use array_index hint. - (inline_merge_summary, inline_read_section): Likewise. - -2012-11-10 Sandra Loosemore - - * doc/extend.texi: Copy-edit to use "bit-field" consistently - instead of "bitfield" or "bit field". - -2012-11-10 Sandra Loosemore - - * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases - involving "bit", "byte", "word", "precision", and "floating" - modifiers. - -2012-11-10 Sandra Loosemore - - * doc/extend.texi: Copy-edit to fix incorrect uses of "which" - and "that" throughout the file. - -2012-11-10 Andrew Pinski - - PR bootstrap/55202 - * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new" - or "collect-ld". - * configure: Regenerate. - -2012-11-10 Eric Botcazou - - * expr.c (store_field): Remove TYPE parameter. Remove block of code - dealing with BLKmode in registers. Reimplement this support using - pseudo-registers and bit-field techniques. - (store_constructor_field): Remove TYPE parameter and adjust calls to - store_field. - (expand_assignment): Adjust calls to store_field. Add comment. - (store_expr): Add comment. - (store_constructor): Adjust calls to store_constructor_field. - (expand_expr_real_2): Adjust call to store_field. - -2012-11-10 Vladimir Makarov - Uros Bizjak - - PR target/55247 - * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o - alternative. - -2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> - - PR c++/54413 - * doc/invoke.texi: Document f[no-]ext-numeric-literals flag. - -2012-11-09 Eric Botcazou - - * doc/install.texi (sparc64-x-solaris2): Mention MPC as well. - -2012-11-09 Richard Henderson - - * config/i386/i386.c (ix86_lra_p): Remove. - (TARGET_LRA_P): Use hook_bool_void_true. - -2012-11-09 Jason Merrill - - * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST. - -2012-11-09 Vladimir Makarov - - PR tree-optimization/55154 - * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros. - * lra.c (setup_operand_alternative): Use them. - * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND): - Remove. - (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT. - Accumulate reject instead of setting for non-const. - (curr_insn_transform): Initialize best_losers and best_overall by - INT_MAX. - -2012-11-09 Christian Bruel - - * config/sh/sh.c (sh_can_use_simple_return_p): Enable with - -freorder-blocks-and-partition. - -2012-11-09 Kenneth Zadeck - - * rtl.h (CONST_SCALAR_INT_P): New macro. - * cfgexpand.c (expand_debug_locations): Changed to use - CONST_SCALAR_INT_P macro. - * combine.c (try_combine, subst, make_extraction, - gen_lowpart_for_combine): Ditto. - * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto. - * dwarf2out.c (loc_descriptor): Ditto. - * emit-rtl.c (gen_lowpart_common): Ditto. - * ira-costs.c (record_reg_classes, record_address_regs): Ditto. - * ira-lives.c (single_reg_class): Ditto. - * recog.c (simplify_while_replacing, asm_operand_ok, - constrain_operands): Ditto. - * reload.c (find_reloads): Ditto. - * simplify-rtx.c (simplify_unary_operation_1, - simplify_const_unary_operation, simplify_binary_operation_1, - simplify_const_binary_operation, simplify_relational_operation_1, - simplify_subreg): Ditto. - -2012-11-09 Steven Bosscher - - PR middle-end/54385 - * postreload.c (reload_cse_simplify): Return a bool indicating - whether the CFG was changed. - (reload_cse_regs_1): Traverse the CFG instead of the insns chain. - Cleanup the CFG if edges may have been removed. - (reload_cse_regs): Update. - -2012-11-09 Andrey Belevantsev - - PR rtl-optimization/54472 - * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets. - (has_dependence_note_reg_clobber, has_dependence_note_reg_use): - Likewise. - -2012-11-09 Eric Botcazou - - * config/i386/i386.c (release_scratch_register_on_entry): Also adjust - sp_offset manually. - -2012-11-08 Christian Bruel - - * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count. - Do not reset dead bb1->frequency. - -2012-11-08 Steven Bosscher - - PR tree-optimization/55191 - * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here. - (flow_dfs_compute_reverse_execute): Don't call it here. - -2012-11-08 Jakub Jelinek - - PR debug/53145 - * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string - here, instead add "" if producer_string is NULL. - (dwarf2out_finish): Call gen_producer_string here, unconditionally - decrease refcount of the old indirect string and set val_str to - find_AT_string result. - - PR debug/54499 - * cgraphunit.c (assemble_thunk): Don't call source_line debug hook - here, instead call insn_locations_{init,finalize} and initialize - prologue_location. - -2012-11-08 Dmitry Gorbachev - - PR driver/54789 - * gcc.c (process_command): Use save_switch for synthesized - -fcompare-debug=* option; mark the switch as known. - -2012-11-08 Jakub Jelinek - - PR target/54308 - * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove - inline keyword. - -2012-11-08 Bernd Schmidt - - PR rtl-optimization/54850 - * sched-deps.c (find_inc): Add all dependencies from the inc_insn - to the mem_insn. - -2012-11-08 Jan Hubicka - - PR middle-end/48636 - * ipa-inline.c (big_speedup_p): New function. - (want_inline_small_function_p): Use it. - (edge_badness): Dump it. - * params.def (inline-min-speedup): New parameter. - * doc/invoke.texi (inline-min-speedup): Document. - -2012-11-08 Martin Jambor - - * ipa-prop.c (determine_known_aggregate_parts): Skip writes to - different declarations when tracking writes to a declaration. - -2012-11-07 David S. Miller - - * config/sparc/constraints.md ("U"): Document, in detail, - which this constraint is necessary. - -2012-11-07 Uros Bizjak - - PR middle-end/55235 - * expr.c (store_expr): Do not call emit_block_move for - non-BLKmode values. - -2012-11-07 Eric Botcazou - - PR middle-end/55219 - * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if - the argument is itself a conditional expression. - -2012-11-07 Vladimir Makarov - - PR rtl-optimization/55122 - * lra-constraints.c (match_reload): Sync values for dead input pseudos. - -2012-11-07 Richard Henderson - - * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa. - -2012-11-07 Peter Bergner - - * doc/invoke.texi (-mcpu=power8): Document. - * config.in (HAVE_AS_POWER8): New. - * config.gcc: Add cpu_type power8. - * configure.ac: (HAVE_AS_POWER8): Check for assembler support for - the POWER8 instructions. - * configure: Regenerate. - * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define. - (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8. - (EXTRA_SPECS): Add asm_cpu_power8 spec string. - * config/rs6000/rs6000-cpus.def (processor_target_table): Alias - POWER8 to POWER7. - * config/rs6000/rs6000-tables.opt: Regenerate. - * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8, - pass %(asm_cpu_power8)/-mpwr8. - * config/rs6000/aix53.h: Likewise. - * config/rs6000/aix61.h: Likewise. - -2012-11-07 Uros Bizjak - - PR target/55224 - * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception - to make a sibcall if one of the functions has void return type. - -2012-11-07 Manuel López-Ibáñez - - PR c/53063 - * doc/invoke.texi (Wformat): Update. - -2012-11-07 Manuel López-Ibáñez - - * optc-gen.awk: Factor code out to... - * opt-functions.awk (lang_enabled_by): ... this new function. - -2012-11-07 Manuel López-Ibáñez - - PR c/53063 - * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt. - -2012-11-07 Yufeng Zhang - - * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing - argument 'Pmode' to the 'plus_constant' call. - -2012-11-07 Martin Jambor - - PR tree-optimization/53787 - * ipa-cp.c (ipcp_value_source): New field offset. - (ipcp_agg_lattice): New type. - (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here. - (ipcp_agg_lattice_pool): New variable. - (ipa_get_parm_lattices): New function. - (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above. - Adjusted all callers. - (print_lattice): New function. - (print_all_lattices): Use the above, also print aggregate lattices. - (set_agg_lats_to_bottom): New function. - (set_agg_lats_contain_variable): Likewise. - (set_all_contains_variable): Likewise. - (initialize_node_lattices): Also handle aggregate lattices, set - virt_call in ipcp_param_lattices. - (add_value_source): Handle offsets. - (add_value_to_lattice): Likewise. - (add_scalar_value_to_lattice): New function. - (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice. - (propagate_vals_accross_ancestor): Likewise. - (propagate_accross_jump_function): Renamed to - propagate_scalar_accross_jump_function, use - add_scalar_value_to_lattice. - (set_check_aggs_by_ref): New function. - (merge_agg_lats_step): Likewise. - (set_chain_of_aglats_contains_variable): Likewise. - (merge_aggregate_lattices): Likewise. - (propagate_constants_accross_call): Also handle aggregate lattices. - (hint_time_bonus): New function. - (context_independent_aggregate_values): Likewise. - (gather_context_independent_values): Also handle agggregate values. - (agg_jmp_p_vec_for_t_vec): New function. - (estimate_local_effects): Also handle agggregate values. - (add_all_node_vals_to_toposort): Likewise. - (ipcp_propagate_stage): Use struct ipcp_param_lattices. - (get_clone_agg_value): New function. - (cgraph_edge_brings_value_p): Also handle agggregate values. - (create_specialized_node): Likewise. - (find_more_values_for_callers_subset): Rename to - find_more_scalar_values_for_callers_subset. Modify dump. - (copy_plats_to_inter): New function. - (intersect_with_plats): Likewise. - (agg_replacements_to_vector): Likewise. - (intersect_with_agg_replacements): Likewise. - (find_aggregate_values_for_callers_subset): Likewise. - (known_aggs_to_agg_replacement_list): Likewise. - (cgraph_edge_brings_all_scalars_for_node): Likewise. - (cgraph_edge_brings_all_agg_vals_for_node): Likewise. - (perhaps_add_new_callers): Old functionality moved to - cgraph_edge_brings_all_scalars_for_node, call it and - cgraph_edge_brings_all_agg_vals_for_node. - (ipcp_val_in_agg_replacements_p): New function. - (decide_about_value): New function. - (decide_whether_version_node): A lot of functionality moved to - decide_about_value. Also handle agggregate values. - (ipcp_driver): Also allocate ipcp_agg_lattice_pool. - (pass_ipa_cp): Fill in new entries. - * ipa-prop.c (ipa_node_agg_replacements): New variable. - (free_parms_ainfo): New function. - (ipa_analyze_node): Use free_parms_ainfo to free stuff. - (ipa_find_agg_cst_for_param): Do not rely on offset ordering. - (ipa_set_node_agg_value_chain): New function. - (ipa_node_removal_hook): Also handle ipa_node_agg_replacements. - (ipa_node_duplication_hook): Likewise. - (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool. - (ipa_free_all_structures_after_iinln): Likewise. - (ipa_dump_agg_replacement_values): New function. - (write_agg_replacement_chain): Likewise. - (read_agg_replacement_chain): Likewise. - (ipa_prop_write_all_agg_replacement): Likewise. - (read_replacements_section): Likewise. - (ipa_prop_read_all_agg_replacement): Likewise. - (adjust_agg_replacement_values): Likewise. - (ipcp_transform_function): Likewise. - * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of - ipa_agg_jump_function_t. - (ipa_node_params): Make lattices an array of ipcp_param_lattices. - (ipa_agg_replacement_value): New type and its vector. - (ipa_set_node_agg_value_chain) Declare. - (ipa_node_agg_replacements): Likewise. - (ipa_get_agg_replacements_for_node): New function. - (ipcp_agg_lattice_pool): Declare. - (ipa_dump_agg_replacement_values): Likewise. - (ipa_prop_write_all_agg_replacement): Likewise. - (ipa_prop_read_all_agg_replacement): Likewise. - (ipcp_transform_function): Likewise. - * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around - known aggregates and hints. - * ipa-inline.h: include ipa-prop.h. - (estimate_ipcp_clone_size_and_time): Adjust declaration. - * lto-streamer.h (lto_section_type): New item - LTO_section_ipcp_transform. - * lto-section-in.c (lto_section_name): New element ipcp_trans. - * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter. - * Makefile.in (IPA_INLINE_H): New. Use everywhee instead of - ipa-inline.h. - -2012-11-07 Uros Bizjak - - * config/i386/i386.c (enum upper_128bits_state): Remove. - (check_avx256_store): Use bool pointer argument. - (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns. - * config/i386/predicates.md (vzeroupper_operation): Use match_test. - -2012-11-07 Yufeng Zhang - - * config/aarch64/aarch64.c (aarch64_expand_prologue): For the - load-pair with writeback instruction, replace - aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA); - add new local variable 'cfa_reg' and use it. - -2012-11-07 Kaz Kojima - - PR middle-end/49220 - * mode-switching.c (create_pre_exit): Set short_block if there - are no copy insns. - -2012-11-07 Martin Jambor - - * lto-cgraph.c: Include tree-pass.h. - (lto_output_node): Stream node->ipa_transforms_to_apply. - (input_node): Likewise. - * tree-pass.h (passes_by_id): Declare. - (passes_by_id_size): Likewise. - * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies. - -2012-11-07 Jan Hubicka - - * ipa-inline-analysis.c (true_predicate, single_cond_predicate, - reset_inline_edge_summary): Fix formatting. - (account_size_time): Bump up the limit on number of size/time - entries to 256. - (estimate_function_body_sizes): Work in reverse postorder. - -2012-11-07 David S. Miller - - PR bootstrap/55211 - Revert: - * config/sparc/constraints.md ("U"): Delete. - * config/sparc/sparc.md: Use 'r' constraint instead of 'U'. - * config/sparc/sync.md: Likewise. - And revert parts of: - * doc/md.texi: Sync sparc constraint documentation with reality. - -2012-11-07 Jakub Jelinek - - * config/i386/i386.c (ix86_avx_u128_mode_after): Don't - look for reg in CALL operand. - - PR debug/54693 - * tree-flow.h (propagate_threaded_block_debug_into): New prototype. - * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No - longer static. - * tree-ssa-loop-ch.c (copy_loop_headers): Use it. - -2012-11-06 Sterling Augustine - - * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF. - -2012-11-06 Aldy Hernandez - Richard Henderson - - * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New. - * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New. - (struct tm_region): Add tm_state, restart_block, - original_transaction_was_outer. - (tm_region_init_0): Initialize them. - (collect_bb2reg, get_bb_regions_instrumented): New. - (tm_log_emit_save_or_restores): Merge into ... - (expand_transaction): ... here. - (generate_tm_state, propagate_tm_flags_out): New. - (execute_tm_mark): Avoid processing blocks more than once. - (split_bb_make_tm_edge): Split out from ... - (make_tm_edge): ... here. And merge the rest into ... - (expand_block_edges): ... here. - (execute_tm_edges): Avoid processing blocks more than once. - (ipa_uninstrument_transaction): New. - (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa. - (ipa_tm_execute): Init and free original_copy_tables. - * trans-mem.h (PR_MULTIWAYCODE): New. - * tree-cfg.c (make_edges): Use EDGE_TM_ABORT. - -2012-11-06 Aldy Hernandez - - * cfghooks.c (copy_bbs): Handle a null loop_father. - - * cgraph.c (cgraph_debug_gimple_stmt): Handle a null - current_function_decl. - -2012-11-06 Richard Henderson - - * tree-ssa-tail-merge.c (find_duplicate): Do not consider - is_tm_ending_fndecl calls as mergable. - -2012-11-06 Sterling Augustine - Cary Coutant - - * common.opt (gno-split-dwarf, gsplit-dwarf): New switches. - * doc/invoke.texi (Debugging Options): Document them. - * gcc.c (replace_extension_spec_func): New function. - (ASM_FINAL_SPEC): Adjust. - (static_spec_functions): Add new field for replace-extension. - (check_live_switch): Adjust comment. Add case for 'g'. - * opts.c (finish_options): Set x_debug_generate_pub_sections based on - x_dwarf_split_debug_info. - (common_handle_option): Add case for OPT_gsplit_dwarf. - * dwarf2out.h (addr_table_entry_struct): Add forward declaration. - (dw_val_struct): Add val_entry pointer. - * dwarf2out.c (debug_skeleton_info_section, - debug_skeleton_abbrev_section, debug_addr_section, - debug_skeleton_line_section, debug_str_offsets_section): New globals. - (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines. - (indirect_string_node): New field index. - (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel, - ate_kind_label. - (addr_table_entry): New structure and type. - (dw_loc_list_struct): Add field begin_entry. - (new_loc_desc): Initialize val_entry. - (size_of_loc_descr, output_loc_operands, output_loc_operands_raw): - Add cases for DW_OP_GNU_addr_index and DW_OP_const_index. - (build_cfa_loc): Initialize val_entry. - (AT_index, add_addr_table_entry, remove_addr_table_entry, - add_AT_lbl_id): New functions. - (add_AT_addr, add_AT_range_list): New parameter force_direct. - (output_die_abbrevs): New function. - (add_ranges_by_labels): New parameter force_direct. - (output_line_info): New parameter prologue_only. - (dtprel_bool): New enum with dtprel_false and dtprel_true. - (dw_addr_op, new_addr_loc_descr): New functions. - (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION, - DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION, - DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION, - DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION, - DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION, - DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION, - DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION, - DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION, - DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL, - DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL - DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros. - (DEBUG_STR_SECTION_FLAGS): Adjust. - (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL, - DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL, - DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL, - DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL, - DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust - indentation. - (debug_skeleton_abbrev_section_label, debug_addr_section_label, - debug_skeleton_line_section_label, debug_skeleton_info_section_label): - New global variables. - (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec, - add_AT_data8): Initialize val_entry. - (add_AT_low_high_pc): New parameter force_direct. Handle - dwarf_split_debug_info. - (set_indirect_string, find_AT_string_form): New functions. - (AT_string_form): Adjust to call find_AT_string_from. - (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list): - Initialize val_entry. - (addr_index_table): New global variable. - (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry, - init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry, - remove_loc_list_addr_table_entries): New functions. - (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter - force_direct. Handle dwarf_split_debug_info. - (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr, - add_AT_offset): Initialize val_entry. - (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines. - (size_of_die): Handle dwarf_split_debug_info. - (size_of_aranges, value_format): Call AT_class. Check AT_index. - (output_die_abbrevs): New function. - (output_abbrev_section): Call output_die_abbrevs. - (new_loc_list): Initialize begin_entry. - (output_loc_list): Handle dwarf_split_debug_info. - (output_range_list_offset, output_loc_list_offset, - output_attr_index_or_value, ): New functions. - (output_die): Fix call to dw2_asm_output_data. Call - output_attr_index_or_value and output_range_list_offset. - Adjust logic around dw_val_class_str. - (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit, - output_skeleton_debug_sections): New functions. - (output_comdat_type_unit, output_pubname, output_aranges): Handle - dwarf_split_debug_info. - (add_ranges_by_labels): New parameter force_direct. - (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr. - (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in - place of generic integer. - (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die, - gen_call_site_die, gen_subprogram_die, gen_variable_die, - add_high_low_attributes): Adjust calls to add_AT_lbl_id. - (output_macinfo_op): Adjust indirect_string_logic. - (save_macinfo_strings): New function. - (output_macinfo): Adjust. - (dwarf2out_init): Handle dwarf_split_debug_info. - (index_string, output_index_string_offset, output_index_string): New - functions. - (output_indirect_string): Adjust. - (output_indirect_strings, output_addr_table_entry, output_addr_table): - New functions. - (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index - and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call - remove_loc_list_addr_table_entries and remove_addr_table_entry. - (index_location_lists): New function. - (dwarf2out_finish): Handle dwarf_split_debug_info. New variable - main_comp_unit_die. Adjust calls to add_AT_low_high_pc, - add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call - save_macinfo_strings and output_indirect_strings. - -2012-11-06 Gerald Pfeifer - - * config/i386/i386.c (make_dispatcher_decl): Guard with - ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION. - -2012-11-06 Jan Hubicka - - * ipa-inline-analysis.c (estimate_function_body_sizes, - inline_update_overall_summary): Cap time calculations. - -2012-11-06 Uros Bizjak - - * config/i386/i386.c (ix86_init_machine_status): Do not - explicitly clear tls_descriptor_call_expanded_p again. - -2012-11-06 Uros Bizjak - - * config/i386/sse.md - (_maskstore): Mark operand 0 - as read and written by the instruction. - -2012-11-06 Alexandre Oliva - - PR debug/54693 - * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): - Use a stack vector before allocating a pointer set. - -2012-11-06 Martin Jambor - - * ipa-prop.c (ipa_get_param_decl_index_1): New function. - (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1. - (ipa_populate_param_decls): Accept descriptors parameter rather - than the whole info. - (load_from_unmodified_param): Likewise. - (ipa_load_from_parm_agg_1): Likewise. - (ipa_load_from_parm_agg): Extract descriptors from info. - (compute_complex_assign_jump_func): Likewise. - (ipa_analyze_indirect_call_uses): Likewise. - -2012-11-06 Jan Hubicka - - * ipa-inline.c (compute_uninlined_call_time): Return gcov_type. - (compute_inlined_call_time): Watch overflows. - (relative_time_benefit): Compute in gcov_type. - -2012-11-06 Jan Hubicka - - * cfgloopanal.c (get_loop_hot_path): New function. - * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV, - NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH, - NUM_BRANCHES_ON_HOT_PATH. - (tree_estimate_loop_size): Compute the new values. - (try_unroll_loop_completely): Disable unrolling of loops with only - calls or too many branches. - (tree_unroll_loops_completely): Deal also with outer loops of hot loops. - * cfgloop.h (get_loop_hot_path): Declare. - * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters. - * invoke.texi (max-peel-branches): Document. - -2012-11-06 Jan Hubicka - - * ipa-pure-const.c (check_stmt): Fix debug info formatting. - -2012-11-06 Uros Bizjak - - * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define. - (ix86_instantiate_decls): New function. - (ix86_expand_builtin) : Use SLOT_TEMP - stack slot instead of SLOT_VIRTUAL. - : Ditto. - (assign_386_stack_local): Do not assert when virtual slot is valid. - * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL. - * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot. - (truncxf2): Ditto. - (floatunssi2): Ditto. - (isinf2): Ditto. - * config/i386/sync.md (atomic_load): Ditto. - (atomic_store): Ditto. - -2012-11-06 Jan Hubicka - - * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound, - vect_do_peeling_for_alignment): Fix loop bound computation. - * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds. - -2012-11-06 Oleg Endo - - PR target/54089 - * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for - ops larger than SImode. - * config/sh/sh.md (rotcl, *rotcl): New insns and splits. - (ashldi3_k): Convert to insn_and_split and use new rotcl insn. - -2012-11-06 Vladimir Yakovlev - - PR target/47440 - * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete. - (emit_vzero): Add prototype. - (ix86_mode_entry): Likewise. - (ix86_mode_exit): Likewise. - (ix86_emit_mode_set): Likewise. - - * config/i386/i386.c (typedef struct block_info_def): Delete. - (define BLOCK_INFO): Delete. - (check_avx256_stores): Add checking for MEM_P. - (move_or_delete_vzeroupper_2): Delete. - (move_or_delete_vzeroupper_1): Delete. - (move_or_delete_vzeroupper): Delete. - (ix86_maybe_emit_epilogue_vzeroupper): Delete. - (function_pass_avx256_p): Delete. - (ix86_function_ok_for_sibcall): Remove sibcall disabling. - (nit_cumulative_args): Remove initialization of of avx256 fields of - cfun->machine. - (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation. - (ix86_expand_epilogue): Likewise. - (ix86_avx_u128_mode_needed): New. - (ix86_i387_mode_needed): Rename from ix86_mode_needed. - (ix86_mode_needed): New. - (ix86_avx_u128_mode_after): New. - (ix86_mode_after): New. - (ix86_avx_u128_mode_entry): New. - (ix86_mode_entry): New. - (ix86_avx_u128_mode_exit): New. - (ix86_mode_exit): New. - (ix86_emit_mode_set): New. - (ix86_expand_call): Delete vzeroupper generation. - (ix86_split_call_vzeroupper): Delete. - (ix86_init_machine_status): Initialize optimize_mode_switching. - (ix86_expand_special_args_builtin): Change. - (ix86_reorg): Delete a call of move_or_delete_vzeroupper. - - * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New. - (AVX_U128): New. - (avx_u128_state): New. - (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY. - (MODE_AFTER): New. - (MODE_ENTRY): New. - (MODE_EXIT): New. - (EMIT_MODE_SET): Change. - (machine_function): Delete avx256 fields. - - * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete. - (define_insn_and_split "*call_vzeroupper"): Delete. - (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete. - (define_insn_and_split "*sibcall_vzeroupper"): Delete. - (define_insn_and_split "*call_pop_vzeroupper"): Delete. - (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete. - (define_insn_and_split "*call_value_vzeroupper"): Delete. - (define_insn_and_split "*sibcall_value_vzeroupper"): Delete. - (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete. - (define_insn_and_split "*call_value_pop_vzeroupper"): Delete. - (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete. - (define_expand "return"): Remove vzeroupper emitting. - (define_expand "simple_return"): Delete. - - * config/i386/predicates.md (vzeroupper_operation): New. - - * config/i386/sse.md (avx_vzeroupper): Change. - -2012-11-06 Uros Bizjak - Kaz Kojima - - PR target/41993 - * mode-switching.c (create_pre_exit): Set return_copy to - last_insn when copy_start is a pseudo reg. - -2012-11-06 Andrey Turetskiy - - * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3 - to CODE_FOR_avx2_pmulhrswv16hi3. - * config/i386/predicates.md (const1_operand): Extend for vectors. - * config/i386/sse.md (ssse3_avx2): Extend. - (ssedoublemode): Ditto. - (_uavg3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3, - avx2_uavgv16hi3 and sse2_uavgv8hi3 into one. - (*_uavg3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3, - *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one. - (PMULHRSW): New. - (_pmulhrsw3): Merge avx2_umulhrswv16hi3, - ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one. - (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand - predicate. - (*ssse3_pmulhrswv8hi3): Ditto. - (*ssse3_pmulhrswv4hi3): Ditto. - -2012-11-06 Joern Rennecke - - * config/epiphany/epiphany.c (epiphany_address_cost): - Use MODE parameter. - -2012-11-05 Sriraman Tallam - - * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook - description. - * (TARGET_COMPARE_VERSION_PRIORITY): New hook description. - * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description. - * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description. - * doc/tm.texi: Regenerate. - * target.def (compare_version_priority): New target hook. - * (generate_version_dispatcher_body): New target hook. - * (get_function_versions_dispatcher): New target hook. - * (function_versions): New target hook. - * cgraph.c (cgraph_fnver_htab): New htab. - (cgraph_fn_ver_htab_hash): New function. - (cgraph_fn_ver_htab_eq): New function. - (version_info_node): New pointer. - (insert_new_cgraph_node_version): New function. - (get_cgraph_node_version): New function. - (delete_function_version): New function. - (record_function_versions): New function. - * cgraph.h (cgraph_node): New bitfield dispatcher_function. - (cgraph_function_version_info): New struct. - (get_cgraph_node_version): New function. - (insert_new_cgraph_node_version): New function. - (record_function_versions): New function. - (delete_function_version): New function. - (init_lowered_empty_function): Expose function. - * tree.h (DECL_FUNCTION_VERSIONED): New macro. - (tree_function_decl): New bit-field versioned_function. - * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion - function dispatcher. - (cgraph_analyze_functions): Analyze dispatcher function. - (init_lowered_empty_function): Make non-static. New parameter in_ssa. - (assemble_thunk): Add parameter to call to init_lowered_empty_function. - * config/i386/i386.c (add_condition_to_bb): New function. - (get_builtin_code_for_version): New function. - (ix86_compare_version_priority): New function. - (feature_compare): New function. - (dispatch_function_versions): New function. - (ix86_function_versions): New function. - (attr_strcmp): New function. - (ix86_mangle_function_version_assembler_name): New function. - (ix86_mangle_decl_assembler_name): New function. - (make_name): New function. - (make_dispatcher_decl): New function. - (is_function_default_version): New function. - (ix86_get_function_versions_dispatcher): New function. - (make_attribute): New function. - (make_resolver_func): New function. - (ix86_generate_version_dispatcher_body): New function. - (fold_builtin_cpu): Return integer for cpu builtins. - (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro. - (TARGET_COMPARE_VERSION_PRIORITY): New macro. - (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro. - (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro. - (TARGET_OPTION_FUNCTION_VERSIONS): New macro. - -2012-11-05 Joern Rennecke - - * recog.c (extract_insn): Enabled alternative defaults to 1. - -2012-11-05 H.J. Lu - - * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with - REX_INT_REGNO_P. - -2012-11-05 Eric Botcazou - - PR tree-optimization/54986 - * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op - conversions on entry but add them back on exit if needed. - -2012-11-05 Andreas Schwab - - * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison - codes in non-jump and cmove insn. - -2012-11-05 Uros Bizjak - Vladimir Yakovlev - - * mode-switching.c (create_pre_exit): Force late switching if - __builtin_{apply,return} emitted a load that require mode, - other than MODE_EXIT. - -2012-11-05 Richard Sandiford - - PR target/55204 - * config/i386/i386.c (ix86_address_subreg_operand): Remove stack - pointer check. - (print_reg): Use true_regnum rather than REGNO. - (ix86_print_operand_address): Remove SUBREG handling. - -2012-11-05 Jan Hubicka - - * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of - max_loop_iterations. - -2012-11-05 Joern Rennecke - - * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip - with a return instruction. - -2012-11-05 Vladimir Makarov - - PR rtl-optimization/55151 - * lra-constraints.c (process_alt_operands): Permit putting reg - value into memory. Increase reject for this case. - -2012-11-05 Dehao Chen - - * final.c (reemit_insn_block_notes): Do not change scope if insn - location is UNKNOWN_LOCATION. - -2012-11-05 Joern Rennecke - - * doc/md.texi (Defining Attributes): Document that we are defining - HAVE_ATTR_name macros as 1 for defined attributes, and as 0 - for undefined special attributes. - * final.c (asm_insn_count, align_fuzz): Always define. - (insn_current_reference_address): Likewise. - (init_insn_lengths): Use if (HAVE_ATTR_length) instead of - #ifdef HAVE_ATTR_length. - (get_attr_length_1, shorten_branches, final): Likewise. - (final_scan_insn, output_asm_name): Likewise. - * genattr.c (gen_attr): Define HAVE_ATTR_name macros for - defined attributes as 1. - Remove ancient get_attr_alternative compatibility code. - For special purpose attributes not provided, define HAVE_ATTR_name - as 0. - In case no length attribute is given, provide stub definitions - for insn_*_length* functions, and also include insn-addr.h. - In case no enabled attribute is given, provide stub definition. - * genattrtab.c (write_length_unit_log): Always write a definition. - * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions. - * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare. - * lra-int.h (struct lra_insn_recog_data): Make member - alternative_enabled_p unconditional. - * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of - #ifdef HAVE_ATTR_length. - (lra_set_insn_recog_data): Likewise. Make initialization of - alternative_enabled_p unconditional. - (lra_update_insn_recog_data): Use #if instead of #ifdef for - HAVE_ATTR_enabled. - * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define. - (extract_insn): Check HAVE_ATTR_enabled. - (gate_handle_split_before_regstack): Use #if instead of - #if defined for HAVE_ATTR_length. - -2012-11-05 Jan Hubicka - - * ipa-inline.c (compute_uninlined_call_time, - compute_inlined_call_time): New functions. - (RELATIVE_TIME_BENEFIT_RANGE): New macro. - (relative_time_benefit): Rewrite. - (edge_badness): Rewrite path with guessed profile and estimated profile. - * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module): - New hints. - (struct inline_summary): Add GROWTH filed. - * ipa-inline-analysis.c (dump_inline_hints): Update. - (reset_inline_summary): Update. - (dump_inline_summary): Update. - (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and - gimple_assign_load_p predicates. - (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint. - (simple_edge_hints): New function. - (do_estimate_edge_time): Return time of invocation of callee rather - than the time scaled by edge frequency; update hints code. - (do_estimate_edge_hints): Update. - (do_estimate_growth): Cleanup. - -2012-11-05 Jakub Jelinek - - PR target/55194 - * dwarf2out.c (value_format) : Handle - also DWARF2_ADDR_SIZE 1 and 2. - -2012-11-05 Jan Hubicka - - * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p. - (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL - * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip - just_once_each_iteration_p; record estimated bound when loop has only one - likely exit; test just_once_each_iteration_p before IV canon itself. - -2012-11-05 Jan Hubicka - - * ipa-inline.c (leaf_node_p): Rename to ... - (num_calls) ... this one. - (want_early_inline_function_p): Allow smal growth on non-leafs. - -2012-11-05 Jakub Jelinek - - PR debug/54402 - * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE - hfp note. - (vt_initialize): Look for fp_setter in any bb, not just successor of - entry bb. - -2012-11-05 Oleg Endo - - * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro. - (TARGET_SUPERSCALAR): Add TARGET_SH2A. - (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of - TARGET_CACHE32. - (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of - TARGET_HARVARD. - * config/sh/sh.c (sh_trampoline_init): Likewise. - -2012-11-05 David Edelsohn - - * system.h (loc_t): Poison. - -2012-11-05 Marc Glisse - - * fold-const.c (fold_unary_loc): Disable conversion optimization - for void type. - -2012-11-04 Thomas Schwinge - - * configure: Regenerate. - -2012-11-04 Eric Botcazou - - * combine.c: Adjust toplevel comment. - (make_extraction): Adjust head comment and move up canonicalization. - -2012-11-04 Alexandre Oliva - Jakub Jelinek - - PR debug/54693 - * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps - for dropped IV sets. - -2012-11-04 Alexandre Oliva - - PR debug/54693 - * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): - New, rewritten from debug stmt copying code... - (thread_around_empty_block): ... removed from here. - (thread_across_edge): Call propagate_threaded_block_debug_into. - -2012-11-04 Dehao Chen - - * expr.c (expand_expr_real_1): Change to not using input_location. - -2012-11-03 Jan Hubicka - - * invoke.texi (profile-use): update documentation. - * opts.c (common_handle_option): Enable tree-vectorize - and tree-loop-distribute-patterns. - * tree-loop-distribution.c (tree_loop_distribution): Skip loops - optimized for size. - * config/i386/i386.c (ix86_option_override_internal): Enabe - prefetch_lop_arrays for profile-use. - -2012-11-03 Robert Mason - - * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks) - -2012-11-03 Sandra Loosemore - - * doc/extend.texi: Copy-edit to use present tense except when - explicitly describing future or past behavior. - -2012-11-03 Oleg Endo - - * config/sh/sh.c (output_movedouble, output_far_jump, - output_ieee_ccmpeq): Use multi-line strings for asm. - (find_regmode_weight): Wrap lines. - (sh_optimize_target_register_callee_saved): Remove commented out - variable. - (emit_load_ptr): Remove prototype. - -2012-11-03 Oleg Endo - - PR target/51244 - * config/sh/sh.md (*cbranch_t): Allow splitting after reload. - Allow going beyond current basic block before reload when looking for - the reg set insn. - * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels. - -2012-11-02 Jan Hubicka - - * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add - missing sign to unsigned. - -2012-11-02 Andrew Pinski - - PR rtl-opt/54524 - * simplify-rtx.c (simplify_relational_operation_1): Don't simplify - (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not - equivalent. - -2012-11-02 Jan Hubicka - - * tree-ssa-loop-niter.c (double_int_cmp, bound_index, - discover_iteration_bound_by_body_walk): New functions. - (discover_iteration_bound_by_body_walk): Use it. - -2012-11-02 Jan Hubicka - - * predict.c (predict_loops): Predict also exits not dominating latch. - -2012-11-02 Jan Hubicka - - * predict.c (predict_loops): Do not predict infinite loops. - -2012-11-02 Jan Hubicka - - PR middle-end/55079 - * tree-ssa-loop-niter.c (number_of_iterations_exit): Update - MAX field if NITER was folded to contant. - (record_estimate): Sanity check. - * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New - function. - (remove_redundant_iv_test): New function. - (loops_to_unloop, loops_to_unloop_nunroll): New static vars. - (unloop_loops): Break out from ... - (try_unroll_loop_completely): ... here; Pass in MAXITER; use - remove_exits_and_undefined_stmts; do not unloop. - (canonicalize_loop_induction_variables): Compute MAXITER; - use remove_redundant_iv_test; remove loop_close_ssa_invalidated - and irred_invalidated arguments. - (canonicalize_induction_variables): Compute fresh bound estimates; - unloop; walk from innermost. - (tree_unroll_loops_completely): Likewise. - -2012-11-02 Vladimir Makarov - - PR middle-end/55130 - * lra-constraints.c (debug_loc_equivalence_change_p): Rename to - loc_equivalence_change_p. - (lra_constraints): Check equiv_insn_bitmap for debug insn. Call - loc_equivalence_change_p for non-transformed insn. - -2012-11-02 Eric Botcazou - - * cfg-flags.def (ABNORMAL_CALL): Fix comment. - (EH): Likewise. - (SIBCALL): Likewise. - * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages. - Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check. - -2012-11-02 Jakub Jelinek - - PR target/55147 - * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT. - (*bswapdi2_doubleword): Removed. - -2012-11-02 Gerald Pfeifer - - * doc/install.texi (Specific): Remove moxie web reference. - -2012-11-01 Marc Glisse - - PR middle-end/55001 - * tree-vect-generic.c (expand_vector_condition): New function. - (expand_vector_operations_1): Call it. - -2012-11-01 Steve Ellcey - - * target-globals.c (save_target_globals): Save lra_int struct. - -2012-11-01 Gerald Pfeifer - - * doc/standards.texi (Standards): Adjust reference to Go specification. - -2012-11-01 Lawrence Crowl - - * ebitmap.h: Remove unused. - * ebitmap.c: Remove unused. - * Makefile.in: Remove ebitmap.h and ebitmap.c. - * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file. - (SET_BIT_WITH_POPCOUNT): Remove unused. - (RESET_BIT_WITH_POPCOUNT): Remove unused. - (bitmap_copy_n): Remove unused. - (bitmap_range_empty_p): Remove unused. - (sbitmap_popcount): Remove unused. - (sbitmap_verify_popcount): Make private to source file. - * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header. - (bitmap_copy_n): Remove unused. - (bitmap_range_empty_p): Remove unused. - (sbitmap_popcount): Remove unused. - (sbitmap_verify_popcount): Make private to source file. - -2012-11-01 Lawrence Crowl - - * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add - unused parameter to match bitmap iterator. Update callers. - (sbitmap_iter_cond): Rename bmp_iter_set. Update callers. - (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to - match bitmap iterator. Update callers. - (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused. - (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and - adjust to be identical to the definition in bitmap.h. Conditionalize - the definition based on not having been defined. Update callers. - * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition - based on not having been defined. (To match the above.) - -2012-11-01 Lawrence Crowl - - * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter - type. Update callers to match. - (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update - callers to match. - (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount, - normalizing parameter type. Update callers to match. - (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type. - Update callers to match. - (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount, - normalizing parameter type. Update callers to match. - * basic-block.h (sbitmap_intersection_of_succs): Rename - bitmap_intersection_of_succs. Update callers to match. - * basic-block.h (sbitmap_intersection_of_preds): Rename - bitmap_intersection_of_preds. Update callers to match. - * basic-block.h (sbitmap_union_of_succs): Rename - bitmap_union_of_succs. Update callers to match. - * basic-block.h (sbitmap_union_of_preds): Rename - bitmap_union_of_preds. Update callers to match. - -2012-11-01 Vladimir Makarov - - PR middle-end/55150 - * lra-constraints.c (lra_constraints): Check only pseudos with - equivalences. Add insns with equivalence pseudos. - -2012-11-01 Sharad Singhai - - PR other/55164 - * dumpfile.h (struct dump_file_info): Fix order of flags. - -2012-11-01 Jan Hubicka - - PR middle-end/55104 - * ipa-inline-transform.c (inline_call): Silence an sanity check until - ipa-cp issue if fixed. - -2012-11-01 Sharad Singhai - - * doc/invoke.texi: Update -fopt-info documentation. - * dumpfile.c: Move dump_flags here from passes.c. - Rename opt_info_options to optinfo_verbosity_options. - Add optgroup_options. - (dump_files): Add field for optinfo_flags in the static initializer. - (dump_register): Handle additional parameter for optgroup_flags. - (opt_info_enable_passes): Renamed opt_info_enable_all. Handle - optgroup_flags. Fix documentation. - (opt_info_switch_p_1): Handle optgroup options. - (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files. - * dumpfile.h (dump_register): Additional argument for optgroup_flags. - All callers updated. - (struct dump_file_info): Add field for optgroup_flags. - Define OPTGROUP_* flags. - * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags. - All opt_pass static initializers updated. - * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all' - instead of 'optall'. - (handle_common_deferred_options): Fix typo in error message. - * passes.c (register_one_dump_file): Add argument for optgroup_flags. - Turn on OPTGROUP_IPA for IPA passes. - Move dump_flags from here to dumpfile.c. - * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to - dump_register. - -2012-11-01 Joern Rennecke - - PR target/55160 - * config/sh/sh.md (doloop_end): Use emit_jump_insn. - -2012-10-31 Jakub Jelinek - - PR tree-optimization/53708 - * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve - user-supplied alignment when used with an explicit section name. - -2012-10-31 Dehao Chen - - * tree-eh.c (do_return_redirection): Set location for jump statement. - (do_goto_redirection): Likewise. - (frob_into_branch_around): Likewise. - (lower_try_finally_nofallthru): Likewise. - (lower_try_finally_copy): Likewise. - (lower_try_finally_switch): Likewise. - * expr.c (store_expr): Use current insn location instead of expr - location. - (expand_expr_real): Likewise. - (expand_expr_real_1): Likewise. - -2012-10-31 Easwaran Raman - - PR target/54938 - PR middle-end/54957 - * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note - only if it doesn't already exist. - * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL. - (emit_case_dispatch_table): Handle the case where STMT_BB is NULL. - (expand_sjlj_dispatch_table): Pass BB containing before_case - to emit_case_dispatch_table. - -2012-10-31 Lawrence Crowl - - * is-a.h: New. - (is_a (U*)): New. Test for is-a relationship. - (as_a (U*)): New. Treat as a derived type. - (dyn_cast (U*)): New. Conditionally cast based on is_a. - * cgraph.h (varpool_node): Rename to varpool_node_for_decl. - Adjust callers to match. - (is_a_helper ::test (symtab_node_def *)): New. - (is_a_helper ::test (symtab_node_def *)): New. - (symtab_node_def::try_function): New. Change most calls to - symtab_function_p with calls to dyn_cast (p). - (symtab_node_def::try_variable): New. Change most calls to - symtab_variable_p with calls to dyn_cast (p). - (symtab_function_p): Remove. Change callers to use - is_a (p) instead. - (symtab_variable_p): Remove. Change callers to use - is_a (p) instead. - * cgraph.c (cgraph_node_for_asm): Remove redundant call to - symtab_node_for_asm. - * cgraphunit.c (symbol_finalized_and_needed): New. - (symbol_finalized): New. - (cgraph_analyze_functions): Split complicated conditionals out into - above new functions. - * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h. - -2012-10-31 Steven Bosscher - Jakub Jelinek - - PR tree-optimization/55018 - * basic-block.h (dfs_find_deadend): New prototype. - * cfganal.c (dfs_find_deadend): No longer static. Use bitmap - instead of sbitmap for visited. - (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too. - * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from - dfs_find_deadend of unconnected b instead of b directly. - -2012-10-31 Eric Botcazou - - * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the - special register pushes before frame probing and allocation. - -2012-10-31 Vladimir Makarov - - PR middle-end/55150 - * lra-constraints.c (lra_constraints): Update debug insn info - after equivalence change. - -2012-10-31 Jan Hubicka - - * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining - empty virtual functions calling themselves. - -2012-10-31 Tom Tromey - - PR other/50899 - * doc/gcc.texi: Add @direntry for gcov. - -2012-10-31 Joern Rennecke - - * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len. - -2012-10-31 Jakub Jelinek - - PR tree-optimization/19105 - PR tree-optimization/21643 - PR tree-optimization/46309 - * tree-ssa-reassoc.c (init_range_entry): Add STMT argument - and use it if EXP is NULL. - (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL. - (optimize_range_tests): Likewise. - (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops, - maybe_optimize_range_tests): New functions. - (reassociate_bb): Call maybe_optimize_range_tests if last - stmt of bb is GIMPLE_COND that hasn't been visited yet. - -2012-10-31 Richard Sandiford - - * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename - to... - (insvsi_internal, insvdi_internal, extvsi_internal) - (extvdi_internal): ...this. - (insv, extv): Update accordingly. - -2012-10-31 Richard Sandiford - - * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume - that zero_extracts of const_ints are doing word-sized extractions. - -2012-10-31 Richard Sandiford - - * combine.c (make_extraction): Remove dead wanted_inner_mode- - and pos_rtx-related code. - -2012-10-31 Richard Sandiford - - * expmed.c (store_bit_field_1): Move generation of MEM insvs - to the MEM_P block. - (extract_bit_field_1): Likewise extvs and extzvs. - -2012-10-31 Richard Sandiford - - * expmed.c (store_bit_field_using_insv): New function, - split out from... - (store_bit_field_1): ...here. - (extract_bit_field_using_extv): New function, split out from... - (extract_bit_field_1): ...here. - -2012-10-31 Richard Sandiford - - * expmed.c (store_bit_field_1): Use OP_MODE to check whether an - insv pattern is available. Remove redundant checks for OP_MODE - being MAX_MACHINE_MODE. - (extract_bit_field_1): Remove redundant checks for EXT_MODE being - MAX_MACHINE_MODE. - -2012-10-31 Richard Sandiford - - * expmed.c (store_bit_field_1): Remove test for BLKmode values. - -2012-10-31 Ralf Corsépius , - Joel Sherrill - - * config/sparc/t-rtems: New (Custom multilibs). - * config/sparc/t-rtems-64: New (Custom multilibs). - * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64. - (sparc-*-rtems*): Add sparc/t-rtems. - -2012-10-31 Alan Modra - - * config/rs6000/rs6000.c (legitimize_reload_address): Remove code - handling non-aligned ld/std. - * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'. - * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise. - * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise. - * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'. - -2012-10-31 Alan Modra - - * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX. - -2012-10-31 Joern Rennecke - - * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to - hard_reg_class. - - PR target/52498 - * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of - last two parameters. - -2012-10-30 Alexandre Oliva - - PR debug/54551 - PR debug/54693 - * valtrack.c (dead_debug_promote_uses): Assert-check that - global used bit was clear and initialize entry unconditionally. - -2012-10-30 Eric Botcazou - - * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in - head comment. - (hash_rtx): Likewise. - -2012-10-30 H.J. Lu - - PR rtl-optimization/55093 - * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress - check for ARG_POINTER_REGNUM. - -2012-10-30 Steve Ellcey - - * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order - and add mabi=64. - (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs. - * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order. - (MULTILIB_DIRNAMES): Ditto. - (MULTILIB_EXCEPTIONS): New. - -2012-10-30 Joern Rennecke - - * lra-constraints.c (check_secondary_memory_needed_p): - Add ATTRIBUTE_UNUSED to parameters. - -2012-10-30 Richard Sandiford - - * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition. - * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition. - * expr.c (SLOW_UNALIGNED_ACCESS): Likewise. - * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise. - (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here. - -2012-10-30 Jan Hubicka - - * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup. - -2012-10-30 Jan Hubicka - - * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter - EVERY_ITERATION with implicit value of true. - (record_estimate): Check dominance relationship of the basic block - we are estimating on instead of relying on UPPER to be false. - (struct ilb_data): Drop RELIABLE. - (idx_infer_loop_bounds): Update. - (infer_loop_bounds_from_ref): Drop parameter RELIABLE. - (infer_loop_bounds_from_array): Drop parameter RELIABLE. - (infer_loop_bounds_from_undefined): Update comments and handling - of RELIABLE. - (estimate_numbers_of_iterations_loop): Record all bounds. - -2012-10-30 Richard Sandiford - - * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg - rather than gen_rtx_SUBREG. - -2012-10-30 Richard Biener - - * gimple.h (gimple_store_p): New predicate. - (gimple_assign_load_p): Likewise. - * tree-inline.c (estimate_num_insns): Use it. - -2012-10-30 Marc Glisse - - * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors. - (fold_binary_loc): Call it for VEC_COND_EXPR. - -2012-10-30 James Greenhalgh - Tejas Belagod - - * config/aarch64/aarch64-simd.md - (aarch64_simd_bsl_internal): New pattern. - (aarch64_simd_bsl): Likewise. - (aarch64_vcond_internal): Likewise. - (vcondu): Likewise. - (vcond): Likewise. - * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants. - -2012-10-30 Richard Biener - - PR tree-optimization/55111 - * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt. - -2012-10-30 Oleg Endo - - PR target/54963 - * config/sh/iterators.md (SIDI): New mode iterator. - * config/sh/sh.md (negdi2): Use parallel around operation and T_REG - clobber in expander. - (*negdi2): Mark output operand as early clobbered. Add T_REG clobber. - Split after reload. Simplify split code. - (abssi2, absdi2): Fold expanders into abs2. - (*abssi2, *absdi2): Fold into *abs2 insn_and_split. Split insns - before reload. - (*negabssi2, *negabsdi2): Fold into *negabs2. Add T_REG clobber. - Split insns before reload. - (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi. - (negdi_cond): Reformat. Use emit_move_insn instead of a pair - of gen_movsi. Split insn before reload. - -2012-10-30 Oleg Endo - - PR target/53988 - * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero. - (*tst_t_zero): New insns. - * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes. - -2012-10-30 H.J. Lu - - * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca. - -2012-10-30 Jakub Jelinek - - PR debug/54953 - * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New. - * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after - even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE. - * dce.c (word_dce_process_block, dce_process_block): Pass - DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore - not going to be eliminated. - -2012-10-29 Lawrence Crowl - - * sbitmap.h (sbitmap_copy): Rename bitmap_copy. - (sbitmap_copy_n): Rename bitmap_copy_n. - (sbitmap_equal): Rename bitmap_equal_p. - (sbitmap_empty_p): Rename bitmap_empty_p. - (sbitmap_range_empty_p): Rename bitmap_range_empty_p. - (sbitmap_zero): Rename bitmap_clear. - (sbitmap_ones): Rename bitmap_ones. - (sbitmap_vector_zero): Rename bitmap_vector_clear. - (sbitmap_vector_ones): Rename bitmap_vector_ones. - (sbitmap_not): Rename bitmap_not. - (sbitmap_a_and_b_cg): Commented out. - (sbitmap_a_and_b): Rename bitmap_and. Add bool return. - (sbitmap_difference): Rename bitmap_and_compl. - (sbitmap_a_or_b_cg): Commented out. - (sbitmap_a_or_b): Rename bitmap_xor. Add bool return. - (sbitmap_a_xor_b_cg): Commented out. - (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return. - (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or. - (sbitmap_a_and_b_or_c): Commented out. - (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and. - (sbitmap_a_or_b_and_c): Commented out. - (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl. - (sbitmap_union_of_diff): Commented out. - (dump_sbitmap): Rename dump_bitmap. - (dump_sbitmap_file): Rename dump_bitmap_file. - (debug_sbitmap): Rename debug_bitmap. - (dump_sbitmap_vector): Rename dump_bitmap_vector. - (sbitmap_first_set_bit): Rename bitmap_first_set_bit. - (sbitmap_last_set_bit): Rename bitmap_last_set_bit. - (sbitmap_a_subset_b_p): Rename bitmap_subset_p. - (sbitmap_any_common_bits): Rename bitmap_intersect_p. - (#define sbitmap_free): Reimplement as inline function. - (#define sbitmap_vector_free): Reimplement as inline function. - * bitmap.h (#define bitmap_zero): Remove as redundant. - (#define bitmap_empty_p): Reimplement as inline function. - (#define dump_bitmap): Reimplement as inline function. - -2012-10-29 Jonathan Wakely - - PR c++/54930 - * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr. - -2012-10-29 H.J. Lu - - * lra-assigns.c: Remove trailing white spaces. - * lra-coalesce.c: Likewise. - * lra-constraints.c: Likewise. - * lra-eliminations.c: Likewise. - * lra-int.h: Likewise. - * lra-spills.c: Likewise. - * lra.c: Likewise. - -2012-10-29 Manuel López-Ibáñez - - PR c/53066 - * tree.h (FUNCTION_POINTER_TYPE_P): New. - -2012-10-29 Alexandre Oliva - - PR debug/54693 - * valtrack.c (dead_debug_insert_temp): Defer rescan of - newly-emitted debug insn. - -2012-10-29 Alexandre Oliva - - PR debug/54693 - * tree-ssa-threadedge.c (thread_around_empty_block): Copy - debug temps from predecessor before threading. - -2012-10-29 Alexandre Oliva - - PR debug/54551 - PR debug/54693 - * valtrack.c (dead_debug_global_find): Accept NULL dtemp. - (dead_debug_global_insert): Return new entry. - (dead_debug_global_replace_temp): Return early if REG is no - longer in place, or if dtemp was already substituted. - (dead_debug_promote_uses): Insert for all defs and replace all - debug uses at once. - (dead_debug_local_finish): Release used after promotion. - (dead_debug_insert_temp): Stop if dtemp is NULL. - -2012-10-29 Alexandre Oliva - - PR debug/54693 - * loop-unroll.c (loop_exit_at_end_p): Skip debug insns. - -2012-10-29 Alexandre Oliva - - PR debug/54693 - * config/i386/i386.c (add_parameter_dependencies): Stop - backward scan at the insn before the incoming head. - (ix86_dependencies_evaluation_hook): Skip debug insns. Stop - if first_arg is head. - -2012-10-29 Andrew Pinski - - * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto. - * config/aarch64/aarch64.c (aarch64_load_tp): Export. - (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin. - * config/aarch64/aarch64.h (aarch64_builtins): Delete - AARCH64_BUILTIN_THREAD_POINTER. - * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern. - -2012-10-29 Marc Glisse - - PR middle-end/55027 - * tree.c (real_zerop, real_onep, real_twop, real_minus_onep): - Handle VECTOR_CST. - -2012-10-29 Vladimir Makarov - - * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP. - -2012-10-29 Uros Bizjak - - * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg - for all addresses, zero-extended with AND. - -2012-10-29 Vladimir Makarov - - PR middle-end/55116 - * rtlanal.c (strip_address_mutation): Add SUBREG case. - -2012-10-29 Jan Hubicka - - * ipa-inline.c (want_inline_function_called_once_p): Rename to ... - (want_inline_function_to_all_callers_p): check also functions with - multiple callers. - (ipa_inline): Handle inlining for size into multiple callers. - -2012-10-29 Richard Guenther - - PR middle-end/53695 - * tracer.c (tracer): Fixup loop structure. - * cfgloopmanip.c (force_single_succ_latches): Add assert. - (fix_loop_structure): Re-compute loop latches and disambiguate - loops with multiple latches if required. - -2012-10-29 Uros Bizjak - - * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg - to check SImode equivalent of address, zero-extended with AND RTX. - * config/i386/i386.md (ashift to lea splitter): Split to SImode mult. - (simple lea to add/shift peephole2s): Remove peephole2s that operate - on subregs of DImode operations. - -2012-10-28 Vladimir Makarov - - PR rtl-optimization/55106 - * lra-constraints.c (skip_usage_debug_insns): New function. - (check_secondary_memory_needed_p): Ditto. - (inherit_reload_reg): Use the new functions. Improve debug output. - -2012-10-29 Jonathan Wakely - - * doc/cpp.texi (Search Path): Fix outdated C++ path. - -2012-10-28 Jan Hubicka - - * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle - &this->field expressions. - -2012-10-28 Vladimir Makarov - - * rtl.h (struct rtx_def): Add a comment for member unchanging. - * lra-int.h (LRA_TEMP_CLOBBER_P): New macro. - (lra_hard_reg_substitution): Rename to lra_final_code_change. - * lra-constraints.c (match_reload): Mark temporary clobbers. - * lra-spill.c (lra_hard_reg_substitution): Rename to - lra_final_code_change. Remove temporary clobbers. - * lra.c (lra): Rename to lra_final_code_change. - -2012-10-28 Jan Hubicka - - * ipa-inline.c (edge_badness): Fix overflow. - (inline_small_functions): Initialize SCCs correctly. - (do_estimate_edge_time, do_estimate_edge_hints): Skip self - recursive functions in SCC hints. - -2012-10-28 Steven Bosscher - - PR rtl-optimization/38711 - * ira.c (ira): Remove DF_LIVE if the problem is in the stack. - (do_reload): Add it back at the end for -O2 and higher. - - * function.c (thread_prologue_and_epilogue_insns): Use - REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and - reg_set_to_hard_reg_set. - -2012-10-28 Jan Hubicka - - * ipa-inline.c (edge_badness): Reduce precision; use scc hints. - (inline_small_functions): Fix dumps; update all callees after inlining. - * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New - constants. - (inline summary): Add SCC_NO. - * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints. - (reset_inline_summary): Reset scc_no. - (estimate_node_size_and_time): Set in_scc hint. - (do_estimate_edge_time): Add same_scc hint. - (do_estimate_edge_hints): Likewise. - -2012-10-28 Andreas Schwab - - * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table. - * doc/extend.texi: Likewise. - * doc/generic.texi: Likewise. - * doc/invoke.texi: Likewise. - * doc/md.texi: Likewise. - * doc/sourcebuild.texi: Likewise. - - * doc/tm.texi.in (Misc): Add newline before @end. - * doc/tm.texi: Update. - -2012-10-27 Joern Rennecke - - * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN. - -2012-10-27 Georg-Johann Lay - - PR target/55034 - * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest. - -2012-10-27 Oleg Endo - - PR target/55042 - * config/sh/sh.c (sh1_builtin_p): Comment out unused function. - -2012-10-27 Uros Bizjak - - * config/i386/i386.md (*lea): Remove unneeded temporary. - -2012-10-26 David S. Miller - - * config/sparc/constraints.md: Update unused letter list, move - "w" near other memory constraints. Remove no longer relevant - comment. - * doc/md.texi: Sync sparc constraint documentation with reality. - -2012-10-26 DJ Delorie - - * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow - reg+addend addresses for the _far namespace. - -2012-10-26 Segher Boessenkool - - * config/rs6000/sync.md (ATOMIC): Correct DI condition. - -2012-10-26 Jakub Jelinek - - PR debug/54970 - * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n] - as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR. - * tree-sra.c (create_access_replacement): Allow also MEM_REFs - with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions. - * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR - expressions. - * dwarf2out.c (add_var_loc_to_decl): Likewise. - -2012-10-26 Jeff Law - - * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt. - -2012-10-26 Gunther Nikl - - * common/config/m68k/m68k-common.c (m68k_handle_option): Set - gcc_options fields of opts_set for -m68020-40 and -m68020-60. - -2012-10-26 Teresa Johnson - - * ree.c (add_removable_extension): Remove unnecessary - mode check with other extension. - * testsuite/gcc.c-torture/execute/20111227-2.c: New test. - * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto. - -2012-10-26 Jan Hubicka - - * ipa-inline-transform.c (inline_call): Only account size changes - for !DECL_EXTERNAL. - -2012-10-26 Martin Jambor - - PR debug/54971 - * tree-sra.c (struct access): New flag grp_to_be_debug_replaced. - (dump_access): Dump the new flag. - (analyze_access_subtree): Set the new flag when appropriate. - (create_access_replacement): Handle debug replacements differently. - (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag. - (init_subtree_with_zero): Likewise. - (sra_modify_expr): Likewise. - (load_assign_lhs_subreplacements): Likewise. - (sra_modify_assign): Likewise. - -2012-10-23 Yuri Rumyantsev - - * config/i386/i386.c (insn_is_function_arg) : Add check on CALL - instruction. - (ix86_dependencies_evaluation_hook): Insert dependencies in all - predecessors of call block for non-trivial region avoiding creation - of loop-carried dependency to avoid cross-block motion of HW registers. - -2012-10-26 Richard Biener - - PR middle-end/54824 - * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable - at the end of blocks with no successors. - -2012-10-26 Alexander Ivchenko - Uros Bizjak - - * common/config/i386/i386-common.c - (OPTION_MASK_ISA_FXSR_SET): New. - (OPTION_MASK_ISA_XSAVE_SET): Likewise. - (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise. - (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options. - * config.gcc (i[34567]86-*-*): Add fxsrintrin.h, - xsaveintrin.h, xsaveoptintrin.h. - (x86_64-*-*): Likewise. - * config/i386/fxsrintrin.h: New header. - * config/i386/xsaveintrin.h: Likewise. - * config/i386/xsaveoptintrin.h: Likewise. - * config/i386/driver-i386.c (host_detect_local_cpu): Detect - FXSR/XSAVE/XSAVEOPT support. - * config/i386/i386-builtin-types.def - (VOID_FTYPE_PVOID_INT64): New function type. - * config/i386/i386-c.c: Define __FXSR__, __XSAVE__ - and __XSAVEOPT__ if needed. - * config/i386/i386.c (ix86_target_string): Define -mfxsr, - -mxsave and -mxsaveopt options. - (PTA_FXSR): New. - (PTA_XSAVE): Likewise. - (PTA_XSAVEOPT): Likewise. - (ix86_option_override_internal): Handle new option. - (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT. - (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr, - OPT_mxsave, OPT_mxsaveopt. - (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR, - IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64, - IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT, - IX86_BUILTIN_XSAVEOPT64. - (ix86_expand_builtin): Handle these built-ins. - * config/i386/i386.h (TARGET_FXSR): New. - (TARGET_XSAVE): Likewise. - (TARGET_XSAVEOPT): Likewise. - * config/i386/i386.md (ANY_XSAVE): New int iterator. - (ANY_XSAVE64): Likewise. - (xsave): New int attribute. - (fxsave): New instruction. - (fxsave64): Likewise. - (fxrstor): Likewise. - (fxrstor64): Likewise. - (): Likewise. - (_rex64): Likewise. - (xrstor): Likewise. - (xrstor_rex64): Likewise. - (xrstor64): Likewise. - * config/i386/i386.opt (mfxsr): New. - (mxsave): Likewise. - (mxsaveopt): Likewise. - * config/i386/x86intrin.h: Include - xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h. - -2012-10-26 Ralf Corsépius - - * config/avr/t-rtems: Revert previous commit. - -2012-10-26 Richard Sandiford - - PR bootstrap/55049 - * Makefile.in (rtlanal.o): Add dependency on addresses.h. - * rtl.h (address_info): New structure. - (strip_address_mutations, decompose_address, decompose_lea_address) - (decompose_mem_address, update_address, get_index_scale) - (get_index_code): Declare. - * rtlanal.c: Include addresses.h. - (strip_address_mutations, must_be_base_p, must_be_index_p) - (set_address_segment, set_address_base, set_address_index) - (set_address_disp, decompose_incdec_address, decompose_automod_address) - (extract_plus_operands, baseness, decompose_normal_address) - (decompose_address, decompose_lea_address, decompose_mem_address) - (update_address, get_index_scale, get_index_code): New functions. - * lra-constraints.c (strip_subreg): New function. - (address, extract_loc_address_regs, extract_address_regs) - (get_index_scale): Delete. - (process_addr_reg): Apply strip_subreg to the location. - (uses_hard_regs_p): Use decompose_mem_address. - (valid_address_p, base_plus_disp_to_reg, can_add_disp_p) - (equiv_address_substitution): Take an address_info rather - than an address. Remove other arguments. Avoid using Pmode. - (process_address): Use decompose_mem_address and decompose_lea_address. - Update calls to above functions. - -2012-10-26 Richard Sandiford - - * lra-constraints.c (process_address): Tighten arguments to - base_reg_class. Use simplify_gen_binary to generate PLUS rtxes. - -2012-10-26 Richard Sandiford - - * lra-constraints.c (get_index_scale, can_add_disp_p): New functions. - (equiv_address_substitution): Use them. - -2012-10-26 Richard Sandiford - - * lra-constraints.c (valid_address_p): New function, split out from... - (process_address): ...here. - -2012-10-26 Richard Sandiford - - * lra-constraints.c (process_address): Describe the kinds of address - that we might see. - -2012-10-25 Vladimir Makarov - - * lra-int.h (lra_assert): Redefine it gcc_checking_assert. - * lra-constraints.c (check_and_process_move): Remove #if - ENABLE_ASSERT_CHECKING. - -2012-10-26 Ralf Corsépius - - * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove - __USE_INIT_FINI__. - * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit. - -2012-10-25 David S. Miller - - * config/sparc/constraints.md ("U"): Delete. - * config/sparc/sparc.md: Use 'r' constraint instead of 'U'. - * config/sparc/sync.md: Likewise. - -2012-10-25 Lawrence Crowl - - * hash-table.h: Add usage documentation. - (template struct typed_free_remove): Clarify documentation. - Rename template parameter. - (struct typed_noop_remove): Likewise. - (descriptor concept): Change typedef T to value_type. - Add typedef compare_type. Use more precise template parameter name, - Descriptor instead of Descr. Update users to match. - (struct hash_table): Change 'find' parameters to use compare_type - instead of the value type. - -2012-10-25 Jan Hubicka - - * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned - to direct call update the summary. - * ipa-inline-transform.c (inline_call): Sanity check that summaries - match the predicted effect; fix updating of summary after edge - redirection. - * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try - to update the summary and recompute it instead. - (estimate_function_body_sizes): Fix self size estimation; double - check that it agrees with inline_update_overall_summary. - (estimate_edge_size_and_time): Handle devirtualizaiton costs. - (estimate_edge_devirt_benefit): Update to be called from - estimate_edge_size_and_time. - (estimate_calls_size_and_time): Update. - (estimate_node_size_and_time): Watch overflows. - (inline_merge_summary): Likewise. - * ipa-prob.c: Include ipa-inline.h - (ipa_make_edge_direct_to_target): After redirection update the summary. - -2012-10-25 Cary Coutant - - PR debug/55063 - * dwarf2out.c (prune_unused_types_prune): Check whether DIE is - already a declaration. - -2012-10-25 Vladimir Makarov - - * lra-assigns.c (assign_by_spills): Add non-reload pseudos - assigned to hard register to changed_pseudo_bitmap. - -2012-10-25 Ralf Corsépius - - * config.gcc (microblaze*-*-rtems*): New target. - * config/microblaze/rtems.h: New. - * config/microblaze/t-rtems: New. - -2012-10-25 Jan Hubicka - - PR tree-optimize/54980 - * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo. - (loop_edge_to_cancel): Be sure that the edge is from an conditional - so we can cancel it. - -2012-10-25 Marc Glisse - - PR c++/54427 - * tree.c (signed_or_unsigned_type_for): Handle vectors. - -2012-10-25 Jan Hubicka - - * ipa-inline.c (recursive_inlining): Redirect to master - clone before testing profitability. - -2012-10-25 Richard Biener - - PR tree-optimization/54902 - * tree-ssa-pre.c (fini_eliminate): Return TODO. - (do_pre): Adjust. - (execute_fre): Likewise. - * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable - blocks before computing dominators. - -2012-10-25 Richard Sandiford - - * expr.c (emit_block_move_via_loop): Use simplify_gen_binary - rather than gen_rtx_PLUS. - -2012-10-24 Vladimir Makarov - - PR bootstrap/55068 - PR regression/55050 - * ira.c (setup_reg_renumber): Fix assert. - * ira-emit.c (emit_move_list): Update equivalences only for LRA. - -2012-10-24 Vladimir Makarov - - PR bootstrap/55067 - * lra.c: Rename loc to sloc and loc_t to sloc_t. - -2012-10-24 Sharad Singhai - - * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p - instead of dump_kind_p. - -2012-10-24 Manuel López-Ibáñez - - PR c++/54928 - * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): - Use diagnostic_append_note. - * diagnostic.c (diagnostic_build_prefix): Make diagnostic const. - (default_diagnostic_finalizer): Do not destroy prefix here. - (diagnostic_report_diagnostic): Destroy it here. - (diagnostic_append_note): New. - * diagnostic.h (diagnostic_append_note): Declare. - -2012-10-24 Vladimir Makarov - - PR rtl-optimization/55055 - * lra-spills.c (alter_subregs): New function. - (lra_hard_reg_substitution): Use it. - -2012-10-24 Sharad Singhai - - * dumpfile.c (dump_enabled_p): Make it inline and move the definition - to dumpfile.h. - (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p. - Make alt_dump_file extern. - * dumpfile.h (dump_enabled_p): Move inline definition here. - (dump_kind_p): Delete declaration. - Add extern declaration of alt_dump_file. - * toplev.c: Move dump_file and dump_file_name to dumpfile.c. - * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with - dump_enabled_p. - * tree-vectorizer.c: Likewise. - * tree-vect-loop.c: Likewise. - * tree-vect-data-refs.c: Likewise. - * tree-vect-patterns.c: Likewise. - * tree-vect-stmts.c: Likewise. - * tree-vect-slp.c: Likewise. - -2012-10-24 Richard Sandiford - - * expmed.c (lowpart_bit_field_p): Add missing == 0 check. - -2012-10-24 Vladimir Makarov - - PR bootstrap/55049 - * lra-constraints.c (extract_loc_address_regs): Pass top_p for - ZERO_EXTEND operand. - -2012-10-24 Vladimir Makarov - - PR bootstrap/55048 - * lra-constraints.c (update_ebb_live_info): Skip - non-NOTE_INSN_BASIC_BLOCK notes. - -2012-10-24 Jakub Jelinek - - PR rtl-optimization/55010 - * cse.c (fold_rtx) : Call copy_rtx on folded_arg{0,1} - before passing it to simplify_relational_operation. - - PR debug/54828 - * gimple.h (is_gimple_sizepos): New inline function. - * gimplify.c (gimplify_one_sizepos): Use it. Remove useless - final assignment to expr variable. - * tree.c (RETURN_TRUE_IF_VAR): Return true also if - !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified - into a local temporary. - -2012-10-23 David S. Miller - - * config/sparc/constraints.md ("T", "W"): Change - definitions to use define_memory_constraint. Do not match 'reg'. - * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM - handling code, update comment. - -2012-10-23 Ian Lance Taylor - - * doc/extend.texi (Extended Asm): The '+' constraint does not - require a register. - -2012-10-23 Jeff Law - - * tree-ssa-threadedge.c (thread_across_edge): Remove unused - parameter in call to cond_arg_set_in_bb. - - * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused - debugging argument. - - PR tree-optimization/54985 - * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted - from thread_across_edge. - (thread_across_edge): Use it in all cases where we might thread - across a back edge. - -2012-10-23 Vladimir Makarov - - * lra-constraints.c (update_ebb_live_info): Process empty blocks. - -2012-10-23 Richard Sandiford - - * expmed.c (store_split_bit_field): Update the calls to - extract_fixed_bit_field. In the big-endian case, always - use the mode of OP0 to count the number of significant bits. - (extract_bit_field_1): Remove unit, offset, bitpos and - byte_offset from the outermost scope. Express conditions in terms - of bitnum rather than offset, bitpos and byte_offset. Move the - computation of MODE1 to the block that needs it. Use MODE unless - the TMODE-based mode_for_size calculation succeeds. Split the - plain move cases into two, one for memory accesses and one for - register accesses. Generalize the memory case, freeing it from - the old register-based endian checks. Move the INT_MODE calculation - above the code that needs it. Use simplify_gen_subreg to handle - multiword OP0s. If the field still spans several words, pass it - directly to extract_split_bit_field. Assume after that point - that both targets and register sources fit within a word. - Replace x-prefixed variables with non-prefixed forms. - Compute the bitpos for ext(z)v register operands directly in the - chosen unit size, rather than going through an intermediate - BITS_PER_WORD unit size. Simplify the containment check - used when forcing OP0 into a register. Update the call to - extract_fixed_bit_field. - (extract_fixed_bit_field): Replace the bitpos and offset parameters - with a single bitnum parameter, of the same form as extract_bit_field. - Assume that OP0 contains the full field. Simplify the memory offset - calculation and containment check for volatile bitfields. Make the - offset explicit when volatile bitfields force a misaligned access. - Remove WARNED and fix long lines. Assert that the processed OP0 - has an integral mode. - (store_split_bit_field): Update the call to store_fixed_bit_field. - -2012-10-23 Richard Sandiford - - * expmed.c (lowpart_bit_field_p): New function. - (store_bit_field_1): Remove unit, offset, bitpos and byte_offset - from the outermost scope. Express conditions in terms of bitnum - rather than offset, bitpos and byte_offset. Split the plain move - cases into two, one for memory accesses and one for register accesses. - Allow simplify_gen_subreg to fail rather than calling validate_subreg. - Move the handling of multiword OP0s after the code that coerces VALUE - to an integer mode. Use simplify_gen_subreg for this case and assert - that it succeeds. If the field still spans several words, pass it - directly to store_split_bit_field. Assume after that point that - both sources and register targets fit within a word. Replace - x-prefixed variables with non-prefixed forms. Compute the bitpos - for insv register operands directly in the chosen unit size, rather - than going through an intermediate BITS_PER_WORD unit size. - Update the call to store_fixed_bit_field. - (store_fixed_bit_field): Replace the bitpos and offset parameters - with a single bitnum parameter, of the same form as store_bit_field. - Assume that OP0 contains the full field. Simplify the memory offset - calculation. Assert that the processed OP0 has an integral mode. - (store_split_bit_field): Update the call to store_fixed_bit_field. - -2012-10-23 Paul Koning - - PR debug/54508 - * dwarf2out.c (prune_unused_types_prune): If pruning a class and - not all its children were marked, add DW_AT_declaration flag. - -2012-10-23 Ian Bolton - James Greenhalgh - Jim MacArthur - Marcus Shawcroft - Nigel Stephens - Ramana Radhakrishnan - Richard Earnshaw - Sofiane Naci - Stephen Thomas - Tejas Belagod - Yufeng Zhang - - * config.gcc: Add AArch64. - * configure.ac: Add AArch64 TLS support detection. - * configure: Regenerate. - -2012-10-23 Ian Bolton - James Greenhalgh - Jim MacArthur - Chris Schlumberger-Socha - Marcus Shawcroft - Nigel Stephens - Ramana Radhakrishnan - Richard Earnshaw - Sofiane Naci - Stephen Thomas - Tejas Belagod - Yufeng Zhang - - * doc/invoke.texi (AArch64 Options): New. - * doc/md.texi (Machine Constraints): Add AArch64. - -2012-10-23 Ian Bolton - James Greenhalgh - Jim MacArthur - Chris Schlumberger-Socha - Marcus Shawcroft - Nigel Stephens - Ramana Radhakrishnan - Richard Earnshaw - Sofiane Naci - Stephen Thomas - Tejas Belagod - Yufeng Zhang - - * common/config/aarch64/aarch64-common.c: New file. - * config/aarch64/aarch64-arches.def: New file. - * config/aarch64/aarch64-builtins.c: New file. - * config/aarch64/aarch64-cores.def: New file. - * config/aarch64/aarch64-elf-raw.h: New file. - * config/aarch64/aarch64-elf.h: New file. - * config/aarch64/aarch64-generic.md: New file. - * config/aarch64/aarch64-linux.h: New file. - * config/aarch64/aarch64-modes.def: New file. - * config/aarch64/aarch64-option-extensions.def: New file. - * config/aarch64/aarch64-opts.h: New file. - * config/aarch64/aarch64-protos.h: New file. - * config/aarch64/aarch64-simd.md: New file. - * config/aarch64/aarch64-tune.md: New file. - * config/aarch64/aarch64.c: New file. - * config/aarch64/aarch64.h: New file. - * config/aarch64/aarch64.md: New file. - * config/aarch64/aarch64.opt: New file. - * config/aarch64/arm_neon.h: New file. - * config/aarch64/constraints.md: New file. - * config/aarch64/gentune.sh: New file. - * config/aarch64/iterators.md: New file. - * config/aarch64/large.md: New file. - * config/aarch64/predicates.md: New file. - * config/aarch64/small.md: New file. - * config/aarch64/sync.md: New file. - * config/aarch64/t-aarch64-linux: New file. - * config/aarch64/t-aarch64: New file. - -2012-10-23 Michael Matz - - * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove. - (ssa_operands.free_defs): Remove. - (DEF_OP_PTR, DEF_OP): Remove. - (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members, - rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'. - * gimple.h (gimple_statement_with_ops.def_ops): Remove. - (gimple_def_ops, gimple_set_def_ops): Remove. - (gimple_vdef_op): Don't take const gimple, adjust. - (gimple_asm_input_op, gimple_asm_input_op_ptr, - gimple_asm_set_input_op, gimple_asm_output_op, - gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts, - and rewrite to move def operands to front. - (gimple_asm_clobber_op, gimple_asm_set_clobber_op, - gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts. - * tree-ssa-operands.c (build_defs): Remove. - (init_ssa_operands): Don't initialize it. - (fini_ssa_operands): Don't free it. - (cleanup_build_arrays): Don't truncate it. - (finalize_ssa_stmt_operands): Don't assert on it. - (alloc_def, add_def_op, append_def): Remove. - (finalize_ssa_defs): Remove building of def_ops list. - (finalize_ssa_uses): Don't mark for SSA renaming here, ... - (add_stmt_operand): ... but here, don't call append_def. - (get_indirect_ref_operands): Remove recurse_on_base argument. - (get_expr_operands): Adjust call to get_indirect_ref_operands. - (verify_ssa_operands): Don't check def operands. - (free_stmt_operands): Don't free def operands. - * gimple.c (gimple_copy): Don't clear def operands. - * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely - handle def operand. - (op_iter_next_tree, op_iter_next_def): Ditto. - (clear_and_done_ssa_iter): Clear new fields. - (op_iter_init): Adjust to setup new iterator structure. - (op_iter_init_phiuse): Adjust. - -2012-10-23 Greta Yorsh - - * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1. - -2012-10-23 Vladimir Makarov - - * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg. - * dwarf2out.c: Include ira.h and lra.h. - (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use - lra_eliminate_regs for LRA instead of eliminate_regs. - * expr.c (emit_move_insn_1): Pass an additional argument to - emit_move_via_integer. Use emit_move_via_integer for LRA only if - the insn is recognized. - * emit-rtl.c (gen_rtx_REG): Add lra_in_progress. - (validate_subreg): Don't check offset for LRA and floating point modes. - * final.c (final_scan_insn, cleanup_subreg_operands): Pass new - argument to alter_subreg. - (walk_alter_subreg, output_operand): Ditto. - (alter_subreg): Add new argument. - * gcse.c (calculate_bb_reg_pressure): Add parameter to - ira_setup_eliminable_regset call. - * ira.c: Include lra.h. - (ira_init_once, ira_init, ira_finish_once): Call lra_start_once, - lra_init, lra_finish_once in anyway. - (ira_setup_eliminable_regset): Add parameter. Remove need_fp. - Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as - living forever if frame_pointer_needed. - (setup_reg_class_relations): Set up ira_reg_class_subset. - (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove. - (find_reg_equiv_invariant_const): Ditto. - (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of - ira_reg_equiv_invariant_p. Skip caps for LRA. - (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New - functions. - (ira_reg_equiv_len, ira_reg_equiv): New externals. - (ira_reg_equiv): New. - (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New - functions. - (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of - reg_equiv_init. - (setup_reg_equiv): New function. - (ira_use_lra_p): New global. - (ira): Set up lra_simple_p and ira_conflicts_p. Set up and - restore flag_caller_saves and flag_ira_region. Move - initialization of ira_obstack and ira_bitmap_obstack upper. Call - init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead - of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p, - and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a - new argument. Don't flatten IRA IRA for LRA. Don't reassign - conflict allocnos for LRA. Call finish_reg_equiv. - (do_reload): Prepare code for LRA call. Call LRA. - * ira.h (ira_use_lra_p): New external. - (struct target_ira): Add members x_ira_class_subset_p - x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p. - (ira_class_subset_p, ira_reg_class_subset): New macros. - (ira_reg_classes_intersect_p): New macro. - (struct ira_reg_equiv): New. - (ira_setup_eliminable_regset): Add an argument. - (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New - prototypes. - * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos): - Use ira_equiv_no_lvalue_p. - (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto. - * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv. - (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p. - (emit_move_list): Simplify code. Call - ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead - of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert. - * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p - and x_ira_reg_classes_intersect_p. - (ira_class_subset_p, ira_reg_classes_intersect_p): Remove. - (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto. - (ira_reg_equiv_const): Ditto. - (ira_equiv_no_lvalue_p): New function. - * jump.c (true_regnum): Always use hard_regno for subreg_get_info - when lra is in progress. - * haifa-sched.c (sched_init): Pass new argument to - ira_setup_eliminable_regset. - * loop-invariant.c (calculate_loop_reg_pressure): Pass new - argument to ira_setup_eliminable_regset. - * lra.h: New. - * lra-int.h: Ditto. - * lra.c: Ditto. - * lra-assigns.c: Ditto. - * lra-constraints.c: Ditto. - * lra-coalesce.c: Ditto. - * lra-eliminations.c: Ditto. - * lra-lives.c: Ditto. - * lra-spills.c: Ditto. - * Makefile.in (LRA_INT_H): New. - (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o, - lra-eliminations.o, lra-lives.o, and lra-spills.o. - (dwarf2out.o): Add dependence on ira.h and lra.h. - (ira.o): Add dependence on lra.h. - (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries. - (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto. - * output.h (alter_subreg): Add new argument. - * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA. - Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA. - * recog.c (general_operand, register_operand): Accept paradoxical - FLOAT_MODE subregs for LRA. - (scratch_operand): Accept pseudos for LRA. - * rtl.h (lra_in_progress): New external. - (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes. - (debug_rtl_slim, debug_insn_slim): Ditto. - * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg. - * sched-vis.c (print_value_slim): New. - * target.def (lra_p): New hook. - (register_priority): Ditto. - (different_addr_displacement_p): Ditto. - (spill_class): Ditto. - * target-globals.h (this_target_lra_int): New external. - (target_globals): New member lra_int. - (restore_target_globals): Restore this_target_lra_int. - * target-globals.c: Include lra-int.h. - (default_target_globals): Add &default_target_lra_int. - * targhooks.c (default_lra_p): New function. - (default_register_priority): Ditto. - (default_different_addr_displacement_p): Ditto. - * targhooks.h (default_lra_p): Declare. - (default_register_priority): Ditto. - (default_different_addr_displacement_p): Ditto. - * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New. - (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New. - * config/arm/arm.c (load_multiple_sequence): Pass new argument to - alter_subreg. - (store_multiple_sequence): Ditto. - * config/i386/i386.h (enum ix86_tune_indices): Add - X86_TUNE_GENERAL_REGS_SSE_SPILL. - (TARGET_GENERAL_REGS_SSE_SPILL): New macro. - * config/i386/i386.c (initial_ix86_tune_features): Set up - X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7. - (ix86_lra_p, ix86_register_priority): New functions. - (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG. - (inline_secondary_memory_needed): Change assert. - (ix86_spill_class): New function. - (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros. - * config/m68k/m68k.c (emit_move_sequence): Pass new argument to - alter_subreg. - * config/m32r/m32r.c (gen_split_move_double): Ditto. - * config/pa/pa.c (pa_emit_move_sequence): Ditto. - * config/sh/sh.md: Ditto. - * config/v850/v850.c (v850_reorg): Ditto. - * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto. - * doc/md.texi: Add new interpretation of hint * for LRA. - * doc/passes.texi: Describe LRA pass. - * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY, - TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS. - * doc/tm.texi: Update. - -2012-10-23 Jan Hubicka - - * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even - with simple loops; bound number of branches only when FDO is not - available. - (decide_unroll_stupid): Mention that num_loop_branches heuristics - is off. - -2012-10-23 Nick Clifton - - PR target/54660 - * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress - compile time warning about pointer printing. - -2012-10-23 Joseph Myers - - * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | - *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use - glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in - tmake_file. Set target_has_targetcm. - (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and - cxx_target_objs rather than overriding previous value. - * config/glibc-c.c, config/t-glibc: New. - * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook. - * doc/tm.texi: Regenerate. - * hooks.c (hook_constcharptr_void_null): New. - * hooks.h (hook_constcharptr_void_null): Declare. - -2012-10-23 Eric Botcazou - - * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define. - (STACK_CHECK_PROTECT): Likewise. - * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise. - (MIPS_PROLOGUE_TEMP2): Likewise. - * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare. - * config/mips/mips.c: Include common/common-target.h. - (mips_emit_probe_stack_range): New function. - (mips_output_probe_stack_range): Likewise. - (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static - builtin stack checking is enabled. - * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant. - (probe_stack_range_): New insn. - -2012-10-23 Marc Glisse - - * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors. - * fold-const.c (fold_relational_const): Handle VECTOR_CST. - * doc/generic.texi (VEC_COND_EXPR): Document current policy. - -2012-10-23 Jan Hubicka - - PR middle-end/54937 - * tree-ssa-loop-niter.c (record_estimate): Do not try to lower - the bound of non-is_exit statements. - (maybe_lower_iteration_bound): Do it here. - (estimate_numbers_of_iterations_loop): Call it. - -2012-10-23 Jan Hubicka - - PR middle-end/54967 - * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated; - track basic blocks that moved out of their loops. - (unloop): Likewise. - (remove_path): Update. - (fix_loop_placements): Update. - * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add - loop_closed_ssa_invalidated parameter; pass it around. - (canonicalize_loop_induction_variables): Update loop closed - SSA form if needed. - (tree_unroll_loops_completely): Likewise; do irred update out of - the outer loop; verify that SSA form is closed. - * cfgloop.h (unrloop): Update. - -2012-10-23 Terry Guo - - PR target/55019 - * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with - live argument regs. - -2012-10-23 Hans-Peter Nilsson - - PR middle-end/55030 - Revert: - * stmt.c (expand_nl_goto_receiver): Remove almost-copy of - expand_builtin_setjmp_receiver. - (expand_label): Adjust, call expand_builtin_setjmp_receiver - with NULL for the label parameter. - * builtins.c (expand_builtin_setjmp_receiver): Don't clobber - the frame-pointer. Adjust comments. - [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver - only if LABEL is non-NULL. - -2012-10-22 Bill Schmidt - - PR tree-optimization/55008 - * gimple-ssa-strength-reduction.c (find_basis_for_candidate): - Don't allow a candidate to be a basis for itself under another - interpretation. - -2012-10-22 Sharad Singhai - - * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update - all callers. - (dump_enabled_p): A new function to check if any of the dump files - is available. - (dump_kind_p): Remove check for current_function_decl. Add check for - dumpfile and alt_dump_file. - * dumpfile.h: Add declaration of dump_enabled_p. - -2012-10-22 Richard Biener - - PR lto/55021 - * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove - bogus truncations. - -2012-10-22 Uros Bizjak - - * config/i386/i386.c (memory_address_length): Assert that non-null - base or index RTXes are registers. Do not check for REG RTXes. - Determine addr32 prefix using SImode_address_operand or - from original base and index RTXes. Simplify code. - -2012-10-22 Richard Biener - - PR tree-optimization/55011 - * tree-vrp.c (update_value_range): For invalid lattice transitions - drop to VARYING. - -2012-10-22 Julian Brown - - * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing - VFP D registers in big-endian mode. - -2012-10-22 Georg-Johann Lay - - * doc/invoke.texi (AVR Options): Document __AVR_ARCH__. - Note __AVR___ is not defined for cores. - Don't point to --help=target. - -2012-10-22 Sameera Deshpande - Greta Yorsh - - * config/arm/arm.c (thumb2_emit_ldrd_pop): New function. - (arm_expand_epilogue): Use the new function. - -2012-10-22 Sameera Deshpande - Greta Yorsh - - * config/arm/arm.c (thumb2_emit_strd_push): New function. - (arm_expand_prologue): Use the new function. - -2012-10-22 Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration. - (operands_ok_ldrd_strd): Likewise. - * config/arm/arm.c (offset_ok_for_ldrd_strd): New function. - (operands_ok_ldrd_strd): Likewise. - * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns. - (thumb2_ldrd_base_neg): Likewise. - (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise. - * predicates.md (ldrd_strd_offset_operand): New predicate. - * config/arm/constraints.md (Do): New constraint. - -2012-10-22 Hans-Peter Nilsson - - * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the - frame-pointer as an operand. - ("*nonlocal_goto_receiver_expanded"): Ditto. Use - mmix_output_register_setting instead of naked output_asm_insn for - the offset from the frame-pointer to the saved rO. - * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for - values -255..0. - * config/mmix/predicates.md ("frame_pointer_operand"): New. - * config/mmix/constraints.md ("Yf"): New. - - * stmt.c (expand_nl_goto_receiver): Remove almost-copy of - expand_builtin_setjmp_receiver. - (expand_label): Adjust, call expand_builtin_setjmp_receiver - with NULL for the label parameter. - * builtins.c (expand_builtin_setjmp_receiver): Don't clobber - the frame-pointer. Adjust comments. - [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver - only if LABEL is non-NULL. - -2012-10-21 Uros Bizjak - - * config/i386/i386-protos.h (memory_address_length): Add new bool - argument. Update all uses. - * config/i386/i386.c (memory_address_length): If not LEA insn, then - add length of addr32 prefix based on mode of base or index register. - (ix86_attr_length_address_default) : Do not handle SImode - addresses here. Update call to memory_address_length. - (ix86_print_address_operand): Use SImode_address_operand predicate. - * config/i386/predicates.md (SImode_address_operand): New. - * config/i386/i386.md (lea): Use SImode_address_operand - to calculate "mode" attribute. Use SImode_address_operand predicate - instead of open-coding accepted RTX codes. - -2012-10-21 Joern Rennecke - - * rtl.def (ADDR_DIFF_VEC): Fix comment typo. - -2012-10-21 Eric Botcazou - - PR rtl-optimization/44194 - * calls.c (expand_call): Allow sibling calls in the PARALLEL case. - -2012-10-21 Tobias Burnus - - PR fortran/54725 - * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New. - -2012-10-21 Chung-Lin Tang - - * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg' - variable. - -2012-10-20 Eric Botcazou - - PR rtl-optimization/54315 - * calls.c (expand_call): Don't deal specifically with BLKmode values - returned in naked registers. - * expr.h (copy_blkmode_from_reg): Adjust prototype. - * expr.c (copy_blkmode_from_reg): Rename first parameter into - TARGET and make it required. Assert that SRCREG hasn't BLKmode. - Add a couple of short-circuits for common cases and be prepared - for sub-word registers. - (expand_assignment): Call copy_blkmode_from_reg for BLKmode values - returned in naked registers. - (store_expr): Likewise. - (store_field): Likewise. - -2012-10-20 Jan Hubicka - - * loop-unroll.c (decide_unroll_constant_iterations): Don't - perform unrolling for loops with low iterations bounds or estimates. - -2012-10-20 Jan Hubicka - - * loop-iv.c (iv_number_of_iterations): Record the upper bound - only if there are no further conditions on it. - -2012-10-20 Manuel López-Ibáñez - - PR c/53063 - PR c/40989 - * opts.c (finish_options): Remove explicit handling from here. - -2012-10-20 Joern Rennecke - Richard Sandiford - - * emit-rtl.c (copy_delay_slot_insn): New function. - * emit-rtl.h (copy_delay_slot_insn): Declare. - * reorg.c: Include "emit-rtl.h". - (steal_delay_list_from_target): Use copy_delay_slot_insn. - (fill_slots_from_thread, fill_simple_delay_slots): Likewise. - - * final.c (shorten_branches): When optimizing, start with small - length and increase from there, and don't decrease lengths. - -2012-10-19 Jan Hubicka - - * builtins.def (BUILT_IN_UNREACHABLE): Make - ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST. - * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define. - -2012-10-19 Michael Meissner - Dominique Dhumieres - - * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume - OPTION_MASK_STRICT_ALIGN is defined. - (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined, - define this to 0 for the 3 ports that use it. - - * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do - check for ports not having -mstrict-align here, move test to - rs6000-cpus.def. - (MASK_STRICT_ALIGN): Likewise. - (rs6000_debug_reg_global): Print out correct target flag words if - -mdebug=reg. - -2012-10-19 Marek Polacek - - PR middle-end/54945 - * fold-const.c (fold_sign_changed_comparison): Punt if folding - pointer/non-pointer comparison. - -2012-10-19 Greta Yorsh - - * doc/sourcebuild.texi (Effective-Target Keywords): Document - new effective target keyword arm_prefer_ldrd_strd. - -2012-10-19 Richard Guenther - - PR tree-optimization/54981 - * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): - Do not consider debug stmts as uses. - -2012-10-19 Richard Biener - - PR tree-optimization/54976 - * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): - Robustify against odd inner_mode inputs. - -2012-10-19 Zhenqiang Chen - - PR target/54892 - * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make - sure the mode is correct when falling through from above cases. - -2012-10-19 Bin Cheng - - * common.opt (flag_ira_hoist_pressure): New. - * doc/invoke.texi (-fira-hoist-pressure): Describe. - * ira-costs.c (ira_set_pseudo_classes): New parameter. - * ira.h: Update copyright dates. - (ira_set_pseudo_classes): Update prototype. - * haifa-sched.c (sched_init): Update call. - * ira.c (ira): Update call. - * regmove.c: Update copyright dates. - (regmove_optimize): Update call. - * loop-invariant.c: Update copyright dates. - (move_loop_invariants): Update call. - * gcse.c: (struct bb_data): New structure. - (BB_DATA): New macro. - (curr_bb, curr_reg_pressure): New static variables. - (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p. - Change parameter expr_index to expr. - New parameters pressure_class, nregs and hoisted_bbs. - Use reg pressure to determine the distance expr can be hoisted. - (hoist_code): Use reg pressure to direct the hoist process. - (get_regno_pressure_class, get_pressure_class_and_nregs) - (change_pressure, calculate_bb_reg_pressure): New. - (one_code_hoisting_pass): Calculate register pressure. Allocate - and free data. - -2012-10-19 Bin Cheng - - * gcse.c: Update copyright dates. - (hoist_expr_reaches_here_p): Change parameter type from char * - to sbitmap. - -2012-10-19 Sebastian Huber - - * config.gcc - (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename - "arm*-*-rtemseabi*" to "arm*-*-rtems*". - -2012-10-19 Alan Modra - - * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold. - (HAVE_LD_LARGE_TOC): Likewise. - * configure: Regenerate. - -2012-10-19 Alan Modra - - * config/rs6000/predicates.md (splat_input_operand): Don't call - input_operand for MEMs. Instead check for volatile and call - memory_address_addr_space_p with modified mode. - -2012-10-18 Uros Bizjak - - * config/i386/i386.md (rdpmc): Remove expander. - (rdtsc): Ditto. - (rdtscp): Ditto. - (rdpmc): Rename from *rdpmc. - (rdpmc_rex64): Rename from *rdpmc_rex64. - (rdtsc): Rename from *rdtsc. - (rdtsc_rex64): Rename from *rdtsc_rex64. - (rdtscp): Rename from *rdtscp. - (rdtscp_rex64): Rename from *rdtscp_rex64. - - * config/i386/i386.c (struct builtin_description bdesc_special_args) - : Use CODE_FOR_NOTHING. - : Ditto. - (struct builtin_description bdesc__args) : Ditto. - (ix86_expand_builtin) : Handle here. - -2012-10-18 Jan-Benedict Glaw - - * config/sh/sh.c: Fix comment to silence warning. - -2012-10-18 Matthew Gretton-Dann - Ramana Radhakrishnan - Sameera Deshpande - - * config/arm/cortex-a15-neon.md: New file. - * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation. - (cortex_a15_load1): Likewise. - (cortex_a15_load3): Likewise. - (cortex_a15_store1): Likewise. - (cortex_a15_store3): Likewise. - (cortex-a15-neon.md): Include. - -2012-10-18 Segher Boessenkool - - * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode. - (altivec_vsumsws_nomode): Delete. - (reduc_splus_, reduc_uplus_): Call gen_altivec_vsumsws - instead of gen_altivec_vsumsws_nomode. - (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode. - * config/rs6000/rs6000.md (probe_stack): Rename to... - (probe_stack_): ... this. Add mode. Change pattern to - use std instead of stw when appropriate. - (probe_stack): New expander. - (move_from_CR_ov_bit): Add mode. - (splitter for compare_plus_ne0_, splitter for - compare_plus_ne0__1): Remove constraints. - * config/rs6000/sync.md (loadsync): Rename to... - (loadsync_): ... this. Add mode. - (atomic_load): Adjust. - -2012-10-18 Eric Botcazou - - * loop-invariant.c: Include target.h. - (check_dependency): Return false for an uninitialized argument register - that is likely to be spilled. - * Makefile.in (loop-invariant.o): Add $(TARGET_H). - -2012-10-18 Eric Botcazou - - * except.c (sjlj_emit_function_enter): Remove unused variable. - -2012-10-18 Matthew Gretton-Dann - Ramana Radhakrishnan - - * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins. - * config/arm/neon-docgen.ml (intrinsic_groups): Add - fused-multiply-* groups. - * config/neon-gen.ml (print_feature_test_start): New function. - (print_feature_test_end): Likewise. - (print_variant): Print feature test macros. - * config/arm/neon-testgen.ml (emit_prologue): Allow different - tests to require different effective targets. - (effective_target): New function. - (test_intrinsic): Specify correct effective targets. - * config/arm/neon.md (fma4_intrinsic): New pattern. - (fmsub4_intrinsic): Likewise. - (neon_vfma): New expand. - (neon_vfms): Likewise. - * config/neon.ml (opcode): Add Vfma and Vfms. - (features): Add Requires_feature. - (ops): Add VFMA and VFMS intrinsics. - * config/arm/arm_neon.h: Regenerate. - * doc/arm-neon-intrinsics.texi: Likewise. - -2012-10-18 Richard Guenther - - * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst. - * lto-streamer-in.c (lto_input_tree): Use it. - * lto-streamer-out.c (lto_output_tree): Likewise, for - !TREE_OVERFLOW integer constants only. - * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function. - (unpack_value_fields): Call it. - (streamer_read_integer_cst): Simplify. - * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function. - (streamer_pack_tree_bitfields): Call it. - (streamer_write_integer_cst): Adjust. - -2012-10-18 Matthew Gretton-Dann - Ramana Radhakrishnan - - * config.gcc: Add support for ARMv8 for arm*-*-* targets. - * config/arm/arm-arches.def: Add armv8-a - * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8, - crypto-neon-fp-armv8. Add crypto field. - * config/arm/arm-tables.opt: Regenerate. - * config/arm/arm.c (FL_FOR_ARCH8A): Likewise. - (arm_arch8): New global variable. - (ARM_FPU): Add crypto parameter. - (arm_option_override): Set arm_arch8, update comments. - * config/arm/arm.h (TARGET_CRYPTO): New macro. - (arm_fpu_desc): Add crypto field. - (base_architecture): Add ARMv8 entry. - (arm_arch8): New variable declaration. - * config/arm/bpabi.h: ARMv8 supports BE8. - * doc/invoke.texi: Document ARMv8 options. - -2012-10-17 Aldy Hernandez - - PR middle-end/54893 - * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed - transactions. - -2012-10-17 Aldy Hernandez - - PR rtl-optimization/54900 - * ifcvt.c (noce_can_store_speculate_p): Call - memory_must_be_modified_in_insn_p. - * alias.c (memory_must_be_modified_in_insn_p): New. - (set_dest_equal_p): New. - * rtl.h (memory_must_be_modified_in_p): Protoize. - -2012-10-17 Michael Meissner - - * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to - replace target_flags that gives us 63 possible switches. - (x_rs6000_isa_flags): Save area for rs6000_isa_flags. - (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit. - (rs6000_target_flags_explicit): Delete in favor of - x_rs6000_isa_flags_explicit. - (-mpowerpc64): Change all switches that used to be in target_flags - to now be in rs6000_isa_flags. In using rs6000_isa_flags, the - options machinary will generate names of the form OPITON_ - instead of TARGET_ and OPTION_MASK_ instead of MASK_. - (-mpowerpc-gpopt): Likewise. - (-mpowerpc-gfxopt): Likewise. - (-mmfcrf): Likewise. - (-mpopcntb): Likewise. - (-mfprnd): Likewise. - (-mcmpb): Likewise. - (-mmfpgpr): Likewise. - (-maltivec): Likewise. - (-mhard-dfp): Likewise. - (-mmulhw): Likewise. - (-mdlmzb): Likewise. - (-mmultiple): Likewise. - (-mstring): Likewise. - (-msoft-float): Likewise. - (-mhard-float): Likewise. - (-mpopcntd): Likewise. - (-mvsx): Likewise. - (-mno-update): Likewise. - (-mupdate): Likewise. - (-mrecip-precision): Likewise. - (-mminimal-toc): Likewise. - (-misel): Likewise. - * config/rs6000/aix64.opt (-maix64): Likewise. - (-maix32): Likewise. - * config/rs6000/sysv4.opt (-mstrict-align): Likewise. - (-mrelocatable): Likewise. - (-mlittle-endian): Likewise. - (-mlittle): Likewise. - (-mbig-endian): LIkewise. - (-mbig): Likewise. - (-meabi): Likewise. - (-m64): Likewise. - (-m32): Likewise. - * config/rs6000/darwin.opt (-m64): Likewise. - (-m32): Likewise. - - * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various - masks used in rs6000.c here, since they are more logically in this - file. Convert from being enums to just #defines, since the types - of these masks is now HOST_WIDE_INT instead of int. For - POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed - in the mask. Change the use in rs6000.c not to do the OR of - MASK_SOFT_FLOAT. - (ISA_2_1_MASKS): Likewise. - (ISA_2_2_MASKS): Likewise. - (ISA_2_4_MASKS): Likewise. - (ISA_2_5_MASKS_EMBEDDED): Likewise. - (ISA_2_5_MASKS_SERVER): Likewise. - (POWERPC_7400_MASK): Likewise. - (POWERPC_MASKS): Likewise. - * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise. - (ISA_2_1_MASKS): Likewise. - (ISA_2_2_MASKS): Likewise. - (ISA_2_4_MASKS): Likewise. - (ISA_2_5_MASKS_EMBEDDED): Likewise. - (ISA_2_5_MASKS_SERVER): Likewise. - (POWERPC_7400_MASK): Likewise. - (POWERPC_MASKS): Likewise. - (rs6000_option_override_internal): Likewise. - - * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change - all uses of target_flags to rs6000_isa_flags. Change all uses of - target_flags_explicit to rs6000_isa_flags_explicit. Change the - use of MASK_ to OPTION_MASK_ that options.h defines when - we use a secondary flags word. Save/restore/print the new flags - word when switching contexts with different target attributes. - (rs6000_option_override_internal): Likewise. - (rs6000_darwin_file_start): Likewise. - (rs6000_opt_masks): Likewise. - (rs6000_inner_target_options): Likewise. - (rs6000_pragma_target_parse): Likewise. - (rs6000_set_current_function): Likewise. - (rs6000_function_specific_save): Likewise. - (rs6000_function_specific_restore): Likewise. - (rs6000_function_specific_print): Likewise. - (rs6000_can_inline_p): Likewise. - * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise. - (rs6000_cpu_cpp_builtins): Likewise. - * common/config/rs6000/rs6000-driver.c (rs6000_handle_option): - Likewise. - - * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using - Var(...) for all of the isa switches, the options machinery now - uses OPTION_MASK_ instead of MASK_ for the mask name. - Use #define to map the old name into the new name. For switches - that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do - the definition if those switches were defined. - (MASK_ALTIVEC): Likewise. - (MASK_CMPB): Likewise. - (MASK_DFP): Likewise. - (MASK_DLMZB): Likewise. - (MASK_EABI): Likewise. - (MASK_FPRND): Likewise. - (MASK_HARD_FLOAT): Likewise. - (MASK_ISEL): Likewise. - (MASK_MFCRF): Likewise. - (MASK_MFPGPR): Likewise. - (MASK_MULHW): Likewise. - (MASK_MULTIPLE): Likewise. - (MASK_NO_UPDATE): Likewise. - (MASK_POPCNTB): Likewise. - (MASK_POPCNTD): Likewise. - (MASK_PPC_GFXOPT): Likewise. - (MASK_PPC_GPOPT): Likewise. - (MASK_RECIP_PRECISION): Likewise. - (MASK_SOFT_FLOAT): Likewise. - (MASK_STRICT_ALIGN): Likewise. - (MASK_STRING): Likewise. - (MASK_UPDATE): Likewise. - (MASK_VSX): Likewise. - (MASK_POWERPC64): Likewise. - (MASK_64BIT): Likewise. - (MASK_RELOCATABLE): Likewise. - (MASK_LITTLE_ENDIAN): Likewise. - (MASK_MINIMAL_TOC): Likewise. - (MASK_REGNAMES): Likewise. - (MASK_PROTOTYPE): Likewise. - (rs6000_isa_flags_explicit): Define in terms of the - global_options_set structure. - - * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): - Change use of target_flags to rs6000_isa_flags, target_flags_explicit - to rs6000_isa_flags_explicit, and MASK_ to OPTION_MASK_. - * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. - * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. - * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. - * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. - * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise. - (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise. - * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise. - * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise. - (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise. - (OPTION_LITTLE_ENDIAN): Likewise. - (OPTION_RELOCATABLE): Likewise. - (OPTION_EABI): Likewise. - (OPTION_PROTOTYPE): Likewise. - * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise. - * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise. - (OPT_ARCH32): Likewise. - (OPT_ARCH64): Likewise. - * config/rs6000/sysv4.h (TARGET_TOC): Likewise. - (SUBTARGET_OVERRIDE_OPTIONS): Likewise. - (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise. - (TARGET_OS_SYSV_CPP_BUILTINS): Likewise. - - * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a - dependency. - -2012-10-17 Jan Hubicka - - * cfgloopmanip.c (copy_loop_info): New function. - (duplicate_loop): Use it. - (loop_version): Use it. - * loop-unswitch.c (unswitch_loop): Use it. - * cfgloop.h (copy_loop_info): Declare. - -2012-10-17 Jan Hubicka - - * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel - parameter and use it to estimate code optimized out in the final - iteration. - (loop_edge_to_cancel): New function. - (try_unroll_loop_completely): New IRRED_IVALIDATED parameter; - handle unrolling loops with bounds given via max_loop_iteratins; - handle unrolling non-inner loops when code size shrinks; - tidy dump output; when the last iteration loop still stays - as loop in the CFG forcongly redirect the latch to - __builtin_unreachable. - (canonicalize_loop_induction_variables): Add irred_invlaidated - parameter; record niter bound derrived; dump - max_loop_iterations bounds; call try_unroll_loop_completely - even if no niter bound is given. - (canonicalize_induction_variables): Handle irred_invalidated. - (tree_unroll_loops_completely): Handle non-innermost loops; - handle irred_invalidated. - * cfgloop.h (unlop): Declare. - * cfgloopmanip.c (unloop): Export. - * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE. - -2012-10-17 Michael Meissner - - * opth-gen.awk (TARGET_* generation): Always generate TARGET_ - for Mask options, whether they use Var(...) or not. - - * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use - TARGET_ instead of OPTION_. - * config/i386/i386.h (TARGET_64BIT): Likewise. - (TARGET_MMX): Likewise. - (TARGET_3DNOW): Likewise. - (TARGET_3DNOW_A): Likewise. - (TARGET_SSE): Likewise. - (TARGET_SSE2): Likewise. - (TARGET_SSE3): Likewise. - (TARGET_SSSE3): Likewise. - (TARGET_SSE4_1): Likewise. - (TARGET_SSE4_2): Likewise. - (TARGET_AVX): Likewise. - (TARGET_AVX2): Likewise. - (TARGET_FMA): Likewise. - (TARGET_SSE4A): Likewise. - (TARGET_FMA4): Likewise. - (TARGET_XOP): Likewise. - (TARGET_LWP): Likewise. - (TARGET_ROUND): Likewise. - (TARGET_ABM): Likewise. - (TARGET_BMI): Likewise. - (TARGET_BMI2): Likewise. - (TARGET_LZCNT): Likewise. - (TARGET_TBM): Likewise. - (TARGET_POPCNT): Likewise. - (TARGET_SAHF): Likewise. - (TARGET_MOVBE): Likewise. - (TARGET_CRC32): Likewise. - (TARGET_AES): Likewise. - (TARGET_PCLMUL): Likewise. - (TARGET_CMPXCHG16B): Likewise. - (TARGET_FSGSBASE): Likewise. - (TARGET_RDRND): Likewise. - (TARGET_F16C): Likewise. - (TARGET_RTM): Likewise. - (TARGET_HLE): Likewise. - (TARGET_RDSEED): Likewise. - (TARGET_PRFCHW): Likewise. - (TARGET_ADX): Likewise. - (TARGET_64BIT): Likewise. - (TARGET_MMX): Likewise. - (TARGET_3DNOW): Likewise. - (TARGET_3DNOW_A): Likewise. - (TARGET_SSE): Likewise. - (TARGET_SSE2): Likewise. - (TARGET_SSE3): Likewise. - (TARGET_SSSE3): Likewise. - (TARGET_SSE4_1): Likewise. - (TARGET_SSE4_2): Likewise. - (TARGET_AVX): Likewise. - (TARGET_AVX2): Likewise. - (TARGET_FMA): Likewise. - (TARGET_SSE4A): Likewise. - (TARGET_FMA4): Likewise. - (TARGET_XOP): Likewise. - (TARGET_LWP): Likewise. - (TARGET_ROUND): Likewise. - (TARGET_ABM): Likewise. - (TARGET_BMI): Likewise. - (TARGET_BMI2): Likewise. - (TARGET_LZCNT): Likewise. - (TARGET_TBM): Likewise. - (TARGET_POPCNT): Likewise. - (TARGET_SAHF): Likewise. - (TARGET_MOVBE): Likewise. - (TARGET_CRC32): Likewise. - (TARGET_AES): Likewise. - (TARGET_PCLMUL): Likewise. - (TARGET_CMPXCHG16B): Likewise. - (TARGET_FSGSBASE): Likewise. - (TARGET_RDRND): Likewise. - (TARGET_F16C): Likewise. - (TARGET_RTM): Likewise. - (TARGET_HLE): Likewise. - (TARGET_RDSEED): Likewise. - (TARGET_PRFCHW): Likewise. - (TARGET_ADX): Likewise. - (TARGET_LP64): Likewise. - (TARGET_X32): Likewise. - (TARGET_ISA_ROUND): Likewise. - * config/i386/darwin.h (TARGET_64BIT): Likewise. - - * doc/options.texi (Mask): Update documentation to specify only - TARGET_ is generated. - -2012-10-17 Greta Yorsh - - * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this... - (UNSPEC_REGISTER_USE): ... to this. - (prologue_use): Rename this... - (force_register_use): ... to this and update output assembly. - (epilogue) Rename gen_prologue_use to gen_force_register_use. - * config/arm/arm.c (arm_expand_prologue): Likewise. - (thumb1_expand_epilogue): Likewise. - (arm_expand_epilogue): Likewise. - (arm_expand_epilogue): Likewise. - -2012-10-17 Georg-Johann Lay - - * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype. - * config/avr/avr.c (avr_extra_arch_macro): Remove variable. - (avr_option_override): Remove setting of avr_extra_arch_macro. - * config/avr/avr-c.c (avr_extra_arch_macro): Replace with - avr_current_device->macro. - -2012-10-17 Richard Biener - - * tree-streamer-out.c (write_ts_decl_common_tree_pointers): - Do not write TREE_CHAIN of PARM_DECLs. - (write_ts_decl_non_common_tree_pointers): Instead stream - the DECL_ARGUMENTS chain. - * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers): - Do not read TREE_CHAIN of PARM_DECLs. - (lto_input_ts_decl_non_common_tree_pointes): Instead read - the DECL_ARGUMENTS as chain. - -2012-10-17 Steven Bosscher - - * config/iq2000/iq2000.h (call_used_regs): Remove definition. - -2012-10-16 Eric Botcazou - - PR rtl-optimization/54870 - * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME. - * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the - SSA_NAME pointer that points to a partition if there is at least - one variable with it set in the partition. - * dse.c (local_variable_can_escape): New predicate. - (can_escape): Call it. - * gimplify.c (mark_addressable): If this is a partitioned decl, also - mark the SSA_NAME pointer that points to a partition. - -2012-10-16 Steven Bosscher - - * df-problems.c (df_kill_notes): Split up in two functions. - (df_remove_dead_and_unused_notes): New function, first half of - df_kill notes to remove all REG_DEAD and REG_UNUSED notes. - (df_remove_dead_eq_notes): New function, second half of df_kill_notes - to remove REG_EQUAL and REG_EQUIV notes referring to dead registers. - (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead - of df_kill_notes. Call df_remove_dead_eq_notes after processing insn. - - * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS; - -2012-10-16 Ian Lance Taylor - - * doc/extend.texi (Return Address): Change - __builtin_extract_return_address to - __builtin_extract_return_addr. - -2012-10-16 Steven Bosscher - - * rtl.h (get_call_rtx_from): New prototype. - * rtlanal.c (get_call_rtx_from): New function. - * calls.c (emit_call_1): Use it. - * dse.c (scan_insn): Likewise - * dwarf2out.c (dwarf2out_var_location): Likewise. - * sched-deps.c (call_may_noreturn_p): Likewise. - * var-tracking.c (prepare_call_arguments): Likewise. - * config/sh/sh.c (sh_adjust_cost): Likewise. - -2012-10-16 Tom de Vries - - * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces) - (store_by_pieces_1): Don't enter loop when no more data is left. - -2012-10-16 Joern Rennecke - - * loop-doloop.c (doloop_modify): Pass doloop_end pattern to - gen_doloop_begin. - (doloop_optimize): Pass flag to indicate if loop is entered at top - to gen_doloop_end. - * config/arm/thumb2.md (doloop_end): Accept extra operand. - * config/bfin/bfin.md (doloop_end): Likewise. - * config/c6x/c6x.md (doloop_end): Likewise. - * config/ia64/ia64.md (doloop_end): Likewise. - * config/mep/mep.md (doloop_begin, doloop_end): Likewise. - * config/rs6000/rs6000.md (doloop_end): Likewise. - * config/s390/s390.md (doloop_end): Likewise. - * config/sh/sh.md (doloop_end): Likewise. - * config/spu/spu.md (doloop_end): Likewise. - * config/tilegx/tilegx.md (doloop_end): Likewise. - * config/tilepro/tilepro.md (doloop_end): Likewise. - * doc/md.texi (doloop_end): Document new operand. - * basic-block.h (contains_no_active_insn_p): Declare. - * cfgrtl.c (contains_no_active_insn_p): New function, factored - out of ... - (forwarder_block_p): ... here. - -2012-10-16 Manuel López-Ibáñez - - PR c/53063 - PR c/40989 - * doc/options.texi (EnabledBy): Document new form. - * optc-gen.awk: Handle new form of EnabledBy. - * common.opt (Wunused-but-set-parameter): Use EnabledBy. - (Wunused-parameter): Likewise. - * opts.c (finish_options): Do not handle them explicitly. - * opt-functions.awk (search_var_name): New. - -2012-10-16 Manuel López-Ibáñez - - PR c/53063 - PR c/40989 - * optc-gen.awk: Handle new form of LangEnabledBy. - * opts.c (set_Wstrict_aliasing): Declare here. Make static. - * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init. - * doc/options.texi (LangEnabledBy): Document new form. - * flags.h (set_Wstrict_aliasing): Do not declare. - -2012-10-16 Ulrich Weigand - - * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE - parameter. Always replace normal subreg with memory reference - whenever possible. Return NULL otherwise. - (find_reloads_toplev): Always call find_reloads_subreg_address - for subregs of registers equivalent to a memory location. - Only recurse further if find_reloads_subreg_address fails. - (find_reloads_address_1): Only call find_reloads_subreg_address - for subregs of registers equivalent to a memory location. - Properly handle failure of find_reloads_subreg_address. - -2012-10-16 Jakub Jelinek - - PR debug/54796 - * rtl.h: Document jump flag on VALUE. - * cselib.h (cselib_set_value_sp_based, - cselib_sp_based_value_p): New prototypes. - * alias.c (find_base_term): For cselib_sp_based_value_p - return static_reg_base_value[STACK_POINTER_REGNUM]. - * cselib.c (SP_BASED_VALUE_P): Define. - (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions. - * var-tracking.c (add_stores): Call cselib_set_value_sp_based - for not yet preserved VALUEs of sp on sp assignments if - hard_frame_pointer_adjustment != -1. - (vt_initialize): When setting hard_frame_pointer_adjustment, - disassociate sp from its previous value and call - cselib_set_value_sp_based on a new VALUE created for sp. - - PR tree-optimization/54889 - * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if - ARRAY_REF newref doesn't have compatible type with vectype element - type, use vectype element type for MEM_REF. - -2012-10-16 Steven Bosscher - - * combine.c (record_dead_and_set_regs): Iterate over hard register set - with a hard_reg_set_iterator. - * cse.c (invalidate_for_call): Likewise. - * gcse.c (compute_hash_table_work): Likewise. - * loop-iv.c (simplify_using_initial_values): Likewise. - * postreload-gcse.c (record_opr_changes): Likewise. - * regcprop.c (copyprop_hardreg_forward_1): Likewise. - * var-tracking.c (dataflow_set_clear_at_call): Likewise. - -2012-10-15 Easwaran Raman - - * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to - specificy the probability of taking the jump. - (emit_cmp_and_jump_insns): Likewise. - (expand_compare_and_swap_loop): Make the jump predicted not taken. - * dojump.c (do_compare_rtx_and_jump): Remove the code attaching - REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns. - * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing - probabilities for branches with more than two successors. - * expr.c (emit_block_move_via_loop): Predict the loop backedge loop - to be highly taken. - (try_casesi): Pass the probability of jumping to the default label. - (try_tablejump): Likewise. - (do_tablejump): Likewise. - * expr.h (try_tablejump): Add a new parameter. - (try_casesi): Likewise. - (emit_cmp_and_jump_insns): Add probability as default parameter with a - default value of -1. - * except.c (sjlj_emit_function_enter): Pass probability to - emit_cmp_and_jump_insns. - * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB. - (do_jump_if_equal): Pass probability for REG_BR_PROB note. - (add_case_node): Pass estimated probability of jumping to the case - label. - (emit_case_decision_tree): Pass default_prob to emit_case_nodes. - (get_outgoing_edge_probs): New function. - (conditional_probability): Likewise. - (reset_out_edges_aux): Likewise. - (compute_cases_per_edge): Likewise. - (emit_case_dispatch_table): Update probabilities of edges coming out - of the switch statement. - (expand_case): Compute and propagate default edge probability to - emit_case_dispatch_table. - (expand_sjlj_dispatch_table): Update calls to add_case_node and - emit_case_dispatch_table. - (balance_case_nodes): Update subtree_prob values. - (emit_case_nodes): Compute edge probabilities and add pass them to - emit_cmp_and_jump_insns. - -2012-10-15 Oleg Endo - - PR target/51244 - * config/sh/sh-protos.h (set_of_reg): New struct. - (sh_find_set_of_reg, sh_is_logical_t_store_expr, - sh_try_omit_signzero_extend): Declare... - * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr, - sh_try_omit_signzero_extend): ...these new functions. - * config/sh/sh.md (*logical_op_t): New insn_and_split. - (*zero_extendsi2_compact): Use sh_try_omit_signzero_extend - in splitter. - (*extendsi2_compact_reg): Convert to insn_and_split. - Use sh_try_omit_signzero_extend in splitter. - (*mov_reg_reg): Disallow t_reg_operand as operand 1. - (*cbranch_t): Rewrite combine part in splitter using new - sh_find_set_of_reg function. - -2012-10-15 Oleg Endo - - PR target/54760 - * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when - hitting a call insn if GBR is marked as call used. - * config/sh/iterators.md (QIHISIDI): New mode iterator. - * config/sh/predicates.md (gbr_address_mem): New predicate. - * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New - insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR - addressing splits. - -2012-10-15 Oleg Endo - - * config/sh/sh.c: Update function attribute comments. - * doc/extend.texi (function_vector): Rephrase SH2A specific part. - (nosave_low_regs, renesas, trapa_handler): Document SH specific - attributes. - (sp_switch, trap_exit): Add to index. - -2012-10-15 Matthias Klose - - * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU. - * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi. - -2012-10-15 Uros Bizjak - - * config/i386/sse.md (UNSPEC_MOVU): Remove. - (UNSPEC_LOADU): New. - (UNSPEC_STOREU): Ditto. - (_movu): Split to ... - (_loadu): ... this and ... - (_storeu) ... this. - (_movdqu): Split to ... - (_loaddqu): ... this and ... - (_storedqu): ... this. - (*sse4_2_pcmpestr_unaligned): Update. - (*sse4_2_pcmpistr_unaligned): Ditto. - - * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use - gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and - gen_avx_store{dqu,ups,upd}256 to store to unaligned memory. - (ix86_expand_vector_move_misalign): Use gen_sse_loadups or - gen_sse2_load{dqu,upd} to load from unaligned memory and - gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to - unaligned memory. - (struct builtin_description bdesc_spec) : - Use CODE_FOR_sse_loadups. - : Use CODE_FOR_sse2_loadupd. - : Use CODE_FOR_sse2_loaddqu. - : Use CODE_FOR_sse_storeups. - : Use CODE_FOR_sse2_storeupd. - : Use CODE_FOR_sse2_storedqu. - : Use CODE_FOR_avx_loadups256. - : Use CODE_FOR_avx_loadupd256. - : Use CODE_FOR_avx_loaddqu256. - : Use CODE_FOR_avx_storeups256. - : Use CODE_FOR_avx_storeupd256. - : Use CODE_FOR_avx_storedqu256. - -2012-10-15 Dodji Seketeli - - * alias.c: Cleanup comments. - -2012-10-15 Marc Glisse - - PR tree-optimization/54915 - * tree-ssa-forwprop.c (simplify_vector_constructor): Check - argument's type. - -2012-10-15 Richard Biener - - * data-streamer.h (bp_pack_string_with_length): New function. - (bp_pack_string): Likewise. - (bp_unpack_indexed_string): Likewise. - (bp_unpack_string): Likewise. - * data-streamer-out.c (bp_pack_string_with_length): Likewise. - (bp_pack_string): Likewise. - * data-streamer-in.c (bp_unpack_indexed_string): Likewise. - (bp_unpack_string): Likewise. - * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields): - Pack TRANSLATION_UNIT_LANGUAGE here, not ... - (write_ts_translation_unit_decl_tree_pointers): ... here. Remove. - (streamer_pack_tree_bitfields): Adjust. - (streamer_write_tree_body): Likewise. - * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields): - Unpack TRANSLATION_UNIT_LANGUAGE here, not ... - (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove. - (unpack_value_fields): Adjust. - (streamer_read_tree_body): Likewise. - -2012-10-15 J"orn Rennecke - - * genoutput.c (process_template): Process '*' in '@' alternatives. - * doc/md.texi (node Output Statement): Provide example for the above. - -2012-10-15 Richard Guenther - - PR tree-optimization/54920 - * tree-ssa-pre.c (create_expression_by_pieces): Properly - allocate temporary storage for all NARY elements. - -2012-10-15 Joern Rennecke - - * web.c (union_match_dups): Properly handle OP_INOUT match_dups. - -2012-10-15 Eric Botcazou - - * expr.c (expand_expr_real_1) : Do not unnecessarily - copy the object in the MEM_P case. - -2012-10-15 Richard Guenther - - * tree-streamer-out.c (streamer_pack_tree_bitfields): Back - BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here. - (streamer_write_chain): Write TREE_CHAIN as null-terminated list. - (write_ts_exp_tree_pointers): Adjust. - (write_ts_binfo_tree_pointers): Likewise. - (write_ts_constructor_tree_pointers): Likewise. - * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as - null-terminated list. - (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and - CONSTRUCTOR lengths and materialize the arrays. - (lto_input_ts_exp_tree_pointers): Adjust. - (lto_input_ts_binfo_tree_pointers): Likewise. - (lto_input_ts_constructor_tree_pointers): Likewise. - -2012-10-14 Hans-Peter Nilsson - - * config/mmix/mmix.c (mmix_opposite_regno): Handle the - return-value register too. - -2012-10-14 Steven Bosscher - - PR rtl-optimization/38711 - * df.h (df_get_live_out, df_get_live_in): Make static inline functions. - * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h. - * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of - DF_LR_OUT. - * ira-build.c (create_bb_allocnos): Likewise. - (create_loop_allocnos): Likewise, and use df_get_live_in instead of - DF_LR_IN. - * ira-emit.c (generate_edge_moves): Likewise. - (add_ranges_and_copies): Likewise. - * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of - DF_LR_OUT, and df_get_live_in instead of DF_LR_IN. - * ira.c (mark_elimination): Update DF_LR and DF_LIVE. - (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT. - (do_reload): Remove the DF_LIVE problem for -O1. - -2012-10-14 Steven Bosscher - - PR rtl-optimization/54919 - * loop-unroll.c (struct var_to_expand): Remove accum_pos field. - (analyze_insn_to_expand_var): Do not record accum_pos. - (expand_var_during_unrolling): Use validate_replace_rtx_group to - perform replacement of all references to SET_DEST (set) with the - new register, including references in REG_EQUAL notes. - (insert_var_expansion_initialization): Insert initializatio insns - at the bottom of the pre-header of the loop. - -2012-10-14 Jan Hubicka - - * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not - predict loops with multiple exits realistically. - * cfgloopanal.c (single_likely_exit): New function. - -2012-10-14 Uros Bizjak - - * config/alpha/alpha.md: Remove empty predicates and/or constraints. - * config/alpha/sync.md: Ditto. - -2012-10-13 Uros Bizjak - - * config/alpha/alpha.md (I24MODE): New mode iterator. - (any_divmod): New code iterator. - (si3): Macroize expander from {div,mod,udiv,umod}si3 using - any_divmod code iterator. - (si3): Macroize expander from {div,mod,udiv,umod}di3 using - any_divmod code iterator. - (extendqi2): Macroize insn from extendqi{hi,si}2 using - I24MODE mode iterator. - (unaligned_store): Macroize expander from unaligned_store{qi,hi} - using I12MODE mode iterator. - (mov): Macroize expander from mov{qi,hi} using - I12MODE mode iterator. - -2012-10-13 Eric Botcazou - - PR rtl-optimization/54871 - * loop-iv.c (simplify_using_initial_values): When scanning previous - basic blocks, prune the recorded conditions if the current insn was - not used to make a replacement. - - * loop-unroll.c (decide_unroll_constant_iterations): Clean up message. - (unroll_loop_constant_iterations): Clarify head comment. - (decide_unroll_runtime_iterations): Clean up message. - (unroll_loop_runtime_iterations): Clarify head comment. - (decide_peel_simple): Clean up message. - (peel_loop_simple): Clarify head comment. - (decide_unroll_stupid): Clean up message. - (unroll_loop_stupid): Clarify head comment. - -2012-10-13 Andreas Schwab - - PR gcov-profile/44728 - * gcov.c (create_file_names): When stripping extension only look - at base name. - -2012-10-13 Jan Hubicka - - * loop-iv.c (determine_max_iter): Fix handling of AND. - (iv_number_of_iterations): Record upper bounds as unsigned - values. - -2012-10-13 Steven Bosscher - - * ira.c (ira): Set current_loops to &ira_loops before recording - loop exits. Release recorded exits and loops early. - -2012-10-13 Chung-Lin Tang - - * builtins.c (expand_builtin_set_thread_pointer): Use - create_input_operand() instead of create_fixed_operand(). - -2012-10-13 Uros Bizjak - - * config/alpha/alpha.md (FMODE): New mode iterator. - (modesuffix): Handle SF and DF modes. - (opmode): New mode attribute. - (abs2): Macroize insn from abs{sf,df}2 using FMODE mode iterator. - (*nabs2): Macroize insn from *nabs{sf,df}2 using - FMODE mode iterator. - (neg2): Macroize insn from neg{sf,df}2 using FMODE mode iterator. - (copysign3): Macroize insn from copysign{sf,df}3 using - FMODE mode iterator. - (*ncopysign3): Macroize insn from *ncopysign{sf,df}3 using - FMODE mode iterator. - (*add3_ieee): Macroize insn from *add{sf,df}_ieee using - FMODE mode iterator. - (add3): Macroize insn from add{sf,df}3 using FMODE mode iterator. - (*sub3_ieee): Macroize insn from *sub{sf,df}3_ieee using - FMODE mode iterator. - (sub3): Macroize insn from sub{sf,df}3 using FMODE mode iterator. - (*mul3_ieee): Macroize insn from *mul{sf,df}3_ieee using - FMODE mode iterator. - (mul3): Macroize insn from mul{sf,df}3 using FMODE mode iterator. - (*div3_ieee): Macroize insn from *div{sf,df}3_ieee using - FMODE mode iterator. - (div3): Macroize insn from div{sf,df}3 using FMODE mode iterator. - (*sqrt2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using - FMODE mode iterator. - (sqrt2): Macroize insn from sqrt{sf,df}2 - using FMODE mode iterator. - (*movcc_internal): Macroize insn from *mov{sf,df}cc_internal - using FMODE mode iterator. - (movcc): Macroize expander from mov{sf,df}cc - using FMODE mode iterator. - -2012-10-12 Oleg Endo - - PR target/54602 - * config/sh/sh.md: Correct define_delay for return insns. - (*movsi_pop): Delete. - -2012-10-12 Oleg Endo - - PR target/54680 - * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped - comments. - * config/sh/predicates.md (fpul_operand): Add comment. - (fpul_fsca_operand, fsca_scale_factor): New predicates. - * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to - insn_and_split. Use fpul_fsca_operand and fsca_scale_factor - predicates. Simplify fpul operand in splitter. - -2012-10-12 Jan Hubicka - - * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not - escape the loop. - -2012-10-12 Jan Hubicka - - * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag. - -2012-10-12 Aaron Gray - Diego Novillo - - * gengtype-lex.l: Support for C++ single line comments. - Support for classes. - (CXX_KEYWORD): New. Support C++ keywords inline, public, - protected, private, template, operator, friend, &, ~. - (TYPEDEF): New. Support typedef. - * gengtype-parser.c: updated 'token_names[]' - (direct_declarator): Add support for parsing functions and ctors. - -2012-10-12 Diego Novillo - - * doc/gty.texi: Document C++ limitations in gengtype. - * gengtype-lex.l (CID): Rename from ID. - (ID): Include scoping '::' as part of the identifier name. - * gengtype-parse.c (token_names): Update. - (token_value_format): Update. - (consume_until_eos): Rename from consume_until_semi. - Remove unused argument IMMEDIATE. Update all callers. - Also consider '}' as a finalizer. - (consume_until_comma_or_eos): Rename from - consume_until_comma_or_semi. - Remove unused argument IMMEDIATE. Update all callers. - Also consider '}' as a finalizer. - (direct_declarator): Add documentation on ctor support. - Add argument IN_STRUCT. - If the token following ID is a '(', consider ID a - function and return NULL. - If the token following '(' is not a '*', and IN_STRUCT is true, - conclude that this is a ctor and return NULL. - If the token is IGNORABLE_CXX_KEYWORD, return NULL. - (inner_declarator): Add argument IN_STRUCT. - Update all callers. - (declarator): Add argument IN_STRUCT with default value false. - Update all callers. - (type): Document argument NESTED. - Skip over C++ inheritance specifiers. - If a token TYPEDEF is found, emit an error. - If an enum is found inside a class/structure, emit an error. - (typedefs, structures, param_structs, variables): Initialize. - (new_structure): Do not complain about duplicate - structures if S has a line location set. - * gengtype-state.c (write_state_type): Remove default handler. - Add handler for TYPE_NONE. - (read_state_scalar_char_type): - * gengtype.c: Fix spacing. - * gengtype.h (enum gty_token): Add name. Add token - IGNORABLE_CXX_KEYWORD. - -2012-10-12 Chung-Lin Tang - - * config/arm/arm.md (get_thread_pointersi): Moved to place with - other TLS related patterns. - -2012-10-12 Richard Biener - - * tree-streamer-out.c (pack_ts_target_option): Rename from ... - (write_ts_target_option): ... this. - (pack_ts_optimization): Rename from ... - (write_ts_optimization): ... this. - (streamer_pack_tree_bitfields): Pack them in the bitfield section ... - (streamer_write_tree_body): ... not here. - * tree-streamer-in.c (unpack_ts_target_option): Rename from ... - (lto_input_ts_target_option): ... this. - (unpack_ts_optimization): Rename from ... - (lto_input_ts_optimization): ... this. - (unpack_value_fields): Unpack them from the bitfield section ... - (streamer_read_tree_body): ... not from here. - -2012-10-12 Uros Bizjak - - * config/alpha/alpha.md (vecmodesuffix): New mode attribute. - (modesuffix): Handle V8QI and V4HI modes. - (any_maxmin): New code iterator. - (maxmin): New code attribute. - (3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3 - using any_maxmin code iterator and I12MODE mode iterator. - (3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3 - using any_maxmin code iterator and VEC12 mode iterator. - -2012-10-12 Marc Glisse - - * optabs.c (vector_compare_rtx): Change prototype. - (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand - is not a comparison. - * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR. - -2012-10-12 Richard Biener - - PR tree-optimization/54894 - * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): - Handle over-aligned scalar types properly. - -2012-10-12 Oleg Endo - - PR target/54760 - * config/sh/sh.c (bdesc): Remove thread pointer built-ins. - * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode - name 'si'. - -2012-10-12 Oleg Endo - - PR target/51244 - * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove - get_t_reg_rtx when invoking gen_branch_true or gen_branch_false. - (*zero_extendsi2_compact): Convert to insn_and_split. Convert - zero extensions of T bit stores to reg moves in splitter. Remove - obsolete unnamed peephole2 that caught zero extensions after negc T bit - stores. - (*branch_true_eq, *branch_false_ne): Delete. - (branch_true, branch_false): Convert insn to expander. Move actual - insn logic to... - (*cbranch_t): ...this new insn_and_split. Try to find preceding - redundant T bit stores and tests and combine them with the conditional - branch if possible in the splitter. - (movrt_xor, *movt_movrt): New insn_and_split. - * config/sh/predicates.md (cbranch_treg_value): New predicate. - * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare... - * config/sh/sh.c (sh_eval_treg_value): ...this new function. - (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx - when invoking gen_branch_true or gen_branch_false. - -2012-10-11 Uros Bizjak - - * config/alpha/alpha.md (IMODE): New mode iterator. - (I124MODE): Ditto. - (I248MODE): Ditto. - (modesuffix): Handle QI and HI modes. - (zero_extendqi2): Macroize insn from zero_extendqi{hi,si,di}2 - using I248MODE mode iterator. - (zero_extendhi2): Macroize insn from zero_extendhi{si,di}2 - using I48MODE mode iterator. - (andnot3): Macroize insn from andnot{si,di}3 using - I48MODE mode iterator. - (insl_const): Macroize insn from ins{b,w,l}l_const - using I248MODE mode iterator. - (insl): Macroize insn from ins{b,w,l}l - using I248MODE mode iterator. - (*movcc_internal): Macroize insn from - *mov{qi,hi,si,di}cc_internal using IMODE mode iterator. - (*movcc_lbc): Macroize insn from - *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator. - (*movcc_lbs): Macroize insn from - *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator. - (movcc): Macroize expander from mov{si,di}cc - using I48MODE mode iterator. - -2012-10-11 Steven Bosscher - - * ira-build.c (ira_loop_tree_body_rev_postorder): New function. - (ira_traverse_loop_tree): Traverse a loop's basic blocks in - reverse post-order of the reversed control-flow direction. - * ira-conflicts.c (ira_build_conflicts): Pass add_copies as - the pre-order function to ira_traverse_loop_tree to preserve - the existing semantics. - - * ira-lives.c (remove_some_program_points_and_update_live_ranges): - Squeeze out live range chain elements if their program points are - connected. - -2012-10-11 Jakub Jelinek - - * tree.def (REDUC_PLUS_EXPR): Fix up comment. - - * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR, - REDUC_MAX_EXPR and REDUC_PLUS_EXPR. - -2012-10-11 James Lemke - - * config/rs6000/predicates.md (zero_fp_constant): Fix comment. - * config/rs6000/rs6000.md (return_pred): Fix null return. - * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation. - (print_operand): Make FALLTHRU obvious. - (output_cbranch): Correct comment. - -2012-10-11 Uros Bizjak - - * config/alpha/alpha.md (DWI): New mode attribute. - (*sadd): Macroize insn from *saddl and *saddq using - I48MODE mode iterator. - (addv3): Macroize insn from addvsi3 and addvdi3 using - I48MODE mode iterator. - (neg2): Macroize insn from negsi2 and negdi2 using - I48MODE mode iterator. - (negv2): Macroize insn from negvsi2 and negvdi2 using - I48MODE mode iterator. - (sub3): Macroize insn from subsi3 and subdi3 using - I48MODE mode iterator. - (*ssub): Macroize insn from *ssubl and *ssubq using - I48MODE mode iterator. - (subv3): Macroize insn from subvsi3 and subvdi3 using - I48MODE mode iterator. - (mul3): Macroize insn from mulsi3 and muldi3 using - I48MODE mode iterator. - (mulv3): Macroize insn from mulvsi3 and mulvdi3 using - I48MODE mode iterator. - (*iornot3): Macroize insn from *iornotsi3 and *iornotdi3 using - I48MODE mode iterator. - (*xornot3): Macroize insn from *xornotsi3 and *xornotdi3 using - I48MODE mode iterator. - -2012-10-11 Jason Merrill - - * configure.ac (gcc_cv_as_aix_ref): Fix typo. - * configure: Regenerate. - -2012-10-11 Chung-Lin Tang - - * builtins.c (expand_builtin_thread_pointer): New. - (expand_builtin_set_thread_pointer): New. - (expand_builtin): Add BUILT_IN_THREAD_POINTER, - BUILT_IN_SET_THREAD_POINTER expand cases. - * builtins.def (BUILT_IN_THREAD_POINTER): - New __builtin_thread_pointer builtin. - (BUILT_IN_SET_THREAD_POINTER): - New __builtin_set_thread_pointer builtin. - * optabs.def (get_thread_pointer,set_thread_pointer): - New standard names. - * doc/md.texi (Standard Names): Document get_thread_pointer and - set_thread_pointer patterns. - * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp. - (set_thread_pointerdi): Rename from set_tp. - * config/alpha/alpha.c (alpha_legitimize_address_1): Change - gen_load_tp calls to gen_get_thread_pointerdi. - (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER, - ALPHA_BUILTIN_SET_THREAD_POINTER. - (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp. - (alpha_init_builtins): Remove __builtin_thread_pointer, - __builtin_set_thread_pointer machine-specific builtins. - (alpha_expand_builtin_thread_pointer): Add hook function for - TARGET_EXPAND_BUILTIN_THREAD_POINTER. - (alpha_expand_builtin_set_thread_pointer): Add hook function for - TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER. - (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER, - ALPHA_BUILTIN_SET_THREAD_POINTER cases. - * config/arm/arm.md (get_thread_pointersi): New pattern. - * config/arm/arm-protos.h (arm_load_tp): Add extern declaration. - * config/arm/arm.c (arm_load_tp): Remove static. - (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER. - (arm_init_tls_builtins): Remove function. - (arm_init_builtins): Remove call to arm_init_tls_builtins(). - (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case. - * config/mips/mips.md (get_thread_pointer): New pattern. - * config/mips/mips-protos.h (mips_expand_thread_pointer): - Add extern declaration. - * config/mips/mips.c (mips_expand_thread_pointer): - Renamed from mips_get_tp. - (mips_get_tp): New stub calling mips_expand_thread_pointer. - * config/s390/s390.c (s390_builtin,code_for_builtin_64, - code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove. - * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31): - Remove. - (get_thread_pointer,set_thread_pointer): - New, adapted from removed patterns. - * config/xtensa/xtensa.md (get_thread_pointersi): - Renamed from load_tp. - (set_thread_pointersi): Renamed from set_tp. - * config/xtensa/xtensa.c (xtensa_legitimize_tls_address): - Change gen_load_tp calls to gen_get_thread_pointersi. - (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and - XTENSA_BUILTIN_SET_THREAD_POINTER. - (xtensa_init_builtins): Remove __builtin_thread_pointer, - __builtin_set_thread_pointer machine-specific builtins. - (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER, - XTENSA_BUILTIN_SET_THREAD_POINTER cases. - (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER, - XTENSA_BUILTIN_SET_THREAD_POINTER cases. - -2012-10-11 Marc Glisse - - * doc/extend.texi (Vector Extensions): C++ improvements. - * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar. - (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify - the vector case. - (VEC_COND_EXPR): Document it. - -2012-10-11 Terry Guo - - * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m - architecture. - * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB - instruction. - -2012-10-11 Hans-Peter Nilsson - - PR target/54373 - * configure.ac (out-of-tree linker .hidden support) Set to "no" - for mmix-knuth-mmixware. - * configure: Regenerate. - - * configure.ac (gcc_cv_as_comdat_group_group): Default to no. - * configure: Regenerate. - - * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single - character to quote the VERSION= contents. Sanity-check contents. - * configure.ac ("what linker to use" ld version extraction): Ditto. - * configure: Regenerate. - -2012-10-10 Segher Boessenkool - - * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'. - -2012-10-10 Jakub Jelinek - - PR tree-optimization/54877 - * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR - use make_ssa_name instead of copy_ssa_name. - -2012-10-10 Richard Biener - - * lto-streamer-in.c (lto_input_location_bitpack): Rename to ... - (lto_input_location): ... this. Kill original. - (input_eh_region): Adjust. - (input_struct_function_base): Likewise. - (lto_read_tree): Likewise. - * lto-streamer-out.c (lto_output_location_bitpack): Rename to ... - (lto_output_location): ... this. Kill original. - (lto_write_tree): Adjust. - (output_eh_region): Likewise. - (output_struct_function_base): Likewise. - * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks. - * lto-streamer.h (lto_input_location): Adjust prototype. - (lto_output_location): Likewise. - * streamer-hooks.h (struct streamer_hooks): Adjust prototype - of input_location and output_location hooks. - (stream_input_location): New define. - (stream_output_location): Likewise. - * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust. - (unpack_value_fields): Likewise. - (streamer_read_tree_bitfields): Likewise. - (lto_input_ts_decl_minimal_tree_pointers): Likewise. - (lto_input_ts_exp_tree_pointers): Likewise. - (lto_input_ts_block_tree_pointers): Likewise. - * tree-streamer-out.c (pack_ts_block_value_fields): Adjust. - (streamer_pack_tree_bitfields): Likewise. - (write_ts_decl_minimal_tree_pointers): Likewise. - (write_ts_exp_tree_pointers): Likewise. - (write_ts_block_tree_pointers): Likewise. - * gimple-streamer-in.c (input_phi): Adjust. - (input_gimple_stmt): Likewise. - * gimple-streamer-out.c (output_phi): Adjust. - (output_gimple_stmt): Likewise. - * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype. - (streamer_pack_tree_bitfields): Likewise. - -2012-10-10 Michael Meissner - - * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed - vs. unsigned warnings by using enum type for function code. - (paired_expand_builtin): Likewise. - (spe_expand_builtin): Likewise. - - * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change - builtin mask, target flags masks type to HOST_WIDE_INT in - preparation for growing the number of ISA switches from 31 to 63. - - * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type - HOST_WIDE_INT. - - * config/rs6000/rs6000.c (struct builtin_description): Make - builtin mask field HOST_WIDE_INT. Make target flags field - HOST_WIDE_INT in preparation for growing the # of ISA switches. - (struct rs6000_builtin_info_type): Likewise. - (struct rs6000_ptt): Likewise. - (rs6000_builtin_mask_calculate): Likewise. - (rs6000_invalid_builtin): Likewise. - (rs6000_builtin_decl): Likewise. - (rs6000_common_init_builtins): Likewise. - (rs6000_darwin_file_start): Likewise. - (rs6000_final_prescan_insn): Likewise. - (rs6000_inner_target_options): Likewise. - (build_target_option_node): Likewise. - (rs6000_function_specific_print): Likewise. - (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex. - - * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate): - Make target flags, builtin masks arguments/return values - HOST_WIDE_INT in preparation for growing the number of ISA from 31 - to 63. - (rs6000_target_modify_macros): Likewise. - (rs6000_target_modify_macros_ptr): Likewise. - - * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate - define and change DEBUG_FMT_ to use it. - (DEBUG_FMT_D): Likewise. - (DEBUG_FMT_S): Likewise. - (DEBUG_FMT_X): Delete, no longer used. - (DEBUG_FMT_W): Likewise. - (DEBUG_FMT_WX): New debug format for printing options in a - friendly fashion. - (rs6000_debug_reg_global): If -mdebug=reg, print all of the - options in target_flags and target_flags_explicit. Print the - default options for -mcpu=, -mtune=, and the default - options. Adjust printing out the builtin options. - (rs6000_option_override_internal): Change printing the builtin - options to use rs6000_print_builtin_options. - (rs6000_function_specific_print): Change to use - rs6000_print_isa_options to print ISA flags. - (rs6000_print_options_internal): New function for expanded - -mdebug=reg option printing to print both the ISA options, and the - builtins that are enabled. - (rs6000_print_isa_options): New function to print the ISA options. - (rs6000_print_builtin_options): New function to print the builtin - functions enabled. - -2012-10-10 Jakub Jelinek - - PR target/51109 - * config/i386/bdver1.md (bdver1-mult): Remove. - - PR middle-end/54879 - * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH - instead of '2' resp. 'c' for GET_RTX_CLASS comparisons. - - PR middle-end/54862 - * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of - INTVAL of second argument with precision resp. op_precision. - -2012-10-10 Dodji Seketeli - - PR middle-end/54860 - Make sure attributes hash table is created - * attribs.c (register_scoped_attributes): Ensure the attribute - hash table is created. - -2012-10-10 Ganesh Gopalasubramanian - - PR target/51109 - * config/i386/bdver1.md (bdver1_int): Automaton has been - split to reduce state transitions. - -2012-10-10 Richard Biener - - PR middle-end/54876 - * ipa-prop.c (prune_expression_for_jf_1): New function. - (prune_expression_for_jf): Clear EXPR_LOCATION for all - sub-expressions as well. - -2012-10-10 Andreas Krebbel - - * config.gcc: Enable zEC12 for with-arch and with-tune - configure switches. - * common/config/s390/s390-common.c (processor_flags_table): Add - zEC12 entry. - * config/s390/2827.md: New file. - * config/s390/s390-opts.h (enum processor_type): Add - PROCESSOR_2827_ZEC12. - * config/s390/s390.h (enum processor_flags): Add PF_ZEC12. - (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions. - * config/s390/s390.c (zEC12_cost): New definition. - (s390_option_override): Set costs for zEC12. - Set parameter defaults for zEC12. - (legitimate_reload_fp_constant_p): Adjust comment. - (preferred_la_operand_p): Adjust comment. - (s390_expand_insv): Generate insv pattern without CC clobber for zEC12. - (s390_adjust_priority): Add zEC12 check. - (s390_issue_rate): Return 2 for zEC12. - (s390_reorg): Enable code optimizations for zEC12. - (s390_sched_reorder): Reorder insns according to OOO attributes. - (s390_get_sched_attrmask): New function. - (s390_sched_score): New function. - (s390_sched_variable_issue): Update s390_sched_state. - (s390_sched_init): Reset s390_sched_state. - (s390_loop_unroll_adjust): Enable for zEC12. - * config/s390/s390.opt: Add zEC12 processor type value. - * config/s390/s390.md: Enable mnemonic attribute. - (attr cpu, cpu_facility): Add zEC12. - Include 2827.md. - ("*insv_zEC12", "*insv_zEC12_noshift") - ("*load_and_trap"): New insn definition. - ("*cmp_and_trap_unsigned_int"): Add clt and clgt. - -2012-10-09 David S. Miller - - * config/sparc/sparc.md (type attribute): Add new types 'visl' - (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename - 'fgm_pdist' to 'pdist'. - (*movsi_insn): Use vismv and visl. - (*movdi_insn_sp64): Likewise. - (*movsf_insn): Likewise. - (*movdf_insn_sp64): Likewise. - (*mov_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'. - (*mov_insn_sp64): Likewise, use 'fsrc2s' - instead of 'fsrc1s'. - (*mov_insn_sp32): Likewise, use 'fsrc2s' - instead of 'fsrc1s'. - (VIS logical instructions): Mark as visl. - (pdist_vis): Use 'pdist'. - (pditsn_vis): Use 'pdistn'. - * config/sparc/ultra1_2.md: Adjust for new VIS attribute types. - * config/sparc/ultra3.md: Likewise. - * config/sparc/niagara.md: Likewise. - * config/sparc/niagara2.md: Likewise. - * config/sparc/niagara4.md: Add cpu units "n4_slot2" and - "n4_load_store" for special store scheduling. Use them in load - and store reservations. Integer divide and multiply can only - issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS - logic operations. - -2012-10-10 Dehao Chen - - * tree-eh.c (lower_try_finally_onedest): Set correct location for - deallocator. - * gimplify.c (gimplify_expr): Set correct location for TRY stmt. - -2012-10-10 Oleg Endo - - PR target/52480 - * config/sh/sh.md (extv, extzv): Check that operands[3] is zero, - regardless of the endianness. - -2012-10-09 Lawrence Crowl - - * Makefile.in (fold-const.o): Add depencence on hash-table.h. - (dse.o): Likewise. - (cfg.o): Likewise. - * fold-const.c (fold_checksum_tree): Change to new - type-safe hash table. - * (print_fold_checksum): Likewise. - * cfg.c (var bb_original): Likewise. - * (var bb_copy): Likewise. - * (var loop_copy): Likewise. - * hash-table.h (template hash_table): Constify parameters for find... - and remove_elt... member functions. - (hash_table::empty) Correct size expression. - (hash_table::clear_slot) Correct deleted entry assignment. - * dse.c (var rtx_group_table): Change to new type-safe hash table. - -2012-10-09 Steven Bosscher - - * basic-block. (profile_record): New struct, moved from passes.c. - * cfghooks.h (struct cfg_hooks) : New hook. - (account_profile_record): New prototype. - * cfghooks.c (account_profile_record): New function. - * tree-cfg.c (gimple_account_profile_record): New function - (gimple_cfg_hooks): Add it. - * cfgrtl.c (rtl_account_profile_record): New function - (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it. - * passes.c (check_profile_consistency): Simplify. Move IR-dependent - code around using cfghooks machinery. - -2012-10-09 Oleg Endo - - PR target/54760 - * doc/extend.texi (Target Builtins): Add SH built-in section. - Document __builtin_thread_pointer and __builtin_set_thread_pointer. - -2012-10-09 Venkataramanan Kumar - - PR middle-end/53397 - * tree-ssa-loop-prefetch.c (gather_memory_references_ref): - Perform non constant step prefetching in inner loop, only - when it is invariant in the entire loop nest. - * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump - base, step and delta values of memeory reference analysed for - prefetching. - * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details - to print base, step and delta values of memory reference. - * cfgloop.h (loop_outermost): New function that returns outermost - loop for a given loop in a loop nest. - -2012-10-09 Richard Guenther - - PR middle-end/54837 - * cfgexpand.c (expand_debug_source_expr): Move checking - code conditional on a found decl_debug_args vector. - -2012-10-09 Richard Guenther - - * tree-streamer.c (streamer_tree_cache_get): Move ... - * tree-streamer.h (streamer_tree_cache_get): ... here as inline. - -2012-10-09 Jan Hubicka - - * loop-unroll.c (unroll_loop_constant_iterations): Add - update of loop->nb_iterations_upper_bound I missed in my previous - commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide - iteration count. - (decide_unroll_runtime_iterations): Avoid overflow. - (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of - FLOOR_DIV_EXPR to update iteration bounds. - (decide_peel_simple): Avoid integer overflow when deciding - on number of peelings. - (decide_unroll_stupid): Likewise. - -2012-10-09 Tobias Burnus - - * lto-cgraph.c (input_node_opt_summary): Remove unused code. - * lto-opts.c (append_to_collect_gcc_options): Fix condition. - * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string - which is passed to fprintf. - -2012-10-09 Paolo Carlini - - PR c++/54194 - * tree.h: Add EXPR_LOC_OR_LOC. - -2012-10-09 Nick Clifton - - PR rtl-optimization/54739 - * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns. - - PR target/54661 - * config/mcore/mcore.c (mcore_output_movedouble): Fix typo. - -2012-10-09 Marc Glisse - - PR c++/54427 - * fold-const.c (fold_binary_loc): Use build_zero_cst instead of - build_int_cst for a potential vector. - -2012-10-08 Uros Bizjak - - * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes. - (atom_sse_5): Ditto. - -2012-10-08 Marc Glisse - - PR target/54400 - * config/i386/i386.md (type attribute): Add sseadd1. - (unit attribute): Add support for sseadd1. - (memory attribute): Likewise. - * config/i386/athlon.md: Likewise. - * config/i386/core2.md: Likewise. - * config/i386/atom.md: Likewise. - * config/i386/ppro.md: Likewise. - * config/i386/bdver1.md: Likewise. - * config/i386/sse.md (sse3_hv2df3): Split into... - (sse3_haddv2df3): ... expander. - (*sse3_haddv2df3): ... define_insn. Accept permuted operands. - (sse3_hsubv2df3): ... define_insn. - (*sse3_haddv2df3_low): New define_insn. - (*sse3_hsubv2df3_low): New define_insn. - -2012-10-08 Jan Hubicka - - * loop-unswitch.c (unswitch_single_loop): Use - estimated_loop_iterations_int to prevent unswitching when loop - is known to not roll. - * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault - when SCEV is not initialized. - (max_loop_iterations): Likewise. - * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use - estimated_loop_iterations_int to prevent unswithcing when - loop is known to not roll. - * tree-scalar-evolution.c (scev_initialized_p): New function. - * tree-scalar-evolution.h (scev_initialized_p): Likewise. - * loop-unroll.c (decide_peel_once_rolling): Use - max_loop_iterations_int. - (unroll_loop_constant_iterations): Update - nb_iterations_upper_bound and nb_iterations_estimate. - (decide_unroll_runtime_iterations): Use - estimated_loop_iterations or max_loop_iterations; - (unroll_loop_runtime_iterations): fix profile updating. - (decide_peel_simple): Use estimated_loop_iterations - and max_loop_iterations. - (decide_unroll_stupid): Use estimated_loop_iterations - ad max_loop_iterations. - * loop-doloop.c (doloop_modify): Use max_loop_iterations_int. - (doloop_optimize): Likewise. - * loop-iv.c (iv_number_of_iterations): Use record_niter_bound. - (find_simple_exit): Likewise. - * cfgloop.h (struct niter_desc): Remove niter_max. - -2012-10-08 Marek Polacek - - PR debug/54831 - * var-tracking.c (vt_add_function_parameter): Use condition instead - of gcc_assert. - -2012-10-08 Dehao Chen - - * predict.c (predict_loops): Predict for short-circuit conditions. - (predict_extra_loop_exits): New Function. - -2012-10-08 Steven Bosscher - - * bitmap.h (bitmap_and_into): Update prototype. - * bitmap.c (bitmap_and_into): Return true if the target bitmap - changed, false otherwise. - - * df.h (df_dump_insn_problem_function): New function type. - (struct df_problem): Add two functions, to dump just before and - just after an insn. - (DF_RD_PRUNE_DEAD_DEFS): New changable flag. - (df_dump_insn_top, df_dump_insn_bottom): New prototypes. - * df-core (df_dump_region): Use dump_bb. - (df_dump_bb_problem_data): New function. - (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data. - (df_dump_insn_problem_data): New function. - (df_dump_insn_top, df_dump_insn_bottom): New functions. - * df-scan.c (problem_SCAN): Add NULL fields for new members. - * df-problems.c (df_rd_local_compute): Ignore hard registers if - DF_NO_HARD_REGS is in effect. - (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect, - prune reaching defs using the LR problem. - (df_rd_start_dump): Fix dumping of DEFs map. - (df_rd_dump_defs_set): New function. - (df_rd_top_dump, df_rd_bottom_dump): Use it. - (problem_RD): Add NULL fields for new members. - (problem_LR, problem_LIVE): Likewise. - (df_chain_bb_dump): New function. - (df_chain_top_dump): Dump only for artificial DEFs and USEs, - using df_chain_bb_dump. - (df_chain_bottom_dump): Likewise. - (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions. - (problem_CHAIN): Add them as new members. - (problem_WORD_LR, problem_NOTE): Add NULL fields for new members. - (problem_MD): Likewise. - * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom. - (print_rtl_with_bb): Likewise. - - * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS. - * loop-invariant.c (find_defs): Likewise. - * loop-iv.c (iv_analysis_loop_init): Likewise. - * ree.c (find_and_remove_re): Likewise. - * web.c (web_main): Likewise. - -2012-10-08 Jason Merrill - - * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of - ASM_WEAKEN_DECL with #if RS6000_WEAK. - -2012-10-08 Richard Guenther - - PR tree-optimization/54825 - * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF. - (init_vn_nary_op_from_stmt): Likewise. - * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt. - * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow. - -2012-10-08 Richard Guenther - - * tree-ssa-pre.c (postorder_num): New global. - (compute_antic): Initialize all blocks and adjust for - generic postorder. - (my_rev_post_order_compute): Remove. - (init_pre): Use inverted_post_order_compute. - -2012-10-08 Bernd Schmidt - - * sched-int.h (schedule_block): Adjust declaration. - * sched-rgn.c (bb_state_array, bb_state): New static variables. - (sched_rgn_init): Initialize them. - (sched_rgn_free): Free them. - (schedule_region): Save scheduling state for future blocks, and - pass such state to schedule_block. - * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New. - * doc/invoke.texi (--param): Document it. - * haifa-sched.c (schedule_block): New arg init_state. Use it to - initialize state if nonnull. All callers changed. - Call advance_one_cycle after scheduling. - -2012-10-08 Georg-Johann Lay - - PR target/54854 - * doc/invoke.texi (AVR Options): Remove -mshort-calls. - * config/avr/avr.opt (-mshort-calls): Remove option. - * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on - TARGET_SHORT_CALLS. - -2012-10-08 Oleg Endo - - PR target/54685 - * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual - combine matching for an insn sequence where a ge:SI pattern - can be used. - -2012-10-08 Dodji Seketeli - - PR c++/53528 C++11 attribute support - * plugin.h (register_scoped_attributes): Declare new function. - * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag. - (lookup_scoped_attribute_spec, cxx_11_attribute_p) - (get_attribute_name, get_attribute_namespace): Declare new functions. - (struct attribute_spec): Remove const qualifier from the members. - * tree.c (comp_type_attributes, private_lookup_attribute) - (lookup_ident_attribute, remove_attribute, merge_attribute) - (attribute_hash_list, attribute_list_contained): Use - get_attribute_name. - * attribs.c (decl_attributes): Don't crash on error_mark_node. - Forbid c++11 attributes appertaining to type-specifiers. - (attribute_hash): Remove global variable. - (attributes_table): New global variable. - (find_attribute_namespace, register_scoped_attribute): New static - functions. - (register_scoped_attributes, lookup_scoped_attribute_spec) - (cxx11_attribute_p, get_attribute_name, get_attribute_namespace): - New public functions. - (init_attributes): Register all the GNU attributes into the "gnu" - namespace. - (register_attribute): Use register_scoped_attribute to register - the attribute into the "gnu" namespace. - (lookup_attribute_spec): Use lookup_scoped_attribute_spec to - lookup the attribute in the "gnu" namespace. - (decl_attributes): Use new get_attribute_namespace and - lookup_scoped_attribute_spec to consider attribute namespaces when - looking up attributes. When operating in c++-11 mode, pass flag - ATTR_FLAG_CXX11 to the spec handler. - -2012-10-08 Georg-Johann Lay - - PR target/54815 - * config/avr/avr.md (*add3, add3, addpsi3): Make - constraint alternative "r,0,r" slighly more expensive. - (sub3, andqi3, andhi3, andpsi3, andsi3): Ditto. - (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto. - (xorhi3, xorpsi3, xorsi3): Ditto. - -2012-10-08 Oleg Endo - - PR target/54760 - * config/sh/sh.md (*mov_gbr_load, *mov_gbr_store): New - insns and accompanying unnamed splits. - * config/sh/predicates.md (general_movsrc_operand, - general_movdst_operand): Reject GBR addresses. - * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration. - * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p, - sh_secondary_reload): Handle GBR addresses. - (base_reg_disp): New class. - (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions. - -2012-10-08 Hans-Peter Nilsson - - * config/mmix/mmix.c (mmix_output_octa): Don't assume - HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use - HOST_WIDE_INT_PRINT_HEX_PURE, falling back to - HOST_WIDEST_INT_PRINT_UNSIGNED. - -2012-10-07 Richard Sandiford - - * machmode.h (GET_MODE_UNIT_PRECISION): New macro. - * simplify-rtx.c (simplify_truncation): New function, - extracted from simplify_subreg and (in small part) from - simplify_unary_operation_1. - (simplify_unary_operation_1) : Use it. Remove sign bit - test for !TRULY_NOOP_TRUNCATION_MODES_P. - (simplify_subreg): Use simplify_truncate for lowpart subregs - where both the inner and outer modes are scalar integers. - * config/mips/mips.c (mips_truncated_op_cost): New function. - (mips_rtx_costs): Adjust test for BADDU. - * config/mips/mips.md (*baddu_di): Push truncates to operands. - -2012-10-07 Jan Hubicka - - * ipa-inline-analysis.c (do_estimate_edge_time): Return actual - time spent by the inlined sequence. - (do_estimate_edge_growth): Rename to ... - (do_estimate_edge_time): ... this one; return size of inlined sequence. - * ipa-inline.h (do_estimate_edge_size): New. - (do_estimate_edge_growth): Remove. - (estimate_edge_size): New function. - (estimate_edge_growth): Use it. - -2012-10-07 Jan Hubicka - - * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT. - (lto_symtab_encoder_delete): Update. - (lto_symtab_encoder_encode): Update. - (compute_ltrans_boundary): Update. - (input_symtab): Update. - * lto-streamer.h (lto_symtab_encoder_new): Update. - -2012-10-07 Richard Sandiford - - * config/mips/mips-protos.h (mips_split_type): New enum. - (mips_split_64bit_move_p, mips_split_doubleword_move): Delete. - (mips_split_move_p, mips_split_move, mips_split_move_insn_p) - (mips_split_move_insn): Declare. - * config/mips/mips.c (mips_tuning_info): New variable. - (mips_load_store_insns): Use mips_split_move_insn_p instead of - mips_split_64bit_move_p. - (mips_emit_move_or_split, mips_mult_move_p): New functions. - (mips_split_64bit_move_p): Rename to... - (mips_split_move_p): ...this and take a mips_split_type argument. - Generalize to all moves. Call mips_mult_move_p. - (mips_split_doubleword_move): Rename to... - (mips_split_move): ...this and take a mips_split_type argument. - Assert that mips_split_move_p holds. - (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn): - New functions. - (mips_output_move): Use mips_split_move_p instead of - mips_split_64bit_move_p. Handle MULT $0, $0 moves. - (mips_save_reg): Use mips_emit_move_or_split. - (mips_sim_reset): Assign to curr_state. Call targetm.sched.init - and advance_state. - (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and - targetm.sched.init_dfa_post_cycle_insn, if defined. - (mips_sim_next_cycle): Assign to curr_state. Use advance_state - instead of state_transition. - (mips_sim_issue_insn): Assign to curr_state. Use - targetm.sched.variable_issue to see how many more insns can be issued. - (mips_seq_time, mips_mult_zero_zero_cost) - (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info) - (mips_expand_to_rtl_hook): New functions. - (TARGET_EXPAND_TO_RTL_HOOK): Define. - * config/mips/mips.md (move_type): Add imul. - (type): Map imul move_types to imul. - (*movdi_32bit, *movti): Add imul alternatives. - Use mips_split_move_insn_p and mips_split_move_insn instead of - mips_split_64bit_move_p and mips_split_doubleword_move in move - splitters. - -2012-10-06 Segher Boessenkool - - * config/rs6000/rs6000.c (print_operand) ['A']: Delete. - -2012-10-06 Paolo Carlini - - PR c++/52764 - * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define - __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS. - * ginclude/stdint-gcc.h: In C++11 unconditionally define - limit and constant macros. - -2012-10-06 Paolo Carlini - - PR c++/54249 - * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global - namespace. - -2012-10-06 Jan Hubicka - - PR lto/53831 - PR lto/54776 - * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack. - -2012-10-06 Dehao Chen - - PR debug/54826 - * gimple-low.c (lower_stmt): Set the block for call args. - -2012-10-06 Jan Hubicka - - * doc/invoke.texi (-fprofile-report): Document. - * common.opt (-fprofile-report): New option. - * toplev.c (finalize): Call dump_profile_report. - * toplev.h (profile_report): Declare. - * passes.c (profile_record): New static var. - (check_profile_consistency): New function. - (dump_profile_record): New function. - (execute_one_ipa_transform_pass): Call check_profile_consistency. - (execute_one_pass): Likewise. - -2012-10-06 Jan Hubicka - - PR lto/54790 - * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution, - lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove. - * lto-symtab.c (lto_symtab_register_decl): Remove. - -2012-10-06 Andreas Schwab - - PR rtl-optimization/54739 - * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove. - -2012-10-06 Oleg Endo - - PR target/54760 - * config/sh/sh.md (define_constants): Add UNSPECV_GBR. - (get_thread_pointer, set_thread_pointer): New expanders. - (load_gbr): Rename to store_gbr. Remove GBR_REG use. - (store_gbr): New insn. - * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of - gen_load_gbr in TLS_MODEL_LOCAL_EXEC case. - (sh1_builtin_p): New function. - (signature_args): Add SH_BLTIN_VP. - (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer. - -2012-10-05 John David Anglin - - PR rtl-optimization/54739 - * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns - for 32-bit targets. Adjust expanders. - - * config/pa/pa.md: Adjust unamed HImode add insn pattern. - -2012-10-05 Oleg Endo - - * config/sh/sh.c (builtin_description): Add is_enabled member. - (shmedia_builtin_p): New function. - (bdesc): Use shmedia_builtin_p for existing built-ins. - (sh_media_init_builtins, sh_init_builtins): Merge into single function - sh_init_builtins. Add is_enabled checking. Move variable declarations - to where they are actually used. - (sh_media_builtin_decl, sh_builtin_decl): Merge into single function - sh_builtin_decl. Add is_enabled checking. - (sh_expand_builtin): Move variable declarations to where they are - actually used. - -2012-10-05 Jakub Jelinek - - * tree-inline.c (expand_call_inline): Move VAR_DECLs with - PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS - into id->block's BLOCK_VARS. - - PR debug/54519 - * ipa-split.c (split_function): Add debug args and debug source - and normal stmts for args_to_skip which are gimple regs. - * tree-inline.c (copy_debug_stmt): When inlining, adjust source - debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL. - -2012-10-05 Georg-Johann Lay - - * config/avr/avr.md: Fix indentations of insn C snippets. - -2012-10-05 Richard Guenther - - PR middle-end/54811 - * tree-ssa-live.c (clear_unused_block_pointer_1): Look at - DECL_DEBUG_EXPR again. - -2012-10-05 Jan Hubicka - Jakub Jelinek - - PR tree-optimization/33763 - * tree-inline.c (expand_call_inline): Silently ignore always_inline - attribute for redefined extern inline functions. - -2012-10-04 Jan Hubicka - - * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove. - * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here. - (vect_analyze_loop_operations): Use loop count estimate to rule out - unprofitable vectorization. - (vect_estimate_min_profitable_iters): Return - ret_min_profitable_estimate. - -2012-10-05 Jakub Jelinek - - PR tree-optimization/54810 - * tree-vrp.c (register_edge_assert_for_2): Handle - NAME = (unsigned) NAME2; if (NAME cmp CST) for - narrowing casts to unsigned integral type like - NAME = NAME2 & CST2; if (NAME cmp CST) where CST2 - is the max value of the unsigned integral type. - -2012-10-04 Jeff Law - - PR target/50356 - * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case. - -2012-10-04 Jason Merrill - - * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of - ASM_WEAKEN_DECL with #if RS6000_WEAK. - -2012-10-04 Basile Starynkevitch - - * gengtype.c (walk_type): Emit mark_hook when inside a - struct of a union member. - -2012-10-04 Georg-Johann Lay - - * config/avr/predicates.md (flash_operand): New predicate. - * config/avr/avr.md (reload_in): Use it in operand 1 instead - of memory_operand. - -2012-10-04 Tobias Burnus - - * gcc.c (record_temp_file, add_sysrooted_prefix, process_command, - do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks. - (do_spec_1): Ditto, fix out-of-bound access. - * opts.c (common_handle_option): Plug memleak. - -2012-10-04 Jason Merrill - - * config/darwin.c (darwin_assemble_visibility): Treat - VISIBILITY_INTERNAL as hidden. - - * config/darwin-c.c (find_subframework_file): Add missing const. - (framework_construct_pathname): Likewise. - -2012-10-04 Florian Weimer - - * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma - GCC error. - -2012-10-04 Richard Guenther - - PR middle-end/54735 - * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before - cleaning up the CFG. - -2012-10-04 Richard Guenther - - PR lto/47799 - * tree-streamer-out.c (write_ts_block_tree_pointers): For - inlined functions outer scopes write the ultimate origin - as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION. - Do not stream the fragment chains. - * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise. - * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL. - (dwarf2out_decl): Always output DECL_ABSTRACT function decls. - -2012-10-04 Arnaud Charlet - - * dumpfile.h, dumpfile.c: Remove TDI_ada. - -2012-10-04 Yuri Rumyantsev - - * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add - check on reload_completed since it can be invoked before - register allocation phase in pre-reload schedule. - (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for - pre-reload schedule to save compile time. - (ix86_sched_reorder) : Do not perform ready list reordering for - pre-reload schedule to save compile time. - (insn_is_function_arg) : New function. Returns true if lhs of insn is - HW function argument register. - (add_parameter_dependencies) : New function. Add output dependencies - for chain of function adjacent arguments if only there is a move to - likely spilled HW registers. Return first argument if at least one - dependence was added or NULL otherwise. - (avoid_func_arg_motion) : New function. Add output or anti dependency - from insn to first_arg to restrict code motion. - (add_dependee_for_func_arg) : New function. Avoid cross block motion of - function argument through adding dependency from the first non-jump - insn in bb. - (ix86_dependencies_evaluation_hook) : New function. Hook for - pre-reload schedule: avoid motion of function arguments passed in - likely spilled HW registers. - (ix86_adjust_priority) : New function. Hook for pre-reload schedule: - set priority of moves from likely spilled HW registers to maximum to - schedule them as soon as possible. - (ix86_sched_init_global): Do not perform multipass scheduling for - pre-reload schedule to save compile time. - -2012-10-04 Uros Bizjak - - * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables. - * configure: Regenerate. - -2012-10-04 Kaz Kojima - - * config/sh/sh.c (sh_can_use_simple_return_p): Return false for - SHmedia and SHcompact using call cookie. - * config/sh/sh.md (epilogue): Emit non-inlined return insns for - SHmedia and SHcompact using call cookie. - -2012-10-03 Oleg Endo - - PR target/51244 - * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying - unnamed split patterns. - -2012-10-03 Oleg Endo - - PR target/50457 - * config/sh/sh.c (parse_validate_atomic_model_option): Handle name - strings in sh_atomic_model. - * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation - to ... - * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function. - Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define. - * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name - variables. - (sh_cpu_cpp_builtins): Declare new function. - -2012-10-03 Dehao Chen - - PR middle-end/54782 - * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args. - -2012-10-03 Vladimir Makarov - - * reginfo.c (max_regno_since_last_resize): New. - (reg_preferred_class, reg_alternate_class): Add assert. - (allocate_reg_info): Initialize allocated reg info. - (resize_reg_info): Make bigger reg_info and initialize new memory. - (reginfo_init): Initialize max_regno_since_last_resize. - (setup_reg_classes): Change assert. - -2012-10-03 Andrew W. Nosenko - - * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic - in SSE and YMM state support check for -march=native. - -2012-10-03 Nick Clifton - - * config/rx/rx.c (struct decl_chain): New local structure. - (warned_decls): New local variable. Contains a stack of decls for - which warnings have been issued. - (add_warned_decl): Adds a decl to the stack. - (already_warned): Returns true if a given decl is on the stack. - (rx_set_current_function): Issue a warning if multiple fast - interrupt handlers are defined. - * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option. - * doc/invoke.texi: Document the option. - -2012-10-03 Mark Kettenis - - * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set - default_use_cxa_atexit to yes. - -2012-10-03 Jakub Jelinek - - PR rtl-optimization/54792 - * sched-deps.c (find_modifiable_mems): Scan also TAIL insn. - -2012-10-02 H.J. Lu - - PR target/54785 - * doc/invoke.texi: Document -mprefer-avx128. - -2012-10-02 Andrew Pinski - - * simplify-rtx.c (simplify_unary_operation_1 ): - Don't optimize a truncate of a mem if it is a vector mode. - -2012-10-02 Alexandre Oliva - - PR debug/54551 - * Makefile.in (VALTRACK_H): Add hash-table.h. - * valtrack.h: Include hash-table.h. - (struct dead_debug_global_entry): New. - (struct dead_debug_hash_descr): New. - (struct dead_debug_global): New. - (struct dead_debug): Rename to... - (struct dead_debug_local): ... this. Adjust all uses. - (dead_debug_global_init, dead_debug_global_finish): New. - (dead_debug_init): Rename to... - (dead_debug_local_init): ... this. Adjust all callers. - (dead_debug_finish): Rename to... - (dead_debug_local_finish): ... this. Adjust all callers. - * valtrack.c (dead_debug_global_init): New. - (dead_debug_init): Rename to... - (dead_debug_local_init): ... this. Take global parameter. - Save it and initialize used bitmap from it. - (dead_debug_global_find, dead_debug_global_insert): New. - (dead_debug_global_replace_temp): New. - (dead_debug_promote_uses): New. - (dead_debug_finish): Rename to... - (dead_debug_local_finish): ... this. Promote remaining uses. - (dead_debug_global_finish): New. - (dead_debug_add): Try to replace global temps first. - (dead_debug_insert_temp): Support global replacements. - * dce.c (word_dce_process_block, dce_process_block): Add - global_debug parameter. Pass it on. - (fast_dce): Initialize, pass on and finalize global_debug. - * df-problems.c (df_set_unused_notes_for_mw): Adjusted. - (df_create_unused_notes, df_note_bb_compute): Likewise. - (df_note_compute): Justify local-only dead debug analysis. - -2012-10-02 Alexandre Oliva - - PR debug/53135 - * dwarf2out.c (value_format): Use block4 for dw_val_class_loc - when needed. - -2012-10-02 Alexandre Oliva - - PR debug/54177 - * var-tracking.c (vt_add_function_parameter): Bail if - var_lowpart fails. - -2012-10-02 H.J. Lu - - PR target/54741 - * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New. - (XSTATE_FP): Likewise. - (XSTATE_SSE): Likewise. - (XSTATE_YMM): Likewise. - (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if - SSE and YMM states aren't supported. - -2012-10-02 Richard Sandiford - - * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into... - (*baddu_si): ...this new pattern. - -2012-10-02 Richard Sandiford - - * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs. - (ira_useful_class_mode_regs): New macro. - * ira.c (clarify_prohibited_class_mode_regs): Set up - ira_useful_class_mode_regs. - * ira-color.c (setup_profitable_hard_regs): Use it to initialise - profitable_hard_regs. - -2012-10-02 Richard Sandiford - - * ira.h (target_ira): Add x_ira_class_singleton. - (ira_class_singleton): New macro. - * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton. - * ira-build.c (update_conflict_hard_reg_costs): Use - ira_class_singleton to check for classes with a single - allocatable register. - * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise. - (single_reg_class): Likewise. When more than one class is specified, - check whether they have the same singleton register. - (process_single_reg_class_operands): Require single_reg_class - to return NO_REGS or a class with a single allocatable register. - Obtain that register from ira_class_singleton. - -2012-10-02 Michael Meissner - - * config/rs6000/rs6000.c (rs6000_option_override_internal): If - -mcpu= is not specified and the compiler is not configured - using --with-cpu=, use the bits from the TARGET_DEFAULT to - set the initial options. - -2012-10-02 Sharad Singhai - - PR testsuite/54772 - * tree-vect-stmts.c (vectorizable_operation): Add missing return. - -2012-10-02 David Edelsohn - - * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not - set TARGET_ALTIVEC_VRSAVE for TARGET_ELF. - (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE. - -2012-10-02 Jakub Jelinek - - PR tree-optimization/54713 - * expr.c (categorize_ctor_elements_1): Don't assume purpose is - non-NULL. - * tree-cfg.c (verify_gimple_assign_single): Add verification of - vector CONSTRUCTORs. - * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE - CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE, - and don't check index. - * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor - elements first if their type isn't compatible with vector element type. - -2012-10-02 Eric Botcazou - - * tree.h (DECL_NONLOCAL_FRAME): New macro. - * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME. - * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in - DECL_NONLOCAL_FRAME flag. - * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out - DECL_NONLOCAL_FRAME flag. - -2012-10-02 Marc Glisse - - * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use - boolean_type_node for vectors. - -2012-10-01 Michael Meissner - - * config/rs6000/rs6000.c (toplevel): Include dumpfile.h. - (rs6000_density_test): Rework to accommodate 09-30 change by - Sharad Singhai. - - * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency. - -2012-10-01 Dehao Chen - - PR middle-end/54759 - * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use - LOCATION_LOCUS to compare with UNKNOWN_LOCATION. - (slpeel_tree_peel_loop_to_edge): Likewise. - * tree-vectorizer.c (vectorize_loops): Likewise. - -2012-10-01 Andrew MacLeod - - PR target/54087 - * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code - from expand_atomic_fetch_op. - (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of - the other one if direct opcode fails. - -2012-10-01 Uros Bizjak - - PR rtl-optimization/54457 - * simplify-rtx.c (simplify_subreg): - Simplify (subreg:M (op:N ((x:N) (y:N)), 0) - to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where - the outer subreg is effectively a truncation to the original mode M. - -2012-10-01 Richard Guenther - - * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops - with -frounding-math. - * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove. - (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise. - -2012-10-01 Eric Botcazou - - * tree.h (copy_mem_ref_info): Delete. - * tree-ssa-address.c (copy_mem_ref_info): Likewise. - (maybe_fold_tmr): Copy flags manually. - * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite. - -2012-10-01 Marc Glisse - - * simplify-rtx.c (simplify_binary_operation_1) : - Detect the identity. - : Handle VEC_SELECTs from the same vector. - -2012-10-01 Oleg Endo - - PR target/50457 - * config/sh/sh.opt (matomic-model): New option. - (msoft-atomic): Mark as deprecated and alias to - matomic-model=soft-gusa. - (mhard-atomic): Delete. - * config/sh/predicates.md (gbr_displacement): New predicate. - * config/sh/sh-protos.h (sh_atomic_model): New struct. - (selected_atomic_model): New declaration. - (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA, - TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB, - TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK): - New macros. - * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to - default atomic model. - * config/sh/sh.c (selected_atomic_model_): New global variable. - (selected_atomic_model, parse_validate_atomic_model_option): New - functions. - (sh_option_override): Replace atomic selection checks with call to - parse_validate_atomic_model_option. - * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS, - UNSUPPORTED_HARD_ATOMIC_CPU): Delete. - (DRIVER_SELF_SPECS): Remove atomic checks. - config/sh/sync.md: Update documentation comments. - (atomic_compare_and_swap, atomic_exchange, - atomic_fetch_, atomic_fetch_nand, - atomic__fetch, atomic_nand_fetch): Use - TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for - SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and - TARGET_ATOMIC_SOFT_IMASK cases. - (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and - TARGET_ATOMIC_SOFT_IMASK cases. - (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard, - atomic_fetch_si_hard, atomic_fetch_nandsi_hard, - atomic__fetchsi_hard, atomic_nand_fetchsi_hard): - Add TARGET_ATOMIC_STRICT check. - (atomic_compare_and_swap_hard, atomic_exchange_hard, - atomic_fetch__hard, atomic_fetch_nand_hard, - atomic__fetch_hard, atomic_nand_fetch_hard, - atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition. - (atomic_compare_and_swap_soft, atomic_exchange_soft, - atomic_fetch__soft, atomic_fetch_nand_soft, - atomic__fetch_soft, atomic_nand_fetch_soft, - atomic_test_and_set_soft): Append _gusa to the insn names and use - TARGET_ATOMIC_SOFT_GUSA as condition. - (atomic_compare_and_swap_soft_tcb, - atomic_exchange_soft_tcb, - atomic_fetch__soft_tcb, - atomic_fetch_nand_soft_tcb, - atomic__fetch_soft_tcb, - atomic_nand_fetch_soft_tcb, atomic_test_and_set_soft_tcb): - New insns. - (atomic_compare_and_swap_soft_imask, - atomic_exchange_soft_imask, - atomic_fetch__soft_imask, - atomic_fetch_nand_soft_imask, - atomic__fetch_soft_imask, - atomic_nand_fetch_soft_imask, atomic_test_and_set_soft_imask): - New insns. - * doc/invoke.texi (SH Options): Document new matomic-model option. - Remove msoft-atomic and mhard-atomic options. - -2012-10-01 Andreas Krebbel - - PR target/54746 - * config/s390/s390.c (s390_option_override): Add missing break. - -2012-09-30 Sharad Singhai - - * dumpfile.c: New file with parts moved from tree-dump.c. - (pflags): New variable. - (alt_flags): Ditto. - (alt_dump_file): Ditto. - (dump_files): Update to include additional fields. - (struct dump_option_value_info): Add additional entries. - (get_dump_file_name): Use command line filename if available. - (dump_open_alternate_stream): New function. - (dump_loc): Ditto. - (dump_gimple_stmt): Ditto. - (dump_gimple_stmt_loc): Ditto. - (dump_generic_expr): Ditto. - (dump_generic_expr_loc): Ditto. - (dump_printf): Ditto. - (dump_printf_loc): Ditto. - (dump_start): Ditto. - (dump_finish): Ditto. - (dump_begin): Ditto. - (dump_enabled_p): Return true if either of the dump types is enabled. - (dump_initialized_p): Return true if either type of dump is - initialized. - (dump_end): Do not close standard streams. - (dump_enable_all): Handle filenames for regular dumps. - (dump_switch_p_1): Handle command-line dump filenames. - (opt_info_enable_all): New function. - (opt_info_switch_p_1): Ditto. - (opt_info_switch_p): Ditto. - (dump_kind_p): Ditto. - (dump_basic_block): Ditto. - (dump_combine_total_stats): Ditto. - (dump_remap_tree_vectorizer_verbose): Ditto. - * gimple-pretty-print.h: Rename dump_gimple_stmt to - pp_gimple_stmt_1. All callers updated. - -2012-09-30 Sharad Singhai - - * doc/invoke.texi: Add documentation for the new -fopt-info option. - * tree-dump.c: Move general dump file related functionality into - dumpfile.c. Remove unneeded headers. - * tree-dump.h: Move function declarations into dumpfile.h. - * dumpfile.h: Include "line-map.h". Add defines for MSG flags. - (struct dump_file_info): Move here from tree-dump.c. Rename flags - to pflags, state to pstate, stream to pstream, filename to - pfilename. All callers updated. Add alt_flags, alt_state, - alt_filenmae, alt_stream. - * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump. - (vect_set_dump_settings): Remove. - (vect_print_dump_info): Ditto. - * tree-vectorizer.h: Remove declaration of vect_dump and - vect_print_dump_info. - * tree-vect-loop.c: Include "dumpfile.h". Use new dump style. - * tree-vect-data-refs.c: Ditto. - * tree-vect-stmts.c: Ditto. - * tree-vect-slp.c: Ditto. - * tree-vect-patterns.c: Ditto. - * tree-vect-loop-manip.c: Ditto. - * opts.c (vect_set_verbosity_level): Remove. - (common_handle_option): Handle -fopt-info flag. Deprecate - -ftree-vectorizer-verbose. - * tree-parloops.c (gather_scalar_reductions): Remove reference to - vect_dump. - * flag-types.h: Remove vect_verbosity_levels. - * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose. - * opts-global.c (dump_remap_tree_vectorizer_verbose): New function. - (handle_common_deferred_options): Handle -fopt-info and - -ftree-vectorizer-verbose. - * Makefile.in: Add dumpfile.o. - (tree-dump.o): Update dependencies. - (tree-vect-loop.o): Ditto. - (tree-vect-loop-manip.o): Ditto. - (tree-vect-slp.o): Ditto. - (tree-vect-stmts.o): Ditto. - (tree-vectorizer.o): Ditto. - (opts.o): Ditto. - * passes.c (finish_optimization_passes): Instead of using - dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file. - (pass_init_dump_file): Ditto. - -2012-09-30 Joern Rennecke - - PR rtl-optimization/38449: - * hooks.c (hook_bool_const_rtx_const_rtx_true): New function. - * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare. - * target.def: Merge in definitions and documentation for - TARGET_CAN_FOLLOW_JUMP. - * doc/tm.texi.in: Add documentation locations for the above. - * doc/tm.texi: Regenerate. - * reorg.c (follow_jumps): New parameters jump and crossing. - Changed all callers. - -2012-09-30 Eric Botcazou - - * reorg.c (relax_delay_slots): Use delay_insn consistently. - - * config/sparc/sparc.c (gen_stack_pointer_dec): Delete. - (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust. - (sparc_flat_expand_epilogue): Likewise. - (emit_and_preserve): Likewise. - (sparc_fold_builtin): Fix thinko in latest change. - -2012-09-30 Andreas Schwab - - * config/m68k/m68k.md: Add names to bitfield insert and extract - insns. - (*insv_8_16_reg): Remove constraints and conditions that assume - that operand 0 could be a MEM. - (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1. - -2012-09-30 Jan Hubicka - - * cfgloop.c (scale_loop_profile): Move to... - * cfgloopmanip.c (scale_loop_profile): .. here; use - scale_loop_frequencies. - (loopify): Use RDIV. - -2012-09-28 Jan Hubicka - - * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile. - -2012-09-28 Jan Hubicka - - * function.c (dup_block_and_redirect): Update profile. - -2012-09-29 Andreas Tobler - - * config.gcc: Replace 'host' with 'target' when configuring for - powerpc64*-*-freebsd. - -2012-09-29 Marc Glisse - - * tree.c (truth_type_for): New function. - * tree.h (truth_type_for): Declare. - * gimple-fold.c (and_comparisons_1): Call it. - (or_comparisons_1): Likewise. - * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use - boolean_type_node for vectors. - -2012-09-28 Jan Hubicka - - * basic-block.h (RDIV): Define. - (EDGE_FREQUENCY): Simplify. - (check_probability, combine_probabilities, apply_probability, - inverse_probability): New. - * cfgloop.c (scale_loop_profile): New function. - * cfgloop.h (scale_loop_profile): Declare. - (slpeel_add_loop_guard): Add probability parameter. - (set_prologue_iterations): Add probability parameter. - (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters; - update probabilities correctly. - (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New. - -2012-09-20 Bernd Schmidt - - PR bootstrap/54688 - * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take - STACK_GROWS_DOWNWARD into account. - -2012-09-28 Jakub Jelinek - - PR target/54716 - * config/i386/predicates.md (nonimmediate_or_const_vector_operand): - New predicate. - * config/i386/i386.c (ix86_expand_vector_logical_operator): New - function. - * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New - prototype. - * config/i386/sse.md (3 VI logic): Use it. - - PR tree-optimization/54713 - * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR - has vector elements. - (fold_ternary_loc) : Likewise. - * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts - indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements. - (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes. - -2012-09-28 Georg-Johann Lay - - * config/avr/avr.md (adjust_len): Add lpm. - (reload_in): Use avr_out_lpm for output. Use "lpm" for - adjust_len. - * config/avr/avr-protos.h (avr_out_lpm): New prototype. - * config/avr/avr.c (avr_out_lpm): Make global. - (adjust_insn_length): Handle ADJUST_LEN_LPM. - -2012-09-28 Richard Guenther - - PR lto/47799 - * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global. - (lto_output_tree_ref): Handle references to them. - (output_function): Do not output function arguments again. - * lto-streamer-in.c (input_function): Do not input arguments - again, nor overwrite them. - -2012-09-28 Richard Guenther - - * cgraph.h (symtab_node_base): Re-order and pack fields. - -2012-09-28 Georg-Johann Lay - - * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic. - -2012-09-28 Georg-Johann Lay - - PR rtl-optimization/52543 - * config/avr/avr.c (avr_mode_dependent_address_p): Return true for - all non-generic address spaces. - (TARGET_SECONDARY_RELOAD): New hook define to... - (avr_secondary_reload): ...this new static function. - * config/avr/avr.md (reload_in): New insns. - - Undo r185605 (mostly): - * config/avr/avr-protos.h (avr_load_lpm): Remove. - * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash - loads. - (avr_out_lpm): Also handle loads > 1 byte. - (avr_load_lpm): Remove. - (avr_find_unused_d_reg): New static function. - (avr_out_lpm_no_lpmx): New static function. - (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM. - * config/avr/avr.md (unspec): Remove UNSPEC_LPM. - (load__libgcc): Use MEM instead of UNSPEC_LPM. - (load_, load__clobber): Remove. - (mov): For multi-byte move from non-generic - 16-bit address spaces: Expand to *mov again. - (load_libgcc): New expander. - (split-lpmx): Remove split. - -2012-09-27 Dehao Chen - - * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION. - (extern void protected_set_expr_location): Likewise. - (function_args_iter_next): Likewise. - (inlined_function_outer_scope_p): Likewise. - * input.h (IS_UNKNOWN_LOCATION): Likewise. - * fold-const.c (expr_location_or): Likewise. - * lto-cgraph.c (output_node_opt_summary): Likewise. - * dwarf2out.c (add_src_coords_attributes): Likewise. - * tree-eh.c (lower_try_finally_dup_block): Likewise. - * profile.c (branch_prob): - * cfgexpand.c (expand_gimple_cond): Likewise. - (expand_gimple_basic_block): Likewise. - (construct_exit_block): Likewise. - (gimple_expand_cfg): Likewise. - * cfgcleanup.c (try_forward_edges): Likewise. - * tree-ssa-live.c (remove_unused_scope_block_p): Likewise. - (dump_scope_block): Likewise. - * ipa-prop.c (ipa_write_jump_function): Likewise. - * rtl.h (extern void rtl_check_failed_flag): Likewise. - * gimple.h (gimple_set_location): Likewise. - (gimple_has_location): Likewise. - * cfgrtl.c (unique_locus_on_edge_between_p): Likewise. - (force_nonfallthru_and_redirect): Likewise. - (fixup_reorder_chain): Likewise. - (cfg_layout_merge_blocks): Likewise. - -2012-09-27 Meador Inge - - * gcc-ar.c (main): Handle the returning of the sub-process error - code correctly. - -2012-09-27 Ulrich Weigand - - * lower-subreg.c (enum classify_move_insn): Rename - SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE. - (find_decomposable_subregs): Update. - (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter. - Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE - if that parameter is true. - (rest_of_handle_lower_subreg): Call decompose_multiword_subregs - with DECOMPOSE_COPIES false. - (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs - with DECOMPOSE_COPIES true. - -2012-09-27 Marek Polacek - - * doc/gcov.texi (Gcov Data Files): Fix a typo. - -2012-09-27 Jakub Jelinek - - PR target/54703 - * simplify-rtx.c (simplify_binary_operation_1): Perform - (x - (x & y)) -> (x & ~y) optimization only for integral modes. - -2012-09-27 Marc Glisse - - PR c/53024 - PR c++/54427 - * doc/extend.texi (Vector Extensions): C++ improvements. - Power of 2 size requirement. - -2012-09-27 Richard Guenther - - PR lto/54709 - * lto-symtab.c (resolution_guessed_p): Remove. - (set_resolution_guessed): Likewise. - (lto_symtab_register_decl): Remove assert. - (lto_symtab_resolve_symbols): Do not alter symbol resolutions - and return the prevailing symbol, checking for multiple prevailing - symbols here. - (lto_symtab_merge_decls_1): Use the result from - lto_symtab_resolve_symbols. Do not alter symbol resolutions. - -2012-09-26 Steve Ellcey - - PR web/54711 - * doc/install.texi: Fix example. - -2012-09-26 Dehao Chen - - * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void) - for function parameter. - (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL. - -2012-09-26 Oleg Endo - - * doc/extend.texi (bswap Builtins): Change signed types to unsigned - types. - -2012-09-26 Ian Lance Taylor - - * diagnostic.c (bt_callback): Cast pc when calling fprintf. - -2012-09-26 Bill Schmidt - - PR tree-optimization/54674 - * gimple-ssa-strength-reduction.c (analyze_increments): Don't - introduce a multiplication with a pointer operand. - -2012-09-26 Georg-Johann Lay - - PR middle-end/54635 - * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new - parameter addrspace. - * doc/tm.texi: Regenerate. - * target.def (mode_dependent_address_p): Add addr_space_t parameter. - * targhooks.h (default_mode_dependent_address_p): Ditto. - * targhooks.c (default_mode_dependent_address_p): Ditto. - * expr.c (convert_move): Pass address space to - mode_dependent_address_p. - * combine.c (combine_simplify_rtx): Ditto. - (make_extraction): Ditto. - (simplify_shift_const_1): Ditto. - (gen_lowpart_for_combine): Ditto. - * lower-subreg.c (simple_move_operand): Ditto. - * recog.c (simplify_while_replacing): Ditto. - (offsettable_address_addr_space_p): Ditto. - (mode_dependent_address_p): Ditto. - * simplify-rtx.c (simplify_unary_operation_1): Ditto. - (simplify_subreg): Ditto. - * config/m68k/m68k.md: Ditto. - * config/vax/vax.md: Ditto. - * config/vax/constraints.md (Q): Ditto. - * config/vax/predicates.md (indexed_memory_operand): Ditto. - * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add - unused addr_space_t parameter. - * config/avr/avr.c (avr_mode_dependent_address_p): Ditto. - * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto. - * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto. - * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto. - * config/rx/rx.c (rx_mode_dependent_address_p): Ditto. - * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto. - * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p): - Ditto. - * config/vax/vax.c (vax_mode_dependent_address_p): Ditto. - * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto. - -2012-09-26 Christophe Lyon - - * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field. - (execute_optimize_bswap): Add support for builtin_bswap16. - -2012-09-26 Richard Guenther - - * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS. - -2012-09-26 Ian Lance Taylor - - * diagnostic.c: Include "demangle.h" and "backtrace.h". - (bt_stop): New static array. - (bt_callback, bt_err_callback): New static functions. - (diagnostic_action_after_output): Call backtrace_full for DK_ICE. - * Makefile.in (BACKTRACE): New variable. - (BACKTRACEINC, LIBBACKTRACE): New variables. - (BACKTRACE_H): New variable. - (LIBDEPS, LIBS): Add $(LIBBACKTRACE). - (INCLUDES): Add $(BACKTRACEINC). - (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H). - -2012-09-25 Segher Boessenkool - - PR target/51274 - PR target/53087 - * config/rs6000/rs6000.md (ne0si): Remove unnecessary - earlyclobber. Merge with... - (ne0di): ... to... - (ne0_): New. - (plus_ne0si): Merge with... - (plus_ne0di): ... to... - (plus_ne0_): New. - (compare_plus_ne0si): Merge with... - (compare_plus_ne0di)... to... - (compare_plus_ne0_): New. - (compare_plus_ne0__1): New. - (plus_ne0si_compare): Merge with... - (plus_ne0di_compare)... to... - (plus_ne0__compare): New. - -2012-09-25 Oleg Endo - - PR target/54089 - * config/sh/constraints.md (Jhb): New constraint. - * config/sh/predicates.md (negt_reg_shl31_operand): New predicate. - * config/sh/sh.md (rotrsi3): New expander. - (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns. - (rotlsi3, rotlhi3): Use const_int_operand predicate instead of - immediate_operand and remove CONST_INT_P checks in expansion code. - (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add - split with swapped operands. - (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits. - -2012-09-25 Aldy Hernandez - - PR middle-end/53850 - * trans-mem.c (expand_call_tm): Handle late built built-ins. - -2012-09-25 Georg-Johann Lay - - PR other/54701 - * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using - double_int::udivmod. - -2012-09-25 Georg-Johann Lay - - * config/avr/avr.c (avr_set_current_function): Check cfun->machine - to be non-NULL. - -2012-09-25 Georg-Johann Lay - - PR target/54641 - * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS - for sources compiled with COMPILER. - -2012-09-25 Richard Guenther - - PR lto/54625 - * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge - cgraph nodes for builtins. - -2012-09-25 Jakub Jelinek - - PR tree-optimization/54676 - * tree-vrp.c (set_and_canonicalize_value_range): Handle - one bit precision properly. - - PR other/54692 - * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly. - * configure: Regenerated. - -2012-09-25 Georg-Johann Lay - - PR other/54701 - * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi - instead of uhwi_to_double_int. - -2012-09-25 Richard Guenther - - * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge - all of the chain. - -2012-09-25 Richard Guenther - - PR tree-optimization/53663 - * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional - native encode/interpret translation on VN_WALKREWRITE. - -2012-09-24 Dehao Chen - - * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary. - (move_block_to_fn): Reset the edge's goto block even - when the goto locus is unknown. - -2012-09-24 Lawrence Crowl - - * double-int.h (double_int::from_pair): New. - (double_int::wide_mul_with_sign): New. - (double_int::sub_with_overflow): New. - (double_int::neg_with_overflow): New. - (double_int::divmod_with_overflow): New. - (shwi_to_double_int): Remove. - (uhwi_to_double_int): Remove. - (double_int_to_shwi): Remove. - (double_int_to_uhwi): Remove. - (double_int_fits_in_uhwi_p): Remove. - (double_int_fits_in_shwi_p): Remove. - (double_int_fits_in_hwi_p): Remove. - (double_int_mul): Remove. - (double_int_mul_with_sign): Remove. - (double_int_add): Remove. - (double_int_sub): Remove. - (double_int_neg): Remove. - (double_int_div): Remove. - (double_int_sdiv): Remove. - (double_int_udiv): Remove. - (double_int_mod): Remove. - (double_int_smod): Remove. - (double_int_umod): Remove. - (double_int_divmod): Remove. - (double_int_sdivmod): Remove. - (double_int_udivmod): Remove. - (double_int_multiple_of): Remove. - (double_int_setbit): Remove. - (double_int_ctz): Remove. - (double_int_not): Remove. - (double_int_ior): Remove. - (double_int_and): Remove. - (double_int_and_not): Remove. - (double_int_xor): Remove. - (double_int_lshift): Remove. - (double_int_rshift): Remove. - (double_int_lrotate): Remove. - (double_int_rrotate): Remove. - (double_int_negative_p): Remove. - (double_int_cmp): Remove. - (double_int_scmp): Remove. - (double_int_ucmp): Remove. - (double_int_max): Remove. - (double_int_smax): Remove. - (double_int_umax): Remove. - (double_int_min): Remove. - (double_int_smin): Remove. - (double_int_umin): Remove. - (double_int_ext): Remove. - (double_int_sext): Remove. - (double_int_zext): Remove. - (double_int_mask): Remove. - (double_int_max_value): Remove. - (double_int_min_value): Remove. - (double_int_zero_p): Remove. - (double_int_one_p): Remove. - (double_int_minus_one_p): Remove. - (double_int_equal_p): Remove. - (double_int_popcount): Remove. - (extern add_double_with_sign): Remove. - (#define add_double): Remove. - (extern neg_double): Remove. - (extern mul_double_with_sign): Remove. - (extern mul_double_wide_with_sign): Remove. - (#define mul_double): Remove. - (extern lshift_double): Remove. - (extern div_and_round_double): Remove. - * double-int.c (add_double_with_sign): Make static. - (#defined add_double): Localized from header. - (neg_double): Make static. - (mul_double_with_sign): Make static. - (mul_double_wide_with_sign): Make static. - (#defined mul_double): Localized from header. - (lshift_double): Make static. - (div_and_round_double): Make static. - (double_int::wide_mul_with_sign): New. - (double_int::sub_with_overflow): New. - (double_int::neg_with_overflow): New. - (double_int::divmod_with_overflow): New. - * emit-rtl.c (init_emit_once): Change to new double_int API. - * explow.c (plus_constant): Likewise. - * expmed.c (choose_multiplier): Likewise. - * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove. - (int_const_binop_1): Change to new double_int API. - (fold_div_compare): Likewise. - (maybe_canonicalize_comparison): Likewise. - (pointer_may_wrap_p): Likewise. - (fold_negate_const): Likewise. - (fold_abs_const): Likewise. - * simplify-rtx.c (simplify_const_unary_operation): Likewise. - (simplify_const_binary_operation): Likewise. - * tree-chrec.c (tree_fold_binomial): Likewise. - * tree-vrp.c (extract_range_from_binary_expr_1): Likewise. - * config/sparc/sparc.c (sparc_fold_builtin): Likewise. - * config/avr/avr.c (avr_double_int_push_digit): Likewise. - (avr_map): Likewise. - (avr_map_decompose): Likewise. - (avr_out_insert_bits): Likewise. - -2012-09-24 Janis Johnson - - * doc/sourcebuild.texi (Selectors): Document the use of target - and xfail used together. - -2012-09-24 Richard Guenther - - PR middle-end/54632 - * tree-ssa-live.c (clear_unused_block_pointer_1): Do not - handle DECL_DEBUG_EXPR_IS_FROM here... - (clear_unused_block_pointer): ... but here when walking all - local decls. - -2012-09-24 Richard Guenther - - PR tree-optimization/54684 - * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts. - -2012-09-24 Marc Glisse - - * tree-ssa-forwprop.c: Include tree-ssa-propagate.h. - (simplify_bitfield_ref): Handle constructors. - * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h. - -2012-09-24 Richard Guenther - - * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces, - find_or_generate_expression): Remove dominating stmt argument. - (find_leader_in_sets, phi_translate_1, bitmap_find_leader, - create_component_ref_by_pieces_1, create_component_ref_by_pieces, - do_regular_insertion, do_partial_partial_insertion): Adjust. - (compute_avail): Do not set uids. - -2012-09-24 Eric Botcazou - - * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in - TYPE_NONALIASED_COMPONENT flag. - * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out - TYPE_NONALIASED_COMPONENT flag. - -2012-09-24 Jia Liu - - * doc/lto.texi: Separate sections. - * doc/plugins.texi: Likewise. - -2012-09-24 Richard Guenther - - PR middle-end/52173 - * gimple.c (gimple_copy): Properly mark the copy modified - if SSA operands are present. - -2012-09-23 Eric Botcazou - - PR tree-optimization/54669 - * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke - maybe_clean_or_replace_eh_stmt on the modified use statements. - -2012-09-23 Marc Glisse - - * expr.c (do_store_flag): Remove duplicated code. - -2012-09-22 Segher Boessenkool - - * config/rs6000/predicates.md (altivec_register_operand, - vsx_register_operand, vfloat_operand, vint_operand, - vlogical_operand, gpc_reg_operand, cc_reg_operand, - cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand): - If op is a SUBREG, consider its SUBREG_REG instead. - -2012-09-22 Uros Bizjak - - * optabs.c (prepare_cmp_insn): Expand comparison of the result - of memcmp through generic comparison expansion code. - -2012-09-21 Anthony Green - - * config/moxie/moxie.opt: Add -mno-crt0 option. - * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option. - * doc/invoke.texi (Option Summary): Document -mno-crt0 option. - -2012-09-21 Jack Howarth - - PR bootstrap/54642 - * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency. - -2012-09-21 Dehao Chen - - PR go/54649 - * tree-eh.c (lower_try_finally_dup_block): Set the correct block for - stmts in the duplicated EH block. - -2012-09-21 Richard Guenther - - PR tree-optimization/54647 - * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR - or VEC_COND_EXPR into EXP_GEN again. - -2012-09-21 Jakub Jelinek - - PR tree-optimization/54629 - * tree-loop-distribution.c (classify_partition): Free loop nest only - after freeing ddr. Free ddr and loop nest also if successful. - -2012-09-21 Matthias Klose - - * config/arm/arm.c (arm_mangle_type): Don't warn anymore that - 4.4 has changed the `va_list' mangling. - -2012-09-21 Eric Botcazou - - PR rtl-optimization/54290 - PR rtl-optimization/54644 - * reload1.c (choose_reload_regs): Fix thinko in previous change. - -2012-09-20 Segher Boessenkool - - * config/rs6000/rs6000.md (define_split for plus_eqsi): - Fix output pattern. - -2012-09-20 Eric Botcazou - - * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair. - -2012-09-20 Bernd Schmidt - - PR bootstrap/54643 - * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using - SCHED_PRESSURE_MODEL. - -2012-09-20 Joern Rennecke - - * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling. - -2012-09-20 Marek Polacek - - * tree-ssa-operands.c (get_expr_operands): Merge identical cases. - -2012-09-20 Marek Polacek - - * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's - result. - (create_edge_and_update_destination_phis): Likewise. - -2012-09-20 Martin Jambor - - * function.c (push_cfun): Check old current_function_decl matches - old cfun, set new current_function_decl to the decl of the new cfun. - (push_struct_function): Likewise. - (pop_cfun): Likewise. - (allocate_struct_function): Move call to - invoke_set_current_function_hook to the end of the function. - * cfgexpand.c (estimated_stack_frame_size): Do not set and restore - current_function_decl. - * cgraph.c (cgraph_release_function_body): Likewise. - * cgraphunit.c (cgraph_process_new_functions): Likewise. - (cgraph_add_new_function): Likewise. - (cgraph_analyze_function): Likewise. - (assemble_thunk): Set cfun to NULL at the end. - (expand_function): Move call to set_cfun downwards. - * gimple-low.c (record_vars_into): Only check current_function_decl - before possibly doing push_cfun. - * gimplify.c (gimplify_function_tree): Do not set and restore - current_function_decl. - * ipa-inline-analysis.c (compute_inline_parameters): Likewise. - (inline_analyze_function): Likewise. - * ipa-prop.c (ipa_analyze_node): Likewise. - * ipa-pure-const.c (analyze_function): Likewise. - * lto-streamer-in.c (lto_input_function_body): Do not set - current_function_decl. - * lto-streamer-out.c (output_function): Do not set and restore - current_function_decl. - * omp-low.c (finalize_task_copyfn): Likewise. - (expand_omp_taskreg): Likewise. - (create_task_copyfn): Likewise, move push_cfun up quite a bit. - * passes.c (dump_passes): Do not set and restore current_function_decl. - (do_per_function): Likewise. - (do_per_function_toporder): Likewise. - * trans-mem.c (ipa_tm_scan_irr_function): Likewise. - (ipa_tm_transform_transaction): Likewise. - (ipa_tm_transform_clone): Likewise. - (ipa_tm_execute): Likewise. - * tree-emutls.c (lower_emutls_function_body): Likewise. - * tree-inline.c (initialize_cfun): Do not call pop_cfun. - (tree_function_versioning): Do not call push_cfun, do not set and - restore current_function_decl. Remove assert checking consistency of - cfun and current_function_decl. - * tree-profile.c (tree_profiling): Do not set and restore - current_function_decl. - * tree-sra.c (convert_callers_for_node): Do not set - current_function_decl. - (convert_callers): Do not restore current_function_decl. - (modify_function): Do not set current_function_decl. - * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore - current_function_decl. - -2012-09-20 Diego Novillo - - PR target/54631 - * config/vxworks.c (vxworks_emutls_var_init): Update for new - VEC_quick_push interface. - -2012-09-20 Richard Guenther - - PR tree-optimization/54634 - * tree-data-ref.c (get_references_in_stmt): For now give - up for pure functions. - -2012-09-20 Chen Wei-Ren - - * doc/lto.texi: Correct typo. - -2012-09-19 Dehao Chen - - * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR. - * config/spu/spu.c (emit_nop_for_insn): Likewise. - (pad_bb): Likewise. - (spu_emit_branch_hint): Likewise. - (insert_hbrp_for_ilb_runout): Likewise. - * config/mep/mep.c (mep_make_bundle): Likewise. - (mep_bundle_insns): Likewise. - * config/sh/sh.c (gen_block_redirect): Likewise. - * config/c6x/c6x.c (gen_one_bundle): Likewise. - * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise. - * config/picochip/picochip.c (picochip_reorg): Likewise. - * config/arm/arm.c (require_pic_register): Likewise. - * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise. - * config/bfin/bfin.c (gen_one_bundle): Likewise. - -2012-09-19 Mark Kettenis - - * config.gcc (hppa*-*-openbsd*): New target. - * config/pa/pa-openbsd.h: New file. - * config/pa/pa32-openbsd.h: New file. - * config/host-openbsd.c: Update copyright year. - (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa. - -2012-09-19 Martin Jambor - - * ipa-prop.c (prune_expression_for_jf): New function. - (ipa_set_jf_constant): Use it. - (ipa_set_jf_arith_pass_through): Likewise. - (determine_known_aggregate_parts): Likewise. - -2012-09-19 Steve Ellcey - - * config.gcc (mips*-mti-elf*): New target. - * config/mips/mti-elf.h: New file. - * config/mips/t-mti-elf: New file. - -2012-09-19 Dehao Chen - - * toplev.c (general_init): Init block_locations. - * tree.c (tree_set_block): New. - (tree_block): Change to use LOCATION_BLOCK. - * tree.h (TREE_SET_BLOCK): New. - * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK. - (final_start_function): Likewise. - * input.c (expand_location_1): Likewise. - * input.h (LOCATION_LOCUS): New. - (LOCATION_BLOCK): New. - (IS_UNKNOWN_LOCATION): New. - * fold-const.c (expr_location_or): Change to use new location. - * reorg.c (emit_delay_sequence): Likewise. - (try_merge_delay_insns): Likewise. - * modulo-sched.c (dump_insn_location): Likewise. - * lto-streamer-out.c (lto_output_location_bitpack): Likewise. - * lto-cgraph.c (output_node_opt_summary): Likewise. - * jump.c (rtx_renumbered_equal_p): Likewise. - * ifcvt.c (noce_try_move): Likewise. - (noce_try_store_flag): Likewise. - (noce_try_store_flag_constants): Likewise. - (noce_try_addcc): Likewise. - (noce_try_store_flag_mask): Likewise. - (noce_try_cmove): Likewise. - (noce_try_cmove_arith): Likewise. - (noce_try_minmax): Likewise. - (noce_try_abs): Likewise. - (noce_try_sign_mask): Likewise. - (noce_try_bitop): Likewise. - (noce_process_if_block): Likewise. - (cond_move_process_if_block): Likewise. - (find_cond_trap): Likewise. - * ipa-prop.c (ipa_set_jf_constant): Likewise. - (ipa_write_jump_function): Likewise. - * dwarf2out.c (add_src_coords_attributes): Likewise. - * expr.c (expand_expr_real): Likewise. - * tree-parloops.c (create_loop_fn): Likewise. - * recog.c (peep2_attempt): Likewise. - * function.c (free_after_compilation): Likewise. - (expand_function_end): Likewise. - (set_insn_locations): Likewise. - (thread_prologue_and_epilogue_insns): Likewise. - * print-rtl.c (print_rtx): Likewise. - * profile.c (branch_prob): Likewise. - * trans-mem.c (ipa_tm_scan_irr_block): Likewise. - * gimplify.c (gimplify_call_expr): Likewise. - * except.c (duplicate_eh_regions_1): Likewise. - * emit-rtl.c (try_split): Likewise. - (make_insn_raw): Likewise. - (make_debug_insn_raw): Likewise. - (make_jump_insn_raw): Likewise. - (make_call_insn_raw): Likewise. - (emit_pattern_after_setloc): Likewise. - (emit_pattern_after): Likewise. - (emit_debug_insn_after): Likewise. - (emit_pattern_before): Likewise. - (emit_insn_before_setloc): Likewise. - (emit_jump_insn_before): Likewise. - (emit_call_insn_before_setloc): Likewise. - (emit_call_insn_before): Likeise. - (emit_debug_insn_before_setloc): Likewise. - (emit_copy_of_insn_after): Likewise. - (insn_locators_alloc): Remove. - (insn_locators_finalize): Remove. - (insn_locators_free): Remove. - (set_curr_insn_source_location): Remove. - (get_curr_insn_source_location): Remove. - (set_curr_insn_block): Remove. - (get_curr_insn_block): Remove. - (locator_scope): Remove. - (insn_scope): Change to use new location. - (locator_location): Remove. - (insn_line): Change to use new location. - (locator_file): Remove. - (insn_file): Change to use new location. - (locator_eq): Remove. - (insn_locations_init): New. - (insn_locations_finalize): New. - (set_curr_insn_location): New. - (curr_insn_location): New. - * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location. - (expand_gimple_cond): Likewise. - (expand_call_stmt): Likewise. - (expand_gimple_stmt_1): Likewise. - (expand_gimple_basic_block): Likewise. - (construct_exit_block): Likewise. - (gimple_expand_cfg): Likewise. - * cfgcleanup.c (try_forward_edges): Likewise. - * tree-ssa-live.c (remove_unused_scope_block_p): Likewise. - (dump_scope_block): Likewise. - (remove_unused_locals): Likewise. - * rtl.c (rtx_equal_p_cb): Likewise. - (rtx_equal_p): Likewise. - * rtl.h (XUINT): New. - (INSN_LOCATOR): Remove. - (CURR_INSN_LOCATION): Remove. - (INSN_LOCATION): New. - (INSN_HAS_LOCATION): New. - * tree-inline.c (remap_gimple_op_r): Change to use new location. - (copy_tree_body_r): Likewise. - (copy_phis_for_bb): Likewise. - (expand_call_inline): Likewise. - * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise. - * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise. - * gimple-streamer-out.c (output_gimple_stmt): Likewise. - * combine.c (try_combine): Likewise. - * tree-outof-ssa.c (set_location_for_edge): Likewise. - (insert_partition_copy_on_edge): Likewise. - (insert_value_copy_on_edge): Likewise. - (insert_rtx_to_part_on_edge): Likewise. - (insert_part_to_rtx_on_edge): Likewise. - * basic-block.h (edge_def): Remove field. - * gimple.h (gimple_statement_base): Remove field. - (gimple_bb): Change to use new location. - (gimple_set_block): Likewise. - (gimple_has_location): Likewise. - * tree-cfg.c (make_cond_expr_edges): Likewise. - (make_goto_expr_edges): Likewise. - (gimple_can_merge_blocks_p): Likewise. - (move_stmt_op): Likewise. - (move_block_to_fn): Likewise. - * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise. - * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. - * config/i386/i386.c (x86_output_mi_thunk): Likewise. - * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise. - * config/sh/sh.c (sh_output_mi_thunk): Likewise. - * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. - * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise. - * config/score/score.c (score_output_mi_thunk): Likewise. - * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise. - * config/mips/mips.c (mips_output_mi_thunk): Likewise. - * cfgrtl.c (unique_locus_on_edge_between_p): Likewise. - (unique_locus_on_edge_between_p): Likewise. - (emit_nop_for_unique_locus_between): Likewise. - (force_nonfallthru_and_redirect): Likewise. - (fixup_reorder_chain): Likewise. - (cfg_layout_merge_blocks): Likewise. - * stmt.c (emit_case_nodes): Likewise. - -2012-09-19 Bernd Schmidt - - * dbgcnt.def (sched_breakdep): New counter. - * haifa-sched.c (update_insn_after_change): New static function, - broken out of haifa_change_pattern. - (haifa_change_pattern): Call it. - (dep_t heap vecs): Declare. - (INSN_COST): Define earlier. - (next_cycle_replace_deps, next_cycle_apply): New static variables. - (apply_replacement): New static function. - (recompute_todo_spec): New argument FOR_BACKTRACK. All callers - changed. Handle DEP_REPLACE deps. - (contributes_to_priority_p): False for replaceable deps. - (must_restore_pattern_p, restore_pattern): New static functions. - (schedule_insn): Use them. Apply replacements for broken deps. - (struct haifa_saved_data): Add new fields to keep track of - replacements. - (save_backtrack_point): Initialize them. - (undo_replacements_for_backtrack): New static function. - (restore_last_backtrack_point, free_topmost_backtrack_point): - Use it and keep track of replacements. - (perform_replacements_new_cycle, undo_all_replacements): New static - functions. - (schedule_block): Call these two as necessary. Call - find_modifiable_mems. - (try_ready): Tweak the assert. Check for DEP_POSTPONED. - * sched-deps.c: Include "emit-rtl.h". - (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE. - (dep_spec_p): True for DEP_REPLACE deps. - (mark_as_hard): New static variable. - (update_dep): Update DEP_NONREG and DEP_MULTIPLE. - (add_dependence_list): New argument hard. All callers changed. Set - and clear mark_as_hard around function body. - (add_dependence_list_and_free): Likewise. - (haifa_note_mem_dep): Set DEP_NONREG. - (haifa_note_dep): Likewise if mark_as_hard is true. - (sched_analyze_insn): Switch loop with if statement testing for - sel_sched_p. - (struct mem_inc_info): New. - (attempt_change, parse_add_or_inc, find_inc, find_mem): New static - functions. - (find_modifiable_mems): New function. - * sched-int.h (struct dep_replacement): New. - (struct _dep): Add replace, nonreg and multiple fields. Make type and - cost bitfields. - (UNKNOWN_DEP_COST): Change to match the bitfield. - (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros. - (DEP_POSTPONED): New macro. - (DEP_CANCELLED): Renumber. - (find_modifiable_mems): Declare. - (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES. - * sched-rgn.c (init_ready_list): Set TODO_SPEC here. - (new_ready): Don't set HARD_DEP, use DEP_POSTPONED. - (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE. - * Makefile.in (sched-deps.o): Update dependencies. - * config/c6x/c6x.c (in_hwloop): New static variable. - (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES. - (hwloop_optimize): Set and clear it around preliminary scheduling pass. - -2012-09-19 Tulio Magno Quites Machado Filho - - * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase - and __builtin_ppc_mftb. - * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function - to expand an expression that calls a built-in without arguments. - (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and - __builtin_ppc_mftb. - (rs6000_init_builtins): Likewise. - * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern. - (rs6000_get_timebase_ppc32): New pattern. - (rs6000_mftb_): New pattern. - - * doc/extend.texi (PowerPC Built-in Functions): New section. - (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins - unrelated to Altivec/VSX to the new section. - -2012-09-19 David Edelsohn - - * rs6000.md (mac*): Remove extra spaces. - (mulhw*): Same. - -2012-09-19 Oleg Endo - - PR target/54089 - * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate. - * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate. - Handle the case where one of the operands is T_REG. - Add new pattern to handle MSB extraction. - -2012-09-19 Oleg Endo - - PR target/54236 - * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts. - -2012-09-19 Oleg Endo - - * config/sh/sh.md (prologue, epilogue): Use braced strings. - -2012-09-19 Eric Botcazou - - PR rtl-optimization/54290 - * reload1.c (choose_reload_regs): Also take into account secondary MEMs - to remove address replacements for inherited reloads. - (replaced_subreg): Move around. - -2012-09-19 David Edelsohn - - * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT, - MASK_PPC_GFXOPT, and MASK_MFCRF. - -2012-09-19 Richard Guenther - - * passes.c (init_optimization_passes): For -Og move - pass_object_sizes inbetween CCP and copyprop. - -2012-09-19 Richard Guenther - - * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify. - -2012-09-19 Jan Hubicka - - * symtab.c (insert_to_assembler_name_hash): Do not insert - register vars. - (unlink_from_assembler_name_hash): NULL out pointers of unlinked var. - (symtab_prevail_in_asm_name_hash): New. - (symtab_initialize_asm_name_hash): Break out from ... - (symtab_node_for_asm): ... here. - (dump_symtab_base): Dump LTO file data. - (verify_symtab_base): Register vars are not in symtab. - * cgraph.h (symtab_initialize_asm_name_hash, - symtab_prevail_in_asm_name_hash): New functions. - (symtab_real_symbol_p): New inline. - * lto-symtab.c: Do not include gt-lto-symtab.h. - (lto_symtab_entry_def): Remove. - (lto_symtab_entry_t): Remove. - (lto_symtab_identifiers): Remove. - (lto_symtab_free): Remove. - (lto_symtab_entry_hash): Remove. - (lto_symtab_entry_eq): Remove. - (lto_symtab_entry_marked_p): Remove. - (lto_symtab_maybe_init_hash_table): Remove. - (resolution_guessed_p, set_resolution_guessed): New functions. - (lto_symtab_register_decl): Only set resolution info. - (lto_symtab_get, lto_symtab_get_resolution): Remove. - (lto_symtab_merge): Reorg to work across symtab; do nothing if decls - are same. - (lto_symtab_resolve_replaceable_p): Reorg to work on symtab. - (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can - prevail. - (lto_symtab_resolve_symbols): Reorg to work on symtab. - (lto_symtab_merge_decls_2): Likewise. - (lto_symtab_merge_decls_1): Likewise; add debug dumps. - (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage. - (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab. - (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans - stage. - (lto_symtab_prevailing_decl): Rewrite to lookup into symtab. - * lto-streaer.h (lto_symtab_free): Remove. - * lto-cgraph.c (add_references): Cleanup. - * varpool.c (varpool_assemble_decl): Skip hard regs. - -2012-09-19 Richard Guenther - - PR other/53316 - * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add. - -2012-09-19 Richard Guenther - - PR other/53316 - * common.opt (optimize_debug): New variable. - (Og): New optimization level. - * doc/invoke.texi (Og): Document. - * opts.c (maybe_default_option): Add debug parameter. - (maybe_default_options): Likewise. - (default_options_optimization): Handle -Og. - (common_handle_option): Likewise. - * passes.c (gate_all_optimizations): Do not run with -Og. - (gate_all_optimizations_g): New gate, run with -Og. - (pass_all_optimizations_g): New container pass, run with -Og. - (init_optimization_passes): Schedule pass_all_optimizations_g - alongside pass_all_optimizations. - -2012-09-19 Richard Guenther - - PR tree-optimization/54132 - * tree-loop-distribution.c (classify_partition): Properly - check dependences for memmove. - * tree-data-ref.h (compute_affine_dependence): Declare. - * tree-data-ref.c (compute_affine_dependence): Export. - -2012-09-19 Zhenqiang Chen - - PR middle-end/54364 - * bb-reorder.c (connect_better_edge_p): New added. - (find_traces_1_round): When optimizing for size, ignore edge frequency - and probability, and handle all in one round. - (bb_to_key): Use bb->index as key when optimizing for size. - (better_edge_p): The bb with smaller index is better when optimizing - for size. - (connect_traces): When optimizing for size, connect block n with - block n + 1; connect trace m with trace m + 1 if falling through. - (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os. - -2012-09-19 Bin Cheng - - * fold-const.c (fold_truth_andor): Remove duplicated check on - BRANCH_COST. - -2012-09-18 Eric Botcazou - - PR middle-end/54617 - * expr.c (store_field): Handle a PARALLEL in more cases. - -2012-09-18 Segher Boessenkool - - * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete. - (abssi2, abs2_isel, nabs2_isel, abssi2_nopower, - nabs_nopower): Delete. - (absdi2, absdi2_internal, nabsdi2): Delete. - (smindi3, smaxdi3, umindi3, umaxdi3): Delete. - -2012-09-18 Georg-Johann Lay - - * config/avr/avr.md: Tidy up empty "". Fix C code indentation. - * config/avr/avr-fixed.md: Ditto. - -2012-09-18 Maciej W. Rozycki - - * config/rs6000/rs6000.c (print_operand) <'c'>: Remove. - * config/rs6000/spe.md: Remove a leftover comment. - -2012-09-18 Jakub Jelinek - - PR target/54592 - * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD - AND/IOR/XOR cost calculation to MODE_INT class modes. - -2012-09-18 Thomas Quinot - - * doc/invoke.texi: Document -fada-spec-parent. - -2012-09-18 Jakub Jelinek - - PR tree-optimization/54610 - * tree-ssa-forwprop.c: Include optabs.h. Don't include - tree-vectorizer.h. - (simplify_vector_constructor): Don't use vect_gen_perm_mask, - instead create the mask constant here. - * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H). - Don't depend on $(TREE_VECTORIZER_H). - -2012-09-18 Florian Weimer - - * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def. - -2012-09-18 Richard Guenther - - * statistics.h (CXX_MEM_STAT_INFO): New define. - * gimple.h (gimple_build_assign_with_ops_stat, - gimple_build_assign_with_ops, gimple_build_assign_with_ops3): - Turn into an overload of the function gimple_build_assign_with_ops. - * gimple.c (gimple_build_assign_with_ops_stat): Rename to ... - (gimple_build_assign_with_ops): ... this. - * tree-ssa-loop-im.c (move_computations_stmt): Adjust. - * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise. - * tree-vect-data-refs.c (vect_permute_store_chain): Likewise. - (vect_permute_load_chain): Likewise. - * tree-vect-generic.c (expand_vector_divmod): Likewise. - * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise. - (vect_recog_divmod_pattern): Likewise. - (vect_recog_mixed_size_cond_pattern): Likewise. - (adjust_bool_pattern): Likewise. - * tree-vect-slp.c (vect_create_mask_and_perm): Likewise. - * tree-vect-stmts.c (vectorizable_operation): Likewise. - (permute_vec_elements): Likewise. - (vectorizable_load): Likewise. - -2012-09-17 Paul Koning - - * doc/invoke.text (-feliminate-unused-debug-types): Update to - reflect that this is enabled by default. - -2012-09-17 Ben Cheng - - * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set - patterns. - * config/arm/arm.md ("vec_set_internal"): Support memory source - operands, implemented via vld1 instruction. - ("vec_extract"): Support memory destination operands, implemented - via vst1 instruction. - ("neon_vst1_lane"): Use UNSPEC_VST1_LANE instead of vec_select. - * config/arm/predicates.md ("neon_lane_number"): Remove. - -2012-09-17 Ramana Radhakrishnan - Ulrich Weigand - - * config/arm/arm.c (output_move_neon): Update comment. - Use vld1.64/vst1.64 instead of vldm/vstm where possible. - (neon_vector_mem_operand): Support double-word modes. - * config/arm/neon.md (*neon_mov VD): Call output_move_neon - instead of output_move_vfp. Change constraint from Uv to Un. - -2012-09-17 Richard Guenther - - PR lto/54598 - * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed - FIXED_VALUE_TYPE instead of struct fixed_value. - -2012-09-17 Georg-Johann Lay - - * config/avr/avr.c (CONST_FIXED_P): Remove define. - * config/avr/avr.md (add3): Use CONST_FIXED_P. - -2012-09-17 Georg-Johann Lay - - PR target/54607 - * config.gcc (tm_file,avr): Add avr/avr-arch.h. - * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to - compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD. - * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out - to... - * config/avr/avr-arch.h: ...this new file. - * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h, - stdlib.h. - * comparator: Make letters smaller than digits. - * config/avr/avr-devices.c: Don't include headers if used in - gen-avr-mmcu-texi.c. - * doc/avr-mmcu.texi: Regenerate. - -2012-09-17 Georg-Johann Lay - - * rtl.h (CONST_FIXED_P): New predicate macro. - -2012-09-17 Eric Botcazou - - * tree-cfgcleanup. (cleanup_control_expr_graph) : Remove - code doing propagation from degenerate PHI nodes. - * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function. - (propagate_constants_for_unrolling): Likewise. - (tree_unroll_loops_completely): If the current loop has been unrolled - and its father isn't the entire function, propagate constants within - the new basic blocks by means of propagate_constants_for_unrolling. - -2012-09-17 Jakub Jelinek - - PR tree-optimization/54563 - * tree-ssa-math-opts.c (execute_cse_sincos): Call - gimple_purge_dead_eh_edges if last call has been changed. - -2012-09-17 Georg-Johann Lay - - PR target/54222 - * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode. - (avr_out_plus_1): Remove log comments from assembler output. - -2012-09-17 Ruben Buchatskiy - - * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands - to be a register. - -2012-09-16 Richard Sandiford - - * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL - moves. - -2012-09-15 Tom de Vries - - * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of - LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift - range. - -2012-09-15 Georg-Johann Lay - - PR target/54222 - * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S, - ALL124U): New mode iterators. - (3): New insns for SS_PLUS, SS_MINUS. - (3): New insns for US_PLUS, US_MINUS. - (usneg2): New insns. - (2): New expanders for SS_NEG, SS_ABS. - (*2): New insns for SS_NEG, SS_ABS. - * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators. - (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead. - (3): New expanders for SS_PLUS, SS_MINUS. - (3): New expanders for US_PLUS, US_MINUS. - (3_insn): New insns. - (3_const_insn): New insns. - * config/avr/avr.md (cc): Add: plus. Remove: out_plus, - out_plus_noclobber, minus. - (length): Add: plus. Remove: out_plus, out_plus_noclobber, - plus64, minus, minus64. - (abelian): New code_attr. - (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs, - us_plus, us_minus, us_neg. - (*add3, add3_clobber, add3, addpsi3, sub3): - Use avr_out_plus to output. - * config/avr/avr-protos.h (avr_out_plus): Change prototype. - (avr_out_plus_noclobber, avr_out_minus): Remove. - (avr_out_plus64, avr_out_minus64): Remove. - * config/avr/avr.c (avr_out_plus_1): Add new default arguments - code_sat, sign. Saturate after operation if code_sat != UNKNOWN. - (avr_out_plus_symbol): New static function. - (avr_out_plus): Rewrite. - (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling - of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS, - ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER. - (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS, - CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER - (avr_out_plus_noclobber, avr_out_minus): Remove. - (avr_out_plus64, avr_out_minus64): Remove. - (avr_print_operand): Print raw REGNO if 'r' is used with REG. - -2012-09-15 Oleg Endo - - * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND, - ZERO_EXTEND and PARALLEL cases. - (sh_address_cost): Correct rtx parsing and tweak cost estimations. - -2012-09-14 Sandra Loosemore - - * doc/tm.texi.in (Stack Arguments): Update obsolete references - to current_function_outgoing_args_size. - (Function Entry): Likewise for current_function_pops_args, - current_function_pretend_args_size, - current_function_outgoing_args_size, and - current_function_epilogue_delay_list. - (Misc): Fix garbled sentence referencing nonexistent - current_function_leaf_function. - * doc/tm.texi: Regenerated. - -2012-09-14 Dehao Chen - - * tree-eh.c (goto_queue_node): New field. - (record_in_goto_queue): New parameter. - (record_in_goto_queue_label): New parameter. - (lower_try_finally_dup_block): New parameter. - (maybe_record_in_goto_queue): Update source location. - (lower_try_finally_copy): Likewise. - (honor_protect_cleanup_actions): Likewise. - * gimplify.c (gimplify_expr): Reset the location to unknown. - -2012-09-14 David Edelsohn - - * configure: Regenerated. - -2012-09-14 Walter Lee - - * doc/invoke.texi (Option Summary): fix typesetting for -mcpu - option for TILEPro and TILE-Gx. - (TILE-Gx Options): Fix grammar and spellings in documentation for - -mcmodel. - -2012-09-14 Marc Glisse - - PR c++/54427 - * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE. - (fold_binary_loc): Likewise. - * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE. - (or_comparisons_1): Likewise. - -2012-09-14 Richard Earnshaw - - PR target/54516 - PR rtl-optimization/54540 - * reload.c (find_dummy_reload): Don't use OUT as a reload reg - for IN if it overlaps a fixed register. - -2012-09-14 Eric Botcazou - - PR rtl-optimization/44194 - * calls.c (expand_call): In the PARALLEL case, copy the return value - into pseudos instead of spilling it onto the stack. - * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and - add new ADJUST_OBJECT parameter. - If ADJUST_OBJECT is set, drop the underlying object if it cannot be - proved that the adjusted memory access is still within its bounds. - (adjust_automodify_address_1): Adjust call to adjust_address_1. - (widen_memory_access): Likewise. - * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead - of adjust_address. Do not drop the underlying object of a MEM. - (store_fixed_bit_field): Likewise. - (extract_bit_field_1): Likewise. Fix oversight in recursion. - (extract_fixed_bit_field): Likewise. - * expr.h (adjust_address_1): Adjust prototype. - (adjust_address): Adjust call to adjust_address_1. - (adjust_address_nv): Likewise. - (adjust_bitfield_address): New macro. - (adjust_bitfield_address_nv): Likewise. - * expr.c (expand_assignment): Handle a PARALLEL in more cases. - (store_expr): Likewise. - (store_field): Likewise. - - * dse.c: Fix typos in the head comment. - -2012-09-14 Christian Bruel - - PR target/54546 - * config/sh/sh-protos.h (sh_need_epilogue): Delete. - (sh_can_use_simple_return_p): Declare. - * config/sh/sh.c (sh_can_use_simple_return_p): Define. - (sh_need_epilogue, sh_need_epilogue_known): Delete. - (sh_output_function_epilogue): Remove sh_need_epilogue_known. - * config/sh/sh.md (simple_return, return): Define. - (epilogue): Use inline return rtl. - (sh_expand_epilogue): Cleanup parameters boolean type. - * config/sh/iterators.md (any_return): New iterator. - -2012-09-14 Christian Bruel - - * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG. - * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE. - -2012-09-14 Jakub Jelinek - - PR target/54564 - * config/i386/sse.md (fmai_vmfmadd_): Use (match_dup 1) - instead of (match_dup 0) as second argument to vec_merge. - (*fmai_fmadd_, *fmai_fmsub_): Likewise. - Remove third alternative. - (*fmai_fnmadd_, *fmai_fnmsub_): Likewise. Negate - operand 2 instead of operand 1, but put it as first argument of fma. - * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss, - _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead - of the first. - -2012-09-14 Richard Guenther - - PR tree-optimization/54565 - * passes.c (init_optimization_passes): Adjust comments. - (execute_function_todo): Do not execute execute_update_addresses_taken - before processing TODO_rebuild_alias. - * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken. - -2012-09-14 Richard Guenther - - * tree-vrp.c (register_new_assert_for): Simplify for backward walk. - (find_assert_locations_1): Walk the basic-block backwards, properly - add/prune from live. Use live for asserts derived from stmts. - -2012-09-14 Marc Glisse - - * tree-ssa-forwprop.c (simplify_bitfield_ref): Call - get_prop_source_stmt. - (simplify_permutation): Likewise. - (simplify_vector_constructor): Likewise. - -2012-09-14 Richard Guenther - - * builtin-types.def (BT_FN_CONST_STRING): Add. - * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION, - BUILT_IN_LINE): New builtins. - * gimplify.c (gimplify_call_expr): Expand them. - * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION, - __builtin_FILE): Document. - -2012-09-13 Anthony Green - - * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support. - (MULTILIB_DEFAULTS): Define. - (ASM_SPEC): Define. - (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support. - (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and - __MOXIE_BIG_ENDIAN__. - * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define. - * config/moxie/moxie.opt: New file. - * doc/invoke.texi (Moxie Options): Add section documenting -mel - and -meb. - -2012-09-13 Paolo Carlini - Manuel López-Ibáñez - - PR c++/53210 - * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++. - -2012-09-13 Eric Botcazou - - * config/sparc/predicates.md (input_operand): Do not consider TImode - constants as 1-instruction integer constants. - Use register_or_zero_operand instead of register_operand and tidy up. - * config/sparc/sparc.md (movti): New expander. - (movti_insn_sp64): New instruction. - (movti_insn_sp64_hq): Likewise. - (TImode splitters): New splitters. - * config/sparc/sparc.c (sparc_expand_move) : New case. - (sparc_legitimate_address_p): Return 0 for REG+REG in TImode. - - * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete. - (arith_4096_operand): Likewise. - (zero_operand): Likewise. - (fp_zero_operand): Likewise. - (reg_or_0_operand): Likewise. - -2012-09-13 Jakub Jelinek - - * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping. - * configure: Regenerated. - -2012-08-13 Uros Bizjak - - * config/i386/i386.md (prefetch): Do not assert mode of operand 0. - (*prefetch_sse_): Do not set mode of address_operand predicate. - Rename to ... - (*prefetch_sse): ... this. - (*prefetch_3dnow_): Do not set mode of address_operand predicate. - Rename to ... - (*prefetch_3dnow): ... this. - -2012-09-13 Steven Bosscher - - * ipa-pure-const.c (state_from_flags, local_pure_const): Use - current_function_name instead of lang_hooks.decl_printable_name. - - * function.h (fndecl_name): New prototype. - * function.c (fndecl_name): New function. - * vecir.h (cgraph_node_p): New standard IR VEC type. - * trans-mem.c (cgraph_node_p): No need anymore to define it here. - * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype. - * ipa-utils.c (ipa_get_nodes_in_cycle): New function. - * ipa-reference.c: Don't include langhooks.h, and certainly not twice. - Fix many formatting issues (long lines, short lines, spacing, etc.). - (get_static_name): Use fndecl_name. - (dump_static_vars_set_to_file): New function split out from propagate. - (union_static_var_sets): New function, union two sets and collapse - to all_module_statics as quickly as possible. - (intersect_static_var_sets): New function, similar to above. - (copy_static_var_set): Renamed from copy_global_bitmap and rewritten - to allocate a copy on the same bitmap_obstack as the source set. - (propagate_bits): Simplify, and clarify by using union_static_var_sets. - (generate_summary): Remove bm_temp. Print UID of promotable globals. - (read_write_all_from_decl): Use pass-by-reference, bless C++. - (get_read_write_all_from_node): New function, split out from propagate. - (propagate): Simplify and clarify with helper functions. Use - ipa_get_nodes_in_cycle to walk all nodes in a reduced node. - (ipa_reference_read_optimization_summary): Use fndecl_name instead of - lang_hooks.decl_printable_name. - - * rtl.h (print_rtl_single_with_indent): New prototype. - * print-rtl.c (print_rtl_single_with_indent): New function. - * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks. - * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement. - * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump): - Implement RTL specific hooks. - (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks. - * tree-cfg.c (gimple_empty_block_p, - gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks. - (gimple_cfg_hooks): Register the new hooks. - * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook. - -2012-09-13 Richard Guenther - - * tree-ssa-sccvn.h (enum vn_kind): New. - (vn_get_stmt_kind): Likewise. - * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust - ADDR_EXPR handling. - (visit_use): Use it. - * tree-ssa-pre.c (compute_avail): Likewise, simplify further. - -2012-09-13 Venkataramanan Kumar - - * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW - for targets bdver1, bdver2, btver1 and btver2. - -2012-09-13 Christophe Lyon - Richard Earnshaw - - * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm - variants for rev instruction.. - (thumb1_rev): Delete pattern. - (arm_revsh): New pattern to support builtin_bswap16. - (arm_rev16, bswaphi2): Likewise. - -2012-09-12 Teresa Johnson - - PR gcov-profile/54487 - * configure.ac (HOST_HAS_F_SETLKW): Set based on compile - test using F_SETLKW with fcntl. - * configure, config.in: Regenerate. - -2012-09-12 Jan Hubicka - - PR fortran/48636 - * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride. - (set_hint_predicate): New function. - (reset_inline_summary): Reset loop stride. - (remap_predicate_after_duplication): New function. - (remap_hint_predicate_after_duplication): New function. - (inline_node_duplication_hook): Update. - (dump_inline_summary): Dump stride summaries. - (estimate_function_body_sizes): Compute strides. - (remap_hint_predicate): New function. - (inline_merge_summary): Use it. - (inline_read_section): Read stride. - (inline_write_summary): Write stride. - * ipa-inline.c (want_inline_small_function_p): Handle strides. - (edge_badness): Likewise. - * ipa-inline.h (inline_hints_vals): Add stride hint. - (inline_summary): Update stride. - -2012-09-12 Uros Bizjak - - * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char. - * config/i386/i386.h (x86_prefetch_sse): Ditto. - -2012-09-12 H.J. Lu - - PR target/54445 - * config/i386/predicates.md (x86_64_immediate_operand): Allow - negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF. - -2012-09-12 Jan Hubicka - - * common.opt (flto-partition): Add "max". - * invoke.texi (flto-partition): Document "max" - -2012-09-12 Ganesh Gopalasubramanian - - * config/i386/i386.md : Comments on fma4 instruction selection - reflect requirement on register pressure based cost model. - - * config/i386/driver-i386.c (host_detect_local_cpu): fma4 - flag is set-reset as informed by the cpuid flag. - - * config/i386/i386.c (processor_alias_table): fma4 - flag is enabled for bdver2. - -2012-09-12 Richard Guenther - - PR tree-optimization/54489 - * tree-ssa-pre.c: Include domwalk.h. - (in_fre): Remove. - (sccvn_valnum_from_value_id): New function. - (debug_bitmap_sets_for): Simplify. - (get_representative_for): Properly initialize the SCCVN valnum. - (create_expression_by_pieces): Likewise. - (insert_into_preds_of_block): Likewise. - (can_PRE_operation): Remove. - (make_values_for_phi): Simplify. - (compute_avail): Likewise. - (do_SCCVN_insertion): Remove. - (eliminate_avail, eliminate_push_avail, eliminate_insert): - New functions. - (eliminate): Split and perform a domwalk. - (eliminate_bb): Former eliminate part that is now dom-enter. - (eliminate_leave_block): New function. - (fini_eliminate): Likewise. - (init_pre): Simplify. - (fini_pre): Likewise. - (execute_pre): Fold into do_pre and do_fre. - (do_pre): Consume execute_pre. - (do_fre): Likewise. - * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency. - -2012-09-12 Diego Novillo - - * vec.h: Remove compatibility notes for previous distinction - between vectors of objects and vectors of pointers. - -2012-09-12 Christian Bruel - - * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define. - -2012-09-12 Rainer Orth - - * rtl.h (FFS, FLOAT, ABS, PC): Don't undef. - * system.h (FFS, FLOAT, ABS, PC): Undef. - -2012-09-12 Richard Guenther - - PR middle-end/54553 - * common.opt (finline): Mark with Optimization. - -2012-09-12 Jakub Jelinek - - * config.gcc: Obsolete picochip-*. - -2012-09-12 Nathan Froyd - Hans-Peter Nilsson - - * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete. - (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete. - (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete. - * config/mmix/mmix-protos.h (mmix_intval): Declare. - (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete. - (mmix_const_double_ok_for_letter_p): Delete. - * config/mmix/constraints.md: New file. - * config/mmix/mmix.md: Include it. - (iordi3): Fix typo; use "I" instead of undefined "H" constraint. - ("*call_real"): Update comment about not using the "p" constraint. - * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use - satisfies_constraint_I. - (mmix_address_operand): New predicate. - (mmix_symbolic_or_address_operand): Use it instead of address_operand. - * config/mmix/mmix.c: #include tm-constrs.h. - (mmix_intval): Delete declaration. Make non-static. - (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete. - (mmix_const_double_ok_for_letter_p): Delete. - (mmix_legitimate_address_p): Use satisfies_constraint_I. - (mmix_print_operand_address): Likewise. - (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint - when matching "L" constraint. - -2012-09-11 Steven Bosscher - - * tree.h (expand_case): Move prototype ... - * expr.h (expand_case): ...here. - (expand_sjlj_dispatch_table): New prototype. - * stmt.c: Include pointer-set.h instead of bitmap.h. - (expand_case): Use a pointer set instead of a bitmap for - already-seen labels. Fold label values here. - (add_case_node): Don't fold label values here. - (expand_sjlj_dispatch_table): New function. - * except.c (sjlj_emit_dispatch_table): Use it. - -2012-09-11 Marc Glisse - - * tree-ssa-forwprop.c (simplify_vector_constructor): New function. - (ssa_forward_propagate_and_combine): Call it. - -2012-09-11 Diego Novillo - - * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes. - -2012-09-11 Dominique Dhumieres - - * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes. - (darwin_asm_dwarf_section): Likewise. - -2012-09-11 Martin Jambor - - * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun. - (premark_used_types): New parameter fun, use it instead of cfun. - (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun, - also pass it to premark_used_types. - -2012-09-11 Ramana Radhakrishnan - - * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line. - -2012-09-11 Tobias Burnus - - * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor. - -2012-09-11 Ramana Radhakrishnan - Matthew Gretton-Dann - - * config/arm/neon.md (fma4): New pattern. - (*fmsub4): Likewise. - * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it. - -2012-09-11 Aldy Hernandez - - PR middle-end/54149 - * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set - flag for writes. - -2012-09-11 Bill Schmidt - - PR tree-optimization/55492 - * doc/invoke.texi (max-slsr-cand-scan): New description. - * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit - the time spent searching for a basis. - * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param. - -2012-09-11 Richard Guenther - - * gimple.h (gimple_register_type): Remove. - (print_gimple_types_stats): Adjust prototype. - * lto-streamer.h (print_lto_report): Likewise. - * lto-streamer.c (print_lto_report): Adjust. - * gimple.c (gimple_types, type_hash_cache, enum gtc_mode, - struct type_pair_d, lookup_type_pair, struct sccs, - next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s, - gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p, - gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p, - visit, iterative_hash_name, struct type_hash_pair, - type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash, - gimple_type_eq, gimple_register_type_1, gimple_register_type): - Move to lto/lto.c. - (print_gimple_types_stats): Adjust. - (free_gimple_type_tables): Likewise. - -2012-09-11 Richard Guenther - - * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes. - (scopdet_basic_block_info): Likewise. - (build_scops_1): Likewise. - (limit_scops): Likewise. - -2012-09-11 Richard Guenther - - PR middle-end/54515 - * gimple.c (get_base_address): Do not return NULL_TREE apart - from for WITH_SIZE_EXPR. - * gimple-fold.c (canonicalize_constructor_val): Do not call - get_base_address when not necessary. - -2012-09-10 Andrew Pinski - - PR tree-opt/54362 - * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also. - -2012-09-10 Maxim Kuvyrkov - - * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support - starting scheduling from a pre-existing state. - -2012-09-10 Diego Novillo - - * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'. - Update all users. - (vec_t::safe_push): Likewise. - (vec_t::quick_insert): Likewise. - (vec_t::lower_bound): Likewise. - (vec_t::safe_insert): Likewise. - (vec_t::replace): Change second argument to 'T &'. - -2012-09-10 Maciej W. Rozycki - - * config/rs6000/rs6000.md: Move a splitter next to its insn. - -2012-09-10 Oleg Endo - - PR target/54089 - * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if - dynamic shifts are available. - (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment. - * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments. - * config/sh/predicates.md (shift_count_operand): Allow - arith_reg_operand even if TARGET_DYNSHIFT is false. - * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns - if needed. - (ashlsi3_d_call, lshrsi3_d_call): New insns. - -2012-09-10 Richard Sandiford - - * ira.c (setup_pressure_classes): Handle synonymous classes. - -2012-09-10 Marc Glisse - - * tree-ssa-forwprop.c (simplify_bitfield_ref): New function. - (ssa_forward_propagate_and_combine): Call it. - -2012-09-10 Steve Ellcey - - * config.gcc: Add mips*-mti-linux* target - Handle with_synci like other options. - * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New. - (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS. - * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New. - * config/mips/mti-linux.h: New file. - * config/mips/t-mti-linux: New file. - -2012-09-10 Marc Glisse - - * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR. - -2012-09-10 Martin Jambor - - * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter. - * ipa-prop.c: Include params.h. - (IPA_MAX_AFF_JF_ITEMS): Removed. - (determine_known_aggregate_parts): Use param value of - PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS. - * Makefile.in (ipa-prop.o): Add PARAMS_H dependency. - -2012-09-10 Richard Guenther - - PR tree-optimization/54520 - * tree-ssa-threadupdate.c (def_split_header_continue_p): - Properly consider sub-loops. - -2012-09-10 Richard Henderson - - * config/alpha/predicates.md (small_symbolic_operand): Disallow - large offsets. - -2012-09-10 Georg-Johann Lay - - PR target/54536 - * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287". - -2012-09-10 Jan Hubicka - - * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases. - * symtab.c (symtab_make_decl_local): Remove user defined visibility - when making symbol local. - -2012-09-09 Mark Kettenis - - * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define. - -2012-09-09 Jan Hubicka - - * passes.c (ipa_write_summaries_1): Set state; - do not call compute_ltrans_boundary. - (ipa_write_optimization_summaries): Likewise. - (ipa_write_summaries): compute_ltrans_boundary here. - * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap. - (compute_ltrans_boundary): Update prototype. - -2012-09-09 Ulrich Drepper - - * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for - matching results of level 0 calls to __cpuid to processor - manufacturers. - * config/i386/driver-i386.c (vendor_signatures): Removed. - (processor_signatures): Removed. - (host_detect_local_cpu): Replace uses of now-removed SIG_* - constants with the new signature_*_ebx constants. - -2012-09-08 Jan Hubicka - - Replace cgraph_node_set and varpool_node_set by symtab_node_encoder - in partitioning. - * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove - forward declaration. - (lto_symtab_encoder_d): Forward declare. - (ipa_write_optimization_summaries): Update. - * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize - body, initializer and in_partition. - (lto_symtab_encoder_delete): Update. - (lto_symtab_encoder_encode): Update. - (lto_symtab_encoder_lookup): Move inline. - (lto_symtab_encoder_delete_node): New function. - (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body, - lto_symtab_encoder_encode_initializer_p, - lto_set_symtab_encoder_encode_initializer, - lto_symtab_encoder_in_partition_p, - lto_symtab_encoder_in_partition_p): Update. - (compute_ltrans_boundary): Take encoder as an input. - * passes.c (ipa_write_summaries_1): Update. - (ipa_write_summaries_1): Update. - (ipa_write_summaries): Update. - (ipa_write_optimization_summaries): Update. - * lto-streamer.c (print_lto_report): Report number of cgraph nodes. - * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by - num_output_symtab_nodes. - (lto_encoder_entry): New structure. - (struct lto_symtab_encoder_d): Reorg. - (lto_symtab_encoder_delete_node): Declare. - (lto_symtab_encoder_lookup): Bring inline. - (compute_ltrans_boundary): Update. - (lto_symtab_encoder_size): Update. - (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update. - (lto_symtab_encoder_deref): Update. - -2012-09-08 John David Anglin - - * config/pa/pa.c (hppa_rtx_costs): Update costs for large - integer modes. - -2012-09-08 Andi Kleen - - * lto/lto.c (do_whole_program_analysis): Fix last broken patch. - -2012-09-08 Andi Kleen - - * common.opt (-fmem-report-wpa): Add - * doc/invoke.texi (-fmem-report-wpa): Document. - * lto/lto.c (do_whole_program_analysis): Run mem_report - when mem_report_wpa is set. - -2012-09-07 Anthony Green - - * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue - for functions with large static stack requirements. - (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved - values off of the stack. - -2012-09-07 Nick Clifton - - * config/v850/v850.h (DBX_DEBUGGING_INFO): Define. - (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided. - * config/v850/v850.c (compute_register_save_size): Always include - the link pointer. - (increment_stack): New function - emits insns to increment or - decrement the stack pointer. - (expand_prologue, expand_epilogue): Use it. - (expand_prologue): Set the function stack size, if requested. - (v850_debug_unwind_info): New function. - (TARGET_DEBUG_UNWIND_INFO): Define. - -2012-09-07 Richard Earnshaw - - PR tree-ssa/54295 - * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p): - Sign-extension of a zero-extended value can be simplified to - just zero-extension. - -2012-09-07 Richard Guenther - - PR middle-end/53667 - * tree-ssa-structalias.c (handle_rhs_call): Properly clobber - EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT - arguments separately. - -2012-09-07 Steven Bosscher - - * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit. - - * graphite.c (print_global_statistics): Use EDGE_COUNT instead - of VEC_length. - (print_graphite_scop_statistics): Likewise. - * graphite-scop-detection.c (get_bb_type): Use single_succ_p. - (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length. - (canonicalize_loop_closed_ssa): Use single_pred_p. - - * alias.c (reg_seen): Make this an sbitmap. - (record_set, init_alias_analysis): Update. - - * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping. - -2012-09-07 Tom de Vries - - PR tree-optimization/53986 - * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow - LSHIFT_EXPR. - (extract_range_from_binary_expr_1): Handle LSHIFT with constant - range as shift amount. - -2012-09-07 Segher Boessenkool - - * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/rs6000.c (print_operand) ['.']: Delete. - * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete. - * config/rs6000/rs6000.md (tls_gd_aix): - Replace %. with nop. - (tls_gd_call_aix): Ditto. - (tls_ld_aix): Ditto. - (tls_ld_call_aix): Ditto. - (call_nonlocal_aix32): Ditto. - (call_nonlocal_aix64): Ditto. - (call_value_nonlocal_aix32): Ditto. - (call_value_nonlocal_aix64): Ditto. - -2012-09-06 Andi Kleen - - * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar - et.al. should be used. - -2012-09-06 Andi Kleen - - * lto-streamer.h (res_pair): Add. - (lto_file_decl_data): Replace resolutions with respairs. - Add max_index. - * lto/lto.c (lto_resolution_read): Remove max_index. Add rp. - Initialize respairs. - (lto_file_finalize): Set up resolutions vector lazily from respairs. - -2012-09-06 Lawrence Crowl - - * double-int.h (double_int::operator &=): New. - (double_int::operator ^=): New. - (double_int::operator |=): New. - (double_int::mul_with_sign): Modify overflow parameter to bool*. - (double_int::add_with_sign): New. - (double_int::ule): New. - (double_int::sle): New. - (binary double_int::operator *): Remove parameter name. - (binary double_int::operator +): Likewise. - (binary double_int::operator -): Likewise. - (binary double_int::operator &): Likewise. - (double_int::operator |): Likewise. - (double_int::operator ^): Likewise. - (double_int::and_not): Likewise. - (double_int::from_shwi): Tidy formatting. - (double_int::from_uhwi): Likewise. - (double_int::from_uhwi): Likewise. - * double-int.c (double_int::mul_with_sign): Modify overflow parameter - to bool*. - (double_int::add_with_sign): New. - (double_int::ule): New. - (double_int::sle): New. - * builtins.c: Modify to use the new double_int interface. - * cgraph.c: Likewise. - * combine.c: Likewise. - * dwarf2out.c: Likewise. - * emit-rtl.c: Likewise. - * expmed.c: Likewise. - * expr.c: Likewise. - * fixed-value.c: Likewise. - * fold-const.c: Likewise. - * gimple-fold.c: Likewise. - * gimple-ssa-strength-reduction.c: Likewise. - * gimplify-rtx.c: Likewise. - * ipa-prop.c: Likewise. - * loop-iv.c: Likewise. - * optabs.c: Likewise. - * stor-layout.c: Likewise. - * tree-affine.c: Likewise. - * tree-cfg.c: Likewise. - * tree-dfa.c: Likewise. - * tree-flow-inline.h: Likewise. - * tree-object-size.c: Likewise. - * tree-predcom.c: Likewise. - * tree-pretty-print.c: Likewise. - * tree-sra.c: Likewise. - * tree-ssa-address.c: Likewise. - * tree-ssa-alias.c: Likewise. - * tree-ssa-ccp.c: Likewise. - * tree-ssa-forwprop.c: Likewise. - * tree-ssa-loop-ivopts.c: Likewise. - * tree-ssa-loop-niter.c: Likewise. - * tree-ssa-phiopt.c: Likewise. - * tree-ssa-pre.c: Likewise. - * tree-ssa-sccvn: Likewise. - * tree-ssa-structalias.c: Likewise. - * tree-ssa.c: Likewise. - * tree-switch-conversion.c: Likewise. - * tree-vect-loop-manip.c: Likewise. - * tree-vrp.c: Likewise. - * tree.h: Likewise. - * tree.c: Likewise. - * varasm.c: Likewise. - -2012-09-06 Uros Bizjak - - * configure.ac (hle prefixes): Remove .code64 directive. - * configure: Regenerated. - -2012-09-06 Kyrylo Tkachov - - * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P, - LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently. - * config/arm/arm.h: Use REG_P, MEM_P consistently. - * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P - consistently. - * config/arm/neon.md: Use REG_P consistently. - * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently. - * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently. - * config/arm/vec-common.md: Use REG_P consistently. - -2012-09-06 Richard Guenther - - PR tree-optimization/54498 - * tree-ssa-alias.h (get_continuation_for_phi): Add flag to - abort when reaching an already visited region. - * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it. - (get_continuation_for_phi_1): Likewise. - (walk_non_aliased_vuses): When we translated the reference, - abort when we re-visit a region. - * tree-ssa-pre.c (translate_vuse_through_block): Adjust. - -2012-09-06 David Edelsohn - - * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS - section. - * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new - arguments to TARGET_ADDRESS_COST call. - -2012-09-06 Richard Guenther - - * tree.h (MOVE_NONTEMPORAL): Remove. - * tree-pretty-print.c (dump_generic_node): Remove - MOVE_NONTEMPORAL handling. - * expr.c (expand_expr_real_1): Likewise. - -2012-09-06 Richard Guenther - - * passes.c (execute_function_todo): Call compute_may_aliases - only if flag_tree_pta is set. - -2012-09-06 Andrew Pinski - - PR tree-opt/54494 - * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also. - -2012-09-06 Jakub Jelinek - - PR rtl-optimization/54455 - * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru - bb ends up with asm goto referencing bb's label. - -2012-09-06 Chen Liqin - - * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and - score_legitimize_address function, use compiler default code instead. - -2012-09-05 Jan Hubicka - - * ipa-inline.c (want_inline_small_function_p): Use - INLINE_HINT_loop_iterations hint. - -2012-09-05 Andrew Pinski - - * optabs.c (emit_conditional_add): Correct comment about the arguments. - Remove code which might swap op2 and op3 since they cannot be swapped. - * doc/md.texi (add@var{mode}cc): Fix document about how the arguments - are used. - -2012-09-05 Oleg Endo - - * hooks.c (hook_int_rtx_mode_as_bool_0): New function. - * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it. - * output.h (default_address_cost): Add machine_mode and address space - arguments. - * target.def (address_cost): Likewise. - * rtlanal.c (address_cost): Pass mode and address space to target hook. - (default_address_cost): Add unnamed machine_mode and address space - arguments. - * doc/tm.texi: Regenerate. - * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/arm/arm.c (arm_address_cost): Add machine_mode and address - space arguments. - * config/avr/avr.c (avr_address_cost): Likewise. - * config/bfin/bfin.c (bfin_address_cost): Likewise. - * config/cr16/cr16.c (cr16_address_cost): Likewise. - * config/cris/cris.c (cris_address_cost): Likewise. - * config/epiphany/epiphany.c (epiphany_address_cost): Likewise. - * config/i386/i386.c (ix86_address_cost): Likewise. - * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and - address space arguments. Pass them on in recursive invocation. - * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address - space arguments. - * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise. - * config/mep/mep.c (mep_address_cost): Add machine_mode and address - space arguments. - * config/microblaze/microblaze.c (microblaze_address_cost): Likewise. - * config/mips/mips.c (mips_address_cost): Likewise. - * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and - address space arguments. - (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to - mn10300_address_cost. - * config/pa/pa.c (hppa_address_cost): Add machine_mode and address - space arguments. - * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise. - (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of - hook_int_rtx_bool_0. - * config/rx/rx.c (rx_address_cost): Add machine_mode and address - space arguments. - * config/s390/s390.c (s390_address_cost): Likewise. - * config/score/score-protos.h (score_address_cost): Likewise. - * config/score/score.c (score_address_cost): Likewise. - * config/sh/sh.c (sh_address_cost): Likewise. - * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise. - * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode - and address space arguments. - * config/v850/v850.c (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - * config/vax/vax.c (vax_address_cost): Add machine_mode and address - space arguments. - * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use - hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. - -2012-09-05 Diego Novillo - - PR bootstrap/54484 - * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument. - -2012-09-05 Jakub Jelinek - - PR middle-end/54486 - * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use - build_int_cst with size_type_node instead of size_int. - -2012-09-05 Uros Bizjak - - * config/i386/sse.md (_blendv): - Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}. - Use nonimmediate_operand instead of - nonimm_not_xmm0_operand{,_maybe_avx}. - (_pblendvb): Ditto. - (sse4_2_pcmpestr): Ditto. - (*sse4_2_pcmpestr_unaligned): Ditto. - (sse4_2_pcmpistr): Ditto. - (*sse4_2_pcmpistr_unaligned): Ditto. - * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate. - (nonimm_not_xmm0_operand): Ditto. - (nonimm_not_xmm0_operand_maybe_avx): Ditto. - (nonimm_not_xmm0_operand_maybe_avx): Ditto. - * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx. - -2012-09-05 Eric Botcazou - - * bb-reorder.c: Clarify a few points in the head comment and fix - long lines in other comments. - (find_traces): Fix long line. - (find_traces_1_round): Likewise. - (better_edge_p): Likewise. - (connect_traces): Likewise. - (duplicate_computed_gotos): Likewise. - (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces. - (fix_up_fall_thru_edges): Fix formatting. - -2012-09-05 Richard Guenther - - PR tree-optimization/46590 - * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not - update SSA form here. - (canonicalize_induction_variables): Assert we do not need to - update SSA form. - (tree_unroll_loops_completely): Update SSA form here. - * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge): - Do not verify loop-closed SSA form if SSA form is not up-to-date. - -2012-09-05 Georg-Johann Lay - - PR target/54461 - * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if - not configured --with-avrlibc=no. - (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured - --with-avrlibc=no. - * config/avr/avrlibc.h: New file. - * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if - not configured --with-avrlibc=no. - * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__ - -2012-09-04 Teresa Johnson - - * gcov-io.c (gcov_write_summary): Write out non-zero histogram - entries to function summary along with an occupancy bit vector. - (gcov_read_summary): Read in the histogram entries. - (gcov_histo_index): New function. - (void gcov_histogram_merge): Ditto. - * gcov-io.h (gcov_type_unsigned): New type. - (struct gcov_bucket_type): Ditto. - (struct gcov_ctr_summary): Include histogram. - (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries. - (GCOV_HISTOGRAM_SIZE): New macro. - (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto. - * profile.c (NUM_GCOV_WORKING_SETS): Ditto. - (gcov_working_sets): New global variable. - (compute_working_sets): New function. - (find_working_set): Ditto. - (get_exec_counts): Invoke compute_working_sets. - * coverage.c (read_counts_file): Merge histograms, and - fix bug with accessing summary info for non-summable counters. - * basic-block.h (gcov_type_unsigned): New type. - (struct gcov_working_set_info): Ditto. - (find_working_set): Declare. - * gcov-dump.c (tag_summary): Dump out histogram. - -2012-09-04 Diego Novillo - - PR bootstrap/54484 - * vec.h (vec_t::embedded_init): Move default argument value - to function declaration. - -2012-09-04 Eric Botcazou - - * bb-reorder.c (gate_handle_reorder_blocks): Move around. - (rest_of_handle_reorder_blocks): Likewise. - (pass_reorder_blocks): Likewise. - (gate_handle_partition_blocks): Likewise. - -2012-09-04 Eric Botcazou - - PR rtl-optimization/54456 - * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0. - -2012-09-04 Diego Novillo - - PR bootstrap/54478 - * vec.h (vec_t::alloc): Remove explicit type specification - in call to reserve. - (vec_t::copy): Likewise. - (vec_t::reserve): Likewise. - (vec_t::reserve_exact): Likewise. - (vec_t::safe_splice): Likewise. - (vec_t::safe_push): Likewise. - (vec_t::safe_grow): Likewise. - (vec_t::safe_grow_cleared): Likewise. - (vec_t::safe_insert): Likewise. - -2012-09-04 Richard Henderson - - * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER. - -2012-09-04 Richard Guenther - - * tree-ssa-pre.c (value_expressions): Make it a vector of - bitmaps containing expression IDs. - (add_to_value): Adjust. - (sorted_array_from_bitmap_set): Likewise. - (bitmap_set_replace_value): Likewise. - (print_value_expressions): Likewise. - (get_constant_for_value_id): Likewise. - (get_representative_for): Likewise. - (phi_translate_1): Likewise. - (bitmap_find_leader): Likewise. - (find_or_generate_expression): Likewise. - (do_regular_insertion): Likewise. - (init_pre): Likewise. - (fini_pre): Likewise. - -2012-09-04 Diego Novillo - - PR bootstrap/54479 - * vec.h (vec_t::copy): Add cast in call to reserve_exact. - -2012-09-04 Richard Guenther - - * tree-ssa-pre.c (add_to_exp_gen): Adjust. - (make_values_for_phi): Do not add to PHI_GEN for FRE. - (compute_avail): Stop processing after adding all defs to - AVAIL_OUT for FRE. - (init_pre): Do not allocate not needed bitmap sets for FRE. - -2012-09-04 Diego Novillo - - Rewrite VEC_* functions as member functions of vec_t. - - * vec.h: Update documentation. - (ALONE_VEC_CHECK_INFO): Define. - (ALONE_VEC_CHECK_DECL): Define. - (ALONE_VEC_CHECK_PASS): Define. - (struct vec_prefix): Rename field NUM to NUM_. - Rename field ALLOC to ALLOC_. - Update all users. - (struct vec_t): Rename field PREFIX to PREFIX_. - Rename field VEC to VEC_. - Update all users. - (vec_t::length): Rename from VEC_length_1. Update all users. - (vec_t::empty): Rename from VEC_empty_1. Update all users. - (vec_t::address): Rename from VEC_address_1. Update all users. - (vec_address): New. - (vec_t::last): Rename from VEC_last_1. Update all users. - (vec_t::operator[]): Rename from VEC_index_1. Update all users. - (vec_t::iterate): Rename from VEC_iterate_1. Update all users. - (vec_t::embedded_size): Rename from VEC_embedded_size_1. - Update all users. - (vec_t::embedded_init): Rename from VEC_embedded_init_1. - Update all users. - (vec_t::alloc): Rename from VEC_alloc_1. Update all users. - (vec_t::free): Rename from VEC_free_1. Update all users. - (vec_t::copy): Rename from VEC_copy_1. Update all users. - (vec_t::space): Rename from VEC_space_1. Update all users. - (vec_t::reserve): Rename from VEC_reserve_1. Update all users. - (vec_t::reserve_exact): Rename from VEC_reserve_exact_1. - Update all users. - (vec_t::splice): Rename from VEC_splice_1. Update all users. - (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users. - (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users. - (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users. - (vec_t::pop): Rename from VEC_pop_1. Update all users. - (vec_t::truncate): Rename from VEC_truncate_1. Update all users. - (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users. - (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1. - Update all users. - (vec_t::replace): Rename from VEC_replace_1. Update all users. - (vec_t::quick_insert): Rename from VEC_quick_insert_1. - Update all users. - (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users. - (vec_t::ordered_remove): Rename from VEC_ordered_remove_1. - Update all users. - (vec_t::unordered_remove): Rename from VEC_unordered_remove_1. - Update all users. - (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users. - (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users. - -2012-09-04 Steven Bosscher - - * gimple.h (gimple_build_switch): Remove. - (gimple_build_switch_vec): Promote to the new gimple_build_switch. - (gimple_switch_default_label): Assert the default case label is - really a default case label. - (gimple_switch_set_default_label): Likewise. - * gimple.c (gimple_build_switch_nlabels): Make sure a default label - is passed in, and simplify accordingly. - (gimple_build_switch): Removed. - (gimple_build_switch_vec): Rename to gimple_build_switch. - * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use. - * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL - case label. - * stmt.c (expand_case): Simplify using the fact that every GIMPLE - switch must have a default case. - * tree-cfg.c (group_case_labels_stmt): Likewise. - (verify_gimple_switch): Use gimple_switch_label in verifier to get - the label at index 0, and verify that it is a valid default case. - * except.c (sjlj_emit_dispatch_table): Rewrite construction of the - switch for dispatching. - * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use. - (lower_eh_dispatch): Likewise. - * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case - label at index 0 before turning it into a default case label. - * omp-low.c (expand_omp_sections): Update gimple_build_switch use. - * tree-switch-conversion.c (emit_case_bit_tests): Get the default case - label using gimple_switch_default_label. - (collect_switch_conv_info): Likewise. - (process_switch): Likewise. - * doc/gimple.texi: Update documentation of gimple_build_switch. - -2012-09-04 Georg-Johann Lay - - PR target/54476 - * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with - SImode. - -2012-09-04 Bin Cheng - - PR target/45070 - * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value - of size less than 4 bytes by using macro ARM_NUM_INTS. - (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS. - -2012-09-04 Richard Guenther - - PR tree-optimization/54458 - * tree-ssa-threadupdate.c (thread_through_loop_header): If we - turn the loop into one with multiple latches mark it so. - -2012-09-04 Senthil Kumar Selvaraj - - PR target/54220 - * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New - define to... - (avr_allocate_stack_slots_for_args): ...this new static function. - -2012-09-04 Christophe Lyon - - * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT - by GEN_INT. - (arm_emit_coreregs_64bit_shift): Likewise. - -2012-09-04 Christophe Lyon - - * config/arm/arm.c (arm_evpc_neon_vext): New function. - (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext. - -2012-09-04 Oleg Endo - - PR target/51244 - * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison - canonicalization code into... - * (sh_canonicalize_comparison): This new function. - * config/sh/sh-protos.h: Declare it. - * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON. - * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and - always invoke expand_cbranchsi4. - -2012-09-03 Andi Kleen - - * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize - addr_offset always. - -2012-09-03 Andrew Pinski - - PR tree-opt/53395 - * tree-if-conv.c (constant_or_ssa_name): New function. - (fold_build_cond_expr): New function. - (predicate_scalar_phi): Use fold_build_cond_expr instead of build3. - (predicate_mem_writes): Likewise. - -2012-09-03 Marc Glisse - - * fold-const.c (fold_ternary_loc): Constant-propagate after - removing dead operands. - -2012-09-03 Michael Matz - - PR tree-optimization/46590 - * tree-cfg.c (gimple_duplicate_sese_region): Don't update - SSA web here ... - * tree-ssa-loop-ch.c (copy_loop_headers): ... but here. - -2012-09-03 Sandra Loosemore - - * doc/invoke.texi: Fix numerous typos and punctuation/grammatical - errors throughout the file. Re-word some awkward sentences and - paragraphs. - -2012-09-03 Richard Guenther - - PR tree-optimization/54362 - * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR. - -2012-09-03 Andreas Krebbel - - * config/s390/s390.c (s390_loadrelative_operand_p): New function. - (s390_check_qrst_address, print_operand_address): Use - s390_loadrelative_operand_p instead of s390_symref_operand_p. - (s390_check_symref_alignment): Accept pointer size alignment for - GOT slots. - (legitimize_pic_address): Use load relative on z10 or later. - -2012-09-03 Jakub Jelinek - - PR debug/53923 - * valtrack.c (dead_debug_insert_temp): Drop non-reg uses - from the chain. - -2012-09-03 Joseph Myers - - * common.opt (--no-sysroot-suffix): New driver option. - * doc/invoke.texi (--no-sysroot-suffix): Document. - * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not - needing spec processing. - (main): Do not process sysroot suffixes if no_sysroot_suffix. - -2012-09-02 Oleg Endo - - PR target/33135 - * common/config/sh/sh-common.c: Update copyright years. - (sh_option_init_struct): Delete. - (TARGET_OPTION_INIT_STRUCT): Likewise. - -2012-09-02 Oleg Endo - - PR target/54418 - * config/sh/sh.md (cmpgeusi_t): Remove N alternative. - Check operands[1] in split condition instead of operands[0]. - Add comments. - -2012-09-02 Mark Kettenis - - * config.gcc (x86_64-*-openbsd*): New target. - * config.host (*-*-openbsd*): New target. - * config/openbsd.h (TARGET_C99_FUNCTIONS): Define. - * config/i386/openbsdelf.h: Remove some superfluous defines and - group things together in a more logical fashion. - (DBX_REGISTER_NUMBER): Provide a - definition that works on both 32-bit and 64-bit targets. - (WCHAR_TYPE_SIZE): Hardcode as 32. - (NO_DOLLAR_IN_LABEL): Remove undef. - (TARGET_DEFAULT): Remove. - (SET_ASM_OP): Remove. - (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning. - (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h - (DWARF2_UNWIND_INFO): Remove define. - (HAVE_ENABLE_EXECUTE_STACK): Define. - * config/host-openbsd.c: New file. - * config/t-openbsd (USER_H): Add EXTRA_HEADERS. - * config/x-openbsd: New file. - -2012-09-02 Oleg Endo - - * config/sh/sh.md (*extendsi2_compact_mem_disp): Pass iterated - mode to sh_legitimate_index_p instead of QImode. - -2012-09-02 Eric Botcazou - - PR rtl-optimization/54369 - * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before - calling dbr_schedule. - * config/sparc/sparc.c (sparc_reorg): Likewise. - -2012-09-01 Jakub Jelinek - - PR target/54436 - * config/i386/i386.md (*mov_insv_1_rex64, *movsi_insv_1): If - operands[1] is CONST_INT_P, convert it to QImode before printing. - -2012-09-01 Andrew Pinski - - * simplify-rtx.c (simplify_unary_operation_1 ): - A truncate of a memory is just loading the low part of the memory. - -2012-09-01 Uros Bizjak - - PR target/46829 - PR target/46843 - * config/i386/i386.c (ix86_legitimate_combined_insn): New function. - (TARGET_LEGITIMATE_COMBINED_INSN): New macro. - -2012-09-01 Uros Bizjak - - * target.def (legitimate_combined_insn): New target hook. - * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook. - * doc/tm.texi: Regenerated. - * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn - to allow targets to reject combined insn. - * hooks.h (hook_bool_rtx_true): New. - * hooks.c (hook_bool_rtx_true): Ditto. - -2012-08-31 Martin Jambor - - * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate - nonconstant_names after calculate_dominance_info and - loop_optimizer_init. - -2012-08-31 Greta Yorsh - - * config/arm/arm.c (arm_expand_epilogue): Remove unused variable - floats_from_frame. - -2012-08-31 Martin Jambor - - PR middle-end/54409 - * ipa-inline-analysis.c (remap_predicate): Fix the offset_map - checking condition. - -2012-08-31 Martin Jambor - - * ipa-inline-analysis.c (phi_result_unknown_predicate): New function. - (predicate_for_phi_result): Likewise. - (estimate_function_body_sizes): Use the above two functions. - -2012-08-31 Martin Jambor - - PR middle-end/54394 - * ipa-inline-analysis.c (estimate_function_body_sizes): Compute - dominance info and loops whenever optimizing. - -2012-08-29 Ramana Radhakrishnan - Richard Earnshaw - - PR target/54252 - * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by - element size. Use elem_type from the formal parameter. New parameter - fcode. - (neon_expand_args): Adjust call to neon_dereference_pointer. - -2012-08-29 Steven Bosscher - - * cfg.c (dump_bb_info): Print a newline if there were no edges to dump. - -2012-08-29 Chung-Lin Tang - - Revert: - * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use - mapping style, add ../lib/mips16. - (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16. - (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32. - -2012-08-29 Richard Sandiford - - * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci - if TARGET_SYNCI. - -2012-08-29 Oleg Endo - - * config/sh/sh.opt (menable-tas): Rename to mtas. - * doc/invoke.texi (SH options): Likewise. - * config/sh/sync.md: Update comments. - -2012-08-29 Oleg Endo - - * config/sh/iterators.md: New file. - * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage - with new iterators QIHISI, QIHI, bw, bwl respectively throughout - the file. - * config/sh/sh.md: Include new file iterators.md. - (zero_extendhisi2, zero_extendqisi2): Fold into zero_extendsi2. - (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into - *zero_extendsi2_compact. - (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into - *zero_extendsi2_disp_mem. - (extendhisi2, extendqisi2): Fold into extendsi2. - (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into - *extendsi2_compact_reg. - (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold - into *extendsi2_compact_mem_disp. - (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into - *extendsi2_compact_snd. - (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename - to *movsi_index_disp_load, *movhi_index_disp_load, - *mov_index_disp_store. - (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov_reg_reg. - (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into - *mov_store_mem_disp04. - (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into - *mov_store_mem_disp12. - (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into - *mov_load_mem_disp04 and *mov_load_mem_disp12. - -2012-08-29 Martin Jambor - - * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not - do_estimate_edge_time. - -2012-08-29 Chung-Lin Tang - - * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm - directives, remove #ifndef __mips16 guards. - * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use - mapping style, add ../lib/mips16. - (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16. - (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32. - -2012-08-28 Walter Lee - * confg/tilegx/tilegx.md: Fix code style. - (*zero_extendsidi_truncdisi): Fix typo. - * config/tilegx/tilegx.c: Fix code style. - (tilegx_function_profiler): Fix typo. - -2012-08-28 Walter Lee - - * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large. - * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h. - (CRT_CALL_STATIC_FUNCTION): Define. - * config/tilegx/predicates.md (const_last_symbolic_operand): - Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and - UNSPEC_HW2_LAST_PLT_PCREL. - (const_symbolic_operand): Handle UNSPEC_HW1_PCREL, - UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL. - * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define, - and renumber the constants that follow. - (UNSPEC_HW1_PCREL): Ditto. - (UNSPEC_HW2_LAST_PCREL): Ditto. - (UNSPEC_HW0_PLT_PCREL): Define. - (UNSPEC_HW1_PLT_PCREL): Define. - (UNSPEC_HW1_LAST_PLT_PCREL): Define. - (UNSPEC_HW2_LAST_PLT_PCREL): Define. - (mov_large_pcrel_step1): Define. - (mov_large_pcrel_step2): Define. - (mov_large_pcrel_step3): Define. - (mov_large_pcrel_step4): Define. - (mov_plt_pcrel_step1): Define. - (mov_plt_pcrel_step2): Define. - (mov_plt_pcrel_step3): Define. - (mov_plt_pcrel_step1_32bit): Define. - (mov_plt_pcrel_step2_32bit): Define. - (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC. - (call_value): Ditto. - * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h. - (mcmodel): New option. - (enum cmodel): Define. - (CM_SMALL): Define. - (CM_LARGE): Define. - * config/tilegx/tilegx-opts.h: New file. - * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address): - Declare. - (tilegx_compute_pcrel_plt_address): Declare. - * config/tilegx/tilegx.c (tilegx_option_override): Handle - tilegx_cmodel. - (tilegx_function_ok_for_sibcall): Ditto. - (compute_pcrel_address): Rename to tilegx_compute_pcrel_address, - and don't declare static. Handle tilegx_cmodel. - (tilegx_compute_pcrel_plt_address): Define. - (tilegx_legitimize_pic_address): Rename calls to - compute_pcrel_address. - (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL, - UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL, - UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL. - (load_pic_register): Rename call to compute_pcrel_address. - (tilegx_print_operand): Handle UNSPEC_HW1_PCREL, - UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL, - UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL. - -2012-08-27 Maxim Kuvyrkov - - * sched-deps.c (add_dependence_list_and_free): Simplify. - (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free - lists when add_dependence_list_and_free doesn't free them. - -2012-08-27 Uros Bizjak - - PR target/46254 - * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return - true for TARGET_64BIT or !flag_pic. - * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove. - (atomic_compare_and_swap_double): Change operand 2 predicate - to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator. - Add insn constraint. Conditionally emit xchg asm insns. - (atomic_compare_and_swap): Update calls. Check only - cmpxchg8b_pic_memory_operand in memory address fixup. - (DCASMODE): Remove. - (CASHMODE): Rename from DCASHMODE. - (doublemodesuffix): Update modes. - (regprefix): New mode attribute. - - (unspecv) : Remove. - : New constant. - (atomic_compare_and_swap_1): Rename from - atomic_compare_and_swap_single. Update calls and - unspec_volatile constants. - (atomic_compare_and_swap_doubleword): Rename from - atomic_compare_and_swap_double. Update calls and - unspec_volatile constants. - -2012-08-27 Walter Lee - - * doc/md.texi (TILE-Gx): Fix typo. - -2012-08-27 Walter Lee - - * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo. - * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto. - -2012-08-27 Walter Lee - - * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins. - (insn_bfins): Delete. - -2012-08-27 Walter Lee - - * config/tilegx/sync.md (atomic_compare_and_swap_bare, - atomic_exchange_bare, - atomic_fetch__bare): Set type to X1_remote. - * config/tilegx/tilegx-generic.md (X1_remote): New - insn_reservation. - * config/tilegx/tilegx.md (type): Add X1_remove. - (insn_cmpexch, insn_exch, - insn_fetchadd, insn_fetchaddgez, - insn_fetchand, insn_fetchor): Set type to - X1_remote. - -2012-08-27 Andreas Schwab - - * gdbinit.in: Fix syntax of skip command. - -2012-08-27 Richard Sandiford - - * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for - SYMBOL_REF SET_SRCs. - -2012-08-27 Richard Sandiford - - * config/mips/mips.c (vr4130_align_insns): Don't simulate - ghost instructions. Assert that the required instructions exist. - -2012-08-26 Richard Sandiford - - * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for - definition. - * config/mips/mips.c (machine_function): Add next_fcc. - (mips_output_move): Remove handling of fcc moves. - (mips_allocate_fcc): New function. - (mips_emit_compare, mips_expand_vcondv2sf): Use it. - (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers. - Remove special case for CCmode reloads. - (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat - the result a fixed operand. - * config/mips/mips.md (move_type): Remove lui_movf. - (type, length): Remove references to it. - (movcc, reload_incc, reload_outcc): Delete. - -2012-08-26 Richard Sandiford - - * config/mips/mips.c (mips_has_long_branch_p): New function, - split out from... - (mips_expand_ghost_gp_insns): ...here. Look inside sequences. - -2012-08-26 Richard Sandiford - - * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference. - -2012-08-26 Richard Sandiford - - * config/mips/mips.c (mips_rtx_costs): Add costs for CINS. - -2012-08-26 Richard Sandiford - - * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS - to the size cost of multiplication. - -2012-08-26 Gerald Pfeifer - - * doc/install.texi (Specific): Clarify what needs to be added to - this section. - -2012-08-26 Gerald Pfeifer - - * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL - and NO_DOT_IN_LABEL from here... - (Label Output): ...to here. - * doc/tm.texi: Regenerate. - -2012-08-26 Gerald Pfeifer - - * doc/invoke.texi (C++ Dialect Options): Add missing space. - -2012-08-25 Eric Botcazou - - PR rtl-optimization/54088 - * jump.c (delete_related_insns): Robustify latest change. - -2012-08-25 Ricardo Catalinas Jiménez - - * doc/extend.texi (__atomic Builtins): Remove space before comma. - -2012-08-25 Richard Sandiford - Andrew Pinski - - * config/mips/mips.h (CASE_VECTOR_MODE): For not - TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode. - (CASE_VECTOR_SHORTEN_MODE): Likewise. - -2012-08-25 Uros Bizjak - - * config/i386/i386.h (FP_REG_P): Remove macro. - (FP_REGNO_P): Ditto. - (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P. - (HARD_REGNO_NREGS_HAS_PADDING): Ditto. - (ANY_FP_REGNO_P): Ditto. - (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P. - * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P - instead of FP_REGNO_P. - (ix86_hard_regno_mode_ok): Ditto. - * config/i386/predicates.md (fp_register_operand): Ditto. - (register_and_not_fp_reg_operand): Ditto. - * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead - of FP_REG_P. - - * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P. - -2012-08-24 Jason Merrill - - * print-tree.c (print_node): Don't check TREE_LANG_FLAG_* - on TREE_VEC or SSA_NAME. - -2012-08-24 Jakub Jelinek - - PR c/54363 - * gimplify.c (optimize_compound_literals_in_ctor): Only recurse - if init is a CONSTRUCTOR. - -2012-08-24 Steven Bosscher - - * tree-ssa-live.c (dump_var_map): Do not dump the partition - map of virtual operands. - -2012-08-24 Yuri Rumyantsev - - * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add - case for Atom processor. - -2012-08-24 Simon Baldwin - - * dwarf2out.c (gen_producer_string): Omit command line switch if - CL_NO_DWARF_RECORD flag set. - * opts.h (CL_NO_DWARF_RECORD): New. - * opt-functions.awk (switch_flags): Add NoDWARFRecord. - * doc/options.texi: Document NoDWARFRecord option flag. - -2012-08-24 H.J. Lu - - PR debug/52857 - * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and - frame_pointer_rtx for based_loc_descr. - -2012-08-24 Martin Jambor - - * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl - instead of current_function_decl, use profile_status_for_function and - ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants. - (maybe_hot_count_p): New parameter fun, use - profile_status_for_function instead of its cfun_variant. - (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to - all callees. - (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and - maybe_hot_frequency_p. - (probably_never_executed_bb_p): New parameter fun, use its decl - instead of current_function_decl. - (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p. - (rtl_profile_for_bb): Likewise. - (compute_function_frequency): Pass cfun to maybe_hot_bb_p and - probably_never_executed_bb_p. - * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it - instead of cfun. - (update_stmt_operands): Pass cfun as an argument of - ssa_operands_active. - (swap_tree_operands): Likewise. - * gimple-iterator.c (update_modified_stmt): Likewise. - (update_modified_stmts): Likewise. - * tree-flow-inline.h (delink_stmt_imm_use): Likewise. - * tree-ssa.c (delete_tree_ssa): Likewise. - * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p. - (push_to_next_round_p): Likewise. - (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise. - * cfg.c: Inlude tree.h. - (check_bb_profile): Use profile_status_for_function, - EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with - DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun - variants. - (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to - maybe_hot_bb_p and probably_never_executed_bb_p. - * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that - DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to - dump_histograms_for_stmt. - (dump_gimple_mem_ops): Pass - DECL_STRUCT_FUNCTION (current_function_decl) - as an argument to dump_gimple_mem_ops. - * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl. - Do not change cfun. Change and restore current_function_decl. - * Makefile.in (cfg.o): Include TREE_H in dependencies. - -2012-08-24 Georg-Johann Lay - - PR target/54222 - * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes. - * avr/avr-fixed.md: New file. - * avr/avr.md: Include it. - (cc): Add: minus. - (adjust_len): Add: minus, minus64, ufract, sfract. - (ALL1, ALL2, ALL4, ORDERED234): New mode iterators. - (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA. - (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA. - (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3, - subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi, - cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1. - (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3, - ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3, - *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all - 16-bit modes in ALL2. - (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI. - (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const, - ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const, - *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all - 32-bit modes in ALL4. - * avr-dimode.md (ALL8): New mode iterator. - (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn, - subdi3_const_insn, cbranchdi4, compare_di2, - compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn, - ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle - all 64-bit modes in ALL8. - * config/avr/avr-protos.h (avr_to_int_mode): New prototype. - (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes. - * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to... - (avr_fixed_point_supported_p): ...this new static function. - (TARGET_BUILD_BUILTIN_VA_LIST): Define to... - (avr_build_builtin_va_list): ...this new static function. - (avr_adjust_type_node): New static function. - (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P. - (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new - pseudo instead of gen_rtx_MINUS. - (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED. - (notice_update_cc): Handle: CC_MINUS. - (output_movqi): Generalize to handle respective fixed-point modes. - (output_movhi, output_movsisf, avr_2word_insn_p): Ditto. - (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes. - (avr_assemble_integer): Ditto. - (output_reload_in_const, output_reload_insisf): Ditto. - (avr_compare_pattern): Skip all modes > 4 bytes. - (avr_2word_insn_p): Skip movuqq_insn, movqq_insn. - (avr_out_fract, avr_out_minus, avr_out_minus64): New functions. - (avr_to_int_mode): New function. - (adjust_insn_length): Handle: ADJUST_LEN_SFRACT, - ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64. - * config/avr/predicates.md (const0_operand): Allow const_fixed. - (const_operand, const_or_immediate_operand): New. - (nonmemory_or_const_operand): New. - * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ): - New constraints. - * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define. - -2012-08-23 Kenneth Zadeck - - * alias.c (rtx_equal_for_memref_p): Convert constant cases. - * combine.c (find_single_use_1, mark_used_regs_combine): Convert - to CASE_CONST_ANY. - * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1, - count_reg_usage): Convert constant cases. - * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY. - (cselib_subst_to_values): Convert constant cases. - * df-scan.c (df_uses_record): Ditto. - * dse.c (const_or_frame_p): Convert case statements to explicit - if-then-else using mode classes. - * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases. - * explow.c (convert_memory_address_addr_space): Ditto. - * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto. - * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto. - * ira.c (equiv_init_varies_p, contains_replace_regs, - memref_referenced_p, rtx_moveable_p): Ditto. - * jump.c (mark_jump_label_1): Remove constant cases. - (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE. - * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1, - invariant_expr_equal_p): Convert to CASE_CONST_ANY. - * postreload-gcse.c (oprs_unchanged_p): Convert constant cases. - * reginfo.c (reg_scan_mark_refs): Ditto. - * regrename.c (scan_rtx): Ditto. - * reload1.c (eliminate_regs_1, elimination_effects, - scan_paradoxical_subregs): Ditto. - * reload.c (operands_match_p, subst_reg_equivs): Ditto. - * resource.c (mark_referenced_resources, mark_set_resources): Ditto. - * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences) - (reg_mentioned_p, modified_between_p, modified_in_p) - (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1, - inequality_comparisons_p, computed_jump_p_1): Ditto. - * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto. - * sched-deps.c (sched_analyze_2): Ditto. - * valtrack.c (cleanup_auto_inc_dec): Ditto. - * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE, - CASE_CONST_ANY): New macros. - -2012-08-23 Julian Brown - Sandra Loosemore - - * config/mips/mips.md - (UNSPEC_CASESI_DISPATCH): New. - (MIPS16_T_REGNUM): New constant. - (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES. - (casesi): New. - (casesi_internal_mips16_): New. - * config/mips/mips.c (mips16_split_long_branches): Adjust test - to ignore casesi jump tables. - * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update - comment. - (CASE_VECTOR_MODE): Use SImode unconditionally. - (CASE_VECTOR_SHORTEN_MODE): Define. - (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts - when necessary for MIPS16_SHORT_JUMP_TABLES. - -2012-08-23 Bill Schmidt - - * config/rs6000/rs6000.c (rs6000_density_test): Free loop body. - -2012-08-23 H.J. Lu - - PR driver/54335 - * doc/invoke.texi: Add -da and remove -dm. - -2012-08-23 Richard Guenther - - * tree-vect-stmts.c (vect_finish_stmt_generation): Update - virtual SSA form. - -2012-08-23 Jakub Jelinek - - * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION. - -2012-08-23 Mingjie Xing - - * doc/gty.texi: Fix typo. - -2012-08-23 Richard Guenther - - * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands. - (find_uses_to_rename_use): Likewise. - (find_uses_to_rename_bb): Likewise. - (find_uses_to_rename_stmt): Walk over all operands. - -2012-08-22 Oleg Endo - - PR target/54089 - * config/sh/predicates (p27_rshift_count_operand, - not_p27_rshift_count_operand): New predicates. - * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p, - sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special - case when shift amount is 31. - (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m. - * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead - of 'arith'. - (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout - the file. - (lshrsi3): Remove clobber from expander. Use shift_count_operand - instead of nonmemory_operand predicate for second operand. Add - handling of case lshrsi3_n_clobbers_t. - (lshrsi3_k): Use p27_rshift_count_operand for second operand. - (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant - shift sequences if beneficial. - (lshrsi3_n): Make insn_and_split. Split constant shift sequence to - dynamic shift if beneficial. - (lshrsi3_n_clobbers_t): New insn_and_split. - (lshrsi3_m): Delete. - -2012-08-22 Steven Bosscher - - * tracer.c (mark_bb_seen): Use SBITMAP_SIZE. - - * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale, - or rather a lack thereof. - (init_alias_analysis): Propagate the latest information across - the CFG in topological order to propagate as far as possible in - each iteration. Ignore debug insns. - -2012-08-22 H.J. Lu - - * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80. - * config/i386/i386.c (flag_opts): Add -mlong-double-64. - (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic. - * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if - TARGET_LONG_DOUBLE_64 is true. - (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro. - (WIDEST_HARDWARE_FP_SIZE): Defined to 80. - * config/i386/i386.opt (mlong-double-80): New option. - (mlong-double-64): Likewise. - * config/i386/i386-c.c (ix86_target_macros): Define - __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64. - -2012-08-22 H.J. Lu - - PR target/54347 - * config/i386/i386.c (ix86_split_to_parts): Replace - REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target. - -2012-08-22 Richard Guenther - - * tree-vectorizer.c (vectorize_loops): Do not call - mark_virtual_operands_for_renaming. - * tree-vect-slp.c (vect_slp_transform_bb): Likewise. - Do not update SSA form here. - -2012-08-22 Dodji Seketeli - - * tree.h (TREE_NOTHROW): Use the base.nothrow_flag. - -2012-08-22 Richard Guenther - - PR tree-optimization/46590 - * tree-ssa-alias.h (get_continuation_for_phi): Add alias query - counter output argument. - (walk_non_aliased_vuses): Add alias query counter argument - to the walker callback. - * tree-ssa-alias.c (maybe_skip_until): Add alias query counter - output argument and count alias queries. - (get_continuation_for_phi_1): Likewise. - (get_continuation_for_phi): Likewise. - (walk_non_aliased_vuses): Add alias query counter argument - to the walker callback and allow it to abort the walk by - returning -1. - * tree-ssa-pre.c (translate_vuse_through_block): Adjust. - * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query - counter parmeter, abort walk if that is bigger than - --param sccvn-max-alias-queries-per-access. - * params.def (sccvn-max-alias-queries-per-access): New param. - * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document. - -2012-08-22 Richard Guenther - - * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking. - * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert - instead of gcc_assert. - (mark_block_for_update): Likewise. - (add_new_name_mapping): Likewise. - (mark_def_sites): Likewise. - (insert_phi_nodes_for): Likewise. - (rewrite_debug_stmt_uses): Likewise. - (rewrite_stmt): Likewise. - (maybe_register_def): Likewise. - (rewrite_update_phi_arguments): Likewise. - (rewrite_update_enter_block): Likewise. - (mark_def_interesting): Likewise. - (prepare_def_site_for): Likewise. - (insert_updated_phi_nodes_for): Likewise. - -2012-08-22 Jakub Jelinek - - * tree-vect-loop.c (vect_transform_loop): Initialize - check_profitability to false. - - * tree-predcom.c (try_combine_chains): Free the worklist vector - at the end. - -2012-08-22 Marc Glisse - - PR tree-optimization/54317 - * tree-vrp.c (extract_range_from_binary_expr_1): Test for - double_int overflow. - Remove dead tests. - -2012-08-22 Jakub Jelinek - - * tree-vrp.c (find_assert_locations): Skip also edges - from the entry block. - - * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call - free_stmt_vec_info on orig_cond after gsi_removing it. - * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always - free body_cost_vec vector. - (vect_analyze_data_refs): If gather is unsuccessful, - free_data_ref (dr). - * tree-inline.c (tree_function_versioning): Free - old_transforms_to_apply vector. - -2012-08-22 Steven Bosscher - - * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents - of this a VEC and add a bitmap obstack. - (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared - to the right size. - (ssa_conflicts_delete): Free the VEC and release the obstack. - (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one, - ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes. - (truct live_track_d): Add another bitmap obstack here. - (new_live_track): Initialize it and use it for all bitmaps. - (delete_live_track): Don't free the bitmaps one at a time, just - release the obstack. - (create_outofssa_var_map): Fix to conform to GCC code style rules. - -2012-08-21 Nathan Froyd - - * config/m32c/constraints.md: New file. - * config/m32c/t-m32c (MD_FILES): Add constraints. - * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete. - (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete. - (m32c_reg_class_from_constraint): Delete. - (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete. - (m32c_matches_constraint_p): Declare. - * config/m32c/m32c.h (CONSTRAINT_LEN): Delete. - (REG_CLASS_FROM_CONSTRAINT): Delete. - (CONST_OK_FOR_CONSTRAINT_P): Delete. - (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete. - (EXTRA_CONSTRAINT_STR): Delete. - (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete. - * config/m32c/m32c.c: Include tm-constrs.h - (m32c_reg_class_from_constraint): Delete. - (m32c_const_ok_for_constraint_p): Delete. - (m32c_extra_constraint_p2): Rename to... - (m32c_matches_constraint_p): ...this. Make it return bool. Tweak - formatting. - (m32c_extra_constraint_p): Delete. - (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete. - (m32c_split_move): Use satisfies_constraint_Ss. - * config/m32c/predicates.md (memsym_operand): Use - satisfies_constraint_Si. - (memimmed_operand): Use satisfies_constraint_Sp. - (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb. - (m32c_1bit16_operand): Use satisfies_constraint_Ilw. - (m32c_1mask8_operand): Use satisfies_constraint_ImB. - (m32c_1mask16_operand): Use satisfies_constraint_Imw. - -2012-08-21 Nathan Froyd - - * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete. - (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete. - (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete. - * config/mep/mep.c (mep_reg_class_from_constraint): Delete. - (mep_const_ok_for_letter_p, mep_extra_constraint): Delete. - * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete. - (mep_const_ok_for_letter_p, mep_extra_constraint): Delete. - -2012-08-21 Oleg Endo - - * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t, - cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond, - truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a, - ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei, - call_valuei_pcrel, sibcalli_pcrel, sibcall_compact, - sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1, - casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1, - sp_switch_2, stack_protect_set_si, stack_protect_set_si_media, - stack_protect_set_di_media, stack_protect_test_si, - stack_protect_test_si_media, stack_protect_test_di_media): Convert to - multi-line asm output strings. - (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm - output. - (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli, - call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a, - bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a, - bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr): - Use tab char instead of '\\t'. - (iordi3): Use braced string. - (*movsi_pop): Use tab chars instead of spaces. - -2012-08-21 Oleg Endo - - PR target/39423 - * config/sh/sh.md (*movhi_index_disp): Add support for SH2A - movu.w insn. - -2012-08-21 H.J. Lu - - PR middle-end/54332 - * df-scan.c (df_bb_verify): Restore df_free_collection_rec call - inside the insn traversal loop. - - * vec.h (vec_reserve): Remove the stack allocation check. - -2012-08-21 Marc Glisse - - * fold-const.c (fold_ternary_loc): Detect identity permutations. - Canonicalize permutations more. - * tree-ssa-forwprop.c (is_combined_permutation_identity): New function. - (simplify_permutation): Likewise. - (ssa_forward_propagate_and_combine): Call it. - -2012-08-21 Richard Guenther - - * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free - the affine expansion cache. - * tree-ssa-dom.c (free_expr_hash_elt_contents): New function, - split out from ... - (free_expr_hash_elt): ... this one. - (record_cond): Properly free a not needed hashtable element. - (lookup_avail_expr): Likewise. - * tree-into-ssa.c (init_ssa_renamer): Specify a free function - for the var_infos hashtable. - (update_ssa): Likewise. - -2012-08-21 Richard Guenther - - * alloc-pool.c (pool_alloc): Fix valgrind annotation. - * tree.h: Fix typo and complete flags documentation. - -2012-08-21 Richard Guenther - - * tree.h (struct tree_base): Add union to make it possible to - re-use the upper 4 bytes for tree codes that do not need as - many flags as others. Move visited and default_def_flag to - common bits section in exchange for saturating_flag and - unsigned_flag. Add SSA name version and tree vec length - fields here. - (struct tree_vec): Remove length field here. - (struct tree_ssa_name): Remove version field here. - -2012-08-20 Jan Hubicka - - PR fortran/48636 - * ipa-inline.c (want_inline_small_function_p): Take loop_iterations - hint. - (edge_badness): Likewise. - * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations. - (inline_summary): Add loop_iterations. - * ipa-inline-analysis.c: Include tree-scalar-evolution.h. - (dump_inline_hints): Dump loop_iterations. - (reset_inline_summary): Free loop_iterations. - (inline_node_duplication_hook): Update loop_iterations. - (dump_inline_summary): Dump loop_iterations. - (will_be_nonconstant_expr_predicate): New function. - (estimate_function_body_sizes): Analyze loops. - (estimate_node_size_and_time): Set hint loop_iterations. - (inline_merge_summary): Merge loop iterations. - (inline_read_section): Stream in loop_iterations. - (inline_write_summary): Stream out loop_iterations. - -2012-08-20 Oleg Endo - - PR target/54089 - * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits. - (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split. - * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function. - * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it. - -2012-08-20 Oleg Endo - - PR target/51244 - * config/sh/sh.md (*cset_zero): New insns. - -2012-08-20 Mark Wielaard - - * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc. - * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc. - (add_AT_low_high_pc): New function. - (AT_lbl): Handle dw_val_class_high_pc. - (print_die): Likewise. - (attr_checksum): Likewise. - (attr_checksum_ordered): Likewise. - (same_dw_val_p): Likewise. - (size_of_die): Likewise. - (value_format): Likewise. - (output_die): Likewise. - (gen_subprogram_die): Use add_AT_low_high_pc. - (add_high_low_attributes): Likewise. - (dwarf2out_finish): Likewise. - -2012-08-20 Jakub Jelinek - - PR rtl-optimization/54294 - * fwprop.c (all_uses_available_at): Ignore debug insns in between - def_insn and target_insn when checking whether the shortcut is - possible. - -2012-08-20 Eric Botcazou - - * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define. - -2012-08-20 Patrick Marlier - - PR middle-end/53992 - * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION. - -2012-08-20 Richard Earnshaw - - PR tree-ssa/54295 - * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code - declaration and setter. - -2012-08-20 Richard Earnshaw - - PR tree-ssa/54295 - * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p): - New function. - (is_widening_mult_rhs_p): Use it. - -2012-08-20 Joseph Myers - - * configure.ac (ffs): Check for declaration. - * configure, config.in: Regenerate. - -2012-08-20 Richard Guenther - - * tree-flow.h (register_new_name_mapping): Remove. - * tree-into-ssa.c (register_new_name_mapping): Likewise. - (add_new_name_mapping): Do not push/pop timevar here. - (create_new_def_for): Instead do it here. Initialize - update-ssa here, handle a NULL def. - * tree-vrp.c (build_assert_expr_for): Use create_new_def_for. - -2012-08-20 Richard Guenther - - PR tree-optimization/54327 - * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains - if the use is registered for SSA update. - -2012-08-20 Jakub Jelinek - - PR tree-optimization/54321 - * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1 - as second argument to tree_low_cst call on val2. - -2012-08-20 Richard Guenther - - * gimple.h (gimple_statement_base): Annotate with GTY chain_next. - -2012-08-20 Richard Guenther - - PR bootstrap/54326 - * genoutput.c (note_constraint): Properly use CONST_CAST. - -2012-08-19 Nick Clifton - - PR target/54306 - * config/arm/mmintrin.h: Remove spurious #endif. - -2012-08-18 Jan-Benedict Glaw - - * config/avr/avr-log.c (avr_log_vadump): Properly use - int-promoted enum values. - * config/avr/avr.h (struct mcu_type_s): Change `arch' from - int to enum avr_arch. - * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer. - -2012-08-18 Jan Hubicka - - PR lto/45375 - * ipa-inline.c (want_inline_small_function_p): Bypass - inline limits for hinted functions. - (edge_badness): Dump hints; decrease badness for hinted funcitons. - * ipa-inline.h (enum inline_hints_vals): New enum. - (inline_hints): New type. - (edge_growth_cache_entry): Add hints. - (dump_inline_summary): Update. - (dump_inline_hints): Declare. - (do_estimate_edge_hints): Declare. - (estimate_edge_hints): New inline function. - (reset_edge_growth_cache): Update. - * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges. - * ipa-inline-analysis.c (dump_inline_hints): New function. - (estimate_edge_devirt_benefit): Return true when function should be - hinted. - (estimate_calls_size_and_time): New hints argument; set it when - devritualization happens. - (estimate_node_size_and_time): New hints argument. - (do_estimate_edge_time): Cache hints. - (do_estimate_edge_growth): Update. - (do_estimate_edge_hints): New function - -2012-08-18 John David Anglin - - PR middle-end/53823 - * expmed.c (expand_mult): Skip synth_mult for negative coefficients - if the mode is larger than a wide int and it is too costly to multiply - by a positive multiplier and negate the result. - -2012-08-18 Steven Bosscher - - * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell - valgrind not to worry about reading from unitialized memory. - -2012-08-18 Steven Bosscher - - PR middle-end/54313 - * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is - freed when its obstack is release. - -2012-08-18 Andrew Pinski - - * alloc-pool.c (pool_alloc): Add valgrind markers. - (pool_free): Likewise. - -2012-08-17 Walter Lee - - * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define. - (FEEDBACK_ENTER): Define. - (FEEDBACK_REENTER): Define. - (FEEDBACK_ENTRY): Define. - * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define. - (FEEDBACK_ENTER): Define. - (FEEDBACK_REENTER): Define. - (FEEDBACK_ENTRY): Define. - -2012-08-17 H.J. Lu - Gary Funck - - PR target/20020 - * config/i386/i386.c (ix86_member_type_forces_blk): New function. - (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. - * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro. - -2012-08-17 Marc Glisse - - * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of - a concatenation. - -2012-08-17 H.J. Lu - - * stor-layout.c (compute_record_mode): Replace - MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk. - (layout_type): Likewise. - * system.h: Poison MEMBER_TYPE_FORCES_BLK. - * target.def (member_type_forces_blk): New target hook. - * targhooks.c (default_member_type_forces_blk): New. - * targhooks.h (default_member_type_forces_blk): Likewise. - * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed. - (TARGET_MEMBER_TYPE_FORCES_BLK): New hook. - * doc/tm.texi: Regenerated. - * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed. - * config/ia64/ia64.c (ia64_member_type_forces_blk): New function. - (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. - * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. - (rs6000_member_type_forces_blk): New function. - * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed. - * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function. - (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. - * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed. - -2012-08-17 Diego Novillo - - PR bootstrap/54281 - * configure.ac: Add libintl.h to AC_CHECK_HEADERS list. - * config.in: Regenerate. - * configure: Regenerate. - * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set. - -2012-08-17 Richard Guenther - - * bitmap.h (struct bitmap_element_def): GTY annotate next/prev. - (struct bitmap_head_def): GTY skip current field. - -2012-08-17 Steven Bosscher - - PR middle-end/54146 - * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack. - (memref_free): Don't free the bitmaps individually here. - (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack. - (analyze_memory_references): Likewise. - (tree_ssa_lim_initialize): Initialize the new bitmap obstack. - (tree_ssa_lim_finalize): Release it. - * dse.c (dse_bitmap_obstack): New bitmap obstack. - (dse_obstack): New obstack. - (get_group_info): Allocate the bitmaps on the new bitmap obstack. - (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize - the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table. - (record_store): Allocate regs_set on reg_obstack. - (dse_step1): Allocate regs_live on reg_obstack. - (dse_step2_init): Allocate offset_map_n and offset_map_p on the new - obstack. - (dse_step3_scan): Allocate bitmaps on the new bitmap obstack. - (dse_step3): Likewise. - (dse_confluence_0): Likewise. - (dse_confluence_n): Likewise. - (dse_transfer_function): Likewise. - (dse_step7): Destroy the new obstacks, and everything allocated on - them, in one big sweep. - (rest_of_handle_dse): Update. - * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack. - (add_stack_var_conflict): Allocate bitmaps on it. - (add_scope_conflicts_1): Likewise. - (add_scope_conflicts): Likewise. - (update_alias_info_with_stack_vars): Likewise. - (init_vars_expansion): Move TREE_USED fiddling expand_used_vars. - Initialize the new bitmap obstack. - (fini_vars_expansion): Release it. - (estimated_stack_frame_size): Use init_vars_expansion to set things up - and always clean up at the end. - (expand_used_vars): Do the TREE_USED trickery here. Always call - fini_vars_expansion. - * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout - arrays of bitmap_head to avoid one indirection per bitmap access. - (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear, - make_live_on_entry): Update. - * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'. - (liveness_bitmap_obstack): New bitmap obstack. - (remove_unused_locals): Use it to allocate all bitmaps on. Update - for livein/liveout changes in tree-ssa-live.h. - (delete_tree_live_info): Release the bitmap obstack. - (loe_visit_block, live_worklist, set_var_live_on_entry, - calculate_live_on_exit, dump_live_info): Update. - (calculate_live_ranges): Initialize the bitmap. - * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack. - (new_temp_expr_table): Allocate bitmap on it. - (make_dependent_on_partition, add_to_partition_kill_list, - add_dependence, process_replaceable): Likewise. - (find_replaceable_exprs): Initialize and release the new obstack here. - * df-problems.c (df_lr_add_problem): Allocate persistent bitmap - for out_of_date_transfer_functions on df_bitmap_obstack. - (df_live_add_problem): Likewise. - (df_chain_add_problem): Likewise. - (df_word_lr_add_problem): Likewise. - -2012-08-17 Nick Clifton - - * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison. - (branch_true): Likewise. - (branch_false): Likewise. - - * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison. - - * config/iq2000/iq2000.md (cbranchsi4): Remove mode from - comparison and label. - (branch_zero): Likewise. - (branch_zero_inverted): Likewise. - (branch_equality): Likewise. - (branch_equality_inverted): Likewise. - (extend-and-compare): Disable until reload issues can be resolved. - * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode - for comparison. - (iq2000_function_arg_advance): Remove CONST_CAST2. - - * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile - mep-pragma.c. - -2012-08-17 Georg-Johann Lay - - * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile - gen-avr-mmcu-texi.c. - -2012-08-17 Richard Earnshaw - - * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction. - * arm.c (thumb2_reorg): Don't convert an ADD instruction that's - already 16 bits. - -2012-08-17 Richard Guenther - - * hash-table.h (class hash_table): Use a descriptor template - argument instead of decomposed element type and support functions. - (struct pointer_hash): New generic typed pointer-hash. - (struct typed_free_remove, struct typed_noop_remove): Generic - hash_table support pieces. - * coverage.c (struct counts_entry): Add hash_table support members. - * tree-ssa-ccp.c (gimple_htab): Use pointer_hash. - * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic - SSA name by SSA_NAME_VAR hash. - (coalesce_ssa_name): Use it. - * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support. - (expression_to_id): Adjust. - (struct expr_pred_trans_d): Add hash_table support. - (phi_translate_table): Adjust. - (phi_trans_lookup): Likewise. - (phi_trans_add): Likewise. - (do_regular_insertion): Likewise. - * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support. - (same_succ_htab): Adjust. - (find_same_succ_bb): Likewise. - (find_same_succ): Likewise. - (update_worklist): Likewise. - * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table - support. - (redirection_data): Adjust. - -2012-08-17 Richard Guenther - - * params.def (integer-share-limit): Decrease from 256 to 251, - add rationale. - -2012-08-17 Richard Guenther - - * tree-sra.c (modify_function): Free redirect_callers vector. - * ipa-split.c (split_function): Free args_to_pass vector. - * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free - body_cost_vec properly. - (vect_enhance_data_refs_alignment): Likewise. - * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate - vec_oprnds. - (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS. - * tree-vect-slp.c (vect_free_slp_instance): Free the instance. - (vect_analyze_slp_instance): Free everything. - (destroy_bb_vec_info): Free the SLP instances. - -2012-08-17 Iain Sandoe - - * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes - to vec.h. - -2012-08-17 Jakub Jelinek - - * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document. - -2012-08-16 Sandra Loosemore - - * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr) - (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph) - (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w) - (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr) - (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute. - -2012-08-16 Oleg Endo - - PR target/54236 - * config/sh/sh.md (addc): Add commutative modifier. - (*addc, *minus_plus_one, *subc, *negc): New insns and splits. - -2012-08-16 Oleg Endo - - PR target/39423 - * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle - potential T_REG clobber. Convert zero extending split to - insn_and_split. - -2012-08-16 Oleg Endo - - PR target/54089 - * config/sh/sh.md (ashlsi3_d): Do not split if it would result - in a T_REG clobber. Correct comment. - (ashlsi3_n): Correct comment. - -2012-08-16 Hans-Peter Nilsson - - PR middle-end/54261 - * optabs.c (expand_atomic_fetch_op): Save and restore code when - retrying after failed attempt. - -2012-08-16 Yuri Rumyantsev - - * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add - additional argument. - * config/i386/i386.md (ix86_split_lea_for_addr) : Add - additional argument curr_insn. - * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index - register first, depending on their defintion distances. - (ix86_lea_outperforms): Prefer LEA only if split cost exceeds - AGU stall. - (find_nearest_reg-def): New function. Find register with - nearest definition. - -2012-08-16 Walter Lee - - * config.gcc (tilegx-*-linux*): Add feedback.h. - (tilepro-*-linux*): Likewise. - * config/tilegx/feedback.h: New file. - * config/tilepro/feedback.h: New file. - -2012-08-16 Diego Novillo - - Revert - - PR bootstrap/54281 - * double-int.h: Move including of gmp.h ... - * system.h: ... here. - * realmpfr.h: Do not include gmp.h. - * tree-ssa-loop-niter.c: Do not include gmp.h. - -2012-08-16 Segher Boessenkool - - * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment. - -2012-08-16 Richard Guenther - - PR middle-end/54146 - * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the - exit vector. - * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK. - * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix. - * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc. - * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed. - * tree-ssa-loop-im.c (analyze_memory_references): Adjust. - (tree_ssa_lim_finalize): Free all mem_refs. - * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free - scc when bailing out. - * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK. - * ira-build.c (loop_with_complex_edge_p): Free loop exit vector. - * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use - FOR_EACH_LOOP_BREAK. - -2012-08-16 Diego Novillo - - PR bootstrap/54281 - * double-int.h: Move including of gmp.h ... - * system.h: ... here. - * realmpfr.h: Do not include gmp.h. - * tree-ssa-loop-niter.c: Do not include gmp.h. - -2012-08-16 Steven Bosscher - - PR middle-end/54146 - * tree-flow.h (compute_global_livein): Remove prototype. - * tree-into-ssa.c (compute_global_livein): Remove function. - * tree-ssa-loop-manip.c: Include gimple-pretty-print.h. - (find_sibling_superloop): New function. - (compute_live_loop_exits): New function. - (add_exit_phis_edge): Rename to add_exit_phi. Do not allow - inserting a PHI in a block that is not a loop exit for VAR. - Add dumping if TDF_DETAILS. - (add_exit_phis_var): Rewrite. - (add_exit_phis): Update. - (get_loops_exits): Rewrite to return an array of per-loop exits - rather than one bitmap with all loop exits. - (find_uses_to_rename_bb): Ignore virtual PHI nodes. - (rewrite_into_loop_closed_ssa): Update. - -2012-08-16 Nick Clifton - - * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes - before passing it to ASM_OUTPUT_LIMITED_STRING. - - * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro. - - * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER). - * config/avr/avr.c (avr_legitimize_reload_address): Add casts - for reload_type enums. - (DEF_BUILTIN): Cast the icode to enum insn_code. - -2012-08-15 Segher Boessenkool - - * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default) - instead of -mppc. - * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto. - -2012-08-15 Segher Boessenkool - - * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. - (RS6000_CALL_GLUE): Adjust for single assembler syntax. - * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. - * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. - * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. - * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. - * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto. - * config/rs6000/darwin.md (whole file): Adjust to single - assembler syntax. - * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. - * config/rs6000/default64.h (TARGET_DEFAULT): Ditto. - * config/rs6000/dfp.md: (whole file): Adjust to single - assembler syntax. - * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. - * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto. - * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto. - * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto. - * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto. - * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK. - * config/rs6000/rs6000-tables.opt: Regenerate. - * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete. - (num_insns_constant_wide): Adjust comments. - (whole file): Adjust to single assembler syntax. - (output_cbranch): Adjust comment. - * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete. - * config/rs6000/rs6000.md: (whole file): Adjust to single - assembler syntax. - * config/rs6000/rs6000.opt (mnew-mnemonics): Delete. - (mold-mnemonics): Delete. - * config/rs6000/spe.md: (whole file): Adjust to single - assembler syntax. - * config/rs6000/sync.md: (whole file): Adjust to single - assembler syntax. - * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. - (ASM_OUTPUT_REG_PUSH): Adjust. - (ASM_OUTPUT_REG_POP): Adjust. - * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. - * config/rs6000/vsx.md: (whole file): Adjust to single - assembler syntax. - * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. - * doc/invoke.texi: Adjust documentation to reflect the - removal of -mnew-mnemonics and -mold-mnemonics. - -2012-08-15 Segher Boessenkool - - * common/config/rs6000/rs6000-common.c (rs6000_handle_option): - Delete handling for -mno-powerpc and -mpowerpc. - * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar. - (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom. - * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto. - * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC. - * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto. - * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto. - * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto. - * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto. - * config/rs6000/default64.h (TARGET_DEFAULT): Ditto. - * config/rs6000/driver-rs6000.c (asm_names): Delete handling - for -mcpu=common and -mpowerpc. - * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC. - * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto. - * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto. - * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto. - * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto. - * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): - Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC. - * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust. - (rs6000_cpu_cpp_builtins): Adjust. - * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC. - (rs6000_builtin_mask_calculate): Adjust. - (rs6000_emit_move): Delete code for ! TARGET_POWERPC. - (rs6000_init_libfuncs): Ditto. - (rs6000_output_function_prologue): Ditto. - (rs6000_opt_masks): Delete MASK_POWERPC. - (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC. - * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc. - (RS6000_BTM_POWERPC): Delete. - (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC. - * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for - TARGET_POWERPC always on. - (extendqihi2 patterns): Similar. - (various unnamed subtract patterns): Similar. - (bswaphi2 patterns): Similar. - (divmodsi4): Similar. - (udiv3): Similar. - (div3 patterns): Similar. - (udivmodsi4): Similar. - (mulhcall): Delete. - (mullcall): Delete. - (divss_call): Delete. - (divus_call): Delete. - (quoss_call): Delete. - (quous_call): Delete. - (insvsi patterns): Adjust. - (addsf3 patterns): Adjust. - (subsf3 patterns): Adjust. - (mulsf3 patterns): Adjust. - (divsf3 patterns): Adjust. - (*fmasf4_fpr): Adjust. - (*fmssf4_fpr): Adjust. - (*nfmasf4_fpr): Adjust. - (*nfmssf4_fpr): Adjust. - (*floatunssidf2_internal): Adjust. - (fix_truncsi2_internal): Adjust. - (fctiwz_): Adjust. - (mulsidi3 patterns): Adjust. - (smulsi3_highpart patterns): Adjust. - (umulsi3_highpart patterns): Adjust. - (fix_trunctfsi2 patterns): Adjust. - (prefetch): Adjust. - * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option. - (mno-powerpc): Delete. - * config/rs6000/sync.md (load_locked): Adjust. - (store_conditional): Adjust. - (atomic_compare_and_swap): Adjust. - (atomic_exchange): Adjust. - (atomic_): Adjust. - (atomic_nand): Adjust. - (atomic_fetch_): Adjust. - (atomic_fetch_nand): Adjust. - (atomic__fetch): Adjust. - (atomic_nand_fetch): Adjust. - * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC. - * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto. - * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto. - * doc/invoke.texi: Adjust documentation. - -2012-08-15 Segher Boessenkool - - * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New. - -2012-08-15 Segher Boessenkool - - * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo. - * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto. - * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto. - * config/rs6000/driver-rs6000.c (asm_names): Ditto. - -2012-08-15 Segher Boessenkool - - PR target/54142 - * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default) - instead of -mcom. - * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto. - -2012-08-15 Sandra Loosemore - Maxim Kuvyrkov - Julian Brown - MIPS Technologies, Inc. - - * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu) - (dspalusat): Add insn types. - * config/mips/mips-dsp.md (add3) - (mips_add_s_) - (sub3, mips_sub_s_, mips_addsc) - (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_) - (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w) - (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr) - (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla) - (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr) - (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_) - (mips_shll_s_, mips_shll_s_, mips_shrl_qb) - (mips_shra_ph, mips_shra_r_, mips_bitrev, mips_insv) - (mips_repl_qb, mips_repl_ph) - (mips_cmp_eq_) - (mips_cmp_lt_) - (mips_cmp_le_, mips_cmpgu_eq_qb) - (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_) - (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu. - (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr) - (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph) - (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to - dspmac. - (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to - dspmacsat. - (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp): - Set type to accext. - (mips_shilo, mips_mthlip): Set type to accmod. - * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph) - (mips_adduh_r_qb): Set type to dspalusat. - (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign) - (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb) - (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w) - (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph) - (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph) - (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph) - (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu. - (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph) - (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to - dspmac. Set accum_in attribute. - (mips_subu_s_ph): Set type to dspalusat. - (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat. - Set accum_in attribute. - * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype. - * config/mips/mips.c (dspalu_bypass_table): New. - (mips_dspalu_bypass_p): New. - * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat) - (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations. - (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat) - (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses. - * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac) - (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn - reservations. - (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3) - (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses. - -2012-08-15 Ulrich Weigand - - * config/spu/spu.c: Include "cfgloop.h". - (spu_machine_dependent_reorg): Call loop_optimizer_init and - loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth. - Directly compare loop_father values where appropriate. - * config/spu/t-spu-elf (spu.o): Update dependencies. - -2012-08-15 H.J. Lu - - * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H). - -2012-08-15 Bill Schmidt - - PR tree-optimization/54245 - * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function. - (legal_cast_p): Split out logic to legal_cast_p_1. - (analyze_increments): Avoid introducing multiplies in smaller types. - -2012-08-15 Bill Schmidt - - PR tree-optimization/54240 - * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for - existence of conditional move with given mode. - -2012-08-15 Richard Guenther - - * double-int.h (double_int::from_unsigned): Rename to ... - (double_int::from_uhwi): ... this. - (double_int::from_signed): Rename to ... - (double_int::from_shwi): ... this. - (double_int::to_signed): Rename to ... - (double_int::to_shwi): ... this. - (double_int::to_unsigned): Rename to ... - (double_int::to_uhwi): ... this. - (double_int::fits_unsigned): Rename to ... - (double_int::fits_uhwi): ... this. - (double_int::fits_signed): Rename to ... - (double_int::fits_shwi): ... this. - (double_int::fits): Rename to ... - (double_int::fits_hwi): ... this. - * double-int.c: Likewise. - -2012-08-15 Steven Bosscher - - * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE, - TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS, - TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI, - TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove. - (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING, - TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New. - * timevar.c (timevar_print): Make printing width of timevar names - more flexible, but enforce maximum length. - * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING. - (pass_ipa_inline): Use TV_IPA_INLINING. - * ipa-inline-analysis.c (pass_inline_parameters): Use - TV_INLINE_HEURISTICS. - * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass. - (pass_tree_loop_done): Likewise. - * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH. - * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT. - (loop_optimizer_finalize): Push/pop TV_LOOP_FINI. - -2012-08-15 Ramana Radhakrishnan - - * config/arm/neon.md (neon_vaba VDQIW): Canonicalize operands. - (neon_vabal VDQIW): Likewise. - -2012-08-15 Ramana Radhakrishnan - - PR target/54212 - * config/arm/neon.md (vec_set_internal VD,VQ): Do not - mark as predicable. Adjust asm template. - (vec_setv2di_internal): Likewise. - (vec_extract VD, VQ): Likewise. - (vec_extractv2di): Likewise. - (neon_vget_lane_sext_internal VD, VQ): Likewise. - (neon_vset_lane_sext_internal VD, VQ): Likewise. - (neon_vdup_n VX, V32): Likewise. - (neon_vdup_nv2di): Likewise. - -2012-08-14 Maxim Kuvyrkov - - * config/mips/mips.md (define_attr accum_in): New instruction - attribute. Set it for imadd and fmadd patterns. - * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract - accumulator register. - -2012-08-14 Diego Novillo - - Merge from cxx-conversion branch. Configury. - - * configure.ac (CXX_FOR_BUILD): Define and substitute. - (BUILD_CXXFLAGS): Define. - Remove all handlers of ENABLE_BUILD_WITH_CXX. - Force all build to be with C++. - * Makefile.in (BUILD_CXXFLAGS): Use it. - Remove all handlers of ENABLE_BUILD_WITH_CXX. - * configure: Regenerate. - * config.in: Regenerate. - * doc/install.texi: Remove documentation for --enable-build-with-cxx - and --enable-build-poststage1-with-cxx. - -2012-08-14 Diego Novillo - - Merge from cxx-conversion branch. Re-implement VEC in C++. - - * vec.c (vec_heap_free): Convert into a template function. - (vec_gc_o_reserve_1): Make extern. - (vec_gc_p_reserve): Remove. - (vec_gc_p_reserve_exact): Remove. - (vec_gc_o_reserve): Remove. - (vec_gc_o_reserve_exact): Remove. - (vec_heap_o_reserve_1): Make extern. - (vec_heap_p_reserve): Remove. - (vec_heap_p_reserve_exact): Remove. - (vec_heap_o_reserve): Remove. - (vec_heap_o_reserve_exact): Remove. - (vec_stack_p_reserve): Remove. - (vec_stack_p_reserve_exact): Remove. - * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT, - VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file. - (VEC): Define to vec_t. - (vec_allocation_t): Define. - (struct vec_prefix): Move earlier in the file. - (vec_t): New template. - (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P, - DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O, - DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK, - DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'. - (DEF_VEC_A): Provide template instantiations for - GC/PCH markers that do not traverse the vector. - (vec_stack_p_reserve): Remove. - (vec_stack_p_reserve_exact): Remove. - (vec_stack_p_reserve_exact_1): Remove. - (vec_stack_o_reserve): Remove. - (vec_stack_o_reserve_exact): Remove. - (vec_stack_free): Re-write as a template function. - (vec_reserve): New template function. - (vec_reserve_exact): New template function. - (vec_heap_free): New template function if GATHER_STATISTICS is - defined. Otherwise, macro that expands to free(). - (VEC_length_1): New template function. - (VEC_length): Call it. - (VEC_empty_1): New template function. - (VEC_empty): Call it. - (VEC_address_1): New template function. - (VEC_address): Call it. - (VEC_last_1): New template function. - (VEC_last): Call it. Change return type to T&. - Change all users that used VEC_Os. - (VEC_index_1): New template function. - (VEC_index): Call it. Return a T& instead of a T*. - Update all callers that were using VEC_O before. - (VEC_iterate_1): New template function. - (VEC_iterate): Call it. - (VEC_embedded_size_1): New template function. - (VEC_embedded_size): Call it. - (VEC_embedded_init_1): New template function. - (VEC_embedded_init): Call it. - (VEC_alloc_1): New template function. - (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to - do the allocation. - (VEC_free_1): New template function. - (VEC_free): Call it. - (VEC_copy_1): New template function. - (VEC_copy): Call it. - (VEC_space_1): New template function - (VEC_space): Call it. - (VEC_reserve_1): New template function. - (VEC_reserve): Call it. - (VEC_reserve_exact_1): New template function. - (VEC_reserve_exact): Call it. - (VEC_splice_1): New template function. - (VEC_splice): Call it. - (VEC_safe_splice_1): New template function. - (VEC_safe_splice): Call it. - (VEC_quick_push_1): New template function. Create two overloads, one - accepting T, the other accepting T *. Update all callers - where T and T * are ambiguous. - (VEC_quick_push): Call it. - (VEC_safe_push_1): New template function. Create two overloads, one - accepting T, the other accepting T *. Update all callers - where T and T * are ambiguous. - (VEC_safe_push): Call it. - (VEC_pop_1): New template function. - (VEC_pop): Call it. - (VEC_truncate_1): New template function. - (VEC_truncate): Call it. - (VEC_safe_grow_1): New template function. - (VEC_safe_grow): Call it. - (VEC_safe_grow_cleared_1): New template function. - (VEC_safe_grow_cleared): Call it. - (VEC_replace_1): New template function. - (VEC_replace): Call it. Always accept T instead of T*. - Update all callers that used VEC_Os. - (VEC_quick_insert_1): New template function. - (VEC_quick_insert): Call it. - (VEC_safe_insert_1): New template function. - (VEC_safe_insert): Call it. - (VEC_ordered_remove_1): New template function. - (VEC_ordered_remove): Call it. - (VEC_unordered_remove_1): New template function. - (VEC_unordered_remove): Call it. - (VEC_block_remove_1): New template function. - (VEC_block_remove): Call it. - (VEC_lower_bound_1): New template function. - (VEC_lower_bound): Call it. - (VEC_OP): Remove. - (DEF_VEC_FUNC_P): Remove. - (DEF_VEC_ALLOC_FUNC_P): Remove. - (DEF_VEC_NONALLOC_FUNCS_P): Remove. - (DEF_VEC_FUNC_O): Remove. - (DEF_VEC_ALLOC_FUNC_O): Remove. - (DEF_VEC_NONALLOC_FUNCS_O): Remove. - (DEF_VEC_ALLOC_FUNC_I): Remove. - (DEF_VEC_NONALLOC_FUNCS_I): Remove. - (DEF_VEC_ALLOC_FUNC_P_STACK): Remove. - (DEF_VEC_ALLOC_FUNC_O_STACK): Remove. - (DEF_VEC_ALLOC_FUNC_I_STACK): Remove. - (vec_reserve_exact): New template function. - - * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove. - * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP]. - (typedef_name): Emit vec_t instead of VEC_C1_C2. - (def_vec_alloc): Remove. Update all callers. - * gengtype.c (filter_type_name): New. - (output_mangled_typename): Call it. - (write_func_for_structure): Likewise. - (write_types): Likewise. - (write_root): Likewise. - (write_typed_alloc_def): Likewise. - (note_def_vec): Emit vec_t instead of VEC_TYPE_NAME_base. - (note_def_vec_alloc): Remove. - * gengtype.h (note_def_vec_alloc): Remove. - (DEFVEC_ALLOC): Remove token code. - - * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec - inside the insn traversal loop. - * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK. - * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP. - * reg-stack.c (stack): Rename to STACK_PTR. Update all users. - * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users. - - * config/bfin/bfin.c (hwloop_optimize): Update some calls to - VEC_* for vectors of non-pointers. - * config/c6x/c6x.c (try_rename_operands): Likewise. - (reshuffle_units): Likewise. - * config/mips/mips.c (mips_multi_start): Likewise. - (mips_multi_add): Likewise. - (mips_multi_copy_insn): Likewise. - (mips_multi_set_operand): Likewise. - * hw-doloop.c (discover_loop): Likewise. - (discover_loops): Likewise. - (reorg_loops): Likewise. - -2012-08-14 Diego Novillo - - Merge from cxx-conversion branch. C++ support in gengtype. - - * coretypes.h (gt_pointer_operator): Move from ... - * ggc.h: ... here. - * doc/gty.texi: Document support for C++ templates and - user-provided markers. - * gengtype-lex.l: Update copyright year. - Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I. - * gengtype-parse.c: Update copyright year. - (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I. - (require_template_declaration): New. - (typedef_name): Call it. - (type): Replace IS_UNION with KIND. Replace all users. - (def_vec): Remove. Update all users. - * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT. - (write_state_user_struct_type): New. - (write_state_type): Call it. - (read_state_user_struct_type): New. - (read_state_type): Call it. - * gengtype.c: Update copyright year. - (dump_pair): Move declaration to the top. - (dump_type): Likewise. - (dump_type_list): Likewise. - (dbgprint_count_type_at): Handle TYPE_USER_STRUCT. - (create_user_defined_type): New. - (resolve_typedef): Call it. - (new_structure): Replace argument ISUNION with KIND. - Change users to refer to KIND directly. - Update all callers. - (find_structure): Likewise. - (set_gc_used_type): Handle TYPE_USER_STRUCT. - (create_file): Update HDR to include new copyright year. - (struct walk_type_data): Add field IN_PTR_FIELD. - (output_mangled_typename): Handle TYPE_USER_STRUCT. - (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER. - Clear it afterwards. - Handle TYPE_USER_STRUCT. - (write_types_process_field): Handle TYPE_USER_STRUCT. - (get_type_specifier): Move earlier in the file. - (write_type_decl): New. - (write_marker_function_name): New. - (write_user_func_for_structure_ptr): New. - (write_user_func_for_structure_body): New. - (write_user_marking_functions): New. - (write_func_for_structure): Call write_marker_function_name - and write_type_decl. - Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user - function directly. - Call write_user_marking_functions on TYPE_USER_STRUCTs. - (write_types_local_user_process_field): New. - (write_pch_user_walking_for_structure_body): New. - (write_pch_user_walking_functions): New. - (write_types_local_process_field): Handle TYPE_USER_STRUCT. - (write_local_func_for_structure): Do not call walk_type for - TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly. - Call write_pch_user_walking_functions for TYPE_USER_STRUCTs. - (write_root): Handle TYPE_USER_STRUCT. - (vec_prefix_type): Remove. Update all users. - (note_def_vec): Remove. Update all users. - (dump_typekind): Handle TYPE_USER_STRUCT. - (dump_type): Initialize SEEN_TYPES, if needed. - Handle TYPE_USER_STRUCT. - (dump_everything): Do not initialize SEEN_TYPES. - * gengtype.h: Update copyright year. - (enum typekind): Add TYPE_USER_STRUCT. - (union_or_struct_p): Rename from UNION_OR_STRUCT_P. - Convert into function. - Add an overload taking const_type_p. - Update all callers. - (new_structure): Change second field to type enum typekind. - Update all users. - (find_structure): Likewise. - (note_def_vec): Remove. - (DEFVEC_OP): Remove. - (DEFVEC_I): Remove. - * ggc-page.c (gt_ggc_mx): Add entry points for marking - 'const char *&', 'unsigned char *&' and 'unsigned char&'. - * ggc-zone.c (gt_ggc_mx): Add entry points for marking - 'const char *&' and 'unsigned char *&'. - * stringpool.c (gt_pch_nx): Add entry points for marking - 'const char *&', 'unsigned char *&' and 'unsigned char&'. - Add an entry point for the overload taking arguments 'unsigned char - *', 'gt_pointer_operator' and 'void *'. - * vec.h (struct vec_prefix): Remove GTY marker. - (struct vec_t): Remove GTY((length)) attribute from field 'vec'. - (gt_ggc_mx (vec_t *)): New template function. - (gt_pch_nx (vec_t *)): New template function. - (gt_pch_nx (vec_t *, gt_pointer_operator, void *)): New template - function. - (gt_pch_nx (vec_t *, gt_pointer_operator, void *)): New template - function. - - * basic-block.h (struct edge_def): Mark GTY((user)). - Remove all GTY markers from fields. - (gt_ggc_mx): Declare. - (gt_pch_nx): Declare. - * tree-cfg.c (gt_ggc_mx): New. - (gt_pch_nx): New. - - * gengtype-lex.l (USER_GTY): Add pattern for "user". - * gengtype-parse.c (option): Handle USER_GTY. - (opts_have): New. - (type): Call it. - If the keyword 'user' is used, do not walk the fields - of the structure. - * gengtype.h (USER_GTY): Add. - * doc/gty.texi: Update. - -2012-08-14 Lawrence Crowl - - Merge cxx-conversion branch. Implement C++ hash table. - - * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c. - * hash-table.c: Likewise. - * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h. - (static htab_t same_succ_htab): Change type to hash_table; - move specification of helper functions from create call to declaration. - Change users to invoke member functions. - (same_succ_print_traverse): Make extern ssa_.... Change callers. - Remove void* casting. - (same_succ_hash): Likewise. - (same_succ_equal): Likewise. - (same_succ_delete): Likewise. - * tree-ssa-threadupdate.c: Include hash-table.h. - (struct local_info): Rename to ssa_local_info_t to avoid overloading - the type name local_info with the variable name local_info. - (static htab_t redirection_data): Change type to hash_table. - Move specification of helper functions from create call to declaration. - Change users to invoke member functions. - (redirection_data_hash): Make extern ssa_.... Change callers. - Remove void* casting. - (redirection_data_eq): Likewise. - (fix_duplicate_block_edges): Likewise. - (create_duplicates): Likewise. - (fixup_template_block): Likewise. - (redirect_edges): Likewise. - (lookup_redirection_data): Change types associated with the hash table - from void* to their actual type. Remove unnecessary casts. - * tree-ssa-ccp.c: Include hash-table.h. - (typedef gimple_htab): New. Uses hash_table. Replace specific uses - of htab_t with gimple_htab. Change users to invoke member functions. - Move specification of helper functions from create call to declaration. - * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h. - (hash_ssa_name_by_var): Make extern. Remove void* casting. - (eq_ssa_name_by_var): Likewise. - (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash - to hash_table. Change users to invoke member functions. - Move specification of helper functions from create call to declaration. - * coverage.c: Include hash-table.h instead of hashtab.h. - (static htab_t counts_hash): Change type to hash_table; - move specification of helper functions from create call to declaration. - Change users to invoke member functions. - (htab_counts_entry_hash): Make extern. Rename with coverage_... instead - of htab_... Remove void* casting. - (htab_counts_entry_eq): Likewise. - (htab_counts_entry_del): Likewise. - * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h. - (static htab_t expression_to_id): Change type to hash_table. - Move specification of helper functions from create call to declaration. - Change users to invoke member functions. - (static htab_t phi_translate_table): Likewise. - (pre_expr_eq): Make extern ssa_.... Change callers. - Remove void* casting. - (pre_expr_hash): Likewise. - (expr_pred_trans_hash): Likewise. - (expr_pred_trans_eq): Likewise. - (alloc_expression_id): Change types associated with the hash table - from void* to their actual type. Remove unnecessary casts. - (lookup_expression_id): Likewise. - (phi_trans_lookup): Likewise. - (phi_trans_add): Likewise. - * stringpool.c: Rename uses of libcpp typedef hash_table to - cpp_hash_table. - * Makefile.in: Add hash-table.o to OBJS-libcommon-target. - Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H). - -2012-08-14 Lawrence Crowl - - Merge from cxx-conversion branch. Re-write double_int in C++. - - * hash-table.h - (typedef double_int): Change to struct (POD). - (double_int::make): New overloads for int to double-int conversion. - (double_int::mask): New. - (double_int::max_value): New. - (double_int::min_value): New. - (double_int::operator ++): New. - (double_int::operator --): New. - (double_int::operator *=): New. - (double_int::operator +=): New. - (double_int::operator -=): New. - (double_int::to_signed): New. - (double_int::to_unsigned): New. - (double_int::fits_unsigned): New. - (double_int::fits_signed): New. - (double_int::fits): New. - (double_int::trailing_zeros): New. - (double_int::popcount): New. - (double_int::multiple_of): New. - (double_int::set_bit): New. - (double_int::mul_with_sign): New. - (double_int::operator * (binary)): New. - (double_int::operator + (binary)): New. - (double_int::operator - (binary)): New. - (double_int::operator - (unary)): New. - (double_int::operator ~ (unary)): New. - (double_int::operator & (binary)): New. - (double_int::operator | (binary)): New. - (double_int::operator ^ (binary)): New. - (double_int::and_not): New. - (double_int::lshift): New. - (double_int::rshift): New. - (double_int::alshift): New. - (double_int::arshift): New. - (double_int::llshift): New. - (double_int::lrshift): New. - (double_int::lrotate): New. - (double_int::rrotate): New. - (double_int::div): New. - (double_int::sdiv): New. - (double_int::udiv): New. - (double_int::mod): New. - (double_int::smod): New. - (double_int::umod): New. - (double_int::divmod): New. - (double_int::sdivmod): New. - (double_int::udivmod): New. - (double_int::ext): New. - (double_int::zext): New. - (double_int::sext): New. - (double_int::is_zero): New. - (double_int::is_one): New. - (double_int::is_minus_one): New. - (double_int::is_negative): New. - (double_int::cmp): New. - (double_int::ucmp): New. - (double_int::scmp): New. - (double_int::ult): New. - (double_int::ugt): New. - (double_int::slt): New. - (double_int::sgt): New. - (double_int::max): New. - (double_int::smax): New. - (double_int::umax): New. - (double_int::min): New. - (double_int::smin): New. - (double_int::umin): New. - (double_int::operator ==): New. - (double_int::operator !=): New. - (shwi_to_double_int): Change implementation to use member function. - (double_int_minus_one): Likewise. - (double_int_zero): Likewise. - (double_int_one): Likewise. - (double_int_two): Likewise. - (double_int_ten): Likewise. - (uhwi_to_double_int): Likewise. - (double_int_to_shwi): Likewise. - (double_int_to_uhwi): Likewise. - (double_int_fits_in_uhwi_p): Likewise. - (double_int_fits_in_shwi_p): Likewise. - (double_int_fits_in_hwi_p): Likewise. - (double_int_mul): Likewise. - (double_int_mul_with_sign): Likewise. - (double_int_add): Likewise. - (double_int_sub): Likewise. - (double_int_neg): Likewise. - (double_int_div): Likewise. - (double_int_sdiv): Likewise. - (double_int_udiv): Likewise. - (double_int_mod): Likewise. - (double_int_smod): Likewise. - (double_int_umod): Likewise. - (double_int_divmod): Likewise. - (double_int_sdivmod): Likewise. - (double_int_udivmod): Likewise. - (double_int_multiple_of): Likewise. - (double_int_setbit): Likewise. - (double_int_ctz): Likewise. - (double_int_not): Likewise. - (double_int_ior): Likewise. - (double_int_and): Likewise. - (double_int_and_not): Likewise. - (double_int_xor): Likewise. - (double_int_lshift): Likewise. - (double_int_rshift): Likewise. - (double_int_lrotate): Likewise. - (double_int_rrotate): Likewise. - (double_int_cmp): Likewise. - (double_int_scmp): Likewise. - (double_int_ucmp): Likewise. - (double_int_max): Likewise. - (double_int_smax): Likewise. - (double_int_umax): Likewise. - (double_int_min): Likewise. - (double_int_smin): Likewise. - (double_int_umin): Likewise. - (double_int_ext): Likewise. - (double_int_sext): Likewise. - (double_int_zext): Likewise. - (double_int_mask): Likewise. - (double_int_max_value): Likewise. - (double_int_min_value): Likewise. - (double_int_zero_p): Likewise. - (double_int_one_p): Likewise. - (double_int_minus_one_p): Likewise. - (double_int_equal_p): Likewise. - (double_int_popcount): Likewise. - * hash-table.c - (double_int_mask): Reuse implementation for double_int::mask. - (double_int_max_value): Likewise. - (double_int_min_value): Likewise. - (double_int_ext): Likewise. - (double_int_zext): Likewise. - (double_int_sext): Likewise. - (double_int_mul_with_sign): Likewise. - (double_int_divmod): Likewise. - (double_int_sdivmod): Likewise. - (double_int_udivmod): Likewise. - (double_int_div): Likewise. - (double_int_sdiv): Likewise. - (double_int_udiv): Likewise. - (double_int_mod): Likewise. - (double_int_smod): Likewise. - (double_int_umod): Likewise. - (double_int_multiple_of): Likewise. - (double_int_lshift): Likewise. - (double_int_rshift): Likewise. - (double_int_lrotate): Likewise. - (double_int_rrotate): Likewise. - (double_int_cmp): Likewise. - (double_int_ucmp): Likewise. - (double_int_scmp): Likewise. - (double_int_max): Likewise. - (double_int_smax): Likewise. - (double_int_umax): Likewise. - (double_int_min): Likewise. - (double_int_smin): Likewise. - (double_int_umin): Likewise. - (double_int_min): Likewise. - (double_int_min): Likewise. - (double_int_min): Likewise. - (double_int_min): Likewise. - (double_int_min): Likewise. - (double_int_min): Likewise. - (double_int::alshift): New. - (double_int::arshift): New. - (double_int::llshift): New. - (double_int::lrshift): New. - (double_int::ult): New. - (double_int::ugt): New. - (double_int::slt): New. - (double_int::sgt): New. - (double_int_setbit): Reuse implementation for double_int::set_bit, - which avoids a name conflict with a macro. - (double_int_double_int_ctz): Reuse implementation for - double_int::trailing_zeros. - (double_int_fits_in_shwi_p): Reuse implementation for - double_int::fits_signed. - (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits. - (double_int_mul): Reuse implementation for binary - double_int::operator *. - (double_int_add): Likewise. - (double_int_sub): Likewise. - (double_int_neg): Reuse implementation for unary - double_int::operator -. - (double_int_max_value): Likewise. - * fixed-value.c: Change to use member functions introduced above. - -2012-08-14 Lawrence Crowl - - Merge cxx-conversion branch. Support tree macro calling from gdb. - - * tree.h (tree_check): New. - (TREE_CHECK): Use inline function above instead of __extension__. - (tree_not_check): New. - (TREE_NOT_CHECK): Use inline function above instead of __extension__. - (tree_check2): New. - (TREE_CHECK2): Use inline function above instead of __extension__. - (tree_not_check2): New. - (TREE_NOT_CHECK2): Use inline function above instead of __extension__. - (tree_check3): New. - (TREE_CHECK3): Use inline function above instead of __extension__. - (tree_not_check3): New. - (TREE_NOT_CHECK3): Use inline function above instead of __extension__. - (tree_check4): New. - (TREE_CHECK4): Use inline function above instead of __extension__. - (tree_not_check4): New. - (TREE_NOT_CHECK4): Use inline function above instead of __extension__. - (tree_check5): New. - (TREE_CHECK5): Use inline function above instead of __extension__. - (tree_not_check5): New. - (TREE_NOT_CHECK5): Use inline function above instead of __extension__. - (contains_struct_check): New. - (CONTAINS_STRUCT_CHECK): Use inline function above instead of - __extension__. - (tree_class_check): New. - (TREE_CLASS_CHECK): Use inline function above instead of __extension__. - (tree_range_check): New. - (TREE_RANGE_CHECK): Use inline function above instead of __extension__. - (omp_clause_subcode_check): New. - (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of - __extension__. - (omp_clause_range_check): New. - (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of - __extension__. - (expr_check): New. - (EXPR_CHECK): Use inline function above instead of __extension__. - (non_type_check): New. - (NON_TYPE_CHECK): Use inline function above instead of __extension__. - (tree_vec_elt_check): New. - (TREE_VEC_ELT_CHECK): Use inline function above instead of - __extension__. - (omp_clause_elt_check): New. - (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of - __extension__. - (tree_operand_check): New. - (TREE_OPERAND_CHECK): Use inline function above instead of - __extension__. - (tree_operand_check_code): New. - (TREE_OPERAND_CHECK_CODE): Use inline function above instead of - __extension__. - (TREE_CHAIN): Simplify implementation. - (TREE_TYPE): Simplify implementation. - (tree_operand_length): Move for compilation dependences. - * gdbinit.in: (macro define __FILE__): New. - (macro define __LINE__): New. - (skip "tree.h"): New. - -2012-08-14 Oleg Endo - - PR target/52933 - * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, - *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns. - * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns. - -2012-08-14 Oleg Endo - - PR target/50751 - * config/sh/constraints.md (Sra): New constraint. - * config/sh/predicates.md (simple_mem_operand, - displacement_mem_operand, zero_extend_movu_operand): New predicates. - (zero_extend_operand): Check zero_extend_movu_operand for SH2A. - * config/sh/sh.md (*zero_extendqisi2_disp_mem, - *zero_extendhisi2_disp_mem): Add new insns and two new related - peephole2 patterns. - -2012-08-14 Steven Bosscher - - * graphite-scop-detection.c (create_sese_edges): Compute dominance - info before trying to fix loop structure. - * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries. - * tree-cfgcleanup.c (repair_loop_structures): Likewise. - * cfgloop.c (verify_loop_structure): Verify loop fathers. - - * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert. - (dom_convert_dir_to_idx, compute_dom_fast_query, - get_immediate_dominator, set_immediate_dominator, get_dominated_by, - redirect_immediate_dominators, nearest_common_dominator, - (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator, - iterate_fix_dominators, add_to_dominance_info, - delete_from_dominance_info): Likewise. - -2012-08-14 Richard Guenther - - * cfgexpand.c (expand_used_vars): Use virtual_operand_p. - * gimple-pretty-print.c (dump_phi_nodes): Likewise. - * gimple-streamer-out.c (output_bb): Likewise. - * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise. - (rewrite_reductions_out_of_ssa): Likewise. - (rewrite_commutative_reductions_out_of_ss): Likewise. - * ipa-split.c (verify_non_ssa_vars): Likewise. - (consider_split): Likewise. - (visit_bb): Likewise. - (split_function): Likewise. - * lto-streamer-out.c (output_ssa_names): Likewise. - * sese.c (rename_uses): Likewise. - * tree-cfg.c (replace_uses_by): Likewise. - (gimple_merge_blocks): Likewise. - (gimple_cfg2dot): Likewise. - (verify_gimple_phi): Likewise. - (replace_ssa_name): Likewise. - (move_block_to_fn): Likewise. - * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise. - * tree-if-conv.c (if_convertible_phi_p): Likewise. - (predicate_scalar_phi): Likewise. - * tree-inline.c (update_ssa_across_abnormal_edges): Likewise. - (copy_phis_for_bb): Likewise. - * tree-loop-distribution.c (generate_loops_for_partition): Likewise. - (destroy_loop): Likewise. - * tree-outof-ssa.c (eliminate_useless_phis): Likewise. - (insert_backedge_copies): Likewise. - * tree-parloops.c (transform_to_exit_first_loop): Likewise. - (gather_scalar_reductions): Likewise. - (try_create_reduction_list): Likewise. - * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph): - Likewise. - (scev_const_prop): Likewise. - * tree-ssa-ccp.c (debug_lattice_value): Likewise. - (get_default_value): Likewise. - (ccp_initialize): Likewise. - * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise. - * tree-ssa-copy.c (may_propagate_copy): Likewise. - (init_copy_prop): Likewise. - * tree-ssa-dce.c (propagate_necessity): Likewise. - (remove_dead_phis): Likewise. - (forward_edge_to_pdom): Likewise. - (eliminate_unnecessary_stmts): Likewise. - * tree-ssa-live.c (partition_view_init): Likewise. - (remove_unused_locals): Likewise. - (register_ssa_partition_check): Likewise. - * tree-ssa-loop-im.c (movement_possibility): Likewise. - (move_computations_stmt): Likewise. - * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise. - (record_invariant): Likewise. - (find_interesting_uses_outside): Likewise. - (determine_set_costs): Likewise. - * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise. - (find_uses_to_rename_use): Likewise. - (check_loop_closed_ssa_use): Likewise. - (rewrite_phi_with_iv): Likewise. - (canonicalize_loop_ivs): Likewise. - * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise. - * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise. - * tree-ssa-pre.c (make_values_for_phi): Likewise. - (compute_avail): Likewise. - (eliminate): Likewise. - * tree-ssa-propagate.c (substitute_and_fold): Likewise. - * tree-ssa-reassoc.c (phi_rank): Likewise. - * tree-ssa-strlen.c (strlen_enter_block): Likewise. - * tree-ssa-structalias.c (compute_points_to_sets): Likewise. - (ipa_pta_execute): Likewise. - * tree-ssa-tail-merge.c (same_succ_hash): Likewise. - (release_last_vdef): Likewise. - (same_phi_alternatives_1): Likewise. - (bb_has_non_vop_phi): Likewise. - (vop_phi): Likewise. - * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis): - Likewise. - * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise. - (execute_late_warn_uninitialized): Likewise. - * tree-ssa.c (verify_ssa_name): Likewise. - (verify_phi_args): Likewise. - (verify_ssa): Likewise. - * tree-stdarg.c (execute_optimize_stdarg): Likewise. - * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): - Likewise. - (slpeel_tree_peel_loop_to_edge): Likewise. - (vect_can_advance_ivs_p): Likewise. - (vect_update_ivs_after_vectorizer): Likewise. - * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise. - * tree-vrp.c (remove_range_assertions): Likewise. - * value-prof.c (gimple_divmod_values_to_profile): Likewise. - -2012-08-14 Richard Guenther - - PR tree-optimization/54146 - * tree-ssa-pre.c (do_regular_insertion): Use a VEC - indexed by pred edge index for avail. - (do_partial_partial_insertion): Likewise. - (insert_into_preds_of_block): Adjust. - -2012-08-14 Richard Guenther - - * gimplify.c (create_tmp_from_val): Mark temporary with - DECL_GIMPLE_REG_P here ... - (internal_get_tmp_var): ... instead of here. If we go into - SSA create an SSA name instead of a VAR_DECL. - (gimplify_modify_expr): Do not create SSA names here, assert - we already got them. - (force_gimple_operand_1): Create an SSA name if we go into SSA. - * sese.c (rename_uses): Simplify. - -2012-08-14 Richard Guenther - - * tree-into-ssa.c: Include diagnostic-core.h. - * Makefile.in (tree-into-ssa.o): Adjust. - -2012-08-14 Richard Guenther - - * tree-into-ssa.c (update_ssa): Verify we do not rename - symbols that are already partly in SSA form. - -2012-08-14 Jakub Jelinek - - PR middle-end/53411 - PR rtl-optimization/53495 - * ira.c (ira): Move delete_trivially_dead_insns call before - find_moveable_pseudos call. - -2012-08-13 Steven Bosscher - - * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points - of potentially huge memset overhead. - (do_partial_partial_insertion): Likewise. - * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc. - * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC - for arrays to be filled by pre_and_rev_post_order_compute. Allocate - the right number of slots, not that number plus NUM_FIXED_BLOCKS. - * tree-ssa-reassoc.c (init_reassoc): Likewise. - * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for - array used as stack. - * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for - arrays to be filled by pre_and_rev_post_order_compute. - * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for - array to be filled by dfs_enumerate_from. - (remove_path): Likewise. - (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for - array of loops that is filled on the next lines. - * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for - array of basic blocks to be returned. - (get_loop_body_in_dom_order): Likewise. - (get_loop_body_in_bfs_order): Likewise. - * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack - for all bitmaps used for rewriting into loop-closed SSA form. - (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein - bitmap at the end to release a lot of memory. - (add_exit_phis): Allocate the exits bitmap on the new obstack. - (get_loops_exits): Allocate the exits bitmap on the new obstack. - (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is - seen for the first time. - (find_uses_to_rename): Add "???" for why the whole function must - be re-scanned if changed_bbs is empty. - (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack. - Use XNEWVEC to allocate the use_blocks array. Initialize the new - obstack, and free it at the end. Remove loop over all SSA names. - (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands. - * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of - xcalloc to allocate edge_pred and edge_flag arrays. - -2012-08-13 Uros Bizjak - - * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here. - (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers - for different ABIs. - (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS. - (REG_CLASS_NAMES): Update. - (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members. - * config/i386/i386.c (ix86_conditional_register_usage): Disable - REX registers on 32bit targets. Handle bitmaps from - CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register - set from GENERAL_REGS also for 32bit targets. Do not change call - used register set for TARGET_64BIT_MS_ABI separately. - -2012-08-13 Richard Guenther - - * basic-block.h (struct basic_block): Remove loop_depth - member, move flags and index members next to each other. - * cfgloop.h (bb_loop_depth): New inline function. - * cfghooks.c (split_block): Do not set loop_depth. - (duplicate_block): Likewise. - * cfgloop.c (flow_loop_nodes_find): Likewise. - (flow_loops_find): Likewise. - (add_bb_to_loop): Likewise. - (remove_bb_from_loops): Likewise. - * cfgrtl.c (force_nonfallthru_and_redirect): Likewise. - * gimple-streamer-in.c (input_bb): Do not stream loop_depth. - * gimple-streamer-out.c (output_bb): Likewise. - * bt-load.c: Include cfgloop.h. - (migrate_btr_defs): Use bb_loop_depth. - * cfg.c (dump_bb_info): Likewise. - * final.c (compute_alignments): Likewise. - * ira.c (update_equiv_regs): Likewise. - * tree-ssa-copy.c (init_copy_prop): Likewise. - * tree-ssa-dom.c (loop_depth_of_name): Likewise. - * tree-ssa-forwprop.c: Include cfgloop.h. - (forward_propagate_addr_expr): Use bb_loop_depth. - * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. - * tree-ssa-sink.c (select_best_block): Likewise. - * ipa-inline-analysis.c: Include cfgloop.h. - (estimate_function_body_sizes): Use bb_loop_depth. - * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H). - (ipa-inline-analysis.o): Likewise. - (bt-load.o): Likewise. - -2012-08-13 Ganesh Gopalasubramanian - Jakub Jelinek - - PR driver/54210 - * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW - bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx. - * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID - 0x80000001 %ecx flags. - -2012-08-13 Richard Guenther - - * tree-cfg.c (print_loop): Avoid ICEing for loops marked for - removal and loops with multiple latches. - -2012-08-13 Jakub Jelinek - - PR c/53968 - * tree.c (integer_pow2p): Avoid undefined signed overflows. - * simplify-rtx.c (neg_const_int): Likewise. - * expr.c (fixup_args_size_notes): Likewise. - * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise. - * double-int.c (mul_double_wide_with_sign): Likewise. - (double_int_mask): Likewise. - * tree-ssa-loop-ivopts.c (get_address_cost): Likewise. - -2012-08-13 Richard Guenther - - PR tree-optimization/54200 - * tree-ssa-copyrename.c (rename_ssa_copies): Do not add - PHI results to another partition if not all PHI arguments - have the same partition. - -2012-08-12 Jan Hubicka - - * tree-pass.h (write_summary, write_optimization_summary): Remove - set and vset arguments. - * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments. - (write_node_summary_p): Likewise; use the encoder. - (ipa_reference_write_optimization_summary): Likewise. - * lto-cgraph.c (output_cgraph_opt_summary): Use encoder. - (lto_symtab_encoder_new): Initialize in_partition field. - (lto_symtab_encoder_delete): Destroy in_partition field. - (LCC_NOT_FOUND): Move to lto-streamer.h - (lto_symtab_encoder_deref): Likewise. - (lto_symtab_encoder_in_partition_p, - lto_set_symtab_encoder_in_partition): New functions. - (referenced_from_other_partition_p): Rewrite to use encoder. - (reachable_from_other_partition_p): Likewise. - (referenced_from_this_partition_p): Likewise. - (reachable_from_this_partition_p): Likewise. - (lto_output_node): Likewise. - (lto_output_varpool_node): Likewise. - (output_refs): Likewise. - (compute_ltrans_boundary): Initialize in_partition fileds of - the encoder. - (output_symtab): Likewise. - (input_refs): Match the changes in output_refs. - (output_cgraph_opt_summary_p): Remove set argument. - (output_node_opt_summary): Replace set by encoder. - (output_cgraph_opt_summary): Remove set argument; use - the encoder. - * ipa-pure-const.c (pure_const_write_summary): Remove set and vset - arguments; use the encoder. - * lto-streamer-out.c (lto_output): Remove set and vset argument; use - the encoder. - (produce_symtab): Likewise. - * ipa-inline.h (inline_write_summary): Remove set and vset arguments. - * ipa-inline-analysis.c (inline_write_summary): Likewise. - * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument; - use encoder. - * ipa-prop.h (ipa_prop_write_jump_functions): Likewise. - * passes.c (ipa_write_summaries_2): Remove set and vset arguments. - (ipa_write_summaries_1): Update. - (ipa_write_optimization_summaries_1): Likewise. - (ipa_write_optimization_summaries): Likewise. - * lto-streamer.h (lto_symtab_encoder_t): Add in_partition. - (lto_symtab_encoder_iterator): New type. - (lto_symtab_encoder_deref): Make inline. - (output_symtab, referenced_from_other_partition_p, - reachable_from_other_partition_p, referenced_from_this_partition_p, - reachable_from_this_partition_p): Update. - (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node, - lsei_varpool_node): New inline functions. - (LCC_NOT_FOUND): New macro. - (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition, - lsei_start_in_partition, lsei_next_function_in_partition, - lsei_start_function_in_partition, lsei_next_variable_in_partition, - lsei_start_variable_in_partition): New inline functions. - -2012-08-12 Oleg Endo - - * config/sh/sh.md (prefetch): Simplify expander. Fix condition to - allow SH3. - (*prefetch_media): Move insn below expander. - (*prefetch): Fix condition to allow SH3. - -2012-08-12 Oleg Endo - - PR target/51244 - * config/sh/sh.md: Add splits for inverted compare and branch - opportunities. - (*cmpeqsi_t): New insn. - (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives. - (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in - replacement insn list and not in the preparation statements. - (clrt, sett): Add mt_group attribute. - -2012-08-12 Marc Glisse - - PR middle-end/54193 - * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments. - -2012-08-12 Oleg Endo - - PR target/39423 - * config/sh/predicates.md (mem_index_disp_operand): Check for - arith_reg_operand instead of REG_P. - -2012-08-11 Bernd Schmidt - - * reload1.c (replaced_subreg, gen_reload): Add - SECONDARY_MEMORY_NEEDED ifdefs as necessary. - -2012-08-11 Jan Hubicka - - * lto-section-in.c (lto_section_name): Do not use "symtab" as part of - symtab_node sectoin name; it confuses plugin. - -2012-08-11 Uros Bizjak - - * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID - index in the va_list_vars bitmap by num_ssa_names. - -2012-08-11 Uros Bizjak - - * config/i386/sse.md (xop integer multiply/add insns): Use - register_operand for operand 3 predicate. - (xop_phaddbq): Fix vec_select selectors. - -2012-08-11 Martin Jambor - - PR fortran/48636 - * ipa-inline.h (condition): New fields offset, agg_contents and by_ref. - * ipa-inline-analysis.c (agg_position_info): New type. - (add_condition): New parameter aggpos, also store agg_contents, by_ref - and offset. - (dump_condition): Also dump aggregate conditions. - (evaluate_conditions_for_known_args): Also handle aggregate - conditions. New parameter known_aggs. - (evaluate_properties_for_edge): Gather known aggregate contents. - (inline_node_duplication_hook): Pass NULL known_aggs to - evaluate_conditions_for_known_args. - (unmodified_parm): Split into unmodified_parm and unmodified_parm_1. - (unmodified_parm_or_parm_agg_item): New function. - (set_cond_stmt_execution_predicate): Handle values passed in - aggregates. - (set_switch_stmt_execution_predicate): Likewise. - (will_be_nonconstant_predicate): Likewise. - (estimate_edge_devirt_benefit): Pass new parameter known_aggs to - ipa_get_indirect_edge_target. - (estimate_calls_size_and_time): New parameter known_aggs, pass it - recrsively to itself and to estimate_edge_devirt_benefit. - (estimate_node_size_and_time): New vector known_aggs, pass it o - functions which need it. - (remap_predicate): New parameter offset_map, use it to remap aggregate - conditions. - (remap_edge_summaries): New parameter offset_map, pass it recursively - to itself and to remap_predicate. - (inline_merge_summary): Also create and populate vector offset_map. - (do_estimate_edge_time): New vector of known aggregate contents, - passed to functions which need it. - (inline_read_section): Stream new fields of condition. - (inline_write_summary): Likewise. - * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate - contents. Let all local callers pass NULL for known_aggs. - -2012-08-11 Jan Hubicka - - * lto-cgraph.c (output_cgraph): Rename to ... - (output_symtab): ... this one. Update for LTO_section_symtab_nodes. - (input_cgraph): Rename to ... - (input_symtab): ... this one. Update for LTO_section_symtab_nodes. - * lto-streamer-out.c (create_output_block): Do not set - section_type. - (produce_asm): Likewise. - (lto_output_toplevel_asms): Likewise. - (produce_asm_for_decls): Likewise. - (lto_output): Use output_symtab. - * lto-section-in.c (lto_section_name): Update. - * lto-section-out.c (lto_destroy_simple_output_block): Remove - section_type. - * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool; - rename LTO_section_cgraph to LTO_section_symtab_nodes. - (struct lto_header): Remove section_type. - -2012-08-11 Jan Hubicka - - * cgraph.h (vector types for symtab_node): Add. - * ipa-reference.c (ipa_reference_write_optimization_summary): Update - for new symtab encoder. - (ipa_reference_read_optimization_summary): Likewise. - * lto-cgraph.c (output_varpool): Remove. - (input_cgraph_opt_summary): Take symtab nodes vector as argument. - (LTO_cgraph_tags): Rename to ... - (LTO_symtab_tags): ... this one; add LTO_symtab_variable. - (lto_cgraph_encoder_new): Rename to ... - (lto_symtab_encoder_new): ... this on. - (lto_cgraph_encoder_encode): Rename to ... - (lto_symtab_encoder_encode): ... this one. - (lto_cgraph_encoder_delete): Rename to ... - (lto_symtab_encoder_delete): ... this one. - (lto_cgraph_encoder_deref): Rename to ... - (lto_symtab_encoder_deref): ... this one. - (lto_cgraph_encoder_encode_body_p): Rename to ... - (lto_symtab_encoder_encode_body_p): ... this one. - (lto_varpool_encoder_new, lto_varpool_encoder_delete, - lto_varpool_encoder_encode, lto_varpool_encoder_lookup, - lto_varpool_encoder_deref): Remove. - (lto_varpool_encoder_encode_initializer_p): Rename to ... - (lto_symtab_encoder_encode_initializer_p): ... this one. - (lto_set_varpool_encoder_encode_initializer): Rename to ... - (lto_set_symtab_encoder_encode_initializer): ... this one. - (lto_output_edge): Update. - (lto_output_node): Update. - (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag. - (lto_output_ref): Drop varpool_encoder; update. - (add_node_to): Update. - (add_references): Update. - (output_outgoing_cgraph_edges): Update. - (output_refs): Update. - (compute_ltrans_boundary): Update. - (output_cgraph): Update; output varpools too. - (input_overwrite_node): Update. - (output_varpool): Remove. - (input_node): Update. - (input_ref): Update. - (input_edge): Update. - (input_cgraph_1): Update; input varpool too; unify fixup code. - (input_varpool_1): Remove. - (input_refs): Update. - (input_cgraph): Update. - (output_node_opt_summary): Update. - (input_cgraph_opt_section): Update. - (input_cgraph_opt_summary): Update. - * ipa-pure-const.c (pure_const_write_summary): Update. - (pure_const_read_summary): Update. - * lto-streamer-out.c (lto_write_tree): Update. - (lto_output): Likewise. - (produce_symtab): Update. - (produce_asm_for_decls): Update. - * ipa-inline-analysis.c (inline_read_section): Update. - (inline_write_summary): Update. - * ipa-prop.c (ipa_write_node_info): Update. - (ipa_prop_read_section): Update. - * lto-streamer.h (lto_cgraph_encoder_d): Rename to ... - (lto_symtab_encoder_d): ... this one; add initializer. - (lto_cgraph_encoder_t): Rename to ... - (lto_symtab_encoder_t): ... this one. - (lto_cgraph_encoder_size): Rename to ... - (lto_symtab_encoder_size): ... this one. - (lto_varpool_encoder_d): ... remove. - (lto_varpool_encoder_t): Remove. - (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder - add symtab_node_encoder. - (lto_file_decl_data): Likewise. - (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup, - lto_cgraph_encoder_new, lto_cgraph_encoder_encode, - lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p, - lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref, - lto_varpool_encoder_lookup, lto_varpool_encoder_new, - lto_varpool_encoder_encode, lto_varpool_encoder_delete, - lto_varpool_encoder_encode_initializer_p): Remove. - (lto_symtab_encoder_deref, lto_symtab_encoder_lookup, - lto_symtab_encoder_t, lto_symtab_encoder_encode, - lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p, - lto_symtab_encoder_encode_initializer_p): New. - -2012-08-11 Uros Bizjak - - * config/i386/i386.md (isa): Add fma and fma4. - (enabled): Handle fma and fma4. - * config/i386/sse.md (*fma_fmadd_): Merge *fma4_fmadd_. - (*fma_fmsub_): Merge *fma4_fmsub_. - (*fma_fnmadd_): Merge *fma4_fnmadd_. - (*fma_fnmsub_): Merge *fma4_fnmsub_. - (*fma_fmaddsub_): Merge *fma4_fmaddsub_. - (*fma_fmsubadd_): Merge *fma4_fmsubadd_. - -2012-08-10 Uros Bizjak - - * config/i386/sse.md (*fma_fmadd_, *fma_fmsub_, - *fma_fnmadd_, *fma_fnmsub_, *fma_fmaddsub_, - *fma_fmsubadd_): Move FMA3 insn patterns before FMA4 patterns. - -2012-08-10 Uros Bizjak - - * config/i386/i386.md (simple LEA peephole2s): Add zero-extend - variants of PLUS and MULT simple LEA patterns. Disable PLUS - patterns for TARGET_OPT_AGU. - -2012-08-10 Richard Guenther - - * Makefile.in (OBJS): Remove matrix-reorg.o. - (matrix-reorg.o): Remove dependence rule. - (GTFILES): Remove matrix-reorg.c. - * matrix-reorg.c: Remove. - * passes.c (init_optimization_passes): Do not schedule - pass_ipa_matrix_reorg. - * tree-pass.h (pass_ipa_matrix_reorg): Remove. - * common.opt (fipa-matrix-reorg): Stub out. - * doc/invoke.texi (fipa-matrix-reorg): Remove documentation. - -2012-08-10 Richard Guenther - - PR middle-end/54219 - * fold-const.c (fold_ternary_loc): Do not reverse the mask - when canonicalizing it when folding VEC_PERM_EXPR. - -2012-08-10 Bill Schmidt - - PR middle-end/54211 - * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace): - Use cand_type to determine whether pointer arithmetic will be generated. - -2012-08-10 Bill Schmidt - - * doc/sourcebuild.texi: Document long_neq_int effective target. - -2012-08-10 Richard Guenther - - PR tree-optimization/54109 - * tree-ssa-forwprop.c - (forward_propagate_addr_into_variable_array_index): Remove. - (forward_propagate_addr_expr_1): Adjust. - -2012-08-10 Richard Guenther - - * tree-cfg.c (dump_function_to_file): Make sure to dump - anonymous SSA names when there are no local decls. - -2012-08-10 Steven Bosscher - - * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve. - * tree-into-ssa.c (get_ssa_name_ann): Likewise. - (mark_phi_for_rewrite): Likewise. - (compute_global_livein): Use VEC_reserve outside the innermost - loop and VEC_quick_push instead of VEC_safe_push in that loop. - (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing - of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to - the correct initial size. - -2012-08-10 Richard Guenther - - * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove. - (need_creation): Remove. - (get_representative_for): Use anonymous named SSA names. - (create_expression_by_pieces): Likewise. - (insert_into_preds_of_block): Likewise. - (init_pre): Do not init removed vars. - (fini_pre): Do not free need_creation. - * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous - SSA names. - * tree-ssa-loop-manip.c (create_iv): Likewise. - * value-prof.c (gimple_divmod_fixed_value): Likewise. - (gimple_mod_pow2): Likewise. - (gimple_mod_subtract): Likewise. - (gimple_ic): Likewise. - (gimple_stringop_fixed_value): Likewise. - * tree-ssa-phiopt.c (condstoretemp): Remove. - (tree_ssa_phiopt_worker): Use anonymous named SSA names. - (conditional_replacement): Likewise. - (abs_replacement): Likewise. - (cond_store_replacement): Likewise. - (cond_if_else_store_replacement_1): Likewise. - * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise. - (rewrite_bittest): Likewise. - * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers - and build anonymous SSA names. - (undistribute_ops_list): Adjust. - (eliminate_redundant_comparison): Use anonymous SSA names. - (rewrite_expr_tree_parallel): Likewise. - (get_reassoc_pow_ssa_name): Remove. - (attempt_builtin_powi): Adjust. - (reassociate_bb): Likewise. - * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names. - * tree-switch-conversion.c (emit_case_bit_tests): Likewise. - (build_arrays): Likewise. - * tree-tailcall.c (adjust_return_value_with_ops): Likewise. - (create_tailcall_accumulator): Likewise. - * tree-vect-generic.c (expand_vector_divmod): Likewise. - * tree-profile.c (gcov_type_tmp_var): Remove. - (gimple_init_edge_profiler): Do not initialize it and use anonymous - SSA names. - (gimple_gen_ic_profiler): Likewise. - (tree_profiling): Adjust. - * tree-sra.c (build_ref_for_offset): Use anonymous SSA names. - * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise. - (powi_as_mults_1): Likewise. - (powi_as_mults): Likewise. - (build_and_insert_call): Adjust. - (build_and_insert_binop): Likewise. - (build_and_insert_ref): Likewise. - (build_and_insert_cast): Likewise. - (gimple_expand_builtin_pow): Likewise. - (gimple_expand_builtin_cabs): Likewise. - (execute_optimize_bswap): Use anonymous SSA names. - (convert_mult_to_widen): Likewise. - (convert_plusminus_to_widen): Likewise. - * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. - * tree-ssa-propagate.c (update_call_from_tree): Likewise. - * tree-if-conv.c (ifc_temp_var): Likewise. - * tree-loop-distribution.c (generate_memset_builtin): Likewise. - * tree-parloops.c (take_address_of): Likewise. - * tree-vect-data-refs.c (vect_permute_store_chain): Likewise. - (vect_permute_load_chain): Likewise. - * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise. - * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise. - (vect_handle_widen_op_by_const): Likewise. - (vect_operation_fits_smaller_type): Likewise. - (vect_recog_over_widening_pattern): Likewise. - * tree-vect-stmts.c (vect_init_vector): Likewise. - * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise. - (simplify_float_conversion_using_ranges): Likewise. - -2012-08-10 Michael Zolotukhin - - * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix - target mask of __builtin_ia32_rdseed_di_step builtin. - -2012-08-10 Richard Guenther - - PR tree-optimization/54027 - * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR - and LSHIFT_EXPR handling, force -fwrapv for the multiplication used - to handle LSHIFT_EXPR with a constant. - -2012-08-10 Richard Guenther - - * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE - is recorded as var. - (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME - or its SSA_NAME_VAR. - (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter. - * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous - SSA names by passing a type instead of a variable decl. - (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER. - (copy_ssa_name_fn): Handle anonymous SSA names. - (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER. - * tree-flow-inline.h (make_temp_ssa_name): New inline function. - * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER, - dump SSA names without a name as . - * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are - going to expand a decl. - (gimple_expand_cfg): Assign all SSA names of a partition the - decl we created for its leader. - * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs. - (verify_ssa_name): Handle anonymous SSA names. - (verify_def): Likewise. - * tree-predcom.c (eliminate_temp_copies): Likewise. - * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise. - * tree-ssa-live.c (var_map_base_init): Compute conflicts for - anonymous SSA names with the same type. - (mark_all_vars_used_1): Handle anonymous SSA names. - (verify_live_on_entry): Likewise. - * tree-ssa-coalesce.c (abnormal_corrupt): Remove. - (create_outofssa_var_map): Adjust with respect to conflicts we - compute for anonymous SSA names. Do not restrict abnormal - coalescing. - (coalesce_partitions): Do not restrict abnormal coalescing. - Assert we only ever coalesce variables we computed conflicts for. - * tree-ssa-ter.c (process_replaceable): Do not restrict TER - of anonymous names. - * expr.c (expand_expr_real_1): Handle anonymous SSA names - expanded from IVOPTs by creating a raw REG here. - * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names. - (dump_function_to_file): Dump anonymous SSA names alongside - with their types in the variable list. - (verify_gimple_return): Guard use of SSA_NAME_VAR. - * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol. - (rewrite_into_ssa): Make SSA names anonymous. - * tree-ssa-structalias.c (alias_get_name): Rewrite. - * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous - SSA names. - (warn_uninitialized_phi): Likewise. - * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding - anonymous SSA names to the expander. - (determine_iv_cost): Anonymous SSA names are artificial. - * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): - Handle anonymous SSA names. - * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR - or if NULL, the type of the SSA name. - * tree-inline.c (remap_ssa_name): Handle anonymous SSA names, - remap names as anonymous where appropriate. - (insert_init_stmt): Pass SSA names down to insert_init_debug_bind. - * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust - according to what we create conflicts for in out-of-SSA - coalescing. - * tree-parloops.c (separate_decls_in_region_name): Handle - anonymous SSA names. - (add_field_for_name): Likewise. - * tree.c (get_name): Handle SSA names. - * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for - SSA_NAMEs. - * tree-vect-loop-manip.c (adjust_debug_stmts): Use - virtual_operand_p. - * tree-sra.c (create_access_replacement): Give up generating - a DECL_DEBUG_EXPR for SSA names in the memory reference. - (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR. - * tree-complex.c (get_component_ssa_name): Handle anonymous - SSA names. - (set_component_ssa_name): Likewise. - * tree-ssa-sccvn.c (visit_reference_op_load): Likewise. - * tree-object-size.c (collect_object_sizes_for): Handle - uninitialized SSA names properly. - * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of - SSA_NAME_VAR. - * ipa-split.c (test_nonssa_use): Likewise. - (consider_split): Likewise. - (mark_nonssa_use): Likewise. - -2012-08-09 Jan Hubicka - - PR middle-end/54146 - * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY - parameter; honnor it. - * ipa-inline.c (recursive_inlining): Update call - of inline_call. - (inline_small_functions): Likewise. - (ipa_inline): Likewise. - (inline_always_inline_functions): Likewise. - (early_inline_small_functions): Likewise. - (flatten_function): Do separate update of summary info. - * ipa-inline.h (inline_update_overall_summary): Declare. - (inline_call): Update. - * ipa-inline-analysis.c (inline_merge_summary): Break out - updating code to ... - (inline_update_overall_summary): Likewise. - -2012-08-09 Richard Henderson - - * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET. - - * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before - performing the compare for the restart loop. - -2012-08-09 DJ Delorie - - * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for - SET before extracting SET_SRC. - (rl78_remove_unused_sets): Check for REG before extractnig REGNO. - -2012-08-09 Oleg Endo - - PR target/54089 - * config/sh/sh-protos (shift_insns_rtx): Delete. - (sh_ashlsi_clobbers_t_reg_p): Add. - * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns, - ext_shift_amounts): Merge arrays of ints to array of structs. - Adapt usage of arrays throughout the file. - (shift_insns_rtx): Delete unused function. - (sh_ashlsi_clobbers_t_reg_p): New function. - * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the - final shift sequence will clobber T_REG. - (ashlsi3_n): Split only if the final shift sequence will not - clobber T_REG. - (ashlsi3_n_clobbers_t): New insn_and_split. - -2012-08-09 Steven Bosscher - - * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE - instead of looking at sbitmap n_bits member directly. - * gcse.c (hoist_code): Likewise. - * sched-rgn.c (split_edges): Likewise. - * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping, - update_ssa): Likewise. - -2012-08-09 Uros Bizjak - - * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred - single unit register class for classes that contain registers form - multiple units. - (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS, - INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes. - -2012-08-09 Martin Jambor - - * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to - offset, updated all users. New field agg_contents. - * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR. - (ipa_pass_through_data): New field agg_preserved. - (ipa_ancestor_jf_data): Likewise. - (ipa_member_ptr_cst): Removed. - (ipa_agg_jf_item): New type. - (ipa_agg_jump_function): Likewise. - (ipa_jump_func): New field agg. Removed field member_cst. - (ipa_get_jf_pass_through_agg_preserved): New function. - (ipa_get_jf_ancestor_agg_preserved): Likewise. - (ipa_get_jf_member_ptr_pfn): Removed. - (ipa_find_agg_cst_for_param): Declare. - (ipa_load_from_parm_agg): Likewise. - * ipa-prop.c (param_analysis_info): Fields modified and - visited_statements rename to parm_modified and parm_visited_statements - respectively, added fields ref_modified, ref_visited_statements, - pt_modified and pt_visited_statements. - (ipa_print_node_jump_functions_for_edge): Do not dump const member - functions. Dump agg_preserved flags and aggregate jump functions. - (ipa_set_jf_simple_pass_through): Set also agg_preserved. - (ipa_set_ancestor_jf): Likewise. - (ipa_set_jf_arith_pass_through): Clear agg_preserved. - (ipa_set_jf_member_ptr_cst): Removed. - (is_parm_modified_before_stmt): Logic reversed, renamed to - parm_preserved_before_stmt_p. Cache visited bitmap only for - naked DECL parameters. All callers updated. - (load_from_unmodified_param): Allow NULL parms_ainfo. - (parm_ref_data_preserved_p): New function. - (parm_ref_data_pass_through_p): Likewise. - (ipa_load_from_parm_agg_1): Likewise. - (ipa_load_from_parm_agg): Likewise. - (compute_complex_assign_jump_func): Check if aggregate contents are - preserved. - (compute_complex_ancestor_jump_func): Likewise. - (compute_scalar_jump_functions): Removed. - (type_like_member_ptr_p): Also check field position are known and sane. - (compute_pass_through_member_ptrs): Removed. - (determine_cst_member_ptr): Likewise. - (ipa_known_agg_contents_list): New type. - (determine_known_aggregate_parts): New function. - (compute_cst_member_ptr_arguments): Removed. - (ipa_compute_jump_functions_for_edge): Compute all kinds of jump - functions (scalar, aggregate and member pointer). - (ipa_get_member_ptr_load_param): Incorporate into - ipa_get_stmt_member_ptr_load_param, also pass back an offset. - (ipa_note_param_call): Clear agg_contents. - (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded - from aggregates. In such cases, store offset of the called field. - (ipa_analyze_node): Initialize new fields of param_analysis_info. - (update_jump_functions_after_inlining): Handle aggregate contents. - (ipa_find_agg_cst_for_param): New function. - (try_make_edge_direct_simple_call): Handle called aggregate values. - (update_indirect_edges_after_inlining): Make sure aggregate preserving - jump functions comply with type compatibility requirements. - (ipa_edge_duplication_hook): Copy also aggregate jump functions. - (ipa_write_jump_function): Stream agg_preserved flags and aggregate - jump functions. Do not stream member pointer constant jump functions. - (ipa_read_jump_function): Likewise. - (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info - fields. - (ipa_read_indirect_edge_info): Likewise. - -2012-08-09 Oleg Endo - - PR target/39423 - * config/sh/predicates.md (mem_index_disp_operand): New predicate. - * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new - mem_index_disp_operand predicate. - -2012-08-09 Oleg Endo - - PR target/51244 - * config/sh/sh.md: Add negc extu sequence peephole. - (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate. - (*movrt_negc): New insn. - * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to - gen_movnegt. - * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t, - sh_emit_compare_and_branch, sh_emit_compare_and_set): Use - get_t_reg_rtx. - (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt. - -2012-08-09 Oleg Endo - - PR target/50751 - * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg): - Use arith_reg_operand predicate instead of register_operand. - * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept - only mem, simplify. - -2012-08-09 Uros Bizjak - - * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ... - (alpha_pad_function_end): ... this. Also insert NOP between - sibling call and GP load. - (alpha_reorg): Update call to alpha_pad_function_end. Expand comment. - -2012-08-09 Michael Zolotukhin - - * config/i386/adxintrin.h: Remove guarding __ADX__ check. - * config/i386/x86intrin.h: Likewise. - * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove - OPTION_MASK_ISA_ADX from needed options for - __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64. - (ix86_expand_builtin): Use add3_carry in expanding of - IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64. - -2012-08-09 Andrey Belevantsev - - PR rtl-optimization/53701 - * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment. - Process not only expr's vinsns but all old vinsns from expr's - history of changes. - (update_and_record_unavailable_insns): Clarify comment. - -2012-08-09 Bernd Schmidt - - * reload.c (find_valid_class_1): New static function. - (push_reload): Use it when reloading a SYMBOL_REG as the inner - of a subreg. Keep better track of needed classes for the - secondary memory case. - * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to - GENERAL_REGS. - * reload1.c (replaced_subreg): New static function. - (gen_reload): Use it when deciding whether to use secondary - memory. - -2012-08-09 Richard Guenther - - * tree.h (SSA_VAR_P): Simplify. - * tree-ssanames.c (make_ssa_name_fn): Strengthen assert. - * fold-const.c (fold_comparison): Check for default def first - before checking for PARM_DECL. - * tree-complex.c (get_component_ssa_name): Likewise. - * tree-inline.c (remap_ssa_name): Likewise. - * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise. - * tree-ssa-structalias.c (get_fi_for_callee): Likewise. - (find_what_p_points_to): Likewise. - * tree-ssa-operands.c (add_stmt_operand): Simplify. - -2012-08-08 Joseph Myers - - * simplify-rtx.c (simplify_binary_operation_1): Do not simplify - IOR to a constant if one operand has side effects. - -2012-08-08 Ulrich Weigand - - * builtins.c (expand_builtin_atomic_compare_exchange): Pass old - value operand as MEM to expand_atomic_compare_and_swap. - - * config/s390/s390.md ("atomic_compare_and_swap"): Accept - nonimmediate_operand for old value; generate load and store if - needed. - * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand - as vtarget. - -2012-08-08 Steven Bosscher - - PR middle-end/54146 - * gimpify.c (gimplify_body): Only verify_gimple_in_seq with - checking enabled. - * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is - a gimple_reg if checking is enabled. - (find_uses_to_rename_stmt): Only look at non-virtual USE operands. - * tree-into-ssa (compute_global_livein): Change the worklist - type from an array to a VEC. - -2012-08-08 Richard Guenther - - * tree-ssa-operands.h (virtual_operand_p): Declare. - * tree-ssa-operands.c (virtual_operand_p): New predicate. - * gimple.c (is_gimple_reg): Use virtual_operand_p. - * tree-into-ssa.c (prepare_block_for_update): Likewise. - * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise. - -2012-08-08 Richard Guenther - - * tree-call-cdce.c (check_pow): Simplify. - (gen_conditions_for_pow_int_base): Likewise. - * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle - virtual operands here. - * tree-ssa-operands.c (get_name_decl): Remove unused function. - * gimplify.c (gimple_regimplify_operands): Remove dead code. - * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access. - * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name. - * value-prof.c (gimple_ic): Use duplicate_ssa_name. - (gimple_stringop_fixed_value): Likewise. - * tree.c (needs_to_live_in_memory): Remove SSA name handling. - * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs - in the bitmap alongside shifted DECL_UIDs. - (va_list_counter_struct_op): Likewise. - (va_list_ptr_read): Likewise. - (va_list_ptr_write): Likewise. - (check_va_list_escapes): Likewise. - (check_all_va_list_escapes): Likewise. - (execute_optimize_stdarg): Likewise. - * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name. - -2012-08-08 Richard Sandiford - H.J. Lu - - PR rtl-optimization/54157 - * combine.c (gen_lowpart_for_combine): Don't return identity - for CONST or symbolic reference. - -2012-08-08 Michael Zolotukhin - - * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New. - (OPTION_MASK_ISA_ADX_UNSET): Likewise. - (ix86_handle_option): Handle madx option. - * config.gcc (i[34567]86-*-*): Add adxintrin.h. - (x86_64-*-*): Likewise. - * config/i386/adxintrin.h: New header. - * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX - support. - * config/i386/i386-builtin-types.def - (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type. - (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise. - * config/i386/i386-c.c: Define __ADX__ if needed. - * config/i386/i386.c (ix86_target_string): Define -madx option. - (PTA_ADX): New. - (ix86_option_override_internal): Handle new option. - (ix86_valid_target_attribute_inner_p): Add OPT_madx. - (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32, - IX86_BUILTIN_ADDCARRYX64. - (ix86_init_mmx_sse_builtins): Define corresponding built-ins. - (ix86_expand_builtin): Handle these built-ins. - (ix86_expand_args_builtin): Handle new function types. - * config/i386/i386.h (TARGET_ADX): New. - * config/i386/i386.md (adcx3): New define_insn. - * config/i386/i386.opt (madx): New. - * config/i386/x86intrin.h: Include adxintrin.h. - -2012-08-08 Nick Clifton - - * config/rl78/rl78.c: Include tree-pass.h. - -2012-08-08 Steven Bosscher - - PR middle-end/54146 - * ira.c (init_live_subregs): Take live_subregs_used as a bitmap. - (build_insn_chain): Make live_subregs_used a bitmap. - Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs. - Use sbitmap_free to free the live_subreg sbitmaps. - - PR middle-end/54146 - * ifcvt.c: Include pointer-set.h. - (cond_move_process_if_block): Change type of then_regs and - else_regs from alloca'd array to pointer_sets. - (check_cond_move_block): Update for this change. - (cond_move_convert_if_block): Likewise. - * Makefile.in: Fix dependencies for ifcvt.o. - -2012-08-07 Bill Schmidt - - * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct. - (incr_vec): New static var. - (incr_vec_len): Likewise. - (address_arithmetic_p): Likewise. - (stmt_cost): Remove dead assignment. - (dump_incr_vec): New function. - (cand_abs_increment): Likewise. - (lazy_create_slsr_reg): Likewise. - (incr_vec_index): Likewise. - (count_candidates): Likewise. - (record_increment): Likewise. - (record_increments): Likewise. - (unreplaced_cand_in_tree): Likewise. - (optimize_cands_for_speed_p): Likewise. - (lowest_cost_path): Likewise. - (total_savings): Likewise. - (analyze_increments): Likewise. - (ncd_for_two_cands): Likewise. - (nearest_common_dominator_for_cands): Likewise. - (profitable_increment_p): Likewise. - (insert_initializers): Likewise. - (introduce_cast_before_cand): Likewise. - (replace_rhs_if_not_dup): Likewise. - (replace_one_candidate): Likewise. - (replace_profitable_candidates): Likewise. - (analyze_candidates_and_replace): Handle candidates with SSA-name - strides. - -2012-08-07 Steven Bosscher - - * cfg.c (debug_bb): Do not set TDF_BLOCKS. - * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS. - * pretty-print.c (pp_base_flush): Do not add a newline, and do not - clear pp_needs_newline. - * pretty-print.h (pp_newline_and_flush): New macro with the behavior - of pp_base_flush before the above change. - * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush - instead of pp_flush. - * diagnostic.c (diagnostic_finish): Likewise. - (diagnostic_report_diagnostic): Likewise. - (verbatim): Likewise. - (error_recursion): Likewise. - * tree-pretty-print.c (print_generic_stmt): Likewise. - (print_generic_stmt_indented): LIkewise. - * gimple-pretty-print.c (print_gimple_stmt): Likewise. - (print_gimple_seq): Likewise. - (gimple_dump_bb_buff): Likewise. - -2012-08-07 Uros Bizjak - - PR debug/54177 - * var-tracking.c (var_lowpart): Exit early for matched modes. - -2012-08-07 Richard Henderson - - * config/s390/s390.c (s390_emit_compare_and_swap): Update for - atomic_compare_and_swapsi_internal name change. - (s390_expand_insv): Try RISBG last, not requiring operands in - registers but forcing them there. Try a limited form of ICM. - (s390_two_part_insv): New. - (s390_expand_cs_hqi): Use it. Update for atomic optabs. - * config/s390/s390.md (UNSPEC_MOVA): New. - (TDSI): Remove mode iterator. - (DGPR, DINT, TDI): New mode iterators. - (td): New mode attribute. - (mem_signal_fence): New. - (mem_thread_fence): Rename from memory_barrier; update for model arg. - (mem_thread_fence_1): Rename from *memory_barrier. - (atomic_load, atomic_store): New expanders. - (atomic_loaddi_1, atomic_loadti_1): New. - (atomic_storedi_1, atomic_storeti_1): New. - (sync_compare_and_swap, sync_compare_and_swap): Remove. - (atomic_compare_and_swap, atomic_compare_and_swap): New. - (atomic_compare_and_swap_internal): New. - (*sync_compare_and_swap, *sync_compare_and_swap): Remove. - (*atomic_compare_and_swap_1): New. - (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New. - (sync_, sync_old_): Remove. - (atomic_fetch_): New. - (atomic_fetch__iaf): New. - (sync_, sync_old_): Remove. - (sync_new_): Remove. - (atomic_, atomic_fetch_): New. - (atomic__fetch): New. - (sync_lock_test_and_set): Remove. - (atomic_exchange): New. - -2012-08-07 Paul Brook - Sandra Loosemore - - * except.c (switch_to_exception_section): Place tables for - DECL_ONE_ONLY functions in comdat groups. - -2012-08-07 Richard Guenther - - * tree-flow.h (copy_ssa_name_fn): New function. - (duplicate_ssa_name_fn): Likewise. - * tree-flow-inline.h (copy_ssa_name): New function. - (duplicate_ssa_name): Likewise. - * tree-ssanames.c (copy_ssa_name_fn): New function. - (duplicate_ssa_name): Rename to ... - (duplicate_ssa_name_fn): ... this and adjust. - * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name. - * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): - Likewise. - (slpeel_update_phi_nodes_for_guard2): Likewise. - (slpeel_tree_peel_loop_to_edge): Likewise. - (vect_loop_versioning): Likewise. - * tree-parloops.c (transform_to_exit_first_loop): Likewise. - (create_parallel_loop): Likewise. - * ipa-split.c (split_function): Likewise. - * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise. - (vect_create_epilog_for_reduction): Likewise. - * tree-vect-data-refs.c (bump_vector_ptr): Likewise. - (vect_setup_realignment): Likewise. - * tree-vect-stmts.c (vectorizable_load): Likewise. - * tree-switch-conversion.c (build_one_array): Likewise. - (gen_def_assigns): Likewise. - * tree-cfg.c (gimple_make_forwarder_block): Likewise. - * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call - create_zero_dim_array with the SSA name. - (rewrite_phi_out_of_ssa): Likewise. - (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name. - -2012-08-07 Richard Guenther - - * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF - bit of the old name when we clear the slot. - * tree-ssa-live.c (remove_unused_locals): Release any default - def associated with an unused var. - * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true. - -2012-08-07 Richard Guenther - - * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables - we rewrite into SSA form. - (rewrite_enter_block): Adjust. - * gimple-iterator.c (gsi_replace): Also allow replacement with - a stmt without a lhs. - * tree-ssa-live.c (remove_unused_locals): Remove code handling - clobbers of SSA names. - * tree-nested.c (convert_local_reference_stmt): Remove clobbers - for variables we access through the local chain. - * tree-cfg.c (verify_gimple_assign_single): Verify clobbers - clobber full decls only. - -2012-08-07 Richard Guenther - - * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT. - * tree-phinodes.c (make_phi_node): Allow a NULL var. - * tree-into-ssa.c (insert_phi_nodes_for): Simplify. - * tree-complex.c (update_phi_components): Likewise. - * tree-ssa-loop-manip.c (create_iv): Likewise. - (add_exit_phis_edge): Likewise. - (split_loop_exit_edge): Likewise. - (tree_transform_and_unroll_loop): Likewise. - * value-prof.c (gimple_ic): Likewise. - (gimple_stringop_fixed_value): Likewise. - * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise. - * omp-low.c (expand_parallel_call): Likewise. - (expand_omp_for_static_chunk): Likewise. - (expand_omp_atomic_pipeline): Likewise. - * tree-parloops.c (create_phi_for_local_result): Likewise. - (transform_to_exit_first_loop): Likewise. - * tree-vect-data-refs.c (vect_setup_realignment): Likewise. - * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise. - * tree-predcom.c (initialize_root_vars): Likewise. - (initialize_root_vars_lm): Likewise. - * sese.c (sese_add_exit_phis_edge): Likewise. - * gimple-streamer-in.c (input_phi): Likewise. - * tree-inline.c (copy_phis_for_bb): Likewise. - * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. - * tree-cfg.c (gimple_make_forwarder_block): Likewise. - (gimple_duplicate_bb): Likewise. - -2012-08-07 Nick Clifton - - * config/mn10300/mn10300.c (mn10300_expand_prologue): Report - stack usage if requested. - -2012-08-06 Cary Coutant - - * cgraphunit.c (assemble_thunk): Add source line info. - * final.c (final): Check for non-null cfg pointer. - -2012-08-06 Sandra Loosemore - Maxim Kuvyrkov - Julian Brown - - * config/mips/24k.md (r24k_unknown_store): Delete special handling - for cprestore. - (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo) - (r24k_int_cop, r24k_int_multi) - (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer) - (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p - instead of store_data_bypass_p. - * config/mips/74k.md (r74k_int_store): Delete special handling for - cprestore. - (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove): - Use mips_store_data_bypass_p instead of store_data_bypass_p. - -2012-08-06 Marc Glisse - - PR tree-optimization/51938 - PR tree-optimization/52005 - * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for - inverted conditions. - (ifcombine_iforif): Remove, merge code into ifcombine_ifandif. - (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b - and !a||b patterns. - -2012-08-06 Olivier Hainque - - * tree-emutls.c (new_emutls_decl): When a var_section is requested by - the target, attach the new decl to that, not to the template section. - -2012-08-06 Tom de Vries - - * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in - unsigned type. - -2012-08-05 Venkataramanan Kumar - - * doc/invoke.texi: Document AMD btver2. - * doc/extend.texi: Document AMD btver1 and btver2. - -2012-08-04 Sandra Loosemore - Richard Sandiford - - * config/mips/mips.c (mips_option_override): Check -fpic - for compatibility with -mabicalls and ABI. - -2012-08-04 Catherine Moore - Sandra Loosemore - - * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation. - (ir_xlr_alu): Remove clz. - * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY. - -2012-08-04 Richard Earnshaw - - * arm.c (arm_gen_constant): Use SImode when preparing operands for - gen_extzv_t2. - -2012-08-04 Uros Bizjak - - * config/i386/i386.h (QI_REGNO_P): New define. - (ANY_QI_REGNO_P): Ditto. - (GENERAL_REGNO_P): Use IN_RANGE macro. - (QI_REG_P): Use QI_REGNO_P. - (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P. - (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P. - * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto. - (x86_extended_QIreg_mentioned_p): Ditto. Also check if - register is a general register. - -2012-08-03 Uros Bizjak - - * config/i386/sync.md (*atomic_fetch_add_cmp): Use - incdec_operand predicate to return INC or DEC insn mnemonic. - Add %K operand modifier. - (atomic_add): Use incdec_operand predicate to - return INC or DEC insn mnemonic. - (atomic_dec): Ditto. - -2012-08-03 Michael Matz - - PR tree-optimization/54146 - * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into. - (add_scope_conflicts): Iterate in RPO order. - (add_stack_protection_conflicts): Iterate over the other triangle. - (fini_vars_expansion): Clear stack_vars_sorted. - -2012-08-03 Marc Glisse - - PR tree-optimization/30318 - * double-int.c (mul_double_wide_with_sign): New function. - (mul_double_with_sign): Call the new function. - * double-int.h (mul_double_wide_with_sign): Declare the new function. - * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]: - Handle integer types that wrap on overflow. - (quad_int_cmp): New helper function. - (quad_int_pair_sort): Likewise. - -2012-08-03 Richard Guenther - - * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query - is_gimple_reg on the SSA name, not its variable. - (vect_update_ivs_after_vectorizer): Likewise. - * tree-ssa-copyrename.c (rename_ssa_copies): Likewise. - * tree-if-conv.c (if_convertible_phi_p): Likewise. - (predicate_scalar_phi): Likewise. - * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise. - (vect_analyze_scalar_cycles_1): Likewise. - * tree-ssa-live.c (register_ssa_partition_check): Likewise. - * tree-outof-ssa.c (eliminate_useless_phis): Likewise. - * tree-ssa-reassoc.c (phi_rank): Likewise. - * tree-parloops.c (separate_decls_in_region_name): Use - replace_ssa_name_symbol. - * tree-predcom.c (base_names_in_chain_on): Likewise. - * matrix-reorg.c (update_type_size): Query the type of the SSA name, - not its variable. - * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise. - (create_mul_imm_cand): Likewise. - (create_add_ssa_cand): Likewise. - (create_add_imm_cand): Likewise. - (slsr_process_add): Likewise. - * tree-inline.c (remap_ssa_name): Do not set the type of the - new SSA_NAME. - * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert. - Check for default def first. - -2012-08-04 Steven Bosscher - - * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns. - - * sched-vis.c (print_pattern): Handle SEQUENCE also. - -2012-08-02 Richard Henderson - - Revert: - PR 34548 - * function.h (struct rtl_data): Add max_dynamic_stack_alignment. - * cfgexpand.c (gimple_expand_cfg): Initialise it. - * explow.c (allocate_dynamic_stack_space): Set it. Simplify - alignment requirements given the known alignment of dynamic_offset. - * function.c (instantiate_virtual_regs): Align dtnamic_offset. - -2012-08-02 Kenneth Zadeck - - * cfgexpand.c (expand_debug_locations): Encapsulate test for - CONST_DOUBLE in macro. - * combine.c (try_combine, gen_lowpart_for_combine): Ditto. - * cprop.c (implicit_set_cond_p): Ditto. - * cselib.c (rtx_equal_for_cselib_1): Ditto. - * expmed.c (expand_mult): Ditto. - * expr.c (convert_modes): Ditto. - * ira-costs.c (record_reg_classes): Ditto. - * ira-lives.c (single_reg_class): Ditto. - * optabs.c (expand_copysign_absneg, expand_copysign): Ditto. - * print-rtl.c (print_rtx): Ditto. - * recog.c (simplify_while_replacing, const_double_operand) - (asm_operand_ok, constrain_operands): Ditto. - * reg-stack.c (subst_stack_regs_pat): Ditto. - * reload.c (find_reloads, find_equiv_reg): Ditto. - * rtlanal.c (replace_rtx): Remove test. - * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate - test for CONST_DOUBLE in macro. - * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference) - (simplify_unary_operation_1, simplify_const_unary_operation) - (simplify_binary_operation_1, simplify_const_binary_operation) - (simplify_relational_operation_1) - (simplify_const_relational_operations) - (implify_subreg): Ditto. - * varasm.c (output_constant_pool_2): Ditto. - * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros. - * rtl.def (CONST_DOUBLE): Updated comments. - -2012-08-02 Richard Sandiford - - PR target/51931 - * config/mips/mips-protos.h (mips_strip_unspec_address): Declare. - * config/mips/mips.c (mips_strip_unspec_address): Make extern. - (mips16_rewrite_pool_constant): Make a copy of the pool constant - before adding to a PC-relative table. - (mips16_lay_out_constants): Add a SPLIT_P parameter. - (mips16_load_branch_target, mips16_split_long_branches): New functions. - (mips_reorg): Update call to mips16_lay_out_constants. - Call mips16_split_long_branches. - * config/mips/predicates.md (pc_or_label_operand): Delete. - * config/mips/mips.md (length): Add a calculation for MIPS16 branches. - Move the extended_mips16 handling further down. - (*branch_equality_mips16): Replace use pc_or_label_operand - with explicit label_ref and pc. Follow the usual operand numbering. - (*branch_equality_mips16_inverted): New pattern. - (*jump_mips16): Add length attribute. - (indirect_jump_and_restore_): New pattern. - (consttable_int): Call mips_strip_unspec_address on the operand. - -2012-08-02 Richard Sandiford - - * recog.c (split_insn): Copy the original SET_SRC before using - it as a note. - -2012-08-02 Richard Sandiford - - * reorg.c (dbr_schedule): Delete REG_BR_PRED loop. - -2012-08-02 Marc Glisse - - PR tree-optimization/53805 - * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and - UNORDERED_EXPR even for trapping floating point. - -2012-08-02 H.J. Lu - - PR middle-end/53321 - PR middle-end/53865 - * ipa-inline-analysis.c (inline_free_summary): Return if - inline_edge_summary_vec is NULL. - * ipa-split.c (execute_split_functions): Check if a function - is inlinable only if inline_edge_summary_vec != NULL. - * ipa.c (symtab_remove_unreachable_nodes): Restore - cgraph_propagate_frequency call when something was changed. - (free_inline_summary): New function. - (pass_ipa_free_inline_summary): New pass. - * passes.c (init_optimization_passes): Add - pass_ipa_free_inline_summary before pass_ipa_tree_profile. - * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New. - * tree-pass.h (pass_ipa_free_inline_summary): New. - -2012-08-02 Richard Earnshaw - - * arm.c (arm_gen_constant): Use UBFX for some AND operations when - available. - -2012-08-02 Richard Guenther - - * tree-into-ssa.c (struct common_info_d): New struct. - (struct var_info_d, struct ssa_name_info): Use it. - (get_ssa_name_ann): Adjust. - (get_phi_state, set_phi_state): Remove. - (get_common_info): New function. - (get_current_def, set_current_def): Adjust. - (get_def_blocks_for): Take a common info as param. - (set_def_block): Call get_common_info once. - (set_livein_block): Likewise. - (find_def_blocks_for): Adjust. - (insert_phi_nodes): Likewise. - (register_new_def): Call get_common_info once. - (get_reaching_def): Likewise. - (rewrite_debug_stmt_uses): Likewise. - (rewrite_leave_block): Likewise. - (dump_currdefs): Likewise. - (debug_var_infos_r): Adjust. - (register_new_update_single): Call get_common_info once. - (maybe_replace_use_in_debug_stmt): Likewise. - (rewrite_update_leave_block): Likewise. - (mark_use_interesting): Adjust. - (create_new_def_for): Likewise. - (update_ssa): Likewise. - -2012-08-02 Michael Matz - - * tree-ssa-live.c (set_is_used): Return a bool. - (mark_all_vars_used): Don't take data argument. - (mark_all_vars_used_1): Adjust calls to above, merge handling - of local and global vars. - (remove_unused_scope_block_p): Don't take global_unused_vars, - merge handling of local and global vars. - (remove_unused_locals): Don't allocate/fill/pass global_unused_vars, - use is_used_p for local and global vars. - -2012-08-02 Richard Guenther - - * tree-flow.h (make_rename_temp): Remove. - * tree-dfa.c (make_rename_temp): Likewise. - * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg - instead of make_rename_temp. - * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk, - expand_omp_atomic_pipeline): Likewise. - * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load, - build_tm_store, expand_call_tm, expand_transaction, - ipa_tm_insert_gettmclone_call): Likewise. - * tree-complex.c (expand_complex_div_wide): Likewise. - * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for): - Likewise. - * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm): - Likewise. - * tree-ssa-math-opts.c (insert_reciprocals): Likewise. - * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2, - gimple_mod_subtract): Likewise. - -2012-08-02 Richard Guenther - - * tree-flow.h (set_default_def): Rename to ... - (set_ssa_default_def): ... this. Take a struct function argument. - (gimple_default_def): Rename to ... - (ssa_default_def): ... this. - (get_or_create_ssa_default_def): New function. - * tree-dfa.c: Likewise. - (dump_variable): Adjust. - * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check - for used parameters. - * ipa-split.c (consider_split): Adjust, avoid repeated default-def - lookups. - (split_function): Likewise. - * lto-streamer-in.c (input_ssa_names): Adjust. - * omp-low.c (expand_omp_taskreg): Likewise. - * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun. - * tree-complex.c (init_parameter_lattice_values): Adjust. - (get_component_ssa_name): Likewise. - (update_parameter_components): Likewise. - * tree-inline.c (remap_ssa_name): Likewise. - (setup_one_parameter): Likewise. - (initialize_inlined_parameters): Likewise. - (declare_return_variable): Likewise. - (expand_call_inline): Likewise. - (tree_function_versioning): Likewise. - * tree-into-ssa.c (get_default_def_for): Remove. - (get_reaching_def): Use get_or_create_ssa_default_def instead. - * tree-predcom.c (replace_ref_with): Adjust. - * tree-sra.c (get_repl_default_def_ssa_name): Likewise. - (is_unused_scalar_param): Likewise. - (ptr_parm_has_direct_uses): Likewise. - (sra_ipa_reset_debug_stmts): Likewise. - * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust. - * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise. - * tree-ssa-live.c (verify_live_on_entry): Likewise. - * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise, - avoid repeated default def lookups. - * tree-ssa-sccvn.c (run_scc_vn): Likewise. - * tree-tailcall.c (arg_needs_copy_p): Adjust. - (tree_optimize_tail_calls_1): Likewise. - -2012-08-02 Richard Guenther - - PR tree-optimization/50672 - Revert - 2012-08-01 Richard Guenther - - * tree-ssa-tail-merge.c (release_last_vdef): Remove. - (replace_block_by): Adjust. - -2012-08-02 Richard Guenther - - * tree-dfa.c (referenced_var_lookup): Remove. - (find_referenced_vars): Remove. - (pass_referenced_vars): Likewise. - (make_rename_temp): Do not add referenced vars. - (dump_referenced_vars): Remove. - (debug_referenced_vars): Likewise. - (dump_dfa_stats): Do not dump referenced var stats. - (find_vars_r): Remove. - (find_referenced_vars_in): Likewise. - (referenced_var_check_and_insert): Likewise. - (add_referenced_var_1): Likewise. - (remove_referenced_var): Likewise. - * tree-flow.h (referenced_var_lookup): Likewise. - (struct gimple_df): Remove referenced_vars member. - (typedef referenced_var_iterator): Remove. - (FOR_EACH_REFERENCED_VAR): Likewise. - (num_referenced_vars): Likewise. - (debug_referenced_vars, dump_referenced_vars): Likewise. - (add_referenced_var_1, add_referenced_var): Likewise. - (remove_referenced_var): Likewise. - (find_referenced_vars_in): Likewise. - * tree-flow-inline.h (gimple_referenced_vars): Remove. - (first_referenced_var): Likewise. - (end_referenced_vars_p): Likewise. - (next_referenced_var): Likewise. - * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert. - * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs - unconditionally. - * tree-into-ssa.c (dump_decl_set): Likewise. - (pass_build_ssa): Do not require PROP_referenced_vars. - * tree-ssa.c (target_for_debug_bind): Virtual operands are - not suitable, but all register type vars are. - (init_tree_ssa): Do not allocate referenced vars. - (delete_tree_ssa): Do not free referenced vars. - * cgraphunit.c (init_lowered_empty_function): Do not set - PROP_referenced_vars. - (assemble_thunk): Do not add referenced vars. - * gimple-fold.c (canonicalize_constructor_val): Likewise. - (gimplify_and_update_call_from_tree): Likewise. - * gimple-streamer-in.c (input_bb): Likewise. - * passes.c (init_optimization_passes): Do not run - pass_referenced_vars. - (dump_properties): Do not dump PROP_referenced_vars. - * tree-inline.c (remap_decl): Do not add referenced vars. - (remap_gimple_op_r): Likewise. - (copy_tree_body_r): Likewise. - (copy_bb): Likewise. - (setup_one_parameter): Likewise. - (declare_return_variable): Likewise. - (copy_decl_for_dup_finish): Likewise. - (copy_arguments_for_versioning): Likewise. - (tree_function_versioning): Likewise. - * tree-pass.h (PROP_referenced_vars): Remove. - (pass_referenced_vars): Likewise. - * tree-profile.c (gimple_gen_edge_profiler): Do not add - referenced vars. - (gimple_gen_interval_profiler): Likewise. - (gimple_gen_pow2_profiler): Likewise. - (gimple_gen_one_value_profiler): Likewise. - (gimple_gen_ic_profiler): Likewise. - (gimple_gen_average_profiler): Likewise. - (gimple_gen_ior_profiler): Likewise. - * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars. - * tree-cfg.c (replace_ssa_name): Do not add referenced vars. - (move_stmt_op): Likewise. - * tree-ssa-operands.c (create_vop_var): Likewise. - * gimple-low.c (record_vars_into): Likewise. - * gimplify.c (gimple_regimplify_operands): Likewise. - (force_gimple_operand_1): Likewise. - * omp-low.c (expand_omp_for_generic): Likewise. - (expand_omp_for_static_chunk): Likewise. - (expand_omp_atomic_pipeline): Likewise. - * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise. - (translate_clast_assignment): Likewise. - * graphite-sese-to-poly.c (create_zero_dim_array): Likewise. - (handle_scalar_deps_crossing_scop_limits): Likewise. - * ipa-prop.c (ipa_modify_formal_parameters): Likewise. - * ipa-split.c (split_function): Likewise. - * matrix-reorg.c (transform_access_sites): Likewise. - * trans-mem.c (tm_log_add): Likewise. - (ipa_tm_insert_gettmclone_call): Likewise. - * tree-complex.c (create_one_component_var): Likewise. - * tree-if-conv.c (ifc_temp_var): Likewise. - * tree-parloops.c (take_address_of): Likewise. - (initialize_reductions): Likewise. - (separate_decls_in_region_name): Likewise. - (create_call_for_reduction_1): Likewise. - (separate_decls_in_region): Likewise. - * tree-predcom.c (predcom_tmp_var): Likewise. - (reassociate_to_the_same_stmt): Likewise. - * tree-sra.c (build_ref_for_offset): Likewise. - (create_access_replacement): Likewise. - (get_replaced_param_substitute): Likewise. - (sra_ipa_reset_debug_stmts): Likewise. - * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise. - (rewrite_bittest): Likewise. - * tree-ssa-loop-ivopts.c (create_new_iv): Likewise. - * tree-ssa-loop-manip.c (create_iv): Likewise. - (tree_transform_and_unroll_loop): Likewise. - * tree-ssa-math-opts.c (powi_as_mults): Likewise. - (build_and_insert_call): Likewise. - (gimple_expand_builtin_cabs): Likewise. - (execute_optimize_bswap): Likewise. - * tree-ssa-phiopt.c (conditional_replacement): Likewise. - (abs_replacement): Likewise. - (cond_store_replacement): Likewise. - (cond_if_else_store_replacement_1): Likewise. - * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. - * tree-ssa-pre.c (get_representative_for): Likewise. - (create_expression_by_pieces): Likewise. - (insert_into_preds_of_block): Likewise. - * tree-ssa-propagate.c (update_call_from_tree): Likewise. - * tree-ssa-reassoc.c (undistribute_ops_list): Likewise. - (eliminate_redundant_comparison): Likewise. - (rewrite_expr_tree_parallel): Likewise. - (get_reassoc_pow_ssa_name): Likewise. - * tree-ssa-strlen.c (get_string_length): Likewise. - * tree-switch-conversion.c (emit_case_bit_tests): Likewise. - (build_arrays): Likewise. - * tree-tailcall.c (adjust_return_value_with_ops): Likewise. - (create_tailcall_accumulator): Likewise. - * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise. - (vect_create_addr_base_for_vector_ref): Likewise. - (vect_permute_store_chain): Likewise. - (vect_permute_load_chain): Likewise. - * tree-vect-generic.c (expand_vector_divmod): Likewise. - * tree-vect-loop-manip.c (set_prologue_iterations): Likewise. - (vect_build_loop_niters): Likewise. - (vect_generate_tmps_on_preheader): Likewise. - (vect_update_ivs_after_vectorizer): Likewise. - (vect_gen_niters_for_prolog_loop): Likewise. - (vect_do_peeling_for_alignment): Likewise. - (vect_create_cond_for_align_checks): Likewise. - * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise. - (vect_handle_widen_op_by_const): Likewise. - (vect_operation_fits_smaller_type): Likewise. - (vect_recog_over_widening_pattern): Likewise. - * tree-vect-stmts.c (vect_init_vector): Likewise. - -2012-08-01 Alexandre Oliva - - PR debug/52983 - * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec. - -2012-08-01 Alexandre Oliva - - PR debug/52983 - * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally, - falling back to copy_rtx on non-autoinc machines. - (propagate_for_debug_subst): Always use cleanup_auto_inc_dec. - -2012-08-01 Alexandre Oliva - - PR debug/52983 - * valtrack.h, valtrack.c: New. - * Makefile.in (VALTRACK_H): New. - (OBJS): Add valtrack.o. - (valtrack.o): New. - (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H. - * combine.c: Include valtrack.h. - (make_compound_operation): Publish. - (cleanup_auto_inc_dec): Move to valtrack.c. - (struct rtx_subst_pair, propagate_for_debug_subst): Likewise. - (propagate_for_debug): Likewise. Add this_basic_block parameter. - Adjust all callers. - * cselib.c: Include valtrack.h. - * dce.c: Likewise. - * df-problems.c: Likewise. - (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c. - (dead_debug_finish, dead_debug_add): Likewise. - (dead_debug_insert_temp): Likewise. - * df.h (struct dead_debug_use): Move to valtrack.h. - (struct dead_debug, enum debug_temp_where): Likewise. - (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h. - (dead_debug_finish, dead_debug_add): Likewise. - (dead_debug_insert_temp): Likewise. - * rtl.h (make_compound_operation): Declare. - -2012-08-01 Catherine Moore - Sandra Loosemore - - * config/mips/mips-cpus.def (34kn): New. - * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn. - (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn. - * config/mips/mips-tables.opt: Regenerate. - * doc/invoke.texi (MIPS Options): Document -march=34kn. - -2012-08-01 Richard Henderson - - * expmed.h (NUM_MODE_PARTIAL_INT): New. - (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New. - (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT. - (struct expmed_op_costs): Likewise. - (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT. - (expmed_mode_index): New. - (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index. - (convert_cost_ptr): Likewise. - * expmed.c (struct init_expmed_rtl): Rename convert to trunc. - (init_expmed_one_conv): Split out from ... - (init_expmed_one_mode): ... here. Iterate conversions over - partial integer modes too. - (init_expmed): Iterate over partial integer modes too. - -2012-08-01 Richard Henderson - - * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove. - (m32c_init_libfuncs): Remove. - * config/m32c/cond.md (cstore4_16): Rename from cstore4. - (cstore4): New expander. - -2012-08-01 Richard Guenther - - * tree-flow-inline.h (referenced_var): Remove. - * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate - checking code. - * tree-sra.c (candidates): New global hashtable. - (candidate): New function. - (sra_initialize): Initialize candidates. - (sra_deinitialize): Free candidates. - (disqualify_candidate): Remove candidate from candidates. - (maybe_add_sra_candidate): New function. - (find_var_candidates): Walk over all local decls and parameters, - add candidates to candidates hashtable. - (find_param_candidates): Add candidates to candidates hashtable. - (analyze_all_variable_accesses): Use candidate instead of - referenced_var. - -2012-08-01 Tom de Vries - - * tree-vrp.c (find_case_label_ranges): New function. - (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use - find_case_label_ranges instead of find_case_label_range. Handle second - range. - -2012-08-01 Michael Matz - - * tree-complex.c (init_parameter_lattice_values): Don't call var_ann. - * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member. - (dump_dfa_stats): Don't dump stats about var anns. - (collect_dfa_stats): Don't collect them. - (add_referenced_var_1): Don't set var annotation pointers. - (remove_referenced_var): Ditto, and only remove it it's in the - hash table. - - * tree-flow-inline.h (var_ann): Remove. - * tree-flow.h (struct var_ann_d, var_ann_t): Remove. - - * tree-inline.c (remapped_type): Remove. - (can_be_nonlocal): Most variable will be considered live here, - return false earlier. - (remap_decls): Don't call var_ann, all variables will be considered - referenced here. - (copy_debug_stmt): Ditto, and use is_global_var. - - * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to - determine if a variable was referred to, not var_ann. - * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann. - (remove_unused_locals): Ditto. - * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers. - * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann. - * tree.c (copy_node_stat): Don't clear var ann pointer. - * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove - ann member. - (DECL_VAR_ANN_PTR): Remove. - -2012-08-01 Michael Matz - - * tree-flow.h (struct var_ann_d): Rename used member. - (set_is_used): Don't declare. - * tree-flow-inline.h (clear_is_used): Remove. - (set_is_used, is_used_p): Move to ... - * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use - on the side bitmap. - (usedvars): New bitmap. - (dump_scope_block): Don't dump unusedness. - (remove_unused_locals): Allocate and free usedvars. - * tree-nrv.c (tree_nrv): Don't clear used flags here. - -2012-08-01 Michael Matz - - * tree-flow.h (struct var_ann_d): Remove base_var_processed and - base_index members. - * tree-ssa-live.h (struct _var_map): Remove basevars member. - (VAR_ANN_BASE_INDEX): Remove. - * tree-ssa-live.c (var_map_base_init): Use a hash table instead - of var annotation to compress index space. Don't deal with above - removed members. - (var_map_base_fini): Don't free basevars. - (init_var_map): Don't clear basevars. - -2012-08-01 Bill Schmidt - - * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change - base_name to base_expr. - (struct cand_chain_d): Likewise. - (base_cand_hash): Likewise. - (base_cand_eq): Likewise. - (record_potential_basis): Likewise. - (alloc_cand_and_find_basis): Likewise. - (create_mul_ssa_cand): Likewise. - (create_mul_imm_cand): Likewise. - (create_add_ssa_cand): Likewise. - (create_add_imm_cand): Likewise. - (slsr_process_cast): Likewise. - (slsr_process_copy): Likewise. - (dump_candidate): Likewise. - (base_cand_dump_callback): Likewise. - (unconditional_cands_with_known_stride_p): Likewise. - (cand_increment): Likewise. - -2012-08-01 Bill Schmidt - - PR tree-optimization/46556 - * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF. - (base_cand_map): Change to hash table. - (base_cand_hash): New function. - (base_cand_free): Likewise. - (base_cand_eq): Likewise. - (lookup_cand): Change base_cand_map to hash table. - (find_basis_for_candidate): Likewise. - (base_cand_from_table): Exclude CAND_REF. - (restructure_reference): New function. - (slsr_process_ref): Likewise. - (find_candidates_in_block): Call slsr_process_ref. - (dump_candidate): Handle CAND_REF. - (base_cand_dump_callback): New function. - (dump_cand_chains): Change base_cand_map to hash table. - (replace_ref): New function. - (replace_refs): Likewise. - (analyze_candidates_and_replace): Call replace_refs. - (execute_strength_reduction): Change base_cand_map to hash table. - -2012-08-01 Uros Bizjak - - * config/i386/i386.c (ix86_address_subreg_operand): Reject - stack pointer. - (ix86_print_operand_address): Assert that parts.base and parts.index - are non-NULL after call to simplify_subreg. - -2012-08-01 Richard Guenther - - * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming. - -2012-08-01 Richard Guenther - - * graphite-clast-to-gimple.c (translate_clast_user): Rename - virtual operands. - * sese.c (graphite_copy_stmts_from_block): Do not rename virtual - operands here. - * tree-call-cdce.c (tree_call_cdce): Use - mark_virtual_operands_for_renaming. - * tree-eh.c (sink_clobbers): Simplify. - * tree-flow.h (mark_sym_for_renaming): Remove. - (mark_virtual_operands_for_renaming): New function. - * tree-if-conv.c (tree_if_conversion): Use - mark_virtual_operands_for_renaming. - * tree-inline.c (update_ssa_across_abnormal_edges): Likewise. - * tree-into-ssa.c (mark_sym_for_renaming): Remove. - (mark_virtual_operands_for_renaming): New function. - * tree-loop-distribution.c (tree_loop_distribution): Use - mark_virtual_operands_for_renaming. - * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not - update stmts, use mark_virtual_operands_for_renaming. - * tree-ssa-tail-merge.c (release_last_vdef): Remove. - (replace_block_by): Adjust. - (tail_merge_optimize): Use mark_virtual_operands_for_renaming. - * tree-tailcall.c (tree_optimize_tail_calls_1): Use - mark_virtual_operands_for_renaming. - * tree-vect-slp.c (vect_slp_transform_bb): Likewise. - * tree-vectorizer.c (vectorize_loops): Likewise. - -2012-08-01 Richard Guenther - - * tree-flow.h (struct gimple_df): Remove syms_to_rename member, - add ssa_renaming_needed and rename_vops flags. - (SYMS_TO_RENAME): Remove. - (symbol_marked_for_renaming): Likewise. - (mark_virtual_ops_for_renaming): Likewise. - * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename): - New globals. - (mark_for_renaming, marked_for_renaming): New functions. - (symbol_marked_for_renaming): Remove. - (dump_currdefs): Adjust. - (maybe_replace_use): Likewise. - (maybe_replace_use_in_debug_stmt): Likewise. - (maybe_register_def): Likewise. - (rewrite_update_phi_arguments): Likewise. - (rewrite_update_enter_block): Likewise. - (fini_ssa_renamer): Clear update SSA status here ... - (delete_update_ssa): ... not here. Free rename set. - (prepare_block_for_update): Compute which decls need renaming. - (dump_update_ssa): Adjust. - (mark_sym_for_renaming): Adjust update SSA status for virtuals. - (need_ssa_update_p): Adjust. - (insert_updated_phi_nodes_for): Likewise. - (update_ssa): Likewise. - * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status - for virtual and real operands. - (finalize_ssa_uses): Likewise. - * tree-ssanames.c (init_ssanames): Adjust. - * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var, - execute_update_addresses_taken): Add bitmap to keep track of which - candidates are suitable for rewriting and later renaming by SSA update. - * matrix-reorg.c (transform_access_sites): Do not rename all defs. - * tree-dfa.c (make_rename_temp): Do not mark real operands for - renaming. - * cgraphunit.c (assemble_thunk): Likewise. - * gimplify.c (gimple_regimplify_operands): Likewise. - (force_gimple_operand_1): Likewise. - * ipa-prop.c (ipa_modify_formal_parameters): Likewise. - * tree-inline.c (declare_return_variable): Likewise. - * tree-parloops.c (separate_decls_in_region_stmt): Do not call - mark_virtual_ops_for_renaming. - (create_stores_for_reduction): Likewise. - (create_loads_and_stores_for_name): Likewise. - * tree-predcom.c (mark_virtual_ops_for_renaming): Remove. - (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming. - (execute_load_motion): Likewise. - (remove_stmt): Likewise. - (execute_pred_commoning_chain): Likewise. - * tree-sra.c (create_access_replacement): Do not rename real operands. - (get_unrenamed_access_replacement): Unify with ... - (get_access_replacement): ... this. - (get_repl_default_def_ssa_name): Adjust. - * tree-ssa-loop-im.c (move_computations_stmt): Manually update - virtual SSA form. - (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming. - * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise. - -2012-07-31 DJ Delorie - - * config/s390/s390.c (s390_option_override): Disable DWARF 3/4 - extensions for TPF, unless specifically selected. - -2012-08-01 Alan Modra - - PR target/54131 - * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range - of lo_sum offsets. Comment. Assert mode at least word size - rather than bypassing powerpc64 word offset check. - -2012-07-31 Bill Schmidt - - * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise - costs for vec_perm and vec_promote_demote down to more natural values. - (struct _rs6000_cost_data): New data structure. - (rs6000_density_test): New function. - (rs6000_init_cost): Change to use rs6000_cost_data. - (rs6000_add_stmt_cost): Likewise. - (rs6000_finish_cost): Perform density test when vectorizing a loop. - -2012-07-31 Steven Bosscher - - * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling - of RTX_UNARY function-like operations. Print unknown expression - RTX classes as pseudo-functions. - (print_pattern): Simplify return pattern printing. - (dump_insn_slim): Print the value of notes as a pattern for proper - printing of CFA notes. - -2012-07-31 Dehao Chen - - * predict.c (tree_estimate_probability_driver): Normalize the - loop when initializing the loop optimizer. - -2012-07-31 Richard Guenther - - * tree-flow.h (struct var_ann_d): Remove need_phi_state - and current_def members. - * tree-into-ssa.c (struct def_blocks_d): Remove var member. - (def_blocks): Remove. - (struct var_info_d): New. - (var_infos): New hashtable. - (struct ssa_name_info): Add def_blocks member. - (get_ssa_name_ann): Adjust. - (get_var_info): New function. - (get_phi_state, set_phi_state, get_current_def, - set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust. - (insert_phi_nodes_compare_def_blocks): Rename to ... - (insert_phi_nodes_compare_var_infos): ... this and adjust. - (insert_phi_nodes): Adjust. - (dump_tree_ssa, dump_tree_ssa_stats): Adjust. - (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove. - (debug_def_blocks_r): Rename to ... - (debug_var_infos_r): ... this and adjust. - (var_info_hash): New function. - (var_info_eq): Likewise. - (rewrite_blocks): Adjust. - (init_ssa_renamer): Likewise. - (fini_ssa_renamer): Likewise. - (delete_update_ssa): Likewise. - (update_ssa): Likewise. - * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs. - -2012-07-31 Bill Schmidt - - PR tree-optimization/53773 - * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped. - (LOOP_VINFO_OPERANDS_SWAPPED): New macro. - * tree-vect-loop.c (new_loop_vec_info): Initialize - LOOP_VINFO_OPERANDS_SWAPPED field. - (destroy_loop_vec_info): Restore canonical form. - (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field. - (vect_is_simple_reduction_1): Likewise. - -2012-07-31 Steven Bosscher - - * sched-vis.c (dump_insn_slim): Print print_rtx_head at the - start of each new line. - * final.c (final_scan_insn): If the final dump is requested as - slim RTL, dump slim RTL to the assembly file also. - -2012-07-31 Andrey Belevantsev - - PR target/53975 - - * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment. - - Revert - 2011-08-04 Sergey Grechanik - - * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge - only if producer writes to the register given by regno. - -2012-07-31 Nick Clifton - - * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add - support for reporting stack usage. - - * config/frv/frv.c (QUAD): Fix typo. - (frv_expand_prologue): Report stack usage. - -2012-07-31 Steven Bosscher - - PR pch/53880 - * gengtype.c (struct walk_type_data): Add have_this_obj field. - (walk_type): For functions that take a this_obj argument and - that process fields with a GTY((length)) argument, write the - test that write_types_local_process_field will write also at the - head of the loop, effectively unswitching the loop. - (write_func_for_structure, write_local_func_for_structure): Clear - have_this_obj before calling walk_type. - (write_local_func_for_structure): Set have_this_obj before walk_type. - (write_array): Set have_this_obj for output of local pointer walking - functions but not for marker functions. - (write_types_local_process_field): Assert have_this_obj is set. - - * rtl.h (simplify_using_condition): Adjust prototype using bitmap - from coretypes.h. - -2012-07-30 Nathan Froyd - - - * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. - * targhooks.c (default_mode_dependent_address_p): Delete code - for GO_IF_MODE_DEPENDENT_ADDRESS. - * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison. - * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention. - * doc/tm.texi: Regenerate. - * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to... - * config/alpha.c (alpha_mode_dependent_address_p): ...here. New - function. - (TARGET_MODE_DEPENDENT_ADDRESS_P): Define. - * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. - * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. - * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete. - * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. - * config/vax/vax.c (vax_mode_dependent_address_p): Make static. - Take a const_rtx. - (TARGET_MODE_DEPENDENT_ADDRESS_P): Define. - -2012-07-30 Nathan Froyd - - * expmed.h (NUM_MODE_VECTOR_INT): Define. - (struct expmed_op_cheap, struct expmed_op_costs): New structures. - (struct target_expmed): Convert x_mul_highpart_cost and - x_mul_widen_cost fields to be indexed by integer modes. - Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be - of type struct expmed_op_cheap. Convert other cost fields to be - of type struct_expmed_op_costs. - (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new - indexing of respective fields. - (expmed_op_cheap_ptr): New function. - (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it. - (expmed_op_cost_ptr): New function. - (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr, - shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr, - sdiv_cost_ptr, udiv_cost_ptr): Call it. - -2012-07-30 Sandra Loosemore - Julian Brown - - * doc/invoke.texi (MIPS Options): Document -mno-float. - * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know - about -mno-float. - -2012-07-30 Joseph Myers - - * doc/sourcebuild.texi (Subdirectories): Document common subdirectory. - -2012-07-30 John David Anglin - - PR middle-end/53823 - * expmed.c (expand_mult): Skip synth_mult for constant double op1 except - for special cases. Don't initialize coeff and is_neg. - -2012-07-30 Ulrich Weigand - Richard Earnshaw - - * target.def (vector_alignment): New target hook. - * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook. - * doc/tm.texi: Regenerate. - * targhooks.c (default_vector_alignment): New function. - * targhooks.h (default_vector_alignment): Add prototype. - * stor-layout.c (layout_type): Use targetm.vector_alignment. - * config/arm/arm.c (arm_vector_alignment): New function. - (TARGET_VECTOR_ALIGNMENT): Define. - - * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use - vector type alignment instead of size. - * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use - element type size directly instead of computing it from alignment. - Fix variable naming and comment. - -2012-07-30 Kirill Yukhin - Michael Zolotukhin - - * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New. - (OPTION_MASK_ISA_RDSEED_UNSET): Likewise. - (ix86_handle_option): Handle mrdseed option. - * config.gcc (i[34567]86-*-*): Add rdseedintrin.h. - (x86_64-*-*): Likewise. - * config/i386/prfchwintrin.h: New header. - * config/i386/cpuid.h (bit_RDSEED): New. - * config/i386/driver-i386.c (host_detect_local_cpu): Detect - RDSEED support. - * config/i386/i386-c.c: Define __RDSEED__ if needed. - * config/i386/i386.c (ix86_target_string): Define -mrdseed option. - (PTA_RDSEED): New. - (ix86_option_override_internal): Handle new option. - (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed. - (ix86_builtins): Add enum entries for RDSEED* builtins. - (ix86_init_mmx_sse_builtins): Define new builtins. - (ix86_expand_builtin): Expand RDSEED* builtins. - * config/i386/i386.h (TARGET_RDSEED): New. - * config/i386/i386.md (rdseed_1): New. - * config/i386/i386.opt (mrdseed): New. - * config/i386/x86intrin.h: Include rdseedintrin.h. - -2012-07-30 Richard Guenther - - * tree-into-ssa.c (mark_def_sites): Also process virtual operands. - (rewrite_stmt): Likewise. - (rewrite_enter_block): Likewise. - (pass_build_ssa): Do not update virtual SSA form during TODO. - (mark_symbol_for_renaming): Do nothing if we are not in SSA form. - * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier. - -2012-07-30 Oleg Endo - - PR target/39423 - * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New - insns. - -2012-07-30 Oleg Endo - - PR target/51244 - * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section. - Use t_reg_operand predicate. Add split for negated case. - (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t. - * config/sh/sh.c (expand_ashiftrt): Likewise. - -2012-07-30 Oleg Endo - - PR target/54089 - * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead - of trying to emit ashlsi3_n. - -2012-07-30 Laurynas Biveinis - Steven Bosscher - - * gengtype.c (adjust_field_type): Diagnose duplicate "length" - option applications and option being applied to arrays of atomic types. - (walk_type): Allow "atomic" option on strings too. - * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option - for the array field. - * vec.h: Describe the atomic object "A" type of the macros in - the header comment. - (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define. - * emit-rtl.c (locations_locators_vals): use the atomic object vector. - * doc/gty.texi: Clarify that GTY option "length" is only for - arrays of non-atomic objects. Fix typo in the description of the - "atomic" option. - -2012-07-27 Uros Bizjak - - * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle - zero-extended addresses. Return false if the address has less - than two components. - (ix86_split_lea_for_addr): Unconditionally convert target and - all address operands to requested mode. - * config/i386/i386.md (*lea): Recover operands from curr_insn. - Pass SImode to ix86_split_lea_for_addr when splitting zero-extended - address. - (zero-extended add splitter): New splitter to conditionally split - non-destructive adds. - (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl. - -2012-07-28 Alan Modra - - PR target/54093 - * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit - multi-gpr reload to cases where predicate passes. Do the same for - 64-bit multi-gpr reload. - -2012-07-27 Nathan Froyd - - * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap, - smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost) - shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost, - sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete - macro definitions and re-purpose as inline functions. - (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr, - set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap, - zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost, - neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost, - shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr, - set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost, - mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost, - udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr, - set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost): - New functions. - (convert_cost_ptr): New function, split out from... - (set_convert_cost, convert_cost): ...here. - * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions. - * gimple-ssa-strength-reduction.c: Likewise. - -2012-07-20 Ryan Mansfield - - * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after - diagnostic_initialize. - -2012-07-27 Oleg Endo - - PR target/54089 - * config/sh/sh.c (shiftcosts): Remove case where first operand - is a const_int. Move COSTS_N_INSNS usage into caller ... - (sh_rtx_costs) ... here. Return false when shiftcosts cannot be - calculated instead of MAX_COST. - -2012-07-27 Richard Guenther - - * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained - check whether SSA form is not up-to-date. - * tree-flow.h (name_mappings_registered_p): Remove. - * tree-into-ssa.c (struct repl_map_d): Remove. - (repl_tbl): Likewise. - (struct ssa_name_info): Add repl_set member. - (update_ssa_obstack): New static global. - (get_ssa_name_ann): Initialize repl_set. - (clear_ssa_name_info): Assert age did not wrap. - (repl_map_hash, repl_map_eq, repl_map_free): Remove. - (names_replaced_by): Adjust. - (add_to_repl_tbl): Likewise. - (dump_tree_ssa_stats): Likewise. - (init_update_ssa): Initialize update_ssa_obstack. - (delete_update_ssa): Free update_ssa_obstack. - (name_mappings_registered_p): Remove. - (update_ssa): Adjust. - -2012-07-27 Segher Boessenkool - - * config/rs6000/constraints.md: Delete "q" constraint. - * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat): - Delete the "q" alternative. - * config/rs6000/predicates.md (gpc_reg_operand): Adjust. - * config/rs6000/rs6000.c (rs6000_debug_reg_global) - (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number): - adjust to MQ_REGNO removal. - * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust - comment. - (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order. - (enum reg_class): Adjust comment. Delete MQ_REGS. - (REG_CLASS_CONTENTS): Adjust. - (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment. - * config/rs6000/rs6000.md: Delete MQ_REGNO. - (movsi_internal1, movsi_internal1_single, movhi_internal, - movqi_internal, movcc_internal1, movsf_hardfloat, - movsf_softfloat): Delete the "q" alternative. - (ctr_internal1, ctr_internal2, ctr_internal5, - ctr_internal6): Delete "q" constraint. - -2012-07-27 Richard Guenther - - * tree-into-ssa.c (def_blocks_p): New typedef. - (insert_phi_nodes_compare_def_blocks): New function. - (insert_phi_nodes): Do not walk over referenced vars, instead - walk over recorded def_blocks, record relevant ones and sort - them to avoid repeated hashtable lookups. - -2012-07-27 Richard Guenther - - * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio): - Remove param documentation. - * params.def (PARAM_MIN_VIRTUAL_MAPPINGS, - PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove. - * tree-flow.h (mark_set_for_renaming): Remove. - * tree-into-ssa.c (struct update_ssa_stats_d): Remove. - (add_new_name_mapping): Remove bookkeeping code. - (dump_update_ssa): Remove stats dumping code. - (init_update_ssa): Remove stats allocation code. - (delete_update_ssa): Remove stats freeing code. - (mark_set_for_renaming): Remove. - (switch_virtuals_to_full_rewrite_p): Likewise. - (switch_virtuals_to_full_rewrite): Likewise. - (update_ssa): Do not call switch_virtuals_to_full_rewrite. - -2012-07-27 Marek Polacek - - * cgraphunit.c: Rename varpool_finalize_variable to - varpool_finalize_decl in a comment. - -2012-07-27 Segher Boessenkool - - * common/config/rs6000/rs6000-common.c (rs6000_handle_option): - Delete code for -mno-power, -mpower, and -mpower2. - * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete. - (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together - with -maix64. - (ASM_CPU_SPEC): Delete support for POWER and POWER2. - * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete. - (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together - with -maix64. - (ASM_CPU_SPEC): Delete support for POWER and POWER2. - * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete. - (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together - with -maix64. - (TARGET_POWER): Delete. - * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete. - (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together - with -maix64. - (TARGET_POWER): Delete. - * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete. - (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together - with -maix64. - (TARGET_POWER): Delete. - * config/rs6000/darwin.h (TARGET_POWER): Delete. - * config/rs6000/driver-rs6000.c (struct asm_names): Delete - support for -mpower, -mpower2, and -mno-power. - * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): - Likewise. - (rs6000_cpu_cpp_builtins): Likewise. - * config/rs6000/rs6000-cpus.def: Likewise. - * config/rs6000/rs6000-tables.opt: Regenerate. - * config/rs6000/rs6000.c (POWER_MASKS): Delete. - (rs6000_option_override_internal): Adjust. - (rs6000_conditional_register_usage): Adjust. - (rs6000_emit_move): Adjust. - (rs6000_common_init_builtins): Adjust. - (rs6000_init_libfuncs): Adjust. - (rs6000_output_function_prologue): Adjust. - (rs6000_adjust_cost): Adjust. - (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2. - * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for - POWER and POWER2. - (TARGET_DEFAULT): Adjust. - (PROCESSOR_POWER): Delete. - (SHIFT_COUNT_TRUNCATED): Adjust. - * config/rs6000/rs6000.md (extendqisi2): Delete POWER support. - (extendqisi2_power): Delete. - (extendqisi2_no_power): Adjust. - (extendqihi2, extendqihi2_power, extendqihi2_no_power): - Likewise. - (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust. - (anonymous doz insn patterns): Delete. - (abssi2): Adjust. - (abssi2_power): Delete. - (abssi2_nopower): Adjust. - (nabs_power, nabs_nopower): Likewise. - (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1): - Likewise. Delete anonymous post-reload splitter. - (mulsi3_no_mq_internal1): rename to... - (mulsi3_internal1): New define_insn. - (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2): - Likewise. - (divmodsi4, divmodsi4_internal, udiv3, udivsi3_mq, - udivsi3_no_mq, udivsi3, div3, divsi3_mq, div3_no_mq, - udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise. - (mulh_call, mull_call, divss_call, divus_call, quoss_call, - quous_call): Likewise. - (maskir_internal1, maskir_internal2, maskir_internal3, - maskir_internal4, maskir_internal5, maskir_internal6, - maskir_internal7, maskir_internal8): Delete. - (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust. - (anonymous sl insn patterns): Delete. - (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust. - (lshrsi3_64): Adjust. - (anonymous sr insn patterns): Delete. - (anonymous rrib insn patterns): Delete. - (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust. - (anonymous sra insn patterns): Delete. - (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust. - (fix_truncsi2, fix_truncsi2_internal, - fctiwz_): Adjust. - (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq, - umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq, - smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq, - umulsi3_highpart_no_mq): Adjust. - (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete. - (ashrdi3_no_power, ashldi3, ashldi3_internal1, - lshrdi3_internal1): Adjust. - (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust. - (movti_power): Delete. - (movti_string): Adjust. - (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust. - (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power, - stmsi4_power, stmsi3_power): Delete. - (anonymous movmemsi insn patterns): Adjust. - (lfq_power2, stfq_power2): Delete. - (eq, eq_compare): Adjust. - (eqsi_power): Delete. - (ne0si): Adjust. - (anonymous le, lt, ge, gt insn patterns): Delete. - * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete. - * config/rs6000/sysv4.h (TARGET_POWER): Delete. - * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, - MULTILIB_MATCHES): Adjust. - * doc/invoke.texi (RS/6000 and PowerPC Options): Delete - -mpower, -mno-power, -mpower2, -mno-power2 documentation. - Delete -mcpu=power and -mcpu=power2 documentation. - -2012-07-27 Segher Boessenkool - - * config/rs6000/601.md: New file. - * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for - RIOS CPUs. - * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise. - * config/rs6000/driver-rs6000.c (detect_processor_aix, - struct asm_names): Likewise. - * config/rs6000/rios1.md: Delete file. - * config/rs6000/rios2.md: Delete file. - * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS - CPUs. - * config/rs6000/rs6000-opts.h (enum processor_type): Delete - PROCESSOR_RIOS1 and PROCESSOR_RIOS2. - * config/rs6000/rs6000-tables.opt: Regenerated. - * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost): - Delete. - (rs6000_option_override_internal): Delete support for RIOS CPUs. - (rs6000_conditional_register_usage): Adjust comment. - (rs6000_issue_rate):Delete support for RIOS CPUs. - * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for - RIOS CPUs. - (PROCESSOR_POWER): Change to PROCESSOR_PPC601. - (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603. - * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1 - and rios2. - (include "rios1.md", include "rios2.md"): Delete. - (include "601.md"): New. - * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to - PROCESSOR_PPC603. - * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support - for RIOS CPUs. - * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and - rios2.md . Add 601.md . - -2012-07-26 Richard Henderson - - * doc/extend.texi (attribute): Document hot/cold for labels. - * predict.c (tree_estimate_probability_bb): Handle hot/cold - attributes on user labels. - * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New. - -2012-07-26 Andrew Jenner - Sandra Loosemore - - * cse.c (find_comparison_args): Check for cycles of any length. - -2012-07-26 Nick Clifton - - * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete. - (mn10300_get_live_callee_saved_regs): If requested return a count - of the number of bytes in the mask. - (mn10300_expand_prologue): Add argument to invocation of - mn10300_get_live_callee_regs. - (mn10300_expand_epilogue): Compute reg_save_bytes by calling - mn10300_get_live_callee_saved_regs. - (mn10300_initial_offset): Likewise. - * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs): - Update prototype. - * config/mn10300/mn10300.md (return_ret): Add argument to - invocation of mn10300_get_live_callee_saved_regs. - -2012-07-26 Steven Bosscher - - PR regression/54084 - * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix - pointer difference check. - -2012-07-26 Bill Schmidt - - * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove. - (mbc_entry_eq): Likewise. - (mult_costs): Likewise. - (cost_tables_exist): Likewise. - (initialize_costs): Likewise. - (finalize_costs): Likewise. - (tree_ssa_iv_optimize_init): Remove call to initialize_costs. - (add_regs_cost): Remove. - (multiply_regs_cost): Likewise. - (add_const_cost): Likewise. - (extend_or_trunc_reg_cost): Likewise. - (negate_reg_cost): Likewise. - (struct mbc_entry): Likewise. - (multiply_by_const_cost): Likewise. - (get_address_cost): Change add_regs_cost calls to add_cost lookups; - change multiply_by_const_cost to mult_by_coeff_cost. - (force_expr_to_var_cost): Likewise. - (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost. - (get_computation_cost_at): Change add_regs_cost calls to add_cost - lookups; change multiply_by_const_cost to mult_by_coeff_cost. - (determine_iv_cost): Change add_regs_cost calls to add_cost lookups. - (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs. - * tree-ssa-address.c (expmed.h): New #include. - (most_expensive_mult_to_index): Change multiply_by_const_cost to - mult_by_coeff_cost. - * gimple-ssa-strength-reduction.c (expmed.h): New #include. - (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost, - neg_cost, and convert_cost instead of IVOPTS interfaces. - (execute_strength_reduction): Remove calls to initialize_costs and - finalize_costs. - * expmed.c (struct init_expmed_rtl): Add convert rtx_def. - (init_expmed_one_mode): Initialize convert rtx_def; initialize - x_convert_cost for related modes. - (mult_by_coeff_cost): New function. - * expmed.h (NUM_MODE_INT): New #define. - (struct target_expmed): Add x_convert_cost matrix. - (set_convert_cost): New inline function. - (convert_cost): Likewise. - (mult_by_coeff_cost): New extern decl. - * tree-flow.h (initialize_costs): Remove decl. - (finalize_costs): Likewise. - (multiply_by_const_cost): Likewise. - (add_regs_cost): Likewise. - (multiply_regs_cost): Likewise. - (add_const_cost): Likewise. - (extend_or_trunc_reg_cost): Likewise. - (negate_reg_cost): Likewise. - * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies. - (tree-ssa-address.o): Update dependencies. - -2012-07-26 Steven Bosscher - - * bitmap.h: Add explanation of sparse set as linked-list bitmap. - * sbitmap.h: Add explanation about non-sparse sets as simple bitmap. - (TEST_BIT): Make a static inline function for stronger type checking. - (SET_BIT): Don't handle sbitmaps with popcount. - (RESET_BIT): Likewise. - (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount. - (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount. - * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and - RESET_BIT_WITH_POPCOUNT on wordmask bitmaps. - (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into, - ebitmap_and_compl_into, ebitmap_and_compl): Likewise. - * sparseset.h: Add explanation of sparse set representation. - -2012-07-26 Richard Guenther - - PR tree-optimization/54098 - * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the - original range was UNDEFINED. - -2012-07-26 Ramana Radhakrishnan - - * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and - vld1Q_dupu64 tests. - -2012-07-26 Oleg Endo - - PR target/51244 - * config/sh/sh.opt (mzdcbranch): New option. - * doc/invoke.texi: Document it. - * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition - instead of TARGET_HARD_SH4. - * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default - for TARGET_HARD_SH4. - -2012-07-25 Oleg Endo - - PR target/54089 - * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA - case. - (p27_shift_count_operand, not_p27_shift_count_operand): New predicates. - * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber - from expander. Do not emit shift insn for not-SHMEDIA case. - (ashlsi3_std): Replace with ... - (ashlsi3_k, ashlsi3_d): ... these new insns. - * config/sh/sh.c (gen_ashift): Make static. Add sanity checks. - Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case. - (gen_ashift_hi): Make static. - * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward - declaration. - -2012-07-25 Bharathi Seshadri - Jim Wilson - - * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to - TARGET_BIG_ENDIAN_DEFAULT. - -2012-07-25 Eric Botcazou - - * gimple-low.c (lower_try_catch): New function. - (lower_stmt) : Use it to lower GIMPLE_TRY_CATCH. - : Delete. - : Likewise. - -2012-07-25 Eric Botcazou - - * expr.c (expand_expr_real_1): Do not expand operand #1 and #2 - of BIT_FIELD_REF for ignored results. - * fold-const.c (fold_ternary_loc) : Check that the - CONSTRUCTOR has vector type before using vector accessors on it. - * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and - #2 of BIT_FIELD_REF. - (gimplify_expr) : Likewise. - * tree-nested.c (convert_nonlocal_reference_op) : Do - not process operand #1 and #2. - (convert_local_reference_op): Likewise. - * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous - breaks throughout. - : Reuse operand #1 and #2 directly. - * tree.c (stabilize_reference) : Do not stabilize - operand #1 and #2. - (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF. - (build6_stat): Delete. - * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise. - -2012-07-25 Marc Glisse - - PR tree-optimization/30318 - * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]: - Handle __int128. - [MINUS_EXPR]: Merge with PLUS_EXPR. - -2012-07-25 Sandra Loosemore - Paul Brook - - PR target/53633 - * target.def (warn_func_return): New hook. - * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook. - * doc/tm.texi: Regenerate. - * doc/sourcebuild.texi (Effective-Target Keywords): Document - naked_functions. - * ipa-pure-const.c (warn_function_noreturn): Check - targetm.warn_func_return. - * tree-cfg.c (execute_warn_function_return): Likewise. - * config/spu/spu.c (spu_warn_func_return): New. - (TARGET_WARN_FUNC_RETURN): Define. - * config/rx/rx.c (rx_warn_func_return): New. - (TARGET_WARN_FUNC_RETURN): Define. - * config/avr/avr.c (avr_warn_func_return): New. - (TARGET_WARN_FUNC_RETURN): Define. - * config/arm/arm.c (arm_warn_func_return): New. - (TARGET_WARN_FUNC_RETURN): Define. - * config/mcore/mcore.c (mcore_warn_func_return): New. - (TARGET_WARN_FUNC_RETURN): Define. - (saved_warn_return_type, saved_warn_return_type_count): Remove. - (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack. - -2012-07-25 Siddhesh Poyarekar - - * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New - function to implement assembler dialects. - (output_asm_insn): Use do_assembler_dialects. - (asm_fprintf): Likewise. - -2012-07-25 Richard Henderson - - PR bootstrap/54092 - * libfuncs.h: Don't include optabs.h. - (struct libfunc_entry): Use "int" for op, mode1, mode2 members. - * optabs.c (hash_libfunc): Don't cast members to int. - * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H. - -2012-07-25 Dodji Seketeli - - * basic-block.c: Fix typo in comment. - -2012-07-25 Kirill Yukhin - Michael Zolotukhin - - * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New. - (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise. - (ix86_handle_option): Handle mprfchw option. - * config.gcc (i[34567]86-*-*): Add prfchwintrin.h. - (x86_64-*-*): Likewise. - * config/i386/prfchwintrin.h: New header. - * config/i386/cpuid.h (bit_PRFCHW): New. - (bit_BMI): Formatting fix. - (bit_HLE): Likewise. - (bit_RTM): Likewise. - * config/i386/driver-i386.c (host_detect_local_cpu): Detect - PREFETCHW support. - * config/i386/i386-c.c: Define __PRFCHW__ if needed. - * config/i386/i386.c (ix86_target_string): Define - -mprfchw option. Formatting fixes. - (PTA_HLE): Formatting fix. - (PTA_PRFCHW): New. - (ix86_option_override_internal): Handle new option. - (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw. - * config/i386/i386.h (TARGET_PRFCHW): New. - * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW. - * config/i386/i386.opt (mprfchw): New. - * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h. - * config/i386/x86intrin.h: Include prfchwintrin.h. - -2012-07-25 Sergey Melnikov - - * config/i386/i386.md (stack_protect_set): Disable the pattern - for Android since Android libc (bionic) does not provide random - value for stack protection guard at gs:0x14. Guard value - will be provided from external symbol (default implementation). - (stack_protect_set_): Likewise. - (stack_protect_test): Likewise. - (stack_protect_test_): Likewise. - * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does - not have Bionic by default - * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC) - Macro OPTION_BIONIC is defined in this file and provides Bionic - accessibility status - -2012-07-25 Steven Bosscher - - * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush. - -2012-07-25 Venkataramanan Kumar - - btver2 Enablement - * config.gcc (i[34567]86-*-linux* | ...): Add btver2. - (case ${target}): Add btver2. - * config/i386/driver-i386.c (host_detect_local_cpu): Let - -march=native recognize btver2 processors. - * config/i386/i386-c.c (ix86_target_macros_internal): Add - btver2 def_and_undef - * config/i386/i386.c (struct processor_costs btver2_cost): New - btver2 cost table. - (m_BTVER2): New definition. - (m_AMD_MULTIPLE): Includes m_BTVER2. - (initial_ix86_tune_features): Add btver2 tune. - (processor_target_table): Add btver2 entry. - (static const char *const cpu_names): Add btver2 entry. - (software_prefetching_beneficial_p): Add btver2. - (ix86_option_override_internal): Add btver2 instruction sets. - (ix86_issue_rate): Add btver2. - (ix86_adjust_cost): Add btver2. - * config/i386/i386.h (TARGET_BTVER2): New definition. - (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2. - (enum processor_type): Add PROCESSOR_BTVER2. - * config/i386/i386.md (define_attr "cpu"): Add btver2. - -2012-07-24 Bill Schmidt - - * doc/tm.texi: Regenerate. - * targhooks.c (default_init_cost): Add prologue and epilogue costs. - (default_add_stmt_cost): Likewise; also handle NULL stmt_info. - (default_finish_cost): Add prologue and epilogue costs. - * targhooks.h (default_add_stmt_cost): Change parameter list. - (default_finish_cost): Likewise. - * target.def (init_cost): Change documentation string. - (add_stmt_cost): Change documentation string and parameter list. - (finish_cost): Likewise. - * target.h (vect_cost_model_location): New enum. - * tree-vectorizer.h (struct _slp_tree): Remove cost substruct. - (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec - to body_cost_vec. - (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove. - (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC. - (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove. - (struct _vect_peel_extended_info): Rename stmt_cost_vec to - body_cost_vec. - (struct _stmt_vec_info): Remove cost substruct. - (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove. - (stmt_vinfo_set_outside_of_loop_cost): Remove. - (builtin_vectorization_cost): New function. - (vect_get_stmt_cost): Change to use builtin_vectorization_cost. - (add_stmt_cost): Change parameter list. - (finish_cost): Likewise. - (vect_model_simple_cost): Likewise. - (vect_model_store_cost): Likewise. - (vect_model_load_cost): Likewise. - (record_stmt_cost): Likewise. - (vect_get_load_cost): Likewise. - (vect_get_known_peeling_cost): Likewise. - * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter - list; call record_stmt_cost for prologue and epilogue costs. - (vect_estimate_min_profitable_iters): Call add_stmt_cost for - prologue and epilogue costs; remove computation of vec_outside_cost; - return vec_prologue_cost and vec_epilogue_cost from finish_cost. - (vect_model_reduction_cost): Revise call to add_stmt_cost for body - costs; call add_stmt_cost for prologue and epilogue costs. - (vect_model_induction_cost): Revise call to add_stmt_cost for body - costs; call add_stmt_cost for prologue costs. - * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter - list for function and arguments for calls to vect_get_load_cost and - vect_get_store_cost. - (vect_peeling_hash_get_lowest_cost): Change argument list for calls to - vect_get_data_access_cost and vect_get_known_peeling_cost; use - temporary vectors prologue_cost_vec and epilogue_cost_vec for the - latter call and discard their results; rename stmt_cost_vec to - body_cost_vec; correct possible storage leak for body_cost_vec. - (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to - body_cost_vec. - (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to - body_cost_vec; add extra dummy parameter on calls to - vect_get_data_access_cost; tolerate null si->stmt; add vect_body to - argument list on call to add_stmt_cost. - * tree-vect-stmts.c (record_stmt_cost): Change parameter list; - rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call - builtin_vectorization_cost; add "where" parameter on call to - add_stmt_cost. - (vect_model_simple_cost): Change parameter list; call record_stmt_cost - for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost; - rename stmt_cost_vec to body_cost_vec. - (vect_model_promotion_demotion_cost): Add vect_body argument to call - to add_stmt_cost; call add_stmt_cost for prologue costs; remove call - to stmt_vinfo_set_outside_of_loop_cost. - (vect_model_store_cost): Change parameter list; call record_stmt_cost - for prologue costs; add vect_body argument to call to record_stmt_cost; - rename stmt_cost_vec to body_cost_vec; remove call to - stmt_vinfo_set_outside_of_loop_cost. - (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add - vect_body argument to calls to record_stmt_cost. - (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to - body_cost_vec; add vect_body argument to calls to record_stmt_cost; - remove call to stmt_vinfo_set_outside_of_loop_cost. - (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to - body_cost_vec; add vect_body argument to calls to record_stmt_cost; - call record_stmt_cost for prologue costs. - (vectorizable_store): Change argument list for call to - vect_model_store_cost. - (vectorizable_load): Change argument list for call to - vect_model_load_cost. - (new_stmt_vec_info): Remove assignment to - STMT_VINFO_OUTSIDE_OF_LOOP_COST. - * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs. - (spu_add_stmt_cost): Likewise; also handle NULL stmt_info. - (spu_finish_cost): Add prologue and epilogue costs. - * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs. - (i386_add_stmt_cost): Likewise; also handle NULL stmt_info. - (i386_finish_cost): Add prologue and epilogue costs. - * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue - costs. - (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info. - (rs6000_finish_cost): Add prologue and epilogue costs. - * tree-vect-slp.c (vect_free_slp_instance): Rename - SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC. - (vect_create_new_slp_node): Remove assignment to - SLP_TREE_OUTSIDE_OF_LOOP_COST. - (vect_get_and_check_slp_defs): Change parameter list; change argument - lists to calls to vect_model_store_cost and vect_model_simple_cost. - (vect_build_slp_tree): Change parameter list; change argument lists - to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and - recursive self-calls; remove setting of outside_cost from - SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to - record_stmt_cost. - (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec; - rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC; - remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP - prologue costs. - (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to - body_cost_vec; handle null ci->stmt; add vect_body argument to call - to add_stmt_cost; simplify calls to targetm.vectorize. - builtin_vectorization_cost; return vec_prologue_cost and - vec_epilogue_cost from finish_cost. - (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to - body_cost_vec; add vect_body argument to call to add_stmt_cost. - -2012-07-24 Richard Henderson - - * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison. - * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. - * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. - * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. - * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove - comment reference. - * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. - * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New. - (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX. - * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. - * config/vax/vax.md (fixuns_trunc): New. - * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. - * doc/tm.texi: Rebuild. - -2012-07-24 Richard Henderson - - * optabs.def: New file. - * Makefile.in (OPTABS_H): Add insn-opinit.h. - (MOSTLYCLEANFILES): Likewise. - (insn-opinit.o): Remove reload.h - (simple_rtl_generated_c): Remove insn-opinit.c. - (s-opinit): New rule. - (build/genopinit.o): Add optabs.def. - * genopinit.c (rtx_upname): New. - (optabs): Extract to optabs.def - (enum optab_tag, struct optab_def_d, optabs): New. - (struct pattern_d, patterns): New. - (match_pattern): Split out from ... - (gen_insn): ... here. Push matches on patterns vec. - (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New. - (header_file_name, source_file_name, handle_arg): New. - (open_outfile): New. - (main): Sort and emit new tables. Generate lookup_handler, - raw_optab_handler, swap_optab_enable. - * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op". - * optabs.c (code_to_optab_): Remove. - (hash_libfunc): Update for optab name change. - (eq_libfunc): Likewise. - (convert_optab_libfunc): Update computation of optab member; - use the new convlib_def table. - (optab_libfunc): Similarly. - (set_optab_libfunc, set_conv_libfunc): Likewise. - (sign_expand_binop): Use swap_optab_enable instead of fake optabs. - (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove. - (init_optabs): Don't call them; export the data to optabs.def. - (gen_int_libfunc, gen_fp_libfunc): Export non-static. - (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise. - (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise. - (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise. - (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise. - (gen_int_signed_fixed_libfunc): Likewise. - (gen_int_unsigned_fixed_libfunc): Likewise. - (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise. - (gen_ufloat_conv_libfunc): Likewise. - (gen_int_to_fp_nondecimal_conv_libfunc): Likewise. - (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise. - (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise. - (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise. - (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise. - (debug_optab_libfuncs): Update for optab representation change. - * optabs.h: Include insn-opinit.h. - (optab, convert_optab, direct_optab): New typedefs. - (struct optab_handlers, struct widening_optab_handlers): Remove. - (struct optab_libcall_d): Rename from optab_d; remove code_, - handlers, widening members. - (struct convert_optab_libcall_d): Rename from convert_optab_d; - remove code_ and handlers members. - (enum optab_index, enum convert_optab_index): Remove. - (enum direct_optab_index): Remove. - (code_to_optab_): Fix array range. - (optab_to_code): Covert to inline function. - (optab_to_code_, convlib_def, normlib_def): Declare. - (raw_optab_handler, swap_optab_enable): Declare. - (unknown_optab): Remove; export to optabs.def - (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab, - usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab, - ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab, - addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab, - smul_widen_optab, umul_widen_optab, usmul_widen_optab, - smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab, - usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab, - ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab, - sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab, - umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab, - ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab, - rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab, - vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab, - atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab, - movstrict_optab, movmisalign_optab, storent_optab, neg_optab, - negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab, - ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab, - parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab, - cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab, - ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab, - log_optab, log10_optab, log2_optab, log1p_optab, floor_optab, - ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab, - tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab, - cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab, - lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab, - cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab, - reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab, - reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab, - usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab, - vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab, - vec_realign_load_optab, vec_widen_umult_hi_optab, - vec_widen_umult_lo_optab, vec_widen_smult_hi_optab, - vec_widen_smult_lo_optab, vec_widen_umult_even_optab, - vec_widen_umult_odd_optab, vec_widen_smult_even_optab, - vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab, - vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab, - vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab, - vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab, - vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab, - vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab, - vec_pack_usat_optab, vec_pack_sfix_trunc_optab, - vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab, - sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab, - sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab, - sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab, - sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab, - sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab, - ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab, - ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab, - fract_optab, fractuns_optab, satfract_optab, satfractuns_optab, - vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab, - movcc_optab, reload_in_optab, reload_out_optab, movmem_optab, - setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab, - sync_lock_release_optab, sync_add_optab, sync_sub_optab, - sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab, - atomic_exchange_optab, atomic_compare_and_swap_optab, - atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab, - atomic_sub_fetch_optab, atomic_and_fetch_optab, - atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab, - atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab, - atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab, - atomic_add_optab, atomic_sub_optab, atomic_and_optab, - atomic_nand_optab, atomic_xor_optab, atomic_or_optab, - atomic_always_lock_free_optab, atomic_is_lock_free_optab, - atomic_thread_fence_optab, atomic_signal_fence_optab, - vec_perm_optab, vec_perm_const_optab): Likewise. - (struct target_optabs): Remove x_optab_table, x_convert_optab_table, - and x_direct_optab_table members; add pat_enable. - (optab_table, convert_optab_table, direct_optab_table): Remove. - (optab_handler): Use raw_optab_handler. - (widening_optab_handler, convert_optab_handler): Likewise. - (set_optab_handler, set_widening_optab_handler): Remove. - (set_convert_optab_handler, set_direct_optab_handler): Remove. - (direct_optab_handler): Defer to optab_handler. - * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New. - -2012-07-24 Jason Merrill - - * bitmap.c (bitmap_descriptor): Adjust order of parameters to - match MEM_STAT_DECL. - * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo. - -2012-07-24 Richard Henderson - - * optabs.h (struct optab_d): Rename code member to code_. - (struct convert_optab_h): Likewise. - (code_to_optab_): Rename from code_to_optab. - (code_to_optab, optab_to_code): New. - * dojump.c (do_compare_rtx_and_jump): Use code_to_optab. - * ifcvt.c (noce_emit_move_insn): Likewise. - * optabs.c (simplify_expand_binop): Use optab_to_code. - (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise. - (avoid_expensive_constant, expand_binop_directly): Likewise. - (expand_binop, expand_simple_unop, expand_unop_direct): Likewise. - (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise. - (have_insn_for, debug_optab_libfuncs): Likewise. - (init_optab, init_optabv, init_convert_optab): Update for optab - member name change. - - * libfuncs.h: Include optabs.h. - * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h. - * Makefile.in (LIBFUNCS_H): Add OPTABS_H. - (lto-streamer-in.o, dwarf2out.o): Update deps. - - * optabs.h (unknown_optab): New. - * builtins.c (interclass_mathfn_icode): Use it. - * dojump.c (do_compare_rtx_and_jump): Likewise. - * optabs.c (optab_for_tree_code, expand_binop): Likewise. - * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise. - (expand_vector_operations_1): Likewise. - * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise. - * tree-vect-stmts.c (supportable_narrowing_operation): Likewise. - -2012-07-24 Steven Bosscher - - * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check. - -2012-07-24 Ramana Radhakrishnan - - PR target/54051 - * config/arm/arm.c (arm_print_operand_address): Remove superfluous - printing of 0. - * config/arm/neon.md ("neon_vld3_lane":VD): Remove alignment - specifier. - ("neon_vld3_lane":VMQ): Likewise. - ("neon_vld3_dup":VDX): Likewise. - ("neon_vst3_lane":VD): Likewise. - ("neon_vst3_lane":VMQ): Likewise. - -2012-07-24 Roland McGrath - - * arm.c (arm_get_frame_offsets): Don't use fixed regs for - stack alignment padding. - -2012-07-24 Uros Bizjak - - PR target/53961 - * config/i386/i386.c (ix86_legitimate_address_p): Move check for - negative constant address for TARGET_X32 ... - (ix86_decompose_address): ... here. Reject constant addresses - that don't satisfy x86_64_immediate_operand predicate. - -2012-07-24 Julian Brown - - * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check. - -2012-07-24 Steven Bosscher - - * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS. - Move test to check that there is a popcount function for the the number - of bits in SBITMAP_ELT_BITS to sbitmap.c. - * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT. - MEM_STAT_INFO): Define in terms of their ALONE counterparts. - - * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled. - * configure: Regenerate. - * statistics.h (GATHER_STATISTICS): Error out if it is not defined. - (GCC_MEM_STAT_ARGUMENTS): New define. - (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS. - (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines. - (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT, - FINAL_PASS_MEM_STAT): Define. - * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL. - * ggc.h (ggc_record_overhead, ggc_free_overhead, - ggc_prune_overhead_list): Remove internal prototypes, they are defined - already in ggc-internal.h. - * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS - wrappers. - (add_statistics): Likewise. - (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0. - * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS - wrappers around "survived" and "stats" members. - (alloc_large_page): Always initialize survived. - (ggc_internal_alloc_zone_stat): Likewise. - Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if - GATHER_STATISTICS is non-0. - (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code. - (sweep_pages): Always increase survived. - (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code. - (calculate_average_page_survival): Always define. - (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code. - (ggc_print_statistics): Likewise. - (ggc_pch_read): Likewise. - * ggc-page.c (struct globals): Always define "stats" member. - (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code. - (ggc_free): Likewise. - (ggc_collec): Likewise. - (ggc_print_statistics): Likewise. - * bitmap.h (struct bitmap_head_def): Always define "desc" member. - (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code. - * gimple.h (enum gimple_alloc_kind): Always define. - (gimple_alloc_kind): Likewise. - * tree-flow.h (phinodes_print_statistics): Always define. - (ssanames_print_statistics): Likewise. - * vec.h (vec_heap_free): Always define. - (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0. - * alloc-pool.c (alloc_pool_descriptor): Always define. - (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code. - (empty_alloc_pool): Likewise. - (pool_alloc): Likewise. - (pool_free): Likewise. - (dump_alloc_pool_statistics): Likewise. - (print_statistics): Always define. - * bitmap.c (struct bitmap_descriptor): Always define. - (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT. - (register_overhead): Always define. - (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code. - (bitmap_element_allocate): Likewise. - (bitmap_elt_clear_from): Likewise. - (bitmap_obstack_alloc_stat): Likewise. - (bitmap_gc_alloc_stat): Likewise. - (bitmap_obstack_free): Likewise. - (bitmap_find_bit): Likewise. - (bitmap_ior_and_into): Likewise. - (bitmap_print): Likewise. - (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0. - * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define. - (gimple_alloc_kind_names): Likewise. - (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code. - (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0. - * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts, - rtvec_alloc_sizes): Always define. - (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code. - (rtx_alloc_stat): Likewise. - (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0. - * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts, - tree_node_sizes, tree_node_kind_names): Always define. - (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS - to if-code. - (type_hash_canon): Likewise. - (dump_tree_statistics): Likewise. - * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created): - Always define. - (ssanames_print_statistics): Likewise. - (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code. - * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define. - (phinodes_print_statistics): Likewise. - (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code. - * vec.c (struct vec_descriptor): Always define. - (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr, - vec_descriptor, rester_overhead, free_overhead): Likewise. - (cmp_statistic): Likewise. - (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code. - (vec_heap_o_reserve_1): Likewise. - (dump_vec_loc_statistics): Likewise. - -2012-07-24 Richard Guenther - - PR tree-optimization/53616 - * tree-loop-distribution.c (ldist_gen): Do not change - partition ordering when merging partitions. - -2012-07-24 Alan Modra - - PR target/53914 - PR target/54009 - * config/rs6000/constraints.md (Y): Use mem_operand_gpr. - * config/rs6000/predicates.md (word_offset_memref_operand): Delete. - Adjust all rs6000_legitimate_offset_address_p calls. - * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare. - (rs6000_secondary_reload_gpr): Declare. - (rs6000_legitimate_offset_address_p): Update prototype. - (rs6000_offsettable_memref_p): Delete. - (rs6000_secondary_reload_ppc64): Delete. - * config/rs6000/rs6000.c (address_offset): New function. - (mem_operand_gpr): Likewise. - (rs6000_legitimate_offset_address_p): Add worst_case param. When - not worst_case assume class of regs with least restrictive offsets. - Adjust all calls. - (legitimate_lo_sum_address_p): Simplify register mode tests. - (rs6000_legitimize_address): Likewise. Assume best case offset - addressing. Combine ELF and MACHO lo_sum code. - (rs6000_mode_dependent_address): Correct offset addressing limits. - (rs6000_offsettable_memref_p): Make static, add reg_mode param. - Use reg_mode to help rs6000_legitimate_offset_address_p. - (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi - gpr load/store when offset too large. - (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64. - (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls. - * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint - for gpr load/store. Order alternatives as r->Y,Y->r,r->r and - d->m,m->d,d->d. Correct size of gpr load/store. - (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order - alternatives. - (movti_ppc64): Likewise. - (movdi_internal32): Likewise. Also disparage fprs. - (movdi_mfpgpr, movdi_internal64): Likewise. - (movtf_internal): Use 'm' for fpr load/store. Order alternatives. - (movtf_softfloat): Order alternatives. - (extenddftf2_internal): Use 'm' and 'Y' for store. - (movti_power, movti_string): Use 'Y' for gpr load/store. Order. - (stack_protect_setdi, stack_protect_testdi): Likewise. - (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives. - (movdf_softfloat64): Likewise. - (reload__store): Adjust reload_di_store to provide - reload_si_store as well. - (reload__load): Likewise. - -2012-07-23 Oleg Endo - - PR target/51244 - * config/sh/predicates.md (general_movsrc_operand, - general_movdst_operand): Reject T_REG. - * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg, - movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg): - Remove T_REG alternatives. - (*negtstsi): New insn. - -2012-07-23 Oleg Endo - - PR target/53511 - * config/sh/sh.md (mulsf3_ie): Delete. - (mulsf3_i4): Rename to mulsf3_i. - (mulsf3): Emit mulsf3_i insn. - -2012-07-23 Oleg Endo - - * config/sh/sh.md (addc1, subc1): Delete. - (adddi3_compact): Use addc instead of addc1. - (subdi3_compact): Use subc instead of subc1. - -2012-07-23 Uros Bizjak - - * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype. - * config/i386/i386.c (ix86_lea_outperforms): Make static. Make - split_cost argument signed. - (ix86_avoid_lea_for_add): Cleanup. - (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1. - (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed. - Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup. - -2012-07-23 Ulrich Weigand - - * config/arm/arm.c (arm_reorg): Ensure all insns are split. - -2012-07-23 Uros Bizjak - - PR target/53961 - * config/i386/i386.md (*lea): Add asserts to detect invalid addresses. - * config/i386/i386.c (ix86_print_operand_address): Ditto. - (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...))) - addresses. Prevent zero extensions of CONST_INT operands. - -2012-07-23 Steven Bosscher - - * sbitmap.h (struct int_list): Remove. - (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc): - Remove prototypes of non-existing function. - (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors, - sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove - unused defines. - (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds, - sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to... - * basic-block.h: ... here. - * sbitmap.c: Do not include basic-block.h. - (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds, - sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to... - * cfganal.c: ... here. - * bt-load.c (compute_out, link_btr_uses): Update for above changes. - * gcse.c (compute_code_hoist_vbeinout): Likewise. - * lcm.c (compute_antinout_edge, compute_available): Likewise. - * Makefile.in: Fix sbitmap.o dependencies. - -2012-07-23 Jan-Benedict Glaw - Nick Clifton - - * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype. - * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of - (unused) parameter to void *. - -2012-07-23 Richard Guenther - - * tree-ssa-alias.c (dump_alias_info): Walk over local decls - instead of referenced vars. - -2012-07-23 Steven Bosscher - - * coverage.c: Refer to "notes file" instead of "graph file" - in all comments. Explain history of bbg prefix. - * gcov-io.h: Likewise. - * gcov.c: Likewise. - (find_source): Likewise in fnotice. - (read_graph_file): Likewise. - (read_count_file): Likewise. - * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file" - and "data file" explicitly in the explanation of the files. - -2012-07-22 Steven Bosscher - - PR tree-optimization/53881 - * tree-cfg.c (group_case_labels_stmt): Look up the basic block - for each label and compare them instead of labels. - -2012-07-22 Steven Bosscher - - * opts.c (common_handle_option): Do not set - flag_value_profile_transformations for -fprofile-generate. - * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE. - (BB_TO_GCOV_INDEX): Remove. - (output_location): Don't use it. - (branch_prob): Likewise. Don't fiddle with the index of - ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks. - (find_spanning_tree): - * gcov.c (struct function_info): Document that blocks 0 and 1 - are the entry resp. exit blocks in gcov, too, like in GCC itself. - (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special - blocks identification. - (output_lines): Likewise. - * value-prof.c (gimple_value_profile_transformations): Do not - test flag_value_profile_transformations again. - (gimple_ic_transform): Take a gimple_stmt_iterator like all other - transformation functions. - (gimple_values_to_profile): - Don't test flag_value_profile_transformations - * tree-profile.c (tree_profiling): Assert that the cgraph is in - the CGRAPH_STATE_IPA_SSA state. - Do not set, or look at, after_tree_profile. - * function.h (struct function): Remove after_tree_profile bit. - * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile. - * tree-inline.c (initialize_cfun): Don't copy it. - * lto-streamer-out.c (output_struct_function_base): Don't stream it. - * lto-streamer-in.c (input_struct_function_base): Likewise. - -2012-07-22 Oleg Endo - - * config/sh/sh.h (TARGET_DYNSHIFT): New macro. - (SH_DYNAMIC_SHIFT_COST): Use it. - * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise. - (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition. - Add sanity check for input value. Add function description. - * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3, - lshrsi3_d): Use TARGET_DYNSHIFT. - -2012-07-22 Oleg Endo - - * config/sh/sh.md (negc): Delete expander. - (*negc): Rename insn to negc. - -2012-07-22 Uros Bizjak - - PR target/53961 - * config/i386/i386.md (*lea): New insn pattern. - (*lea_1): Remove. - (*lea_2): Ditto. - (*lea_{3,4,5,6}_zext): Ditto. - * config/i386/predicates.md (lea_address_operand): Do not reject - zero-extended address operands. - * config/i386/constraints.md (j): Remove address constraint. - * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg - of an address. - (ix86_print_operand_address): Handle SImode subreg of an address. - (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now. - -2012-07-22 Hans-Peter Nilsson - - Emit executable-stack note correctly for CRIS targets. - * config/cris/cris.c (cris_file_end): New function. - (TARGET_ASM_FILE_END): Define. - -2012-07-22 Chung-Lin Tang - Maxim Kuvyrkov - NetLogic Microsystems Inc. - - * config/mips/mips.c (mips_issue_rate): Handle XLP. - * config/mips/mips.md: Include xlp.md. - * config/mips/xlp.md: New file. - -2012-07-21 Steven Bosscher - - PR gcov-profile/32543 - * profile.c (branch_prob): Update total_num_edges_instrumented and - report the number of edges to instrument. - -2012-07-21 Oleg Endo - - * config/sh/sh.md: Correct comment regarding clrt and sett insns. - -2012-07-21 Andrew Pinski - - * config/mips/mips.md (*popcountdi2_trunc): New pattern - to handle popcount of a truncation. - -2012-07-21 Andrew Pinski - - * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load): - Add a bool argument. - * config/mips/mips.c (mips_block_move_straight): Update call to - mips_expand_ext_as_unaligned_load. - (mips_expand_ext_as_unaligned_load): Add unsigned_p argument. - Accept DImode dest when the width is that of SImode. - * config/mips/mips.md (extv): Update call to - mips_expand_ext_as_unaligned_load. - (extzv): Likewise. - -2012-07-21 Andrew Pinski - - * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling - adjust_address. - -2012-07-20 Maxim Kuvyrkov - - * config/mips/mips.md (define_attr sync_*): Move before "type". - (define_attr "type"): New values "atomic" and "syncloop". - * config/mips/sync.md (atomic_exchange, atomic_fetch_add): - Set "type" attribute. - * config/mips/generic.md (generic_atomic, generic_syncloop): - New reservations. - * config/mips/10000.md, config/mips/20kc.md, - * config/mips/24k.md, config/mips/4130.md, - * config/mips/4k.md, config/mips/5400.md, - * config/mips/5500.md, config/mips/5k.md, - * config/mips/7000.md, config/mips/74k.md, - * config/mips/9000.md, config/mips/loongson2ef.md, - * config/mips/loongson3a.md, config/mips/octeon.md, - * config/mips/sb1.md, config/mips/sr71k.md, - * config/mips/xlr.md: Handle "atomic" and "syncloop" types. - -2012-07-20 Oleg Endo - - * config/sh/sh.md: Group and sort shift related patterns. - (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes. - -2012-07-20 Hans-Peter Nilsson - - * config/cris/cris.c (cris_asm_output_ident): Remove unused - local variables section_asm_op, size, buf. - -2012-07-20 Pat Haugen - Steven Bosscher - - * config/rs6000/power4.md (power4-store-update): Fix reservation. - (power4-three): Likewise. - -2012-07-20 Sameera Deshpande - Greta Yorsh - - * config/arm/arm.c (arm_cortex_a15_tune): New tune. - * config/arm/arm-cores.def (cortex-a15): Use it. - -2012-07-20 Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd. - * config/arm/arm.c (arm_slowmul_tune): Initialize it. - (arm_fastmul_tune, arm_strongarm_tune): Likewise. - (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise. - (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise. - (arm_fa726te_tune): Likewise. - -2012-07-20 Richard Guenther - - * tree-dfa.c (collect_dfa_stats): Simplify. - * tree-ssa-structalias.c (compute_may_aliases): Do not dump - referenced vars. - * cfgexpand.c (estimated_stack_frame_size): Walk over local - decls instead of referenced vars. - * tree-ssa.c (delete_tree_ssa): Simplify. - * tree-tailcall.c (find_tail_calls): Walk over local decls - instead of referenced vars. - (add_virtual_phis): Remove. - (tree_optimize_tail_calls_1): Instead mark the virtual operand - for renaming. - -2012-07-20 Steven Bosscher - - * basic-block.h (BB_FLAGS_TO_PRESERVE): New define. - (brief_dump_cfg): Update prototype to take flags argument. - (check_bb_profile): Remove prototype. - * tracer.c (tracer): Update brief_dump_cfg calls. - * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info. - Call dump_bb_info before and after the cfghook dump_bb. Terminate - the dump with a newline. - (dump_flow_info): Do not call check_bb_profile. - * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE. - (check_bb_profile): Make static. Take indent and flags arguments. - (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call - check_bb_profile. Print one edge per line. - (brief_dump_cfg): Take a flags argument, and filter out - TDF_COMMENT and TDF_DETAILS. - * pretty-print.c (pp_base_newline): Set pp_needs_newline to false. - * gimple-pretty-print.c (dump_gimple_bb_header): Do not use - dump_bb_info here, it is already called from dump_bb. Idem for - check_bb_profile. - (dump_gimple_bb_footer): Likewise. - (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to - avoid broken dumps for statement histograms. - (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do - not call pp_flush here, the buffer should be empty. - * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb. - * sched-vis.c (debug_bb_slim): Likewise. - * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb. - (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb. - (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT. - (dump_function_to_file): Do not call check_bb_profile on - ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them. - Use dump_bb instead of gimple_dump_bb. - (print_loops_bb): Use dump_bb instead of gimple_dump_bb. - * passes.c (execute_function_dump): Always call print_rtl_with_bb - for RTL dumps. - * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date - CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and - bottom of each basic block. - -2012-07-20 Richard Guenther - - PR tree-optimization/54031 - * tree-ssa-ccp.c (get_value_from_alignment): Use - get_pointer_alignment_1. - -2012-07-20 Richard Guenther - - * tree-inline.c (add_local_variables): Remove check_var_ann - parameter and dead code. - (expand_call_inline): Adjust. - (tree_function_versioning): Likewise. - -2012-07-20 Jakub Jelinek - - PR c++/28656 - * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead - of just the first one. - -2012-07-20 Richard Guenther - - * builtins.c (get_object_alignment_2): Correct offset handling - when using type alignment of a MEM_REF kind base. - -2012-07-20 Kirill Yukhin - - PR target/53877 - * config/i386/lzcntintrin.h (_lzcnt_u32): New. - (_lzcnt_u64): Ditto. - -2012-07-19 Eric Botcazou - - * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber. - -2012-07-19 Eric Botcazou - - * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the - defining statement is a SSA name that occurs in abnormal PHIs. - -2012-07-19 Eric Botcazou - - * gimple-fold.c (canonicalize_constructor_val): Strip only useless type - conversions. - -2012-07-19 Jakub Jelinek - - PR rtl-optimization/53942 - * function.c (assign_parm_setup_reg): Avoid zero/sign extension - directly from likely spilled non-fixed hard registers, move them - to pseudo first. - -2012-07-19 Steve Ellcey - - * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in - MIPS16 mode. - -2012-07-19 Jason Merrill - - PR debug/53235 - * dwarf2out.c (get_die_parent): New. - (generate_type_signature): Use it. - -2012-07-19 Richard Henderson - - * config/ia64/vect.md (smulv4hi3_highpart): New. - (umulv4hi3_highpart): New. - (vec_widen_smult_even_v4hi): Rename from pmpy2_even. - (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd. - (udot_prodv8qi, sdot_prodv8qi): Remove. - (sdot_prodv4hi, udot_prodv4hi): Remove. - * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove. - * config/ia64/ia64-protos.h: Update. - - * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require - vectors larger than UNITS_PER_WORD. - - * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing. - * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for - dummy != CODE_FOR_nothing value. - -2012-07-19 Uros Bizjak - - * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument. - * doc/tm.texi: Regenerate. - * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call. - * config/sh/sh.h (MODE_AFTER): Update. - * config/epiphany/epiphany.h (MODE_AFTER): Update. - -2012-07-19 Jakub Jelinek - - PR middle-end/54017 - * tree-cfgcleanup.c (cleanup_omp_return): Remove. - (cleanup_tree_cfg_bb): Don't call it. - * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case - handling. - -2012-07-19 Christian Bruel - - PR target/54029 - * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps. - -2012-07-19 Richard Guenther - Eric Botcazou - - * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment - about transition from invariant to known bits. - (likely_value): Addresses with UNDEFINED components are UNDEFINED. - -2012-07-19 Richard Guenther - - PR tree-optimization/53970 - * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning. - -2012-07-19 Tristan Gingold - Richard Henderson - - * opts.c (finish_options): Handle UI_SEH. - * expr.c (build_personality_function): Handle UI_SEH. - * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH. - * coretypes.h (unwind_info_type): Add UI_SEH. - * config/i386/winnt.c (i386_pe_seh_emit_except_personality): - New function. - (i386_pe_seh_init_sections): Likewise. - * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define. - (TARGET_ASM_INIT_SECTIONS): Define. - * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define. - (i386_except_unwind_info): New function. - -2012-07-18 Maciej W. Rozycki - Chao-ying Fu - - * config/mips/mips.opt (mmcu): New option. - * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define - _mips_mcu when TARGET_MCU. - (ASM_SPEC): Pass mcu options to the assembler. - * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu. - -2012-07-18 Ralf Corsépius - - * config.gcc (v850-*-rtems*): New target. - * config/v850/rtems.h: New. - * config/v850/t-rtems: New. - -2012-07-18 Bill Schmidt - - * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list - of flags controlling optimization; add -ftree-slsr to list of flags - enabled by default at -O; add -fhoist-adjacent-loads to list of flags - enabled by default at -O2; add -fvect-cost-model to list of flags - enabled by default at -O3; document -fhoist-adjacent-loads and - -ftree-slsr. - * opts.c (default_option): Make -ftree-slsr default at -O1 and above. - * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use - flag_tree_slsr. - * common.opt: Add -ftree-slsr with flag_tree_slsr. - -2012-07-18 Jie Zhang - Julian Brown - - * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR. - (arm_size_rtx_costs): Likewise. - (neon_valid_immediate): Add a case for double 0.0. - -2012-07-18 Andrew Stubbs - Mark Shinwell - Julian Brown - - * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp) - (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp) - (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp) - (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add - neon_type. - * config/arm/arm.md (neon_type): Update comment. - -2012-07-18 Richard Guenther - - PR tree-optimization/53970 - * tree.h (contains_packed_reference): Remove. - * expr.c (contains_packed_reference): Likewise. - * tree-vect-data-refs.c (not_size_aligned): New function. - (vector_alignment_reachable_p): Use it. - (vect_supportable_dr_alignment): Likewise. - -2012-07-18 Richard Guenther - - * tree.h (get_object_or_type_alignment): Remove. - * builtins.c (get_object_alignment_2): New function copied from - get_object_alignment_1. Take extra argument to indicate whether - we take the address of EXP. Rework to use type alignment information - if not, and return whether the result is an approximation or not. - (get_object_alignment_1): Wrap around get_object_alignment_2. - (get_pointer_alignment_1): Call get_object_alignment_2 indicating - we take the address. - (get_object_or_type_alignment): Remove. - * expr.c (expand_assignment): Call get_object_alignment. - (expand_expr_real_1): Likewise. - -2012-07-18 Nick Clifton - - * doc/invoke.texi (ARM Options): Document -munaligned-access. - -2012-07-18 Oleg Endo - - * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in - expander. Use arith_reg_dest predicate. - (rotldi3, rotrdi3): Remove constraints in expander. - (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact, - ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to - insn_and_split. - -2012-07-18 Oleg Endo - - PR target/33135 - * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct - description. - * config/sh/sh.c (sh_option_override): Do not change - flag_finite_math_only. Set TARGET_IEEE to complement of - flag_finite_math_only. - * doc/invoke.texi (SH options): Add mno-ieee. Correct description - of mieee and mno-ieee behavior. - -2012-07-18 Steven Bosscher - - * graphite-poly.c (print_pbb_body): Fixup dump_bb call. - -2012-07-18 Steven Bosscher - - * dumpfile.h (TDF_COMMENT): New define. - * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL, - EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU, - EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE, - EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE): - Move to new file cfg-flags.h. - (enum cfg_edge_flags): New enum, using cfg-flags.h. - (EDGE_ALL_FLAGS): Compute value automatically. - (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK, - BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION, - BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL, - BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED, - BB_IN_TRANSACTION): Move to new file cfg-flags.h. - (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h. - (BB_ALL_FLAGS): New, compute value automatically. - (dump_bb_info): Update prototype. - (dump_edge_info): Update prototype. - * cfg-flags.h: New file. - * cfg.c (dump_edge_info): Take flags argument. Be verbose only if - TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames. - Check that the edge flags are within the range of EDGE_ALL_FLAGS. - (debug_bb): Update dump_bb call. - (dump_cfg_bb_info): Remove. - (dump_bb_info): New function. Use cfg-flags.h for bitnames. - Adjust verbosity using TDF_* flags. Check that the basic block flags - are within the range of BB_ALL_FLAGS. - (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info. - * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE - first for consistency with other dump functions. - (dump_bb): Update prototype accordingly. - * cfghooks.c: Include dumpfile.h. - (verify_flow_info): Update dump_edge_info calls. - (dump_bb): Take a flags argument and pass it around. - Use dump_bb_info to dump common information about a basic block. - (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic. - (debug_flow_info): Moved here from cfgrtl.c. - * profile.c (is_edge_inconsistent): Update dump_bb calls. - * loop-invariant.c (find_defs): Update print_rtl_with_bb call. - * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim, - print_rtl_slim_with_bb): Remove prototypes. - (dump_insn_slim): Adjust prototype to take a const_rtx. - (print_rtl_with_bb): Adjust prototype. - * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim. - * sched-vis.c (dump_insn_slim): Take a const_rtx. - (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker. - (print_rtl_slim_with_bb): Remove. - (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info, - not basic block info (print_rtl_with_bb with TDF_SLIM should be used - for that. Prototype here near DEBUG_FUNCTION marker. - (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker. - Use dump_bb. - (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker. - * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX. - (remove_bb): Update dump_bb call. - (gimple_debug_bb): Use dump_bb. - (dump_function_to_file): Update gimple_dump_bb call. - (print_loops_bb): Likewise. - * tree-flow.h (gimple_dump_bb): Update prototype. - * gimple-pretty-print.c (dump_bb_header): Rename to - dump_gimple_bb_header. Write to a stream instead of a pretty - printer. Use dump_bb_info to dump basic block info. - (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a - stream instead of a pretty printer. Use dump_bb_info. - (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end. - (gimple_dump_bb): Do it here with dump_gimple_bb_header and - dump_gimple_bb_footer. - * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the - dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM. - (print_rtl_with_bb): Take a flags argument and pass it around. - Use dump_insn_slim if TDF_SLIM. - (dump_bb_info): Removed and re-incarnated in cfg.c. - (dump_flow_info): Moved to cfghooks.c. - (debug_flow_info): Moved to cfghooks.c. - * passes.c (execute_function_dump): Unconditionally use - print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM. - * final.c (dump_basic_block_info): Update dump_edge_info calls. - * tree-vrp.c (dump_asserts_for): Likewise. - * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb. - * tree-if-conv.c (if_convertible_bb_p): Don't look at - EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world. - * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL, - for the same reason. - * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls. - -2012-07-17 Richard Guenther - - * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced - vars here, use create_tmp_reg where appropriate. - (vect_create_addr_base_for_vector_ref): Do not add referenced - vars here, use create_tmp_reg where appropriate. - (vect_create_data_ref_ptr): Likewise. - (vect_create_destination_var): Likewise. - (vect_permute_store_chain): Likewise. - (vect_permute_load_chain): Likewise. - * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): - Likewise. - * tree-vect-loop.c (get_initial_def_for_induction): Likewise. - * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise. - (vect_handle_widen_op_by_const): Likewise. - * tree-vect-stmts.c (vect_init_vector): Likewise. - (vectorizable_load): Likewise. - -2012-07-17 Tom de Vries - - * hwint.c: Fix loop range. - -2012-07-17 Tom de Vries - - * double-int.h (double_int_popcount): New inline function. - * hwint.c (popcount_hwi): New function. - * hwint.h (popcount_hwi): Declare function. New inline function. - -2012-07-17 Richard Henderson - - * tree-vect-stmts.c (supportable_widening_operation): Remove decl - parameters. - (vectorizable_conversion): Update supportable_widening_operation call. - * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise. - (vect_recog_widen_shift_pattern): Likewise. - * tree-vectorizer.h: Update decl. - -2012-07-17 Ramana Radhakrishnan - Ulrich Weigand - - * common/config/arm/arm-common.c (arm_option_optimization_table): - Enable -fsched-pressure by default while optimizing. - * config/arm/arm.c (arm_option_override): Use the alternate scheduler - pressure algorithm by default. - -2012-07-16 Oleg Endo - - * config/sh/sh.h (CONST_OK_FOR_I06): Delete. - (CONST_OK_FOR_I10): Move macro to ... - * config/sh/sh.c: ... here. - (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of - CONST_OK_FOR_I06. - -2012-07-16 Oleg Endo - - * config/sh/sh.md: Delete mov related define_peephole patterns. - -2012-07-16 Jonathan Wakely - - PR c++/53919 - * doc/install.texi (Installing GCC): Refer to instructions for - released versions. Fix hyphenation. - -2012-07-16 Ulrich Weigand - - * config/spu/spu.c (targetm): Move to bottom of file. - (spu_attribute_table): Likewise. - (spu_option_override, spu_init_builtins, spu_builtin_decl, - spu_scalar_mode_supported_p, spu_vector_mode_supported_p, - spu_legitimate_address_p, spu_addr_space_legitimate_address_p, - adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store, - frame_emit_load, frame_emit_add_imm, emit_nop_for_insn, - insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare, - get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate, - spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global, - spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute, - spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg, - spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start, - spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr, - spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs, - spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory, - spu_encode_section_info, spu_legitimize_address, - spu_addr_space_legitimize_address, spu_builtin_mask_for_load, - spu_builtin_vectorization_cost, spu_vector_alignment_reachable, - spu_addr_space_pointer_mode, spu_addr_space_address_mode, - spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii, - spu_section_type_flags, spu_select_section, spu_unique_section, - spu_trampoline_init, spu_conditional_register_usage, - spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode, - spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode, - spu_setup_incoming_varargs): Remove prototypes. - (spu_legitimize_address): Add "static" to definition. - -2012-07-16 Jakub Jelinek - - * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon. - -2012-07-16 Ulrich Weigand - - * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p - before calling gsi_stmt. - -2012-07-16 Kirill Yukhin - - Revert - 2012-07-16 Sergey Melnikov - - * config/i386/i386.md (stack_protect_set): Disable the pattern - for Android since Android libc (bionic) does not provide random - value for stack protection guard at gs:0x14. Guard value - will be provided from external symbol (default implementation). - (stack_protect_set_): Likewise. - (stack_protect_test): Likewise. - (stack_protect_test_): Likewise. - -2012-07-16 H.J. Lu - - PR middle-end/53959 - PR bootstrap/53963 - * gimple.c (gimple_types_compatible_p_1): Restore type attribute - comparison. - -2012-07-16 Bill Schmidt - - * opts.c (default_option): Add -fvect-cost-model to default options - at -O3 and above. - -2012-07-16 Steven Bosscher - - * graphite-clast-to-gimple.c, graphite-dependences.c, - graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h - for pass TODO flags. - * Makefile.in: Fix dependencies. - -2012-07-16 Steven Bosscher - - * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU. - * cfgrtl.c (force_nonfallthru_and_redirect): Likewise. - - * function.c (stack_protect_epilogue): Use expand_call to expand - targetm.stack_protect_fail. - * stmt.c (expand_expr_stmt): Remove now-unused function. - * tree.h (expand_expr_stmt): Remove prototype. - * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this - hook must return a CALL_EXPR. - * doc/tm.texi: Regenerate. - - * emit-rtl.c (emit_label_before): Do not allow the same label - to be emitted twice. - (emit_label_after): Likewise. - (emit_label): Likewise. - - * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, - TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h. - * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, - TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home. - -2012-07-16 Steven Bosscher - - * system.h (dump_file): Do not define. - * tree-pass.h: Include dumpfile.h, which is a new file containing... - (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p, - dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p, - dump_flag_name, dump_file, dump_flags, dump_file_name, - get_dump_file_info, struct dump_file_info): all of this, moved to... - * dumpfile.h: Here, new file. - * tree-dump.h: Include dumpfile.h, but not tree-pass.h. - (dump_stmt): Remove prototype for C++ specific function. - (dump_enumerated_decls): Move prototype from here... - * tree-flow.h (dump_enumerated_decls): ... to here. - (get_ref_base_and_extent) Move prototype from here ... - * tree.h (get_ref_base_and_extent) ... to here. - * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because - gimple-pretty-print.h is enough. Do not include tree-dump.h, - include timevar.h and dumpfile.h instead. - (struct numbered_tree_d, compare_decls_by_uid, - dump_enumerated_decls_push, dump_enumerated_decls): Move from here ... - * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid, - dump_enumerated_decls_push, dump_enumerated_decls):... to here. - Do not include timevar.h. - * tree.c: Do not include timevar.h. - * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and - timevar.h. - (dump_cfg_stats): Use current_function_name. - (gimple_cfg2vcg): Likewise. - (dump_function_to_file): Likewise. - * df-scan.c: Do not include tree-pass.h and timevar.h. - Include dumpfile.h. - (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not - use print_current_pass. - * df-problems.c: Include dumpfile.h. - Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it - leads to errors in the code not selected. - (df_note_compute): Do not print_rtl_with_bb here. Fix compilation - bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here. - * lcm.c: Include dumpfile.h. - Remove obsolete include of insn-attr.h. - * dojump.c (do_compare_rtx_and_jump): Remove failure printing for - missing probability notes. - * stmt.c: Include dumpfile.h. - (emit_case_decision_tree): Re-enable printing expand details only - if TDF_DETAILS. - * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c, - cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c, - cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c, - coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c, - dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c, - function.c, fwprop.c, gcse.c, gimple-fold.c, - gimple-pretty-print.c, gimple-ssa-strength-reduction.c, - gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c, - graphite-dependences.c, graphite-interchange.c, - graphite-optimize-isl.c, graphite-poly.c, - graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c, - ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c, - ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c, - ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c, - jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c, - loop-unroll.c, loop-unswitch.c, lower-subreg.c, - lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c, - mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c, - plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c, - print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c, - regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c, - sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c, - store-motion.c, tracer.c, trans-mem.c, tree-affine.c, - tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c, - tree-data-ref.c, tree-diagnostic.c, tree-dump.c, - tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c, - tree-mudflap.c, tree-nrv.c, tree-object-size.c, - tree-optimize.c, tree-outof-ssa.c, tree-predcom.c, - tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c, - tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c, - tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c, - tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c, - tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, - tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, - tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, - tree-ssa-loop-manip.c, tree-ssa-loop-niter.c, - tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, - tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c, - tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c, - tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c, - tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c, - tree-ssa-threadedge.c, tree-ssa-threadupdate.c, - tree-ssa-uncprop.c, tree-ssa-uninit.c, - tree-switch-conversion.c, tree-tailcall.c, - tree-vect-data-refs.c, tree-vect-loop.c, - tree-vect-loop-manip.c, tree-vectorizer.c, - tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c, - tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h - only if needed. If tree-pass.h is included, do not include timevar.h - and dumpfile.h. If tree-pass.h is not included but dump_file, or - dump_flags, or the TDF_* flags are used, include dumpfile.h. - If gimple-pretty-print.h is included, don't include - tree-pretty-print.h. Remove assorted unnecessary includes. - - * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c, - config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c, - config/spu/spu.c, config/mep/mep.c, config/i386/i386.c: - Include dumpfile.h. - * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h. - * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep, - spu/t-spu-elf: Fix dependencies. - -2012-07-16 Dehao Chen - - Revert - 2012-07-10 Dehao Chen - - * tree.h (phi_arg_d): New field. - * tree-flow-inline.h (gimple_phi_arg_block): New function. - (gimple_phi_arg_block_from_edge): New function. - (gimple_phi_arg_set_block): New function. - (gimple_phi_arg_has_block): New function. - (redirect_edge_var_map_block): New function. - * tree-flow.h (_edge_var_map): New field. - * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used. - * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for - redirect_edge_var_map_add. - * tree-outof-ssa.c (_elim_graph): New field. - (insert_partition_copy_on_edge): New parameter. - (insert_value_copy_on_edge): New parameter. - (insert_rtx_to_part_on_edge): New parameter. - (insert_part_to_rtx_on_edge): New parameter. - (elim_graph_add_edge): New parameter. - (elim_graph_remove_succ_edge): New parameter. - (FOR_EACH_ELIM_GRAPH_SUCC): New parameter. - (FOR_EACH_ELIM_GRAPH_PRED): New parameter. - (new_elim_graph): Add block debug info. - (clear_elim_graph): Likewise. - (delete_elim_graph): Likewise. - (elim_graph_add_node): Likewise. - (elim_graph_add_edge): Likewise. - (elim_graph_remove_succ_edge): Likewise. - (eliminate_build): Likewise. - (elim_forward): Likewise. - (elim_unvisited_predecessor): Likewise. - (elim_backward): Likewise. - (elim_create): Likewise. - (eliminate_phi): Likewise. - (insert_backedge_copies): Likewise. - * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for - add_phi_arg. - (rewrite_add_phi_arguments): Likewise. - * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise. - * tree-ssa-tail-merge.c (replace_block_by): Likewise. - * tree-ssa-threadupdate.c (copy_phi_args): Likewise. - * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise. - * tree-ssa-loop-manip.c (create_iv): Likewise. - (add_exit_phis_edge): Likewise. - (split_loop_exit_edge): Likewise. - (copy_phi_node_args): Likewise. - (tree_transform_and_unroll_loop): Likewise. - * value-prof.c (gimple_ic): Likewise. - (gimple_stringop_fixed_value): Likewise. - * tree-tailcall.c (add_successor_phi_arg): Likewise. - (eliminate_tail_call): Likewise. - (create_tailcall_accumulator): Likewise. - (tree_optimize_tail_calls_1): Likewise. - * tree-phinodes.c (add_phi_arg): Likewise. - (make_phi_node): Likewise. - (resize_phi_node): Likewise. - (remove_phi_arg_num): Likewise. - * omp-low.c (expand_parallel_call): Likewise. - (expand_omp_for_static_chunk): Likewise. - * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop): - Likewise. - (slpeel_update_phi_nodes_for_guard1): Likewise. - (slpeel_update_phi_nodes_for_guard2): Likewise. - (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise. - (set_prologue_iterations): Likewise. - (slpeel_tree_peel_loop_to_edge): Likewise. - (vect_loop_versioning): Likewise. - * tree-parloops.c (create_phi_for_local_result): Likewise. - (transform_to_exit_first_loop): Likewise. - (create_parallel_loop): Likewise. - * ipa-split.c (split_function): Likewise. - * tree-vect-loop.c (get_initial_def_for_induction): Likewise. - (vect_create_epilog_for_reduction): Likewise. - * tree-vect-data-refs.c (vect_setup_realignment): Likewise. - * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise. - * tree-ssa-phiopt.c (cond_store_replacement): Likewise. - (cond_if_else_store_replacement_1): Likewise. - * tree-cfgcleanup.c (remove_forwarder_block): Likewise. - (remove_forwarder_block_with_phi): Likewise. - * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. - * tree-predcom.c (initialize_root_vars): Likewise. - (initialize_root_vars_lm): Likewise. - * sese.c (sese_add_exit_phis_edge): Likewise. - * tree-ssa-dce.c (forward_edge_to_pdom): Likewise. - * tree-ssa.c (flush_pending_stmts): Likewise. - (redirect_edge_var_map_add): Likewise. - (ssa_redirect_edge): Likewise. - * gimple-streamer-in.c (input_phi): Likewise. - * tree-vect-stmts.c (vectorizable_load): Likewise. - * tree-inline.c (copy_phis_for_bb): Likewise. - * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. - * tree-switch-conversion.c (fix_phi_nodes): Likewise. - * tree-cfg.c (reinstall_phi_args): Likewise. - (gimple_make_forwarder_block): Likewise. - (add_phi_args_after_copy_edge): Likewise. - (gimple_duplicate_sese_tail): Likewise. - -2012-07-16 Sergey Melnikov - - * config/i386/i386.md (stack_protect_set): Disable the pattern - for Android since Android libc (bionic) does not provide random - value for stack protection guard at gs:0x14. Guard value - will be provided from external symbol (default implementation). - (stack_protect_set_): Likewise. - (stack_protect_test): Likewise. - (stack_protect_test_): Likewise. - -2012-07-16 Hans-Peter Nilsson - - * config/cris/cris-protos.h (cris_legitimate_address_p): Declare. - * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of - CONSTANT_P and cris_legitimate_address_p. - * config/cris/cris.c (cris_legitimate_address_p): Make non-static. - (cris_preferred_reload_class): Don't return GENERAL_REGS as - preferred to MOF_SRP_REGS. - - * config/cris/cris.c (cris_init_libfuncs): Handle initialization - of library functions for basic atomic compare-and-swap. - * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro. - * config/cris/cris.opt (munaligned-atomic-may-use-library): New option. - * config/cris/sync.md ("atomic_fetch_") - ("cris_atomic_fetch__1") - ("atomic_compare_and_swap") - ("cris_atomic_compare_and_swap_1"): Make conditional on - TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte. - * config/cris/cris.c (cris_print_operand) : New cases. - * config/cris/sync.md (atomic_op_op_cnstr): New code_attr. - (atomic_op_op_pred): Ditto. - (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to - reflect the change to include %2 in expansion. All callers changed. - (qm3): New mode_attr. - ("atomic_fetch_"): Use - as predicate for operand 2. - ("cris_atomic_fetch__1"): Update FIXME. Use - "" "" for predicate and - constraint for operand 2. - ("atomic_compare_and_swap"): Add FIXME. Change predicate to - nonmemory_operand for operand 3. - ("cris_atomic_compare_and_swap_1"): Change operand 3 to - exclude memory. Improve emitted sync code for v10 and v32. Use - instead of for size designator for cmp. - ("atomic_compare_and_swap"): Change predicate to - nonmemory_operand for operand 3. Add FIXME. - ("cris_atomic_compare_and_swap_1"): Change predicates and - constraints for operand 3 to exclude memory. - ("atomic_fetch_") - ("atomic_compare_and_swap"): Gate expand_mem_thread_fence - calls on result of call to need_atomic_barrier_p. - -2012-07-15 Richard Sandiford - - * config/mips/mips.md (move_type): Replace mfhilo and mthilo - with mflo and mtlo. - (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi - and mtlo. Adjust move_type->type mapping. - (may_clobber_hilo): Split mthilo into mthi and mtlo. - (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16) - (*mov_internal, *mov_mips16, *movhi_internal) - (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo - instead of mthilo and mfhilo. - (mfhi_): Use mfhi instead of mfhilo. - (mthi_): Use mthi instead of mthilo. - * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w) - (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip): - Use mflo instead of mfhilo. - * config/mips/10000.md (r10k_arith): Split mthilo. - (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly. - * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise. - (ir_sb1_mthilo): Split mthilo into mthi and mtlo. - * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split - mthilo and mfhilo. - * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise. - * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo): - Likewise. - * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise. - * config/mips/5400.md (ir_vr54_hilo): Likewise. - * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise. - * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise. - * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise. - * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise. - * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise. - * config/mips/generic.md (generic_hilo): Likewise. - * config/mips/loongson2ef.md (ls2_alu): Likewise. - * config/mips/loongson3a.md (ls3a_mfhilo): Likewise. - * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2) - (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise. - * config/mips/sr71k.md (ir_sr70_hilo): Likewise. - * config/mips/xlr.md (xlr_hilo): Likewise. - -2012-07-14 Andrew Stubbs - Sandra Loosemore - - * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options. - -2012-07-14 Uros Bizjak - - * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode - for TARGET_SSE. - -2012-07-14 Steven Bosscher - - * toplev.c (init_asm_output): Open asm_out_file in 'w' mode. - -2012-07-13 Bill Schmidt - - PR bootstrap/53955 - * config/spu/spu.c (spu_init_cost): Mark static. - (spu_add_stmt_cost): Likewise. - (spu_finish_cost): Likewise. - (spu_destroy_cost_data): Likewise. - * config/i386/i386.c (ix86_init_cost): Mark static. - (ix86_add_stmt_cost): Likewise. - (ix86_finish_cost): Likewise. - (ix86_destroy_cost_data): Likewise. - * config/rs6000/rs6000.c (rs6000_init_cost): Mark static. - (rs6000_add_stmt_cost): Likewise. - (rs6000_finish_cost): Likewise. - (rs6000_destroy_cost_data): Likewise. - -2012-07-13 Steven Bosscher - - * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat, - ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args, - ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add - ATTRIBUTE_MALLOC. - * alloc-pool.h (pool_alloc): Likewise. - - * final.c (final): Do not loop to find max_uid. - -2012-07-13 Steven Bosscher - - * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static. - * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes. - -2012-07-13 Richard Guenther - - PR tree-optimization/53907 - * tree-ssa-forwprop.c (associate_pointerplus): New function. - (ssa_forward_propagate_and_combine): Call it. - -2012-07-13 Richard Guenther - - PR tree-optimization/53922 - * tree-vrp.c (value_inside_range): Change prototype to take - min/max instead of value-range. - (range_includes_zero_p): Likewise. Return the result from - value_inside_range. - (extract_range_from_binary_expr_1): Adjust to handle dont-know - return value from range_includes_zero_p. - (extract_range_from_unary_expr_1): Likewise. - (compare_range_with_value): Likewise. - (vrp_meet_1): Likewise. - -2012-07-13 Bill Schmidt - - * doc/tm.texi: Regenerate. - * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook. - (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. - (TARGET_VECTORIZE_FINISH_COST): Likewise. - (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. - * targhooks.c (default_init_cost): New function. - (default_add_stmt_cost): Likewise. - (default_finish_cost): Likewise. - (default_destroy_cost_data): Likewise. - * targhooks.h (default_init_cost): New decl. - (default_add_stmt_cost): Likewise. - (default_finish_cost): Likewise. - (default_destroy_cost_data): Likewise. - * target.def (init_cost): New DEFHOOK. - (add_stmt_cost): Likewise. - (finish_cost): Likewise. - (destroy_cost_data): Likewise. - * target.h (struct _stmt_vec_info): New extern decl. - (stmt_vectype): Likewise. - (stmt_in_inner_loop_p): Likewise. - * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef. - (stmt_vector_for_cost): New VEC/typedef. - (add_stmt_info_to_vec): New function. - (struct _slp_tree): Remove cost.inside_of_loop field. - (struct _slp_instance): Remove cost.inside_of_loop field; add - stmt_cost_vec field. - (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro. - (SLP_INSTANCE_STMT_COST_VEC): New accessor macro. - (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro. - (struct _vect_peel_extended_info): Add stmt_cost_vec field. - (struct _loop_vec_info): Add target_cost_data field. - (LOOP_VINFO_TARGET_COST_DATA): New accessor macro. - (struct _bb_vec_info): Add target_cost_data field. - (BB_VINFO_TARGET_COST_DATA): New accessor macro. - (struct _stmt_vec_info): Remove cost.inside_of_loop field. - (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro. - (stmt_vinfo_set_inside_of_loop_cost): Remove function. - (init_cost): New function. - (add_stmt_cost): Likewise. - (finish_cost): Likewise. - (destroy_cost_data): Likewise. - (vect_model_simple_cost): Change parameter list. - (vect_model_store_cost): Likewise. - (vect_model_load_cost): Likewise. - (record_stmt_cost): New extern decl. - (vect_get_load_cost): Change parameter list. - (vect_get_store_cost): Likewise. - * tree-vect-loop.c (new_loop_vec_info): Call init_cost. - (destroy_loop_vec_info): Call destroy_cost_data. - (vect_estimate_min_profitable_iters): Remove old calculation of - inside costs; call finish_cost instead. - (vect_model_reduction_cost): Call add_stmt_cost instead of old - inside-costs calculation. - (vect_model_induction_cost): Likewise. - * tree-vect-data-refs.c (vect_get_data_access_cost): Change to - return a stmt_vector_for_cost; modify calls to vect_get_load_cost - and vect_get_store_cost to obtain the value to return. - (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from - vect_get_data_access_cost and store it in the minimum peeling - structure. - (vect_peeling_hash_choose_best_peeling): Change the parameter list - to add a (stmt_vector_for_cost *) output parameter, and set its value. - (vect_enhance_data_refs_alignment): Ignore the new return value from - calls to vect_get_data_access_cost; obtain stmt_cost_vec from - vect_peeling_hash_choose_best_peeling and pass its contents to the - target cost model. - * tree-vect-stmts.c (stmt_vectype): New function. - (stmt_in_inner_loop_p): Likewise. - (record_stmt_cost): Likewise. - (vect_model_simple_cost): Add stmt_cost_vec parameter; call - record_stmt_cost instead of old calculation; don't call - stmt_vinfo_set_inside_of_loop_cost. - (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of - old calculation; don't call stmt_vinfo_set_inside_of_loop_cost. - (vect_model_store_cost): Add stmt_cost_vec parameter; call - record_stmt_cost instead of old calculation; add stmt_cost_vec - parameter to vect_get_store_cost call; don't call - stmt_vinfo_set_inside_of_loop_cost. - (vect_get_store_cost): Add stmt_cost_vec parameter; call - record_stmt_cost instead of old calculation. - (vect_model_load_cost): Add stmt_cost_vec parameter; call - record_stmt_cost instead of old calculation; add stmt_cost_vec - parameter to vect_get_load_cost call; don't call - stmt_vinfo_set_inside_of_loop_cost. - (vect_get_load_cost): Add stmt_cost_vec parameter; call - record_stmt_cost instead of old calculation. - (vectorizable_call): Add NULL parameter to vect_model_simple_cost call. - (vectorizable_conversion): Likewise. - (vectorizable_assignment): Likewise. - (vectorizable_shift): Likewise. - (vectorizable_operation): Likewise. - (vectorizable_store): Add NULL parameter to vect_model_store_cost call. - (vectorizable_load): Add NULL parameter to vect_model_load_cost call. - (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST. - * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def. - (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. - (TARGET_VECTORIZE_FINISH_COST): Likewise. - (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. - (spu_init_cost): New function. - (spu_add_stmt_cost): Likewise. - (spu_finish_cost): Likewise. - (spu_destroy_cost_data): Likewise. - * config/i386/i386.c (ix86_init_cost): New function. - (ix86_add_stmt_cost): Likewise. - (ix86_finish_cost): Likewise. - (ix86_destroy_cost_data): Likewise. - (TARGET_VECTORIZE_INIT_COST): New macro def. - (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. - (TARGET_VECTORIZE_FINISH_COST): Likewise. - (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. - * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def. - (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. - (TARGET_VECTORIZE_FINISH_COST): Likewise. - (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. - (rs6000_init_cost): New function. - (rs6000_add_stmt_cost): Likewise. - (rs6000_finish_cost): Likewise. - (rs6000_destroy_cost_data): Likewise. - * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec. - (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST. - (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add - stmt_cost_vec parameter to vect_model_store_cost and - vect_model_simple_cost calls. - (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec - parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs, - vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent - calculating cost more than once for loads; remove inside_cost - parameter from recursive vect_build_slp_tree calls; call - record_stmt_cost instead of old calculation. - (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with - the instance; free it on premature exit; remove inside_cost parameter - from vect_build_slp_tree call; add stmt_cost_vec parameter to - vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST. - (new_bb_vec_info): Call init_cost. - (destroy_bb_vec_info): Call destroy_cost_data. - (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each - statement recorded with an SLP instance; call finish_cost instead of - the old calculation. - (vect_update_slp_costs_according_to_vf): Record statement costs from - SLP instances, multiplying by the appropriate number of copies; don't - update SLP_INSTANCE_INSIDE_OF_LOOP_COST. - -2012-07-13 Richard Guenther - - PR middle-end/53937 - * builtins.c (get_pointer_alignment_1): Handle constant - pointers. - -2012-07-13 Richard Sandiford - Steven Bosscher - Bernd Schmidt - - PR rtl-optimization/53908 - * df-problems.c (can_move_insns_across): When doing - memory-reference book-keeping, handle call insns. - -2012-07-13 Richard Guenther - - * gimple.c (gimple_types_compatible_p_1): Remove redundant - type attribute comparisons. - (gimple_canonical_types_compatible_p): Likewise. - -2012-07-12 Hans-Peter Nilsson - - PR rtl-optimization/53176 - * rtlanal.c (rtx_cost): Adjust default cost for X with a - UNITS_PER_WORD factor for all X according to the size of - its mode, not just for SUBREGs with untieable modes. - Handle SET. Use factor * factor for MULT, DIV, UDIV, - MOD, UMOD. - -2012-07-12 Uros Bizjak - - * config/i386/i386.md (QImode and HImode cmove splitters): Merge - QImode and HImode splitters. Use ix86_comparison_operator. - Explicitly match FLAGS_REG. - (DFmode cmove splitter): Explicitly match FLAGS_REG. - -2012-07-11 Steven Bosscher - - * expr.h (can_move_by_pieces): Move prototype from here ... - * tree.h (can_move_by_pieces): ... to here. - * optabs.h (set_widening_optab_handler): Use XCNEW. - * gimplify.c: Do not include expr.h. - - * toplev.c: Do not include dwarf2out.h. - * config/ia64/ia64.c: Likewise. - * config/sparc/sparc.c: Likewise. - * config/sparc/t-sparc (sparc.o): Fix dependencies. - - * Makefile.in (toplev.o): Fix dependencies - (c-family/c-gimplify.o): Likewise. - (c-family/c-common.o): Likewise. - -2012-07-11 Steven Bosscher - - * basic-block.h (struct edge_def): Use basic_block instead of - basic_block_def *. - * cfgloop.h (struct loop_exit, struct loop): Likewise. - * gengenrtl.c (type_from_format): Likewise. Also for 'tree' - instead of union tree_node *. - * rtl.h (union rtunion_def, emit_insn_before_noloc, - emit_insn_after_noloc, add_insn_before, add_insn_after, - debug_bb_slim): Likewise. - * tree-inline.h (struct copy_body_data): Likewise. - * sched-rgn.c (dump_region_dot): Likewise. - * gimple.h (struct gimple_statement_base, gimple_set_bb, - gsi_move_to_bb_end): Likewise. - * sched-vis.c (debug_bb_slim): Likewise. - (debug_bb_n_slim): Likewise. - * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise. - (mn10300_block_contains_call): - -2012-07-11 Greta Yorsh - - PR target/53859 - * config/arm/arm.c (arm_early_load_addr_dep): Handle new - epilogue patterns. - -2012-07-11 Jonathan Wakely - - * doc/extend.texi (Namespace Association): Alter cautionary text. - -2012-07-10 Oleg Endo - - PR target/53911 - * config/sh/sh.md: Remove displacement addresssing related splits. - -2012-07-10 Xinliang David Li - - * doc/invoke.texi: New option documented. - * flag-types.h: New enum type. - * gimplify.c (gimplify_bind_expr): Control - clobber generation with new option. - (gimplify_target_expr): Ditto. - * common.opt: New option. - -2012-07-10 Julian Brown - - * config/arm/arm.md (movsi): Don't split symbol refs here. - (define_split): New. - -2012-07-10 Andreas Schwab - - PR bootstrap/53913 - * config/m68k/m68k.c (m68k_epilogue_uses): New. - * config/m68k/m68k.h (EPILOGUE_USES): Use it. - * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype. - -2012-07-10 Richard Henderson - - * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove. - * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison. - * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove. - (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove. - (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove. - (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove. - (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove. - (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove. - (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove. - (bdesc_args): Remove entries to match. - (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove. - * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove. - (rs6000_builtin_mul_widen_odd): Remove. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove. - * config/spu/spu.c (spu_builtin_mul_widen_even): Remove. - (spu_builtin_mul_widen_odd): Remove. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove. - * doc/tm.texi.in: Don't document the removed hooks. - - * tree-vect-stmts.c (supportable_widening_operation): Expand - WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible. - - * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart. - (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab. - * optabs.c (can_mult_highpart_p): New. - (expand_mult_highpart): New. - * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it. - * tree-vect-generic.c (expand_vector_operations_1): Don't expand - by pieces if can_mult_highpart_p. - (expand_vector_divmod): Use can_mult_highpart_p and always - generate MULT_HIGHPART_EXPR. - * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise. - * tree-vect-stmts.c (vectorizable_operation): Likewise. - - * config/spu/spu-builtins.md (spu_mpy): Move to spu.md. - (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise. - * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy. - (vec_widen_umult_odd_v8hi): Rename from spu_mpyu. - (vec_widen_smult_even_v8hi): Rename from spu_mpyhh. - (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu. - * config/spu/spu-builtins.def: Update pattern names to match. - - * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename - from altivec_vmuleub. - (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb. - (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh. - (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh. - (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub. - (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb. - (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh. - (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh. - * config/rs6000/rs6000-builtin.def: Update pattern names to match. - - * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from - avx2_umulv4siv4di3. - (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3. - (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3. - (mulv4si3): Remove XOP test shadowed by SSE4 test. - * config/i386/i386.c (bdesc_args): Update pattern names. - (ix86_expand_sse2_mulvxdi3): Likewise. - (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test - shadowed by SSE4 test. - - * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New. - * cfgexpand.c (expand_debug_expr): Handle them. - * expr.c (expand_expr_real_2): Likewise. - * fold-const.c (fold_binary_loc): Likewise. - * gimple-pretty-print.c (dump_binary_rhs): Likewise. - * optabs.c (optab_for_tree_code): Likewise. - * tree-cfg.c (verify_gimple_assign_binary): Likewise. - * tree-inline.c (estimate_operator_cost): Likewise. - * tree-pretty-print.c (dump_generic_node): Likewise. - * tree.c (commutative_tree_code): Likewise. - * tree-vect-generic.c (expand_vector_operations_1): Likewise. - Handle type change before looking up optab. - * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New. - (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New. - (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New. - (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New. - * genopinit.c (optabs): Initialize them. - * doc/md.texi: Document them. - -2012-07-10 Dehao Chen - - * tree.h (phi_arg_d): New field. - * tree-flow-inline.h (gimple_phi_arg_block): New function. - (gimple_phi_arg_block_from_edge): New function. - (gimple_phi_arg_set_block): New function. - (gimple_phi_arg_has_block): New function. - (redirect_edge_var_map_block): New function. - * tree-flow.h (_edge_var_map): New field. - * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used. - * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for - redirect_edge_var_map_add. - * tree-outof-ssa.c (_elim_graph): New field. - (insert_partition_copy_on_edge): New parameter. - (insert_value_copy_on_edge): New parameter. - (insert_rtx_to_part_on_edge): New parameter. - (insert_part_to_rtx_on_edge): New parameter. - (elim_graph_add_edge): New parameter. - (elim_graph_remove_succ_edge): New parameter. - (FOR_EACH_ELIM_GRAPH_SUCC): New parameter. - (FOR_EACH_ELIM_GRAPH_PRED): New parameter. - (new_elim_graph): Add block debug info. - (clear_elim_graph): Likewise. - (delete_elim_graph): Likewise. - (elim_graph_add_node): Likewise. - (elim_graph_add_edge): Likewise. - (elim_graph_remove_succ_edge): Likewise. - (eliminate_build): Likewise. - (elim_forward): Likewise. - (elim_unvisited_predecessor): Likewise. - (elim_backward): Likewise. - (elim_create): Likewise. - (eliminate_phi): Likewise. - (insert_backedge_copies): Likewise. - * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for - add_phi_arg. - (rewrite_add_phi_arguments): Likewise. - * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise. - * tree-ssa-tail-merge.c (replace_block_by): Likewise. - * tree-ssa-threadupdate.c (copy_phi_args): Likewise. - * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise. - * tree-ssa-loop-manip.c (create_iv): Likewise. - (add_exit_phis_edge): Likewise. - (split_loop_exit_edge): Likewise. - (copy_phi_node_args): Likewise. - (tree_transform_and_unroll_loop): Likewise. - * value-prof.c (gimple_ic): Likewise. - (gimple_stringop_fixed_value): Likewise. - * tree-tailcall.c (add_successor_phi_arg): Likewise. - (eliminate_tail_call): Likewise. - (create_tailcall_accumulator): Likewise. - (tree_optimize_tail_calls_1): Likewise. - * tree-phinodes.c (add_phi_arg): Likewise. - (make_phi_node): Likewise. - (resize_phi_node): Likewise. - (remove_phi_arg_num): Likewise. - * omp-low.c (expand_parallel_call): Likewise. - (expand_omp_for_static_chunk): Likewise. - * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop): - Likewise. - (slpeel_update_phi_nodes_for_guard1): Likewise. - (slpeel_update_phi_nodes_for_guard2): Likewise. - (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise. - (set_prologue_iterations): Likewise. - (slpeel_tree_peel_loop_to_edge): Likewise. - (vect_loop_versioning): Likewise. - * tree-parloops.c (create_phi_for_local_result): Likewise. - (transform_to_exit_first_loop): Likewise. - (create_parallel_loop): Likewise. - * ipa-split.c (split_function): Likewise. - * tree-vect-loop.c (get_initial_def_for_induction): Likewise. - (vect_create_epilog_for_reduction): Likewise. - * tree-vect-data-refs.c (vect_setup_realignment): Likewise. - * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise. - * tree-ssa-phiopt.c (cond_store_replacement): Likewise. - (cond_if_else_store_replacement_1): Likewise. - * tree-cfgcleanup.c (remove_forwarder_block): Likewise. - (remove_forwarder_block_with_phi): Likewise. - * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. - * tree-predcom.c (initialize_root_vars): Likewise. - (initialize_root_vars_lm): Likewise. - * sese.c (sese_add_exit_phis_edge): Likewise. - * tree-ssa-dce.c (forward_edge_to_pdom): Likewise. - * tree-ssa.c (flush_pending_stmts): Likewise. - (redirect_edge_var_map_add): Likewise. - (ssa_redirect_edge): Likewise. - * gimple-streamer-in.c (input_phi): Likewise. - * tree-vect-stmts.c (vectorizable_load): Likewise. - * tree-inline.c (copy_phis_for_bb): Likewise. - * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. - * tree-switch-conversion.c (fix_phi_nodes): Likewise. - * tree-cfg.c (reinstall_phi_args): Likewise. - (gimple_make_forwarder_block): Likewise. - (add_phi_args_after_copy_edge): Likewise. - (gimple_duplicate_sese_tail): Likewise. - -2012-07-09 Oleg Endo - - PR target/53886 - * config/sh/sh.c (sequence_insn_p): New function. - (find_barrier, sh_insn_length_adjustment): Use it. - -2012-07-09 Iain Sandoe - - PR target/53283 - * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN - if defined. - * config/darwin.h: Rename TARGET_FOLD_BUILTIN to - SUBTARGET_FOLD_BUILTIN. - * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto - SUBTARGET_FOLD_BUILTIN. - -2012-07-09 Iain Sandoe - - * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT - runtime exceptions model setting from here ... - * config/darwin.c (darwin_override_options): ... to here. - -2012-07-09 Steven Bosscher - - PR tree-optimization/53887 - * tree-cfg.c (group_case_labels_stmt): Make non-static. - * tree-flow.h (group_case_labels_stmt): Add prototype. - * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt - to pre-process every switch. - -2012-07-09 Jason Merrill - - PR c++/53882 - * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE. - (type_hash_eq): Likewise. - -2012-07-09 Tom de Vries - Richard Guenther - - * tree-ssa-ccp.c (optimize_unreachable): New function. - (execute_fold_all_builtins): Use optimize_unreachable to optimize - BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE. - -2012-07-09 Richard Guenther - - PR bootstrap/53898 - * graphite-optimize-isl.c: Make sure CU is not empty. - -2012-07-09 Steven Bosscher - - * gensupport.c (init_rtx_reader_args_cb): Start counting code - generating patterns from 1 to free up 0 for CODE_FOR_nothing. - * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add - the LAST_INSN_CODE marker at the end. - * genoutput.c (nothing): New static struct data. - (idata): Initialize to ¬hing. - (idata_end): Initialize to ¬hing.next. - (init_insn_for_nothing): New function to create dummy 'nothing' insn. - (main): Use it. - * genpeep.c (insn_code_number): Remove global variable. - (gen_peephole): Take it as an argument instead. - (main): Take insn_code_number from read_md_rtx. - * optabs.h: Revert r161809: - (optab_handlers): Change type of insn_code back to insn_code. - (optab_handler, widening_optab_handler, set_optab_handler, - set_widening_optab_handler, convert_optab_handler, - set_convert_optab_handler, direct_optab_handler, - set_direct_optab_handler): Remove int casts. - Revert to treating the insn_code field as "insn_code". - -2012-07-08 Oleg Endo - - * config/sh/sh.md (*return_i): Move trap_exit attribute check to ... - * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function. - * config/sh/sh-protos.h: Declare it. - -2012-07-08 Steven Bosscher - - * mcf.c: Do not include tm.h, tree.h, and langhooks.h. - (dump_fixup_graph): Use current_function_name. - (adjust_cfg_counts): Likewise. - * ira-conflicts.c: Do not include tree.h. - (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL. - -2012-07-08 Oleg Endo - - PR target/51244 - * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns. - -2012-07-08 Steven Bosscher - - * basic-block.h: Re-group most prototypes per file. - (struct edge_list): Remove num_blocks field. - (dump_bb_info): Adjust prototypes. - (dump_reg_info): Move prototype to regs.h. - * function.h: Do not include tree.h. - Include vec.h, vecir.h, input.h and machmode.h to compensate. - (function_name): New prototype. - * gimple.h: Include tree.h to compensate for basic-block.h change. - * langhooks.h: Note that tree.h is only necessary for enum tree_code. - * regs.h (dump_reg_info): Prototype here. - * regset.h: Adjust file reference in comment. - (debug_regset): Remove prototype. - * rtl.h: Include flags.h for flag_var_tracking_assignments. - (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments - instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS. - (dump_reg_info, dump_flow_info): Remove prototypes. - * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c - to here, the only user. Make static. - (reorder_basic_blocks): Call dump_reg_info before dump_flow_info. - * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h, - flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h, - tree-pass.h, cfgloop.h, and tree-flow.h. - Include basic-block.h, the first header I'd expect to be included. - (reg_obstack): Move to df-core.c. - (free_edge): Remove bogus ATTRIBUTE_UNUSED. - (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear. - (redirect_edge_succ_nodup): Move to cfghooks.c. - (dump_regset, debug_regset): Move to df-core.c. - (dump_bb_info): Move to cfgrtl.c. - (dump_reg_info): Move to regstat.c. - (dump_flow_info): Move to cfgrtl.c. - (debug_flow_info): Likewise. - (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense. - * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h, - insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h. - (flow_active_insn_p, forwarder_block_p, can_fallthru, - could_fall_through): Move to cfgrtl.c. - (set_edge_can_fallthru_flag): Moved to bb-reorder.c. - (create_edge_list): Do not set edge_list's removed num_blocks. - (print_edge_list): Look at n_basic_blocks instead of num_blocks. - (flow_nodes_print): Remove. - (flow_edge_list_print): Remove. - (inverted_post_order_compute): Use FOR_ALL_BB. - * cfgrtl.c (dump_flow_info): Moved from cfg.c. - Do not call dump_reg_info. - (debug_flow_info): Moved from cfg.c - (dump_bb_info): Moved from cfg.c. Take 'verbose' argument - to avoid looking at TDF_* flags from tree-pass.h. - (flow_active_insn_p, forwarder_block_p, can_fallthru, - could_fall_through): Moved from cfganal.c. - (print_rtl_with_bb): Adjust dump_bb_info calls. - * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c. - (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE. - (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS. - * cselib.c: Include tree.h with a FIXME. - * df-core.c (reg_obstack): Moved from cfg.c. - (dump_regset): Likewise. - (debug_regset): Likewise. Make a DEBUG_FUNCTION. - * final.c (compute_alignments): Call dump_reg_info before - dump_flow_info. - * function.c (function_name): New function. - (current_function_name): Use it. - * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before - dump_flow_info. - * ira-conflicts.c: Include tree.h with a note. - * regstat.c (dump_reg_info): Moved here from cfg.c. - * loop-init.c: Include regs.h instead of hard-reg-set.h. - (rtl_loop_init): Call dump_reg_info before dump_flow_info. - (rtl_loop_done): Likewise. - * mcf.c: Include tree.h before langhooks.h. - * predict.c (maybe_hot_count_p): Assert we have cfun. - (probably_never_executed_bb_p): Likewise. - * profile.c (compute_branch_probabilities): Use gimple_dump_cfg - instead of dump_flow_info. - * sched-deps.c: Include tree.h with a FIXME. - (call_may_noreturn_p): Add FIXME note why this function has to - look at function decls instead of function decl flags. - * sched-vis.c: Include tree.h with a FIXME. - (print_rtl_slim): Adjust dump_bb_info uses. - * statistics.c (statistics_fini_pass_2): Use current_function_name - to avoid including tree.h. - (statistics_counter_event): Use function_name for the same reason. - (statistics_histogram_event): Likewise. - * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg - instead of dump_flow_info. - * var-tracking.c (variable_tracking_main_1): Call dump_reg_info - before dump_flow_info. - * doc/cfg.texi: Update CFG documentation. - * Makefile.in (RTL_H): Depend on FLAGS_H. - (GIMPLE_H): Depend on TREE_H. - (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H, - but no longer on TREE_H. - (C_COMMON_H): Depend on TREE_H. - (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o, - sched-deps.o, sched-vis.o): Fixup dependencies. - -2012-07-08 Steven Bosscher - - * alias.h: Do not include coretypes.h in header files. - * cppbuiltin.h: Likewise. - * double-int.h: Likewise. - * gimple-fold.h: Likewise. - * flags.h: Likewise. - * tree-ssa-alias.h: Likewise. - * gengtype.h (obstack_chunk_alloc, obstack_chunk_free, - OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h. - * Makefile.in (RTL_BASE_H): Depend on coretypes.h. - (TREE_H): Likewise. - (ALIAS_H): Do not depend on coretypes.h. - (FLAGS_H): Likewise. - (realmpfr.o): Depend on coretypes.h. - -2012-07-08 Steven Bosscher - - * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, - gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects. - -2012-07-07 Richard Earnshaw - - * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support. - (TARGET_FPA): Delete definition. - (TARGET_MAVERICK): Likewise. - (TARGET_FPA_EMU2): Likewise. - (arm_fp_model): Remove FPA and Maverick models. - (arm_arch_cirrus): Delete declaration. - (FLOAT_WORDS_BIG_ENDIAN): Delete definition. - (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize. - (CALL_USED_REGISTERS): Likewise. - (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition. - (FIRST_VFP_REGNUM): Renumbered. - (D7_VFP_REGNUM): Chain definition. - (LAST_LO_VFP_REGNUM): Likewise. - (FIRST_HI_VFP_REGNUM): Likewise. - (LAST_HI_VFP_REGNUM): Likewise. - (FIRST_IWMMXT_GR_REGNUM): Likewise. - (LAST_IWMMXT_GR_REGNUM): Likewise. - (FIRST_IWMMXT_REGNUM): Likewise. - (LAST_IWMMXT_REGNUM): Likewise. - (FRAME_POINTER_REGNUM): Renumbered. - (ARG_POINTER_REGNUM): Renumbered. - (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers. - (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions. - (HARD_REGNO_REGNUM): Remove FPA support. - (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize. - (reg_class): Likewise. - (REG_CLASS_NAMES): Likewise. - (REG_CLASS_CONTENTS): Likewise. - (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment. - (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support. - (CLASS_MAX_NREGS): Remove FPA and Maverick support. - * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers. - Reorganize. Use AAPCS preferred names. - (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update - comments. - (OVERLAPPING_REGISTER_NAMES): Update register numbering. - * arm.c (FL_CIRRUS): Delete definition. - (arm_arch_cirrus): Delete variable. - (arm_float_words_big_endian): Delete function. - (cirrus_memory_offset): Delete function. - (output_mov_long_double_fpa_from_arm): Delete function. - (output_mov_long_double_arm_from_fpa): Delete function. - (output_mov_double_fpa_from_arm): Delete function. - (output_mov_double_arm_from_fpa): Delete function. - (emit_sfm): Delete function. - (maybe_get_arm_condition_code): Update comment. - (arm_file_start): Always use softvfp for softfloat systems. - (thumb_core_reg_alloc_order): Adjust for updated register allocation. - (arm_option_override): Remove FPA and Maverick support. Always - default to vfp as the fallback FPU format. - (use_return_insn): Remove FPA support. - (arm_get_frame_offsets): Likewise. - (arm_save_coproc_regs): Likewise. - (arm_canonicalize_comparison): Remove Maverick support. - (arm_select_cc_mode): Likewise. - (arm_gen_compare_reg): Likewise. - (arm_print_operand): Likewise. - (arm_libcall_value_1): Remove FPA and Maverick support. - (arm_function_value_regno_p): Likewise. - (arm_apply_result_size): Likewise. - (arm_legitimate_index_p): Likewise. - (thumb2_legitimate_index_p): Likewise. - (legitimize_reload_address): Likewise. - (arm_register_move_cost): Likewise. - (arm_hard_regno_mode_ok): Likewise. - (arm_regno_class): Likewise. - (arm_dbx_register_number): Likewise. - (arm_emit_unwind_sequence): Likewise. - (arm_conditional_register_usage): Likewise. - * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration. - (cirrus_memory_offset): Likewise. - (output_move_long_double_fpa_from_arm): Likewise. - (output_move_long_double_arm_from_fpa): Likewise. - (output_move_double_fpa_from_arm): Likewise. - (output_move_double_arm_from_fpa): Likewise. - (arm_float_words_big_endian): Likewise. - * arm.md (CC_REGNUM): Renumbered. - (VFPCC_REGNUM): Moved here. Renumbered. - (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete. - (attr fpu): Remove FPA and Maverick support. - * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md. - * arm-cores.def (ep9312): Remove Maverick support. - * arm-arches.def (ep9312): Delete architecture. - * arm-tables.opt: Regenerated. - - * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp. - -2012-07-07 Steven Bosscher - - PR tree-optimization/53881 - * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on - comparing labels to establish uniqueness of a switch case target, - use the CFG instead. - -2012-07-07 Ulrich Weigand - - * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour - due to negative shift amount. - -2012-07-07 Hans-Peter Nilsson - - Fix configure test for "stack protector support in target C library". - * configure.ac (test_prefix, test_exec_prefix): Move setting from - inside sysroot handling to before and outside it. - * configure: Regenerate. - -2012-07-06 Kai Tietz - - PR bootstrap/52947 - * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always - as "/mingw/include". - -2012-07-06 Alexandre Oliva - - PR debug/53820 - * var-tracking.c (vt_add_function_parameter): Convert - internal_arg_pointer into arg_pointer-based address even - without DRAP. - -2012-07-06 Alexandre Oilva - - PR rtl-optimization/53827 - PR debug/53671 - PR debug/49888 - * alias.c (memrefs_conflict_p): Adjust offset and size by the - same amount for alignment ANDs. - -2012-07-06 Tom de Vries - - PR tree-optimization/51879 - * tree-ssa-sccvn.c (copy_reference_ops_from_call) - (visit_reference_op_call): Handle case that lhs is not an SSA_NAME. - (visit_use): Also call visit_reference_op_call for calls with a vdef. - -2012-07-06 Tom de Vries - - PR tree-optimization/52009 - * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare - value numbers of gimple_vdef. - * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to - prototype. - * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR. - (vn_reference_insert): Add and handle vdef parameter. - (visit_reference_op_load): Add argument to vn_reference_insert call. - (visit_reference_op_store): Find value number of vdef of store. Insert - value number of vdef of store. - -2012-07-06 Uros Bizjak - - * config/i386/i386.md (simple lea to add peephole): Also transform - RTXes where second PLUS operand matches output. - -2012-07-06 Uros Bizjak - - * config/i386/i386.c (construct_plt_address): Make static. - * config/i386/i386-protos.h (construct_plt_address): Remove. - -2012-07-06 Nick Clifton - - * config/mn10300/mn10300.c (mn10300_encode_section_info): Call - default_encode_section_info. - -2012-07-06 Uros Bizjak - - PR target/53853 - * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model, - emit PIC sequence for fnaddr symbol reference in advance. - -2012-07-06 Eric Botcazou - - Revert - 2012-06-14 Eric Botcazou - - * dwarf2out.c (function_possibly_abstracted_p): New static function. - (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of - cgraph_function_possibly_inlined_p. - (gen_inlined_subroutine_die): Return if the origin is to be ignored. - (process_scope_var): Do not emit concrete instances of abstracted - nested functions from here. - (gen_decl_die): Emit the abstract instance if the function is possibly - abstracted and not only possibly inlined. - (dwarf2out_finish): Find the first non-abstract parent instance and - attach concrete instances on the limbo list to it. - -2012-07-05 Ramana Radhakrishnan - Julian Brown - - PR target/48941 - PR target/51980 - * config/arm/neon-gen.ml (return_by_ptr): Delete. - (print_function): Handle empty strings. - (return): Delete use of return_by_ptr. - (mask_shape_for_shuffle): New function. - (mask_elems): Likewise. - (shuffle_fn): Likewise. - (params): Simplify and remove use of return_by_ptr. - (get_shuffle): New function. - (print_variant): Update. - * config/arm/neon.ml (rev_elems): New function. - (permute_range): Likewise. - (zip_range): Likewise. - (uzip_range): Likewise. - (trn_range): Likewise. - (zip_elems): Likewise. - (uzip_elems): Likewise. - (trn_elems): Likewise. - (features): New enumeration Use_shuffle. Delete ReturnPtr. - (pf_su_8_16): New. - (suf_32): New. - (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp. - * config/arm/arm_neon.h: Regenerate. - -2012-07-05 Richard Guenther - - * tree-pretty-print.c (dump_generic_node): Properly test - the result of exact_log2. - -2012-07-05 Andreas Krebbel - - * config/s390/s390-protos.h (s390_expand_movmem) - (s390_expand_cmpmem): Add return value. - * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem): - Return FALSE to use the library function in some cases. - * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C - helper functions. - -2012-07-05 Andreas Krebbel - - * config.gcc: Enable ifunc attribute by default on s390 and s390x. - -2012-07-05 Steven Bosscher - - * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers. - * stmt.c (dump_case_nodes): New. - (expand_case): Split out code generation parts into new functions. - (expand_switch_as_decision_tree_p): Split out from expand_case. - (emit_case_decision_tree): Likewise. - (emit_case_dispatch_table): Likewise. - -2012-07-05 Matthew Gretton-Dann - - * config/arm/iterators.md (SDF): New mode iterator. - (V_if_elem): Add support for SF and DF modes. - (V_reg): Likewise. - (F_constraint): New mode iterator attribute. - (F_fma_type): Likewise. - config/arm/vfp.md (fma4): New pattern. - (*fmsub4): Likewise. - (*fmnsub4): Likewise. - (*fmnadd4): Likewise. - -2012-07-04 Uros Bizjak - - * expmed.c (expand_mult): Initialize coeff and is_neg. - -2012-07-04 Oleg Endo - - * config/sh/predicates.md (zero_extend_operand): New predicate. - * config/sh/sh.md (zero_extendhisi2): Simplify by using new - zero_extend_operand predicate. - (zero_extendqisi2): Likewise. - -2012-07-04 Uros Bizjak - - PR middle-end/53321 - * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375 - to not call cgraph_propagate_frequency if something was changed. - -2012-07-04 Richard Guenther - - PR middle-end/53433 - * gimple-fold.c (get_base_constructor): Do not return an - error_mark_node DECL_INITIAL. - -2012-07-04 Richard Guenther - - PR tree-optimization/53844 - * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle - the loop virtual PHI. - -2012-07-04 Richard Guenther - - PR tree-optimization/53849 - * tree-cfg.c (move_stmt_op): Only call add_referenced_var - for duplicated locals. Use add_referenced_var_1 to avoid - pushing/popping cfun. - -2012-07-04 Kai Tietz - - * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function. - * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add - prototype. - * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define - as i386_pe_reloc_rw_mask. - -2012-07-04 Richard Guenther - - * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same - as in free_lang_data_in_type. - -2012-07-04 Tobias Grosser - Michael Matz - - * Makefile.in (OBJS): Add graphite-optimize-isl.o. - (graphite-optimize-isl.o): Add dependencies. - * common.opt (floop-nest-optimize): New flag. - * doc/invoke.texi (floop-nest-optimize): Document. - * graphite-dependences.c (compute_deps): Export. - * graphite-poly.h (compute_deps): Declare. - * graphite-optimize-isl.c: New file. - * graphite-poly.c (apply_poly_transforms): Run the loop - nest optimizer. - * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite - if -floop-nest-optimize is enabled. - -2012-07-03 Oleg Endo - - * config/sh/predicates.md (logical_and_operand): New predicate. - * config/sh/constraints.md (Jmb, Jmw): New constraints. - * config/sh/sh.md (andsi3): Move expander above insns. Add handling - of 0xFFFF constant. Use logical_and_operand predicate and - satisfies_constraint_Jmb, satisfies_constraint_Jmw. - (*andsi3_compact): Make it an insn_and_split. Use - logical_and_operand predicate. Add Jmb,Jmw alternatives. - -2012-07-03 Jason Merrill - - PR c++/53826 - * tree.c (build_zero_cst): Handle NULLPTR_TYPE. - -2012-07-03 Nick Clifton - - * config/mep/mep.c (mep_reorg_regmove): Use - next_nonnote_non_debug_insn to advance to the next insn. Do not - expect delete_insn to return an rtx. - -2012-07-03 Richard Guenther - - * doc/install.texi (CLooG): Clarify how CLooG needs to be - configured and that it needs to be built against ISL 0.10. - -2012-07-03 Uros Bizjak - - * config/i386/i386.c (ix86_option_override_internal): Fix wrong - code model string in the error message. - -2012-07-03 Uros Bizjak - - PR target/53811 - * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies - sibcall_insn_operand. Move it to a temporary register if not. - -2012-07-03 Andreas Schwab - - PR target/28896 - * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx - if !TARGET_68020. - -2012-07-03 Uros Bizjak - - * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause. - -2012-07-03 Roland McGrath - - * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the - assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'. - * configure: Regenerated. - * config/i386/i386.md (simple_return_internal_long): Use %; - (ctz2): Likewise. - (*pause): Likewise. - -2012-07-02 Oleg Endo - - PR target/51244 - * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New - predicates. - * config/sh/sh-protos.h (get_t_reg_rtx): New prototype. - * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking - gen_branch_true and gen_branch_false. - * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and - gen_branch_false. - (branch_true, branch_false): Use t_reg_operand predicate. - (*branch_true, *branch_false): Delete. - (movt): Use t_reg_operand predicate. - (*negnegt): Use negt_reg_operand predicate and fold little and big - endian variants. - (*movtt): Use t_reg_operand and fold little and big endian variants. - (*movt_qi): Delete. - -2012-07-02 Steven Bosscher - - * stmt.c (emit_case_bit_tests): Remove. - (expand_case): Remove expand_switch_using_bit_tests_p code. - * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New. - (MAX_CASE_BIT_TESTS): Moved from stmt.c to here. - (lshift_cheap_p): Likewise. - (expand_switch_using_bit_tests_p): Likewise. - (struct case_bit_test): Likewise. - (case_bit_test_cmp): Likewise. - (emit_case_bit_tests): New implementation for GIMPLE. - (gen_inbound_check): Do not release post-dominator info here. - (process_switch): Reorder code. Expand as bit tests if it - looks like a win. - (do_switchconv): Release post-dominator info here if something changed. - (struct gimple_opt_pass): Verify more. - * tree.h (expand_switch_using_bit_tests_p): Remove prototype. - -2012-07-02 Martin Jambor - - PR middle-end/38474 - * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a - dynamic type change check. - -2012-07-02 Richard Guenther - Michael Matz - Tobias Grosser - Sebastian Pop - - * Makefile.in: Remove PPL flags in favor of ISL ones. - (BACKENDLIBS): Remove PPL libs. - (INCLUDES): Remove PPL includes in favor of ISL ones. - (graphite-clast-to-gimple.o): Remove graphite-dependences.h and - graphite-cloog-compat.h dependencies. - (graphite-dependences.o): Likewise. - (graphite-poly.o): Likewise. - * configure.ac: Declare ISL vars instead of PPL ones. - * configure: Regenerated. - * doc/install.texi: Replace PPL requirement documentation with ISL one. - * graphite-blocking.c: Remove PPL code, add ISL equivalent. - * graphite-clast-to-gimple.c: Likewise. - * graphite-dependences.c: Likewise. - * graphite-interchange.c: Likewise. - * graphite-poly.h: Likewise. - * graphite-poly.c: Likewise. - * graphite-sese-to-poly.c: Likewise. - * graphite.c: Likewise. - * graphite-scop-detection.c: Re-arrange includes. - * graphite-cloog-util.c: Remove. - * graphite-cloog-util.h: Likewise. - * graphite-ppl.h: Likewise. - * graphite-ppl.c: Likewise. - * graphite-dependences.h: Likewise. - -2012-07-02 Richard Guenther - - Merge from graphite branch - 2011-07-21 Tobias Grosser - - * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o): - Remove graphite-cloog-util.h. - * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop, - build_iv_mapping, translate_clast_user, translate_clast, - free_scattering, initialize_cloog_names, build_cloog_prog, - create_params_index): Do not use old compatibility functions. - (clast_name_to_index, set_cloog_options): Remove code for legacy cloog. - * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old - compatibility functions. - (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy - cloog. - * graphite-cloog-util.h: Remove include of graphite-cloog-util.h. - * graphite.c (graphite.c): Do not call outdated cloog_initialize() and - cloog_finalize(). - * graphite-cloog-compat.h: Remove. - - 2011-08-09 Tobias Grosser - - * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy - of the string, no just a reference. - (clast_name_index): Add a new field, that specifies if we need to free - the name. - (free_clast_name_index): If necessary, free the name string. - (clast_name_index_elt_info): Calculate the hash based on the string - content, not the memory location it is stored in. - (clast_name_to_level): Specify that we do not need to free the name. - (clast_name_to_index): Dito. - (clast_name_to_lb_ub): Dito. - (eq_clast_name_indexes): Compare the strings, not their base pointers. - (free_scattering): Removed. - (initialize_cloog_names): Renamed to add_names_to_union_domain(). - (add_names_to_union_domain): Changed to work on a union_domain, - instead of a CloogNames structure. - (build_cloog_prog): Removed. - (build_cloog_union_domain): New. - (generate_cloog_input): New. - (scop_to_clast): Use CloogInput instead of CloogProgram. - (print_generated_program): Adapt to new scop_to_clast() and do not - print the CloogProgram any more. - (create_params_index): Removed, functionality integrated in - add_names_to_union_domain(). - (gloog): Adapt to new scop_to_clast(). - * graphite-clast-to-gimple.h (scop_to_clast): Remove. - - 2012-01-11 Tobias Grosser - - * graphite-clast-to-gimple.c (clast_name_to_index, - clast_name_to_lb_ub, clast_name_to_gcc): Change types. - (clast_to_gcc_expression): Add clast_expr_name as a new - case. Do not assume a clast_expr_term points always to a - clast_expr_name. - (type_for_clast_term): Do not assume a clast_expr_term points always to - a clast_expr_name. - (type_for_clast_name): New. - (type_for_clast_expr): Add clast_expr_name as a new case. - - 2011-08-03 Sebastian Pop - - * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron, - new_Cloog_Scattering_from_ppl_Polyhedron, - new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED. - -2012-07-02 Jakub Jelinek - - PR tree-optimization/53645 - * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type) - instead of TYPE_MODE (wider_type) as can_vec_perm_p argument. - -2012-07-01 Wei Guozhi - - PR target/53447 - * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype. - * config/arm/arm.c (const_ok_for_dimode_op): New function. - * config/arm/constraints.md (Dd): New constraint. - * config/arm/predicates.md (arm_adddi_operand): New predicate. - * config/arm/arm.md (adddi3): Extend it to handle constants. - (arm_adddi3): Likewise. - (addsi3_carryin_): Extend it to handle sbc case. - (addsi3_carryin_alt2_): Likewise. - * config/arm/neon.md (adddi3_neon): Extend it to handle constants. - -2012-06-30 Nathan Sidwell - - * coverage.c (bbg_file_stamp): New. - (read_counts_file): Merge incoming stamp with bbg_file_stamp. - (build_info): Write bbg_file_stamp. - (coverage_init): Initialize bbg_file_stamp. Read counts file - before writing graph header. - (coverage_finish): Don't unlink the data file if we can generate a - unique file stamp. - * tree.h (crc32_unsigned): Declare. - * tree.c (crc32_unsigned_bits): New, broken out of ... - (crc32_byte): ... here. Use it. - (crc32_unsigned): New. - -2012-06-29 Cary Coutant - - * dwarf2out.c (add_pubname_string): Don't check for want_pubnames. - (gen_subprogram_die): Don't add pubname if want_pubnames is false. - (gen_variable_die): Likewise. - (gen_namespace_die): Likewise. - -2012-06-29 Eric Botcazou - - * tree-eh.c (lower_try_finally_switch): Really put the location of the - last statement of the finally block onto the switch. - -2012-06-29 H.J. Lu - - PR target/53539 - * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for - TARGET_LP64. - -2012-06-29 Sterling Augustine - - * dwarf2out.c (add_pubname): Add comment. - (add_pubtype): Fix indentation. - (gen_enumeration_type_die): Likewise. - -2012-06-29 Jakub Jelinek - - * tree-vect-generic.c (expand_vector_divmod): For even/odd - widening multiply, put even always as first argument to VEC_PERM_EXPR. - -2012-06-29 Richard Henderson - - * tree-vect-generic.c: Include target.h. - (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported. - * Makefile.in (tree-vect-generic.o): Update. - -2012-06-29 Steven Bosscher - - * configure.ac: Remove special gtfiles case for C. - * configure: Regenerate. - * Makefile.in: Remove C front-end hooks and build hooks that - will be picked up from c/Make-lang.in now. - Add tree-mudflap to C_COMMON_OBJS. - * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c. - * config/vms/vms.c: Look for c-tree.h in c/. - * doc/gty.texi: Remove reference to c-config-lang.in. - * doc/sourcebuild.texi: Document the c/ subdirectory. - -2012-06-29 Steven Bosscher - - * system.h (CASE_USE_BIT_TESTS): Poison. - * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ... - (expand_switch_using_bit_tests_p): ...here. - * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation. - * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate. - -2012-06-29 Steven Bosscher - - * system.h (IFCVT_EXTRA_FIELDS): Poison. - (IFCVT_INIT_EXTRA_FIELDS): Poison. - * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS. - * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of - IFCVT_INIT_EXTRA_FIELDS. - * gengtype-parse.c (struct_field_seq): Remove obsolete comment. - * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to - IFCVT_MACHDEP_INIT. - * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to - frv_ifcvt_machdep_init. - * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): - Remove documentation. - (IFCVT_MACHDEP_INIT): Document. - * doc/tm.texi: Regenerate. - -2012-06-29 Nick Clifton - - * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo. - -2012-06-29 Jakub Jelinek - - * tree-vect-stmts.c (vectorizable_operation): Check both - VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs. - Verify that operand[0]'s mode is TYPE_MODE (wide_vectype). - -2012-06-28 Richard Henderson - - * doc/generic.texi (MULT_HIGHPART_EXPR): Document it. - -2012-06-28 Jakub Jelinek - - PR tree-optimization/51581 - * tree-vect-stmts.c (permute_vec_elements): Add forward decl. - (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR - also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus - VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported. - * tree-vect-patterns.c (vect_recog_divmod_pattern): Use - MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts. - - PR tree-optimization/53645 - * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR - instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR - if possible. - -2012-06-28 Georg-Johann Lay - - PR 53595 - * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New. - * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New. - * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to - avr_hard_regno_call_part_clobbered. - -2012-06-28 Richard Guenther - - PR middle-end/53790 - * expr.c (expand_expr_real_1): Verify if the type is complete - before inspecting its size. - -2012-06-28 Andreas Schwab - - * doc/include/gpl.texi: Remove. - * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi. - -2012-06-28 Jakub Jelinek - - PR tree-optimization/53645 - * tree-vect-generic.c (add_rshift): New function. - (expand_vector_divmod): New function. - (expand_vector_operation): Use it for vector integer - TRUNC_{DIV,MOD}_EXPR by VECTOR_CST. - * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace - unused lguup variable with dummy_int. - -2012-06-28 OLivier Hainque - - * expr.c (convert_move): Latch mem integer inputs into a - register before expanding a multi-instructions sequence. - -2012-06-28 Alexandre Oliva - Uros Bizjak - Jakub Jelinek - - PR debug/53706 - PR debug/47624 - * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool... - (vt_finalize): ... here instead, if needed. - -2012-06-28 Alexandre Oliva - - PR debug/53740 - PR debug/52983 - PR debug/48866 - * dce.c (word_dce_process_block): Check whether inserting debug - temps are needed even for needed insns. - (dce_process_block): Likewise. - * df-problems.c (dead_debug_add): Add comment about multi-regs. - (dead_debug_insert_temp): Likewise. Don't subreg when we're - setting fewer regs than a multi-reg requires. - -2012-06-27 Richard Henderson - - * config/alpha/alpha.c (alpha_dimode_u): New. - (alpha_init_builtins): Initialize it, and use it. - (alpha_fold_builtin_cmpbge): Use alpha_dimode_u. - (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise. - (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise. - (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise. - (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise. - (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise. - (alpha_fold_builtin_ctpop): Likewise. - (alpha_fold_builtin_umulh): Remove. - (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix - typo in MAX_ARGS check. - -2012-06-27 Richard Henderson - - * tree.def (MULT_HIGHPART_EXPR): New. - * cfgexpand.c (expand_debug_expr): Ignore it. - * expr.c (expand_expr_real_2): Handle it. - * fold-const.c (int_const_binop_1): Likewise. - * optabs.c (optab_for_tree_code): Likewise. - * tree-cfg.c (verify_gimple_assign_binary): Likewise. - * tree-inline.c (estimate_operator_cost): Likewise. - * tree-pretty-print.c (dump_generic_node): Likewise. - (op_code_prio, op_symbol_code): Likewise. - * tree.c (commutative_tree_code): Likewise. Also handle - WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR. - -2012-06-27 Richard Henderson - - PR target/53749 - * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD - in 2012-06-23 change. Adjust two other DImode tests as well. - -2012-06-27 Nick Clifton - - * config/rx/rx.md (comparesi3_extend): Remove = modifier from - input operand. - -2012-06-27 Richard Guenther - - PR middle-end/53676 - * tree-chrec.c (chrec_convert_1): Represent truncation to - a type with undefined overflow as truncation to an unsigned - type converted to the type with undefined overflow. - * tree-scalar-evolution.c (interpret_rhs_expr): For computing - the scalar evolution of a truncated widened operation avoid - looking at the non-existing evolution of the widened operation - result. - -2012-06-27 Richard Guenther - - PR tree-optimization/53774 - * tree-ssa-reassoc.c (get_rank): All default defs have - precomputed rank. - (init_reassoc): Precompute rank for all SSA default defs. - -2012-06-27 Nick Clifton - - * config/rx/rx.md (simple_return): Use the simple_return rtx. - -2012-06-26 Richard Henderson - - * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p - and don't fall thru from standard_80387_constant_p to the memory - fallback. - -2012-06-26 Richard Henderson - - * config/i386/i386.c (bdesc_args): Update. Change - IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2. - (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New. - (ix86_builtin_mul_widen_even): Use it. - (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2. - (ix86_expand_mul_widen_evenodd): Handle signed for sse2. - * config/i386/sse.md (vec_widen_mult_hi_): Allow - for all SSE2. - (vec_widen_mult_lo_): Likewise. - (vec_widen_mult_odd_): Likewise. Relax from V124_AVX2. - (vec_widen_smult_even_v4si): New. - -2012-06-26 Richard Henderson - - * config/i386/sse.md (mul3): Change from insn_and_split - to expander; move guts to ... - * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add - highparts before shifting up. - * config/i386/i386-protos.h: Update. - -2012-06-26 Steven Bosscher - - * system.h (USE_COMMON_FOR_ONE_ONLY): Poison. - * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default. - * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define. - -2012-06-26 Alexandre Oliva - - * var-tracking.c (vt_add_function_parameter): Use a preserved - VALUE for the MEM address of an incoming parameter. - -2012-06-26 Sterling Augustine - - * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator. - (prune_unused_types): Likewise. - -2012-06-26 Steven Bosscher - - * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, - UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison. - * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, - UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to - VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP, - VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP. - * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP, - UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define. - * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the - documentation. - * doc/tm.texi: Regenerate. - * doc/cpp.texi: Make example for #error generic. - * config/frv/frv.h: Fix example text to match tm.texi. - -2012-06-26 Bill Schmidt - - * tree-pass.h (pass_strength_reduction): New decl. - * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static. - (finalize_costs): Likewise. - * timevar.def (TV_TREE_SLSR): New timevar. - * gimple-ssa-strength-reduction.c: New. - * tree-flow.h (initialize_costs): New decl. - (finalize_costs): Likewise. - * Makefile.in (tree-ssa-strength-reduction.o): New dependencies. - * passes.c (init_optimization_passes): Add pass_strength_reduction. - -2012-06-26 Matt Turner - - * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter. - (__builtin_arm_tinsrh): Likewise. - (__builtin_arm_tinsrw): Likewise. - (__builtin_arm_wsadb): Add missing v2si parameter. - (__builtin_arm_wsadh): Likewise. - (__builtin_arm_getwcx): Delete. - (__builtin_arm_setwcx): Delete. - (__builtin_arm_getwcgr0): Add. - (__builtin_arm_getwcgr1): Add. - (__builtin_arm_getwcgr2): Add. - (__builtin_arm_getwcgr3): Add. - (__builtin_arm_setwcgr0): Add. - (__builtin_arm_setwcgr1): Add. - (__builtin_arm_setwcgr2): Add. - (__builtin_arm_setwcgr3): Add. - -2012-06-26 Richard Guenther - - Revert - 2012-06-21 Richard Guenther - - * tree-inline.c (estimate_num_insns): Estimate call cost for - tailcalls properly. - -2012-06-26 Steven Bosscher - - PR other/33190 - * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT. - * doc/tm.texi: Regenerate. - -2012-06-26 Steven Bosscher - - PR other/33190 - * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES. - * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P. - * doc/tm.texi.in: Remove documentation for unused target macros - ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN, - DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE, - REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and - TARGET_NARROW_VOLATILE_BITFIELDS. - Document that MD_HANDLE_UNWABI is a macro in libgcc. - * doc/tm.texi: Regenerate. - * system.h: Poison target macros - ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN, - DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE, - REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and - TARGET_NARROW_VOLATILE_BITFIELDS - -2012-06-26 Jan Hubicka - - PR lto/53572 - * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of - used symbols. - -2012-06-26 Dehao Chen - - * tree-inline.c: (expand_call_inline): Ensure that lexical block's - source location is consistant with the call stmt. - -2012-06-26 Ulrich Weigand - - PR tree-optimization/53729 - PR tree-optimization/53636 - * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to - vect_verify_datarefs_alignment until after statements have - been marked as relevant/irrelevant. - * tree-vect-data-refs.c (vect_verify_datarefs_alignment): - Skip irrelevant statements. - (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P - instead of STMT_VINFO_RELEVANT. - (vect_get_data_access_cost): Do not check for supportable - alignment before calling vect_get_load_cost/vect_get_store_cost. - * tree-vect-stmts.c (vect_get_store_cost): Do not abort when - handling unsupported alignment. - (vect_get_load_cost): Likewise. - -2012-06-25 Steven Bosscher - - * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP. - Do not define JMP_BUF_SIZE. - -2012-06-26 Jakub Jelinek - - PR tree-optimization/53748 - * tree-ssa-phiopt.c (conditional_replacement): Only optimize - if arg0/arg1 have integral or pointer types. - -2012-06-25 Richard Henderson - - * config/i386/sse.md (sse2_sse4_1): Remove code attr. - (dot_prodv4si, dot_prodv8si): Remove - (sdot_prodv4si): New; handle only XOP. - -2012-06-25 Richard Henderson - - * config/i386/i386-builtin-types.def (V4UDI, V8USI): New. - (V2UDI_FUNC_V4USI_V4USI): New. - (V4UDI_FUNC_V8USI_V8USI): New. - * config/i386/i386.c (ix86_expand_args_builtin): Handle them. - (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New. - (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New. - (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New. - (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New. - (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New. - (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New. - (bdesc_args): Add them. - (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New. - (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New. - (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh. - * config/i386/sse.md (vec_widen_mult_odd_): New. - -2012-06-25 Richard Henderson - - * config/i386.sse.md (mul3): Use xop_pmacsdd. - -2012-06-25 Richard Henderson - - * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost - to V16QImode. - (ix86_expand_vec_interleave): New. - (ix86_expand_mul_widen_evenodd): New. - (ix86_expand_mul_widen_hilo): New. - (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd. - * config/i386/i386.md (u_bool) New code attr. - * config/i386/predicates.md - (nonimmediate_or_const_vector_operand): Remove. - * config/i386/sse.md (mul3): Don't use it; don't test - both AVX and SSE4_1. - (vec_widenmult_hi_): Remove. - (vec_widenmult_lo_): Remove. - (vec_widenmult_hi_v8si): Remove. - (vec_widenmult_lo_v8si): Remove. - (vec_widen_smult_hi_v4si): Remove. - (vec_widen_smult_lo_v4si): Remove. - (vec_widen_umult_hi_v4si): Remove. - (vec_widen_umult_lo_v4si): Remove. - (vec_widen_mult_hi_): New. - (vec_widen_mult_lo_): New. - * config/i386/i386-protos.h: Update. - -2012-06-25 Christophe Lyon - - * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove. - (neon_vld1_dup): Restrict to VQ operands. - (neon_vld1_dupv2di): New, fixes vld1q_dup_s64. - -2012-06-25 Matthew Gretton-Dann - James Greenhalgh - - * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins. - (TARGET_FMA): New macro. - (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise. - (TARGET_ARM_ARCH): Likewise. - (TARGET_ARM_ARCH_ISA_THUMB): Likewise. - (TARGET_V6M, TARGET_V7M): Likewise. - (TARGET_ARM_ARCH_PROFILE): Likewise. - (TARGET_ARM_FEATURE_LDREX): Likewise. - (TARGET_ARM_FP, TARGET_NEON_FP): Likewise. - (ARM_MIN_ENUM_SIZE): Likewise. - * config/arm/arm.c (arm_file_start): Refactor appropriately. - (base_architecture): New enumeration. - (arm_base_arch): New global variable. - (processors): Add field base_arch. - (ARM_ARCH, ARM_CORE): Adjust accordingly. - (arm_option_override): Add initialization of arm_base_arch. - * doc/cpp.texi (system-specific predefined macros.): Change. - -2012-06-25 Jakub Jelinek - - PR target/53759 - * config/i386/sse.md (sse_loadlps): Use x m x constraints instead - of x x x in the vmovlps load alternative. - -2012-06-25 Richard Sandiford - - PR debug/53740 - * df.h (dead_debug_add): Remove third argument. - * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the - REG that we want to replace instead. - (dead_debug_insert_temp): Use the REGNO of the reg that we want - to replace instead of DF_REF_REGNO. Require there to always be - at least one such use. Check for cases where the same location - has more than df_ref associated with it. - (df_note_bb_compute): Remove third dead_debug_add argument. - * dce.c (word_dce_process_block): Likewise. - -2012-06-25 Steven Bosscher - - * config/v850/v850.c: Remove redundant extern declarations for - last_assemble_variable_decl and size_directive_output. - - * doc/tm.texi.in: Document JMP_BUF_SIZE. - * doc/tm.texi: Regenerate. - * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define. - * config/pa/pa.h (JMP_BUF_SIZE): Likewise. - * config/stormy16/stormy16.h: Likewise. - - * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP. - - * doc/sourcebuild.texi: Add missing subdirectories. - -2012-06-25 Tristan Gingold - - * config/i386/i386.h: Fix typo. - -2012-06-25 Tristan Gingold - - * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ... - (seh_cfa_adjust_cfa): ... that function. - (seh_emit_stackalloc): Do not emit out of range values. - * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE, - UNSPEC_DEF_CFA constants. - * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define. - * config/i386/i386.c (ix86_frame_pointer_required): Required - for very large frames on SEH target. - (ix86_compute_frame_layout): Save area is before frame pointer - on SEH target. Handle very large frames. - (ix86_expand_prologue): Likewise. - -2012-06-24 Steven Bosscher - - * output.h: (current_function_is_leaf, - current_function_sp_is_unchanging, - current_function_uses_only_leaf_regs): Remove. - * function.c (current_function_is_leaf, - current_function_sp_is_unchanging, - current_function_uses_only_leaf_regs): Remove. - (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs - instead of current_function_uses_only_leaf_regs. - * function.h (struct rtl_data): New fields sp_is_unchanging, - is_leaf, uses_only_leaf_regs. - * resource.c (init_resource_info): Replace current_function_is_leaf, - current_function_sp_is_unchanging, and - current_function_uses_only_leaf_regs with new crtl fields. - * sdbout.c (sdbout_symbol): Likewise. - * df-core.c (rest_of_handle_df_initialize): Likewise. - * ira.c (ira): Likewise. - * final.c (final_start_function): Likewise. - * reorg.c (fill_simple_delay_slots): Likewise. - * regrename.c (check_new_reg_p): Likewise. - * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise. - (notice_stack_pointer_modification): Likewise. - * dbxout.c (dbxout_symbol): Likewise. - (dbxout_parms): Likewise. - * sel-sched.c (init_regs_for_mode): Likewise. - * dwarf2out.c (dbx_reg_number): Likewise. - (multiple_reg_loc_descriptor): Likewise. - * config/i386/i386.c (ix86_frame_pointer_required): Likewise. - (gen_pop): Likewise. - (ix86_select_alt_pic_regnum): Likewise. - (ix86_compute_frame_layout): Likewise. - (ix86_finalize_stack_realign_flags): Likewise. - (ix86_expand_epilogue): Likewise. - * config/rs6000/rs6000.c (rs6000_stack_info): Likewise. - * config/h8300/h8300.c (byte_reg): Likewise. - * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise. - (c6x_save_reg): Likewise. - (c6x_compute_frame_layout): Likewise. - * config/pa/pa.c (pa_compute_frame_size): Likewise. - (pa_output_function_prologue): Likewise. - * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise. - * config/sparc/sparc.md (attr "leaf_function"): Likewise. - * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise. - (sparc_expand_prologue): Likewise. - (sparc_flat_expand_prologue): Likewise. - (sparc_asm_function_prologue): Likewise. - (sparc_output_mi_thunk): Likewise. - (sparc_frame_pointer_required): Likewise. - * config/epiphany/epiphany.c (epiphany_compute_function_type): - Likewise. - (epiphany_compute_frame_size): Likewise. - * config/lm32/lm32.c (lm32_compute_frame_size): Likewise. - * config/cris/cris.c (cris_md_asm_clobbers): Likewise. - (cris_frame_pointer_required): Likewise. - * config/tilepro/tilepro.c (emit_sp_adjust): Likewise. - (tilepro_current_function_is_leaf): Likewise. - * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise. - * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise. - * config/ia64/ia64.c (find_gr_spill): Likewise. - (ia64_compute_frame_size): Likewise. - (ia64_can_eliminate): Likewise. - (ia64_initial_elimination_offset): Likewise. - * config/m68k/m68k.c (m68k_save_reg): Likewise. - (m68k_expand_epilogue): Likewise. - * config/rx/rx.c (rx_get_stack_layout): Likewise. - * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise. - * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save): - Likewise. - (picochip_output_frame_debug): Likewise. - * config/sh/sh.c (sh_media_register_for_return): Likewise. - (sh_allocate_initial_value): Likewise. - (sh_output_mi_thunk): Likewise. - * config/microblaze/microblaze.c (microblaze_must_save_register): - Likewise. - (compute_frame_size): Likewise. - (microblaze_initial_elimination_offset): Likewise. - (microblaze_expand_prologue): Likewise. - (microblaze_expand_epilogue): Likewise. - * config/frv/frv.c (frv_expand_epilogue): Likewise. - (frv_frame_pointer_required): Likewise. - * config/spu/spu.c (get_pic_reg): Likewise. - (direct_return): Likewise. - (spu_expand_prologue): Likewise. - (spu_expand_epilogue): Likewise. - (spu_initial_elimination_offset): Likewise. - * config/mips/mips.c (mips_global_pointer): Likewise. - (mips_cfun_might_clobber_call_saved_reg_p): Likewise. - (mips_compute_frame_info): Likewise. - * config/mep/mep.c (mep_interrupt_saved_reg): Likewise. - (mep_reload_pointer): Likewise. - * config/rl78/rl78.c (need_to_save): Likewise. - * config/cr16/cr16.c (cr16_compute_save_regs): Likewise. - * config/score/score.c (score_compute_frame_size): Likewise. - (score_function_prologue): Likewise. - * config/bfin/bfin.c (must_save_p): Likewise. - (expand_prologue_reg_save): Likewise. - (expand_epilogue_reg_restore): Likewise. - (bfin_frame_pointer_required): Likewise. - (n_regs_saved_by_prologue): Likewise. - (add_to_reg): Likewise. - (expand_interrupt_handler_prologue): Likewise. - (expand_interrupt_handler_epilogue): Likewise. - (bfin_expand_prologue): Likewise. - * config/avr/avr.c (avr_regs_to_save): Likewise. - (avr_prologue_setup_frame): Likewise. - (expand_epilogue): Likewise. - * config/s390/s390.c (s390_regs_ever_clobbered): Likewise. - (s390_register_info): Likewise. - (s390_frame_info): Likewise. - (s390_init_frame_layout): Likewise. - (s390_emit_prologue): Likewise. - - -2012-06-24 Steven Bosscher - - * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE. - * vmsdbgout: Do not undefine it if defined. - Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP. - * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP. - * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE. - -2012-06-24 Richard Sandiford - - * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast. - -2012-06-23 Richard Henderson - - PR target/53749 - * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for - V*QImode shifts and multiply. - (ix86_expand_vecop_qihi): Support shifts. - * config/i386/i386.md (any_shift): New code iterator. - * config/i386/sse.md (ashlv16qi3): Merge ... - (v16qi3): ... into ... - (3): ... here. Use ix86_expand_vecop_qihi - to support SSE and AVX. - - * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[] - parameter into src and dest. - * config/i386/sse.md (vec_unpacku_hi_): Update call. - (vec_unpacks_hi_): Likewise. - (vec_unpacku_lo_): Likewise. - (vec_unpacks_lo_): Likewise. - * config/i386/i386-protos.h: Update. - - * config/i386/sse.md (mul3): Change from insn_and_split to - pure expander; move expansion code ... - * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function. - * config/i386/i386-protos.h: Update. - -2012-06-22 Edmar Wienskoski - - * config/rs6000/rs6000.md (define_attr "type"): New type popcnt. - (popcntb2): Add attribute type popcnt. - (popcntd2): Ditto. - * config/rs6000/power4.md (define_insn_reservation): Add type popcnt. - * config/rs6000/power5.md (define_insn_reservation): Ditto. - * config/rs6000/power7.md (define_insn_reservation): Ditto. - * config/rs6000/476.md (define_insn_reservation): Ditto. - * config/rs6000/power6.md (define_insn_reservation): New - reservation for popcnt instructions. - -2012-06-22 H.J. Lu - - * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning. - -2012-06-22 H.J. Lu - - PR target/53383 - * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3. - * config/i386/i386.c (ix86_option_override_internal): Allow - -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled. - * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit - if SSE is disabled. - -2012-06-22 Bill Schmidt - - * double-int.c (double_int_multiple_of): New function. - * double-int.h (double_int_multiple_of): New decl. - * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs. - (mbc_entry_hash): New forward decl. - (mbc_entry_eq): Likewise. - (zero_cost): Change to no_cost. - (mult_costs): New static var. - (cost_tables_exist): Likewise. - (initialize_costs): New function. - (finalize_costs): Likewise. - (tree_ssa_iv_optimize_init): Call initialize_costs. - (add_cost): Change to add_regs_cost; distinguish costs by speed. - (multiply_regs_cost): New function. - (add_const_cost): Likewise. - (extend_or_trunc_reg_cost): Likewise. - (negate_reg_cost): Likewise. - (multiply_by_cost): Change to multiply_by_const_cost; distinguish - costs by speed. - (get_address_cost): Change add_cost to add_regs_cost; change - multiply_by_cost to multiply_by_const_cost. - (force_expr_to_var_cost): Change zero_cost to no_cost; change - add_cost to add_regs_cost; change multiply_by_cost to - multiply_by_const_cost. - (split_cost): Change zero_cost to no_cost. - (ptr_difference_cost): Likewise. - (difference_cost): Change zero_cost to no_cost; change multiply_by_cost - to multiply_by_const_cost. - (get_computation_cost_at): Change add_cost to add_regs_cost; change - multiply_by_cost to multiply_by_const_cost. - (determine_use_iv_cost_generic): Change zero_cost to no_cost. - (determine_iv_cost): Change add_cost to add_regs_cost. - (iv_ca_new): Change zero_cost to no_cost. - (tree_ssa_iv_optimize_finalize): Call finalize_costs. - * tree-ssa-address.c (most_expensive_mult_to_index): Change - multiply_by_cost to multiply_by_const_cost. - * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost. - (add_regs_cost): New decl. - (multiply_regs_cost): Likewise. - (add_const_cost): Likewise. - (extend_or_trunc_reg_cost): Likewise. - (negate_reg_cost): Likewise. - -2012-06-22 Richard Guenther - - Merge from graphite branch - 2011-08-10 Sebastian Pop - - * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak. - - 2012-01-13 Tobias Grosser - - * tree-flow.h (parallelized_function_p): Declare. - * tree-parloops.c (parallelized_function_p): Export. - * graphite.c (graphite_transform_loops): Do not run graphite on - already parallel functions. - -2012-06-22 Alan Modra - - * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and - return mem. Convert to indirect addressing if not indirect or - indexed. Adjust all callers. - -2012-06-22 Richard Guenther - - * gcov-iov.c: Include bconfig.h and system.h. - -2012-06-22 Andreas Schwab - - * doc/include/texinfo.tex: Update to version 2012-06-05.14. - -2012-06-22 Richard Guenther - - PR gcov-profile/53744 - * gcov-iov.c (main): Treat "" and "prerelease" the same. - -2012-06-22 Eric Botcazou - - PR debug/53704 - * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language - for GNU Fortran if in strict DWARF2 mode. - -2012-06-22 Eric Botcazou - - * tree-ssa-live.c (remove_unused_scope_block_p): Remove again - DECL_IGNORED_P non-reg vars even if they are used. - -2012-06-21 Alexandre Oliva - - PR debug/53671 - PR debug/49888 - * var-tracking.c (vt_get_canonicalize_base): New. - (vt_canonicalize_addr, vt_stack_offset_p): New. - (vt_canon_true_dep): New. - (drop_overlapping_mem_locs): Use vt_canon_true_dep. - (clobber_overlaping_mems): Use vt_canonicalize_addr. - -2012-06-21 Alexandre Oliva - - PR debug/53671 - PR debug/49888 - * var-tracking.c (vt_initialize): Record initial offset between - arg pointer and stack pointer. - -2012-06-21 Alexandre Oliva - - PR debug/53671 - PR debug/49888 - * var-tracking.c (vt_init_cfa_base): Drop redundant recording of - CFA base. - -2012-06-21 Alexandre Oliva - - PR debug/53671 - PR debug/49888 - * alias.c (memrefs_conflict_p): Improve handling of AND for alignment. - -2012-06-21 Alexandre Oliva - - * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug. - -2012-06-21 Alexandre Oliva - - PR debug/53682 - * cselib.c (promote_debug_loc): Don't crash on NULL argument. - -2012-06-21 Meador Inge - - PR c/53702 - * c-decl.c (c_push_function_context): Restore the behavior to reuse - the language function allocated for -Wunused-local-typedefs. - (c_pop_function_context): If necessary, clear the language function - created in c_push_function_context. Always clear out the - x_cur_stmt_list field of the restored language function. - -2012-06-21 Sterling Augustine - Cary Coutant - - * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die, - add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions. - (comdat_type_struct): New field 'skeleton_die'. - (breakout_comdat_types): Update it. - (add_pubname): Rework logic. Call is_class_die, is_cu_die and - is_namespace_die. Fix minor style violation. Call want_pubnames. - (add_pubname_string): Call want_pubnames. - (add_pubtype): Rework logic for calculating type name. Call - is_namespace_die. Call want_pubnames. - (output_pubnames): Move conditional logic deciding when to produce the - section from dwarf2out_finish. Use new skeleton_die field. - (base_type_die): Call add_pubtype. - (gen_enumeration_type_die): Unconditionally call add_pubtype. - (gen_subprogram_die): Adjust calls to add_pubname. - (gen_namespace_die): Call add_pubname_string. - (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to - produce pubnames and pubtypes sections to output_pubnames. - * common.opt (-gpubnames): New option. - * doc/invoke.texi: Document it. - -2012-06-21 Steven Bosscher - - * config/m32c/m32c-pragma.c: Remove unnecessary includes. - -2012-06-21 Michael Matz - - PR middle-end/53688 - * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF - with correct size. - -2012-06-21 Richard Guenther - - * tree-inline.c (estimate_num_insns): Estimate call cost for - tailcalls properly. - -2012-06-20 Rüdiger Sonderfeld - - * tree.h (DECL_SOURCE_COLUMN): New accessor. - -2012-06-20 Uros Bizjak - - * config/i386/i386.md (SINCOS): New int iterator. - (sincos): New int attribute. - (*xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using - SINCOS int iterator. - (*_extendxf2_i387): Macroize insn from - *{sin,cos}_extendxf2_i387 using SINCOS int iterator. - -2012-06-20 Uros Bizjak - - * config/i386/i386.md (RDFSGSBASE): New int iterator. - (WRFSGSBASE): Ditto. - (fsgs): New int attribute. - (rdbase): Macroize insn from rdbase using - RDFSGSBASE int iterator. - (wrbase): Macroize insn from wrbase using - WRFSGSBASE int iterator. - -2012-06-20 Uros Bizjak - - * config/i386/i386.md (2): Macroize expander - from {floor,ceil,btrunc}2 using FIST_ROUNDING int iterator. - (l2): Macroize expander - from l{floor,ceil}2 using FIST_ROUNDING - int iterator. - -2012-06-20 Steven Bosscher - - * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP. - -2012-06-20 Richard Guenther - - PR tree-optimization/30318 - * tree-vrp.c (range_int_cst_p): Do not reject overflowed - constants here. - (range_int_cst_singleton_p): But explicitely here. - (zero_nonzero_bits_from_vr): And here. - (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR - to cover all cases we can perform arbitrary precision - arithmetic with double-ints. - (intersect_ranges): Handle adjacent anti-ranges. - -2012-06-20 Uros Bizjak - - * config/i386/i386.md (rounding_insn): New int attribute. - (xf2): Macroize insn from - {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator. - (lxf2): Rename from lxf2. - -2012-06-20 Uros Bizjak - - * config/i386/i386.md (IEEE_MAXMIN): New int iterator. - (ieee_maxmin): New int attribute. - (*ieee_s3): Macroize insn from - *ieee_s{max,min}3 using IEEE_MAXMIN int iterator. - -2012-06-20 Steven Bosscher - - * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove. - * config/arm/arm.c: Do not include c-pragma.h. - (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE. - (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls - to arm_emit_eabi_attribute. - * arm-c.c: Do not include output.h. - (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a - call to arm_emit_eabi_attribute. - * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it. - -2012-06-20 Richard Guenther - - * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): - Allow adjusting alignment of user-aligned decls again. - -2012-06-20 Steven Bosscher - - * config/rl78/rl78-c.c: Remove unnecessary includes. - -2012-06-20 Steven Bosscher - - * config/cris/cris.c: Include cgraph.h. - (cris_option_override): Do not set non-existing flag_no_gcc_ident. - -2012-06-19 Maxim Kuvyrkov - - * emit-rtl.c (need_atomic_barrier_p): New function. - * emit-rtl.h (need_atomic_barrier_p): Declare it. - * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it. - * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it. - * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it. - * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove. - (mips_process_sync_loop): Use generic version instead. - -2012-06-19 Maxim Kuvyrkov - - * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if - it is used. - -2012-06-19 Tom de Vries - Maxim Kuvyrkov - - * config/mips/constraints.md (ZR): New constraint. - * config/mips/predicates.md (mem_noofs_operand): New predicate. - * config/mips/mips.c (mips_print_operand): Handle new print modifier. - * config/mips/mips.h (TARGET_XLP): Define. - (TARGET_SYNC_AFTER_SC): Update. - (ISA_HAS_SWAP, ISA_HAS_LDADD): Define. - * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use - XLP-specific swap and ldadd patterns. - (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns. - -2012-06-19 Tom de Vries - Maxim Kuvyrkov - - * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,) - (mips_emit_post_atomic_barrier_p): New static functions. - (mips_process_sync_loop): Use them. Emit sync memory barriers in - accordance with memory model semantics. Add return of CMP result for - compare_and_swap. - * config/mips/mips.md: Update comment. - (sync_cmp): New attribute. - (sync_memmodel): New attribute replacing sync_release_barrier. - * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,) - (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants. - (sync_lock_test_and_set, test_and_set_12): Update. - (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,) - (atomic_fetch_add, atomic_fetch_add_llsc): New patterns. - -2012-06-19 Joseph Myers - - * config/rs6000/spe.md (*mov_si_e500_subreg0): Rename to - mov_si_e500_subreg0. - (*mov_si_e500_subreg0_elf_low) - (*mov_si_e500_subreg4_elf_low): New patterns. - -2012-06-19 Richard Henderson - - * config/alpha/alpha.c: Include params.h. - (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE, - PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning. - -2012-06-19 Steven Bosscher - - * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE, - TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks. - (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE): - Remove. - * doc/tm.texi: Regenerate. - * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for - .objc_class_name_*. - * config/darwin-c.c: Include target.h. - (darwin_objc_declare_unresolved_class_reference): New function. - (darwin_objc_declare_class_definition): New function. - (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define. - (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define. - -2012-06-19 Steven Bosscher - - * target.def (output_ident): New hook. - * targhooks.h (default_asm_output_ident_directive): Add prototype. - * varasm.c (assemble_asm): Only prefix a tab if the string does not - already start with one. - (default_asm_output_ident_directive): New function to emit - .ident as a top-level asm node while parsing, or directly to - asm_out_file after parsing. - * toplev.c (compile_file): Print a GCC .ident with - targetm.asm_out.output_ident. - * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro. - (TARGET_ASM_OUTPUT_IDENT): Add @hook for this. - * doc/tm.texi: Update. - - * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove. - (TARGET_ASM_OUTPUT_IDENT): Define. - * config/i386/djgpp.h (IDENT_ASM_OP): Remove. - * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove. - * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove. - * config/sparc/sparc.h (IDENT_ASM_OP): Remove. - (TARGET_ASM_OUTPUT_IDENT): Define. - * config/picochip/picochip.h (IDENT_ASM_OP): Remove. - (TARGET_ASM_OUTPUT_IDENT): Define. - - * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype. - * config/cris/cris.c (cris_asm_output_ident): New function. - * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove. - - * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident): - Add prototype. - * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node. - (microblaze_asm_output_ident): Rewrite to work similar to - default_asm_output_ident_directive for front-end .idents. - * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove. - (TARGET_ASM_OUTPUT_IDENT): Define. - - * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove. - * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove. - - * config/rx/rx.c: Include cgraph.h for add_asm_node. - (rx_asm_output_ident): New function, similar to - default_asm_output_ident_directive, but handle AS100 syntax also, so - that #ident also works for rx in AS100 syntax. - (TARGET_ASM_OUTPUT_IDENT): Define. - * config/rx/rx.h (IDENT_ASM_OP): Remove. - - * Makefile.in: Fix dependencies for c-family/c-lex.o. - -2012-06-19 Uros Bizjak - - * config/i386/i386.md (FIST_ROUNDING): New int iterator. - (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}. - (ROUNDING): Ditto. - (*fist2__1): Macroize insn from - *fist2_{floor,ceil}_1 using FIST_ROUNDING int iterator. - (fistdi2_): Macroize insn from - fistdi2_{floor,ceil} using FIST_ROUNDING int iterator. - (fistdi2__with_temp and splitters): Macroize insn and - corresponding splitters from fistdi2_{floor,ceil} and corresponding - splitters using FIST_ROUNDING int iterator. - (fist2_): Macroize insn from - fist2_{floor,ceil} using FIST_ROUNDING int iterator. - (fist2__with_temp and splitters): Macroize insn and - corresponding splitters from fist2_{floor,ceil} and corresponding - splitters using FIST_ROUNDING int iterator. - (lxf2): Macroize expander from l{floor,ceil}xf2 - using FIST_ROUNDING int iterator. - -2012-06-19 Richard Henderson - - * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare. - * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New. - * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New. - * config/i386/sse.md (sse2_mulv4si3): Delete. - (mul3): Use ix86_expand_sse2_mulv4si3 and - nonimmediate_or_const_vector_operand. - -2012-06-19 Richard Henderson - - * expmed.c (struct init_expmed_rtl): Split ... - (init_expmed_one_mode): ... out of ... - (init_expmed): ... here. Initialize integer vector modes also. - (synth_mult): Handle integer vector modes. - (choose_mult_variant): Likewise. - (expand_mult_const): Likewise. - (expand_mult): Likewise. - * machmode.h (GET_MODE_UNIT_BITSIZE): New. - -2012-06-19 Richard Henderson - - * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and - integral vector modes. - -2012-06-19 Uros Bizjak - - * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator. - (rounding): New int attribute. - (ROUNDING): Ditto. - (frndintxf2_): Macroize insn from - frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator. - (frndintxf2__i387): Macroize insn from - frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator. - -2012-06-19 Richard Guenther - - * tree-vrp.c (union_ranges): New function. - (vrp_meet_1): Use union_ranges. - (vrp_meet): Dump what we union and call vrp_meet_1. - -2012-06-19 Richard Earnshaw - - * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS. - (attr type): Remove fmul, ffmul, farith, ffarith, float_em - f_fpa_load, f_fpa_store, f_mem_r, r_mem_f. - (attr write_conflict, attr core_cycles): Update. - * arm-generic.md (r_mem_f_wbuf): Delete reservation. - -2012-06-19 Richard Guenther - - * tree-vrp.c (intersect_ranges): Handle more cases. - (vrp_intersect_ranges): Dump what we intersect and call ... - (vrp_intersect_ranges_1): ... this. - -2012-06-19 Richard Guenther - - PR tree-optimization/53708 - * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve - user-supplied alignment and alignment of decls with the used - attribute. - -2012-06-18 Lawrence Crowl - - * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM. - (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN. - (TV_PHASE_STREAM_IN): New. - (TV_PHASE_STREAM_OUT): New. - * timevar.c (validate_phases): New. - (timevar_print): Call validate_phases. - * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH - to TV_PHASE_OPT_GEN. - * langhooks.c (write_global_declarations): Rename use of - TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of - TV_PHASE_CHECK_DBGINFO. - * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to - TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to - lang_hooks.decls.final_write_globals. - -2012-06-18 David Edelshn - - * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0. - -2012-06-18 Uros Bizjak - - PR target/53712 - * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New. - (*sse4_2_pcmpistr_unaligned): New. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (arm_output_epilogue): Remove. - * config/arm/arm.c (print_multi_reg): Remove. - (vfp_output_fldmd): Likewise. - (arm_output_epilogue): Likewise. - * config/arm/arm.md (epilogue_insns): Update condition and code. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (thumb2_expand_return): New declaration. - * config/arm/arm.c (thumb2_expand_return): New function. - * config/arm/arm.md (return): Update condition and code. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (output_return_instruction): New parameter - and int to bool change of parameter types. - * config/arm/arm.c (output_return_instruction): Likewise. - * config/arm/arm.md (arm_simple_return): New pattern. - (arm_return, cond_return, cond_return_inverted): Add new arguments. - * config/arm/thumb2.md (thumb2_return): Update condition and code. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (arm_expand_epilogue): New declaration. - * config/arm/arm.c (arm_expand_epilogue): New function. - * config/arm/arm.md (epilogue): Update condition and code. - (sibcall_epilogue): Likewise. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function. - * config/arm/arm.md (arm_addsi3) Add an alternative. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn. - * config/arm/predicates.md (pop_multiple_fp) New special predicate. - * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function. - -2012-06-18 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm.md (load_multiple_with_writeback) New define_insn. - (load_multiple, pop_multiple_with_writeback_and_return) Likewise. - (pop_multiple_with_return, ldr_with_return) Likewise. - * config/arm/predicates.md (pop_multiple_return) New special predicate. - * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration. - * config/arm/arm.c (arm_output_multireg_pop) New function. - (arm_emit_multi_reg_pop): New function. - -2012-06-18 Greta Yorsh - - * config/arm/arm.c (ldm_stm_operation_p): Require SP - as base register for loads if SP is in the register list. - -2012-06-18 Richard Guenther - - PR tree-optimization/53693 - * tree-vect-patterns.c (vect_operation_fits_smaller_type): - Reject operands with more than one use. - -2012-06-18 Bill Schmidt - - PR tree-optimization/53703 - * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis; - correctly set bb_for_def[12]. - -2012-06-18 Steven Bosscher - - * config/vax/vax.h (VMS_TARGET): Remove. - -2012-06-18 Richard Guenther - - * tree-vrp.c (extract_range_from_assert): Split out range - intersecting code. - (intersect_ranges): New function. - (vrp_intersect_ranges): Likewise. - -2012-06-18 Andreas Krebbel - - * config/s390/s390.c (s390_gimplify_va_arg): Revert change from - r187965. - -2012-06-18 Tejas Belagod - - * doc/md.texi: Document int iterators. - * read-rtl.c (ints): New iterator group. - (find_int): Int iterator group callback. - (apply_int_iterator): Likewise. - (apply_iterators): Traverse int iterator table and add all the used - iterators to list. - (initialize_iterators): Initialize data structures and callbacks for - int iterators. - (read_rtx): Parse and read mappings for int iterators. - (read_rtx_code): Record int iterator usage. - -2012-06-18 Richard Sandiford - - PR middle-end/53698 - * expr.c (expand_expr_addr_expr_1): Convert to tmode before - performing an addition. - -2012-06-17 Steven Bosscher - - * output.h (split_double): Move prototype to rtl.h. - (constructor_static_from_elts_p): Move prototype to tree.c. - * rtl.h (split_double): Moved here from output.h. - * tree.h (constructor_static_from_elts_p): Moved here from output.h. - * final.c (split_double): Move from here ... - * rtlanal.c (split_double): ... to here. - * expr.c: Do not include output.h. - -2012-06-17 Steven Bosscher - - * cfglayout.h: Remove. - * cfglayout.c: Remove. - * function.h (struct function): Remove x_last_location field. - * function.c: Do not include cfglayout.h. - (expand_function_start): Do not call no-op force_next_line_note. - (expand_function_end): Likewise. - * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h. - (unlink_insn_chain): Moved here from cfglayout.c. - (skip_insns_after_block, label_for_bb, record_effective_endpoints, - into_cfg_layout_mode, outof_cfg_layout_mode, - pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode, - relink_block_chain, fixup_reorder_chain, verify_insn_chain, - fixup_fallthru_exit_predecessor, force_one_exit_fallthru, - cfg_layout_can_duplicate_bb_p, duplicate_insn_chain, - cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks, - cfg_layout_finalize): Likewise. - (rtl_can_remove_branch_p): Likewise. - * rtl.h (insn_scope): Move prototype from cfglayout.h here. - (duplicate_insn_chain): Likewise. - (force_next_line_note): Remove prototype. - * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h. - (last_location): Remove #define to emit.x_last_location. - (force_next_line_note): Remove no-op function. - (init_emit): Don't set x_last_location. - (block_locators_locs, block_locators_blocks, locations_locators_locs, - locations_locators_vals, prologue_locator, epilogue_locator, - curr_location, last_location, curr_block, last_block, curr_rtl_loc): - Move POD to here from cfglayout.c. - (insn_locators_alloc, insn_locators_finalize, insn_locators_free, - set_curr_insn_source_location, get_curr_insn_source_location, - set_curr_insn_block, get_curr_insn_block, curr_insn_locator, - locator_scope, insn_scope, locator_location, locator_line, insn_line, - locator_file, insn_file, locator_eq): Move to here from cfglayout.c. - * cfghooks.h: Remove double-include protection. - (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here. - * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c. - * final.c: Do not include cfglayout.h. - (choose_inner_scope, change_scope): Move to here from cfglayout.c. - (reemit_insn_block_notes): Likewise. Make static. - * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p, - operation_could_trap_p, tree_could_throw_p): Move from here... - * tree.h: ... to here. - * gengtype.c (open_base_files): Remove cfglayout.h from the list. - * profile.c: Do not include cfghooks.h. - * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h. - * modulo-sched.c: Likewise. - * loop-unswitch.c: Do not include cfglayout.h. - * sched-ebb.c: Likewise. - * tracer.c: Likewise. - * ddg.c: Likewise. - * tree-vect-loop-manip.c: Likewise. - * loop-init.c: Likewise. - * dwarf2out.c: Likewise. - * hw-doloop.c: Likewise. - * loop-unroll.c: Likewise. - * cfgcleanup.c: Likewise. - * bb-reorder.c: Likewise. - * sched-rgn.c: Likewise. - * tree-cfg.c: Likewise. - * config/alpha/alpha.c: Likewise. - * config/spu/spu.c: Likewise. - * config/sparc/sparc.c: Likewise. - * config/sh/sh.c: Likewise. - * config/c6x/c6x.c: Likewise. - * config/ia64/ia64.c: Likewise. - * config/rs6000/rs6000.c: Likewise. - * config/score/score.c: Likewise. - * config/mips/mips.c: Likewise. - * config/bfin/bfin.c: Likewise. - * Makefile.in (CFGAYOUT_H): Remove, and fixup users. - * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h. - * config/spu/t-spu-elf (spu.o: $): Likewise. - * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H. - -2012-06-17 Steven Bosscher - - * cfgloop.h: Do not include rtl.h. - (enum iv_extend_code): New. - (struct rtx_iv): Use iv_extend_code instead of rtx_code. - * Makefile.in (CFGLOOP_H): Do not depend on RTL_H. - * loop-iv.c (iv_extend_to_rtx_code): New function to translate - an IV_EXTEND_CODE to an RTX_CODE. - (dump_iv_info): Update for rtx_iv field type change. - (iv_constant): Likewise. - (iv_subreg): Likewise. - (iv_extend): Likewise. - (iv_neg): Likewise. - (iv_add): Likewise. - (iv_mult): Likewise. - (iv_shift): Likewise. - (get_biv_step_1): Likewise. - (get_biv_step): Likewise. - (iv_analyze_biv): Likewise. - (get_iv_value): Likewise. - (shorten_into_mode): Likewise. - (canonicalize_iv_subregs): Likewise. - * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead - of MAY_HAVE_DEBUG_INSNS. - * tree-ssa-loop-ivopts.c: Include recog.h after expr.h. - * tree-ssa-loop-prefetch.c: Likewise. - -2012-06-17 Steven Bosscher - - * expmed.c (ceil_log2): Move from here... - * hwint.c: ... to here for older GCCs... - * hwint.h: ... and here for newer GCCs. - * rtl.h (ceil_log2): Remove prototype. - - * tree-phinodes.c: Do not include rtl.h. - * Makefile.in (tree-phinodes.o): Do not depend on RTL_H. - -2012-06-17 Steven Bosscher - - * config/cris/cris.h (TARGET_ELF): Remove. - (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove. - (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1. - (LOCAL_LABEL_PREFIX): Likewise. - * config/cris/cris.c (cris_target_asm_named_section): Remove. - (cris_option_override): Simpify using TARGET_ELF==1. - (cris_file_start): Likewise. - * config/cris/cris-protos.h (cris_target_asm_named_section): Remove. - -2012-06-17 Uros Bizjak - - * config/i386/sse.md (vcvtph2ps): Fix vec_select selector. - -2012-06-16 Eric Botcazou - - PR middle-end/53590 - * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions. - -2012-06-15 Easwaran Raman - - * passes.c (init_optimization_passes): Remove pass_call_cdce - from its current position and insert after pass_dce. - -2012-06-15 Walter Lee - - * config/tilegx/sync.md (atomic_fetch_): Fix typo. - -2012-06-15 Richard Earnshaw - - * arm.c (note_invalid_constants): Don't return a result. - (arm_memory_load_p): Delete function. - (arm_const_double_rtx): Delete iterator variable i; - (fp_immediate_constant): Likewise. - (fp_const_from_val): Likewise. - - * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void. - -2012-06-15 Marc Glisse - - PR c++/51033 - * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c. - * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h. - -2012-06-15 Georg-Johann Lay - - * config/avr/avr.c (avr_default_expand_builtin): New function. - (avr_expand_builtin): Use it. - (avr_expand_unop_builtin): Remove. - (avr_expand_binop_builtin): Remove. - (avr_expand_triop_builtin): Remove. - -2012-06-15 Michael Matz - - PR middle-end/38474 - * cfgexpand.c (add_alias_set_conflicts): Remove. - (expand_used_vars): Don't call it. - (aggregate_contains_union_type): Remove. - * function.c (n_temp_slots_in_use): New static data. - (make_slot_available, assign_stack_temp_for_type): Update it. - (init_temp_slots): Zero it. - (remove_unused_temp_slot_addresses): Use it for quicker removal. - (remove_unused_temp_slot_addresses_1): Use htab_clear_slot. - -2012-06-15 Michael Matz - - * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f - argument, don't emit assign statement if value is directly usable. - (gimplify_expr): Adjust. - -2012-06-15 Michael Matz - - * gimplify.c (gimplify_modify_expr): Fold generated statements. - * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans. - -2012-06-15 Richard Guenther - - * tree-vrp.c (set_and_canonicalize_value_range): Use canonical - predicates to set VR_UNDEFINED and VR_VARYING. Drop a case - we assert for in set_value_range to VR_VARYING. - -2012-06-15 Richard Earnshaw - - * arm.md (addsf3, adddf3): Use s_register_operand. - (subsf3, subdf3): Likewise. - (mulsf3, muldf3): Likewise. - (difsf3, divdf3): Likewise. - (movsfcc, movdfcc): Likewise. - * predicates.md (f_register_operand): Delete. - (arm_float_rhs_operand): Delete. - (arm_float_add_operand): Delete. - (arm_float_compare_operand): Use s_register_operand when - there's no VFP. - (cirrus_register_operand): Delete. - (cirrus_fp_register): Delete. - (cirrus_shift_const): Delete. - (cmpdi_operand): Remove Maverick support. - * constraints.md (f, v, H): Delete constraints. - (G): Update documentation. - * arm.c (fp_consts_inited): Convert to bool. - (strings_fp): Delete. - (values_fp): Delete. - (value_fp0): New variable. - (init_fp_table): Simplify logic. - (arm_const_double_rtx): Likewise. - (fp_immediate_constant): Likewise. - (fp_const_from_val): Likewise. - (neg_const_double_rtx_ok_for_fpa): Delete. - * doc/md.texi (ARM constraints): Update documentation. - -2012-06-15 Ulrich Weigand - - PR tree-optimization/53636 - * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify - stride when doing basic-block vectorization. - -2012-06-15 Ramana Radhakrishnan - - * tree-vect-generic.c (lower_vec_perm): Propagate vector constants - into VEC_PERM_EXPR. - -2012-06-15 Jakub Jelinek - - * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily - allocate and free bbs array for the SLP case. - - PR tree-optimization/51581 - * expr.h (choose_multiplier): New prototype. - * expmed.c (choose_multiplier): No longer static. - Change multiplier_ptr from rtx * to UHWI *. - (expand_divmod): Adjust callers. - * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to... - (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last - argument to new_stmt_vec_info. Attempt to optimize also divisions - by non-pow2 constants if integer vector division isn't supported. - * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL, - don't look at pattern stmts and sequences. - -2012-06-15 Eric Botcazou - - PR middle-end/53590 - * common.opt (-fdelete-dead-exceptions): New switch. - * doc/invoke.texi (Code Gen Options): Document it. - * cse.c (count_reg_usage) : Use !insn_nothrow_p in lieu of - insn_could_throw_p predicate. Do not skip an insn that could throw - if dead exceptions can be deleted. - (insn_live_p): Likewise, do not return true in that case. - * dce.c (can_alter_cfg): New flag. - (deletable_insn_p): Do not return false for an insn that can throw if - the CFG can be altered and dead exceptions can be deleted. - (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise. - * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_ - predicate. Do not preserve an insn that could throw if dead exceptions - can be deleted. - * function.h (struct function): Add can_delete_dead_exceptions flag. - * function.c (allocate_struct_function): Set it. - * lto-streamer-in.c (input_struct_function_base): Stream it. - * lto-streamer-out.c (input_struct_function_base): Likewise. - * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a - statement that could throw as necessary if dead exceptions can be - deleted. - -2012-06-14 Maxim Kuvyrkov - - * config/tilegx/sync.md (atomic_fetch_sub): Fix typo. - -2012-06-14 Oleg Endo - - PR target/53568 - * config/sh/sh.md: Add peephole for swapbsi2. - (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits. - -2012-06-14 Uros Bizjak - - * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative. - (*zero_extendsidi2_rex64): Ditto. Remove isa attribute. - -2012-06-14 Jakub Jelinek - - PR target/53639 - * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New. - -2012-06-14 Richard Earnshaw - - * arm.c (arm_cirrus_insn_p): Delete. - (cirrus_reorg): Delete. - (arm_reorg): Don't call cirrus_reorg. - (arm_final_prescan_insn_p): Don't check for cirrus insns. - * arm.md (define_attr "type"): Remove mav_farith and mav_dmult. - (adddi3, subdi3): Remove Maverick support. - (arm_adddi3): Likewise. - (adddi_sesidi_di, adddi_zesidi_di): Likewise. - (addsf3, adddf3): Likewise. - (subsf3, subdf3): Likewise. - (mulsf3, muldf3): Likewise. - (ashldi3, ashrdi3, lshrdi3): Likewise. - (floatsisf2, floatsidf2): Likewise. - (fix_truncsfsi2, fix_truncdfsi2): Likewise. - (arm_movdi, thumb1_movdi_insn): Likewise. - (arm_cmpdi_insn): Likewise. - (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise. - (cirrus.md): Don't include. - * cirrus.md: Delete file. - * t-arm (MD_INCLUDES): Remove cirrus.md. - -2012-06-14 Eric Botcazou - - * dwarf2out.c (function_possibly_abstracted_p): New static function. - (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of - cgraph_function_possibly_inlined_p. - (gen_inlined_subroutine_die): Return if the origin is to be ignored. - (process_scope_var): Do not emit concrete instances of abstracted - nested functions from here. - (gen_decl_die): Emit the abstract instance if the function is possibly - abstracted and not only possibly inlined. - (dwarf2out_finish): Find the first non-abstract parent instance and - attach concrete instances on the limbo list to it. - -2012-06-14 Richard Earnshaw - - * arm.md (divsf3, divdf3): Remove FPA support. - (negsf2, negdf2): Likewise. - (sqrtsf2, sqrtdf2): Likewise. - (movdfcc): Likewise. - (modsf3, moddf3, movxf): Delete. - (push_fp_multi): Delete. - (fpa.md): Don't include it. - * fpa.md: Delete file. - * t-arm (MD_INCLUDES): Remove fpa.md. - -2012-06-14 Bill Schmidt - - * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. - (cost_for_stmt): Remove decl. - (vect_get_single_scalar_iteration_cost): Correct typo in name. - * tree-vect-loop.c (vect_get_cost): Remove. - (vect_get_single_scalar_iteration_cost): Correct typo in name; use - vect_get_stmt_cost rather than vect_get_cost. - (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than - vect_get_cost. - (vect_estimate_min_profitable_iters): Correct typo in call to - vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather - than vect_get_cost. - (vect_model_reduction_cost): Use vect_get_stmt_cost rather than - vect_get_cost. - (vect_model_induction_cost): Likewise. - * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct - typo in call to vect_get_single_scalar_iteration_cost. - * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h. - (cost_for_stmt): Remove unnecessary function. - * Makefile.in (TREE_VECTORIZER_H): Update dependencies. - -2012-06-14 Richard Earnshaw - - * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options. - * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types. - * arm-tables.opt: Regenerated. - * doc/invoke.texi: Remove references to deleted options. - -2012-06-14 Sandeep Kumar Singh - - * config/h8300/genmova.sh: Modified to add offset bits of - mova/Sz assembly instruction for memory access. - * config/h8300/h8300.c: Likewise. - * config/h8300/mova.md: Likewise. - -2012-06-12 Christian Bruel - - PR target/53621 - * config/sh/sh.c (sh_option_override): Don't force - flag_omit_frame_pointer and maccumulate_outgoing_args. - * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var. - -2012-06-14 Richard Guenther - - * tree-vrp.c (VR_INITIALIZER): New define. - (ranges_from_anti_range): New function. - (extract_range_from_binary_expr_1): Decompose operations on - VR_ANTI_RANGEs to operations on VR_RANGE. - (extract_range_from_unary_expr_1): Likewise. - (extract_range_from_binary_expr_1, extract_range_from_binary_expr, - extract_range_from_unary_expr_1, extract_range_from_unary_expr, - extract_range_from_cond_expr, adjust_range_with_scev, - vrp_visit_assignment_or_call, vrp_visit_phi_node, - simplify_bit_ops_using_ranges): Use VR_INITIALIZER. - -2012-06-13 Richard Henderson - - * hwint.h (HOST_WIDEST_INT_C): New. - (HOST_WIDE_INT_C): New. - (HOST_WIDE_INT_1): Use it. - * config/alpha/alpha.c (alpha_trampoline_init): Use it. - -2012-06-13 Alexandre Oliva - - PR debug/49888 - * var-tracking.c: Include alias.h. - (overlapping_mems): New struct. - (drop_overlapping_mem_locs): New. - (clobber_overlapping_mems): New. - (var_mem_delete_and_set, var_mem_delete): Call it. - (val_bind): Likewise, but only if modified. - (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs. - * Makefile.in (var-tracking.o): Depend in $(ALIAS_H). - -2012-06-13 Alexandre Oliva - - PR debug/47624 - * var-tracking.c (loc_exp_dep_pool): New. - (vt_emit_notes): Create and release the pool. - (compute_bb_dataflow): Use value-based locations in MO_VAL_SET. - (emit_notes_in_bb): Likewise. - (loc_exp_dep_insert): Deal with NOT_ONEPART vars. - (notify_dependents_of_changed_value): Likewise. - (notify_dependents_of_resolved_value): Check that NOT_ONEPART - variables don't have a VAR_LOC_DEP_LST. - (emit_note_insn_var_location): Expand NOT_ONEPART locs that are - VALUEs or MEMs of VALUEs. - -2012-06-13 Alexandre Oliva - - PR debug/52983 - PR debug/48866 - * dce.c (word_dce_process_block): Insert debug temps only if the - insn is not marked. - (dce_process_block): Likewise, and if debug.used is not empty, - and only after iterating over all DEFs that might mark the insn. - -2012-06-13 Alexandre Oliva - - * common.opt (ftree-coalesce-inlined-vars): New. - (ftree-coalesce-vars): New. - * doc/invoke.texi: Document them. - * tree-ssa-copyrename.c (copy_rename_partition_coalesce): - Implement them. - -2012-06-13 Richard Sandiford - - * read-rtl.c (mapping): Remove index field. Add current_value field. - Define heap vectors. - (iterator_group): Fix long line. Remove num_builtins field and - uses_iterator fields. Make apply_iterator take a void * parameter. - (iterator_use, atttribute_use): New structures. - (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete. - (current_iterators, iterator_uses, attribute_uses): New variables. - (uses_mode_iterator_p, uses_code_iterator_p): Delete. - (apply_mode_iterator, apply_code_iterator): Take a void * parameter. - (map_attr_string, apply_iterator_to_string): Remove iterator - and value parameters. Look through all current iterator values - for a matching attribute. - (mode_attr_index, apply_mode_maps): Delete. - (apply_iterator_to_rtx): Replace with... - (copy_rtx_for_iterators): ...this new function. - (uses_iterator_p, apply_iterator_traverse): Delete. - (apply_attribute_uses, add_current_iterators, apply_iterators): New - functions. - (add_mapping): Remove index field. Set current_value field. - (initialize_iterators): Don't set num_builtins and uses_iterator_p - fields. - (find_iterator): Delete. - (record_iterator_use, record_attribute_use): New functions. - (record_potential_iterator_use): New function. - (check_code_iterator): Remove handling of bellwether codes. - (read_rtx): Remove mode maps. Truncate iterator and attribute uses. - (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps - parameter. Use the first code iterator value instead of the - bellwether_codes array. Use record_potential_iterator_use for modes. - -2012-06-13 Oleg Endo - - PR target/53568 - * config/sh/sh.md (bswapsi2): New expander. - (swapbsi2): New insn. - -2012-06-13 H.J. Lu - - PR target/53647 - * config/i386/i386.c (ix86_tune_cost): New variable. - (ix86_option_override_internal): Set ix86_tune_cost. Use - ix86_tune_cost for simultaneous_prefetches, prefetch_block, - l1_cache_size and l2_cache_size. - -2012-06-13 Richard Guenther - - * tree-vrp.c (vrp_meet): Properly meet equivalent ranges. - Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement - all possible meetings of VR_RANGE with VR_ANTI_RANGE and - VR_ANTI_RANGE with VR_ANTI_RANGE. - -2012-06-13 Richard Earnshaw - - * config.gcc (unsupported): Move obsoleted FPA-based configurations - here from ... - (obsolete): ... here. - (arm*-*-freebsd*): Remove. - (arm*-*-linux*): Only accept EABI variants. Simplify logic. - (arm*-*-uclinux*): Likewise. - (arm*-*-ecos-elf): Remove. - (arm*-*-rtems*): Remove. - (arm*-*-elf): Remove. - (arm*-wince-pe*): Remove. - (arm, --with-fpu): Remove support for fpa and Maverick variants. - * arm/ecos-elf.h: Delete. - * arm/t-strongarm-elf: Delete. - * arm/rtems-elf.h: Delete. - * arm/wince-pe.h: Delete. - * arm/pe.c: Delete. - * arm/pe.h: Delete. - * arm/t-wince-pe: Delete. - -2012-06-13 Bill Schmidt - - PR tree-optimization/53647 - * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for - targets with no defined cache line size. - -2012-06-13 Bill Schmidt - - * targhooks.c (default_builtin_vectorized_conversion): Handle - vec_construct, using vectype to base cost on subparts. - * target.h (enum vect_cost_for_stmt): Add vec_construct. - * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct - instead of scalar_to-vec. - * config/spu/spu.c (spu_builtin_vectorization_cost): Handle - vec_construct in same way as default for now. - * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise. - * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): - Handle vec_construct, including special case for 32-bit loads. - -2012-06-13 Xinyu Qi - - * config/arm/arm.c (FL_IWMMXT2): New define. - (arm_arch_iwmmxt2): New variable. - (arm_option_override): Enable use of iWMMXt with VFP. - Disable use of iWMMXt with NEON. Disable use of iWMMXt under - Thumb mode. Set arm_arch_iwmmxt2. - (arm_expand_binop_builtin): Accept VOIDmode op. - (enum arm_builtins): Revise built-in fcode. - (IWMMXT2_BUILTIN): New define. - (IWMMXT2_BUILTIN2): Likewise. - (iwmmx2_mbuiltin): Likewise. - (builtin_description bdesc_2arg): Revise built in declaration. - (builtin_description bdesc_1arg): Likewise. - (arm_init_iwmmxt_builtins): Revise built in initialization. - (arm_expand_builtin): Revise built in expansion. - (arm_output_iwmmxt_shift_immediate): New function. - (arm_output_iwmmxt_tinsr): Likewise. - * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare. - (arm_output_iwmmxt_tinsr): Likewise. - * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant. - (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete. - (rorv4hi3, rorv2si3, rordi3): Likewise. - (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise. - (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise. - (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise. - (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise. - (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise - (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise. - (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern. - (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise. - (*and3_iwmmxt, *ior3_iwmmxt, *xor3_iwmmxt): Likewise. - (ror3, ror3_di): Likewise. - (ashr3_di, lshr3_di, ashl3_di): Likewise. - (ashli3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise. - (iwmmxt_walignr0, iwmmxt_walignr1): Likewise. - (iwmmxt_walignr2, iwmmxt_walignr3): Likewise. - (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise. - (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise. - (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise. - (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise. - (All instruction patterns): Add wtype attribute. - (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp. - (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern. - (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise. - (ashr3_iwmmxt, ashl3_iwmmxt, lshr3_iwmmxt): Likewise. - (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise. - (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise. - (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise. - (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise. - (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise. - (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise. - (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise. - (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise. - (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise. - (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise. - (iwmmxt2.md): Include. - * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__. - (TARGET_IWMMXT2): New define. - (TARGET_REALLY_IWMMXT2): Likewise. - (arm_arch_iwmmxt2): Declare. - * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics. - Use __IWMMXT2__ to enable iWMMXt2 intrinsics. - Use C name-mangling for intrinsics. - (__v8qi): Redefine. - (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise. - (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise. - (_m_from_int): Likewise. - (_mm_sada_pu8, _mm_sada_pu16): New intrinsic. - (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise. - (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise. - (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise. - (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise. - (_mm_tbcst_pi32): Likewise. - (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic. - (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise. - (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise. - (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise. - (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise. - (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise. - (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise. - (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise. - (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise. - (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise. - (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise. - (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise. - (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise. - (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise. - (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise. - (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise. - (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise. - (_mm_wmiawttn_si64, _mm_merge_si64): Likewise. - (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise. - (_m_to_int): New define. - * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2. - * config/arm/arm-arches.def (iwmmxt2): Likewise. - * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and - iwmmxt2.md. - * config/arm/arm.md (marvell-f-iwmmxt.md): Include. - (arch): Add "iwmmxt2". - (arch_enabled): Handle "iwmmxt2". - (wtype): New attribute. - (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete. - (UNSPEC_WALIGNI): New unspec. - * config/arm/predicates.md (imm_or_reg_operand): New predicate. - * config/arm/iterators.md (VMMX2): New mode_iterator. - * config/arm/marvell-f-iwmmxt.md: New file. - * config/arm/iwmmxt2.md: New file. - -2012-06-12 Jakub Jelinek - - PR c/53532 - PR c/51034 - PR c/53196 - * c-decl.c (build_compound_literal): Call c_incomplete_type_error - if type isn't complete. - -2012-06-12 Uros Bizjak - - * config/ia64/sync.md (fetchop_name): Change ior attribute to "or". - -2012-06-12 Richard Henderson - - * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode - iterator instead of INT. - -2012-06-12 Bill Schmidt - - * opts.c: Add -fhoist-adjacent-loads to -O2 and above. - * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward - declaration. - (hoist_adjacent_loads, gate_hoist_loads): New forward declarations. - (tree_ssa_phiopt): Call gate_hoist_loads. - (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call. - (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call - hoist_adjacent_loads. - (local_mem_dependence): New function. - (hoist_adjacent_loads): Likewise. - (gate_hoist_loads): Likewise. - * common.opt (fhoist-adjacent-loads): New switch. - * Makefile.in (tree-ssa-phiopt.o): Added dependencies. - -2012-06-12 Michael Matz - - * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments. - (nonoverlapping_memrefs_p): Don't call it here ... - (true_dependence_1): ... but here. - -2012-06-12 Richard Guenther - - * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code. - * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET - and MEM_SIZE only refines it. Reflect that and be less conservative - if either of the latter is not known. - -2012-06-12 Jakub Jelinek - - PR rtl-optimization/53589 - * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge - discovery even when e->dest != target. If any LABEL_REF points - to e->dest label, redirect it to target's label. - -2012-06-12 Chung-Lin Tang - - * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p - condition for generating REG_FRAME_RELATED_EXPR note. - (pop): Add code for generating REG_CFA_RESTORE, - REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1. - (sh_expand_epilogue): Use frame_insn() for FP to SP move. - Set 'frame_p' of calls to output_stack_adjust() to 'true'. - -2012-06-11 Richard Henderson - - * config/alpha/alpha.c (HWI_HEX2): Add missing shift. - * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix. - - * config/alpha/alpha.c (alpha_trampoline_init): Split large constants. - -2012-06-12 Hans-Peter Nilsson - - * doc/tm.texi.in (Addressing Modes) : - Mention that this hook needs to be defined for native TLS. - * doc/tm.texi: Regenerate. - -2012-06-11 Mike Stump - - * emit-rtl.c (init_emit_once): Iterate through the - MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and - MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through - all the MIN_MODE_PARTIAL_INT modes anymore. - -2012-06-12 Maxim Kuvyrkov - - * config/mips/mips-tables.opt (xlp): Fix merge typo. - -2012-06-11 Roland McGrath - - * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using - SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's - not a VAR_DECL. Also don't limit it to UNSPECs with exactly one - operand. - -2012-06-11 Oleg Endo - - PR target/53511 - * config/sh/sh.md (fmasf4): New expander. - (*macsf3): Rename to fmasf4_i. Adapt to fma pattern. - (mac_media): Rename to fmasf4_media. Adapt to fma pattern. - * config/sh/sh.opt (mfused-madd): Remove. - * config/sh/sh.c (sh_option_override): Remove mfused-madd handling. - (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S. - * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt - as extra options. - * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd - descriptions. - -2012-06-11 Richard Henderson - - * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots. - -2012-06-11 Richard Guenther - - PR middle-end/53470 - * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but - replace it with the first non-BLOCK context. - -2012-06-11 Richard Guenther - - * alias.c (aliases_everything_p): Remove. - (DIFFERENT_ALIAS_SETS_P): Likewise. - (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly. - Do not use aliases_everything_p or special-case ANDs. Do not - special-case BLKmode moves. - (may_alias_p): Likewise. Handle BLKmode similar like everywhere - - for SCATCH only. - -2012-06-09 Hans-Peter Nilsson - - Fix CRIS build errors with --enable-build-with-cxx. - * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename - variable "and" to "andop". - * config/cris/sync.md ("atomic_fetch_"): Use - temporary variable for memory model, passing C++-type-correct - parameter type to expand_mem_thread_fence. - ("atomic_compare_and_swap"): Ditto. - -2012-06-09 Richard Henderson - - PR c++/53602 - * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2. - (pass_jump): Rename from pass_jump2. - (execute_jump2, pass_jump2): New. - * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't - perform cfg cleanup here. Move the test of PUSH_ROUNDING - and ACCUMULATE_OUTGOING_ARGS test... - (gate_handle_stack_adjustments): ... here. - * passes.c (init_optimization_passes): Update for pass_jump2 rename. - Place new pass_jump2 after pass_stack_adjustments. - * tree-pass.h (pass_jump): Declare. - -2012-06-09 Kenneth Zadeck - - * simplify-rtx.c (simplify_const_binary_operation): Fixed shift - count trucation. - -2012-06-08 Richard Henderson - - PR c++/53602 - * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE - note to a clobber insn when no other insn is available. - -2012-06-08 Georg-Johann Lay - - * config/avr/avr.c (avr_case_values_threshold): Return 7. - -2012-06-07 Andreas Schwab - - * genhooks.c (main): Set progname. - (emit_documentation): Remove variable found_start, always bail out - when a place is missing. - * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT. - -2012-06-07 Jakub Jelinek - - PR middle-end/53580 - * omp-low.c (scan_omp): Change first argument to gimple_seq *, - call walk_gimple_seq_mod instead of walk_gimple_seq. - (scan_sharing_clauses, scan_omp_parallel, scan_omp_task, - scan_omp_for, scan_omp_sections, scan_omp_single, - execute_lower_omp): Adjust callers. - (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions - returns false, replace stmt with GIMPLE_NOP. - (check_omp_nesting_restrictions): Instead of issuing warnings, - issue errors and return false if any errors were reported. - -2012-06-06 Steven Bosscher - - * doc/invoke.texi (fconserve-space): Remove documentation. - -2012-06-06 Edmar Wienskoski - - * config/rs6000/rs6000-tables.opt: Regenerated. - -2012-06-06 Richard Guenther - - PR tree-optimization/53081 - * tree-data-ref.h (adjacent_store_dr_p): Rename to ... - (adjacent_dr_p): ... this and make it work for reads, too. - * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY. - (struct partition_s): Change main_stmt to main_dr, add - secondary_dr member. - (build_size_arg_loc): Change to date data-reference and not - gimplify here. - (build_addr_arg_loc): New function split out from ... - (generate_memset_builtin): ... here. Use it and simplify. - (generate_memcpy_builtin): New function. - (generate_code_for_partition): Adjust. - (classify_partition): Streamline pattern detection. Detect memcpy. - (ldist_gen): Adjust. - (tree_loop_distribution): Adjust seed statements for memcpy - recognition. - -2012-06-06 Matt Turner - - * config/arm/mmintrin.h (_mm_empty): New. - (_m_empty): New. - -2012-06-06 Richard Sandiford - - * doc/invoke.texi (sched-pressure-algorithm): Document new --param. - * common.opt (fsched-pressure-algorithm=): Remove. - * flag-types.h (sched_pressure_algorithm): Move to... - * sched-int.h (sched_pressure_algorithm): ...here. - * params.def (sched-pressure-algorithm): New param. - * haifa-sched.c (sched_init): Use it to initialize sched_pressure. - * common/config/s390/s390-common.c (s390_option_optimization_table): - Remove OPT_fsched_pressure_algorithm_ entry. - * config/s390/s390.c (s390_option_override): Set a default value for - PARAM_SCHED_PRESSURE_ALGORITHM. - -2012-06-05 Michael Meissner - - PR target/53487 - * config/rs6000/rs6000.c (rs6000_generate_compare): If we are - doing an unsigned compare, make sure the second argument is not a - negative constant. - (rs6000_emit_cmove): Don't allow floating point comparisons when - generating ISEL moves. - -2012-06-05 Edmar Wienskoski - - * config/rs6000/e5500.md: New file. - * config/rs6000/e6500.md: New file. - * config/rs6000/rs6000.c (processor_costs): Add new costs for - e5500 and e6500. - (rs6000_option_override_internal): Altivec and Spe options not - allowed with e5500. Spe options not allowed with e6500. Increase - move inline limit for e5500 and e6500. Disable string instructions - for e5500 and e6500. Enable branch targets alignment for e5500 and - e6500. Initialize rs6000_cost for e5500 and e6500. - (rs6000_adjust_cost): Add extra scheduling cycles between compare - and brnach for e5500 and e6500. - (rs6000_issue_rate): Set issue rate for e5500 and e6500. - * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and - e6500. - * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500. - * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and - ppce6500. - Include e5500.md and e6500.md. - * config/rs6000/rs6000-opt.h (processor_type): Add - PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500. - * config.gcc (cpu_is_64bit): Add new cores e5500, e6500. - (powerpc*-*-*): Add new cores e5500, e6500. - * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus. - -2012-06-05 Richard Guenther - - * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change. - -2012-06-05 H.J. Lu - - PR target/53575 - * config.gcc: Select x32 run-time library if --with-abi={x32|mx32} - is used for x86_64-*-*. - -2012-06-05 Richard Guenther - - PR tree-optimization/30442 - * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block - vectorization stop analysis at the first stmt we cannot compute - a data-reference for instead of giving up completely. - -2012-06-05 Richard Guenther - - * tree-loop-distribution.c (struct partition_s): Add has_writes member. - (partition_alloc): Initialize it. - (partition_has_writes): New function. - (rdg_flag_uses): Adjust. - (rdg_flag_vertex): Likewise. - (rdg_flag_vertex_and_dependent): Likewise. - (rdg_flag_loop_exits): Likewise. - (build_rdg_partition_for_component): Likewise. - (rdg_build_partitions): Likewise. - -2012-06-05 Richard Guenther - - PR tree-optimization/53081 - * tree-loop-distribution.c (generate_memset_builtin): Handle all - kinds of byte-sized stores. - (classify_partition): Likewise. - (tree_loop_distribution): Adjust seed statements used for - !flag_tree_loop_distribution. - -2012-06-05 Alan Modra - - * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment. - (rs6000_emit_prologue): Ensure register used for inline saves - of vector regs is not the static chain register. Revise comment. - -2012-06-04 Oleg Endo - - * doc/md.texi (Standard Pattern Names For Generation): Document - sincos pattern. - -2012-06-04 H.J. Lu - - PR bootstrap/53555 - * config/i386/i386.c (ix86_sched_reorder): Skip debug insns. - -2012-06-04 Jason Merrill - - * dwarf2out.c (is_unit_die): New. - (copy_declaration_context, copy_ancestor_tree): Use it. - (copy_decls_walk): Likewise. - -2012-06-04 Paolo Carlini - - PR c++/53524 - * doc/invoke.texi (Wenum-compare): Update documentation. - -2012-06-04 Dodji Seketeli - - PR preprocessor/53463 - * parser.c (cp_parser_assignment_expression): Use the location - for the '=' as the default location for the expression. - -2012-06-04 Edmar Wienskoski - - PR target/53559 - * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of - operands. - (altivec_stvlxl): Ditto. - (altivec_stvrx): Ditto. - (altivec_stvrxl): Ditto. - -2012-06-04 Vladimir Makarov - - * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p. - (ira_uniform_class_p): New macro. - - * ira.c (setup_uniform_class_p): New function. - (setup_allocno_and_important_classes): Call the function. - (print_unform_and_important_classes): New function. - (print_classes): Rename to print_translated_classes. - (ira_debug_allocno_classes): Add call of - print_unform_and_important_classes. - - * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform - classes instead of pressure classes. - -2012-06-04 Aldy Hernandez - - PR middle-end/47530 - * trans-mem.c (expand_block_edges): Do not skip the first - statement when resetting the BB. - -2012-06-04 Richard Guenther - - * tree-data-ref.c (stores_from_loop): Remove. - (stmt_with_adjacent_zero_store_dr_p): Likewise. - (stores_zero_from_loop): Likewise. - * tree-data-ref.h (stores_from_loop, stores_zero_from_loop, - stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove. - (adjacent_store_dr_p): New function. - * tree-loop-distribution.c (generate_memset_builtin): Pass - the RDG, use the already available data-reference. - (generate_code_for_partition): Pass down RDG. - (classify_partition): Inline parts of the former - stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p. - (ldist_gen): Remember if there was any detected builtin and - do less work if not and flag_tree_loop_distribution is not set. - (tree_loop_distribution): Inline and fuse stores_from_loop - and stores_zero_from_loop here. - -2012-06-04 Richard Guenther - - PR middle-end/53471 - * dwarf2out.c (dwarf2out_finish): If generating LTO do not - create new assembler names. - -2012-06-04 Richard Guenther - - * tree-data-ref.c (struct rdg_vertex_info): Remove. - (rdg_vertex_for_stmt): Simplify using gimple_uid. - (create_rdg_vertices): Pass loop argument, remove stmt to RDG index - hashtable. Record stmt data-references. - (hash_stmt_vertex_info): Remove. - (eq_stmt_vertex_info): Likewise. - (hash_stmt_vertex_del): Likewise. - (build_empty_rdg): Simplify. - (build_rdg): Adjust. - (free_rdg): Likewise. - (ref_base_address): Remove. - (have_similar_memory_accesses): Likewise. - * tree-data-ref.h (create_rdg_vertices): Remove. - (struct rdg_vertex): Add datarefs member. - (RDGV_DATAREFS): New define. - (RDG_DATAREFS): Likewise. - (have_similar_memory_accesses): Remove. - (rdg_has_similar_memory_accesses): Likewise. - * tree-loop-distribution.c (ref_base_address): Re-implement here. - (similar_memory_accesses): Re-implement using existing data-references. - (tree_loop_distribution): Initialize stmt uids for the stmt to - RDG index mapping. - * tree-vect-loop.c (vect_create_epilog_for_reduction): Only - access stmt vinfo for stmts in loop. - -2012-06-04 Andreas Schwab - - PR target/53461 - * config/m68k/m68k.md ("tablejump"): Fix check for - CASE_VECTOR_PC_RELATIVE. - -2012-06-04 Steven Bosscher - - * output.h (merge_weak, assemble_alias, - initializer_constant_valid_p, - initializer_constant_valid_for_bitfield_p): Move protos from here... - * tree.h: ... to here. - * cgraphclones.c: Do not include output.h. - * gimplify.c: Likewise. - * reload.c: Likewise. - * recog.c: Likewise. - * tree-ssa-loop-ivopts.c: Likewise. - * tree-switch-conversion.c: Likewise. - * c-parser.c: Likewise. - * c-typeck.c: Likewise. - * Makefile.in: Fix dependencies. - -2012-06-04 Georg-Johann Lay - - PR target/46261 - * config/avr/avr-stdint.h: New file. - * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of - newlib-stdint.h - -2012-06-04 Jakub Jelinek - - PR tree-optimization/53550 - * tree-ssa-loop-niter.c (number_of_iterations_cond): If type - is POINTER_TYPE_P, use sizetype as step type instead of type. - -2012-06-04 Richard Guenther - - * tree-data-ref.c (have_similar_memory_accesses_1): Remove. - (ref_base_address_1): Likewise. - (remove_similar_memory_refs): Likewise. - * tree-data-ref.h (remove_similar_memory_refs): Remove. - * tree-loop-distribution.c (classify_partition): Do not classify - as builtin if -ftree-loop-distribute-patterns is not enabled. - (fuse_partitions_with_similar_memory_accesses): Inline ... - (ldist_gen): ... here. Fuse all non-builtin partitions if - -ftree-loop-distribution is not enabled. Properly return - the number of created partitions. Do not update SSA form here but ... - (tree_loop_distribution): ... once here for the whole function. - Only walk innermost loops, constrain loops we consider here - further. Do not call remove_similar_memory_refs. - (distribute_loop): Do not check number of loop nodes here. - -2012-06-04 Steven Bosscher - - * Makefile.in (GIMPLE_H): Do not depend on TARGET_H. - -2012-06-03 Martin Jambor - - * ipa-prop.h (ipa_get_jf_known_type_offset): New function. - (ipa_get_jf_known_type_base_type): Likewise. - (ipa_get_jf_known_type_component_type): Likewise. - (ipa_get_jf_constant): Likewise. - (ipa_get_jf_pass_through_formal_id): Likewise. - (ipa_get_jf_pass_through_operation): Likewise. - (ipa_get_jf_ancestor_offset): Likewise. - (ipa_get_jf_ancestor_type): Likewise. - (ipa_get_jf_ancestor_formal_id): Likewise. - (ipa_get_jf_member_ptr_pfn): Likewise. - * ipa-prop.c (ipa_set_jf_known_type): New function. - (ipa_set_jf_constant): Likewise. - (ipa_set_jf_simple_pass_through): Likewise. - (ipa_set_jf_arith_pass_through): Likewise. - (ipa_set_ancestor_jf): Likewise. - (fill_member_ptr_cst_jump_function): Moved up and renamed to - ipa_set_jf_member_ptr_cst. - (detect_type_change_1): Use the new jump function creation functions. - (compute_complex_assign_jump_func): Likewise. - (compute_complex_ancestor_jump_func): Likewise. - (compute_known_type_jump_func): Likewise. - (compute_scalar_jump_functions): Likewise. - (compute_pass_through_member_ptrs): Likewise. - (determine_cst_member_ptr): Likewise. - (combine_known_type_and_ancestor_jfs): Likewise. - (try_make_edge_direct_simple_call): Likewise. - (try_make_edge_direct_virtual_call): Likewise. - (update_indirect_edges_after_inlining): Likewise. - * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function - access functions. Incorporat NOP_EXPR and BINFO handling from its - callers. - (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs - which was in its callers. - (ipa_value_from_jfunc): Use jump function access functions. Some - functionality moved to functions above. - (propagate_vals_accross_ancestor): Likewise. - (propagate_vals_accross_pass_through): Use jump function access - functions. - (propagate_accross_jump_function): Likewise. - * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function - access functions. - (inline_merge_summary): Likewise. - -2012-06-03 John David Anglin - - * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define. - * config/pa/pa.c (pa_attr_length_millicode_call): Use - MAX_PCREL17F_OFFSET instead of fixed offset. - (pa_attr_length_call): Likewise. - (pa_attr_length_indirect_call): Likewise. - -2012-06-03 Oleg Endo - - PR target/53512 - * config/sh/sh.opt (mfsca, mfsrra): New options. - * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA - condition. - (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition. - (sinssf2, cossf2): Fold expanders to ... - (sincossf3): ... this new expander. Use TARGET_FPU_ANY and - TARGET_FSCA condition. - * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and - TARGET_FSCA. - * doc/invoke.texi (SH Options): Add descriptions for -mfsca, - -mno-fsca, -mfsrra, -mno-fsrra. - -2012-06-03 Matt Turner - - * config/mips/4600.md (r4700_imul_si): New. - (r4700_imul_di): New. - (r4700_fmul_single): New. - (r4700_fmul_double): New. - * config/mips/mips-cpus.def: Add r4700. - * config/mips/mips.c: Likewise. - * config/mips/mips.md: Likewise. - * config/mips/mips-tables.opt: Regenerate. - -2012-06-02 Steven Bosscher - - * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to - new function sparc_initial_elimination_offset. - * config/sparc/sparc.c (sparc_initial_elimination_offset): New - function. - * config/sparc/sparc-protos.h (sparc_initial_elimination_offset): - Prototype it. - -2012-06-02 Kenneth Zadeck - - * expmed.c (expand_mult, choose_multiplier): Change - "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT". - * expr.c (convert_modes): Likewise. - * explow.c (plus_constant): Likewise. - * fixed-value.c (fixed_saturate1, fixed_saturate2) - (do_fixed_add, do_fixed_multiply, do_fixed_multiply) - (do_fixed_multiply, do_fixed_multiply, do_fixed_divide) - (do_fixed_divide, do_fixed_divide, do_fixed_divide) - (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift) - (do_fixed_shift, fixed_convert, fixed_convert) - (fixed_convert_from_int, fixed_convert_from_int) - (fixed_convert_from_real): Likewise. - * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p) - (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise. - * varasm.c (output_constructor_bitfield): Likewise. - * tree-vrp.c (register_edge_assert_for_2): Likewise. - * double-int.c (rshift_double, lshift_double): Likewise. - * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int): - Likewise. - * simplify-rtx.c (mode_signbit_p) - (simplify_const_unary_operation, simplify_binary_operation_1) - (simplify_immed_subreg): Likewise. - * builtins.c (c_readstr, fold_builtin_bitop): Likewise. - * tree-vect-generic.c (build_replicated_const): Likewise. - * dbxout.c (stabstr_O): Likewise. - * emit-rtl.c (immed_double_int_const, immed_double_const) - (gen_lowpart_common, init_emit_once): Likewise. - * tree.c (integer_pow2p, tree_log2, tree_floor_log2) - (widest_int_cst_value, upper_bound_in_type): Likewise. - * stor-layout.c (initialize_sizetypes, fixup_signed_type) - (fixup_unsigned_type): Likewise. - * real.c (real_to_integer2, real_from_integer): Likewise. - * dwarf2out.c (size_of_loc_descr, size_of_die, output_die) - (clz_loc_descriptor, mem_loc_descriptor): Likewise. - -2012-06-01 Eric Botcazou - - PR middle-end/53501 - * fold-const.c (fold_binary_loc): Refine previous change. - -2012-06-01 Olivier Hainque - - * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore - the "do {" part of the do-while(0) loop. - -2012-06-01 Yuri Rumyantsev - - * config/i386/i386.c (x86_sched_reorder): New function. - Added new function x86_sched_reorder. - -2012-06-01 Richard Guenther - - * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop): - Handle PHIs. - (classify_partition): Likewise. - -2012-06-01 Richard Guenther - - * tree-loop-distribution.c (enum partition_kind): New enum. - (struct partition_s): Add kind and main_stmt members. - (partition_alloc): Initialize kind to PKIND_NORMAL. - (partition_builtin_p): New function. - (copy_loop_before): Remove failure path and assert instead. - (generate_loops_for_partition): Likewise. - (generate_memset_zero): Fold into ... - (generate_memset_builtin): ... this. - (classify_partition): New function with code from - can_generate_builtin and generate_builtin. - (generate_builtin): Remove. - (can_generate_builtin): Likewise. - (fuse_partitions_with_similar_memory_accesses): Call - partition_builtin_p instead of can_generate_builtin. - (rdg_build_partitions): Do not call - fuse_partitions_with_similar_memory_accesses here... - (ldist_gen): ... but here after classifying all partitions. - Remove failure path of generate_code_for_partition. - (generate_code_for_partition): Generate code according - to partition classification. - -2012-06-01 Manuel López-Ibáñez - Jonathan Wakely - - PR c++/50134 - * doc/invoke.texi (Warning Options): Explain purpose and differences - between -Wmissing-prototypes and -Wmissing-declarations. - -2012-06-01 Christian Bruel - - * gcc.c (save_switch): Add user_p parameter. - (read_specs): Likewise. - (set_specs): Likewise. - (validate_switches): Likewise. - (validate_switches_from_spec): Likewise. - (validate_all_switches): Pass on user_p parameter. - (struct spec_list): Add user_p field. - (struct switchstr): Add known field. - (save_switch): Add known parameter. - (INIT_STATIC_SPEC): Initialize user_p; - (driver_unknown_option_callbac): call save_switch if - OPT_SPECIAL_unknown. - (driver_handle_option): Propagate OPT_specs. - (do_spec_1): Set validated only if known. - (check_live_switch): Likewise. - (validate_switches): Set validated if known or user_spec. - -2012-06-01 Hans-Peter Nilsson - - Add CRIS atomic patterns for 1, 2, and 4 bytes. - * config/cris/cris.c (cris_emit_trap_for_misalignment): New function. - * config/cris/cris-protos.h: Declare it. - * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32] - (TARGET_DEFAULT): Add alignment by 32. - [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New - case, as TARGET_CPU_DEFAULT == 0 but with alignment as for - TARGET_CPU_DEFAULT == 32. - (TARGET_TRAP_UNALIGNED_ATOMIC): New macro. - * config/cris/cris.md: Include sync.md. Avoid allocating specific - numbers by replacing the define_constants for all UNSPECs with the - equivalent define_c_enum construct. - * config/cris/cris.opt (mtrap-unaligned-atomic): New option. - * config/cris/sync.md: New file. - -2012-05-31 Matt Turner - - * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul. - (r4600_imul_di): New. - (r4600_idiv_si): Rename from r4600_idiv. - (r4600_idiv_di): New. - -2012-05-31 Steven Bosscher - - * output.h (__gcc_host_wide_int__): Move to hwint.h. - (decl_default_tls_model): Move to tree.h - (dump_file): Move to system.h. - (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor, - dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline, - dbxout_begin_empty_stabs, dbxout_begin_simple_stabs, - dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero, - dbxout_stab_value_zero, dbxout_stab_value_label_diff, - dbxout_stab_value_internal_label, - dbxout_stab_value_internal_label_diff): Move from here ... - * dbxout.h: ... to here. - * system.h (dump_file): Moved here from output.h. - * hwint.h (__gcc_host_wide_int__): Moved here from output.h. - * tree.h (decl_default_tls_model): Moved here from output.h. - * varasm.c (default_stabs_asm_out_destructor, - default_stabs_asm_out_constructor): Move from here ... - * dbxout.c: ... to here. - - * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers. - - * collect2.h (dump_file): Rename to dump_ld_file. - * collect2.c: Likewise. - * tlink.c: Likewise. - - * alias.c: Do not include output.h. - * auto-inc-dec.c: Likewise. - * bt-load.c: Likewise. - * caller-save.c: Likewise. - * cfg.c: Likewise. - * cfgbuild.c: Likewise. - * cfgcleanup.c: Likewise. - * cfglayout.c: Likewise. - * cfgloop.c: Likewise. - * cfgloopanal.c: Likewise. - * cfgloopmanip.c: Likewise. - * cfgrtl.c: Likewise. - * cgraph.c: Likewise. - * cgraphclones.c: Likewise. - * combine-stack-adj.c: Likewise. - * combine.c: Likewise. - * cprop.c: Likewise. - * cse.c: Likewise. - * cselib.c: Likewise. - * dbgcnt.c: Likewise. - * df-problems.c: Likewise. - * df-scan.c: Likewise. - * dojump.c: Likewise. - * fwprop.c: Likewise. - * gcse.c: Likewise. - * graph.c: Likewise. - * haifa-sched.c: Likewise. - * hw-doloop.c: Likewise. - * ipa-inline-transform.c: Likewise. - * ipa-pure-const.c: Likewise. - * ipa-reference.c: Likewise. - * ipa-utils.c: Likewise. - * ira-build.c: Likewise. - * ira-emit.c: Likewise. - * lcm.c: Likewise. - * loop-doloop.c: Likewise. - * loop-invariant.c: Likewise. - * loop-iv.c: Likewise. - * loop-unroll.c: Likewise. - * loop-unswitch.c: Likewise. - * lto-cgraph.c: Likewise. - * lto-section-in.c: Likewise. - * lto-streamer-in.c: Likewise. - * mcf.c: Likewise. - * mode-switching.c: Likewise. - * postreload-gcse.c: Likewise. - * postreload.c: Likewise. - * predict.c: Likewise. - * profile.c: Likewise. - * ree.c: Likewise. - * reg-stack.c: Likewise. - * regcprop.c: Likewise. - * regmove.c: Likewise. - * regstat.c: Likewise. - * reload1.c: Likewise. - * sched-ebb.c: Likewise. - * sel-sched-dump.c: Likewise. - * simplify-rtx.c: Likewise. - * stor-layout.c: Likewise. - * store-motion.c: Likewise. - * tracer.c: Likewise. - * tree-affine.c: Likewise. - * tree-cfg.c: Likewise. - * tree-cfgcleanup.c: Likewise. - * tree-dfa.c: Likewise. - * tree-into-ssa.c: Likewise. - * tree-nomudflap.c: Likewise. - * tree-optimize.c: Likewise. - * tree-pretty-print.c: Likewise. - * tree-profile.c: Likewise. - * tree-ssa-address.c: Likewise. - * tree-ssa-ccp.c: Likewise. - * tree-ssa-copy.c: Likewise. - * tree-ssa-dom.c: Likewise. - * tree-ssa-loop-ch.c: Likewise. - * tree-ssa-loop-im.c: Likewise. - * tree-ssa-loop-manip.c: Likewise. - * tree-ssa-loop-niter.c: Likewise. - * tree-ssa-loop-prefetch.c: Likewise. - * tree-ssa-loop-unswitch.c: Likewise. - * tree-ssa-loop.c: Likewise. - * tree-ssa-propagate.c: Likewise. - * tree-ssa-structalias.c: Likewise. - * tree-ssa-tail-merge.c: Likewise. - * tree-ssa-threadedge.c: Likewise. - * tree-ssa-threadupdate.c: Likewise. - * tree-ssa-uncprop.c: Likewise. - * tree-ssa-uninit.c: Likewise. - * tree-ssa.c: Likewise. - * value-prof.c: Likewise. - * var-tracking.c: Likewise. - * web.c: Likewise. - - * config/m32r/m32r.c: Include dbxout.h. - * config/pa/pa.c: Likewise. - * config/rs6000/rs6000.c: Likewise. - - * Makefile.in: Fix dependencies. - * config/rs6000/t-rs5000: Likewise. - -2012-05-31 Aldy Hernandez - - * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm. - * gimple.h (block_in_transaction): Check for flag_tm. - -2012-05-31 Aldy Hernandez - - PR tree-optimization/52558 - * cfg.c (alloc_aux_for_edge): Fix comment. - (alloc_aux_for_edge): Remove static. - * basic-block.h (alloc_aux_for_edge): Protoize. - * tree-ssa-loop-im.c (execute_sm_if_changed): New. - (execute_sm_if_changed_flag): New. - (execute_sm_if_changed_flag_set): New. - (execute_sm): Do not generate data races unless requested. - (tree_ssa_lim_initialize): Call alloc_aux_for_edges. - (tree_ssa_lim_finalize): Call free_aux_for_edges. - * gimple.h (block_in_transaction): New. - (gimple_in_transaction): Use block_in_transaction. - -2012-05-31 Georg-Johann Lay - - PR target/51345 - * config/avr/avr.opt (-msp8): Document it. - * doc/invoke.texi (AVR Options): Ditto. And document related - built-in macros. - -2012-05-31 Diego Novillo - - * configure.ac (CXX_FOR_BUILD): Define and substitute. - (BUILD_CXXFLAGS): Define and substitute. - * Makefile.in (BUILD_CXXFLAGS): Define. - (CXX_FOR_BUILD): Define. - (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++. - (LINKER_FOR_BUILD): Likewise. - (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++. - (BUILD_LINKERFLAGS): Likewise. - * configure: Regenerate. - -2012-05-31 Steven Bosscher - - * Makefile.in: Fix many dependencies. - * tree-profile.c: Don't include regs.h. - * tree-vectorizer.c: Don't include cfglayout.h. - * tree-vect-stmts.c: Likewise. - * tree-vect-slp.c: Likewise. - * tree-vect-loop.c: Likewise. - * reg-stack.c: Likewise. - * tree-ssa-loop-manip.c: Likewise. - * toplev.c: Likewise. - * varasm.c: Don't include cfglayout.h, basic-block.h, - and tree-iterator.h. - * tree-cfgcleanup.c: Don't include cfglayout.h. - * passes.c: Don't include cfglayout.h, dwarf2asm.h, - dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h. - * cgraphclones.c: Don't include plugin.h. - -2012-05-31 Georg-Johann Lay - - * config/avr/t-avr: Correct avr-mmcu.texi dependencies. - (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output. - * doc/avr-mmcu.texi (svn:eol-style): Set to native. - -2012-05-31 Richard Guenther - - * tree-loop-distribution.c (struct partition_s): New struct, - typedef and vector type. - (partition_alloc, partition_free): New functions. - (generate_loops_for_partition, generate_builtin, - generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex, - rdg_flag_vertex_and_dependent, rdg_flag_loop_exits, - build_rdg_partition_for_component, can_generate_builtin, - similar_memory_accesses, fuse_partitions_with_similar_memory_accesses, - rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions, - number_of_rw_in_partition, partition_contains_all_rw, - ldist_gen): Use partition_t instead of bitmap. - -2012-05-31 Georg-Johann Lay - - * config/avr/gen-avr-mmcu-texi.c: Sort MCUs. - * doc/avr-mmcu.texi: Regenerate. - -2012-05-31 Richard Guenther - - * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop): - Use FOR_EACH_SSA_DEF_OPERAND. - (generate_builtin): Adjust. - (stmt_generated_in_another_partition): Remove. - (add_scalar_computations_to_partition): Likewise. - (rdg_build_partitions): Do not call - add_scalar_computations_to_partition. - -2012-05-31 Eric Botcazou - - * tree-dfa.c (get_ref_base_and_extent): Compute the offset using - double ints throughout. - * tree-sra.c (build_user_friendly_ref_for_offset) : - Check that the position of the field is representable as an integer. - -2012-05-31 Richard Guenther - - * tree-data-ref.c (dr_analyze_innermost): Properly convert - the MEM_REF offset to sizetype. - -2012-05-31 Georg-Johann Lay - - * doc/invoke.texi (AVR Options): Fix typos. - -2012-05-31 Hans-Peter Nilsson - - * config/cris/cris.h (CC1_SPEC): Pass through all -march= - and -mcpu= options. - (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10, - non-v32 into --march=v0_v10. - -2012-05-31 Richard Sandiford - - * ira-int.h (target_ira_int): Rename x_move_cost to - x_ira_register_move_cost, x_may_move_in_cost to - x_ira_may_move_in_cost and x_may_move_out_cost to - x_ira_may_move_out_cost. Delete the old fields with - those names and also x_ira_max_register_move_cost, - x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost. - (move_cost, may_move_in_cost, may_move_out_cost) - (ira_max_register_move_cost, ira_max_may_move_in_cost) - (ira_max_may_move_out_cost): Delete. - * ira.c (init_move_cost): Rename to... - (ira_init_register_move_cost): ...this, deleting the old - function with that name. Apply above variable renamings. - Retain asserts for null fields. - (ira_init_once): Don't initialize register move costs here. - (free_register_move_costs): Apply above variable renamings. - Remove code for deleted fields. - -2012-05-31 Richard Sandiford - - * ira.c (init_move_cost): Adjust choice of subclasses to match - the current ira_init_register_move_cost choice. Use - ira_class_subset_p instead of reg_class_subset_p. - (ira_init_register_move_cost): Assert that move_cost, - may_move_in_cost and may_move_out_cost already hold the desired - values for their ira_* equivalents. For the latter two, - ignore classes that can't store a register of the given mode. - -2012-05-31 Richard Sandiford - - * ira.c (setup_allocno_and_important_classes): Use - ira_class_hard_regs_num to check whether a class has any - allocatable registers. - (ira_init_register_move_cost): Likewise. - -2012-05-31 Richard Sandiford - - * ira.c (init_move_cost): Adjust local variable names to match - file conventions. Use ira_assert instead of gcc_assert. - -2012-05-31 Richard Sandiford - - * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost): - Move these definitions and associated target_globals fields to... - * ira-int.h: ...here. - * rtl.h (init_move_cost): Delete. - * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to... - * ira.c: ...here, making the latter static. - -2012-05-31 Richard Sandiford - - * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary - and ira_register_move_cost instead of init_move_cost and move_cost. - -2012-05-31 Richard Sandiford - - * ira.h (target_ira): Delete x_ira_available_class_regs. - (ira_available_class_regs): Delete. - * ira.c (setup_available_class_regs): Delete. - (setup_alloc_classes): Don't call it. - (setup_pressure_classes): Use ira_class_hard_regs_num instead of - ira_available_class_regs. - * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info) - (model_spill_cost): Likewise. - * ira-build.c (low_pressure_loop_node_p): Likewise. - * ira-color.c (color_pass): Likewise. - * ira-emit.c (change_loop): Likewise. - * ira-lives.c (inc_register_pressure, dec_register_pressure) - (single_reg_class, ira_implicitly_set_insn_hard_regs) - (process_bb_node_lives): Likewise. - * loop-invariant.c (gain_for_invariant): Likewise. - -2012-05-30 John David Anglin - - PR target/52999 - * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define. - (pa_section_type_flags): New. - (pa_legitimate_constant_p): Revert previous change. - -2012-05-30 Steven Bosscher - - * ira.c (allocate_initial_values): Make static. - -2012-05-30 Uros Bizjak - - * config/i386/i386.c (legitimize_tls_address) : - Generate tls_initial_exec_64_sun only when !TARGET_X32. - -2012-05-30 Richard Guenther - - PR middle-end/53501 - * fold-const.c (fold_binary_loc): Make sure to call - fold_plusminus_mult_expr with the original sign of operands. - -2012-05-30 Steven Bosscher - - * Makefile.in: Fix many dependencies. - (DWARF2_H): Depend on dwarf2.def. - (RTL_ERROR_H): Depend on rtl-error.h. - (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace - all gimple-pretty-print.h and tree-pretty-print.h references. - -2012-05-30 Marc Glisse - - * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of - concatenations. - -2012-05-30 Richard Guenther - - PR middle-end/53522 - * tree-emutls.c (gen_emutls_addr): Do not add globals to - referenced-vars. - -2012-05-30 Eric Botcazou - - * explow.c (probe_stack_range): Restore simple control flow and stop - again when the probe cannot be generated if HAVE_check_stack. - -2012-05-30 Jakub Jelinek - - PR rtl-optimization/53519 - * combine.c (simplify_shift_const_1) : Use constm1_rtx - instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR. - -2012-05-30 Ramana Radhakrishnan - - * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error. - -2012-05-29 Jack Howarth - - PR debug/53453 - * doc/tm.texi: Update. - * doc/tm.texi.in (SDB and DWARF) : Add @hook. - * target.def (force_at_comp_dir): New hook. - * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define. - * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir. - -2012-05-29 Jack Howarth - - * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when - Darwin >= 10. - (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10. - (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10. - -2012-05-29 Oleg Endo - - PR target/51340 - * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if - flag_unsafe_math_optimizations is set. - * doc/invoke.texi (SH Options): Add -mno-fused-madd description. - Update description of -mfused-madd. - -2012-05-29 Oleg Endo - - PR target/52941 - * config/sh/predicates.md (atomic_arith_operand, - atomic_logical_operand): New predicates. - * config/sh/sh.c (sh_option_override): Check atomic options. - * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS, - UNSUPPORTED_HARD_ATOMIC_CPU): New macros. - (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and - UNSUPPORTED_HARD_ATOMIC_CPU. - * config/sh/sync.md: Update description comments. - (I12): New mode iterator. - (fetchop_predicate, fetchop_constraint): New code attributes. - (atomic_compare_and_swapsi_hard, atomic_compare_and_swap_hard, - atomic_exchangesi_hard, atomic_exchange_hard, - atomic_fetch_si_hard, - atomic_fetch__hard, - atomic_fetch_nandsi_hard, atomic_fetch_nand_hard, - atomic__fetchsi_hard, - atomic__fetch_hard, - atomic_nand_fetchsi_hard, atomic_nand_fetch_hard, - atomic_test_and_set_hard): New insns. - (atomic_compare_and_swap_soft, atomic_exchange_soft, - atomic_fetch__soft, atomic_fetch_nand_soft, - atomic__fetch_soft, atomic_nand_fetch_soft, - atomic_test_and_set_soft): Use same formatting for the first line of - the asm block as in new insns above. - (atomic_compare_and_swap, atomic_exchange, - atomic_fetch_, atomic__fetch, - atomic_test_and_set): Integrate new *_hard insns into expanders. - * config/sh/sh.opt (mhard-atomic): New option. - * doc/invoke.texi (SH Options): Document it. - -2012-05-29 Meador Inge - - * c-decl.c (c_push_function_context): Always create a new language - function. - (c_pop_function_context): Clear the language function created in - c_push_function_context. - -2012-05-29 Matt Turner - - * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New. - (define_bypass "ev6_fcmov"): New. - -2012-05-29 Steven Bosscher - - * integrate.c: Remove. - * integrate.h: Remove. - * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H. - * config/arm/t-arm: Remove INTEGRATE_H dependency for target files. - * config/rs6000/t-rs6000: Likewise - * config/spu/t-spu-elf: Likewise. - * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val, - get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes - from integrate.h to here. - (initial_value_entry): New prototype. - * reload.h (allocate_initial_values): Remove prototype. - * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise. - * cse.c (fixed_base_plus_p): Don't handle virtual registers for - integrate.c. - * dwarf2out.c (set_decl_origin_self, set_block_origin_self, - set_decl_abstract_flags, set_block_abstract_flags): Move from - integrate.c to here, the only user. - * expmed.c (extract_fixed_bit_field): Remove outdated comment - about integrate.c. - * function.c: Don't include integrate.h. - (struct initial_value_pair, struct initial_value_struct, - get_hard_reg_initial_val, has_hard_reg_initial_val, - get_hard_reg_initial_reg, emit_initial_value_sets): Move from - integrate.c to here. - (initial_value_entry): New function. - * genemit.c (main): Don't print integrate.h include line. - * ira.c: Don't include integrate.h. - (allocate_initial_values): Move from integrate.c to here. - (ira): Update allocate_initial_values call. - * tree-inline.c: Don't include integrate.h. - (function_attribute_inlinable_p): Moved from integrate.c to here. - * cfgexpand.c: Don't include integrate.h. - * except.c: Likewise. - * langhooks.c: Likewise. - * passes.c: Likewise. - * toplev.c: Likewise. - * config/frv/frv.c: Likewise. - * config/pa/pa.c: Likewise. - * config/spu/spu.c: Likewise. - * config/epiphany/epiphany.c: Likewise. - * config/mep/mep.c: Likewise. - * config/score/score.c: Likewise. - * config/picochip/picochip.c: Likewise. - * config/sh/sh.c: Likewise. - * config/alpha/alpha.c: Likewise. - * config/microblaze/microblaze.c: Likewise. - * config/mips/mips.c: Likewise. - * config/v850/v850.c: Likewise. - * config/mmix/mmix.c: Likewise. - * config/bfin/bfin.c: Likewise. - * config/arm/arm.c: Likewise. - * config/s390/s390.c: Likewise. - * config/m32r/m32r.c: Likewise. - * config/rs6000/rs6000.c: Likewise. - * config/c6x/c6x.c: Include function.h instead of integrate.h. - * config/tilegx/tilegx.c: Likewise. - * config/tilepro/tilepro.c: Likewise. - -2012-05-29 Georg-Johann Lay - - * config/avr/t-avr (s-avr-mmcu-texi): Call - gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH. - -2012-05-29 Michael Matz - - * rtl.h (assign_stack_temp, assign_stack_temp_for_type, - assign_temp): Remove 'keep' argument. - (mark_temp_addr_taken): Remove prototype. - * tree.h (expand_decl): Remove prototype. - * function.c (struct temp_slot): Remove addr_taken and keep member. - (assign_stack_temp_for_type) Don't initialize above, remove - keep argument. - (assign_stack_temp, assign_temp): Remove keep argument. - (mark_temp_addr_taken): Remove. - (preserve_temp_slots): Remove handling of addr_taken and keep members. - (free_temp_slots): Ditto. - * expr.c (expand_expr_real_1 ): Remove - dead code. - * stmt.c (expand_asm_operands): Remove dead code. - (expand_decl): Remove. - * c-decl.c (finish_struct): Don't call expand_decl. - * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp - and assign_stack_temp. - * calls.c (save_fixed_argument_area, initialize_argument_information, - expand_call, emit_library_call_value_1, store_one_arg): Ditto. - * expmed.c (extract_bit_field_1): Ditto. - * expr.c (emit_group_load_1, emit_group_store, - copy_blkmode_from_reg, emit_push_insn, expand_assignment, - store_field, expand_constructor, expand_cond_expr_using_cmove, - expand_expr_real_2, expand_expr_real_1): Ditto. - * stmt.c (expand_asm_operands, expand_return): Ditto. - - * function.c (pop_temp_slots): Call free_temp_slots. - * calls.c (store_one_arg): Don't call preserve_temp_slots or - free_temp_slots. - * expr.c (expand_assignment): Don't call free_temp_slots. - - * config/arm/arm.c (neon_expand_vector_init): Ditto. - * config/i386/i386.c (ix86_expand_vector_set): Ditto. - (ix86_expand_vector_extract): Ditto. - * config/ia64/ia64.c (spill_xfmode_rfmode_operand, - ia64_expand_movxf_movrf): Ditto. - * config/mips/mips.c (mips_expand_vi_general): Ditto. - * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2, - extendsfdf2): Ditto. - * config/rs6000/rs6000.c (rs6000_expand_vector_init, - rs6000_expand_vector_set, rs6000_expand_vector_extract, - rs6000_allocate_stack_temp): Ditto. - * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto. - * config/sparc/sparc.c (emit_soft_tfmode_libcall, - sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp, - sparc_expand_vector_init): Ditto. - -2012-05-29 Michael Matz - - * c-tree.h (c_expand_decl): Remove prototype. - - * expr.c (expand_expr_real_1 ): Don't allocate - a kept temp. - (expand_expr_real_1 ): Make unreachable. - * gimple-fold.c (canonicalize_constructor_val): Canonicalize - COMPOUND_LITERAL_EXPR. - * function.c (expand_function_start): Don't call expand_decl, - instead assert that we have RTL assigned. - * tree-ssa-live.c (remove_unused_locals): Clear - nonlocal_goto_save_area if its backing variable is removed. - * stmt.c (expand_asm_operands): Remove handling of non-lvalues - as mem inputs. - (expand_decl): Assert that this does nothing. - * calls.c (expand_call): Don't call mark_temp_addr_taken. - -2012-05-29 Richard Guenther - - PR tree-optimization/53516 - * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject - bitfield accesses. - * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise. - -2012-05-29 Joseph Myers - - * LANGUAGES: Fix typos. - * Makefile.in: Fix typos. - * alias.c: Fix typos. - * auto-inc-dec.c: Fix typos. - * bb-reorder.c: Fix typos. - * cfgcleanup.c: Fix typos. - * cgraph.c: Fix typos. - * cgraph.h: Fix typos. - * cgraphunit.c: Fix typos. - * collect2-aix.h: Fix typos. - * collect2.c: Fix typos. - * compare-elim.c: Fix typos. - * config/alpha/vms.h: Fix typos. - * config/arm/README-interworking: Fix typos. - * config/arm/arm.c: Fix typos. - * config/arm/iterators.md: Fix typos. - * config/arm/vxworks.h: Fix typos. - * config/avr/avr.c: Fix typos. - * config/avr/avr.h: Fix typos. - * config/avr/avr.md: Fix typos. - * config/avr/builtins.def: Fix typos. - * config/c6x/c6x.c: Fix typos. - * config/cr16/cr16.c: Fix typos. - * config/cr16/cr16.md: Fix typos. - * config/cris/cris.md: Fix typos. - * config/darwin.c: Fix typos. - * config/darwin.opt: Fix typos. - * config/i386/i386-c.c: Fix typos. - * config/i386/i386.c: Fix typos. - * config/ia64/ia64.c: Fix typos. - * config/m68k/cf.md: Fix typos. - * config/mep/mep.c: Fix typos. - * config/microblaze/microblaze.c: Fix typos. - * config/microblaze/microblaze.h: Fix typos. - * config/mn10300/mn10300.c: Fix typos. - * config/mn10300/mn10300.md: Fix typos. - * config/pa/pa.c: Fix typos. - * config/picochip/picochip.h: Fix typos. - * config/rs6000/a2.md: Fix typos. - * config/rs6000/rs6000.c: Fix typos. - * config/rs6000/vector.md: Fix typos. - * config/rx/rx.md: Fix typos. - * config/rx/rx.opt: Fix typos. - * config/s390/2097.md: Fix typos. - * config/s390/s390.c: Fix typos. - * config/s390/s390.h: Fix typos. - * config/sh/sh.c: Fix typos. - * config/sh/sh.md: Fix typos. - * config/sparc/sync.md: Fix typos. - * config/spu/spu.c: Fix typos. - * config/spu/spu.md: Fix typos. - * config/vms/vms.c: Fix typos. - * config/vxworks-dummy.h: Fix typos. - * config/vxworks.h: Fix typos. - * cselib.c: Fix typos. - * df-scan.c: Fix typos. - * df.h: Fix typos. - * doc/extend.texi: Fix typos. - * doc/install.texi: Fix typos. - * doc/invoke.texi: Fix typos. - * doc/md.texi: Fix typos. - * doc/plugins.texi: Fix typos. - * doc/rtl.texi: Fix typos. - * dse.c: Fix typos. - * dwarf2asm.c: Fix typos. - * dwarf2out.c: Fix typos. - * except.h: Fix typos. - * expr.c: Fix typos. - * fold-const.c: Fix typos. - * gcc.c: Fix typos. - * gcse.c: Fix typos. - * genautomata.c: Fix typos. - * gengtype-state.c: Fix typos. - * gengtype.c: Fix typos. - * genhooks.c: Fix typos. - * gimple-fold.c: Fix typos. - * gimple-pretty-print.c: Fix typos. - * gimple.c: Fix typos. - * gimple.h: Fix typos. - * gimplify.c: Fix typos. - * graphite-interchange.c: Fix typos. - * graphite-sese-to-poly.c: Fix typos. - * ifcvt.c: Fix typos. - * input.c: Fix typos. - * ipa-cp.c: Fix typos. - * ipa-inline-analysis.c: Fix typos. - * ipa-inline-transform.c: Fix typos. - * ipa-inline.c: Fix typos. - * ipa-pure-const.c: Fix typos. - * ipa-ref.h: Fix typos. - * ipa-reference.c: Fix typos. - * ipa-utils.c: Fix typos. - * ipa.c: Fix typos. - * ira-emit.c: Fix typos. - * ira-lives.c: Fix typos. - * lto-streamer.c: Fix typos. - * lto-streamer.h: Fix typos. - * lto-wrapper.c: Fix typos. - * mcf.c: Fix typos. - * mode-switching.c: Fix typos. - * modulo-sched.c: Fix typos. - * plugin.c: Fix typos. - * postreload.c: Fix typos. - * sched-deps.c: Fix typos. - * sel-sched-ir.c: Fix typos. - * sel-sched-ir.h: Fix typos. - * sel-sched.c: Fix typos. - * sese.c: Fix typos. - * stor-layout.c: Fix typos. - * target-hooks-macros.h: Fix typos. - * target.def: Fix typos. - * trans-mem.c: Fix typos. - * tree-eh.c: Fix typos. - * tree-predcom.c: Fix typos. - * tree-sra.c: Fix typos. - * tree-ssa-address.c: Fix typos. - * tree-ssa-loop-ivopts.c: Fix typos. - * tree-ssa-loop-niter.c: Fix typos. - * tree-ssa-math-opts.c: Fix typos. - * tree-ssa-pre.c: Fix typos. - * tree-ssa-propagate.c: Fix typos. - * tree-ssa-reassoc.c: Fix typos. - * tree-ssa-sccvn.c: Fix typos. - * tree-ssa-ter.c: Fix typos. - * tree-ssa-uninit.c: Fix typos. - * tree-ssanames.c: Fix typos. - * tree-vect-generic.c: Fix typos. - * tree-vect-slp.c: Fix typos. - * tree.c: Fix typos. - * tree.h: Fix typos. - * varasm.c: Fix typos. - * varpool.c: Fix typos. - -2012-05-29 Joseph Myers - - * doc/include/texinfo.tex: Update to version 2012-05-16.16. - -2012-05-29 Richard Guenther - - * tree-dfa.c (find_vars_r): Do not call add_referenced_vars - for globals. - (add_referenced_var_1): Re-organize. Assert we are not - called for globals. - (remove_referenced_var): Likewise. - * varpool.c (add_new_static_var): Use create_tmp_var_raw. - * tree-mudflap.c (execute_mudflap_function_ops): Do not - call add_referenced_var on globals. - * matrix-reorg.c (transform_access_sites): Likewise. - -2012-05-29 Steven Bosscher - - * alias.c (reg_known_value): Make this a VEC. - (reg_known_equiv_p): Make this an sbitmap. - (reg_known_value_size): Remove. - (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p, - set_reg_known_equiv_p): Update for reg_known_value and - reg_known_value_size data structure change. - (init_alias_analysis, end_alias_analysis): Likewise. - -2012-05-29 Jakub Jelinek - - PR middle-end/53510 - * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC - to avoid leaking memory. No need to handle memory allocation - failure. Double string_len on each reallocation instead of adding 2. - * gcov.c (read_line): Likewise. - -2012-05-29 Hans-Peter Nilsson - - * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8): - New macros. - * config/cris/cris.md ("trap"): Define, enabled for - TARGET_TRAP_USING_BREAK8. - * config/cris/cris.opt (mtrap-using-break8): New option. - -2012-05-28 Paolo Carlini - - PR c++/25137 - * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall - for C++. - -2012-05-28 Hans-Peter Nilsson - - * doc/md.texi (stack_protect_test): Remove negation of branch to label. - (Standard Names): Fix typos in documentation of atomic patterns. - -2012-05-27 Nathan Sidwell - - * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS. - -2012-05-26 Jason Merrill - - PR c++/53220 - * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning - about array compound literals. - -2012-05-26 Eric Botcazou - - * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks - if CLEANUP_NO_INSN_DEL. - * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted - from cfg_layout_merge_blocks. - (emit_nop_for_unique_locus_between): New function. - (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between. - (cfg_layout_merge_blocks): Likewise. - -2012-05-26 Dimitrios Apostolou - Paolo Bonzini - - * df-scan.c (df_def_record_1): Assert a parallel must contain an - EXPR_LIST at this point. Receive the LOC and move its extraction... - (df_defs_record): ... here. Change if-else to a switch statement. - (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New. - (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET - and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE - DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for - regs_invalidated_by_call. - (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after - df_get_call_refs(). - -2012-05-25 Eric Botcazou - - PR lto/52178 - * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL. - * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR. - -2012-05-25 Michael Meissner - - * config/rs6000/t-linux64: Delete the 32-bit multilib that uses - software floating point emulation. No longer build the multilibs - with -mstrict-align. - -2012-05-25 Aldy Hernandez - - PR middle-end/53008 - * trans-mem.c (ipa_tm_create_version_alias): Output new_node if - accessed indirectly. - (ipa_tm_create_version): Same. - -2012-05-25 Uros Bizjak - - PR target/53474 - * config/i386/i386.c (ix86_print_operand) : Print '.' here. - : Print '.' only for C and c. - -2012-05-25 Alexander Ivchenko - - PR target/53435 - * config/i386/i386.c (ix86_expand_vec_perm): Use correct op. - (ix86_expand_vec_perm): Use int mode instead of float. - (expand_vec_perm_pshufb): Remove handling of useseless type - conversion. - -2012-05-25 Eric Botcazou - - PR ada/52362 - * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and - gnu_ld variables to yes. - * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion. - (HAVE_GNU_AS): Likewise. - * config.in: Regenerate. - * configure: Likewise. - -2012-05-25 Tristan Gingold - - * config/i386/i386.c (struct ix86_frame): Remove unused frame field. - (ix86_compute_frame_layout): Fix type of stack_alignment_needed - and preferred_alignment. - -2012-05-25 Tristan Gingold - - * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo. - -2012-05-25 Thomas Schwinge - - * fold-const.c (optimize_bit_field_compare): Abort early in the strict - volatile bitfields case. - -2012-05-24 Pat Haugen - - * config/rs6000/rs6000.c (rs6000_option_override_internal): Change - rs6000_sched_costly_dep default to true_store_to_load_dep_costly. - (adjacent_mem_locations): Move some code to and call... - (get_memref_parts): ...new function. - (mem_locations_overlap): New function. - (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn. - (is_mem_ref): Rename to... - (find_mem_ref): ...this. Return MEM rtx. - (get_store_dest): Remove function. - (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add - new parameter and adjust calls. - (rs6000_is_costly_dependence): Update calls for extra arg. Make sure - mem refs overlap for true_store_to_load_dep_costly. - (rs6000_sched_reorder2): Update calls for extra arg. Adjust args - passed to adjacent_mem_locations. - (is_costly_group): Walk resolved dependency list. - (force_new_group): Emit group ending nop for Power6/Power7. - * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value. - (group_ending_nop): New define_insn. - -2012-05-24 Dodji Seketeli - - Make unwound macro expansion trace less redundant - * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print - context of macro definition in the trace, when it's redundant. - Update comments. - -2012-05-24 Richard Guenther - - PR middle-end/53460 - * tree-profile.c (tree_profiling): Cleanup the CFG if - execute_fixup_cfg requests it. - -2012-05-24 Richard Guenther - - * tree-flow.h (create_var_ann): Remove. - * tree-dfa.c (create_var_ann): Remove and inline into its - single caller ... - (add_referenced_var_1): ... here. - * varpool.c (add_new_static_var): Do not call add_referenced_var - for global vars. - * gimple-fold.c (canonicalize_constructor_val): Likewise. - * tree-switch-conversion.c (build_one_array): Likewise. - * tree-profile.c (gimple_gen_ic_profiler): Likewise. - * tree-flow-inline.h (gimple_referenced_vars): Guard against - NULL fn argument. - * tree-inline.c (remap_gimple_op_r): Likewise. Check - gimple_referenced_vars instead of gimple_in_ssa_p. - (copy_tree_body_r): Likewise. - (setup_one_parameter): Likewise. - (declare_return_variable): Likewise. - (tree_function_versioning): Likewise. - -2012-05-24 Jakub Jelinek - - PR tree-optimization/53465 - * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range - vr0 into *vr, then vrp_meet that. - (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't - have any equivalences. - (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the - first time. - -2012-05-24 Jim MacArthur - - * recog.c (reg_fits_class_p): Check both regno and regno + offset are - hard registers. - * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and - check end_regno - 1 is a hard register. - -2012-05-24 Richard Guenther - - * varpool.c (add_new_static_var): Remove call to create_var_ann. - * tree-ssa-operands.c (create_vop_var): Likewise. - -2012-05-24 Richard Guenther - - PR bootstrap/53466 - * tree-ssa-live.c (remove_unused_scope_block_p): Properly - handle globals. - (remove_unused_locals): Pass global_unused_vars to - remove_unused_scope_block_p. Restore code walking all - referenced vars and pruning them. - -2012-05-23 Jan Hubicka - - * tree.h (alias_diag_flags): Remove. - (alias_pair): Remove emitted_diags. - (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs, - symbol_alias_set_t, symbol_alias_set_destroy, - symbol_alias_set_contains, propagate_aliases_backward): Remove. - * toplev.c (compile_file): Do not call finish_aliases_2 - * cgraphunit.c (cgraph_process_new_functions): Do not call - finish_aliases_1. - (handle_alias_pairs): Output diagnostics about aliases to externals. - (assemble_thunks_and_aliases): Use do_assemble_alias. - (output_weakrefs): Likewise. - (finalize_compilation_unit): Do not call finish_aliases_1. - * ipa.c (symtab_remove_unreachable_nodes): De not call - remove_unreachable_alias_pairs. - * varasm.c (do_assemble_alias): Export. - (symbol_alias_set_create, symbol_alias_set_destroy, - symbol_alias_set_contains, symbol_alias_set_insert, - propagate_aliases_forward, propagate_aliases_backward, - propagate_aliases_backward, trivially_visible_alias, - trivially_defined_alias, remove_unreachable_alias_pairs, - finish_aliases_1, finish_aliases_2, assemble_alias): Remove. - * output.h (do_assemble_alias): Declare. - * varpool.c (varpool_remove_unreferenced_decls): Do not call - finish_aliases_1. - -2012-05-23 Martin Jambor - - * ipa-inline-analysis.c (inline_merge_summary): Free operand_map. - -2012-05-23 Eric Botcazou - - * gimple.c (gimple_types_compatible_p_1) : Remove bogus - size handling. - (gimple_canonical_types_compatible_p) : Likewise. - (iterative_hash_gimple_type): Adjust comment. - (iterative_hash_canonical_type): Likewise. Hash the bounds of the - domain for an array type instead of the domain type itself. - -2012-05-23 Richard Guenther - - PR tree-optimization/53438 - * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion. - -2012-05-23 Georg-Johann Lay - - PR target/53448 - * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1. - * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use - ASM_OUTPUT_ALIGN. - -2012-05-23 Richard Guenther - - * tree-dfa.c (add_referenced_var_1): Do not add global vars. - * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars - via the global_unused_vars bitmap. - (remove_unused_locals): Handle global vars in local-decls via - a global_unused_vars bitmap instead of the used flag in the - var annotation. Simplify global variable handling and removal. - -2012-05-22 Jan Hubicka - - PR middle-end/53426 - * tree-ssa-structalias.c (create_variable_info_for): Skip constructors - from other partitions. - -2012-05-22 Jan Hubicka - - PR middle-end/53161 - * symtab.c (symtab_register_node): Fix ordering issue. - -2012-05-22 Steven Drake - - * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir. - -2012-05-22 David Edelsohn - - * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref): - Use strip_name_encoding target hook. - -2012-05-22 Richard Guenther - - * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New. - (init_function_for_compilation): Remove. - * tree-dfa.c (find_vars_r): Take struct function argument. - (find_referenced_vars_in): Adjust. - * tree-ssa-operands.c (clobber_stats): Remove. - (create_vop_var): Take struct function argument. Mark - virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND. - (init_ssa_operands): Take struct function argument. - (fini_ssa_operands): Do not dump dead stats. - * tree-ssa-operands.h (init_ssa_operands): Take struct function - argument. - * cgraphunit.c (init_lowered_empty_function): Adjust. - * lto-streamer-in.c (input_cfg): Likewise. - * tree-inline.c (initialize_cfun): Likewise. - * tree-into-ssa.c (rewrite_into_ssa): Likewise. - * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun. - * gimple.c (is_gimple_reg): Optimize the SSA_NAME case, - virtual operands are not registers. - -2012-05-22 Richard Guenther - - * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit. - -2012-05-22 Richard Guenther - - PR middle-end/53437 - * tree-inline.c (setup_one_parameter): Create a dummy init - statement for unused parameters when not optimizing. - -2012-05-22 Richard Guenther - - * tree-flow.h (add_referenced_var_1): Declare. - (add_referenced_var): Define. - * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup. - (add_referenced_var): Rename to ... - (add_referenced_var_1): ... this. Take struct function argument. - -2012-05-22 Ramana Radhakrishnan - - PR target/53334 - * config/arm/arm-protos.h (arm_validize_comparison): Declare. - * config/arm/arm.c (arm_validize_comparison): Define. - * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use - arm_validize_comparison. - ("cbranchdi4"): Likewise. - ("cstoredi4"): Likewise. - ("movsicc"): Likewise. - ("movsfcc"): Likewise. - ("movdfcc"): Likewise. - -2012-05-22 Dimitrios Apostolou - - * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce - the mw_reg_pool size. - -2012-05-22 Paolo Bonzini - - PR tree-optimization/53336 - * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from - non-integer integral types to offset type and vice versa. - -2012-05-22 Alan Modra - - * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete. - * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete. - * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE, - V_SAVE_INLINE): Delete. - * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete. - (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic. - For ELF targets, use out-of-line restores for -Os and any number - of regs if the restore exits, and out-of-line gp save for two or - more regs. Use save_reg_p to test for holes in reg restore set. - Replace "#if" with "if". - -2012-05-22 Alan Modra - - * config/rs6000/rs6000.c (save_reg_p): New function. - (first_reg_to_save, first_fp_reg_to_save): Use it here. - (first_altivec_reg_to_save, restore_saved_cr): Likewise. - (emit_frame_save): Use gen_frame_store. - (gen_frame_mem_offset): Correct SPE condition requiring reg+reg. - (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for - vrsave and toc. - (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for - vrsave, toc, gp and fp restores. - -2012-05-22 Alan Modra - - * config/rs6000/rs6000.c: Delete unnecessary forward declarations. - Move those with ATTRIBUTE_UNUSED to immediately before definitions. - Move function pointer variables after forward declarations. - (rs6000_builtin_support_vector_misalignment): Make static. - (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise. - (rs6000_function_value, rs6000_can_eliminate): Likewise. - -2012-05-21 Bernd Schmidt - - PR rtl-optimization/53373 - * caller-save.c (save_call_clobbered_regs): Look into a possible - PARALLEL manually rather than using single_set on a call insn. - -2012-05-21 Jakub Jelinek - - PR tree-optimization/53436 - * omp-low.c (omp_build_component_ref): New function. - (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it. - -2012-05-21 Uros Bizjak - - * config/i386/i386.c (put_condition_code): Change "reverse" and "fp" - arguments to bool. - (ix86_print_operand) : Look at mode size of the operand. - Do not print '.' here. Output operand lossage error for unhandled - sizes. Move. - : Move. - : Ditto. - : Ditto. - : Hardcode "code" argument into error strings. - : Ditto. - : Merge AVX and non-AVX codes. - : Merge. Fix error string. - Update call to put_condition_code. - -2012-05-21 Andreas Schwab - - * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call - CC_STATUS_INIT. - (clzsi2): New expander. - (*clzsi2_68k): New insn. - * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO. - -2012-05-21 Aldy Hernandez - - * gimple.h (gimple_set_in_transaction): Remove. - (gimple_in_transaction): Look in BB instead. - (gimple_statement_base): Remove in_transaction field. - * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION. - * trans-mem.c (compute_transaction_bits): Place transaction bit - information into basic blocks. - -2012-05-21 Andreas Schwab - - * expr.c (get_def_for_expr_class): Define only if - HAVE_conditional_move. - (convert_tree_comp_to_rtx): Likewise. - -2012-05-21 Uros Bizjak - - PR target/53399 - * config/i386/i386.md (ffs2): Generate CCCmode compare - for TARGET_BMI. - (ffssi2_no_cmove): Ditto. - (*ffs_1): Remove insn pattern. - (*tzcnt_1): New insn pattern. - (*bsf1): Ditto. - -2012-05-21 Richard Guenther - - * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for - more referenced vars. - * tree-ssa-live.c (mark_all_vars_used_1): Only set the used - flag on variables that have a var-annotation. - -2012-05-21 Joseph Myers - - PR c/53418 - * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR - from folded operands before wrapping another around the - conditional expression. - -2012-05-21 Jakub Jelinek - - PR tree-optimization/53366 - * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut - tests if complex_numbers == 2, but there are non-complex number loads - too. - - PR tree-optimization/53409 - * tree-vect-loop.c (vect_analyze_loop_operations): Don't check - vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop. - - PR tree-optimization/53410 - * fold-const.c (fold_binary_loc): Use build_zero_cst (type) - instead of build_int_cst (type, 0) where vector types might be - involved. Instead of build_int_cst (type, 1) convert the original - integer_onep argument to the desired type. - -2012-05-21 Michael Matz - - * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1. - (simplify_test_exp): Handle one more case of distributive law, - decrease cost threshold. - (tests_attr_p, get_attr_order): New functions. - (optimize_attrs): Use topological order, inline only cheap values. - (write_attr_set): Reset our_known_true after some time. - -2012-05-21 H.J. Lu - - PR target/53425 - * config/i386/i386.c (type_natural_mode): Warn passing SSE - vector argument without SSE enabled changes the ABI. - -2012-05-21 Richard Guenther - - PR tree-optimization/53408 - * tree-vect-loop.c (vectorizable_induction): Properly check - the restriction that we cannot handle induction results from - the inner loop outside of the outer loop. - -2012-05-21 H.J. Lu - - PR target/53416 - * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ... - (UNSPECV_RDRAND): This. - (rdrand_1): Updated. - -2012-05-21 Richard Guenther - - * tree-loop-distribution.c (can_generate_builtin): Reject - volatile stmts. - -2012-05-21 Chung-Lin Tang - - * Makefile.in (options.c): Add options.h to included header - files, before tm.h. - -2012-05-21 Razya Ladelsky - - * tree-parloops.c : Add myself to contributors, update - TODO list, add link to wiki. - -2012-05-21 Alan Modra - - * config/rs6000/predicates.md (input_operand): Don't match - constant pool addresses. Remove label_ref, high and plus from - match_code list. Remove redundant CONSTANT_P test. - (splat_input_operand): Similarly update match_code list. - (small_toc_ref): New predicate. - * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype. - * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const. - (legitimate_constant_pool_address_p): Move TARGET_TOC test and - register checks to.. - (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl - generated by create_TOC_reference. - (rs6000_legitimize_address): Update cerate_TOC_reference call. - (rs6000_delegitimize_address): Handle new rtl for toc refs. - (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise. - (use_toc_relative_ref): New function, split out from.. - (rs6000_emit_move): ..here. Remove redundant tests. Update - create_TOC_reference calls. - (rs6000_legitimize_reload_address): Formatting. Handle splitting - of medium/large model toc addresses. Use use_toc_relative_ref. - (print_operand): Formatting, style. Adjust for toc changes. - (print_operand_address): Likewise. - (rs6000_output_addr_const_extra): Likewise. - (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather - than a PLUS. Use this formulation for both high and low part - of -mcmodel=medium/large toc reference too. Before reload, - always use the small model formulation. - * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid - a PLUS in high part of addresses here. - (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise. - (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise. - (largetoc_high, largetoc_low): Move earlier. Cope when no - base reg available. - (largetoc_high_plus): New insn. - (movsi_internal1, movsi_internal1_single, movsf_softfloat, - movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here.. - (tocref): ..instead do so here, new insn and split. - -2012-05-20 H.J. Lu - - * config/i386/driver-i386.c (host_detect_local_cpu): Support - RDRND, F16C and FSGSBASE. - -2012-05-20 John David Anglin - - PR rtl-optimzation/53373 - * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in - call pattern. Update split patterns. - (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic, - call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise. - -2012-05-20 Razya Ladelsky - - * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond - for outer loops. - -2012-05-18 Jan Hubicka - - * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs - (cgraph_process_new_functions): Process also aliases. - * lto-streamer-out.c (struct sets): Remove. - (trivally_defined_alias): Remove. - (output_alias_pair_p): Remove. - (output_unreferenced_globals): Remove. - (produce_symtab); Do not handle alias pairs. - (produce_asm_for_decls): Likewise. - * lto-streamer-in.c (input_alias_pairs): Remove. - (lto_read_body): Do not input alias pairs. - (lto_input_constructors_and_inits): Remove. - -2012-05-18 Jan Hubicka - - * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of - aliases. - -2012-05-18 Jan Hubicka - - * cgraphbuild.c (record_reference): Update. - * lto-cgraph.c (lto_output_varpool_node): External vars - are not in other partition even if they are not output - in current partition. - * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL - argument; fix. - (canonicalize_constructor_val): Take FROM_DECL argument. - (fold_ctor_reference, fold_string_cst_ctor_reference, - fold_array_ctor_reference, fold_nonarray_ctor_reference, - fold_ctor_reference): Likewise. - (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update. - * gimple.h (gimple_fold_builtin): Likewise. - -2012-05-18 Olivier Hainque - - * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of - $(libsubdir) as libexecsubdir. - -2012-05-18 Bill Schmidt - - * config/rs6000/rs6000.c (print_operand): Revise code that unsafely - relied on signed overflow behavior. - -2012-05-18 Richard Guenther - - PR tree-optimization/53346 - * tree-loop-distribution.c (ldist_gen): Make sure to apply - builtin transform even when only a single partition with - all reads/writes exists. - -2012-05-18 Richard Guenther - - PR tree-optimization/53390 - * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore - strided loads. - -2012-05-18 Bill Schmidt - - * tree-ssa-reassoc.c (bip_map): Remove decl. - (completely_remove_stmt): Remove function. - (remove_def_if_absorbed_call): Remove function. - (remove_visited_stmt_chain): Remove __builtin_powi handling. - (possibly_move_powi): Remove function. - (rewrite_expr_tree): Remove calls to possibly_move_powi. - (rewrite_expr_tree_parallel): Likewise. - (attempt_builtin_powi): Build multiplies explicitly rather than - relying on the ops vector and rank system. - (transform_stmt_to_copy): New function. - (transform_stmt_to_multiply): Likewise. - (reassociate_bb): Handle leftover operations after __builtin_powi - optimization; build a final multiply if necessary. - -2012-05-18 Jan Hubicka - - * cgraphunit.c (varpool_finalize_decl): Allow external decls. - (mark_functions_to_output): Fix sanity check. - * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check. - -2012-05-18 Richard Guenther - - * tree-flow.h (mark_symbols_for_renaming): Remove. - * tree-dfa.c (mark_symbols_for_renaming): Likewise. - * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming. - (copy_debug_stmt): Likewise. - (expand_call_inline): Likewise. - (declare_return_variable): Mark the return variable for renaming - if necessary. - -2012-05-18 Andrew Stubbs - - * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New - prototype. - * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function. - * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift. - (ashrdi3,lshrdi3): Likewise. - (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch. - -2012-05-18 Meador Inge - - PR rtl-optimization/53352 - * cse.c (equiv_constant): Ignore paradoxical subregs. - -2012-05-17 Steven Bosscher - - PR rtl-optimization/53125 - * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid - argument. Simplify calculation of REG_LIVE_LENGTH for regnos that - die in the basic block. Correctly top off REG_FREQ and - REG_FREQ_CALLS_CROSSED. - Remove do_not_gen. - (regstat_compute_ri): Allocate and free local_live_last_luid. - Remove do_not_gen. - (regstat_bb_compute_calls_crossed): Correctly top off - REG_FREQ_CALLS_CROSSED. - -2012-05-17 Jan Hubicka - - * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with - constructor over decl without. - * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes. - * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly. - * cgraphunit.c (process_function_and_variable_attributes): Finalize - extrnal decls. - (mark_functions_to_output): Also accept bodies for functions with - clones. - (output_in_order): Skip external vars. - * lto-cgraph.c (lto_output_node): External functions are never in other - partition. - (lto_output_varpool_node): Likewise. - * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for - forgotten initializers. - * ipa.c (process_references): Handle external vars. - (symtab_remove_unreachable_nodes): Update to handle external vars. - (varpool_externally_visible_p): External vars are externally visible. - * gimple-fold.c (can_refer_decl_in_current_unit_p): Update. - * varpool.c (varpool_remove_node): Remove constructor. - (decide_is_variable_needed): Handle externals. - (varpool_remove_unreferenced_decls): Likewise. - -2012-05-17 Manuel López-Ibáñez - - * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic. - (enable_warning_as_error): Do not special case Wuninitialized. - * optc-gen.awk: Add sanity checks. - -2012-05-17 Jan Hubicka - - * ipa-reference.c (is_proper_for_analysis): Do not check flags - that might change as result of global optimization. - (analyze_function): Do not check analyzed and externally_visible - flags; be happy about address dereferences. - (propagate): Prune all_module_statics so it really contains just - statics; prune all the local summaries. - (ipa_reference_write_optimization_summary): Simplify. - -2012-05-17 Kwok Cheung Yeung - - * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm. - * config/m68k/m68k-tables.opt: Regenerated. - * doc/invoke.texi (M680x0 Options): Document. - -2012-05-16 Dave Boutcher - Patrick Marlier - - * trans-mem.c (ipa_tm_transform_clone): Transform functions with - indirect calls. - -2012-05-16 H.J. Lu - - * configure: Regenerated. - -2012-05-16 Andrew Pinski - - * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under - GIMPLE_ASSIGN. - -2012-05-16 David S. Miller - - * jump.c (delete_related_insns): If we remove a CALL, make sure - we delete it's NOTE_INSN_CALL_ARG_LOCATION note too. - -2012-05-16 Bill Schmidt - - PR tree-optimization/53217 - * tree-ssa-reassoc.c (bip_map): New static variable. - (possibly_move_powi): Move feeding multiplies with __builtin_powi call. - (attempt_builtin_powi): Save feeding multiplies on a stack. - (reassociate_bb): Create and destroy bip_map. - -2012-05-16 Olivier Hainque - - * Makefile.in (install-no-fixedincludes): New target, former toplevel - gcc-no-fixedincludes. Stash "include-fixed" in addition to "include". - Add comments and improve stamp preservation across the whole sequence. - (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h. - -2012-05-16 Richard Guenther - - * tree-inline.c (insert_init_stmt): Do not call - mark_symbols_for_renaming. - (setup_one_parameter): Avoid initializing unused parameters. - (declare_return_variable): Properly handle DECL_BY_REFERENCE - return vars in SSA form. - -2012-05-16 Richard Guenther - - * tree-flow.h (get_virtual_var): Remove. - * tree-dfa.c (get_virtual_var): Likewise. - -2012-05-16 Richard Guenther - - * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): - Remove set-only bitmap of new names. - (slpeel_tree_peel_loop_to_edge): Likewise. Do not set - CFG hooks. - * tree-flow.h (ssa_names_to_replace): Remove. - * tree-into-ssa.c (ssa_names_to_replace): Likewise. - -2012-05-16 Richard Guenther - - PR tree-optimization/53364 - * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly - detect a view-conversion of the decl. - -2012-05-16 Dodji Seketeli - - PR preprocessor/7263 - * c-tree.h (enum c_declspec_word): Declare new enum. - (struct c_declspecs::locations): New member. - (declspecs_add_qual, declspecs_add_scspec) - (declspecs_add_addrspace, declspecs_add_alignas): Take a new - location parameter. - * c-decl.c (build_null_declspecs): Initialize the new struct - c_declspecs::locations member. - (declspecs_add_addrspace): Take a location parameter for the - address space. Store it onto declaration specifiers. - (declspecs_add_qual): Likewise, take a location parameter for the - qualifier. - (declspecs_add_type): Likewise, take a location parameter for the - type specifier. - (declspecs_add_scspec): Likewise, take a location parameter for - the storage class specifier. - (declspecs_add_attrs): Likewise, take a location parameter for the - first attribute. - (declspecs_add_alignas): Likewise, take a location parameter for - the alignas token. - (finish_declspecs): For diagnostics, use the location of the - relevant declspec, instead of the global input_location. - * c-parser.c (c_parser_parameter_declaration): Pass the precise - virtual location of the declspec to the declspecs-setters. - (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token - repeatedly. - -2012-05-16 Igor Zamyatin - - * configure.ac: Stack protector enabling for Android targets. - * configure: Regenerate. - -2012-05-16 Richard Sandiford - - * ira.c (pseudo_move_insn): Delete. - (find_moveable_pseudos): Don't set it. - (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find - the definitions of the original pseudo. Delete all of them. - -2012-05-16 Olivier Hainque - - * config/rs6000/rs6000-opts.h (enum processor_type): Add - PROCESSOR_PPC8548. - * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548". - * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548. - * config/rs6000/8540.md: indicate that the units/patterns apply to - ppc8548 as well. - - * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename - default_cpu into implicit_cpu, conveying what --with-cpu was passed at - configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE - related flags, check that what is queried is supported by the selected - configuration. Rework the single/double_float and MASK_STRING resets to - hit for all the E500 cores (854x + E500MC variants). Select the ppc8540 - costs for PROCESSOR_PPC8548 as well. - (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540. - (rs6000_use_sched_lookahead): Likewise, rewriting function as a case - statement instead of a sequence of ifs. - - * config/rs6000/rs6000.h (TARGET_E500): Remove. - (TARGET_NO_LWSYNC): Adjust accordingly. - * config/rs6000/e500.h (TARGET_E500): Remove. - (CHECK_E500_OPTIONS): Adjust accordingly. - * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove. - (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h. - * config/rs6000/linuxspe.h: Likewise. - * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and - superfluous comments. - * config/rs6000/e500-double.h: Remove. - - * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*, - default to with_cpu=8548 if --enable-e500-double, and to 8540 - otherwise. - (set misc flags section): For powerpc*|rs6000*, remove inclusion - of e500-double.h for --enable-e500-double. - -2012-05-16 Olivier Hainque - - * Makefile.in (s-header-vars): Resort to -n instead of trailing - -e d in sed invocation. - -2012-05-16 Hans-Peter Nilsson - - * doc/tm.texi.in (Type Layout) : Update reference to - source-code. - * doc/tm.texi: Regenerate. - -2012-05-15 Paolo Carlini - - * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P. - -2012-05-15 Jakub Jelinek - - PR target/53358 - * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check - that operands[2] is either immediate, or q_regs_operand. - -2012-05-15 Richard Guenther - - * cgraphunit.c (thunk_adjust): Use make_rename_temp. - (assemble_thunk): Likewise. Manually rename and register - function arguments. - -2012-05-15 Richard Guenther - - PR tree-optimization/53355 - * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs - by constants. - -2012-05-15 Tristan Gingold - - * tree-ssa-strlen.c (get_string_length): Convert lhs if needed. - -2012-05-15 Richard Guenther - - * gimple.c (gimple_set_modified): Move ... - * gimple.h (gimple_set_modified): ... here. - -2012-05-15 Tristan Gingold - - * ira-color.c (move_spill_restore): Add a guard. - -2012-05-15 Tristan Gingold - - * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to - plus_constant. - -2012-05-15 Eric Botcazou - - * gimplify.c (gimplify_init_constructor): Do a block move for very - small objects as well. - -2012-05-15 Bernd Schmidt - - * ira.c (find_moveable_pseudos): Skip registers whose - DF_REG_EQ_USE_COUNT is nonzero. - -2012-05-15 Kenneth Zadeck - - * doc/md.texi (fma): Define to only be applicable for single rounding. - -2012-05-14 Uros Bizjak - - PR target/46098 - * config/i386/i386.c (ix86_expand_special_args_builtin): Always - generate target register for "load" class builtins. - - Revert: - 2010-10-22 Uros Bizjak - - PR target/46098 - * config/i386/sse.md (*avx_movu): - Rename from avx_movu. - (avx_movu): New expander. - (*_movu): Rename from _movu. - (_movu): New expander. - (*avx_movdqu): Rename from avx_movdqu. - (avx_movdqu): New expander. - (*sse2_movdqu): Rename from sse2_movdqu. - (sse2_movdqu): New expander. - -2012-05-14 Marc Glisse - - PR target/52607 - * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ... - (canonicalize_perm): ... new function. - (expand_vec_perm_2vperm2f128_vshuf): New function. - (ix86_expand_vec_perm_const_1): Call it. - -2012-05-14 Andrew Pinski - H.J. Lu - Jakub Jelinek - - PR target/53315 - * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup. - (xbegin): Updated. - -2012-05-14 Jakub Jelinek - - * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat - lineno 1 the same as lineno 0 before first start file directive. - (optimize_macinfo_range): Likewise. - - * dwarf2out.c (have_macinfo): Define. - (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info - attribute, don't force empty compilation unit and don't emit any - .debug_macinfo/.debug_macro section if macinfo_table is empty. - -2012-05-14 Georg-Johann Lay - - PR target/53344 - * config/avr/avr.c (avr_const_address_lo16): Remove. - (avr_assemble_integer): Print ".byte lo8(x)", - ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler - .warning if 3-byte address is assembled. - * doc/extend.texi (AVR Named Address Spaces): Document that - binutils 2.23 is needed to assemble 3-byte addresses. - -2012-05-14 Richard Guenther - - * tree-vect-data-refs.c (vect_setup_realignment): Remove - call to mark_symbols_for_renaming. - (vect_permute_load_chain): Likewise. - * tree-vect-loop.c (vect_is_slp_reduction): Update stmt - instead of calling mark_symbols_for_renaming. - * tree-vect-stmts.c (read_vector_array): Remove call to - mark_symbols_for_renaming. - (write_vector_array): Likewise. - (vectorizable_call): Likewise. - (vectorizable_store): Likewise. - (vectorizable_load): Likewise. - * matrix-reorg.c (transform_allocation_sites): Likewise. - * tree-ssa-pre.c (create_expression_by_pieces): Likewise. - (create_expression_by_pieces): Likewise. - -2012-05-14 Richard Guenther - - * gimplify.c (gimple_regimplify_operands): Only mark the LHS - of statements for renaming. - (force_gimple_operand_1): Likewise, consistently for both - calls to force_gimple_operand and force_gimple_operand_gsi. - -2012-05-14 Richard Guenther - - * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form. - * omp-low.c (expand_omp_taskreg): Properly conditionalize call - to update_ssa. - (expand_omp_for): Likewise. - (expand_omp_for_generic): Adjust conditional add to referenced vars. - Use make_rename_temp for temporaries that should be rewritten into - SSA form. - (expand_omp_for_static_nochunk): Likewise. - (expand_omp_atomic_pipeline): Likewise. - -2012-05-14 Richard Guenther - - PR tree-optimization/53331 - * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore - strided loads. - * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads. - -2012-05-14 Manuel López-Ibáñez - - PR 53063 - * doc/options.texi: (LangEnabledBy): Document it. - * optc-gen.awk: Handle LangEnabledBy. - * opth-gen.awk: Generate declaration for lang-specific functions. - * opt-read.awk: Record lang numbers. - * opt-functions.awk (flag_set_p): Ignore the arguments of flags. - (lang_sanitized_name): New. - -2012-05-14 Bernd Schmidt - - * attribs.c (decl_attributes): Avoid emitting a warning if - ATTR_FLAG_BUILT_IN. - * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx - codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE. - * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to - define a string "1". - (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition. - * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, - BUILT_IN_STRCPY): Use it for these functions. - * postreload.c (reload_combine): Deal with SETs inside - CALL_INSN_FUNCTION_USAGE. - * caller-save.c (setup_save_areas, save_call_clobbered_regs): - Look for REG_RETURNED notes and use a cheap restore if possible. - * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num. - (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro. - * ira-build.c (ira_create_allocno, create_cap_allocno, - propagate_allocno_info, propagate_some_info_from_allocno, - copy_info_to_removed_store_destination, ira_flattening): Handle it. - * ira-lives.c (pseudo_regno_single_word_and_live_p, - find_call_crossed_cheap_reg): New static functions. - (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE, - and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make - a REG_RETURNED note in that case. - * ira.c (setup_reg_renumber): Change assert to allow cases where - allocnos only cross calls for which they are cheap to restore. - * ira-costs.c (ira_tune_allocno_costs): Compare - ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather - than 0. - * reg-notes.def (REG_RETURNED): New note. - * cse.c (cse_insn): Likewise. - * sched-deps.c (sched_analyze_insn): Likewise. - * expr.c (init_block_move_fn): Set a "fn spec" attribute. - * calls.c (decl_return_flags): New static function. - (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for - functions that return one of their arguments. - * regcprop.c (struct kill_set_value_data): New. - (kill_set_value): Interpret data as a pointer to such a struct. - Do nothing if the caller wants the register to be ignored. - (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE. - -2012-05-14 Richard Guenther - - PR tree-optimization/53340 - * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit. - -2012-05-14 Richard Guenther - - * gimplify.c (gimplify_expr): Remove odd code. - -2012-05-14 Eric Botcazou - - * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype - into a PLUS_EXPR byte offset. - - * tree-ssa-pre.c (can_value_number_call): Delete. - (compute_avail): Skip all statements with side effects. - : Skip calls to internal functions. - -2012-05-13 Steven Bosscher - - * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv". - -2012-05-13 Manuel López-Ibáñez - - * common.opt (Wtype-limits): Use EnabledBy. - -2012-05-13 Uros Bizjak - - * config/i386/i386.md (*pushtf): Enable for TARGET_SSE. - (pushtf splitter): Ditto. - (movtf): Ditto. - (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2. - (tf2): Enable for TARGET_SSE. - (*absnegtf2_sse): Ditto. - (copysign3): Enable TFmode for TARGET_SSE. - (copysign3_const): Ditto. - (copysign3_var): Ditto. - * config/i386/sse.md (tf3): Enable for TARGET_SSE. - (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2. - (*tf3): Ditto. - * config/i386/i386.c (struct builtin_description bdesc_args) - : Enable for TARGET_SSE. - : Ditto. - (ix86_expand_builtin) : - Emit a normal call if SSE isn't available. - -2012-05-13 Uros Bizjak - - * config/i386/sse.md (_andnot3): Handle - TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. - (3): Ditto. - (*andnot3): Ditto. - (*andnottf3): Ditto. - (*3): Ditto. - (tf3): Ditto. - -2012-05-13 Manuel López-Ibáñez - - * optc-gen.awk: Error instead of warning for conflicting help. - -2012-05-12 Jason Merrill - - PR debug/53235 - * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for - comdat types. - -2012-05-12 Eric Botcazou - - * function.c (requires_stack_frame_p): If the function can throw - non-call exceptions, return true if the insn can throw internally. - -2012-05-12 Paolo Carlini - - * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P. - -2012-05-12 Uros Bizjak - - * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle - ORDERED and UNORDERED conditions. - -2012-05-11 Richard Guenther - - * tree-flow.h (referenced_var_check_and_insert): Remove. - (find_new_referenced_vars): Likewise. - * tree-dfa.c (referenced_var_check_and_insert): Make static. - (find_new_referenced_vars_1, find_new_referenced_vars): Remove. - * tree-inline.c (copy_bb): Use find_referenced_vars_in - instead of find_new_referenced_vars. - * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise. - -2012-05-11 Richard Guenther - - * tree-pass.h (pass_rest_of_compilation, - pass_all_optimizations, pass_postreload, pass_all_early_optimizations): - Remove. - * passes.c (pass_all_optimizations, pass_postreload, - pass_all_early_optimizations): Make static. - (pass_rest_of_compilation): Likewise. Make it an RTL_PASS. - * tree-phinodes.c (init_phinodes, fini_phinodes): Remove. - * tree-ssa.c (init_tree_ssa): Do not call init_phinodes. - (delete_tree_ssa): Do not call fini_phinodes. - * tree-flow.h (init_phinodes, fini_phinodes): Remove. - -2012-05-11 Manuel López-Ibáñez - - PR 53063 - * doc/options.texi (EnabledBy): Document - * opts.c: Include opts.h and options.h before tm.h. - (finish_options): Do not handle some sub-options here... - (common_handle_option): ... instead call common_handle_option_auto - here. - * optc-gen.awk: Handle EnabledBy. - * opth-gen.awk: Declare common_handle_option_auto. - * common.opt (Wuninitialized): Use EnabledBy. Delete Init. - (Wmaybe-uninitialized): Likewise. - (Wunused-but-set-variable): Likewise. - (Wunused-function): Likewise. - (Wunused-label): Likewise. - (Wunused-value): Likewise. - (Wunused-variable): Likewise. - * opt-read.awk: Create opt_numbers array. - -2012-05-11 Richard Guenther - - PR tree-optimization/53295 - * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant - strides. - * tree-data-ref.c (dr_analyze_innermost): Allow non-constant - strides when analyzing data-references in a loop context. - * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject - non-constant strides for now. - (vect_enhance_data_refs_alignment): Ignore data references - that are strided loads. - (vect_analyze_data_ref_access): Handle non-constant strides. - (vect_check_strided_load): Verify the data-reference is a load. - (vect_analyze_data_refs): Restructure to make strided load - support not dependent on gather support. - * tree-vect-stmts.c (vectorizable_load): Avoid useless work - when doing strided or gather loads. - * tree-vect-loop-manip.c (vect_vfa_segment_size): Use - integer_zerop to compare stride with zero. - -2012-05-11 H.J. Lu - - * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM. - -2012-05-11 Jan Hubicka - - PR bootstrap/53300 - * varpool.c (varpool_assemble_decl): Also output constat pool entries - that output_constant_pool missed. - -2012-05-11 Mingjie Xing - - * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to - MULTILIB_EXTRA_OPTS. - -2012-05-11 Uros Bizjak - - PR target/53291 - * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc. - -2012-05-11 Uros Bizjak - - * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size - optimization for TARGET_AVX. - (*movti_internal_sse): Ditto. - (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. - (*movdi_internal): Ditto. - (*movsi_internal): Ditto. - (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX. - (*movdf_internal_rex64): Ditto. - (*movfd_internal): Ditto. - (*movsf_internal): Ditto. - * config/i386/sse.md (mov): Handle TARGET_SSE_LOAD0_BY_PXOR. - -2012-05-10 Eric Botcazou - - * dwarf2out.c (add_byte_size_attribute) : Handle variable - reference as size attribute. - -2012-05-10 Eric Botcazou - Tristan Gingold - - * doc/md.texi (Standard Names): Document probe_stack_address. - * explow.c (emit_stack_probe): Handle probe_stack_address. - * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant. - (UNSPECV_PROBE_STACK_RANGE): Likewise. - (probe_stack_address): New insn. - (probe_stack_range): Likewise. - * config/ia64/ia64.c: Include common/common-target.h. - (ia64_compute_frame_size): Mark r2 and r3 as used if static stack - checking is enabled. - (ia64_emit_probe_stack_range): New function. - (output_probe_stack_range): Likewise. - (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static - builtin stack checking is enabled. - (rtx_needs_barrier) : Handle UNSPECV_PROBE_STACK_RANGE - and UNSPECV_PROBE_STACK_ADDRESS. - (unknown_for_bundling_p): New predicate. - (group_barrier_needed): Use important_for_bundling_p. - (ia64_dfa_new_cycle): Use unknown_for_bundling_p. - (issue_nops_and_insn): Likewise. - (bundling): Likewise. - (final_emit_insn_group_barriers): Likewise. - * config/ia64/ia64-protos.h (output_probe_stack_range): Declare. - * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define. - (STACK_CHECK_PROTECT): Likewise. - * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise. - -2012-05-10 Jan Hubicka - - * ipa-inline.c (update_all_callee_keys): Remove. - (inline_small_functions): Simplify priority updating. - -2012-05-10 Jan Hubicka - - * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones. - -2012-05-10 Jan Hubicka - - * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ... - (symtab_remove_unreachable_nodes): ... this one. - * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes. - * cgraphunit.c (ipa_passes): Update. - * cgraphclones.c (cgraph_materialize_all_clones): Update. - * cgraph.c (cgraph_release_function_body): Only turn initial - into error mark when initial was previously set. - * ipa-inline.c (ipa_inline): Update. - * ipa.c: Include ipa-inline.h - (enqueue_cgraph_node, enqueue_varpool_node): Remove. - (enqueue_node): New function. - (process_references): Update. - (symtab_remove_unreachable_nodes): Cleanup. - * passes.c (execute_todo, execute_one_pass): Update. - -2012-05-10 Vladimir Makarov - - PR rtl-optimization/53125 - * ira.c (ira): Call find_moveable_pseudos and - move_unallocated_pseudos if only ira_conflicts_p is true. - -2012-05-10 Uros Bizjak - - * config/i386/i386.md (*movoi_internal_avx): Handle - TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES. - (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. - (*movti_internal_sse): Ditto. - (*movtf_internal): Ditto. - * config/i386/sse.md (ssePSmode): New mode attribute. - (*move_internal): Use ssePSmode. - (*_movu): Ditto. - (*_movdqu): Ditto. - * config/i386/i386.c (standard_sse_constant_opcode): Do not handle - TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here. - -2012-05-10 Eric Botcazou - - * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the - DECL_ORIGINAL_TYPE if it is present. - -2012-05-10 Nick Clifton - - PR target/53120 - * config/m32c/bitops.md (bset_qi): Change operand 2 from having - a "0" constraint to being a (match_dup 0). - -2012-05-10 Richard Guenther - - * stor-layout.c (byte_from_pos): Amend comment. - -2012-05-10 Rainer Orth - - * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init): - Document requirement to call in constructors. - - * config/i386/i386.c: Update comments for i386-cpuinfo.c name change. - -2012-05-10 Richard Guenther - - * tree.h (TYPE_IS_SIZETYPE): Remove. - * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use. - (extract_muldiv_1): Likewise. - * gimple.c (gtc_visit): Likewise. - (gimple_types_compatible_p): Likewise. - (iterative_hash_canonical_type): Likewise. - (gimple_canonical_types_compatible_p): Likewise. - * gimplify.c (gimplify_one_sizepos): Likewise. - * print-tree.c (print_node): Likewise. - * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE. - -2012-05-09 Uros Bizjak - - PR target/52908 - * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using - xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high. - (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern - instead of xop_mulv2div2di3_low. - (xop_pdql): Fix vec_select selector. - (xop_pdqh): Ditto. - (xop_mulv2div2di3_low): Remove insn_and_split pattern. - (xop_mulv2div2di3_high): Ditto. - -2012-05-09 Manuel López-Ibáñez - - PR c++/53289 - * diagnostic.h (diagnostic_context): Add last_location. - * diagnostic.c (diagnostic_initialize): Initialize it. - (diagnostic_show_locus): Use it. - -2012-05-09 Manuel López-Ibáñez - - * doc/extend.texi (Function Attributes): Point xref to section - about Pragmas. - -2012-05-09 Uros Bizjak - - * config/i386/i386.c (*movdf_internal_rex64): Remove - TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code. - Calculate "mode" attribute according to - TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag. - (*movdf_internal): Ditto. - -2012-05-09 Uros Bizjak - - PR target/44141 - * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle - 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and - sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL - or when optimizing for size. - * config/i386/sse.md (*mov_internal): Remove - TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code. - Calculate "mode" attribute according to optimize_function_for_size_p - and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag. - (*_movu): Choose asm template - depending on the mode of the instruction. Calculate "mode" attribute - according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES - and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags. - (*_movdqu): Ditto. - -2012-05-09 Georg-Johann Lay - - PR target/53256 - * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove. - * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove. - * config/avr/avr.h (struct machine_function): Add attributes_checked_p. - * config/avr/avr.c (avr_asm_declare_function_name): Remove. - (expand_prologue): Move initialization of cfun->machine->is_naked, - is_interrupt, is_signal, is_OS_task, is_OS_main from here to... - (avr_set_current_function): ...this new static function. - (TARGET_SET_CURRENT_FUNCTION): New define. - (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of - checking attributes of current_function_decl. - (avr_regs_to_save): Ditto. - (signal_function_p): Rename to avr_signal_function_p. - (interrupt_function_p): Rename to avr_interrupt_function_p. - - * doc/extend.texi (Function Attributes): Better explanation of - 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish - alphabetical order. - -2012-05-09 Michael Matz - - PR tree-optimization/53185 - * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable - peeling when we see strided loads. - -2012-05-09 Matthias Klose - - * gcc-ar.c (main): Don't check for execute bits for the plugin. - -2012-05-09 Ramana Radhakrishnan - - * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost): - Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with - USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately. - * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New. - (USE_LOAD_POST_INCREMENT): Define. - (USE_LOAD_PRE_INCREMENT): Define. - (USE_LOAD_POST_DECREMENT): Define. - (USE_LOAD_PRE_DECREMENT): Define. - (USE_STORE_PRE_DECREMENT): Define. - (USE_STORE_PRE_INCREMENT): Define. - (USE_STORE_POST_DECREMENT): Define. - (USE_STORE_POST_INCREMENT): Define. - (arm_auto_incmodes): Add enumeration. - * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare. - * config/arm/arm.c (arm_autoinc_modes_ok_p): Define. - -2012-05-09 Jakub Jelinek - - PR tree-optimization/53226 - * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove - prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false) - before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it - doesn't need to be revisited, look for earliest stmt with - !gimple_plf (stmt, GF_PLF_1) if something changed. - -2012-05-09 Terry Guo - - * genmultilib: Update copyright dates. - * doc/fragments.texi: Ditto. - -2012-05-09 Terry Guo - - * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED. - * genmultilib (MULTILIB_REQUIRED): New. - * doc/fragments.texi: Document the MULTILIB_REQUIRED. - -2012-05-09 Richard Guenther - - * tree-vectorizer.h (vect_loop_versioning): Adjust prototype. - (vect_do_peeling_for_loop_bound): Likewise. - (vect_do_peeling_for_alignment): Likewise. - * tree-vect-loop-manip.c (conservative_cost_threshold): Remove. - (vect_do_peeling_for_loop_bound): Get check_profitability and - threshold as parameters. - (vect_do_peeling_for_alignment): Likewise. - (vect_loop_versioning): Likewise. - * tree-vect-loop.c (vect_transform_loop): Compute check_profitability - and threshold here. Control where to put the check here. - -2012-05-09 Richard Sandiford - - PR middle-end/53249 - * dwarf2out.h (get_address_mode): Move declaration to... - * rtl.h: ...here. - * dwarf2out.c (get_address_mode): Move definition to... - * rtlanal.c: ...here. - * var-tracking.c (get_address_mode): Delete. - * combine.c (find_split_point): Use get_address_mode instead of - targetm.addr_space.address_mode. - * cselib.c (cselib_record_sets): Likewise. - * dse.c (canon_address, record_store): Likewise. - * emit-rtl.c (adjust_address_1, offset_address): Likewise. - * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces) - (store_by_pieces_1, expand_assignment, store_expr, store_constructor) - (expand_expr_real_1): Likewise. - * ifcvt.c (noce_try_cmove_arith): Likewise. - * optabs.c (maybe_legitimize_operand_same_code): Likewise. - * reload.c (find_reloads): Likewise. - * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise. - * sel-sched-dump.c (debug_mem_addr_value): Likewise. - -2012-05-09 Maciej W. Rozycki - - * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line - information from the instruction produced. - -2012-05-09 Richard Guenther - - * stor-layout.c (bit_from_pos): Document. - (byte_from_pos): Likewise. Optimize. - (pos_from_bit): Likewise. - (normalize_offset): Use pos_from_bit instead of replicating it. - -2012-05-09 Alan Modra - - PR target/53271 - * config/rs6000/rs6000.c (gen_frame_set): New function. - (gen_frame_load, gen_frame_store): New functions. - (rs6000_savres_rtx): Use the above. - (rs6000_emit_epilogue, rs6000_emit_prologue): Here too. - Correct mode used for CR2 in save/restore_world patterns. - Don't emit instructions for eh_return frame unwind reg info. - -2012-05-08 Jan Hubicka - - * cgraphbuild.c (build_cgraph_edges): Do not finalize vars - with VALUE_EXPR. - * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR - are removable. - * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR - need to wrapup. - (compile_file): Do not output variables. - * cgraphbuild.c (varpool_finalize_decl): When var is finalized late, - output it. - * langhooks.c: Include timevar.h - (write_global_declarations): Finalize compilation unit after wrapup; - set timevars correctly. - * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs - not to be added to varpool. - * varpool.c (varpool_assemble_decl): Sanity check that we are called - only on cases where it makes sense; skip constant pool and value expr - vars. - -2012-05-08 David S. Miller - - * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option. - * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise. - * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise. - -2012-05-08 Richard Sandiford - - PR rtl-optimization/53278 - * lower-subreg.c (decompose_multiword_subregs): Remove left-over - speed_p code from earlier patch. - -2012-05-08 Oleg Endo - - PR target/51244 - * config/sh/sh.md (*branch_true, *branch_false): New insns. - -2012-05-08 Teresa Johnson - - * gcov-io.h (__gcov_reset, __gcov_dump): Declare. - * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump. - -2012-05-08 Jan Hubicka - - * cgraph.c (cgraph_call_edge_duplication_hooks): Export. - (cgraph_create_node_1): Rename to ... - (cgraph_create_empty_node): ... this one; export. - (cgraph_create_node): Update. - (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c - (cgraph_create_edge_including_clones): Likewise. - (cgraph_find_replacement_node): Likewise. - (cgraph_clone_edge): Likewise. - (cgraph_clone_node): Likewise. - (clone_function_name): Likewise. - (cgraph_create_virtual_clone): Likewise. - (cgraph_remove_node_and_inline_clones): Likewise. - (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c - * cgraph.h: Reorder declarations so they match file of origin. - (cgraph_create_empty_node): Declare. - * cgraphunit.c (update_call_expr): Move to cgraphclones.c - (cgraph_copy_node_for_versioning): Likewise. - (cgraph_function_versioning): Likewise. - (cgraph_materialize_clone): Likewise. - (cgraph_redirect_edge_call_stmt_to_callee): Likewise. - (cgraph_materialize_all_clones): Likewise. - * cgraphclones.c: New file. - * Makefile.in: Update for cgraphclones. - -2012-05-08 Uros Bizjak - - PR target/53176 - * config/i386/i386.c (ix86_set_reg_reg_cost): New function. - (ix86_rtx_costs): Handle SET. - -2012-05-08 Michael Matz - - * basic-block.h (struct rtl_bb_info): Remove visited member and - move head_ member to ... - (struct basic_block_def.basic_block_il_dependent): ... the new - member x, replacing but containing old member rtl. - (enum bb_flags): New BB_VISITED flag. - (BB_HEADER, BB_FOOTER): New macros. - - * jump.c (mark_all_labels): Adjust. - * cfgcleanup.c (try_optimize_cfg): Adjust. - * cfglayout.c (record_effective_endpoints): Adjust. - (relink_block_chain): Ditto (and don't fiddle with visited). - (fixup_reorder_chain): Adjust. - (fixup_fallthru_exit_predecessor): Ditto. - (cfg_layout_duplicate_bb): Ditto. - * combine.c (update_cfg_for_uncondjump): Adjust. - * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member. - (bb_visited_trace): New accessor. - (mark_bb_visited): Move in front. - (rotate_loop): Use bb_visited_trace. - (find_traces_1_round): Ditto. - (emit_barrier_after): Ditto. - (copy_bb): Ditto, and initialize visited on resize. - (reorder_basic_blocks): Initize visited member. - (duplicate_computed_gotos): Clear bb flags at start, use - BB_VISITED flags. - - * cfgrtl.c (try_redirect_by_replacing_jump): Adjust. - (rtl_verify_flow_info_1): Ditto. - (cfg_layout_split_block): Ditto. - (cfg_layout_delete_block): Ditto. - (cfg_layout_merge_blocks): Ditto. - (init_rtl_bb_info): Adjust and initialize il.x.head_ member. - -2012-05-08 Hans-Peter Nilsson - - PR target/53272 - * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32, - when a constant source operand matches an "I" constraint, the "no - CC0 change" applies to a register-destination only, not a - strict_low_part-destination. - -2012-05-08 Richard Guenther - - * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2 - to zero or to (X * CST1) & CST2' when CST1 has trailing zeros. - -2012-05-08 Georg-Johann Lay - - * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi. - - * doc/avr-mmcu.texi: New auto-generated file. - * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order - to document all valid -mmcu= arguments. - - * config/avr/avr.h (arch_info_s): New struct definition. - * config/avr/avr-devices.c (avr_texinfo): New variable. - * config/avr/gen-avr-mmcu-texi.c: New file. - * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi. - -2012-05-08 Dehao Chen - - * predict.c (find_qualified_ssa_name): New. - (find_ssa_name_in_expr): New. - (find_ssa_name_in_assign_stmt): New. - (is_comparison_with_loop_invariant_p): New. - (is_bound_expr_similar): New. - (predict_iv_comparison): New. - (predict_loops): Add heuristic for loop-nested branches that compare an - induction variable to a loop bound variable. - * predict.def (PRED_LOOP_IV_COMPARE): New macro. - -2012-05-08 Uros Bizjak - - * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and - TARGET_BDVER2 defines where appropriate. - -2012-05-07 Eric Botcazou - - * configure.ac (PLUGIN_LD): Rename into... - (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet. - * config.in: Regenerate. - * configure: Likewise. - * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX. - -2012-05-07 Eric Botcazou - - * tree-dfa.c (get_ref_base_and_extent) : Do the offset - computation using the precision of the index type. - * gimple-fold.c (fold_const_aggregate_ref_1) : Likewise. - (fold_array_ctor_reference): Do index computations in the index type. - -2012-05-07 Georg-Johann Lay - - * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed - down to plus_constant. - (expand_epilogue): Ditto. - -2012-05-07 Steven Bosscher - - * postreload.c (reload_cse_regs): Make static. - * reload.h (reload_cse_regs): Remove prototype. - -2012-05-07 Richard Henderson - - * config/alpha/alpha.md (clear_cache): New pattern. - -2012-05-07 Steven Bosscher - - PR middle-end/53245 - * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high - is folded to a type boundary value, verify that the resulting case - label is still a care range. - -2012-05-07 Uros Bizjak - - * config/i386/i386.md (ctz2): Emit rep;bsf - only for TARGET_GENERIC, when not optimizing for size. - (*ffs_1): Ditto. - -2012-05-07 Steven Bosscher - - * tree-cfg.c (verify_gimple_switch): Tighten checks. - -2012-05-07 Jakub Jelinek - - PR tree-optimization/53239 - * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF - of DECL_BY_REFERENCE RESULT_DECL to nonnull. - -2012-05-07 Richard Guenther - - PR tree-optimization/53195 - * tree-inline.c (setup_one_parameter): Properly add referenced - vars from the parameters new known value. - -2012-05-07 Steven Bosscher - - * config/m68k/m68k.c (m68k_sched_branch_type): Remove. - (sched_branch_type): Remove. - (m68k_sched_md_init_global): Don't allocate it. - (m68k_sched_md_finish_global): Don't free it. - * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype. - * config/m68k/m68k.md: Set the type of insns using - m68k_sched_branch_type to bcc directly. - -2012-05-07 Rainer Orth - - * config/sol2.c (solaris_override_options): New function. - * config/sol2-protos.h (solaris_override_options): Declare. - * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define. - -2012-05-07 Richard Guenther - - * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return - whether we failed to compute data dependences. - (loop_prefetch_arrays): Fail if we failed. - -2012-05-07 Uros Bizjak - Paolo Bonzini - - * config/i386/i386.md (ctz2): Emit rep;bsf even for !TARGET_BMI. - Emit bsf when optimizing for size. - (*ffs_1): Ditto. - -2012-05-07 Oleg Endo - - PR target/53250 - * config/sh/sh.c (sh_rtx_costs): Handle SET. - -2012-05-06 Uros Bizjak - - PR target/53227 - * config/i386/i386.md (swap): Rename from *swap. - (bswapdi2): Split from bswap2. Use nonnimediate_operand - predicate for operand 1. Force operand 1 to register for TARGET_BSWAP. - (bswapsi2): Ditto. - (*bswapdi2_doubleword): New insn pattern. - (*bswap2): Rename from *bswap2_1. - -2012-05-06 Richard Sandiford - - * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function. - (mips_set_reg_reg_cost): Likewise. - (mips_rtx_costs): Handle SET. - -2012-05-06 Richard Sandiford - - * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET. - (compute_costs): Likewise for the zero extension. Use set_rtx_cost - to compute the cost of moves. Set the mode of the target register. - -2012-05-05 Richard Sandiford - - * rtl.h (plus_constant, plus_constant_mode): Merge into a single - plus_constant function. - * explow.c (plus_constant, plus_constant_mode): Likewise. Assert - that the mode is sensible. - (use_anchored_address, round_push, allocate_dynamic_stack_space) - (probe_stack_range, anti_adjust_stack_and_probe): Update calls to - plus_constant. - - * alias.c (canon_rtx): Likewise. - (init_alias_analysis): Likewise. - * builtins.c (expand_builtin_return_addr) - (expand_builtin_setjmp_setup, expand_builtin_longjmp) - (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf) - (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr) - (expand_builtin_stpcpy): Likewise. - * calls.c (save_fixed_argument_area, restore_fixed_argument_area) - (compute_argument_addresses, internal_arg_pointer_based_exp) - (expand_call, emit_library_call_value_1): Likewise. - * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise. - * combine-stack-adj.c (try_apply_stack_adjustment): Likewise. - * combine.c (combine_simplify_rtx, force_to_mode): Likewise. - * cse.c (insert_const_anchor, find_reg_offset_for_const) - (use_related_value, fold_rtx): Likewise. - * cselib.c (cselib_subst_to_values): Likewise. - * dse.c (record_store, check_mem_read_rtx): Likewise. - * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise. - * emit-rtl.c (adjust_address_1): Likewise. - * except.c (sjlj_emit_function_enter) - (expand_builtin_extract_return_addr) - (expand_builtin_frob_return_addr): Likewise. - * expmed.c (expand_divmod): Likewise. - * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1) - (emit_move_resolve_push, push_block, emit_push_insn, store_expr) - (expand_expr_addr_expr_1, expand_expr_real_1): Likewise. - * function.c (assign_stack_local_1) - (instantiate_virtual_regs_in_rtx): Likewise. - * optabs.c (prepare_cmp_insn): Likewise. - * recog.c (offsettable_address_addr_space_p): Likewise. - * reload.c (find_reloads_address, form_sum) - (find_reloads_subreg_address): Likewise. - * reload1.c (init_reload, eliminate_regs_1) - (eliminate_regs_in_insn): Likewise. - * simplify-rtx.c (simplify_unary_operation_1) - (simplify_binary_operation_1, simplify_plus_minus): Likewise. - * var-tracking.c (compute_cfa_pointer, prepare_call_arguments) - (vt_add_function_parameter): Likewise. - - * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise. - * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise. - * config/alpha/alpha.c (alpha_legitimize_address_1) - (get_unaligned_address, alpha_expand_unaligned_load) - (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words) - (alpha_expand_unaligned_store_words, alpha_expand_block_clear) - (alpha_expand_builtin_establish_vms_condition_handler) - (alpha_setup_incoming_varargs, emit_frame_store_1) - (alpha_expand_prologue, alpha_expand_epilogue) - (alpha_use_linkage): Likewise. - * config/alpha/alpha.md: Likewise. - - * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address) - (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address) - (thumb_legitimize_address, arm_gen_load_multiple_1) - (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq) - (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight) - (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi) - (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push) - (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue) - (thumb1_emit_multi_reg_push, thumb1_expand_prologue) - (thumb_expand_movmemqi, arm_set_return_address) - (thumb_set_return_address): Likewise. - * config/arm/arm.md: Likewise. - - * config/avr/avr.c (avr_incoming_return_addr_rtx) - (avr_prologue_setup_frame, expand_epilogue) - (avr_const_address_lo16): Likewise. - - * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise. - * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg) - (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call) - (bfin_output_mi_thunk): Likewise. - - * config/c6x/c6x.c (c6x_initialize_trampoline) - (c6x_output_mi_thunk): Likewise. - - * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise. - * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise. - - * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx) - (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load) - (cris_emit_movem_store, cris_trampoline_init): Likewise. - * config/cris/cris.md: Likewise. - - * config/darwin.c (machopic_indirect_data_reference) - (machopic_legitimize_pic_address): Likewise. - - * config/epiphany/epiphany.c (epiphany_emit_save_restore) - (epiphany_expand_prologue, epiphany_expand_epilogue) - (epiphany_trampoline_init): Likewise. - * config/epiphany/epiphany.md: Likewise. - - * config/fr30/fr30.c (fr30_move_double): Likewise. - - * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue) - (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx) - (frv_index_memory, unspec_got_name, frv_find_base_term) - (frv_output_dwarf_dtprel): Likewise. - - * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx) - (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise. - - * config/i386/i386.h (RETURN_ADDR_RTX): Likewise. - * config/i386/i386.c (setup_incoming_varargs_64) - (setup_incoming_varargs_ms_64, choose_baseaddr) - (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe) - (ix86_emit_probe_stack_range, ix86_expand_prologue) - (ix86_emit_restore_reg_using_pop, ix86_emit_leave) - (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address) - (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem) - (ix86_static_chain, ix86_trampoline_init, x86_this_parameter) - (x86_output_mi_thunk): Likewise. - * config/i386/i386.md: Likewise. - - * config/ia64/ia64.c (ia64_expand_load_address) - (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode) - (do_spill, ia64_trampoline_init): Likewise. - - * config/iq2000/iq2000.c (iq2000_va_start) - (iq2000_emit_frame_related_store, iq2000_expand_prologue) - (iq2000_expand_eh_return, iq2000_setup_incoming_varargs) - (iq2000_print_operand, iq2000_legitimize_address): Likewise. - - * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise. - - * config/m32c/m32c.c (m32c_return_addr_rtx) - (m32c_expand_insv): Likewise. - - * config/m32r/m32r.c (m32r_setup_incoming_varargs) - (m32r_legitimize_pic_address, m32r_print_operand) - (m32r_print_operand_address): Likewise. - - * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise. - * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise. - (EH_RETURN_HANDLER_RTX): Likewise. - * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue) - (m68k_expand_epilogue, legitimize_pic_address) - (m68k_output_mi_thunk): Likewise. - * config/m68k/m68k.md: Likewise. - - * config/mcore/mcore.c (mcore_expand_prolog): Likewise. - (mcore_expand_epilog): Likewise. - * config/mcore/mcore.md: Likewise. - - * config/mep/mep.c (mep_allocate_initial_value) - (mep_expand_prologue, mep_expand_epilogue): Likewise. - - * config/microblaze/microblaze.c (double_memory_operand) - (microblaze_block_move_loop): Likewise. - - * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset) - (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop) - (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg) - (mips_expand_prologue, mips_epilogue_set_cfa) - (mips_expand_epilogue): Likewise. - * config/mips/mips.md: Likewise. - - * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx) - (mmix_expand_prologue, mmix_expand_epilogue): Likewise. - - * config/mn10300/mn10300.c (mn10300_gen_multiple_store) - (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise. - - * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise. - (EH_RETURN_HANDLER_RTX): Likewise. - * config/moxie/moxie.c (moxie_static_chain): Likewise. - - * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address) - (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg) - (pa_return_addr_rtx, hppa_builtin_saveregs) - (pa_trampoline_init): Likewise. - * config/pa/pa.md: Likewise. - - * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise. - - * config/picochip/picochip.c (picochip_static_chain): Likewise. - - * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise. - * config/rs6000/rs6000.c (rs6000_legitimize_address) - (setup_incoming_varargs, print_operand, rs6000_return_addr) - (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range) - (rs6000_emit_epilogue) - (rs6000_machopic_legitimize_pic_address): Likewise. - - * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise. - - * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise. - (DYNAMIC_CHAIN_ADDRESS): Likewise. - * config/s390/s390.c (s390_decompose_address, legitimize_pic_address) - (s390_delegitimize_address, print_operand, annotate_constant_pool_refs) - (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx) - (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue) - (s390_emit_epilogue, s390_function_profiler): Likewise. - * config/s390/s390.md: Likewise. - - * config/score/score.c (score_add_offset, score_prologue): Likewise. - - * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs) - (sh_output_mi_thunk): Likewise. - * config/sh/sh.md: Likewise. - - * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX) - (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise. - * config/sparc/sparc.c (sparc_legitimize_pic_address) - (sparc_emit_probe_stack_range, emit_save_or_restore_regs) - (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx) - (emit_and_preserve): Likewise. - * config/sparc/sparc.md: Likewise. - - * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise. - * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg) - (spu_setup_incoming_varargs, ea_load_store_inline) - (spu_expand_load): Likewise. - - * config/stormy16/stormy16.c (xstormy16_expand_prologue) - (combine_bnp): Likewise. - - * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise. - * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs) - (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise. - - * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise. - * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs) - (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise. - - * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise. - * config/v850/v850.md: Likewise. - - * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise. - (EH_RETURN_HANDLER_RTX): Likewise. - * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise. - * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue) - (print_operand_address, vax_trampoline_init): Likewise. - - * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr) - (xtensa_function_value_regno_p): Likewise. - -2012-05-04 Andrew Pinski - - * expr.c (get_def_for_expr_class): New function. - (convert_tree_comp_to_rtx): New function. - (expand_cond_expr_using_cmove): New function. - (expand_expr_real_2 ): Call - expand_cond_expr_using_cmove first and return if it succeeds. - Remove the check for HAVE_conditional_move since we should have - already converted it to a conditional move. - * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison - modes of DImode for 32bits and TImode. - -2012-05-04 Steven Bosscher - - PR other/29442 - * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions. - (print_md_ptr_loc, print_c_condition): Use them. - * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes. - * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name, - attr_file, dfa_file, latency_file): New global variables. - (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value, - write_upcase, write_indent, write_length_unit_log, write_test_expr, - write_attr_get, write_insn_cases, write_eligible_delay, - write_const_num_delay_slots): Accept FILE pointer and toss it around. - Update all callers. - (write_header, open_outfile, handle_arg): New funcions. - (make_automaton_attrs): Write prototypes as extern to the output - files. - (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file - names from the command line. Open the output files and write out - internal functions for DFA functions to dfa_file_name, insn latency - functions to latency_file_name, and everything else to attr_file. - * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o. - (BACKEND): Build libbackend first. - (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c. - (.PRECIOUS): Likewise. - (insn-dfatab.o): New rule. - (insn-latencytab.o): New rule. - (simple_rtl_generated_c): Do not include insn-attrtab.c. - (s-attrtab): New rule. - -2012-05-04 Steven Bosscher - - * rtl.def (ATTR_FLAG): Remove probability indicating flags. - * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely, - ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely. - * reorg.c (get_jump_flags): Do not set the removed flags. - - * doc/md.texi (attr_flag): Update for abovementioned changes. - -2012-05-04 Uros Bizjak - - PR target/53228 - * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE. - (TARGET_CMOV): Rename from TARGET_CMOVE. - (TARGET_CMOVE): New define. - * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV. - Do not set TARGET_CMOVE here. - -2012-05-04 Dodji Seketeli - - Enable -Wunused-local-typedefs when -Wall or -Wunused is on - * opts.c (finish_options): Activate -Wunused-local-typedefs if - -Wunused is activated. - * doc/invoke.texi: Update blurb of -Wunused-local-typedefs. - -2012-05-04 Andreas Krebbel - - * config/s390/s390.md (*movmem_short, *clrmem_short) - (*cmpmem_short): Move the mode check from the insn condition to - the match_scratch. - -2012-05-04 Ulrich Weigand - - PR tree-optimization/52633 - * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of - vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern. - (vect_recog_over_widening_pattern): Remove handling of code that was - already detected as over-widening pattern. Remove special handling - of "unsigned" cases. Instead, support general case of conversion - of the shift result to another type. - -2012-05-04 Ulrich Weigand - - * tree-vect-patterns.c (vect_single_imm_use): New function. - (vect_recog_widen_mult_pattern): Use it instead of open-coding loop. - (vect_recog_over_widening_pattern): Likewise. - (vect_recog_widen_shift_pattern): Likewise. - -2012-05-04 Ulrich Weigand - - * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function. - (vect_handle_widen_op_by_const): Use it instead of open-coding test. - (vect_recog_widen_mult_pattern): Likewise. - (vect_operation_fits_smaller_type): Likewise. - (vect_recog_over_widening_pattern): Likewise. - (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test. - -2012-05-04 Richard Guenther - - PR lto/50602 - * lto-wrapper.c (merge_and_complain): Complain about mismatches - of -freg-struct-return and -fpcc-struct-return. - (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return - from the input file options and ignore those from the link - command line. - -2012-05-04 Richard Guenther - - PR tree-optimization/53168 - * tree-ssa-pre.c (phi_translate_1): Only handle type-punned - memory reads when the result is a constant we can pun. - -2012-05-04 Richard Guenther - - * common.opt (flto-report): Do not mark as Optimization. - -2012-05-04 Eric Botcazou - - PR target/48496 - * recog.c (constrain_operands): If extra constraints are present, also - accept pseudo-registers with equivalent memory locations during reload. - -2012-05-04 Olivier Hainque - - * collect2.c (may_unlink_output_file): New global. - (maybe_unlink): Honor it. - * collect2.h: Add extern for it. - * tlink.c (do_tlink): Set it to true if the link succeeded. - -2012-05-04 Olivier Hainque - - * gcc.c (eval_spec_function): Finalize/restore the current string - obstack state as part of the context push/pop operations. - -2012-05-04 Bin Cheng - - PR rtl-optimization/52804 - * reload1.c (reload_reg_reaches_end_p): Check whether successor - reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register - of current one with type RELOAD_FOR_INPADDR_ADDRESS. - Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and - RELOAD_FOR_OUTADDR_ADDRESS. - -2012-05-04 Manuel López-Ibáñez - - PR c++/24985 - * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret - for macro expansion. - -2012-05-03 Manuel López-Ibáñez - - * flags.h (flag_permissive): Do not declare. - * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive - option specially. - * toplev.c (flag_permissive): Do not define. - * c-tree.h (system_header_p): Delete unused. - -2012-05-03 David S. Miller - - PR target/52684 - * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a - MEM directly into a libcall, mark it's MEM_EXPR as addressable. - (sparc_emit_float_lib_cmp): Likewise. - -2012-05-03 Michael Meissner - - PR target/53199 - * config/rs6000/rs6000.md (bswapdi splitters): If - -mavoid-indexed-addresses (or -mcpu=power6 which sets it by - default) is used, generate an alternate sequence that does not - depend on using indexed addressing. - -2012-05-03 Jason Merrill - - * gengtype.c (write_types): Fix warning message. - (write_local): Likewise. - -2012-05-02 Jason Merrill - - * dwarf2out.c (struct external_ref, build_local_stub): New. - (hash_external_ref, external_ref_eq, lookup_external_ref): New. - (optimize_external_refs, optimize_external_refs_1): New. - (change_AT_die_ref): New. - (clone_as_declaration): Add DW_AT_signature when cloning a declaration. - (build_abbrev_table): Take the external refs hashtable. - (output_comp_unit): Get it from optimize_external_refs and pass it in. - -2012-05-03 Jan Hubicka - - PR middle-end/53093 - * tree-emutls.c (new_emutls_decl): Fix handling of aliases. - -2012-05-03 Jan Hubicka - - PR middle-end/53106 - * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones. - -2012-05-03 Jason Merrill - - * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of - use_debug_types to discriminate the die_id union. - (print_die, assign_symbol_names, copy_decls_walk): Likewise. - (build_abbrev_table, output_die): Likewise. - (prune_unused_types_walk_attribs): Likewise. - (generate_type_signature, copy_declaration_context): Set it. - (remove_child_or_replace_with_skeleton): Set it. - (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't - check use_debug_types. - (dwarf2out_finish): Do break_out_includes after .debug_types. - -2012-05-03 Jason Merrill - - * dwarf2out.c (modified_type_die): Use scope_die_for. - (gen_type_die_with_usage, dwarf2out_finish): Likewise. - (uses_local_type_r, uses_local_type): New. - (scope_die_for): Keep a type that uses a local type in local scope. - Use get_context_die for namespace and type scope. - -2012-05-03 Jason Merrill - - * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the - pc thunk. - * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions. - (dwarf2out_finish): Likewise. - -2012-05-03 Martin Jambor - - * builtins.c (get_object_alignment_1): Return whether we can determine - the alignment or conservatively assume byte alignment. Return the - alignment by reference. Use get_pointer_alignment_1 for dereference - alignment. - (get_pointer_alignment_1): Return whether we can determine the - alignment or conservatively assume byte alignment. Return the - alignment by reference. Use get_ptr_info_alignment to get SSA name - alignment. - (get_object_alignment): Update call to get_object_alignment_1. - (get_object_or_type_alignment): Likewise, fall back to type alignment - only when it returned false. - (get_pointer_alignment): Update call to get_pointer_alignment_1. - * fold-const.c (get_pointer_modulus_and_residue): Update call to - get_object_alignment_1. - * ipa-prop.c (ipa_modify_call_arguments): Update call to - get_pointer_alignment_1. - * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type - of MEM_REF or TARGET_MEM_REF only when it returns false. - * tree-ssa-ccp.c (get_value_from_alignment): Update call to - get_object_alignment_1. - (ccp_finalize): Use set_ptr_info_alignment. - * tree.h (get_object_alignment_1): Update declaration. - (get_pointer_alignment_1): Likewise. - * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment. - (dump_gimple_stmt): Likewise. - * tree-flow.h (ptr_info_def): Updated comments of fields align and - misalign. - (get_ptr_info_alignment): Declared. - (mark_ptr_info_alignment_unknown): Likewise. - (set_ptr_info_alignment): Likewise. - (adjust_ptr_info_misalignment): Likewise. - * tree-ssa-address.c (copy_ref_info): Use new access functions to get - and set alignment of SSA names. - * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call - mark_ptr_info_alignment_unknown. - * tree-ssanames.c (get_ptr_info_alignment): New function. - (mark_ptr_info_alignment_unknown): Likewise. - (set_ptr_info_alignment): Likewise. - (adjust_ptr_info_misalignment): Likewise. - (get_ptr_info): Call mark_ptr_info_alignment_unknown. - * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): - Likewise. - (bump_vector_ptr): Likewise. - * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment. - (vectorizable_store): Likewise. - (vectorizable_load): Likewise. - -2012-05-03 Michael Matz - - * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move - in front of basic_block_def. - (struct basic_block_def): Make il.gimple the full struct, not a - pointer. - (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef. - - * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members. - * gimple-iterator.c (gimple_stmt_iterator): Don't special case - NULL il.gimple, which can't happen anymore. - * gimple.h (bb_seq): il.gimple can't be NULL. - (bb_seq_add): Ditto. - (set_bb_seq): Adjust. - (gsi_start_bb, gsi_last_bb): Tidy. - * lto-streamer-in.c (make_new_block): Don't zero members that - are zeroed already, don't allocate a gimple_bb_info. - * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info. - (remove_bb): Clear all il.gimple members. - (gimple_verify_flow_info): Adjust for flat il.gimple. - * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust. - - * coretypes.h (const_gimple_seq): Remove typedef. - * gimple.h (gimple_seq_first): Take gimple_seq. - (gimple_seq_first_stmt): Ditto. - (gimple_seq_last): Ditto. - (gimple_seq_last_stmt): Ditto. - (gimple_seq_empty_p): Ditto. - -2012-05-03 Richard Guenther - - * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping - operations. - (prune_clobbered_mems): Do it here. Do not uselessly sort expressions. - (compute_avail): Do not add possibly trapping operations to - EXP_GEN if they might not be executed in the block. - -2012-05-03 Uros Bizjak - - * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove. - -2012-05-03 Steven Bosscher - - * tree-switch-conversion.c (gen_inbound_check): Free post-dominance - information as early as possible. Update dominance info instead of - discarding it. - -2012-05-03 Richard Guenther - - * tree-ssa-pre.c (debug_bitmap_sets_for): New function. - (union_contains_value): Remove. - (vro_valid_in_sets): Likewise. - (op_valid_in_sets): New function. - (valid_in_sets): Use op_valid_in_sets. - (insert_into_preds_of_block): Move dumping ... - (do_regular_insertion): ... here. - (do_partial_partial_insertion): ... and here. Dump that - we've found a partial partial redundancy. - (insert): Dump the current insert iteration. - -2012-05-03 Jakub Jelinek - - PR plugins/53126 - * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env, - append program name to it and pass that as first argument - to make_relative_prefix. Always pass standard_libexec_prefix - as last argument to make_relative_prefix. If - make_relative_prefix returns NULL, fall back to - standard_libexec_prefix. - - PR debug/53174 - * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being - removed. - - PR target/53187 - * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class - mode, return that mode. - - PR target/53194 - * config/i386/i386-c.c (ix86_target_macros_internal): Don't - define __ATOMIC_HLE_* macros here. - (ix86_target_macros): But here, using cpp_define_formatted. - -2012-05-03 Richard Guenther - - PR tree-optimization/53144 - * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces): - Rename to ... - (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal - with SSA name values. - (vn_reference_lookup_3): Adjust callers. - -2012-05-03 Ganesh Gopalasubramanian - - * config/i386/driver-i386.c (host_detect_local_cpu): Reset - has_fma4 for AMD processors with both fma3 and fma4 support. - -2012-05-03 Kirill Yukhin - - PR target/53201 - * config/i386/driver-i386.c (host_detect_local_cpu): Add space to - "-mno-hle". - -2012-05-03 Michael Matz - - PR bootstrap/53197 - * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator. - (dse_enter_block): Properly iterate the whole sequence even - if the last statement was removed. - -2012-05-02 Steven Bosscher - - * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code, - unset flag_jump_tables. - * stmt.c (expand_case): Remove special flag_pic case conditional - on ASM_OUTPUT_ADDR_DIFF_ELT not being defined. - -2012-05-02 Ulrich Weigand - - * common/config/s390/s390-common.c (s390_option_optimization_table): - Enable -fsched-pressure using -fsched-pressure-algorithm=model by - default when optimizing. - -2012-05-02 Martin Jambor - - PR lto/52605 - * dwarf2out.c (dwarf2out_decl): Only lookup die representing context - of a variable when the contect is a function. - -2012-05-02 Michael Matz - - * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple. - * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove. - (const_gimple_seq_node): Remove. - (gimple_seq_node): Typedef as gimple. - (struct gimple_statement_base): Add next and prev members, - adjust all WORD markers in using structs. - (union gimple_statement_d): Link via gsbase.next field for GC and PCH. - (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last, - gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and - gimple are the same. - (gimple_seq_set_last, gimple_seq_set_first): Don't allocate - gimple_seq, adjust. - (gimple_init_singleton): New function. - (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust. - (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly. - (gsi_stmt): Adjust. - (gsi_stmt_ptr): Remove. - (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member. - - * gimple-iterator.c (update_bb_for_stmts): Take last parameter - again, adjust for above changes. - (update_call_edge_frequencies): Adjust for above changes. - (gsi_insert_seq_nodes_before): Rewrite for new data structure. - (gsi_insert_seq_nodes_after): Ditto. - (gsi_split_seq_after): Ditto. - (gsi_set_stmt): Ditto. - (gsi_split_seq_before): Ditto. - (gsi_remove): Ditto. - (gsi_insert_seq_before_without_update): Don't free sequence. - (gsi_insert_seq_after_without_update): Ditto. - (gsi_replace): Assert some more invariants. - (gsi_insert_before_without_update, gsi_insert_after_without_update): - Tidy. - (gsi_for_stmt): Don't search for stmt. - (gsi_insert_on_edge_immediate): Tidy. - - * gimple.c (gimple_alloc_k): Remove "sequences". - (gimple_seq_cache): Remove. - (gimple_alloc_stat): Make stmt a singleton sequence. - (gimple_seq_alloc, gimple_seq_free): Remove. - (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton. - (gimple_copy): Ditto. - * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt, - create iterator from correct sequence. - * tree-phinodes.c (make_phi_node): Make stmt a singleton. - -2012-05-02 Michael Matz - - * gimple.h (gimple_stmt_iterator ): Make it be pointer to - gimple_seq. - (gimple_seq_set_last, gimple_seq_set_first): Take pointer to - sequence, lazily allocate it. - (bb_seq_addr): New function. - (gsi_start_1): Rename from gsi_start, but take pointer to sequence. - (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument. - (gsi_none): New function. - (gsi_start_bb): Adjust. - (gsi_last_1): Rename from gsi_last, but take pointer to sequence. - (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument. - (gsi_last_bb): Adjust. - (gsi_seq): Adjust. - * tree-flow-inline.h (phi_nodes_ptr): New function. - - * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to - datastructure and interface change. - (gsi_insert_seq_before_without_update): Ditto. - (gsi_insert_seq_nodes_after): Ditto. - (gsi_insert_seq_after_without_update): Ditto. - (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc. - (gsi_split_seq_before): Ditto. - (gsi_start_phis): Adjust. - * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none. - (vect_transform_loop): Ditto. - * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq, - gimple_seq_copy): Don't use gimple_seq_alloc. - * gimplify.c (gimple_seq_add_stmt_without_update): Ditto. - (gimplify_seq_add_seq): Ditto. - * lto-streamer-in.c (make_new_block): Ditto. - * tree-cfg.c (create_bb): Ditto. - * tree-sra.c (initialize_parameter_reductions): Ditto. - -2012-05-02 Michael Matz - - * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last, - gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first, - gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq, - set_bb_seq): Move down to after gimple_statement_d definition. - -2012-05-02 Michael Matz - - * gimple-fold.c (gimplify_and_update_call_from_tree): Use - gsi_replace_with_seq, instead of inserting itself. - * gimple-iterator.c (gsi_replace_with_seq): New function. - * tree-ssa-forwprop.c (forward_propagate_comparison): Take - iterator instead of statement, advance it. - (ssa_forward_propagate_and_combine): Adjust call to above. - -2012-05-02 Michael Matz - - * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use - gimple_seq_alloc. - * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc. - * tree-nested.c (walk_gimple_omp_for): Ditto. - * trans-mem.c (lower_transaction): Ditto. - * tree-eh.c (do_return_redirection): Ditto. - (do_goto_redirection): Ditto. - (lower_try_finally_switch): Ditto. - * gimplify.c (gimplify_stmt): Ditto. - (gimplify_scan_omp_clauses): Ditto. - (gimplify_omp_for): Ditto. - (gimplify_function_tree): Ditto. - * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto. - * tree-mudflap.c (mf_decl_cache_locals): Ditto. - (mf_build_check_statement_for): Ditto. - (mx_register_decls): Ditto. - * graphite-sese-to-poly.c (remove_invariant_phi): Ditto, - and don't use itertors to append. - (insert_stmts): Ditto. - (insert_out_of_ssa_copy): Ditto. - (insert_out_of_ssa_copy_on_edge): Ditto. - -2012-05-02 Michael Matz - - * gimple.h (gimple_bind_body_ptr): New function. - (gimple_bind_body): Use it. - (gimple_catch_handler): Use gimple_catch_handler_ptr. - (gimple_eh_filter_failure_ptr): New function. - (gimple_eh_filter_failure): Use it. - (gimple_eh_else_n_body_ptr): New function. - (gimple_eh_else_n_body): Use it. - (gimple_eh_else_e_body_ptr): New function. - (gimple_eh_else_e_body): Use it. - (gimple_try_eval_ptr): New function. - (gimple_try_eval): Use it. - (gimple_try_cleanup_ptr): New function. - (gimple_try_cleanup): Use it. - (gimple_wce_cleanup_ptr): New function. - (gimple_wce_cleanup): Use it. - (gimple_omp_body_ptr): New function. - (gimple_omp_body): Use it. - (gimple_omp_for_pre_body_ptr): New function. - (gimple_omp_for_pre_body): Use it. - (gimple_transaction_body_ptr): New function. - (gimple_transaction_body): Use it. - (gsi_split_seq_before): Adjust to return nothing and take pointer - to sequence. - (gsi_set_stmt): Declare. - (gsi_replace_with_seq): Declare. - (walk_gimple_seq_mod): Declare. - * function.h (struct function ): Use typedef gimple_seq. - - * gimple-iterator.c (gsi_set_stmt): New function. - (gsi_split_seq_before): Return new sequence via pointer argument. - (gsi_replace): Use gsi_set_stmt. - - * tree-ssa-loop-im.c (move_computations_stmt): First remove - then insert stmt. - * tree-complex.c (update_complex_components_on_edge): Don't copy gsi. - * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place, - return new stmt. - (reserve_phi_args_for_new_edge): Change call to above, - use gsi_set_stmt. - - * omp-low.c (lower_omp): Change prototype to take pointer to sequence. - (lower_rec_input_clauses): Use gimple_seq_add_seq instead of - iterators. Adjust call to lower_omp. - (lower_lastprivate_clauses): Adjust call to lower_omp. - (lower_reduction_clauses): Ditto. - (expand_omp_taskreg): Nullify non-cfg body of child_fn. - (lower_omp_sections): Don't explicitely count sequence length, - nullify lowered bodies earlier, ensure stmts are part of only - one sequence, adjust call to lower_omp. - (lower_omp_single): Ensure stmts are part of only one sequence, - adjust call to lower_omp. - (lower_omp_master): Ditto. - (lower_omp_ordered): Ditto. - (lower_omp_critical): Ditto. - (lower_omp_for): Ditto. - (lower_omp_taskreg): Ditto, tidy. - (lower_omp_1): Adjust calls to lower_omp. - (execute_lower_omp): Ditto. - (lower_omp): Adjust to take pointer to sequence. - (diagnose_sb_2): Use walk_gimple_seq_mod. - (diagnose_omp_structured_block_errors): Ditto and set possibly - changed function body. - * gimple-low.c (lower_function_body): Set function body after - it stabilizes. - (lower_sequence): Adjust to take pointer to sequence. - (lower_omp_directive): Ensure stmt isn't put twice into the - sequence, adjust call to lower_sequence. - (lower_stmt): Adjust calls to lower_sequence. - (lower_gimple_bind): Ditto. - (gimple_try_catch_may_fallthru): Call gsi_start with lvalue. - * tree-nested.c (walk_body): Take pointer to sequence, use - walk_gimple_seq_mod. - (walk_function): Adjust call to walk_body, set possibly changed body. - (walk_gimple_omp_for): Adjust calls to walk_body. - (convert_nonlocal_omp_clauses): Ditto. - (convert_nonlocal_reference_stmt): Ditto. - (convert_local_omp_clauses): Ditto. - (convert_local_reference_stmt): Ditto. - (convert_tramp_reference_stmt): Ditto. - (convert_gimple_call): Ditto. - (convert_nl_goto_reference): Use local iterator copy. - * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq, - but taking pointer to sequence, ensure gsi_start is called with - callers lvalue. - (walk_gimple_seq): New wrapper around walk_gimple_seq_mod, - asserting that the sequence head didn't change. - (walk_gimple_stmt): Replace all calls to walk_gimple_seq with - walk_gimple_seq_mod. - * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod. - (execute_lower_tm): Ditto, and set possibly changed body. - * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence, - call gsi_start with that lvalue. - (replace_goto_queue_stmt_list): Ditto. - (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list. - (replace_goto_queue): Ditto. - (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1. - (lower_try_finally_onedest): Ditto. - (lower_try_finally_copy): Ditto. - (lower_try_finally_switch): Ditto. - (lower_try_finally): Ditto. - (lower_eh_filter): Ditto. - (lower_eh_must_not_throw): Ditto. - (lower_cleanup): Ditto. - (lower_eh_constructs_2): Ditto. - (lower_catch): Ditto, and ensure gsi_start is called with lvalue. - (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and - set possibly changed body. - (optimize_double_finally): Call gsi_start with lvalue. - - * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before. - (gimple_split_block): Ditto. - (gimple_merge_blocks): Use gsi_start_phis. - (move_stmt_r): Use walk_gimple_seq_mod. - * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb. - * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis. - (rebuild_cgraph_edges): Ditto. - (cgraph_rebuild_references): Ditto. - * ipa-prop.c (ipa_analyze_params_uses): Ditto. - * tree-inline.c (copy_phis_for_bb): Ditto. - * tree-ssa-dce.c: Ditto. - - * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p. - -2012-05-02 Kirill Yukhin - Andi Kleen - - * coretypes.h (MEMMODEL_MASK): New. - * builtins.c (get_memmodel): Add val. Call target.memmodel_check - and return new variable. - (expand_builtin_atomic_exchange): Mask memmodel values. - (expand_builtin_atomic_compare_exchange): Ditto. - (expand_builtin_atomic_load): Ditto. - (expand_builtin_atomic_store): Ditto. - (expand_builtin_atomic_clear): Ditto. - * doc/extend.texi: Mention port-dependent memory model flags. - * config/i386/cpuid.h (bit_HLE): New. - * config/i386/driver-i386.c (host_detect_local_cpu): Detect - HLE support. - * config/i386/i386-protos.h (ix86_generate_hle_prefix): New. - * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines. - (ix86_target_string)<-mhle>: New. - (ix86_valid_target_attribute_inner_p) : Ditto. - * config/i386/i386.c (ix86_target_string) : New. - (ix86_valid_target_attribute_inner_p) : Ditto. - (ix86_option_override_internal) : New switch, set it - enabled for generic, generic64 and core-avx2. - (ix86_print_operand): Generate HLE lock prefixes. - (ix86_memmodel_check): New. - (TARGET_MEMMODEL_CHECK): Ditto. - * config/i386/i386.h (OPTION_ISA_HLE): Ditto. - (IX86_HLE_ACQUIRE): Ditto. - (IX86_HLE_RELEASE): Ditto. - * config/i386/i386.h (ix86_generate_hle_prefix): Ditto. - * config/i386/i386.opt (mhle): Ditto. - * config/i386/sync.md(atomic_compare_and_swap): Pass - success model to instruction emitter. - (atomic_fetch_add): Ditto. - (atomic_exchange): Ditto. - (atomic_add): Ditto. - (atomic_sub): Ditto. - (atomic_): Ditto. - (*atomic_compare_and_swap_doubledi_pic): Ditto. - (atomic_compare_and_swap_single): Define and use argument - for success model. - (atomic_compare_and_swap_double): Ditto. - * configure.ac: Check if assembler support HLE prefixes. - * configure: Regenerate. - * config.in: Ditto. - -2012-05-02 Steven Bosscher - - PR middle-end/53153 - * gimplify.c (preprocess_case_label_vec_for_gimple): New function, - split out from ... - (gimplify_switch_expr): ... here. - * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype. - * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function - to clean up case labels with values outside the index type range. - (simplify_gimple_switch): Call it if something changed. - Remove strange and unnecessary assert. - -2012-05-02 Richard Guenther - - * fold-const.c (div_if_zero_remainder): sizetypes no longer - sign-extend. - (int_const_binop_1): New worker for int_const_binop with - overflowable parameter. Pass it through to force_fit_type_double. - (int_const_binop): Wrap around int_const_binop_1 with overflowable - equal to one. - (size_binop_loc): Call int_const_binop_1 with overflowable equal - to minus one, forcing overflow detection for even unsigned types. - (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing. - (fold_binary_loc): Call try_move_mult_to_index with signed offset. - * stor-layout.c (initialize_sizetypes): sizetypes no longer - sign-extend. - (layout_type): For zero-sized arrays ignore overflow on the - size calculations. - * tree-ssa-ccp.c (bit_value_unop_1): Likewise. - (bit_value_binop_1): Likewise. - * tree.c (double_int_to_tree): Likewise. - (double_int_fits_to_tree_p): Likewise. - (force_fit_type_double): Likewise. - (host_integerp): Likewise. - (int_fits_type_p): Likewise. - * varasm.c (output_constructor_regular_field): Sign-extend the - field-offset to cater for negative offsets produced by the Ada - frontend. - * omp-low.c (extract_omp_for_data): Convert the loop step to - signed for pointer adjustments. - -2012-05-02 Richard Guenther - - * tree.c (valid_constant_size_p): New function. - * tree.h (valid_constant_size_p): Declare. - * cfgexpand.c (expand_one_var): Adjust check for too large - variables by using valid_constant_size_p. - * varasm.c (assemble_variable): Likewise. - - * c-decl.c (grokdeclarator): Properly check for sizes that - cover more than half of the address-space. - -2012-05-02 Jakub Jelinek - - PR tree-optimization/53163 - * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore - return value from compute_all_dependences. - - PR rtl-optimization/53160 - * ree.c (combine_reaching_defs): Handle the case where cand->insn - has been modified by ree pass already. - -2012-05-01 Ian Lance Taylor - - PR c/37303 - * c-decl.c (build_compound_literal): Make the decl readonly if it - an array of a readonly type. - * gimplify.c (gimplify_compound_literal_expr): Add fallback - parameter. Change all callers. If the decl is not addressable - and is not an l-value, make it readonly. - -2012-05-01 Bernd Schmidt - - * ira.c (allocated_reg_info_size): New static variable. - (expand_reg_info): Manage it. Call - setup_preferred_alternate_classes_for_new_pseudos. - (ira): Don't do it here. Remove local allocated_reg_info_size, - set the global before calling find_moveable_pseudos. - (find_moveable_pseudos): Call expand_reg_info rather than - resize_reg_info. - -2012-05-01 Richard Henderson - - * common.opt (fsync-libcalls): New. - * doc/invoke.texi: Document it. - * optabs.c (init_sync_libfuncs): Honor it. - -2012-05-01 Kenneth Zadeck - Richard Sandiford - - PR rtl-optimization/52543 - * Makefile.in (lower-subreg.o, target-globals.o): Depend on - lower-subreg.h. - * lower-subreg.h: New file. - * target-globals.h (this_target_lower_subreg): Declare. - (target_globals): Add lower_subreg; - (restore_target_globals): Restore this_target_lower_subreg. - * target-globals.c: Include it. - (default_target_globals): Add default_target_lower_subreg. - (save_target_globals): Initialize target_lower_subreg. - * rtl.h (init_lower_subreg): Added declaration. - * toplev.c (backend_init_target): Call initializer for lower-subreg - pass. - * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros. - (default_target_lower_subreg): New variable. - (this_target_lower_subreg): Likewise. - (twice_word_mode, choices): New macros. - (shift_cost, compute_splitting_shift, compute_costs) - (init_lower_subreg): New functions. - (resolve_simple_move): Add speed_p argument. Check choices. - (find_pseudo_copy): Don't check the mode size here. - (resolve_simple_move): Assert the mode size. - (find_decomposable_shift_zext): Add speed_p argument and return - a bool. Check choices. - (resolve_shift_zext): Add comment. - (dump_shift_choices, dump_choices): New functions. - (decompose_multiword_subregs): Dump list of profitable - transformations. Add code to skip non profitable transformations. - Update calls to simple_move and find_decomposable_shift_zext. - -2012-05-01 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to... - (thumb1_unexpanded_epilogue): ...this. - * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to... - (thumb1_unexpanded_epilogue): ...this. - * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to... - (thumb1_unexpanded_epilogue): ...this. - -2012-05-01 Richard Earnshaw - - * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef - comparing enumeration values. Update comments. - -2012-05-01 Alan Modra - - PR target/53038 - * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr, - load_cr_save, add_crlr_cfa_restore): New functions. - (rs6000_restore_saved_cr): Rename to.. - (restore_saved_cr): ..this. Add cfa_restore notes for cr. - (rs6000_emit_epilogue): Use new functions. Adjust condition - for emitting lr and cr cfa_restore. Emit cfa_restores for fp - regs when using out-of-line restore only when shrink wrapping. - -2012-04-30 Uros Bizjak - - PR middle-end/53136 - * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple - calls to cgraph_node_name in xstrdup. - (ipa_make_edge_direct_to_target): Ditto. - * cgraph.c (dump_cgraph_node): Ditto. - * tree-sra.c (convert_callers_for_node): Ditto. - * lto-symtab.c (lto_cgraph_replace_node): Ditto. - * ipa-cp.c (perhaps_add_new_callers): Ditto. - * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto. - (cgraph_materialize_all_clones): Ditto. - * ipa-inline.c (report_inline_failed_reason): Ditto. - (want_early_inline_function_p): Ditto. - (edge_badness): Ditto. - (update_edge_key): Ditto. - (flatten_function): Ditto. - (ipa_inline): Ditto. - (inline_always_inline_functions): Ditto. - (early_inline_small_functions): Ditto. - -2012-04-30 Uros Bizjak - - PR target/53141 - * config/i386/i386.md (*umul3_1): Switch places of - constraints 0 and 1. - -012-04-30 Jan Hubicka - - * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c - (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c - (cgraph_add_to_same_comdat_group): Remove. - (cgraph_add_asm_node): Move to cgraphunit.c. - (cgraph_make_decl_local): Move to symtab.c - (cgraph_make_node_local_1): Update. - (cgraph_can_remove_if_no_direct_calls_and): Update. - (used_from_object_file_p): Update. - (resolution_used_from_other_file_p): Move to symtab.c - (cgraph_used_from_object_file_p): move to symtab.c - (verify_cgraph_node): Verify same comdat groups. - * cgraph.h (cgraph_asm_node): Rename to ... - (asm_node): ... this one. - (cgraph_asm_nodes): Rename to ... - (asm_nodes): ... this one. - (symtab_add_to_same_comdat_group): New function. - (symtab_dissolve_same_comdat_group_list): New function. - (symtab_used_from_object_file_p): Declare. - (symtab_make_decl_local): Declare. - (cgraph_add_to_same_comdat_group): Remove. - (cgraph_add_asm_node): Remove. - (cgraph_used_from_object_file_p, varpool_used_from_object_file_p): - Remove. - (cgraph_finalize_compilation_unit): Rename to ... - (finalize_compilation_unit): ... this one. - (cgraph_optimize): Rename to .... - (compile): ... this one. - (add_asm_node): Declare. - (fixup_same_cpp_alias_visibility): Declare. - (cgraph_make_decl_local): Remove. - (varpool_assemble_pending_decls): Rename to ... - (varpool_output_variables): ... this one. - (varpool_remove_unreferenced_decls): Remove. - * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups. - (preserve_function_body_p): Make static. - * toplev.c (compile_file): Update comments; update. - * cgraphunit.c: Update comments. - (cgraph_expand_all_functions): Rename to ... - (expand_all_functions): ... this one; update. - (cgraph_mark_functions_to_output): Rename to ... - (mark_functions_to_output): ... this one; cleanup. - (cgraph_output_pending_asms): Remove prototype. - (asm_nodes, asm_last_node): New static vars. - (cgraph_process_new_functions): Update. - (cgraph_reset_node): Cleanup; add comment. - (cgraph_add_new_function): Update. - (cgraph_output_pending_asms): Rename to ... - (output_asm_statements): ... this one. - (add_asm_node): New function. - (fixup_same_cpp_alias_visibility): New function based on code - in cgraph_analyze_function. - (cgraph_analyze_function): Use it. - (cgraph_order_sort): Update. - (cgraph_output_in_order): Update. - (cgraph_function_versioning): Update. - (cgraph_optimize): Rename to ... - (compile): ... this one; initialize streamer hooks here. - (cgraph_finalize_compilation_unit): Rename to ... - (finalize_compilation_unit): ... this one; do not initialize streamer - hook here. - * lto-streamer-out.c (lto_output_toplevel_asms): Update. - * dwarf2out.c: Update ocmment. - * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group. - * method.c (use_thunk): Likewise. - * semantics.c (maybe_add_lambda_conv_op): Likewise. - * decl2.c (maybe_emit_vtables): Likewise. - (cp_write_global_declarations): Use finalize_compilation_unit. - * parser.c (cp_parser_asm_definition): Use add_asm_node. - * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node - * c-decl.c (c_write_global_declarations): Use - finalize_compilation_unit. - * langhooks.c (write_global_declarations): Update. - * ipa.c (cgraph_externally_visible_p): Update. - (dissolve_same_comdat_group_list): Remove. - (function_and_variable_visibility): Update. - * symtab.c: Inlcude lto-streamer.h and rtl.h - (ld_plugin_symbol_resolution_names): New. - (symtab_add_to_same_comdat_group): New. - (symtab_dissolve_same_comdat_group_list): New. - (resolution_used_from_other_file_p): Move here from cgraph.c - (symtab_used_from_object_file_p): New. - (symtab_make_decl_local): New. - * passes.c (register_pass): Update comments. - * c-parser.c (c_parser_asm_definition): Update. - * varpool.c (varpool_analyze_node): Use - fixup_same_cpp_alias_visibility. - (varpool_remove_unreferenced_decls): Make static. - (varpool_assemble_pending_decls): Rename to ... - (varpool_output_variables): ... this one; call - varpool_remove_unreferenced_decls. - (varpool_used_from_object_file_p): Remove. - -2012-04-30 Marc Glisse - - PR c++/51033 - * c-typeck.c (build_array_ref): Call - convert_vector_to_pointer_for_subscript. - * doc/extend.texi (Vector Extensions): Subscripting not just for C. - -2012-04-30 Uros Bizjak - - * config/i386/i386.md (and3): Change runtime operand mode checks - to compile-time "mode == mode" checks. - (and splitter): Ditto. - -2012-04-30 Richard Henderson - - * config/arm/arm.md (UNSPEC_LL): New. - * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New. - (arm_load_exclusivedi): Use %H0. - -2012-04-30 Jason Merrill - - * dwarf2out.c (comdat_symbol_id): Add const. - (union die_symbol_or_type_node): Add const to die_symbol. - (output_die_symbol, output_die, output_comp_unit): Adjust. - -2012-04-30 Andrew Stubbs - - * config/arm/arm.md (negdi2): Use gen_negdi2_neon. - * config/arm/neon.md (negdi2_neon): New insn. - Also add splitters for core and NEON registers. - -2012-04-30 Andrew Stubbs - - * config/arm/arm.c (neon_valid_immediate): Allow const_int. - (arm_print_operand): Add 'x' format. - * config/arm/constraints.md (Dn): Allow const_int. - * config/arm/neon.md (neon_mov): Use VDX to allow DImode. - Use 'x' format to print constants. - * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int. - * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon - is enabled. - (movdi_vfp_cortexa8): Likewise. - -2012-04-30 Ian Bolton - Sameera Deshpande - Greta Yorsh - - * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration. - * config/arm/arm.c (ldm_stm_operation_p): New function. - * config/arm/predicates.md (load_multiple_operation): Update predicate. - (store_multiple_operation): Likewise. - - * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters. - * config/arm/arm.c (ldm_stm_operation_p): New parameters. - * config/arm/predicates.md (load_multiple_operation): Add arguments. - (store_multiple_operation): Likewise. - -2012-04-30 Uros Bizjak - - * config/i386/i386.md (and3): Expand masking operations with - 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX. - (and splitter): Split to DImode zero_extend RTX for DImode operand[0]. - -2012-04-30 Dodji Seketeli - - Add -Wvarargs option - * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an - argument for the various warning_at calls. - * docs/invoke.texi: Update the documentation. - -2012-04-30 Dodji Seketeli - - Switch -ftrack-macro-expansion=2 on by default. - * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2 - by default. - - Fix va_start related location - * builtins.c (fold_builtin_next_arg): Unwinds to the first - location in real source code. - - Make conversion warnings work on NULL with -ftrack-macro-expansion - * input.h (expansion_point_location_if_in_system_header): Declare - new function. - * input.c (expansion_point_location_if_in_system_header): Define it. - - Fix -Wuninitialized for -ftrack-macro-expansion - * tree-ssa.c (warn_uninit): Use the spelling location of the variable - declaration. Use linemap_location_before_p for source locations. - - Strip "" loc from displayed expansion context - * input.c (expand_location_1): When expanding to spelling location - in a context of a macro expansion, skip reserved system header - locations. Update comments. * tree-diagnostic.c - (maybe_unwind_expanded_macro_loc): Likewise. - - Make expand_location resolve to locus in main source file - * input.c (expand_location_1): New. Takes a parameter to choose - whether to resolve the location to spelling or expansion point. - Was factorized from ... - (expand_location): ... here. - (expand_location_to_spelling_point): New. Implemented in terms of - expand_location_1. - * diagnostic.c (diagnostic_build_prefix): Use the new - expand_location_to_spelling_point instead of expand_location. - - Fix PCH crash on GTYed pointer-to-scalar field of a struct - * gengtype.c (write_types_process_field): Force second argument of - the call to the PCH object hierarchy walker to be 'x'. - -2012-04-30 Eric Botcazou - - * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper - predicate to discriminate types. - -2012-04-30 Manuel López-Ibáñez - - * doc/invoke.texi (Wmissing-format-attribute): Document as an - alias of Wsuggest-attribute=format. - * c-typeck.c (convert_for_assignment): Replace - Wmissing-format-attribute with Wsuggest-attribute=format. - (digest_init): Likewise. - -2012-04-29 Manuel López-Ibáñez - - * opts.c (finish_options): Do not handle -Wmissing-noreturn here. - * common.opt (Wmissing-noreturn): Alias of - -Wsuggest-attribute=noreturn. - -2012-04-29 Hans-Peter Nilsson - - PR target/53156 - * config/cris/cris.md (andqu): New peephole2. - (andu): Tweak head comment. - -2012-04-28 Joern Rennecke - Steven Bosscher - Maxim Kuvyrkov - - PR tree-optimization/38785 - * common.opt (ftree-partial-pre): New option. - * doc/invoke.texi: Document it. - * opts.c (default_options_table): Initialize flag_tree_partial_pre. - * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will - benefit speed path. - (execute_pre): Use flag_tree_partial_pre. - -2012-04-27 John David Anglin - - PR target/52999 - * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels - in constant pool. - -2012-04-27 Ollie Wild - - * doc/invoke.texi (Wliteral-suffix): Document new option. - -2012-04-27 Tom Tromey - - * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name. - (dwarf_tag_name): Use get_DW_TAG_name. - (dwarf_attr_name): Use get_DW_AT_name. - (dwarf_form_name): Use get_DW_FORM_name. - * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name. - -2012-04-27 Paolo Bonzini - - * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose - arguments are -1 and 0, by negating the result of the conditional. - -2012-04-27 Paolo Bonzini - - PR target/53138 - * config/i386/i386.md (x86_movcc_0_m1_neg): Add clobber. - -2012-04-27 Richard Guenther - - * tree-flow.h (is_hidden_global_store): Remove. - * tree-ssa-sink.c (is_hidden_global_store): Likewise. - * tree-ssa-alias.h (ref_may_alias_global_p): Declare. - (stmt_may_clobber_global_p): Likewise. - * tree-ssa-alias.c (ref_may_alias_global_p): New function. - (stmt_may_clobber_global_p): Likewise. - * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call - stmt_may_clobber_global_p. - * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise. - -2012-04-27 Steven Bosscher - - * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right - place. - - * tree-switch-conversion.c (struct switch_conv_info): Add range_max, - reorganize some fields and update comments. Rename bit_test_uniq - and bit_test_count to uniq resp. count. Remove bit_test_bb. - (collect_switch_conv_info): New function, collects info about a - GIMPLE_SWITCH into a struct switch_conv_info. - (check_range): Simplify to use pre-recorded info. Fix think-o in - range-branch ratio check. - (check_process_case): Remove function. - (check_all_empty_except_final): New function, verifies that all - non-final basic blocks are empty. - (process_switch): Simplify to use pre-recorded info. Call - collect_switch_conv_info to do that. Assert that degenerate switch - statements have been cleaned up. - -2012-04-27 Marc Glisse - - PR middle-end/27139 - * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT. - -2012-04-25 Manuel López-Ibáñez - - PR c/53130 - * c-typeck.c (pop_init_level): Use %qD instead of %qT. - -2012-04-27 Tom de Vries - - PR tree-optimization/51879 - * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field. - * tree-ssa-sccvn.c (mark_use_processed): New function, factored out - of ... - (defs_to_varying): ... here. Don't set use_processed. - (visit_reference_op_call): Handle gimple_vdef. - Handle case that lhs is NULL_TREE. - (visit_use): Use mark_use_processed. Handle calls with side-effect - using visit_reference_op_call. - -2012-04-26 Richard Sandiford - - * sched-deps.c (fixup_sched_groups): Rename to... - (chain_to_prev_insn): ...this. - (chain_to_prev_insn_p): New function. - (deps_analyze_insn): Use it instead of SCHED_GROUP_P. - -2012-04-26 Richard Sandiford - - * sched-int.h (_haifa_insn_data): Move priority_status. - Add model_index. - (INSN_MODEL_INDEX): New macro. - * haifa-sched.c (insn_delay): New function. - (sched_regno_pressure_class): Update commentary. - (mark_regno_birth_or_death): Pass the liveness bitmap and - pressure array as arguments, instead of using curr_reg_live and - curr_reg_pressure. Only update the pressure if the bit in the - liveness set has changed. - (initiate_reg_pressure_info): Always trust the live-in set for - SCHED_PRESSURE_MODEL. - (initiate_bb_reg_pressure_info): Update call to - mark_regno_birth_or_death. - (dep_list_size): Take the list as argument. - (calculate_reg_deaths): New function, extracted from... - (setup_insn_reg_pressure_info): ...here. - (MODEL_BAR): New macro. - (model_pressure_data, model_insn_info, model_pressure_limit) - (model_pressure_group): New structures. - (model_schedule, model_worklist, model_insns, model_num_insns) - (model_curr_point, model_before_pressure, model_next_priority): - New variables. - (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE) - (MODEL_INSN_INFO, MODEL_INSN): New macros. - (model_index, model_update_limit_points_in_group): New functions. - (model_update_limit_points, model_last_use_except): Likewise. - (model_start_update_pressure, model_update_pressure): Likewise. - (model_recompute, model_spill_cost, model_excess_group_cost): Likewise. - (model_excess_cost, model_dump_pressure_points): Likewise. - (model_set_excess_costs): Likewise. - (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to - SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model - schedule as an alternative tie-breaker. Update the call to - dep_list_size. - (ready_sort): Call model_set_excess_costs. - (update_register_pressure): Update call to mark_regno_birth_or_death. - Rely on that function to check liveness rather than doing it here. - (model_classify_pressure, model_order_p, model_add_to_worklist_at) - (model_remove_from_worklist, model_add_to_worklist, model_promote_insn) - (model_add_to_schedule, model_analyze_insns, model_init_pressure_group) - (model_record_pressure, model_record_pressures): New functions. - (model_record_final_pressures, model_add_successors_to_worklist) - (model_promote_predecessors, model_choose_insn): Likewise. - (model_reset_queue_indices, model_dump_pressure_summary): Likewise. - (model_start_schedule, model_finalize_pressure_group): Likewise. - (model_end_schedule): Likewise. - (schedule_insn): Say when we're scheduling the next instruction - in the model schedule. - (schedule_insn): Handle SCHED_PRESSURE_MODEL. - (queue_to_ready): Do not add instructions that are - MAX_SCHED_READY_INSNS beyond the current point of the model schedule. - Always allow the next instruction in the model schedule to be added. - (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE - and delay for SCHED_PRESSURE_MODEL too. - (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to - SCHED_PRIORITY_MODEL, but also take the DFA into account. - (schedule_block): Call model_start_schedule and model_end_schedule. - Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL. - (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling - to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or - region_ref_regs. - (sched_finish): Update accordingly. - (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling - to SCHED_PRESSURE_MODEL. - (add_jump_dependencies): Update call to dep_list_size. - (haifa_finish_h_i_d): Fix leak of max_reg_pressure. - (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling - to SCHED_PRESSURE_MODEL. - * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't - allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL. - (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE - handling to SCHED_PRESSURE_MODEL. - -2012-04-26 Richard Sandiford - - * common.opt (fsched-pressure-algorithm=): New option. - * flag-types.h (sched_pressure_algorithm): New enum. - * sched-int.h (sched_pressure_p): Replace with... - (sched_pressure): ...this new variable. - * haifa-sched.c (sched_pressure_p): Replace with... - (sched_pressure): ...this new variable. - (sched_regno_pressure_class, rank_for_schedule, ready_sort) - (update_reg_and_insn_max_reg_pressure, schedule_insn) - (debug_ready_list, prune_ready_list, schedule_block, sched_init) - (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly. - * sched-deps.c (init_insn_reg_pressure_info): Likewise. - (sched_analyze_insn): Likewise. - * sched-rgn.c (schedule_region): Likewise. - * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise. - -2012-04-26 Bernd Schmidt - - PR middle-end/52997 - * ira.c (find_moveable_pseudos): Call resize_reg_info. - - PR middle-end/52940 - * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT. - * expr.c (convert_move): Honor unsignedp when extending partial int - modes. - * genmodes.c (complete_mode): Don't clear component field of partial - int modes. - (emit_mode_inner): Don't emit it however. - (calc_wider_mode): Partial int modes widen to their component. - -2012-04-26 David S. Miller - - * config/sparc/niagara4.md: New file. - * config/sparc/sparc.md: Include it. - * config/sparc/sparc.c (niagara4_costs): New processor costs. - (sparc_option_override): Use it. - (sparc_use_sched_lookahead): Return 2 for niagara4. - (sparc_issue_rate): Likewise. - - * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'. - (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack. - (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis, - fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul. - (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, - alignaddrldi_vis): Set type to gsr. - (pdist_vis, pdistn_vis): Set type to fgm_pdsit. - (fcmp_vis, cmask8_vis, - cmask16_vis, cmask32_vis, fchksm16_vis, - v3, fmean16_vis, - fp64_vis, 3, - fucmp8_vis): Set type to fga. - * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp. - * config/sparc/niagara.md: Likewise. - * config/sparc/niagara2.md: Likewise. - * config/sparc/ultra3.md: Likewise, and fix type matching for - us3_ialuX reservation. - -2012-04-26 Andreas Krebbel - - * reload.c (find_reloads): Change the loop nesting when trying an - alternative with swapped operands. - -2012-04-26 Manuel López-Ibáñez - - * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix - comment. Delete unused parameter first_exp_point_map. - (virt_loc_aware_diagnostic_finalizer): Update call. - -2012-04-26 Michael Hope - Richard Earnshaw - - * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define. - (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define. - (GLIBC_DYNAMIC_LINKER_DEFAULT): Define. - (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path. - -2012-04-25 Sriraman Tallam - - * doc/extend.texi: Document avx2 support. - * config/i386/i386.c (fold_builtin_cpu): Add avx2. - -2012-04-26 Hans-Peter Nilsson - - PR target/53120 - * config/cris/cris.md ("*andhi_lowpart_v32") - ("*andqi_lowpart_v32"): Change first input-only operand from - a (match_operand ...) to (match_dup 0). Drop alternatives with - const_int-matching constraints for redundancy. - ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop - three-operand alternative. - -2012-04-25 Jakub Jelinek - - PR target/53110 - * config/i386/i386.md (and3): For andq $0xffffffff, reg - instead expand it as zero extension. - -2012-04-25 H.J. Lu - - PR debug/52857 - * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM. - -2012-04-25 Jakub Jelinek - - * common.opt (flag_debug_types_section): Default to 0. - (dwarf_version): Default to 4. - (dwarf_record_gcc_switches): Default to 1. - (dwarf_strict): Default to 0. - * toplev.c (process_options): Don't handle dwarf_strict - or dwarf_version here. - * config/vxworks.c (vxworks_override_options): Don't - test whether dwarf_strict or dwarf_version are negative, - instead test !global_options_set.x_dwarf_*. - * config/darwin.c (darwin_override_options): Default to - dwarf_version 2. - * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches - and -fno-debug-types-section are now the default. - -2012-04-25 Jan Hubicka - - * cgraphunit.c: Update toplevel comment. - (tree_rest_of_compilation): Merge into cgraph_expand_function. - (cgraph_analyze_function): Make static. - (cgraph_decide_is_function_needed): Make static. - (cgraph_add_new_function): Use expand_function instead of - rest_of_compilation. - (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt, - verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph): - Move to cgraph.c - (cgraph_inline_p): Remove. - (cgraph_preserve_function_body_p): Move to ipa-inline-transform. - (init_cgraph): Add comment. - * cgraphbuild.c (record_reference, mark_address, mark_load, - mark_store): Do not call analyze_expr hook. - * cgraph.c: Update toplevel comment. - (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt, - verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph): - Move fere from cgraphunit.c - (cgraph_mark_force_output_node): Move to cgraph.h - * cgraph.h: Reorder so the comments match the function placement. - (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove. - (cgraph_mark_force_output_node): Move here from cgraph.c - * tree.c (free_lang_data): Do not clear analyze_expr hook. - * ipa-inline-transform.c (preserve_function_body_p): New function. - (inline_transform): Update. - * langhooks.c (lhd_callgraph_analyze_expr): Remove. - * langhooks.h (lang_hooks_for_callgraph): Remove. - (lang_hooks): Remove callgraph. - * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p. - * varpool.c: Remove out of date comment. - * langhooks-def.h (lhd_callgraph_analyze_expr): Remove. - (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove. - -2012-04-25 Jan Hubicka - - PR middle-end/53089 - * cgraphunit.c (referred_to_p): Move ahead in file to avoid - forward declaration. - (cgraph_finalize_function): Finalize them here. - * symtab.c (dump_symtab): Dump ctors and dtors. - -2012-04-25 Jakub Jelinek - - PR middle-end/52979 - * stor-layout.c (get_best_mode): Don't return mode with bitsize - larger than maxbits. Don't compute maxbits modulo align. - Also check that unit bytes long store at bitpos / unit * unit - doesn't affect bits beyond bitregion_end. - * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM - would not fit into bitregion_start ... bitregion_end + 1 bit region. - (store_split_bit_field): Decrease unit close to end of bitregion_end - if access is restricted in order to avoid mutual recursion. - - PR tree-optimization/53058 - * double-int.h (double_int_max_value, double_int_min_value): New - prototypes. - * double-int.c (double_int_max_value, double_int_min_value): New - functions. - * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR - or GT_EXPR with double_int_max_value instead of double_int_mask. - -2012-04-25 Richard Guenther - - * tree-vectorizer.h (vect_loop_versioning): Adjust prototype. - * tree-vect-loop.c (vect_transform_loop): Adjust. - * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record - the maximum number of iterations for the epilogue loop. - (vect_loop_versioning): Remove case re-using the peeled epilogue loop. - -2012-04-25 Jakub Jelinek - - PR c/52880 - * c-typeck.c (set_nonincremental_init, - set_nonincremental_init_from_string): Pass true instead of false - as IMPLICIT to add_pending_init. - -2012-04-25 Manuel López-Ibáñez - - * c-typeck.c (pop_init_level): Improve diagnostics. - -2012-04-25 Uros Bizjak - - * compare-elim.c (try_eliminate_compare): Also handle operands with - implicit extensions. - -2012-04-25 Alan Modra - - * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS, - V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG, - SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define. - (no_global_regs_above): Delete. - (no_global_regs): New function. - (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p - value for load multiple test. - (savres_routine_syms): Increase size. - (rs6000_savres_routine_name, rs6000_savres_routine_sym, - ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector - rather than a number of boolean flags. Update all callers. - (rs6000_savres_routine_name): Generate vector save/restore names. - (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl. - (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise. - (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline - and using_store_multiple. Expand uses. Don't always use r11 as - frame reg when needed for out-of-line saves. Set up initial offset - for out-of-line vector saves when buying stack frame. Handle pointer - reg setup for out-of-line fp save. Emit call to out-of-line vector - save function. Choose r11 or r12 for vrsave reg when available for - better scheduling. - (rs6000_output_function_prologue): Don't emit .extern for ELF. - (rs6000_emit_epilogue): Choose a better frame reg when restoring - from back-chain to suit out-of-line vector restore functions. Emit - call to out-of-line vector restore function. Adjust register used - for cr restore. Tweak pointer register setup for gpr restore. - * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account - FIXED_R13. - * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify. - (V_SAVE_INLINE): Define. - * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns. - -2012-04-25 Alan Modra - - * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow - out-of-line save/restore for large frames. Don't disable - out-of-line saves on ABI_AIX when using static chain reg. - (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not - clobber static chain reg, and tweak for out-of-line gpr saves - that use r1. - -2012-04-25 Alan Modra - - * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define. - (rs6000_emit_prologue): Use the above to catch register overlap. - -2012-04-25 Alan Modra - - * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward - decl. Move logic selecting update reg to callers. Update all callers. - (rs6000_emit_allocate_stack): Add copy_off param. - (emit_frame_save): Don't handle reg+reg addressing. - (ptr_regno_for_savres): New function, extracted from.. - (rs6000_emit_savres_rtx): ..here. Add lr_offset param. - (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it. - Set frame_reg_rtx to r11 whenever r11 is needed, and merge - frame offset adjustment for out-of-line save with copy from sp. - Simplify condition controlling whether cr is saved early or - late. Use ptr_regno_for_savres to verify correct reg is set - up for out-of-line saves. Pass the actual pointer reg used to - rs6000_emit_savres_rtx so rtl matches insns in out-of-line - function. Rearrange spe vars so code is similar to that - elsewhere in this function. Don't update frame_off when spe - save code will restore r11. Use emit_frame_save for spe and - gpr saves. Consolidate darwin out-of-line gpr setup with that - for other abis. Don't assume frame_offset is zero and frame - reg is sp when setting up altivec reg saves, and calculate - exact offset requirement. - (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy - spe restore code. Consolidate darwin out-of-line gpr setup - with that for other abis. - -2012-04-25 Alan Modra - - * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a - REG_FRAME_RELATED_EXPR note when the instruction exactly matches - the replacement. - (emit_frame_save): Delete frame_ptr param. Rename total_size to - frame_reg_to_sp. - (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related - and emit_frame_save calls. Cope with possibly missing note. - -2012-04-24 Sriraman Tallam - - * config/i386/i386.c (build_processor_model_struct): New function. - (make_var_decl): New function. - (fold_builtin_cpu): New function. - (ix86_fold_builtin): New function. - (make_cpu_type_builtin): New function. - (ix86_init_platform_type_builtins): New function. - (ix86_expand_builtin): Expand new builtins by folding them. - (ix86_init_builtins): Make new builtins to detect CPU type. - (TARGET_FOLD_BUILTIN): New macro. - (IX86_BUILTIN_CPU_INIT): New enum value. - (IX86_BUILTIN_CPU_IS): New enum value. - (IX86_BUILTIN_CPU_SUPPORTS): New enum value. - * config/i386/i386-builtin-types.def: New function type. - * doc/extend.texi: Document builtins. - -2012-04-24 Olivier Hainque - - * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2. - * toplev.c (process_options): Default to dwarf_version 2. - * config/vxworks.c (vxworks_override_options): Default to strict-dwarf - and dwarf_version 2. - -2012-04-24 Manuel López-Ibáñez - - * tree-pretty-print.h (default_tree_printer): Do not declare. - * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and - intl.h. - (default_tree_diagnostic_starter): Make static. - (default_tree_printer): Move to here. Make static. - (tree_diagnostics_defaults): New. - * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare. - * tree.c (free_lang_data): Use tree_diagnostics_defaults. - * toplev.c: Do not include tree-pass.h. - (default_tree_printer): Move from here. - (general_init): Use tree_diagnostics_defaults. - -2012-04-24 Chao-ying Fu - - * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file. - (mips*-*-linux*): Append mips/linux-common.h to tm_file. - * config/mips/gnu-user.h - (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly. - (GNU_USER_TARGET_LINK_SPEC): New define. - (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. - (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly. - (GNU_USER_TARGET_MATHFILE_SPEC): New define. - (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and - GNU_USER_TARGET_ENDFILE_SPEC. - * config/mips/gnu-user64.h (LIB_SPEC): Remove. - (GNU_USER_TARGET_LINK_SPEC): New define. - (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. - * config/mips/linux-common.h: New file. - -2012-04-24 Bill Schmidt - - PR target/47197 - * config/rs6000/rs6000-c.c (fully_fold_convert): New function. - (altivec_build_resolved_builtin): Call fully_fold_convert. - -2012-04-24 Georg-Johann Lay - - PR target/53065 - * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define. - -2012-04-24 Richard Guenther - - PR tree-optimization/53085 - * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant - stores. - -2012-04-24 Richard Guenther - - * tree-if-conv.c (main_tree_if_conversion): Move bb under - ENABLE_CHECKING. - -2012-04-24 Jim Meyering - - * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing - absence of an define_enum call. - -2012-04-24 Richard Guenther - - * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If - the epilogue loop is not re-used as unvectorized version - record the its maximum number of iterations. - -2012-04-24 Andrew Pinski - - * tree-ssa-forwprop.c (simplify_bitwise_binary): - Don't directly use def1/def2. - -2012-04-24 Richard Guenther - - PR tree-optimization/53098 - * tree-vect-loop.c (vect_analyze_loop_operations): Fixup - comparison sign. - -2012-04-24 Andrew Pinski - - PR tree-opt/33512 - * tree-ssa-forwprop.c (defcodefor_name): New function. - (simplify_bitwise_binary): Use defcodefor_name instead of manually - Simplify "( X | Y) & X" to X and "( X & Y) | X" to X. - Simplify "(~X | Y) & X" to "X & Y" and - "(~X & Y) | X" to "X | Y". - -2012-04-24 Andreas Krebbel - - * recog.c (insn_invalid_p): Add IN_GROUP parameter and use - validate_change to add clobbers if IN_GROUP is nonzero. - (verify_changes): Call insn_invalid_p with IN_GROUP set to true. - * recog.h (insn_invalid_p): Add IN_GROUP parameter to function - prototype. - * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP - set to false. - * config/s390/s390.c (insn_invalid_p): Likewise. - -2012-04-24 Jakub Jelinek - - PR middle-end/53084 - * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF. - (output_addressed_constants): Likewise. - - PR middle-end/52999 - * varasm.c (get_section): Don't ICE for section conflicts with - built-in section kinds. - -2012-04-23 DJ Delorie - - * config/s390/s390.h (LINK_SPEC): Remove, no longer needed. - (LIBSTDCXX): Change to CPP2. - -2012-04-23 H.J. Lu - - PR bootstrap/52878 - * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for - extra_masks. - -2012-04-23 Uros Bizjak - - * config/i386/i386.md (*add_2): Add r/r/0 alternative. - (*addsi_2_zext): Ditto. - (*add_3): Ditto. - (*addsi_3_zext): Ditto. - (*add_5): Ditto. - -2012-04-23 Andrew Pinski - - * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 - (C & B) to (A OP0) & B. - -2012-04-23 Martin Jambor - - * expr.c (expand_expr_real_1): Remove setting parent's alias set for - temporaries created for a bitfield (reverting revision 122014). - -2012-04-23 Richard Guenther - - * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify - the condition using is_gimple_condexpr and avoid the not necessary - boolification. - (set_prologue_iterations): Likewise. - (vect_loop_versioning): Likewise. - -2012-04-23 Richard Guenther - - PR tree-optimization/53070 - * tree-if-conv.c (combine_blocks): Free predicates in all blocks. - (main_tree_if_conversion): Verify we succeeded in that. - -2012-04-23 Jan Hubicka - - * lto-symtab.c (lto_cgraph_replace_node): Do not call - mark_reahcable_node. - * cgraph.c (cgraph_remove_node): Do not clear reachable. - (cgraph_mark_reachable_node): Remove. - (cgraph_mark_force_output_node): Do not set reachable. - (dump_cgraph_node): Do not dump reachable. - (cgraph_create_virtual_clone): Do not set reachable. - * cgraph.h (cgraph_node): Remove reachable flag. - (varpool_node): Remove reachable flag. - (cgraph_mark_if_needed): Remove. - (cgraph_mark_reachable_node): Remove. - * tree-emutls.c (ipa_lower_emutls): Do not check reachable. - * cgraphunit.c (cgraph_finalize_function): Do not mark node as - reachable. - (cgraph_add_new_function): Likewise. - (cgraph_mark_if_needed): Remove. - (cgraph_analyze_function): Do not set target as reachable. - (process_function_and_variable_attributes): Do not care about - dllexport. - (cgraph_analyze_functions): Do not set reachable flags. - (cgraph_mark_functions_to_output): Do not check reachability. - (cgraph_copy_node_for_versioning): Do not set reachable flag. - (dbxout_expand_expr): Update. - * c-decl.c (merge_decls): Do not track changed externs. - * ipa.c: Include pointer-set.h - (enqueue_cgraph_node): Use reachable pointer set. - (process_references): Likewise. - (cgraph_remove_unreachable_nodes): Likewise. - (whole_program_function_and_variable_visibility): Do not recompute - reachable. - * trans-mem.c (ipa_tm_execute): Do not check reachable flag. - -2012-04-23 Georg-Johann Lay - - * doc/extend.texi (AVR Named Address Spaces): Fix typos. - -2012-04-23 Richard Guenther - - PR c/53060 - * c-typeck.c (build_binary_op): Fix typo. - -2012-04-23 Jakub Jelinek - - PR tree-optimizations/52891 - * tree-vect-patterns.c (adjust_bool_pattern): Use - build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE, - but with non-standard precision. - -2012-04-22 Jan Hubicka - - * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL - tree refs. - -2012-04-22 Jan Hubicka - - * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags. - * cgraphbuild.c (record_reference, record_type_list, mark_address, - mark_load, mark_store): Do not mark varpool nodes as needed. - * cgraph.c (cgraph_new_nodes): Remove. - (cgraph_create_function_alias): Do not mark nodes as reachable. - (cgraph_add_thunk): Likewise. - (cgraph_mark_reachable_node): Do not manage the queue. - * cgraph.h (cgraph_node): Remove next_needed. - (varpool_nodes_queue): Remove next_needed and prev_needed. - (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove. - (cgraph_new_nodes): Declare. - (x_varpool_nodes_queue, varpool_nodes_queue); Remove. - (varpool_analyze_pending_decls): Remove. - (varpool_analyze_node): New. - (varpool_mark_needed_node): Remove. - (varpool_first_variable, varpool_next_variable): New inlines. - (varpool_first_static_initializer, varpool_next_static_initializer): - Update. - (FOR_EACH_STATIC_VARIABLE): Remove unused walker. - (varpool_first_defined_variable): New inline. - (varpool_next_defined_variable): New inline - (FOR_EACH_VARIABLE): Reimplement. - (FOR_EACH_DEFINED_VARIABLE): Reimplement. - * toplev.c (wrapup_global_declaration_2): Use analyzed instead of - needed flag. - * cgraphunit.c (cgraph_new_nodes): Declare here. - (enqueue_node): New function. - (cgraph_process_new_functions): update for new - node set; when constructing cgraph enqueue node for processing. - (cgraph_add_new_function): Use new node set. - (process_function_and_variable_attributes): Do not set varpool needed - flags. - (referred_to_p): New function. - (varpool_finalize_decl): Move here from varpool.c; enqueue needed node - when varpool is in construction. - (cgraph_analyze_functions): Rewrite. - (cgraph_expand_all_functions): Update. - (cgraph_output_in_order): Do not analyze pending decls; do not set - needed flags. - (cgraph_optimize): Do not analyze pending decls. - * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects - in other partition; do not mark node as needed. - * dwarf2out.c (reference_to_unused): Use analyzed flag. - (premark_types_used_by_global_vars_helper): Likewise. - * ipa.c (process_references): Do not call varpool_mark_needed_node. - (cgraph_remove_unreachable_nodes): Do not rely on varpool and - cgrpah queues. - (function_and_variable_visibility): Do not mark node as needed. - (whole_program_function_and_variable_visibility): Likewise. - * Makefile.in (gt-varpool.h): No longer needed. - * passes.c (execute_one_pass, execute_ipa_pass_list): Update. - (ipa_write_summaries): Do not use needed flag. - * varpool.c: Do not include gt-varpool.h - (x_varpool_nodes_queue, x_varpool_last_needed_node, - x_varpool_last_needed_node, x_varpool_first_unanalyzed_node, - x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue): - Remove. - (varpool_remove_node): Do not update the lists. - (dump_varpool_node): Do not dump needed flag. - (varpool_enqueue_needed_node): Remove. - (varpool_mark_needed_node): Remove. - (varpool_reset_queue): Remove. - (varpool_finalize_decl): Move to cgraphunit.c - (varpool_analyze_node): New functions based on former - varpool_analyze_pending_decls. - (varpool_analyze_pending_decls): Remove. - (varpool_assemble_decl): Do not update the lists. - (enqueue_node): New function. - (varpool_remove_unreferenced_decls): Rewrite. - (varpool_empty_needed_queue): Remove. - (add_new_static_var): Do not mark node as needed. - (varpool_create_variable_alias): Handle expansion state - creation. - * except.c (output_ttype): Do not mark node as needed. - * varasm.c (mark_decl_referenced): Do not use mark_needed_node. - * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars): - Likewise. - * tree-switch-conversion.c (build_one_array): Likewise. - -2012-04-22 Manuel López-Ibáñez - - PR c/44774 - * doc/invoke.texi (pedantic): Rename to Wpedantic. - * common.opt (Wpedantic): New. - (pedantic): Alias Wpedantic. - * diagnostic.c (warning_at): Likewise. - * c-decl.c (diagnose_mismatched_decls): Likewise. - (build_array_declarator): Likewise. - (mark_forward_parm_decls): - (check_bitfield_type_and_width): Likewise. - (grokdeclarator): Likewise. - (grokfield): Likewise. - (finish_struct): Likewise. - (build_enumerator): Likewise. - (store_parm_decls_oldstyle): Likewise. - (declspecs_add_qual): Likewise. - (declspecs_add_type): Likewise. - (finish_declspecs): Likewise. - * c-typeck.c (composite_type): Likewise. - (comp_target_types): Likewise. - (build_array_ref): Likewise. - (pointer_diff): Likewise. - (build_unary_op): Likewise. - (build_conditional_expr): Likewise. - (build_c_cast): Likewise. - (convert_for_assignment): Likewise. - (maybe_warn_string_init): Likewise. - (digest_init): Likewise. - (pop_init_level): Likewise. - (set_init_index): Likewise. - (c_finish_goto_label): Likewise. - (c_finish_return): Likewise. - (do_case): Likewise. - (build_binary_op): Likewise. - * c-parser.c (static): Likewise. - (c_parser_external_declaration): Likewise. - (c_parser_declaration_or_fndef): Likewise. - (c_parser_static_assert_declaration_no_se): Likewise. - (c_parser_enum_specifier): Likewise. - (c_parser_struct_or_union_specifier): Likewise. - (c_parser_struct_declaration): Likewise. - (c_parser_alignas_specifier): Likewise. - (c_parser_braced_init): Likewise. - (c_parser_initelt): Likewise. - (c_parser_compound_statement_nostart): Likewise. - (c_parser_conditional_expression): Likewise. - (c_parser_alignof_expression): Likewise. - (c_parser_postfix_expression): Likewise. - (c_parser_postfix_expression_after_paren_): Likewise. - (c_parser_objc_class_instance_variables): Likewise. - (c_parser_objc_method_definition): Likewise. - (c_parser_objc_methodprotolist): Likewise. - -2012-04-22 Ian Lance Taylor - - * godump.c (go_output_typedef): Dump size of structs. - -2012-04-22 Razya Ladelsky - - Correcting transform_to_exit_first_loop + fix to PR46886 - * tree-parloops.c (transform_to_exit_first_loop): Remove - setting of number of iterations according to the loop pattern. - Duplicate from entry to exit->src instead of loop->latch. - (pallelize_loops): Remove the condition preventing do-while loops. - * tree-cfg.c (bool bb_in_region_p): New. - (gimple_duplicate_sese_tail): Adjust duplication of the the subloops. - Adjust redirection of the duplicated iteration. - -2012-04-21 Richard Sandiford - - PR bootstrap/53021 - * rtl.def (ADDRESS): Use "i" rather than "w". - * rtl.h (find_base_term): Delete. - (may_be_sp_based_p): Declare. - * rtl.c (rtx_code_size): Remove ADDRESS special case. - * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP) - (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to... - * alias.c: ...here. - (find_base_term): Make static. - (may_be_sp_based_p): New function. - * dse.c (record_store): Use it. - * store-motion.c (store_killed_in_insn): Likewise. - -2012-04-21 Richard Sandiford - - * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case. - -2012-04-21 Manuel López-Ibáñez - - PR 35441 - * c-typeck.c (inform_declaration): New. - (build_function_call_vec): Do not pretty-print - expressions when caret is enabled. - (convert_arguments): Use inform_declaration. - -2012-04-20 Jim Meyering - - * genmodes.c (make_complex_modes): Don't truncate a mode name of - length 7 or more when prepending a "C". Suggested by Richard Guenther. - -2012-04-20 Bill Schmidt - - PR rtl-optimization/44214 - * fold-const.c (exact_inverse): New function. - (fold_binary_loc): Fold vector and complex division by constant into - multiply by recripocal with flag_reciprocal_math; fold vector division - by constant into multiply by reciprocal with exact inverse. - -2012-04-20 Jan Hubicka - - * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of - force flags. - * cgraph.c (cgraph_add_thunk): Use mark_reachable_node. - (cgraph_remove_node): Update. - (cgraph_mark_needed_node): Remove. - (cgraph_mark_force_output_node): New. - (dump_cgraph_node): Do not dump needed flag. - (cgraph_node_cannot_be_local_p_1): Update. - (cgraph_can_remove_if_no_direct_calls_and_refs): Update. - * cgraph.h (symtab_node_base): Add force_output flag. - (cgraph_node): Remove needed flag. - (varpool_node): Remove force_output flag. - (cgraph_mark_needed_node): Remove. - (cgraph_mark_force_output_node): New. - (cgraph_only_called_directly_or_aliased_p, - varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update. - * ipa-cp.c (ipcp_generate_summary): Remove out of date assert. - * cgraphunit.c (cgraph_decide_is_function_needed): rewrite. - (cgraph_add_new_function): Update. - (cgraph_mark_if_needed): Update. - (verify_cgraph_node): Update. - (cgraph_analyze_function): Alias target is reachable. - (process_function_and_variable_attributes): Update: externally_visible - flag makes function reachable. - (cgraph_analyze_functions): Update dumping. - * lto-cgraph.c (lto_output_node, lto_output_varpool_node, - input_overwrite_node, input_varpool_node): Update streaming. - * lto-streamer-out.c (produce_symtab): Use force_output. - * ipa.c (process_references): Weakrefs must be processed. - (cgraph_remove_unreachable_nodes): Likewise; update for new - force_output flag. - (varpool_externally_visible_p): Weakrefs are externally visible - even if they are not. - (function_and_variable_visibility): Update; when processing alias - pair force the targets to be output. - (whole_program_function_and_variable_visility): Use - mark_reachable_node. - * trans-mem.c (ipa_tm_mark_needed_node): Remove - (ipa_tm_mark_force_output_node): New function. - (ipa_tm_create_version_alias, ipa_tm_create_version): Update. - * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about - aliases. - * varasm.c (mark_decl_referenced): Update. - (find_decl_and_mark_needed): Remove. - (find_decl): New function. - (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark - alias targets as needed. - (dump_tm_clone_pairs): Update. - * tree-inline.c (copy_bb): Update check. - * symtab.c (dump_symtab_base): Dump force_output. - * tree-ssa-structalias.c (ipa_pta_execute): Use force_output. - * passes.c (execute_todo): Fix dumping. - * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update. - (varpool_analyze_pending_decls): Alias target is reachable. - (varpool_create_variable_alias): Finalize weakrefs. - -2012-04-20 Jakub Jelinek - - PR bootstrap/53021 - * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP, - UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define. - * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_* - macros instead of constants. - * dse.c (record_store): Check for SP ADDRESS by comparing - XWINT to UNIQUE_BASE_VALUE_SP instead of expecting - XEXP to be stack_pointer_rtx. - -2012-04-20 Richard Guenther - - * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use - update_call_from_tree when propagating into a call. - -2012-04-20 Alan Modra - - * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting. - (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename - sp_offset to frame_off. Move world save code earlier. - -2012-04-20 Richard Guenther - - PR tree-optimization/53050 - * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): - Do only one transform on COND_EXPRs at the same time. - -2012-04-19 Jan Hubicka - - * symtab.c (dump_symtab_base): Revert accidental checkin. - -2012-04-20 Alan Modra - - PR target/53040 - * config/rs6000/rs6000.c (rs6000_savres_strategy): When using - static chain, set REST_INLINE_FPRS too. - -2012-04-20 Thomas Schwinge - - * tree-dump.c (dequeue_and_dump) : Dump the three child - nodes. - -2012-04-20 Richard Guenther - - * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize - loops that can never run more often than the vectorization factor. - -2012-04-19 Jan Hubicka - - * symtab.c (dump_symtab_base): Fix dumping of asm lists. - -2012-04-19 David Edelsohn - - * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or". - -2012-04-19 Jim Meyering - - * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy. - We verified above that the string(including trailing NUL) fits in buf, - so just use memcpy. - -2012-04-19 Richard Guenther - - * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER - for dumping DECL_SECTION_NAME. - -2012-04-19 Michael Matz - - PR middle-end/52977 - * tree.h (VECTOR_CST_NELTS): Use part number of types again. - (struct tree_vector): Adjust GTY length. - * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS. - - * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter - members. - (walk_type, ): Handle case where our - caller emitted the length calulation already. - (walk_type, ): Emit length calculations - before handling any of the fields for structs. - -2012-04-19 Richard Guenther - - PR tree-optimization/53031 - * tree-vrp.c (adjust_range_with_scev): Revert back to - using max_loop_iterations. - -2012-04-19 Michael Matz - - * diagnostic.c (emit_diagnostic): Move va_end call after user - of the va_list. - (warning, warning_at, pedwarn, permerror): Ditto. - -2012-04-19 Richard Guenther - - * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound - array access. - -2012-04-19 Georg-Johann Lay - - PR target/53033 - * config/avr/avr.c (avr_out_load_psi): Fix assembler template for - the case *(X+const). - -2012-04-19 Ramana Radhakrishnan - - * config/arm/sync.md (sync_optab): Change ior attribute to "or". - -2012-04-19 Manuel López-Ibáñez - - PR c/52283/37985 - * stmt.c (warn_if_unused_value): Skip NOP_EXPR. - * convert.c (convert_to_integer): Don't set TREE_NO_WARNING. - -2012-04-19 Richard Guenther - - PR rtl-optimization/44688 - * loop-iv.c (determine_max_iter): Only return max_iter. - (iv_number_of_iterations): Also use the recorded loop bound - on the maximum number of iterations. - * loop-unroll.c (decide_unroll_runtime_iterations): Use - max_iter to avoid unrolling loops that do not roll. - (decide_unroll_stupid): Likewise. - -2012-04-18 Steven Bosscher - - * targhooks.c (default_case_values_threshold): Fix code style nit. - - * stmt.c (add_case_node, expand_case): Move logic to remove/reduce - case range and type folding from here... - * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE - type, as documented in tree.def. - -2012-04-18 Jan Hubicka - - * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base): - Declare. - * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify - cgraph hash and same comdat groups. - (cgraph_optimize): Verify symbol table. - * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table. - (dissolve_same_comdat_group_list): Work on symtab nodes. - (function_and_variable_visibility): Dissolve variable same comdat group - lists, too. - * symtab.c: Include timevar.h - (verify_symtab_base, verify_symtab_node, verify_symtab): New functions. - -2012-04-18 Steven Bosscher - - * tree-switch-conversion.c (info): Remove global pass info. - (check_range, check_process_case, check_final_bb, create_temp_arrays, - free_temp_arrays, gather_default_values, build_constructors, - array_value_type, build_one_array, build_arrays, gen_def_assigns, - fix_phi_nodes, gen_inbound_check): Pass info around from ... - (process_switch): ... here. Unify message format. Return a const - char pointer to the failure reason message. - (do_switchconv): Unify message format. Update process_switch usage. - - * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands. - * tree-cfg.c (edge_to_cases): Fix documentation. - -2012-04-18 Uros Bizjak - - * config/alpha/sync.md (fetchop_name): Change ior attribute to "or". - -2012-04-18 Bill Schmidt - - PR tree-optimization/52976 - * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete. - (possibly_move_powi): New function. - (rewrite_expr_tree): Call possibly_move_powi. - (rewrite_expr_tree_parallel): Likewise. - (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to - call add_to_ops_vec instead. - -2012-04-18 Bill Schmidt - - PR tree-optimization/52976 - * tree-ssa-reassoc.c (stmt_is_power_of_op): New function. - (decrement_power): Likewise. - (propagate_op_to_single_use): Likewise. - (zero_one_operation): Handle __builtin_pow* calls in linearized - expression trees; factor logic into propagate_op_to_single_use. - (undistribute_ops_list): Allow operands with repeat counts > 1. - -2012-04-18 Richard Guenther - - PR tree-optimization/44688 - * cfgloop.h (record_niter_bound): Declare. - * tree-ssa-loop-niter.c (record_niter_bound): Export. - Update the estimation with the upper bound here... - (estimate_numbers_of_iterations_loop): ... instead of here. - Do not forcefully reset a recorded upper bound. - * tree-vect-loop-manip.c (vect_do_peeling_for_alignment): - Record the maximum number of loop iterations of the prologue loop. - -2012-04-18 Jan Hubicka - - * lto-symtab.c (lto_cgraph_replace_node): Update. - * cgraphbuild.c (record_reference, record_type_list, - record_eh_tables, mark_address, mark_load, mark_store): Update. - * cgraph.c (cgraph_same_body_alias, dump_cgraph_node, - cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases): - Update. - * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove. - (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update. - * reload.c: Fix typo in comment. - * rtlanal.c: Likewise. - * tree-emultls.c (gen_emutls_addr): Update. - * ipa-reference.c (analyze_function): Update. - * cgraphunit.c (cgraph_analyze_function, - cgraph_process_same_body_aliases, assemble_thunks_and_aliases): - Update. - * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types. - (ipa_remove_reference): Likewise. - (ipa_remove_all_refering): Rename to ... - (ipa_remove_all_referring): ... this one; update. - (ipa_dump_references): Update. - (ipa_dump_referring): Update. - (ipa_clone_references): Update. - (ipa_clone_refering): Rename to ... - (ipa_clone_referring): ... this one; update. - (ipa_ref_cannot_lead_to_return): Update. - (ipa_ref_has_aliases_p): Update. - * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New - forward typedefs. - (ipa_ref_type): Remove. - (ipa_ref_ptr_u): Remove. - (ipa_ref): Remove referencing, refered, refered_index, refering_type - and refered_type; add referring, referred and referred_index. - (ipa_ref_list): Rename refering to referring. - (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring, - ipa_clone_references, ipa_clone_referring): Update prototypes. - * lto-cgraph.c (referenced_from_other_partition_p): Update. - (lto_output_ref): Update. - (add_references): Update. - (input_varpool_node): Update. - (input_refs): Update. - * ipa-ref-inline.h (ipa_ref_node): Update. - (ipa_ref_varpool_node): Update. - (ipa_ref_referring_node): Update. - (ipa_ref_referring_varpool_node): Update. - (ipa_ref_referring_ref_list): Update. - (ipa_ref_referred_ref_list): Update. - (ipa_ref_list_first_referring): Update. - (ipa_empty_ref_list): Update. - (ipa_ref_list_refering_iterate): Rename to ... - (ipa_ref_list_referring_iterate): ... this one. - * cse.c: Update comment. - * ipa-utils.c (ipa_reverse_postorder): Update. - * tree-ssa-alias.c: Update. - * ipa-inline.c (reset_edge_caches): Update. - (update_caller_keys): Update. - * ipa-inline.h: Update comments. - * jump.c: Update comment. - * alias.c: Likewise. - * ipa.c (process_references): Update. - (cgraph_remove_unreachable_nodes): Likewise. - (ipa_discover_readonly_nonaddressable_var): Likewise. - (cgraph_address_taken_from_non_vtable_p): Likewise. - * trans-mem.c (ipa_tm_execute): Update. - * simplify-rtx.c: Fix comment. - * rtl.c: Fix comment. - * symtab.c (symtab_unregister_node): Update. - * varpool.c (dump_varpool_node): Update. - (varpool_analyze_pending_decls): Update. - (assemble_aliases): Update. - (varpool_for_node_and_aliases): Update. - -2012-04-18 Richard Guenther - - * cfgloop.h (estimate_numbers_of_iterations_loop): Remove - use_undefined_p parameter. - * tree-flow.h (estimate_numbers_of_iterations): Likewise. - * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): - Likewise. - (estimate_numbers_of_iterations): Likewise. - (estimated_loop_iterations): Adjust. - (max_loop_iterations): Likewise. - (scev_probably_wraps_p): Likewise. - * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise. - * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions, - not max_loop_iterations. - (execute_vrp): Remove explicit number of iterations estimation. - -2012-04-18 Enkovich Ilya - - * config/i386/linux-common.h: New. - - * config.gcc: Add i386/linux-common.h before - all i386/linux.h and i386/linux64.h usages. - - * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New. - (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. - * config/i386/gnu-user64.h: Likewise. - - * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New. - (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC. - (GNU_USER_TARGET_MATHFILE_SPEC): New. - (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC. - -2012-04-18 Jan Hubicka - - * cgraph.c (cgraph_node_name): Remove. - (dump_cgraph_node): Use dump_symtab_base; reformat. - * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab, - debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base): - Declare. - (cgraph_node_name, varpool_node_name): Remove. - (cgraph_node_asm_name, varpool_node_asm_name, - cgraph_node_name, varpool_node_name): New. - * tree-pass.h (TODO_dump_cgraph): Rename to ... - (TODO_dump_symtab): ... this one. - * ipa-cp (pass_ipa_cp): Update. - * ia-reference.c (generate_summary, read_write_all_from_decl, - propagate, ipa_reference_read_optimization_summary): Update. - * cgraphunit.c (cgraph_analyze_functions): Update. - (cgraph_optimize): Update. - * ipa-ref.c (ipa_dump_references): Update. - (ipa_dump_refering): Update. - * ipa-inline.c (pass_ipa_inline): Update. - * matrix-reorg.c (pass_ipa_matrix_reorg): Update. - * ipa.c (pass_ipa_function_visibility, - pass_ipa_whole_program_visibility): Update. - * tree-sra.c (pass_early_ipa_sra): Update. - * symtab.c: Include langhooks.h - (symtab_node_asm_name): New. - (symtab_node_name): New. - (symtab_type_names): New static var. - (dump_symtab_base): New. - (dump_symtab_node, dump_symtab): New. - (debug_symtab_node, debug_symtab): New. - * tree-ssa-structalias.c: Dump symbol table. - * pases.c (execute_todo): Handle TODO_dump_symtab instead - of TODO_dump_cgraph. - * varpoo.c (varpool_node_name): Remove. - (dump_varpool_node): Use dump_symtab_base; reformat. - -2012-04-18 Manuel López-Ibáñez - - * doc/invoke.texi (Language Independent Options): @item should be - before @opindex. - -2012-04-17 Richard Sandiford - - PR bootstrap/53021 - * rtl.c (rtx_code_size): Handle ADDRESS. - -2012-04-17 Tom de Vries - - * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p - is not a STMT_LIST. - -2012-04-17 Uros Bizjak - - PR target/53020 - * config/i386/sync.md (atomic_): Rename to - atomic_. - -2012-04-17 Richard Sandiford - - * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT. - * alias.c (reg_base_value): Expand and update comment. - (arg_base_value): New variable. - (unique_id): Move up file. - (unique_base_value, unique_base_value_p, known_base_value_p): New. - (find_base_value): Use arg_base_value and known_base_value_p. - (record_set): Document REG_NOALIAS handling. Use unique_base_value. - (find_base_term): Use known_base_value_p. - (base_alias_check): Use unique_base_value_p. - (init_alias_target): Initialize arg_base_value. Use unique_base_value. - (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases. - -2012-04-17 Pat Haugen - - * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode. - -2012-04-17 Michael Matz - - PR tree-optimization/18437 - * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member. - (STMT_VINFO_STRIDE_LOAD_P): New accessor. - (vect_check_strided_load): Declare. - * tree-vect-data-refs.c (vect_check_strided_load): New function. - (vect_analyze_data_refs): Use it to accept strided loads. - * tree-vect-stmts.c (vectorizable_load): Ditto and handle them. - -2012-04-17 Richard Guenther - - PR middle-end/53011 - * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard - loops when redirecting an entry or latch edge. - -2012-04-17 Bernd Schmidt - - * sel-sched.c (sel_global_init): Revert previous change. - -2012-04-17 Richard Guenther - - * tree-flow.h (array_at_struct_end_p): Move declaration ... - * tree.h (array_at_struct_end_p): ... here. - * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ... - * expr.c (array_at_struct_end_p): ... here. Rewrite. - -2012-04-17 Steven Bosscher - - * stmt.c (cost_table_, use_cost_table, cost_table_initialize, - COST_TABLE): Remove. - (estimate_case_costs): Remove. - (expand_case): Do not call estimate_case_costs - to set use_cost_table. - (balance_case_nodes): Do not use use_cost_table. - -2012-04-16 Jan Hubicka - - * cgraph.c (cgraph_hash, assembler_name_hash): Remove. - (hash_node, eq_node): Remove. - (cgraph_create_node): Do not handle hashtable. - (cgraph_get_node): Remove. - (cgraph_insert_node_to_hashtable): Remove. - (hash_node_by_assembler_name): Remove. - (eq_assembler_name): Remove. - (cgraph_node_for_asm): Rewrite. - (cgraph_find_replacement_node): Break out from ... - (cgraph_remove_node): ... here; do not maintain hashtables. - (change_decl_assembler_name): Remove. - (cgraph_clone_node): Do not maintain hashtables. - * cgraph.h (const_symtab_node): New typedef. - (cgraph_insert_node_to_hashtable): Remove. - (symtab_get_node, symtab_node_for_asm, - symtab_insert_node_to_hashtable): Declare. - (cgraph_find_replacement_node): Declare. - (cgraph_get_node, varpool_get_node): Turn into inlines. - (cgraph, varpool): Work sanely on NULL pointers. - (FOR_EACH_SYMBOL): New walker. - * ipa-inline-transform.c (save_inline_function_body): Use - symtab_insert_node_to_hashtable. - * symtab.c: Include ggc.h and diagnostics.h - (symtab_hash, assembler_name_hash): New static vars; - (hash_node, eq_node, hash_node_by_assembler_name, - eq_assembler_name, insert_to_assembler_name_hash, - unlink_from_assembler_name_hash): New. - (symtab_register_node): Update hashtables. - (symtab_insert_node_to_hashtable): New. - (symtab_unregister_node): Update hashtables. - (symtab_get_node): New. - (symtab_node_for_asm): New. - (change_decl_assembler_name): New. - * Makefile.in (symtab.o): Needs GTY. - * varpool.c (varpool_hash): Remove. - (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove. - (varpool_node): Rewrite using varpool_get_node. - (varpool_remove_node): DO not maintain hashtables. - (varpool_node_for_asm): Rewrite. - -2012-04-16 Sandra Loosemore - - * doc/invoke.texi: Copy-edit to put verbs in the present tense - when describing the current behavior of GCC. - -2012-04-16 Richard Sandiford - - * genemit.c (gen_exp): Remove ADDRESS handling. - * genoutput.c (scan_operands): Likewise. - * genpeep.c (match_rtx): Likewise. - * genrecog.c (add_to_sequence): Likewise. - -2012-04-16 David Edelsohn - - * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status. - -2012-04-16 Martin Jambor - - * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for - bit-fields. - -2012-04-16 Ulrich Weigand - - PR target/51819 - * config/arm/arm.c (arm_print_operand): Fix invalid alignment - hints for 'A' operand types. - -2012-04-16 Jan Hubicka - - * cgraph.h (symtab_node_base): Add next and previous pointers. - (cgraph_node): Remove next and preivous pointers. - (varpool_node): Likewise; remove next/previous GTY marker; - it is not type safe. - (symtab_node_def): Update GTY marker - (x_cgraph_nodes, cgraph_nodes): Remove. - (symtab_nodes): New function. - (cgraph_order): Rename to ... - (symtab_order): ... this one. - (symtab_register_node, symtab_unregister_node, symtab_remove_node): - Declare. - (x_varpool_nodes, varpool_nodes): Remove. - (FOR_EACH_STATIC_VARIABLE): Update. - (symtab_function_p, symtab_variable_p): New function. - (FOR_EACH_VARIABLE): Update. - (varpool_first_variable, varpool_next_variable): New functions. - (FOR_EACH_VARIABLE): Update. - (cgraph_first_defined_function): Update. - (cgraph_next_defined_function, cgraph_next_defined_function): Update. - (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update. - (cgraph_first_function, cgraph_next_function): New. - (FOR_EACH_FUNCTION): Update. - (cgraph_first_function_with_gimple_body, - cgraph_next_function_with_gimple_body): Update. - * symtab.c: New file. - * cgraph.c: Update copyright dates. - (x_cgraph_nodes, cgraph_order): Remove. - (NEXT_FREE_NODE): Update. - (SET_NEXT_FREE_NODE): New. - (cgraph_create_node_1): Remove common code. - (cgraph_create_node): Remove common code; call symtab_register_node. - (cgraph_remove_node): Remove common code; call symtab_unregister-node. - (cgraph_add_asm_node): Update. - (cgraph_clone_node): Register new node. - * cgraphunit.c (process_function_and_variable_attributes): Update. - (cgraph_analyze_functions): Update. - (cgraph_analyze_functions): Update. - (cgraph_output_in_order): Update. - * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1): - Update. - * ipa-inline.c (recursive_inlining): Update. - * lto-streamer-in.c (lto_input_toplevel_asms): Update. - * ipa.c (cgraph_remove_unreachable_nodes): Update. - * Makefile.in: Add symtab.o - * varpool.c (x_varpool_nodes): Remove - (varpool_node): Remove common code; call symtab_register_node. - (varpool_remove_node): Remove common code; call symtab_unregister_node. - -2012-04-16 Richard Guenther - - PR middle-end/52977 - * tree.h (VECTOR_CST_NELTS): Adjust. - (struct tree_vector): Add explicit length field. - (make_vector_stat): Declare. - (make_vector): Define. - * tree.c (make_vector_stat): New function. - (build_vector_stat): Use it. - * tree-streamer-in.c (streamer_alloc_tree): Likewise. - -2012-04-16 Bill Schmidt - - PR tree-optimization/52976 - * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function. - (undistribute_ops_list): Ops with repeat counts aren't eligible for - undistribution. - (attempt_builtin_powi): Call add_to_ops_vec_max_rank. - -2012-04-16 Jan Hubicka - - * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION): - New macros. - * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH - walkers to walk cgraph and varpool. - * cgraph.c (cgraph_node_for_asm): Likewise. - (dump_cgraph): Likewise. - * value-prof.c (init_node_map): Likewise. - * tree.c (free_lang_data_in_cgraph): Likewise. - * tree-emutls.c: (ipa_lower_emutls): Likewise. - * ipa-reference.c (generate_summary, propagate): Likewise. - * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases, - cgraph_mark_functions_to_output, cgraph_output_in_order, - output_weakrefs, cgraph_materialize_all_clones, - cgraph_optimize): Likewise. - * lto-cgraph.c (merge_profile_summaries): Likewise. - (input_cgraph): Likewise. - * ipa-pure-const.c (generate_summary): Likewise. - (propagate): Likwise. - * ipa-utils.c (ipa_reduced_postorder): Likewise. - (ipa_free_postorder_info): Likewise. - (ipa_reverse_postorder): Likewise. - * ipa-inline.c (ipa_inline): Likewise. - * matrix-reorg.c (find_matrices_decl): Likewise. - (matrix_reorg): Likewise. - * tree-vectorizer.c (increase_alignment): Likewise. - * ipa.c (cgraph_remove_unreachable_nodes): Likewise. - (function_and_variable_visibility): Likewise. - (whole_program_function_and_variable_visibility): Likewise. - (ipa_cdtor_merge): Likewise. - * trans-mem.c (ipa_tm_execute): Likewise. - * ipa-inline-analysis.c (dump_inline_summaries): Likewise. - * ipa-prop.c (ipa_print_all_jump_functions): Likewise. - (ipa_print_all_params): Likewise. - (ipa_update_after_lto_read): Likewise. - * tree-profie.c (tree_profiling): Likewise. - * tree-ssa-structalias.c (ipa_pta_execute): Likewise. - * passes.c (dump_passes): Likewise. - (do_per_function): Likewise. - (ipa_write_summaries): Likewise. - * varpool.c (dump_varpool): Likewise. - (varpool_node_for_asm): Likewise. - (varpool_assemble_pending_decls): Likewise. - -2012-04-16 Richard Guenther - - PR tree-optimization/52975 - * tree-if-conv.c (predicate_bbs): Do not simplify inverted - condition but always mark it with TRUTH_NOT_EXPR. - -2012-04-16 Richard Guenther - - PR tree-optimization/52975 - * tree-ssa-forwprop.c (combine_cond_exprs): New function. - (ssa_forward_propagate_and_combine): Call it for COND_EXPRs - and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition. - * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF. - -2012-04-14 Uros Bizjak - - * config/i386/sse.md (ssse3_plusminus): New code iterator. - (avx2_phwv16hi3): Macroize insn from - avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator. - (ssse3_phwv8hi3): Macroize insn from - ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator. - (ssse3_phwv4hi3): Macroize insn from - ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator. - - (avx2_phdv8si3): Macroize insn from - avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator. - (ssse3_phdv4si3): Macroize insn from - ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator. - (ssse3_phdv2si3): Macroize insn from - ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator. - - (xop_plus): New code iterator. - (macs): New code attribute. - (macds): Ditto. - (xop_p): Macroize insn from - xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode - iterator. - (xop_pdql): Macroize insn from xop_pmacs{,s}dql using - xop_plus code iterator. - (xop_pdqh): Macroize insn from xop_pmacs{,s}dqh using - xop_plus code iterator. - (xop_pwd): Macroize insn from xop_pmacs{,s}wd using - xop_plus code iterator. - (xop_pwd): Macroize insn from xop_pmadcs{,s}wd using - xop_plus code iterator. - - (xop_phaddbw): Macroize insn from xop_phadd{,u}bw usign - any_extend code iterator. - (xop_phaddbd): Macroize insn from xop_phadd{,u}bd usign - any_extend code iterator. - (xop_phaddbq): Macroize insn from xop_phadd{,u}bq usign - any_extend code iterator. - (xop_phaddwd): Macroize insn from xop_phadd{,u}wd usign - any_extend code iterator. - (xop_phaddwq): Macroize insn from xop_phadd{,u}wq usign - any_extend code iterator. - (xop_phadddq): Macroize insn from xop_phadd{,u}dq usign - any_extend code iterator. - -2012-04-14 Tom de Vries - - * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by - call to delete_insn. Remove code to reorder BASIC_BLOCK note and - DELETED_LABEL note, and move it to ... - * cfgrtl.c (delete_insn): ... here. Change return type to void. - (delete_insn_and_edges): Likewise. - (delete_insn_chain): Handle new return type of delete_insn. Delete - chain backwards rather than forwards. - * rtl.h (delete_insn, delete_insn_and_edges): Change return type to - void. - * cfglayout.c (fixup_reorder_chain): Delete unused label. - -2012-04-14 Jan Hubicka - - * cgraph.h: Update copyrights; - (symtab_node): Turn to union typedef. - (symtab_node_base): New structure. - (symtab_type): Add SYMTAB_SYMBOL tag. - (cgraph_node): Annotate some pinters with nested_ptr. - (varpool_node): Likewise. - (cgraph_local_info): Remove lto_file_data - and externally_visible. - (cgraph_node): Remove decl; same_comdat_group list; - aux; ref_list; order; address_taken; reachable_from_other_parittion, - in_other_partition; resolution. - (varpool_node): Remove decl; same_comdat_group; - ref_list; lto_file_data; aux; order; resolution; externally_visible; - used_from_other_partition; in_other_partition. - (symtab_node_def): New union. - (cgraph, varpool): Update. - (varpool_first_static_initializer, varpool_next_static_initializer, - cgraph_only_called_directly_or_aliased_p, - varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs, - varpool_all_refs_explicit_p, cgraph_alias_aliased_node, - varpool_alias_aliased_node, cgraph_edge_recursive_p): Update - field references. - * cgraph.c: Likewise. - (cgraph_hash, assembler_name_hash): Turn into symtab_node. - * cgraphbuild.c: Likewise. - * lto-symtab.c: Likewise. - * c-gimplify.c: Likewise. - * value-prof.c: Likewise. - * tree.c: Likewise. - * ipa-cp.c: Likewise. - * tree-emutls.c: Likewise. - * ipa-inline-transform.c: Likwise. - * ipa-reference.c: Likewise. - * cgraphunit.c: Likewise. - * ipa-ref.c: Likewise. - * lto-cgraph.c: Likewise. - * ipa-ref-inline.h: Likewise. - * ipa-pure-const.c: Likewise. - * lto-streamer-out.c: Likewise. - * ipa-utils.c: Likewise. - * ipa-inline.c: Likewise. - * matrix-reorg.c: Likewise. - * tree-eh.c: Likewise. - * tree-vectorizer.c: Likewise. - * ipa-split.c: Likewise. - * ipa.c: Likewise. - * trans-mem.c: Likewise. - * ipa-inline-analysis.c: Likewise. - * gimplify.c: Likewise. - * cfgexpand.c: Likewise. - * tree-sra.c: Likewise. - * ipa-prop.c: Likewise. - * varasm.c: Likewise. - * tree-nested.c: Likewise. - * tree-inline.c: Likewise. - * tree-profile.c: Likewise. - * tree-ssa-structalias.c: Likewise. - * passes.c: Likewise. - * varpool.c: Likewise. - -2012-04-14 Tom de Vries - - * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of - same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND. - Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use - of find_edge. - (gsi_advance_fw_nondebug_nonlocal): New function. - (local_def): Removed function. - (same_succ_hash): Use stmt_local_def. - (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal. - (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def. - -2012-04-13 H.J. Lu - - * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 - and __ILP32__ for x32. - -2012-04-13 Martin Jambor - - PR middle-end/52939 - * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if - fold_ctor_reference returns a zero constant. - -2012-04-13 Enkovich Ilya - - * config.gcc: Add i386/gnu-user-common.h before all - i386/gnu-user.h and i386/gnu-user64.h usages. - - * config/i386/gnu-user-common.h: New. - - * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h. - (CC1_SPEC): Likewise. - (ENDFILE_SPEC): Likewise. - (DEFAULT_PCC_STRUCT_RETURN): Likewise. - (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise. - (TARGET_OS_CPP_BUILTINS): Likewise. - (LIBGCC2_HAS_TF_MODE): Likewise. - (LIBGCC2_TF_CEXT): Likewise. - (TF_SIZE): Likewise. - (TARGET_ASM_FILE_END): Likewise. - (STACK_CHECK_MOVING_SP): Likewise. - (STACK_CHECK_STATIC_BUILTIN): Likewise. - * config/i386/gnu-user64.h: Likewise. - -2012-04-13 Martin Jambor - - * expr.c (expand_expr_real_1): Pass type, not the expression, to - set_mem_attributes for a memory temporary. Do not call the function - for the memory temporary created for a bitfield. - -2012-04-13 Alexandre Oliva - - PR debug/48866 - * df.h (enum debug_temp_where): New. - (dead_debug_init, dead_debug_finish) Declare. - (dead_debug_add, dead_debug_insert_temp): Declare. - (struct dead_debug_use, struct dead_debug): Moved from... - * df-problems.c: ... here. - (df_set_unused_notes_for_mw): Bind debug uses of unused regno - to a debug temp. - (df_create_unused_note): Likewise. - (df_set_dead_notes_for_mw): Move comment where it belongs. - (dead_debug_init): Export. - (dead_debug_reset_uses): New, factored out of... - (dead_debug_finish): ...this. Export. - (dead_debug_reset): Remove. - (dead_debug_add): Export. - (dead_debug_insert_before): Rename to... - (dead_debug_insert_temp): ... this. Add where argument. Export. - Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts. - Return insertion count. - (df_note_bb_compute): Adjust. - * dce.c (word_dce_process_block): Adjust dead debug uses. - (dce_process_block): Likewise. - -2012-04-13 Alexandre Oliva - - * df-problems.c (df_note_bb_compute): Do not take note of - debug uses for whose REGs we won't emit DEAD or UNUSED notes. - -2012-04-13 Alexandre Oliva - - PR debug/51570 - * var-tracking.c (expand_depth): New type. - (onepart_aux, expand_loc_callback_data): Change depth type to it. - (loc_exp_dep_alloc): Adjust initializer. - (update_depth): Use new type. Add entryvals. - (vt_expand_var_loc_chain): Take note of expansions with - ENTRY_VALUEs, but don't accept them right away. Run an optional - second pass accepting the minimum ENTRY_VALUE count found in the - first pass. - (vt_expand_loc_callback, INIT_ELCD): Adjust. - -2012-04-13 Tom de Vries - - * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add - parameters vuse and vuse_escaped. - (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to - gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and - vuse1 != vuse2. - -2012-04-13 Richard Guenther - - PR tree-optimization/52969 - * tree-if-conv.c (predicate_mem_writes): Properly gimplify - the condition for the COND_EXPR and handle predicate negation - by swapping the COND_EXPR arms. - -2012-04-13 Nick Clifton - - * config/rl78/rl78.c (rl78_devirt_pass): Remove use of - TODO_dump_func flag. - -2012-04-13 Andrey Belevantsev - - PR rtl-optimization/52203 - PR rtl-optimization/52715 - - Revert the 2012-03-07 fix for PR 52203. - * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that - the insn does not modify DFA right before issuing, adjust - issue_rate accordingly. - -2012-04-13 Richard Guenther - - PR c/52549 - * c-typeck.c (pointer_diff): Remove bogus assert. - -2012-04-13 Richard Guenther - - PR c/52862 - * convert.c (convert_to_pointer): Remove special-casing of zero. - -2012-04-13 Joey Ye - - * config/arm/constraints.md (Pe): New constraint. - * config/arm/arm.md: New split for imm 256-510. - -2012-04-13 Terry Guo - - * config/arm/arm-cores.def: Added core cortex-m0plus. - * config/arm/arm-tune.md: Regenerated. - * config/arm/arm-tables.opt: Regenerated. - * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus. - -2012-04-13 Alan Modra - - PR target/52828 - * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with - tie regs on destination of sets. Delete forward declaration. - (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls. - (rs6000_emit_prologue): Likewise. - (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie - and gen_stack_tie. - (is_mem_ref): Use tie_operand to recognise stack ties. - * config/rs6000/predicates.md (tie_operand): New. - * config/rs6000/rs6000.md (restore_stack_block): Generate new - stack tie rtl. - (restore_stack_nonlocal): Likewise. - (stack_tie): Update. - (frame_tie): Delete. - -2012-04-12 Bill Schmidt - - * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to - HOST_WIDE_INT_PRINT_DEC in format strings. - -2012-04-12 Uros Bizjak - - PR target/52932 - * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second - argument type to __m256i. Update call to __builtin_ia32_permvarsf256. - * config/i386/sse.md (UNSPEC_VPERMVAR): New. - (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove. - (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2. - (avx2_permvar): Macroize insn from avx2_permvarv8sf and - avx2_permvarv8si using VI4F_256 mode iterator. - * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>: - Update builtin type to V8SF_FTYPE_V8SF_V8SI. - (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and - gen_avx2_permvarv8sf. - (expand_vec_perm_pshufb): Ditto. - -2012-04-12 Michael Meissner - - PR target/52775 - * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to - the list of options to enable the FCFID instruction. - (TARGET_EXTRA_BUILTINS): Adjust comment. - -2012-04-12 Bill Schmidt - - PR tree-optimization/18589 - * tree-ssa-reassoc.c (reassociate_stats): Add two fields. - (operand_entry): Add count field. - (add_repeat_to_ops_vec): New function. - (completely_remove_stmt): Likewise. - (remove_def_if_absorbed_call): Likewise. - (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls. - (acceptable_pow_call): New function. - (linearize_expr_tree): Look for builtin pow/powi calls and add operand - entries with repeat counts when found. - (repeat_factor_d): New struct and associated typedefs. - (repeat_factor_vec): New static vector variable. - (compare_repeat_factors): New function. - (get_reassoc_pow_ssa_name): Likewise. - (attempt_builtin_powi): Likewise. - (reassociate_bb): Call attempt_builtin_powi. - (fini_reassoc): Two new calls to statistics_counter_event. - -2012-04-12 Richard Guenther - - * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency. - * cgraph.h (tree_rest_of_compilation): Remove. - * cgraph.c (cgraph_add_new_function): Move ... - * cgraphunit.c (cgraph_add_new_function): ... here. - (tree_rest_of_compilation): Make static. - (cgraph_expand_function): Do not set cgraph_function_flags_ready. - * tree-optimize.c (gate_all_optimizations, pass_all_optimizations, - gate_all_early_local_passes, execute_all_early_local_passes, - pass_early_local_passes, gate_all_early_optimizations, - pass_all_early_optimizations): Move ... - * passes.c (gate_all_optimizations, pass_all_optimizations, - gate_all_early_local_passes, execute_all_early_local_passes, - pass_early_local_passes, gate_all_early_optimizations, - pass_all_early_optimizations): ... here. - * tree-optimize.c (execute_free_datastructures): Remove. - * tree-flow.h (execute_free_datastructures): Remove. - * tree-optimize.c (execute_init_datastructures, - pass_init_datastructures): Move ... - * tree-ssa.c (execute_init_datastructures, - pass_init_datastructures): ... here. - * cfgexpand.c (gimple_expand_cfg): Inline-expand call to - execute_free_datastructures. - -2012-04-12 Bernd Schmidt - - * dbgcnt.def (ira_move): New counter. - * ira-int.h (ira_create_new_reg): Declare function. - (first_moveable_pseudo, last_moveable_pseudo): Declare variables. - * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and - no longer static. All callers changed. - * ira.c: Include "dbgcnt.h". - (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos, - move_unallocated_pseudos): New static functions. - (first_moveable_pseudo, last_moveable_pseudo): New global variables. - (pseudo_replaced_reg, pseudo_move_insn): New static variables. - (ira): Call find_moveable_pseudos and move_unallocated_pseudos. - * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero - to the pseudos generated in find_moveable_pseudos. - * Makefile.in (ira.o): Add $(DBGCNT_H). - -2012-04-12 Richard Guenther - - PR tree-optimization/52943 - * tree-chrec.h (chrec_is_positive): Remove. - * tree-scalar-evolution.c (chrec_is_positive): Move ... - * tree-data-ref.c (chrec_is_positive): ... here. Make static. - Return false for a constant zero instead of negative. - (analyze_siv_subscript_cst_affine): Handle zero difference - in the initial condition explicitely. - -2012-04-12 Richard Guenther - - * tree-parloops.c (parallelize_loops): Also consult the upper - bound for the number of iterations. - * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. - (loop_prefetch_arrays): Likewise. - -2012-04-12 Richard Guenther - - * cfgloop.h (estimated_loop_iterations_int): Ditch - 'conservative' parameter. - (max_stmt_executions_int): Likewise. - (estimated_loop_iterations): Likewise. - (max_stmt_executions): Likewise. - (max_loop_iterations): Declare. - (max_loop_iterations_int): Likewise. - (estimated_stmt_executions): Likewise. - (estimated_stmt_executions_int): Likewise. - * tree-ssa-loop-niter.c (estimated_loop_iterations): - Split parts to ... - (max_loop_iterations): ... this. - (estimated_loop_iterations_int): Split parts to ... - (max_loop_iterations_int): ... this. - (max_stmt_executions_int): Split parts to ... - (estimated_stmt_executions_int): ... this. - (max_stmt_executions): Split parts to ... - (estimated_stmt_executions): ... this. - * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust. - * predict.c (predict_loops): Likewise. - * tree-data-ref.c (max_stmt_executions_tree): Likewise. - (analyze_siv_subscript_cst_affine): Likewise. - (compute_overlap_steps_for_affine_1_2): Likewise. - (analyze_subscript_affine_affine): Likewise. - (init_omega_for_ddr_1): Likewise. - * tree-parloops.c (parallelize_loops): Likewise. - * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise. - (may_eliminate_iv): Likewise. - * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. - (loop_prefetch_arrays): Likewise. - * tree-vrp.c (adjust_range_with_scev): Likewise. - -2012-04-12 Oleg Endo - - * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0. - * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE): - Fix line width. - (dump_table): Use bool type for need_align and have_df variables. - (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0. - (regs_used): Remove register modifier. - (barrier_align): Move variables slot, credit, jump_to_next - into if block above for loop. Use bool type for jump_to_next. - (sh_function_arg): Use NULL_RTX instead of 0. - -2012-04-11 Andreas Schwab - - * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart. - (bswapsi2): New expander. - -2012-04-11 H.J. Lu - - * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to - 0x60000000 if __x86_64 is defined and __LP64__ isn't defined. - -2012-04-11 H.J. Lu - - PR rtl-optimization/52876 - * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value. - Don't call mark_reg_pointer for incompatible pointer sign extension. - * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value - directly. - -2012-04-11 Bernd Schmidt - - * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for - comparisons against TYPE_PRECISION. - * tree-ssa-forwprop.c (combine_conversions): Likewise. - -2012-04-11 Xinliang David Li - - * tree-passes.h: Remove TODO_dump_func. - * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func. - * trans-mem.c: Remove TODO_dump_func. - * ira.c: Remove TODO_dump_func. - -2012-04-11 H.J. Lu - - * config/i386/i386.c (ix86_option_override_internal): Check - SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS - after TARGET_64BIT is updated. - -2012-04-11 Oleg Endo - - * config/sh/sh.h: Remove old secondary reload code. - -2012-04-11 Oleg Endo - - * config/sh/sh.c (SCHED_REORDER): Merge macro into ... - (ready_reorder): ... this function. - -2012-04-11 Bernd Schmidt - - * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and - sched_init calls. - - * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P - insns so that no other insn is queued for a time before them. - - * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to - unknown. - -2012-04-11 Richard Guenther - - PR middle-end/52621 - * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly - consider loop nesting. - (evolution_function_is_univariate_p): Properly check the remainder - for chrecs. - -2012-04-11 Richard Guenther - - PR middle-end/52918 - * except.c (sjlj_emit_dispatch_table): Properly update loop structure. - -2012-04-11 Nick Clifton - - * config/rl78/rl78.c (rl78_expand_prologue): Set stack use - information, if requested. - - * config/rx/rx.c (rx_expand_prologue): Likewise. - -2012-04-11 Peter Bergner - Michael Matz - - PR target/16458 - * rtlanal.c (unsigned_reg_p): New function. - Update copyright notice dates. - * rtl.h (unsigned_reg_p): Prototype it. - Update copyright notice dates. - * config/rs6000/rs6000.c (rs6000_generate_compare): Use it. - Update comment. - * expr.c (expand_expr_real_1): Set register attributes. - * stmt.c (expand_case): Likewise. - -2012-04-11 Oleg Endo - - PR target/50751 - * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments - consider_sh2a and allow_zero. - * config/sh/sh.c (sh_legitimate_index_p): Likewise. - (disp_addr_displacement): New function. - (sh_address_cost): Use disp_addr_displacement function instead - of DISP_ADDR_OFFSET. - (sh_legitimate_address_p): Adapt to changed - sh_legitimate_index_p declaration. - (sh_find_mov_disp_adjust): Remove HImode check. - (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd, - disp_addr_displacement and max_mov_insn_displacement. - (max_mov_insn_displacement): Remove HImode check. - * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, - DISP_ADDR_P, DISP_ADDR_OFFSET): Remove. - * config/sh/constraints.md (K05, K13): New constraints. - (K12): Correct comment. - (Sdd): Do not use DISP_ADDR_P macro. - (Snd, Sbw): Use satisfies_constraint_Sdd. - * config/sh/sh.md (extendhisi2): Remove constraints from expander. - (*extendhisi2_compact, movhi_i): Remove. - (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp, - *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd, - *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13, - *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns. - (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp, - *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp, - *movqi_load_mem_disp): Use sh_legitimate_index_p instead of - CONST_OK_FOR_Kxx. - Add new peepholes for HImode displacement addressing. - -2012-04-11 Oleg Endo - - * config/sh/sh.h (SIDI_OFF): Remove. - * config/sh/sh.md: Use gen_highpart and gen_lowpart to access - DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg - or operand_subword. - -2012-04-11 Eric Botcazou - - PR target/52624 - * doc/extend.texi (Other Builtins): Document __builtin_bswap16. - (PowerPC AltiVec/VSX Built-in Functions): Remove it. - * doc/md.texi (Standard Names): Add bswap. - * builtin-types.def (BT_UINT16): New primitive type. - (BT_FN_UINT16_UINT16): New function type. - * builtins.def (BUILT_IN_BSWAP16): New. - * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument. - (expand_builtin) : New case. Pass TARGET_MODE to - expand_builtin_bswap. - (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case. - (fold_builtin_1): Likewise. - (is_inexpensive_builtin): Likewise. - * optabs.c (expand_unop): Deal with bswap in HImode specially. Add - missing bits for bswap to libcall code. - * tree.c (build_common_tree_nodes): Build uint16_type_node. - * tree.h (enum tree_index): Add TI_UINT16_TYPE. - (uint16_type_node): New define. - * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete. - * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of - above builtin. - (rs6000_init_builtins): Likewise. - * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate. - -2012-04-11 Tristan Gingold - - * doc/extend.texi (Type Attributes): Move paragraph. - -2012-04-11 Manuel López-Ibáñez - - PR 24985 - * diagnostic.h (show_caret): Declare. - (caret_max_width): Declare. - (diagnostic_show_locus): Declare. - * diagnostic.c (diagnostic_initialize): Initialize to false. - (diagnostic_show_locus): New. - (diagnostic_report_diagnostic): Call it. - (getenv_columns): New. - (adjust_line): New. - (diagnostic_set_caret_max_width): New. - * input.c (read_line): New. - (location_get_source_line): New. - * input.h (location_get_source_line): Declare. - * toplev.c (general_init): Initialize show_caret from options. - * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret. - * opts.c (common_handle_option): Likewise. - * pretty-print.h (pp_get_prefix): New. - (pp_base_get_prefix): New. - * common.opt (fdiagnostics-show-caret): New option. - * doc/invoke.texi (fdiagnostics-show-caret): Document it. - -2012-04-11 Richard Guenther - - PR rtl-optimization/52881 - * ifcvt.c (find_if_case_2): Avoid speculating loop latches. - -2012-04-11 Richard Guenther - - PR tree-optimization/52912 - * tree-ssa-threadupdate.c (thread_block): Tell the cfg - manipulation code we are threading through a loop header - to an exit destination. - -2012-04-10 Manuel López-Ibáñez - - * tree.h (warn_if_unused_value): Move declaration from here. - * stmt.c (warn_if_unused_value): Move definition from here. - -2012-04-10 Michael Matz - - * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to - grouped_stores. - (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES. - (struce _bb_vec_info.strided_stores): Rename to grouped_stores. - (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES. - (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS. - (vect_strided_store_supported): Rename to vect_grouped_store_supported. - (vect_strided_load_supported): Rename to vect_grouped_load_supported. - (vect_transform_strided_load): Rename to vect_transform_grouped_load. - (vect_record_strided_load_vectors): Rename to - vect_record_grouped_load_vectors. - * tree-vect-data-refs.c (vect_update_misalignment_for_peel): - Rename use of above macros. - (vect_verify_datarefs_alignment): Ditto. - (vector_alignment_reachable_p): Ditto. - (vect_peeling_hash_get_lowest_cost): Ditto. - (vect_enhance_data_refs_alignment): Ditto. - (vect_analyze_group_access): Ditto and rename stride to groupsize. - (vect_analyze_data_ref_access): Rename "strided" to "grouped". - (vect_strided_store_supported): Rename to vect_grouped_store_supported. - (vect_strided_load_supported): Rename to vect_grouped_load_supported. - (vect_transform_strided_load): Rename to vect_transform_grouped_load. - (vect_record_strided_load_vectors): Rename to - vect_record_grouped_load_vectors. - * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros. - (destroy_loop_vec_info): Ditto. - (vect_transform_loop): Ditto and rename strided_store to grouped_store. - * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros. - (vect_analyze_slp): Ditto. - (new_bb_vec_info): Ditto. - (destroy_bb_vec_info): Ditto. - (vect_schedule_slp_instance): Ditto and rename strided_store to - grouped_store. - * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to - vect_cost_group_size. - (vect_model_store_cost): Rename use of above macros and call - to vect_cost_strided_group_size. - (vect_model_load_cost): Ditto. - (vectorizable_store): Ditto, rename strided_store to grouped_store - and calls to renamed tree-vectorizer.h functions. - (vectorizable_load): Ditto. - (vect_transform_stmt): Rename use of above macros and strided_store - to grouped_store. - -2012-04-10 Jan Hubicka - - * cgraph.h: Remove misledaing comment on ipa-ref.h. - (symtab_type): New enum. - (symtab_node): New structure. - (cgraph_node, varpool_node): Add symbol base type. - (cgraph, varpool): New accestor functions. - * cgraph.c (cgraph_create_node_1): Set symbol type. - * varpool.c (varpool_node): Set symbol type. - -2012-04-10 Ulrich Weigand - Richard Sandiford - - * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs. - -2012-04-10 Richard Guenther - - PR middle-end/52888 - * gimple-low.c (gimple_check_call_args): Properly account for - compatible aggregate types. - -2012-04-10 Richard Guenther - - * toplev.h (tree_rest_of_compilation): Remove. - * tree-optimize.c (tree_rest_of_compilation): Likewise. - * cgraph.h (tree_rest_of_compilation): Declare. - * tree-optimize.c (tree_rest_of_compilation): Move ... - * cgraphunit.c (tree_rest_of_compilation): ... here. - * cgraph.c (cgraph_add_new_function): Adjust. - * Makefile.in (tree-optimize.o): Adjust. - (cgraphunit.o): Likewise. - -2012-04-10 Ulrich Weigand - - PR tree-optimization/52870 - * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that - presumed pattern statement is within the same loop or basic block. - -2012-04-10 Tristan Gingold - - * gengtype.c (main): Make uintptr_t a known type. - -2012-04-10 Richard Guenther - - * tree-pass.h (tree_lowering_passes): Remove. - * tree-optimize.c (tree_lowering_passes): Remove. - * cgraph.c (cgraph_add_new_function): Inline relevant parts - of tree_lowering_passes, avoid redundant call of early local passes. - * cgraphunit.c (cgraph_lower_function): Fold into ... - (cgraph_analyze_function): ... its single caller. Inline - relevant parts of tree_lowering_passes. - -2012-04-09 H.J. Lu - - PR other/52777 - * config/pa/pa.opt: Remove SIO and GNU_LD. - -2012-04-09 Jan Hubicka - - PR lto/52722 - PR lto/51765 - PR lto/52634 - * lto-cgraph.c (compute_ltrans_boundary): When alias is in the - boundary, add its target too. - * lto.c (add_references_to_partition): Add also aliased nodes. - (add_cgraph_node_to_partition, - add_varpool_node_to_partition): Work on nodes, not functions/variables; - when adding alias, add also the aliased object. - -2012-04-09 Uros Bizjak - - PR target/52883 - * config/i386/predicates.md (x86_64_zext_general_operand): Prevent - VOIDmode immediate operands. - * config/i386/constraints.md (Wz): New constraint. - * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z. - -2012-04-09 Eric Botcazou - - PR target/52717 - * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on - the DECL generated for the special GOT helper. - -2012-04-09 Oleg Endo - - * config/sh/constraints.md: Update list of constraints in - comment block. - (Sr0): Remove unused memory constraint. - -2012-04-08 Manuel López-Ibáñez - - * tree-pretty-print.h: Update comment. - -2012-04-08 Oleg Endo - - * config/sh/sh.md: Use braced string notation where applicable. - (*prefetch_i4, prefetch_m2a): Merge into ... - (*prefetch): ... this new insn. - -2012-04-07 Oleg Endo - - * config/sh/sh.h (high_life_started): Remove - * config/sh/predicates.md (general_movdst_operand): Use - 'reload_in_progress' instead of 'high_life_started'. - * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine, - divsi_inv_fp): Likewise. - -2012-04-07 Oleg Endo - - * config/sh/sh-protos.h (prepare_move_operands): Return void - instead of int. - * config/sh/sh.c (prepare_move_operands): Likewise. - * config/sh/sh.md: Remove return value checks of prepare_move_operands. - -2012-04-07 Oleg Endo - - * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand, - general_movsrc_operand, general_movdst_operand, arith_reg_operand, - fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand, - logical_operand, fpscr_operand, fpul_operand, expand_fp_branch, - commutative_float_operator, noncommutative_float_operator, - sh_handle_pragma): Remove. - -2012-04-06 Sandra Loosemore - - * doc/invoke.texi: Clean up Texinfo markup throughout the file. - Use @option markup on command-line options. Use @samp markup on - literal keywords to options. Use @code markup on code fragments. - Use other markup in preference to quotation marks in the text. - Add markup to some passages without any. - -2012-04-06 Mike Stump - - * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning. - -2012-04-06 Oleg Endo - - * config/sh/sh.c (hi_const): Remove. - (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead - of hi_const. - -2012-04-06 Oleg Endo - - * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int - to bool. - * config/sh/sh.c (sh_expand_t_scc): Likewise. - * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before - calling sh_expand_t_scc. - -2012-04-06 Oleg Endo - - * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand, - nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt, - sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand, - reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok, - sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p, - sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p, - check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p, - sh2a_is_function_vector_call): Use bool as return type. - (sh_pass_in_reg_p): Remove. - * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure, - flow_dependent_p, sh2a_function_vector_p, expand_block_move, - expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, - sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p, - sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p, - sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand, - fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch, - sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p, - sh_loads_bankedreg_p): Use bool as return type. - (nonpic_symbol_mentioned_p): Use bool as return type. Remove - 'register' modifier. - -2012-04-06 Matt Turner - - * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc". - -2012-04-06 Eric Botcazou - - * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member - of the destination isn't also a FP_REGS register. - -2012-04-05 Teresa Johnson - H.J. Lu - - * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL. - * config/i386/i386.md (move immediate to memory peephole2): - Add cases for HImode move when LCP stall avoidance is needed. - * config/i386/i386.c (initial_ix86_tune_features): Initialize - X86_TUNE_LCP_STALL entry. - -2012-04-05 Uros Bizjak - - PR target/52882 - * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode - CONST_INT operands, zero-extended with AND. - -2012-04-05 Oleg Endo - - PR target/50751 - * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the - first argument instead of mode size. Move displacement calculations - to ... - (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask): - ... these new functions. - (disp_adjust): Remove max_mov_disp field. - (sh_legitimate_index_p): Use max_mov_insn_displacement and - mov_insn_alignment_mask. - (sh_address_cost): Use max_mov_insn_displacement. - -2012-04-05 Andrew Stubbs - - * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8. - (arch_enabled): Handle new arch types. - (one_cmpldi2): Add NEON support. - -2012-04-05 Richard Guenther - - * gimple.c (walk_gimple_op): Compute val_only for the LHS - of an assigment in the canonical way, avoiding is_gimple_mem_rhs. - (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ... - * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): - ... here and make static. - * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): - Remove. - -2012-04-05 Richard Guenther - - * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt - basic-block before removing it. - -2012-04-05 Richard Guenther - - * tree-ssanames.c (release_dead_ssa_names): Compact the SSA - version namespace as we release the freelist. - -2012-04-05 Richard Guenther - - * tree-nrv.c (tree_nrv): Release VDEFs. - * tree-sra.c (sra_modify_constructor_assign): Likewise. - (sra_modify_assign): Likewise. - * tree-vect-stmts.c (vect_remove_stores): Likewise. - * tree-vect-loop.c (vect_transform_loop): Likewise. - * tree-ssa-dom.c (optimize_stmt): Likewise. - * tree-vect-slp.c (vect_schedule_slp): Likewise. - * tree-ssa-math-opts.c (execute_cse_sincos): Likewise. - -2012-04-05 Richard Guenther - - * gimple-iterator.c (gsi_remove): Return whether EH edges need to be - cleanup. - * gimple.h (gsi_remove): Adjust. - * tree-ssa-operands.c (unlink_stmt_vdef): Optimize. - * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result. - * tree-ssa-dse.c (dse_optimize_stmt): Likewise. - * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise. - * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise. - * tree-ssa-pre.c (eliminate): Likewise. - -2012-04-04 Mike Stump - - * doc/rtl.texi (const_double): Document as sign-extending. - * expmed.c (expand_mult): Ensure we don't use shift incorrectly. - * emit-rtl.c (immed_double_int_const): Refine to state the - value is signed. - * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than - CONST_DOUBLE integers. - (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no - negative values are converted. Fix conversions bigger than - HOST_BITS_PER_WIDE_INT. - (simplify_binary_operation_1): Ensure we don't use shift incorrectly. - (simplify_immed_subreg): Sign-extend CONST_DOUBLEs. - * explow.c (plus_constant_mode): Add. - (plus_constant): Implement with plus_constant_mode. - * rtl.h (plus_constant_mode): Add. - -2012-04-04 Richard Guenther - - PR tree-optimization/52808 - * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks. - * Makefile.in (tracer.o): Depend on $(CFGLOOP_H). - -2012-04-04 Tristan Gingold - - * expr.c (expand_expr_real_2): Handle larger sizetype in - POINTER_PLUS_EXPR. - -2012-04-03 Kaz Kojima - - * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only - to m2a-single instead of m2e. - -2012-04-03 Eric Botcazou - - * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS. - Change type of BITOFFSET to signed. Make sure the lower bound of - the computed range is non-negative by adjusting OFFSET and BITPOS. - (expand_assignment): Adjust call to get_bit_range. - -2012-04-03 Sandeep Kumar Singh - - * h8300/h8300.c (h8300_current_function_monitor_function_p): - New function. Added to check monitor functions. - (h8300_option_override): Modified to generate error/warning - messages for invalid combinations of different command line - options. - * h8300/h8300.md: Generate 'rte' for monitor functions. Do not - save EXR on stack for monitor function in case of H8S target - when "-mno-exr" is passed. - * h8300/h8300-protos.h (h8300_current_function_monitor_function_p): - Add prototype. - * doc/invoke.texi: Document H8S options. - -2012-04-03 Tristan Gingold - - * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead - of gcc_AC_FUNC_MMAP_BLACKLIST. - * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove. - * Makefile.in (aclocal_deps): Add mmap.m4. - * configure: Regenerate. - * aclocal.m4: Regenerate. - -2012-04-03 Richard Guenther - - PR tree-optimization/52808 - * tracer.c (tail_duplicate): Return whether we have duplicated - any block. - (tracer): If we have duplicated any block, cleanup the CFG. - * cfghooks.c (duplicate_block): If we duplicated a loop - header but not its loop, destroy the loop because it now has - multiple entries. - * tree-ssa-threadupdate.c (thread_through_loop_header): Tell - the cfg manipulation routines we are not creating a multiple - entry loop. - -2012-04-03 Tristan Gingold - - * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle - 'byte' alignment. - (vms_c_common_override_options): Allow parameterless variadic - functions. - -2012-04-03 Jakub Jelinek - - PR tree-optimization/52835 - * tree-data-ref.c (build_rdg): Return NULL if - compute_data_dependences_for_loop failed. - -2012-04-03 Eric Botcazou - - * varasm.c (initializer_constant_valid_for_bitfield_p): Return true - for REAL_CST as well. - (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate. - In the bitfield case, if the value is a REAL_CST, convert it first to - an INTEGER_CST. - -2012-04-02 H.J. Lu - - * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h - for --with-abi={x32|mx32} or --with-multilib-list=mx32. - (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*. - - * config/i386/biarchx32.h: New. - -2012-04-02 Anatoly Sokolov - - * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove. - * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define. - (arm_preferred_reload_class): New function. - -2012-04-02 Richard Guenther - - PR tree-optimization/52756 - * tree-ssa-threadupdate.c (def_split_header_continue_p): New function. - (thread_through_loop_header): After threading through the loop latch - remove the split part from the loop and clear further threading - opportunities that would create a multiple entry loop. - -2012-04-02 Richard Guenther - - PR rtl-optimization/52800 - * cprop.c (execute_rtl_cprop): Call cleanup_cfg with - CLEANUP_CFG_CHANGED. - -2012-04-02 Richard Guenther - - PR middle-end/52803 - * loop-init.c (gate_handle_loop2): Destroy loops here if - we don't enter RTL loop optimizers. - -2012-04-02 Uros Bizjak - - Partially revert: - 2012-03-29 Richard Guenther - - * rtl.h (extended_count): Remove. - * combine.c (extended_count): Remove. - -2012-04-02 Dodji Seketeli - - PR c++/40942 - * pt.c (more_specialized_fn): Don't apply decay conversion to - types of function parameters. - -2012-04-02 Tristan Gingold - - * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2) - (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry) - (alloc_page, init_ggc, clear_marks, struct ggc_pch_data) - (ggc_pch_this_base): Use uintptr_t instead of size_t. - -2012-03-31 H.J. Lu - - PR bootstrap/52784 - * config/i386/i386.c (ix86_option_override_internal): Don't - check TARGET_64BIT if TARGET_64BIT_DEFAULT is false. - -2012-03-31 Eric Botcazou - - * tree-cfg.c (call_can_make_abnormal_goto): New predicate. - (stmt_can_make_abnormal_goto): Use it. - (is_ctrl_altering_stmt): Likewise. - -2012-03-30 Naveen H.S - Kaz Kojima - - * config/sh/sh.c (push_regs): Skip banked registers when - resbank attribute is specified. - (sh_expand_epilogue): Likewise. - -2012-03-30 Richard Henderson - - PR debug/52727 - * combine-stack-adj.c (prev_active_insn_bb): New. - (next_active_insn_bb): New. - (force_move_args_size_note): New. - (combine_stack_adjustments_for_block): Use it. - -2012-03-30 Richard Henderson - - * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p. - (ix86_expand_vector_init_duplicate): Initialize it. - (expand_vec_perm_palignr): Likewise. - (ix86_expand_vec_perm_const): Likewise. - (ix86_vectorize_vec_perm_const_ok): Likewise. - (expand_vec_perm_blend): Use it. - (expand_vec_perm_vpermil): Likewise. - (expand_vec_perm_pshufb): Likewise. - (expand_vec_perm_1): Likewise. - (expand_vec_perm_pshuflw_pshufhw): Likewise. - (expand_vec_perm_interleave2): Likewise. - (expand_vec_perm_vpermq_perm_1): Likewise. - (expand_vec_perm_vperm2f128): Likewise. - (expand_vec_perm_interleave3): Likewise. - (expand_vec_perm_vperm2f128_vblend): Likewise. - (expand_vec_perm_vpshufb2_vpermq): Likewise. - (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,. - (expand_vec_perm_broadcast): Likewise. - (expand_vec_perm_vpshufb4_vpermq2): Likewise. - -2012-03-30 Richard Henderson - - * dwarf2out.c (gen_variable_die): Initialize off. - -2012-03-30 Tristan Gingold - - * config/vms/vms-f.c: New file. - * config/vms/t-vms (vms-f.o): New rule. - * config.gcc (*-*-*vms*): Define fortran_target_objs. - -2012-03-30 Richard Guenther - - PR tree-optimization/52754 - * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only - propagate arbitrary addresses into really plain dereferences. - -2012-03-30 Richard Guenther - - PR middle-end/52772 - * except.c (emit_to_new_bb_before): Move loop updating ... - (dw2_build_landing_pads): ... here. Use a proper block for - querying the loop father. - -2012-03-30 Tristan Gingold - - * config/ia64/ia64.c (ia64_section_type_flags): Remove - common_object attribute handling. - (SECTION_VMS_OVERLAY): Remove - (ia64_vms_common_object_attribute): Replace abort with an assert. - Do not set DECL_SECTION_NAME. - (ia64_vms_output_aligned_decl_common): Handle common_object - attribute. - (ia64_vms_elf_asm_named_section): Remove. - * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove. - -2012-03-30 Richard Guenther - - PR middle-end/52786 - * double-int.c (rshift_double): Remove not needed cast. - -2012-03-30 Richard Guenther - - * tree-affine.h (print_aff): Remove. - * tree-affine.c (print_aff): Make static. - * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove. - (get_references_in_stmt): Likewise. - (print_direction_vector): Likewise. - (print_dir_vectors): Likewise. - (print_dist_vectors): Likewise. - (dump_subscript): Likewise. - (dump_ddrs): Likewise. - (dump_dist_dir_vectors): Likewise. - (dump_data_references): Likewise. - (dump_data_dependence_relation): Likewise. - (dump_data_dependence_direction): Likewise. - (dump_rdg_vertex): Likewise. - (dump_rdg_component): Likewise. - (debug_ddrs): Declare. - (struct data_ref_loc_d): Move ... - * tree-data-ref.c (struct data_ref_loc_d): ... here. - (get_references_in_stmt): Make static. - (dump_data_references): Likewise. - (dump_subscript): Likewise. - (print_direction_vector): Likewise. - (print_dir_vectors): Likewise. - (print_dist_vectors): Likewise. - (dump_data_dependence_relation): Likewise. - (dump_dist_dir_vectors): Likewise. - (dump_ddrs): Likewise. - (dump_rdg_vertex): Likewise. - (dump_rdg_component): Likewise. - (debug_ddrs): New function. - (access_matrix_get_index_for_parameter): Remove. - -2012-03-30 Tristan Gingold - - * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename. - (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New. - (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL) - (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE) - (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New. - (vms_patch_builtins): Handle new flags - * config/vms/vms-crtlmap.map: Completed using nm on - c and math system libraries. - * config/vms/make-crtlmap.awk: Handle any number of flags. - -2012-03-30 Martin Jambor - - * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there - is a builtin_stack_save in a dominating BB. - -2012-03-29 Uros Bizjak - - * config/i386/sse.md (avx_hv4df3): Fix results - crossing 128bit lane boundary. - -2012-03-29 Vladimir Makarov - - * ira-color.c (setup_left_conflict_sizes_p): Process all - conflicting objects. - -2012-03-29 Jakub Jelinek - - PR tree-optimization/52760 - * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p - shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type). - -2012-03-29 Richard Guenther - - * cgraph.h (cgraph_materialize_all_clones): Remove. - (reset_inline_failed): Likewise. - * cgraphunit.c (cgraph_materialize_all_clones): Make static. - * cgraphbuild.c (reset_inline_failed): Remove. - * rtl.h (cse_main): Remove. - (extended_count): Likewise. - * cse.c (dump_class): Mark as DEBUG_FUNCTION. - (cse_main): Make static. - * combine.c (extended_count): Remove. - (dump_combine_stats): Mark as DEBUG_FUNCTION. - * basic-block.h (reorder_basic_blocks): Remove. - * bb-reorder.c (reorder_basic_blocks): Make static. - * Makefile.in (dse.o): Remove dse.h dependency. - * dse.h: Remove. - * dse.c (gate_dse): Remove. - (clear_alias_mode_eq): Likewise. - (clear_alias_mode_hash): Likewise. - (dse_record_singleton_alias_set): Likewise. - (dse_invalidate_singleton_alias_set): Likewise. - -2012-03-29 H.J. Lu - - * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use - crtbegin_so%O%s for -shared. - (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared. - -2012-03-29 Richard Guenther - - * tree-flow.h (struct pre_expr_d): Remove forward declaration. - (add_to_value): Remove. - (print_value_expressions): Likewise. - * tree-ssa-pre.c (add_to_value): Make static. - (print_value_expressions): Likewise. - * gimple.h (gimple_adjust_this_by_delta): Remove. - * gimple-fold.c (gimple_adjust_this_by_delta): Likewise. - -2012-03-29 Richard Guenther - - PR middle-end/50708 - * double-int.h (rshift_double): Remove. - * double-int.c (lshift_double): Use absu_hwi to make count positive. - (rshift_double): Make static, take unsigned count argument, - remove handling of negative count argument. - (double_int_rshift): Dispatch to lshift_double. - -2012-03-28 H.J. Lu - - * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add - OPTION_MASK_ABI_64. - * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2. - (SPEC_X32): Likewise. - (MULTILIB_DEFAULTS): Likewise. - * config/i386/i386.c (isa_opts): Remove -m64. - (ix86_target_string): Properly handle -m32/-m64/-mx32. - (ix86_option_override_internal): Properly - set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as - handle -m32, -m64 and -mx32. - * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32 - with OPTION_ABI_X32. Moved after TARGET_LP64. - (TARGET_LP64): Changed to OPTION_ABI_64. - * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64. - (mx32): Replace ISA_X32 with ABI_X32. - -2012-03-28 Eric Botcazou - - * tree.c (tree_size) : New case. - -2012-03-28 Uros Bizjak - - * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes. - (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls. - -2012-03-28 Jakub Jelinek - - PR middle-end/52691 - * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize - __builtin_va_start to __builtin_next_arg if the latter is - builtin_decl_explicit_p rather than when it is not. - - PR middle-end/52750 - * tree-vect-generic.c (vector_element): Perform multiplication - for pos in bitsizetype type instead of idx type. - -2012-03-28 Richard Guenther - - * loop-init.c (loop_optimizer_init): If loops are preserved - perform incremental initialization of required loop features. - (loop_optimizer_finalize): If loops are to be preserved only - clean up optional loop features. - (rtl_loop_done): Forcefully free loops here. - * cgraph.c (cgraph_release_function_body): Forcefully free loops. - * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks - to existing loops. - (construct_init_block): Likewise. - (construct_exit_block): Likewise. - (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup - the CFG after expanding. - * cfgloop.c (verify_loop_structure): Calculate or verify dominators. - If we needed to calculate them, free them afterwards. - * tree-pass.h (PROP_loops): New define. - * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops. - * basic-block.h (CLEANUP_CFG_CHANGED): New. - * cfgcleanup.c (merge_blocks_move): Protect loop latches. - (cleanup_cfg): If we did something and have loops around, fix them up. - * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg - with CLEANUP_CFG_CHANGED. - * cfghooks.c (merge_blocks): If we merge a loop header into - its predecessor, update the loop structure. - (duplicate_block): If we copy a loop latch, adjust loop state - to note we may have multiple latches. - (delete_basic_block): Mark loops for fixup if we remove a loop. - * cfganal.c (forwarder_block_p): Protect loop latches, headers - and preheaders. - * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches. - (cfg_layout_can_merge_blocks_p): Likewise. - * cprop.c (bypass_block): If we create a loop with multiple - entries, mark it for removal. - * except.c (emit_to_new_bb_before): Add the new basic-block - to existing loops. - * tree-eh.c (lower_resx): Likewise. - * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops. - (expand_omp_taskreg): Likewise. - * tree-inline.c (initialize_cfun): Likewise. - * tree-mudflap.c (add_bb_to_loop): Prototype. - (mf_build_check_statement_for): Properly add new basic-blocks - to existing loops. - * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup - if we remove a loop. - (thread_through_loop_header): Likewise. - * trans-mem.c (tm_log_emit_save_or_restores): Properly add - new basic-blocks to existing loops. - (expand_transaction): Likewise. - * Makefile.in (except.o): Add $(CFGLOOP_H). - (expr.o): Likewise. - (cgraph.o): Likewise. - (cprop.o): Likewise. - (cfgexpand.o): Likewise. - (cfganal.o): Likewise. - (trans-mem.o): Likewise. - (tree-eh.o): Likewise. - -2012-03-28 Georg-Johann Lay - - PR target/52692 - * config/avr/avr.c (TARGET_BUILTIN_DECL): New define. - (avr_builtin_decl): New static function. - (struct avr_builtin_description, avr_bdesc): Move up. - Add GTY marker. Add field fndecl. Remove redundant field id. - (avr_init_builtins): Initialize avr_bdesc[ID].fndecl. - (avr_expand_builtin): Code cleanup because .id is removed. - -2012-03-28 Georg-Johann Lay - - PR target/52737 - * config.gcc (tm_file): Remove avr/multilib.h. - - * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack. - - * config/avr/genmultilib.awk: Remove code to generate multilib.h. - (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack. - * config/avr/t-avr: Remove generation of multilib.h. - * config/avr/t-multilib: Regenerate. - * config/avr/multilib.h: Remove. - * config/avr/avr.opt (-msp8): New option. - (avr_sp8): New variable. - * config/avr/driver-avr.c (avr_device_to_sp8): New function. - * config/avr/avr.h (AVR_HAVE_SPH): New define. - (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8. - (avr_device_to_sp8): New prototype. - (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 } - (DRIVER_SELF_SPECS): New define. - * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines: - __AVR_SP8__, __AVR_HAVE_SPH__. - * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of - AVR_HAVE_8BIT_SP to decide if SP_H is present. - (avr_file_start): Ditto. - -2012-03-28 Jakub Jelinek - - PR target/52736 - * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0 - instead of 8 in adjust_address. - -2012-03-27 Aurelien Buhrig - - PR middle-end/51893 - * expmed.c (store_bit_field_1): Fix wordnum value for big-endian - targets. - -2012-03-27 Oleg Endo - - PR target/50751 - * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address): - Rearrange conditional logic. Move displacement address calculations - to ... - (sh_find_mov_disp_adjust): ... this new function. - -2012-03-27 H.J. Lu - - * config/arm/arm.opt (mapcs): Remove MaskExists. - * config/cris/linux.opt (mno-gotplt): Likewise. - * config/i386/i386.opt (mhard-float): Likewise. - (msse4): Likewise. - (mno-sse4): Likewise. - * config/m68k/m68k.opt (mhard-float): Likewise. - * config/mep/mep.op (mcop32): Likewise. - * config/pa/pa-hpux.opt (msio): Likewise. - * config/pa/pa64-hpux.opt (mgnu-ld): Likewise. - * config/picochip/picochip.opt (mlittle): Likewise. - * config/sh/sh.opt (mrenesas): Likewise. - * config/sparc/long-double-switch.opt (mlong-double-128): Likewise. - * config/sparc/sparc.opt (mhard-float): Likewise. - * config/v850/v850.opt (mv850es): Likewise. - * config/vax/vax.opt (mg-float): Likewise. - -2012-03-27 Martin Jambor - - PR middle-end/52693 - * tree-sra.c (sra_modify_assign): Do not call - load_assign_lhs_subreplacements when working with an unscalarizable - region. - -2012-03-27 Uros Bizjak - - PR target/52698 - * config/i386/i386-protos.h (ix86_legitimize_reload_address): - New prototype. - * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define. - * config/i386/i386.c: Include reload.h. - (ix86_legitimize_reload_address): New function. - -2012-03-27 H.J. Lu - - * opth-gen.awk: Allocated a bit for Mask and InverseMask if it - hasn't been allocated. Define a target macro for Mask and - InverseMask if it hasn't been defined. Remove MaskExists handling. - - * doc/options.texi: Remove MaskExists. - -2012-03-27 Chung-Lin Tang - - PR target/52667 - * config/sh/sh.c (find_barrier): Add equality check of last_got - to avoid going above orig insn. Update comments. - -2012-03-27 Richard Guenther - - PR middle-end/52720 - * fold-const.c (try_move_mult_to_index): Handle &x.array more - explicitely. - -2012-03-27 Eric Botcazou - - * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple - of a unit before computing the offset in units. - * expr.c (get_bit_range): Return the null range if the enclosing record - is part of a larger bit field. - -2012-03-27 Tristan Gingold - - * config/ia64/vms.h (CASE_VECTOR_MODE): Define. - * config/ia64/ia64.md: Remove mode in template. - Sign extend operand in expand_simple_binop. - * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use - CASE_VECTOR_MODE instead of TARGET_ILP32. - (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE. - -2012-03-26 Steven Bosscher - - * varasm.c (assemble_external): #if 0 out the new assert from the - previous commit, it breaks the Java and Go front ends. - -2012-03-26 Steven Bosscher - - * toplev.c (check_global_declaration_1): Do not call assemble_external. - * expr.c (emit_block_move_libcall_fn): Likewise. - (clear_storage_libcall_fn): Likewise. - (expand_expr_addr_expr_1): Likewise. - (expand_expr_real_1): Likewise. - * calls.c (rtx_for_function_call): Likewise. - - * varasm.c (assemble_external): Assert this function is only called - during or after expanding to RTL. - -2012-03-26 Martin Jambor - - PR tree-optimization/50052 - * tree-sra.c (tree_non_aligned_mem_p): Removed. - (tree_non_aligned_mem_for_access_p): Likewise. - (build_accesses_from_assign): Removed strict alignment requirements - checks. - (access_precludes_ipa_sra_p): Likewise. - -2012-03-26 Richard Guenther - - PR tree-optimization/52701 - * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always - compute and set the evolution part of PHI nodes. - -2012-03-26 Richard Guenther - - PR tree-optimization/52721 - * tree-vect-stmts.c (vect_init_vector): Handle scalars. - -2012-03-26 Ulrich Weigand - - PR tree-optimization/52686 - * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle - WIDEN_LSHIFT_EXPR. - -2012-03-26 Tristan Gingold - - * config/alpha/vms.h (LINK_SPEC): Simplify. - (STARTFILE_SPEC): Remove -mvms-return-codes handling. - (NAME__MAIN, SYMBOL__MAIN): Remove. - (VMS_DEBUG_MAIN_POINTER): Remove. - * config/ia64/vms.h: Likewise. - * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main - code to vms.c. Call vms_start_function. - * config/ia64/ia64.c (ia64_start_function): Likewise. - * config/vms/vms-protos.h (vms_start_function): Declare. - * config/vms/vms.c (vms_start_function): New function. - * config/vms/vms.h (MATH_LIBRARY): Define. - (VMS_DEBUG_MAIN_POINTER): Define. - -2012-03-26 Eric Botcazou - - PR rtl-optimization/52629 - * reload1.c (count_pseudo): Short-circuit common case. - (count_spilled_pseudo): Return early for pseudos without hard regs. - Assert that the pseudo has got a hard reg before manipulating it. - -2012-03-24 Jan Hubicka - - PR lto/51663 - * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here. - (decide_is_variable_needed): Do not handle toplevel reorder here. - * cgraph.h (varpool_can_remove_if_no_refs): Likewise. - * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars - even at -O0. - -2012-03-24 Eric Botcazou - - * expr.c (optimize_bitfield_assignment_op) : Use str_mode - and str_bitsize instead of more convoluted expressions. - -2012-03-24 Eric Botcazou - - PR target/52610 - * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon. - -2012-03-24 Eric Botcazou - - PR target/52656 - * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto. - -2012-03-23 Martin Jambor - - * tree-sra.c (build_accesses_from_assign): Remove FIXME comment. - -2012-03-23 Richard Guenther - - PR tree-optimization/52678 - * tree-vectorizer.h (struct _stmt_vec_info): Add - loop_phi_evolution_part member. - (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define. - * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize - STMT_VINFO_LOOP_PHI_EVOLUTION_PART. - * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): - Use the cached evolution part and the PHI nodes value from - the loop preheader edge instead of re-analyzing the evolution. - -2012-03-22 Maxim Kuvyrkov - - * config/mips/mips-tables.opt: Update. - * config/mips/mips.md (processor): Add xlp. - * config/mips/mips-cpus.def: Add xlp. - * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from - 5KF for now. - * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp. - * doc/invoke.texi: Mention XLP. - -2012-03-22 Jakub Jelinek - - PR middle-end/52547 - * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars - on any new_local_var_chain vars declared during recursing on - GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body. - -2012-03-22 Uros Bizjak - - * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h - (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h - (ASM_OUTPUT_LOCAL): Ditto. - (ASM_OUTPUT_COMMON): Remove. - * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF. - * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define. - -2012-03-22 Jan Hubicka - - PR middle-end/51737 - * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE - parameter. - * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype. - * ipa-inline-transform.c (save_inline_function_body): Remove - copied clone if needed. - * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update. - -2012-03-22 Richard Guenther - - PR middle-end/52666 - * fold-const.c (fold_ternary_loc): Fix typo. - -2012-03-22 Georg-Johann Lay - - PR target/52496 - * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER. - (unspecv): Add UNSPECV_MEMORY_BARRIER. - (cli_sei): Use unspec_volatile instead of unspec for memory barrier. - (delay_cycles_1, delay_cycles_2): Ditto. - (delay_cycles_3, delay_cycles_4): Ditto. - (nopv, *nopv): Ditto. - (sleep, *sleep): Ditto. - (wdr, *wdr): Ditto. - -2012-03-22 Richard Guenther - - PR tree-optimization/52548 - * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation - because of clobbers. - (prune_clobbered_mems): New function. - (compute_antic_aux): Use it to prune ANTIC_OUT. - (compute_partial_antic_aux): Use it to prune PA_IN. - (compute_avail): Only insert expressions into EXP_GEN that are not - invalidated when translated up to the beginning of the block. - -2012-03-22 Richard Guenther - - PR tree-optimization/52638 - * tree-vect-stmts.c (vect_init_vector_1): New function, split - out from ... - (vect_init_vector): ... here. Handle scalar vector inits. - (vect_get_vec_def_for_operand): Adjust. - (vectorizable_load): Likewise. - -2012-03-22 Uros Bizjak - - * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file. - (alpha*-*-freebsd*): Ditto. - (alpha*-*-netbsd*): Ditto. - (alpha*-*-openbsd*): Ditto. - * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove. - (DWARF2_DEBUGGING_INFO): Remove. - (PREFERRED_DEBUGGING_TYPE): Remove. - (ASM_FINAL_SPEC): Remove. - (IDENT_ASM_OP): Remove. - (ASM_OUTPUT_IDENT): Remove. - (SKIP_ASM_OP): Remove. - (ASM_OUTPUT_SKIP): Remove. - (ALIGN_ASM_OP): Remove. - (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove. - (ASM_OUTPUT_CASE_LABEL): Remove. - (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove. - (COMMON_ASM_OP): Remove. - (ASM_OUTPUT_ALIGNED_COMMON): Remove. - (ASCII_DATA_ASM_OP): Remove. - (READONLY_DATA_SECTION_ASM_OP): Remove. - (INIT_SECTION_ASM_OP): Remove. - (FINI_SECTION_ASM_OP): Remove. - (ASM_SECTION_START_OP): Remove. - (ASM_OUTPUT_SECTION_START_FILE): Remove. - (TARGET_ASM_NAMED_SECTION): Remove. - (TARGET_ASM_SELECT_SECTION): Remove. - (MAKE_DECL_ONE_ONLY): Remove. - (TYPE_ASM_OP): Remove. - (SIZE_ASM_OP): Remove. - (ASM_WEAKEN_LABEL): Remove. - (TYPE_OPERAND_FMT): Remove. - (ASM_DECLARE_RESULT): Remove. - (ASM_DECLARE_OBJECT_NAME): Remove. - (ASM_FINISH_DECLARE_OBJECT): Remove. - (ELF_ASCII_ESCAPES): Remove. - (ELF_STRING_LIMIT): Remove. - (STRING_ASM_OP): Remove. - (ASM_OUTPUT_EXTERNAL): Remove. - (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false. - * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine - before define. - (ASM_DECLARE_FUNCTION_NAME): Ditto. - (ASM_DECLARE_FUNCTION_SIZE): Ditto. - (ASM_GENERATE_INTERNAL_LABEL): Ditto. - (ASM_OUTPUT_SKIP): Ditto. - (READONLY_DATA_SECTION_ASM_OP): Remove. - (USER_LABEL_PREFIX): Remove. - (ASM_OUTPUT_ASCII): Remove. - (ASM_OUTPUT_CASE_LABEL): Remove. - (NO_DOLLAR_IN_LABEL): Undefine. - -2012-03-22 Richard Guenther - - PR tree-optimization/52459 - * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit - PHI insertion for calls. - -2012-03-21 Steven Bosscher - - * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg, - find_sets_in_insn, canonicalize_insn): Split out from ... - (cse_insn): ... here. - (invalidate_from_clobbers): Take an insn instead of the pattern. - -2012-03-21 Oleg Endo - - PR target/52479 - * config/sh/sh-protos.h (sh_fsca_df2int): Remove. - * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove. - * config/sh/sh.md (sindf2, cosdf2): Remove. - -2012-03-21 Kaz Kojima - - PR target/52642 - * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of - prologue for unwinder and profiler. - -2012-03-21 Andreas Tobler - - * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*. - Introduce emul_name to select the right linker emulation for - powerpc64-*-freebsd*. - * configure: Regenerate. - * config.gcc: Add bits to support powerpc64-*-freebsd*. - * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define. - * config/rs6000/freebsd64.h: New file. - * config/rs6000/rs6000.c (rs6000_option_override_internal): Use - POWERPC_FREEBSD. - (rs6000_savres_strategy): Likewise. - (rs6000_savres_routine_name): Likewise. - (rs6000_elf_file_end): Likewise. - * config/rs6000/t-freebsd64: New file. - * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the - rs6000_current_abi for 64-bit FreeBSD to ABI_AIX. - - * config/rs6000/freebsd64.h: Remove duplicated entries from last - commit. - * config/rs6000/t-freebsd64: Likewise. - -2012-03-21 Georg-Johann Lay - - PR rtl-optimization/52543 - PR target/52461 - * config/avr/avr-protos.h (avr_load_lpm): New prototype. - * config/avr/avr.c (avr_mode_dependent_address_p): New function. - (TARGET_MODE_DEPENDENT_ADDRESS_P): New define. - (avr_load_libgcc_p): Restrict to __flash loads. - (avr_out_lpm): Only handle 1-byte loads from __flash. - (avr_load_lpm): New function. - (avr_find_unused_d_reg): Remove. - (avr_out_lpm_no_lpmx): Remove. - (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM. - * config/avr/avr.md (unspec): Add UNSPEC_LPM. - (load__libgcc): Use UNSPEC_LPM instead of MEM. - (load_, load__clobber): New insns. - (mov): For multi-byte move from non-generic - 16-bit address spaces: Expand to load_ resp. - load__clobber. - (load_libgcc): Remove expander. - (split-lpmx): Remove split. - -2012-03-21 Richard Earnshaw - - * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart. - * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg. - All callers changed. - (Fixed_core_reg): New feature. - (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in - disassembly. - * neon-testgen.ml: Handle Fixed_core_reg. - -2012-03-21 Andrew Stubbs - - * config/arm/arm.c (thumb2_reorg): Add complete support - for 16-bit instructions. - * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes. - -2012-03-21 Richard Guenther - - PR tree-optimizer/52636 - * tree-vect-slp.c (vect_get_constant_vectors): Convert constants - to the appropriate type. - -2012-03-21 Richard Guenther - - * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) - dependencies. - * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function, - pass_jump, pass_initial_value_sets and pass_unshare_all_rtl. - * passes.c (init_optimization_passes): Remove pass_init_function, - pass_jump, pass_initial_value_sets and pass_unshare_all_rtl. - * tree-pass.h (pass_init_function): Remove. - (pass_jump): Remove. - (pass_initial_value_sets): Remove. - (pass_unshare_all_rtl): Remove. - * integrate.c (pass_initial_value_sets): Remove. - * emit-rtl.c (pass_unshare_all_rtl): Remove. - * tree.h (init_function_for_compilation): Remove. - * function.c (init_function_for_compilation): Remove. - (pass_init_function): Remove. - * cfgcleanup.c (rest_of_handle_jump): Remove. - (pass_jump): Remove. - -2012-03-20 Jason Merrill - - * tree-streamer-in.c (streamer_alloc_tree): Call - ggc_alloc_zone_cleared_tree_node instead of - ggc_alloc_zone_cleared_tree_node_stat. - -2012-03-20 Jonathan Wakely - - * doc/extend.texi (Template Instantiation): Remove anachronisms. - -2012-03-20 Jakub Jelinek - - PR target/52607 - * config/i386/i386.c (expand_vec_perm_vperm2f128): New function. - (ix86_expand_vec_perm_const_1): Call it. - - * config/i386/i386.c (vselect_insn): New variable. - (init_vselect_insn): New function. - (expand_vselect, expand_vselect_insn): Add testing_p argument. - Call init_vselect_insn if vselect_insn is NULL. Adjust - PATTERN (vselect_insn), instead of creating a new insn each time, - only emit a copy of it if not testing and recog has been successful. - (expand_vec_perm_pshufb, expand_vec_perm_1, - expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust - callers. - - PR target/52607 - * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2. - ("enabled" attribute): Handle avx2 and noavx2 isas. - * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast_1): - New insns. - (vec_dup): Add avx2 =x,x alternative. - (vec_dup splitter): Don't split if TARGET_AVX2. - (*avx_vperm_broadcast_): Don't split V4DFmode if TARGET_AVX2. - For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss. - * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps - for V8SFmode. - (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast_1 - if possible, handle also V8SFmode. - -2012-03-20 Richard Earnshaw - - * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates. - * arm/neon.md (neon_vceq, neon_vcge): Use - reg_or_zero_operand predicate. - (neon_vcle, neon_vclt): Use zero_operand predicate. - -2012-03-20 Jakub Jelinek - - * config/i386/i386.c (ix86_decompose_address) : - If operand isn't UNSPEC, return 0. - -2012-03-20 Richard Guenther - - * tree-pass.h (pass_rtl_eh): Remove. - * except.c (gate_handle_eh): Likewise. - (rest_of_handle_eh): Likewise. - (pass_rtl_eh): Likewise. - (finish_eh_generation): Export. - * except.h (finish_eh_generation): Declare. - * passes.c (init_optimization_passes): Remove pass_rtl_eh. - * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation - after expanding stack alignment. Instead of compacting blocks - call cleanup_cfg. - -2012-03-20 Richard Guenther - - * stor-layout.c (finish_bitfield_representative): Fallback - to conservative maximum size if the padding up to the next - field cannot be computed as a constant. - (finish_bitfield_layout): If we cannot compute the distance - between the start of the bitfield representative and the - bitfield member start a new representative. - * expr.c (get_bit_range): The distance between the start of - the bitfield representative and the bitfield member is zero - if the field offsets are not constants. - -2012-03-20 Tristan Gingold - - * tree.h (enum size_type_kind): Add stk_ prefix to constants, - convert in lowercase. - (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype) - (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust. - * stor-layout.c (sizetype_tab): Adjust. - (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE. - * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last - instead of type_kind_last. - * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int - instead of size_int_kind. - * doc/tm.texi.in (Type Layout): Document SIZETYPE. - * doc/tm.texi: Regenerate. - * defaults.h (SIZETYPE): Provide a default value. - * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int". - (SIZETYPE): Define. - -2012-03-20 Oleg Endo - - * config/sh/sh.md: Use braced string notation where applicable. - -2012-03-19 Uros Bizjak - - * config/i386/i386.md (allocate_stack): Simplify. - -2012-03-19 Uros Bizjak - - * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of - copy_to_mode_reg (Pmode, ...). - (expand_builtin_frame_address): Ditto. - * expr.c (emit_block_move_via_libcall): Ditto. - (set_storage_via_libcall): Ditto. - - * config/i386/i386.c (ix86_expand_movmem): Ditto. - (ix86_expand_setmem): Ditto. - (ix86_trampoline_init): DItto. - * config/i386/i386.md (cmpstrnsi): Ditto. - -2012-03-19 Sandra Loosemore - - * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete. - * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL. - * doc/invoke.texi (Option Summary): Remove -madjust-unroll. - (SH Options): Likewise. - -2012-03-19 Uros Bizjak - - * config/i386/i386.c (get_thread_pointer): Add tp_mode argument. - Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode. - (legitimize_tls_address) : Always generate - DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT. - (ix86_decompose_address): Allow zero extended UNSPEC_TP references. - - Revert: - 2012-03-13 Uros Bizjak - - * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New. - * config/i386/i386.c (ix86_decompose_address): Use - TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses. - (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load - thread pointer to a register. - - Revert: - 2012-03-10 H.J. Lu - - * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg) - if Pmode != word_mode. - (legitimize_tls_address): Call gen_tls_initial_exec_x32 if - Pmode == SImode for TARGET_X32. - * config/i386/i386.md (UNSPEC_TLS_IE_X32): New. - (tls_initial_exec_x32): Likewise. - -2012-03-19 Oleg Endo - - PR target/50751 - * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P, - DISP_ADDR_OFFSET): New macros. - * config/sh/sh.c (sh_address_cost): Add SH2A special case. - (sh_legitimate_index_p): Allow QImode displacements for non-SH2A. - (sh_legitimize_address): Add QImode displacement handling. - (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode - vector subregs. - (sh_secondary_reload): Add QImode displacement handling. - * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate. - * config/sh/constraints.md (K04, Snd, Sdd): New constraints. - * config/sh/sh.md (extendqisi2): Remove constraints from expander. - (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict - to register operands only. - (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns. - (extendqihi2): Change insn to expander. - (*extendqihi2_compact_reg): New insn. - (movqi_i, movqi): Replace with ... - (movqi, *movqi_reg_reg, *movqi_store_mem_disp12, - *movqi_load_mem_disp, *movqi_load_mem_disp): ... these. - Add new peepholes for QImode displacement addressing. - -2012-03-19 Paolo Carlini - - PR c++/14710 - * doc/invoke.texi: Document -Wuseless-cast. - -2012-03-19 Eric Botcazou - - * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move. - * tree.h (handled_component_p): Reorder cases. - * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do - not initialize unsignedp. - (loc_list_from_tree): Likewise. - (fortran_common): Likewise. - * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise. - -2012-03-19 Uros Bizjak - - * config/i386/i386.c (ix86_expand_prologue) : Use Pmode - mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode. - (ix86_expand_split_stack_prologue): Use ix86_gen_add3. - (ix86_split_long_move): Ditto. - (legitimize_tls_address): Use ix86_gen_sub3. - (construct_plt_address): Assert that Pmode == DImode. - -2012-03-18 Uros Bizjak - - * config/i386/i386.md: Remove empty predicates and/or constraints. - * config/i386/sync.md: Ditto. - * config/i386/sse.md: Ditto. - * config/i386/mmx.md: Ditto. - * config/i386/pentium.md: Ditto. - * config/i386/athlon.md: Ditto. - -2012-03-16 Richard Guenther - - PR tree-optimization/52603 - * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify - comment. - - Revert - 2012-03-14 Richard Guenther - - PR tree-optimization/52571 - * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move - flag_section_anchors check ... - (vect_can_force_dr_alignment_p): ... here. - -2012-03-16 Martin Jambor - - * expr.c (expand_expr_real_1): Handle misaligned scalar reads from - memory through MEM_REFs by calling extract_bit_field. - -2012-03-16 Richard Guenther - - * fold-const.c (native_interpret_expr): Also support POINTER_TYPE - and REFERENCE_TYPE interpretations. - (can_native_interpret_type_p): New function. - (fold_ternary_loc): Use native encode/interpret to fold - BIT_FIELD_REFs of constants. - -2012-03-16 Richard Guenther - - PR middle-end/52584 - * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs - of vector constants and constructors. - -2012-03-16 Richard Guenther - - * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use - VIEW_CONVERT_EXPR to convert constants. - (vect_is_simple_use): Treat all constants as vec_constant_def. - -2012-03-16 Richard Guenther - Kai Tietz - - PR middle-end/48814 - * gimplify.c (gimplify_self_mod_expr): Evaluate postfix - side-effects completely in the pre-queue and use a temporary - for the result. - -2012-03-16 Richard Guenther - - * stor-layout.c (finish_bitfield_representative): Fall back - to the conservative maximum size if we cannot compute the - size of the tail padding. - -2012-03-16 Tristan Gingold - - * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define - __CRTL_VER and __VMS_VER. - * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver - and vms_c_get_vms_ver. - * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New - functions. - * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER) - (VMS_DEFAULT_VMS_VER): Define. - * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER) - (VMS_DEFAULT_VMS_VER): Define. - -2012-03-16 Richard Guenther - - * tree-vect-loop.c (get_initial_def_for_induction): Use - build_constructor directly. - * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use - build_vector_from_val. - * tree.c (build_vector_from_val): Avoid creating a constructor - first when we want a constant vector. - -2012-03-16 Rainer Orth - - * doc/install.texi (Specific, *-*-solaris2*): Improve wording. - -2012-03-16 Richard Guenther - - * tree.h (TREE_VECTOR_CST_ELTS): Remove. - (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines. - (struct tree_vector): Remove elements member, add variable size - elts array member. - (build_vector_stat): Declare. - (build_vector): Define in terms of build_vector_stat. - * tree.c (build_vector): Rename to ... - (build_vector_stat): ... this. Take array of trees as parameter. - (build_vector_from_ctor): Adjust. - (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr, - initializer_zerop): Adjust. - * cfgexpand.c (expand_debug_expr): Likewise. - * expr.c (categorize_ctor_elements_1, expand_expr_real_1, - const_vector_from_tree): Likewise. - * fold-const.c (const_binop, operand_equal_p, native_encode_vector, - native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array, - fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise. - * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR. - (lto_input_ts_vector_tree_pointers): Adjust. - * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR. - (write_ts_vector_tree_pointers): Adjust. - * varasm.c (const_hash_1, compare_constant, copy_constant, - output_constant): Adjust. - * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust. - * print-tree.c (print_node): Adjust. - * tree-pretty-print.c (dump_generic_node): Adjust. - * tree-vect-generic.c (uniform_vector_p, vector_element, - lower_vec_perm): Adjust. - * tree-vect-loop.c (get_initial_def_for_reduction): Adjust. - * tree-vect-slp.c (vect_get_constant_vectors, - vect_transform_slp_perm_load): Adjust. - * tree-vect-stmts.c (vect_gen_perm_mask): Adjust. - * expmed.c (make_tree): Adjust. - * config/i386/i386.c (ix86_expand_builtin): Adjust. - * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface - and implementation. - (sparc_fold_builtin): Adjust. - -2012-03-16 Tristan Gingold - - * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file. - * config/vms/vms-stdint.h: New file. - -2012-03-16 Tristan Gingold - - * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*) - (ia64-hp-*vms*): Replaced by ... - (*-*-*vms*): ... This new entry. - -2012-03-15 Jakub Jelinek - - PR target/52568 - * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function. - (ix86_expand_vec_perm_const_1): Use it. - - PR target/52568 - * config/i386/sse.md (UNSPEC_VPERMDF): Remove. - (avx2_permv4df): Remove. - (avx2_permv4di): Macroize into... - (avx2_perm): ... this using VI8F_256 iterator. - (avx2_permv4di_1): Macroize into... - (avx2_perm_1): ... this using VI8F_256 iterator. - -2012-03-15 Ulrich Weigand - - * combine.c (apply_distributive_law): Do not distribute SUBREG. - -2012-03-15 Ira Rosen - Ulrich Weigand - - * tree-vect-patterns.c (widened_name_p): Rename to ... - (type_conversion_p): ... this. Add new argument to determine - if it's a promotion or demotion operation. Check for - CONVERT_EXPR_CODE_P instead of NOP_EXPR. - (vect_recog_dot_prod_pattern): Call type_conversion_p instead - widened_name_p. - (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern, - vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern): - Likewise. - (vect_recog_mixed_size_cond_pattern): Likewise and allow - non-constant then and else clauses. - -2012-03-15 Ira Rosen - Ulrich Weigand - - * tree-vectorizer.h (vect_pattern_recog): Add new argument. - * tree-vect-loop.c (vect_analyze_loop_2): Update call to - vect_pattern_recog. - * tree-vect-patterns.c (widened_name_p): Pass basic block - info to vect_is_simple_use. - (vect_recog_dot_prod_pattern): Fail for basic blocks. - (vect_recog_widen_sum_pattern): Likewise. - (vect_handle_widen_op_by_const): Support basic blocks. - (vect_operation_fits_smaller_type, - vect_recog_over_widening_pattern): Likewise. - (vect_recog_vector_vector_shift_pattern): Support basic blocks. - Update call to vect_is_simple_use. - (vect_recog_mixed_size_cond_pattern): Support basic blocks. - Add printing. - (check_bool_pattern): Add an argument, update call to - vect_is_simple_use and the recursive calls. - (vect_recog_bool_pattern): Update relevant function calls. - Add printing. - (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info. - (vect_pattern_recog_1): Check for reduction only in loops. - (vect_pattern_recog): Add new argument. Support basic blocks. - * tree-vect-stmts.c (vectorizable_conversion): Pass basic block - info to vect_is_simple_use_1. - * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks. - (vect_slp_analyze_bb_1): Call vect_pattern_recog. - -2012-03-15 Jakub Jelinek - Andrew Pinski - - PR middle-end/52592 - * builtins.c (expand_builtin_int_roundingfn_2): If expanding - BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}* - calls instead of __builtin_ir{int,ound}*. - -2012-03-15 Bernhard Reutner-Fischer - - * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update - documentation. - -2012-03-15 Ramana Radhakrishnan - - * config.gcc (target_type_format_char): New. Document it. Set it for - arm*-*-* . - * configure.ac (gnu_unique_option): Use target_type_format_char - in test. Comment rationale. - * configure: Regenerate . - -2012-03-15 Jakub Jelinek - - PR tree-optimization/52267 - * tree-vrp.c (masked_increment): New function. - (register_edge_assert_for_2): Derive ASSERT_EXPRs - from (X & CST1) cmp CST2 tests. - -2012-03-15 Richard Guenther - - PR middle-end/52580 - * tree-data-ref.c (subscript_dependence_tester_1): Check - all dimensions for non-conflicting access functions. - -2012-03-15 Manuel López-Ibáñez - - PR c++/44783 - * doc/invoke.texi [C++ Language Options]: Document - -ftemplate-backtrace-limit. - -2012-03-15 Tristan Gingold - - * c-parser.c (c_parser_parameter_declaration): Handle #pragma - before a parameter. - -2012-03-15 Tristan Gingold - - * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to - use DW_OP_call_frame_cfa. - -2012-03-14 H.J. Lu - - PR target/50797 - * config/i386/i386-opts.h (pmode): New. - * config/i386/i386.c (ix86_option_override_internal): Properly - check and set ix86_pmode. - * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT. - * config/i386/i386.opt (maddress-mode=): New. - * doc/invoke.texi: Document -maddress-mode=short|long for x86. - -2012-03-14 Rainer Orth - - * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling. - (dwarf2out_do_cfi_asm): Likewise. - * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO - handling. - (add_data_member_location_attribute): Likewise. - (gen_array_type_die): Likewise. - (gen_subprogram_die): Likewise. - (gen_producer_string): Likewise. - * sdbout.c (sdbout_begin_prologue): Declare unconditionally. - Remove MIPS_DEBUGGING_INFO handling. - (sdb_debug_hooks): Likewise. - (sdbout_begin_block): Likewise. - (sdbout_end_block): Likewise. - (sdbout_begin_prologue): Likewise. - (sdbout_start_source_file): Likewise. - (sdbout_end_source_file): Likewise. - (sdbout_init): Likewise. - * system.h (MIPS_DEBUGGING_INFO): Poison. - -2012-03-14 Rainer Orth - - * config/alpha/alpha.c [HAVE_STAMP_H]: Remove. - (alpha_file_start) [MS_STAMP]: Remove. - - * config/alpha/elf.h (TARGET_GAS): Remove. - * config/alpha/freebsd.h (TARGET_DEFAULT): Remove. - * config/alpha/linux.h (TARGET_DEFAULT): Remove. - * config/alpha/netbsd.h (TARGET_DEFAULT): Remove. - * config/alpha/vms.h (TARGET_DEFAULT): Remove. - * config.gcc (alpha*-*-linux*): Remove target_cpu_default. - (alpha*-*-freebsd*): Likewise. - (alpha*-*-netbsd*): Likewise. - (alpha*-*-openbsd*): Likewise. - (alpha*-*-*): Remove target_cpu_default2. - * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS - handling. - * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove. - (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove. - * config/alpha/alpha.c (print_operand): Always assume - TARGET_AS_SLASH_BEFORE_SUFFIX. - * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"): - Remove TARGET_AS_CAN_SUBTRACT_LABELS. - ("*builtin_setjmp_receiver_er_1"): Remove. - * config/alpha/alpha.opt (malpha-as): Remove. - (mgas): Ignore. - * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove - -malpha-as, -mgas. - Remove DEC Unix reference. - - * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove. - (EXTENDED_COFF): Remove. - * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef. - (EXTENDED_COFF): Don't undef. - * config/alpha/alpha.c (alpha_file_start): Always assume - OBJECT_FORMAT_ELF. - Don't set targetm.asm_file_start_file_directive. - [!OBJECT_FORMAT_ELF]: Remove. - (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove. - - * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove. - (DBX_DEBUGGING_INFO): Remove. - (MIPS_DEBUGGING_INFO): Remove. - (PREFERRED_DEBUGGING_TYPE): Remove. - (DBX_OUTPUT_SOURCE_LINE): Remove. - (SDB_OUTPUT_SOURCE_LINE): Remove. - (DBX_CONTIN_LENGTH): Remove. - (NO_DBX_FUNCTION_END): Remove. - (ASM_STABS_OP): Remove. - (ASM_STABN_OP): Remove. - (ASM_STABD_OP): Remove. - (SDB_ALLOW_FORWARD_REFERENCES): Remove. - (SDB_ALLOW_UNKNOWN_REFERENCES): Remove. - (PUT_SDB_DEF): Remove. - (PUT_SDB_PLAIN_DEF): Remove. - (PUT_SDB_TYPE): Remove. - (sdb_label_count): Remove. - (PUT_SDB_BLOCK_START): Remove. - (PUT_SDB_BLOCK_END): Remove. - (PUT_SDB_FUNCTION_START): Remove. - (PUT_SDB_FUNCTION_END): Remove. - (PUT_SDB_EPILOGUE_END): Remove. - * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef. - (MIPS_DEBUGGING_INFO): Don't undef. - (DBX_DEBUGGING_INFO): Don't undef. - * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef. - (MIPS_DEBUGGING_INFO): Don't undef. - (DBX_DEBUGGING_INFO): Don't undef. - * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove. - * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG - handling. - (alpha_start_function): Likewise. - (sdb_label_count): Remove. - (alpha_output_filename): Remove DBX_DEBUG handling. - (alpha_file_start): Likewise. - -2012-03-14 Rainer Orth - - * config.gcc (enable_obsolete): Remove *-*-solaris2.8*. - (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported. - (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove - Solaris 8 support. - * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*. - (ld_tls_support): Remove Solaris 8 references. - (lwp_dir, lwp_spec): Remove support for alternate thread library. - * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests. - * configure: Regenerate. - * config.in: Regenerate. - - * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC. - * config/i386/sol2.h: Remove Solaris 8 references. - - * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ... - (i?86-*-solaris2.9): ... this. - Remove Solaris 8 references. - (Specific, *-*-solaris2*): Document Solaris 8 removal. - Remove Solaris 8 references. - -2012-03-14 Rainer Orth - - * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5. - (mips-sgi-irix6.5*): Remove. - * config.host (mips-sgi-irix*): Remove. - * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*. - (set_have_as_tls): Remove *-*-irix6*. - (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*. - * configure: Regenerate. - - * config/mips/iris6.h: Remove. - * config/mips/iris6.opt: Remove. - * config/mips/t-irix6: Remove. - - * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling. - (TARGET_IRIX6): Remove. - (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling. - Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C. - * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6 - handling. - (mips_file_start): Likewise. - * config/mips/mips-protos.h (irix_asm_output_align): Remove. - - * config/mips/driver-native.c [__sgi__]: Remove. - (host_detect_local_cpu) [__sgi__]: Remove. - - * config/mips/gnu-user.h: Remove iris5.h reference. - - * config/mips/mips-modes.def: Remove IRIX 6 reference. - * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove. - * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]: - Remove. - - * gcc.c (main): Move asm_debug initialization ... - (asm_debug): ... here. - - * ginclude/stddef.h (__STDDEF_H__): Don't define. - - * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove. - * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison. - * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove. - (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove. - [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove. - * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): - Remove. - * doc/tm.texi: Regenerate. - - * doc/invoke.texi (Debugging Options, -gdwarf-): Remove - IRIX 6 reference. - (MIPS Options, -march): Remove IRIX reference. - * doc/install.texi (Binaries, SGI IRIX): Remove. - (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest - of section. - * doc/trouble.texi (Interoperation): Remove -lgl_s handling. - -2012-03-14 Martin Jambor - - * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE - when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases. - (expand_expr_real_1): Do not handle misalignment if modifier is - EXPAND_WRITE. - -2012-03-14 Richard Guenther - - PR middle-end/52584 - * tree-vect-generic.c (type_for_widest_vector_mode): Take - element type instead of mode, use build_vector_type_for_mode - instead of the langhook, build a vector of proper signedness. - (expand_vector_operations_1): Adjust. - -2012-03-14 Richard Guenther - - PR middle-end/52582 - * gimple-fold.c (canonicalize_constructor_val): Make sure we have - a cgraph node for a FUNCTION_DECL that comes from a constructor. - (gimple_get_virt_method_for_binfo): Likewise. - -2012-03-14 Richard Guenther - - PR tree-optimization/52571 - * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move - flag_section_anchors check ... - (vect_can_force_dr_alignment_p): ... here. Do not re-align - DECL_COMMON variables. - -2012-03-14 Richard Guenther - - * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define. - * stor-layout.c (start_bitfield_representative): New function. - (finish_bitfield_representative): Likewise. - (finish_bitfield_layout): Likewise. - (finish_record_layout): Call finish_bitfield_layout. - * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER - for QUAL_UNION_TYPE fields. - * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers): - Stream DECL_BIT_FIELD_REPRESENTATIVE. - * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise. - - PR middle-end/52080 - PR middle-end/52097 - PR middle-end/48124 - * expr.c (get_bit_range): Unconditionally extract bitrange - from DECL_BIT_FIELD_REPRESENTATIVE. - (expand_assignment): Adjust call to get_bit_range. - -2012-03-14 Richard Guenther - - PR middle-end/52578 - * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if - the outermost conversion is a sign-change only. - (fold_binary_loc): Disregard widening and sign-changing - conversions when we determine if two variables are equal - for reassociation. - * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to - (T1)x if the outermost conversion is a sign-change only. - -2012-03-14 Uros Bizjak - - Revert: - 2012-03-14 Uros Bizjak - - * config/i386/predicates.md (constant_call_address_operand): Declare - as special predicate. Update all uses. - -2012-03-13 Jakub Jelinek - - PR c/52577 - * c-parser.c (c_parser_postfix_expression) - : Call mark_exp_read on argument values. - - * config/i386/smmintrin.h: Avoid /* within a comment. - * config/i386/nmmintrin.h: Likewise. - -2012-03-13 Uros Bizjak - - * config/i386/i386.md (xbegin): Remove constraint from expander. - -2012-03-13 Uros Bizjak - - * config/i386/predicates.md (constant_call_address_operand): Declare - as special predicate. Update all uses. - * config/i386/i386.md: Remove mode from constant_call_address_operand - predicates. - * config/i386/i386.c (ix86_output_call_insn): Call - constant_call_address_operand with VOIDmode. - -2012-03-13 Uros Bizjak - - * config/i386/i386.c (ix86_decompose_address): Handle subregs of - AND zero extended address correctly. - -2012-03-13 Uros Bizjak - - * config/i386/predicates.md (tls_symbolic_operand): Declare as - special predicate. - (tls_modbase_operand): Ditto. - * config/i386/i386.md: Remove mode from tls_symbolic_operand and - tls_modbase_operand predicates. - -2012-03-13 Martin Jambor - - * expr.c (expand_assignment): Handle misaligned scalar writes to - memory through top-level MEM_REFs by calling store_bit_field. - -2012-03-13 Richard Guenther - - PR middle-end/52134 - * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y - if Y is a constant multiple of 1 << CST. - -2012-03-13 Georg-Johann Lay - - PR target/52488 - * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack - offset (size) to a value the insns can deal with. - (expand_epilogue): Ditto. - -2012-03-13 Matthew Gretton-Dann - - * config/arm/neon.ml (ops): Fixup expected instructions for - unsigned vector compares. - -2012-03-13 Uros Bizjak - - * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg) - addresses only when %reg is not in word mode. - -2012-03-13 Rainer Orth - - * config/microblaze/microblaze.md: Fix typo. - * tree-if-conv.c: Likewise. - * tree-vect-patterns.c: Likewise. - -2012-03-13 Rainer Orth - - * config.gcc (extra_passes): Remove. - * configure.ac (extra_passes): Don't substitute. - * configure: Regenerate. - * Makefile.in (EXTRA_PASSES): Remove. - (GCC_PASSES): Remove $(EXTRA_PASSES). - (MOSTLYCLEANFILES): Likewise. - (native): Likewise. - (install-common): Likewise. - -2012-03-13 Uros Bizjak - - * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New. - * config/i386/i386.c (ix86_decompose_address): Use - TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses. - (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load - thread pointer to a register. - -2012-03-12 H.J. Lu - - * config/i386/i386.md (*tls_global_dynamic_64_): Remove :P - on tls_symbolic_operand. - (tls_global_dynamic_64_): Likewise. - -2012-03-12 Georg-Johann Lay - - PR other/52545 - * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use - SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE. - -2012-03-12 Georg-Johann Lay - - PR target/52499 - * config/avr/avr.c (avr_mode_code_base_reg_class): Change return - type from reg_class_t to enum reg_class. - * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto. - -2012-03-12 Andrew Pinski - - * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function. - (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges. - (value_replacement): Likewise. - (empty_block_p): Check also if the PHIs for the block are empty. - -2012-03-12 Georg-Johann Lay - - PR target/52148 - * config/avr/avr.c (avr_out_movmem): Fix typo in output template - for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in - r184615 from 2012-02-28. - -2012-03-12 H.J. Lu - - * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New. - (ix86_gen_tls_local_dynamic_base_64): Likewise. - (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64 - and ix86_gen_tls_local_dynamic_base_64. - (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and - ix86_gen_tls_local_dynamic_base_64. - * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ... - (*tls_global_dynamic_64_): This. - (tls_global_dynamic_64): Renamed to ... - (tls_global_dynamic_64_): This. - (*tls_local_dynamic_base_64): Renamed to ... - (*tls_local_dynamic_base_64_): This. - (tls_local_dynamic_base_64): Renamed to ... - (tls_local_dynamic_base_64_): This. - -2012-03-12 H.J. Lu - - * config/i386/i386.c (ix86_option_override_internal): Properly - set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode, - instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3, - ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker, - ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range. - * config/i386/sse.md (sse3_monitor64): Renamed to ... - (sse3_monitor64_): This. - -2012-03-12 Tristan Gingold - - * config/ia64/ia64.c (ia64_function_arg_1): Move code around. - (ia64_function_arg_advance): Ditto. - -2012-03-12 Rainer Orth - - * config.gcc (mips*-*-openbsd*): Remove. - * config/mips/openbsd.h: Remove. - * config/mips/sdb.h: Remove. - - * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove. - * config/mips/mips.c (sdb_label_count): Remove. - (mips_debugger_offset): Remove #if 0 code. - (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove. - * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef. - -2012-03-12 Rainer Orth - - * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update - binutils reference. - (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference. - Update binutils references. - (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11. - Update binutils reference. - Update Sun as/GNU ld caveat. - Document binutils largefile requirement for LTO plugin. - Remove reference to alternate libpthread. - -2012-03-12 Rainer Orth - - * config.gcc (alpha*-dec-osf5.1*): Remove. - * config.host (alpha*-dec-osf*): Remove. - * configure.ac (*-*-osf*): Remove. - (alpha*-dec-osf*): Remove. - * configure: Regenerate. - - * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt, - config/alpha/va_list.h, config/alpha/x-osf: Remove. - - * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove. - * config/alpha/alpha.c (struct machine_function): Update comment. - (alpha_start_function): Remove Tru64 UNIX as handling for - max_frame_size. - * config/alpha/alpha.md ("exception_receiver"): Remove - TARGET_LD_BUGGY_LDGP. - ("*exception_receiver_2"): Likewise. - * except.c (finish_eh_generation): Remove Tru64 reference. - * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST. - * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison. - * target.def (handle_pragma_extern_prefix): Remove. - - * Makefile.in (mips-tfile.o-warn): Remove. - (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o. - (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove. - * mips-tdump.c, mips-tfile.c: Remove. - - * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma - extern_prefix. - * doc/install.texi (Binaries): Remove Tru64 UNIX reference. - (Specific, alpha*-dec-osf5.1): Note removal. - * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): - Remove. - * doc/tm.texi: Regenerate. - * doc/trouble.texi (Cross-Compiler Problems): Remove. - -2012-03-12 Richard Guenther - - * config/arm/arm.c (neon_dereference_pointer): Do not call - covert during RTL expansion. - -2012-03-12 Tristan Gingold - - * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS - Options. Mention -mpointer-size. - -2012-03-12 Richard Guenther - - * config/alpha/alpha.c (alpha_gimplify_va_arg): Use - build_nonstandard_integer_type. - -2012-03-12 Richard Guenther - - * tree.c (signed_or_unsigned_type_for): Use - build_nonstandard_integer_type. - (signed_type_for): Adjust documentation. - (unsigned_type_for): Likewise. - * tree-pretty-print.c (dump_generic_node): Use standard names - for non-standard integer types if available. - -2012-03-12 Tristan Gingold - - * config/vms/vms.opt: Add vms-opts.h header. - (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64 - target mask. - (-mvms-return-codes): Document. - (-mpointer-size): New option. - (vms_pointer_size): Add enumeration. - * config/vms/vms-opts.h: New file. - * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define - __INITIAL_POINTER_SIZE. - (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition. - (C_COMMON_OVERRIDE_OPTIONS): Define. - (DWARF2_ADDR_SIZE): Define. - * config/vms/vms.c (vms_patch_builtins): Adjust condition. - * config/vms/vms-protos.h (vms_c_common_override_options): - New prototype. - * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma - if -mno-pointer-size. - (vms_c_common_override_options): New function. - * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64. - * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64. - (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64 - and flag_vms_pointer_size. - (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size. - * config.gcc (*-*-*vms*): Define xm_file. - (alpha*-dec-*vms*): Do not define xm_file. - (alpha64-dec-*vms*): Remove. - (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file - and tmake_file. - -2012-03-12 Jakub Jelinek - - PR tree-optimization/51721 - * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar - if (int) unsvar cmp CST. - -2012-03-12 Richard Guenther - - * tree-sra.c (create_access_replacement): Only rename the replacement - if we can rewrite it into SSA form. Properly mark register typed - replacements that we cannot rewrite with TREE_ADDRESSABLE. - * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification - for aggregate or BLKmode results. - -2012-03-12 Jakub Jelinek - - PR tree-optimization/52533 - * tree-vrp.c (register_edge_assert_for_2): Use double_int - type for mask, only handle shifts by non-zero in-range - shift count, for LE_EXPR and GT_EXPR if new_val is - maximum, don't add the assertion. - -2012-02-12 Kirill Yukhin - - * doc/invoke.texi: Document -mrtm option. - * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New. - (OPTION_MASK_ISA_RTM_UNSET): Ditto. - (ix86_handle_option): Handle OPT_mrtm. - * config.gcc (i[34567]86-*-*): Add rtmintrin.h and - xtestintrin.h. - (x86_64-*-*): Ditto. - * i386-builtin-types.def (INT_FTYPE_VOID): New. - * config/i386/i386-c.c (ix86_target_macros_internal): Define - __RTM__ if needed. - (ix86_target_string): Define -mrtm option. - (PTA_RTM): New. - (ix86_option_override_internal): Extend "corei7-avx" with RTM option. - Handle new option. - (ix86_valid_target_attribute_inner_p): Add OPT_mrtm. - (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND, - IX86_BUILTIN_XTEST. - (bdesc_special_args): Ditto. - (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT. - (ix86_expand_special_args_builtin): Handle new built-in type. - (ix86_expand_builtin): Handle XABORT instruction. - * config/i386/i386.h (TARGET_RTM): New. - * config/i386/i386.md (UNSPECV_XBEGIN): New. - (UNSPECV_XEND): Ditto. - (UNSPECV_XABORT): Ditto. - (UNSPECV_XTEST): Ditto. - (xbegin): Ditto. - (xbegin_1): Ditto. - (xend): Ditto. - (xabort): Ditto - (xtest): Ditto. - (xtest_1): Ditto. - * config/i386/i386.opt (mrtm): New. - * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h. - * config/i386/rtmintrin.h: New header. - * config/i386/xtestintrin.h: Ditto. - -2012-03-12 Tristan Gingold - - * ginclude/stddef.h: Adjust previous patch. - Use __VMS__ instead of VMS. - -2012-03-12 Uros Bizjak - - * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2): - Also convert sequences with CC setting arithmetic instruction. - -2012-03-11 Sandra Loosemore - - * doc/invoke.texi (Option Summary): Move -no-integrated-cpp - from C Language Options to Preprocessor Options. - (C Dialect Options): Move -no-integrated-cpp documentation - from here... - (Preprocessor Options): ...to here. Rewrite the description - so it makes more sense, and remove discussion of merging front ends. - -2012-03-11 H.J. Lu - - * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size - needed for loop. - (ix86_expand_setmem): Likewise. - -2012-03-11 Uros Bizjak - - * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using - convert_to_mode. - -2012-03-11 H.J. Lu - - * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if - ptr_mode == SImode. Replace DImode with Pmode or ptr_mode. - -2012-03-11 H.J. Lu - - * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode. - -2012-03-11 H.J. Lu - - * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of - TARGET_64BIT. - -2012-03-11 H.J. Lu - Uros Bizjak - - * config/i386/predicates.md (call_insn_operand): Allow - constant_call_address_operand in Pmode only. - (sibcall_insn_operand): Ditto. - * config/i386/i386.md (*call): Use W mode iterator instead of P mode. - (*call_vzeroupper): Ditto. - (*sibcall): Ditto. - (*sibcall_vzeroupper): Ditto. - (*call_value): Ditto. - (*call_value_vzeroupper): Ditto. - (*sibcall_value): Ditto. - (*sibcall_value_vzeroupper): Ditto. - (*indirect_jump): Ditto. - (*tablejump_1): Ditto. - (indirect_jump): Convert memory address to word mode for TARGET_X32. - (tablejump): Ditto. - * config/i386/i386.c (ix86_expand_call): Convert indirect operands - to word mode. - -2012-03-11 Oleg Endo - - PR target/51244 - * config/sh/sh.md (movnegt): Expand into respective insns immediately. - Use movrt_negc instead of negc pattern for non-SH2A. - (*movnegt): Remove. - (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits. - -2012-03-10 H.J. Lu - - * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg) - if Pmode != word_mode. - (legitimize_tls_address): Call gen_tls_initial_exec_x32 if - Pmode == SImode for TARGET_X32. - * config/i386/i386.md (UNSPEC_TLS_IE_X32): New. - (tls_initial_exec_x32): Likewise. - -2012-03-10 Chung-Lin Tang - - PR rtl-optimization/52528 - * combine.c (can_combine_p): Add setting of subst_low_luid - before call to expand_field_assignment(). - -2012-03-09 Sandra Loosemore - - * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld", - and related program names. - -2012-03-09 Sandra Loosemore - - * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF". - -2012-03-09 Uros Bizjak - - PR target/52530 - * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier. - (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback - to set code to 'q'. - * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec. - (*movdi_internal_rex64): Use %E operand modifier for lea. - (*movsi_internal): Ditto. - (*lea_1): Ditto. - (*lea_2): Ditto. - (*lea_{3,4,5,6}_zext): Ditto. - (*tls_global_dynamic_32_gnu): Ditto. - (*tls_global_dynamic_64): Ditto. - (*tls_dynamic_gnu2_lea_32): Ditto. - (*tls_dynamic_gnu2_lea_64): Ditto. - (pro_epilogue_adjust_stack__add): Ditto. - -2012-03-09 Michael Meissner - - * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not - redefine to be NULL if the current bit-size is different from the - configured bit-size. - - * config/rs6000/rs6000.c (rs6000_option_override_internal): If the - cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to - set the default tuning. Add asserts to make sure the cpu and tune - indexes are defined. Fix tests for cpu/tune index to use >= 0 to - test whether the index is set, instead of > 0. - (rs6000_file_start): Do not reset the default cpu if the current - bit-size is different from the configured bit-size. - -2012-03-09 Tristan Gingold - - * config/vms/vms-crtlmap.map: Add comments. - Add entries needed to build Ada RTS. - -2012-03-09 Tristan Gingold - - * ginclude/stddef.h: Do not define __size_t on VMS. - -2012-03-09 Tristan Gingold - - * c-tree.h (c_default_pointer_mode): New variable. - * c-decl.c (c_default_pointer_mode): New variable. - (c_build_pointer_type): New function. - (grokdeclarator): Call c_build_pointer_type instead - of build_pointer_type. - - * config/vms/vms-c.c: Include c-tree.h - (saved_pointer_mode): New variable. - (handle_pragma_pointer_size): New function. - (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise. - (vms_c_register_pragma): Register __pointer_size and - __required_pointer_size pragmas. - -2012-03-09 Tristan Gingold - - * config/vms/vms-c.c (vms_construct_include_filename): New function. - (vms_c_register_includes): Reference it. - -2012-03-09 Andrew Pinski - - PR middle-end/51988 - * tree-ssa-phiopt.c: Include tree-pretty-print.h for - print_generic_expr. - (tree_ssa_phiopt_worker): Go through all the PHIs for - value_replacement instead of just the singleton one. - (value_replacement): Change return type to int. Return 0 instead of - false. - Allow the middle basic block to contain more than just the defining - statement. - Handle non empty middle basic blocks. - * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h. - -2012-03-09 Jiangning Liu - - * tree-scalar-evolution (interpret_rhs_expr): generate chrec for - array reference and component reference. - (analyze_scalar_evolution_for_address_of): New. - -2012-03-08 Jie Zhang - - PR target/49862 - * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings. - (hwloop_pattern_reg): Fix set but not used warning. - (bfin_reorg_loops): Remove unused parameter. - (bfin_reorg): Update use of bfin_reorg_loops. - -2012-03-08 H.J. Lu - - * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode - with integer parameters in registers. - (gen_push): Push register in word_mode instead of Pmode. - (ix86_emit_save_regs): Likewise. - (ix86_emit_save_regs_using_mov): Save integer registers in word_mode. - (gen_pop): Pop register in word_mode instead of Pmode. - (ix86_emit_restore_regs_using_pop): Likewise. - (ix86_expand_prologue): Replace Pmode with word_mode for push - immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and - restore RAX and R10 in word_mode. - (ix86_emit_restore_regs_using_mov): Restore integer registers - in word_mode. - (ix86_expand_split_stack_prologue): Save R10_REG and restore in - word_mode. - (ix86_split_to_parts): Use word_mode with PUT_MODE for push. - (ix86_split_long_move): Likewise. - * config/i386/i386.md (W): New. - (*push2_prologue): Replace :P with :W. - (*pop1): Likewise. - (*pop1_epilogue): Likewise. - (push/pop peephole2): Use word_mode scratch registers. - -2012-03-08 Uros Bizjak - - * config/i386/predicates.md (indirect_branch_operand): Simplify. - -2012-03-08 Georg-Johann Lay - - * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative - for constants in [-63,63]. - -2012-03-08 Uros Bizjak - - PR target/52530 - Revert: - 2012-03-04 H.J. Lu - - * config/i386/i386.c (ix86_print_operand_address): Only handle - zero-extended DImode addresses. - -2012-03-08 Rainer Orth - - * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label. - * configure: Regenerate. - -2012-03-08 Georg-Johann Lay - - PR target/52496 - * config/avr/avr.c (avr_mem_clobber): New static function. - (avr_expand_delay_cycles): Add memory clobber operand to - delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4. - * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER. - (enable_interrupt, disable_interrupt): New expander. - (nopv, sleep, wdr): New expanders. - (delay_cycles_1): Add memory clobber. - (delay_cycles_2): Add memory clobber. - (delay_cycles_3): Add memory clobber. - (delay_cycles_4): Add memory clobber. - (cli_sei): New insn from former "enable_interrupt", - "disable_interrupt" with memory clobber. - (*wdt): New insn from former "wdt" with memory clobber. - (*nopv): Similar, but for "nopv". - (*sleep): Similar, but for "sleep". - -2012-03-07 Oleg Endo - Kaz Kojima - - PR target/52503 - * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask. - * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC. - (SUBTARGET_OVERRIDE_OPTIONS): Define. - -2012-03-07 Uros Bizjak - - * config/i386/predicates.md (x86_64_zext_general_operand): New. - * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1 - predicate to x86_64_zext_general_operand. Accept "Z" constraint. - -2012-03-07 Walter Lee - - * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate - REG_CFA_* notes for the stack pointer. - (tilegx_expand_epilogue): Restore stack pointer by adjusting it by - EH_RETURN_STACKADJ_RTX. - * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't - generate REG_CFA_* notes for the stack pointer. - (tilepro_expand_epilogue): Restore stack pointer by adjusting it - by EH_RETURN_STACKADJ_RTX. - -2012-03-07 Georg-Johann Lay - - * doc/invoke.texi (AVR Built-in Macros): Correct condition for - when __AVR_3_BYTE_PC__ is defined. - -2012-03-07 Uros Bizjak - - * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'. - (ix86_print_operand): Handle '^'. - * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands - using P mode iterator. Add %^ to asm template to conditionally emit - addr32 prefix. - (*rep_movdi_rex64): Ditto. - (*strsetdi_rex_1): Ditto. - (*rep_stosdi_rex64): Ditto. - (*strmov{si,hi,qi}_1): Add %^ to asm template to - conditionally emit addr32 prefix. - (*rep_mov{si,qi}): Ditto. - (*strset{si,hi,qi}): Ditto. - (*rep_stos{si,qi}): Ditto. - (*cmpstrnqi_nz_1): Ditto. - (*cmpstrnqi_1): Ditto. - (*strlenqi_1): Ditto. - -2012-03-07 H.J. Lu - - * config/i386/i386.c (function_value_64): Return pointers in - word_mode instead of Pmode. - (ix86_promote_function_mode): Likewise. - -2012-03-07 Richard Guenther - - * coverage.c (get_gcov_type): Use type_for_mode. - (get_gcov_unsigned_t): Likewise. - * expr.c (store_constructor): Use type_for_mode. - (try_casesi): Likewise. - * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove. - (add_standard_iv_candidates): Use standard type trees. - * dojump.c (do_jump): Remove dead code. - -2012-03-07 Richard Guenther - - * c-typeck.c (pointer_diff): Use c_common_type_for_size. - -2012-03-07 Richard Guenther - - * convert.c (strip_float_extensions): Move ... - * tree.c (strip_float_extensions): ... here. - -2012-03-07 Georg-Johann Lay - - PR target/52484 - * config/avr/avr.md (xload_A): Add R22... to register footprint. - -2012-03-07 Richard Guenther - - * omp-low.c (extract_omp_for_data): Use signed_type_for. - (expand_omp_for_generic): Likewise. - (expand_omp_for_static_nochunk): Likewise. - (expand_omp_for_static_chunk): Likewise. - * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode. - * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise. - * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): - Use unsigned_type_for. - (vect_create_cond_for_align_checks): Use signed_type_for. - -2012-03-07 Andrey Belevantsev - - PR rtl-optimization/52203 - * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust - all callers to pass NULL except ... - (reset_sched_cycles_in_current_ebb): ... here, save the value - in new variable 'empty'. Increase issue_rate only for - non-empty insns. - -2012-03-07 Ralf Corsépius - - PR target/51417 - * Makefile.in: Let install-gcc-ar depend on installdirs, - gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext). - Don't double canonicalize if cross-compiling. - -2012-03-07 Georg-Johann Lay - - PR target/52506 - * config/avr/avr.c (expand_epilogue): Fix order of restoration - to: RAMPZ, RAMPY, RAMPX, RAMPD. - (expand_prologue): Only clear RAMPZ if it has effect on RAM-read. - -2012-03-07 Georg-Johann Lay - - PR target/52505 - * config/avr/avr.c (avr_out_xload): Don't read unintentionally - from RAM. - * config/avr/avr.md (xload_8): Adjust insn length. - -2012-03-07 Georg-Johann Lay - - PR target/52461 - * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage - if RAMPZ affects reading from RAM. - -2012-03-07 Richard Guenther - - PR pch/52518 - PR pch/38987 - * doc/invoke.texi (Precompiled Headers): Remove sentence that - suggests you can include PCHs from inside another header. - -2012-03-07 Richard Sandiford - - PR middle-end/52515 - * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers. - -2012-03-07 Kai Tietz - - * doc/invoke.texi (fwritable-relocated-rdata): Document - new Cygwin/MinGW target option. - * config/i386/winnt.c (i386_pe_unique_section): Ignore - reloc if flag -fwritable-relocated-rdata is not set. - (i386_pe_section_type_flags): Likewise. - * config/i386/cygming.opt (fwritable-relocated-rdata): - Add new flag variable flag_writable_rel_rdata. - -2012-03-07 Richard Guenther - - * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual - precision against gimple constraints. - -2012-03-06 Richard Sandiford - - PR middle-end/52372 - * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as - variables. - (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete. - * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New - variables. - (init_emit_regs): Move associated initialization to... - (init_emit_once): ...here. - -2012-03-06 Richard Henderson - - * config/m68k/m68k.h (ISA_HAS_TAS): New. - * config/m68k/sync.md (atomic_test_and_set): Use it. - (atomic_test_and_set_1): Likewise. - -2012-03-06 Michael Meissner - - PR target/50310 - * config/rs6000/vector.md (vector_uneq): Add support for - UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons. - (vector_ltgt): Likewise. - (vector_ordered): Likewise. - (vector_unordered): Likewise. - * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise. - -2012-03-06 Aldy Hernandez - - * trans-mem.c: New typedef for tm_region_p. - Define vector types for tm_region_p. - (tm_region_init): Replace region_worklist to a vector called - bb_regions. - -2012-03-06 Richard Guenther - - * fold-const.c (build_fold_addr_expr_with_type_loc): Fold - MEM_REF with constant pointer operand. - -2012-03-06 Richard Guenther - - PR middle-end/52493 - * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify. - -2012-03-06 Tristan Gingold - - * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword. - (external_model_kind): Improve documentation. - (vms_pragma_extern_model): Handle relaxed_redef. - (vms_c_register_pragma): Allow expansion for nomember_alignment. - -2012-03-06 Georg-Johann Lay - - * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores. - Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc. - Some more notes on EIND usage and reorder EIND subsection. - -2012-03-06 Tristan Gingold - - * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF. - * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL. - -2012-03-06 Tristan Gingold - - * config/vms/t-vmsnative (version): Define. - * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove. - -2012-03-06 Andrey Belevantsev - - PR rtl-optimization/52250 - * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb - to put note list into. Unconditionally call move_bb_info. - (move_bb_info): Do not assert the blocks being in the same region, - just drop the note list if they are not. - -2012-03-06 Oleg Endo - - PR target/51244 - * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case - and use unified expansion logic. - * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move - closer to the existing movt insn. - (negc): Rename insn to *negc. Add new expander. - (movnegt): Use xor pattern for T bit negation. Reserve helper - constant for negc pattern. - (*movnegt): New insn and splitter. - -2012-03-05 Bernd Schmidt - - * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not - PLUS_EXPR. - -2012-03-05 Richard Henderson - - * genemit.c (main): Include "target.h" in insn-emit.c. - * Makefile.in (insn-emit.o): Depend on TARGET_H. - * config/sh/sync.md (atomic_test_and_set): Reference - targetm.atomic_test_and_set_trueval instead of - TARGET_ATOMIC_TEST_AND_SET_TRUEVAL. - -2012-03-05 Joern Rennecke - - * config/epiphany/epiphany.c (epiphany_function_value_regno_p): - Make static. - -2012-03-05 Steven Bosscher - - * langhooks.c (add_builtin_type): New function. - * langhooks.h (add_builtin_type): Export it. - * config/mep/mep.c (mep_init_builtins): Use it. - * config/rs6000/rs6000.c (rs6000_init_builtins): Use it. - -2012-03-05 Jakub Jelinek - - PR debug/51902 - * tree.h (BLOCK_SAME_RANGE): Define. - * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE - if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared. - Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment - isn't equal to supercontext fragment's fragment chain. - Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's - fragment origin. - (blocks_nreverse_all): Likewise. - (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set - BLOCK_SUPERCONTEXT to supercontext fragment instead of - supercontext fragment's fragment origin. - * dwarf2out.c (add_high_low_attributes): If stmt has the same - range as its parent (or parents thereof etc.), use the parent's - DW_AT_ranges value instead of creating a new .debug_ranges range. - -2012-03-05 Richard Henderson - - PR tree-opt/52242 - Revert: 2011-11-26 Richard Henderson - * omp-low.c (expand_omp_atomic): Assume anything aligned to - BIGGEST_ALIGNMENT is aligned. - -2012-03-05 Richard Henderson - - * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move... - * config/sh/sh.c: ... here. - -2012-03-05 Richard Henderson - - PR target/52481 - * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop - instead of calling negqi2 directly. - -2012-03-05 Aldy Hernandez - - PR middle-end/52463 - * trans-mem.c (tm_region_init): Use last_basic_block. - -2012-03-05 Oleg Endo - - * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook. - * config/sh/sync.md (atomic_test_and_set): New expander. - (tasb, atomic_test_and_set_soft): New insns. - * config/sh/sh.opt (menable-tas): New option. - * doc/invoke.texi (SH Options): Document it. - -2012-03-05 Richard Guenther - - * cfgloop.c (verify_loop_structure): Verify dominators before - using them. - * graphite-clast-to-gimple.c (graphite_verify): Do not verify - dominators from here. - * graphite-scop-detection.c (create_sese_edges): Likewise. - * loop-doloop.c (doloop_optimize_loops): Likewise. - * loop-init.c (loop_optimizer_init): Likewise. - * loop-unroll.c (unroll_and_peel_loops): Likewise. - * loop-unswitch.c (unswitch_loops): Likewise. - * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise. - * tree-parloops.c (parallelize_loops): Likewise. Verify - only when checking is enabled. - * tree-loop-distribution.c (tree_loop_distribution): Likewise. - -2012-03-05 Bernd Schmidt - - * genautomata.c (parse_automata_opt): New static function. - (initiate_automaton_gen): Remove all option handling code. Remove - argc argument. All callers changed. - (main): Call init_rtx_reader_args_cb with the new function as argument. - -2012-03-05 Richard Guenther - - * cfgexpand.c (gimple_expand_cfg): Free dominator info. - * tree-if-conv.c (combine_blocks): Free post-dominator info - after breaking it. - * tree-parloops.c (create_parallel_loop): Free and re-compute - dominator info after breaking it. - -2012-03-05 Richard Guenther - - PR middle-end/52353 - * optabs.h (trapv_unoptab_p): New function. - (trapv_binoptab_p): Likewise. - * optabs.c (expand_binop): Use emit_libcall_block_1 with - a proper equiv_may_trap argument. - (expand_unop): Likewise. - (emit_libcall_block_1): Take extra argument whether the - instruction may trap. Renamed from ... - (emit_libcall_block): ... this. New wrapper. - -2012-03-05 Jakub Jelinek - - PR tree-optimization/51721 - * tree-vrp.c (register_edge_assert_for_2): If comparing - lhs of right shift by constant with an integer constant, - add ASSERT_EXPRs for the rhs1 of the right shift. - - * cfgrtl.c (cfg_layout_merge_blocks): Cleanup. - -2012-03-05 Richard Guenther - - * tree.c (integer_zerop): Handle VECTOR_CSTs. - (integer_onep): Likewise. - (integer_all_onesp): Likewise. - -2012-03-05 Georg-Johann Lay - - * config/avr/avr.md (*umaddqihi4.2): New insn-and-split. - -2012-03-04 H.J. Lu - - * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode - instead of TARGET_64BIT. - -2012-03-04 H.J. Lu - - * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set - adjust_stack_insn. - -2012-03-04 H.J. Lu - - * config/i386/i386.c (ix86_print_operand_address): Only handle - zero-extended DImode addresses. - -2012-03-04 Uros Bizjak - - * config/i386/i386.c (ix86_print_operand) : Declare - taken and cputaken as bool. - -2012-03-04 Uros Bizjak - - * config/i386/constraints.md (Ya): New internal constraint. - * config/i386/i386.md (zero_extendsidi2): Remove expansion. - (*zero_extendsidi2_rex64): Add x,x alternative. - (*zero_extendsidi2): Ditto. Add o,0 alternative. - Remove flags reg clobber. Adjust corresponding splits. - (zero_extendsi2): Macroize expander from zero_extendhisi2 and - zero_extendqisi2 expanders using SWI12 mode iterator. - (zero_extendsi2_and): Macroize insn from - zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding - splitters. - (*zero_extendsi2): Macroize insn from - *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl. - (*zero_extend*2_movzbl_and): Remove insn patterns. - (zero_extendqihi2_and): Merge corresponding splitter. - (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl. - (*zero_extend*2_movzbl_and): Remove insn patterns. - (*anddi_1): Split TYPE_IMOVX instructions. - (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions. - (*andhi_1): Ditto. - (and->zext splitter): Add splitter pattern. - (zero extend with andsi3 splitter): Adjust zero_extend pattern. - -2012-03-04 Sandra Loosemore - - * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to - x86-specific text. - (Debugging Options): Likewise. - (Optimize Options): Likewise. - (i386 and x86-64 Options): Discuss -march before -mtune, consistently - with other architectures. Use official processor names with correct - spelling/capitalization. Fix formatting and grammar issues. - (i386 and x86-64 Windows Options): Similar cleanup here. - -2012-03-03 Kaz Kojima - - * config/sh/sh.md (abssi2): Add TARGET_SH1 condition. - -2012-03-03 Kaz Kojima - - * config/sh/sh.c (sh_dwarf_register_span): Don't apply - DBX_REGISTER_NUMBER. - -2012-03-03 Kaz Kojima - - * config/sh/sh.c (shiftcosts): Return MAX_COST when the first - operand is CONST_INT. Take COSTS_N_INSNS into account. - (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value - of shiftcosts. - -2012-03-02 Richard Henderson - - * optabs.c (expand_atomic_test_and_set): Honor - atomic_test_and_set_trueval even when atomic_test_and_set - optab is not in use. - -2012-03-02 Kaz Kojima - - PR target/48596 - PR target/48806 - * config/sh/sh.c (sh_register_move_cost): Increase cost between - GENERAL_REGS and FP_REGS for SImode. - -2012-03-02 Oleg Endo - - PR target/49486 - * config/sh/sh.md (negdi2): Add TARGET_SH1 condition. - (absdi2): New expander. - (*absdi2, *negabsdi2, negdi_cond): New insns and splits. - -2012-03-02 Oleg Endo - - * config/sh/sync.md (atomic_exchange): New expander. - (atomic_exchange_soft): New insn. - -2012-03-02 Oleg Endo - - * config/sh/sync.md: Update copyright notice dates. - (atomic_compare_and_swap): Use SImode for return value instead - of QImode. - (atomic_compare_and_swap_soft): Likewise. - -2012-03-02 Oleg Endo - - PR target/31640 - * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align. - * config/sh/sh.c: Update copyright notice dates. - (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop - alignment for TARGET_HARD_SH4. - (sh_option_override): Reduce default function alignment. Set - loop alignment to 4 bytes when not optimizing for size. - -2012-03-02 Maxim Kuvyrkov - - PR middle-end/50335 - * doc/invoke.texi (floop-flatten): Remove. - * toplev.c (process_options): Remove references to flag_loop_flatten. - * tree-ssa-loop.c (gate_graphite_transform): Same. - * common.opt (floop-flatten): Obsolete. - * graphite-poly.c (apply_poly_transforms): Remove reference to - flag_loop_flatten. - * Makefile.in (graphite-flattening.o): Remove. - * graphite-flattening.c: Remove. - -2012-03-02 Uros Bizjak - - * compare-elim.c (find_comparisons_in_bb): Eliminate only compares - having mode compatible with the mode of previous compare. Substitute - compare mode of previous compare with the mode, compatible - with eliminated and previous compare. - -2012-03-02 Peter Bergner - - * config/rs6000/dfp.md (floatdidd2): New define_insn. - -2012-03-02 Uros Bizjak - - * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode - compatible with CCGOCmode and CCGCmode. - -2012-03-02 Peter Bergner - - * config/rs6000/vsx.md (vsx_set_): Reorder operands. - -2012-03-02 Ulrich Weigand - - * config/arm/arm.c (arm_sat_operator_match): New function. - * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype. - * config/arm/arm.md ("insn" attribute): Add "sat" value. - ("SAT", "SATrev"): New code iterators. - ("SATlo", "SAThi"): New code iterator attributes. - ("*satsi_"): New pattern. - ("*satsi__shift"): Likewise. - * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn" - and "shift" attributes. - ("arm_usatsihi"): Add "insn" attribute. - * config/arm/predicates.md (sat_shift_operator): Allow multiplication - by powers of two. Do not allow shift by 32. - -2012-03-02 Uros Bizjak - - PR target/46716 - * config/i386/i386.c (construct_container): Use gen_reg_or_parallel - to pass the argument in the register of "natural" mode. - -2012-03-02 Richard Guenther - - PR tree-optimization/52406 - * tree-data-ref.h: Update documentation about DR_BASE_OBJECT. - (struct indices): Add unconstrained_base member. - (struct dr_alias): Remove unused vops member. - (DR_UNCONSTRAINED_BASE): New define. - * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs - add indices to allow their disambiguation. Make DR_BASE_OBJECT - be an artificial access that covers the whole indexed object, - or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize - plain decl base-objects to their MEM_REF variant. - (dr_may_alias_p): When the base-object of either data reference - has unknown size use only points-to information. - (compute_affine_dependence): Make dumps easier to read and - more verbose. - * tree-vect-data-ref.c (vector_alignment_reachable_p): Use - DR_REF when looking for packed references. - (vect_supportable_dr_alignment): Likewise. - -2012-03-02 Greta Yorsh - - * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole): - Improve conditions for peepholes of loads followed by commutative - operators. - * config/arm/ldmstm.md: Regenerated. - -2012-03-02 Richard Guenther - - * BASE-VER: Set to 4.8.0. - -2012-03-01 Richard Earnshaw - - * config.gcc (obsolete): Add all ARM targets using the FPA. - (with_fpu): Obsolete selection of the FPA or Maverick on ARM. - * doc/install.texi: Avoid references to obsolete ARM ports. - -2012-03-01 Joern Rennecke - - * config/epiphany/epiphany.md (movmisalign): New patterns. - -2012-03-01 Jeremy Bennett - Joern Rennecke - - * doc/extend.texi: Expand and update information on interrupt - attribute for Epiphany. - -2012-03-01 Oleg Endo - - * config/sh/sh-protos.h: Update copyright notice dates. - * config/sh/sh.h: Likewise. - * config/sh/sh.md: Likewise. - * config/sh/constraints.md: Likewise. - * config/sh/predicates.md: Likewise. - -2012-03-01 Oleg Endo - - * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function. - * config/sh/sh.c (tertiary_reload_operand): Likewise. - -2012-03-01 Oleg Endo - - * config/sh/constraints.md: Fix comment typo. - -2012-03-01 John David Anglin - - PR target/52408 - * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to - unsigned HOST_WIDE_INT. - (zvdep_imm64): Likewise. - (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT. - (vdepi_and): Likewise. - Likewise for unamed 64-bit patterns. - * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment. - -2012-03-01 Alexandre Oliva - - PR debug/52001 - PR rtl-optimization/52417 - * cselib.c (cselib_any_perm_equivs): New variable. - (cselib_reset_table): Check that it's not set when not - preserving constants. - (cselib_add_permanent_equiv): Set it. - (cselib_have_permanent_equivalences): New. - (cselib_init, cselib_finish): Reset it. - * cselib.h (cselib_have_permanent_equivalences): Declare. - * alias.c (get_addr): Restore earlier behavior when there - aren't permanent equivalences. - -2012-03-01 Steven Bosscher - - * config/mn10300/mn10300-modes.def: Fix copyright notice. - * config/v850/v850-modes.def: Fix copyright notice. - -2012-03-01 Georg-Johann Lay - - * doc/extend.texi (AVR Built-in Functions): Document - __builtin_avr_flash_segment. - - * config/avr/builtins.def (__builtin_avr_flash_segment): New entry. - * config/avr/avr.md (flash_segment, flash_segment1): New expanders. - (*split.flash_segment): New insn-and-split. - * config/avr/avr.c (avr_init_builtins): Add local variables: - const_memx_void_node, const_memx_ptr_type_node, - char_ftype_const_memx_ptr. - -2012-03-01 Jakub Jelinek - - PR tree-optimization/52445 - * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field, - add ssa_name_ver, offset and size fields and change store field - to bool. - (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes. - (add_or_mark_expr): Likewise. Only consider previous stores - with the same size and offset. - (nt_init_block): Only look at gimple_assign_single_p stmts, - doesn't look at rhs2. - -2012-03-01 Richard Guenther - - PR middle-end/52443 - * tree-cfg.c (verify_gimple_assign_unary): Allow any - conversions from integral types to pointer types. - -2012-03-01 Georg-Johann Lay - - * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in - defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__ - unintentionally removed in r184616. - -2012-03-01 Venkataramanan Kumar - - * doc/invoke.texi: Document AMD bdver2 and remove mentioning - 3DNow from bdver1. - -2012-02-29 Jakub Jelinek - Uros Bizjak - - PR target/52437 - * config/i386/sse.md (vec_set_0): Swap "*r" and "fF" - alternatives, add "e" constraint to the new last alternative - and ! to last 3 alternatives. - -2012-02-29 Eric Botcazou - - * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and - DW_AT_artificial attributes at the end of the processing. - (gen_array_type_die): Likewise. - (gen_enumeration_type_die): Likewise. - (gen_struct_or_union_type_die): Likewise. - (add_gnat_descriptive_type_attribute): Do not suppress debug info for - the parent type. - -2012-02-29 Jakub Jelinek - - PR middle-end/52419 - * expr.c (expand_assignment): If doing misaligned store that doesn't - cover all mode bits, perform a RMW cycle. - - PR tree-optimization/52429 - * tree-parloops.c (separate_decls_in_region_debug): Return early - if var is LABEL_DECL. - -2012-02-29 Bill Schmidt - - PR tree-optimization/52424 - * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before - calling dom_thread_across_edge. - -2012-02-29 Georg-Johann Lay - - * config/avr/avr.c: Move definition of TARGET macros to end of file. - -2012-02-29 Georg-Johann Lay - - * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype. - * config/avr/avr.c (avr_output_bld): Remove unused function. - (avr_out_sbxx_branch): Use "%T" to print bit position. - -2012-02-29 Georg-Johann Lay - - * config/avr/avr.md: Untabify. - -2012-02-29 Georg-Johann Lay - - * config/avr/avr.md (eqne): New code iterator. - (*dec-and-branchsi): Use it in text peephole's condition. - (*dec-and-branchhi): Ditto. - (*dec-and-branchqi): Ditto. - -2012-02-29 Georg-Johann Lay - - PR target/49939 - * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that - the device does not have the skip-bug. - -2012-02-29 Oleg Endo - - * doc/invoke.texi (-msoft-atomic): Add more detailed description. - (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd - -mpretend-cmove): New. - -2012-02-29 Jakub Jelinek - - PR bootstrap/52397 - * df.h (struct df_d): Adjust comment that hard_regs_live_count - doesn't count DEBUG_INSN refs. - * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE - for DEBUG_INSN refs. - -2012-02-28 Ulrich Weigand - - Partially revert: - - 2012-02-20 Richard Guenther - PR tree-optimization/52298 - * tree-vect-stmts.c (vectorizable_load): Properly use - STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops. - -2012-02-28 Aldy Hernandez - - PR middle-end/51752 - * gimple.h (gimple_in_transaction): New. - (gimple_set_in_transaction): New. - (struct gimple_statement_base): Add in_transaction field. - * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of - transaction loads. - (tree_ssa_lim_initialize): Compute transaction bits. - * tree.h (compute_transaction_bits): Protoize. - * trans-mem.c (tm_region_init): Use the heap to store BB - auxilliary data. - (compute_transaction_bits): New. - -2012-02-28 Bernhard Reutner-Fischer - - * gcc.c (display_help): Document --help=common and sort entries - alphabetically. - -2012-02-28 Bernhard Reutner-Fischer - - * doc/install.texi: Document check-$LANG specific shortcuts - -2012-02-28 Matthew Gretton-Dann - - PR target/51534 - * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu - and vcgtu. - * config/arm/arm_neon.h: Regenerate. - * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU. - (neon_vcgeu): New insn. - (neon_vcgtu): Likewise. - * config/arm/neon.ml (s_8_32, u_8_32): New lists. - (ops): Unsigned comparison intrinsics call a different builtin. - -2012-02-28 Richard Guenther - - PR target/52407 - * config/i386/i386.c (ix86_expand_vector_set): Fix element - ordering for the VEC_CONCAT for two element vectors for - V2SFmode, V2SImode and V2DImode. - -2012-02-28 Richard Earnshaw - - PR target/49448 - * config.gcc (arm*-*-linux*): Use an unambiguous pattern for - detecting big-endian triplets. - -2012-02-28 Richard Earnshaw - - * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine - mode if there is no type information available. - -2012-02-28 Thomas Koenig - - PR tree-optimization/53207 - * doc/invoke.texi: Document as experimental and relying on graphite. - -2012-02-28 Georg-Johann Lay - - * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part - of initializer to changes from r184614. - -2012-02-28 Richard Guenther - - PR tree-optimization/52395 - * tree-sra.c (build_ref_for_offset): Also look at the base - TYPE_ALIGN when figuring out the alignment of the replacement. - -2012-02-28 Richard Guenther - - PR tree-optimization/52402 - * ipa-prop.c (ipa_modify_call_arguments): Properly use - mis-aligned types when creating the accesses at the call site. - -2012-02-28 Georg-Johann Lay - - * config/avr/builtins.def: New file. - * config/avr/t-avr (avr.o, avr-c.o): Depend on it. - * config/avr/avr.c (enum avr_builtin_id): Use it. - (avr_init_builtins): Use it. And use avr_bdesc. - (bdesc_1arg): Remove. - (bdesc_2arg): Remove. - (bdesc_3arg): Remove. - (struct avr_builtin_description): Add field n_args. - (avr_bdesc): New static variable using builtins.def. - (avr_expand_builtin): Use it. - Don't call avr_expand_delay_cycles if op0 is not CONST_INT. - (avr_fold_builtin): Fold AVR_BUILTIN_SWAP. - Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST. - -2012-02-28 Georg-Johann Lay - - PR target/52148 - * config/avr/avr.md (movmem_): Replace match_operand that - match only one single hard register with respective hard reg rtx. - (movmemx_): Ditto. - * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new - insn anatomy of movmem[x]_. - (avr_out_movmem): Same for printing assembler and operand usage. - -2012-02-28 Georg-Johann Lay - - PR target/49868 - PR target/52261 - * doc/extend.texi (AVR Named Address Spaces): No more try to fix - address spaces located outside of device flash. - - * config/avr/avr.h (base_arch_s): Remove field n_segments. - (mcu_type_s): Add field n_flash. - * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments. - Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5. - (AVR_MCU): Add N_FLASH argument. - * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash. - * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in - macro __FLASH if that address space makes sense for the device. - * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces - outside of target flash. - (avr_asm_named_section): Ditto. - (avr_asm_select_section): Ditto. - (avr_addr_space_convert): Ditto. - (avr_emit_movmemhi): Ditto. - (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if - address space is outside of device flash. - (avr_insert_attributes): Ditto. - (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of - avr_current_arch->n_segments. - -2012-02-27 H.J. Lu - - PR target/52352 - * config/i386/i386.md (*movabs_1): Enable only for TARGET_LP64. - (*movabs_2): Likewise. - -2012-02-27 Jakub Jelinek - - PR target/52375 - * config/arm/neon.md (vashr3, vlshr3): Use - s_register_operand in the test instead of REG_P. Don't call - gen_reg_rtx if it won't be used. - - PR tree-optimization/52376 - * ipa-split.c (split_function): Ignore CLOBBER stmts. - -2012-02-27 Stuart Henderson - - * ifcvt.c (noce_get_condition): Check condition variable is not - small_register_classes_for_mode_p before accepting. - -2012-02-27 Uros Bizjak - - * config/i386/i386.md (*movabs_1): Fix operand 1 constraints. - -2012-02-27 Matthew Gretton-Dann - - Revert: - 2012-01-09 Matthew Gretton-Dann - * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for - tuning parameters. - * config/arm/arm.c (arm_cortex_a15_tune): New static variable. - -2012-02-27 Oleg Endo - - * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro. - -2012-02-26 Oleg Endo - - * config/sh/predicates.md: Remove blank lines. - * config/sh/sh.c: Fix typos in comments. - * config/sh/constraints.md: Likewise. - * config/sh/sh.md: Remove blank lines. - Fix typos in comments. Use ;; as comment characters. - -2012-02-26 Walter Lee - - * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern. - (replace_mov_pcrel_step2): Ditto. - -2012-02-25 Alexandre Oliva - - PR debug/52001 - * alias.c (refs_newer_value_cb, refs_newer_value_p): New. - (get_addr): Walk canonical value's locs. Avoid returning VALUEs - and locs that reference values newer than the non-canonical value - at hand. Return the canonical value as a worst case. - (memrefs_conflict_p): Walk canonical value's locs. - - PR debug/52001 - * cselib.c (preserve_only_constants): Rename to... - (preserve_constants_and_equivs): ... this. Split out... - (invariant_or_equiv_p): ... this. Preserve plus expressions - of other preserved expressions too. - (cselib_reset_table): Adjust. - * var-tracking.c (reverse_op): Use canonical value to build - reverse operation. - -2012-02-23 Kai Tietz - - * config/i386/i386.c (ix86_delegitimize_address): Handle - UNSPEC_PCREL plus displacement. - -2012-02-24 Georg-Johann Lay - - PR target/52261 - * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base - to test for unusedness in st X addressing. - -2012-02-24 Richard Guenther - - PR middle-end/52361 - * gimple.c (walk_gimple_op): Use predicates with less redundant tests. - (is_gimple_reg_type): Move inline ... - * gimple.h (is_gimple_reg_type): ... here. - -2012-02-24 Richard Guenther - - PR middle-end/52361 - * passes.c (execute_function_todo): When verifying SSA form - verify gimple form first. - * tree-ssa.c (verify_ssa): Do not verify gimple form here. - -2012-02-24 Richard Guenther - - PR middle-end/52355 - * fold-const.c (fold_addr_of_array_ref_difference): New function. - (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding. - -2012-02-13 Bernhard Reutner-Fischer - - * tree-if-conv (predicate_scalar_phi): Commentary typo fix. - -2012-02-23 Bernhard Reutner-Fischer - - * tree-phinodes.c (make_phi_node): Mark static. - * tree-flow.h (make_phi_node): Remove extern decl. - * doc/gimple.texi (make_phi_node): Remove documentation. - -2012-02-23 Bernhard Reutner-Fischer - - * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file. - * tree-ssa-sccvn.c (print_scc): Ditto. - -2012-02-23 Bernhard Reutner-Fischer - - * doc/passes.texi (Full redundancy elimination): Fix typo. - -2012-02-23 Bernhard Reutner-Fischer - - * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries. - -2012-02-23 Eric Botcazou - - PR bootstrap/52287 - * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns. - -2012-02-23 Uros Bizjak - - PR c/52290 - * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL. - -2012-02-23 Georg-Johann Lay - - * config/avr/avr.md (code_stdname): Add ior, xor. - (xior): New code iterator. - (*qi.byte0): Use xior instead of ior. - (*qi.byte1-3): Ditto. - -2012-02-23 Jakub Jelinek - - PR tree-optimization/52019 - * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore - CLOBBER stmts. - -2012-02-23 Ulrich Weigand - - * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of - HAVE_INITFINI_ARRAY to work around namespace pollution in - certain versions of newlib system headers. - * config.in: Regenerate. - * configure: Regenerate. - * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT - instead of HAVE_INITFINI_ARRAY. - -2012-02-22 Uros Bizjak - - PR target/52330 - * config/i386/i386.c (ix86_print_operand) : Error out if x - is not offsettable memory reference. - -2012-02-22 Georg-Johann Lay - - PR target/18145 - * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip - setting avr_need_clear_bss_p for __gnu_lto* symbols. - -2012-02-22 Georg-Johann Lay - - * config/avr/avr.h (avr_accumulate_outgoing_args): Return int. - * config/avr/avr.c (avr_accumulate_outgoing_args): Return int. - -2012-02-22 Rainer Orth - - * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread - library on Solaris 8 even without TLS support. - * configure: Regenerate. - -2012-02-22 Richard Guenther - - PR middle-end/52329 - * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs - for GIMPLE_DEBUG stmts. - -2012-02-22 Martin Jambor - - PR middle-end/51782 - * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space - according to the base object. - -2012-02-22 Georg-Johann Lay - - PR rtl-optimization/50063 - * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state) - and 2 (8-bit SP) in operand 2. - * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue - setup to use movhi_sp_r instead of vanilla move to write SP. - Adjust REG_CFA notes to superseed unspec. - (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead - of vanilla move. - As function body might contain CLI or SEI: Use irq_state 0 (IRQ - known to be off) only with TARGET_NO_INTERRUPTS. Never use - irq_state 1 (IRQ known to be on) here. - -2012-02-21 Bernd Schmidt - - * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not - WORDS_BIG_ENDIAN. - * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p, - assign_hard_reg): Likewise. - -2012-02-21 Georg-Johann Lay - - * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0". - -2012-02-21 Georg-Johann Lay - - * config/avr/avr.md - (*dec-and-branchhi!=-1.d.clobber): New text peephole. - (*dec-and-branchhi!=-1.l.clobber): New text peephole. - -2012-02-21 Georg-Johann Lay - - * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move - prototype from here to... - * config/avr/avr.h: ...here. - -2012-02-21 Richard Earnshaw - - PR target/52294 - * thumb2.md (thumb2_shiftsi3_short): Split register and - immediate shifts. For register shifts tie operands 0 and 1. - (peephole2 for above): Check that register-controlled shifts - have suitably tied operands. - -2012-02-21 Quentin Neill - - PR target/52137 - * config/i386/bdver1.md (bdver1_call, bdver1_push, - bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul, - bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem, - bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov, - bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore, - bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store, - bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf, - bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load, - bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn, - bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc, - bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load, - bdver1_fcomi, bdver1_fcom_load, bdver1_fcom, - bdver1_fxch, bdver1_ssevector_avx128_unaligned_load, - bdver1_ssevector_avx256_unaligned_load, - bdver1_ssevector_sse128_unaligned_load, - bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load, - bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load, - bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load, - bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store, - bdver1_mmxsse_store_short, bdver1_ssevector_avx256, - bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256, - bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog, - bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load, - bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256, - bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd, - bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd, - bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps, - bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps, - bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd, - bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd, - bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si, - bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi, - bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq, - bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi, - bdver1_ssemuladd_load_256, bdver1_ssemuladd_256, - bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load, - bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd, - bdver1_ssediv_double_load_256, bdver1_ssediv_double_256, - bdver1_ssediv_single_load_256, bdver1_ssediv_single_256, - bdver1_ssediv_double_load, bdver1_ssediv_double, - bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins): - Add "bdver2" attribute. - -2012-02-21 Andreas Krebbel - - * config/s390/s390.c (s390_option_override): Make -mhard-dfp the - default if possible and not specified otherwise. - -2012-02-21 Richard Guenther - - PR middle-end/52314 - * gimplify.c (create_tmp_from_val): Use the main variant type - for the type of the temporary we create. - -2012-02-21 Richard Guenther - - PR tree-optimization/52324 - * gimplify.c (gimplify_expr): When re-gimplifying expressions - do not gimplify a MEM_REF address operand if it is already - in suitable form. - -2012-02-21 Andreas Krebbel - - * config/s390/s390.md ("fixuns_truncsi2"): Replace - TARGET_HARD_FLOAT with TARGET_HARD_DFP. - -2012-02-21 Richard Guenther - - * tree-vect-stmts.c (vectorizable_load): Use pre-computed - nested_in_vect_loop. - -2012-02-21 Jakub Jelinek - - PR tree-optimization/52318 - * gimple-fold.c (gimplify_and_update_call_from_tree): Add - vdef also to non-pure/const call stmts in the sequence. - -2012-02-21 Tristan Gingold - - * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding. - -2012-02-20 David S. Miller - - * config/sparc/sparc.md (load_pcrel_sym): Explain why we - don't use the "rd %pc" instruction on v9 for PIC register loads. - -2012-02-20 Aldy Hernandez - - PR middle-end/52141 - * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's - in a transaction safe function. - -2012-02-20 Kai Tietz - - PR target/52238 - * stor-layout.c (place_field): Handle desired_align for - ms-bitfields, too. - -2012-02-20 Richard Guenther - - PR tree-optimization/52298 - * tree-vect-stmts.c (vectorizable_store): Properly use - STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing - outer loops. - (vectorizable_load): Likewise. - * tree-vect-data-refs.c (vect_analyze_data_ref_access): - Access DR_STEP after ensuring it is not NULL. - -2012-02-20 Jakub Jelinek - - PR tree-optimization/52286 - * fold-const.c (fold_binary_loc): For (X & C1) | C2 - optimization use double_int_to_tree instead of build_int_cst_wide, - rewrite to use double_int vars. - -2012-02-20 Rainer Orth - - PR target/50166 - * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION. - Define _start. - Remove -e 0 from $gcc_cv_ld invocation. - Only use __GLIBC_PREREQ if defined. - Enable on Solaris since Solaris 8 patch. - (gcc_SUN_LD_VERSION): New macro. - * configure.ac (ld_ver) <*-*-solaris2*>: Refer to - gcc_SUN_LD_VERSION for version number format. - * configure: Regenerate. - * varasm.c (get_elf_initfini_array_priority_section): Set - SECTION_NOTYPE for non-default priority. - Use get_section instead of get_unnamed_section to emit - .init_array/.fini_array with default priority. - -2012-02-19 Richard Sandiford - - * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable. - (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally. - (mips_start_unique_function, mips_output_mips16_rdhwr) - (mips_code_end): New functions. - (TARGET_ASM_CODE_END): Define. - -2012-02-19 Richard Sandiford - - * config/mips/mips.c (mips16_build_call_stub): Add CFI information - to stubs with non-sibling calls. - -2012-02-18 Sandra Loosemore - - * doc/invoke.texi (-fira-* options): Copy-edit. - (ira-* parameters): Copy-edit. - -2012-02-17 Sandra Loosemore - - * doc/invoke.texi: Minor copy-edits to bring into conformance with - GCC coding conventions. - -2012-02-17 Sandra Loosemore - - * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian" - when used as adjectives. - -2012-02-16 Sandra Loosemore - - * doc/invoke.texi: Clean up "that"/"which" confusion. - -2012-02-17 Steven Bosscher - - * system.h: Poison SMALL_REGISTER_CLASSES - * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook. - * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES. - -2012-02-16 Jakub Jelinek - - PR tree-optimization/52285 - * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts - when deciding if a call is a tail call or tail recursion. - -2012-02-16 Kai Tietz - - * config/i386/i386.c (legitimate_pic_address_disp_p): Allow - interger-constant displacement for UNSPEC_PCREL. - -2012-02-16 Jakub Jelinek - - PR rtl-optimization/52208 - * ira-costs.c (scan_one_insn): Don't decrease mem_cost - for MEMs with REG_EQUIV, if the MEM isn't general_operand. - - PR tree-optimization/52255 - * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If - loop->header has virtual PHI, but exit_e->dest doesn't, add - virtual PHI to exit_e->dest and adjust all uses after the loop. - - PR debug/52260 - * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing - children with clone_tree_hash, not after it. - -2012-02-16 Iain Sandoe - - * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for - extended identifiers. - -2012-02-16 Jakub Jelinek - - PR middle-end/51929 - * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is - a same_body_alias, also test whether e->callee isn't a former - or current clone of the decl this is a same body alias of. - - PR translation/52264 - * cgraphunit.c (verify_cgraph_node): Fix a typo. - -2012-02-15 Sandra Loosemore - - * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers. - -2012-02-15 Michael Meissner - - PR target/52199 - * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use - force_reg instead of copy_to_reg for better optimization. Force - non-register or memory operands into a register. - -2012-02-15 Andrew MacLeod - - * extend.texi: Reserve upper bits of memory model for future use. - -2012-01-15 Georg-Johann Lay - Anatoly Sokolov - Eric Weddington - - PR target/52261 - * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2, - avrxmega4, avrxmega5, avrxmega6, avrxmega7. - Rewrite initializers for .macro. - * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs: - avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4 - atxmega32d4, atxmega32x1. - avrxmega4: atxmega64a3, atxmega64d3. - avrxmega5: atxmega64a1, atxmega64a1u. - avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3, - atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3. - avrxmega7: atxmega128a1, atxmega128a1u. - * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2, - ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7. - (struct base_arch_s): Rename reserved to xmega_p. - Rename reserved2 to have_rampd. - (AVR_XMEGA): New define. - (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines. - (AVR_HAVE_RAMPZ): Change definition to fit xmega. - * config/avr/predicates.md (io_address_operand): Take into - account SFR offset. - (low_io_address_operand): Ditto. - (high_io_address_operand): Ditto. - * config/avr/avr.md (isa): Add alternatives no_xmega, xmega. - (enabled, movhi_sp_r): Use them. - * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use - cpp_define_formatted to built-in define __AVR_ARCH__. - (__AVR_XMEGA__): New built-in define. - (__AVR_HAVE_RAMPD__): New built-in define. - (__AVR_HAVE_RAMPX__): New built-in define. - (__AVR_HAVE_RAMPY__): New built-in define. - (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it. - - * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy. - (avr_option_override): Initialize them. - (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx. - (avr_init_expanders): Initialize them. No more block several calls. - (emit_push_sfr): New static function. - (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed. - Handle AVR_XMEGA. - (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed. - (avr_print_operand): Print addreeses as symbols for - RAMPX, RAMPY, RAMPD, CCP. - (output_movhi): Handle AVR_XMEGA when writing to SP. - (avr_out_movhi_mr_r_xmega): New static function. - (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA. - (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__, - __RAMPD__, __CCP__ as needed. - - * config/avr/multilib.h: Regenerate. - * config/avr/t-multilib: Regenerate. - * config/avr/avr-tables.opt: Regenerate. - -2012-02-15 Tobias Grosser - - PR tree-optimization/50561 - * graphite-flattening.c (lst_project_loop): Do not - remove old scattering dimensions after flattening. - (lst_do_flatten): Likewise. - -2012-02-15 Georg-Johann Lay - - * doc/extend.texi (AVR Built-in Functions): Remove doc for - __builtin_avr_map8, __builtin_avr_map16. - Document __builtin_avr_insert_bits. - - * config/avr/avr.md (map_bitsqi, map_bitshi): Remove. - (insert_bits): New insn. - (adjust_len.map_bits): Rename to insert_bits. - (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS. - * avr-protos.h (avr_out_map_bits): Remove. - (avr_out_insert_bits, avr_has_nibble_0xf): New. - * config/avr/constraints.md (Cxf,C0f): New. - * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in - defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16. - New built-in define __BUILTIN_AVR_INSERT_BITS. - * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define. - (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS. - (avr_move_bits): Rewrite. - (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static - functions. - (avr_map_op_t): New typedef. - (avr_map_op): New static variable. - (avr_out_insert_bits, avr_has_nibble_0xf): New functions. - (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS. - (avr_init_builtins): Add definition for __builtin_avr_insert_bits. - (bdesc_3arg, avr_expand_triop_builtin): New. - (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS. - (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove. - (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove. - (avr_map_equal_p, avr_map_sig_p): Remove. - (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove. - (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. - (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS. - (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. - (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16. - (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. - -2012-02-14 Bernd Schmidt - - * config/c6x/c6x.md (reserve_cycles): New attribute. - * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate - don't reserve functional units after the branch occurs. - -2012-02-14 Aldy Hernandez - - PR middle-end/52142 - * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure - functions into non-tm_pure functions. - -2012-02-14 Eric Botcazou - - PR lto/52178 - * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P. - (iterative_hash_canonical_type): Likewise. - * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all - the dead edges. - -2012-02-14 Bernd Schmidt - - * haifa-sched.c (prune_ready_list): Ensure that if there is a - sched-group insn, it either remains alone or the entire list is pruned. - -2012-02-14 Jonathan Wakely - - * doc/install.texi (Prerequisites): Fix grammar. - (Configuration): Likewise. - -2012-02-14 Jonathan Wakely - - * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and - MPC as part of GCC before describing configuring with --with-gmp etc. - (Installing GCC: Configuration): --with-gmp etc. aren't needed if - sources are present. - -2012-02-14 Jakub Jelinek - - PR debug/51950 - * dwarf2out.c (clone_tree_hash): New function. - (copy_decls_walk): Use it instead of clone_tree. - -2012-02-14 Richard Guenther - - PR tree-optimization/52244 - PR tree-optimization/51528 - * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE - replacements for integral types. - -2012-02-14 Walter Lee - - * config.gcc: Handle tilegx and tilepro. - * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for - tilegx and tilepro. - Add HAVE_AS_TLS check for tilegx and tilepro. - * configure: Regenerate. - * doc/contrib.texi: Add Mat Hostetter and self. - * doc/extend.texi (TILE-Gx Built-in Functions): New node. - Document instruction intrinsics and network accessing intrinsics. - (TILEPro Built-in Functions): New node. Document instruction - intrinsics and network accessing intrinsics. - * doc/install.texi (Specific, tilegx-*-linux*): Document it. - (Specific, tilepro-*-linux*): Likewise. - * doc/invoke.texi (TILE-Gx Options): New section. - (TILEPro Options): New section. - * doc/md.texi (TILE-Gx): New section. - (TILEPro): New section. - * common/config/tilegx/tilegx-common.c: New file. - * common/config/tilepro/tilepro-common.c: New file. - * config/tilegx/constraints.md: New file. - * config/tilegx/linux.h: New file. - * config/tilegx/mul-tables.c: New file. - * config/tilegx/predicates.md: New file. - * config/tilegx/sync.md: New file. - * config/tilegx/t-tilegx: New file. - * config/tilegx/tilegx-builtins.h: New file. - * config/tilegx/tilegx-c.c: New file. - * config/tilegx/tilegx-generic.md: New file. - * config/tilegx/tilegx-modes.def: New file. - * config/tilegx/tilegx-multiply.h: New file. - * config/tilegx/tilegx-protos.h: New file. - * config/tilegx/tilegx.c: New file. - * config/tilegx/tilegx.h: New file. - * config/tilegx/tilegx.md: New file. - * config/tilegx/tilegx.opt: New file. - * config/tilepro/constraints.md: New file. - * config/tilepro/gen-mul-tables.cc: New file. - * config/tilepro/linux.h: New file. - * config/tilepro/mul-tables.c: New file. - * config/tilepro/predicates.md: New file. - * config/tilepro/t-tilepro: New file. - * config/tilepro/tilepro-builtins.h: New file. - * config/tilepro/tilepro-c.c: New file. - * config/tilepro/tilepro-generic.md: New file. - * config/tilepro/tilepro-modes.def: New file. - * config/tilepro/tilepro-multiply.h: New file. - * config/tilepro/tilepro-protos.h: New file. - * config/tilepro/tilepro.c: New file. - * config/tilepro/tilepro.h: New file. - * config/tilepro/tilepro.md: New file. - * config/tilepro/tilepro.opt: New file. - -2012-02-14 Jakub Jelinek - - PR tree-optimization/52210 - * tree-vect-slp.c (vect_get_and_check_slp_defs): Call - vect_model_simple_cost with two entry vect_def_type array instead - of an address of dt. - -2012-02-14 Richard Guenther - - PR lto/52178 - * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers): - Do not stream DECL_QUALIFIER. - * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise. - * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER. - (find_decls_types_r): Do not walk DECL_QUALIFIER. - -2012-02-14 Jakub Jelinek - - PR c/52181 - * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to - newdecl. - -2012-02-13 Jakub Jelinek - - PR bootstrap/52172 - * cselib.h (cselib_subst_to_values_from_insn): New prototype. - * cselib.c (cselib_subst_to_values_from_insn): New function. - * sched-deps.c (add_insn_mem_dependence, - sched_analyze_1, sched_analyze_2): Use it. - -2012-02-13 Jan Hubicka - - PR middle-end/52214 - * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch. - -2012-02-13 Eric Botcazou - - * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm. - (GTM_SELF_SPECS): Define if not already defined. - (driver_self_specs): Add GTM_SELF_SPECS. - * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm. - (GTM_SELF_SPECS): Define. - * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise. - * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise. - -2012-02-13 Jakub Jelinek - - * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right - away if seen. - - * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL. - - PR middle-end/52230 - * omp-low.c (expand_omp_for): If a static schedule without chunk size - has NULL region->cont, force fd.chunk_size to be integer_zero_node. - -2012-02-13 Andrew MacLeod - - PR c/52190 - * doc/extend.texi : Fix another __atomic_compare_exchange typo. - -2012-02-13 Richard Guenther - - PR translation/52211 - * passes.c (enable_disable_pass): Fix typo. - -2012-02-13 Jakub Jelinek - - PR middle-end/52209 - * expr.c (expand_expr_real_2) : Only expand using - XOR for reduce_bit_field if type is unsigned. - -2012-02-12 Eric Botcazou - - * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode, - disallow changes from SFmode to mode with different size in FP regs. - -2012-02-12 Robert Millan - Gerald Pfeifer - - * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define. - Tweak comment. - -2012-02-11 Richard Sandiford - - PR rtl-optimization/52175 - * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization - to frame-related instructions. - -2012-02-10 Jason Merrill - - PR c++/51910 - * tlink.c (demangled_hash_entry): Change mangled to a VEC. - (demangle_new_symbols): Fill it. - (scan_linker_output): Walk it. - (start_tweaking): Split out from scan_linker_output. - (maybe_tweak): Update sym->chosen. - * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o - -2012-02-11 Jakub Jelinek - - PR debug/52132 - * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg. - -2012-02-11 Uros Bizjak - - * compare-elim.c (find_comparisons_in_bb): Eliminate only compares - having the same mode as previous compare. - -2012-02-10 Eric Botcazou - - * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use. - * config/sparc/sparc.md (UNSPECV_GOTO): Delete. - (nonlocal_goto_internal): Likewise. - (nonlocal_goto): Emit a use and an indirect jump directly. - -2012-02-10 Andrew MacLeod - - PR c/52190 - * doc/extend.texi : Update comments for __atomic_compare_exchange and - __atomic_{is,always}_lock_free. - -2012-02-10 Uros Bizjak - - PR target/52146 - * config/i386/i386.c (ix86_legitimate_address_p): Disallow - negative constant address for TARGET_X32. - -2012-02-10 Richard Henderson - - * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION. - * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands - for GIMPLE_TRANSACTION. Tidy if's into a switch. - -2012-02-10 Bill Schmidt - Ira Rosen - - PR tree-optimization/50031 - * targhooks.c (default_builtin_vectorization_cost): Handle - vec_promote_demote. - * target.h (enum vect_cost_for_stmt): Add vec_promote_demote. - * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle - all types of reduction and pattern statements. - (vect_estimate_min_profitable_iters): Likewise. - * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function. - (vect_get_load_cost): Use vec_perm for permutations; add dump logic - for explicit realigns. - (vectorizable_conversion): Call vect_model_promotion_demotion_cost. - * config/spu/spu.c (spu_builtin_vectorization_cost): Handle - vec_promote_demote. - * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise. - * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update - vec_perm for VSX and handle vec_promote_demote. - -2012-02-10 Jakub Jelinek - - PR middle-end/52177 - * builtins.c (fold_builtin_atomic_always_lock_free, - expand_builtin_atomic_always_lock_free, - fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free): - Return and/or test boolean_true_node/boolean_false_node instead of - integer_one_node/integer_zero_node. - -2012-02-10 Jan Hubicka - - PR middle-end/48600 - * predict.c (predict_paths_for_bb): Prevent looping. - (predict_paths_leading_to_edge, predict_paths_leading_to): Update. - -2012-02-10 Roman Zhuykov - - * config/arm/arm.c (output_move_double): In one case properly - count number of instructions that will be emitted. - -2012-02-10 Richard Guenther - - PR translation/52193 - * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo. - -2012-02-09 Peter Bergner - - PR middle-end/52140 - * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P. - -2012-02-09 Jakub Jelinek - - PR debug/52165 - * var-tracking.c (emit_note_insn_var_location): If - EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION, - emit it before next non-NOTE_INSN_CALL_ARG_LOCATION - non-NOTE_DURING_CALL_P insn. - -2012-02-09 Bin Cheng - - PR middle-end/51867 - * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P. - -2012-02-08 Magnus Granberg - - PR driver/48524 - * gcc.c (switch_matches) Support switches with separated form, - -D and -U. - -2012-02-08 Georg-Johann Lay - - * config/avr/avr.md (SREG_ADDR): Remove constant definition. - (SP_ADDR): Ditto. - (RAMPZ_ADDR): Ditto. - * config/avr/avr.c (avr_addr_t): New typedef. - (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG. - (avr_init_expanders): Initialize it. - (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR, - SREG_ADDR. - (expand_epilogue): Ditto. - (avr_print_operand): Ditto. - (avr_file_start): Ditto. - (avr_emit_movmemhi): Ditto. - -2012-02-08 Richard Guenther - - PR tree-optimization/46886 - * tree-flow.h (do_while_loop_p): Declare. - * tree-ssa-loop-ch.c (do_while_loop_p): Export. - * tree-parloops.c (parallelize_loops): Only parallelize do-while loops. - -2012-02-08 Andrew MacLeod - - * optabs.c (expand_atomic_load): Do not assume compare_and_swap will - always succeed for integers larger than a native word. - -2012-02-08 Richard Guenther - - PR rtl-optimization/52170 - * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to - properly handle integer vector modes. - -2012-02-08 Jakub Jelinek - - PR gcov-profile/52150 - * coverage.c: Include target.h. - (build_var): Call targetm.strip_name_encoding on the assembler name. - Change one _ into . or $ if the target allows it. - * Makefile.in (coverage.o): Depend on $(TARGET_H). - - PR rtl-optimization/52139 - * cfgrtl.c (cfg_layout_merge_blocks): If BB_END - is a BARRIER after emit_insn_after_noloc, move BB_END - to the last non-BARRIER insn before it. - -2012-02-07 Richard Sandiford - - PR middle-end/24306 - * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function. - (mips_gimplify_va_arg_expr): Call it instead of - std_gimplify_va_arg_expr. - -2012-02-07 Michael Meissner - - * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error - message for -mno-pointers-to-nested-function. - -2012-02-07 Eric Botcazou - - PR middle-end/51994 - * expr.c (get_inner_reference): If there is an offset, add a negative - bit position to it (if any). - -2012-02-07 Jakub Jelinek - - PR rtl-optimization/52060 - * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables, - copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already - before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy - and/or i0src_copy2 when needed. - -2012-02-07 Jakub Jelinek - - * gcc.c (main): Don't look for lto-wrapper or lto-wrapper - or LTOPLUGINSONAME if have_c. - - * config/freebsd-spec.h: Add comment about what macros can be defined - in this header. - (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here. - * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But - here instead. - -2012-02-07 Richard Guenther - - * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive - newline in -alias dumps. - -2012-02-07 Kai Tietz - Dave Korn - - PR target/40068 - * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): - Take care that typinfo gets dllexport-attribute. - -2012-02-07 Jakub Jelinek - - PR middle-end/52074 - * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL - if modifier < EXPAND_SUM call force_operand on the result. - -2012-02-07 Joern Rennecke - - * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine, - adding __forwarder_dst__ prefix if a forwarder_section attribute is - present. - (epiphany_function_type): Replace types for specific interrupts with - EPIPHANY_FUNCTION_INTERRUPT. - (EPIPHANY_INTERRUPT_P): Update. - * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute): - New static function. - (epiphany_attribute_table) : min_len is 0, max_len is 9. - : Affects type identity. - (epiphany_handle_interrupt_attribute): Handle variable number of - arguments. - (epiphany_compute_function_type): Update for new - epiphany_function_type definition. - (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt - handlers with a longcall forwarder. - (epiphany_start_function): Handle multiple interrupt arguments and/or - forwarder_section attribute. - - * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after - libgloss. - -2012-02-07 Alan Modra - - PR target/52107 - * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode - subregs of TFmode. - -2012-02-06 Bill Schmidt - - PR tree-optimization/50969 - * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to - use vec_perm rather than vector_stmt. - (vect_model_load_cost): Likewise. - * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of - vec_perm to be the same as other vector statements. - * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise - cost of vec_perm for TARGET_VSX. - -2012-02-06 Richard Guenther - - PR tree-optimization/52115 - * tree-sra.c (access_has_replacements_p): New function. - (sra_modify_assign): Use it to decide whether a use is uninitialized. - -2012-02-06 Patrick Marlier - - PR middle-end/52047 - * trans-mem.c (expand_call_tm): Add an assertion. - * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops' - functions. - -2012-02-06 Richard Guenther - - PR tree-optimization/50955 - * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially - raise cost of expressions that replace an address with an - expression based on a different pointer. - -2012-02-06 Jakub Jelinek - - PR target/52129 - * calls.c (mem_overlaps_already_clobbered_arg_p): If val is - CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it. - -2012-02-06 Jonathan Wakely - - PR c++/48680 - * doc/invoke.texi (C++ Dialect Options): Use @option markup for - -Weffc++ and specify guidelines come from second edition. - -2012-02-05 Richard Sandiford - - * config/mips/mips.md (sibcall_internal, sibcall_value_internal) - (sibcall_value_multiple_internal, call_split, call_internal_direct) - (call_direct_split, call_value_split, call_value_internal_direct) - (call_value_direct_split, call_value_multiple_split): Use jal and - jal_macro attributes. - -2012-02-05 Richard Sandiford - - * reload1.c (reload_regs_reach_end_p): Replace with... - (reload_reg_rtx_reaches_end_p): ...this function. - (new_spill_reg_store): Update commentary. - (emit_input_reload_insns): Don't clear new_spill_reg_store here. - (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p - before setting new_spill_reg_store. - (emit_reload_insns): Use a separate loop to clear new_spill_reg_store. - Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p. - Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store - for non-spill reload registers. - -2012-02-05 Ira Rosen - - PR tree-optimization/52091 - * tree-vectorizer.h (vect_is_simple_use): Add an argument. - (vect_is_simple_use_1): Likewise. - * tree-vect-loop.c (vectorizable_reduction): Update calls - to vect_is_simple_use_1 and vect_is_simple_use. - (vectorizable_live_operation): Likewise. - * tree-vect-patterns.c (widened_name_p, - vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise. - * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand, - vectorizable_call, vectorizable_conversion, vectorizable_assignment, - vectorizable_shift,vectorizable_operation, vectorizable_store, - vectorizable_load): Likewise. - (vect_is_simple_cond): Add an argument, pass it to - vect_is_simple_use_1. - (vectorizable_condition): Update calls to vect_is_simple_cond, - vect_is_simple_use. - (vect_is_simple_use): Add an argument, the statement in which - OPERAND is used. Check that if OPERAND's def stmt is a double - reduction phi node, the use is a phi node too. - (vect_is_simple_use_1): Add an argument, pass it to - vect_is_simple_use. - * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call - to vect_is_simple_use. - -2012-02-04 Jakub Jelinek - - PR rtl-optimization/52095 - * modulo-sched.c (dump_insn_locator): New function. - (loop_canon_p, sms_schedule): Use it. - - PR rtl-optimization/52113 - * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized - even for decomposable shift/zext insns. - -2012-02-03 Jakub Jelinek - Zdenek Dvorak - - PR rtl-optimization/52092 - * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared - on get_iv_value result. - -2012-02-02 Andrew Pinski - - PR middle-end/47982 - PR middle-end/43967 - * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo. - -2012-02-02 Jakub Jelinek - - PR middle-end/48071 - * diagnostic.c (diagnostic_finish): Remove trailing newlines. - -2012-02-02 Vladimir Makarov - - PR rtl-optimization/49800 - * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs. - (sched_finish): Call regstat_free_n_sets_and_refs. - -2012-02-02 Jia Liu - - * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather - than operand 2. - -2012-02-02 Jan Hubicka - Tom de Vries - - PR middle-end/51998 - * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases. - * varpool.c (varpool_analyze_pending_decls): Likewise. - -2012-02-02 Sumanth G - Jayant R Sonar - - * config.gcc: Add cr16-* support. - - * doc/extend.texi: Document cr16 extensions. - * doc/install.texi: Document cr16 install. - * doc/invoke.texi: Document cr16 options. - * doc/md.texi: Document cr16 constraints. - - * common/config/cr16/cr16-common.c: New file. - * config/cr16/cr16.c: New file. - * config/cr16/cr16.h: New file. - * config/cr16/cr16.md: New file. - * config/cr16/cr16.opt: New file. - * config/cr16/cr16-protos.h: New file. - * config/cr16/predicates.md: New file. - * config/cr16/constraints.md: New file. - * config/cr16/t-cr16: New file. - -2012-02-02 Jakub Jelinek - - PR target/52086 - * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check - that operands[2] is either immediate, or q_regs_operand. - - PR tree-optimization/52073 - * tree-vect-stmts.c (vect_mark_relevant): When checking uses of - a pattern stmt for pattern uses, ignore uses outside of the loop. - -2012-02-01 Georg-Johann Lay - - * config/avr/avr.c: Resolve all AS1 and AS2 macros. - * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove. - (OUT_AS1, OUT_AS2): Remove. - -2012-02-01 Georg-Johann Lay - - PR rtl-optimization/51374 - * combine.c (can_combine_p): Don't allow volatile_refs_p insns - to cross other volatile_refs_p insns. - -2012-02-01 Richard Guenther - - * doc/invoke.texi (fno-inline): Clarify documentation. - (finline-small-functions): Likewise. - (finline-functions): Likewise. - * common.opt (finline): Adjust comment and documentation. - (finline-small-functions): Clarify documentation. - (finline-functions): Likewise. - (finline-functions-called-once): Likewise. - -2012-02-01 Tristan Gingold - - * c-typeck.c (composite_type): Keep mode for pointers. - -2012-01-31 Richard Sandiford - - * function.h (regno_reg_rtx): Adjust comment. - * reginfo.c (init_reg_modes_target): Only use the previous mode - if it fits within one register. Remove MIPS comment. - -2012-01-31 Jakub Jelinek - - PR bootstrap/52058 - * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0. - -2012-01-31 Andreas Krebbel - - * config/s390/s390.md ("*ashr3_and"): Add missing z196 flag - to srak instruction. - -2012-01-31 Matthew Gretton-Dann - - * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition. - -2012-01-31 Jakub Jelinek - - PR bootstrap/52041 - PR bootstrap/52039 - PR target/51974 - * ipa-prop.c (detect_type_change_1): Call ao_ref_init. - -2012-01-31 Richard Guenther - - PR tree-optimization/51528 - * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate - assigns. - -2012-01-31 Jakub Jelinek - - PR bootstrap/52041 - PR bootstrap/52039 - PR target/51974 - * ree.c (add_removable_extension): Change def_map argument - to unsigned *, store in def_map 1 + offset into *insn_list vector - instead of pointers into the vector. - (find_removable_extensions): Adjust caller. - -2012-01-30 Georg-Johann Lay - - * config/avr/avr.md: Resolve all AS1 and AS2 macros. - Transform all "* quoted-c-code" to { c-code }. - Remove redundant test for "optimize" in combine patterns. - Move (include "avr-dimode.md") to end of file. - -2012-01-30 Bin Cheng - - PR target/51835 - * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI - for __aeabi_d2iz/__aeabi_d2uiz with hard-float. - -2012-01-30 Richard Guenther - - PR tree-optimization/52028 - * tree-loop-distribution.c (ldist_gen): Properly update - virtual SSA form. - -2012-01-30 Jakub Jelinek - - PR debug/52027 - * dwarf2out.c (dwarf2out_switch_text_section): Don't call - set_cur_line_info_table if not emitting debug info. - - PR tree-optimization/52046 - * tree-vect-patterns.c (check_bool_pattern): Give up if - a comparison could throw. - - PR debug/52048 - * tree-ssa-tail-merge.c (local_def): Ignore debug uses. - -2012-01-30 Richard Guenther - - PR tree-optimization/52045 - * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update - SSA form if cfgcleanup did anything. - -2012-01-30 Richard Guenther - - PR tree-optimization/52045 - * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg - before computing final todo. - -2012-01-30 Richard Guenther - - PR tree-optimization/51528 - * tree-sra.c (sra_modify_assign): Re-factor in preparation - for PR51528 fix. - -2012-01-30 Paolo Bonzini - - * df-problems.c (df_kill_notes): Check that the use refers - to the note under examination. - -2012-01-30 Eric Botcazou - - PR target/51920 - * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE - parameter and use short-lived pseudos. - (vector_init_faligndata): Remove INNER_MODE parameter and use loop. - (sparc_expand_vector_init): Const-ify local variables and adjust - calls to above functions. - -2012-01-30 Georg-Johann Lay - - * config/avr/avr.c (out_movqi_mr_r): Fix length computation. - -2012-01-29 Sandra Loosemore - - * doc/invoke.texi: Make usage of "compile time" and - "run time"/"runtime" consistent throughout the file. - -2012-01-29 Uros Bizjak - - * config/alpha/alpha.c (alpha_option_override): Default to - full IEEE compliance mode for Go language. - -2012-01-29 Tijl Coosemans - - * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP] - (LINK_SSP_SPEC): Define. - -2012-01-28 John David Anglin - - PR target/51871 - * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export - stubs. - -2012-01-28 Sandra Loosemore - - * doc/invoke.texi: Correct hyphenation of "floating point", - "double precision", and related terminology throughout the file. - -2012-01-28 Jakub Jelinek - - PR target/52006 - * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use - arm_general_register_operand predicate for operand 2 instead of - register_operand. - -2012-01-27 Ian Lance Taylor - - PR go/47656 - * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define. - * builtins.c (expand_builtin_init_trampoline): Add onstack - parameter. Change caller. - (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE. - * tree.c (build_common_builtin_nodes): Declare - __builtin_init_heap_trampoline. - -2012-01-27 Georg-Johann Lay - - * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx, - tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global. - * config/avr/avr.c: Ditto. - (avr_regnames): Remove because unused. - * config/avr/avr.md (*cpse.ne): New peephole. - (*cpse.eq): New peephole from former cpse peepholes. - -2012-01-27 Michael Eager - - * config/microblaze.c (microblaze_emit_compare): Correct - test after pcmp instruction. - -2012-01-27 Richard Guenther - - PR tree-optimization/52020 - * tree-sra.c (sra_modify_assign): Do not transform clobbers. - -2012-01-27 Richard Guenther - - * ipa-pure-const.c (check_stmt): Clobbers do not make a - function non-const/pure. - -2012-01-27 Richard Guenther - - PR tree-optimization/50444 - * tree-sra.c (build_ref_for_offset): Properly adjust the - MEM_REF type for unaligned accesses. - -2012-01-27 Richard Guenther - - PR tree-optimization/50444 - * expr.c (mem_ref_refers_to_non_mem_p): New function. - (expand_assignment): Use it. Properly handle misaligned - bases when expanding stores to component references. - (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and - refactor that case. - -2012-01-27 Andrey Belevantsev - - PR middle-end/51389 - * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H). - * tree-data-ref.h (find_data_references_in_loop): Remove declaration. - * tree-data-ref.c (find_data_references_in_loop): Make static. - (compute_all_dependences): Change return type to bool. Bail out - for too many datarefs in a loop. Move the hunk resetting the data - dependences vector from ... - (compute_data_dependences_for_loop): ... here. Account for - compute_all_dependences returning false. - (compute_data_dependences_for_bb): Likewise. - * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param. - * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it. - -2012-01-27 Richard Guenther - - PR middle-end/51959 - * expr.c (store_field): Use the alias-set of the scratch memory - for storing to it. - -2012-01-27 Tom de Vries - - PR tree-optimization/51990 - * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle - WITH_SIZE_EXPR. - * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same. - -2012-01-27 Jakub Jelinek - - PR debug/52001 - * var-tracking.c (reverse_op): Don't add any reverse operation - if V already has any constant locations. - -2012-01-27 Sandra Loosemore - - * doc/invoke.texi: Correct usage of "command line" (noun) - vs "command-line" (adjective) throughout. - -2012-01-27 Sandra Loosemore - - * doc/invoke.texi (Language Independent Options): Move - -Wcoverage-mismatch blurb from here.... - (Warning Options): ...to here. - -2012-01-27 Peter Bergner - - * config/rs6000/rs6000.c (rs6000_option_override_internal): - Set rs6000_always_hint to false for 476. - -2012-01-27 Matthias Klose - - * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from - system root. - * incpath.c (add_standard_paths): Likewise. - -2012-01-27 Richard Henderson - - * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. - * config/m68k/sync.md (atomic_test_and_set): Rename from - sync_test_and_setqi and adjust the operands. - (atomic_test_and_set_1): Rename from sync_test_and_setqi_1 - and unconditionally enable. - -2012-01-27 Richard Henderson - - * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. - * config/sparc/sync.md (atomic_test_and_set): Only handle QImode. - (ldstub): Rename from ldstubqi. - (ldstub): Remove. - -2012-01-27 Richard Henderson - - * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. - * c-cppbuiltin.c (cpp_atomic_builtins): Define - __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. - * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook. - * doc/tm.texi: Rebuild. - -2012-01-27 Richard Henderson - - * optabs.c (gen_atomic_test_and_set): Remove default. - (maybe_emit_atomic_test_and_set): Use maybe_expand_insn. - -2012-01-26 Jakub Jelinek - - PR rtl-optimization/51978 - * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx. - (combine_reaching_defs): Likewise. - (struct re_info): Remove. - (add_removable_extension): Remove x and data arguments, - add insn, insn_list and def_map. Use the arguments directly - instead of using struct re_info. - (find_removable_extensions): Don't call add_removable_extension - through note_stores, instead just call it with single_set - result if non-NULL. - (find_and_remove_re): Pass curr_cand->expr instead of - PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs. - -2012-01-26 Michael Matz - - PR tree-optimization/46590 - * cfgexpand.c: Revert last change (r183305). - * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple - regs. - * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before - checking for emptiness. - -2012-01-26 Jakub Jelinek - - PR middle-end/51895 - * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of - non-addressable non-BLKmode base correctly. - -2012-01-26 Michael Matz - - PR tree-optimization/48794 - * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove - regions referenced from RESX/EH_DISPATCH. - -2012-01-26 Andreas Krebbel - - * config/s390/s390.h: Make BRANCH_COST an option. - * config/s390/s390.opt: New option -mbranch-cost. - -2012-01-26 Richard Henderson - - Revert 2012-01-24 change: - * trans-mem.c (requires_barrier): Do not instrument thread local - variables and emit save/restore for them. - -2012-01-25 Jakub Jelinek - - PR middle-end/51986 - * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test - for pat == 0. - -2012-01-25 Richard Sandiford - - * config/mips/mips.c (mips_small_data_pattern_1): Don't process - ASM_OPERANDS. - -2012-01-25 Georg-Johann Lay - - PR target/49868 - Rename __pgm to __flash. - Rename __pgm1 to __flash1. - Rename __pgm2 to __flash2. - Rename __pgm3 to __flash3. - Rename __pgm4 to __flash4. - Rename __pgm5 to __flash5. - Rename __pgmx to __memx. - * doc/extend.texi (AVR Named Address Spaces) - Rename address space names as indicated above. - * config/avr/avr.c (avr_addrspace): Ditto. - - * config/avr/avr-protos.h - (avr_mem_pgmx_p): Rename to avr_mem_memx_p. - (avr_mem_pgm_p): Rename to avr_mem_flash_p. - * config/avr/predicates.md: Ditto. - * config/avr/avr.c Ditto, and - (avr_decl_pgmx_p): Rename to avr_decl_memx_p. - (avr_decl_pgm_p): Rename to avr_decl_flash_p. - - * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH. - (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1. - (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2. - (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3. - (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4. - (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5. - (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX. - * config/avr/avr.c: Ditto. - * config/avr/avr.md: Ditto. - -2012-01-25 Jason Merrill - - PR c++/51992 - * tree.c (find_decls_types_in_node): Walk gimple_call_fntype. - -2012-01-25 Jakub Jelinek - - PR tree-optimization/51987 - * tree-data-ref.c (get_references_in_stmt): Handle references in - non-volatile GIMPLE_ASM. - -2012-01-25 Richard Guenther - - * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both - bases are dereferenced. - -2012-01-25 Andrey Belevantsev - - PR rtl-optimization/48374 - * sel-sched-ir.h (get_all_loop_exits): Check for zero successors. - -2012-01-25 Andrey Belevantsev - - * tree-predcom.c (tree_predictive_commoning_loop): Bail out when - compute_data_dependences_for_loop returns false. - * tree-parloops.c (loop_parallel_p): Likewise. - -2012-01-25 Richard Guenther - - * tree.h (get_pointer_alignment_1): Declare. - * builtins.c (get_pointer_alignment_1): New function. - (get_pointer_alignment): Use it. - -2012-01-25 Ramana Radhakrishnan - - PR rtl-optimization/48308 - * combine.c (enum undo_kind): Add UNDO_LINKS. - (struct undo): Add member l to other_contents and where. - (do_SUBST_LINK): New. - (SUBST_LINK): New. - (try_combine): Handle LOG_LINKS for the dummy i1 case. - (undo_all): Handle UNDO_LINKS. - -2012-01-25 Richard Henderson - - * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode - mem inputs. - -2012-01-24 Richard Sandiford - - * optabs.c (gen_atomic_test_and_set): Use each argument. - -2012-01-24 Richard Sandiford - - * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf) - (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_) - (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t) - (bc1any2f, mips_rsqrt1_, mips_rsqrt2_, mips_recip1_) - (mips_recip2_): Require TARGET_MIPS3D rather than - TARGET_PAIRED_SINGLE_FLOAT. - -2012-01-24 Richard Sandiford - - * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete. - (in_struct, return_val): Remove MEM documentation. - * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val. - (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete. - (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P - and MEM_SCALAR. - * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise. - * cfgexpand.c (add_alias_set_conflicts): Likewise. - * expr.c (store_field): Likewise. - * function.c (assign_stack_temp_for_type): Likewise. - * ifcvt.c (noce_try_cmove_arith): Likewise. - * reload1.c (reload): Likewise. - * config/alpha/alpha.c (alpha_set_memflags_1): Likewise. - (alpha_set_memflags): Likewise. - * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify. - -2012-01-24 Richard Sandiford - - * rtl.h (true_dependence, canon_true_dependence): Remove varies - parameter. - * alias.c (fixed_scalar_and_varying_struct_p): Delete. - (true_dependence_1, write_dependence_p, may_alias_p): Don't call it. - (true_dependence_1, true_dependence, canon_true_dependence): Remove - varies parameter. - * cselib.c (cselib_rtx_varies_p): Delete. - (cselib_invalidate_mem): Update call to canon_true_dependence. - * dse.c (record_store, check_mem_read_rtx): Likewise. - (scan_reads_nospill): Likewise. - * cse.c (check_dependence): Likewise. - (cse_rtx_varies_p): Delete. - * expr.c (safe_from_p): Update call to true_dependence. - * ira.c (validate_equiv_mem_from_store): Likewise. - (memref_referenced_p): Likewise. - * postreload-gcse.c (find_mem_conflicts): Likewise. - * sched-deps.c (sched_analyze_2): Likewise. - * store-motion.c (load_kills_store): Likewise. - * config/frv/frv.c (frv_registers_conflict_p_1): Likewise. - * gcse.c (mems_conflict_for_gcse_p): Likewise. - (compute_transp): Update call to canon_true_dependence. - -2012-01-25 Richard Henderson - - * optabs.c (CODE_FOR_atomic_test_and_set): Provide default. - (maybe_emit_atomic_test_and_set): New. - (expand_sync_lock_test_and_set): Use it. - (expand_atomic_test_and_set): Likewise. - * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match - the implementation; clarify implementation defined details. - * doc/md.texi (atomic_test_and_set): Document. - -2012-01-25 Richard Henderson - - * config/sparc/predicates.md (zero_or_v7_operand): Use match_code. - -2012-01-25 Richard Henderson - - PR target/51968 - * config/arm/arm.c (neon_split_vcombine): Emit deleted note - to effect no-op split. - -2012-01-24 Aldy Hernandez - - PR lto/51698 - * builtin-types.def: (BT_CONST_DOUBLE_PTR): New. - (BT_FN_VOID_PTR_CONST_PTR_SIZE): New. - (BT_FN_VOID_PTR_INT_SIZE): New. - (BT_FN_UINT_UINT_VAR): Remove. - (BT_FN_UINT32_UINT32_VAR): New. - (BT_FN_DOUBLE_VPTR): Remove. - (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New. - - * gtm-builtins.def (_ITM_abortTransaction): Set return type to void. - (_ITM_changeTransactionMode): Same. - (_ITM_memmoveRtWt): Change return type to void. - (_ITM_memcpyRtWt): Same. - (_ITM_memsetW): Same. - (_ITM_RaRD): Change types to double. - (_ITM_RD): Same. - (_ITM_RaWD): Same. - (_ITM_RfWD): Same. - - * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true. - -2012-01-24 Aldy Hernandez - Patrick Marlier - - * trans-mem.c (requires_barrier): Do not instrument thread local - variables and emit save/restore for them. - -2012-01-24 Jason Merrill - - PR c++/51812 - * cgraphunit.c (cgraph_decide_is_function_needed): Don't always - output static aliases. - -2012-01-24 Jakub Jelinek - - PR driver/47249 - * common.opt (-pie, -shared, pie, shared): Change from Common to - Driver. - * gcc.c (display_help): Display help for -pie and -shared. - -2012-01-24 Georg-Johann Lay - - PR target/49868 - * doc/extend.texi (AVR Named Address Spaces): Move sample code up. - Remove note on size/offset limitation. - (AVR Variable Attributes): Add example how to read data located - with progmem. Refer to named address spaces. - * doc/invoke.texi (AVR Options): Fix typo. - -2012-01-24 Richard Guenther - - Forward-port to trunk - 2010-09-21 Jakub Jelinek - - PR middle-end/45678 - * expr.c (expand_expr_real_1) : If - op0 isn't sufficiently aligned and there is movmisalignM - insn for mode, use it to load op0 into a temporary register. - -2012-01-24 Jakub Jelinek - - PR target/51957 - * target.def (const_not_ok_for_debug_p): New hook. - * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook - documentation. - * doc/tm.texi: Regenerated. - * dwarf2out.c (const_ok_for_output_1): If - targetm.const_not_ok_for_debug_p returns true, fail. - * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New - function. - (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine. - -2012-01-23 Kai Tietz - - PR target/51900 - * config/i386/predicates.md (symbolic_operand): Allow - UNSPEC_PCREL as PIC expression for lea. - * config/i386/winnt.c (i386_pe_binds_local_p): Reworked. - * config/i386/i386.c (ix86_delegitimize_address): Handle - UNSPEC_PCREL for none-MEM, too. - -2012-01-23 Aldy Hernandez - - * trans-mem.c (ipa_tm_create_version): Set externally_visible. - (ipa_tm_create_version_alias): Same. - -2012-01-23 Uros Bizjak - - PR libitm/51830 - * builtin-types.def (BT_FN_UINT_UINT_VAR): New. - * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR. - -2012-01-23 Aldy Hernandez - Patrick Marlier - Iain Sandoe - - PR lto/51916 - * lto-wrapper.c (run_gcc): Pass the LTO section name to - simple_object_start_read. - -2012-01-23 Richard Guenther - - - PR tree-optimization/51895 - * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal - parameter decomposition into BLKmode components. - -2012-01-23 Eric Botcazou - - * tree-ssa-structalias.c (intra_create_variable_infos): Do not create - fake variables for restrict-qualified pointers whose pointed-to type - contains a placeholder. - -2012-01-23 Richard Guenther - - PR tree-optimization/51949 - * ipa-split.c (execute_split_functions): Do not split malloc functions. - -2012-01-23 Jakub Jelinek - - PR rtl-optimization/51933 - * ree.c (transform_ifelse): Return true right away if dstreg is - already wider or equal to cand->mode. - (enum ext_modified_kind, struct ext_modified, ext_state): New types. - (make_defs_and_copies_lists): Remove defs_list and copies_list - arguments, add state argument, just truncate state->work_list - instead of always allocating and freeing the vector. Assert that - get_defs succeeds instead of returning 2. Changed return type to bool. - (merge_def_and_ext): Add state argument. If SET_DEST doesn't - have ext_src_mode, see if it has been modified already with the - right kind of extension and has been extended before from the - ext_src_mode. If SET_DEST is already wider or equal to cand->mode, - just return true. Remember the original mode in state->modified array. - (combine_reaching_defs): Add state argument. Don't allocate and - free here def_list, copied_list and vec vectors, instead just - VEC_truncate the vectors in *state. Don't handle outcome == 2 here. - (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag. - Add state variable, clear vectors in it, initialize state.modified - if needed. Free all the vectors at the end and state.modified too. - Don't skip a candidate if the extension expression has been modified. - -2012-01-22 Douglas B Rupp - - PR target/47096 - * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete - configurations. Change triplet to i[34567]86-*-interix[3-9]*. - (extra_options) interix.opt -> i386/interix.opt" - (extra_objs):Add winnt-stubs.o - * configure.ac: Add interix to target_os .comm on PE check. - * configure: Regenerate. - * config/interix3.h: Delete and move bits to.. - * config/interix.h: Delete and move bits to.. - * config/i386/i386-interix3.h: Delete and move bits to.. - * config/i386/i386-interix.h: ..here. - (TARGET_CPU_DEFAULT): Remove redefinition. - (TARGET_ASM_CONSTRUCTOR): Undefine. - (SUBTARGET_SWITCHES): Define for ms-bitfields. - (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec. - (PTRDIFF_TYPE): Define. - (LONG_DOUBLE_TYPE_SIZE): Define. - (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define. - (SUBTARGET_OVERRIDE_OPTIONS): Remove. - (TARGET_SECTION_TYPE_FLAGS): Define. - (ASM_DECLARE_FUNCTION_NAME): Define. - (ASM_OUTPUT_EXTERNAL): Define. - (ASM_OUTPUT_EXTERNAL_LIBCALL): Define. - (ASM_OUTPUT_ALIGNED_BSS): Define. - (PCC_BITFIELD_TYPE_MATTERS): Define. - (USE_CONST_SECTION): Define. - (SUBTARGET_ENCODE_SECTION_INFO): Remove. - (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove. - (SUPPORTS_ONE_ONLY): Remove. - (I386_PE_STRIP_ENCODING): Define. - * config/interix.opt: Delete and move bits to.. - * config/i386/interix.opt: ..here. New. - (mpe-aligned-commons): Add. - * config/i386/t-interix: Add copyright header. - (winnt-stubs.o): Add rule. - -2012-01-22 Jason Merrill - - PR c++/51832 - * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL - for extra name aliases. - -2012-01-22 Eric Botcazou - - PR rtl-optimization/51924 - * ree.c (combine_set_extension): Improve debugging message. - (combine_reaching_defs): Likewise. - (get_defs): Rename confusingly named variable. - (find_and_remove_re): Skip a candidate if the extension expression has - been modified. - -2012-01-21 Robert Millan - Gerald Pfeifer - - * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro. - (GNU_USER_DYNAMIC_LINKER): Adjust indentation. - -2012-01-20 Jakub Jelinek - - PR tree-optimization/51914 - * tree-vect-stmts.c (vectorizable_conversion): For - cvt_type && modifier == WIDEN, put temporary with cvt_type - at the beginning of vec_dsts and set vec_dest to temporary - with vectype_out. - -2012-01-20 Eric Botcazou - - * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. - -2012-01-20 Tijl Coosemans - - * config/i386/i386.c: Fix checks for !TARGET_MACHO. - * config/rs6000/rs6000.c: Likewise. - -2012-01-20 Jakub Jelinek - - PR target/51915 - * config/arm/arm.c (arm_count_output_move_double_insns): Call - output_move_double on a copy of operands array. - -2012-01-20 Cary Coutant - Dodji Seketeli - - PR debug/45682 - * dwarf2out.c (copy_declaration_context): Return ref to parent - of declaration DIE, if necessary. - (remove_child_or_replace_with_skeleton): Add new parameter; update - caller. Place skeleton DIE under parent DIE of original declaration. - Move call to copy_declaration_context to here ... - (break_out_comdat_types): ... from here. - -2012-01-20 Andreas Krebbel - - PR rtl-optimization/51856 - * reload.c (find_reloads_subreg_address): Set the address_reloaded - flag to reloaded. - -2012-01-20 Ramana Radhakrishnan - - PR target/51819 - * config/arm/arm.c (arm_print_operand): Correct output of alignment - hints for neon loads and stores. - -2012-01-20 Georg-Johann Lay - - PR target/49868 - PR target/50887 - * doc/extend.texi (Named Address Spaces): Split into subsections. - (AVR Named Address Spaces): New subsection. - (M32C Named Address Spaces): New subsection. - (RL78 Named Address Spaces): New subsection. - (SPU Named Address Spaces): New subsection. - (Variable Attributes): New anchor "AVR Variable Attributes". - (AVR Variable Attributes): Rewrite and avoid wording - "address space" in this context. - * doc/invoke.texi (AVR Options): Rewrite and add documentation - for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls. - (AVR Built-in Macros): New subsubsection therein. - * doc/md.texi (AVR constraints): Remove "C04", "R". - -2012-01-20 Richard Guenther - - PR tree-optimization/51903 - * tree-ssa-pre.c (eliminate): Properly purging of EH edges - when removing stmts. - -2012-01-20 Ramana Radhakrishnan - - PR target/50313 - * config/arm/arm.c (arm_load_pic_register): Use - gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit - , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four. - (arm_pic_static_addr): Likewise. - (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED. - (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED. - * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define. - (pic_load_addr_unified): New. - -2012-01-20 Andrey Belevantsev - - PR target/51106 - * function.c (instantiate_virtual_regs_in_insn): Use - delete_insn_and_edges when removing a wrong asm insn. - -2012-01-19 Vladimir Makarov - - PR rtl-optimization/40761 - * ira-int.h (struct ira_loop_tree_node): Add comment for member loop. - Add new member loop_num. - (IRA_LOOP_NODE_BY_INDEX): Modify the check. - (ira_build): Remove the parameter. - - * ira.c (ira_print_disposition): Use loop_num instead of loop->num. - (ira.c): Do not build CFG loops for one region allocation. Remove - argument from ira_build call. - - * ira-build.c (init_loop_tree_node): New function. - (create_loop_tree_nodes): Use it. Separate the case when CFG - loops are not built. - (more_one_region_p): Check current_loops. - (finish_loop_tree_nodes): Separate the case when CFG loops are not - built. - (add_loop_to_tree): Process loop equal to NULL too. - (form_loop_tree): Separate the case when CFG loops are not built. - Use explicitly number for the root. - (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add - an assertion. - (ira_print_expanded_allocno, loop_compare_func): Use loop_num - instead of loop->num. - (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num. - (mark_all_loops_for_removal): Ditto. - (remove_unnecessary_regions): Separate the case when CFG loops - are not built. - (ira_build): Remove the parameter. Use explicit number of regions - when CFG loops are not built. - - * ira-color.c (print_loop_title): Separate the case for the root node. - Use loop_num instead of loop->num. - (move_spill_restore): Use loop_num instead of loop->num. - - * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion. - (change_loop): Ditto. - (change_loop): Use loop_num instead of loop->num. - - * ira-lives.c (process_bb_node_lives): Ditto. - - * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto. - - * ira-conflicts.c (print_allocno_conflicts): Ditto. - -2012-01-19 Jakub Jelinek - - PR libmudflap/40778 - * tree-mudflap.c (mf_artificial): New function. - (execute_mudflap_function_ops, execute_mudflap_function_decls, - mx_register_decls, mudflap_enqueue_decl): Use it. - - PR target/51876 - * config/arm/neon.md (*neon_vswp): Fix up operand - numbers in the insn pattern. - -2012-01-19 Michael Matz - - PR tree-optimization/46590 - * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument, - use it in remembering which conflicts we already created. - (add_scope_conflicts): Adjust call to above, (de)allocate helper - bitmap. - -2012-01-19 Aldy Hernandez - - PR lto/51280 - * lto-wrapper.c (run_gcc): Pass -fgnu_tm on. - (merge_and_complain): Same. - -2012-01-19 Jakub Jelinek - - PR bootstrap/50237 - * config/initfini-array.h: Guard content of the header - with #ifdef HAVE_INITFINI_ARRAY. - * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file. - Add initfini-array.h to tm_file here. - * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test. - * config.gcc: Don't add initfini-array.h to tm_file here. - * configure: Regenerated. - -2012-01-19 Andrey Belevantsev - - PR rtl-optimization/51505 - * df-problems.c (df_kill_notes): New parameter live. Update comment. - Remove REG_EQUAL/REG_EQUIV notes referring to dead registers. - (df_note_bb_compute): Update the call to df_kill_notes. - -2012-01-18 Aldy Hernandez - - * trans-mem.c (requires_barrier): Remove call to is_global_var. - -2012-01-18 Richard Guenther - - * tree-ssa.c (useless_type_conversion_p): Remove special-casing - of conversions to void *. - -2012-01-17 Andreas Krebbel - Richard Sandiford - - PR middle-end/50325 - PR middle-end/51192 - * optabs.h (simplify_expand_binop): Declare. - * optabs.c (simplify_expand_binop): Make global. - * expmed.c (store_bit_field_1): Use simplify_expand_binop on big - endian targets if the source cannot be exactly covered by word - mode chunks. - -2012-01-17 Jakub Jelinek - - PR bootstrap/51872 - * hard-reg-set.h (struct hard_reg_set_container): New type. - * target.h (struct hard_reg_set_container): Forward declare. - * target.def (set_up_by_prologue): New target hook. - * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it. - * doc/tm.texi: Regenerated. - * function.c (thread_prologue_and_epilogue_insns): Change - set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container. - Call targetm.set_up_by_prologue on it. - * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function. - (TARGET_SET_UP_BY_PROLOGUE): Redefine to it. - -2012-01-17 Nick Clifton - - * config/rx/rx.c (rx_can_use_simple_return): New function. - * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype. - * config/rx/rx.md (return): Predicate on rx_can_use_simple_return. - -2012-01-17 Richard Guenther - - PR middle-end/51782 - * expr.c (expand_assignment): Take address-space information - from the address operand of MEM_REF and TARGET_MEM_REF. - (expand_expr_real_1): Likewise. - -2012-01-17 Andreas Krebbel - - * ira.c (do_reload): Make sure ira_dump_file is re-set if no - reload dump is requested. - -2012-01-17 Aldy Hernandez - - PR other/51165 - * trans-mem.c (requires_barrier): Call may_be_aliased. - -2012-01-17 Jakub Jelinek - - PR tree-optimization/51877 - * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever - call arguments and fndecls compare equal, instead return false if they - don't. Return true only if lhs1 and lhs2 are either both NULL, or - both SSA_NAMEs that are valueized the same, or they satisfy - operand_equal_p. - -2012-01-17 Rainer Orth - - * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on - Solaris 11+. - * configure: Regenerate. - -2012-01-16 Jan Hubicka - - PR c/12245 - PR c++/14179 - * convert.c (convert_to_integer): Use fold_convert for - converting an INTEGER_CST to integer type. - -2012-01-16 Jason Merrill - - PR c++/14179 - * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size. - -2012-01-16 Jakub Jelinek - - PR bootstrap/51860 - * config/s390/s390.c (s390_chunkify_start): Don't skip - call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip - NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes. - If insn is followed by NOTE_INSN_VAR_LOCATION or - NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes. - Don't use location of note insns. - - PR tree-optimization/51865 - * tree-inline.c (tree_function_versioning): Call remap_decl - on DECL_RESULT whenever it has VOID_TYPE_P type. - -2012-01-15 Richard Sandiford - - * config/mips/mips.c (mips16_build_call_stub): Don't use a stub - for calls to locally-binding MIPS16 functions if only the return - type uses float regs. - -2012-01-15 Chung-Lin Tang - Richard Sandiford - - * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete. - (SYMBOL_32_HIGH): Likewise. - (mips_output_tls_reloc_directive): Declare. - * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md. - (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare. - * config/mips/mips.c (mips_use_pcrel_pool_p): New variable. - (mips_lo_relocs, mips_hi_relocs): Make extern. - (mips16_stub_function): Move up file. - (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling. - (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too. - (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p. - (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of - SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false. - (mips_get_tp): Add MIPS16 support. - (mips_legitimize_tls_address): Remove MIPS16 sorry(). - Generalize DTPREL and TPREL handling. - (mips_init_relocs): Initialize mips_use_pcrel_pool_p. - Add MIPS16 TLS support. - (mips_output_tls_reloc_directive): New function. - (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs. - * config/mips/predicates.md (symbolic_operand_with_high) - (tls_reloc_operand): New predicates. - (force_to_mem_operand): Use mips_use_pcrel_pool_p. - * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec. - (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h. - (*unshifted_high): New instruction. Use it for MIPS16 high splitter. - (consttable_tls_reloc, tls_get_tp_mips16_): New patterns. - (*tls_get_tp_mips16_call_): Likewise. - -2012-01-15 Uros Bizjak - - PR rtl-optimization/51821 - * recog.c (peep2_find_free_register): Determine clobbered registers - from insn pattern. - -2012-01-14 Denis Chertykov - - PR target/50925 - * config/avr/avr-protos.h: Revert change of 2012-01-09. - * config/avr/avr.c: Likewise. - * config/avr/avr.h: Likewise. - -2012-01-13 Ian Lance Taylor - - PR c++/50012 - * tree.h (TYPE_QUALS): Add cast to int. - (TYPE_QUALS_NO_ADDR_SPACE): Likewise. - -2012-01-13 Ian Lance Taylor - - * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when - comparing param_index to VEC_length result. - -2012-01-13 Steven Bosscher - - * c-decl.c: Do not include tree-mudflap.h - * tree-optimize.c: Likewise. - * Makefile.in: Update dependencies. - -2012-01-13 Richard Guenther - - PR middle-end/8081 - * gimplify.c (gimplify_modify_expr_rhs): For calls with a - variable-sized result always use RSO. - -2012-01-12 DJ Delorie - - * cfgexpand.c (convert_debug_memory_address): Allow any valid - pointer type, not just the default pointer type. - -2012-01-09 Richard Henderson - Denis Chertykov - - PR target/50925 - * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare. - * config/avr/avr.c (avr_can_eliminate): Simplify. - (avr_initial_elimination_offset): Likewise. - (avr_prologue_setup_frame): Use hard_frame_pointer_rtx. - (expand_epilogue): Likewise. - (avr_legitimize_address): Gut. - (avr_legitimize_reload_address): Use hard_frame_pointer_rtx. - (avr_hard_regno_nregs): New. - (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers. - (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers. - * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer, - add soft frame pointer. - (CALL_USED_REGISTERS): Likewise. - (REG_CLASS_CONTENTS): Likewise. - (REGISTER_NAMES): Likewise. - (HARD_REGNO_NREGS): Use avr_hard_regno_nregs. - (HARD_FRAME_POINTER_REGNUM): New. - (FRAME_POINTER_REGNUM): Use soft frame pointer. - (ELIMINABLE_REGS): Eliminate from the soft frame pointer, - remove the HARD_FRAME_POINTER self-elimination. - -2012-01-12 Georg-Johann Lay - - PR target/51756 - * config/avr/avr.c (avr_encode_section_info): Test for absence of - DECL_EXTERNAL when checking for initializers of progmem variables. - -2012-01-12 Ira Rosen - - PR tree-optimization/51799 - * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check - that the last operation is a type demotion. - -2012-01-12 Uros Bizjak - - * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template. - (x86_shift_adj_1): Remove operand constraint from operand 3. - -2012-01-11 Jakub Jelinek - - PR bootstrap/51796 - * combine.c (distribute_notes): If i3 is a noreturn call, - allow old_size to be equal to args_size and make sure the - noreturn call gets REG_ARGS_SIZE note. - * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes - on noreturn calls even when the delta is 0. - -2012-01-11 Nathan Sidwell - - * gcov.c (STRING_SIZE): Remove. - (generate_results): Erase annotations for source files with no - coverage information. - (read_line): New. - (output_lines): Use it. - -2012-01-11 Eric Botcazou - - * gimple.h (gimplify_body): Remove first argument. - * gimplify.c (copy_if_shared): Add DATA argument. Do not create the - pointer set here, instead just pass DATA to walk_tree. - (unshare_body): Remove BODY_P argument and adjust. Create the pointer - set here and invoke copy_if_shared on the size trees of DECL_RESULT. - (unvisit_body): Likewise, but with unmark_visited. - (gimplify_body): Remove BODY_P argument and adjust. - (gimplify_function_tree): Adjust call to gimplify_body. - * omp-low.c (finalize_task_copyfn): Likewise. - -2012-01-11 Eric Botcazou - - * tree.h (build_function_decl_skip_args): Add boolean parameter. - (build_function_type_skip_args): Delete. - * tree.c (build_function_type_skip_args): Make static and add - SKIP_RETURN parameter. Fix thinko in the handling of variants. - (build_function_decl_skip_args): Add SKIP_RETURN parameter and - pass it to build_function_type_skip_args. - * cgraph.h (cgraph_function_versioning): Add boolean parameter. - (tree_function_versioning): Likewise. - * cgraph.c (cgraph_create_virtual_clone): Adjust call to - build_function_decl_skip_args. - * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter - and pass it to build_function_decl_skip_args/tree_function_versioning. - (cgraph_materialize_clone): Adjust call to tree_function_versioning. - * ipa-inline-transform.c (save_inline_function_body): Likewise. - * trans-mem.c (ipa_tm_create_version): Likewise. - * tree-sra.c (modify_function): Ditto for cgraph_function_versioning. - * tree-inline.c (declare_return_variable): Remove always-true test. - (tree_function_versioning): Add SKIP_RETURN parameter. If the function - returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL. - * ipa-split.c (split_function): Skip the return value for the split - part if it doesn't return. - -2012-01-11 Bill Schmidt - - PR tree-optimization/49642 - * ipa-split.c (forbidden_dominators): New variable. - (check_forbidden_calls): New function. - (dominated_by_forbidden): Likewise. - (consider_split): Check for forbidden dominators. - (execute_split_functions): Initialize and free forbidden - dominators info; call check_forbidden_calls. - -2012-01-11 Matthew Gretton-Dann - - * config/arm/arm.md (mov_notscc): Use MVN for false condition. - -2012-01-11 Nick Clifton - - * config/rx/rx.md (return): Define pattern. - -2012-01-11 Richard Guenther - - * doc/extend.texi (malloc attribute): Adjust according to - implementation. - -2012-01-10 Aldy Hernandez - Patrick Marlier - - PR middle-end/51516 - * trans-mem.c (get_cg_data): Traverse aliases if requested. - (ipa_tm_scan_calls_block): Update parameters to get_cg_data. - (ipa_tm_note_irrevocable): Same. - (ipa_tm_scan_irr_block): Same. - (ipa_tm_decrement_clone_counts): Same. - (ipa_tm_scan_irr_function): Same. - (ipa_tm_create_version_alias): Same. - (ipa_tm_create_version): Same. - (ipa_tm_transform_calls_redirect): Same. - (ipa_tm_transform_calls): Same. - (ipa_tm_transform_transaction): Same. - (ipa_tm_execute): Same. - -2012-01-10 Richard Guenther - - PR middle-end/51806 - * opts.c (common_handle_option): Handle -Werror. - -2012-01-10 Andreas Schwab - - * config/m68k/sync.md ("atomic_compare_and_swap_1"): Fix - operand number. - -2012-01-10 Jason Merrill - - * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6 - information. - -2012-01-10 Rainer Orth - - * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker - supports R_386_TLS_GD_PLT reloc. - (gcc_cv_as_ix86_tlsldmplt): Check if linker - supports R_386_TLS_LDM_PLT reloc. - * configure: Regenerate. - * config.in: Regenerate. - -2012-01-10 Georg-Johann Lay - - PR target/49868 - Extend __pgmx semantics to linearize memory. - * config/avr/avr.md (mov): Use avr_xload_libgcc_p to - determine if code comes inline or from libgcc. - (MOVMEM_r_d:HI): Add "w" to constraint for better preference. - (movmem_qi, movmem_qi): Set constraint #2 to "n". - (movmem_qi_elpm, movmem_hi_elpm): Remove insns. - (movmemx_qi, movmemx_hi): New insns. - (xload__libgcc): Rewrite to new insn condition. - (xload_): Remove insns. - * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle - cases that don't satisfy avr_xload_libgcc_p(). - (avr_addr_space_convert): Allow converting in any direction. - (avr_addr_space_subset_p): Return always true. - (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics. - (avr_emit_movmemhi): Ditto. - (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more. - (avr_out_movmem): Ditto. - (AVR_SYMBOL_FLAG_PROGMEM): New macro. - (AVR_SYMBOL_SET_ADDR_SPACE): New macro. - (AVR_SYMBOL_GET_ADDR_SPACE): New macro. - (avr_encode_section_info): Encode 'progmem' in symbol flags. - (output_reload_in_const): Don't zero-extend any 24-bit symbols. - -2012-01-10 Richard Guenther - - PR tree-optimization/50913 - * graphite-scop-detection.c (stmt_has_simple_data_refs_p): - Require data-refs to be representable by Graphite with respect - to any loop nest. - -2012-01-10 Uros Bizjak - - * config/i386/constraints.md ("L"): Return true for 0xffffffff. - * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV. - -2012-01-10 Tom de Vries - - PR rtl-optimization/51271 - * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when - handling annulled branch. - -2012-01-10 Richard Henderson - - * config/arm/arm.c (arm_vectorize_vec_perm_const_ok, - TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN, - struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm, - arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev, - arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1, - arm_expand_vec_perm_const): New. - * config/arm/arm-protos.h: Update. - * config/arm/neon.md (UNSPEC_VCONCAT): New. - (*neon_vswp): New. - (neon_vcombine): Use neon_split_vcombine. - (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New. - * config/arm/vec-common.md (vec_perm_const): New. - (vec_perm): New. - -2012-01-10 Richard Henderson - - * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument; - use it if reload_completed. - (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count, - arm_output_asm_insn, arm_process_output_memory_barrier, - arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex, - arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3, - arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND, - arm_process_output_sync_insn, arm_output_sync_insn, - arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove. - (arm_pre_atomic_barrier, arm_post_atomic_barrier): New. - (arm_emit_load_exclusive, arm_emit_store_exclusive): New. - (emit_unlikely_jump): New. - (arm_expand_compare_and_swap, arm_split_compare_and_swap): New. - (arm_split_atomic_op): New. - * config/arm/arm-protos.h: Update. - * config/arm/arm.h (enum arm_sync_generator_tag): Remove. - (struct arm_sync_generator): Remove. - * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK, - VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove. - (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New. - (VUNSPEC_LL, VUNSPEC_SC): New. - (sync_result, sync_memory, sync_required_value, sync_new_value, - sync_t1, sync_t2, sync_release_barrier, sync_op): Remove. - (attr length): Don't use arm_sync_loop_insns. - (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg. - (movsfcc, movdfcc): Likewise. - * config/arm/constraints.md (Ua): New. - * config/arm/prediates.md (mem_noofs_operand): New. - (sync_compare_and_swap, sync_lock_test_and_set): Remove. - (sync_clobber, sync_t2_reqd): Remove. - (sync_, sync_nand): Remove. - (sync_new_, sync_new_nand): Remove. - (sync_old_, sync_old_nand): Remove. - (arm_sync_compare_and_swap): Remove. - (arm_sync_compare_and_swap): Remove. - (arm_sync_lock_test_and_set): Remove. - (arm_sync_lock_test_and_set): Remove. - (arm_sync_new_): Remove. - (arm_sync_new_): Remove. - (arm_sync_new_nand): Remove. - (arm_sync_new_nand): Remove. - (arm_sync_old_): Remove. - (arm_sync_old_): Remove. - (arm_sync_old_nand): Remove. - (arm_sync_old_nand): Remove. - (*memory_barrier): Merge arm_output_memory_barrier. - (atomic_compare_and_swap): New. - (atomic_compare_and_swap_1): New. - (atomic_compare_and_swap_1): New. - (atomic_exchange): New. - (cas_cmp_operand, cas_cmp_str): New. - (atomic_op_operand, atomic_op_str): New. - (atomic_, atomic_nand): New. - (atomic_fetch_, atomic_fetch_nand): New. - (atomic__fetch, atomic_nand_fetch): New. - (arm_load_exclusive): New. - (arm_load_exclusivesi, arm_load_exclusivedi): New. - (arm_store_exclusive): New. - -2012-01-09 Michael Meissner - - * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF - reload patterns if -mvsx-scalar-memory. - - * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be - generated, even -mno-vsx-scalar-double was used. - (vsx_xscvdpsp_scalar): Likewise. - (vsx_xscvspdp_scalar2): Likewise. - -2012-01-09 Tom de Vries - Andrew Pinski - - PR debug/51471 - * reorg.c (fill_slots_from_thread): Don't speculate - frame-related insns. - -2012-01-09 Richard Sandiford - - * sched-int.h (bb_note): Move to... - * basic-block.h: ...here. - * haifa-sched.c (bb_note): Move to... - * cfgrtl.c: ...here. - * function.c (next_block_for_reg): New function. - (move_insn_for_shrink_wrap): Likewise. - (prepare_shrink_wrap): Rewrite to use the above. - -2012-01-09 Aldy Hernandez - - * gimple.c (is_gimple_non_addressable): Remove. - * gimple.h: Remove is_gimple_non_addressable. - * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of - is_gimple_non_addressable. - * trans-mem.c (expand_assign_tm): Same. - -2012-01-09 Richard Guenther - - PR tree-optimization/51775 - * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts. - * tree-ssa-pre.c (eliminate): Properly fixup EH info. - -2012-01-09 Matthew Gretton-Dann - - * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for - tuning parameters. - * config/arm/arm.c (arm_cortex_a15_tune): New static variable. - -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. - -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. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/ChangeLog-2012 b/gcc/ChangeLog-2012 new file mode 100644 index 00000000000..ae21e02ff38 --- /dev/null +++ b/gcc/ChangeLog-2012 @@ -0,0 +1,35424 @@ +2012-12-27 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_deligitimze_address): Do not + delegitimize TLS addresses on AIX. + (rs6000_legitimize_tls_address_aix): Append TLS symbol qualifier. + Set SYMBOL_FLAG_LOCAL on module symbol. + (output_toc): Do not append TLS symbol qualifier here. + * config/rs6000/rs6000.md (tls_get_addr_internal): Add GPR 4 to + clobbers. + +2012-12-27 Andreas Schwab + + * target.def (supports_function_versions): Fix typo. + +2012-12-26 Sriraman Tallam + + * doc/tm.texi.in (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Document + new target hook. + * doc/tm.texi: Regenerate. + * c-family/c-common.c (handle_target_attribute): Retain target attribute + for targets that support versioning. + * target.def (supports_function_versions): New hook. + * cp/class.c (add_method): Remove calls + to DECL_FUNCTION_SPECIFIC_TARGET. + * config/i386/i386.c (ix86_function_versions): Use target string + to check for function versions instead of target flags. + * (ix86_supports_function_versions): New function. + * (is_function_default_version): Check target string. + * TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS: New macro. + +2012-12-27 Steven Bosscher + + * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set. + +2012-12-25 John David Anglin + + PR target/53789 + * config/pa/pa.md (movsi): Reject expansion of TLS symbol references + after reload starts. + +2012-12-22 Jan Hubicka + + PR lto/54728 + * cgraph.h (symtab_real_symbol_p): Drop code looking for external functions. + * lto-streamer-out.c (output_symbol_p): New function. + (produce_symtab) Use it. + +2012-12-21 Martin Jambor + + PR tree-optimization/55355 + * tree-sra.c (type_internals_preclude_sra_p): Also check that + bit_position is small enough to fit a single HOST_WIDE_INT. + +2012-12-21 Eric Botcazou + + * rtlanal.c (volatile_insn_p): Delete commented out code. + (side_effects_p): Likewise. + (may_trap_p_1) : Return 1 again. + * target.def (unspec_may_trap_p): Adjust comment. + * targhooks.c (default_unspec_may_trap_p): Don't handle UNSPEC_VOLATILE. + * config/ia64/ia64.c (ia64_unspec_may_trap_p): Adjust to above change. + +2012-12-21 Vladimir Makarov + + PR middle-end/55775 + * lra-assigns.c (improve_inheritance): Do nothing after + LRA_MAX_INHERITANCE_PASSES pass. + * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Rename to + LRA_MAX_CONSTRAINT_ITERATION_NUMBER. Move to lra-int.h. + (MAX_INHERITANCE_PASSES): Rename to LRA_MAX_INHERITANCE_PASSES. + Move to lra-int.h. + * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Move from + lra-constraints.c. + (LRA_MAX_INHERITANCE_PASSES): Ditto. + +2012-12-21 Steve Ellcey + + PR bootstrap/54128 + * ira.c (build_insn_chain): Check only NONDEBUG instructions for + register usage. + +2012-12-21 David Edelsohn + + * varasm.c (bss_initializer_p): Remove static. + * output.h (bss_initializer_p): Declare. + * xcoffout.c (xcoff_tbss_section_name): Define. + * xcoffout.h (xcoff_tbss_section_name): Declare. + * config/rs6000/xcoff.h (TARGET_ENCODE_SECTION_INFO): Define. + (ASM_OUTPUT_TLS_COMMON): Merge strings. + * config/rs6000/rs6000.c (tls_private_data_section): New. + (output_toc): Only output CSECT decoration for TLS. + Output appropriate CSECT for data or bss. + (rs6000_xcoff_asm_init_sections) Define tls_private_data_section. + (rs6000_xcoff_select_section): Handle TLS bss and private data. + (rs6000_xcoff_file_start): Generate xcoff_tbss_section_name. + (rs6000_xcoff_encode_section_info): Strip SYMBOL_FLAG_HAS_BLOCK_INFO + from native TLS symbols. + +2012-12-21 Richard Biener + + PR rtl-optimization/52996 + * cprop.c (bypass_block): When loops are to be preserved + do not bypass loop headers. Revert earlier kludge to remove + loops when doing that. + +2012-12-21 Richard Biener + + PR bootstrap/54659 + * system.h: Include gmp.h. + * tree-ssa-loop-niter.c: Do not include gmp.h here. + * double-int.h: Likewise. + * realmpfr.h: Likewise. + +2012-12-21 Greta Yorsh + + * config/arm/cortex-a7.md: New file. + * config/arm/t-arm (MD_INCLUDES): Add cortex-a7.md. + * config/arm/arm.md: Include cortex-a7.md. + (generic_sched): Don't use generic scheduler for Cortex-A7. + (generic_vfp): Likewise. + * config/arm/arm.c: (TARGET_SCHED_REORDER): Use arm_sched_reorder. + (arm_sched_reorder,cortexa7_sched_reorder): New function. + (cortexa7_older_only,cortexa7_younger): Likewise. + (arm_issue_rate): Add Cortex-A7. + +2012-12-20 Ian Bolton + + * gcc/config/aarch64/aarch64.md + (*addsi3_aarch64_uxtw): New pattern. + (*addsi3_compare0_uxtw): New pattern. + (*add__si_uxtw): New pattern. + (*add__si_uxtw): New pattern. + (*add__shft_si_uxtw): New pattern. + (*add__mult_si_uxtw): New pattern. + (*add_si_multp2_uxtw): New pattern. + (*addsi3_carryin_uxtw): New pattern. + (*addsi3_carryin_alt1_uxtw): New pattern. + (*addsi3_carryin_alt2_uxtw): New pattern. + (*addsi3_carryin_alt3_uxtw): New pattern. + (*add_uxtsi_multp2_uxtw): New pattern. + (*subsi3_uxtw): New pattern. + (*subsi3_compare0_uxtw): New pattern. + (*sub__si_uxtw): New pattern. + (*sub_mul_imm_si_uxtw): New pattern. + (*sub__si_uxtw): New pattern. + (*sub__shft_si_uxtw): New pattern. + (*sub_si_multp2_uxtw): New pattern. + (*sub_uxtsi_multp2_uxtw): New pattern. + (*negsi2_uxtw): New pattern. + (*negsi2_compare0_uxtw): New pattern. + (*neg__si2_uxtw): New pattern. + (*neg_mul_imm_si2_uxtw): New pattern. + (*mulsi3_uxtw): New pattern. + (*maddsi_uxtw): New pattern. + (*msubsi_uxtw): New pattern. + (*mulsi_neg_uxtw): New pattern. + (*divsi3_uxtw): New pattern. + +2012-12-20 Jakub Jelinek + + PR middle-end/55750 + * gimplify.c (gimplify_self_mod_expr): Don't force lvalue to + pass is_gimple_min_lval. + +2012-12-20 Richard Henderson + Andreas Krebbel + + * config/s390/constraints.md (NxxDq, NxxSq): New. + * config/s390/predicates.md (contiguous_bitmask_operand): New. + * config/s390/s390.c (print_operand) ['e', 'f', 's', 't']: New + operand letters. + * config/s390/s390.md (bfstart, bfend): New mode attrs. + (*insv_zEC12_noshift): Use them. + (*insv_z10_noshift): Likewise. + (*insv_or_z10_noshift): Likewise. + + * config/s390/s390.md (*insv_l_di_reg_extimm): Un-macroize from :P. + + * config/s390/s390.md (*anddi3_cc): Add risbg alternative. + (*anddi3_cconly, *anddi3): Likewise. + (*andsi3, *andsi3_cconly, *andsi3_zarch): Likewise. + + * config/s390/s390.md (bitsize): New mode attr. + (*extzv, *extzv, *insv_zEC12, *insv_z10): Use it. + (extend2, zero_extendsi2): Likewise. + (zero_extenddi2, fixuns_trunc2): Likewise. + + * config/s390/predicates.md (nonzero_shift_count_operand): New. + * config/s390/s390-protos.h (s390_extzv_shift_ok): Declare. + * config/s390/s390.c (s390_extzv_shift_ok): New function. + * config/s390/s390.md (extzv): New expander. + (*extzv_zEC12, *extzv_z10): New insns. + (*pre_z10_extzv): Rename from *extzv; simplify with + nonzero_shift_count_operand. + (*extzv__srl, *extzv__sll): New insns. + + * config/s390/s390.md (IXOR): New code iterator. + (*rsbg__noshift): Rename from *insv_or_z10_noshift; + macro-ize to handle XOR too. + (*rsbg_di_rotl, *rsbg__srl, *rsbg__sll): + New patterns. + + * config/s390/s390.md (*insv_rnsbg_noshift, *insv_rnsbg_srl): New. + +2012-12-20 Thomas Schwinge + + PR bootstrap/55202 + * configure.ac : Use POSIX shell syntax. + * configure: Regenerate. + +2012-12-20 Andreas Krebbel + + PR target/55754 + * config/arm/arm.c (arm_canonicalize_comparison): Remove + op0_preserve_value check for zero_extend to and transformation. + +2012-12-20 Teresa Johnson + Jakub Jelinek + + PR gcov-profile/55734 + * gcov-io.c (gcov_read_summary): Use __builtin_popcount instead + of __builtin_popcountll when building libgcov.a, otherwise use + popcount_hwi. + (gcov_histo_index): When not building libgcov.a, use floor_log2 + instead of __builtin_clzll. + +2012-12-20 Richard Biener + + PR middle-end/55740 + * cfghooks.c (merge_blocks): Properly handle merging of + two loop headers. + +2012-12-20 Roland Stigge + Matthias Klose + + * config/rs6000/t-spe (MULTIARCH_DIRNAME): Remove. + * config/rs6000/t-linux (MULTIARCH_DIRNAME): Define name for + powerpc-linux-gnuspe. + +2012-12-19 Matthias Klose + + * config/i386/t-kfreebsd (MULTIARCH_DIRNAME): Add comma to + separate arguments in make function. + +2012-12-19 Uros Bizjak + Yuri Rumyantsev + + * config/i386/i386.h (enum ix86_tune_indices): Add + X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE. + (TARGET_AVOID_MEM_OPND_FOR_CMOVE): New define. + * config/i386/i386.c (initial_ix86_tune_features) + : Initialize. + * config/i386/i386.md (splitters to avoid cmove memory operands): New. + (peephole2s to avoid cmove memory operands): New. + +2012-12-19 Kyrylo Tkachov + + * config/arm/arm.md (f_minmaxs, f_minmaxd): New types. + * config/arm/vfp.md (smax3): New pattern. + (smin3): Likewise. + +2012-12-19 Richard Biener + + * targhooks.h (default_canonicalize_comparison): Fix prototype. + * targhooks.c (default_canonicalize_comparison): Define. + +2012-12-19 Richard Biener + + PR tree-optimization/55736 + PR tree-optimization/55703 + * gimplify.c (prune_expr_location): New function. + (unshare_expr_without_location): Likewise. + * tree.h (unshare_expr_without_location): Declare. + * ipa-prop.c (prune_expression_for_jf): Remove. + (prune_expression_for_jf_1): Likewise. + (ipa_set_jf_constant): Use unshare_expr_without_location. + (ipa_set_jf_arith_pass_through): Likewise. + (determine_known_aggregate_parts): Likewise. + * tree-switch-conversion.c (build_constructors): Use + unshare_expr_without_location on all constructor elements. + +2012-12-19 Andreas Krebbel + + * target.def: Define canonicalize_comparison hook. + * targhooks.h (default_canonicalize_comparison): New prototype. + * targhooks.c (default_canonicalize_comparison): New function. + * doc/tm.texi: Add documentation for the new target hook. + * doc/tm.texi.in: Likewise. + * combine.c (try_combine): Adjust to use the target hook. + * config/alpha/alpha.h (CANONICALIZE_COMPARISON): Remove macro + definition. + * config/alpha/alpha.c (alpha_canonicalize_comparison): New function. + (TARGET_CANONICALIZE_COMPARISON): New macro definition. + * config/arm/arm-protos.h (arm_canonicalize_comparison): Remove + prototype. + * config/arm/arm.c (arm_canonicalize_comparison): Add new parameter. + (TARGET_CANONICALIZE_COMPARISON): New macro definition. + * config/arm/arm.h (CANONICALIZE_COMPARISON): Remove macro definition. + * config/s390/s390-protos.h (s390_canonicalize_comparison): Remove + prototype. + * config/s390/s390.c (s390_canonicalize_comparison): Add new parameter. + (TARGET_CANONICALIZE_COMPARISON): New macro definition. + * config/s390/s390.h (CANONICALIZE_COMPARISON): Remove macro definition. + * config/sh/sh-protos.h (sh_canonicalize_comparison): Remove prototype. + * config/sh/sh.c (sh_canonicalize_comparison): Add new prototype. New + function overloading the old one. + (TARGET_CANONICALIZE_COMPARISON): New macro definition. + * config/sh/sh.h (CANONICALIZE_COMPARISON): Remove macro definition. + * config/spu/spu.c (spu_canonicalize_comparison): New function. + (TARGET_CANONICALIZE_COMPARISON): New macro definition. + * config/spu/spu.h (CANONICALIZE_COMPARISON): Remove macro definition. + +2012-12-19 Jakub Jelinek + + PR debug/55730 + * dwarf2out.c (mem_loc_descriptor): Ignore CLOBBER. + * valtrack.c (gen_lowpart_for_debug): New function. + (propagate_for_debug): Temporarily set rtl_hooks.gen_lowpart_no_emit + to gen_lowpart_for_debug. + +2012-12-18 Jan Hubicka + + PR tree-optimization/55683 + * ipa-prop.c (try_make_edge_direct_virtual_call): Look into constants + for binfo. + +2012-12-19 Terry Guo + + * config/arm/arm.c (thumb_find_work_register): Check argument + register number based on current PCS. + +2012-12-18 Jakub Jelinek + + PR target/55562 + * sbitmap.c (bitmap_and, bitmap_xor, bitmap_ior): Return whether + dst sbitmap changed even if it doesn't have popcount. + +2012-12-18 James Greenhalgh + + * config/aarch64/aarch64.md (insv_imm): Add modes + for source operands. + +2012-12-18 James Greenhalgh + + * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): + Remove unused variables. + (aarch64_split_compare_and_swap): Likewise. + +2012-12-18 Kyrylo Tkachov + + * config/arm/driver-arm.c (arm_cpu_table): Add Cortex-A7. + +2012-12-18 Aldy Hernandez + + PR other/54324 + * doc/install.texi (Tools/packages necessary for building GCC): + Suggest --disable-stage1-checking for older GCC's. + +2012-12-18 Aldy Hernandez + + PR other/54324 + * tree-ssa-coalesce.c (struct ssa_name_var_hash): Remove "union" + from template parameter. + +2012-12-18 Richard Biener + + PR middle-end/54838 + * cfgloopmanip.c (fix_loop_structure): Re-discover latch + edges first and mark loops for removal if no latch edges remain. + Properly re-create LOOPS_HAVE_FALLTHRU_PREHEADERS. + * loop-init.c (loop_optimizer_finalize): Set + LOOPS_MAY_HAVE_MULTIPLE_LATCHES. + +2012-12-18 Richard Biener + + PR tree-optimization/55555 + * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Properly + analyze evolution of the index for the loop it is used in. + * tree-scalar-evolution.c (instantiate_scev_name): Take + inner loop we will be creating a chrec for. Generalize + fix for PR40281 and prune invalid SCEVs. + (instantiate_scev_poly): Likewise - pass down inner loop + we will be creating a chrec for. + (instantiate_scev_binary): Take and pass through inner loop. + (instantiate_array_ref): Likewise. + (instantiate_scev_convert): Likewise. + (instantiate_scev_not): Likewise. + (instantiate_scev_3): Likewise. + (instantiate_scev_2): Likewise. + (instantiate_scev_1): Likewise. + (instantiate_scev_r): Likewise. + (resolve_mixers): Adjust. + (instantiate_scev): Likewise. + +2012-12-18 Jakub Jelinek + + PR debug/55717 + * rtlhooks-def.h (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Define to + gen_lowpart_if_possible. + (gen_lowpart_no_emit_general): Remove prototype. + * rtlhooks.c (gen_lowpart_no_emit_general): Removed. + * simplify-rtx.c (simplify_unary_operation_1, + simplify_binary_operation_1): Continue simplifying if + rtl_hooks.gen_lowpart_no_emit returns NULL_RTX. + * dwarf2out.c (mem_loc_descriptor) : Handle + truncation like lowpart SUBREG. + +2012-12-17 Gerald Pfeifer + + * doc/contrib.texi (Contributors): Update Kaveh Ghazi's entry; + remove broken link to Rutgers University. + +2012-12-17 Jan-Benedict Glaw + + * varasm.c (pending_assemble_externals_processed): Guard + with ASM_OUTPUT_EXTERNAL. + +2012-12-17 Andrew Stubbs + Ulrich Weigand + + * config/arm/arm.md (zero_extenddi2): Add extra alternatives + for NEON registers. + Add alternative for one-instruction extend-in-place. + (extenddi2): Likewise. + Add constraints for Thumb-mode memory loads. + Prevent extend splitters doing NEON alternatives. + * config/arm/iterators.md (qhs_extenddi_cstr, qhs_zextenddi_cstr): + Adjust constraints to add new alternatives. + * config/arm/neon.md: Add splitters for zero- and sign-extend. + +2012-12-17 Greta Yorsh + + * config/arm/arm.md (type): Add "simple_alu_shift" to attribute "type". + (core_cycles): Update for simple_alu_shift. + (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Use simple_alu_shift + instead of a CPU-speicific condition for "type" attribute. + (thumb1_zero_extendqisi2_v6,arm_zero_extendqisi2_v6): Likewise. + (thumb1_extendhisi2,arm_extendhisi2_v6,arm_extendqisi_v6): Likewise. + (thumb1_extendqisi2): Likewise. + * config/arm/thumb2.md (thumb2_extendqisi_v6): Likewise. + (thumb2_zero_extendhisi2_v6,thumb2_zero_extendqisi2_v6) Likewise. + * config/arm/arm1020e.md (alu_shift_op): Use simple_alu_shift. + * config/arm/arm1026ejs.md (alu_shift_op): Likewise. + * config/arm/arm1136jfs.md (11_alu_shift_op): Likewise. + * config/arm/arm926ejs.md (9_alu_op): Likewise. + * config/arm/cortex-a15.md (cortex_a15_alu_shift): Likewise. + * config/arm/cortex-a5.md (cortex_a5_alu_shift): Likewise. + * config/arm/cortex-a8.md (cortex_a8_alu_shift,cortex_a8_mov): Likewise. + * config/arm/cortex-a9.md (cortex_a9_dp,cortex_a9_dp_shift): Likewise. + * config/arm/cortex-m4.md (cortex_m4_alu): Likewise. + * config/arm/cortex-r4.md (cortex_r4_alu_shift): Likewise. + * config/arm/fa526.md (526_alu_shift_op): Likewise. + * config/arm/fa606te.md (fa606te_core): Likewise. + * config/arm/fa626te.md (626te_alu_shift_op): Likewise. + * config/arm/fa726te.md (726te_alu_shift_op): Likewise. + * config/arm/fmp626.md (mp626_alu_shift_op): Likewise. + +2012-12-17 Richard Biener + + PR middle-end/54781 + * alias.c (ao_ref_from_mem): More appropriately constrain the + base object we feed to the tree oracle. Remove dead code. + +2012-12-17 James Greenhalgh + Tejas Belagod + + * config/aarch64/aarch64.c + (aarch64_autovectorize_vector_sizes): New. + (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define. + +2012-12-16 John David Anglin + + PR middle-end/55709 + Forward port from 4.7 branch: + 2012-04-10 John David Anglin + + PR middle-end/52894 + * varasm.c (process_pending_assemble_externals): Set + pending_assemble_externals_processed true. + (assemble_external): Call assemble_external_real if the pending + assemble externals have been processed. + +2012-12-16 Eric Botcazou + Tomash Brechko + + PR target/55673 + * config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed + handling of before and after cases. + * config/sparc/sync.md (atomic_store): Fix pasto. + +2012-12-16 Eric Botcazou + + PR rtl-optimization/55630 + * expr.c (expand_assignment): Do not call copy_blkmode_to_reg to move + BLKmode return values to the return register. + +2012-12-15 Alexandre Oliva + + PR libmudflap/53952 + * expr.c (mem_ref_refers_to_non_mem_p): Factor out + implementation into... + (addr_expr_of_non_mem_decl_p_1): ... this new function. + (addr_expr_of_non_mem_decl_p): New. + * tree.h (addr_expr_of_non_mem_decl_p): Declare. + * tree-mudflap.c (mf_xform_derefs_1): Don't change MEM_REFs + and TARGET_MEM_REFs that have an ADDR_EXPR of a non-mem DECL + as base operand. + +2012-12-14 Yvan Roux + + * optabs.c (expand_atomic_store): Elide redundant model test. + +2012-12-14 Teresa Johnson + + PR gcov-profile/55674 + * lto-cgraph.c (merge_profile_summaries): Set min correctly the + first time we merge into a histogram entry. + +2012-12-14 Richard Biener + + PR tree-optimization/55684 + * tree-ssa-loop-ivcanon.c (remove_redundant_iv_tests): Handle + gracefully the case where we cannot compute the number of + iterations at an exit. + +2012-12-14 Richard Biener + + PR tree-optimization/55687 + * tree-chrec.h (no_evolution_in_loop_p): Properly use + tree_contains_chrecs. + +2012-12-13 Richard Henderson + + PR middle-end/55492 + * optabs.c (expand_atomic_load): Emit acquire barrier after the load. + +2012-12-13 Richard Henderson + + * config/alpha/alpha.c (alpha_pad_function_end): Consider barriers + when looking for NOTE_INSN_CALL_ARG_LOCATION. + +2012-12-13 Richard Biener + + PR middle-end/53476 + * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7 + behavior. + +2012-12-13 Kyrylo Tkachov + + * config/arm/unspecs.md: Add copyright notice. + +2012-12-13 Jakub Jelinek + + * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Avoid + -Wsign-compare warning. + +2012-12-13 Richard Biener + + PR lto/55660 + * tree-streamer.c (record_common_node): Check that we are not + recursively pre-loading nodes we want to skip. Handle + char_type_node appearing as part of va_list_type_node. + +2012-12-13 Jakub Jelinek + + PR gcov-profile/55650 + * coverage.c (coverage_obj_init): Return false if no functions + are being emitted. + +2012-12-13 Steven Bosscher + + * bitmap.c (struct bitmap_descriptor): Remove forward declaration. + (struct bitmap_head_def): Remove desc pointer. Add descriptor_id + field. Reorder fields for pointer alignment. + * bitmap.c: Include vec.h. + (struct bitmap_descriptor): Rename to bitmap_descriptor_d. + (bitmap_descriptor): New typedef, pointer to bitmap_descriptor_d. + Update all struct bitmap_descriptor references. + (next_bitmap_desc_id): New running index for bitmap desciptors. + (bitmap_descriptors): Vec of all bitmap descriptors by descriptor id. + (hash_descriptor, eq_descriptor): Update for struct bitmap_descriptor + change. + (bitmap_descriptor): Rename function to get_bitmap_descriptor. + Stuff newly allocated bitmap descriptor into bitmap_descriptors. + Set the bitmap descriptor id. + (bitmap_register): Lookup bitmap desciptor and store its ID in + the passed bitmap. + (register_overhead): Likewise. + (bitmap_find_bit): Lookup descriptor by id in bitmap_descriptors. + (print_statistics): Update for struct bitmap_descriptor change. + + * Makefile.in: Fix bitmap.o dependencies. + +2012-12-13 Richard Biener + + * tree-ssa-pre.c (get_representative_for): Adjust dumping. + Mark created SSA names for release. + (eliminate_bb): Insert only when expr is not NULL. + +2012-12-12 Jakub Jelinek + + PR debug/55665 + * tree-inline.c (remap_decls): Change nonlocalized_list + to pointer to pointer to vector from pointer to vector. + (remap_block): Pass address of BLOCK_NONLOCALIZED_VARS. + + PR sanitizer/55508 + * builtin-attrs.def (ATTR_TMPURE_NOTHROW_LEAF_LIST, + ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): New. + * asan.c (ATTR_TMPURE_NOTHROW_LEAF_LIST, + ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): Define. + * sanitizer.def: Make __asan_report_* and __asan_handle_no_return + builtins tm pure. + +2012-12-12 Steve Ellcey + + * config/mips/mips.c (mips_option_override): Set + mips_dbx_regno entries to IGNORED_DWARF_REGNUM by default. + +2012-12-12 Steven Bosscher + + * graph.c: Include sbitmap.h and cfgloop.h. + (draw_cfg_nodes_no_loops): New function to dump basic blocks in + topological order if the function does not have a loop tree. + Handle unreachable blocks also. + (draw_cfg_nodes_for_loop): New function to dump basic blocks in + one loop tree node as a named cluster of nodes. + (draw_cfg_nodes): New function to draw all CFG nodes. + (draw_cfg_edges): New function to draw all CFG edges. + (print_graph_cfg): Simplify using the new functions. + * Makefile.in (graph.o): Fix dependencies. + +2012-12-12 Steven Bosscher + + * dumpfile.h (enum tree_dump_index): Remove TDI_vcg. + * dumpfile.c (dump_files[]): Remove entry for TDI_vcg. + * tree-cfg.c (gimple_cfg2vcg): Remove. + (build_gimple_cfg): Don't call it. + * doc/invoke.texi (-fdump-tree-vcg): Remove documentation. + Correct GraphViz documentation, it does handle multiple functions + in a single dump. + +2012-12-12 Zdenek Dvorak + + PR tree-optimization/55481 + * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall + back to general rewriting if we cannot leave an original biv + definition alone. + +2012-12-12 Jakub Jelinek + + PR target/55659 + Revert + 2012-12-11 Jakub Jelinek + + PR middle-end/43631 + * var-tracking.c (emit_note_insn_var_location): If insn is followed + by BARRIER, put note after the BARRIER. + (next_non_note_insn_var_location): Skip over BARRIERs. + (emit_notes_in_bb): If call is followed by BARRIER, put note after + the BARRIER. + + 2012-12-06 Jakub Jelinek + + PR middle-end/43631 + * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb): + Clear BLOCK_FOR_INSN on notes emitted in between basic blocks, + don't adjust BB_END when inserting note after BB_END of some bb. + +2012-12-12 Steven Bosscher + Jakub Jelinek + + PR middle-end/52640 + * varasm.c (pending_assemble_externals_set): New pointer set. + (process_pending_assemble_externals): Destroy the pointer set. + (assemble_external): See if decl is in pending_assemble_externals_set, + and add it to pending_assemble_externals if necessary. + (init_varasm_once): Allocate pending_assemble_externals_set. + +2012-12-12 Jakub Jelinek + + PR fortran/55633 + * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): + Ignore bounds on which bound += double_int_one overflowed. + +2012-12-11 Eric Botcazou + + PR target/54121 + * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto. + (tldo_stb_sp64): Likewise. + (tldo_sth_sp32): Likewise. + (tldo_sth_sp64): Likewise. + (tldo_stw_sp32): Likewise. + (tldo_stw_sp64): Likewise. + (tldo_stx_sp64): Likewise. + +2012-12-11 Jakub Jelinek + + PR rtl-optimization/55193 + * lra-constraints.c (loc_equivalence_callback): New function. + (lra_constraints): Call simplify_replace_fn_rtx instead of + loc_equivalence_change_p on DEBUG_INSNs. + +2012-12-11 Kyrylo Tkachov + + PR target/55642 + * config/arm/thumb2.md (*thumb2_abssi2): + Set ce_count attribute to 2. + (*thumb2_neg_abssi2): Likewise. + +2012-12-11 Jakub Jelinek + + * varasm.c (get_variable_section): Don't return lcomm_section + for asan_protect_global decls. + * asan.c (asan_protect_global): Only avoid public common variables. + Don't call get_variable_section here. + + PR middle-end/43631 + PR bootstrap/55615 + * var-tracking.c (emit_note_insn_var_location): If insn is followed + by BARRIER, put note after the BARRIER. + (next_non_note_insn_var_location): Skip over BARRIERs. + (emit_notes_in_bb): If call is followed by BARRIER, put note after + the BARRIER. + + * sanitizer.def: Add comment about importance of ordering of + BUILT_IN_ASAN_REPORT* builtins. + * cfgcleanup.c (old_insns_match_p): Don't cross-jump __asan_report_* + builtins. + + * sanitizer.def (BUILT_IN_ASAN_HANDLE_NO_RETURN): New builtin. + * asan.c (instrument_builtin_call): Change is_gimple_builtin_call + gcc_assert to gcc_checking_assert. + (maybe_instrument_call): Imit __builtin___asan_handle_no_return () + before noreturn calls other than __builtin_trap () and + __builtin_unreachable (). + +2012-12-11 Richard Biener + + PR other/54324 + * doc/install.texi (Tools/packages necessary for building GCC): + State ISO C++98 host compiler requirement. Increment minimum + GCC version required for building all languages for a cross-compiler + to 3.4 or later. + +2012-12-11 Richard Biener + + PR tree-optimization/55079 + * tree-vrp.c (extract_range_from_binary_expr_1): Handle MAX/MIN_EXPR + for more cases. + (register_edge_assert_for_2): Register asserts for post-in/decrement + tests. + (check_array_ref): Dump what expression we emit array bound + warnings for. + (search_for_addr_array): Likewise. + +2012-12-11 Eric Botcazou + + * tree-ssa-loop-ivopts.c (prepare_decl_rtl) : Generate RTL + only for a DECL which HAS_RTL_P. + +2012-12-11 Andreas Krebbel + + * config/s390/predicates.md ("execute_operation"): New predicate. + * config/s390/s390.md ("*execute_rl", "*execute"): Use the new + predicate. + +2012-12-10 Xinliang David Li + + * config/i386/i386.c: Enable push/pop in pro/epilogue for modern CPUs. + +2012-12-10 Steve Ellcey + + * config/mips/gnu-user.h (NO_SHARED_SPECS): Add space before option. + +2012-12-10 Steve Ellcey + + PR target/54061 + * rtl.h (IGNORED_DWARF_REGNUM): New. + * dwarf2out.c (reg_loc_descriptor): Check for IGNORED_DWARF_REGNUM. + (mem_loc_descriptor): Ditto. + * config/mips/mips.h (ALL_COP_REG_FIRST): New. + (ALL_COP_REG_LAST): New. + (ALL_COP_REG_NUM): Redefine using above macros. + * config/mips/mips.c (mips_option_override): Set mips_dbx_regno + coprocessor entries to IGNORED_DWARF_REGNUM. + +2012-12-10 H.J. Lu + + PR lto/55466 + * lto-symtab.c (lto_symtab_merge_decls_1): Don't record the + prevailing variable. + * lto.c (lto_register_var_decl_in_symtab): Don't record static + variables. + (lto_main): Record the global variables if WPA isn't enabled. + +2012-12-10 Richard Biener + + PR tree-optimization/55107 + * tree-ssa-pre.c (struct pre_stats): Remove constified field. + (bitmap_set_replace_value): Add gcc_unreachable. + (do_regular_insertion): Re-write all_same handling. Insert + an assignment instead of a PHI in this case. + (eliminate_bb): Record availability also for SSA names defined + by a constant. + (do_pre): Do not record constified events. + (execute_fre): Likewise. + +2012-12-10 Andreas Krebbel + + * config/spu/spu.md: Replace "operands" with "operands != NULL" in + insn conditions. + +2012-12-10 Jakub Jelinek + + * asan.c (asan_init_shadow_ptr_types): Move earlier in the file. + Call initialize_sanitizer_builtins at the end. + (asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0]) + as character type instead of char_type_node. + (asan_emit_stack_protection): Call asan_init_shadow_ptr_types + if shadow_ptr_types isn't initialized. + (asan_protect_global): Return true for STRING_CSTs except those + created by asan_pp_string. + (count_string_csts, add_string_csts): New functions. + (struct asan_add_string_csts_data): New type. + (asan_finish_file): Clear flag_asan at the beginning, restore at the + end. Traverse constant_pool_htab () to look for protected + STRING_CSTs. Don't call initialize_sanitizer_builtins, + instead call asan_init_shadow_ptr_types if shadow_ptr_types isn't + initialized yet. + (asan_instrument): Don't call initialize_sanitizer_builtins. + * varasm.c (output_constant_def_contents): If STRING_CST should be + asan protected, align it sufficiently and emit padding after it. + (categorize_decl_for_section): If flag_asan, don't put STRING_CSTs + that should be asan protected into mergeable sections. For + -fmerge-all-constants, ignore it for -fmudflap or if decl is + asan protected. + +2012-12-10 Kyrylo Tkachov + + * config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm, + Vrintz to type. + (type features): Add Requires_arch type constructor. + (ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features. + * config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn, + Vrinta, Vrintp, Vrintm, Vrintz, Vrintx. + * config/arm/neon-testgen.ml (effective_target): Define check for + Requires_arch 8. + * config/arm/neon-gen.ml (print_feature_test_start): Handle + Requires_arch. + (print_feature_test_end): Likewise. + Add 2012 to Copyright notice. + * doc/arm-neon-intrinsics.texi: Regenerate. + * config/arm/arm_neon.h: Regenerate. + +2012-12-10 Kai Tietz + + * stmt.c (expand_sjlj_dispatch_table): Fix off by one. + + PR target/53912 + * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t. + (expand_case): Likewise. + + PR target/53912 + * print-tree.c (print_node): Cast from pointer via uintptr_t. + +2012-12-10 Jakub Jelinek + + * asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs + accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE. + +2012-12-08 Eric Botcazou + + * lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of + variables in the global constant pool. + +2012-12-08 Steven Bosscher + + PR rtl-optimization/55158 + * sched-rgn.c (bb_state_array, bb_state): Add some explaining + comment, and initialize to NULL explicitly. + (realloc_bb_state_array): New function. + (free_bb_state_array): New function. + (schedule_region): Call realloc_bb_state_array after schedule_block. + (sched_rgn_init): Use realloc_bb_state_array to initialize bb_state. + (sched_rgn_finish): Use free_bb_state_array to free it. + +2012-12-08 Eric Botcazou + + * tree-ssa-loop-im.c (for_each_index) : New case. + +2012-12-07 Sriraman Tallan + + * toplev.c (process_options): Do not warn when -ffunction-sections + and -fprofile are used together. + +2012-12-07 Steven Bosscher + + * ree.c (struct ext_cand): Remove GTY markers. + +2012-12-07 Vladimir Makarov + + PR rtl-optimization/55141 + * lra-constraints.c (lra_constraints): Use biggest mode for + df_set_regs_ever_live. + +2012-12-07 Jan Hubicka + + * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND + parameter. + (try_unroll_loop_completely) Update. + +2012-12-07 Jakub Jelinek + + PR fortran/55395 + * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL + for -g for any kind of debug info. + +2012-12-07 Richard Biener + + PR tree-optimization/54886 + * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly + free all memory. + +2012-12-07 Martin Jambor + + PR middle-end/55078 + * ipa-inline-transform.c (inline_call): Turn #if 0 to + #ifdef ENABLE_CHECKING. + * ipa-prop.c (try_make_edge_direct_simple_call): Use + ipa_value_from_jfunc. + (try_make_edge_direct_virtual_call): Likewise. + (update_indirect_edges_after_inlining): Lookup new_root_info and pass + it to the functions above. + +2012-12-07 Martin Jambor + + PR tree-optimization/55590 + * tree-sra.c (build_ref_for_offset): Use get_object_alignment_1 to + get base alignment. + +2012-12-06 Uros Bizjak + H.J. Lu + + PR target/55597 + * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode, + before using it as insn or call equivalent. + +2012-12-06 Peter Bergner + + * config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define. + * config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function. + * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN. + +2012-12-06 Jakub Jelinek + + PR fortran/55395 + * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL + if -g and emitting DWARF2+. + +2012-12-06 Pat Haugen + + * config/rs6000/rs6000.c (rs6000_option_override_internal): Set + default loop peeling limits. + +2012-12-06 Jason Merrill + + PR c++/55032 + PR c++/55245 + * tree.c (build_array_type_1): Re-layout if we found it in the + hash table. + +2012-12-06 Jack Howarth + + PR 55599/sanitizer + * config/darwin.h (LINK_COMMAND_SPEC_A): Remove static libasan support. + +2012-12-06 Jakub Jelinek + + PR middle-end/43631 + * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb): + Clear BLOCK_FOR_INSN on notes emitted in between basic blocks, + don't adjust BB_END when inserting note after BB_END of some bb. + + PR c++/55137 + * fold-const.c (fold_binary_loc) : Don't introduce + TREE_OVERFLOW through reassociation. If type doesn't have defined + overflow, but one or both of the operands do, use the wrapping type + for reassociation and only convert to type at the end. + +2012-12-06 Richard Biener + + * gimple-fold.c (fold_stmt_1): Remove code handling folding stmts away. + +2012-12-06 Kyrylo Tkachov + + * doc/sourcebuild.texi: Document arm_v8_neon_ok. + +2012-12-06 Kyrylo Tkachov + + * config/arm/arm.c (neon_itype): Define NEON_RINT enum element. + (neon_builtin_data): Register vrintn, vrinta, vrintp, vrintm, + vrintz, vrintx neon builtins. + (arm_init_neon_builtins): Handle NEON_RINT. + (arm_expand_neon_builtin): Likewise. + * config/arm/unspecs.md: New file. + * config/arm/arm.md ("unspec"): Move to unspecs.md. + * config/arm/iterators.md (NEON_VRINT): New int iterator. + (nvrint_variant): New int attribute. + * config/arm/neon.md + (neon_vrint): New pattern. + ("unspec"): Move to unspecs.md. + * config/arm/iwmmxt2.md ("unspec"): Move to unspecs.md. + +2012-12-05 John David Anglin + + * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify + opaque cond in all call insns. + +2012-12-05 Steven Bosscher + + PR rtl-optimization/55604 + * lra-lives.c (lra_create_live_ranges): If there are no referenced + pseudos left, do not compute live ranges. + +2012-12-05 Steven Bosscher + + * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation. + * doc/tm.texi: Regenerate. + * regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer + existing files global.c and local-alloc.c. + * regmove.c (copy_src_to_dest): Likewise. + * function.h (struct rtl_data): Likewise. + * ira-color.c (allocno_priority_compare_func): Likewise. + * regstat.c (regstat_compute_ri): Likewise. + * config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h, + config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h, + config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h, + config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h, + config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h, + config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise. + +2012-12-05 Aldy Hernandez + + PR target/54160 + * config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H). + * config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__ when + in obj mode. + Include libcpp/internal.h. + +2012-12-05 Michael Eager + + PR rtl-optimization/54739 + * config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete + patterns. + +2012-12-05 James Greenhalgh + + * config/aarch64/aarch64-simd-builtins.def: Add new builtins. + * config/aarch64/aarch64-simd.md (simd_type): Add uzp. + (aarch64_): New. + * config/aarch64/aarch64.c (aarch64_evpc_trn): New. + (aarch64_evpc_uzp): Likewise. + (aarch64_evpc_zip): Likewise. + (aarch64_expand_vec_perm_const_1): Check for trn, zip, uzp patterns. + * config/aarch64/iterators.md (unspec): Add neccessary unspecs. + (PERMUTE): New. + (perm_insn): Likewise. + (perm_hilo): Likewise. + +2012-12-05 James Greenhalgh + + * config/aarch64/aarch64-protos.h + (aarch64_split_combinev16qi): New. + (aarch64_expand_vec_perm): Likewise. + (aarch64_expand_vec_perm_const): Likewise. + * config/aarch64/aarch64-simd.md (vec_perm_const): New. + (vec_perm): Likewise. + (aarch64_tbl1): Likewise. + (aarch64_tbl2v16qi): Likewise. + (aarch64_combinev16qi): New. + * config/aarch64/aarch64.c + (aarch64_vectorize_vec_perm_const_ok): New. + (aarch64_split_combinev16qi): Likewise. + (MAX_VECT_LEN): Define. + (expand_vec_perm_d): New. + (aarch64_expand_vec_perm_1): Likewise. + (aarch64_expand_vec_perm): Likewise. + (aarch64_evpc_tbl): Likewise. + (aarch64_expand_vec_perm_const_1): Likewise. + (aarch64_expand_vec_perm_const): Likewise. + (aarch64_vectorize_vec_perm_const_ok): Likewise. + (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Likewise. + * config/aarch64/iterators.md + (unspec): Add UNSPEC_TBL, UNSPEC_CONCAT. + (V_cmp_result): Add mapping for V2DF. + +2012-12-05 Yufeng Zhang + + * config/aarch64/aarch64.c (aarch64_simd_mangle_map_entry): New + typedef. + (aarch64_simd_mangle_map): New table. + (aarch64_mangle_type): Locate and return the mangled name for + a given AdvSIMD vector type. + +2012-12-05 Yufeng Zhang + + * config/aarch64/aarch64.c (aarch64_mangle_type): New function. + (TARGET_MANGLE_TYPE): Define. + +2012-12-05 James Greenhalgh + + * config/aarch64/aarch64-builtins.c + (aarch64_builtin_vectorized_function): New. + * config/aarch64/aarch64-protos.h + (aarch64_builtin_vectorized_function): Declare. + * config/aarch64/aarch64-simd-builtins.def (frintz, frintp): Add. + (frintm, frinti, frintx, frinta, fcvtzs, fcvtzu): Likewise. + (fcvtas, fcvtau, fcvtps, fcvtpu, fcvtms, fcvtmu): Likewise. + * config/aarch64/aarch64-simd.md + (aarch64_frint_): New. + (2): Likewise. + (aarch64_fcvt): Likewise. + (l2): Likewise. + * config/aarch64/aarch64.c (TARGET_VECTORIZE_BUILTINS): Define. + (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise. + * config/aarch64/aarch64.md + (btrunc2, ceil2, floor2) + (round2, rint2, nearbyint2): Consolidate as... + (2): ...this. + (lceil2, lfloor2) + (lround2) + (lrint2): Consolidate as... + (l2): ... this. + * config/aarch64/iterators.md (fcvt_target): New. + (FCVT_TARGET): Likewise. + (FRINT): Likewise. + (FCVT): Likewise. + (frint_pattern): Likewise. + (frint_suffix): Likewise. + (fcvt_pattern): Likewise. + +2012-12-05 Steven Bosscher + + * passes.c (pass_init_dump_file): Only open a clean graph dump file if + the dump was not already initialized. + + Revert: + 2012-12-03 Steven Bosscher + * passes.c (finish_optimization_passes): Don't finish graph dumps here. + (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps. + (execute_one_pass): Don't set up graph dumps here. + +2012-12-05 Richard Biener + + PR lto/55525 + * gimple-streamer-in.c (input_gimple_stmt): Fixup ARRAY_REFs as well. + +2012-12-04 Ian Lance Taylor + + * godump.c (find_dummy_types): Output a dummy type if we couldn't + output the real type. + +2012-12-04 Steven Bosscher + + * rtl.h (print_insn_with_notes): Remove prototype. + (rtl_dump_bb_for_graph): New prototype. + * sched-vis.c (print_insn_with_notes): Make static again. Fix + printing of notes. + (rtl_dump_bb_for_graph): New function. + * cfghooks.h (struct cfg_hooks) : New hook. + (dump_bb_for_graph): New prototype. + * cfghooks.c (dump_bb_for_graph): New function. + * tree-cfg.c (gimple_cfg_hooks): Register gimple_dump_bb_for_graph + as dump_bb_for_graph hook implementation for GIMPLE. + * cfgrtl.c (rtl_cfg_hooks): Likewise for rtl_dump_bb_for_graph. + (cfg_layout_rtl_cfg_hooks): Likewise. + * graph.c (draw_cfg_node): Don't include sbitmap.h, rtl.h, tree.h, + gimple.h, and gimple-pretty-print.h. + (draw_cfg_node, draw_cfg_node_succ_edges): Use the uniqe function + definition number instead of the function declaration UID. + (print_graph_cfg): Take a struct function instead of a tree. + Use the dump_bb_for_graph hook to dump the basic block content. + * graph.h (print_graph_cfg): Update prototype. + * passes.c (execute_function_dump): Update print_graph_cfg call. + * Makefile.in (graph.o): Fixup dependencies. + +2012-12-04 Marcus Shawcroft + + * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set + TYPE_STUB_DECL. + +2012-12-04 Andreas Krebbel + + * config/s390/s390.c (s390_select_ccmode): Enable using CC of + x + imm for higher immediates on z9-109 upwards. + +2012-12-04 Richard Earnshaw + + * arm.opt (cirrus-fix-invalid-insns): Delete option. + * invoke.texi (cirrus-fix-invalid-insns): Remove documentation. + +2012-12-04 Jakub Jelinek + + * tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first + store it into a SSA_NAME. + + PR sanitizer/55439 + * Makefile.in (tsan.o): Depend on tree-ssa-propagate.h. + * sanitizer.def: Add __tsan_atomic* builtins. + * asan.c (initialize_sanitizer_builtins): Adjust to also + initialize __tsan_atomic* builtins. + * tsan.c: Include tree-ssa-propagate.h. + (enum tsan_atomic_action): New enum. + (tsan_atomic_table): New table. + (instrument_builtin_call): New function. + (instrument_gimple): Take pointer to gimple_stmt_iterator + instead of gimple_stmt_iterator. Call instrument_builtin_call + on builtin call stmts. + (instrument_memory_accesses): Adjust instrument_gimple caller. + * builtin-types.def (BT_FN_BOOL_VPTR_PTR_I1_INT_INT, + BT_FN_BOOL_VPTR_PTR_I2_INT_INT, BT_FN_BOOL_VPTR_PTR_I4_INT_INT, + BT_FN_BOOL_VPTR_PTR_I8_INT_INT, BT_FN_BOOL_VPTR_PTR_I16_INT_INT): New. + +2012-12-04 Tejas Belagod + + * config/aarch64/aarch64.c (aarch64_simd_vector_alignment, + aarch64_simd_vector_alignment_reachable): New. + (TARGET_VECTOR_ALIGNMENT, TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): + Define. + +2012-12-04 Richard Biener + + PR tree-optimization/55124 + * tree-ssa-pre.c (find_or_generate_expression): Instead of + ICEing when we are not able to generate an expression defer it + by signalling failure. Fix possible wrong-code issue by + not picking random REFERENCE expressions as fallback. + (create_component_ref_by_pieces_1): Adjust. Add failure paths. + (create_expression_by_pieces): Likewise. + (insert_into_preds_of_block): When expression generation failed + for one edge make sure to not insert a PHI node. + +2012-12-03 Eric Botcazou + + * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch + area if the function allocates dynamic stack space. + (ia64_initial_elimination_offset): Adjust offsets to above change. + +2012-12-03 Steven Bosscher + + * gcse.c (struct reg_use): Remove unused struct. + (gcse_emit_move_after): Do not create REG_EQUAL notes that reference + the SET_DEST of the instruction the note would be attached to. + * cse.c (cse_main): Add the DF_NOTE problem. + +2012-12-03 Jakub Jelinek + + * sanitizer.def: Add Address Sanitizer builtins. + Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and + BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*. + * Makefile.in (asan.o): Depend on langhooks.h. + (tsan.o): Depend on asan.h. + * asan.h (initialize_sanitizer_builtins): New prototype. + * asan.c: Include langhooks.h. + (report_error_func): Use builtin_decl_implicit of corresponding + BUILT_IN_ASAN_REPORT_{LOAD,STORE}*. + (asan_init_func): Removed. + (initialize_sanitizer_builtins): New function. + (asan_finish_file): Call it. Use builtin_decl_implicit + on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}. + (asan_instrument): Call initialize_sanitizer_builtins. + * builtins.def (DEF_SANITIZER_BUILTIN): Change condition to + (flag_asan || flag_tsan). + * tsan.c: Include asan.h and tsan.h. + (get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_* + to BUILT_IN_TSAN_{READ,WRITE}*. + (tsan_pass): Call initialize_sanitizer_builtins. + (tsan_gate, tsan_gate_O0): Don't check if + builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true. + (tsan_finish_file): Call initialize_sanitizer_builtins. + * builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type. + +2012-12-03 Aldy Hernandez + + PR middle-end/55401 + * trans-mem.c (get_tm_region_blocks): Exclude uninstrumented + blocks from vector if requested. + (collect_bb2reg): Pass new argument to get_tm_region_blocks. + (get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P + argument, and pass it to expand_regions. + (execute_tm_mark): Pass new argument to get_bb_regions_instrumented. + (execute_tm_edges): Same. + +2012-12-03 Jakub Jelinek + + * asan.c (instrument_mem_region_access): Don't instrument + if base doesn't have pointer type or len integral type. + Add cast if len doesn't have size_t compatible type. + (instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD, + BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR, + BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE + and BUILT_IN_ATOMIC_STORE. + + * asan.c (instrument_assignment): Instrument lhs only + for gimple_store_p and rhs1 only for gimple_assign_load_p. + +2012-12-03 Michael Zolotukhin + + * Makefile.in: Add target mddump, build/genmddump.o. Extend + genprogrtl with mddump. + * genmddump.c: New. + +2012-12-03 Steven Bosscher + + * rtl.h (print_insn_with_notes): Prototype. + * sched-vis.c (print_insn_with_notes): Export it. + + * gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype. + * gimple-pretty-print.c (print_gimple_expr): Flush the buffer. + (pp_gimple_stmt_1): Don't do it here. + (gimple_dump_bb_for_graph): New function. + * tree-pretty-print.c (print_generic_expr): Flush the buffer here. + (dump_generic_node): Don't flush the buffer here. + + * graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg. + * graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h. + (draw_cfg_node): Handle GIMPLE basic blocks also. + (print_rtl_graph_with_bb): Rename to print_graph_cfg. + * passes.c (finish_optimization_passes): Don't finish graph dumps here. + (execute_function_dump): Use print_graph_cfg. Enable dumping the CFG + for GIMPLE also. + (pass_init_dump_file): Wrap in TV_DUMP. Set up CFG graph dumps. + (pass_fini_dump_file): Wrap in TV_DUMP. Finish graph dumps. + (execute_one_pass): Don't set up graph dumps here. + +2012-12-03 Eric Botcazou + + * tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag + in the non-always executed case. + +2012-12-03 Sofiane Naci + + * config/aarch64/aarch64.c (aarch64_build_constant): Update prototype. + Call emit_move_insn instead of printing movi/movn/movz instructions. + Call gen_insv_immdi instead of printing movk instruction. + (aarch64_add_constant): Update prototype. + Generate RTL instead of printing add/sub instructions. + (aarch64_output_mi_thunk): Update calls to aarch64_build_constant + and aarch64_add_constant. + +2012-12-03 Kai Tietz + + PR target/53912 + * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t. + + PR target/53912 + * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT. + + PR target/53912 + * pointer-set.c (hash1): Cast from pointer via uintptr_t. + +2012-12-02 Marek Polacek + + PR middle-end/54838 + * cprop.c (bypass_block): Determine number of latches. Return + when there is more than one latch edge. + +2012-12-02 Teresa Johnson + + PR gcov-profile/55551 + * lto-cgraph.c (merge_profile_summaries): Handle scaled histogram + entries that map to the same index. + +2012-12-02 Steven Bosscher + + * optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL + notes. + * fwprop.c (forward_propagate_and_simplify): Likewise. + +2012-12-02 Steven Bosscher + + * function.h (struct rtl_data): Remove epilogue_delay_list. + * reorg.c (find_end_label): Simplify always-true test. + (optimize_skip): Likewise. + * final.c (leaf_function_p): Don't loop over epilogue_delay_list. + (leaf_renumber_regs): Likewise. + * varasm.c (mark_constant_pool): Likewise. + * except.c (set_nothrow_function_flags): Likewise. + * cfgrtl.c (print_rtl_with_bb): Likewise. + +2012-12-02 Hans-Peter Nilsson + + * config/mmix/mmix.c (mmix_function_value): Set the mode of the + returned PARALLEL to that of the return-value, not VOIDmode. + +2012-12-02 Sandra Loosemore + + * doc/extend.texi: Various corrections to punctuation and grammar + throughout the file. Use consistent terminology and proper names. + Correct some minor markup issues. + +2010-12-01 Xinliang David Li + + * config/i386/i386.c: Allow sign extend instructions (cltd etc) + on modern CPUs. + +2012-12-02 Steven Bosscher + + * reorg.c: Remove an obsolete comment. + * config/pa/pa.md: Add back the HP-PA comment here, with details. + +2012-11-30 Eric Botcazou + + * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): + Deal with degenerate cases where the bitsize isn't positive. + Rework comment. + +2012-11-30 David Edelsohn + + * xcoffout.c (xcoff_tls_data_section_name): Define. + * xcoffout.h (xcoff_tls_data_section_name): Declare. + * config/rs6000/rs6000.c (tls_data_section): Define. + (TARGET_USE_BLOCKS_FOR_DECL_P): Define. + (rs6000_legitimize_tls_address_aix): New function. + (rs6000_legitimize_tls_address): Use new function for AIX. + (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols. + Allow TLS symbol in constant pool other than ELF. + (rs6000_legitimate_address_p): Allow TLS symbol other than ELF. + (rs6000_assemble_visibility): Do not emit anything on AIX. + (output_toc): Handle alias of TLS general-dynamic symbols. + Emit TLS decorations on symbols. + (rs6000_use_blocks_for_decl_p): New function. + (rs6000_xcoff_output_tls_section_asm_op): New function. + (rs6000_xcoff_asm_init_sections): Initialize tls_data_section. + (rs6000_xcoff_select_section): Choose tls_data_section for + thread-local storage. + (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name. + (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF. + * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF. + (tls_get_tpointer): New. + (tle_get_tpointer_internal): New. + (tls_get_addr): New. + (tls_get_addr_internal): New. + * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define. + +2012-11-30 Teresa Johnson + + * lto-cgraph.c (output_profile_summary): Stream out sum_all + and histogram. + (input_profile_summary): Stream in sum_all and histogram. + (merge_profile_summaries): Merge sum_all and histogram, and + change to use RDIV. + (input_symtab): Call compute_working_sets after merging summaries. + * gcov-io.c (gcov_histo_index): Make extern for compiler. + * gcov-io.h (gcov_histo_index): Ditto. + * profile.c (compute_working_sets): Remove static keyword. + * profile.h (compute_working_sets): Ditto. + * Makefile.in (lto-cgraph.o): Depend on profile.h. + +2012-11-30 Martin Jambor + + PR middle-end/52890 + PR tree-optimization/55415 + PR tree-optimization/54386 + PR target/55448 + * ipa-prop.c (ipa_modify_call_arguments): Be optimistic when + get_pointer_alignment_1 returns false and the base was not a + dereference. + * tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align, + added check for required alignment. Update the user. + +2012-11-30 Ramana Radhakrishnan + Greta Yorsh + + * config/arm/arm.md (type): Subdivide "alu" into "alu_reg" + and "simple_alu_imm". + (core_cycles): Use new names. + (arm_addsi3): Set type of patterns to use to alu_reg and simple_alu_imm. + (addsi3_compare0, addsi3_compare0_scratch): Likewise. + (addsi3_compare_op1, addsi3_compare_op2, compare_addsi2_op0): Likewise. + (compare_addsi2_op1, arm_subsi3_insn, subsi3_compare0): Likewise. + (subsi3_compare, arm_decscc,arm_andsi3_insn): Likewise. + (thumb1_andsi3_insn, andsi3_compare0_scratch): Likewise. + (zeroextractsi_compare0_scratch,iorsi3_insn,iorsi3_compare0): Likewise. + (iorsi3_compare0_scratch, arm_xorsi3, thumb1_xorsi3_insn): Likewise. + (xorsi3_compare0, xorsi3_compare0_scratch): Likewise. + (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Likewise. + (thumb1_zero_extendqisi2_v, arm_zero_extendqisi2_v6): Likewise. + (thumb1_extendhisi2, arm_extendqisi_v6): Likewise. + (thumb1_extendqisi2, arm_movsi_insn): Likewise. + (movsi_compare0, movhi_insn_arch4, movhi_bytes): Likewise. + (arm_movqi_insn, thumb1_movqi_insn, arm_cmpsi_insn): Likewise. + (movsicc_insn, if_plus_move, if_move_plus): Likewise. + * config/arm/neon.md (neon_mov/VDX): Likewise. + (neon_mov/VQXMOV): Likewise. + * config/arm/arm1020e.md (1020alu_op): Likewise. + * config/arm/fmp626.md (mp626_alu_op): Likewise. + * config/arm/fa726te.md (726te_alu_op): Likewise. + * config/arm/fa626te.md (626te_alu_op): Likewise. + * config/arm/fa606te.md (606te_alu_op): Likewise. + * config/arm/fa526.md (526_alu_op): Likewise. + * config/arm/cortex-r4.md (cortex_r4_alu, cortex_r4_mov): Likewise. + * config/arm/cortex-m4.md (cortex_m4_alu): Likewise. + * config/arm/cortex-a9.md (cprtex_a9_dp): Likewise. + * config/arm/cortex-a8.md (cortex_a8_alu, cortex_a8_mov): Likewise. + * config/arm/cortex-a5.md (cortex_a5_alu): Likewise. + * config/arm/cortex-a15.md (cortex_a15_alu): Likewise. + * config/arm/arm926ejs.md (9_alu_op): Likewise. + * config/arm/arm1136jfs.md (11_alu_op): Likewise. + * config/arm/arm1026ejs.md (alu_op): Likewise. + +2012-11-30 Richard Biener + + * tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here. + +2012-11-30 Richard Biener + + * tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating + value_ids. + +2012-11-30 Steven Bosscher + + * coretypes.h (struct pretty_print_info): Make a coretype. + (typedef pretty_printer): Likewise. + * pretty-print.h (typedef pretty_printer): Not needed here anymore. + * pretty-print.c (pp_write_text_as_dot_label_to_stream): New function. + * rtl.h (str_pattern_slim): New prototype. + (print_value, print_pattern, print_insn): Adjust prototypes to take + a pretty-printer rather than a char buffer. + * sched-vis.c (safe_concat): Remove. + (print_exp): Print into a pretty-printer. + (print_value): Likewise. + (print_pattern): Likewise. + (print_insn): Likewise. + (print_insn_with_notes): New static function. + (init_rtl_slim_pretty_print): New function. + (dump_value_slim): Simplify. Print into and flush a pretty-printer. + (dump_insn_slim): Likewise. + (dump_rtl_slim): Likewise. + (str_pattern_slim): New function. + * haifa-sched.c (model_recompute): Use str_pattern_slim instead of + static buffers. + (model_record_pressures): Likewise. + (schedule_insn): Likewise. + * sel-sched-dump.c (dump_insn_rtx_1): Likewise. + (sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code. + * graph.c: Include pretty-print.h. + (init_graph_slim_pretty_print): New function. + (print_escaped_line): Removed here, and reincarnated as + pp_write_text_as_dot_label_to_stream. + (draw_cfg_node): Print into a pretty printer. + (draw_cfg_node_succ_edges): Likewise. + (print_rtl_graph_with_bb): Likewise. + * Makefile.in (graph.o): Fix dependencies. + (tree-optimize.o, toplev.o, sched-vis.o): Likewise. + +2012-11-30 Jakub Jelinek + + * tsan.c (is_load_of_const_p): Removed. + (instrument_expr): Use result of get_inner_reference + instead of get_base_address, avoid some unnecessary tests, + use !pt_solution_includes and !may_be_aliased tests to + check whether base might escape current function. + +2012-11-30 Michael Zolotukhin + + * gensupport.c (maybe_eval_c_test): Remove not-null check for expr. + * read-rtl.c (apply_iterators): Initialize condition with "" instead + of NULL. + +2012-11-30 Kai Tietz + + * config/i386/host-mingw32.c (va_granularity): Make none-const. + (mingw32_gt_pch_alloc_granularity): Return OS' allocation granularity. + (mingw32_gt_pch_use_address): Retry mapping of used address + as multiple instances might interfer. + + * config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with + cygwin-host. + +2012-11-29 Eric Botcazou + + PR middle-end/55321 + * calls.c (emit_library_call_value_1): Mark as no-nonlocal if no-throw. + +2012-11-29 Vladimir Makarov + + PR middle-end/55456 + * lra-int.h (lra_new_regno_start): New external. + * lra.c (lra_new_regno_start): New global. + (lra): Set up lra_new_regno_start. + * lra-constraints.c (match_reload): Sync values only for original + pseudos. + +2012-11-29 Kai Tietz + + PR target/53912 + * prefix.c (lookup_key): Replace xmalloc/xrealloc + use by XNEWVEC/XRESIZEVEC. + +2012-11-29 Richard Earnshaw + + PR target/55073 + * config/arm/neon.md (neon_vtrn_internal): Split into expand + and insn patterns. Re-order insn arguments to tie inputs to outputs. + (neon_vzip_internal): Likewise. + (neon_vuzp_internal): Likewise. + +2012-11-29 Marc Glisse + + PR c++/53094 + * fold-const.c (fold): Replace a CONSTRUCTOR with a VECTOR_CST. + +2012-11-29 Richard Biener + + * tree-ssa-pre.c (get_expr_value_id): Do not add expr + to the set of value expressions here. + (add_to_exp_gen, make_values_for_phi): Fold into ... + (compute_avail): ... here, and avoid useless work. Dump + avail sets in processing order. + (do_pre): Do not dump avail sets here. + +2012-11-29 Matthew Gretton-Dann + + PR target/54974 + * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on + Thumb pool ranges. + (thumb1_extendhisi2): Reduce Thumb pool range. + (arm_movdi): Likewise. + (thumb1_movdi_insn): Likewise. + (thumb1_movsi_insn): Likewise. + (pic_load_addr_unified): Likewise. + (pic_load_addr_32bit): Likewise. + (pic_load_addr_thumb1): Likewise. + (thumb1_movhf): Likewise. + (arm_movsf_soft_insn): Likewise. + (thumb1_movsf_soft_insn): Likewise. + (movdf_soft_insn): Likewise. + (thumb1_movdf_soft_insn): Likewise. + * config/arm/neon.md (*neon_mov): Likewise. + (*neon_mov): Likwise. + * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise. + (*thumb2_movhi_insn): Likewise. + (*thumb2_extendqisi_v6): Likewise. + (*thumb2_zero_extendqisi_v6): Likewise. + (*thumb2_zero_extendqisi2_v6): Likewise. + * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise. + (*movdi_vfp): Likewise. + (*movdi_vfp_cortexa8): Likewise. + (*thumb2_movsf_vfp): Likewise. + (*thumb2_movdf_vfp): Likewise. + +2012-11-29 Kai Tietz + + PR target/55171 + * config/i386/i386.c (get_scratch_register_on_entry): Handle + thiscall-convention. + (split_stack_prologue_scratch_regno): Likewise. + (ix86_static_chain): Likewise. + (x86_output_mi_thunk): Likewise. + +2012-11-29 Marek Polacek + + * cprop.c (bypass_block): Improve debug message. + +2012-11-29 Oleg Raikhman + + * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS): + Make r40..r43 call-used. + (REG_ALLOC_ORDER): Sort r40..r43 into the call-used registers. + +2012-11-29 Joern Rennecke + + * config/epiphany/predicates.md (addsub_operator): New predicate. + * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute. + * config/epiphany/epiphany.md (isub_i+1): New peephole2. + * config/epiphany/epiphany-protos.h (get_attr_sched_use_fpu): Declare. + + * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define. + (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise. + * config/epiphany/t-epiphany (SPECS): Set. + (specs): New rule. + + * config/epiphany/epiphany.md (isub_i+1): Work around generator bug. + + * config/epiphany/epiphany.c (epiphany_adjust_cost): Use + reg_overlap_mentioned_p. + +2012-11-28 Jakub Jelinek + + PR debug/36728 + PR debug/55467 + PR middle-end/55507 + PR bootstrap/55511 + * cselib.c (cselib_process_insn): If cselib_preserve_constants, + don't reset table and exit early on volatile insns and setjmp. + Reset table afterwards on setjmp. + +2012-11-28 Andrew Pinski + + PR bootstrap/54279 + * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++. + +2012-11-28 Richard Sandiford + + PR rtl-optimization/55052 + * simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check. + +2012-11-28 David Edelsohn + + * target.def (use_blocks_for_decl_p): New hook. + * varasm.c (use_blocks_for_decl_p): Apply hook as final condition. + * doc/tm.texi.in (USE_BLOCKS_FOR_DECL_P): New description. + * doc/tm.texi: Regenerated. + +2012-11-28 Richard Sandiford + + PR middle-end/55438 + * expmed.c (simple_mem_bitfield_p): New function, extracted from + store_bit_field_1 and extract_bit_field_1. Use GET_MODE_ALIGNMENT + rather than bitsize when checking the alignment. + (store_bit_field_1, extract_bit_field_1): Call it. + * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): + Don't limit ALIGN_. Assume that memory is mapped in chunks of at + least word size, regardless of BIGGEST_ALIGNMENT. + (bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather + than unit when checking the alignment. + (get_best_mode): Use GET_MODE_ALIGNMENT. + +2012-11-28 Vladimir Makarov + + PR rtl-optimization/55512 + * lra-assigns.c (assign_by_spills): Assigned arbitrary hard regs + to failed reload pseudos instead of changing asm pattern. + * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Increase value. + +2012-11-28 Markus Trippelsdorf + + PR other/55358 + * dse.c (rest_of_handle_dse): Remove superfluous clearing. + +2012-11-28 Joern Rennecke + + * config/epiphany/predicates.md (move_double_src_operand): + Check that misaligned addresses are offsettable. + (move_dest_operand): Likewise. + * config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a + misaligned stack address to reg+index. + + * config/epiphany/epiphany.opt (mfp-iarith): New option. + * config/epiphany/epiphgany.md (addsi3): Check for TARGET_FP_IARITH. + (subsi3, iadd, isub): Rename to .. + (subsi3_i, iadd_i, isub_i): .. This. + (subsi3, iadd, isub): New define_expands. + + * config/epiphany/epiphgany.md (attribute type): Add v2fp. + (attribute fp_mode): Test for v2fp. + (v2sf3_i): Change type to v2fp. + * config/epiphany/epiphany-sched.md (fp_arith_nearest, + fp_arith_trunc): Combine to .. + (fp_arith): .. this. + (v2fp_arith): New insn reservation. + + * config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern. + +2012-11-28 Oleg Raikhman + + * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define. + +2012-11-28 Joern Rennecke + + * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define. + * config/epiphany/epiphany-protos.h (epiphany_regno_rename_ok): + Declare. + * config/epiphany/epiphany.c (epiphany_regno_rename_ok): New function. + + * config/epiphany/epiphany.md (mov, *mov_insn): Check + for misaligned memory operands. + * config/epiphany/predicates.md (misaligned_operand): New predicate. + + * config/epiphany/epiphany.opt (-may-round-for-trunc): New option. + * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it + into account. + +2012-11-28 Richard Biener + + PR tree-optimization/54547 + * tree-vrp.c (set_and_canonicalize_value_range): Handle + 1-bit anti-ranges explicitely. + (extract_range_from_assert): Properly canonicalize all + built anti-ranges. + +2012-11-28 Eric Botcazou + + * stor-layout.c (layout_type) : Do not clear TREE_OVERFLOW + on overflowed zeroes, except in one specific case. + +2012-11-28 Marc Glisse + + PR middle-end/55266 + * fold-const.c (fold_ternary_loc) [BIT_FIELD_REF]: Handle + CONSTRUCTOR with vector elements. + * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle CONSTRUCTOR + and BIT_FIELD_REF. + +2012-11-28 Richard Biener + + PR c/35634 + * gimple.h (gimplify_self_mod_expr): Declare. + * gimplify.c (gimplify_self_mod_expr): Export. Take a different + type for performing the arithmetic in. + (gimplify_expr): Adjust. + * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Strip + sign conversions we can re-apply after adjusting the IV. + +2012-11-28 Steven Bosscher + + PR rtl-optimization/55006 + * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member. + (analyze_iv_to_split_insn): Record it. + (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL + notes that refer to IVs that are being split. + (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv. Twice. + Use FOR_BB_INSNS_SAFE. + +2012-11-27 Steven Bosscher + + * rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove + prototypes. + (debug_rtl_slim): Rename to dump_rtl_slim. + (print_value_slim): Rename to dump_value_slim. + * ira.c (ira_update_equiv_info_by_shuffle_insn): Update + print_value_slim user. + * lra.c (lra_process_new_insns): Use dump_insn_slim to dump single + insns. Use dump_rtl_slim for insn chains. + * lra-constraints.c (get_reload_reg): Update print_value_slim user. + (process_addr_reg): Likewise. + (equiv_address_substitution): Likewise. + (inherit_reload_reg): Likewise. Use dump_insn_slim to dump single + insns. + (check_and_process_move): Likewise. + (lra_constraints): Likewise. + (split_reg): Likewise. + (update_ebb_live_info): Likewise. + (remove_inheritance_pseudos): Likewise. + * sched-vis.c: Don't include sched-int.h. + Remove #ifdef INSN_SCHEDULING tests. + (print_value_slim): Rename to dump_value_slim. Simplify a few + cases using GET_RTX_NAME. + (print_pattern): Do not handle UNSPEC and UNSPECV here, explain why. + (print_insn): Reorganize code to be independent of INSN_SCHEDULING. + Always print CALL_INSN patterns. Harmonize INSN_UID dumping template. + Handle NOTE_INSN_CALL_ARG_LOCATION. + (dump_rtl_slim): Copied from debug_rtl_slim. + (debug_rtl_slim): Wrapper around dump_rtl_slim to stderr. + * haifa-sched.c (schedule_insn): Update print_insn user. + +2012-11-27 Vladimir Makarov + + PR rtl-optimization/55458 + * lra-assigns.c: Include rtl-error.h. + (assign_by_spills): Report about asm impossible constraints. + * Makefile.in (lra-assigns.c): Add $(RTL_ERROR_H). + +2012-11-27 Paolo Bonzini + + PR rtl-optimization/55489 + * gcse.c (compute_transp): Precompute a canonical version + of XEXP (x, 0), and pass it to canon_true_dependence. + + * alias.c (init_alias_analysis): Fix allocation of reg_known_value. + +2012-11-27 Diego Novillo + + * vec.h: Replace 'class vec' with 'struct vec' everywhere. + (ggc_internal_cleared_alloc_stat): Remove. + (va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call. + (va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call. + (vec::copy): Replace ALONE_MEM_STAT_DECL with + ALONE_CXX_MEM_STAT_INFO. + (vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO. + (vec_safe_reserve_exact): Likewise. + (vec_alloc): Likewise. + (vec_safe_grow): Likewise. + (vec_safe_grow_cleared): Likewise. + (vec_safe_push): Likewise. + (vec_safe_insert): Likewise. + (vec_safe_splice): Likewise. + (vec_alloc): Likewise. + (vec_check_alloc): Likewise. + +2012-11-27 Marc Glisse + + * tree-cfg.c (verify_gimple_comparison): Verify that vector + comparison returns a vector. + +2012-11-27 Meador Inge + + * collect2.c (main): Call find_file_set_debug. + (find_a_find, add_prefix, prefix_from_env, prefix_from_string): + Factor out into ... + * file-find.c (New file): ... here and ... + * file-find.h (New file): ... here. + * gcc-ar.c (standard_exec_prefix): New variable. + (standard_libexec_prefix): Ditto. + (tooldir_base_prefix) Ditto. + (self_exec_prefix): Ditto. + (self_libexec_prefix): Ditto. + (self_tooldir_prefix): Ditto. + (target_version): Ditto. + (path): Ditto. + (target_path): Ditto. + (setup_prefixes): New function. + (main): Rework how wrapped programs are found. + * Makefile.in (OBJS-libcommon-target): Add file-find.o. + (AR_OBJS): New variable. + (gcc-ar$(exeext)): Add dependency on $(AR_OBJS). + (gcc-nm$(exeext)): Ditto. + (gcc-ranlib(exeext)): Ditto. + (COLLECT2_OBJS): Add file-find.o. + (collect2.o): Add file-find.h prerequisite. + (file-find.o): New rule. + +2010-11-27 Dehao Chen + + * ipa-prop.c (ipa_modify_call_arguments): Set loc correctly. + * emit-rtl.c (last_location): Remove unused variable. + +2012-11-27 Uros Bizjak + + * config/i386/i386.md + (*jcc__i387 splitters): Remove + unneeded temporary. + +2012-11-27 Dehao Chen + + * cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly. + (cfg_layout_merge_blocks): Likewise. + +2012-11-27 Jakub Jelinek + + * passes.c (init_optimization_passes): Add pass_asan and pass_tsan + to -Og optimization passes. + +2012-11-27 H.J. Lu + Markus Trippelsdorf + + PR lto/54795 + * lto-opts.c (lto_write_options): Also handle + OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and + OPT_SPECIAL_program_name. + + PR lto/55474 + * lto-wrapper.c (merge_and_complain): Handle + OPT_SPECIAL_unknown, OPT_SPECIAL_ignore, + OPT_SPECIAL_program_name and OPT_SPECIAL_input_file. + +2012-11-27 Jakub Jelinek + + PR middle-end/52650 + * function.c (instantiate_virtual_regs_in_insn): Don't delete invalid + asm gotos, instead just clear their template and inputs. + + PR tree-optimization/55110 + * tree-vect-loop.c (vectorizable_reduction): Don't assert + that STMT_VINFO_RELATED_STMT of orig_stmt is stmt. + +2012-11-27 Richard Biener + + * gimple-fold.c (fold_stmt_1): Remove unnecessary code. + +2012-11-27 Bin Cheng + + * config/arm/arm.c (thumb1_reorg): New function. + (arm_reorg): Call thumb1_reorg. + (thumb1_final_prescan_insn): Record src operand in thumb1_cc_op0. + * config/arm/arm.md : Remove peephole2 patterns which rewrite move + into subtract of ZERO. + +2012-11-27 Richard Biener + + PR middle-end/55331 + * gimple-fold.c (gimplify_and_update_call_from_tree): Replace + stmt with a NOP instead of removing it. + +2012-11-27 Steven Bosscher + + * loop-invariant.c (check_invariant_table_size): Take sizeof of + the right type. + + * reorg.c (resource_conflicts_p): Use hard_reg_set_intersect_p. + (rare_destination): Remove. + (mostly_true_jump): Simplify. Base result on REG_BR_PROP notes if + available, otherwise assume branches are not taken. + (fill_eager_delay_slots): Update mostly_true_jump call. + (relax_delay_slots): Likewise. + +2012-11-26 Eric Botcazou + + * reorg.c (redundant_insn): Do not handle DEBUG_INSNs. + +2012-11-26 Vladimir Makarov + + PR target/55277 + * lra-constraints.c (in_class_p): Check reg class contents too. + +2012-11-26 James Greenhalgh + + * config/aarch64/aarch64-builtins.c (aarch64_builtin_decls): New. + (aarch64_init_simd_builtins): Store declaration after builtin + initialisation. + (aarch64_builtin_decl): New. + * config/aarch64/aarch64-protos.h (aarch64_builtin_decl): New. + * config/aarch64/aarch64.c (TARGET_BUILTIN_DECL): Define. + +2012-11-26 Steven Bosscher + + * doc/invoke.texi: Remove -dv documentation. Fix up graph dump related + documentation. Document the '-graph' dump option. Complete the '-slim' + dump option documentation. + + * common.opt (Variable graph_dump_format): Remove. + * flag-types.h (enum graph_dump_types): Remove. + * flags.h (dump_for_graph): Remove. + * opts.c (decode_d_option): Remove -dv handling. + * sched-int.h (print_insn, print_pattern, print_value): Move prototypes + from here ... + * rtl.h: ...to here. Add note that these functions ought to be in + another file. + * sched-vis.c (print_insn): Add detailed dump for insn notes. + * print-rtl.c (dump_for_graph): Remove. + (print_rtx): Remove dump_for_graph related code. + * graph.c: Almost complete re-write to dump DOT (GraphViz) dumps + instead of VCG dumps. + * graph.h (print_rtl_graph_with_bb): Update prototype. + * passes.c (finish_optimization_passes): Fix profile dump finishing. + Unconditionally loop over graph dumps to finalize. + (execute_function_dump): Split code to dump graphs to separate block. + (execute_one_pass): Don't set TDF_GRAPH here, let the dump option + decoders do their job. + + * ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION. + * toplev.c: Don't include graph.h. + * tree-optimize.c: Don't include graph.h. + +2012-11-26 Marek Polacek + + * cprop.c (hash_set): Remove variable. Use regno variable directly. + +2012-11-26 Eric Botcazou + + * tree.h (DECL_RESTRICTED_P): Delete. + (DECL_READ_P): Add comment. + (DECL_NONSHAREABLE): Likewise. + (TYPE_NO_FORCE_BLK): Fix comment. + (struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3. + * tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P. + * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise. + * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise. + + * alias.c (nonoverlapping_component_refs_p): Fix thinko. + +2012-11-26 Kyrylo Tkachov + + * doc/sourcebuild.texi: Document arm_v8_vfp_ok. + +2012-11-26 Kyrylo Tkachov + + * config/arm/arm.h (TARGET_FPU_ARMV8): New macro. + * config/arm/arm.md (UNSPEC_VRINTZ, UNSPEC_VRINTP, UNSPEC_VRINTM) + (UNSPEC_VRINTR, UNSPEC_VRINTX, UNSPEC_VRINTA): New unspecs. + (f_rints, f_rintd): New types. + * config/arm/iterators.md (VRINT): New int iterator. + (F_fma_type): Remove. + (vfp_type): New mode attribute. + (vfp_double_cond): Likewise. + (vrint_pattern, vrint_variant, vrint_predicable): New int attribute. + * config/arm/vfp.md (fma4): Use vfp_type iterator + instead of F_fma_type. + (*fmsub4, *fnmsub4, *fnmadd4): Likewise. + (2): New pattern. + +2012-11-26 Eric Botcazou + + * fold-const.c (const_binop): Adjust comment. + (extract_muldiv_1): Likewise. + (fold_comparison): Likewise. + * stor-layout.c (place_field): Fix typo. + * tree.c (double_int_fits_to_tree_p): Remove obsolete comment. + (force_fit_type_double): Likewise. Fix long line. + +2012-11-26 Greta Yorsh + + * config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets. + +2012-11-26 Matthias Klose + + * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix unbalanced + parentheses. + +2012-11-26 Jakub Jelinek + + PR tree-optimization/54471 + * tree-vrp.c (extract_range_from_binary_expr_1): For MULT_EXPR, + don't canonicalize range if min2 is zero. + +2012-11-26 Hans-Peter Nilsson + + PR middle-end/55030 + * builtins.c (expand_builtin_setjmp_receiver): Update comment + regarding purpose of blockage. + * emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for + the head comment. + * rtlanal.c (volatile_insn_p): Ditto. + * doc/md.texi (blockage): Update similarly. Change wording to + require one of two forms, rather than implying a wider choice. + * cse.c (cse_insn): Where checking for blocking insns, use + volatile_insn_p instead of manual check for volatile ASM. + * dse.c (scan_insn): Ditto. + * cselib.c (cselib_process_insn): Ditto. + +2012-11-25 Uros Bizjak + + * config/i386/sse.md (_loadu): + Do not depend on TARGET_SSE_TYPELESS_STORES. + (_loaddqu): Ditto. + (_storeu): Fix handling of + TARGET_SSE_TYPELESS_STORES. + (_storedqu): Ditto. + +2012-11-25 Steven Bosscher + + * doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation. + (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise. + * doc/tm.texi: Regenerate. + * reorg.c (fill_simple_delay_slots): Remove code conditional on + DELAY_SLOTS_FOR_EPILOGUE being defined. + (make_return_insns, dbr_schedule): Likewise. + * system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison. + (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise. + +2012-11-24 Jack Howarth + + * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fsanitize=address. + +2012-11-24 Matthias Klose + + * configure.ac (multiarch): Use $enableval instead of $withval. + * configure: Regenerate. + * config/i386/t-kfreebsd (MULTILIB_OSDIRNAMES): Filter out x32. + * gcc/config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use + x86_64-linux-gnux32 as multiarch name for x32. + +2012-11-23 Tobias Burnus + + * doc/invoke.texi (-fsanitize=address): Remove obsolete remark. + +2012-11-23 Jakub Jelinek + + PR c++/54046 + * Makefile.in (gimple-low.o): Depend on langhooks.h. + * gimple-low.c: Include langhooks.c. + (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK, + by default call lang_hooks.block_may_fallthru. + * langhooks.h (struct lang_hooks): Add block_may_fallthru langhook. + * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define. + (LANG_HOOKS_INITIALIZER): Use it. + +2012-11-23 Jan Hubicka + + * i386-c.c (ix86_target_macros_internal): Update handling of core + chips. + * i386.c (DUMMY_STRINGOP_ALGS): Update + (*_cost): Update. + (core_cost): Copy from generic64_cost; fix stringop descriptors. + (m_CORE2_32, m_CORE2_64, m_COREI7_32, m_COREI7_64, m_CORE2I7_32, + m_CORE2I7_64): Remove. + (m_CORE2, m_COREI7, m_CORE2I7): Update. + (initial_ix86_tune_features): Update. + (processor_target): Update. + (ix86_option_override_internal): Update. + (ix86_option_override_internal): Remove PROCESSOR_CORE2_64, + PROCESSOR_COREI7_64 special cases. + (decide_alg): Add noalign parameter; set it. + (ix86_expand_movmem, ix86_expand_setmem): Update noalign handling. + (ix86_issue_rate): Update. + (ia32_multipass_dfa_lookahead): Update. + (ix86_sched_init_global): Update. + (get_builtin_code_for_version): Update. + * i386.h (stringop_strategy): Add noalign flag. + (TARGET_CORE2_32, TARGET_CORE2_64, TARGET_COREI7_32, TARGET_COREI7_64): + Remove. + (TARGET_CORE2, TARGET_COREI7): New. + (enum processor_type): Remove PROCESSOR_CORE2_32, PROCESSOR_CORE2_64, + PROCESSOR_COREI7_32, PROCESSOR_COREI7_64; add PROCESSOR_CORE2, + PROCESSOR_COREI7. + +2012-11-23 Eric Botcazou + + PR rtl-optimization/55388 + * alias.c (nonoverlapping_component_refs_p): Handle bitfields. + * emit-rtl.c (adjust_address_1): Deal with VOIDmode early. + * expmed.c (store_bit_field): Turn the call to adjust_address + into a call to adjust_bitfield_address_size. + +2012-11-23 Vladimir Makarov + + * lra.c (lra): Move init_reg_info and expand_reg_info calls before + init_insn_recog_data. + +2012-11-23 Jakub Jelinek + + * tsan.c: Fix up comment formatting. + (instrument_gimple): Ignore gimple_clobber_p stmts. + (pass_tsan, pass_tsan_O0): Remove TODO_update_address_taken + from todo_flags_finish. + + PR sanitizer/55435 + * asan.c (gate_asan): Don't instrument functions with + no_address_safety_analysis attribute. + (gate_asan_O0): Use !optimize && gate_asan (). + * doc/extend.texi (no_address_safety_analysis): Document new + function attribute. + +2012-11-22 Teresa Johnson + Jan Hubicka + + * predict.c (maybe_hot_count_p): Use threshold from profiled working + set instead of hard limit. + (cgraph_maybe_hot_edge_p): Invoke maybe_hot_count_p() instead of + directly checking limit. + * params.def (HOT_BB_COUNT_FRACTION): Remove. + (HOT_BB_COUNT_WS_PERMILLE): New parameter. + * doc/invoke.texi (hot-bb-count-fraction): Remove. + (hot-bb-count-ws-permille): Document. + +2012-11-22 Vladimir Makarov + + PR middle-end/55430 + * lra.c: Move #include "hard-reg-set.h" before #include "rtl.h". + (new_insn_reg): Update biggest_mode. + (collect_non_operand_hard_regs): Check eliminable regs too. + (initialize_lra_reg_info_element): Initialize biggest_mode. + (add_regs_to_insn_regno_info): Ignore non-allocatable + non-eliminable hard regs. + (lra.c): Move setting lra_no_alloc_regs before + init_insn_recog_data. + * lra-constraints.c (simplify_operand_subreg): Add a comment. + (lra_constraints): Ignore equivalent memory of + regs occuring in paradoxical subregs. + * lra-lives.c (lra_create_live_ranges): Add a comment. + +2012-11-22 Dmitry Vyukov + Wei Mi + + * builtins.def (DEF_SANITIZER_BUILTIN): Define tsan builtins. + * sanitizer.def: Ditto. + * Makefile.in (tsan.o): Add tsan.o target. + (BUILTINS_DEF): Add sanitizer.def. + * passes.c (init_optimization_passes): Add tsan passes. + * tree-pass.h (register_pass_info): Ditto. + * toplev.c (compile_file): Ditto. + * doc/invoke.texi: Document tsan related options. + * gcc.c (LINK_COMMAND_SPEC): Add LIBTSAN_SPEC in link command if + -fsanitize=thread. + * tsan.c: New file about tsan. + * tsan.h: Ditto. + * common.opt: Add -fsanitize=thread. + +2012-11-22 Uros Bizjak + + * doc/md.texi (RTL Templates Transformation): Use @pxref for + cross-reference in parentheses. + +2012-11-22 Marcus Shawcroft + + * doc/md.texi (AArch64 family): Remove Utf. + +2012-11-22 Uros Bizjak + + * config/i386/i386.md (*jcc_0_i387): Macroize insn + from *fp_jcc_3_387 using X87MODEF mode iterator. + (*jcc_0_r_i387): New. + (*jccxf_i387): Ditto. + (*jccxf_r_i387): Ditto. + (*jcc_i387): Macroize insn from *fp_jcc_1_387 using + MODEF mode iterator. + (*jcc_r_i387): Macroize insn from *fp_jcc_1r_387 using + MODEF mode iterator. + (*jccu_i387): Macroize insn from *fp_jcc_2_387 using + X87MODEF mode iterator. + (*jccu_r_i387): Macroize insn from *fp_jcc_2r_387 using + X87MODEF mode iterator. + (*jcc{,u}_i387 splitters): Macroize splitters using + X87MODEF mode iterator. + (*jcc__i387): Macroize insn + from *fp_jcc_4__387 using X87MODEF mode iterator. + (*jcc__r_i387): New. + (*jcc__i387 splitters): Macroize + splitters using X87MODEF and SWI24 mode iterators. + +2012-11-22 Uros Bizjak + + * config/i386/i386.md (FPCMP): New mode iterator. + (unord): New mode attribute. + (*cmp_0_i387): Macroize insn from *cmpfp_0 + using X87MODEF mode iterator. + (*cmp_0_cc_i387): Macroize insn from *cmpfp_0_cc using + X87MODEF mode iterator. + (*cmpxf_i387): Rename from *cmpfp_xf. + (*cmpxf_cc_i387): Rename from *cmpfp_xf_cc. + (*cmp_i387): Rename from *cmpfp_. + (*cmp_cc_i387): Rename from *cmpfp__cc. + (*cmpu_i387): Macroize insn from *cmpfp_u using X87MODEF + mode iterator. + (*cmpu_cc_i387): Macroize insn from *cmpfp_u_cc using X87MODEF + mode iterator. + (*cmp__i387): Macroize_insn from + *cmpfp_ using X87MODEF mode iterator. + (*cmp__cc_i387): Macroize_insn from + *cmpfp__cc using X87MODEF mode iterator. + (*cmpi_mixed): Macroize insn from + *cmpfp_i{,u}_mixed using FPCMP and MODEF mode iterators. + (*cmpi_mixed): Macroize insn from + *cmpfp_i{,u}_sse using FPCMP and MODEF mode iterators. + (*cmpi_i387): Macroize insn from + *cmpfp_i{,u}_387 using FPCMP and X87MODEF mode iterators. + +2012-11-22 Ian Bolton + + * config/aarch64/aarch64.md (bswaphi2): New pattern. + +2012-11-22 H.J. Lu + + PR sanitizer/55379 + * gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with + -fsanitize=address. + +2012-11-22 H.J. Lu + + * gcc.c (ADD_STATIC_LIBASAN_LIBS): New macro. Defined + with STATIC_LIBASAN_LIBS. + (LIBASAN_SPEC): Add STATIC_LIBASAN_LIBS. + * config/gnu-user.h (STATIC_LIBASAN_LIBS): New macro. + +2012-11-22 Kyrylo Tkachov + + * config/arm/arm.md (*arm_abssi2): Define predicable attribute. + (*arm_neg_abssi2): Likewise. + * config/arm/thumb2.md (*thumb2_abssi2): Likewise. + (*thumb2_neg_abssi2): Likewise. + +2012-11-22 Jakub Jelinek + + * ree.c (struct ext_modified): Add ATTRIBUTE_PACKED. + +2012-11-22 Georg-Johann Lay + + Adjust decimal point of signed accum mode to GCC default. + + PR target/54222 + * config/avr/avr-modes.def (HA, SA, DA): Remove mode adjustments. + (TA): Move decimal point one bit to the right. + * config/avr/avr.c (avr_out_fract): Rewrite. + +2012-11-21 Matthias Klose + + * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME. + * config.gcc (tmake_file): Include alpha/t-linux. + +2012-11-21 Matthias Klose + + * config/m68k/t-linux: Define MULTIARCH_DIRNAME. + +2012-11-21 Matthias Klose + + * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME. + * config.gcc (tmake_file): Include ia64/t-linux. + +2012-11-21 Vladimir Makarov + + PR rtl-optimization/55414 + * lra-constraints.c (Index): New function. + (lra_constraints): Check dead equiv init insns. + +2012-11-21 Richard Henderson + + * config/alpha/alpha.md (extvmisaligndi): Rename from extv; update + mode of operand 1; remove ancient extract_bit_field workaround. + (insvmisaligndi): Rename from insv and update similarly. + (extzvmisaligndi): Rename from extzv and update similarly; split out... + (extzvdi): New expander. + +2012-11-21 H.J. Lu + + * doc/cpp.texi: Document __SANITIZE_ADDRESS__. + +2012-11-21 H.J. Lu + + PR c/55397 + * cppbuiltin.c (define_builtin_macros_for_compilation_flags): + Define __SANITIZE_ADDRESS__ for flag_asan. + +2012-11-21 Wei Mi + + * common.opt: Change faddress-sanitizer to fsanitize=address. + * toplev.c (process_options): Likewise. + * gcc.c (LINK_COMMAND_SPEC): Likewise. + * testsuite/lib/asan-dg.exp + (check_effective_target_faddress_sanitizer): Likewise. + (asan_init): Likewise. + * doc/invoke.texi (-fsanitize=address): Document. + +2012-11-21 Martin Jambor + + * ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to + do_clone_for_all_contexts. Update all uses. New flag + is_all_contexts_clone. + * ipa-cp.c (cgraph_edge_brings_value_p): Also consider the case when cs + leads to the clone for all contexts. + (perhaps_add_new_callers): Likewise. + (decide_whether_version_node): Remove bogus !plats->aggs test. Set + is_all_contexts_clone when cloning for all contexts. + +2012-11-21 Martin Jambor + + PR tree-optimization/55260 + * ipa-cp.c (intersect_aggregates_with_edge): New function. + (find_aggregate_values_for_callers_subset): Part moved to the function + above. Call it. + (cgraph_edge_brings_all_agg_vals_for_node): Reimplemented using + intersect_aggregates_with_edge. + +2012-11-21 Matthias Klose + + * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. + +2012-11-21 Teresa Johnson + + PR gcov-profile/55417 + * profile.c (compute_working_sets): Check index first + to avoid out-of-bounds array access. + +2012-11-21 Matthias Klose + + * config/aarch64/t-aarch64-linux: Define MULTIARCH_DIRNAME for + linux target. + +2012-11-21 Uros Bizjak + + * config/i386/i386.md + (*float2_mixed_with_temp): Use SWI48 mode + iterator instead of SWI48x. Update insn constraint. + (*float2_mixed_interunit): Ditto. + (*float2_mixed_nointerunit): Ditto. + (*float2_sse_with_temp): Ditto. + (*float2_sse_interunit): Ditto. + (*float2_sse_nointerunit): Ditto. + (*float2 splitters): Ditto. + (lrint2): Ditto. + +2012-11-21 Marcus Shawcroft + + * Makefile.in (gengtype-lex.o): Add dependency on $(BCONFIG_H). + +2012-11-21 Bin Cheng + + * config/arm/arm-cores.def (cortex-m1, cortex-m0) + (cortex-m0plus): Use v6m. + * config/arm/arm-protos.h (tune_params): Add + logical_op_non_short_circuit. + * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune) + (arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune) + (arm_cortex_tune, arm_cortex_a15_tune, arm_cortex_a5_tune) + (arm_cortex_a9_tune, arm_fa726te_tune): Set + logical_op_non_short_circuit field. + (arm_v6m_tune): New tune_params struct. + * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. + +2012-11-20 Matthias Klose + + * configure.ac: Substitute `with_cpu'. + * configure: Regenerate. + * Makefile.in: Define `with_cpu'. + * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. + * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME. + * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2 + to the list. + (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS. + * config/rs6000/t-spe: Define MULTIARCH_DIRNAME. + * config.gcc (tmake_file): + Include rs6000/t-linux for 32bit non-biarch configurations. + +2012-11-20 Matthias Klose + + * doc/install.texi: Move multiarch paragraph out of multilib + documentation. + +2012-11-20 Matthias Klose + + * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target. + +2012-11-20 Richard Sandiford + + * stor-layout.c (bit_field_mode_iterator::next_mode): Fix signedness. + +2012-11-20 Vladimir Makarov + + PR rtl-optimization/55396 + * lra-constraints.c (get_reload_reg): Change class if it is + different from reg class. + +2012-11-20 Jakub Jelinek + + * vec.h (class vec_prefix): Change into struct. + Rename field alloc_PRIVATE_ back to alloc_. + Rename field num_PRIVATE_ to num_. + Update all users. + (class vec): Rename field pfx_PRIVATE_ to vecpfx_. + Rename field data_PRIVATE_ to vecdata_. + Update all users. + (class vec): Make every field public. + Rename field vec_PRIVATE_ back to vec_. + Update all users. + +2012-11-20 Richard Sandiford + + PR middle-end/55403 + PR middle-end/55391 + * expmed.c (store_bit_field_1): Use adjust_bitfield_address_size + rather than adjust_bitfield_address to change the mode of a reference. + (extract_bit_field_1): Likewise. + +2012-11-20 Michael Meissner + + * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment + explaining the register ordering preferences. + +2012-11-20 Aldy Hernandez + + PR tree-optimization/55350 + * gimple-ssa-strength-reduction.c (replace_dependent): Handle + POINTER_PLUS_EXPR correctly. + +2012-11-20 Uros Bizjak + + * config/i386/i386.md (fix_trunc_sse): Macroize + insn from fix_trunc{si,di}_sse using SWI48 mode iterator. + (peephole2 to avoid vector decoded forms): Macroize peephole2 + using MODEF mode iterator. Use SWI48 mode iterator instead of SWI48x. + +2012-11-20 Uros Bizjak + + PR target/19398 + * config/i386/i386.md + (peephole2 to shorten x87->SSE reload sequences): Remove peephole2. + * config/i386/i386.h (enum ix86_tune_indices) + : Remove. + (TARGET_SHORTEN_X87_SSE): Remove. + * config/i386/i386.c (initial_ix86_tune_features): Update. + +2012-11-20 Vladimir Makarov + + PR target/19398 + * lra-constraints.c (process_alt_operands): Discourage reloads + through secondary memory. + +2012-11-20 David Edelsohn + + * config/rs6000/rs6000.md (largetoc_low): Revert. + (largetoc_low_aix): New. + +2012-11-20 Diego Novillo + Jakub Jelinek + + * vec.h (struct vnull): Declare. + (vNULL): Declare. + * vec.c (vNULL): Define. + * bb-reorder.c: Replace all vec() initializers with vNULL. + * cfgexpand.c: Likewise. + * cfgloop.c: Likewise. + * cfgloopanal.c: Likewise. + * cfgloopmanip.c: Likewise. + * cgraph.c: Likewise. + * config/c6x/c6x.c: Likewise. + * config/i386/i386.c: Likewise. + * df-core.c: Likewise. + * dominance.c: Likewise. + * dwarf2out.c: Likewise. + * except.c: Likewise. + * function.c: Likewise. + * gcse.c: Likewise. + * genautomata.c: Likewise. + * graphds.c: Likewise. + * graphite-scop-detection.c: Likewise. + * graphite.c: Likewise. + * haifa-sched.c: Likewise. + * ifcvt.c: Likewise. + * ipa-cp.c: Likewise. + * ipa-inline-analysis.c: Likewise. + * ipa-inline-transform.c: Likewise. + * ipa-inline.c: Likewise. + * ipa-prop.c: Likewise. + * ipa-split.c: Likewise. + * ipa-utils.c: Likewise. + * ira-build.c: Likewise. + * lto-cgraph.c: Likewise. + * lto-streamer-in.c: Likewise. + * lto-symtab.c: Likewise. + * opts-global.c: Likewise. + * passes.c: Likewise. + * ree.c: Likewise. + * sched-deps.c: Likewise. + * sel-sched-ir.c: Likewise. + * sel-sched-ir.h: Likewise. + * sel-sched.c: Likewise. + * stor-layout.c: Likewise. + * trans-mem.c: Likewise. + * tree-call-cdce.c: Likewise. + * tree-cfg.c: Likewise. + * tree-data-ref.c: Likewise. + * tree-diagnostic.c: Likewise. + * tree-eh.c: Likewise. + * tree-loop-distribution.c: Likewise. + * tree-predcom.c: Likewise. + * tree-ssa-loop-im.c: Likewise. + * tree-ssa-loop-ivcanon.c: Likewise. + * tree-ssa-loop-manip.c: Likewise. + * tree-ssa-loop-niter.c: Likewise. + * tree-ssa-loop-prefetch.c: Likewise. + * tree-ssa-math-opts.c: Likewise. + * tree-ssa-phiopt.c: Likewise. + * tree-ssa-pre.c: Likewise. + * tree-ssa-propagate.c: Likewise. + * tree-ssa-reassoc.c: Likewise. + * tree-ssa-sccvn.c: Likewise. + * tree-ssa-structalias.c: Likewise. + * tree-ssa-threadedge.c: Likewise. + * tree-ssa-uninit.c: Likewise. + * tree-stdarg.c: Likewise. + * tree-switch-conversion.c: Likewise. + * tree-vect-data-refs.c: Likewise. + * tree-vect-loop.c: Likewise. + * tree-vect-slp.c: Likewise. + * tree-vect-stmts.c: Likewise. + * value-prof.c: Likewise. + * varasm.c: Likewise. + +2012-11-20 Diego Novillo + + * Makefile.in (tlink.o): Add dependency on VEC_H. + +2012-11-20 Diego Novillo + + PR middle-end/55398 + * vec.h (class vec_prefix): Make every field public. + Rename field alloc_ to alloc_PRIVATE_. + Rename field num_ to num_PRIVATE_. + Update all users. + (class vec): Make every field public. + Rename field pfx_ to pfx_PRIVATE_. + Rename field data_ to data_PRIVATE_. + Update all users. + (class vec): Make every field public. + Rename field vec_ to vec_PRIVATE_. + Update all users. + +2012-11-20 Kai Tietz + + PR target/55268 + * i386.c (ix86_mangle_decl_assembler_name): Use + SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME if defined. + * cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Rename + to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME. + +2012-11-20 Uros Bizjak + + * config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode. + +2012-11-20 Nick Clifton + + * config/v850/v850.c (F): New function. Mark the given insn as + being frame related. + (v850_all_frame_related): New function. Mark the given push insn + as being frame related. + (v850_pass_by_reference): When using the RH850 ABI do not pass + arguments by reference. + (v850_strict_argument_naming): Delete function. + (v850_function_arg): Use word alignment with the RH850 ABI. + (v850_arg_partial_bytes): Likewise. + (v850_function_arg_advance): Likewise. + (v850_print_operand): Handle CONST_INT and CONST_DOUBLE. + (compute_register_save_size): Use df_regs_ever_live_p. + (increment_stack): Mark prologue adjustments as being frame related. + (expand_prologue): Handle pretend args. Mark insns generated as + being frame related. + (expand_epilogue): Likewise. + (v850_return_in_memory): When using the RH850 ABI return + aggregates in memory. + (v850_setup_incoming_varargs): Delete function. + (v850_option_override): New function. + (TARGET_DEBUG_UNWIND_INFO): Delete definition. + (TARGET_SETUP_INCOMING_VARARGS): Likewise. + (TARGET_STRICT_ARGUMENT_NAMING): Likewise. + (TARGET_OPTION_OVERRIDE): Define. + * config/v850/v850.h (ASM_SPEC): Pass 8byte-align and gcc-abi + options on to assembler. + (LINK_SPEC): Likewise. + (TARGET_CPU_CPP_BUILTINS): Define __V850_8BYTE_ALIGN__ and + __V850_GCC_ABI__. + (STACK_BOUNDARY): Set to BIGGEST_ALIGNMENT. + (FUNCTION_BOUNDARY): With the RH850 ABI always 32-bit alignment. + (BIGGEST_ALIGNMENT): With -8byte-align set to 64-bits. + (BIGGEST_FIELD_ALIGNMENT): Likewise. + (enum reg_class): Swap EVEN_REGS and GENERAL_REGS. + (REG_CLASS_NAMES): Likewise. + (REG_CLASS_CONTENTS): Likewise. + (struct cum_arg): Delete anonymous_args field. + (INIT_CUMULATIVE_ARGS): Update. + (PREFERRED_DEBUG): Set to DWARF2_DEBUG. + (DWARF2_FRAME_INFO): Define. + (DWARF2_UNWIND_INFO): Define. + (INCOMING_RETURN_ADDR_RTX): Define. + (DWARF_FRAME_RETURN_COLUMN): Define. + (TARGET_USE_FPU): Define. + * config/v850/v850.md: Replace TARGET_V850E2V3 in floating point + insns with TARGET_USE_FPU. + (fixuns_truncsfsi2): New pattern. + (fixuns_truncdfsi2): New pattern. + (fix_truncsfdi2): New pattern. + (fixuns_truncsfdi2): New pattern. + (fix_truncdfdi2): New pattern. + (fixuns_truncdfdi2): New pattern. + (unsfloatsisf2): New pattern. + (unsfloatsidf2): New pattern. + (floatdisf2): New pattern. + (unsfloatdisf2): New pattern. + (floatdidf2): New pattern. + (unsfloatdidf2): New pattern. + (fnmasf4): Fix RTl description. + (fnmssf4): Likewise. + * config/v850/v850.opt (mrelax): New option. + (mlong-jumps): Likewise. + (msoft-float): Likewise. + (mhard-float): Likewise. + (mrh850-abi): Likewise. + (mgcc-abi): Likewise. + (m8byte-align): Likewise. + * config/v850/t-v850 (MULTILIB_OPTIONS): Update multilib options. + (MULTILIB_DIRNAMES): Likewise. + +2012-11-20 Nick Clifton + + * config/rx/rx.c (rx_function_arg_boundary): When using the RX ABI + align stack arguments to their natural alignment. + (rx_narrow_volatile_bitfield): New function. Allows narrow + volatile bitfields. + (rx_ok_to_inline): New function. Do not inline functions with + local variables into a naked caller. + (TARGET_NARROW_VOLATILE_BITFIELD): Define. + (TARGET_CAN_INLINE_P): Define. + * config/rx/rx.c (TARGET_CPU_CPP_BUILTINS): Define __RX_ABI__ or + __RX_GC_ABI__. + (ASM_SPEC): Pass -mgcc-abi on to the assembler. + (STRICT_ALIGNMENT): Set to false. + (CTORS_SECTION_ASM_OP): Add executable attribute. + (DTORS_SECTION_ASM_OP): Add executable attribute. + (INIT_ARRAY_SECTION_ASM_OP): Add executable attribute. + (FINI_ARRAY_SECTION_ASM_OP): Add executable attribute. + * config/rx/rx.md (subdi3): Don't allow MEMs as the third operand, + as it causes too much reload pressure. + * config/rx/rx.opt (mgcc-abi): New option. + (mrx-abi): New option. + * config/rx/t-rx (MULTILIB_OPTIONS): Show how to add an ABI multilib. + (MULTILIB_DIRNAMES): Likewise. + +2012-11-20 James Greenhalgh + Tejas Belagod + + * config/aarch64/aarch64-builtins.c + (aarch64_simd_builtin_type_bits): Rename to... + (aarch64_simd_builtin_type_mode): ...this, make sequential. + (aarch64_simd_builtin_datum): Refactor members. + (VAR1, VAR2, ..., VAR12): Update accordingly. + (aarch64_simd_builtin_data): Include from aarch64-simd-builtins.def. + (aarch64_builtins): Update accordingly. + (init_aarch64_simd_builtins): Refactor, rename to... + (aarch64_init_simd_builtins): ...this. + (aarch64_simd_builtin_compare): Remove. + (locate_simd_builtin_icode): Likewise. + * config/aarch64/aarch64-protos.h (aarch64_init_builtins): New. + (aarch64_expand_builtin): New. + * config/aarch64/aarch64-simd-builtins.def: New file. + * config/aarch64/aarch64.c (aarch64_init_builtins): + Move to aarch64-builtins.c. + (aarch64_expand_builtin): Likewise. + * config/aarch64/aarch64.h + (aarch64_builtins): Move to aarch64-builtins.c. + +2012-11-20 Martin Jambor + + PR tree-optimization/55260 + * ipa-cp.c (find_aggregate_values_for_callers_subset): Rename info to + dest_info, use caller_info instead of info when determining whether + callee is a clone. + +2012-11-20 Andrey Turetskiy + + * config/i386/sse.md (*_pmulhrsw3): Merge + *avx2_pmulhrswv16hi3 and *ssse3_pmulhrswv8hi3 into one pattern. + +2012-11-20 Sofiane Naci + + * config/aarch64/aarch64.md + (define_attr "sync_*"): Remove. + (define_attr "length"): Update. + Include atomics.md. + * config/aarch64/aarch64-protos.h + (aarch64_expand_compare_and_swap): Add function prototype. + (aarch64_split_compare_and_swap): Likewise. + (aarch64_split_atomic_op): Likewise. + (aarch64_expand_sync): Remove function prototype. + (aarch64_output_sync_insn): Likewise. + (aarch64_output_sync_lock_release): Likewise. + (aarch64_sync_loop_insns): Likewise. + (struct aarch64_sync_generator): Remove. + (enum aarch64_sync_generator_tag): Likewise. + * config/aarch64/aarch64.c + (aarch64_legitimize_sync_memory): Remove function. + (aarch64_emit): Likewise. + (aarch64_insn_count): Likewise. + (aarch64_output_asm_insn): Likewise. + (aarch64_load_store_suffix): Likewise. + (aarch64_output_sync_load): Likewise. + (aarch64_output_sync_store): Likewise. + (aarch64_output_op2): Likewise. + (aarch64_output_op3): Likewise. + (aarch64_output_sync_loop): Likewise. + (aarch64_get_sync_operand): Likewise. + (aarch64_process_output_sync_insn): Likewise. + (aarch64_output_sync_insn): Likewise. + (aarch64_output_sync_lock_release): Likewise. + (aarch64_sync_loop_insns): Likewise. + (aarch64_call_generator): Likewise. + (aarch64_expand_sync): Likewise. + (* emit_f): Remove variable. + (aarch64_insn_count): Likewise. + (FETCH_SYNC_OPERAND): Likewise. + (aarch64_emit_load_exclusive): New function. + (aarch64_emit_store_exclusive): Likewise. + (aarch64_emit_unlikely_jump): Likewise. + (aarch64_expand_compare_and_swap): Likewise. + (aarch64_split_compare_and_swap): Likewise. + (aarch64_split_atomic_op): Likewise. + * config/aarch64/iterators.md + (atomic_sfx): New mode attribute. + (atomic_optab): New code attribute. + (atomic_op_operand): Likewise. + (atomic_op_str): Likewise. + (syncop): Rename to atomic_op. + * config/aarch64/sync.md: Delete. + * config/aarch64/atomics.md: New file. + +2012-11-20 Jakub Jelinek + + PR middle-end/55094 + * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note + on the trap insn for !ACCUMULATE_OUTGOING_ARGS. + * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns + on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS + fail if the last real insn doesn't have REG_ARGS_SIZE note. + + PR rtl-optimization/54921 + * cselib.h (fp_setter_insn): New prototype. + * cselib.c (fp_setter_insn): New function. + (cselib_process_insn): If frame_pointer_needed, + call cselib_invalidate_rtx (stack_pointer_rtx) after + processing a frame pointer setter. + * var-tracking.c (fp_setter): Removed. + (vt_initialize): Use fp_setter_insn instead of fp_setter. + +2012-11-19 Michael Meissner + + * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move + constraints so that the traditional floating point loads, stores, + and moves are done first, then the VSX loads, stores, and moves, + and finally the GPR loads, stores, and moves so that reload + chooses FPRs over GPRs, and uses the traditional load/store + instructions which provide an offset. + (movdf_hardfloat64): Likewise. + +2012-11-19 Richard Sandiford + + PR middle-end/55359 + * simplify-rtx.c (simplify_subreg): Return null for invalid offsets. + +2012-11-19 Aldy Hernandez + + * trans-mem.c (execute_tm_mark): Release bb_regions. + +2012-11-19 Aldy Hernandez + + * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks. + (get_bb_regions_instrumented): Add new traverse_clone argument and + use it. + (expand_regions_1): Same. + (expand_region): Same. + (execute_tm_mark): Pass new argument to expand_regions. + (expand_block_edges): Pass new argument to get_bb_regions_instrumented. + +2012-11-19 Sofiane Naci + + * config/aarch64/aarch64.c + (aarch64_output_mi_thunk): Refactor to generate RTL patterns. + +2012-11-19 Mans Rullgard + + PR target/55276 + * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask + for TARGET_ALTIVEC_ABI. Zero vrsave_save_offset if + !TARGET_ALTIVEC_VRSAVE. + (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size + not vrsave_mask. + +2012-11-19 David Edelsohn + + PR bootstrap/55384 + * system.h (vec_free): Undef. + +2012-11-19 Jakub Jelinek + + PR middle-end/54630 + * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static + keyword from ssa_name_hash var. + +2012-11-19 Maxim Kuznetsov + Kirill Yukhin + Michael Zolotukhin + + * doc/md.texi: Document define_subst. + * gensupport.c (MAX_OPERANDS): New define. + (operand_data): New. + (match_operand_entries_in_pattern): New. + (used_operands_numbers): New. + (subst_true): New. + (subst_false): New. + (define_subst_queue): New. + (define_subst_tail): New. + (define_subst_attr_queue): New. + (define_subst_attr_tail): New. + (has_subst_attribute): New. + (subst_pattern_match): New. + (get_alternatives_number): New. + (alter_output_for_subst_insn): New. + (alter_attrs_for_subst_insn): New. + (process_substs_on_one_elem): New. + (subst_dup): New. + (process_define_subst): New. + (duplicate_alternatives): New. + (duplicate_each_alternative): New. + (constraints_handler_t): New typedef. + (alter_constraints): New. + (adjust_operands_numbers): New. + (replace_duplicating_operands_in_pattern): New. + (remove_from_queue): New. + (process_rtx): Handle define_subst and define_subst_attr. + (change_subst_attribute): New. + (alter_predicate_for_insn): Fix formatting. + (alter_attrs_for_insn): Likewise. + (alter_output_for_insn): Likewise. + (mark_operands_from_match_dup): New. + (mark_operands_used_in_match_dup): New. + (find_first_unused_number_of_operand): New. + (renumerate_operands_in_pattern): New. + (generate_match_dup): New. + (check_define_attr_duplicates): New. + (init_rtx_reader_args_cb): Add checking for duplicated attrs and + processing of define_subst. + (read_md_rtx): Handle define_subst. + * read-rtl.c (struct subst_attr_to_iter_mapping): New. + (substs): New global. + (apply_subst_iterator): New. + (bind_subst_iter_and_attr): New. + (find_subst_iter_by_attr): New. + (map_attr_string): Handle subst-iterators. + (add_condition_to_rtx): Handle define_subst. + (apply_iterators): Likewise. + (initialize_iterators): Likewise. + (add_define_attr_for_define_subst): New. + (add_define_subst_attr): New. + (read_subst_mapping): New. + (read_rtx): Handle define_subst_attr. + (read_rtx_code): Add subst-attributes recognition during reading of + strings. + * rtl.def (DEFINE_EXPAND): Add vector of attributes. + (DEFINE_SUBST): New. + (DEFINE_SUBST_ATTR): New. + +2012-11-19 Tom de Vries + + PR rtl-optimization/55315 + + * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a + const is a nonzero address. + +2012-11-18 Sandra Loosemore + + * doc/extend.texi: Use @smallexample consistently. Add @noindent + when continuing a sentence or paragraph past an example. Change + tabs to spaces in examples. + +2012-11-18 Richard Sandiford + + * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m}) + (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document. + (insv, extv, extzv): Deprecate. + * optabs.def (insv_optab, extv_optab, extzv_optab) + (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab): + New optabs. + * optabs.c (get_optab_extraction_insn): New function. + (get_extraction_insn): Use it. + * config/mips/mips.md (extv): Split into... + (extvmisalign, extv): ...these new patterns. Rename + existing extv pattern to... + (*extv): ...this. + (extzv): Split into... + (extzvmisalign, extzv): ...these new patterns. Rename + existing extzv pattern to... + (*extzv): ...this. + (insv): Split into... + (insvmisalign, insv): ...these new patterns. Rename + existing insv pattern to... + (*insv): ...this. Use const_int_operand rather than + immediate_operand. + * config/mips/mips.c (mips_block_move_straight): Use set_mem_size + to set the size of BLKmode accesses. + (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory, + turning it from an "rtx *" to an rtx. + (mips_expand_ext_as_unaligned_load): Simplify for new optab + interface. Update call to mips_get_unaligned_mem. + (mips_expand_ins_as_unaligned_store): Update call to + mips_get_unaligned_mem. + +2012-11-18 Richard Sandiford + + * Makefile.in (recog.o): Add insn-codes.h. + * expr.h (extraction_pattern): Move to optabs.h. + (mode_for_extraction): Delete. + * optabs.h (extraction_insn): New structure. + (extraction_pattern): Moved from expr.h. + (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare. + * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv) + (HAVE_extzv, CODE_FOR_extzv): Provide defaults. + (extraction_type): New enum. + (get_traditional_extraction_insn, get_extraction_insn) + (get_best_reg_extraction_insn, get_best_mem_extraction_insn): + New functions. + * combine.c (make_extraction): Use get_best_reg_extraction_insn + instead of mode_for_extraction. + * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv) + (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv): + Remove fallback definitions. + (mode_for_extraction): Delete. + (adjust_bit_field_mem_for_reg): New function. + (store_bit_field_using_insv): Replace OP_MODE parameter with + an extraction_insn. Pass struct_mode to narrow_bit_field_mem. + (extract_bit_field_using_extv): Likewise EXT_MODE. + (store_bit_field_1): Use get_best_reg_extraction_insn and + get_best_mem_extraction_insn instead of mode_for_extraction. + Use adjust_bit_field_mem_for_reg when forcing memory to a + register and doing a register insertion. Update calls to + store_bit_field_using_insv. + (extract_bit_field_1): Likewise extractions and calls to + extract_bit_field_using_extv. + (store_Bit_field): When narrowing to a bitregion, don't use the + insv mode as a limit. + * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv): + Provide defaults. + (simplify_while_replacing): Use insn_data instead of + mode_for_extraction. + +2012-11-18 Richard Sandiford + + * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): + Set up a default value of bitregion_end_. + (bit_field_mode_iterator::next_mode): Always apply bitregion_end_ + check. Include SLOW_UNALIGNED_ACCESS in the alignment check. + (get_best_mode): Ignore modes that are wider than the alignment. + +2012-11-18 Richard Sandiford + + * machmode.h (bit_field_mode_iterator): New class. + (get_best_mode): Change final parameter to bool. + * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator) + (bit_field_mode_iterator::next_mode): New functions, split out from... + (get_best_mode): ...here. Change final parameter to bool. + Use bit_field_mode_iterator. + +2012-11-18 Richard Sandiford + + * expmed.c (narrow_bit_field_mem): New function. + (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field) + (extract_bit_field_1): Use it. + +2012-11-18 Richard Sandiford + + * expr.h (adjust_address_1): Add a size parameter. + (adjust_address, adjust_address_nv, adjust_bitfield_address) + (adjust_bitfield_address_nv): Adjust accordingly. + (adjust_bitfield_address_size): Define. + * emit-rtl.c (adjust_address_1): Add a size parameter. + Use it to set the size if MODE has no size. Check whether + the size matches before returning the original memref. + Require the size to be known for adjust_object. + (adjust_automodify_address_1, widen_memory_access): Update calls + to adjust_address_1. + +2012-11-18 Richard Sandiford + + * combine.c (make_extraction): Handle TRUNCATEd INNERs. + +2012-11-18 Richard Sandiford + + * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here. + * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs, + using their size instead of the COMPONENT_REF's. + +2012-11-17 Matthias Klose + + * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. + +2012-11-17 Diego Novillo + + VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * vec.c (register_overhead): Convert it into + member function of vec_prefix. + (release_overhead): Likewise. + (calculate_allocation): Likewise. + (vec_heap_free): Remove. + (vec_gc_o_reserve_1): Remove. + (vec_heap_o_reserve_1): Remove. + (vec_stack_o_reserve_1): Remove. + (vec_stack_o_reserve_exact): Remove. + (register_stack_vec): New. + (stack_vec_register_index): New. + (unregister_stack_vec): New. + (vec_assert_fail): Remove. + * vec.h: Conditionally include ggc.h. Document conditional hackery. + Update top-level documentation. + (ALONE_VEC_CHECK_INFO): Remove. + (VEC_CHECK_INFO): Remove. + (ALONE_VEC_CHECK_DECL): Remove. + (VEC_CHECK_DECL): Remove. + (ALONE_VEC_CHECK_PASS): Remove. + (VEC_CHECK_PASS): Remove. + (VEC_ASSERT): Remove. + (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and va_stack. + Mark fields alloc_ and num_ as protected. + (struct vec_t): Remove. Remove all function members. + (struct vl_embed): Declare. + (struct vl_ptr): Declare. + (free): Remove. + (reserve_exact): Remove. + (reserve): Remove. + (safe_splice): Remove. + (safe_push): Remove. + (safe_grow): Remove. + (safe_grow_cleared): Remove. + (safe_insert): Remove. + (DEF_VEC_I): Remove. + (DEF_VEC_ALLOC_I): Remove. + (DEF_VEC_P): Remove. + (DEF_VEC_ALLOC_P): Remove. + (DEF_VEC_O): Remove. + (DEF_VEC_ALLOC_O): Remove. + (DEF_VEC_ALLOC_P_STACK): Remove. + (DEF_VEC_ALLOC_O_STACK): Remove. + (DEF_VEC_ALLOC_I_STACK): Remove. + (DEF_VEC_A): Remove. + (DEF_VEC_ALLOC_A): Remove. + (vec_stack_p_reserve_exact_1): Remove. + (vec_stack_o_reserve): Remove. + (vec_stack_o_reserve_exact): Remove. + (VEC_length): Remove. + (VEC_empty): Remove. + (VEC_address): Remove. + (vec_address): Remove. + (VEC_last): Remove. + (VEC_index): Remove. + (VEC_iterate): Remove. + (VEC_embedded_size): Remove. + (VEC_embedded_init): Remove. + (VEC_free): Remove. + (VEC_copy): Remove. + (VEC_space): Remove. + (VEC_reserve): Remove. + (VEC_reserve_exact): Remove. + (VEC_splice): Remove. + (VEC_safe_splice): Remove. + (VEC_quick_push): Remove. + (VEC_safe_push): Remove. + (VEC_pop): Remove. + (VEC_truncate): Remove. + (VEC_safe_grow): Remove. + (VEC_replace): Remove. + (VEC_quick_insert): Remove. + (VEC_safe_insert): Remove. + (VEC_ordered_remove): Remove. + (VEC_unordered_remove): Remove. + (VEC_block_remove): Remove. + (VEC_lower_bound): Remove. + (VEC_alloc): Remove. + (VEC_qsort): Remove. + + (va_heap): Declare. + (va_heap::default_layout): New typedef to vl_ptr. + (va_heap::reserve): New. + (va_heap::release): New. + (va_gc): Declare. + (va_gc::default_layout): New typedef to vl_embed. + (va_gc::reserve): New. + (va_gc::release): New. + (va_gc_atomic): Declare. Inherit from va_gc. + (va_stack): Declare. + (va_stack::default_layout): New typedef to vl_ptr. + (va_stack::alloc): New. + (va_stack::reserve): New. + (va_stack::release): New. + (register_stack_vec): Declare. + (stack_vec_register_index): Declare. + (unregister_stack_vec): Declare. + + (vec): Declare + empty vec template. + (vec): Partial specialization for embedded + layout. + (vec::allocated): New. + (vec::length): New. + (vec::is_empty): New. + (vec::address): New. + (vec::operator[]): New. + (vec::last New. + (vec::space): New. + (vec::iterate): New. + (vec::iterate): New. + (vec::copy): New. + (vec::splice): New. + (vec::quick_push New. + (vec::pop New. + (vec::truncate): New. + (vec::quick_insert): New. + (vec::ordered_remove): New. + (vec::unordered_remove): New. + (vec::block_remove): New. + (vec::qsort): New. + (vec::lower_bound): New. + (vec::embedded_size): New. + (vec::embedded_init): New. + (vec::quick_grow): New. + (vec::quick_grow_cleared): New. + (vec_safe_space): New. + (vec_safe_length): New. + (vec_safe_address): New. + (vec_safe_is_empty): New. + (vec_safe_reserve): New. + (vec_safe_reserve_exact): New. + (vec_alloc): New. + (vec_free): New. + (vec_safe_grow): New. + (vec_safe_grow_cleared): New. + (vec_safe_iterate): New. + (vec_safe_push): New. + (vec_safe_insert): New. + (vec_safe_truncate): New. + (vec_safe_copy): New. + (vec_safe_splice): New. + + (vec): New partial specialization for the space + efficient layout. + (vec::exists): New. + (vec::is_empty): New. + (vec::length): New. + (vec::address): New. + (vec::operator[]): New. + (vec::operator!=): New. + (vec::operator==): New. + (vec::last): New. + (vec::space): New. + (vec::iterate): New. + (vec::copy): New. + (vec::reserve): New. + (vec::reserve_exact): New. + (vec::splice): New. + (vec::safe_splice): New. + (vec::quick_push): New. + (vec::safe_push): New. + (vec::pop): New. + (vec::truncate): New. + (vec::safe_grow): New. + (vec::safe_grow_cleared): New. + (vec::quick_grow): New. + (vec::quick_grow_cleared): New. + (vec::quick_insert): New. + (vec::safe_insert): New. + (vec::ordered_remove): New. + (vec::unordered_remove): New. + (vec::block_remove): New. + (vec::qsort): New. + (vec::lower_bound): New. + (vec_stack_alloc): Define. + (FOR_EACH_VEC_SAFE_ELT): Define. + * vecir.h: Remove. Update all users. + * vecprim.h: Remove. Update all users. + Move uchar to coretypes.h. + + * Makefile.in (VEC_H): Add $(GGC_H). + Remove vecir.h and vecprim.h dependencies everywhere. + +2012-11-16 Diego Novillo + + * gengtype-lex.l (VEC): Remove. + Add characters in the set [\!\>\.-]. + * gengtype-parse.c (token_names): Remove "VEC". + (require_template_declaration): Remove handling of VEC_TOKEN. + (type): Likewise. + Call create_user_defined_type when parsing GTY((user)). + * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED. + (write_state_undefined_type): New. + (write_state_type): Call write_state_undefined_type for TYPE_UNDEFINED. + (read_state_type): Call read_state_undefined_type for TYPE_UNDEFINED. + * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED. + (create_user_defined_type): Make extern. + (type_for_name): Factor out of resolve_typedef. + (create_undefined_type): New + (resolve_typedef): Call it when we cannot find a previous + typedef and the type is not a template. + (find_structure): Accept TYPE_UNDEFINED. + (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES, + default to false. + Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or + ALLOWED_UNDEFINED_TYPES is set. + Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT. + (filter_type_name): Accept templates with more than one argument. + (output_mangled_typename): Handle TYPE_UNDEFINED + (walk_type): Likewise. + (write_types_process_field): Likewise. + (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S + should not be a user-defined type. + (write_types_local_user_process_field): Handle TYPE_ARRAY, + TYPE_NONE and TYPE_UNDEFINED. + (write_types_local_process_field): Likewise. + (contains_scalar_p): Return 0 for TYPE_USER_STRUCT. + (write_root): Reject user-defined types that are not pointers. + Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT + and TYPE_PARAM_STRUCT. + (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and TYPE_ARRAY. + (dump_typekind): Handle TYPE_UNDEFINED. + * gengtype.h (enum typekind): Add TYPE_UNDEFINED. + (create_user_defined_type): Declare. + (enum gty_token): Remove VEC_TOKEN. + +2012-11-16 Diego Novillo + + Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * coretypes.h (uchar): Define. + * alias.c: Use new vec API in vec.h. + * asan.c: Likewise. + * attribs.c: Likewise. + * basic-block.h: Likewise. + * bb-reorder.c: Likewise. + * builtins.c: Likewise. + * calls.c: Likewise. + * cfg.c: Likewise. + * cfganal.c: Likewise. + * cfgcleanup.c: Likewise. + * cfgexpand.c: Likewise. + * cfghooks.c: Likewise. + * cfghooks.h: Likewise. + * cfgloop.c: Likewise. + * cfgloop.h: Likewise. + * cfgloopanal.c: Likewise. + * cfgloopmanip.c: Likewise. + * cfgrtl.c: Likewise. + * cgraph.c: Likewise. + * cgraph.h: Likewise. + * cgraphclones.c: Likewise. + * cgraphunit.c: Likewise. + * combine.c: Likewise. + * compare-elim.c: Likewise. + * coverage.c: Likewise. + * cprop.c: Likewise. + * data-streamer.h: Likewise. + * dbxout.c: Likewise. + * dce.c: Likewise. + * df-core.c: Likewise. + * df-problems.c: Likewise. + * df-scan.c: Likewise. + * dominance.c: Likewise. + * domwalk.c: Likewise. + * domwalk.h: Likewise. + * dse.c: Likewise. + * dwarf2cfi.c: Likewise. + * dwarf2out.c: Likewise. + * dwarf2out.h: Likewise. + * emit-rtl.c: Likewise. + * except.c: Likewise. + * except.h: Likewise. + * expr.c: Likewise. + * expr.h: Likewise. + * final.c: Likewise. + * fold-const.c: Likewise. + * function.c: Likewise. + * function.h: Likewise. + * fwprop.c: Likewise. + * gcc.c: Likewise. + * gcse.c: Likewise. + * genattr.c: Likewise. + * genattrtab.c: Likewise. + * genautomata.c: Likewise. + * genextract.c: Likewise. + * genopinit.c: Likewise + * ggc-common.c: Likewise. + * ggc.h: Likewise. + * gimple-low.c: Likewise. + * gimple-ssa-strength-reduction.c: Likewise. + * gimple-streamer-in.c: Likewise. + * gimple.c: Likewise. + * gimple.h: Likewise. + * gimplify.c: Likewise. + * graph.c: Likewise. + * graphds.c: Likewise. + * graphds.h: Likewise. + * graphite-blocking.c: Likewise. + * graphite-clast-to-gimple.c: Likewise. + * graphite-dependences.c: Likewise. + * graphite-interchange.c: Likewise. + * graphite-optimize-isl.c: Likewise. + * graphite-poly.c: Likewise. + * graphite-poly.h: Likewise. + * graphite-scop-detection.c: Likewise. + * graphite-scop-detection.h: Likewise. + * graphite-sese-to-poly.c: Likewise. + * graphite.c: Likewise. + * godump.c: Likewise. + * haifa-sched.c: Likewise. + * hw-doloop.c: Likewise. + * hw-doloop.h: Likewise. + * ifcvt.c: Likewise. + * insn-addr.h: Likewise. + * ipa-cp.c: Likewise. + * ipa-inline-analysis.c: Likewise. + * ipa-inline-transform.c: Likewise. + * ipa-inline.c: Likewise. + * ipa-inline.h: Likewise. + * ipa-prop.c: Likewise. + * ipa-prop.h: Likewise. + * ipa-pure-const.c: Likewise. + * ipa-ref-inline.h: Likewise. + * ipa-ref.c: Likewise. + * ipa-ref.h: Likewise. + * ipa-reference.c: Likewise. + * ipa-split.c: Likewise. + * ipa-utils.c: Likewise. + * ipa-utils.h: Likewise. + * ipa.c: Likewise. + * ira-build.c: Likewise. + * ira-color.c: Likewise. + * ira-emit.c: Likewise. + * ira-int.h: Likewise. + * ira.c: Likewise. + * loop-invariant.c: Likewise. + * loop-unroll.c: Likewise. + * lower-subreg.c: Likewise. + * lra-lives.c: Likewise. + * lra.c: Likewise. + * lto-cgraph.c: Likewise. + * lto-section-out.c: Likewise. + * lto-streamer-in.c: Likewise. + * lto-streamer-out.c: Likewise. + * lto-streamer.h: Likewise. + * lto-symtab.c: Likewise. + * mcf.c: Likewise. + * modulo-sched.c: Likewise. + * omp-low.c: Likewise. + * opts-common.c: Likewise. + * opts-global.c: Likewise. + * opts.c: Likewise. + * opts.h: Likewise. + * passes.c: Likewise. + * predict.c: Likewise. + * print-tree.c: Likewise. + * profile.c: Likewise. + * profile.h: Likewise. + * read-rtl.c: Likewise. + * ree.c: Likewise. + * reg-stack.c: Likewise. + * regrename.c: Likewise. + * regrename.h: Likewise. + * reload.c: Likewise. + * reload.h: Likewise. + * reload1.c: Likewise. + * rtl.h: Likewise. + * sched-deps.c: Likewise. + * sched-int.h: Likewise. + * sdbout.c: Likewise. + * sel-sched-dump.c: Likewise. + * sel-sched-ir.c: Likewise. + * sel-sched-ir.h: Likewise. + * sel-sched.c: Likewise. + * sese.c: Likewise. + * sese.h: Likewise. + * statistics.h: Likewise. + * stmt.c: Likewise. + * stor-layout.c: Likewise. + * store-motion.c: Likewise. + * tlink.c: Likewise. + * toplev.c: Likewise. + * trans-mem.c: Likewise. + * tree-browser.c: Likewise. + * tree-call-cdce.c: Likewise. + * tree-cfg.c: Likewise. + * tree-cfgcleanup.c: Likewise. + * tree-chrec.c: Likewise. + * tree-chrec.h: Likewise. + * tree-complex.c: Likewise. + * tree-data-ref.c: Likewise. + * tree-data-ref.h: Likewise. + * tree-dfa.c: Likewise. + * tree-diagnostic.c: Likewise. + * tree-dump.c: Likewise. + * tree-eh.c: Likewise. + * tree-emutls.c: Likewise. + * tree-flow.h: Likewise. + * tree-if-conv.c: Likewise. + * tree-inline.c: Likewise. + * tree-inline.h: Likewise. + * tree-into-ssa.c: Likewise. + * tree-iterator.c: Likewise. + * tree-loop-distribution.c: Likewise. + * tree-mudflap.c: Likewise. + * tree-optimize.c: Likewise. + * tree-outof-ssa.c: Likewise. + * tree-parloops.c: Likewise. + * tree-phinodes.c: Likewise. + * tree-predcom.c: Likewise. + * tree-pretty-print.c: Likewise. + * tree-scalar-evolution.c: Likewise. + * tree-sra.c: Likewise. + * tree-ssa-address.c: Likewise. + * tree-ssa-alias.c: Likewise. + * tree-ssa-ccp.c: Likewise. + * tree-ssa-coalesce.c: Likewise. + * tree-ssa-dce.c: Likewise. + * tree-ssa-dom.c: Likewise. + * tree-ssa-forwprop.c: Likewise. + * tree-ssa-live.c: Likewise. + * tree-ssa-live.h: Likewise. + * tree-ssa-loop-im.c: Likewise. + * tree-ssa-loop-ivcanon.c: Likewise. + * tree-ssa-loop-ivopts.c: Likewise. + * tree-ssa-loop-manip.c: Likewise. + * tree-ssa-loop-niter.c: Likewise. + * tree-ssa-loop-prefetch.c: Likewise. + * tree-ssa-math-opts.c: Likewise. + * tree-ssa-operands.c: Likewise. + * tree-ssa-phiopt.c: Likewise. + * tree-ssa-phiprop.c: Likewise. + * tree-ssa-pre.c: Likewise. + * tree-ssa-propagate.c: Likewise. + * tree-ssa-reassoc.c: Likewise. + * tree-ssa-sccvn.c: Likewise. + * tree-ssa-sccvn.h: Likewise. + * tree-ssa-strlen.c: Likewise. + * tree-ssa-structalias.c: Likewise. + * tree-ssa-tail-merge.c: Likewise. + * tree-ssa-threadedge.c: Likewise. + * tree-ssa-threadupdate.c: Likewise. + * tree-ssa-uncprop.c: Likewise. + * tree-ssa-uninit.c: Likewise. + * tree-ssa.c: Likewise. + * tree-ssanames.c: Likewise. + * tree-stdarg.c: Likewise. + * tree-streamer-in.c: Likewise. + * tree-streamer-out.c: Likewise. + * tree-streamer.c: Likewise. + * tree-streamer.h: Likewise. + * tree-switch-conversion.c: Likewise. + * tree-vect-data-refs.c: Likewise. + * tree-vect-generic.c: Likewise. + * tree-vect-loop-manip.c: Likewise. + * tree-vect-loop.c: Likewise. + * tree-vect-patterns.c: Likewise. + * tree-vect-slp.c: Likewise. + * tree-vect-stmts.c: Likewise. + * tree-vectorizer.c: Likewise. + * tree-vectorizer.h: Likewise. + * tree-vrp.c: Likewise. + * tree.c: Likewise. + * tree.h: Likewise. + * value-prof.c: Likewise. + * value-prof.h: Likewise. + * var-tracking.c: Likewise. + * varasm.c: Likewise. + * varpool.c: Likewise. + * vmsdbgout.c: Likewise. + * config/bfin/bfin.c: Likewise. + * config/c6x/c6x.c: Likewise. + * config/darwin.c: Likewise. + * config/i386/i386.c: Likewise. + * config/ia64/ia64.c: Likewise. + * config/mep/mep.c: Likewise. + * config/mips/mips.c: Likewise. + * config/pa/pa.c: Likewise. + * config/rs6000/rs6000-c.c: Likewise. + * config/rs6000/rs6000.c: Likewise. + * config/rx/rx.c: Likewise. + * config/spu/spu-c.c: Likewise. + * config/vms/vms.c: Likewise. + * config/vxworks.c: Likewise. + * config/epiphany/resolve-sw-modes.c: Likewise. + +2012-11-17 Jakub Jelinek + + PR tree-optimization/55236 + * fold-const.c (make_range_step) : For -fwrapv + and signed ARG0_TYPE, force low and high to be non-NULL. + +2012-11-17 H.J. Lu + + * common.opt (static-libasan): New option. + * gcc.c (LIBASAN_SPEC): New macro. + (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC. + * doc/invoke.texi: Document -static-libasan. + +2012-11-17 Vladimir Makarov + + PR rtl-optimization/55342 + * lra-assigns.c (spill_for): Try to allocate other reload pseudos + before and after spilling. + +2012-11-16 Sandra Loosemore + + * doc/extend.texi: Various copy-edits to comply with GCC coding + standards for spelling, terminology, and markup, including use of + American spelling, correct use of terms like "back end" and + "run time", use correct name for GCC, use "@:" markup. + +2012-11-16 Jakub Jelinek + + PR tree-optimization/55329 + * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear + bits in needed_eh_cleanup while iterating over the bitmap. + Look through all forwarder blocks at once. + +2012-11-16 Jan Hubicka + + * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce + to 100. + +2012-11-16 Simon Baldwin + + * doc/cppopts.texi: Document -f[no-]canonical-system-headers. + * doc/install.texi: Document --enable-canonical-system-headers. + +2012-11-16 Vladimir Makarov + + PR rtl-optimization/55330 + * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro. + (lra_inheritance, lra_undo_inheritance): Use it to limit number of + the passes. + +2012-11-16 Matthias Klose + + * config/pa/t-linux: New file; define MULTIARCH_DIRNAME. + * config.gcc (tmake_file): + Include pa/t-linux. + +2012-11-16 Jakub Jelinek + + PR target/54073 + * config/i386/i386.md (movcc): Use comparison_operator + instead of ordered_comparison_operator resp. + ix86_fp_comparison_operator predicates. + * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode + or for -m32 DImode comparisons. + +2012-11-16 Jan Hubicka + + PR tree-optimization/54717 + * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges + with ANTIC_IN. + +2012-11-16 Uros Bizjak + + * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument. + * config/i386/i386.h (EMIT_MODE_SET): Update. + * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function. + (ix86_emit_mode_set) : Call ix86_avx_emit_vzeroupper. + +2012-11-16 Ganesh Gopalasubramanian + + bdver3 Enablement + * doc/extend.texi: Add details about bdver3. + * doc/invoke.texi: Add details about bdver3. + * config.gcc (i[34567]86-*-linux* | ...): Add bdver3. + (case ${target}): Add bdver3. + * config/i386/i386.h (TARGET_BDVER3): New definition. + * config/i386/i386.md (define_attr "cpu"): Add bdver3. + * config/i386/sse.md (sseshuf, sseshuf1): New type attributes. + * config/i386/athlon.md: Handle sseshuf attribute. + * config/i386/atom.md: Likewise. + * config/i386/ppro.md: Likewise. + * config/i386/bdver1.md: Likewise. + * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3. + * config/i386/i386-c.c (ix86_target_macros_internal): Add + bdver3 def_and_undef + * config/i386/driver-i386.c (host_detect_local_cpu): Let + -march=native recognize bdver3 processors. + * config/i386/i386.c (struct processor_costs bdver3_cost): New. + (m_BDVER3): New definition. + (m_AMD_MULTIPLE): Includes m_BDVER3. + (initial_ix86_tune_features): Add bdver3 tune. + (processor_target_table): Add bdver3 entry. + (static const char *const cpu_names): Add bdver3 entry. + (software_prefetching_beneficial_p): Add bdver3. + (ix86_option_override_internal): Add bdver3 instruction sets. + (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2. + (ix86_issue_rate): Add bdver3. + (ix86_adjust_cost): Add bdver3. + (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3. + (enum processor_type): Add PROCESSOR_BDVER3. + * config/i386/bdver3.md: New file describing bdver3 pipelines. + +2012-11-15 David S. Miller + + * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs. + + * configure.ac: Add check for assembler SPARC4 instruction support. + * configure: Rebuild. + * config.in: Add HAVE_AS_SPARC4 section. + * config/sparc/sparc.opt (mcbcond): New option. + * doc/invoke.texi: Document it. + * config/sparc/constraints.md: New constraint 'A' for 5-bit signed + immediates. + * doc/md.texi: Document it. + * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND. + (sparc_option_override): Likewise. + (emit_cbcond_insn): New function. + (emit_conditional_branch_insn): Call it. + (emit_cbcond_nop): New function. + (output_ubranch): Use cbcond, remove label arg. + (output_cbcond): New function. + * config/sparc/sparc-protos.h (output_ubranch): Update. + (output_cbcond): Declare it. + (emit_cbcond_nop): Likewise. + * config/sparc/sparc.md (type attribute): New types 'cbcond' + and uncond_cbcond. + (emit_cbcond_nop): New attribute. + (length attribute): Handle cbcond and uncond_cbcond. + (in_call_delay attribute): Reject cbcond and uncond_cbcond. + (in_branch_delay attribute): Likewise. + (in_uncond_branch_delay attribute): Likewise. + (in_annul_branch_delay attribute): Likewise. + (*cbcond_sp32, *cbcond_sp64): New insn patterns. + (jump): Rewrite into an expander. + (*jump_ubranch, *jump_cbcond): New patterns. + * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'. + * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it + when target default is niagara4. + (SPARC_SIMM5_P): Define. + * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust. + (AS_SPARC32_FLAG): Define. + (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use + AS_NIAGARA4_FLAG as needed. + +2012-11-15 Steve Ellcey + + * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp. + +2012-11-15 Tom de Vries + + PR tree-optimization/54619 + * tree-ssa-loop-ivopts.c (get_use_type): New function. + (get_computation_at): Use get_use_type. + (get_computation_cost_at): Declare and set mem_mode. Use mem_mode. + +2012-11-15 Jakub Jelinek + + * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch + DECL_ASSEMBLER_NAME. + (asan_init_func): Likewise. + (asan_finish_file): Use void * instead of __asan_global * as type of + __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls. + +2012-11-15 Matthias Klose + + * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature. + +2012-11-14 Jan Hubicka + + PR bootstrap/55051 + * gcov-io.c (gcov_read_summary): Fix array bound check. + +2012-11-14 Sterling Augustine + + PR debug/55328 + * dwarf2out.c (index_address_table_entry): Check a node's refcount. + +2012-11-14 Jan Hubicka + + PR bootstrap/55051 + * ipa-inline.c (edge_badness): Improve dumping; fix overflow. + +2012-11-14 Matthias Klose + + * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES. + * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME. + * config.gcc (tmake_file): Include sparc/t-linux + for 32bit non-biarch configurations. + +2012-11-14 Matthias Klose + + * doc/invoke.texi: Document -print-multiarch. + * doc/install.texi: Document --enable-multiarch. + * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME. + * configure.ac: Add --enable-multiarch option. + * configure: Regenerate. + * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib. + enable_multiarch, with_float: New macros. + if_multiarch: New macro, define in terms of enable_multiarch. + * genmultilib: Add new argument for the multiarch name. + * gcc.c (multiarch_dir): Define. + (for_each_path): Search for multiarch suffixes. + (driver_handle_option): Handle multiarch option. + (do_spec_1): Pass -imultiarch if defined. + (main): Print multiarch. + (set_multilib_dir): Separate multilib and multiarch names + from multilib_select. + (print_multilib_info): Ignore multiarch names in multilib_select. + * incpath.c (add_standard_paths): Search the multiarch include dirs. + * cppdefault.h (default_include): Document multiarch in multilib + member. + * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an + include directory for multiarch directories. + * common.opt: New options --print-multiarch and -imultilib. + * config.gcc (tmake_file): + Include i386/t-linux. + (tmake_file): + Include i386/t-kfreebsd. + (tmake_file): Include i386/t-gnu. + * config/i386/t-linux64: Add multiarch names in + MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME. + * config/i386/t-gnu: New file. + * config/i386/t-kfreebsd: Likewise. + * config/i386/t-linux: Likewise. + +2012-11-14 Jan Hubicka + + * tree.c (set_call_expr_flags): New function. + (local_define_builtin): Use it. + * tree.h (set_call_expr_flags): Declare. + +2012-11-14 Uros Bizjak + Vladimir Yakovlev + + PR target/47440 + * config/i386/i386.c (gate_insert_vzeroupper): New function. + (rest_of_handle_insert_vzeroupper): Ditto. + (struct rtl_opt_pass pass_insert_vzeroupper): New. + (ix86_option_override): Register vzeroupper insertion pass here. + (ix86_check_avx256_register): Handle SUBREGs properly. + (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128] + initialization. + +2012-11-14 David Edelsohn + + * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test. + * configure: Regenerated. + * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if + other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC + and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means + CMODEL_LARGE on AIX. + (ASM_SPEC): -mvsx implies -mpwr6. Add -many. + (ASM_DEFAULT_SPEC): Use -mpwr4. + (TARGET_CMODEL): Define. + (SET_CMODEL): Define. + * config/rs6000/rs6000.md (largetoc_high_aix): New. + (largetoc_high_plus_aix): New. + (largetoc_low): Change to mode iterator. Test TARGET_TOC + instead of TARGET_ELF. + (tocref): Remove TARGET_ELF test. + * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC + symbols on AIX. + * config/rs6000/aix64.opt (mcmodel): New. + +2012-11-14 Andreas Tobler + + * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard + variables with ASM_OUTPUT_TYPE_DIRECTIVE and + HAVE_GNU_INDIRECT_FUNCTION where needed. + +2012-11-13 Ian Lance Taylor + + * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such + that any of these options disables the others. + +2012-11-13 Sriraman Tallam + + * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node + instead of cgraph_get_create_node. + * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move + ifunc not supported code to the end. + +2012-11-13 Martin Jambor + + PR tree-optimization/55253 + * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable + flag. + +2012-11-13 Eric Botcazou + H.J. Lu + + PR middle-end/55142 + * config/i386/i386.c (legitimize_pic_address): Properly handle + REG + CONST. + (ix86_print_operand_address): Set code to 'k' when forcing + addr32 prefix. For x32, zero-extend negative displacement if + it < -16*1024*1024. + +2012-11-13 Uros Bizjak + + PR target/41993 + * mode-switching.c (create_pre_exit): Set return_copy to last_insn if + copy_start is not a function return regno. Skip debug instructions + in instruction scan loop. + +2012-11-13 Andrew Stubbs + Ulrich Weigand + + * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment. + * config/arm/arm.md (opt, opt_enabled): New attributes. + (enabled): Use opt_enabled. + (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case. + (ashldi3): Allow general operands for TARGET_NEON case. + * config/arm/iterators.md (rshifts): New code iterator. + (shift, shifttype): New code attributes. + * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type. + (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon, + signed_shift_di3_neon, unsigned_shift_di3_neon, + ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber, + di3_neon): New patterns. + +2012-11-13 Jakub Jelinek + + * Makefile.in (asan.o): Depend on $(TM_P_H). + + PR tree-optimization/55281 + * tree-vect-generic.c (expand_vector_condition): Accept any + is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P. + * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is + either integer_all_onesp or integer_zerop. + * tree-vect-stmts.c (vectorizable_condition): Build the condition + using corresponding vector integer type instead of vectype. + + PR rtl-optimization/54127 + * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting + asm goto labels from BB_HEAD (e->dest) to target bb, decrement + LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of + BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or + REG_LABEL_TARGET and REG_LABEL_OPERAND. + +2012-11-12 Jakub Jelinek + + * asan.c (instrument_builtin_call) : Fix up + dest assignment. + +2012-11-13 Hans-Peter Nilsson + + PR target/55257 + * config/cris/cris.c (cris_asm_output_mi_thunk): Call + final_start_function and final_end_function. + +2012-11-12 David Edelsohn + + * asan.c: Include tm_p.h. + +2012-11-12 John David Anglin + + PR target/55195 + * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types. + (in_branch_delay): Don't allow sibcall or sh_func_adrs insns. + (in_nullified_branch_delay): Likewise. + (in_call_delay): Likewise. + Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for + new types. Add opaque cond to mark all calls, sibcalls, dyncalls and + the $$sh_func_adrs call as variable. Update type of sibcalls and + $$sh_func_adrs call. + * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated + length instead of adjustment. Handle negative and undefined call + adjustments for insn_default_length. Remove adjustment for millicode + insn with unfilled delay slot. + (pa_output_millicode_call): Update for revised millicode length. + * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH. + +2012-11-12 Eric Botcazou + + * tree-ssa-ccp.c (dump_lattice_value) : Fix duplication. + +2012-11-12 Eric Botcazou + + * common.opt (fvar-tracking-uninit): Document. + * toplev.c (process_options): Fix handling of flag_var_tracking_uninit. + * config/darwin.c (darwin_override_options): Likewise. + +2012-11-12 Steven Bosscher + + * sched-vis.c (print_pattern): Handle NULL patterns. + +2012-11-12 Steven Bosscher + Jakub Jelinek + + PR rtl-optimization/51447 + * df-scan.c (df_get_entry_block_def_set): Add global regs to the set. + * df-problems.c (df_lr_local_compute): Make global regs always live. + * dce.c (deletable_insn_p): Make insns setting a global reg + inherently necessary. + +2012-11-12 Ian Bolton + + * config/aarch64/aarch64.md (cmov_insn): Emit CSINC when + one of the alternatives is constant 1. + * config/aarch64/constraints.md: New constraint. + * config/aarch64/predicates.md: Rename predicate + aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1. + +2012-11-12 Ian Bolton + + * config/aarch64/aarch64.md (*compare_neg): New pattern. + +2012-11-12 Tobias Burnus + + * doc/invoke.texi: Move -faddress-sanitizer from Optimization + Options to Debugging Options. + +2012-11-12 Jakub Jelinek + + * asan.c: Formatting cleanups. + +2012-11-12 Wei Mi + + * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if + -faddress-sanitizer is on. + +2012-11-12 Dodji Seketeli + + * gimple.h (is_gimple_builtin_call): Declare ... + * gimple.c (is_gimple_builtin_call): ... new public function. + * asan.c (insert_if_then_before_iter, instrument_mem_region_access, + instrument_strlen_call, maybe_instrument_builtin_call, + instrument_call): New static functions. + (create_cond_insert_point): Renamed + create_cond_insert_point_before_iter into this. Add a new + parameter to decide whether to insert the condition before or + after the statement iterator. + (build_check_stmt): Adjust for the new create_cond_insert_point. + Add a new parameter to decide whether to add the instrumentation + code before or after the statement iterator. + (instrument_assignment): Factorize from ... + (transform_statements): ... here. Use maybe_instrument_call to + instrument builtin function calls as well. + (instrument_derefs): Adjust for the new parameter of + build_check_stmt. Fix detection of bit-field access. + +2012-11-12 Dodji Seketeli + + * asan.c (create_cond_insert_point_before_iter): Factorize out of ... + (build_check_stmt): ... here. + +2012-11-12 Dodji Seketeli + + * asan.c (create_cond_insert_point_before_iter): Factorize out of ... + (build_check_stmt): ... here. + +2012-11-12 Dodji Seketeli + + * asan.c (build_check_stmt): Accept the memory access to be + represented by an SSA_NAME. + +2012-11-12 Jakub Jelinek + Wei Mi + + * varasm.c: Include asan.h. + (assemble_noswitch_variable): Grow size by asan_red_zone_size + if decl is asan protected. + (place_block_symbol): Likewise. + (assemble_variable): If decl is asan protected, increase + DECL_ALIGN if needed, and for decls emitted using + assemble_variable_contents append padding zeros after it. + * Makefile.in (varasm.o): Depend on asan.h. + * asan.c: Include output.h. + (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables. + (asan_pp_initialize, asan_pp_string): New functions. + (asan_emit_stack_protection): Use asan_pp{,_initialized} + instead of local pp{,_initialized} vars, use asan_pp_initialize + and asan_pp_string helpers. + (asan_needs_local_alias, asan_protect_global, + asan_global_struct, asan_add_global): New functions. + (asan_finish_file): Protect global vars that can be protected. Use + asan_ctor_statements instead of ctor_statements + * asan.h (asan_protect_global): New prototype. + (asan_red_zone_size): New inline function. + +2012-11-12 Jakub Jelinek + + * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H). + (cfgexpand.o): Depend on asan.h. + * asan.c: Include expr.h and optabs.h. + (asan_shadow_set): New variable. + (asan_shadow_cst, asan_emit_stack_protection): New functions. + (asan_init_shadow_ptr_types): Initialize also asan_shadow_set. + * cfgexpand.c: Include asan.h. Define HOST_WIDE_INT heap vector. + (partition_stack_vars): If i is large alignment and j small + alignment or vice versa, break out of the loop instead of continue, + and put the test earlier. If flag_asan, break out of the loop + if for small alignment size is different. + (struct stack_vars_data): New type. + (expand_stack_vars): Add DATA argument. Change PRED type to + function taking size_t argument instead of tree. Adjust pred + calls. Fill DATA in and add needed padding in between variables + if -faddress-sanitizer. + (defer_stack_allocation): Defer everything for flag_asan. + (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take + size_t index into stack_vars array instead of the decl directly. + (asan_decl_phase_3): New function. + (expand_used_vars): Return var destruction sequence. Adjust + expand_stack_vars calls, add another one for flag_asan. Call + asan_emit_stack_protection if expand_stack_vars added anything + to the vectors. + (expand_gimple_basic_block): Add disable_tail_calls argument. + (gimple_expand_cfg): Pass true to it if expand_used_vars returned + non-NULL. Emit the sequence returned by expand_used_vars after + return_label. + * asan.h (asan_emit_stack_protection): New prototype. + (asan_shadow_set): New decl. + (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE, + ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define. + (asan_protect_stack_decl): New inline. + * toplev.c (process_options): Also disable -faddress-sanitizer on + !FRAME_GROWS_DOWNWARDS targets. + +2012-11-12 Jakub Jelinek + + * asan.c (build_check_stmt): Rename join_bb variable to else_bb. + (gate_asan_O0): New function. + (pass_asan_O0): New variable. + * passes.c (init_optimization_passes): Add pass_asan_O0. + * tree-pass.h (pass_asan_O0): New declaration. + +2012-11-12 Jakub Jelinek + Xinliang David Li + Dodji Seketeli + + * Makefile.in (GTFILES): Add $(srcdir)/asan.c. + (asan.o): Update the dependencies of asan.o. + * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h + function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h, + langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but + included headers. + (shadow_ptr_types): New variable. + (report_error_func): Change is_store argument to bool, don't append + newline to function name. + (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define. + (build_check_stmt): Change is_store argument to bool. Emit GIMPLE + directly instead of creating trees and gimplifying them. Mark + the error reporting function as very unlikely. + (instrument_derefs): Change is_store argument to bool. Use + int_size_in_bytes to compute size_in_bytes, simplify size check. + Use build_fold_addr_expr instead of build_addr. + (transform_statements): Adjust instrument_derefs caller. + Use gimple_assign_single_p as stmt test. Don't look at MEM refs + in rhs2. + (asan_init_shadow_ptr_types): New function. + (asan_instrument): Don't push/pop gimplify context. + Call asan_init_shadow_ptr_types if not yet initialized. + * asan.h (ASAN_SHADOW_SHIFT): Adjust comment. + +2012-11-12 Jakub Jelinek + + * toplev.c (process_options): Warn and turn off + -faddress-sanitizer if not supported by target. + * asan.c: Include target.h. + (asan_scale, asan_offset_log_32, asan_offset_log_64, + asan_offset_log): Removed. + (build_check_stmt): Use ASAN_SHADOW_SHIFT and + targetm.asan_shadow_offset (). + (asan_instrument): Don't initialize asan_offset_log. + * asan.h (ASAN_SHADOW_SHIFT): Define. + * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook. + * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it. + * doc/tm.texi: Regenerated. + * Makefile.in (asan.o): Depend on $(TARGET_H). + * config/i386/i386.c (ix86_asan_shadow_offset): New function. + (TARGET_ASAN_SHADOW_OFFSET): Define. + +2012-11-12 Wei Mi + Diego Novillo + Dodji Seketeli + + * Makefile.in: Add asan.c and its dependencies. + * common.opt: Add -faddress-sanitizer option. + * doc/invoke.texi: Document the new flag. + * passes.c: Add the asan pass. + * toplev.c (compile_file): Call asan_finish_file. + * asan.c: New file. + * asan.h: New file. + * tree-pass.h: Declare pass_asan. + +2012-11-12 Tobias Burnus + + * diagnostic.c (diagnostic_append_note): Also call va_end when + inhibit_notes_p is true. + +2012-11-12 Bin Cheng + + * gcse.c (struct bb_data): Add new fields, old_pressure, live_in + and backup. + (get_regno_pressure_class): Add prototype. + (update_bb_reg_pressure): New. + (should_hoist_expr_to_dom): Add new parameter from. + Monitor the change of reg pressure and use it to drive hoisting. + (hoist_code): Update LIVE and reg pressure information. + (calculate_bb_reg_pressure): Initialize live_in and backup. + +2012-11-12 Oleg Endo + + * doc/md.texi (Standard Pattern Names For Generation): Fix swapped + sine and cosine operands in the sincos description. + +2012-11-12 Oleg Endo + + PR target/53512 + * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands. + +2012-11-11 H.J. Lu + + * config/i386/i386.md (*movti_internal_rex64): Remove "!" from + riF->o alternative. + +2012-11-11 Eric Botcazou + + * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak. + * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto. + +2012-11-11 Eric Botcazou + H.J. Lu + + PR rtl-optimization/55247 + PR middle-end/55259 + * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0, + handle ZERO_EXTEND. + * recog.c (offsettable_address_addr_space_p): Likewise. + +2012-11-11 Steven Bosscher + + PR middle-end/55263 + * postreload.c (rest_of_handle_postreload): With non-call exceptions, + if edges are purged call cleanup_cfg to remove unreachable blocks. + +2012-11-11 Sandra Loosemore + + * doc/extend.texi: Copy-edit to use "built-in function" instead + of "builtin", per GCC coding standards. Also use consistent + capitalization in titles of sections describing built-in functions. + +2012-11-11 Martin Jambor + + PR tree-optimization/55238 + * ipa-cp.c (agg_pass_through_permissible_p): New function. + (propagate_aggs_accross_jump_function): Use it. + (find_aggregate_values_for_callers_subset): Likewise and relax an + assert. + +2012-11-10 Uros Bizjak + + PR target/47440 + * config/i386/i386.c (check_avx256_stores): Remove. + (ix86_check_avx256_register): New. + (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register. + Check the whole RTX for 256bit registers using for_each_rtx. + (ix86_check_avx_stores): New. + (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN + if there are no 256bit registers used in the function return register. + (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register. + (ix86_avx_u128_mode_exit): Ditto. + +2012-11-10 Jan Hubicka + + PR middle-end/48636 + * ipa-inline.c (want_inline_small_function_p): Take aray index hint. + (edge_badness): Likewise. + * ipa-inline.h (inline_hints_vals): Add array_index and comments. + (inline_summary): Add ARRAY_INDEX. + * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint. + (reset_inline_summary): Handle array_index hint. + (inline_node_duplication_hook): Likewise. + (dump_inline_summary): Likewise. + (array_index_predicate): New function. + (estimate_function_body_sizes): Use it. + (estimate_node_size_and_time): Use array_index hint. + (inline_merge_summary, inline_read_section): Likewise. + +2012-11-10 Sandra Loosemore + + * doc/extend.texi: Copy-edit to use "bit-field" consistently + instead of "bitfield" or "bit field". + +2012-11-10 Sandra Loosemore + + * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases + involving "bit", "byte", "word", "precision", and "floating" + modifiers. + +2012-11-10 Sandra Loosemore + + * doc/extend.texi: Copy-edit to fix incorrect uses of "which" + and "that" throughout the file. + +2012-11-10 Andrew Pinski + + PR bootstrap/55202 + * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new" + or "collect-ld". + * configure: Regenerate. + +2012-11-10 Eric Botcazou + + * expr.c (store_field): Remove TYPE parameter. Remove block of code + dealing with BLKmode in registers. Reimplement this support using + pseudo-registers and bit-field techniques. + (store_constructor_field): Remove TYPE parameter and adjust calls to + store_field. + (expand_assignment): Adjust calls to store_field. Add comment. + (store_expr): Add comment. + (store_constructor): Adjust calls to store_constructor_field. + (expand_expr_real_2): Adjust call to store_field. + +2012-11-10 Vladimir Makarov + Uros Bizjak + + PR target/55247 + * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o + alternative. + +2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> + + PR c++/54413 + * doc/invoke.texi: Document f[no-]ext-numeric-literals flag. + +2012-11-09 Eric Botcazou + + * doc/install.texi (sparc64-x-solaris2): Mention MPC as well. + +2012-11-09 Richard Henderson + + * config/i386/i386.c (ix86_lra_p): Remove. + (TARGET_LRA_P): Use hook_bool_void_true. + +2012-11-09 Jason Merrill + + * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST. + +2012-11-09 Vladimir Makarov + + PR tree-optimization/55154 + * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros. + * lra.c (setup_operand_alternative): Use them. + * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND): + Remove. + (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT. + Accumulate reject instead of setting for non-const. + (curr_insn_transform): Initialize best_losers and best_overall by + INT_MAX. + +2012-11-09 Christian Bruel + + * config/sh/sh.c (sh_can_use_simple_return_p): Enable with + -freorder-blocks-and-partition. + +2012-11-09 Kenneth Zadeck + + * rtl.h (CONST_SCALAR_INT_P): New macro. + * cfgexpand.c (expand_debug_locations): Changed to use + CONST_SCALAR_INT_P macro. + * combine.c (try_combine, subst, make_extraction, + gen_lowpart_for_combine): Ditto. + * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto. + * dwarf2out.c (loc_descriptor): Ditto. + * emit-rtl.c (gen_lowpart_common): Ditto. + * ira-costs.c (record_reg_classes, record_address_regs): Ditto. + * ira-lives.c (single_reg_class): Ditto. + * recog.c (simplify_while_replacing, asm_operand_ok, + constrain_operands): Ditto. + * reload.c (find_reloads): Ditto. + * simplify-rtx.c (simplify_unary_operation_1, + simplify_const_unary_operation, simplify_binary_operation_1, + simplify_const_binary_operation, simplify_relational_operation_1, + simplify_subreg): Ditto. + +2012-11-09 Steven Bosscher + + PR middle-end/54385 + * postreload.c (reload_cse_simplify): Return a bool indicating + whether the CFG was changed. + (reload_cse_regs_1): Traverse the CFG instead of the insns chain. + Cleanup the CFG if edges may have been removed. + (reload_cse_regs): Update. + +2012-11-09 Andrey Belevantsev + + PR rtl-optimization/54472 + * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets. + (has_dependence_note_reg_clobber, has_dependence_note_reg_use): + Likewise. + +2012-11-09 Eric Botcazou + + * config/i386/i386.c (release_scratch_register_on_entry): Also adjust + sp_offset manually. + +2012-11-08 Christian Bruel + + * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count. + Do not reset dead bb1->frequency. + +2012-11-08 Steven Bosscher + + PR tree-optimization/55191 + * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here. + (flow_dfs_compute_reverse_execute): Don't call it here. + +2012-11-08 Jakub Jelinek + + PR debug/53145 + * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string + here, instead add "" if producer_string is NULL. + (dwarf2out_finish): Call gen_producer_string here, unconditionally + decrease refcount of the old indirect string and set val_str to + find_AT_string result. + + PR debug/54499 + * cgraphunit.c (assemble_thunk): Don't call source_line debug hook + here, instead call insn_locations_{init,finalize} and initialize + prologue_location. + +2012-11-08 Dmitry Gorbachev + + PR driver/54789 + * gcc.c (process_command): Use save_switch for synthesized + -fcompare-debug=* option; mark the switch as known. + +2012-11-08 Jakub Jelinek + + PR target/54308 + * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove + inline keyword. + +2012-11-08 Bernd Schmidt + + PR rtl-optimization/54850 + * sched-deps.c (find_inc): Add all dependencies from the inc_insn + to the mem_insn. + +2012-11-08 Jan Hubicka + + PR middle-end/48636 + * ipa-inline.c (big_speedup_p): New function. + (want_inline_small_function_p): Use it. + (edge_badness): Dump it. + * params.def (inline-min-speedup): New parameter. + * doc/invoke.texi (inline-min-speedup): Document. + +2012-11-08 Martin Jambor + + * ipa-prop.c (determine_known_aggregate_parts): Skip writes to + different declarations when tracking writes to a declaration. + +2012-11-07 David S. Miller + + * config/sparc/constraints.md ("U"): Document, in detail, + which this constraint is necessary. + +2012-11-07 Uros Bizjak + + PR middle-end/55235 + * expr.c (store_expr): Do not call emit_block_move for + non-BLKmode values. + +2012-11-07 Eric Botcazou + + PR middle-end/55219 + * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if + the argument is itself a conditional expression. + +2012-11-07 Vladimir Makarov + + PR rtl-optimization/55122 + * lra-constraints.c (match_reload): Sync values for dead input pseudos. + +2012-11-07 Richard Henderson + + * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa. + +2012-11-07 Peter Bergner + + * doc/invoke.texi (-mcpu=power8): Document. + * config.in (HAVE_AS_POWER8): New. + * config.gcc: Add cpu_type power8. + * configure.ac: (HAVE_AS_POWER8): Check for assembler support for + the POWER8 instructions. + * configure: Regenerate. + * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define. + (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8. + (EXTRA_SPECS): Add asm_cpu_power8 spec string. + * config/rs6000/rs6000-cpus.def (processor_target_table): Alias + POWER8 to POWER7. + * config/rs6000/rs6000-tables.opt: Regenerate. + * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8, + pass %(asm_cpu_power8)/-mpwr8. + * config/rs6000/aix53.h: Likewise. + * config/rs6000/aix61.h: Likewise. + +2012-11-07 Uros Bizjak + + PR target/55224 + * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception + to make a sibcall if one of the functions has void return type. + +2012-11-07 Manuel López-Ibáñez + + PR c/53063 + * doc/invoke.texi (Wformat): Update. + +2012-11-07 Manuel López-Ibáñez + + * optc-gen.awk: Factor code out to... + * opt-functions.awk (lang_enabled_by): ... this new function. + +2012-11-07 Manuel López-Ibáñez + + PR c/53063 + * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt. + +2012-11-07 Yufeng Zhang + + * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing + argument 'Pmode' to the 'plus_constant' call. + +2012-11-07 Martin Jambor + + PR tree-optimization/53787 + * ipa-cp.c (ipcp_value_source): New field offset. + (ipcp_agg_lattice): New type. + (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here. + (ipcp_agg_lattice_pool): New variable. + (ipa_get_parm_lattices): New function. + (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above. + Adjusted all callers. + (print_lattice): New function. + (print_all_lattices): Use the above, also print aggregate lattices. + (set_agg_lats_to_bottom): New function. + (set_agg_lats_contain_variable): Likewise. + (set_all_contains_variable): Likewise. + (initialize_node_lattices): Also handle aggregate lattices, set + virt_call in ipcp_param_lattices. + (add_value_source): Handle offsets. + (add_value_to_lattice): Likewise. + (add_scalar_value_to_lattice): New function. + (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice. + (propagate_vals_accross_ancestor): Likewise. + (propagate_accross_jump_function): Renamed to + propagate_scalar_accross_jump_function, use + add_scalar_value_to_lattice. + (set_check_aggs_by_ref): New function. + (merge_agg_lats_step): Likewise. + (set_chain_of_aglats_contains_variable): Likewise. + (merge_aggregate_lattices): Likewise. + (propagate_constants_accross_call): Also handle aggregate lattices. + (hint_time_bonus): New function. + (context_independent_aggregate_values): Likewise. + (gather_context_independent_values): Also handle agggregate values. + (agg_jmp_p_vec_for_t_vec): New function. + (estimate_local_effects): Also handle agggregate values. + (add_all_node_vals_to_toposort): Likewise. + (ipcp_propagate_stage): Use struct ipcp_param_lattices. + (get_clone_agg_value): New function. + (cgraph_edge_brings_value_p): Also handle agggregate values. + (create_specialized_node): Likewise. + (find_more_values_for_callers_subset): Rename to + find_more_scalar_values_for_callers_subset. Modify dump. + (copy_plats_to_inter): New function. + (intersect_with_plats): Likewise. + (agg_replacements_to_vector): Likewise. + (intersect_with_agg_replacements): Likewise. + (find_aggregate_values_for_callers_subset): Likewise. + (known_aggs_to_agg_replacement_list): Likewise. + (cgraph_edge_brings_all_scalars_for_node): Likewise. + (cgraph_edge_brings_all_agg_vals_for_node): Likewise. + (perhaps_add_new_callers): Old functionality moved to + cgraph_edge_brings_all_scalars_for_node, call it and + cgraph_edge_brings_all_agg_vals_for_node. + (ipcp_val_in_agg_replacements_p): New function. + (decide_about_value): New function. + (decide_whether_version_node): A lot of functionality moved to + decide_about_value. Also handle agggregate values. + (ipcp_driver): Also allocate ipcp_agg_lattice_pool. + (pass_ipa_cp): Fill in new entries. + * ipa-prop.c (ipa_node_agg_replacements): New variable. + (free_parms_ainfo): New function. + (ipa_analyze_node): Use free_parms_ainfo to free stuff. + (ipa_find_agg_cst_for_param): Do not rely on offset ordering. + (ipa_set_node_agg_value_chain): New function. + (ipa_node_removal_hook): Also handle ipa_node_agg_replacements. + (ipa_node_duplication_hook): Likewise. + (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool. + (ipa_free_all_structures_after_iinln): Likewise. + (ipa_dump_agg_replacement_values): New function. + (write_agg_replacement_chain): Likewise. + (read_agg_replacement_chain): Likewise. + (ipa_prop_write_all_agg_replacement): Likewise. + (read_replacements_section): Likewise. + (ipa_prop_read_all_agg_replacement): Likewise. + (adjust_agg_replacement_values): Likewise. + (ipcp_transform_function): Likewise. + * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of + ipa_agg_jump_function_t. + (ipa_node_params): Make lattices an array of ipcp_param_lattices. + (ipa_agg_replacement_value): New type and its vector. + (ipa_set_node_agg_value_chain) Declare. + (ipa_node_agg_replacements): Likewise. + (ipa_get_agg_replacements_for_node): New function. + (ipcp_agg_lattice_pool): Declare. + (ipa_dump_agg_replacement_values): Likewise. + (ipa_prop_write_all_agg_replacement): Likewise. + (ipa_prop_read_all_agg_replacement): Likewise. + (ipcp_transform_function): Likewise. + * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around + known aggregates and hints. + * ipa-inline.h: include ipa-prop.h. + (estimate_ipcp_clone_size_and_time): Adjust declaration. + * lto-streamer.h (lto_section_type): New item + LTO_section_ipcp_transform. + * lto-section-in.c (lto_section_name): New element ipcp_trans. + * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter. + * Makefile.in (IPA_INLINE_H): New. Use everywhee instead of + ipa-inline.h. + +2012-11-07 Uros Bizjak + + * config/i386/i386.c (enum upper_128bits_state): Remove. + (check_avx256_store): Use bool pointer argument. + (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns. + * config/i386/predicates.md (vzeroupper_operation): Use match_test. + +2012-11-07 Yufeng Zhang + + * config/aarch64/aarch64.c (aarch64_expand_prologue): For the + load-pair with writeback instruction, replace + aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA); + add new local variable 'cfa_reg' and use it. + +2012-11-07 Kaz Kojima + + PR middle-end/49220 + * mode-switching.c (create_pre_exit): Set short_block if there + are no copy insns. + +2012-11-07 Martin Jambor + + * lto-cgraph.c: Include tree-pass.h. + (lto_output_node): Stream node->ipa_transforms_to_apply. + (input_node): Likewise. + * tree-pass.h (passes_by_id): Declare. + (passes_by_id_size): Likewise. + * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies. + +2012-11-07 Jan Hubicka + + * ipa-inline-analysis.c (true_predicate, single_cond_predicate, + reset_inline_edge_summary): Fix formatting. + (account_size_time): Bump up the limit on number of size/time + entries to 256. + (estimate_function_body_sizes): Work in reverse postorder. + +2012-11-07 David S. Miller + + PR bootstrap/55211 + Revert: + * config/sparc/constraints.md ("U"): Delete. + * config/sparc/sparc.md: Use 'r' constraint instead of 'U'. + * config/sparc/sync.md: Likewise. + And revert parts of: + * doc/md.texi: Sync sparc constraint documentation with reality. + +2012-11-07 Jakub Jelinek + + * config/i386/i386.c (ix86_avx_u128_mode_after): Don't + look for reg in CALL operand. + + PR debug/54693 + * tree-flow.h (propagate_threaded_block_debug_into): New prototype. + * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No + longer static. + * tree-ssa-loop-ch.c (copy_loop_headers): Use it. + +2012-11-06 Sterling Augustine + + * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF. + +2012-11-06 Aldy Hernandez + Richard Henderson + + * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New. + * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New. + (struct tm_region): Add tm_state, restart_block, + original_transaction_was_outer. + (tm_region_init_0): Initialize them. + (collect_bb2reg, get_bb_regions_instrumented): New. + (tm_log_emit_save_or_restores): Merge into ... + (expand_transaction): ... here. + (generate_tm_state, propagate_tm_flags_out): New. + (execute_tm_mark): Avoid processing blocks more than once. + (split_bb_make_tm_edge): Split out from ... + (make_tm_edge): ... here. And merge the rest into ... + (expand_block_edges): ... here. + (execute_tm_edges): Avoid processing blocks more than once. + (ipa_uninstrument_transaction): New. + (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa. + (ipa_tm_execute): Init and free original_copy_tables. + * trans-mem.h (PR_MULTIWAYCODE): New. + * tree-cfg.c (make_edges): Use EDGE_TM_ABORT. + +2012-11-06 Aldy Hernandez + + * cfghooks.c (copy_bbs): Handle a null loop_father. + + * cgraph.c (cgraph_debug_gimple_stmt): Handle a null + current_function_decl. + +2012-11-06 Richard Henderson + + * tree-ssa-tail-merge.c (find_duplicate): Do not consider + is_tm_ending_fndecl calls as mergable. + +2012-11-06 Sterling Augustine + Cary Coutant + + * common.opt (gno-split-dwarf, gsplit-dwarf): New switches. + * doc/invoke.texi (Debugging Options): Document them. + * gcc.c (replace_extension_spec_func): New function. + (ASM_FINAL_SPEC): Adjust. + (static_spec_functions): Add new field for replace-extension. + (check_live_switch): Adjust comment. Add case for 'g'. + * opts.c (finish_options): Set x_debug_generate_pub_sections based on + x_dwarf_split_debug_info. + (common_handle_option): Add case for OPT_gsplit_dwarf. + * dwarf2out.h (addr_table_entry_struct): Add forward declaration. + (dw_val_struct): Add val_entry pointer. + * dwarf2out.c (debug_skeleton_info_section, + debug_skeleton_abbrev_section, debug_addr_section, + debug_skeleton_line_section, debug_str_offsets_section): New globals. + (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines. + (indirect_string_node): New field index. + (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel, + ate_kind_label. + (addr_table_entry): New structure and type. + (dw_loc_list_struct): Add field begin_entry. + (new_loc_desc): Initialize val_entry. + (size_of_loc_descr, output_loc_operands, output_loc_operands_raw): + Add cases for DW_OP_GNU_addr_index and DW_OP_const_index. + (build_cfa_loc): Initialize val_entry. + (AT_index, add_addr_table_entry, remove_addr_table_entry, + add_AT_lbl_id): New functions. + (add_AT_addr, add_AT_range_list): New parameter force_direct. + (output_die_abbrevs): New function. + (add_ranges_by_labels): New parameter force_direct. + (output_line_info): New parameter prologue_only. + (dtprel_bool): New enum with dtprel_false and dtprel_true. + (dw_addr_op, new_addr_loc_descr): New functions. + (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION, + DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION, + DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION, + DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION, + DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION, + DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION, + DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION, + DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION, + DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL, + DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL + DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros. + (DEBUG_STR_SECTION_FLAGS): Adjust. + (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL, + DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL, + DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL, + DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL, + DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust + indentation. + (debug_skeleton_abbrev_section_label, debug_addr_section_label, + debug_skeleton_line_section_label, debug_skeleton_info_section_label): + New global variables. + (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec, + add_AT_data8): Initialize val_entry. + (add_AT_low_high_pc): New parameter force_direct. Handle + dwarf_split_debug_info. + (set_indirect_string, find_AT_string_form): New functions. + (AT_string_form): Adjust to call find_AT_string_from. + (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list): + Initialize val_entry. + (addr_index_table): New global variable. + (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry, + init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry, + remove_loc_list_addr_table_entries): New functions. + (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter + force_direct. Handle dwarf_split_debug_info. + (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr, + add_AT_offset): Initialize val_entry. + (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines. + (size_of_die): Handle dwarf_split_debug_info. + (size_of_aranges, value_format): Call AT_class. Check AT_index. + (output_die_abbrevs): New function. + (output_abbrev_section): Call output_die_abbrevs. + (new_loc_list): Initialize begin_entry. + (output_loc_list): Handle dwarf_split_debug_info. + (output_range_list_offset, output_loc_list_offset, + output_attr_index_or_value, ): New functions. + (output_die): Fix call to dw2_asm_output_data. Call + output_attr_index_or_value and output_range_list_offset. + Adjust logic around dw_val_class_str. + (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit, + output_skeleton_debug_sections): New functions. + (output_comdat_type_unit, output_pubname, output_aranges): Handle + dwarf_split_debug_info. + (add_ranges_by_labels): New parameter force_direct. + (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr. + (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in + place of generic integer. + (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die, + gen_call_site_die, gen_subprogram_die, gen_variable_die, + add_high_low_attributes): Adjust calls to add_AT_lbl_id. + (output_macinfo_op): Adjust indirect_string_logic. + (save_macinfo_strings): New function. + (output_macinfo): Adjust. + (dwarf2out_init): Handle dwarf_split_debug_info. + (index_string, output_index_string_offset, output_index_string): New + functions. + (output_indirect_string): Adjust. + (output_indirect_strings, output_addr_table_entry, output_addr_table): + New functions. + (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index + and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call + remove_loc_list_addr_table_entries and remove_addr_table_entry. + (index_location_lists): New function. + (dwarf2out_finish): Handle dwarf_split_debug_info. New variable + main_comp_unit_die. Adjust calls to add_AT_low_high_pc, + add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call + save_macinfo_strings and output_indirect_strings. + +2012-11-06 Gerald Pfeifer + + * config/i386/i386.c (make_dispatcher_decl): Guard with + ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION. + +2012-11-06 Jan Hubicka + + * ipa-inline-analysis.c (estimate_function_body_sizes, + inline_update_overall_summary): Cap time calculations. + +2012-11-06 Uros Bizjak + + * config/i386/i386.c (ix86_init_machine_status): Do not + explicitly clear tls_descriptor_call_expanded_p again. + +2012-11-06 Uros Bizjak + + * config/i386/sse.md + (_maskstore): Mark operand 0 + as read and written by the instruction. + +2012-11-06 Alexandre Oliva + + PR debug/54693 + * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): + Use a stack vector before allocating a pointer set. + +2012-11-06 Martin Jambor + + * ipa-prop.c (ipa_get_param_decl_index_1): New function. + (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1. + (ipa_populate_param_decls): Accept descriptors parameter rather + than the whole info. + (load_from_unmodified_param): Likewise. + (ipa_load_from_parm_agg_1): Likewise. + (ipa_load_from_parm_agg): Extract descriptors from info. + (compute_complex_assign_jump_func): Likewise. + (ipa_analyze_indirect_call_uses): Likewise. + +2012-11-06 Jan Hubicka + + * ipa-inline.c (compute_uninlined_call_time): Return gcov_type. + (compute_inlined_call_time): Watch overflows. + (relative_time_benefit): Compute in gcov_type. + +2012-11-06 Jan Hubicka + + * cfgloopanal.c (get_loop_hot_path): New function. + * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV, + NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH, + NUM_BRANCHES_ON_HOT_PATH. + (tree_estimate_loop_size): Compute the new values. + (try_unroll_loop_completely): Disable unrolling of loops with only + calls or too many branches. + (tree_unroll_loops_completely): Deal also with outer loops of hot loops. + * cfgloop.h (get_loop_hot_path): Declare. + * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters. + * invoke.texi (max-peel-branches): Document. + +2012-11-06 Jan Hubicka + + * ipa-pure-const.c (check_stmt): Fix debug info formatting. + +2012-11-06 Uros Bizjak + + * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define. + (ix86_instantiate_decls): New function. + (ix86_expand_builtin) : Use SLOT_TEMP + stack slot instead of SLOT_VIRTUAL. + : Ditto. + (assign_386_stack_local): Do not assert when virtual slot is valid. + * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL. + * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot. + (truncxf2): Ditto. + (floatunssi2): Ditto. + (isinf2): Ditto. + * config/i386/sync.md (atomic_load): Ditto. + (atomic_store): Ditto. + +2012-11-06 Jan Hubicka + + * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound, + vect_do_peeling_for_alignment): Fix loop bound computation. + * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds. + +2012-11-06 Oleg Endo + + PR target/54089 + * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for + ops larger than SImode. + * config/sh/sh.md (rotcl, *rotcl): New insns and splits. + (ashldi3_k): Convert to insn_and_split and use new rotcl insn. + +2012-11-06 Vladimir Yakovlev + + PR target/47440 + * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete. + (emit_vzero): Add prototype. + (ix86_mode_entry): Likewise. + (ix86_mode_exit): Likewise. + (ix86_emit_mode_set): Likewise. + + * config/i386/i386.c (typedef struct block_info_def): Delete. + (define BLOCK_INFO): Delete. + (check_avx256_stores): Add checking for MEM_P. + (move_or_delete_vzeroupper_2): Delete. + (move_or_delete_vzeroupper_1): Delete. + (move_or_delete_vzeroupper): Delete. + (ix86_maybe_emit_epilogue_vzeroupper): Delete. + (function_pass_avx256_p): Delete. + (ix86_function_ok_for_sibcall): Remove sibcall disabling. + (nit_cumulative_args): Remove initialization of of avx256 fields of + cfun->machine. + (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation. + (ix86_expand_epilogue): Likewise. + (ix86_avx_u128_mode_needed): New. + (ix86_i387_mode_needed): Rename from ix86_mode_needed. + (ix86_mode_needed): New. + (ix86_avx_u128_mode_after): New. + (ix86_mode_after): New. + (ix86_avx_u128_mode_entry): New. + (ix86_mode_entry): New. + (ix86_avx_u128_mode_exit): New. + (ix86_mode_exit): New. + (ix86_emit_mode_set): New. + (ix86_expand_call): Delete vzeroupper generation. + (ix86_split_call_vzeroupper): Delete. + (ix86_init_machine_status): Initialize optimize_mode_switching. + (ix86_expand_special_args_builtin): Change. + (ix86_reorg): Delete a call of move_or_delete_vzeroupper. + + * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New. + (AVX_U128): New. + (avx_u128_state): New. + (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY. + (MODE_AFTER): New. + (MODE_ENTRY): New. + (MODE_EXIT): New. + (EMIT_MODE_SET): Change. + (machine_function): Delete avx256 fields. + + * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete. + (define_insn_and_split "*call_vzeroupper"): Delete. + (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete. + (define_insn_and_split "*sibcall_vzeroupper"): Delete. + (define_insn_and_split "*call_pop_vzeroupper"): Delete. + (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete. + (define_insn_and_split "*call_value_vzeroupper"): Delete. + (define_insn_and_split "*sibcall_value_vzeroupper"): Delete. + (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete. + (define_insn_and_split "*call_value_pop_vzeroupper"): Delete. + (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete. + (define_expand "return"): Remove vzeroupper emitting. + (define_expand "simple_return"): Delete. + + * config/i386/predicates.md (vzeroupper_operation): New. + + * config/i386/sse.md (avx_vzeroupper): Change. + +2012-11-06 Uros Bizjak + Kaz Kojima + + PR target/41993 + * mode-switching.c (create_pre_exit): Set return_copy to + last_insn when copy_start is a pseudo reg. + +2012-11-06 Andrey Turetskiy + + * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3 + to CODE_FOR_avx2_pmulhrswv16hi3. + * config/i386/predicates.md (const1_operand): Extend for vectors. + * config/i386/sse.md (ssse3_avx2): Extend. + (ssedoublemode): Ditto. + (_uavg3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3, + avx2_uavgv16hi3 and sse2_uavgv8hi3 into one. + (*_uavg3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3, + *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one. + (PMULHRSW): New. + (_pmulhrsw3): Merge avx2_umulhrswv16hi3, + ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one. + (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand + predicate. + (*ssse3_pmulhrswv8hi3): Ditto. + (*ssse3_pmulhrswv4hi3): Ditto. + +2012-11-06 Joern Rennecke + + * config/epiphany/epiphany.c (epiphany_address_cost): + Use MODE parameter. + +2012-11-05 Sriraman Tallam + + * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook + description. + * (TARGET_COMPARE_VERSION_PRIORITY): New hook description. + * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description. + * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description. + * doc/tm.texi: Regenerate. + * target.def (compare_version_priority): New target hook. + * (generate_version_dispatcher_body): New target hook. + * (get_function_versions_dispatcher): New target hook. + * (function_versions): New target hook. + * cgraph.c (cgraph_fnver_htab): New htab. + (cgraph_fn_ver_htab_hash): New function. + (cgraph_fn_ver_htab_eq): New function. + (version_info_node): New pointer. + (insert_new_cgraph_node_version): New function. + (get_cgraph_node_version): New function. + (delete_function_version): New function. + (record_function_versions): New function. + * cgraph.h (cgraph_node): New bitfield dispatcher_function. + (cgraph_function_version_info): New struct. + (get_cgraph_node_version): New function. + (insert_new_cgraph_node_version): New function. + (record_function_versions): New function. + (delete_function_version): New function. + (init_lowered_empty_function): Expose function. + * tree.h (DECL_FUNCTION_VERSIONED): New macro. + (tree_function_decl): New bit-field versioned_function. + * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion + function dispatcher. + (cgraph_analyze_functions): Analyze dispatcher function. + (init_lowered_empty_function): Make non-static. New parameter in_ssa. + (assemble_thunk): Add parameter to call to init_lowered_empty_function. + * config/i386/i386.c (add_condition_to_bb): New function. + (get_builtin_code_for_version): New function. + (ix86_compare_version_priority): New function. + (feature_compare): New function. + (dispatch_function_versions): New function. + (ix86_function_versions): New function. + (attr_strcmp): New function. + (ix86_mangle_function_version_assembler_name): New function. + (ix86_mangle_decl_assembler_name): New function. + (make_name): New function. + (make_dispatcher_decl): New function. + (is_function_default_version): New function. + (ix86_get_function_versions_dispatcher): New function. + (make_attribute): New function. + (make_resolver_func): New function. + (ix86_generate_version_dispatcher_body): New function. + (fold_builtin_cpu): Return integer for cpu builtins. + (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro. + (TARGET_COMPARE_VERSION_PRIORITY): New macro. + (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro. + (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro. + (TARGET_OPTION_FUNCTION_VERSIONS): New macro. + +2012-11-05 Joern Rennecke + + * recog.c (extract_insn): Enabled alternative defaults to 1. + +2012-11-05 H.J. Lu + + * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with + REX_INT_REGNO_P. + +2012-11-05 Eric Botcazou + + PR tree-optimization/54986 + * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op + conversions on entry but add them back on exit if needed. + +2012-11-05 Andreas Schwab + + * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison + codes in non-jump and cmove insn. + +2012-11-05 Uros Bizjak + Vladimir Yakovlev + + * mode-switching.c (create_pre_exit): Force late switching if + __builtin_{apply,return} emitted a load that require mode, + other than MODE_EXIT. + +2012-11-05 Richard Sandiford + + PR target/55204 + * config/i386/i386.c (ix86_address_subreg_operand): Remove stack + pointer check. + (print_reg): Use true_regnum rather than REGNO. + (ix86_print_operand_address): Remove SUBREG handling. + +2012-11-05 Jan Hubicka + + * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of + max_loop_iterations. + +2012-11-05 Joern Rennecke + + * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip + with a return instruction. + +2012-11-05 Vladimir Makarov + + PR rtl-optimization/55151 + * lra-constraints.c (process_alt_operands): Permit putting reg + value into memory. Increase reject for this case. + +2012-11-05 Dehao Chen + + * final.c (reemit_insn_block_notes): Do not change scope if insn + location is UNKNOWN_LOCATION. + +2012-11-05 Joern Rennecke + + * doc/md.texi (Defining Attributes): Document that we are defining + HAVE_ATTR_name macros as 1 for defined attributes, and as 0 + for undefined special attributes. + * final.c (asm_insn_count, align_fuzz): Always define. + (insn_current_reference_address): Likewise. + (init_insn_lengths): Use if (HAVE_ATTR_length) instead of + #ifdef HAVE_ATTR_length. + (get_attr_length_1, shorten_branches, final): Likewise. + (final_scan_insn, output_asm_name): Likewise. + * genattr.c (gen_attr): Define HAVE_ATTR_name macros for + defined attributes as 1. + Remove ancient get_attr_alternative compatibility code. + For special purpose attributes not provided, define HAVE_ATTR_name + as 0. + In case no length attribute is given, provide stub definitions + for insn_*_length* functions, and also include insn-addr.h. + In case no enabled attribute is given, provide stub definition. + * genattrtab.c (write_length_unit_log): Always write a definition. + * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions. + * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare. + * lra-int.h (struct lra_insn_recog_data): Make member + alternative_enabled_p unconditional. + * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of + #ifdef HAVE_ATTR_length. + (lra_set_insn_recog_data): Likewise. Make initialization of + alternative_enabled_p unconditional. + (lra_update_insn_recog_data): Use #if instead of #ifdef for + HAVE_ATTR_enabled. + * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define. + (extract_insn): Check HAVE_ATTR_enabled. + (gate_handle_split_before_regstack): Use #if instead of + #if defined for HAVE_ATTR_length. + +2012-11-05 Jan Hubicka + + * ipa-inline.c (compute_uninlined_call_time, + compute_inlined_call_time): New functions. + (RELATIVE_TIME_BENEFIT_RANGE): New macro. + (relative_time_benefit): Rewrite. + (edge_badness): Rewrite path with guessed profile and estimated profile. + * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module): + New hints. + (struct inline_summary): Add GROWTH filed. + * ipa-inline-analysis.c (dump_inline_hints): Update. + (reset_inline_summary): Update. + (dump_inline_summary): Update. + (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and + gimple_assign_load_p predicates. + (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint. + (simple_edge_hints): New function. + (do_estimate_edge_time): Return time of invocation of callee rather + than the time scaled by edge frequency; update hints code. + (do_estimate_edge_hints): Update. + (do_estimate_growth): Cleanup. + +2012-11-05 Jakub Jelinek + + PR target/55194 + * dwarf2out.c (value_format) : Handle + also DWARF2_ADDR_SIZE 1 and 2. + +2012-11-05 Jan Hubicka + + * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p. + (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL + * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip + just_once_each_iteration_p; record estimated bound when loop has only one + likely exit; test just_once_each_iteration_p before IV canon itself. + +2012-11-05 Jan Hubicka + + * ipa-inline.c (leaf_node_p): Rename to ... + (num_calls) ... this one. + (want_early_inline_function_p): Allow smal growth on non-leafs. + +2012-11-05 Jakub Jelinek + + PR debug/54402 + * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE + hfp note. + (vt_initialize): Look for fp_setter in any bb, not just successor of + entry bb. + +2012-11-05 Oleg Endo + + * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro. + (TARGET_SUPERSCALAR): Add TARGET_SH2A. + (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of + TARGET_CACHE32. + (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of + TARGET_HARVARD. + * config/sh/sh.c (sh_trampoline_init): Likewise. + +2012-11-05 David Edelsohn + + * system.h (loc_t): Poison. + +2012-11-05 Marc Glisse + + * fold-const.c (fold_unary_loc): Disable conversion optimization + for void type. + +2012-11-04 Thomas Schwinge + + * configure: Regenerate. + +2012-11-04 Eric Botcazou + + * combine.c: Adjust toplevel comment. + (make_extraction): Adjust head comment and move up canonicalization. + +2012-11-04 Alexandre Oliva + Jakub Jelinek + + PR debug/54693 + * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps + for dropped IV sets. + +2012-11-04 Alexandre Oliva + + PR debug/54693 + * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): + New, rewritten from debug stmt copying code... + (thread_around_empty_block): ... removed from here. + (thread_across_edge): Call propagate_threaded_block_debug_into. + +2012-11-04 Dehao Chen + + * expr.c (expand_expr_real_1): Change to not using input_location. + +2012-11-03 Jan Hubicka + + * invoke.texi (profile-use): update documentation. + * opts.c (common_handle_option): Enable tree-vectorize + and tree-loop-distribute-patterns. + * tree-loop-distribution.c (tree_loop_distribution): Skip loops + optimized for size. + * config/i386/i386.c (ix86_option_override_internal): Enabe + prefetch_lop_arrays for profile-use. + +2012-11-03 Robert Mason + + * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks) + +2012-11-03 Sandra Loosemore + + * doc/extend.texi: Copy-edit to use present tense except when + explicitly describing future or past behavior. + +2012-11-03 Oleg Endo + + * config/sh/sh.c (output_movedouble, output_far_jump, + output_ieee_ccmpeq): Use multi-line strings for asm. + (find_regmode_weight): Wrap lines. + (sh_optimize_target_register_callee_saved): Remove commented out + variable. + (emit_load_ptr): Remove prototype. + +2012-11-03 Oleg Endo + + PR target/51244 + * config/sh/sh.md (*cbranch_t): Allow splitting after reload. + Allow going beyond current basic block before reload when looking for + the reg set insn. + * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels. + +2012-11-02 Jan Hubicka + + * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add + missing sign to unsigned. + +2012-11-02 Andrew Pinski + + PR rtl-opt/54524 + * simplify-rtx.c (simplify_relational_operation_1): Don't simplify + (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not + equivalent. + +2012-11-02 Jan Hubicka + + * tree-ssa-loop-niter.c (double_int_cmp, bound_index, + discover_iteration_bound_by_body_walk): New functions. + (discover_iteration_bound_by_body_walk): Use it. + +2012-11-02 Jan Hubicka + + * predict.c (predict_loops): Predict also exits not dominating latch. + +2012-11-02 Jan Hubicka + + * predict.c (predict_loops): Do not predict infinite loops. + +2012-11-02 Jan Hubicka + + PR middle-end/55079 + * tree-ssa-loop-niter.c (number_of_iterations_exit): Update + MAX field if NITER was folded to contant. + (record_estimate): Sanity check. + * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New + function. + (remove_redundant_iv_test): New function. + (loops_to_unloop, loops_to_unloop_nunroll): New static vars. + (unloop_loops): Break out from ... + (try_unroll_loop_completely): ... here; Pass in MAXITER; use + remove_exits_and_undefined_stmts; do not unloop. + (canonicalize_loop_induction_variables): Compute MAXITER; + use remove_redundant_iv_test; remove loop_close_ssa_invalidated + and irred_invalidated arguments. + (canonicalize_induction_variables): Compute fresh bound estimates; + unloop; walk from innermost. + (tree_unroll_loops_completely): Likewise. + +2012-11-02 Vladimir Makarov + + PR middle-end/55130 + * lra-constraints.c (debug_loc_equivalence_change_p): Rename to + loc_equivalence_change_p. + (lra_constraints): Check equiv_insn_bitmap for debug insn. Call + loc_equivalence_change_p for non-transformed insn. + +2012-11-02 Eric Botcazou + + * cfg-flags.def (ABNORMAL_CALL): Fix comment. + (EH): Likewise. + (SIBCALL): Likewise. + * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages. + Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check. + +2012-11-02 Jakub Jelinek + + PR target/55147 + * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT. + (*bswapdi2_doubleword): Removed. + +2012-11-02 Gerald Pfeifer + + * doc/install.texi (Specific): Remove moxie web reference. + +2012-11-01 Marc Glisse + + PR middle-end/55001 + * tree-vect-generic.c (expand_vector_condition): New function. + (expand_vector_operations_1): Call it. + +2012-11-01 Steve Ellcey + + * target-globals.c (save_target_globals): Save lra_int struct. + +2012-11-01 Gerald Pfeifer + + * doc/standards.texi (Standards): Adjust reference to Go specification. + +2012-11-01 Lawrence Crowl + + * ebitmap.h: Remove unused. + * ebitmap.c: Remove unused. + * Makefile.in: Remove ebitmap.h and ebitmap.c. + * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file. + (SET_BIT_WITH_POPCOUNT): Remove unused. + (RESET_BIT_WITH_POPCOUNT): Remove unused. + (bitmap_copy_n): Remove unused. + (bitmap_range_empty_p): Remove unused. + (sbitmap_popcount): Remove unused. + (sbitmap_verify_popcount): Make private to source file. + * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header. + (bitmap_copy_n): Remove unused. + (bitmap_range_empty_p): Remove unused. + (sbitmap_popcount): Remove unused. + (sbitmap_verify_popcount): Make private to source file. + +2012-11-01 Lawrence Crowl + + * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add + unused parameter to match bitmap iterator. Update callers. + (sbitmap_iter_cond): Rename bmp_iter_set. Update callers. + (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to + match bitmap iterator. Update callers. + (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused. + (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and + adjust to be identical to the definition in bitmap.h. Conditionalize + the definition based on not having been defined. Update callers. + * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition + based on not having been defined. (To match the above.) + +2012-11-01 Lawrence Crowl + + * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter + type. Update callers to match. + (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update + callers to match. + (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount, + normalizing parameter type. Update callers to match. + (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type. + Update callers to match. + (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount, + normalizing parameter type. Update callers to match. + * basic-block.h (sbitmap_intersection_of_succs): Rename + bitmap_intersection_of_succs. Update callers to match. + * basic-block.h (sbitmap_intersection_of_preds): Rename + bitmap_intersection_of_preds. Update callers to match. + * basic-block.h (sbitmap_union_of_succs): Rename + bitmap_union_of_succs. Update callers to match. + * basic-block.h (sbitmap_union_of_preds): Rename + bitmap_union_of_preds. Update callers to match. + +2012-11-01 Vladimir Makarov + + PR middle-end/55150 + * lra-constraints.c (lra_constraints): Check only pseudos with + equivalences. Add insns with equivalence pseudos. + +2012-11-01 Sharad Singhai + + PR other/55164 + * dumpfile.h (struct dump_file_info): Fix order of flags. + +2012-11-01 Jan Hubicka + + PR middle-end/55104 + * ipa-inline-transform.c (inline_call): Silence an sanity check until + ipa-cp issue if fixed. + +2012-11-01 Sharad Singhai + + * doc/invoke.texi: Update -fopt-info documentation. + * dumpfile.c: Move dump_flags here from passes.c. + Rename opt_info_options to optinfo_verbosity_options. + Add optgroup_options. + (dump_files): Add field for optinfo_flags in the static initializer. + (dump_register): Handle additional parameter for optgroup_flags. + (opt_info_enable_passes): Renamed opt_info_enable_all. Handle + optgroup_flags. Fix documentation. + (opt_info_switch_p_1): Handle optgroup options. + (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files. + * dumpfile.h (dump_register): Additional argument for optgroup_flags. + All callers updated. + (struct dump_file_info): Add field for optgroup_flags. + Define OPTGROUP_* flags. + * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags. + All opt_pass static initializers updated. + * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all' + instead of 'optall'. + (handle_common_deferred_options): Fix typo in error message. + * passes.c (register_one_dump_file): Add argument for optgroup_flags. + Turn on OPTGROUP_IPA for IPA passes. + Move dump_flags from here to dumpfile.c. + * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to + dump_register. + +2012-11-01 Joern Rennecke + + PR target/55160 + * config/sh/sh.md (doloop_end): Use emit_jump_insn. + +2012-10-31 Jakub Jelinek + + PR tree-optimization/53708 + * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve + user-supplied alignment when used with an explicit section name. + +2012-10-31 Dehao Chen + + * tree-eh.c (do_return_redirection): Set location for jump statement. + (do_goto_redirection): Likewise. + (frob_into_branch_around): Likewise. + (lower_try_finally_nofallthru): Likewise. + (lower_try_finally_copy): Likewise. + (lower_try_finally_switch): Likewise. + * expr.c (store_expr): Use current insn location instead of expr + location. + (expand_expr_real): Likewise. + (expand_expr_real_1): Likewise. + +2012-10-31 Easwaran Raman + + PR target/54938 + PR middle-end/54957 + * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note + only if it doesn't already exist. + * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL. + (emit_case_dispatch_table): Handle the case where STMT_BB is NULL. + (expand_sjlj_dispatch_table): Pass BB containing before_case + to emit_case_dispatch_table. + +2012-10-31 Lawrence Crowl + + * is-a.h: New. + (is_a (U*)): New. Test for is-a relationship. + (as_a (U*)): New. Treat as a derived type. + (dyn_cast (U*)): New. Conditionally cast based on is_a. + * cgraph.h (varpool_node): Rename to varpool_node_for_decl. + Adjust callers to match. + (is_a_helper ::test (symtab_node_def *)): New. + (is_a_helper ::test (symtab_node_def *)): New. + (symtab_node_def::try_function): New. Change most calls to + symtab_function_p with calls to dyn_cast (p). + (symtab_node_def::try_variable): New. Change most calls to + symtab_variable_p with calls to dyn_cast (p). + (symtab_function_p): Remove. Change callers to use + is_a (p) instead. + (symtab_variable_p): Remove. Change callers to use + is_a (p) instead. + * cgraph.c (cgraph_node_for_asm): Remove redundant call to + symtab_node_for_asm. + * cgraphunit.c (symbol_finalized_and_needed): New. + (symbol_finalized): New. + (cgraph_analyze_functions): Split complicated conditionals out into + above new functions. + * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h. + +2012-10-31 Steven Bosscher + Jakub Jelinek + + PR tree-optimization/55018 + * basic-block.h (dfs_find_deadend): New prototype. + * cfganal.c (dfs_find_deadend): No longer static. Use bitmap + instead of sbitmap for visited. + (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too. + * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from + dfs_find_deadend of unconnected b instead of b directly. + +2012-10-31 Eric Botcazou + + * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the + special register pushes before frame probing and allocation. + +2012-10-31 Vladimir Makarov + + PR middle-end/55150 + * lra-constraints.c (lra_constraints): Update debug insn info + after equivalence change. + +2012-10-31 Jan Hubicka + + * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining + empty virtual functions calling themselves. + +2012-10-31 Tom Tromey + + PR other/50899 + * doc/gcc.texi: Add @direntry for gcov. + +2012-10-31 Joern Rennecke + + * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len. + +2012-10-31 Jakub Jelinek + + PR tree-optimization/19105 + PR tree-optimization/21643 + PR tree-optimization/46309 + * tree-ssa-reassoc.c (init_range_entry): Add STMT argument + and use it if EXP is NULL. + (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL. + (optimize_range_tests): Likewise. + (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops, + maybe_optimize_range_tests): New functions. + (reassociate_bb): Call maybe_optimize_range_tests if last + stmt of bb is GIMPLE_COND that hasn't been visited yet. + +2012-10-31 Richard Sandiford + + * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename + to... + (insvsi_internal, insvdi_internal, extvsi_internal) + (extvdi_internal): ...this. + (insv, extv): Update accordingly. + +2012-10-31 Richard Sandiford + + * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume + that zero_extracts of const_ints are doing word-sized extractions. + +2012-10-31 Richard Sandiford + + * combine.c (make_extraction): Remove dead wanted_inner_mode- + and pos_rtx-related code. + +2012-10-31 Richard Sandiford + + * expmed.c (store_bit_field_1): Move generation of MEM insvs + to the MEM_P block. + (extract_bit_field_1): Likewise extvs and extzvs. + +2012-10-31 Richard Sandiford + + * expmed.c (store_bit_field_using_insv): New function, + split out from... + (store_bit_field_1): ...here. + (extract_bit_field_using_extv): New function, split out from... + (extract_bit_field_1): ...here. + +2012-10-31 Richard Sandiford + + * expmed.c (store_bit_field_1): Use OP_MODE to check whether an + insv pattern is available. Remove redundant checks for OP_MODE + being MAX_MACHINE_MODE. + (extract_bit_field_1): Remove redundant checks for EXT_MODE being + MAX_MACHINE_MODE. + +2012-10-31 Richard Sandiford + + * expmed.c (store_bit_field_1): Remove test for BLKmode values. + +2012-10-31 Ralf Corsépius , + Joel Sherrill + + * config/sparc/t-rtems: New (Custom multilibs). + * config/sparc/t-rtems-64: New (Custom multilibs). + * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64. + (sparc-*-rtems*): Add sparc/t-rtems. + +2012-10-31 Alan Modra + + * config/rs6000/rs6000.c (legitimize_reload_address): Remove code + handling non-aligned ld/std. + * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'. + * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise. + * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise. + * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'. + +2012-10-31 Alan Modra + + * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX. + +2012-10-31 Joern Rennecke + + * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to + hard_reg_class. + + PR target/52498 + * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of + last two parameters. + +2012-10-30 Alexandre Oliva + + PR debug/54551 + PR debug/54693 + * valtrack.c (dead_debug_promote_uses): Assert-check that + global used bit was clear and initialize entry unconditionally. + +2012-10-30 Eric Botcazou + + * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in + head comment. + (hash_rtx): Likewise. + +2012-10-30 H.J. Lu + + PR rtl-optimization/55093 + * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress + check for ARG_POINTER_REGNUM. + +2012-10-30 Steve Ellcey + + * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order + and add mabi=64. + (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs. + * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order. + (MULTILIB_DIRNAMES): Ditto. + (MULTILIB_EXCEPTIONS): New. + +2012-10-30 Joern Rennecke + + * lra-constraints.c (check_secondary_memory_needed_p): + Add ATTRIBUTE_UNUSED to parameters. + +2012-10-30 Richard Sandiford + + * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition. + * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition. + * expr.c (SLOW_UNALIGNED_ACCESS): Likewise. + * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise. + (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here. + +2012-10-30 Jan Hubicka + + * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup. + +2012-10-30 Jan Hubicka + + * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter + EVERY_ITERATION with implicit value of true. + (record_estimate): Check dominance relationship of the basic block + we are estimating on instead of relying on UPPER to be false. + (struct ilb_data): Drop RELIABLE. + (idx_infer_loop_bounds): Update. + (infer_loop_bounds_from_ref): Drop parameter RELIABLE. + (infer_loop_bounds_from_array): Drop parameter RELIABLE. + (infer_loop_bounds_from_undefined): Update comments and handling + of RELIABLE. + (estimate_numbers_of_iterations_loop): Record all bounds. + +2012-10-30 Richard Sandiford + + * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg + rather than gen_rtx_SUBREG. + +2012-10-30 Richard Biener + + * gimple.h (gimple_store_p): New predicate. + (gimple_assign_load_p): Likewise. + * tree-inline.c (estimate_num_insns): Use it. + +2012-10-30 Marc Glisse + + * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors. + (fold_binary_loc): Call it for VEC_COND_EXPR. + +2012-10-30 James Greenhalgh + Tejas Belagod + + * config/aarch64/aarch64-simd.md + (aarch64_simd_bsl_internal): New pattern. + (aarch64_simd_bsl): Likewise. + (aarch64_vcond_internal): Likewise. + (vcondu): Likewise. + (vcond): Likewise. + * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants. + +2012-10-30 Richard Biener + + PR tree-optimization/55111 + * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt. + +2012-10-30 Oleg Endo + + PR target/54963 + * config/sh/iterators.md (SIDI): New mode iterator. + * config/sh/sh.md (negdi2): Use parallel around operation and T_REG + clobber in expander. + (*negdi2): Mark output operand as early clobbered. Add T_REG clobber. + Split after reload. Simplify split code. + (abssi2, absdi2): Fold expanders into abs2. + (*abssi2, *absdi2): Fold into *abs2 insn_and_split. Split insns + before reload. + (*negabssi2, *negabsdi2): Fold into *negabs2. Add T_REG clobber. + Split insns before reload. + (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi. + (negdi_cond): Reformat. Use emit_move_insn instead of a pair + of gen_movsi. Split insn before reload. + +2012-10-30 Oleg Endo + + PR target/53988 + * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero. + (*tst_t_zero): New insns. + * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes. + +2012-10-30 H.J. Lu + + * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca. + +2012-10-30 Jakub Jelinek + + PR debug/54953 + * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New. + * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after + even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE. + * dce.c (word_dce_process_block, dce_process_block): Pass + DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore + not going to be eliminated. + +2012-10-29 Lawrence Crowl + + * sbitmap.h (sbitmap_copy): Rename bitmap_copy. + (sbitmap_copy_n): Rename bitmap_copy_n. + (sbitmap_equal): Rename bitmap_equal_p. + (sbitmap_empty_p): Rename bitmap_empty_p. + (sbitmap_range_empty_p): Rename bitmap_range_empty_p. + (sbitmap_zero): Rename bitmap_clear. + (sbitmap_ones): Rename bitmap_ones. + (sbitmap_vector_zero): Rename bitmap_vector_clear. + (sbitmap_vector_ones): Rename bitmap_vector_ones. + (sbitmap_not): Rename bitmap_not. + (sbitmap_a_and_b_cg): Commented out. + (sbitmap_a_and_b): Rename bitmap_and. Add bool return. + (sbitmap_difference): Rename bitmap_and_compl. + (sbitmap_a_or_b_cg): Commented out. + (sbitmap_a_or_b): Rename bitmap_xor. Add bool return. + (sbitmap_a_xor_b_cg): Commented out. + (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return. + (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or. + (sbitmap_a_and_b_or_c): Commented out. + (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and. + (sbitmap_a_or_b_and_c): Commented out. + (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl. + (sbitmap_union_of_diff): Commented out. + (dump_sbitmap): Rename dump_bitmap. + (dump_sbitmap_file): Rename dump_bitmap_file. + (debug_sbitmap): Rename debug_bitmap. + (dump_sbitmap_vector): Rename dump_bitmap_vector. + (sbitmap_first_set_bit): Rename bitmap_first_set_bit. + (sbitmap_last_set_bit): Rename bitmap_last_set_bit. + (sbitmap_a_subset_b_p): Rename bitmap_subset_p. + (sbitmap_any_common_bits): Rename bitmap_intersect_p. + (#define sbitmap_free): Reimplement as inline function. + (#define sbitmap_vector_free): Reimplement as inline function. + * bitmap.h (#define bitmap_zero): Remove as redundant. + (#define bitmap_empty_p): Reimplement as inline function. + (#define dump_bitmap): Reimplement as inline function. + +2012-10-29 Jonathan Wakely + + PR c++/54930 + * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr. + +2012-10-29 H.J. Lu + + * lra-assigns.c: Remove trailing white spaces. + * lra-coalesce.c: Likewise. + * lra-constraints.c: Likewise. + * lra-eliminations.c: Likewise. + * lra-int.h: Likewise. + * lra-spills.c: Likewise. + * lra.c: Likewise. + +2012-10-29 Manuel López-Ibáñez + + PR c/53066 + * tree.h (FUNCTION_POINTER_TYPE_P): New. + +2012-10-29 Alexandre Oliva + + PR debug/54693 + * valtrack.c (dead_debug_insert_temp): Defer rescan of + newly-emitted debug insn. + +2012-10-29 Alexandre Oliva + + PR debug/54693 + * tree-ssa-threadedge.c (thread_around_empty_block): Copy + debug temps from predecessor before threading. + +2012-10-29 Alexandre Oliva + + PR debug/54551 + PR debug/54693 + * valtrack.c (dead_debug_global_find): Accept NULL dtemp. + (dead_debug_global_insert): Return new entry. + (dead_debug_global_replace_temp): Return early if REG is no + longer in place, or if dtemp was already substituted. + (dead_debug_promote_uses): Insert for all defs and replace all + debug uses at once. + (dead_debug_local_finish): Release used after promotion. + (dead_debug_insert_temp): Stop if dtemp is NULL. + +2012-10-29 Alexandre Oliva + + PR debug/54693 + * loop-unroll.c (loop_exit_at_end_p): Skip debug insns. + +2012-10-29 Alexandre Oliva + + PR debug/54693 + * config/i386/i386.c (add_parameter_dependencies): Stop + backward scan at the insn before the incoming head. + (ix86_dependencies_evaluation_hook): Skip debug insns. Stop + if first_arg is head. + +2012-10-29 Andrew Pinski + + * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto. + * config/aarch64/aarch64.c (aarch64_load_tp): Export. + (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin. + * config/aarch64/aarch64.h (aarch64_builtins): Delete + AARCH64_BUILTIN_THREAD_POINTER. + * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern. + +2012-10-29 Marc Glisse + + PR middle-end/55027 + * tree.c (real_zerop, real_onep, real_twop, real_minus_onep): + Handle VECTOR_CST. + +2012-10-29 Vladimir Makarov + + * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP. + +2012-10-29 Uros Bizjak + + * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg + for all addresses, zero-extended with AND. + +2012-10-29 Vladimir Makarov + + PR middle-end/55116 + * rtlanal.c (strip_address_mutation): Add SUBREG case. + +2012-10-29 Jan Hubicka + + * ipa-inline.c (want_inline_function_called_once_p): Rename to ... + (want_inline_function_to_all_callers_p): check also functions with + multiple callers. + (ipa_inline): Handle inlining for size into multiple callers. + +2012-10-29 Richard Guenther + + PR middle-end/53695 + * tracer.c (tracer): Fixup loop structure. + * cfgloopmanip.c (force_single_succ_latches): Add assert. + (fix_loop_structure): Re-compute loop latches and disambiguate + loops with multiple latches if required. + +2012-10-29 Uros Bizjak + + * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg + to check SImode equivalent of address, zero-extended with AND RTX. + * config/i386/i386.md (ashift to lea splitter): Split to SImode mult. + (simple lea to add/shift peephole2s): Remove peephole2s that operate + on subregs of DImode operations. + +2012-10-28 Vladimir Makarov + + PR rtl-optimization/55106 + * lra-constraints.c (skip_usage_debug_insns): New function. + (check_secondary_memory_needed_p): Ditto. + (inherit_reload_reg): Use the new functions. Improve debug output. + +2012-10-29 Jonathan Wakely + + * doc/cpp.texi (Search Path): Fix outdated C++ path. + +2012-10-28 Jan Hubicka + + * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle + &this->field expressions. + +2012-10-28 Vladimir Makarov + + * rtl.h (struct rtx_def): Add a comment for member unchanging. + * lra-int.h (LRA_TEMP_CLOBBER_P): New macro. + (lra_hard_reg_substitution): Rename to lra_final_code_change. + * lra-constraints.c (match_reload): Mark temporary clobbers. + * lra-spill.c (lra_hard_reg_substitution): Rename to + lra_final_code_change. Remove temporary clobbers. + * lra.c (lra): Rename to lra_final_code_change. + +2012-10-28 Jan Hubicka + + * ipa-inline.c (edge_badness): Fix overflow. + (inline_small_functions): Initialize SCCs correctly. + (do_estimate_edge_time, do_estimate_edge_hints): Skip self + recursive functions in SCC hints. + +2012-10-28 Steven Bosscher + + PR rtl-optimization/38711 + * ira.c (ira): Remove DF_LIVE if the problem is in the stack. + (do_reload): Add it back at the end for -O2 and higher. + + * function.c (thread_prologue_and_epilogue_insns): Use + REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and + reg_set_to_hard_reg_set. + +2012-10-28 Jan Hubicka + + * ipa-inline.c (edge_badness): Reduce precision; use scc hints. + (inline_small_functions): Fix dumps; update all callees after inlining. + * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New + constants. + (inline summary): Add SCC_NO. + * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints. + (reset_inline_summary): Reset scc_no. + (estimate_node_size_and_time): Set in_scc hint. + (do_estimate_edge_time): Add same_scc hint. + (do_estimate_edge_hints): Likewise. + +2012-10-28 Andreas Schwab + + * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table. + * doc/extend.texi: Likewise. + * doc/generic.texi: Likewise. + * doc/invoke.texi: Likewise. + * doc/md.texi: Likewise. + * doc/sourcebuild.texi: Likewise. + + * doc/tm.texi.in (Misc): Add newline before @end. + * doc/tm.texi: Update. + +2012-10-27 Joern Rennecke + + * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN. + +2012-10-27 Georg-Johann Lay + + PR target/55034 + * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest. + +2012-10-27 Oleg Endo + + PR target/55042 + * config/sh/sh.c (sh1_builtin_p): Comment out unused function. + +2012-10-27 Uros Bizjak + + * config/i386/i386.md (*lea): Remove unneeded temporary. + +2012-10-26 David S. Miller + + * config/sparc/constraints.md: Update unused letter list, move + "w" near other memory constraints. Remove no longer relevant + comment. + * doc/md.texi: Sync sparc constraint documentation with reality. + +2012-10-26 DJ Delorie + + * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow + reg+addend addresses for the _far namespace. + +2012-10-26 Segher Boessenkool + + * config/rs6000/sync.md (ATOMIC): Correct DI condition. + +2012-10-26 Jakub Jelinek + + PR debug/54970 + * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n] + as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR. + * tree-sra.c (create_access_replacement): Allow also MEM_REFs + with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions. + * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR + expressions. + * dwarf2out.c (add_var_loc_to_decl): Likewise. + +2012-10-26 Jeff Law + + * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt. + +2012-10-26 Gunther Nikl + + * common/config/m68k/m68k-common.c (m68k_handle_option): Set + gcc_options fields of opts_set for -m68020-40 and -m68020-60. + +2012-10-26 Teresa Johnson + + * ree.c (add_removable_extension): Remove unnecessary + mode check with other extension. + * testsuite/gcc.c-torture/execute/20111227-2.c: New test. + * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto. + +2012-10-26 Jan Hubicka + + * ipa-inline-transform.c (inline_call): Only account size changes + for !DECL_EXTERNAL. + +2012-10-26 Martin Jambor + + PR debug/54971 + * tree-sra.c (struct access): New flag grp_to_be_debug_replaced. + (dump_access): Dump the new flag. + (analyze_access_subtree): Set the new flag when appropriate. + (create_access_replacement): Handle debug replacements differently. + (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag. + (init_subtree_with_zero): Likewise. + (sra_modify_expr): Likewise. + (load_assign_lhs_subreplacements): Likewise. + (sra_modify_assign): Likewise. + +2012-10-23 Yuri Rumyantsev + + * config/i386/i386.c (insn_is_function_arg) : Add check on CALL + instruction. + (ix86_dependencies_evaluation_hook): Insert dependencies in all + predecessors of call block for non-trivial region avoiding creation + of loop-carried dependency to avoid cross-block motion of HW registers. + +2012-10-26 Richard Biener + + PR middle-end/54824 + * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable + at the end of blocks with no successors. + +2012-10-26 Alexander Ivchenko + Uros Bizjak + + * common/config/i386/i386-common.c + (OPTION_MASK_ISA_FXSR_SET): New. + (OPTION_MASK_ISA_XSAVE_SET): Likewise. + (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise. + (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options. + * config.gcc (i[34567]86-*-*): Add fxsrintrin.h, + xsaveintrin.h, xsaveoptintrin.h. + (x86_64-*-*): Likewise. + * config/i386/fxsrintrin.h: New header. + * config/i386/xsaveintrin.h: Likewise. + * config/i386/xsaveoptintrin.h: Likewise. + * config/i386/driver-i386.c (host_detect_local_cpu): Detect + FXSR/XSAVE/XSAVEOPT support. + * config/i386/i386-builtin-types.def + (VOID_FTYPE_PVOID_INT64): New function type. + * config/i386/i386-c.c: Define __FXSR__, __XSAVE__ + and __XSAVEOPT__ if needed. + * config/i386/i386.c (ix86_target_string): Define -mfxsr, + -mxsave and -mxsaveopt options. + (PTA_FXSR): New. + (PTA_XSAVE): Likewise. + (PTA_XSAVEOPT): Likewise. + (ix86_option_override_internal): Handle new option. + (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT. + (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr, + OPT_mxsave, OPT_mxsaveopt. + (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR, + IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64, + IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT, + IX86_BUILTIN_XSAVEOPT64. + (ix86_expand_builtin): Handle these built-ins. + * config/i386/i386.h (TARGET_FXSR): New. + (TARGET_XSAVE): Likewise. + (TARGET_XSAVEOPT): Likewise. + * config/i386/i386.md (ANY_XSAVE): New int iterator. + (ANY_XSAVE64): Likewise. + (xsave): New int attribute. + (fxsave): New instruction. + (fxsave64): Likewise. + (fxrstor): Likewise. + (fxrstor64): Likewise. + (): Likewise. + (_rex64): Likewise. + (xrstor): Likewise. + (xrstor_rex64): Likewise. + (xrstor64): Likewise. + * config/i386/i386.opt (mfxsr): New. + (mxsave): Likewise. + (mxsaveopt): Likewise. + * config/i386/x86intrin.h: Include + xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h. + +2012-10-26 Ralf Corsépius + + * config/avr/t-rtems: Revert previous commit. + +2012-10-26 Richard Sandiford + + PR bootstrap/55049 + * Makefile.in (rtlanal.o): Add dependency on addresses.h. + * rtl.h (address_info): New structure. + (strip_address_mutations, decompose_address, decompose_lea_address) + (decompose_mem_address, update_address, get_index_scale) + (get_index_code): Declare. + * rtlanal.c: Include addresses.h. + (strip_address_mutations, must_be_base_p, must_be_index_p) + (set_address_segment, set_address_base, set_address_index) + (set_address_disp, decompose_incdec_address, decompose_automod_address) + (extract_plus_operands, baseness, decompose_normal_address) + (decompose_address, decompose_lea_address, decompose_mem_address) + (update_address, get_index_scale, get_index_code): New functions. + * lra-constraints.c (strip_subreg): New function. + (address, extract_loc_address_regs, extract_address_regs) + (get_index_scale): Delete. + (process_addr_reg): Apply strip_subreg to the location. + (uses_hard_regs_p): Use decompose_mem_address. + (valid_address_p, base_plus_disp_to_reg, can_add_disp_p) + (equiv_address_substitution): Take an address_info rather + than an address. Remove other arguments. Avoid using Pmode. + (process_address): Use decompose_mem_address and decompose_lea_address. + Update calls to above functions. + +2012-10-26 Richard Sandiford + + * lra-constraints.c (process_address): Tighten arguments to + base_reg_class. Use simplify_gen_binary to generate PLUS rtxes. + +2012-10-26 Richard Sandiford + + * lra-constraints.c (get_index_scale, can_add_disp_p): New functions. + (equiv_address_substitution): Use them. + +2012-10-26 Richard Sandiford + + * lra-constraints.c (valid_address_p): New function, split out from... + (process_address): ...here. + +2012-10-26 Richard Sandiford + + * lra-constraints.c (process_address): Describe the kinds of address + that we might see. + +2012-10-25 Vladimir Makarov + + * lra-int.h (lra_assert): Redefine it gcc_checking_assert. + * lra-constraints.c (check_and_process_move): Remove #if + ENABLE_ASSERT_CHECKING. + +2012-10-26 Ralf Corsépius + + * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove + __USE_INIT_FINI__. + * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit. + +2012-10-25 David S. Miller + + * config/sparc/constraints.md ("U"): Delete. + * config/sparc/sparc.md: Use 'r' constraint instead of 'U'. + * config/sparc/sync.md: Likewise. + +2012-10-25 Lawrence Crowl + + * hash-table.h: Add usage documentation. + (template struct typed_free_remove): Clarify documentation. + Rename template parameter. + (struct typed_noop_remove): Likewise. + (descriptor concept): Change typedef T to value_type. + Add typedef compare_type. Use more precise template parameter name, + Descriptor instead of Descr. Update users to match. + (struct hash_table): Change 'find' parameters to use compare_type + instead of the value type. + +2012-10-25 Jan Hubicka + + * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned + to direct call update the summary. + * ipa-inline-transform.c (inline_call): Sanity check that summaries + match the predicted effect; fix updating of summary after edge + redirection. + * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try + to update the summary and recompute it instead. + (estimate_function_body_sizes): Fix self size estimation; double + check that it agrees with inline_update_overall_summary. + (estimate_edge_size_and_time): Handle devirtualizaiton costs. + (estimate_edge_devirt_benefit): Update to be called from + estimate_edge_size_and_time. + (estimate_calls_size_and_time): Update. + (estimate_node_size_and_time): Watch overflows. + (inline_merge_summary): Likewise. + * ipa-prob.c: Include ipa-inline.h + (ipa_make_edge_direct_to_target): After redirection update the summary. + +2012-10-25 Cary Coutant + + PR debug/55063 + * dwarf2out.c (prune_unused_types_prune): Check whether DIE is + already a declaration. + +2012-10-25 Vladimir Makarov + + * lra-assigns.c (assign_by_spills): Add non-reload pseudos + assigned to hard register to changed_pseudo_bitmap. + +2012-10-25 Ralf Corsépius + + * config.gcc (microblaze*-*-rtems*): New target. + * config/microblaze/rtems.h: New. + * config/microblaze/t-rtems: New. + +2012-10-25 Jan Hubicka + + PR tree-optimize/54980 + * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo. + (loop_edge_to_cancel): Be sure that the edge is from an conditional + so we can cancel it. + +2012-10-25 Marc Glisse + + PR c++/54427 + * tree.c (signed_or_unsigned_type_for): Handle vectors. + +2012-10-25 Jan Hubicka + + * ipa-inline.c (recursive_inlining): Redirect to master + clone before testing profitability. + +2012-10-25 Richard Biener + + PR tree-optimization/54902 + * tree-ssa-pre.c (fini_eliminate): Return TODO. + (do_pre): Adjust. + (execute_fre): Likewise. + * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable + blocks before computing dominators. + +2012-10-25 Richard Sandiford + + * expr.c (emit_block_move_via_loop): Use simplify_gen_binary + rather than gen_rtx_PLUS. + +2012-10-24 Vladimir Makarov + + PR bootstrap/55068 + PR regression/55050 + * ira.c (setup_reg_renumber): Fix assert. + * ira-emit.c (emit_move_list): Update equivalences only for LRA. + +2012-10-24 Vladimir Makarov + + PR bootstrap/55067 + * lra.c: Rename loc to sloc and loc_t to sloc_t. + +2012-10-24 Sharad Singhai + + * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p + instead of dump_kind_p. + +2012-10-24 Manuel López-Ibáñez + + PR c++/54928 + * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): + Use diagnostic_append_note. + * diagnostic.c (diagnostic_build_prefix): Make diagnostic const. + (default_diagnostic_finalizer): Do not destroy prefix here. + (diagnostic_report_diagnostic): Destroy it here. + (diagnostic_append_note): New. + * diagnostic.h (diagnostic_append_note): Declare. + +2012-10-24 Vladimir Makarov + + PR rtl-optimization/55055 + * lra-spills.c (alter_subregs): New function. + (lra_hard_reg_substitution): Use it. + +2012-10-24 Sharad Singhai + + * dumpfile.c (dump_enabled_p): Make it inline and move the definition + to dumpfile.h. + (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p. + Make alt_dump_file extern. + * dumpfile.h (dump_enabled_p): Move inline definition here. + (dump_kind_p): Delete declaration. + Add extern declaration of alt_dump_file. + * toplev.c: Move dump_file and dump_file_name to dumpfile.c. + * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with + dump_enabled_p. + * tree-vectorizer.c: Likewise. + * tree-vect-loop.c: Likewise. + * tree-vect-data-refs.c: Likewise. + * tree-vect-patterns.c: Likewise. + * tree-vect-stmts.c: Likewise. + * tree-vect-slp.c: Likewise. + +2012-10-24 Richard Sandiford + + * expmed.c (lowpart_bit_field_p): Add missing == 0 check. + +2012-10-24 Vladimir Makarov + + PR bootstrap/55049 + * lra-constraints.c (extract_loc_address_regs): Pass top_p for + ZERO_EXTEND operand. + +2012-10-24 Vladimir Makarov + + PR bootstrap/55048 + * lra-constraints.c (update_ebb_live_info): Skip + non-NOTE_INSN_BASIC_BLOCK notes. + +2012-10-24 Jakub Jelinek + + PR rtl-optimization/55010 + * cse.c (fold_rtx) : Call copy_rtx on folded_arg{0,1} + before passing it to simplify_relational_operation. + + PR debug/54828 + * gimple.h (is_gimple_sizepos): New inline function. + * gimplify.c (gimplify_one_sizepos): Use it. Remove useless + final assignment to expr variable. + * tree.c (RETURN_TRUE_IF_VAR): Return true also if + !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified + into a local temporary. + +2012-10-23 David S. Miller + + * config/sparc/constraints.md ("T", "W"): Change + definitions to use define_memory_constraint. Do not match 'reg'. + * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM + handling code, update comment. + +2012-10-23 Ian Lance Taylor + + * doc/extend.texi (Extended Asm): The '+' constraint does not + require a register. + +2012-10-23 Jeff Law + + * tree-ssa-threadedge.c (thread_across_edge): Remove unused + parameter in call to cond_arg_set_in_bb. + + * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused + debugging argument. + + PR tree-optimization/54985 + * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted + from thread_across_edge. + (thread_across_edge): Use it in all cases where we might thread + across a back edge. + +2012-10-23 Vladimir Makarov + + * lra-constraints.c (update_ebb_live_info): Process empty blocks. + +2012-10-23 Richard Sandiford + + * expmed.c (store_split_bit_field): Update the calls to + extract_fixed_bit_field. In the big-endian case, always + use the mode of OP0 to count the number of significant bits. + (extract_bit_field_1): Remove unit, offset, bitpos and + byte_offset from the outermost scope. Express conditions in terms + of bitnum rather than offset, bitpos and byte_offset. Move the + computation of MODE1 to the block that needs it. Use MODE unless + the TMODE-based mode_for_size calculation succeeds. Split the + plain move cases into two, one for memory accesses and one for + register accesses. Generalize the memory case, freeing it from + the old register-based endian checks. Move the INT_MODE calculation + above the code that needs it. Use simplify_gen_subreg to handle + multiword OP0s. If the field still spans several words, pass it + directly to extract_split_bit_field. Assume after that point + that both targets and register sources fit within a word. + Replace x-prefixed variables with non-prefixed forms. + Compute the bitpos for ext(z)v register operands directly in the + chosen unit size, rather than going through an intermediate + BITS_PER_WORD unit size. Simplify the containment check + used when forcing OP0 into a register. Update the call to + extract_fixed_bit_field. + (extract_fixed_bit_field): Replace the bitpos and offset parameters + with a single bitnum parameter, of the same form as extract_bit_field. + Assume that OP0 contains the full field. Simplify the memory offset + calculation and containment check for volatile bitfields. Make the + offset explicit when volatile bitfields force a misaligned access. + Remove WARNED and fix long lines. Assert that the processed OP0 + has an integral mode. + (store_split_bit_field): Update the call to store_fixed_bit_field. + +2012-10-23 Richard Sandiford + + * expmed.c (lowpart_bit_field_p): New function. + (store_bit_field_1): Remove unit, offset, bitpos and byte_offset + from the outermost scope. Express conditions in terms of bitnum + rather than offset, bitpos and byte_offset. Split the plain move + cases into two, one for memory accesses and one for register accesses. + Allow simplify_gen_subreg to fail rather than calling validate_subreg. + Move the handling of multiword OP0s after the code that coerces VALUE + to an integer mode. Use simplify_gen_subreg for this case and assert + that it succeeds. If the field still spans several words, pass it + directly to store_split_bit_field. Assume after that point that + both sources and register targets fit within a word. Replace + x-prefixed variables with non-prefixed forms. Compute the bitpos + for insv register operands directly in the chosen unit size, rather + than going through an intermediate BITS_PER_WORD unit size. + Update the call to store_fixed_bit_field. + (store_fixed_bit_field): Replace the bitpos and offset parameters + with a single bitnum parameter, of the same form as store_bit_field. + Assume that OP0 contains the full field. Simplify the memory offset + calculation. Assert that the processed OP0 has an integral mode. + (store_split_bit_field): Update the call to store_fixed_bit_field. + +2012-10-23 Paul Koning + + PR debug/54508 + * dwarf2out.c (prune_unused_types_prune): If pruning a class and + not all its children were marked, add DW_AT_declaration flag. + +2012-10-23 Ian Bolton + James Greenhalgh + Jim MacArthur + Marcus Shawcroft + Nigel Stephens + Ramana Radhakrishnan + Richard Earnshaw + Sofiane Naci + Stephen Thomas + Tejas Belagod + Yufeng Zhang + + * config.gcc: Add AArch64. + * configure.ac: Add AArch64 TLS support detection. + * configure: Regenerate. + +2012-10-23 Ian Bolton + James Greenhalgh + Jim MacArthur + Chris Schlumberger-Socha + Marcus Shawcroft + Nigel Stephens + Ramana Radhakrishnan + Richard Earnshaw + Sofiane Naci + Stephen Thomas + Tejas Belagod + Yufeng Zhang + + * doc/invoke.texi (AArch64 Options): New. + * doc/md.texi (Machine Constraints): Add AArch64. + +2012-10-23 Ian Bolton + James Greenhalgh + Jim MacArthur + Chris Schlumberger-Socha + Marcus Shawcroft + Nigel Stephens + Ramana Radhakrishnan + Richard Earnshaw + Sofiane Naci + Stephen Thomas + Tejas Belagod + Yufeng Zhang + + * common/config/aarch64/aarch64-common.c: New file. + * config/aarch64/aarch64-arches.def: New file. + * config/aarch64/aarch64-builtins.c: New file. + * config/aarch64/aarch64-cores.def: New file. + * config/aarch64/aarch64-elf-raw.h: New file. + * config/aarch64/aarch64-elf.h: New file. + * config/aarch64/aarch64-generic.md: New file. + * config/aarch64/aarch64-linux.h: New file. + * config/aarch64/aarch64-modes.def: New file. + * config/aarch64/aarch64-option-extensions.def: New file. + * config/aarch64/aarch64-opts.h: New file. + * config/aarch64/aarch64-protos.h: New file. + * config/aarch64/aarch64-simd.md: New file. + * config/aarch64/aarch64-tune.md: New file. + * config/aarch64/aarch64.c: New file. + * config/aarch64/aarch64.h: New file. + * config/aarch64/aarch64.md: New file. + * config/aarch64/aarch64.opt: New file. + * config/aarch64/arm_neon.h: New file. + * config/aarch64/constraints.md: New file. + * config/aarch64/gentune.sh: New file. + * config/aarch64/iterators.md: New file. + * config/aarch64/large.md: New file. + * config/aarch64/predicates.md: New file. + * config/aarch64/small.md: New file. + * config/aarch64/sync.md: New file. + * config/aarch64/t-aarch64-linux: New file. + * config/aarch64/t-aarch64: New file. + +2012-10-23 Michael Matz + + * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove. + (ssa_operands.free_defs): Remove. + (DEF_OP_PTR, DEF_OP): Remove. + (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members, + rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'. + * gimple.h (gimple_statement_with_ops.def_ops): Remove. + (gimple_def_ops, gimple_set_def_ops): Remove. + (gimple_vdef_op): Don't take const gimple, adjust. + (gimple_asm_input_op, gimple_asm_input_op_ptr, + gimple_asm_set_input_op, gimple_asm_output_op, + gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts, + and rewrite to move def operands to front. + (gimple_asm_clobber_op, gimple_asm_set_clobber_op, + gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts. + * tree-ssa-operands.c (build_defs): Remove. + (init_ssa_operands): Don't initialize it. + (fini_ssa_operands): Don't free it. + (cleanup_build_arrays): Don't truncate it. + (finalize_ssa_stmt_operands): Don't assert on it. + (alloc_def, add_def_op, append_def): Remove. + (finalize_ssa_defs): Remove building of def_ops list. + (finalize_ssa_uses): Don't mark for SSA renaming here, ... + (add_stmt_operand): ... but here, don't call append_def. + (get_indirect_ref_operands): Remove recurse_on_base argument. + (get_expr_operands): Adjust call to get_indirect_ref_operands. + (verify_ssa_operands): Don't check def operands. + (free_stmt_operands): Don't free def operands. + * gimple.c (gimple_copy): Don't clear def operands. + * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely + handle def operand. + (op_iter_next_tree, op_iter_next_def): Ditto. + (clear_and_done_ssa_iter): Clear new fields. + (op_iter_init): Adjust to setup new iterator structure. + (op_iter_init_phiuse): Adjust. + +2012-10-23 Greta Yorsh + + * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1. + +2012-10-23 Vladimir Makarov + + * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg. + * dwarf2out.c: Include ira.h and lra.h. + (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use + lra_eliminate_regs for LRA instead of eliminate_regs. + * expr.c (emit_move_insn_1): Pass an additional argument to + emit_move_via_integer. Use emit_move_via_integer for LRA only if + the insn is recognized. + * emit-rtl.c (gen_rtx_REG): Add lra_in_progress. + (validate_subreg): Don't check offset for LRA and floating point modes. + * final.c (final_scan_insn, cleanup_subreg_operands): Pass new + argument to alter_subreg. + (walk_alter_subreg, output_operand): Ditto. + (alter_subreg): Add new argument. + * gcse.c (calculate_bb_reg_pressure): Add parameter to + ira_setup_eliminable_regset call. + * ira.c: Include lra.h. + (ira_init_once, ira_init, ira_finish_once): Call lra_start_once, + lra_init, lra_finish_once in anyway. + (ira_setup_eliminable_regset): Add parameter. Remove need_fp. + Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as + living forever if frame_pointer_needed. + (setup_reg_class_relations): Set up ira_reg_class_subset. + (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove. + (find_reg_equiv_invariant_const): Ditto. + (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of + ira_reg_equiv_invariant_p. Skip caps for LRA. + (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New + functions. + (ira_reg_equiv_len, ira_reg_equiv): New externals. + (ira_reg_equiv): New. + (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New + functions. + (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of + reg_equiv_init. + (setup_reg_equiv): New function. + (ira_use_lra_p): New global. + (ira): Set up lra_simple_p and ira_conflicts_p. Set up and + restore flag_caller_saves and flag_ira_region. Move + initialization of ira_obstack and ira_bitmap_obstack upper. Call + init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead + of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p, + and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a + new argument. Don't flatten IRA IRA for LRA. Don't reassign + conflict allocnos for LRA. Call finish_reg_equiv. + (do_reload): Prepare code for LRA call. Call LRA. + * ira.h (ira_use_lra_p): New external. + (struct target_ira): Add members x_ira_class_subset_p + x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p. + (ira_class_subset_p, ira_reg_class_subset): New macros. + (ira_reg_classes_intersect_p): New macro. + (struct ira_reg_equiv): New. + (ira_setup_eliminable_regset): Add an argument. + (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New + prototypes. + * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos): + Use ira_equiv_no_lvalue_p. + (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto. + * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv. + (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p. + (emit_move_list): Simplify code. Call + ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead + of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert. + * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p + and x_ira_reg_classes_intersect_p. + (ira_class_subset_p, ira_reg_classes_intersect_p): Remove. + (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto. + (ira_reg_equiv_const): Ditto. + (ira_equiv_no_lvalue_p): New function. + * jump.c (true_regnum): Always use hard_regno for subreg_get_info + when lra is in progress. + * haifa-sched.c (sched_init): Pass new argument to + ira_setup_eliminable_regset. + * loop-invariant.c (calculate_loop_reg_pressure): Pass new + argument to ira_setup_eliminable_regset. + * lra.h: New. + * lra-int.h: Ditto. + * lra.c: Ditto. + * lra-assigns.c: Ditto. + * lra-constraints.c: Ditto. + * lra-coalesce.c: Ditto. + * lra-eliminations.c: Ditto. + * lra-lives.c: Ditto. + * lra-spills.c: Ditto. + * Makefile.in (LRA_INT_H): New. + (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o, + lra-eliminations.o, lra-lives.o, and lra-spills.o. + (dwarf2out.o): Add dependence on ira.h and lra.h. + (ira.o): Add dependence on lra.h. + (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries. + (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto. + * output.h (alter_subreg): Add new argument. + * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA. + Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA. + * recog.c (general_operand, register_operand): Accept paradoxical + FLOAT_MODE subregs for LRA. + (scratch_operand): Accept pseudos for LRA. + * rtl.h (lra_in_progress): New external. + (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes. + (debug_rtl_slim, debug_insn_slim): Ditto. + * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg. + * sched-vis.c (print_value_slim): New. + * target.def (lra_p): New hook. + (register_priority): Ditto. + (different_addr_displacement_p): Ditto. + (spill_class): Ditto. + * target-globals.h (this_target_lra_int): New external. + (target_globals): New member lra_int. + (restore_target_globals): Restore this_target_lra_int. + * target-globals.c: Include lra-int.h. + (default_target_globals): Add &default_target_lra_int. + * targhooks.c (default_lra_p): New function. + (default_register_priority): Ditto. + (default_different_addr_displacement_p): Ditto. + * targhooks.h (default_lra_p): Declare. + (default_register_priority): Ditto. + (default_different_addr_displacement_p): Ditto. + * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New. + (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New. + * config/arm/arm.c (load_multiple_sequence): Pass new argument to + alter_subreg. + (store_multiple_sequence): Ditto. + * config/i386/i386.h (enum ix86_tune_indices): Add + X86_TUNE_GENERAL_REGS_SSE_SPILL. + (TARGET_GENERAL_REGS_SSE_SPILL): New macro. + * config/i386/i386.c (initial_ix86_tune_features): Set up + X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7. + (ix86_lra_p, ix86_register_priority): New functions. + (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG. + (inline_secondary_memory_needed): Change assert. + (ix86_spill_class): New function. + (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros. + * config/m68k/m68k.c (emit_move_sequence): Pass new argument to + alter_subreg. + * config/m32r/m32r.c (gen_split_move_double): Ditto. + * config/pa/pa.c (pa_emit_move_sequence): Ditto. + * config/sh/sh.md: Ditto. + * config/v850/v850.c (v850_reorg): Ditto. + * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto. + * doc/md.texi: Add new interpretation of hint * for LRA. + * doc/passes.texi: Describe LRA pass. + * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY, + TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS. + * doc/tm.texi: Update. + +2012-10-23 Jan Hubicka + + * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even + with simple loops; bound number of branches only when FDO is not + available. + (decide_unroll_stupid): Mention that num_loop_branches heuristics + is off. + +2012-10-23 Nick Clifton + + PR target/54660 + * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress + compile time warning about pointer printing. + +2012-10-23 Joseph Myers + + * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | + *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use + glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in + tmake_file. Set target_has_targetcm. + (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and + cxx_target_objs rather than overriding previous value. + * config/glibc-c.c, config/t-glibc: New. + * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook. + * doc/tm.texi: Regenerate. + * hooks.c (hook_constcharptr_void_null): New. + * hooks.h (hook_constcharptr_void_null): Declare. + +2012-10-23 Eric Botcazou + + * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define. + (STACK_CHECK_PROTECT): Likewise. + * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise. + (MIPS_PROLOGUE_TEMP2): Likewise. + * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare. + * config/mips/mips.c: Include common/common-target.h. + (mips_emit_probe_stack_range): New function. + (mips_output_probe_stack_range): Likewise. + (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static + builtin stack checking is enabled. + * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant. + (probe_stack_range_): New insn. + +2012-10-23 Marc Glisse + + * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors. + * fold-const.c (fold_relational_const): Handle VECTOR_CST. + * doc/generic.texi (VEC_COND_EXPR): Document current policy. + +2012-10-23 Jan Hubicka + + PR middle-end/54937 + * tree-ssa-loop-niter.c (record_estimate): Do not try to lower + the bound of non-is_exit statements. + (maybe_lower_iteration_bound): Do it here. + (estimate_numbers_of_iterations_loop): Call it. + +2012-10-23 Jan Hubicka + + PR middle-end/54967 + * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated; + track basic blocks that moved out of their loops. + (unloop): Likewise. + (remove_path): Update. + (fix_loop_placements): Update. + * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add + loop_closed_ssa_invalidated parameter; pass it around. + (canonicalize_loop_induction_variables): Update loop closed + SSA form if needed. + (tree_unroll_loops_completely): Likewise; do irred update out of + the outer loop; verify that SSA form is closed. + * cfgloop.h (unrloop): Update. + +2012-10-23 Terry Guo + + PR target/55019 + * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with + live argument regs. + +2012-10-23 Hans-Peter Nilsson + + PR middle-end/55030 + Revert: + * stmt.c (expand_nl_goto_receiver): Remove almost-copy of + expand_builtin_setjmp_receiver. + (expand_label): Adjust, call expand_builtin_setjmp_receiver + with NULL for the label parameter. + * builtins.c (expand_builtin_setjmp_receiver): Don't clobber + the frame-pointer. Adjust comments. + [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver + only if LABEL is non-NULL. + +2012-10-22 Bill Schmidt + + PR tree-optimization/55008 + * gimple-ssa-strength-reduction.c (find_basis_for_candidate): + Don't allow a candidate to be a basis for itself under another + interpretation. + +2012-10-22 Sharad Singhai + + * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update + all callers. + (dump_enabled_p): A new function to check if any of the dump files + is available. + (dump_kind_p): Remove check for current_function_decl. Add check for + dumpfile and alt_dump_file. + * dumpfile.h: Add declaration of dump_enabled_p. + +2012-10-22 Richard Biener + + PR lto/55021 + * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove + bogus truncations. + +2012-10-22 Uros Bizjak + + * config/i386/i386.c (memory_address_length): Assert that non-null + base or index RTXes are registers. Do not check for REG RTXes. + Determine addr32 prefix using SImode_address_operand or + from original base and index RTXes. Simplify code. + +2012-10-22 Richard Biener + + PR tree-optimization/55011 + * tree-vrp.c (update_value_range): For invalid lattice transitions + drop to VARYING. + +2012-10-22 Julian Brown + + * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing + VFP D registers in big-endian mode. + +2012-10-22 Georg-Johann Lay + + * doc/invoke.texi (AVR Options): Document __AVR_ARCH__. + Note __AVR___ is not defined for cores. + Don't point to --help=target. + +2012-10-22 Sameera Deshpande + Greta Yorsh + + * config/arm/arm.c (thumb2_emit_ldrd_pop): New function. + (arm_expand_epilogue): Use the new function. + +2012-10-22 Sameera Deshpande + Greta Yorsh + + * config/arm/arm.c (thumb2_emit_strd_push): New function. + (arm_expand_prologue): Use the new function. + +2012-10-22 Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration. + (operands_ok_ldrd_strd): Likewise. + * config/arm/arm.c (offset_ok_for_ldrd_strd): New function. + (operands_ok_ldrd_strd): Likewise. + * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns. + (thumb2_ldrd_base_neg): Likewise. + (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise. + * predicates.md (ldrd_strd_offset_operand): New predicate. + * config/arm/constraints.md (Do): New constraint. + +2012-10-22 Hans-Peter Nilsson + + * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the + frame-pointer as an operand. + ("*nonlocal_goto_receiver_expanded"): Ditto. Use + mmix_output_register_setting instead of naked output_asm_insn for + the offset from the frame-pointer to the saved rO. + * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for + values -255..0. + * config/mmix/predicates.md ("frame_pointer_operand"): New. + * config/mmix/constraints.md ("Yf"): New. + + * stmt.c (expand_nl_goto_receiver): Remove almost-copy of + expand_builtin_setjmp_receiver. + (expand_label): Adjust, call expand_builtin_setjmp_receiver + with NULL for the label parameter. + * builtins.c (expand_builtin_setjmp_receiver): Don't clobber + the frame-pointer. Adjust comments. + [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver + only if LABEL is non-NULL. + +2012-10-21 Uros Bizjak + + * config/i386/i386-protos.h (memory_address_length): Add new bool + argument. Update all uses. + * config/i386/i386.c (memory_address_length): If not LEA insn, then + add length of addr32 prefix based on mode of base or index register. + (ix86_attr_length_address_default) : Do not handle SImode + addresses here. Update call to memory_address_length. + (ix86_print_address_operand): Use SImode_address_operand predicate. + * config/i386/predicates.md (SImode_address_operand): New. + * config/i386/i386.md (lea): Use SImode_address_operand + to calculate "mode" attribute. Use SImode_address_operand predicate + instead of open-coding accepted RTX codes. + +2012-10-21 Joern Rennecke + + * rtl.def (ADDR_DIFF_VEC): Fix comment typo. + +2012-10-21 Eric Botcazou + + PR rtl-optimization/44194 + * calls.c (expand_call): Allow sibling calls in the PARALLEL case. + +2012-10-21 Tobias Burnus + + PR fortran/54725 + * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New. + +2012-10-21 Chung-Lin Tang + + * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg' + variable. + +2012-10-20 Eric Botcazou + + PR rtl-optimization/54315 + * calls.c (expand_call): Don't deal specifically with BLKmode values + returned in naked registers. + * expr.h (copy_blkmode_from_reg): Adjust prototype. + * expr.c (copy_blkmode_from_reg): Rename first parameter into + TARGET and make it required. Assert that SRCREG hasn't BLKmode. + Add a couple of short-circuits for common cases and be prepared + for sub-word registers. + (expand_assignment): Call copy_blkmode_from_reg for BLKmode values + returned in naked registers. + (store_expr): Likewise. + (store_field): Likewise. + +2012-10-20 Jan Hubicka + + * loop-unroll.c (decide_unroll_constant_iterations): Don't + perform unrolling for loops with low iterations bounds or estimates. + +2012-10-20 Jan Hubicka + + * loop-iv.c (iv_number_of_iterations): Record the upper bound + only if there are no further conditions on it. + +2012-10-20 Manuel López-Ibáñez + + PR c/53063 + PR c/40989 + * opts.c (finish_options): Remove explicit handling from here. + +2012-10-20 Joern Rennecke + Richard Sandiford + + * emit-rtl.c (copy_delay_slot_insn): New function. + * emit-rtl.h (copy_delay_slot_insn): Declare. + * reorg.c: Include "emit-rtl.h". + (steal_delay_list_from_target): Use copy_delay_slot_insn. + (fill_slots_from_thread, fill_simple_delay_slots): Likewise. + + * final.c (shorten_branches): When optimizing, start with small + length and increase from there, and don't decrease lengths. + +2012-10-19 Jan Hubicka + + * builtins.def (BUILT_IN_UNREACHABLE): Make + ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST. + * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define. + +2012-10-19 Michael Meissner + Dominique Dhumieres + + * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume + OPTION_MASK_STRICT_ALIGN is defined. + (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined, + define this to 0 for the 3 ports that use it. + + * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do + check for ports not having -mstrict-align here, move test to + rs6000-cpus.def. + (MASK_STRICT_ALIGN): Likewise. + (rs6000_debug_reg_global): Print out correct target flag words if + -mdebug=reg. + +2012-10-19 Marek Polacek + + PR middle-end/54945 + * fold-const.c (fold_sign_changed_comparison): Punt if folding + pointer/non-pointer comparison. + +2012-10-19 Greta Yorsh + + * doc/sourcebuild.texi (Effective-Target Keywords): Document + new effective target keyword arm_prefer_ldrd_strd. + +2012-10-19 Richard Guenther + + PR tree-optimization/54981 + * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): + Do not consider debug stmts as uses. + +2012-10-19 Richard Biener + + PR tree-optimization/54976 + * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): + Robustify against odd inner_mode inputs. + +2012-10-19 Zhenqiang Chen + + PR target/54892 + * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make + sure the mode is correct when falling through from above cases. + +2012-10-19 Bin Cheng + + * common.opt (flag_ira_hoist_pressure): New. + * doc/invoke.texi (-fira-hoist-pressure): Describe. + * ira-costs.c (ira_set_pseudo_classes): New parameter. + * ira.h: Update copyright dates. + (ira_set_pseudo_classes): Update prototype. + * haifa-sched.c (sched_init): Update call. + * ira.c (ira): Update call. + * regmove.c: Update copyright dates. + (regmove_optimize): Update call. + * loop-invariant.c: Update copyright dates. + (move_loop_invariants): Update call. + * gcse.c: (struct bb_data): New structure. + (BB_DATA): New macro. + (curr_bb, curr_reg_pressure): New static variables. + (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p. + Change parameter expr_index to expr. + New parameters pressure_class, nregs and hoisted_bbs. + Use reg pressure to determine the distance expr can be hoisted. + (hoist_code): Use reg pressure to direct the hoist process. + (get_regno_pressure_class, get_pressure_class_and_nregs) + (change_pressure, calculate_bb_reg_pressure): New. + (one_code_hoisting_pass): Calculate register pressure. Allocate + and free data. + +2012-10-19 Bin Cheng + + * gcse.c: Update copyright dates. + (hoist_expr_reaches_here_p): Change parameter type from char * + to sbitmap. + +2012-10-19 Sebastian Huber + + * config.gcc + (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename + "arm*-*-rtemseabi*" to "arm*-*-rtems*". + +2012-10-19 Alan Modra + + * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold. + (HAVE_LD_LARGE_TOC): Likewise. + * configure: Regenerate. + +2012-10-19 Alan Modra + + * config/rs6000/predicates.md (splat_input_operand): Don't call + input_operand for MEMs. Instead check for volatile and call + memory_address_addr_space_p with modified mode. + +2012-10-18 Uros Bizjak + + * config/i386/i386.md (rdpmc): Remove expander. + (rdtsc): Ditto. + (rdtscp): Ditto. + (rdpmc): Rename from *rdpmc. + (rdpmc_rex64): Rename from *rdpmc_rex64. + (rdtsc): Rename from *rdtsc. + (rdtsc_rex64): Rename from *rdtsc_rex64. + (rdtscp): Rename from *rdtscp. + (rdtscp_rex64): Rename from *rdtscp_rex64. + + * config/i386/i386.c (struct builtin_description bdesc_special_args) + : Use CODE_FOR_NOTHING. + : Ditto. + (struct builtin_description bdesc__args) : Ditto. + (ix86_expand_builtin) : Handle here. + +2012-10-18 Jan-Benedict Glaw + + * config/sh/sh.c: Fix comment to silence warning. + +2012-10-18 Matthew Gretton-Dann + Ramana Radhakrishnan + Sameera Deshpande + + * config/arm/cortex-a15-neon.md: New file. + * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation. + (cortex_a15_load1): Likewise. + (cortex_a15_load3): Likewise. + (cortex_a15_store1): Likewise. + (cortex_a15_store3): Likewise. + (cortex-a15-neon.md): Include. + +2012-10-18 Segher Boessenkool + + * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode. + (altivec_vsumsws_nomode): Delete. + (reduc_splus_, reduc_uplus_): Call gen_altivec_vsumsws + instead of gen_altivec_vsumsws_nomode. + (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode. + * config/rs6000/rs6000.md (probe_stack): Rename to... + (probe_stack_): ... this. Add mode. Change pattern to + use std instead of stw when appropriate. + (probe_stack): New expander. + (move_from_CR_ov_bit): Add mode. + (splitter for compare_plus_ne0_, splitter for + compare_plus_ne0__1): Remove constraints. + * config/rs6000/sync.md (loadsync): Rename to... + (loadsync_): ... this. Add mode. + (atomic_load): Adjust. + +2012-10-18 Eric Botcazou + + * loop-invariant.c: Include target.h. + (check_dependency): Return false for an uninitialized argument register + that is likely to be spilled. + * Makefile.in (loop-invariant.o): Add $(TARGET_H). + +2012-10-18 Eric Botcazou + + * except.c (sjlj_emit_function_enter): Remove unused variable. + +2012-10-18 Matthew Gretton-Dann + Ramana Radhakrishnan + + * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins. + * config/arm/neon-docgen.ml (intrinsic_groups): Add + fused-multiply-* groups. + * config/neon-gen.ml (print_feature_test_start): New function. + (print_feature_test_end): Likewise. + (print_variant): Print feature test macros. + * config/arm/neon-testgen.ml (emit_prologue): Allow different + tests to require different effective targets. + (effective_target): New function. + (test_intrinsic): Specify correct effective targets. + * config/arm/neon.md (fma4_intrinsic): New pattern. + (fmsub4_intrinsic): Likewise. + (neon_vfma): New expand. + (neon_vfms): Likewise. + * config/neon.ml (opcode): Add Vfma and Vfms. + (features): Add Requires_feature. + (ops): Add VFMA and VFMS intrinsics. + * config/arm/arm_neon.h: Regenerate. + * doc/arm-neon-intrinsics.texi: Likewise. + +2012-10-18 Richard Guenther + + * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst. + * lto-streamer-in.c (lto_input_tree): Use it. + * lto-streamer-out.c (lto_output_tree): Likewise, for + !TREE_OVERFLOW integer constants only. + * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function. + (unpack_value_fields): Call it. + (streamer_read_integer_cst): Simplify. + * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function. + (streamer_pack_tree_bitfields): Call it. + (streamer_write_integer_cst): Adjust. + +2012-10-18 Matthew Gretton-Dann + Ramana Radhakrishnan + + * config.gcc: Add support for ARMv8 for arm*-*-* targets. + * config/arm/arm-arches.def: Add armv8-a + * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8, + crypto-neon-fp-armv8. Add crypto field. + * config/arm/arm-tables.opt: Regenerate. + * config/arm/arm.c (FL_FOR_ARCH8A): Likewise. + (arm_arch8): New global variable. + (ARM_FPU): Add crypto parameter. + (arm_option_override): Set arm_arch8, update comments. + * config/arm/arm.h (TARGET_CRYPTO): New macro. + (arm_fpu_desc): Add crypto field. + (base_architecture): Add ARMv8 entry. + (arm_arch8): New variable declaration. + * config/arm/bpabi.h: ARMv8 supports BE8. + * doc/invoke.texi: Document ARMv8 options. + +2012-10-17 Aldy Hernandez + + PR middle-end/54893 + * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed + transactions. + +2012-10-17 Aldy Hernandez + + PR rtl-optimization/54900 + * ifcvt.c (noce_can_store_speculate_p): Call + memory_must_be_modified_in_insn_p. + * alias.c (memory_must_be_modified_in_insn_p): New. + (set_dest_equal_p): New. + * rtl.h (memory_must_be_modified_in_p): Protoize. + +2012-10-17 Michael Meissner + + * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to + replace target_flags that gives us 63 possible switches. + (x_rs6000_isa_flags): Save area for rs6000_isa_flags. + (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit. + (rs6000_target_flags_explicit): Delete in favor of + x_rs6000_isa_flags_explicit. + (-mpowerpc64): Change all switches that used to be in target_flags + to now be in rs6000_isa_flags. In using rs6000_isa_flags, the + options machinary will generate names of the form OPITON_ + instead of TARGET_ and OPTION_MASK_ instead of MASK_. + (-mpowerpc-gpopt): Likewise. + (-mpowerpc-gfxopt): Likewise. + (-mmfcrf): Likewise. + (-mpopcntb): Likewise. + (-mfprnd): Likewise. + (-mcmpb): Likewise. + (-mmfpgpr): Likewise. + (-maltivec): Likewise. + (-mhard-dfp): Likewise. + (-mmulhw): Likewise. + (-mdlmzb): Likewise. + (-mmultiple): Likewise. + (-mstring): Likewise. + (-msoft-float): Likewise. + (-mhard-float): Likewise. + (-mpopcntd): Likewise. + (-mvsx): Likewise. + (-mno-update): Likewise. + (-mupdate): Likewise. + (-mrecip-precision): Likewise. + (-mminimal-toc): Likewise. + (-misel): Likewise. + * config/rs6000/aix64.opt (-maix64): Likewise. + (-maix32): Likewise. + * config/rs6000/sysv4.opt (-mstrict-align): Likewise. + (-mrelocatable): Likewise. + (-mlittle-endian): Likewise. + (-mlittle): Likewise. + (-mbig-endian): LIkewise. + (-mbig): Likewise. + (-meabi): Likewise. + (-m64): Likewise. + (-m32): Likewise. + * config/rs6000/darwin.opt (-m64): Likewise. + (-m32): Likewise. + + * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various + masks used in rs6000.c here, since they are more logically in this + file. Convert from being enums to just #defines, since the types + of these masks is now HOST_WIDE_INT instead of int. For + POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed + in the mask. Change the use in rs6000.c not to do the OR of + MASK_SOFT_FLOAT. + (ISA_2_1_MASKS): Likewise. + (ISA_2_2_MASKS): Likewise. + (ISA_2_4_MASKS): Likewise. + (ISA_2_5_MASKS_EMBEDDED): Likewise. + (ISA_2_5_MASKS_SERVER): Likewise. + (POWERPC_7400_MASK): Likewise. + (POWERPC_MASKS): Likewise. + * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise. + (ISA_2_1_MASKS): Likewise. + (ISA_2_2_MASKS): Likewise. + (ISA_2_4_MASKS): Likewise. + (ISA_2_5_MASKS_EMBEDDED): Likewise. + (ISA_2_5_MASKS_SERVER): Likewise. + (POWERPC_7400_MASK): Likewise. + (POWERPC_MASKS): Likewise. + (rs6000_option_override_internal): Likewise. + + * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change + all uses of target_flags to rs6000_isa_flags. Change all uses of + target_flags_explicit to rs6000_isa_flags_explicit. Change the + use of MASK_ to OPTION_MASK_ that options.h defines when + we use a secondary flags word. Save/restore/print the new flags + word when switching contexts with different target attributes. + (rs6000_option_override_internal): Likewise. + (rs6000_darwin_file_start): Likewise. + (rs6000_opt_masks): Likewise. + (rs6000_inner_target_options): Likewise. + (rs6000_pragma_target_parse): Likewise. + (rs6000_set_current_function): Likewise. + (rs6000_function_specific_save): Likewise. + (rs6000_function_specific_restore): Likewise. + (rs6000_function_specific_print): Likewise. + (rs6000_can_inline_p): Likewise. + * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise. + (rs6000_cpu_cpp_builtins): Likewise. + * common/config/rs6000/rs6000-driver.c (rs6000_handle_option): + Likewise. + + * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using + Var(...) for all of the isa switches, the options machinery now + uses OPTION_MASK_ instead of MASK_ for the mask name. + Use #define to map the old name into the new name. For switches + that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do + the definition if those switches were defined. + (MASK_ALTIVEC): Likewise. + (MASK_CMPB): Likewise. + (MASK_DFP): Likewise. + (MASK_DLMZB): Likewise. + (MASK_EABI): Likewise. + (MASK_FPRND): Likewise. + (MASK_HARD_FLOAT): Likewise. + (MASK_ISEL): Likewise. + (MASK_MFCRF): Likewise. + (MASK_MFPGPR): Likewise. + (MASK_MULHW): Likewise. + (MASK_MULTIPLE): Likewise. + (MASK_NO_UPDATE): Likewise. + (MASK_POPCNTB): Likewise. + (MASK_POPCNTD): Likewise. + (MASK_PPC_GFXOPT): Likewise. + (MASK_PPC_GPOPT): Likewise. + (MASK_RECIP_PRECISION): Likewise. + (MASK_SOFT_FLOAT): Likewise. + (MASK_STRICT_ALIGN): Likewise. + (MASK_STRING): Likewise. + (MASK_UPDATE): Likewise. + (MASK_VSX): Likewise. + (MASK_POWERPC64): Likewise. + (MASK_64BIT): Likewise. + (MASK_RELOCATABLE): Likewise. + (MASK_LITTLE_ENDIAN): Likewise. + (MASK_MINIMAL_TOC): Likewise. + (MASK_REGNAMES): Likewise. + (MASK_PROTOTYPE): Likewise. + (rs6000_isa_flags_explicit): Define in terms of the + global_options_set structure. + + * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): + Change use of target_flags to rs6000_isa_flags, target_flags_explicit + to rs6000_isa_flags_explicit, and MASK_ to OPTION_MASK_. + * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. + * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. + * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. + * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. + * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise. + (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise. + * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise. + * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise. + (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise. + (OPTION_LITTLE_ENDIAN): Likewise. + (OPTION_RELOCATABLE): Likewise. + (OPTION_EABI): Likewise. + (OPTION_PROTOTYPE): Likewise. + * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise. + * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise. + (OPT_ARCH32): Likewise. + (OPT_ARCH64): Likewise. + * config/rs6000/sysv4.h (TARGET_TOC): Likewise. + (SUBTARGET_OVERRIDE_OPTIONS): Likewise. + (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise. + (TARGET_OS_SYSV_CPP_BUILTINS): Likewise. + + * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a + dependency. + +2012-10-17 Jan Hubicka + + * cfgloopmanip.c (copy_loop_info): New function. + (duplicate_loop): Use it. + (loop_version): Use it. + * loop-unswitch.c (unswitch_loop): Use it. + * cfgloop.h (copy_loop_info): Declare. + +2012-10-17 Jan Hubicka + + * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel + parameter and use it to estimate code optimized out in the final + iteration. + (loop_edge_to_cancel): New function. + (try_unroll_loop_completely): New IRRED_IVALIDATED parameter; + handle unrolling loops with bounds given via max_loop_iteratins; + handle unrolling non-inner loops when code size shrinks; + tidy dump output; when the last iteration loop still stays + as loop in the CFG forcongly redirect the latch to + __builtin_unreachable. + (canonicalize_loop_induction_variables): Add irred_invlaidated + parameter; record niter bound derrived; dump + max_loop_iterations bounds; call try_unroll_loop_completely + even if no niter bound is given. + (canonicalize_induction_variables): Handle irred_invalidated. + (tree_unroll_loops_completely): Handle non-innermost loops; + handle irred_invalidated. + * cfgloop.h (unlop): Declare. + * cfgloopmanip.c (unloop): Export. + * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE. + +2012-10-17 Michael Meissner + + * opth-gen.awk (TARGET_* generation): Always generate TARGET_ + for Mask options, whether they use Var(...) or not. + + * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use + TARGET_ instead of OPTION_. + * config/i386/i386.h (TARGET_64BIT): Likewise. + (TARGET_MMX): Likewise. + (TARGET_3DNOW): Likewise. + (TARGET_3DNOW_A): Likewise. + (TARGET_SSE): Likewise. + (TARGET_SSE2): Likewise. + (TARGET_SSE3): Likewise. + (TARGET_SSSE3): Likewise. + (TARGET_SSE4_1): Likewise. + (TARGET_SSE4_2): Likewise. + (TARGET_AVX): Likewise. + (TARGET_AVX2): Likewise. + (TARGET_FMA): Likewise. + (TARGET_SSE4A): Likewise. + (TARGET_FMA4): Likewise. + (TARGET_XOP): Likewise. + (TARGET_LWP): Likewise. + (TARGET_ROUND): Likewise. + (TARGET_ABM): Likewise. + (TARGET_BMI): Likewise. + (TARGET_BMI2): Likewise. + (TARGET_LZCNT): Likewise. + (TARGET_TBM): Likewise. + (TARGET_POPCNT): Likewise. + (TARGET_SAHF): Likewise. + (TARGET_MOVBE): Likewise. + (TARGET_CRC32): Likewise. + (TARGET_AES): Likewise. + (TARGET_PCLMUL): Likewise. + (TARGET_CMPXCHG16B): Likewise. + (TARGET_FSGSBASE): Likewise. + (TARGET_RDRND): Likewise. + (TARGET_F16C): Likewise. + (TARGET_RTM): Likewise. + (TARGET_HLE): Likewise. + (TARGET_RDSEED): Likewise. + (TARGET_PRFCHW): Likewise. + (TARGET_ADX): Likewise. + (TARGET_64BIT): Likewise. + (TARGET_MMX): Likewise. + (TARGET_3DNOW): Likewise. + (TARGET_3DNOW_A): Likewise. + (TARGET_SSE): Likewise. + (TARGET_SSE2): Likewise. + (TARGET_SSE3): Likewise. + (TARGET_SSSE3): Likewise. + (TARGET_SSE4_1): Likewise. + (TARGET_SSE4_2): Likewise. + (TARGET_AVX): Likewise. + (TARGET_AVX2): Likewise. + (TARGET_FMA): Likewise. + (TARGET_SSE4A): Likewise. + (TARGET_FMA4): Likewise. + (TARGET_XOP): Likewise. + (TARGET_LWP): Likewise. + (TARGET_ROUND): Likewise. + (TARGET_ABM): Likewise. + (TARGET_BMI): Likewise. + (TARGET_BMI2): Likewise. + (TARGET_LZCNT): Likewise. + (TARGET_TBM): Likewise. + (TARGET_POPCNT): Likewise. + (TARGET_SAHF): Likewise. + (TARGET_MOVBE): Likewise. + (TARGET_CRC32): Likewise. + (TARGET_AES): Likewise. + (TARGET_PCLMUL): Likewise. + (TARGET_CMPXCHG16B): Likewise. + (TARGET_FSGSBASE): Likewise. + (TARGET_RDRND): Likewise. + (TARGET_F16C): Likewise. + (TARGET_RTM): Likewise. + (TARGET_HLE): Likewise. + (TARGET_RDSEED): Likewise. + (TARGET_PRFCHW): Likewise. + (TARGET_ADX): Likewise. + (TARGET_LP64): Likewise. + (TARGET_X32): Likewise. + (TARGET_ISA_ROUND): Likewise. + * config/i386/darwin.h (TARGET_64BIT): Likewise. + + * doc/options.texi (Mask): Update documentation to specify only + TARGET_ is generated. + +2012-10-17 Greta Yorsh + + * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this... + (UNSPEC_REGISTER_USE): ... to this. + (prologue_use): Rename this... + (force_register_use): ... to this and update output assembly. + (epilogue) Rename gen_prologue_use to gen_force_register_use. + * config/arm/arm.c (arm_expand_prologue): Likewise. + (thumb1_expand_epilogue): Likewise. + (arm_expand_epilogue): Likewise. + (arm_expand_epilogue): Likewise. + +2012-10-17 Georg-Johann Lay + + * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype. + * config/avr/avr.c (avr_extra_arch_macro): Remove variable. + (avr_option_override): Remove setting of avr_extra_arch_macro. + * config/avr/avr-c.c (avr_extra_arch_macro): Replace with + avr_current_device->macro. + +2012-10-17 Richard Biener + + * tree-streamer-out.c (write_ts_decl_common_tree_pointers): + Do not write TREE_CHAIN of PARM_DECLs. + (write_ts_decl_non_common_tree_pointers): Instead stream + the DECL_ARGUMENTS chain. + * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers): + Do not read TREE_CHAIN of PARM_DECLs. + (lto_input_ts_decl_non_common_tree_pointes): Instead read + the DECL_ARGUMENTS as chain. + +2012-10-17 Steven Bosscher + + * config/iq2000/iq2000.h (call_used_regs): Remove definition. + +2012-10-16 Eric Botcazou + + PR rtl-optimization/54870 + * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME. + * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the + SSA_NAME pointer that points to a partition if there is at least + one variable with it set in the partition. + * dse.c (local_variable_can_escape): New predicate. + (can_escape): Call it. + * gimplify.c (mark_addressable): If this is a partitioned decl, also + mark the SSA_NAME pointer that points to a partition. + +2012-10-16 Steven Bosscher + + * df-problems.c (df_kill_notes): Split up in two functions. + (df_remove_dead_and_unused_notes): New function, first half of + df_kill notes to remove all REG_DEAD and REG_UNUSED notes. + (df_remove_dead_eq_notes): New function, second half of df_kill_notes + to remove REG_EQUAL and REG_EQUIV notes referring to dead registers. + (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead + of df_kill_notes. Call df_remove_dead_eq_notes after processing insn. + + * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS; + +2012-10-16 Ian Lance Taylor + + * doc/extend.texi (Return Address): Change + __builtin_extract_return_address to + __builtin_extract_return_addr. + +2012-10-16 Steven Bosscher + + * rtl.h (get_call_rtx_from): New prototype. + * rtlanal.c (get_call_rtx_from): New function. + * calls.c (emit_call_1): Use it. + * dse.c (scan_insn): Likewise + * dwarf2out.c (dwarf2out_var_location): Likewise. + * sched-deps.c (call_may_noreturn_p): Likewise. + * var-tracking.c (prepare_call_arguments): Likewise. + * config/sh/sh.c (sh_adjust_cost): Likewise. + +2012-10-16 Tom de Vries + + * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces) + (store_by_pieces_1): Don't enter loop when no more data is left. + +2012-10-16 Joern Rennecke + + * loop-doloop.c (doloop_modify): Pass doloop_end pattern to + gen_doloop_begin. + (doloop_optimize): Pass flag to indicate if loop is entered at top + to gen_doloop_end. + * config/arm/thumb2.md (doloop_end): Accept extra operand. + * config/bfin/bfin.md (doloop_end): Likewise. + * config/c6x/c6x.md (doloop_end): Likewise. + * config/ia64/ia64.md (doloop_end): Likewise. + * config/mep/mep.md (doloop_begin, doloop_end): Likewise. + * config/rs6000/rs6000.md (doloop_end): Likewise. + * config/s390/s390.md (doloop_end): Likewise. + * config/sh/sh.md (doloop_end): Likewise. + * config/spu/spu.md (doloop_end): Likewise. + * config/tilegx/tilegx.md (doloop_end): Likewise. + * config/tilepro/tilepro.md (doloop_end): Likewise. + * doc/md.texi (doloop_end): Document new operand. + * basic-block.h (contains_no_active_insn_p): Declare. + * cfgrtl.c (contains_no_active_insn_p): New function, factored + out of ... + (forwarder_block_p): ... here. + +2012-10-16 Manuel López-Ibáñez + + PR c/53063 + PR c/40989 + * doc/options.texi (EnabledBy): Document new form. + * optc-gen.awk: Handle new form of EnabledBy. + * common.opt (Wunused-but-set-parameter): Use EnabledBy. + (Wunused-parameter): Likewise. + * opts.c (finish_options): Do not handle them explicitly. + * opt-functions.awk (search_var_name): New. + +2012-10-16 Manuel López-Ibáñez + + PR c/53063 + PR c/40989 + * optc-gen.awk: Handle new form of LangEnabledBy. + * opts.c (set_Wstrict_aliasing): Declare here. Make static. + * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init. + * doc/options.texi (LangEnabledBy): Document new form. + * flags.h (set_Wstrict_aliasing): Do not declare. + +2012-10-16 Ulrich Weigand + + * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE + parameter. Always replace normal subreg with memory reference + whenever possible. Return NULL otherwise. + (find_reloads_toplev): Always call find_reloads_subreg_address + for subregs of registers equivalent to a memory location. + Only recurse further if find_reloads_subreg_address fails. + (find_reloads_address_1): Only call find_reloads_subreg_address + for subregs of registers equivalent to a memory location. + Properly handle failure of find_reloads_subreg_address. + +2012-10-16 Jakub Jelinek + + PR debug/54796 + * rtl.h: Document jump flag on VALUE. + * cselib.h (cselib_set_value_sp_based, + cselib_sp_based_value_p): New prototypes. + * alias.c (find_base_term): For cselib_sp_based_value_p + return static_reg_base_value[STACK_POINTER_REGNUM]. + * cselib.c (SP_BASED_VALUE_P): Define. + (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions. + * var-tracking.c (add_stores): Call cselib_set_value_sp_based + for not yet preserved VALUEs of sp on sp assignments if + hard_frame_pointer_adjustment != -1. + (vt_initialize): When setting hard_frame_pointer_adjustment, + disassociate sp from its previous value and call + cselib_set_value_sp_based on a new VALUE created for sp. + + PR tree-optimization/54889 + * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if + ARRAY_REF newref doesn't have compatible type with vectype element + type, use vectype element type for MEM_REF. + +2012-10-16 Steven Bosscher + + * combine.c (record_dead_and_set_regs): Iterate over hard register set + with a hard_reg_set_iterator. + * cse.c (invalidate_for_call): Likewise. + * gcse.c (compute_hash_table_work): Likewise. + * loop-iv.c (simplify_using_initial_values): Likewise. + * postreload-gcse.c (record_opr_changes): Likewise. + * regcprop.c (copyprop_hardreg_forward_1): Likewise. + * var-tracking.c (dataflow_set_clear_at_call): Likewise. + +2012-10-15 Easwaran Raman + + * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to + specificy the probability of taking the jump. + (emit_cmp_and_jump_insns): Likewise. + (expand_compare_and_swap_loop): Make the jump predicted not taken. + * dojump.c (do_compare_rtx_and_jump): Remove the code attaching + REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns. + * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing + probabilities for branches with more than two successors. + * expr.c (emit_block_move_via_loop): Predict the loop backedge loop + to be highly taken. + (try_casesi): Pass the probability of jumping to the default label. + (try_tablejump): Likewise. + (do_tablejump): Likewise. + * expr.h (try_tablejump): Add a new parameter. + (try_casesi): Likewise. + (emit_cmp_and_jump_insns): Add probability as default parameter with a + default value of -1. + * except.c (sjlj_emit_function_enter): Pass probability to + emit_cmp_and_jump_insns. + * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB. + (do_jump_if_equal): Pass probability for REG_BR_PROB note. + (add_case_node): Pass estimated probability of jumping to the case + label. + (emit_case_decision_tree): Pass default_prob to emit_case_nodes. + (get_outgoing_edge_probs): New function. + (conditional_probability): Likewise. + (reset_out_edges_aux): Likewise. + (compute_cases_per_edge): Likewise. + (emit_case_dispatch_table): Update probabilities of edges coming out + of the switch statement. + (expand_case): Compute and propagate default edge probability to + emit_case_dispatch_table. + (expand_sjlj_dispatch_table): Update calls to add_case_node and + emit_case_dispatch_table. + (balance_case_nodes): Update subtree_prob values. + (emit_case_nodes): Compute edge probabilities and add pass them to + emit_cmp_and_jump_insns. + +2012-10-15 Oleg Endo + + PR target/51244 + * config/sh/sh-protos.h (set_of_reg): New struct. + (sh_find_set_of_reg, sh_is_logical_t_store_expr, + sh_try_omit_signzero_extend): Declare... + * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr, + sh_try_omit_signzero_extend): ...these new functions. + * config/sh/sh.md (*logical_op_t): New insn_and_split. + (*zero_extendsi2_compact): Use sh_try_omit_signzero_extend + in splitter. + (*extendsi2_compact_reg): Convert to insn_and_split. + Use sh_try_omit_signzero_extend in splitter. + (*mov_reg_reg): Disallow t_reg_operand as operand 1. + (*cbranch_t): Rewrite combine part in splitter using new + sh_find_set_of_reg function. + +2012-10-15 Oleg Endo + + PR target/54760 + * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when + hitting a call insn if GBR is marked as call used. + * config/sh/iterators.md (QIHISIDI): New mode iterator. + * config/sh/predicates.md (gbr_address_mem): New predicate. + * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New + insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR + addressing splits. + +2012-10-15 Oleg Endo + + * config/sh/sh.c: Update function attribute comments. + * doc/extend.texi (function_vector): Rephrase SH2A specific part. + (nosave_low_regs, renesas, trapa_handler): Document SH specific + attributes. + (sp_switch, trap_exit): Add to index. + +2012-10-15 Matthias Klose + + * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU. + * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi. + +2012-10-15 Uros Bizjak + + * config/i386/sse.md (UNSPEC_MOVU): Remove. + (UNSPEC_LOADU): New. + (UNSPEC_STOREU): Ditto. + (_movu): Split to ... + (_loadu): ... this and ... + (_storeu) ... this. + (_movdqu): Split to ... + (_loaddqu): ... this and ... + (_storedqu): ... this. + (*sse4_2_pcmpestr_unaligned): Update. + (*sse4_2_pcmpistr_unaligned): Ditto. + + * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use + gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and + gen_avx_store{dqu,ups,upd}256 to store to unaligned memory. + (ix86_expand_vector_move_misalign): Use gen_sse_loadups or + gen_sse2_load{dqu,upd} to load from unaligned memory and + gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to + unaligned memory. + (struct builtin_description bdesc_spec) : + Use CODE_FOR_sse_loadups. + : Use CODE_FOR_sse2_loadupd. + : Use CODE_FOR_sse2_loaddqu. + : Use CODE_FOR_sse_storeups. + : Use CODE_FOR_sse2_storeupd. + : Use CODE_FOR_sse2_storedqu. + : Use CODE_FOR_avx_loadups256. + : Use CODE_FOR_avx_loadupd256. + : Use CODE_FOR_avx_loaddqu256. + : Use CODE_FOR_avx_storeups256. + : Use CODE_FOR_avx_storeupd256. + : Use CODE_FOR_avx_storedqu256. + +2012-10-15 Dodji Seketeli + + * alias.c: Cleanup comments. + +2012-10-15 Marc Glisse + + PR tree-optimization/54915 + * tree-ssa-forwprop.c (simplify_vector_constructor): Check + argument's type. + +2012-10-15 Richard Biener + + * data-streamer.h (bp_pack_string_with_length): New function. + (bp_pack_string): Likewise. + (bp_unpack_indexed_string): Likewise. + (bp_unpack_string): Likewise. + * data-streamer-out.c (bp_pack_string_with_length): Likewise. + (bp_pack_string): Likewise. + * data-streamer-in.c (bp_unpack_indexed_string): Likewise. + (bp_unpack_string): Likewise. + * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields): + Pack TRANSLATION_UNIT_LANGUAGE here, not ... + (write_ts_translation_unit_decl_tree_pointers): ... here. Remove. + (streamer_pack_tree_bitfields): Adjust. + (streamer_write_tree_body): Likewise. + * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields): + Unpack TRANSLATION_UNIT_LANGUAGE here, not ... + (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove. + (unpack_value_fields): Adjust. + (streamer_read_tree_body): Likewise. + +2012-10-15 J"orn Rennecke + + * genoutput.c (process_template): Process '*' in '@' alternatives. + * doc/md.texi (node Output Statement): Provide example for the above. + +2012-10-15 Richard Guenther + + PR tree-optimization/54920 + * tree-ssa-pre.c (create_expression_by_pieces): Properly + allocate temporary storage for all NARY elements. + +2012-10-15 Joern Rennecke + + * web.c (union_match_dups): Properly handle OP_INOUT match_dups. + +2012-10-15 Eric Botcazou + + * expr.c (expand_expr_real_1) : Do not unnecessarily + copy the object in the MEM_P case. + +2012-10-15 Richard Guenther + + * tree-streamer-out.c (streamer_pack_tree_bitfields): Back + BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here. + (streamer_write_chain): Write TREE_CHAIN as null-terminated list. + (write_ts_exp_tree_pointers): Adjust. + (write_ts_binfo_tree_pointers): Likewise. + (write_ts_constructor_tree_pointers): Likewise. + * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as + null-terminated list. + (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and + CONSTRUCTOR lengths and materialize the arrays. + (lto_input_ts_exp_tree_pointers): Adjust. + (lto_input_ts_binfo_tree_pointers): Likewise. + (lto_input_ts_constructor_tree_pointers): Likewise. + +2012-10-14 Hans-Peter Nilsson + + * config/mmix/mmix.c (mmix_opposite_regno): Handle the + return-value register too. + +2012-10-14 Steven Bosscher + + PR rtl-optimization/38711 + * df.h (df_get_live_out, df_get_live_in): Make static inline functions. + * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h. + * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of + DF_LR_OUT. + * ira-build.c (create_bb_allocnos): Likewise. + (create_loop_allocnos): Likewise, and use df_get_live_in instead of + DF_LR_IN. + * ira-emit.c (generate_edge_moves): Likewise. + (add_ranges_and_copies): Likewise. + * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of + DF_LR_OUT, and df_get_live_in instead of DF_LR_IN. + * ira.c (mark_elimination): Update DF_LR and DF_LIVE. + (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT. + (do_reload): Remove the DF_LIVE problem for -O1. + +2012-10-14 Steven Bosscher + + PR rtl-optimization/54919 + * loop-unroll.c (struct var_to_expand): Remove accum_pos field. + (analyze_insn_to_expand_var): Do not record accum_pos. + (expand_var_during_unrolling): Use validate_replace_rtx_group to + perform replacement of all references to SET_DEST (set) with the + new register, including references in REG_EQUAL notes. + (insert_var_expansion_initialization): Insert initializatio insns + at the bottom of the pre-header of the loop. + +2012-10-14 Jan Hubicka + + * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not + predict loops with multiple exits realistically. + * cfgloopanal.c (single_likely_exit): New function. + +2012-10-14 Uros Bizjak + + * config/alpha/alpha.md: Remove empty predicates and/or constraints. + * config/alpha/sync.md: Ditto. + +2012-10-13 Uros Bizjak + + * config/alpha/alpha.md (I24MODE): New mode iterator. + (any_divmod): New code iterator. + (si3): Macroize expander from {div,mod,udiv,umod}si3 using + any_divmod code iterator. + (si3): Macroize expander from {div,mod,udiv,umod}di3 using + any_divmod code iterator. + (extendqi2): Macroize insn from extendqi{hi,si}2 using + I24MODE mode iterator. + (unaligned_store): Macroize expander from unaligned_store{qi,hi} + using I12MODE mode iterator. + (mov): Macroize expander from mov{qi,hi} using + I12MODE mode iterator. + +2012-10-13 Eric Botcazou + + PR rtl-optimization/54871 + * loop-iv.c (simplify_using_initial_values): When scanning previous + basic blocks, prune the recorded conditions if the current insn was + not used to make a replacement. + + * loop-unroll.c (decide_unroll_constant_iterations): Clean up message. + (unroll_loop_constant_iterations): Clarify head comment. + (decide_unroll_runtime_iterations): Clean up message. + (unroll_loop_runtime_iterations): Clarify head comment. + (decide_peel_simple): Clean up message. + (peel_loop_simple): Clarify head comment. + (decide_unroll_stupid): Clean up message. + (unroll_loop_stupid): Clarify head comment. + +2012-10-13 Andreas Schwab + + PR gcov-profile/44728 + * gcov.c (create_file_names): When stripping extension only look + at base name. + +2012-10-13 Jan Hubicka + + * loop-iv.c (determine_max_iter): Fix handling of AND. + (iv_number_of_iterations): Record upper bounds as unsigned + values. + +2012-10-13 Steven Bosscher + + * ira.c (ira): Set current_loops to &ira_loops before recording + loop exits. Release recorded exits and loops early. + +2012-10-13 Chung-Lin Tang + + * builtins.c (expand_builtin_set_thread_pointer): Use + create_input_operand() instead of create_fixed_operand(). + +2012-10-13 Uros Bizjak + + * config/alpha/alpha.md (FMODE): New mode iterator. + (modesuffix): Handle SF and DF modes. + (opmode): New mode attribute. + (abs2): Macroize insn from abs{sf,df}2 using FMODE mode iterator. + (*nabs2): Macroize insn from *nabs{sf,df}2 using + FMODE mode iterator. + (neg2): Macroize insn from neg{sf,df}2 using FMODE mode iterator. + (copysign3): Macroize insn from copysign{sf,df}3 using + FMODE mode iterator. + (*ncopysign3): Macroize insn from *ncopysign{sf,df}3 using + FMODE mode iterator. + (*add3_ieee): Macroize insn from *add{sf,df}_ieee using + FMODE mode iterator. + (add3): Macroize insn from add{sf,df}3 using FMODE mode iterator. + (*sub3_ieee): Macroize insn from *sub{sf,df}3_ieee using + FMODE mode iterator. + (sub3): Macroize insn from sub{sf,df}3 using FMODE mode iterator. + (*mul3_ieee): Macroize insn from *mul{sf,df}3_ieee using + FMODE mode iterator. + (mul3): Macroize insn from mul{sf,df}3 using FMODE mode iterator. + (*div3_ieee): Macroize insn from *div{sf,df}3_ieee using + FMODE mode iterator. + (div3): Macroize insn from div{sf,df}3 using FMODE mode iterator. + (*sqrt2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using + FMODE mode iterator. + (sqrt2): Macroize insn from sqrt{sf,df}2 + using FMODE mode iterator. + (*movcc_internal): Macroize insn from *mov{sf,df}cc_internal + using FMODE mode iterator. + (movcc): Macroize expander from mov{sf,df}cc + using FMODE mode iterator. + +2012-10-12 Oleg Endo + + PR target/54602 + * config/sh/sh.md: Correct define_delay for return insns. + (*movsi_pop): Delete. + +2012-10-12 Oleg Endo + + PR target/54680 + * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped + comments. + * config/sh/predicates.md (fpul_operand): Add comment. + (fpul_fsca_operand, fsca_scale_factor): New predicates. + * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to + insn_and_split. Use fpul_fsca_operand and fsca_scale_factor + predicates. Simplify fpul operand in splitter. + +2012-10-12 Jan Hubicka + + * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not + escape the loop. + +2012-10-12 Jan Hubicka + + * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag. + +2012-10-12 Aaron Gray + Diego Novillo + + * gengtype-lex.l: Support for C++ single line comments. + Support for classes. + (CXX_KEYWORD): New. Support C++ keywords inline, public, + protected, private, template, operator, friend, &, ~. + (TYPEDEF): New. Support typedef. + * gengtype-parser.c: updated 'token_names[]' + (direct_declarator): Add support for parsing functions and ctors. + +2012-10-12 Diego Novillo + + * doc/gty.texi: Document C++ limitations in gengtype. + * gengtype-lex.l (CID): Rename from ID. + (ID): Include scoping '::' as part of the identifier name. + * gengtype-parse.c (token_names): Update. + (token_value_format): Update. + (consume_until_eos): Rename from consume_until_semi. + Remove unused argument IMMEDIATE. Update all callers. + Also consider '}' as a finalizer. + (consume_until_comma_or_eos): Rename from + consume_until_comma_or_semi. + Remove unused argument IMMEDIATE. Update all callers. + Also consider '}' as a finalizer. + (direct_declarator): Add documentation on ctor support. + Add argument IN_STRUCT. + If the token following ID is a '(', consider ID a + function and return NULL. + If the token following '(' is not a '*', and IN_STRUCT is true, + conclude that this is a ctor and return NULL. + If the token is IGNORABLE_CXX_KEYWORD, return NULL. + (inner_declarator): Add argument IN_STRUCT. + Update all callers. + (declarator): Add argument IN_STRUCT with default value false. + Update all callers. + (type): Document argument NESTED. + Skip over C++ inheritance specifiers. + If a token TYPEDEF is found, emit an error. + If an enum is found inside a class/structure, emit an error. + (typedefs, structures, param_structs, variables): Initialize. + (new_structure): Do not complain about duplicate + structures if S has a line location set. + * gengtype-state.c (write_state_type): Remove default handler. + Add handler for TYPE_NONE. + (read_state_scalar_char_type): + * gengtype.c: Fix spacing. + * gengtype.h (enum gty_token): Add name. Add token + IGNORABLE_CXX_KEYWORD. + +2012-10-12 Chung-Lin Tang + + * config/arm/arm.md (get_thread_pointersi): Moved to place with + other TLS related patterns. + +2012-10-12 Richard Biener + + * tree-streamer-out.c (pack_ts_target_option): Rename from ... + (write_ts_target_option): ... this. + (pack_ts_optimization): Rename from ... + (write_ts_optimization): ... this. + (streamer_pack_tree_bitfields): Pack them in the bitfield section ... + (streamer_write_tree_body): ... not here. + * tree-streamer-in.c (unpack_ts_target_option): Rename from ... + (lto_input_ts_target_option): ... this. + (unpack_ts_optimization): Rename from ... + (lto_input_ts_optimization): ... this. + (unpack_value_fields): Unpack them from the bitfield section ... + (streamer_read_tree_body): ... not from here. + +2012-10-12 Uros Bizjak + + * config/alpha/alpha.md (vecmodesuffix): New mode attribute. + (modesuffix): Handle V8QI and V4HI modes. + (any_maxmin): New code iterator. + (maxmin): New code attribute. + (3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3 + using any_maxmin code iterator and I12MODE mode iterator. + (3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3 + using any_maxmin code iterator and VEC12 mode iterator. + +2012-10-12 Marc Glisse + + * optabs.c (vector_compare_rtx): Change prototype. + (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand + is not a comparison. + * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR. + +2012-10-12 Richard Biener + + PR tree-optimization/54894 + * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): + Handle over-aligned scalar types properly. + +2012-10-12 Oleg Endo + + PR target/54760 + * config/sh/sh.c (bdesc): Remove thread pointer built-ins. + * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode + name 'si'. + +2012-10-12 Oleg Endo + + PR target/51244 + * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove + get_t_reg_rtx when invoking gen_branch_true or gen_branch_false. + (*zero_extendsi2_compact): Convert to insn_and_split. Convert + zero extensions of T bit stores to reg moves in splitter. Remove + obsolete unnamed peephole2 that caught zero extensions after negc T bit + stores. + (*branch_true_eq, *branch_false_ne): Delete. + (branch_true, branch_false): Convert insn to expander. Move actual + insn logic to... + (*cbranch_t): ...this new insn_and_split. Try to find preceding + redundant T bit stores and tests and combine them with the conditional + branch if possible in the splitter. + (movrt_xor, *movt_movrt): New insn_and_split. + * config/sh/predicates.md (cbranch_treg_value): New predicate. + * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare... + * config/sh/sh.c (sh_eval_treg_value): ...this new function. + (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx + when invoking gen_branch_true or gen_branch_false. + +2012-10-11 Uros Bizjak + + * config/alpha/alpha.md (IMODE): New mode iterator. + (I124MODE): Ditto. + (I248MODE): Ditto. + (modesuffix): Handle QI and HI modes. + (zero_extendqi2): Macroize insn from zero_extendqi{hi,si,di}2 + using I248MODE mode iterator. + (zero_extendhi2): Macroize insn from zero_extendhi{si,di}2 + using I48MODE mode iterator. + (andnot3): Macroize insn from andnot{si,di}3 using + I48MODE mode iterator. + (insl_const): Macroize insn from ins{b,w,l}l_const + using I248MODE mode iterator. + (insl): Macroize insn from ins{b,w,l}l + using I248MODE mode iterator. + (*movcc_internal): Macroize insn from + *mov{qi,hi,si,di}cc_internal using IMODE mode iterator. + (*movcc_lbc): Macroize insn from + *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator. + (*movcc_lbs): Macroize insn from + *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator. + (movcc): Macroize expander from mov{si,di}cc + using I48MODE mode iterator. + +2012-10-11 Steven Bosscher + + * ira-build.c (ira_loop_tree_body_rev_postorder): New function. + (ira_traverse_loop_tree): Traverse a loop's basic blocks in + reverse post-order of the reversed control-flow direction. + * ira-conflicts.c (ira_build_conflicts): Pass add_copies as + the pre-order function to ira_traverse_loop_tree to preserve + the existing semantics. + + * ira-lives.c (remove_some_program_points_and_update_live_ranges): + Squeeze out live range chain elements if their program points are + connected. + +2012-10-11 Jakub Jelinek + + * tree.def (REDUC_PLUS_EXPR): Fix up comment. + + * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR, + REDUC_MAX_EXPR and REDUC_PLUS_EXPR. + +2012-10-11 James Lemke + + * config/rs6000/predicates.md (zero_fp_constant): Fix comment. + * config/rs6000/rs6000.md (return_pred): Fix null return. + * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation. + (print_operand): Make FALLTHRU obvious. + (output_cbranch): Correct comment. + +2012-10-11 Uros Bizjak + + * config/alpha/alpha.md (DWI): New mode attribute. + (*sadd): Macroize insn from *saddl and *saddq using + I48MODE mode iterator. + (addv3): Macroize insn from addvsi3 and addvdi3 using + I48MODE mode iterator. + (neg2): Macroize insn from negsi2 and negdi2 using + I48MODE mode iterator. + (negv2): Macroize insn from negvsi2 and negvdi2 using + I48MODE mode iterator. + (sub3): Macroize insn from subsi3 and subdi3 using + I48MODE mode iterator. + (*ssub): Macroize insn from *ssubl and *ssubq using + I48MODE mode iterator. + (subv3): Macroize insn from subvsi3 and subvdi3 using + I48MODE mode iterator. + (mul3): Macroize insn from mulsi3 and muldi3 using + I48MODE mode iterator. + (mulv3): Macroize insn from mulvsi3 and mulvdi3 using + I48MODE mode iterator. + (*iornot3): Macroize insn from *iornotsi3 and *iornotdi3 using + I48MODE mode iterator. + (*xornot3): Macroize insn from *xornotsi3 and *xornotdi3 using + I48MODE mode iterator. + +2012-10-11 Jason Merrill + + * configure.ac (gcc_cv_as_aix_ref): Fix typo. + * configure: Regenerate. + +2012-10-11 Chung-Lin Tang + + * builtins.c (expand_builtin_thread_pointer): New. + (expand_builtin_set_thread_pointer): New. + (expand_builtin): Add BUILT_IN_THREAD_POINTER, + BUILT_IN_SET_THREAD_POINTER expand cases. + * builtins.def (BUILT_IN_THREAD_POINTER): + New __builtin_thread_pointer builtin. + (BUILT_IN_SET_THREAD_POINTER): + New __builtin_set_thread_pointer builtin. + * optabs.def (get_thread_pointer,set_thread_pointer): + New standard names. + * doc/md.texi (Standard Names): Document get_thread_pointer and + set_thread_pointer patterns. + * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp. + (set_thread_pointerdi): Rename from set_tp. + * config/alpha/alpha.c (alpha_legitimize_address_1): Change + gen_load_tp calls to gen_get_thread_pointerdi. + (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER, + ALPHA_BUILTIN_SET_THREAD_POINTER. + (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp. + (alpha_init_builtins): Remove __builtin_thread_pointer, + __builtin_set_thread_pointer machine-specific builtins. + (alpha_expand_builtin_thread_pointer): Add hook function for + TARGET_EXPAND_BUILTIN_THREAD_POINTER. + (alpha_expand_builtin_set_thread_pointer): Add hook function for + TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER. + (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER, + ALPHA_BUILTIN_SET_THREAD_POINTER cases. + * config/arm/arm.md (get_thread_pointersi): New pattern. + * config/arm/arm-protos.h (arm_load_tp): Add extern declaration. + * config/arm/arm.c (arm_load_tp): Remove static. + (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER. + (arm_init_tls_builtins): Remove function. + (arm_init_builtins): Remove call to arm_init_tls_builtins(). + (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case. + * config/mips/mips.md (get_thread_pointer): New pattern. + * config/mips/mips-protos.h (mips_expand_thread_pointer): + Add extern declaration. + * config/mips/mips.c (mips_expand_thread_pointer): + Renamed from mips_get_tp. + (mips_get_tp): New stub calling mips_expand_thread_pointer. + * config/s390/s390.c (s390_builtin,code_for_builtin_64, + code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove. + * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31): + Remove. + (get_thread_pointer,set_thread_pointer): + New, adapted from removed patterns. + * config/xtensa/xtensa.md (get_thread_pointersi): + Renamed from load_tp. + (set_thread_pointersi): Renamed from set_tp. + * config/xtensa/xtensa.c (xtensa_legitimize_tls_address): + Change gen_load_tp calls to gen_get_thread_pointersi. + (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and + XTENSA_BUILTIN_SET_THREAD_POINTER. + (xtensa_init_builtins): Remove __builtin_thread_pointer, + __builtin_set_thread_pointer machine-specific builtins. + (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER, + XTENSA_BUILTIN_SET_THREAD_POINTER cases. + (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER, + XTENSA_BUILTIN_SET_THREAD_POINTER cases. + +2012-10-11 Marc Glisse + + * doc/extend.texi (Vector Extensions): C++ improvements. + * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar. + (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify + the vector case. + (VEC_COND_EXPR): Document it. + +2012-10-11 Terry Guo + + * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m + architecture. + * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB + instruction. + +2012-10-11 Hans-Peter Nilsson + + PR target/54373 + * configure.ac (out-of-tree linker .hidden support) Set to "no" + for mmix-knuth-mmixware. + * configure: Regenerate. + + * configure.ac (gcc_cv_as_comdat_group_group): Default to no. + * configure: Regenerate. + + * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single + character to quote the VERSION= contents. Sanity-check contents. + * configure.ac ("what linker to use" ld version extraction): Ditto. + * configure: Regenerate. + +2012-10-10 Segher Boessenkool + + * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'. + +2012-10-10 Jakub Jelinek + + PR tree-optimization/54877 + * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR + use make_ssa_name instead of copy_ssa_name. + +2012-10-10 Richard Biener + + * lto-streamer-in.c (lto_input_location_bitpack): Rename to ... + (lto_input_location): ... this. Kill original. + (input_eh_region): Adjust. + (input_struct_function_base): Likewise. + (lto_read_tree): Likewise. + * lto-streamer-out.c (lto_output_location_bitpack): Rename to ... + (lto_output_location): ... this. Kill original. + (lto_write_tree): Adjust. + (output_eh_region): Likewise. + (output_struct_function_base): Likewise. + * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks. + * lto-streamer.h (lto_input_location): Adjust prototype. + (lto_output_location): Likewise. + * streamer-hooks.h (struct streamer_hooks): Adjust prototype + of input_location and output_location hooks. + (stream_input_location): New define. + (stream_output_location): Likewise. + * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust. + (unpack_value_fields): Likewise. + (streamer_read_tree_bitfields): Likewise. + (lto_input_ts_decl_minimal_tree_pointers): Likewise. + (lto_input_ts_exp_tree_pointers): Likewise. + (lto_input_ts_block_tree_pointers): Likewise. + * tree-streamer-out.c (pack_ts_block_value_fields): Adjust. + (streamer_pack_tree_bitfields): Likewise. + (write_ts_decl_minimal_tree_pointers): Likewise. + (write_ts_exp_tree_pointers): Likewise. + (write_ts_block_tree_pointers): Likewise. + * gimple-streamer-in.c (input_phi): Adjust. + (input_gimple_stmt): Likewise. + * gimple-streamer-out.c (output_phi): Adjust. + (output_gimple_stmt): Likewise. + * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype. + (streamer_pack_tree_bitfields): Likewise. + +2012-10-10 Michael Meissner + + * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed + vs. unsigned warnings by using enum type for function code. + (paired_expand_builtin): Likewise. + (spe_expand_builtin): Likewise. + + * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change + builtin mask, target flags masks type to HOST_WIDE_INT in + preparation for growing the number of ISA switches from 31 to 63. + + * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type + HOST_WIDE_INT. + + * config/rs6000/rs6000.c (struct builtin_description): Make + builtin mask field HOST_WIDE_INT. Make target flags field + HOST_WIDE_INT in preparation for growing the # of ISA switches. + (struct rs6000_builtin_info_type): Likewise. + (struct rs6000_ptt): Likewise. + (rs6000_builtin_mask_calculate): Likewise. + (rs6000_invalid_builtin): Likewise. + (rs6000_builtin_decl): Likewise. + (rs6000_common_init_builtins): Likewise. + (rs6000_darwin_file_start): Likewise. + (rs6000_final_prescan_insn): Likewise. + (rs6000_inner_target_options): Likewise. + (build_target_option_node): Likewise. + (rs6000_function_specific_print): Likewise. + (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex. + + * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate): + Make target flags, builtin masks arguments/return values + HOST_WIDE_INT in preparation for growing the number of ISA from 31 + to 63. + (rs6000_target_modify_macros): Likewise. + (rs6000_target_modify_macros_ptr): Likewise. + + * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate + define and change DEBUG_FMT_ to use it. + (DEBUG_FMT_D): Likewise. + (DEBUG_FMT_S): Likewise. + (DEBUG_FMT_X): Delete, no longer used. + (DEBUG_FMT_W): Likewise. + (DEBUG_FMT_WX): New debug format for printing options in a + friendly fashion. + (rs6000_debug_reg_global): If -mdebug=reg, print all of the + options in target_flags and target_flags_explicit. Print the + default options for -mcpu=, -mtune=, and the default + options. Adjust printing out the builtin options. + (rs6000_option_override_internal): Change printing the builtin + options to use rs6000_print_builtin_options. + (rs6000_function_specific_print): Change to use + rs6000_print_isa_options to print ISA flags. + (rs6000_print_options_internal): New function for expanded + -mdebug=reg option printing to print both the ISA options, and the + builtins that are enabled. + (rs6000_print_isa_options): New function to print the ISA options. + (rs6000_print_builtin_options): New function to print the builtin + functions enabled. + +2012-10-10 Jakub Jelinek + + PR target/51109 + * config/i386/bdver1.md (bdver1-mult): Remove. + + PR middle-end/54879 + * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH + instead of '2' resp. 'c' for GET_RTX_CLASS comparisons. + + PR middle-end/54862 + * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of + INTVAL of second argument with precision resp. op_precision. + +2012-10-10 Dodji Seketeli + + PR middle-end/54860 - Make sure attributes hash table is created + * attribs.c (register_scoped_attributes): Ensure the attribute + hash table is created. + +2012-10-10 Ganesh Gopalasubramanian + + PR target/51109 + * config/i386/bdver1.md (bdver1_int): Automaton has been + split to reduce state transitions. + +2012-10-10 Richard Biener + + PR middle-end/54876 + * ipa-prop.c (prune_expression_for_jf_1): New function. + (prune_expression_for_jf): Clear EXPR_LOCATION for all + sub-expressions as well. + +2012-10-10 Andreas Krebbel + + * config.gcc: Enable zEC12 for with-arch and with-tune + configure switches. + * common/config/s390/s390-common.c (processor_flags_table): Add + zEC12 entry. + * config/s390/2827.md: New file. + * config/s390/s390-opts.h (enum processor_type): Add + PROCESSOR_2827_ZEC12. + * config/s390/s390.h (enum processor_flags): Add PF_ZEC12. + (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions. + * config/s390/s390.c (zEC12_cost): New definition. + (s390_option_override): Set costs for zEC12. + Set parameter defaults for zEC12. + (legitimate_reload_fp_constant_p): Adjust comment. + (preferred_la_operand_p): Adjust comment. + (s390_expand_insv): Generate insv pattern without CC clobber for zEC12. + (s390_adjust_priority): Add zEC12 check. + (s390_issue_rate): Return 2 for zEC12. + (s390_reorg): Enable code optimizations for zEC12. + (s390_sched_reorder): Reorder insns according to OOO attributes. + (s390_get_sched_attrmask): New function. + (s390_sched_score): New function. + (s390_sched_variable_issue): Update s390_sched_state. + (s390_sched_init): Reset s390_sched_state. + (s390_loop_unroll_adjust): Enable for zEC12. + * config/s390/s390.opt: Add zEC12 processor type value. + * config/s390/s390.md: Enable mnemonic attribute. + (attr cpu, cpu_facility): Add zEC12. + Include 2827.md. + ("*insv_zEC12", "*insv_zEC12_noshift") + ("*load_and_trap"): New insn definition. + ("*cmp_and_trap_unsigned_int"): Add clt and clgt. + +2012-10-09 David S. Miller + + * config/sparc/sparc.md (type attribute): Add new types 'visl' + (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename + 'fgm_pdist' to 'pdist'. + (*movsi_insn): Use vismv and visl. + (*movdi_insn_sp64): Likewise. + (*movsf_insn): Likewise. + (*movdf_insn_sp64): Likewise. + (*mov_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'. + (*mov_insn_sp64): Likewise, use 'fsrc2s' + instead of 'fsrc1s'. + (*mov_insn_sp32): Likewise, use 'fsrc2s' + instead of 'fsrc1s'. + (VIS logical instructions): Mark as visl. + (pdist_vis): Use 'pdist'. + (pditsn_vis): Use 'pdistn'. + * config/sparc/ultra1_2.md: Adjust for new VIS attribute types. + * config/sparc/ultra3.md: Likewise. + * config/sparc/niagara.md: Likewise. + * config/sparc/niagara2.md: Likewise. + * config/sparc/niagara4.md: Add cpu units "n4_slot2" and + "n4_load_store" for special store scheduling. Use them in load + and store reservations. Integer divide and multiply can only + issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS + logic operations. + +2012-10-10 Dehao Chen + + * tree-eh.c (lower_try_finally_onedest): Set correct location for + deallocator. + * gimplify.c (gimplify_expr): Set correct location for TRY stmt. + +2012-10-10 Oleg Endo + + PR target/52480 + * config/sh/sh.md (extv, extzv): Check that operands[3] is zero, + regardless of the endianness. + +2012-10-09 Lawrence Crowl + + * Makefile.in (fold-const.o): Add depencence on hash-table.h. + (dse.o): Likewise. + (cfg.o): Likewise. + * fold-const.c (fold_checksum_tree): Change to new + type-safe hash table. + * (print_fold_checksum): Likewise. + * cfg.c (var bb_original): Likewise. + * (var bb_copy): Likewise. + * (var loop_copy): Likewise. + * hash-table.h (template hash_table): Constify parameters for find... + and remove_elt... member functions. + (hash_table::empty) Correct size expression. + (hash_table::clear_slot) Correct deleted entry assignment. + * dse.c (var rtx_group_table): Change to new type-safe hash table. + +2012-10-09 Steven Bosscher + + * basic-block. (profile_record): New struct, moved from passes.c. + * cfghooks.h (struct cfg_hooks) : New hook. + (account_profile_record): New prototype. + * cfghooks.c (account_profile_record): New function. + * tree-cfg.c (gimple_account_profile_record): New function + (gimple_cfg_hooks): Add it. + * cfgrtl.c (rtl_account_profile_record): New function + (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it. + * passes.c (check_profile_consistency): Simplify. Move IR-dependent + code around using cfghooks machinery. + +2012-10-09 Oleg Endo + + PR target/54760 + * doc/extend.texi (Target Builtins): Add SH built-in section. + Document __builtin_thread_pointer and __builtin_set_thread_pointer. + +2012-10-09 Venkataramanan Kumar + + PR middle-end/53397 + * tree-ssa-loop-prefetch.c (gather_memory_references_ref): + Perform non constant step prefetching in inner loop, only + when it is invariant in the entire loop nest. + * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump + base, step and delta values of memeory reference analysed for + prefetching. + * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details + to print base, step and delta values of memory reference. + * cfgloop.h (loop_outermost): New function that returns outermost + loop for a given loop in a loop nest. + +2012-10-09 Richard Guenther + + PR middle-end/54837 + * cfgexpand.c (expand_debug_source_expr): Move checking + code conditional on a found decl_debug_args vector. + +2012-10-09 Richard Guenther + + * tree-streamer.c (streamer_tree_cache_get): Move ... + * tree-streamer.h (streamer_tree_cache_get): ... here as inline. + +2012-10-09 Jan Hubicka + + * loop-unroll.c (unroll_loop_constant_iterations): Add + update of loop->nb_iterations_upper_bound I missed in my previous + commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide + iteration count. + (decide_unroll_runtime_iterations): Avoid overflow. + (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of + FLOOR_DIV_EXPR to update iteration bounds. + (decide_peel_simple): Avoid integer overflow when deciding + on number of peelings. + (decide_unroll_stupid): Likewise. + +2012-10-09 Tobias Burnus + + * lto-cgraph.c (input_node_opt_summary): Remove unused code. + * lto-opts.c (append_to_collect_gcc_options): Fix condition. + * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string + which is passed to fprintf. + +2012-10-09 Paolo Carlini + + PR c++/54194 + * tree.h: Add EXPR_LOC_OR_LOC. + +2012-10-09 Nick Clifton + + PR rtl-optimization/54739 + * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns. + + PR target/54661 + * config/mcore/mcore.c (mcore_output_movedouble): Fix typo. + +2012-10-09 Marc Glisse + + PR c++/54427 + * fold-const.c (fold_binary_loc): Use build_zero_cst instead of + build_int_cst for a potential vector. + +2012-10-08 Uros Bizjak + + * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes. + (atom_sse_5): Ditto. + +2012-10-08 Marc Glisse + + PR target/54400 + * config/i386/i386.md (type attribute): Add sseadd1. + (unit attribute): Add support for sseadd1. + (memory attribute): Likewise. + * config/i386/athlon.md: Likewise. + * config/i386/core2.md: Likewise. + * config/i386/atom.md: Likewise. + * config/i386/ppro.md: Likewise. + * config/i386/bdver1.md: Likewise. + * config/i386/sse.md (sse3_hv2df3): Split into... + (sse3_haddv2df3): ... expander. + (*sse3_haddv2df3): ... define_insn. Accept permuted operands. + (sse3_hsubv2df3): ... define_insn. + (*sse3_haddv2df3_low): New define_insn. + (*sse3_hsubv2df3_low): New define_insn. + +2012-10-08 Jan Hubicka + + * loop-unswitch.c (unswitch_single_loop): Use + estimated_loop_iterations_int to prevent unswitching when loop + is known to not roll. + * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault + when SCEV is not initialized. + (max_loop_iterations): Likewise. + * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use + estimated_loop_iterations_int to prevent unswithcing when + loop is known to not roll. + * tree-scalar-evolution.c (scev_initialized_p): New function. + * tree-scalar-evolution.h (scev_initialized_p): Likewise. + * loop-unroll.c (decide_peel_once_rolling): Use + max_loop_iterations_int. + (unroll_loop_constant_iterations): Update + nb_iterations_upper_bound and nb_iterations_estimate. + (decide_unroll_runtime_iterations): Use + estimated_loop_iterations or max_loop_iterations; + (unroll_loop_runtime_iterations): fix profile updating. + (decide_peel_simple): Use estimated_loop_iterations + and max_loop_iterations. + (decide_unroll_stupid): Use estimated_loop_iterations + ad max_loop_iterations. + * loop-doloop.c (doloop_modify): Use max_loop_iterations_int. + (doloop_optimize): Likewise. + * loop-iv.c (iv_number_of_iterations): Use record_niter_bound. + (find_simple_exit): Likewise. + * cfgloop.h (struct niter_desc): Remove niter_max. + +2012-10-08 Marek Polacek + + PR debug/54831 + * var-tracking.c (vt_add_function_parameter): Use condition instead + of gcc_assert. + +2012-10-08 Dehao Chen + + * predict.c (predict_loops): Predict for short-circuit conditions. + (predict_extra_loop_exits): New Function. + +2012-10-08 Steven Bosscher + + * bitmap.h (bitmap_and_into): Update prototype. + * bitmap.c (bitmap_and_into): Return true if the target bitmap + changed, false otherwise. + + * df.h (df_dump_insn_problem_function): New function type. + (struct df_problem): Add two functions, to dump just before and + just after an insn. + (DF_RD_PRUNE_DEAD_DEFS): New changable flag. + (df_dump_insn_top, df_dump_insn_bottom): New prototypes. + * df-core (df_dump_region): Use dump_bb. + (df_dump_bb_problem_data): New function. + (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data. + (df_dump_insn_problem_data): New function. + (df_dump_insn_top, df_dump_insn_bottom): New functions. + * df-scan.c (problem_SCAN): Add NULL fields for new members. + * df-problems.c (df_rd_local_compute): Ignore hard registers if + DF_NO_HARD_REGS is in effect. + (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect, + prune reaching defs using the LR problem. + (df_rd_start_dump): Fix dumping of DEFs map. + (df_rd_dump_defs_set): New function. + (df_rd_top_dump, df_rd_bottom_dump): Use it. + (problem_RD): Add NULL fields for new members. + (problem_LR, problem_LIVE): Likewise. + (df_chain_bb_dump): New function. + (df_chain_top_dump): Dump only for artificial DEFs and USEs, + using df_chain_bb_dump. + (df_chain_bottom_dump): Likewise. + (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions. + (problem_CHAIN): Add them as new members. + (problem_WORD_LR, problem_NOTE): Add NULL fields for new members. + (problem_MD): Likewise. + * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom. + (print_rtl_with_bb): Likewise. + + * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS. + * loop-invariant.c (find_defs): Likewise. + * loop-iv.c (iv_analysis_loop_init): Likewise. + * ree.c (find_and_remove_re): Likewise. + * web.c (web_main): Likewise. + +2012-10-08 Jason Merrill + + * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of + ASM_WEAKEN_DECL with #if RS6000_WEAK. + +2012-10-08 Richard Guenther + + PR tree-optimization/54825 + * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF. + (init_vn_nary_op_from_stmt): Likewise. + * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt. + * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow. + +2012-10-08 Richard Guenther + + * tree-ssa-pre.c (postorder_num): New global. + (compute_antic): Initialize all blocks and adjust for + generic postorder. + (my_rev_post_order_compute): Remove. + (init_pre): Use inverted_post_order_compute. + +2012-10-08 Bernd Schmidt + + * sched-int.h (schedule_block): Adjust declaration. + * sched-rgn.c (bb_state_array, bb_state): New static variables. + (sched_rgn_init): Initialize them. + (sched_rgn_free): Free them. + (schedule_region): Save scheduling state for future blocks, and + pass such state to schedule_block. + * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New. + * doc/invoke.texi (--param): Document it. + * haifa-sched.c (schedule_block): New arg init_state. Use it to + initialize state if nonnull. All callers changed. + Call advance_one_cycle after scheduling. + +2012-10-08 Georg-Johann Lay + + PR target/54854 + * doc/invoke.texi (AVR Options): Remove -mshort-calls. + * config/avr/avr.opt (-mshort-calls): Remove option. + * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on + TARGET_SHORT_CALLS. + +2012-10-08 Oleg Endo + + PR target/54685 + * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual + combine matching for an insn sequence where a ge:SI pattern + can be used. + +2012-10-08 Dodji Seketeli + + PR c++/53528 C++11 attribute support + * plugin.h (register_scoped_attributes): Declare new function. + * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag. + (lookup_scoped_attribute_spec, cxx_11_attribute_p) + (get_attribute_name, get_attribute_namespace): Declare new functions. + (struct attribute_spec): Remove const qualifier from the members. + * tree.c (comp_type_attributes, private_lookup_attribute) + (lookup_ident_attribute, remove_attribute, merge_attribute) + (attribute_hash_list, attribute_list_contained): Use + get_attribute_name. + * attribs.c (decl_attributes): Don't crash on error_mark_node. + Forbid c++11 attributes appertaining to type-specifiers. + (attribute_hash): Remove global variable. + (attributes_table): New global variable. + (find_attribute_namespace, register_scoped_attribute): New static + functions. + (register_scoped_attributes, lookup_scoped_attribute_spec) + (cxx11_attribute_p, get_attribute_name, get_attribute_namespace): + New public functions. + (init_attributes): Register all the GNU attributes into the "gnu" + namespace. + (register_attribute): Use register_scoped_attribute to register + the attribute into the "gnu" namespace. + (lookup_attribute_spec): Use lookup_scoped_attribute_spec to + lookup the attribute in the "gnu" namespace. + (decl_attributes): Use new get_attribute_namespace and + lookup_scoped_attribute_spec to consider attribute namespaces when + looking up attributes. When operating in c++-11 mode, pass flag + ATTR_FLAG_CXX11 to the spec handler. + +2012-10-08 Georg-Johann Lay + + PR target/54815 + * config/avr/avr.md (*add3, add3, addpsi3): Make + constraint alternative "r,0,r" slighly more expensive. + (sub3, andqi3, andhi3, andpsi3, andsi3): Ditto. + (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto. + (xorhi3, xorpsi3, xorsi3): Ditto. + +2012-10-08 Oleg Endo + + PR target/54760 + * config/sh/sh.md (*mov_gbr_load, *mov_gbr_store): New + insns and accompanying unnamed splits. + * config/sh/predicates.md (general_movsrc_operand, + general_movdst_operand): Reject GBR addresses. + * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration. + * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p, + sh_secondary_reload): Handle GBR addresses. + (base_reg_disp): New class. + (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions. + +2012-10-08 Hans-Peter Nilsson + + * config/mmix/mmix.c (mmix_output_octa): Don't assume + HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use + HOST_WIDE_INT_PRINT_HEX_PURE, falling back to + HOST_WIDEST_INT_PRINT_UNSIGNED. + +2012-10-07 Richard Sandiford + + * machmode.h (GET_MODE_UNIT_PRECISION): New macro. + * simplify-rtx.c (simplify_truncation): New function, + extracted from simplify_subreg and (in small part) from + simplify_unary_operation_1. + (simplify_unary_operation_1) : Use it. Remove sign bit + test for !TRULY_NOOP_TRUNCATION_MODES_P. + (simplify_subreg): Use simplify_truncate for lowpart subregs + where both the inner and outer modes are scalar integers. + * config/mips/mips.c (mips_truncated_op_cost): New function. + (mips_rtx_costs): Adjust test for BADDU. + * config/mips/mips.md (*baddu_di): Push truncates to operands. + +2012-10-07 Jan Hubicka + + * ipa-inline-analysis.c (do_estimate_edge_time): Return actual + time spent by the inlined sequence. + (do_estimate_edge_growth): Rename to ... + (do_estimate_edge_time): ... this one; return size of inlined sequence. + * ipa-inline.h (do_estimate_edge_size): New. + (do_estimate_edge_growth): Remove. + (estimate_edge_size): New function. + (estimate_edge_growth): Use it. + +2012-10-07 Jan Hubicka + + * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT. + (lto_symtab_encoder_delete): Update. + (lto_symtab_encoder_encode): Update. + (compute_ltrans_boundary): Update. + (input_symtab): Update. + * lto-streamer.h (lto_symtab_encoder_new): Update. + +2012-10-07 Richard Sandiford + + * config/mips/mips-protos.h (mips_split_type): New enum. + (mips_split_64bit_move_p, mips_split_doubleword_move): Delete. + (mips_split_move_p, mips_split_move, mips_split_move_insn_p) + (mips_split_move_insn): Declare. + * config/mips/mips.c (mips_tuning_info): New variable. + (mips_load_store_insns): Use mips_split_move_insn_p instead of + mips_split_64bit_move_p. + (mips_emit_move_or_split, mips_mult_move_p): New functions. + (mips_split_64bit_move_p): Rename to... + (mips_split_move_p): ...this and take a mips_split_type argument. + Generalize to all moves. Call mips_mult_move_p. + (mips_split_doubleword_move): Rename to... + (mips_split_move): ...this and take a mips_split_type argument. + Assert that mips_split_move_p holds. + (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn): + New functions. + (mips_output_move): Use mips_split_move_p instead of + mips_split_64bit_move_p. Handle MULT $0, $0 moves. + (mips_save_reg): Use mips_emit_move_or_split. + (mips_sim_reset): Assign to curr_state. Call targetm.sched.init + and advance_state. + (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and + targetm.sched.init_dfa_post_cycle_insn, if defined. + (mips_sim_next_cycle): Assign to curr_state. Use advance_state + instead of state_transition. + (mips_sim_issue_insn): Assign to curr_state. Use + targetm.sched.variable_issue to see how many more insns can be issued. + (mips_seq_time, mips_mult_zero_zero_cost) + (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info) + (mips_expand_to_rtl_hook): New functions. + (TARGET_EXPAND_TO_RTL_HOOK): Define. + * config/mips/mips.md (move_type): Add imul. + (type): Map imul move_types to imul. + (*movdi_32bit, *movti): Add imul alternatives. + Use mips_split_move_insn_p and mips_split_move_insn instead of + mips_split_64bit_move_p and mips_split_doubleword_move in move + splitters. + +2012-10-06 Segher Boessenkool + + * config/rs6000/rs6000.c (print_operand) ['A']: Delete. + +2012-10-06 Paolo Carlini + + PR c++/52764 + * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define + __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS. + * ginclude/stdint-gcc.h: In C++11 unconditionally define + limit and constant macros. + +2012-10-06 Paolo Carlini + + PR c++/54249 + * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global + namespace. + +2012-10-06 Jan Hubicka + + PR lto/53831 + PR lto/54776 + * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack. + +2012-10-06 Dehao Chen + + PR debug/54826 + * gimple-low.c (lower_stmt): Set the block for call args. + +2012-10-06 Jan Hubicka + + * doc/invoke.texi (-fprofile-report): Document. + * common.opt (-fprofile-report): New option. + * toplev.c (finalize): Call dump_profile_report. + * toplev.h (profile_report): Declare. + * passes.c (profile_record): New static var. + (check_profile_consistency): New function. + (dump_profile_record): New function. + (execute_one_ipa_transform_pass): Call check_profile_consistency. + (execute_one_pass): Likewise. + +2012-10-06 Jan Hubicka + + PR lto/54790 + * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution, + lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove. + * lto-symtab.c (lto_symtab_register_decl): Remove. + +2012-10-06 Andreas Schwab + + PR rtl-optimization/54739 + * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove. + +2012-10-06 Oleg Endo + + PR target/54760 + * config/sh/sh.md (define_constants): Add UNSPECV_GBR. + (get_thread_pointer, set_thread_pointer): New expanders. + (load_gbr): Rename to store_gbr. Remove GBR_REG use. + (store_gbr): New insn. + * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of + gen_load_gbr in TLS_MODEL_LOCAL_EXEC case. + (sh1_builtin_p): New function. + (signature_args): Add SH_BLTIN_VP. + (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer. + +2012-10-05 John David Anglin + + PR rtl-optimization/54739 + * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns + for 32-bit targets. Adjust expanders. + + * config/pa/pa.md: Adjust unamed HImode add insn pattern. + +2012-10-05 Oleg Endo + + * config/sh/sh.c (builtin_description): Add is_enabled member. + (shmedia_builtin_p): New function. + (bdesc): Use shmedia_builtin_p for existing built-ins. + (sh_media_init_builtins, sh_init_builtins): Merge into single function + sh_init_builtins. Add is_enabled checking. Move variable declarations + to where they are actually used. + (sh_media_builtin_decl, sh_builtin_decl): Merge into single function + sh_builtin_decl. Add is_enabled checking. + (sh_expand_builtin): Move variable declarations to where they are + actually used. + +2012-10-05 Jakub Jelinek + + * tree-inline.c (expand_call_inline): Move VAR_DECLs with + PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS + into id->block's BLOCK_VARS. + + PR debug/54519 + * ipa-split.c (split_function): Add debug args and debug source + and normal stmts for args_to_skip which are gimple regs. + * tree-inline.c (copy_debug_stmt): When inlining, adjust source + debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL. + +2012-10-05 Georg-Johann Lay + + * config/avr/avr.md: Fix indentations of insn C snippets. + +2012-10-05 Richard Guenther + + PR middle-end/54811 + * tree-ssa-live.c (clear_unused_block_pointer_1): Look at + DECL_DEBUG_EXPR again. + +2012-10-05 Jan Hubicka + Jakub Jelinek + + PR tree-optimization/33763 + * tree-inline.c (expand_call_inline): Silently ignore always_inline + attribute for redefined extern inline functions. + +2012-10-04 Jan Hubicka + + * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove. + * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here. + (vect_analyze_loop_operations): Use loop count estimate to rule out + unprofitable vectorization. + (vect_estimate_min_profitable_iters): Return + ret_min_profitable_estimate. + +2012-10-05 Jakub Jelinek + + PR tree-optimization/54810 + * tree-vrp.c (register_edge_assert_for_2): Handle + NAME = (unsigned) NAME2; if (NAME cmp CST) for + narrowing casts to unsigned integral type like + NAME = NAME2 & CST2; if (NAME cmp CST) where CST2 + is the max value of the unsigned integral type. + +2012-10-04 Jeff Law + + PR target/50356 + * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case. + +2012-10-04 Jason Merrill + + * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of + ASM_WEAKEN_DECL with #if RS6000_WEAK. + +2012-10-04 Basile Starynkevitch + + * gengtype.c (walk_type): Emit mark_hook when inside a + struct of a union member. + +2012-10-04 Georg-Johann Lay + + * config/avr/predicates.md (flash_operand): New predicate. + * config/avr/avr.md (reload_in): Use it in operand 1 instead + of memory_operand. + +2012-10-04 Tobias Burnus + + * gcc.c (record_temp_file, add_sysrooted_prefix, process_command, + do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks. + (do_spec_1): Ditto, fix out-of-bound access. + * opts.c (common_handle_option): Plug memleak. + +2012-10-04 Jason Merrill + + * config/darwin.c (darwin_assemble_visibility): Treat + VISIBILITY_INTERNAL as hidden. + + * config/darwin-c.c (find_subframework_file): Add missing const. + (framework_construct_pathname): Likewise. + +2012-10-04 Florian Weimer + + * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma + GCC error. + +2012-10-04 Richard Guenther + + PR middle-end/54735 + * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before + cleaning up the CFG. + +2012-10-04 Richard Guenther + + PR lto/47799 + * tree-streamer-out.c (write_ts_block_tree_pointers): For + inlined functions outer scopes write the ultimate origin + as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION. + Do not stream the fragment chains. + * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise. + * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL. + (dwarf2out_decl): Always output DECL_ABSTRACT function decls. + +2012-10-04 Arnaud Charlet + + * dumpfile.h, dumpfile.c: Remove TDI_ada. + +2012-10-04 Yuri Rumyantsev + + * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add + check on reload_completed since it can be invoked before + register allocation phase in pre-reload schedule. + (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for + pre-reload schedule to save compile time. + (ix86_sched_reorder) : Do not perform ready list reordering for + pre-reload schedule to save compile time. + (insn_is_function_arg) : New function. Returns true if lhs of insn is + HW function argument register. + (add_parameter_dependencies) : New function. Add output dependencies + for chain of function adjacent arguments if only there is a move to + likely spilled HW registers. Return first argument if at least one + dependence was added or NULL otherwise. + (avoid_func_arg_motion) : New function. Add output or anti dependency + from insn to first_arg to restrict code motion. + (add_dependee_for_func_arg) : New function. Avoid cross block motion of + function argument through adding dependency from the first non-jump + insn in bb. + (ix86_dependencies_evaluation_hook) : New function. Hook for + pre-reload schedule: avoid motion of function arguments passed in + likely spilled HW registers. + (ix86_adjust_priority) : New function. Hook for pre-reload schedule: + set priority of moves from likely spilled HW registers to maximum to + schedule them as soon as possible. + (ix86_sched_init_global): Do not perform multipass scheduling for + pre-reload schedule to save compile time. + +2012-10-04 Uros Bizjak + + * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables. + * configure: Regenerate. + +2012-10-04 Kaz Kojima + + * config/sh/sh.c (sh_can_use_simple_return_p): Return false for + SHmedia and SHcompact using call cookie. + * config/sh/sh.md (epilogue): Emit non-inlined return insns for + SHmedia and SHcompact using call cookie. + +2012-10-03 Oleg Endo + + PR target/51244 + * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying + unnamed split patterns. + +2012-10-03 Oleg Endo + + PR target/50457 + * config/sh/sh.c (parse_validate_atomic_model_option): Handle name + strings in sh_atomic_model. + * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation + to ... + * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function. + Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define. + * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name + variables. + (sh_cpu_cpp_builtins): Declare new function. + +2012-10-03 Dehao Chen + + PR middle-end/54782 + * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args. + +2012-10-03 Vladimir Makarov + + * reginfo.c (max_regno_since_last_resize): New. + (reg_preferred_class, reg_alternate_class): Add assert. + (allocate_reg_info): Initialize allocated reg info. + (resize_reg_info): Make bigger reg_info and initialize new memory. + (reginfo_init): Initialize max_regno_since_last_resize. + (setup_reg_classes): Change assert. + +2012-10-03 Andrew W. Nosenko + + * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic + in SSE and YMM state support check for -march=native. + +2012-10-03 Nick Clifton + + * config/rx/rx.c (struct decl_chain): New local structure. + (warned_decls): New local variable. Contains a stack of decls for + which warnings have been issued. + (add_warned_decl): Adds a decl to the stack. + (already_warned): Returns true if a given decl is on the stack. + (rx_set_current_function): Issue a warning if multiple fast + interrupt handlers are defined. + * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option. + * doc/invoke.texi: Document the option. + +2012-10-03 Mark Kettenis + + * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set + default_use_cxa_atexit to yes. + +2012-10-03 Jakub Jelinek + + PR rtl-optimization/54792 + * sched-deps.c (find_modifiable_mems): Scan also TAIL insn. + +2012-10-02 H.J. Lu + + PR target/54785 + * doc/invoke.texi: Document -mprefer-avx128. + +2012-10-02 Andrew Pinski + + * simplify-rtx.c (simplify_unary_operation_1 ): + Don't optimize a truncate of a mem if it is a vector mode. + +2012-10-02 Alexandre Oliva + + PR debug/54551 + * Makefile.in (VALTRACK_H): Add hash-table.h. + * valtrack.h: Include hash-table.h. + (struct dead_debug_global_entry): New. + (struct dead_debug_hash_descr): New. + (struct dead_debug_global): New. + (struct dead_debug): Rename to... + (struct dead_debug_local): ... this. Adjust all uses. + (dead_debug_global_init, dead_debug_global_finish): New. + (dead_debug_init): Rename to... + (dead_debug_local_init): ... this. Adjust all callers. + (dead_debug_finish): Rename to... + (dead_debug_local_finish): ... this. Adjust all callers. + * valtrack.c (dead_debug_global_init): New. + (dead_debug_init): Rename to... + (dead_debug_local_init): ... this. Take global parameter. + Save it and initialize used bitmap from it. + (dead_debug_global_find, dead_debug_global_insert): New. + (dead_debug_global_replace_temp): New. + (dead_debug_promote_uses): New. + (dead_debug_finish): Rename to... + (dead_debug_local_finish): ... this. Promote remaining uses. + (dead_debug_global_finish): New. + (dead_debug_add): Try to replace global temps first. + (dead_debug_insert_temp): Support global replacements. + * dce.c (word_dce_process_block, dce_process_block): Add + global_debug parameter. Pass it on. + (fast_dce): Initialize, pass on and finalize global_debug. + * df-problems.c (df_set_unused_notes_for_mw): Adjusted. + (df_create_unused_notes, df_note_bb_compute): Likewise. + (df_note_compute): Justify local-only dead debug analysis. + +2012-10-02 Alexandre Oliva + + PR debug/53135 + * dwarf2out.c (value_format): Use block4 for dw_val_class_loc + when needed. + +2012-10-02 Alexandre Oliva + + PR debug/54177 + * var-tracking.c (vt_add_function_parameter): Bail if + var_lowpart fails. + +2012-10-02 H.J. Lu + + PR target/54741 + * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New. + (XSTATE_FP): Likewise. + (XSTATE_SSE): Likewise. + (XSTATE_YMM): Likewise. + (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if + SSE and YMM states aren't supported. + +2012-10-02 Richard Sandiford + + * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into... + (*baddu_si): ...this new pattern. + +2012-10-02 Richard Sandiford + + * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs. + (ira_useful_class_mode_regs): New macro. + * ira.c (clarify_prohibited_class_mode_regs): Set up + ira_useful_class_mode_regs. + * ira-color.c (setup_profitable_hard_regs): Use it to initialise + profitable_hard_regs. + +2012-10-02 Richard Sandiford + + * ira.h (target_ira): Add x_ira_class_singleton. + (ira_class_singleton): New macro. + * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton. + * ira-build.c (update_conflict_hard_reg_costs): Use + ira_class_singleton to check for classes with a single + allocatable register. + * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise. + (single_reg_class): Likewise. When more than one class is specified, + check whether they have the same singleton register. + (process_single_reg_class_operands): Require single_reg_class + to return NO_REGS or a class with a single allocatable register. + Obtain that register from ira_class_singleton. + +2012-10-02 Michael Meissner + + * config/rs6000/rs6000.c (rs6000_option_override_internal): If + -mcpu= is not specified and the compiler is not configured + using --with-cpu=, use the bits from the TARGET_DEFAULT to + set the initial options. + +2012-10-02 Sharad Singhai + + PR testsuite/54772 + * tree-vect-stmts.c (vectorizable_operation): Add missing return. + +2012-10-02 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not + set TARGET_ALTIVEC_VRSAVE for TARGET_ELF. + (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE. + +2012-10-02 Jakub Jelinek + + PR tree-optimization/54713 + * expr.c (categorize_ctor_elements_1): Don't assume purpose is + non-NULL. + * tree-cfg.c (verify_gimple_assign_single): Add verification of + vector CONSTRUCTORs. + * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE + CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE, + and don't check index. + * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor + elements first if their type isn't compatible with vector element type. + +2012-10-02 Eric Botcazou + + * tree.h (DECL_NONLOCAL_FRAME): New macro. + * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME. + * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in + DECL_NONLOCAL_FRAME flag. + * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out + DECL_NONLOCAL_FRAME flag. + +2012-10-02 Marc Glisse + + * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use + boolean_type_node for vectors. + +2012-10-01 Michael Meissner + + * config/rs6000/rs6000.c (toplevel): Include dumpfile.h. + (rs6000_density_test): Rework to accommodate 09-30 change by + Sharad Singhai. + + * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency. + +2012-10-01 Dehao Chen + + PR middle-end/54759 + * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use + LOCATION_LOCUS to compare with UNKNOWN_LOCATION. + (slpeel_tree_peel_loop_to_edge): Likewise. + * tree-vectorizer.c (vectorize_loops): Likewise. + +2012-10-01 Andrew MacLeod + + PR target/54087 + * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code + from expand_atomic_fetch_op. + (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of + the other one if direct opcode fails. + +2012-10-01 Uros Bizjak + + PR rtl-optimization/54457 + * simplify-rtx.c (simplify_subreg): + Simplify (subreg:M (op:N ((x:N) (y:N)), 0) + to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where + the outer subreg is effectively a truncation to the original mode M. + +2012-10-01 Richard Guenther + + * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops + with -frounding-math. + * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove. + (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise. + +2012-10-01 Eric Botcazou + + * tree.h (copy_mem_ref_info): Delete. + * tree-ssa-address.c (copy_mem_ref_info): Likewise. + (maybe_fold_tmr): Copy flags manually. + * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite. + +2012-10-01 Marc Glisse + + * simplify-rtx.c (simplify_binary_operation_1) : + Detect the identity. + : Handle VEC_SELECTs from the same vector. + +2012-10-01 Oleg Endo + + PR target/50457 + * config/sh/sh.opt (matomic-model): New option. + (msoft-atomic): Mark as deprecated and alias to + matomic-model=soft-gusa. + (mhard-atomic): Delete. + * config/sh/predicates.md (gbr_displacement): New predicate. + * config/sh/sh-protos.h (sh_atomic_model): New struct. + (selected_atomic_model): New declaration. + (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA, + TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB, + TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK): + New macros. + * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to + default atomic model. + * config/sh/sh.c (selected_atomic_model_): New global variable. + (selected_atomic_model, parse_validate_atomic_model_option): New + functions. + (sh_option_override): Replace atomic selection checks with call to + parse_validate_atomic_model_option. + * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS, + UNSUPPORTED_HARD_ATOMIC_CPU): Delete. + (DRIVER_SELF_SPECS): Remove atomic checks. + config/sh/sync.md: Update documentation comments. + (atomic_compare_and_swap, atomic_exchange, + atomic_fetch_, atomic_fetch_nand, + atomic__fetch, atomic_nand_fetch): Use + TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for + SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and + TARGET_ATOMIC_SOFT_IMASK cases. + (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and + TARGET_ATOMIC_SOFT_IMASK cases. + (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard, + atomic_fetch_si_hard, atomic_fetch_nandsi_hard, + atomic__fetchsi_hard, atomic_nand_fetchsi_hard): + Add TARGET_ATOMIC_STRICT check. + (atomic_compare_and_swap_hard, atomic_exchange_hard, + atomic_fetch__hard, atomic_fetch_nand_hard, + atomic__fetch_hard, atomic_nand_fetch_hard, + atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition. + (atomic_compare_and_swap_soft, atomic_exchange_soft, + atomic_fetch__soft, atomic_fetch_nand_soft, + atomic__fetch_soft, atomic_nand_fetch_soft, + atomic_test_and_set_soft): Append _gusa to the insn names and use + TARGET_ATOMIC_SOFT_GUSA as condition. + (atomic_compare_and_swap_soft_tcb, + atomic_exchange_soft_tcb, + atomic_fetch__soft_tcb, + atomic_fetch_nand_soft_tcb, + atomic__fetch_soft_tcb, + atomic_nand_fetch_soft_tcb, atomic_test_and_set_soft_tcb): + New insns. + (atomic_compare_and_swap_soft_imask, + atomic_exchange_soft_imask, + atomic_fetch__soft_imask, + atomic_fetch_nand_soft_imask, + atomic__fetch_soft_imask, + atomic_nand_fetch_soft_imask, atomic_test_and_set_soft_imask): + New insns. + * doc/invoke.texi (SH Options): Document new matomic-model option. + Remove msoft-atomic and mhard-atomic options. + +2012-10-01 Andreas Krebbel + + PR target/54746 + * config/s390/s390.c (s390_option_override): Add missing break. + +2012-09-30 Sharad Singhai + + * dumpfile.c: New file with parts moved from tree-dump.c. + (pflags): New variable. + (alt_flags): Ditto. + (alt_dump_file): Ditto. + (dump_files): Update to include additional fields. + (struct dump_option_value_info): Add additional entries. + (get_dump_file_name): Use command line filename if available. + (dump_open_alternate_stream): New function. + (dump_loc): Ditto. + (dump_gimple_stmt): Ditto. + (dump_gimple_stmt_loc): Ditto. + (dump_generic_expr): Ditto. + (dump_generic_expr_loc): Ditto. + (dump_printf): Ditto. + (dump_printf_loc): Ditto. + (dump_start): Ditto. + (dump_finish): Ditto. + (dump_begin): Ditto. + (dump_enabled_p): Return true if either of the dump types is enabled. + (dump_initialized_p): Return true if either type of dump is + initialized. + (dump_end): Do not close standard streams. + (dump_enable_all): Handle filenames for regular dumps. + (dump_switch_p_1): Handle command-line dump filenames. + (opt_info_enable_all): New function. + (opt_info_switch_p_1): Ditto. + (opt_info_switch_p): Ditto. + (dump_kind_p): Ditto. + (dump_basic_block): Ditto. + (dump_combine_total_stats): Ditto. + (dump_remap_tree_vectorizer_verbose): Ditto. + * gimple-pretty-print.h: Rename dump_gimple_stmt to + pp_gimple_stmt_1. All callers updated. + +2012-09-30 Sharad Singhai + + * doc/invoke.texi: Add documentation for the new -fopt-info option. + * tree-dump.c: Move general dump file related functionality into + dumpfile.c. Remove unneeded headers. + * tree-dump.h: Move function declarations into dumpfile.h. + * dumpfile.h: Include "line-map.h". Add defines for MSG flags. + (struct dump_file_info): Move here from tree-dump.c. Rename flags + to pflags, state to pstate, stream to pstream, filename to + pfilename. All callers updated. Add alt_flags, alt_state, + alt_filenmae, alt_stream. + * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump. + (vect_set_dump_settings): Remove. + (vect_print_dump_info): Ditto. + * tree-vectorizer.h: Remove declaration of vect_dump and + vect_print_dump_info. + * tree-vect-loop.c: Include "dumpfile.h". Use new dump style. + * tree-vect-data-refs.c: Ditto. + * tree-vect-stmts.c: Ditto. + * tree-vect-slp.c: Ditto. + * tree-vect-patterns.c: Ditto. + * tree-vect-loop-manip.c: Ditto. + * opts.c (vect_set_verbosity_level): Remove. + (common_handle_option): Handle -fopt-info flag. Deprecate + -ftree-vectorizer-verbose. + * tree-parloops.c (gather_scalar_reductions): Remove reference to + vect_dump. + * flag-types.h: Remove vect_verbosity_levels. + * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose. + * opts-global.c (dump_remap_tree_vectorizer_verbose): New function. + (handle_common_deferred_options): Handle -fopt-info and + -ftree-vectorizer-verbose. + * Makefile.in: Add dumpfile.o. + (tree-dump.o): Update dependencies. + (tree-vect-loop.o): Ditto. + (tree-vect-loop-manip.o): Ditto. + (tree-vect-slp.o): Ditto. + (tree-vect-stmts.o): Ditto. + (tree-vectorizer.o): Ditto. + (opts.o): Ditto. + * passes.c (finish_optimization_passes): Instead of using + dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file. + (pass_init_dump_file): Ditto. + +2012-09-30 Joern Rennecke + + PR rtl-optimization/38449: + * hooks.c (hook_bool_const_rtx_const_rtx_true): New function. + * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare. + * target.def: Merge in definitions and documentation for + TARGET_CAN_FOLLOW_JUMP. + * doc/tm.texi.in: Add documentation locations for the above. + * doc/tm.texi: Regenerate. + * reorg.c (follow_jumps): New parameters jump and crossing. + Changed all callers. + +2012-09-30 Eric Botcazou + + * reorg.c (relax_delay_slots): Use delay_insn consistently. + + * config/sparc/sparc.c (gen_stack_pointer_dec): Delete. + (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust. + (sparc_flat_expand_epilogue): Likewise. + (emit_and_preserve): Likewise. + (sparc_fold_builtin): Fix thinko in latest change. + +2012-09-30 Andreas Schwab + + * config/m68k/m68k.md: Add names to bitfield insert and extract + insns. + (*insv_8_16_reg): Remove constraints and conditions that assume + that operand 0 could be a MEM. + (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1. + +2012-09-30 Jan Hubicka + + * cfgloop.c (scale_loop_profile): Move to... + * cfgloopmanip.c (scale_loop_profile): .. here; use + scale_loop_frequencies. + (loopify): Use RDIV. + +2012-09-28 Jan Hubicka + + * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile. + +2012-09-28 Jan Hubicka + + * function.c (dup_block_and_redirect): Update profile. + +2012-09-29 Andreas Tobler + + * config.gcc: Replace 'host' with 'target' when configuring for + powerpc64*-*-freebsd. + +2012-09-29 Marc Glisse + + * tree.c (truth_type_for): New function. + * tree.h (truth_type_for): Declare. + * gimple-fold.c (and_comparisons_1): Call it. + (or_comparisons_1): Likewise. + * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use + boolean_type_node for vectors. + +2012-09-28 Jan Hubicka + + * basic-block.h (RDIV): Define. + (EDGE_FREQUENCY): Simplify. + (check_probability, combine_probabilities, apply_probability, + inverse_probability): New. + * cfgloop.c (scale_loop_profile): New function. + * cfgloop.h (scale_loop_profile): Declare. + (slpeel_add_loop_guard): Add probability parameter. + (set_prologue_iterations): Add probability parameter. + (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters; + update probabilities correctly. + (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New. + +2012-09-20 Bernd Schmidt + + PR bootstrap/54688 + * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take + STACK_GROWS_DOWNWARD into account. + +2012-09-28 Jakub Jelinek + + PR target/54716 + * config/i386/predicates.md (nonimmediate_or_const_vector_operand): + New predicate. + * config/i386/i386.c (ix86_expand_vector_logical_operator): New + function. + * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New + prototype. + * config/i386/sse.md (3 VI logic): Use it. + + PR tree-optimization/54713 + * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR + has vector elements. + (fold_ternary_loc) : Likewise. + * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts + indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements. + (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes. + +2012-09-28 Georg-Johann Lay + + * config/avr/avr.md (adjust_len): Add lpm. + (reload_in): Use avr_out_lpm for output. Use "lpm" for + adjust_len. + * config/avr/avr-protos.h (avr_out_lpm): New prototype. + * config/avr/avr.c (avr_out_lpm): Make global. + (adjust_insn_length): Handle ADJUST_LEN_LPM. + +2012-09-28 Richard Guenther + + PR lto/47799 + * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global. + (lto_output_tree_ref): Handle references to them. + (output_function): Do not output function arguments again. + * lto-streamer-in.c (input_function): Do not input arguments + again, nor overwrite them. + +2012-09-28 Richard Guenther + + * cgraph.h (symtab_node_base): Re-order and pack fields. + +2012-09-28 Georg-Johann Lay + + * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic. + +2012-09-28 Georg-Johann Lay + + PR rtl-optimization/52543 + * config/avr/avr.c (avr_mode_dependent_address_p): Return true for + all non-generic address spaces. + (TARGET_SECONDARY_RELOAD): New hook define to... + (avr_secondary_reload): ...this new static function. + * config/avr/avr.md (reload_in): New insns. + + Undo r185605 (mostly): + * config/avr/avr-protos.h (avr_load_lpm): Remove. + * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash + loads. + (avr_out_lpm): Also handle loads > 1 byte. + (avr_load_lpm): Remove. + (avr_find_unused_d_reg): New static function. + (avr_out_lpm_no_lpmx): New static function. + (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM. + * config/avr/avr.md (unspec): Remove UNSPEC_LPM. + (load__libgcc): Use MEM instead of UNSPEC_LPM. + (load_, load__clobber): Remove. + (mov): For multi-byte move from non-generic + 16-bit address spaces: Expand to *mov again. + (load_libgcc): New expander. + (split-lpmx): Remove split. + +2012-09-27 Dehao Chen + + * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION. + (extern void protected_set_expr_location): Likewise. + (function_args_iter_next): Likewise. + (inlined_function_outer_scope_p): Likewise. + * input.h (IS_UNKNOWN_LOCATION): Likewise. + * fold-const.c (expr_location_or): Likewise. + * lto-cgraph.c (output_node_opt_summary): Likewise. + * dwarf2out.c (add_src_coords_attributes): Likewise. + * tree-eh.c (lower_try_finally_dup_block): Likewise. + * profile.c (branch_prob): + * cfgexpand.c (expand_gimple_cond): Likewise. + (expand_gimple_basic_block): Likewise. + (construct_exit_block): Likewise. + (gimple_expand_cfg): Likewise. + * cfgcleanup.c (try_forward_edges): Likewise. + * tree-ssa-live.c (remove_unused_scope_block_p): Likewise. + (dump_scope_block): Likewise. + * ipa-prop.c (ipa_write_jump_function): Likewise. + * rtl.h (extern void rtl_check_failed_flag): Likewise. + * gimple.h (gimple_set_location): Likewise. + (gimple_has_location): Likewise. + * cfgrtl.c (unique_locus_on_edge_between_p): Likewise. + (force_nonfallthru_and_redirect): Likewise. + (fixup_reorder_chain): Likewise. + (cfg_layout_merge_blocks): Likewise. + +2012-09-27 Meador Inge + + * gcc-ar.c (main): Handle the returning of the sub-process error + code correctly. + +2012-09-27 Ulrich Weigand + + * lower-subreg.c (enum classify_move_insn): Rename + SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE. + (find_decomposable_subregs): Update. + (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter. + Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE + if that parameter is true. + (rest_of_handle_lower_subreg): Call decompose_multiword_subregs + with DECOMPOSE_COPIES false. + (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs + with DECOMPOSE_COPIES true. + +2012-09-27 Marek Polacek + + * doc/gcov.texi (Gcov Data Files): Fix a typo. + +2012-09-27 Jakub Jelinek + + PR target/54703 + * simplify-rtx.c (simplify_binary_operation_1): Perform + (x - (x & y)) -> (x & ~y) optimization only for integral modes. + +2012-09-27 Marc Glisse + + PR c/53024 + PR c++/54427 + * doc/extend.texi (Vector Extensions): C++ improvements. + Power of 2 size requirement. + +2012-09-27 Richard Guenther + + PR lto/54709 + * lto-symtab.c (resolution_guessed_p): Remove. + (set_resolution_guessed): Likewise. + (lto_symtab_register_decl): Remove assert. + (lto_symtab_resolve_symbols): Do not alter symbol resolutions + and return the prevailing symbol, checking for multiple prevailing + symbols here. + (lto_symtab_merge_decls_1): Use the result from + lto_symtab_resolve_symbols. Do not alter symbol resolutions. + +2012-09-26 Steve Ellcey + + PR web/54711 + * doc/install.texi: Fix example. + +2012-09-26 Dehao Chen + + * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void) + for function parameter. + (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL. + +2012-09-26 Oleg Endo + + * doc/extend.texi (bswap Builtins): Change signed types to unsigned + types. + +2012-09-26 Ian Lance Taylor + + * diagnostic.c (bt_callback): Cast pc when calling fprintf. + +2012-09-26 Bill Schmidt + + PR tree-optimization/54674 + * gimple-ssa-strength-reduction.c (analyze_increments): Don't + introduce a multiplication with a pointer operand. + +2012-09-26 Georg-Johann Lay + + PR middle-end/54635 + * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new + parameter addrspace. + * doc/tm.texi: Regenerate. + * target.def (mode_dependent_address_p): Add addr_space_t parameter. + * targhooks.h (default_mode_dependent_address_p): Ditto. + * targhooks.c (default_mode_dependent_address_p): Ditto. + * expr.c (convert_move): Pass address space to + mode_dependent_address_p. + * combine.c (combine_simplify_rtx): Ditto. + (make_extraction): Ditto. + (simplify_shift_const_1): Ditto. + (gen_lowpart_for_combine): Ditto. + * lower-subreg.c (simple_move_operand): Ditto. + * recog.c (simplify_while_replacing): Ditto. + (offsettable_address_addr_space_p): Ditto. + (mode_dependent_address_p): Ditto. + * simplify-rtx.c (simplify_unary_operation_1): Ditto. + (simplify_subreg): Ditto. + * config/m68k/m68k.md: Ditto. + * config/vax/vax.md: Ditto. + * config/vax/constraints.md (Q): Ditto. + * config/vax/predicates.md (indexed_memory_operand): Ditto. + * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add + unused addr_space_t parameter. + * config/avr/avr.c (avr_mode_dependent_address_p): Ditto. + * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto. + * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto. + * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto. + * config/rx/rx.c (rx_mode_dependent_address_p): Ditto. + * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto. + * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p): + Ditto. + * config/vax/vax.c (vax_mode_dependent_address_p): Ditto. + * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto. + +2012-09-26 Christophe Lyon + + * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field. + (execute_optimize_bswap): Add support for builtin_bswap16. + +2012-09-26 Richard Guenther + + * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS. + +2012-09-26 Ian Lance Taylor + + * diagnostic.c: Include "demangle.h" and "backtrace.h". + (bt_stop): New static array. + (bt_callback, bt_err_callback): New static functions. + (diagnostic_action_after_output): Call backtrace_full for DK_ICE. + * Makefile.in (BACKTRACE): New variable. + (BACKTRACEINC, LIBBACKTRACE): New variables. + (BACKTRACE_H): New variable. + (LIBDEPS, LIBS): Add $(LIBBACKTRACE). + (INCLUDES): Add $(BACKTRACEINC). + (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H). + +2012-09-25 Segher Boessenkool + + PR target/51274 + PR target/53087 + * config/rs6000/rs6000.md (ne0si): Remove unnecessary + earlyclobber. Merge with... + (ne0di): ... to... + (ne0_): New. + (plus_ne0si): Merge with... + (plus_ne0di): ... to... + (plus_ne0_): New. + (compare_plus_ne0si): Merge with... + (compare_plus_ne0di)... to... + (compare_plus_ne0_): New. + (compare_plus_ne0__1): New. + (plus_ne0si_compare): Merge with... + (plus_ne0di_compare)... to... + (plus_ne0__compare): New. + +2012-09-25 Oleg Endo + + PR target/54089 + * config/sh/constraints.md (Jhb): New constraint. + * config/sh/predicates.md (negt_reg_shl31_operand): New predicate. + * config/sh/sh.md (rotrsi3): New expander. + (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns. + (rotlsi3, rotlhi3): Use const_int_operand predicate instead of + immediate_operand and remove CONST_INT_P checks in expansion code. + (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add + split with swapped operands. + (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits. + +2012-09-25 Aldy Hernandez + + PR middle-end/53850 + * trans-mem.c (expand_call_tm): Handle late built built-ins. + +2012-09-25 Georg-Johann Lay + + PR other/54701 + * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using + double_int::udivmod. + +2012-09-25 Georg-Johann Lay + + * config/avr/avr.c (avr_set_current_function): Check cfun->machine + to be non-NULL. + +2012-09-25 Georg-Johann Lay + + PR target/54641 + * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS + for sources compiled with COMPILER. + +2012-09-25 Richard Guenther + + PR lto/54625 + * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge + cgraph nodes for builtins. + +2012-09-25 Jakub Jelinek + + PR tree-optimization/54676 + * tree-vrp.c (set_and_canonicalize_value_range): Handle + one bit precision properly. + + PR other/54692 + * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly. + * configure: Regenerated. + +2012-09-25 Georg-Johann Lay + + PR other/54701 + * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi + instead of uhwi_to_double_int. + +2012-09-25 Richard Guenther + + * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge + all of the chain. + +2012-09-25 Richard Guenther + + PR tree-optimization/53663 + * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional + native encode/interpret translation on VN_WALKREWRITE. + +2012-09-24 Dehao Chen + + * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary. + (move_block_to_fn): Reset the edge's goto block even + when the goto locus is unknown. + +2012-09-24 Lawrence Crowl + + * double-int.h (double_int::from_pair): New. + (double_int::wide_mul_with_sign): New. + (double_int::sub_with_overflow): New. + (double_int::neg_with_overflow): New. + (double_int::divmod_with_overflow): New. + (shwi_to_double_int): Remove. + (uhwi_to_double_int): Remove. + (double_int_to_shwi): Remove. + (double_int_to_uhwi): Remove. + (double_int_fits_in_uhwi_p): Remove. + (double_int_fits_in_shwi_p): Remove. + (double_int_fits_in_hwi_p): Remove. + (double_int_mul): Remove. + (double_int_mul_with_sign): Remove. + (double_int_add): Remove. + (double_int_sub): Remove. + (double_int_neg): Remove. + (double_int_div): Remove. + (double_int_sdiv): Remove. + (double_int_udiv): Remove. + (double_int_mod): Remove. + (double_int_smod): Remove. + (double_int_umod): Remove. + (double_int_divmod): Remove. + (double_int_sdivmod): Remove. + (double_int_udivmod): Remove. + (double_int_multiple_of): Remove. + (double_int_setbit): Remove. + (double_int_ctz): Remove. + (double_int_not): Remove. + (double_int_ior): Remove. + (double_int_and): Remove. + (double_int_and_not): Remove. + (double_int_xor): Remove. + (double_int_lshift): Remove. + (double_int_rshift): Remove. + (double_int_lrotate): Remove. + (double_int_rrotate): Remove. + (double_int_negative_p): Remove. + (double_int_cmp): Remove. + (double_int_scmp): Remove. + (double_int_ucmp): Remove. + (double_int_max): Remove. + (double_int_smax): Remove. + (double_int_umax): Remove. + (double_int_min): Remove. + (double_int_smin): Remove. + (double_int_umin): Remove. + (double_int_ext): Remove. + (double_int_sext): Remove. + (double_int_zext): Remove. + (double_int_mask): Remove. + (double_int_max_value): Remove. + (double_int_min_value): Remove. + (double_int_zero_p): Remove. + (double_int_one_p): Remove. + (double_int_minus_one_p): Remove. + (double_int_equal_p): Remove. + (double_int_popcount): Remove. + (extern add_double_with_sign): Remove. + (#define add_double): Remove. + (extern neg_double): Remove. + (extern mul_double_with_sign): Remove. + (extern mul_double_wide_with_sign): Remove. + (#define mul_double): Remove. + (extern lshift_double): Remove. + (extern div_and_round_double): Remove. + * double-int.c (add_double_with_sign): Make static. + (#defined add_double): Localized from header. + (neg_double): Make static. + (mul_double_with_sign): Make static. + (mul_double_wide_with_sign): Make static. + (#defined mul_double): Localized from header. + (lshift_double): Make static. + (div_and_round_double): Make static. + (double_int::wide_mul_with_sign): New. + (double_int::sub_with_overflow): New. + (double_int::neg_with_overflow): New. + (double_int::divmod_with_overflow): New. + * emit-rtl.c (init_emit_once): Change to new double_int API. + * explow.c (plus_constant): Likewise. + * expmed.c (choose_multiplier): Likewise. + * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove. + (int_const_binop_1): Change to new double_int API. + (fold_div_compare): Likewise. + (maybe_canonicalize_comparison): Likewise. + (pointer_may_wrap_p): Likewise. + (fold_negate_const): Likewise. + (fold_abs_const): Likewise. + * simplify-rtx.c (simplify_const_unary_operation): Likewise. + (simplify_const_binary_operation): Likewise. + * tree-chrec.c (tree_fold_binomial): Likewise. + * tree-vrp.c (extract_range_from_binary_expr_1): Likewise. + * config/sparc/sparc.c (sparc_fold_builtin): Likewise. + * config/avr/avr.c (avr_double_int_push_digit): Likewise. + (avr_map): Likewise. + (avr_map_decompose): Likewise. + (avr_out_insert_bits): Likewise. + +2012-09-24 Janis Johnson + + * doc/sourcebuild.texi (Selectors): Document the use of target + and xfail used together. + +2012-09-24 Richard Guenther + + PR middle-end/54632 + * tree-ssa-live.c (clear_unused_block_pointer_1): Do not + handle DECL_DEBUG_EXPR_IS_FROM here... + (clear_unused_block_pointer): ... but here when walking all + local decls. + +2012-09-24 Richard Guenther + + PR tree-optimization/54684 + * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts. + +2012-09-24 Marc Glisse + + * tree-ssa-forwprop.c: Include tree-ssa-propagate.h. + (simplify_bitfield_ref): Handle constructors. + * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h. + +2012-09-24 Richard Guenther + + * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces, + find_or_generate_expression): Remove dominating stmt argument. + (find_leader_in_sets, phi_translate_1, bitmap_find_leader, + create_component_ref_by_pieces_1, create_component_ref_by_pieces, + do_regular_insertion, do_partial_partial_insertion): Adjust. + (compute_avail): Do not set uids. + +2012-09-24 Eric Botcazou + + * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in + TYPE_NONALIASED_COMPONENT flag. + * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out + TYPE_NONALIASED_COMPONENT flag. + +2012-09-24 Jia Liu + + * doc/lto.texi: Separate sections. + * doc/plugins.texi: Likewise. + +2012-09-24 Richard Guenther + + PR middle-end/52173 + * gimple.c (gimple_copy): Properly mark the copy modified + if SSA operands are present. + +2012-09-23 Eric Botcazou + + PR tree-optimization/54669 + * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke + maybe_clean_or_replace_eh_stmt on the modified use statements. + +2012-09-23 Marc Glisse + + * expr.c (do_store_flag): Remove duplicated code. + +2012-09-22 Segher Boessenkool + + * config/rs6000/predicates.md (altivec_register_operand, + vsx_register_operand, vfloat_operand, vint_operand, + vlogical_operand, gpc_reg_operand, cc_reg_operand, + cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand): + If op is a SUBREG, consider its SUBREG_REG instead. + +2012-09-22 Uros Bizjak + + * optabs.c (prepare_cmp_insn): Expand comparison of the result + of memcmp through generic comparison expansion code. + +2012-09-21 Anthony Green + + * config/moxie/moxie.opt: Add -mno-crt0 option. + * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option. + * doc/invoke.texi (Option Summary): Document -mno-crt0 option. + +2012-09-21 Jack Howarth + + PR bootstrap/54642 + * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency. + +2012-09-21 Dehao Chen + + PR go/54649 + * tree-eh.c (lower_try_finally_dup_block): Set the correct block for + stmts in the duplicated EH block. + +2012-09-21 Richard Guenther + + PR tree-optimization/54647 + * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR + or VEC_COND_EXPR into EXP_GEN again. + +2012-09-21 Jakub Jelinek + + PR tree-optimization/54629 + * tree-loop-distribution.c (classify_partition): Free loop nest only + after freeing ddr. Free ddr and loop nest also if successful. + +2012-09-21 Matthias Klose + + * config/arm/arm.c (arm_mangle_type): Don't warn anymore that + 4.4 has changed the `va_list' mangling. + +2012-09-21 Eric Botcazou + + PR rtl-optimization/54290 + PR rtl-optimization/54644 + * reload1.c (choose_reload_regs): Fix thinko in previous change. + +2012-09-20 Segher Boessenkool + + * config/rs6000/rs6000.md (define_split for plus_eqsi): + Fix output pattern. + +2012-09-20 Eric Botcazou + + * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair. + +2012-09-20 Bernd Schmidt + + PR bootstrap/54643 + * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using + SCHED_PRESSURE_MODEL. + +2012-09-20 Joern Rennecke + + * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling. + +2012-09-20 Marek Polacek + + * tree-ssa-operands.c (get_expr_operands): Merge identical cases. + +2012-09-20 Marek Polacek + + * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's + result. + (create_edge_and_update_destination_phis): Likewise. + +2012-09-20 Martin Jambor + + * function.c (push_cfun): Check old current_function_decl matches + old cfun, set new current_function_decl to the decl of the new cfun. + (push_struct_function): Likewise. + (pop_cfun): Likewise. + (allocate_struct_function): Move call to + invoke_set_current_function_hook to the end of the function. + * cfgexpand.c (estimated_stack_frame_size): Do not set and restore + current_function_decl. + * cgraph.c (cgraph_release_function_body): Likewise. + * cgraphunit.c (cgraph_process_new_functions): Likewise. + (cgraph_add_new_function): Likewise. + (cgraph_analyze_function): Likewise. + (assemble_thunk): Set cfun to NULL at the end. + (expand_function): Move call to set_cfun downwards. + * gimple-low.c (record_vars_into): Only check current_function_decl + before possibly doing push_cfun. + * gimplify.c (gimplify_function_tree): Do not set and restore + current_function_decl. + * ipa-inline-analysis.c (compute_inline_parameters): Likewise. + (inline_analyze_function): Likewise. + * ipa-prop.c (ipa_analyze_node): Likewise. + * ipa-pure-const.c (analyze_function): Likewise. + * lto-streamer-in.c (lto_input_function_body): Do not set + current_function_decl. + * lto-streamer-out.c (output_function): Do not set and restore + current_function_decl. + * omp-low.c (finalize_task_copyfn): Likewise. + (expand_omp_taskreg): Likewise. + (create_task_copyfn): Likewise, move push_cfun up quite a bit. + * passes.c (dump_passes): Do not set and restore current_function_decl. + (do_per_function): Likewise. + (do_per_function_toporder): Likewise. + * trans-mem.c (ipa_tm_scan_irr_function): Likewise. + (ipa_tm_transform_transaction): Likewise. + (ipa_tm_transform_clone): Likewise. + (ipa_tm_execute): Likewise. + * tree-emutls.c (lower_emutls_function_body): Likewise. + * tree-inline.c (initialize_cfun): Do not call pop_cfun. + (tree_function_versioning): Do not call push_cfun, do not set and + restore current_function_decl. Remove assert checking consistency of + cfun and current_function_decl. + * tree-profile.c (tree_profiling): Do not set and restore + current_function_decl. + * tree-sra.c (convert_callers_for_node): Do not set + current_function_decl. + (convert_callers): Do not restore current_function_decl. + (modify_function): Do not set current_function_decl. + * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore + current_function_decl. + +2012-09-20 Diego Novillo + + PR target/54631 + * config/vxworks.c (vxworks_emutls_var_init): Update for new + VEC_quick_push interface. + +2012-09-20 Richard Guenther + + PR tree-optimization/54634 + * tree-data-ref.c (get_references_in_stmt): For now give + up for pure functions. + +2012-09-20 Chen Wei-Ren + + * doc/lto.texi: Correct typo. + +2012-09-19 Dehao Chen + + * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR. + * config/spu/spu.c (emit_nop_for_insn): Likewise. + (pad_bb): Likewise. + (spu_emit_branch_hint): Likewise. + (insert_hbrp_for_ilb_runout): Likewise. + * config/mep/mep.c (mep_make_bundle): Likewise. + (mep_bundle_insns): Likewise. + * config/sh/sh.c (gen_block_redirect): Likewise. + * config/c6x/c6x.c (gen_one_bundle): Likewise. + * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise. + * config/picochip/picochip.c (picochip_reorg): Likewise. + * config/arm/arm.c (require_pic_register): Likewise. + * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise. + * config/bfin/bfin.c (gen_one_bundle): Likewise. + +2012-09-19 Mark Kettenis + + * config.gcc (hppa*-*-openbsd*): New target. + * config/pa/pa-openbsd.h: New file. + * config/pa/pa32-openbsd.h: New file. + * config/host-openbsd.c: Update copyright year. + (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa. + +2012-09-19 Martin Jambor + + * ipa-prop.c (prune_expression_for_jf): New function. + (ipa_set_jf_constant): Use it. + (ipa_set_jf_arith_pass_through): Likewise. + (determine_known_aggregate_parts): Likewise. + +2012-09-19 Steve Ellcey + + * config.gcc (mips*-mti-elf*): New target. + * config/mips/mti-elf.h: New file. + * config/mips/t-mti-elf: New file. + +2012-09-19 Dehao Chen + + * toplev.c (general_init): Init block_locations. + * tree.c (tree_set_block): New. + (tree_block): Change to use LOCATION_BLOCK. + * tree.h (TREE_SET_BLOCK): New. + * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK. + (final_start_function): Likewise. + * input.c (expand_location_1): Likewise. + * input.h (LOCATION_LOCUS): New. + (LOCATION_BLOCK): New. + (IS_UNKNOWN_LOCATION): New. + * fold-const.c (expr_location_or): Change to use new location. + * reorg.c (emit_delay_sequence): Likewise. + (try_merge_delay_insns): Likewise. + * modulo-sched.c (dump_insn_location): Likewise. + * lto-streamer-out.c (lto_output_location_bitpack): Likewise. + * lto-cgraph.c (output_node_opt_summary): Likewise. + * jump.c (rtx_renumbered_equal_p): Likewise. + * ifcvt.c (noce_try_move): Likewise. + (noce_try_store_flag): Likewise. + (noce_try_store_flag_constants): Likewise. + (noce_try_addcc): Likewise. + (noce_try_store_flag_mask): Likewise. + (noce_try_cmove): Likewise. + (noce_try_cmove_arith): Likewise. + (noce_try_minmax): Likewise. + (noce_try_abs): Likewise. + (noce_try_sign_mask): Likewise. + (noce_try_bitop): Likewise. + (noce_process_if_block): Likewise. + (cond_move_process_if_block): Likewise. + (find_cond_trap): Likewise. + * ipa-prop.c (ipa_set_jf_constant): Likewise. + (ipa_write_jump_function): Likewise. + * dwarf2out.c (add_src_coords_attributes): Likewise. + * expr.c (expand_expr_real): Likewise. + * tree-parloops.c (create_loop_fn): Likewise. + * recog.c (peep2_attempt): Likewise. + * function.c (free_after_compilation): Likewise. + (expand_function_end): Likewise. + (set_insn_locations): Likewise. + (thread_prologue_and_epilogue_insns): Likewise. + * print-rtl.c (print_rtx): Likewise. + * profile.c (branch_prob): Likewise. + * trans-mem.c (ipa_tm_scan_irr_block): Likewise. + * gimplify.c (gimplify_call_expr): Likewise. + * except.c (duplicate_eh_regions_1): Likewise. + * emit-rtl.c (try_split): Likewise. + (make_insn_raw): Likewise. + (make_debug_insn_raw): Likewise. + (make_jump_insn_raw): Likewise. + (make_call_insn_raw): Likewise. + (emit_pattern_after_setloc): Likewise. + (emit_pattern_after): Likewise. + (emit_debug_insn_after): Likewise. + (emit_pattern_before): Likewise. + (emit_insn_before_setloc): Likewise. + (emit_jump_insn_before): Likewise. + (emit_call_insn_before_setloc): Likewise. + (emit_call_insn_before): Likeise. + (emit_debug_insn_before_setloc): Likewise. + (emit_copy_of_insn_after): Likewise. + (insn_locators_alloc): Remove. + (insn_locators_finalize): Remove. + (insn_locators_free): Remove. + (set_curr_insn_source_location): Remove. + (get_curr_insn_source_location): Remove. + (set_curr_insn_block): Remove. + (get_curr_insn_block): Remove. + (locator_scope): Remove. + (insn_scope): Change to use new location. + (locator_location): Remove. + (insn_line): Change to use new location. + (locator_file): Remove. + (insn_file): Change to use new location. + (locator_eq): Remove. + (insn_locations_init): New. + (insn_locations_finalize): New. + (set_curr_insn_location): New. + (curr_insn_location): New. + * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location. + (expand_gimple_cond): Likewise. + (expand_call_stmt): Likewise. + (expand_gimple_stmt_1): Likewise. + (expand_gimple_basic_block): Likewise. + (construct_exit_block): Likewise. + (gimple_expand_cfg): Likewise. + * cfgcleanup.c (try_forward_edges): Likewise. + * tree-ssa-live.c (remove_unused_scope_block_p): Likewise. + (dump_scope_block): Likewise. + (remove_unused_locals): Likewise. + * rtl.c (rtx_equal_p_cb): Likewise. + (rtx_equal_p): Likewise. + * rtl.h (XUINT): New. + (INSN_LOCATOR): Remove. + (CURR_INSN_LOCATION): Remove. + (INSN_LOCATION): New. + (INSN_HAS_LOCATION): New. + * tree-inline.c (remap_gimple_op_r): Change to use new location. + (copy_tree_body_r): Likewise. + (copy_phis_for_bb): Likewise. + (expand_call_inline): Likewise. + * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise. + * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise. + * gimple-streamer-out.c (output_gimple_stmt): Likewise. + * combine.c (try_combine): Likewise. + * tree-outof-ssa.c (set_location_for_edge): Likewise. + (insert_partition_copy_on_edge): Likewise. + (insert_value_copy_on_edge): Likewise. + (insert_rtx_to_part_on_edge): Likewise. + (insert_part_to_rtx_on_edge): Likewise. + * basic-block.h (edge_def): Remove field. + * gimple.h (gimple_statement_base): Remove field. + (gimple_bb): Change to use new location. + (gimple_set_block): Likewise. + (gimple_has_location): Likewise. + * tree-cfg.c (make_cond_expr_edges): Likewise. + (make_goto_expr_edges): Likewise. + (gimple_can_merge_blocks_p): Likewise. + (move_stmt_op): Likewise. + (move_block_to_fn): Likewise. + * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise. + * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. + * config/i386/i386.c (x86_output_mi_thunk): Likewise. + * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise. + * config/sh/sh.c (sh_output_mi_thunk): Likewise. + * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. + * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise. + * config/score/score.c (score_output_mi_thunk): Likewise. + * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise. + * config/mips/mips.c (mips_output_mi_thunk): Likewise. + * cfgrtl.c (unique_locus_on_edge_between_p): Likewise. + (unique_locus_on_edge_between_p): Likewise. + (emit_nop_for_unique_locus_between): Likewise. + (force_nonfallthru_and_redirect): Likewise. + (fixup_reorder_chain): Likewise. + (cfg_layout_merge_blocks): Likewise. + * stmt.c (emit_case_nodes): Likewise. + +2012-09-19 Bernd Schmidt + + * dbgcnt.def (sched_breakdep): New counter. + * haifa-sched.c (update_insn_after_change): New static function, + broken out of haifa_change_pattern. + (haifa_change_pattern): Call it. + (dep_t heap vecs): Declare. + (INSN_COST): Define earlier. + (next_cycle_replace_deps, next_cycle_apply): New static variables. + (apply_replacement): New static function. + (recompute_todo_spec): New argument FOR_BACKTRACK. All callers + changed. Handle DEP_REPLACE deps. + (contributes_to_priority_p): False for replaceable deps. + (must_restore_pattern_p, restore_pattern): New static functions. + (schedule_insn): Use them. Apply replacements for broken deps. + (struct haifa_saved_data): Add new fields to keep track of + replacements. + (save_backtrack_point): Initialize them. + (undo_replacements_for_backtrack): New static function. + (restore_last_backtrack_point, free_topmost_backtrack_point): + Use it and keep track of replacements. + (perform_replacements_new_cycle, undo_all_replacements): New static + functions. + (schedule_block): Call these two as necessary. Call + find_modifiable_mems. + (try_ready): Tweak the assert. Check for DEP_POSTPONED. + * sched-deps.c: Include "emit-rtl.h". + (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE. + (dep_spec_p): True for DEP_REPLACE deps. + (mark_as_hard): New static variable. + (update_dep): Update DEP_NONREG and DEP_MULTIPLE. + (add_dependence_list): New argument hard. All callers changed. Set + and clear mark_as_hard around function body. + (add_dependence_list_and_free): Likewise. + (haifa_note_mem_dep): Set DEP_NONREG. + (haifa_note_dep): Likewise if mark_as_hard is true. + (sched_analyze_insn): Switch loop with if statement testing for + sel_sched_p. + (struct mem_inc_info): New. + (attempt_change, parse_add_or_inc, find_inc, find_mem): New static + functions. + (find_modifiable_mems): New function. + * sched-int.h (struct dep_replacement): New. + (struct _dep): Add replace, nonreg and multiple fields. Make type and + cost bitfields. + (UNKNOWN_DEP_COST): Change to match the bitfield. + (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros. + (DEP_POSTPONED): New macro. + (DEP_CANCELLED): Renumber. + (find_modifiable_mems): Declare. + (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES. + * sched-rgn.c (init_ready_list): Set TODO_SPEC here. + (new_ready): Don't set HARD_DEP, use DEP_POSTPONED. + (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE. + * Makefile.in (sched-deps.o): Update dependencies. + * config/c6x/c6x.c (in_hwloop): New static variable. + (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES. + (hwloop_optimize): Set and clear it around preliminary scheduling pass. + +2012-09-19 Tulio Magno Quites Machado Filho + + * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase + and __builtin_ppc_mftb. + * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function + to expand an expression that calls a built-in without arguments. + (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and + __builtin_ppc_mftb. + (rs6000_init_builtins): Likewise. + * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern. + (rs6000_get_timebase_ppc32): New pattern. + (rs6000_mftb_): New pattern. + + * doc/extend.texi (PowerPC Built-in Functions): New section. + (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins + unrelated to Altivec/VSX to the new section. + +2012-09-19 David Edelsohn + + * rs6000.md (mac*): Remove extra spaces. + (mulhw*): Same. + +2012-09-19 Oleg Endo + + PR target/54089 + * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate. + * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate. + Handle the case where one of the operands is T_REG. + Add new pattern to handle MSB extraction. + +2012-09-19 Oleg Endo + + PR target/54236 + * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts. + +2012-09-19 Oleg Endo + + * config/sh/sh.md (prologue, epilogue): Use braced strings. + +2012-09-19 Eric Botcazou + + PR rtl-optimization/54290 + * reload1.c (choose_reload_regs): Also take into account secondary MEMs + to remove address replacements for inherited reloads. + (replaced_subreg): Move around. + +2012-09-19 David Edelsohn + + * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT, + MASK_PPC_GFXOPT, and MASK_MFCRF. + +2012-09-19 Richard Guenther + + * passes.c (init_optimization_passes): For -Og move + pass_object_sizes inbetween CCP and copyprop. + +2012-09-19 Richard Guenther + + * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify. + +2012-09-19 Jan Hubicka + + * symtab.c (insert_to_assembler_name_hash): Do not insert + register vars. + (unlink_from_assembler_name_hash): NULL out pointers of unlinked var. + (symtab_prevail_in_asm_name_hash): New. + (symtab_initialize_asm_name_hash): Break out from ... + (symtab_node_for_asm): ... here. + (dump_symtab_base): Dump LTO file data. + (verify_symtab_base): Register vars are not in symtab. + * cgraph.h (symtab_initialize_asm_name_hash, + symtab_prevail_in_asm_name_hash): New functions. + (symtab_real_symbol_p): New inline. + * lto-symtab.c: Do not include gt-lto-symtab.h. + (lto_symtab_entry_def): Remove. + (lto_symtab_entry_t): Remove. + (lto_symtab_identifiers): Remove. + (lto_symtab_free): Remove. + (lto_symtab_entry_hash): Remove. + (lto_symtab_entry_eq): Remove. + (lto_symtab_entry_marked_p): Remove. + (lto_symtab_maybe_init_hash_table): Remove. + (resolution_guessed_p, set_resolution_guessed): New functions. + (lto_symtab_register_decl): Only set resolution info. + (lto_symtab_get, lto_symtab_get_resolution): Remove. + (lto_symtab_merge): Reorg to work across symtab; do nothing if decls + are same. + (lto_symtab_resolve_replaceable_p): Reorg to work on symtab. + (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can + prevail. + (lto_symtab_resolve_symbols): Reorg to work on symtab. + (lto_symtab_merge_decls_2): Likewise. + (lto_symtab_merge_decls_1): Likewise; add debug dumps. + (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage. + (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab. + (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans + stage. + (lto_symtab_prevailing_decl): Rewrite to lookup into symtab. + * lto-streaer.h (lto_symtab_free): Remove. + * lto-cgraph.c (add_references): Cleanup. + * varpool.c (varpool_assemble_decl): Skip hard regs. + +2012-09-19 Richard Guenther + + PR other/53316 + * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add. + +2012-09-19 Richard Guenther + + PR other/53316 + * common.opt (optimize_debug): New variable. + (Og): New optimization level. + * doc/invoke.texi (Og): Document. + * opts.c (maybe_default_option): Add debug parameter. + (maybe_default_options): Likewise. + (default_options_optimization): Handle -Og. + (common_handle_option): Likewise. + * passes.c (gate_all_optimizations): Do not run with -Og. + (gate_all_optimizations_g): New gate, run with -Og. + (pass_all_optimizations_g): New container pass, run with -Og. + (init_optimization_passes): Schedule pass_all_optimizations_g + alongside pass_all_optimizations. + +2012-09-19 Richard Guenther + + PR tree-optimization/54132 + * tree-loop-distribution.c (classify_partition): Properly + check dependences for memmove. + * tree-data-ref.h (compute_affine_dependence): Declare. + * tree-data-ref.c (compute_affine_dependence): Export. + +2012-09-19 Zhenqiang Chen + + PR middle-end/54364 + * bb-reorder.c (connect_better_edge_p): New added. + (find_traces_1_round): When optimizing for size, ignore edge frequency + and probability, and handle all in one round. + (bb_to_key): Use bb->index as key when optimizing for size. + (better_edge_p): The bb with smaller index is better when optimizing + for size. + (connect_traces): When optimizing for size, connect block n with + block n + 1; connect trace m with trace m + 1 if falling through. + (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os. + +2012-09-19 Bin Cheng + + * fold-const.c (fold_truth_andor): Remove duplicated check on + BRANCH_COST. + +2012-09-18 Eric Botcazou + + PR middle-end/54617 + * expr.c (store_field): Handle a PARALLEL in more cases. + +2012-09-18 Segher Boessenkool + + * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete. + (abssi2, abs2_isel, nabs2_isel, abssi2_nopower, + nabs_nopower): Delete. + (absdi2, absdi2_internal, nabsdi2): Delete. + (smindi3, smaxdi3, umindi3, umaxdi3): Delete. + +2012-09-18 Georg-Johann Lay + + * config/avr/avr.md: Tidy up empty "". Fix C code indentation. + * config/avr/avr-fixed.md: Ditto. + +2012-09-18 Maciej W. Rozycki + + * config/rs6000/rs6000.c (print_operand) <'c'>: Remove. + * config/rs6000/spe.md: Remove a leftover comment. + +2012-09-18 Jakub Jelinek + + PR target/54592 + * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD + AND/IOR/XOR cost calculation to MODE_INT class modes. + +2012-09-18 Thomas Quinot + + * doc/invoke.texi: Document -fada-spec-parent. + +2012-09-18 Jakub Jelinek + + PR tree-optimization/54610 + * tree-ssa-forwprop.c: Include optabs.h. Don't include + tree-vectorizer.h. + (simplify_vector_constructor): Don't use vect_gen_perm_mask, + instead create the mask constant here. + * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H). + Don't depend on $(TREE_VECTORIZER_H). + +2012-09-18 Florian Weimer + + * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def. + +2012-09-18 Richard Guenther + + * statistics.h (CXX_MEM_STAT_INFO): New define. + * gimple.h (gimple_build_assign_with_ops_stat, + gimple_build_assign_with_ops, gimple_build_assign_with_ops3): + Turn into an overload of the function gimple_build_assign_with_ops. + * gimple.c (gimple_build_assign_with_ops_stat): Rename to ... + (gimple_build_assign_with_ops): ... this. + * tree-ssa-loop-im.c (move_computations_stmt): Adjust. + * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise. + * tree-vect-data-refs.c (vect_permute_store_chain): Likewise. + (vect_permute_load_chain): Likewise. + * tree-vect-generic.c (expand_vector_divmod): Likewise. + * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise. + (vect_recog_divmod_pattern): Likewise. + (vect_recog_mixed_size_cond_pattern): Likewise. + (adjust_bool_pattern): Likewise. + * tree-vect-slp.c (vect_create_mask_and_perm): Likewise. + * tree-vect-stmts.c (vectorizable_operation): Likewise. + (permute_vec_elements): Likewise. + (vectorizable_load): Likewise. + +2012-09-17 Paul Koning + + * doc/invoke.text (-feliminate-unused-debug-types): Update to + reflect that this is enabled by default. + +2012-09-17 Ben Cheng + + * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set + patterns. + * config/arm/arm.md ("vec_set_internal"): Support memory source + operands, implemented via vld1 instruction. + ("vec_extract"): Support memory destination operands, implemented + via vst1 instruction. + ("neon_vst1_lane"): Use UNSPEC_VST1_LANE instead of vec_select. + * config/arm/predicates.md ("neon_lane_number"): Remove. + +2012-09-17 Ramana Radhakrishnan + Ulrich Weigand + + * config/arm/arm.c (output_move_neon): Update comment. + Use vld1.64/vst1.64 instead of vldm/vstm where possible. + (neon_vector_mem_operand): Support double-word modes. + * config/arm/neon.md (*neon_mov VD): Call output_move_neon + instead of output_move_vfp. Change constraint from Uv to Un. + +2012-09-17 Richard Guenther + + PR lto/54598 + * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed + FIXED_VALUE_TYPE instead of struct fixed_value. + +2012-09-17 Georg-Johann Lay + + * config/avr/avr.c (CONST_FIXED_P): Remove define. + * config/avr/avr.md (add3): Use CONST_FIXED_P. + +2012-09-17 Georg-Johann Lay + + PR target/54607 + * config.gcc (tm_file,avr): Add avr/avr-arch.h. + * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to + compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD. + * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out + to... + * config/avr/avr-arch.h: ...this new file. + * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h, + stdlib.h. + * comparator: Make letters smaller than digits. + * config/avr/avr-devices.c: Don't include headers if used in + gen-avr-mmcu-texi.c. + * doc/avr-mmcu.texi: Regenerate. + +2012-09-17 Georg-Johann Lay + + * rtl.h (CONST_FIXED_P): New predicate macro. + +2012-09-17 Eric Botcazou + + * tree-cfgcleanup. (cleanup_control_expr_graph) : Remove + code doing propagation from degenerate PHI nodes. + * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function. + (propagate_constants_for_unrolling): Likewise. + (tree_unroll_loops_completely): If the current loop has been unrolled + and its father isn't the entire function, propagate constants within + the new basic blocks by means of propagate_constants_for_unrolling. + +2012-09-17 Jakub Jelinek + + PR tree-optimization/54563 + * tree-ssa-math-opts.c (execute_cse_sincos): Call + gimple_purge_dead_eh_edges if last call has been changed. + +2012-09-17 Georg-Johann Lay + + PR target/54222 + * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode. + (avr_out_plus_1): Remove log comments from assembler output. + +2012-09-17 Ruben Buchatskiy + + * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands + to be a register. + +2012-09-16 Richard Sandiford + + * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL + moves. + +2012-09-15 Tom de Vries + + * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of + LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift + range. + +2012-09-15 Georg-Johann Lay + + PR target/54222 + * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S, + ALL124U): New mode iterators. + (3): New insns for SS_PLUS, SS_MINUS. + (3): New insns for US_PLUS, US_MINUS. + (usneg2): New insns. + (2): New expanders for SS_NEG, SS_ABS. + (*2): New insns for SS_NEG, SS_ABS. + * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators. + (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead. + (3): New expanders for SS_PLUS, SS_MINUS. + (3): New expanders for US_PLUS, US_MINUS. + (3_insn): New insns. + (3_const_insn): New insns. + * config/avr/avr.md (cc): Add: plus. Remove: out_plus, + out_plus_noclobber, minus. + (length): Add: plus. Remove: out_plus, out_plus_noclobber, + plus64, minus, minus64. + (abelian): New code_attr. + (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs, + us_plus, us_minus, us_neg. + (*add3, add3_clobber, add3, addpsi3, sub3): + Use avr_out_plus to output. + * config/avr/avr-protos.h (avr_out_plus): Change prototype. + (avr_out_plus_noclobber, avr_out_minus): Remove. + (avr_out_plus64, avr_out_minus64): Remove. + * config/avr/avr.c (avr_out_plus_1): Add new default arguments + code_sat, sign. Saturate after operation if code_sat != UNKNOWN. + (avr_out_plus_symbol): New static function. + (avr_out_plus): Rewrite. + (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling + of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS, + ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER. + (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS, + CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER + (avr_out_plus_noclobber, avr_out_minus): Remove. + (avr_out_plus64, avr_out_minus64): Remove. + (avr_print_operand): Print raw REGNO if 'r' is used with REG. + +2012-09-15 Oleg Endo + + * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND, + ZERO_EXTEND and PARALLEL cases. + (sh_address_cost): Correct rtx parsing and tweak cost estimations. + +2012-09-14 Sandra Loosemore + + * doc/tm.texi.in (Stack Arguments): Update obsolete references + to current_function_outgoing_args_size. + (Function Entry): Likewise for current_function_pops_args, + current_function_pretend_args_size, + current_function_outgoing_args_size, and + current_function_epilogue_delay_list. + (Misc): Fix garbled sentence referencing nonexistent + current_function_leaf_function. + * doc/tm.texi: Regenerated. + +2012-09-14 Dehao Chen + + * tree-eh.c (goto_queue_node): New field. + (record_in_goto_queue): New parameter. + (record_in_goto_queue_label): New parameter. + (lower_try_finally_dup_block): New parameter. + (maybe_record_in_goto_queue): Update source location. + (lower_try_finally_copy): Likewise. + (honor_protect_cleanup_actions): Likewise. + * gimplify.c (gimplify_expr): Reset the location to unknown. + +2012-09-14 David Edelsohn + + * configure: Regenerated. + +2012-09-14 Walter Lee + + * doc/invoke.texi (Option Summary): fix typesetting for -mcpu + option for TILEPro and TILE-Gx. + (TILE-Gx Options): Fix grammar and spellings in documentation for + -mcmodel. + +2012-09-14 Marc Glisse + + PR c++/54427 + * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE. + (fold_binary_loc): Likewise. + * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE. + (or_comparisons_1): Likewise. + +2012-09-14 Richard Earnshaw + + PR target/54516 + PR rtl-optimization/54540 + * reload.c (find_dummy_reload): Don't use OUT as a reload reg + for IN if it overlaps a fixed register. + +2012-09-14 Eric Botcazou + + PR rtl-optimization/44194 + * calls.c (expand_call): In the PARALLEL case, copy the return value + into pseudos instead of spilling it onto the stack. + * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and + add new ADJUST_OBJECT parameter. + If ADJUST_OBJECT is set, drop the underlying object if it cannot be + proved that the adjusted memory access is still within its bounds. + (adjust_automodify_address_1): Adjust call to adjust_address_1. + (widen_memory_access): Likewise. + * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead + of adjust_address. Do not drop the underlying object of a MEM. + (store_fixed_bit_field): Likewise. + (extract_bit_field_1): Likewise. Fix oversight in recursion. + (extract_fixed_bit_field): Likewise. + * expr.h (adjust_address_1): Adjust prototype. + (adjust_address): Adjust call to adjust_address_1. + (adjust_address_nv): Likewise. + (adjust_bitfield_address): New macro. + (adjust_bitfield_address_nv): Likewise. + * expr.c (expand_assignment): Handle a PARALLEL in more cases. + (store_expr): Likewise. + (store_field): Likewise. + + * dse.c: Fix typos in the head comment. + +2012-09-14 Christian Bruel + + PR target/54546 + * config/sh/sh-protos.h (sh_need_epilogue): Delete. + (sh_can_use_simple_return_p): Declare. + * config/sh/sh.c (sh_can_use_simple_return_p): Define. + (sh_need_epilogue, sh_need_epilogue_known): Delete. + (sh_output_function_epilogue): Remove sh_need_epilogue_known. + * config/sh/sh.md (simple_return, return): Define. + (epilogue): Use inline return rtl. + (sh_expand_epilogue): Cleanup parameters boolean type. + * config/sh/iterators.md (any_return): New iterator. + +2012-09-14 Christian Bruel + + * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG. + * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE. + +2012-09-14 Jakub Jelinek + + PR target/54564 + * config/i386/sse.md (fmai_vmfmadd_): Use (match_dup 1) + instead of (match_dup 0) as second argument to vec_merge. + (*fmai_fmadd_, *fmai_fmsub_): Likewise. + Remove third alternative. + (*fmai_fnmadd_, *fmai_fnmsub_): Likewise. Negate + operand 2 instead of operand 1, but put it as first argument of fma. + * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss, + _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead + of the first. + +2012-09-14 Richard Guenther + + PR tree-optimization/54565 + * passes.c (init_optimization_passes): Adjust comments. + (execute_function_todo): Do not execute execute_update_addresses_taken + before processing TODO_rebuild_alias. + * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken. + +2012-09-14 Richard Guenther + + * tree-vrp.c (register_new_assert_for): Simplify for backward walk. + (find_assert_locations_1): Walk the basic-block backwards, properly + add/prune from live. Use live for asserts derived from stmts. + +2012-09-14 Marc Glisse + + * tree-ssa-forwprop.c (simplify_bitfield_ref): Call + get_prop_source_stmt. + (simplify_permutation): Likewise. + (simplify_vector_constructor): Likewise. + +2012-09-14 Richard Guenther + + * builtin-types.def (BT_FN_CONST_STRING): Add. + * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION, + BUILT_IN_LINE): New builtins. + * gimplify.c (gimplify_call_expr): Expand them. + * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION, + __builtin_FILE): Document. + +2012-09-13 Anthony Green + + * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support. + (MULTILIB_DEFAULTS): Define. + (ASM_SPEC): Define. + (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support. + (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and + __MOXIE_BIG_ENDIAN__. + * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define. + * config/moxie/moxie.opt: New file. + * doc/invoke.texi (Moxie Options): Add section documenting -mel + and -meb. + +2012-09-13 Paolo Carlini + Manuel López-Ibáñez + + PR c++/53210 + * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++. + +2012-09-13 Eric Botcazou + + * config/sparc/predicates.md (input_operand): Do not consider TImode + constants as 1-instruction integer constants. + Use register_or_zero_operand instead of register_operand and tidy up. + * config/sparc/sparc.md (movti): New expander. + (movti_insn_sp64): New instruction. + (movti_insn_sp64_hq): Likewise. + (TImode splitters): New splitters. + * config/sparc/sparc.c (sparc_expand_move) : New case. + (sparc_legitimate_address_p): Return 0 for REG+REG in TImode. + + * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete. + (arith_4096_operand): Likewise. + (zero_operand): Likewise. + (fp_zero_operand): Likewise. + (reg_or_0_operand): Likewise. + +2012-09-13 Jakub Jelinek + + * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping. + * configure: Regenerated. + +2012-08-13 Uros Bizjak + + * config/i386/i386.md (prefetch): Do not assert mode of operand 0. + (*prefetch_sse_): Do not set mode of address_operand predicate. + Rename to ... + (*prefetch_sse): ... this. + (*prefetch_3dnow_): Do not set mode of address_operand predicate. + Rename to ... + (*prefetch_3dnow): ... this. + +2012-09-13 Steven Bosscher + + * ipa-pure-const.c (state_from_flags, local_pure_const): Use + current_function_name instead of lang_hooks.decl_printable_name. + + * function.h (fndecl_name): New prototype. + * function.c (fndecl_name): New function. + * vecir.h (cgraph_node_p): New standard IR VEC type. + * trans-mem.c (cgraph_node_p): No need anymore to define it here. + * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype. + * ipa-utils.c (ipa_get_nodes_in_cycle): New function. + * ipa-reference.c: Don't include langhooks.h, and certainly not twice. + Fix many formatting issues (long lines, short lines, spacing, etc.). + (get_static_name): Use fndecl_name. + (dump_static_vars_set_to_file): New function split out from propagate. + (union_static_var_sets): New function, union two sets and collapse + to all_module_statics as quickly as possible. + (intersect_static_var_sets): New function, similar to above. + (copy_static_var_set): Renamed from copy_global_bitmap and rewritten + to allocate a copy on the same bitmap_obstack as the source set. + (propagate_bits): Simplify, and clarify by using union_static_var_sets. + (generate_summary): Remove bm_temp. Print UID of promotable globals. + (read_write_all_from_decl): Use pass-by-reference, bless C++. + (get_read_write_all_from_node): New function, split out from propagate. + (propagate): Simplify and clarify with helper functions. Use + ipa_get_nodes_in_cycle to walk all nodes in a reduced node. + (ipa_reference_read_optimization_summary): Use fndecl_name instead of + lang_hooks.decl_printable_name. + + * rtl.h (print_rtl_single_with_indent): New prototype. + * print-rtl.c (print_rtl_single_with_indent): New function. + * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks. + * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement. + * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump): + Implement RTL specific hooks. + (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks. + * tree-cfg.c (gimple_empty_block_p, + gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks. + (gimple_cfg_hooks): Register the new hooks. + * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook. + +2012-09-13 Richard Guenther + + * tree-ssa-sccvn.h (enum vn_kind): New. + (vn_get_stmt_kind): Likewise. + * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust + ADDR_EXPR handling. + (visit_use): Use it. + * tree-ssa-pre.c (compute_avail): Likewise, simplify further. + +2012-09-13 Venkataramanan Kumar + + * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW + for targets bdver1, bdver2, btver1 and btver2. + +2012-09-13 Christophe Lyon + Richard Earnshaw + + * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm + variants for rev instruction.. + (thumb1_rev): Delete pattern. + (arm_revsh): New pattern to support builtin_bswap16. + (arm_rev16, bswaphi2): Likewise. + +2012-09-12 Teresa Johnson + + PR gcov-profile/54487 + * configure.ac (HOST_HAS_F_SETLKW): Set based on compile + test using F_SETLKW with fcntl. + * configure, config.in: Regenerate. + +2012-09-12 Jan Hubicka + + PR fortran/48636 + * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride. + (set_hint_predicate): New function. + (reset_inline_summary): Reset loop stride. + (remap_predicate_after_duplication): New function. + (remap_hint_predicate_after_duplication): New function. + (inline_node_duplication_hook): Update. + (dump_inline_summary): Dump stride summaries. + (estimate_function_body_sizes): Compute strides. + (remap_hint_predicate): New function. + (inline_merge_summary): Use it. + (inline_read_section): Read stride. + (inline_write_summary): Write stride. + * ipa-inline.c (want_inline_small_function_p): Handle strides. + (edge_badness): Likewise. + * ipa-inline.h (inline_hints_vals): Add stride hint. + (inline_summary): Update stride. + +2012-09-12 Uros Bizjak + + * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char. + * config/i386/i386.h (x86_prefetch_sse): Ditto. + +2012-09-12 H.J. Lu + + PR target/54445 + * config/i386/predicates.md (x86_64_immediate_operand): Allow + negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF. + +2012-09-12 Jan Hubicka + + * common.opt (flto-partition): Add "max". + * invoke.texi (flto-partition): Document "max" + +2012-09-12 Ganesh Gopalasubramanian + + * config/i386/i386.md : Comments on fma4 instruction selection + reflect requirement on register pressure based cost model. + + * config/i386/driver-i386.c (host_detect_local_cpu): fma4 + flag is set-reset as informed by the cpuid flag. + + * config/i386/i386.c (processor_alias_table): fma4 + flag is enabled for bdver2. + +2012-09-12 Richard Guenther + + PR tree-optimization/54489 + * tree-ssa-pre.c: Include domwalk.h. + (in_fre): Remove. + (sccvn_valnum_from_value_id): New function. + (debug_bitmap_sets_for): Simplify. + (get_representative_for): Properly initialize the SCCVN valnum. + (create_expression_by_pieces): Likewise. + (insert_into_preds_of_block): Likewise. + (can_PRE_operation): Remove. + (make_values_for_phi): Simplify. + (compute_avail): Likewise. + (do_SCCVN_insertion): Remove. + (eliminate_avail, eliminate_push_avail, eliminate_insert): + New functions. + (eliminate): Split and perform a domwalk. + (eliminate_bb): Former eliminate part that is now dom-enter. + (eliminate_leave_block): New function. + (fini_eliminate): Likewise. + (init_pre): Simplify. + (fini_pre): Likewise. + (execute_pre): Fold into do_pre and do_fre. + (do_pre): Consume execute_pre. + (do_fre): Likewise. + * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency. + +2012-09-12 Diego Novillo + + * vec.h: Remove compatibility notes for previous distinction + between vectors of objects and vectors of pointers. + +2012-09-12 Christian Bruel + + * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define. + +2012-09-12 Rainer Orth + + * rtl.h (FFS, FLOAT, ABS, PC): Don't undef. + * system.h (FFS, FLOAT, ABS, PC): Undef. + +2012-09-12 Richard Guenther + + PR middle-end/54553 + * common.opt (finline): Mark with Optimization. + +2012-09-12 Jakub Jelinek + + * config.gcc: Obsolete picochip-*. + +2012-09-12 Nathan Froyd + Hans-Peter Nilsson + + * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete. + (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete. + (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete. + * config/mmix/mmix-protos.h (mmix_intval): Declare. + (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete. + (mmix_const_double_ok_for_letter_p): Delete. + * config/mmix/constraints.md: New file. + * config/mmix/mmix.md: Include it. + (iordi3): Fix typo; use "I" instead of undefined "H" constraint. + ("*call_real"): Update comment about not using the "p" constraint. + * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use + satisfies_constraint_I. + (mmix_address_operand): New predicate. + (mmix_symbolic_or_address_operand): Use it instead of address_operand. + * config/mmix/mmix.c: #include tm-constrs.h. + (mmix_intval): Delete declaration. Make non-static. + (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete. + (mmix_const_double_ok_for_letter_p): Delete. + (mmix_legitimate_address_p): Use satisfies_constraint_I. + (mmix_print_operand_address): Likewise. + (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint + when matching "L" constraint. + +2012-09-11 Steven Bosscher + + * tree.h (expand_case): Move prototype ... + * expr.h (expand_case): ...here. + (expand_sjlj_dispatch_table): New prototype. + * stmt.c: Include pointer-set.h instead of bitmap.h. + (expand_case): Use a pointer set instead of a bitmap for + already-seen labels. Fold label values here. + (add_case_node): Don't fold label values here. + (expand_sjlj_dispatch_table): New function. + * except.c (sjlj_emit_dispatch_table): Use it. + +2012-09-11 Marc Glisse + + * tree-ssa-forwprop.c (simplify_vector_constructor): New function. + (ssa_forward_propagate_and_combine): Call it. + +2012-09-11 Diego Novillo + + * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes. + +2012-09-11 Dominique Dhumieres + + * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes. + (darwin_asm_dwarf_section): Likewise. + +2012-09-11 Martin Jambor + + * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun. + (premark_used_types): New parameter fun, use it instead of cfun. + (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun, + also pass it to premark_used_types. + +2012-09-11 Ramana Radhakrishnan + + * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line. + +2012-09-11 Tobias Burnus + + * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor. + +2012-09-11 Ramana Radhakrishnan + Matthew Gretton-Dann + + * config/arm/neon.md (fma4): New pattern. + (*fmsub4): Likewise. + * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it. + +2012-09-11 Aldy Hernandez + + PR middle-end/54149 + * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set + flag for writes. + +2012-09-11 Bill Schmidt + + PR tree-optimization/55492 + * doc/invoke.texi (max-slsr-cand-scan): New description. + * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit + the time spent searching for a basis. + * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param. + +2012-09-11 Richard Guenther + + * gimple.h (gimple_register_type): Remove. + (print_gimple_types_stats): Adjust prototype. + * lto-streamer.h (print_lto_report): Likewise. + * lto-streamer.c (print_lto_report): Adjust. + * gimple.c (gimple_types, type_hash_cache, enum gtc_mode, + struct type_pair_d, lookup_type_pair, struct sccs, + next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s, + gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p, + gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p, + visit, iterative_hash_name, struct type_hash_pair, + type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash, + gimple_type_eq, gimple_register_type_1, gimple_register_type): + Move to lto/lto.c. + (print_gimple_types_stats): Adjust. + (free_gimple_type_tables): Likewise. + +2012-09-11 Richard Guenther + + * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes. + (scopdet_basic_block_info): Likewise. + (build_scops_1): Likewise. + (limit_scops): Likewise. + +2012-09-11 Richard Guenther + + PR middle-end/54515 + * gimple.c (get_base_address): Do not return NULL_TREE apart + from for WITH_SIZE_EXPR. + * gimple-fold.c (canonicalize_constructor_val): Do not call + get_base_address when not necessary. + +2012-09-10 Andrew Pinski + + PR tree-opt/54362 + * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also. + +2012-09-10 Maxim Kuvyrkov + + * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support + starting scheduling from a pre-existing state. + +2012-09-10 Diego Novillo + + * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'. + Update all users. + (vec_t::safe_push): Likewise. + (vec_t::quick_insert): Likewise. + (vec_t::lower_bound): Likewise. + (vec_t::safe_insert): Likewise. + (vec_t::replace): Change second argument to 'T &'. + +2012-09-10 Maciej W. Rozycki + + * config/rs6000/rs6000.md: Move a splitter next to its insn. + +2012-09-10 Oleg Endo + + PR target/54089 + * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if + dynamic shifts are available. + (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment. + * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments. + * config/sh/predicates.md (shift_count_operand): Allow + arith_reg_operand even if TARGET_DYNSHIFT is false. + * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns + if needed. + (ashlsi3_d_call, lshrsi3_d_call): New insns. + +2012-09-10 Richard Sandiford + + * ira.c (setup_pressure_classes): Handle synonymous classes. + +2012-09-10 Marc Glisse + + * tree-ssa-forwprop.c (simplify_bitfield_ref): New function. + (ssa_forward_propagate_and_combine): Call it. + +2012-09-10 Steve Ellcey + + * config.gcc: Add mips*-mti-linux* target + Handle with_synci like other options. + * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New. + (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS. + * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New. + * config/mips/mti-linux.h: New file. + * config/mips/t-mti-linux: New file. + +2012-09-10 Marc Glisse + + * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR. + +2012-09-10 Martin Jambor + + * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter. + * ipa-prop.c: Include params.h. + (IPA_MAX_AFF_JF_ITEMS): Removed. + (determine_known_aggregate_parts): Use param value of + PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS. + * Makefile.in (ipa-prop.o): Add PARAMS_H dependency. + +2012-09-10 Richard Guenther + + PR tree-optimization/54520 + * tree-ssa-threadupdate.c (def_split_header_continue_p): + Properly consider sub-loops. + +2012-09-10 Richard Henderson + + * config/alpha/predicates.md (small_symbolic_operand): Disallow + large offsets. + +2012-09-10 Georg-Johann Lay + + PR target/54536 + * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287". + +2012-09-10 Jan Hubicka + + * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases. + * symtab.c (symtab_make_decl_local): Remove user defined visibility + when making symbol local. + +2012-09-09 Mark Kettenis + + * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define. + +2012-09-09 Jan Hubicka + + * passes.c (ipa_write_summaries_1): Set state; + do not call compute_ltrans_boundary. + (ipa_write_optimization_summaries): Likewise. + (ipa_write_summaries): compute_ltrans_boundary here. + * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap. + (compute_ltrans_boundary): Update prototype. + +2012-09-09 Ulrich Drepper + + * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for + matching results of level 0 calls to __cpuid to processor + manufacturers. + * config/i386/driver-i386.c (vendor_signatures): Removed. + (processor_signatures): Removed. + (host_detect_local_cpu): Replace uses of now-removed SIG_* + constants with the new signature_*_ebx constants. + +2012-09-08 Jan Hubicka + + Replace cgraph_node_set and varpool_node_set by symtab_node_encoder + in partitioning. + * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove + forward declaration. + (lto_symtab_encoder_d): Forward declare. + (ipa_write_optimization_summaries): Update. + * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize + body, initializer and in_partition. + (lto_symtab_encoder_delete): Update. + (lto_symtab_encoder_encode): Update. + (lto_symtab_encoder_lookup): Move inline. + (lto_symtab_encoder_delete_node): New function. + (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body, + lto_symtab_encoder_encode_initializer_p, + lto_set_symtab_encoder_encode_initializer, + lto_symtab_encoder_in_partition_p, + lto_symtab_encoder_in_partition_p): Update. + (compute_ltrans_boundary): Take encoder as an input. + * passes.c (ipa_write_summaries_1): Update. + (ipa_write_summaries_1): Update. + (ipa_write_summaries): Update. + (ipa_write_optimization_summaries): Update. + * lto-streamer.c (print_lto_report): Report number of cgraph nodes. + * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by + num_output_symtab_nodes. + (lto_encoder_entry): New structure. + (struct lto_symtab_encoder_d): Reorg. + (lto_symtab_encoder_delete_node): Declare. + (lto_symtab_encoder_lookup): Bring inline. + (compute_ltrans_boundary): Update. + (lto_symtab_encoder_size): Update. + (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update. + (lto_symtab_encoder_deref): Update. + +2012-09-08 John David Anglin + + * config/pa/pa.c (hppa_rtx_costs): Update costs for large + integer modes. + +2012-09-08 Andi Kleen + + * lto/lto.c (do_whole_program_analysis): Fix last broken patch. + +2012-09-08 Andi Kleen + + * common.opt (-fmem-report-wpa): Add + * doc/invoke.texi (-fmem-report-wpa): Document. + * lto/lto.c (do_whole_program_analysis): Run mem_report + when mem_report_wpa is set. + +2012-09-07 Anthony Green + + * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue + for functions with large static stack requirements. + (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved + values off of the stack. + +2012-09-07 Nick Clifton + + * config/v850/v850.h (DBX_DEBUGGING_INFO): Define. + (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided. + * config/v850/v850.c (compute_register_save_size): Always include + the link pointer. + (increment_stack): New function - emits insns to increment or + decrement the stack pointer. + (expand_prologue, expand_epilogue): Use it. + (expand_prologue): Set the function stack size, if requested. + (v850_debug_unwind_info): New function. + (TARGET_DEBUG_UNWIND_INFO): Define. + +2012-09-07 Richard Earnshaw + + PR tree-ssa/54295 + * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p): + Sign-extension of a zero-extended value can be simplified to + just zero-extension. + +2012-09-07 Richard Guenther + + PR middle-end/53667 + * tree-ssa-structalias.c (handle_rhs_call): Properly clobber + EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT + arguments separately. + +2012-09-07 Steven Bosscher + + * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit. + + * graphite.c (print_global_statistics): Use EDGE_COUNT instead + of VEC_length. + (print_graphite_scop_statistics): Likewise. + * graphite-scop-detection.c (get_bb_type): Use single_succ_p. + (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length. + (canonicalize_loop_closed_ssa): Use single_pred_p. + + * alias.c (reg_seen): Make this an sbitmap. + (record_set, init_alias_analysis): Update. + + * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping. + +2012-09-07 Tom de Vries + + PR tree-optimization/53986 + * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow + LSHIFT_EXPR. + (extract_range_from_binary_expr_1): Handle LSHIFT with constant + range as shift amount. + +2012-09-07 Segher Boessenkool + + * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/rs6000.c (print_operand) ['.']: Delete. + * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete. + * config/rs6000/rs6000.md (tls_gd_aix): + Replace %. with nop. + (tls_gd_call_aix): Ditto. + (tls_ld_aix): Ditto. + (tls_ld_call_aix): Ditto. + (call_nonlocal_aix32): Ditto. + (call_nonlocal_aix64): Ditto. + (call_value_nonlocal_aix32): Ditto. + (call_value_nonlocal_aix64): Ditto. + +2012-09-06 Andi Kleen + + * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar + et.al. should be used. + +2012-09-06 Andi Kleen + + * lto-streamer.h (res_pair): Add. + (lto_file_decl_data): Replace resolutions with respairs. + Add max_index. + * lto/lto.c (lto_resolution_read): Remove max_index. Add rp. + Initialize respairs. + (lto_file_finalize): Set up resolutions vector lazily from respairs. + +2012-09-06 Lawrence Crowl + + * double-int.h (double_int::operator &=): New. + (double_int::operator ^=): New. + (double_int::operator |=): New. + (double_int::mul_with_sign): Modify overflow parameter to bool*. + (double_int::add_with_sign): New. + (double_int::ule): New. + (double_int::sle): New. + (binary double_int::operator *): Remove parameter name. + (binary double_int::operator +): Likewise. + (binary double_int::operator -): Likewise. + (binary double_int::operator &): Likewise. + (double_int::operator |): Likewise. + (double_int::operator ^): Likewise. + (double_int::and_not): Likewise. + (double_int::from_shwi): Tidy formatting. + (double_int::from_uhwi): Likewise. + (double_int::from_uhwi): Likewise. + * double-int.c (double_int::mul_with_sign): Modify overflow parameter + to bool*. + (double_int::add_with_sign): New. + (double_int::ule): New. + (double_int::sle): New. + * builtins.c: Modify to use the new double_int interface. + * cgraph.c: Likewise. + * combine.c: Likewise. + * dwarf2out.c: Likewise. + * emit-rtl.c: Likewise. + * expmed.c: Likewise. + * expr.c: Likewise. + * fixed-value.c: Likewise. + * fold-const.c: Likewise. + * gimple-fold.c: Likewise. + * gimple-ssa-strength-reduction.c: Likewise. + * gimplify-rtx.c: Likewise. + * ipa-prop.c: Likewise. + * loop-iv.c: Likewise. + * optabs.c: Likewise. + * stor-layout.c: Likewise. + * tree-affine.c: Likewise. + * tree-cfg.c: Likewise. + * tree-dfa.c: Likewise. + * tree-flow-inline.h: Likewise. + * tree-object-size.c: Likewise. + * tree-predcom.c: Likewise. + * tree-pretty-print.c: Likewise. + * tree-sra.c: Likewise. + * tree-ssa-address.c: Likewise. + * tree-ssa-alias.c: Likewise. + * tree-ssa-ccp.c: Likewise. + * tree-ssa-forwprop.c: Likewise. + * tree-ssa-loop-ivopts.c: Likewise. + * tree-ssa-loop-niter.c: Likewise. + * tree-ssa-phiopt.c: Likewise. + * tree-ssa-pre.c: Likewise. + * tree-ssa-sccvn: Likewise. + * tree-ssa-structalias.c: Likewise. + * tree-ssa.c: Likewise. + * tree-switch-conversion.c: Likewise. + * tree-vect-loop-manip.c: Likewise. + * tree-vrp.c: Likewise. + * tree.h: Likewise. + * tree.c: Likewise. + * varasm.c: Likewise. + +2012-09-06 Uros Bizjak + + * configure.ac (hle prefixes): Remove .code64 directive. + * configure: Regenerated. + +2012-09-06 Kyrylo Tkachov + + * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P, + LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently. + * config/arm/arm.h: Use REG_P, MEM_P consistently. + * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P + consistently. + * config/arm/neon.md: Use REG_P consistently. + * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently. + * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently. + * config/arm/vec-common.md: Use REG_P consistently. + +2012-09-06 Richard Guenther + + PR tree-optimization/54498 + * tree-ssa-alias.h (get_continuation_for_phi): Add flag to + abort when reaching an already visited region. + * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it. + (get_continuation_for_phi_1): Likewise. + (walk_non_aliased_vuses): When we translated the reference, + abort when we re-visit a region. + * tree-ssa-pre.c (translate_vuse_through_block): Adjust. + +2012-09-06 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS + section. + * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new + arguments to TARGET_ADDRESS_COST call. + +2012-09-06 Richard Guenther + + * tree.h (MOVE_NONTEMPORAL): Remove. + * tree-pretty-print.c (dump_generic_node): Remove + MOVE_NONTEMPORAL handling. + * expr.c (expand_expr_real_1): Likewise. + +2012-09-06 Richard Guenther + + * passes.c (execute_function_todo): Call compute_may_aliases + only if flag_tree_pta is set. + +2012-09-06 Andrew Pinski + + PR tree-opt/54494 + * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also. + +2012-09-06 Jakub Jelinek + + PR rtl-optimization/54455 + * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru + bb ends up with asm goto referencing bb's label. + +2012-09-06 Chen Liqin + + * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and + score_legitimize_address function, use compiler default code instead. + +2012-09-05 Jan Hubicka + + * ipa-inline.c (want_inline_small_function_p): Use + INLINE_HINT_loop_iterations hint. + +2012-09-05 Andrew Pinski + + * optabs.c (emit_conditional_add): Correct comment about the arguments. + Remove code which might swap op2 and op3 since they cannot be swapped. + * doc/md.texi (add@var{mode}cc): Fix document about how the arguments + are used. + +2012-09-05 Oleg Endo + + * hooks.c (hook_int_rtx_mode_as_bool_0): New function. + * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it. + * output.h (default_address_cost): Add machine_mode and address space + arguments. + * target.def (address_cost): Likewise. + * rtlanal.c (address_cost): Pass mode and address space to target hook. + (default_address_cost): Add unnamed machine_mode and address space + arguments. + * doc/tm.texi: Regenerate. + * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/arm/arm.c (arm_address_cost): Add machine_mode and address + space arguments. + * config/avr/avr.c (avr_address_cost): Likewise. + * config/bfin/bfin.c (bfin_address_cost): Likewise. + * config/cr16/cr16.c (cr16_address_cost): Likewise. + * config/cris/cris.c (cris_address_cost): Likewise. + * config/epiphany/epiphany.c (epiphany_address_cost): Likewise. + * config/i386/i386.c (ix86_address_cost): Likewise. + * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and + address space arguments. Pass them on in recursive invocation. + * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address + space arguments. + * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise. + * config/mep/mep.c (mep_address_cost): Add machine_mode and address + space arguments. + * config/microblaze/microblaze.c (microblaze_address_cost): Likewise. + * config/mips/mips.c (mips_address_cost): Likewise. + * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and + address space arguments. + (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to + mn10300_address_cost. + * config/pa/pa.c (hppa_address_cost): Add machine_mode and address + space arguments. + * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise. + (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of + hook_int_rtx_bool_0. + * config/rx/rx.c (rx_address_cost): Add machine_mode and address + space arguments. + * config/s390/s390.c (s390_address_cost): Likewise. + * config/score/score-protos.h (score_address_cost): Likewise. + * config/score/score.c (score_address_cost): Likewise. + * config/sh/sh.c (sh_address_cost): Likewise. + * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise. + * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode + and address space arguments. + * config/v850/v850.c (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + * config/vax/vax.c (vax_address_cost): Add machine_mode and address + space arguments. + * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use + hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0. + +2012-09-05 Diego Novillo + + PR bootstrap/54484 + * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument. + +2012-09-05 Jakub Jelinek + + PR middle-end/54486 + * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use + build_int_cst with size_type_node instead of size_int. + +2012-09-05 Uros Bizjak + + * config/i386/sse.md (_blendv): + Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}. + Use nonimmediate_operand instead of + nonimm_not_xmm0_operand{,_maybe_avx}. + (_pblendvb): Ditto. + (sse4_2_pcmpestr): Ditto. + (*sse4_2_pcmpestr_unaligned): Ditto. + (sse4_2_pcmpistr): Ditto. + (*sse4_2_pcmpistr_unaligned): Ditto. + * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate. + (nonimm_not_xmm0_operand): Ditto. + (nonimm_not_xmm0_operand_maybe_avx): Ditto. + (nonimm_not_xmm0_operand_maybe_avx): Ditto. + * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx. + +2012-09-05 Eric Botcazou + + * bb-reorder.c: Clarify a few points in the head comment and fix + long lines in other comments. + (find_traces): Fix long line. + (find_traces_1_round): Likewise. + (better_edge_p): Likewise. + (connect_traces): Likewise. + (duplicate_computed_gotos): Likewise. + (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces. + (fix_up_fall_thru_edges): Fix formatting. + +2012-09-05 Richard Guenther + + PR tree-optimization/46590 + * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not + update SSA form here. + (canonicalize_induction_variables): Assert we do not need to + update SSA form. + (tree_unroll_loops_completely): Update SSA form here. + * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge): + Do not verify loop-closed SSA form if SSA form is not up-to-date. + +2012-09-05 Georg-Johann Lay + + PR target/54461 + * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if + not configured --with-avrlibc=no. + (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured + --with-avrlibc=no. + * config/avr/avrlibc.h: New file. + * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if + not configured --with-avrlibc=no. + * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__ + +2012-09-04 Teresa Johnson + + * gcov-io.c (gcov_write_summary): Write out non-zero histogram + entries to function summary along with an occupancy bit vector. + (gcov_read_summary): Read in the histogram entries. + (gcov_histo_index): New function. + (void gcov_histogram_merge): Ditto. + * gcov-io.h (gcov_type_unsigned): New type. + (struct gcov_bucket_type): Ditto. + (struct gcov_ctr_summary): Include histogram. + (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries. + (GCOV_HISTOGRAM_SIZE): New macro. + (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto. + * profile.c (NUM_GCOV_WORKING_SETS): Ditto. + (gcov_working_sets): New global variable. + (compute_working_sets): New function. + (find_working_set): Ditto. + (get_exec_counts): Invoke compute_working_sets. + * coverage.c (read_counts_file): Merge histograms, and + fix bug with accessing summary info for non-summable counters. + * basic-block.h (gcov_type_unsigned): New type. + (struct gcov_working_set_info): Ditto. + (find_working_set): Declare. + * gcov-dump.c (tag_summary): Dump out histogram. + +2012-09-04 Diego Novillo + + PR bootstrap/54484 + * vec.h (vec_t::embedded_init): Move default argument value + to function declaration. + +2012-09-04 Eric Botcazou + + * bb-reorder.c (gate_handle_reorder_blocks): Move around. + (rest_of_handle_reorder_blocks): Likewise. + (pass_reorder_blocks): Likewise. + (gate_handle_partition_blocks): Likewise. + +2012-09-04 Eric Botcazou + + PR rtl-optimization/54456 + * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0. + +2012-09-04 Diego Novillo + + PR bootstrap/54478 + * vec.h (vec_t::alloc): Remove explicit type specification + in call to reserve. + (vec_t::copy): Likewise. + (vec_t::reserve): Likewise. + (vec_t::reserve_exact): Likewise. + (vec_t::safe_splice): Likewise. + (vec_t::safe_push): Likewise. + (vec_t::safe_grow): Likewise. + (vec_t::safe_grow_cleared): Likewise. + (vec_t::safe_insert): Likewise. + +2012-09-04 Richard Henderson + + * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER. + +2012-09-04 Richard Guenther + + * tree-ssa-pre.c (value_expressions): Make it a vector of + bitmaps containing expression IDs. + (add_to_value): Adjust. + (sorted_array_from_bitmap_set): Likewise. + (bitmap_set_replace_value): Likewise. + (print_value_expressions): Likewise. + (get_constant_for_value_id): Likewise. + (get_representative_for): Likewise. + (phi_translate_1): Likewise. + (bitmap_find_leader): Likewise. + (find_or_generate_expression): Likewise. + (do_regular_insertion): Likewise. + (init_pre): Likewise. + (fini_pre): Likewise. + +2012-09-04 Diego Novillo + + PR bootstrap/54479 + * vec.h (vec_t::copy): Add cast in call to reserve_exact. + +2012-09-04 Richard Guenther + + * tree-ssa-pre.c (add_to_exp_gen): Adjust. + (make_values_for_phi): Do not add to PHI_GEN for FRE. + (compute_avail): Stop processing after adding all defs to + AVAIL_OUT for FRE. + (init_pre): Do not allocate not needed bitmap sets for FRE. + +2012-09-04 Diego Novillo + + Rewrite VEC_* functions as member functions of vec_t. + + * vec.h: Update documentation. + (ALONE_VEC_CHECK_INFO): Define. + (ALONE_VEC_CHECK_DECL): Define. + (ALONE_VEC_CHECK_PASS): Define. + (struct vec_prefix): Rename field NUM to NUM_. + Rename field ALLOC to ALLOC_. + Update all users. + (struct vec_t): Rename field PREFIX to PREFIX_. + Rename field VEC to VEC_. + Update all users. + (vec_t::length): Rename from VEC_length_1. Update all users. + (vec_t::empty): Rename from VEC_empty_1. Update all users. + (vec_t::address): Rename from VEC_address_1. Update all users. + (vec_address): New. + (vec_t::last): Rename from VEC_last_1. Update all users. + (vec_t::operator[]): Rename from VEC_index_1. Update all users. + (vec_t::iterate): Rename from VEC_iterate_1. Update all users. + (vec_t::embedded_size): Rename from VEC_embedded_size_1. + Update all users. + (vec_t::embedded_init): Rename from VEC_embedded_init_1. + Update all users. + (vec_t::alloc): Rename from VEC_alloc_1. Update all users. + (vec_t::free): Rename from VEC_free_1. Update all users. + (vec_t::copy): Rename from VEC_copy_1. Update all users. + (vec_t::space): Rename from VEC_space_1. Update all users. + (vec_t::reserve): Rename from VEC_reserve_1. Update all users. + (vec_t::reserve_exact): Rename from VEC_reserve_exact_1. + Update all users. + (vec_t::splice): Rename from VEC_splice_1. Update all users. + (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users. + (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users. + (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users. + (vec_t::pop): Rename from VEC_pop_1. Update all users. + (vec_t::truncate): Rename from VEC_truncate_1. Update all users. + (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users. + (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1. + Update all users. + (vec_t::replace): Rename from VEC_replace_1. Update all users. + (vec_t::quick_insert): Rename from VEC_quick_insert_1. + Update all users. + (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users. + (vec_t::ordered_remove): Rename from VEC_ordered_remove_1. + Update all users. + (vec_t::unordered_remove): Rename from VEC_unordered_remove_1. + Update all users. + (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users. + (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users. + +2012-09-04 Steven Bosscher + + * gimple.h (gimple_build_switch): Remove. + (gimple_build_switch_vec): Promote to the new gimple_build_switch. + (gimple_switch_default_label): Assert the default case label is + really a default case label. + (gimple_switch_set_default_label): Likewise. + * gimple.c (gimple_build_switch_nlabels): Make sure a default label + is passed in, and simplify accordingly. + (gimple_build_switch): Removed. + (gimple_build_switch_vec): Rename to gimple_build_switch. + * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use. + * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL + case label. + * stmt.c (expand_case): Simplify using the fact that every GIMPLE + switch must have a default case. + * tree-cfg.c (group_case_labels_stmt): Likewise. + (verify_gimple_switch): Use gimple_switch_label in verifier to get + the label at index 0, and verify that it is a valid default case. + * except.c (sjlj_emit_dispatch_table): Rewrite construction of the + switch for dispatching. + * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use. + (lower_eh_dispatch): Likewise. + * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case + label at index 0 before turning it into a default case label. + * omp-low.c (expand_omp_sections): Update gimple_build_switch use. + * tree-switch-conversion.c (emit_case_bit_tests): Get the default case + label using gimple_switch_default_label. + (collect_switch_conv_info): Likewise. + (process_switch): Likewise. + * doc/gimple.texi: Update documentation of gimple_build_switch. + +2012-09-04 Georg-Johann Lay + + PR target/54476 + * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with + SImode. + +2012-09-04 Bin Cheng + + PR target/45070 + * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value + of size less than 4 bytes by using macro ARM_NUM_INTS. + (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS. + +2012-09-04 Richard Guenther + + PR tree-optimization/54458 + * tree-ssa-threadupdate.c (thread_through_loop_header): If we + turn the loop into one with multiple latches mark it so. + +2012-09-04 Senthil Kumar Selvaraj + + PR target/54220 + * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New + define to... + (avr_allocate_stack_slots_for_args): ...this new static function. + +2012-09-04 Christophe Lyon + + * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT + by GEN_INT. + (arm_emit_coreregs_64bit_shift): Likewise. + +2012-09-04 Christophe Lyon + + * config/arm/arm.c (arm_evpc_neon_vext): New function. + (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext. + +2012-09-04 Oleg Endo + + PR target/51244 + * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison + canonicalization code into... + * (sh_canonicalize_comparison): This new function. + * config/sh/sh-protos.h: Declare it. + * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON. + * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and + always invoke expand_cbranchsi4. + +2012-09-03 Andi Kleen + + * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize + addr_offset always. + +2012-09-03 Andrew Pinski + + PR tree-opt/53395 + * tree-if-conv.c (constant_or_ssa_name): New function. + (fold_build_cond_expr): New function. + (predicate_scalar_phi): Use fold_build_cond_expr instead of build3. + (predicate_mem_writes): Likewise. + +2012-09-03 Marc Glisse + + * fold-const.c (fold_ternary_loc): Constant-propagate after + removing dead operands. + +2012-09-03 Michael Matz + + PR tree-optimization/46590 + * tree-cfg.c (gimple_duplicate_sese_region): Don't update + SSA web here ... + * tree-ssa-loop-ch.c (copy_loop_headers): ... but here. + +2012-09-03 Sandra Loosemore + + * doc/invoke.texi: Fix numerous typos and punctuation/grammatical + errors throughout the file. Re-word some awkward sentences and + paragraphs. + +2012-09-03 Richard Guenther + + PR tree-optimization/54362 + * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR. + +2012-09-03 Andreas Krebbel + + * config/s390/s390.c (s390_loadrelative_operand_p): New function. + (s390_check_qrst_address, print_operand_address): Use + s390_loadrelative_operand_p instead of s390_symref_operand_p. + (s390_check_symref_alignment): Accept pointer size alignment for + GOT slots. + (legitimize_pic_address): Use load relative on z10 or later. + +2012-09-03 Jakub Jelinek + + PR debug/53923 + * valtrack.c (dead_debug_insert_temp): Drop non-reg uses + from the chain. + +2012-09-03 Joseph Myers + + * common.opt (--no-sysroot-suffix): New driver option. + * doc/invoke.texi (--no-sysroot-suffix): Document. + * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not + needing spec processing. + (main): Do not process sysroot suffixes if no_sysroot_suffix. + +2012-09-02 Oleg Endo + + PR target/33135 + * common/config/sh/sh-common.c: Update copyright years. + (sh_option_init_struct): Delete. + (TARGET_OPTION_INIT_STRUCT): Likewise. + +2012-09-02 Oleg Endo + + PR target/54418 + * config/sh/sh.md (cmpgeusi_t): Remove N alternative. + Check operands[1] in split condition instead of operands[0]. + Add comments. + +2012-09-02 Mark Kettenis + + * config.gcc (x86_64-*-openbsd*): New target. + * config.host (*-*-openbsd*): New target. + * config/openbsd.h (TARGET_C99_FUNCTIONS): Define. + * config/i386/openbsdelf.h: Remove some superfluous defines and + group things together in a more logical fashion. + (DBX_REGISTER_NUMBER): Provide a + definition that works on both 32-bit and 64-bit targets. + (WCHAR_TYPE_SIZE): Hardcode as 32. + (NO_DOLLAR_IN_LABEL): Remove undef. + (TARGET_DEFAULT): Remove. + (SET_ASM_OP): Remove. + (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning. + (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h + (DWARF2_UNWIND_INFO): Remove define. + (HAVE_ENABLE_EXECUTE_STACK): Define. + * config/host-openbsd.c: New file. + * config/t-openbsd (USER_H): Add EXTRA_HEADERS. + * config/x-openbsd: New file. + +2012-09-02 Oleg Endo + + * config/sh/sh.md (*extendsi2_compact_mem_disp): Pass iterated + mode to sh_legitimate_index_p instead of QImode. + +2012-09-02 Eric Botcazou + + PR rtl-optimization/54369 + * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before + calling dbr_schedule. + * config/sparc/sparc.c (sparc_reorg): Likewise. + +2012-09-01 Jakub Jelinek + + PR target/54436 + * config/i386/i386.md (*mov_insv_1_rex64, *movsi_insv_1): If + operands[1] is CONST_INT_P, convert it to QImode before printing. + +2012-09-01 Andrew Pinski + + * simplify-rtx.c (simplify_unary_operation_1 ): + A truncate of a memory is just loading the low part of the memory. + +2012-09-01 Uros Bizjak + + PR target/46829 + PR target/46843 + * config/i386/i386.c (ix86_legitimate_combined_insn): New function. + (TARGET_LEGITIMATE_COMBINED_INSN): New macro. + +2012-09-01 Uros Bizjak + + * target.def (legitimate_combined_insn): New target hook. + * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook. + * doc/tm.texi: Regenerated. + * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn + to allow targets to reject combined insn. + * hooks.h (hook_bool_rtx_true): New. + * hooks.c (hook_bool_rtx_true): Ditto. + +2012-08-31 Martin Jambor + + * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate + nonconstant_names after calculate_dominance_info and + loop_optimizer_init. + +2012-08-31 Greta Yorsh + + * config/arm/arm.c (arm_expand_epilogue): Remove unused variable + floats_from_frame. + +2012-08-31 Martin Jambor + + PR middle-end/54409 + * ipa-inline-analysis.c (remap_predicate): Fix the offset_map + checking condition. + +2012-08-31 Martin Jambor + + * ipa-inline-analysis.c (phi_result_unknown_predicate): New function. + (predicate_for_phi_result): Likewise. + (estimate_function_body_sizes): Use the above two functions. + +2012-08-31 Martin Jambor + + PR middle-end/54394 + * ipa-inline-analysis.c (estimate_function_body_sizes): Compute + dominance info and loops whenever optimizing. + +2012-08-29 Ramana Radhakrishnan + Richard Earnshaw + + PR target/54252 + * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by + element size. Use elem_type from the formal parameter. New parameter + fcode. + (neon_expand_args): Adjust call to neon_dereference_pointer. + +2012-08-29 Steven Bosscher + + * cfg.c (dump_bb_info): Print a newline if there were no edges to dump. + +2012-08-29 Chung-Lin Tang + + Revert: + * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use + mapping style, add ../lib/mips16. + (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16. + (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32. + +2012-08-29 Richard Sandiford + + * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci + if TARGET_SYNCI. + +2012-08-29 Oleg Endo + + * config/sh/sh.opt (menable-tas): Rename to mtas. + * doc/invoke.texi (SH options): Likewise. + * config/sh/sync.md: Update comments. + +2012-08-29 Oleg Endo + + * config/sh/iterators.md: New file. + * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage + with new iterators QIHISI, QIHI, bw, bwl respectively throughout + the file. + * config/sh/sh.md: Include new file iterators.md. + (zero_extendhisi2, zero_extendqisi2): Fold into zero_extendsi2. + (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into + *zero_extendsi2_compact. + (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into + *zero_extendsi2_disp_mem. + (extendhisi2, extendqisi2): Fold into extendsi2. + (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into + *extendsi2_compact_reg. + (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold + into *extendsi2_compact_mem_disp. + (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into + *extendsi2_compact_snd. + (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename + to *movsi_index_disp_load, *movhi_index_disp_load, + *mov_index_disp_store. + (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov_reg_reg. + (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into + *mov_store_mem_disp04. + (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into + *mov_store_mem_disp12. + (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into + *mov_load_mem_disp04 and *mov_load_mem_disp12. + +2012-08-29 Martin Jambor + + * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not + do_estimate_edge_time. + +2012-08-29 Chung-Lin Tang + + * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm + directives, remove #ifndef __mips16 guards. + * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use + mapping style, add ../lib/mips16. + (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16. + (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32. + +2012-08-28 Walter Lee + * confg/tilegx/tilegx.md: Fix code style. + (*zero_extendsidi_truncdisi): Fix typo. + * config/tilegx/tilegx.c: Fix code style. + (tilegx_function_profiler): Fix typo. + +2012-08-28 Walter Lee + + * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large. + * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h. + (CRT_CALL_STATIC_FUNCTION): Define. + * config/tilegx/predicates.md (const_last_symbolic_operand): + Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and + UNSPEC_HW2_LAST_PLT_PCREL. + (const_symbolic_operand): Handle UNSPEC_HW1_PCREL, + UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL. + * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define, + and renumber the constants that follow. + (UNSPEC_HW1_PCREL): Ditto. + (UNSPEC_HW2_LAST_PCREL): Ditto. + (UNSPEC_HW0_PLT_PCREL): Define. + (UNSPEC_HW1_PLT_PCREL): Define. + (UNSPEC_HW1_LAST_PLT_PCREL): Define. + (UNSPEC_HW2_LAST_PLT_PCREL): Define. + (mov_large_pcrel_step1): Define. + (mov_large_pcrel_step2): Define. + (mov_large_pcrel_step3): Define. + (mov_large_pcrel_step4): Define. + (mov_plt_pcrel_step1): Define. + (mov_plt_pcrel_step2): Define. + (mov_plt_pcrel_step3): Define. + (mov_plt_pcrel_step1_32bit): Define. + (mov_plt_pcrel_step2_32bit): Define. + (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC. + (call_value): Ditto. + * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h. + (mcmodel): New option. + (enum cmodel): Define. + (CM_SMALL): Define. + (CM_LARGE): Define. + * config/tilegx/tilegx-opts.h: New file. + * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address): + Declare. + (tilegx_compute_pcrel_plt_address): Declare. + * config/tilegx/tilegx.c (tilegx_option_override): Handle + tilegx_cmodel. + (tilegx_function_ok_for_sibcall): Ditto. + (compute_pcrel_address): Rename to tilegx_compute_pcrel_address, + and don't declare static. Handle tilegx_cmodel. + (tilegx_compute_pcrel_plt_address): Define. + (tilegx_legitimize_pic_address): Rename calls to + compute_pcrel_address. + (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL, + UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL, + UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL. + (load_pic_register): Rename call to compute_pcrel_address. + (tilegx_print_operand): Handle UNSPEC_HW1_PCREL, + UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL, + UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL. + +2012-08-27 Maxim Kuvyrkov + + * sched-deps.c (add_dependence_list_and_free): Simplify. + (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free + lists when add_dependence_list_and_free doesn't free them. + +2012-08-27 Uros Bizjak + + PR target/46254 + * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return + true for TARGET_64BIT or !flag_pic. + * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove. + (atomic_compare_and_swap_double): Change operand 2 predicate + to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator. + Add insn constraint. Conditionally emit xchg asm insns. + (atomic_compare_and_swap): Update calls. Check only + cmpxchg8b_pic_memory_operand in memory address fixup. + (DCASMODE): Remove. + (CASHMODE): Rename from DCASHMODE. + (doublemodesuffix): Update modes. + (regprefix): New mode attribute. + + (unspecv) : Remove. + : New constant. + (atomic_compare_and_swap_1): Rename from + atomic_compare_and_swap_single. Update calls and + unspec_volatile constants. + (atomic_compare_and_swap_doubleword): Rename from + atomic_compare_and_swap_double. Update calls and + unspec_volatile constants. + +2012-08-27 Walter Lee + + * doc/md.texi (TILE-Gx): Fix typo. + +2012-08-27 Walter Lee + + * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo. + * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto. + +2012-08-27 Walter Lee + + * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins. + (insn_bfins): Delete. + +2012-08-27 Walter Lee + + * config/tilegx/sync.md (atomic_compare_and_swap_bare, + atomic_exchange_bare, + atomic_fetch__bare): Set type to X1_remote. + * config/tilegx/tilegx-generic.md (X1_remote): New + insn_reservation. + * config/tilegx/tilegx.md (type): Add X1_remove. + (insn_cmpexch, insn_exch, + insn_fetchadd, insn_fetchaddgez, + insn_fetchand, insn_fetchor): Set type to + X1_remote. + +2012-08-27 Andreas Schwab + + * gdbinit.in: Fix syntax of skip command. + +2012-08-27 Richard Sandiford + + * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for + SYMBOL_REF SET_SRCs. + +2012-08-27 Richard Sandiford + + * config/mips/mips.c (vr4130_align_insns): Don't simulate + ghost instructions. Assert that the required instructions exist. + +2012-08-26 Richard Sandiford + + * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for + definition. + * config/mips/mips.c (machine_function): Add next_fcc. + (mips_output_move): Remove handling of fcc moves. + (mips_allocate_fcc): New function. + (mips_emit_compare, mips_expand_vcondv2sf): Use it. + (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers. + Remove special case for CCmode reloads. + (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat + the result a fixed operand. + * config/mips/mips.md (move_type): Remove lui_movf. + (type, length): Remove references to it. + (movcc, reload_incc, reload_outcc): Delete. + +2012-08-26 Richard Sandiford + + * config/mips/mips.c (mips_has_long_branch_p): New function, + split out from... + (mips_expand_ghost_gp_insns): ...here. Look inside sequences. + +2012-08-26 Richard Sandiford + + * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference. + +2012-08-26 Richard Sandiford + + * config/mips/mips.c (mips_rtx_costs): Add costs for CINS. + +2012-08-26 Richard Sandiford + + * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS + to the size cost of multiplication. + +2012-08-26 Gerald Pfeifer + + * doc/install.texi (Specific): Clarify what needs to be added to + this section. + +2012-08-26 Gerald Pfeifer + + * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL + and NO_DOT_IN_LABEL from here... + (Label Output): ...to here. + * doc/tm.texi: Regenerate. + +2012-08-26 Gerald Pfeifer + + * doc/invoke.texi (C++ Dialect Options): Add missing space. + +2012-08-25 Eric Botcazou + + PR rtl-optimization/54088 + * jump.c (delete_related_insns): Robustify latest change. + +2012-08-25 Ricardo Catalinas Jiménez + + * doc/extend.texi (__atomic Builtins): Remove space before comma. + +2012-08-25 Richard Sandiford + Andrew Pinski + + * config/mips/mips.h (CASE_VECTOR_MODE): For not + TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode. + (CASE_VECTOR_SHORTEN_MODE): Likewise. + +2012-08-25 Uros Bizjak + + * config/i386/i386.h (FP_REG_P): Remove macro. + (FP_REGNO_P): Ditto. + (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P. + (HARD_REGNO_NREGS_HAS_PADDING): Ditto. + (ANY_FP_REGNO_P): Ditto. + (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P. + * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P + instead of FP_REGNO_P. + (ix86_hard_regno_mode_ok): Ditto. + * config/i386/predicates.md (fp_register_operand): Ditto. + (register_and_not_fp_reg_operand): Ditto. + * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead + of FP_REG_P. + + * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P. + +2012-08-24 Jason Merrill + + * print-tree.c (print_node): Don't check TREE_LANG_FLAG_* + on TREE_VEC or SSA_NAME. + +2012-08-24 Jakub Jelinek + + PR c/54363 + * gimplify.c (optimize_compound_literals_in_ctor): Only recurse + if init is a CONSTRUCTOR. + +2012-08-24 Steven Bosscher + + * tree-ssa-live.c (dump_var_map): Do not dump the partition + map of virtual operands. + +2012-08-24 Yuri Rumyantsev + + * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add + case for Atom processor. + +2012-08-24 Simon Baldwin + + * dwarf2out.c (gen_producer_string): Omit command line switch if + CL_NO_DWARF_RECORD flag set. + * opts.h (CL_NO_DWARF_RECORD): New. + * opt-functions.awk (switch_flags): Add NoDWARFRecord. + * doc/options.texi: Document NoDWARFRecord option flag. + +2012-08-24 H.J. Lu + + PR debug/52857 + * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and + frame_pointer_rtx for based_loc_descr. + +2012-08-24 Martin Jambor + + * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl + instead of current_function_decl, use profile_status_for_function and + ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants. + (maybe_hot_count_p): New parameter fun, use + profile_status_for_function instead of its cfun_variant. + (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to + all callees. + (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and + maybe_hot_frequency_p. + (probably_never_executed_bb_p): New parameter fun, use its decl + instead of current_function_decl. + (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p. + (rtl_profile_for_bb): Likewise. + (compute_function_frequency): Pass cfun to maybe_hot_bb_p and + probably_never_executed_bb_p. + * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it + instead of cfun. + (update_stmt_operands): Pass cfun as an argument of + ssa_operands_active. + (swap_tree_operands): Likewise. + * gimple-iterator.c (update_modified_stmt): Likewise. + (update_modified_stmts): Likewise. + * tree-flow-inline.h (delink_stmt_imm_use): Likewise. + * tree-ssa.c (delete_tree_ssa): Likewise. + * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p. + (push_to_next_round_p): Likewise. + (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise. + * cfg.c: Inlude tree.h. + (check_bb_profile): Use profile_status_for_function, + EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with + DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun + variants. + (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to + maybe_hot_bb_p and probably_never_executed_bb_p. + * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that + DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to + dump_histograms_for_stmt. + (dump_gimple_mem_ops): Pass + DECL_STRUCT_FUNCTION (current_function_decl) + as an argument to dump_gimple_mem_ops. + * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl. + Do not change cfun. Change and restore current_function_decl. + * Makefile.in (cfg.o): Include TREE_H in dependencies. + +2012-08-24 Georg-Johann Lay + + PR target/54222 + * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes. + * avr/avr-fixed.md: New file. + * avr/avr.md: Include it. + (cc): Add: minus. + (adjust_len): Add: minus, minus64, ufract, sfract. + (ALL1, ALL2, ALL4, ORDERED234): New mode iterators. + (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA. + (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA. + (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3, + subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi, + cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1. + (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3, + ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3, + *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all + 16-bit modes in ALL2. + (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI. + (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const, + ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const, + *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all + 32-bit modes in ALL4. + * avr-dimode.md (ALL8): New mode iterator. + (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn, + subdi3_const_insn, cbranchdi4, compare_di2, + compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn, + ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle + all 64-bit modes in ALL8. + * config/avr/avr-protos.h (avr_to_int_mode): New prototype. + (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes. + * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to... + (avr_fixed_point_supported_p): ...this new static function. + (TARGET_BUILD_BUILTIN_VA_LIST): Define to... + (avr_build_builtin_va_list): ...this new static function. + (avr_adjust_type_node): New static function. + (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P. + (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new + pseudo instead of gen_rtx_MINUS. + (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED. + (notice_update_cc): Handle: CC_MINUS. + (output_movqi): Generalize to handle respective fixed-point modes. + (output_movhi, output_movsisf, avr_2word_insn_p): Ditto. + (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes. + (avr_assemble_integer): Ditto. + (output_reload_in_const, output_reload_insisf): Ditto. + (avr_compare_pattern): Skip all modes > 4 bytes. + (avr_2word_insn_p): Skip movuqq_insn, movqq_insn. + (avr_out_fract, avr_out_minus, avr_out_minus64): New functions. + (avr_to_int_mode): New function. + (adjust_insn_length): Handle: ADJUST_LEN_SFRACT, + ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64. + * config/avr/predicates.md (const0_operand): Allow const_fixed. + (const_operand, const_or_immediate_operand): New. + (nonmemory_or_const_operand): New. + * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ): + New constraints. + * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define. + +2012-08-23 Kenneth Zadeck + + * alias.c (rtx_equal_for_memref_p): Convert constant cases. + * combine.c (find_single_use_1, mark_used_regs_combine): Convert + to CASE_CONST_ANY. + * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1, + count_reg_usage): Convert constant cases. + * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY. + (cselib_subst_to_values): Convert constant cases. + * df-scan.c (df_uses_record): Ditto. + * dse.c (const_or_frame_p): Convert case statements to explicit + if-then-else using mode classes. + * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases. + * explow.c (convert_memory_address_addr_space): Ditto. + * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto. + * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto. + * ira.c (equiv_init_varies_p, contains_replace_regs, + memref_referenced_p, rtx_moveable_p): Ditto. + * jump.c (mark_jump_label_1): Remove constant cases. + (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE. + * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1, + invariant_expr_equal_p): Convert to CASE_CONST_ANY. + * postreload-gcse.c (oprs_unchanged_p): Convert constant cases. + * reginfo.c (reg_scan_mark_refs): Ditto. + * regrename.c (scan_rtx): Ditto. + * reload1.c (eliminate_regs_1, elimination_effects, + scan_paradoxical_subregs): Ditto. + * reload.c (operands_match_p, subst_reg_equivs): Ditto. + * resource.c (mark_referenced_resources, mark_set_resources): Ditto. + * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences) + (reg_mentioned_p, modified_between_p, modified_in_p) + (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1, + inequality_comparisons_p, computed_jump_p_1): Ditto. + * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto. + * sched-deps.c (sched_analyze_2): Ditto. + * valtrack.c (cleanup_auto_inc_dec): Ditto. + * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE, + CASE_CONST_ANY): New macros. + +2012-08-23 Julian Brown + Sandra Loosemore + + * config/mips/mips.md + (UNSPEC_CASESI_DISPATCH): New. + (MIPS16_T_REGNUM): New constant. + (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES. + (casesi): New. + (casesi_internal_mips16_): New. + * config/mips/mips.c (mips16_split_long_branches): Adjust test + to ignore casesi jump tables. + * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update + comment. + (CASE_VECTOR_MODE): Use SImode unconditionally. + (CASE_VECTOR_SHORTEN_MODE): Define. + (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts + when necessary for MIPS16_SHORT_JUMP_TABLES. + +2012-08-23 Bill Schmidt + + * config/rs6000/rs6000.c (rs6000_density_test): Free loop body. + +2012-08-23 H.J. Lu + + PR driver/54335 + * doc/invoke.texi: Add -da and remove -dm. + +2012-08-23 Richard Guenther + + * tree-vect-stmts.c (vect_finish_stmt_generation): Update + virtual SSA form. + +2012-08-23 Jakub Jelinek + + * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION. + +2012-08-23 Mingjie Xing + + * doc/gty.texi: Fix typo. + +2012-08-23 Richard Guenther + + * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands. + (find_uses_to_rename_use): Likewise. + (find_uses_to_rename_bb): Likewise. + (find_uses_to_rename_stmt): Walk over all operands. + +2012-08-22 Oleg Endo + + PR target/54089 + * config/sh/predicates (p27_rshift_count_operand, + not_p27_rshift_count_operand): New predicates. + * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p, + sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special + case when shift amount is 31. + (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m. + * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead + of 'arith'. + (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout + the file. + (lshrsi3): Remove clobber from expander. Use shift_count_operand + instead of nonmemory_operand predicate for second operand. Add + handling of case lshrsi3_n_clobbers_t. + (lshrsi3_k): Use p27_rshift_count_operand for second operand. + (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant + shift sequences if beneficial. + (lshrsi3_n): Make insn_and_split. Split constant shift sequence to + dynamic shift if beneficial. + (lshrsi3_n_clobbers_t): New insn_and_split. + (lshrsi3_m): Delete. + +2012-08-22 Steven Bosscher + + * tracer.c (mark_bb_seen): Use SBITMAP_SIZE. + + * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale, + or rather a lack thereof. + (init_alias_analysis): Propagate the latest information across + the CFG in topological order to propagate as far as possible in + each iteration. Ignore debug insns. + +2012-08-22 H.J. Lu + + * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80. + * config/i386/i386.c (flag_opts): Add -mlong-double-64. + (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic. + * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if + TARGET_LONG_DOUBLE_64 is true. + (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro. + (WIDEST_HARDWARE_FP_SIZE): Defined to 80. + * config/i386/i386.opt (mlong-double-80): New option. + (mlong-double-64): Likewise. + * config/i386/i386-c.c (ix86_target_macros): Define + __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64. + +2012-08-22 H.J. Lu + + PR target/54347 + * config/i386/i386.c (ix86_split_to_parts): Replace + REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target. + +2012-08-22 Richard Guenther + + * tree-vectorizer.c (vectorize_loops): Do not call + mark_virtual_operands_for_renaming. + * tree-vect-slp.c (vect_slp_transform_bb): Likewise. + Do not update SSA form here. + +2012-08-22 Dodji Seketeli + + * tree.h (TREE_NOTHROW): Use the base.nothrow_flag. + +2012-08-22 Richard Guenther + + PR tree-optimization/46590 + * tree-ssa-alias.h (get_continuation_for_phi): Add alias query + counter output argument. + (walk_non_aliased_vuses): Add alias query counter argument + to the walker callback. + * tree-ssa-alias.c (maybe_skip_until): Add alias query counter + output argument and count alias queries. + (get_continuation_for_phi_1): Likewise. + (get_continuation_for_phi): Likewise. + (walk_non_aliased_vuses): Add alias query counter argument + to the walker callback and allow it to abort the walk by + returning -1. + * tree-ssa-pre.c (translate_vuse_through_block): Adjust. + * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query + counter parmeter, abort walk if that is bigger than + --param sccvn-max-alias-queries-per-access. + * params.def (sccvn-max-alias-queries-per-access): New param. + * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document. + +2012-08-22 Richard Guenther + + * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking. + * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert + instead of gcc_assert. + (mark_block_for_update): Likewise. + (add_new_name_mapping): Likewise. + (mark_def_sites): Likewise. + (insert_phi_nodes_for): Likewise. + (rewrite_debug_stmt_uses): Likewise. + (rewrite_stmt): Likewise. + (maybe_register_def): Likewise. + (rewrite_update_phi_arguments): Likewise. + (rewrite_update_enter_block): Likewise. + (mark_def_interesting): Likewise. + (prepare_def_site_for): Likewise. + (insert_updated_phi_nodes_for): Likewise. + +2012-08-22 Jakub Jelinek + + * tree-vect-loop.c (vect_transform_loop): Initialize + check_profitability to false. + + * tree-predcom.c (try_combine_chains): Free the worklist vector + at the end. + +2012-08-22 Marc Glisse + + PR tree-optimization/54317 + * tree-vrp.c (extract_range_from_binary_expr_1): Test for + double_int overflow. + Remove dead tests. + +2012-08-22 Jakub Jelinek + + * tree-vrp.c (find_assert_locations): Skip also edges + from the entry block. + + * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call + free_stmt_vec_info on orig_cond after gsi_removing it. + * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always + free body_cost_vec vector. + (vect_analyze_data_refs): If gather is unsuccessful, + free_data_ref (dr). + * tree-inline.c (tree_function_versioning): Free + old_transforms_to_apply vector. + +2012-08-22 Steven Bosscher + + * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents + of this a VEC and add a bitmap obstack. + (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared + to the right size. + (ssa_conflicts_delete): Free the VEC and release the obstack. + (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one, + ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes. + (truct live_track_d): Add another bitmap obstack here. + (new_live_track): Initialize it and use it for all bitmaps. + (delete_live_track): Don't free the bitmaps one at a time, just + release the obstack. + (create_outofssa_var_map): Fix to conform to GCC code style rules. + +2012-08-21 Nathan Froyd + + * config/m32c/constraints.md: New file. + * config/m32c/t-m32c (MD_FILES): Add constraints. + * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete. + (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete. + (m32c_reg_class_from_constraint): Delete. + (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete. + (m32c_matches_constraint_p): Declare. + * config/m32c/m32c.h (CONSTRAINT_LEN): Delete. + (REG_CLASS_FROM_CONSTRAINT): Delete. + (CONST_OK_FOR_CONSTRAINT_P): Delete. + (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete. + (EXTRA_CONSTRAINT_STR): Delete. + (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete. + * config/m32c/m32c.c: Include tm-constrs.h + (m32c_reg_class_from_constraint): Delete. + (m32c_const_ok_for_constraint_p): Delete. + (m32c_extra_constraint_p2): Rename to... + (m32c_matches_constraint_p): ...this. Make it return bool. Tweak + formatting. + (m32c_extra_constraint_p): Delete. + (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete. + (m32c_split_move): Use satisfies_constraint_Ss. + * config/m32c/predicates.md (memsym_operand): Use + satisfies_constraint_Si. + (memimmed_operand): Use satisfies_constraint_Sp. + (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb. + (m32c_1bit16_operand): Use satisfies_constraint_Ilw. + (m32c_1mask8_operand): Use satisfies_constraint_ImB. + (m32c_1mask16_operand): Use satisfies_constraint_Imw. + +2012-08-21 Nathan Froyd + + * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete. + (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete. + (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete. + * config/mep/mep.c (mep_reg_class_from_constraint): Delete. + (mep_const_ok_for_letter_p, mep_extra_constraint): Delete. + * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete. + (mep_const_ok_for_letter_p, mep_extra_constraint): Delete. + +2012-08-21 Oleg Endo + + * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t, + cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond, + truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a, + ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei, + call_valuei_pcrel, sibcalli_pcrel, sibcall_compact, + sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1, + casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1, + sp_switch_2, stack_protect_set_si, stack_protect_set_si_media, + stack_protect_set_di_media, stack_protect_test_si, + stack_protect_test_si_media, stack_protect_test_di_media): Convert to + multi-line asm output strings. + (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm + output. + (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli, + call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a, + bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a, + bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr): + Use tab char instead of '\\t'. + (iordi3): Use braced string. + (*movsi_pop): Use tab chars instead of spaces. + +2012-08-21 Oleg Endo + + PR target/39423 + * config/sh/sh.md (*movhi_index_disp): Add support for SH2A + movu.w insn. + +2012-08-21 H.J. Lu + + PR middle-end/54332 + * df-scan.c (df_bb_verify): Restore df_free_collection_rec call + inside the insn traversal loop. + + * vec.h (vec_reserve): Remove the stack allocation check. + +2012-08-21 Marc Glisse + + * fold-const.c (fold_ternary_loc): Detect identity permutations. + Canonicalize permutations more. + * tree-ssa-forwprop.c (is_combined_permutation_identity): New function. + (simplify_permutation): Likewise. + (ssa_forward_propagate_and_combine): Call it. + +2012-08-21 Richard Guenther + + * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free + the affine expansion cache. + * tree-ssa-dom.c (free_expr_hash_elt_contents): New function, + split out from ... + (free_expr_hash_elt): ... this one. + (record_cond): Properly free a not needed hashtable element. + (lookup_avail_expr): Likewise. + * tree-into-ssa.c (init_ssa_renamer): Specify a free function + for the var_infos hashtable. + (update_ssa): Likewise. + +2012-08-21 Richard Guenther + + * alloc-pool.c (pool_alloc): Fix valgrind annotation. + * tree.h: Fix typo and complete flags documentation. + +2012-08-21 Richard Guenther + + * tree.h (struct tree_base): Add union to make it possible to + re-use the upper 4 bytes for tree codes that do not need as + many flags as others. Move visited and default_def_flag to + common bits section in exchange for saturating_flag and + unsigned_flag. Add SSA name version and tree vec length + fields here. + (struct tree_vec): Remove length field here. + (struct tree_ssa_name): Remove version field here. + +2012-08-20 Jan Hubicka + + PR fortran/48636 + * ipa-inline.c (want_inline_small_function_p): Take loop_iterations + hint. + (edge_badness): Likewise. + * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations. + (inline_summary): Add loop_iterations. + * ipa-inline-analysis.c: Include tree-scalar-evolution.h. + (dump_inline_hints): Dump loop_iterations. + (reset_inline_summary): Free loop_iterations. + (inline_node_duplication_hook): Update loop_iterations. + (dump_inline_summary): Dump loop_iterations. + (will_be_nonconstant_expr_predicate): New function. + (estimate_function_body_sizes): Analyze loops. + (estimate_node_size_and_time): Set hint loop_iterations. + (inline_merge_summary): Merge loop iterations. + (inline_read_section): Stream in loop_iterations. + (inline_write_summary): Stream out loop_iterations. + +2012-08-20 Oleg Endo + + PR target/54089 + * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits. + (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split. + * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function. + * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it. + +2012-08-20 Oleg Endo + + PR target/51244 + * config/sh/sh.md (*cset_zero): New insns. + +2012-08-20 Mark Wielaard + + * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc. + * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc. + (add_AT_low_high_pc): New function. + (AT_lbl): Handle dw_val_class_high_pc. + (print_die): Likewise. + (attr_checksum): Likewise. + (attr_checksum_ordered): Likewise. + (same_dw_val_p): Likewise. + (size_of_die): Likewise. + (value_format): Likewise. + (output_die): Likewise. + (gen_subprogram_die): Use add_AT_low_high_pc. + (add_high_low_attributes): Likewise. + (dwarf2out_finish): Likewise. + +2012-08-20 Jakub Jelinek + + PR rtl-optimization/54294 + * fwprop.c (all_uses_available_at): Ignore debug insns in between + def_insn and target_insn when checking whether the shortcut is + possible. + +2012-08-20 Eric Botcazou + + * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define. + +2012-08-20 Patrick Marlier + + PR middle-end/53992 + * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION. + +2012-08-20 Richard Earnshaw + + PR tree-ssa/54295 + * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code + declaration and setter. + +2012-08-20 Richard Earnshaw + + PR tree-ssa/54295 + * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p): + New function. + (is_widening_mult_rhs_p): Use it. + +2012-08-20 Joseph Myers + + * configure.ac (ffs): Check for declaration. + * configure, config.in: Regenerate. + +2012-08-20 Richard Guenther + + * tree-flow.h (register_new_name_mapping): Remove. + * tree-into-ssa.c (register_new_name_mapping): Likewise. + (add_new_name_mapping): Do not push/pop timevar here. + (create_new_def_for): Instead do it here. Initialize + update-ssa here, handle a NULL def. + * tree-vrp.c (build_assert_expr_for): Use create_new_def_for. + +2012-08-20 Richard Guenther + + PR tree-optimization/54327 + * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains + if the use is registered for SSA update. + +2012-08-20 Jakub Jelinek + + PR tree-optimization/54321 + * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1 + as second argument to tree_low_cst call on val2. + +2012-08-20 Richard Guenther + + * gimple.h (gimple_statement_base): Annotate with GTY chain_next. + +2012-08-20 Richard Guenther + + PR bootstrap/54326 + * genoutput.c (note_constraint): Properly use CONST_CAST. + +2012-08-19 Nick Clifton + + PR target/54306 + * config/arm/mmintrin.h: Remove spurious #endif. + +2012-08-18 Jan-Benedict Glaw + + * config/avr/avr-log.c (avr_log_vadump): Properly use + int-promoted enum values. + * config/avr/avr.h (struct mcu_type_s): Change `arch' from + int to enum avr_arch. + * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer. + +2012-08-18 Jan Hubicka + + PR lto/45375 + * ipa-inline.c (want_inline_small_function_p): Bypass + inline limits for hinted functions. + (edge_badness): Dump hints; decrease badness for hinted funcitons. + * ipa-inline.h (enum inline_hints_vals): New enum. + (inline_hints): New type. + (edge_growth_cache_entry): Add hints. + (dump_inline_summary): Update. + (dump_inline_hints): Declare. + (do_estimate_edge_hints): Declare. + (estimate_edge_hints): New inline function. + (reset_edge_growth_cache): Update. + * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges. + * ipa-inline-analysis.c (dump_inline_hints): New function. + (estimate_edge_devirt_benefit): Return true when function should be + hinted. + (estimate_calls_size_and_time): New hints argument; set it when + devritualization happens. + (estimate_node_size_and_time): New hints argument. + (do_estimate_edge_time): Cache hints. + (do_estimate_edge_growth): Update. + (do_estimate_edge_hints): New function + +2012-08-18 John David Anglin + + PR middle-end/53823 + * expmed.c (expand_mult): Skip synth_mult for negative coefficients + if the mode is larger than a wide int and it is too costly to multiply + by a positive multiplier and negate the result. + +2012-08-18 Steven Bosscher + + * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell + valgrind not to worry about reading from unitialized memory. + +2012-08-18 Steven Bosscher + + PR middle-end/54313 + * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is + freed when its obstack is release. + +2012-08-18 Andrew Pinski + + * alloc-pool.c (pool_alloc): Add valgrind markers. + (pool_free): Likewise. + +2012-08-17 Walter Lee + + * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define. + (FEEDBACK_ENTER): Define. + (FEEDBACK_REENTER): Define. + (FEEDBACK_ENTRY): Define. + * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define. + (FEEDBACK_ENTER): Define. + (FEEDBACK_REENTER): Define. + (FEEDBACK_ENTRY): Define. + +2012-08-17 H.J. Lu + Gary Funck + + PR target/20020 + * config/i386/i386.c (ix86_member_type_forces_blk): New function. + (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. + * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro. + +2012-08-17 Marc Glisse + + * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of + a concatenation. + +2012-08-17 H.J. Lu + + * stor-layout.c (compute_record_mode): Replace + MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk. + (layout_type): Likewise. + * system.h: Poison MEMBER_TYPE_FORCES_BLK. + * target.def (member_type_forces_blk): New target hook. + * targhooks.c (default_member_type_forces_blk): New. + * targhooks.h (default_member_type_forces_blk): Likewise. + * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed. + (TARGET_MEMBER_TYPE_FORCES_BLK): New hook. + * doc/tm.texi: Regenerated. + * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed. + * config/ia64/ia64.c (ia64_member_type_forces_blk): New function. + (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. + * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. + (rs6000_member_type_forces_blk): New function. + * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed. + * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function. + (TARGET_MEMBER_TYPE_FORCES_BLK): New macro. + * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed. + +2012-08-17 Diego Novillo + + PR bootstrap/54281 + * configure.ac: Add libintl.h to AC_CHECK_HEADERS list. + * config.in: Regenerate. + * configure: Regenerate. + * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set. + +2012-08-17 Richard Guenther + + * bitmap.h (struct bitmap_element_def): GTY annotate next/prev. + (struct bitmap_head_def): GTY skip current field. + +2012-08-17 Steven Bosscher + + PR middle-end/54146 + * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack. + (memref_free): Don't free the bitmaps individually here. + (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack. + (analyze_memory_references): Likewise. + (tree_ssa_lim_initialize): Initialize the new bitmap obstack. + (tree_ssa_lim_finalize): Release it. + * dse.c (dse_bitmap_obstack): New bitmap obstack. + (dse_obstack): New obstack. + (get_group_info): Allocate the bitmaps on the new bitmap obstack. + (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize + the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table. + (record_store): Allocate regs_set on reg_obstack. + (dse_step1): Allocate regs_live on reg_obstack. + (dse_step2_init): Allocate offset_map_n and offset_map_p on the new + obstack. + (dse_step3_scan): Allocate bitmaps on the new bitmap obstack. + (dse_step3): Likewise. + (dse_confluence_0): Likewise. + (dse_confluence_n): Likewise. + (dse_transfer_function): Likewise. + (dse_step7): Destroy the new obstacks, and everything allocated on + them, in one big sweep. + (rest_of_handle_dse): Update. + * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack. + (add_stack_var_conflict): Allocate bitmaps on it. + (add_scope_conflicts_1): Likewise. + (add_scope_conflicts): Likewise. + (update_alias_info_with_stack_vars): Likewise. + (init_vars_expansion): Move TREE_USED fiddling expand_used_vars. + Initialize the new bitmap obstack. + (fini_vars_expansion): Release it. + (estimated_stack_frame_size): Use init_vars_expansion to set things up + and always clean up at the end. + (expand_used_vars): Do the TREE_USED trickery here. Always call + fini_vars_expansion. + * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout + arrays of bitmap_head to avoid one indirection per bitmap access. + (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear, + make_live_on_entry): Update. + * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'. + (liveness_bitmap_obstack): New bitmap obstack. + (remove_unused_locals): Use it to allocate all bitmaps on. Update + for livein/liveout changes in tree-ssa-live.h. + (delete_tree_live_info): Release the bitmap obstack. + (loe_visit_block, live_worklist, set_var_live_on_entry, + calculate_live_on_exit, dump_live_info): Update. + (calculate_live_ranges): Initialize the bitmap. + * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack. + (new_temp_expr_table): Allocate bitmap on it. + (make_dependent_on_partition, add_to_partition_kill_list, + add_dependence, process_replaceable): Likewise. + (find_replaceable_exprs): Initialize and release the new obstack here. + * df-problems.c (df_lr_add_problem): Allocate persistent bitmap + for out_of_date_transfer_functions on df_bitmap_obstack. + (df_live_add_problem): Likewise. + (df_chain_add_problem): Likewise. + (df_word_lr_add_problem): Likewise. + +2012-08-17 Nick Clifton + + * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison. + (branch_true): Likewise. + (branch_false): Likewise. + + * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison. + + * config/iq2000/iq2000.md (cbranchsi4): Remove mode from + comparison and label. + (branch_zero): Likewise. + (branch_zero_inverted): Likewise. + (branch_equality): Likewise. + (branch_equality_inverted): Likewise. + (extend-and-compare): Disable until reload issues can be resolved. + * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode + for comparison. + (iq2000_function_arg_advance): Remove CONST_CAST2. + + * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile + mep-pragma.c. + +2012-08-17 Georg-Johann Lay + + * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile + gen-avr-mmcu-texi.c. + +2012-08-17 Richard Earnshaw + + * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction. + * arm.c (thumb2_reorg): Don't convert an ADD instruction that's + already 16 bits. + +2012-08-17 Richard Guenther + + * hash-table.h (class hash_table): Use a descriptor template + argument instead of decomposed element type and support functions. + (struct pointer_hash): New generic typed pointer-hash. + (struct typed_free_remove, struct typed_noop_remove): Generic + hash_table support pieces. + * coverage.c (struct counts_entry): Add hash_table support members. + * tree-ssa-ccp.c (gimple_htab): Use pointer_hash. + * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic + SSA name by SSA_NAME_VAR hash. + (coalesce_ssa_name): Use it. + * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support. + (expression_to_id): Adjust. + (struct expr_pred_trans_d): Add hash_table support. + (phi_translate_table): Adjust. + (phi_trans_lookup): Likewise. + (phi_trans_add): Likewise. + (do_regular_insertion): Likewise. + * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support. + (same_succ_htab): Adjust. + (find_same_succ_bb): Likewise. + (find_same_succ): Likewise. + (update_worklist): Likewise. + * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table + support. + (redirection_data): Adjust. + +2012-08-17 Richard Guenther + + * params.def (integer-share-limit): Decrease from 256 to 251, + add rationale. + +2012-08-17 Richard Guenther + + * tree-sra.c (modify_function): Free redirect_callers vector. + * ipa-split.c (split_function): Free args_to_pass vector. + * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free + body_cost_vec properly. + (vect_enhance_data_refs_alignment): Likewise. + * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate + vec_oprnds. + (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS. + * tree-vect-slp.c (vect_free_slp_instance): Free the instance. + (vect_analyze_slp_instance): Free everything. + (destroy_bb_vec_info): Free the SLP instances. + +2012-08-17 Iain Sandoe + + * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes + to vec.h. + +2012-08-17 Jakub Jelinek + + * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document. + +2012-08-16 Sandra Loosemore + + * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr) + (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph) + (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w) + (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr) + (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute. + +2012-08-16 Oleg Endo + + PR target/54236 + * config/sh/sh.md (addc): Add commutative modifier. + (*addc, *minus_plus_one, *subc, *negc): New insns and splits. + +2012-08-16 Oleg Endo + + PR target/39423 + * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle + potential T_REG clobber. Convert zero extending split to + insn_and_split. + +2012-08-16 Oleg Endo + + PR target/54089 + * config/sh/sh.md (ashlsi3_d): Do not split if it would result + in a T_REG clobber. Correct comment. + (ashlsi3_n): Correct comment. + +2012-08-16 Hans-Peter Nilsson + + PR middle-end/54261 + * optabs.c (expand_atomic_fetch_op): Save and restore code when + retrying after failed attempt. + +2012-08-16 Yuri Rumyantsev + + * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add + additional argument. + * config/i386/i386.md (ix86_split_lea_for_addr) : Add + additional argument curr_insn. + * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index + register first, depending on their defintion distances. + (ix86_lea_outperforms): Prefer LEA only if split cost exceeds + AGU stall. + (find_nearest_reg-def): New function. Find register with + nearest definition. + +2012-08-16 Walter Lee + + * config.gcc (tilegx-*-linux*): Add feedback.h. + (tilepro-*-linux*): Likewise. + * config/tilegx/feedback.h: New file. + * config/tilepro/feedback.h: New file. + +2012-08-16 Diego Novillo + + Revert + + PR bootstrap/54281 + * double-int.h: Move including of gmp.h ... + * system.h: ... here. + * realmpfr.h: Do not include gmp.h. + * tree-ssa-loop-niter.c: Do not include gmp.h. + +2012-08-16 Segher Boessenkool + + * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment. + +2012-08-16 Richard Guenther + + PR middle-end/54146 + * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the + exit vector. + * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK. + * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix. + * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc. + * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed. + * tree-ssa-loop-im.c (analyze_memory_references): Adjust. + (tree_ssa_lim_finalize): Free all mem_refs. + * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free + scc when bailing out. + * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK. + * ira-build.c (loop_with_complex_edge_p): Free loop exit vector. + * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use + FOR_EACH_LOOP_BREAK. + +2012-08-16 Diego Novillo + + PR bootstrap/54281 + * double-int.h: Move including of gmp.h ... + * system.h: ... here. + * realmpfr.h: Do not include gmp.h. + * tree-ssa-loop-niter.c: Do not include gmp.h. + +2012-08-16 Steven Bosscher + + PR middle-end/54146 + * tree-flow.h (compute_global_livein): Remove prototype. + * tree-into-ssa.c (compute_global_livein): Remove function. + * tree-ssa-loop-manip.c: Include gimple-pretty-print.h. + (find_sibling_superloop): New function. + (compute_live_loop_exits): New function. + (add_exit_phis_edge): Rename to add_exit_phi. Do not allow + inserting a PHI in a block that is not a loop exit for VAR. + Add dumping if TDF_DETAILS. + (add_exit_phis_var): Rewrite. + (add_exit_phis): Update. + (get_loops_exits): Rewrite to return an array of per-loop exits + rather than one bitmap with all loop exits. + (find_uses_to_rename_bb): Ignore virtual PHI nodes. + (rewrite_into_loop_closed_ssa): Update. + +2012-08-16 Nick Clifton + + * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes + before passing it to ASM_OUTPUT_LIMITED_STRING. + + * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro. + + * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER). + * config/avr/avr.c (avr_legitimize_reload_address): Add casts + for reload_type enums. + (DEF_BUILTIN): Cast the icode to enum insn_code. + +2012-08-15 Segher Boessenkool + + * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default) + instead of -mppc. + * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto. + +2012-08-15 Segher Boessenkool + + * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. + (RS6000_CALL_GLUE): Adjust for single assembler syntax. + * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. + * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. + * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. + * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto. + * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto. + * config/rs6000/darwin.md (whole file): Adjust to single + assembler syntax. + * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. + * config/rs6000/default64.h (TARGET_DEFAULT): Ditto. + * config/rs6000/dfp.md: (whole file): Adjust to single + assembler syntax. + * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. + * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto. + * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto. + * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto. + * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto. + * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK. + * config/rs6000/rs6000-tables.opt: Regenerate. + * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete. + (num_insns_constant_wide): Adjust comments. + (whole file): Adjust to single assembler syntax. + (output_cbranch): Adjust comment. + * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete. + * config/rs6000/rs6000.md: (whole file): Adjust to single + assembler syntax. + * config/rs6000/rs6000.opt (mnew-mnemonics): Delete. + (mold-mnemonics): Delete. + * config/rs6000/spe.md: (whole file): Adjust to single + assembler syntax. + * config/rs6000/sync.md: (whole file): Adjust to single + assembler syntax. + * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. + (ASM_OUTPUT_REG_PUSH): Adjust. + (ASM_OUTPUT_REG_POP): Adjust. + * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. + * config/rs6000/vsx.md: (whole file): Adjust to single + assembler syntax. + * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS. + * doc/invoke.texi: Adjust documentation to reflect the + removal of -mnew-mnemonics and -mold-mnemonics. + +2012-08-15 Segher Boessenkool + + * common/config/rs6000/rs6000-common.c (rs6000_handle_option): + Delete handling for -mno-powerpc and -mpowerpc. + * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar. + (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom. + * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto. + * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC. + * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto. + * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto. + * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto. + * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto. + * config/rs6000/default64.h (TARGET_DEFAULT): Ditto. + * config/rs6000/driver-rs6000.c (asm_names): Delete handling + for -mcpu=common and -mpowerpc. + * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC. + * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto. + * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto. + * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto. + * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto. + * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): + Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC. + * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust. + (rs6000_cpu_cpp_builtins): Adjust. + * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC. + (rs6000_builtin_mask_calculate): Adjust. + (rs6000_emit_move): Delete code for ! TARGET_POWERPC. + (rs6000_init_libfuncs): Ditto. + (rs6000_output_function_prologue): Ditto. + (rs6000_opt_masks): Delete MASK_POWERPC. + (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC. + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc. + (RS6000_BTM_POWERPC): Delete. + (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC. + * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for + TARGET_POWERPC always on. + (extendqihi2 patterns): Similar. + (various unnamed subtract patterns): Similar. + (bswaphi2 patterns): Similar. + (divmodsi4): Similar. + (udiv3): Similar. + (div3 patterns): Similar. + (udivmodsi4): Similar. + (mulhcall): Delete. + (mullcall): Delete. + (divss_call): Delete. + (divus_call): Delete. + (quoss_call): Delete. + (quous_call): Delete. + (insvsi patterns): Adjust. + (addsf3 patterns): Adjust. + (subsf3 patterns): Adjust. + (mulsf3 patterns): Adjust. + (divsf3 patterns): Adjust. + (*fmasf4_fpr): Adjust. + (*fmssf4_fpr): Adjust. + (*nfmasf4_fpr): Adjust. + (*nfmssf4_fpr): Adjust. + (*floatunssidf2_internal): Adjust. + (fix_truncsi2_internal): Adjust. + (fctiwz_): Adjust. + (mulsidi3 patterns): Adjust. + (smulsi3_highpart patterns): Adjust. + (umulsi3_highpart patterns): Adjust. + (fix_trunctfsi2 patterns): Adjust. + (prefetch): Adjust. + * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option. + (mno-powerpc): Delete. + * config/rs6000/sync.md (load_locked): Adjust. + (store_conditional): Adjust. + (atomic_compare_and_swap): Adjust. + (atomic_exchange): Adjust. + (atomic_): Adjust. + (atomic_nand): Adjust. + (atomic_fetch_): Adjust. + (atomic_fetch_nand): Adjust. + (atomic__fetch): Adjust. + (atomic_nand_fetch): Adjust. + * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC. + * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto. + * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto. + * doc/invoke.texi: Adjust documentation. + +2012-08-15 Segher Boessenkool + + * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New. + +2012-08-15 Segher Boessenkool + + * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo. + * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto. + * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto. + * config/rs6000/driver-rs6000.c (asm_names): Ditto. + +2012-08-15 Segher Boessenkool + + PR target/54142 + * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default) + instead of -mcom. + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto. + +2012-08-15 Sandra Loosemore + Maxim Kuvyrkov + Julian Brown + MIPS Technologies, Inc. + + * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu) + (dspalusat): Add insn types. + * config/mips/mips-dsp.md (add3) + (mips_add_s_) + (sub3, mips_sub_s_, mips_addsc) + (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_) + (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w) + (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr) + (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla) + (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr) + (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_) + (mips_shll_s_, mips_shll_s_, mips_shrl_qb) + (mips_shra_ph, mips_shra_r_, mips_bitrev, mips_insv) + (mips_repl_qb, mips_repl_ph) + (mips_cmp_eq_) + (mips_cmp_lt_) + (mips_cmp_le_, mips_cmpgu_eq_qb) + (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_) + (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu. + (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr) + (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph) + (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to + dspmac. + (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to + dspmacsat. + (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp): + Set type to accext. + (mips_shilo, mips_mthlip): Set type to accmod. + * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph) + (mips_adduh_r_qb): Set type to dspalusat. + (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign) + (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb) + (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w) + (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph) + (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph) + (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph) + (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu. + (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph) + (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to + dspmac. Set accum_in attribute. + (mips_subu_s_ph): Set type to dspalusat. + (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat. + Set accum_in attribute. + * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype. + * config/mips/mips.c (dspalu_bypass_table): New. + (mips_dspalu_bypass_p): New. + * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat) + (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations. + (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat) + (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses. + * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac) + (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn + reservations. + (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3) + (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses. + +2012-08-15 Ulrich Weigand + + * config/spu/spu.c: Include "cfgloop.h". + (spu_machine_dependent_reorg): Call loop_optimizer_init and + loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth. + Directly compare loop_father values where appropriate. + * config/spu/t-spu-elf (spu.o): Update dependencies. + +2012-08-15 H.J. Lu + + * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H). + +2012-08-15 Bill Schmidt + + PR tree-optimization/54245 + * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function. + (legal_cast_p): Split out logic to legal_cast_p_1. + (analyze_increments): Avoid introducing multiplies in smaller types. + +2012-08-15 Bill Schmidt + + PR tree-optimization/54240 + * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for + existence of conditional move with given mode. + +2012-08-15 Richard Guenther + + * double-int.h (double_int::from_unsigned): Rename to ... + (double_int::from_uhwi): ... this. + (double_int::from_signed): Rename to ... + (double_int::from_shwi): ... this. + (double_int::to_signed): Rename to ... + (double_int::to_shwi): ... this. + (double_int::to_unsigned): Rename to ... + (double_int::to_uhwi): ... this. + (double_int::fits_unsigned): Rename to ... + (double_int::fits_uhwi): ... this. + (double_int::fits_signed): Rename to ... + (double_int::fits_shwi): ... this. + (double_int::fits): Rename to ... + (double_int::fits_hwi): ... this. + * double-int.c: Likewise. + +2012-08-15 Steven Bosscher + + * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE, + TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS, + TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI, + TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove. + (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING, + TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New. + * timevar.c (timevar_print): Make printing width of timevar names + more flexible, but enforce maximum length. + * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING. + (pass_ipa_inline): Use TV_IPA_INLINING. + * ipa-inline-analysis.c (pass_inline_parameters): Use + TV_INLINE_HEURISTICS. + * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass. + (pass_tree_loop_done): Likewise. + * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH. + * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT. + (loop_optimizer_finalize): Push/pop TV_LOOP_FINI. + +2012-08-15 Ramana Radhakrishnan + + * config/arm/neon.md (neon_vaba VDQIW): Canonicalize operands. + (neon_vabal VDQIW): Likewise. + +2012-08-15 Ramana Radhakrishnan + + PR target/54212 + * config/arm/neon.md (vec_set_internal VD,VQ): Do not + mark as predicable. Adjust asm template. + (vec_setv2di_internal): Likewise. + (vec_extract VD, VQ): Likewise. + (vec_extractv2di): Likewise. + (neon_vget_lane_sext_internal VD, VQ): Likewise. + (neon_vset_lane_sext_internal VD, VQ): Likewise. + (neon_vdup_n VX, V32): Likewise. + (neon_vdup_nv2di): Likewise. + +2012-08-14 Maxim Kuvyrkov + + * config/mips/mips.md (define_attr accum_in): New instruction + attribute. Set it for imadd and fmadd patterns. + * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract + accumulator register. + +2012-08-14 Diego Novillo + + Merge from cxx-conversion branch. Configury. + + * configure.ac (CXX_FOR_BUILD): Define and substitute. + (BUILD_CXXFLAGS): Define. + Remove all handlers of ENABLE_BUILD_WITH_CXX. + Force all build to be with C++. + * Makefile.in (BUILD_CXXFLAGS): Use it. + Remove all handlers of ENABLE_BUILD_WITH_CXX. + * configure: Regenerate. + * config.in: Regenerate. + * doc/install.texi: Remove documentation for --enable-build-with-cxx + and --enable-build-poststage1-with-cxx. + +2012-08-14 Diego Novillo + + Merge from cxx-conversion branch. Re-implement VEC in C++. + + * vec.c (vec_heap_free): Convert into a template function. + (vec_gc_o_reserve_1): Make extern. + (vec_gc_p_reserve): Remove. + (vec_gc_p_reserve_exact): Remove. + (vec_gc_o_reserve): Remove. + (vec_gc_o_reserve_exact): Remove. + (vec_heap_o_reserve_1): Make extern. + (vec_heap_p_reserve): Remove. + (vec_heap_p_reserve_exact): Remove. + (vec_heap_o_reserve): Remove. + (vec_heap_o_reserve_exact): Remove. + (vec_stack_p_reserve): Remove. + (vec_stack_p_reserve_exact): Remove. + * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT, + VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file. + (VEC): Define to vec_t. + (vec_allocation_t): Define. + (struct vec_prefix): Move earlier in the file. + (vec_t): New template. + (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P, + DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O, + DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK, + DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'. + (DEF_VEC_A): Provide template instantiations for + GC/PCH markers that do not traverse the vector. + (vec_stack_p_reserve): Remove. + (vec_stack_p_reserve_exact): Remove. + (vec_stack_p_reserve_exact_1): Remove. + (vec_stack_o_reserve): Remove. + (vec_stack_o_reserve_exact): Remove. + (vec_stack_free): Re-write as a template function. + (vec_reserve): New template function. + (vec_reserve_exact): New template function. + (vec_heap_free): New template function if GATHER_STATISTICS is + defined. Otherwise, macro that expands to free(). + (VEC_length_1): New template function. + (VEC_length): Call it. + (VEC_empty_1): New template function. + (VEC_empty): Call it. + (VEC_address_1): New template function. + (VEC_address): Call it. + (VEC_last_1): New template function. + (VEC_last): Call it. Change return type to T&. + Change all users that used VEC_Os. + (VEC_index_1): New template function. + (VEC_index): Call it. Return a T& instead of a T*. + Update all callers that were using VEC_O before. + (VEC_iterate_1): New template function. + (VEC_iterate): Call it. + (VEC_embedded_size_1): New template function. + (VEC_embedded_size): Call it. + (VEC_embedded_init_1): New template function. + (VEC_embedded_init): Call it. + (VEC_alloc_1): New template function. + (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to + do the allocation. + (VEC_free_1): New template function. + (VEC_free): Call it. + (VEC_copy_1): New template function. + (VEC_copy): Call it. + (VEC_space_1): New template function + (VEC_space): Call it. + (VEC_reserve_1): New template function. + (VEC_reserve): Call it. + (VEC_reserve_exact_1): New template function. + (VEC_reserve_exact): Call it. + (VEC_splice_1): New template function. + (VEC_splice): Call it. + (VEC_safe_splice_1): New template function. + (VEC_safe_splice): Call it. + (VEC_quick_push_1): New template function. Create two overloads, one + accepting T, the other accepting T *. Update all callers + where T and T * are ambiguous. + (VEC_quick_push): Call it. + (VEC_safe_push_1): New template function. Create two overloads, one + accepting T, the other accepting T *. Update all callers + where T and T * are ambiguous. + (VEC_safe_push): Call it. + (VEC_pop_1): New template function. + (VEC_pop): Call it. + (VEC_truncate_1): New template function. + (VEC_truncate): Call it. + (VEC_safe_grow_1): New template function. + (VEC_safe_grow): Call it. + (VEC_safe_grow_cleared_1): New template function. + (VEC_safe_grow_cleared): Call it. + (VEC_replace_1): New template function. + (VEC_replace): Call it. Always accept T instead of T*. + Update all callers that used VEC_Os. + (VEC_quick_insert_1): New template function. + (VEC_quick_insert): Call it. + (VEC_safe_insert_1): New template function. + (VEC_safe_insert): Call it. + (VEC_ordered_remove_1): New template function. + (VEC_ordered_remove): Call it. + (VEC_unordered_remove_1): New template function. + (VEC_unordered_remove): Call it. + (VEC_block_remove_1): New template function. + (VEC_block_remove): Call it. + (VEC_lower_bound_1): New template function. + (VEC_lower_bound): Call it. + (VEC_OP): Remove. + (DEF_VEC_FUNC_P): Remove. + (DEF_VEC_ALLOC_FUNC_P): Remove. + (DEF_VEC_NONALLOC_FUNCS_P): Remove. + (DEF_VEC_FUNC_O): Remove. + (DEF_VEC_ALLOC_FUNC_O): Remove. + (DEF_VEC_NONALLOC_FUNCS_O): Remove. + (DEF_VEC_ALLOC_FUNC_I): Remove. + (DEF_VEC_NONALLOC_FUNCS_I): Remove. + (DEF_VEC_ALLOC_FUNC_P_STACK): Remove. + (DEF_VEC_ALLOC_FUNC_O_STACK): Remove. + (DEF_VEC_ALLOC_FUNC_I_STACK): Remove. + (vec_reserve_exact): New template function. + + * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove. + * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP]. + (typedef_name): Emit vec_t instead of VEC_C1_C2. + (def_vec_alloc): Remove. Update all callers. + * gengtype.c (filter_type_name): New. + (output_mangled_typename): Call it. + (write_func_for_structure): Likewise. + (write_types): Likewise. + (write_root): Likewise. + (write_typed_alloc_def): Likewise. + (note_def_vec): Emit vec_t instead of VEC_TYPE_NAME_base. + (note_def_vec_alloc): Remove. + * gengtype.h (note_def_vec_alloc): Remove. + (DEFVEC_ALLOC): Remove token code. + + * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec + inside the insn traversal loop. + * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK. + * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP. + * reg-stack.c (stack): Rename to STACK_PTR. Update all users. + * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users. + + * config/bfin/bfin.c (hwloop_optimize): Update some calls to + VEC_* for vectors of non-pointers. + * config/c6x/c6x.c (try_rename_operands): Likewise. + (reshuffle_units): Likewise. + * config/mips/mips.c (mips_multi_start): Likewise. + (mips_multi_add): Likewise. + (mips_multi_copy_insn): Likewise. + (mips_multi_set_operand): Likewise. + * hw-doloop.c (discover_loop): Likewise. + (discover_loops): Likewise. + (reorg_loops): Likewise. + +2012-08-14 Diego Novillo + + Merge from cxx-conversion branch. C++ support in gengtype. + + * coretypes.h (gt_pointer_operator): Move from ... + * ggc.h: ... here. + * doc/gty.texi: Document support for C++ templates and + user-provided markers. + * gengtype-lex.l: Update copyright year. + Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I. + * gengtype-parse.c: Update copyright year. + (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I. + (require_template_declaration): New. + (typedef_name): Call it. + (type): Replace IS_UNION with KIND. Replace all users. + (def_vec): Remove. Update all users. + * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT. + (write_state_user_struct_type): New. + (write_state_type): Call it. + (read_state_user_struct_type): New. + (read_state_type): Call it. + * gengtype.c: Update copyright year. + (dump_pair): Move declaration to the top. + (dump_type): Likewise. + (dump_type_list): Likewise. + (dbgprint_count_type_at): Handle TYPE_USER_STRUCT. + (create_user_defined_type): New. + (resolve_typedef): Call it. + (new_structure): Replace argument ISUNION with KIND. + Change users to refer to KIND directly. + Update all callers. + (find_structure): Likewise. + (set_gc_used_type): Handle TYPE_USER_STRUCT. + (create_file): Update HDR to include new copyright year. + (struct walk_type_data): Add field IN_PTR_FIELD. + (output_mangled_typename): Handle TYPE_USER_STRUCT. + (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER. + Clear it afterwards. + Handle TYPE_USER_STRUCT. + (write_types_process_field): Handle TYPE_USER_STRUCT. + (get_type_specifier): Move earlier in the file. + (write_type_decl): New. + (write_marker_function_name): New. + (write_user_func_for_structure_ptr): New. + (write_user_func_for_structure_body): New. + (write_user_marking_functions): New. + (write_func_for_structure): Call write_marker_function_name + and write_type_decl. + Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user + function directly. + Call write_user_marking_functions on TYPE_USER_STRUCTs. + (write_types_local_user_process_field): New. + (write_pch_user_walking_for_structure_body): New. + (write_pch_user_walking_functions): New. + (write_types_local_process_field): Handle TYPE_USER_STRUCT. + (write_local_func_for_structure): Do not call walk_type for + TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly. + Call write_pch_user_walking_functions for TYPE_USER_STRUCTs. + (write_root): Handle TYPE_USER_STRUCT. + (vec_prefix_type): Remove. Update all users. + (note_def_vec): Remove. Update all users. + (dump_typekind): Handle TYPE_USER_STRUCT. + (dump_type): Initialize SEEN_TYPES, if needed. + Handle TYPE_USER_STRUCT. + (dump_everything): Do not initialize SEEN_TYPES. + * gengtype.h: Update copyright year. + (enum typekind): Add TYPE_USER_STRUCT. + (union_or_struct_p): Rename from UNION_OR_STRUCT_P. + Convert into function. + Add an overload taking const_type_p. + Update all callers. + (new_structure): Change second field to type enum typekind. + Update all users. + (find_structure): Likewise. + (note_def_vec): Remove. + (DEFVEC_OP): Remove. + (DEFVEC_I): Remove. + * ggc-page.c (gt_ggc_mx): Add entry points for marking + 'const char *&', 'unsigned char *&' and 'unsigned char&'. + * ggc-zone.c (gt_ggc_mx): Add entry points for marking + 'const char *&' and 'unsigned char *&'. + * stringpool.c (gt_pch_nx): Add entry points for marking + 'const char *&', 'unsigned char *&' and 'unsigned char&'. + Add an entry point for the overload taking arguments 'unsigned char + *', 'gt_pointer_operator' and 'void *'. + * vec.h (struct vec_prefix): Remove GTY marker. + (struct vec_t): Remove GTY((length)) attribute from field 'vec'. + (gt_ggc_mx (vec_t *)): New template function. + (gt_pch_nx (vec_t *)): New template function. + (gt_pch_nx (vec_t *, gt_pointer_operator, void *)): New template + function. + (gt_pch_nx (vec_t *, gt_pointer_operator, void *)): New template + function. + + * basic-block.h (struct edge_def): Mark GTY((user)). + Remove all GTY markers from fields. + (gt_ggc_mx): Declare. + (gt_pch_nx): Declare. + * tree-cfg.c (gt_ggc_mx): New. + (gt_pch_nx): New. + + * gengtype-lex.l (USER_GTY): Add pattern for "user". + * gengtype-parse.c (option): Handle USER_GTY. + (opts_have): New. + (type): Call it. + If the keyword 'user' is used, do not walk the fields + of the structure. + * gengtype.h (USER_GTY): Add. + * doc/gty.texi: Update. + +2012-08-14 Lawrence Crowl + + Merge cxx-conversion branch. Implement C++ hash table. + + * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c. + * hash-table.c: Likewise. + * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h. + (static htab_t same_succ_htab): Change type to hash_table; + move specification of helper functions from create call to declaration. + Change users to invoke member functions. + (same_succ_print_traverse): Make extern ssa_.... Change callers. + Remove void* casting. + (same_succ_hash): Likewise. + (same_succ_equal): Likewise. + (same_succ_delete): Likewise. + * tree-ssa-threadupdate.c: Include hash-table.h. + (struct local_info): Rename to ssa_local_info_t to avoid overloading + the type name local_info with the variable name local_info. + (static htab_t redirection_data): Change type to hash_table. + Move specification of helper functions from create call to declaration. + Change users to invoke member functions. + (redirection_data_hash): Make extern ssa_.... Change callers. + Remove void* casting. + (redirection_data_eq): Likewise. + (fix_duplicate_block_edges): Likewise. + (create_duplicates): Likewise. + (fixup_template_block): Likewise. + (redirect_edges): Likewise. + (lookup_redirection_data): Change types associated with the hash table + from void* to their actual type. Remove unnecessary casts. + * tree-ssa-ccp.c: Include hash-table.h. + (typedef gimple_htab): New. Uses hash_table. Replace specific uses + of htab_t with gimple_htab. Change users to invoke member functions. + Move specification of helper functions from create call to declaration. + * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h. + (hash_ssa_name_by_var): Make extern. Remove void* casting. + (eq_ssa_name_by_var): Likewise. + (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash + to hash_table. Change users to invoke member functions. + Move specification of helper functions from create call to declaration. + * coverage.c: Include hash-table.h instead of hashtab.h. + (static htab_t counts_hash): Change type to hash_table; + move specification of helper functions from create call to declaration. + Change users to invoke member functions. + (htab_counts_entry_hash): Make extern. Rename with coverage_... instead + of htab_... Remove void* casting. + (htab_counts_entry_eq): Likewise. + (htab_counts_entry_del): Likewise. + * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h. + (static htab_t expression_to_id): Change type to hash_table. + Move specification of helper functions from create call to declaration. + Change users to invoke member functions. + (static htab_t phi_translate_table): Likewise. + (pre_expr_eq): Make extern ssa_.... Change callers. + Remove void* casting. + (pre_expr_hash): Likewise. + (expr_pred_trans_hash): Likewise. + (expr_pred_trans_eq): Likewise. + (alloc_expression_id): Change types associated with the hash table + from void* to their actual type. Remove unnecessary casts. + (lookup_expression_id): Likewise. + (phi_trans_lookup): Likewise. + (phi_trans_add): Likewise. + * stringpool.c: Rename uses of libcpp typedef hash_table to + cpp_hash_table. + * Makefile.in: Add hash-table.o to OBJS-libcommon-target. + Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H). + +2012-08-14 Lawrence Crowl + + Merge from cxx-conversion branch. Re-write double_int in C++. + + * hash-table.h + (typedef double_int): Change to struct (POD). + (double_int::make): New overloads for int to double-int conversion. + (double_int::mask): New. + (double_int::max_value): New. + (double_int::min_value): New. + (double_int::operator ++): New. + (double_int::operator --): New. + (double_int::operator *=): New. + (double_int::operator +=): New. + (double_int::operator -=): New. + (double_int::to_signed): New. + (double_int::to_unsigned): New. + (double_int::fits_unsigned): New. + (double_int::fits_signed): New. + (double_int::fits): New. + (double_int::trailing_zeros): New. + (double_int::popcount): New. + (double_int::multiple_of): New. + (double_int::set_bit): New. + (double_int::mul_with_sign): New. + (double_int::operator * (binary)): New. + (double_int::operator + (binary)): New. + (double_int::operator - (binary)): New. + (double_int::operator - (unary)): New. + (double_int::operator ~ (unary)): New. + (double_int::operator & (binary)): New. + (double_int::operator | (binary)): New. + (double_int::operator ^ (binary)): New. + (double_int::and_not): New. + (double_int::lshift): New. + (double_int::rshift): New. + (double_int::alshift): New. + (double_int::arshift): New. + (double_int::llshift): New. + (double_int::lrshift): New. + (double_int::lrotate): New. + (double_int::rrotate): New. + (double_int::div): New. + (double_int::sdiv): New. + (double_int::udiv): New. + (double_int::mod): New. + (double_int::smod): New. + (double_int::umod): New. + (double_int::divmod): New. + (double_int::sdivmod): New. + (double_int::udivmod): New. + (double_int::ext): New. + (double_int::zext): New. + (double_int::sext): New. + (double_int::is_zero): New. + (double_int::is_one): New. + (double_int::is_minus_one): New. + (double_int::is_negative): New. + (double_int::cmp): New. + (double_int::ucmp): New. + (double_int::scmp): New. + (double_int::ult): New. + (double_int::ugt): New. + (double_int::slt): New. + (double_int::sgt): New. + (double_int::max): New. + (double_int::smax): New. + (double_int::umax): New. + (double_int::min): New. + (double_int::smin): New. + (double_int::umin): New. + (double_int::operator ==): New. + (double_int::operator !=): New. + (shwi_to_double_int): Change implementation to use member function. + (double_int_minus_one): Likewise. + (double_int_zero): Likewise. + (double_int_one): Likewise. + (double_int_two): Likewise. + (double_int_ten): Likewise. + (uhwi_to_double_int): Likewise. + (double_int_to_shwi): Likewise. + (double_int_to_uhwi): Likewise. + (double_int_fits_in_uhwi_p): Likewise. + (double_int_fits_in_shwi_p): Likewise. + (double_int_fits_in_hwi_p): Likewise. + (double_int_mul): Likewise. + (double_int_mul_with_sign): Likewise. + (double_int_add): Likewise. + (double_int_sub): Likewise. + (double_int_neg): Likewise. + (double_int_div): Likewise. + (double_int_sdiv): Likewise. + (double_int_udiv): Likewise. + (double_int_mod): Likewise. + (double_int_smod): Likewise. + (double_int_umod): Likewise. + (double_int_divmod): Likewise. + (double_int_sdivmod): Likewise. + (double_int_udivmod): Likewise. + (double_int_multiple_of): Likewise. + (double_int_setbit): Likewise. + (double_int_ctz): Likewise. + (double_int_not): Likewise. + (double_int_ior): Likewise. + (double_int_and): Likewise. + (double_int_and_not): Likewise. + (double_int_xor): Likewise. + (double_int_lshift): Likewise. + (double_int_rshift): Likewise. + (double_int_lrotate): Likewise. + (double_int_rrotate): Likewise. + (double_int_cmp): Likewise. + (double_int_scmp): Likewise. + (double_int_ucmp): Likewise. + (double_int_max): Likewise. + (double_int_smax): Likewise. + (double_int_umax): Likewise. + (double_int_min): Likewise. + (double_int_smin): Likewise. + (double_int_umin): Likewise. + (double_int_ext): Likewise. + (double_int_sext): Likewise. + (double_int_zext): Likewise. + (double_int_mask): Likewise. + (double_int_max_value): Likewise. + (double_int_min_value): Likewise. + (double_int_zero_p): Likewise. + (double_int_one_p): Likewise. + (double_int_minus_one_p): Likewise. + (double_int_equal_p): Likewise. + (double_int_popcount): Likewise. + * hash-table.c + (double_int_mask): Reuse implementation for double_int::mask. + (double_int_max_value): Likewise. + (double_int_min_value): Likewise. + (double_int_ext): Likewise. + (double_int_zext): Likewise. + (double_int_sext): Likewise. + (double_int_mul_with_sign): Likewise. + (double_int_divmod): Likewise. + (double_int_sdivmod): Likewise. + (double_int_udivmod): Likewise. + (double_int_div): Likewise. + (double_int_sdiv): Likewise. + (double_int_udiv): Likewise. + (double_int_mod): Likewise. + (double_int_smod): Likewise. + (double_int_umod): Likewise. + (double_int_multiple_of): Likewise. + (double_int_lshift): Likewise. + (double_int_rshift): Likewise. + (double_int_lrotate): Likewise. + (double_int_rrotate): Likewise. + (double_int_cmp): Likewise. + (double_int_ucmp): Likewise. + (double_int_scmp): Likewise. + (double_int_max): Likewise. + (double_int_smax): Likewise. + (double_int_umax): Likewise. + (double_int_min): Likewise. + (double_int_smin): Likewise. + (double_int_umin): Likewise. + (double_int_min): Likewise. + (double_int_min): Likewise. + (double_int_min): Likewise. + (double_int_min): Likewise. + (double_int_min): Likewise. + (double_int_min): Likewise. + (double_int::alshift): New. + (double_int::arshift): New. + (double_int::llshift): New. + (double_int::lrshift): New. + (double_int::ult): New. + (double_int::ugt): New. + (double_int::slt): New. + (double_int::sgt): New. + (double_int_setbit): Reuse implementation for double_int::set_bit, + which avoids a name conflict with a macro. + (double_int_double_int_ctz): Reuse implementation for + double_int::trailing_zeros. + (double_int_fits_in_shwi_p): Reuse implementation for + double_int::fits_signed. + (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits. + (double_int_mul): Reuse implementation for binary + double_int::operator *. + (double_int_add): Likewise. + (double_int_sub): Likewise. + (double_int_neg): Reuse implementation for unary + double_int::operator -. + (double_int_max_value): Likewise. + * fixed-value.c: Change to use member functions introduced above. + +2012-08-14 Lawrence Crowl + + Merge cxx-conversion branch. Support tree macro calling from gdb. + + * tree.h (tree_check): New. + (TREE_CHECK): Use inline function above instead of __extension__. + (tree_not_check): New. + (TREE_NOT_CHECK): Use inline function above instead of __extension__. + (tree_check2): New. + (TREE_CHECK2): Use inline function above instead of __extension__. + (tree_not_check2): New. + (TREE_NOT_CHECK2): Use inline function above instead of __extension__. + (tree_check3): New. + (TREE_CHECK3): Use inline function above instead of __extension__. + (tree_not_check3): New. + (TREE_NOT_CHECK3): Use inline function above instead of __extension__. + (tree_check4): New. + (TREE_CHECK4): Use inline function above instead of __extension__. + (tree_not_check4): New. + (TREE_NOT_CHECK4): Use inline function above instead of __extension__. + (tree_check5): New. + (TREE_CHECK5): Use inline function above instead of __extension__. + (tree_not_check5): New. + (TREE_NOT_CHECK5): Use inline function above instead of __extension__. + (contains_struct_check): New. + (CONTAINS_STRUCT_CHECK): Use inline function above instead of + __extension__. + (tree_class_check): New. + (TREE_CLASS_CHECK): Use inline function above instead of __extension__. + (tree_range_check): New. + (TREE_RANGE_CHECK): Use inline function above instead of __extension__. + (omp_clause_subcode_check): New. + (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of + __extension__. + (omp_clause_range_check): New. + (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of + __extension__. + (expr_check): New. + (EXPR_CHECK): Use inline function above instead of __extension__. + (non_type_check): New. + (NON_TYPE_CHECK): Use inline function above instead of __extension__. + (tree_vec_elt_check): New. + (TREE_VEC_ELT_CHECK): Use inline function above instead of + __extension__. + (omp_clause_elt_check): New. + (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of + __extension__. + (tree_operand_check): New. + (TREE_OPERAND_CHECK): Use inline function above instead of + __extension__. + (tree_operand_check_code): New. + (TREE_OPERAND_CHECK_CODE): Use inline function above instead of + __extension__. + (TREE_CHAIN): Simplify implementation. + (TREE_TYPE): Simplify implementation. + (tree_operand_length): Move for compilation dependences. + * gdbinit.in: (macro define __FILE__): New. + (macro define __LINE__): New. + (skip "tree.h"): New. + +2012-08-14 Oleg Endo + + PR target/52933 + * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, + *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns. + * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns. + +2012-08-14 Oleg Endo + + PR target/50751 + * config/sh/constraints.md (Sra): New constraint. + * config/sh/predicates.md (simple_mem_operand, + displacement_mem_operand, zero_extend_movu_operand): New predicates. + (zero_extend_operand): Check zero_extend_movu_operand for SH2A. + * config/sh/sh.md (*zero_extendqisi2_disp_mem, + *zero_extendhisi2_disp_mem): Add new insns and two new related + peephole2 patterns. + +2012-08-14 Steven Bosscher + + * graphite-scop-detection.c (create_sese_edges): Compute dominance + info before trying to fix loop structure. + * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries. + * tree-cfgcleanup.c (repair_loop_structures): Likewise. + * cfgloop.c (verify_loop_structure): Verify loop fathers. + + * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert. + (dom_convert_dir_to_idx, compute_dom_fast_query, + get_immediate_dominator, set_immediate_dominator, get_dominated_by, + redirect_immediate_dominators, nearest_common_dominator, + (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator, + iterate_fix_dominators, add_to_dominance_info, + delete_from_dominance_info): Likewise. + +2012-08-14 Richard Guenther + + * cfgexpand.c (expand_used_vars): Use virtual_operand_p. + * gimple-pretty-print.c (dump_phi_nodes): Likewise. + * gimple-streamer-out.c (output_bb): Likewise. + * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise. + (rewrite_reductions_out_of_ssa): Likewise. + (rewrite_commutative_reductions_out_of_ss): Likewise. + * ipa-split.c (verify_non_ssa_vars): Likewise. + (consider_split): Likewise. + (visit_bb): Likewise. + (split_function): Likewise. + * lto-streamer-out.c (output_ssa_names): Likewise. + * sese.c (rename_uses): Likewise. + * tree-cfg.c (replace_uses_by): Likewise. + (gimple_merge_blocks): Likewise. + (gimple_cfg2dot): Likewise. + (verify_gimple_phi): Likewise. + (replace_ssa_name): Likewise. + (move_block_to_fn): Likewise. + * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise. + * tree-if-conv.c (if_convertible_phi_p): Likewise. + (predicate_scalar_phi): Likewise. + * tree-inline.c (update_ssa_across_abnormal_edges): Likewise. + (copy_phis_for_bb): Likewise. + * tree-loop-distribution.c (generate_loops_for_partition): Likewise. + (destroy_loop): Likewise. + * tree-outof-ssa.c (eliminate_useless_phis): Likewise. + (insert_backedge_copies): Likewise. + * tree-parloops.c (transform_to_exit_first_loop): Likewise. + (gather_scalar_reductions): Likewise. + (try_create_reduction_list): Likewise. + * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph): + Likewise. + (scev_const_prop): Likewise. + * tree-ssa-ccp.c (debug_lattice_value): Likewise. + (get_default_value): Likewise. + (ccp_initialize): Likewise. + * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise. + * tree-ssa-copy.c (may_propagate_copy): Likewise. + (init_copy_prop): Likewise. + * tree-ssa-dce.c (propagate_necessity): Likewise. + (remove_dead_phis): Likewise. + (forward_edge_to_pdom): Likewise. + (eliminate_unnecessary_stmts): Likewise. + * tree-ssa-live.c (partition_view_init): Likewise. + (remove_unused_locals): Likewise. + (register_ssa_partition_check): Likewise. + * tree-ssa-loop-im.c (movement_possibility): Likewise. + (move_computations_stmt): Likewise. + * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise. + (record_invariant): Likewise. + (find_interesting_uses_outside): Likewise. + (determine_set_costs): Likewise. + * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise. + (find_uses_to_rename_use): Likewise. + (check_loop_closed_ssa_use): Likewise. + (rewrite_phi_with_iv): Likewise. + (canonicalize_loop_ivs): Likewise. + * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise. + * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise. + * tree-ssa-pre.c (make_values_for_phi): Likewise. + (compute_avail): Likewise. + (eliminate): Likewise. + * tree-ssa-propagate.c (substitute_and_fold): Likewise. + * tree-ssa-reassoc.c (phi_rank): Likewise. + * tree-ssa-strlen.c (strlen_enter_block): Likewise. + * tree-ssa-structalias.c (compute_points_to_sets): Likewise. + (ipa_pta_execute): Likewise. + * tree-ssa-tail-merge.c (same_succ_hash): Likewise. + (release_last_vdef): Likewise. + (same_phi_alternatives_1): Likewise. + (bb_has_non_vop_phi): Likewise. + (vop_phi): Likewise. + * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis): + Likewise. + * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise. + (execute_late_warn_uninitialized): Likewise. + * tree-ssa.c (verify_ssa_name): Likewise. + (verify_phi_args): Likewise. + (verify_ssa): Likewise. + * tree-stdarg.c (execute_optimize_stdarg): Likewise. + * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): + Likewise. + (slpeel_tree_peel_loop_to_edge): Likewise. + (vect_can_advance_ivs_p): Likewise. + (vect_update_ivs_after_vectorizer): Likewise. + * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise. + * tree-vrp.c (remove_range_assertions): Likewise. + * value-prof.c (gimple_divmod_values_to_profile): Likewise. + +2012-08-14 Richard Guenther + + PR tree-optimization/54146 + * tree-ssa-pre.c (do_regular_insertion): Use a VEC + indexed by pred edge index for avail. + (do_partial_partial_insertion): Likewise. + (insert_into_preds_of_block): Adjust. + +2012-08-14 Richard Guenther + + * gimplify.c (create_tmp_from_val): Mark temporary with + DECL_GIMPLE_REG_P here ... + (internal_get_tmp_var): ... instead of here. If we go into + SSA create an SSA name instead of a VAR_DECL. + (gimplify_modify_expr): Do not create SSA names here, assert + we already got them. + (force_gimple_operand_1): Create an SSA name if we go into SSA. + * sese.c (rename_uses): Simplify. + +2012-08-14 Richard Guenther + + * tree-into-ssa.c: Include diagnostic-core.h. + * Makefile.in (tree-into-ssa.o): Adjust. + +2012-08-14 Richard Guenther + + * tree-into-ssa.c (update_ssa): Verify we do not rename + symbols that are already partly in SSA form. + +2012-08-14 Jakub Jelinek + + PR middle-end/53411 + PR rtl-optimization/53495 + * ira.c (ira): Move delete_trivially_dead_insns call before + find_moveable_pseudos call. + +2012-08-13 Steven Bosscher + + * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points + of potentially huge memset overhead. + (do_partial_partial_insertion): Likewise. + * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc. + * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC + for arrays to be filled by pre_and_rev_post_order_compute. Allocate + the right number of slots, not that number plus NUM_FIXED_BLOCKS. + * tree-ssa-reassoc.c (init_reassoc): Likewise. + * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for + array used as stack. + * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for + arrays to be filled by pre_and_rev_post_order_compute. + * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for + array to be filled by dfs_enumerate_from. + (remove_path): Likewise. + (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for + array of loops that is filled on the next lines. + * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for + array of basic blocks to be returned. + (get_loop_body_in_dom_order): Likewise. + (get_loop_body_in_bfs_order): Likewise. + * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack + for all bitmaps used for rewriting into loop-closed SSA form. + (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein + bitmap at the end to release a lot of memory. + (add_exit_phis): Allocate the exits bitmap on the new obstack. + (get_loops_exits): Allocate the exits bitmap on the new obstack. + (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is + seen for the first time. + (find_uses_to_rename): Add "???" for why the whole function must + be re-scanned if changed_bbs is empty. + (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack. + Use XNEWVEC to allocate the use_blocks array. Initialize the new + obstack, and free it at the end. Remove loop over all SSA names. + (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands. + * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of + xcalloc to allocate edge_pred and edge_flag arrays. + +2012-08-13 Uros Bizjak + + * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here. + (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers + for different ABIs. + (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS. + (REG_CLASS_NAMES): Update. + (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members. + * config/i386/i386.c (ix86_conditional_register_usage): Disable + REX registers on 32bit targets. Handle bitmaps from + CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register + set from GENERAL_REGS also for 32bit targets. Do not change call + used register set for TARGET_64BIT_MS_ABI separately. + +2012-08-13 Richard Guenther + + * basic-block.h (struct basic_block): Remove loop_depth + member, move flags and index members next to each other. + * cfgloop.h (bb_loop_depth): New inline function. + * cfghooks.c (split_block): Do not set loop_depth. + (duplicate_block): Likewise. + * cfgloop.c (flow_loop_nodes_find): Likewise. + (flow_loops_find): Likewise. + (add_bb_to_loop): Likewise. + (remove_bb_from_loops): Likewise. + * cfgrtl.c (force_nonfallthru_and_redirect): Likewise. + * gimple-streamer-in.c (input_bb): Do not stream loop_depth. + * gimple-streamer-out.c (output_bb): Likewise. + * bt-load.c: Include cfgloop.h. + (migrate_btr_defs): Use bb_loop_depth. + * cfg.c (dump_bb_info): Likewise. + * final.c (compute_alignments): Likewise. + * ira.c (update_equiv_regs): Likewise. + * tree-ssa-copy.c (init_copy_prop): Likewise. + * tree-ssa-dom.c (loop_depth_of_name): Likewise. + * tree-ssa-forwprop.c: Include cfgloop.h. + (forward_propagate_addr_expr): Use bb_loop_depth. + * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. + * tree-ssa-sink.c (select_best_block): Likewise. + * ipa-inline-analysis.c: Include cfgloop.h. + (estimate_function_body_sizes): Use bb_loop_depth. + * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H). + (ipa-inline-analysis.o): Likewise. + (bt-load.o): Likewise. + +2012-08-13 Ganesh Gopalasubramanian + Jakub Jelinek + + PR driver/54210 + * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW + bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx. + * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID + 0x80000001 %ecx flags. + +2012-08-13 Richard Guenther + + * tree-cfg.c (print_loop): Avoid ICEing for loops marked for + removal and loops with multiple latches. + +2012-08-13 Jakub Jelinek + + PR c/53968 + * tree.c (integer_pow2p): Avoid undefined signed overflows. + * simplify-rtx.c (neg_const_int): Likewise. + * expr.c (fixup_args_size_notes): Likewise. + * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise. + * double-int.c (mul_double_wide_with_sign): Likewise. + (double_int_mask): Likewise. + * tree-ssa-loop-ivopts.c (get_address_cost): Likewise. + +2012-08-13 Richard Guenther + + PR tree-optimization/54200 + * tree-ssa-copyrename.c (rename_ssa_copies): Do not add + PHI results to another partition if not all PHI arguments + have the same partition. + +2012-08-12 Jan Hubicka + + * tree-pass.h (write_summary, write_optimization_summary): Remove + set and vset arguments. + * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments. + (write_node_summary_p): Likewise; use the encoder. + (ipa_reference_write_optimization_summary): Likewise. + * lto-cgraph.c (output_cgraph_opt_summary): Use encoder. + (lto_symtab_encoder_new): Initialize in_partition field. + (lto_symtab_encoder_delete): Destroy in_partition field. + (LCC_NOT_FOUND): Move to lto-streamer.h + (lto_symtab_encoder_deref): Likewise. + (lto_symtab_encoder_in_partition_p, + lto_set_symtab_encoder_in_partition): New functions. + (referenced_from_other_partition_p): Rewrite to use encoder. + (reachable_from_other_partition_p): Likewise. + (referenced_from_this_partition_p): Likewise. + (reachable_from_this_partition_p): Likewise. + (lto_output_node): Likewise. + (lto_output_varpool_node): Likewise. + (output_refs): Likewise. + (compute_ltrans_boundary): Initialize in_partition fileds of + the encoder. + (output_symtab): Likewise. + (input_refs): Match the changes in output_refs. + (output_cgraph_opt_summary_p): Remove set argument. + (output_node_opt_summary): Replace set by encoder. + (output_cgraph_opt_summary): Remove set argument; use + the encoder. + * ipa-pure-const.c (pure_const_write_summary): Remove set and vset + arguments; use the encoder. + * lto-streamer-out.c (lto_output): Remove set and vset argument; use + the encoder. + (produce_symtab): Likewise. + * ipa-inline.h (inline_write_summary): Remove set and vset arguments. + * ipa-inline-analysis.c (inline_write_summary): Likewise. + * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument; + use encoder. + * ipa-prop.h (ipa_prop_write_jump_functions): Likewise. + * passes.c (ipa_write_summaries_2): Remove set and vset arguments. + (ipa_write_summaries_1): Update. + (ipa_write_optimization_summaries_1): Likewise. + (ipa_write_optimization_summaries): Likewise. + * lto-streamer.h (lto_symtab_encoder_t): Add in_partition. + (lto_symtab_encoder_iterator): New type. + (lto_symtab_encoder_deref): Make inline. + (output_symtab, referenced_from_other_partition_p, + reachable_from_other_partition_p, referenced_from_this_partition_p, + reachable_from_this_partition_p): Update. + (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node, + lsei_varpool_node): New inline functions. + (LCC_NOT_FOUND): New macro. + (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition, + lsei_start_in_partition, lsei_next_function_in_partition, + lsei_start_function_in_partition, lsei_next_variable_in_partition, + lsei_start_variable_in_partition): New inline functions. + +2012-08-12 Oleg Endo + + * config/sh/sh.md (prefetch): Simplify expander. Fix condition to + allow SH3. + (*prefetch_media): Move insn below expander. + (*prefetch): Fix condition to allow SH3. + +2012-08-12 Oleg Endo + + PR target/51244 + * config/sh/sh.md: Add splits for inverted compare and branch + opportunities. + (*cmpeqsi_t): New insn. + (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives. + (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in + replacement insn list and not in the preparation statements. + (clrt, sett): Add mt_group attribute. + +2012-08-12 Marc Glisse + + PR middle-end/54193 + * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments. + +2012-08-12 Oleg Endo + + PR target/39423 + * config/sh/predicates.md (mem_index_disp_operand): Check for + arith_reg_operand instead of REG_P. + +2012-08-11 Bernd Schmidt + + * reload1.c (replaced_subreg, gen_reload): Add + SECONDARY_MEMORY_NEEDED ifdefs as necessary. + +2012-08-11 Jan Hubicka + + * lto-section-in.c (lto_section_name): Do not use "symtab" as part of + symtab_node sectoin name; it confuses plugin. + +2012-08-11 Uros Bizjak + + * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID + index in the va_list_vars bitmap by num_ssa_names. + +2012-08-11 Uros Bizjak + + * config/i386/sse.md (xop integer multiply/add insns): Use + register_operand for operand 3 predicate. + (xop_phaddbq): Fix vec_select selectors. + +2012-08-11 Martin Jambor + + PR fortran/48636 + * ipa-inline.h (condition): New fields offset, agg_contents and by_ref. + * ipa-inline-analysis.c (agg_position_info): New type. + (add_condition): New parameter aggpos, also store agg_contents, by_ref + and offset. + (dump_condition): Also dump aggregate conditions. + (evaluate_conditions_for_known_args): Also handle aggregate + conditions. New parameter known_aggs. + (evaluate_properties_for_edge): Gather known aggregate contents. + (inline_node_duplication_hook): Pass NULL known_aggs to + evaluate_conditions_for_known_args. + (unmodified_parm): Split into unmodified_parm and unmodified_parm_1. + (unmodified_parm_or_parm_agg_item): New function. + (set_cond_stmt_execution_predicate): Handle values passed in + aggregates. + (set_switch_stmt_execution_predicate): Likewise. + (will_be_nonconstant_predicate): Likewise. + (estimate_edge_devirt_benefit): Pass new parameter known_aggs to + ipa_get_indirect_edge_target. + (estimate_calls_size_and_time): New parameter known_aggs, pass it + recrsively to itself and to estimate_edge_devirt_benefit. + (estimate_node_size_and_time): New vector known_aggs, pass it o + functions which need it. + (remap_predicate): New parameter offset_map, use it to remap aggregate + conditions. + (remap_edge_summaries): New parameter offset_map, pass it recursively + to itself and to remap_predicate. + (inline_merge_summary): Also create and populate vector offset_map. + (do_estimate_edge_time): New vector of known aggregate contents, + passed to functions which need it. + (inline_read_section): Stream new fields of condition. + (inline_write_summary): Likewise. + * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate + contents. Let all local callers pass NULL for known_aggs. + +2012-08-11 Jan Hubicka + + * lto-cgraph.c (output_cgraph): Rename to ... + (output_symtab): ... this one. Update for LTO_section_symtab_nodes. + (input_cgraph): Rename to ... + (input_symtab): ... this one. Update for LTO_section_symtab_nodes. + * lto-streamer-out.c (create_output_block): Do not set + section_type. + (produce_asm): Likewise. + (lto_output_toplevel_asms): Likewise. + (produce_asm_for_decls): Likewise. + (lto_output): Use output_symtab. + * lto-section-in.c (lto_section_name): Update. + * lto-section-out.c (lto_destroy_simple_output_block): Remove + section_type. + * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool; + rename LTO_section_cgraph to LTO_section_symtab_nodes. + (struct lto_header): Remove section_type. + +2012-08-11 Jan Hubicka + + * cgraph.h (vector types for symtab_node): Add. + * ipa-reference.c (ipa_reference_write_optimization_summary): Update + for new symtab encoder. + (ipa_reference_read_optimization_summary): Likewise. + * lto-cgraph.c (output_varpool): Remove. + (input_cgraph_opt_summary): Take symtab nodes vector as argument. + (LTO_cgraph_tags): Rename to ... + (LTO_symtab_tags): ... this one; add LTO_symtab_variable. + (lto_cgraph_encoder_new): Rename to ... + (lto_symtab_encoder_new): ... this on. + (lto_cgraph_encoder_encode): Rename to ... + (lto_symtab_encoder_encode): ... this one. + (lto_cgraph_encoder_delete): Rename to ... + (lto_symtab_encoder_delete): ... this one. + (lto_cgraph_encoder_deref): Rename to ... + (lto_symtab_encoder_deref): ... this one. + (lto_cgraph_encoder_encode_body_p): Rename to ... + (lto_symtab_encoder_encode_body_p): ... this one. + (lto_varpool_encoder_new, lto_varpool_encoder_delete, + lto_varpool_encoder_encode, lto_varpool_encoder_lookup, + lto_varpool_encoder_deref): Remove. + (lto_varpool_encoder_encode_initializer_p): Rename to ... + (lto_symtab_encoder_encode_initializer_p): ... this one. + (lto_set_varpool_encoder_encode_initializer): Rename to ... + (lto_set_symtab_encoder_encode_initializer): ... this one. + (lto_output_edge): Update. + (lto_output_node): Update. + (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag. + (lto_output_ref): Drop varpool_encoder; update. + (add_node_to): Update. + (add_references): Update. + (output_outgoing_cgraph_edges): Update. + (output_refs): Update. + (compute_ltrans_boundary): Update. + (output_cgraph): Update; output varpools too. + (input_overwrite_node): Update. + (output_varpool): Remove. + (input_node): Update. + (input_ref): Update. + (input_edge): Update. + (input_cgraph_1): Update; input varpool too; unify fixup code. + (input_varpool_1): Remove. + (input_refs): Update. + (input_cgraph): Update. + (output_node_opt_summary): Update. + (input_cgraph_opt_section): Update. + (input_cgraph_opt_summary): Update. + * ipa-pure-const.c (pure_const_write_summary): Update. + (pure_const_read_summary): Update. + * lto-streamer-out.c (lto_write_tree): Update. + (lto_output): Likewise. + (produce_symtab): Update. + (produce_asm_for_decls): Update. + * ipa-inline-analysis.c (inline_read_section): Update. + (inline_write_summary): Update. + * ipa-prop.c (ipa_write_node_info): Update. + (ipa_prop_read_section): Update. + * lto-streamer.h (lto_cgraph_encoder_d): Rename to ... + (lto_symtab_encoder_d): ... this one; add initializer. + (lto_cgraph_encoder_t): Rename to ... + (lto_symtab_encoder_t): ... this one. + (lto_cgraph_encoder_size): Rename to ... + (lto_symtab_encoder_size): ... this one. + (lto_varpool_encoder_d): ... remove. + (lto_varpool_encoder_t): Remove. + (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder + add symtab_node_encoder. + (lto_file_decl_data): Likewise. + (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup, + lto_cgraph_encoder_new, lto_cgraph_encoder_encode, + lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p, + lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref, + lto_varpool_encoder_lookup, lto_varpool_encoder_new, + lto_varpool_encoder_encode, lto_varpool_encoder_delete, + lto_varpool_encoder_encode_initializer_p): Remove. + (lto_symtab_encoder_deref, lto_symtab_encoder_lookup, + lto_symtab_encoder_t, lto_symtab_encoder_encode, + lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p, + lto_symtab_encoder_encode_initializer_p): New. + +2012-08-11 Uros Bizjak + + * config/i386/i386.md (isa): Add fma and fma4. + (enabled): Handle fma and fma4. + * config/i386/sse.md (*fma_fmadd_): Merge *fma4_fmadd_. + (*fma_fmsub_): Merge *fma4_fmsub_. + (*fma_fnmadd_): Merge *fma4_fnmadd_. + (*fma_fnmsub_): Merge *fma4_fnmsub_. + (*fma_fmaddsub_): Merge *fma4_fmaddsub_. + (*fma_fmsubadd_): Merge *fma4_fmsubadd_. + +2012-08-10 Uros Bizjak + + * config/i386/sse.md (*fma_fmadd_, *fma_fmsub_, + *fma_fnmadd_, *fma_fnmsub_, *fma_fmaddsub_, + *fma_fmsubadd_): Move FMA3 insn patterns before FMA4 patterns. + +2012-08-10 Uros Bizjak + + * config/i386/i386.md (simple LEA peephole2s): Add zero-extend + variants of PLUS and MULT simple LEA patterns. Disable PLUS + patterns for TARGET_OPT_AGU. + +2012-08-10 Richard Guenther + + * Makefile.in (OBJS): Remove matrix-reorg.o. + (matrix-reorg.o): Remove dependence rule. + (GTFILES): Remove matrix-reorg.c. + * matrix-reorg.c: Remove. + * passes.c (init_optimization_passes): Do not schedule + pass_ipa_matrix_reorg. + * tree-pass.h (pass_ipa_matrix_reorg): Remove. + * common.opt (fipa-matrix-reorg): Stub out. + * doc/invoke.texi (fipa-matrix-reorg): Remove documentation. + +2012-08-10 Richard Guenther + + PR middle-end/54219 + * fold-const.c (fold_ternary_loc): Do not reverse the mask + when canonicalizing it when folding VEC_PERM_EXPR. + +2012-08-10 Bill Schmidt + + PR middle-end/54211 + * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace): + Use cand_type to determine whether pointer arithmetic will be generated. + +2012-08-10 Bill Schmidt + + * doc/sourcebuild.texi: Document long_neq_int effective target. + +2012-08-10 Richard Guenther + + PR tree-optimization/54109 + * tree-ssa-forwprop.c + (forward_propagate_addr_into_variable_array_index): Remove. + (forward_propagate_addr_expr_1): Adjust. + +2012-08-10 Richard Guenther + + * tree-cfg.c (dump_function_to_file): Make sure to dump + anonymous SSA names when there are no local decls. + +2012-08-10 Steven Bosscher + + * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve. + * tree-into-ssa.c (get_ssa_name_ann): Likewise. + (mark_phi_for_rewrite): Likewise. + (compute_global_livein): Use VEC_reserve outside the innermost + loop and VEC_quick_push instead of VEC_safe_push in that loop. + (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing + of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to + the correct initial size. + +2012-08-10 Richard Guenther + + * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove. + (need_creation): Remove. + (get_representative_for): Use anonymous named SSA names. + (create_expression_by_pieces): Likewise. + (insert_into_preds_of_block): Likewise. + (init_pre): Do not init removed vars. + (fini_pre): Do not free need_creation. + * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous + SSA names. + * tree-ssa-loop-manip.c (create_iv): Likewise. + * value-prof.c (gimple_divmod_fixed_value): Likewise. + (gimple_mod_pow2): Likewise. + (gimple_mod_subtract): Likewise. + (gimple_ic): Likewise. + (gimple_stringop_fixed_value): Likewise. + * tree-ssa-phiopt.c (condstoretemp): Remove. + (tree_ssa_phiopt_worker): Use anonymous named SSA names. + (conditional_replacement): Likewise. + (abs_replacement): Likewise. + (cond_store_replacement): Likewise. + (cond_if_else_store_replacement_1): Likewise. + * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise. + (rewrite_bittest): Likewise. + * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers + and build anonymous SSA names. + (undistribute_ops_list): Adjust. + (eliminate_redundant_comparison): Use anonymous SSA names. + (rewrite_expr_tree_parallel): Likewise. + (get_reassoc_pow_ssa_name): Remove. + (attempt_builtin_powi): Adjust. + (reassociate_bb): Likewise. + * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names. + * tree-switch-conversion.c (emit_case_bit_tests): Likewise. + (build_arrays): Likewise. + * tree-tailcall.c (adjust_return_value_with_ops): Likewise. + (create_tailcall_accumulator): Likewise. + * tree-vect-generic.c (expand_vector_divmod): Likewise. + * tree-profile.c (gcov_type_tmp_var): Remove. + (gimple_init_edge_profiler): Do not initialize it and use anonymous + SSA names. + (gimple_gen_ic_profiler): Likewise. + (tree_profiling): Adjust. + * tree-sra.c (build_ref_for_offset): Use anonymous SSA names. + * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise. + (powi_as_mults_1): Likewise. + (powi_as_mults): Likewise. + (build_and_insert_call): Adjust. + (build_and_insert_binop): Likewise. + (build_and_insert_ref): Likewise. + (build_and_insert_cast): Likewise. + (gimple_expand_builtin_pow): Likewise. + (gimple_expand_builtin_cabs): Likewise. + (execute_optimize_bswap): Use anonymous SSA names. + (convert_mult_to_widen): Likewise. + (convert_plusminus_to_widen): Likewise. + * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. + * tree-ssa-propagate.c (update_call_from_tree): Likewise. + * tree-if-conv.c (ifc_temp_var): Likewise. + * tree-loop-distribution.c (generate_memset_builtin): Likewise. + * tree-parloops.c (take_address_of): Likewise. + * tree-vect-data-refs.c (vect_permute_store_chain): Likewise. + (vect_permute_load_chain): Likewise. + * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise. + * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise. + (vect_handle_widen_op_by_const): Likewise. + (vect_operation_fits_smaller_type): Likewise. + (vect_recog_over_widening_pattern): Likewise. + * tree-vect-stmts.c (vect_init_vector): Likewise. + * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise. + (simplify_float_conversion_using_ranges): Likewise. + +2012-08-10 Michael Zolotukhin + + * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix + target mask of __builtin_ia32_rdseed_di_step builtin. + +2012-08-10 Richard Guenther + + PR tree-optimization/54027 + * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR + and LSHIFT_EXPR handling, force -fwrapv for the multiplication used + to handle LSHIFT_EXPR with a constant. + +2012-08-10 Richard Guenther + + * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE + is recorded as var. + (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME + or its SSA_NAME_VAR. + (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter. + * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous + SSA names by passing a type instead of a variable decl. + (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER. + (copy_ssa_name_fn): Handle anonymous SSA names. + (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER. + * tree-flow-inline.h (make_temp_ssa_name): New inline function. + * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER, + dump SSA names without a name as . + * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are + going to expand a decl. + (gimple_expand_cfg): Assign all SSA names of a partition the + decl we created for its leader. + * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs. + (verify_ssa_name): Handle anonymous SSA names. + (verify_def): Likewise. + * tree-predcom.c (eliminate_temp_copies): Likewise. + * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise. + * tree-ssa-live.c (var_map_base_init): Compute conflicts for + anonymous SSA names with the same type. + (mark_all_vars_used_1): Handle anonymous SSA names. + (verify_live_on_entry): Likewise. + * tree-ssa-coalesce.c (abnormal_corrupt): Remove. + (create_outofssa_var_map): Adjust with respect to conflicts we + compute for anonymous SSA names. Do not restrict abnormal + coalescing. + (coalesce_partitions): Do not restrict abnormal coalescing. + Assert we only ever coalesce variables we computed conflicts for. + * tree-ssa-ter.c (process_replaceable): Do not restrict TER + of anonymous names. + * expr.c (expand_expr_real_1): Handle anonymous SSA names + expanded from IVOPTs by creating a raw REG here. + * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names. + (dump_function_to_file): Dump anonymous SSA names alongside + with their types in the variable list. + (verify_gimple_return): Guard use of SSA_NAME_VAR. + * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol. + (rewrite_into_ssa): Make SSA names anonymous. + * tree-ssa-structalias.c (alias_get_name): Rewrite. + * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous + SSA names. + (warn_uninitialized_phi): Likewise. + * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding + anonymous SSA names to the expander. + (determine_iv_cost): Anonymous SSA names are artificial. + * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): + Handle anonymous SSA names. + * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR + or if NULL, the type of the SSA name. + * tree-inline.c (remap_ssa_name): Handle anonymous SSA names, + remap names as anonymous where appropriate. + (insert_init_stmt): Pass SSA names down to insert_init_debug_bind. + * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust + according to what we create conflicts for in out-of-SSA + coalescing. + * tree-parloops.c (separate_decls_in_region_name): Handle + anonymous SSA names. + (add_field_for_name): Likewise. + * tree.c (get_name): Handle SSA names. + * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for + SSA_NAMEs. + * tree-vect-loop-manip.c (adjust_debug_stmts): Use + virtual_operand_p. + * tree-sra.c (create_access_replacement): Give up generating + a DECL_DEBUG_EXPR for SSA names in the memory reference. + (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR. + * tree-complex.c (get_component_ssa_name): Handle anonymous + SSA names. + (set_component_ssa_name): Likewise. + * tree-ssa-sccvn.c (visit_reference_op_load): Likewise. + * tree-object-size.c (collect_object_sizes_for): Handle + uninitialized SSA names properly. + * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of + SSA_NAME_VAR. + * ipa-split.c (test_nonssa_use): Likewise. + (consider_split): Likewise. + (mark_nonssa_use): Likewise. + +2012-08-09 Jan Hubicka + + PR middle-end/54146 + * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY + parameter; honnor it. + * ipa-inline.c (recursive_inlining): Update call + of inline_call. + (inline_small_functions): Likewise. + (ipa_inline): Likewise. + (inline_always_inline_functions): Likewise. + (early_inline_small_functions): Likewise. + (flatten_function): Do separate update of summary info. + * ipa-inline.h (inline_update_overall_summary): Declare. + (inline_call): Update. + * ipa-inline-analysis.c (inline_merge_summary): Break out + updating code to ... + (inline_update_overall_summary): Likewise. + +2012-08-09 Richard Henderson + + * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET. + + * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before + performing the compare for the restart loop. + +2012-08-09 DJ Delorie + + * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for + SET before extracting SET_SRC. + (rl78_remove_unused_sets): Check for REG before extractnig REGNO. + +2012-08-09 Oleg Endo + + PR target/54089 + * config/sh/sh-protos (shift_insns_rtx): Delete. + (sh_ashlsi_clobbers_t_reg_p): Add. + * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns, + ext_shift_amounts): Merge arrays of ints to array of structs. + Adapt usage of arrays throughout the file. + (shift_insns_rtx): Delete unused function. + (sh_ashlsi_clobbers_t_reg_p): New function. + * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the + final shift sequence will clobber T_REG. + (ashlsi3_n): Split only if the final shift sequence will not + clobber T_REG. + (ashlsi3_n_clobbers_t): New insn_and_split. + +2012-08-09 Steven Bosscher + + * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE + instead of looking at sbitmap n_bits member directly. + * gcse.c (hoist_code): Likewise. + * sched-rgn.c (split_edges): Likewise. + * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping, + update_ssa): Likewise. + +2012-08-09 Uros Bizjak + + * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred + single unit register class for classes that contain registers form + multiple units. + (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS, + INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes. + +2012-08-09 Martin Jambor + + * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to + offset, updated all users. New field agg_contents. + * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR. + (ipa_pass_through_data): New field agg_preserved. + (ipa_ancestor_jf_data): Likewise. + (ipa_member_ptr_cst): Removed. + (ipa_agg_jf_item): New type. + (ipa_agg_jump_function): Likewise. + (ipa_jump_func): New field agg. Removed field member_cst. + (ipa_get_jf_pass_through_agg_preserved): New function. + (ipa_get_jf_ancestor_agg_preserved): Likewise. + (ipa_get_jf_member_ptr_pfn): Removed. + (ipa_find_agg_cst_for_param): Declare. + (ipa_load_from_parm_agg): Likewise. + * ipa-prop.c (param_analysis_info): Fields modified and + visited_statements rename to parm_modified and parm_visited_statements + respectively, added fields ref_modified, ref_visited_statements, + pt_modified and pt_visited_statements. + (ipa_print_node_jump_functions_for_edge): Do not dump const member + functions. Dump agg_preserved flags and aggregate jump functions. + (ipa_set_jf_simple_pass_through): Set also agg_preserved. + (ipa_set_ancestor_jf): Likewise. + (ipa_set_jf_arith_pass_through): Clear agg_preserved. + (ipa_set_jf_member_ptr_cst): Removed. + (is_parm_modified_before_stmt): Logic reversed, renamed to + parm_preserved_before_stmt_p. Cache visited bitmap only for + naked DECL parameters. All callers updated. + (load_from_unmodified_param): Allow NULL parms_ainfo. + (parm_ref_data_preserved_p): New function. + (parm_ref_data_pass_through_p): Likewise. + (ipa_load_from_parm_agg_1): Likewise. + (ipa_load_from_parm_agg): Likewise. + (compute_complex_assign_jump_func): Check if aggregate contents are + preserved. + (compute_complex_ancestor_jump_func): Likewise. + (compute_scalar_jump_functions): Removed. + (type_like_member_ptr_p): Also check field position are known and sane. + (compute_pass_through_member_ptrs): Removed. + (determine_cst_member_ptr): Likewise. + (ipa_known_agg_contents_list): New type. + (determine_known_aggregate_parts): New function. + (compute_cst_member_ptr_arguments): Removed. + (ipa_compute_jump_functions_for_edge): Compute all kinds of jump + functions (scalar, aggregate and member pointer). + (ipa_get_member_ptr_load_param): Incorporate into + ipa_get_stmt_member_ptr_load_param, also pass back an offset. + (ipa_note_param_call): Clear agg_contents. + (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded + from aggregates. In such cases, store offset of the called field. + (ipa_analyze_node): Initialize new fields of param_analysis_info. + (update_jump_functions_after_inlining): Handle aggregate contents. + (ipa_find_agg_cst_for_param): New function. + (try_make_edge_direct_simple_call): Handle called aggregate values. + (update_indirect_edges_after_inlining): Make sure aggregate preserving + jump functions comply with type compatibility requirements. + (ipa_edge_duplication_hook): Copy also aggregate jump functions. + (ipa_write_jump_function): Stream agg_preserved flags and aggregate + jump functions. Do not stream member pointer constant jump functions. + (ipa_read_jump_function): Likewise. + (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info + fields. + (ipa_read_indirect_edge_info): Likewise. + +2012-08-09 Oleg Endo + + PR target/39423 + * config/sh/predicates.md (mem_index_disp_operand): New predicate. + * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new + mem_index_disp_operand predicate. + +2012-08-09 Oleg Endo + + PR target/51244 + * config/sh/sh.md: Add negc extu sequence peephole. + (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate. + (*movrt_negc): New insn. + * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to + gen_movnegt. + * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t, + sh_emit_compare_and_branch, sh_emit_compare_and_set): Use + get_t_reg_rtx. + (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt. + +2012-08-09 Oleg Endo + + PR target/50751 + * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg): + Use arith_reg_operand predicate instead of register_operand. + * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept + only mem, simplify. + +2012-08-09 Uros Bizjak + + * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ... + (alpha_pad_function_end): ... this. Also insert NOP between + sibling call and GP load. + (alpha_reorg): Update call to alpha_pad_function_end. Expand comment. + +2012-08-09 Michael Zolotukhin + + * config/i386/adxintrin.h: Remove guarding __ADX__ check. + * config/i386/x86intrin.h: Likewise. + * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove + OPTION_MASK_ISA_ADX from needed options for + __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64. + (ix86_expand_builtin): Use add3_carry in expanding of + IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64. + +2012-08-09 Andrey Belevantsev + + PR rtl-optimization/53701 + * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment. + Process not only expr's vinsns but all old vinsns from expr's + history of changes. + (update_and_record_unavailable_insns): Clarify comment. + +2012-08-09 Bernd Schmidt + + * reload.c (find_valid_class_1): New static function. + (push_reload): Use it when reloading a SYMBOL_REG as the inner + of a subreg. Keep better track of needed classes for the + secondary memory case. + * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to + GENERAL_REGS. + * reload1.c (replaced_subreg): New static function. + (gen_reload): Use it when deciding whether to use secondary + memory. + +2012-08-09 Richard Guenther + + * tree.h (SSA_VAR_P): Simplify. + * tree-ssanames.c (make_ssa_name_fn): Strengthen assert. + * fold-const.c (fold_comparison): Check for default def first + before checking for PARM_DECL. + * tree-complex.c (get_component_ssa_name): Likewise. + * tree-inline.c (remap_ssa_name): Likewise. + * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise. + * tree-ssa-structalias.c (get_fi_for_callee): Likewise. + (find_what_p_points_to): Likewise. + * tree-ssa-operands.c (add_stmt_operand): Simplify. + +2012-08-08 Joseph Myers + + * simplify-rtx.c (simplify_binary_operation_1): Do not simplify + IOR to a constant if one operand has side effects. + +2012-08-08 Ulrich Weigand + + * builtins.c (expand_builtin_atomic_compare_exchange): Pass old + value operand as MEM to expand_atomic_compare_and_swap. + + * config/s390/s390.md ("atomic_compare_and_swap"): Accept + nonimmediate_operand for old value; generate load and store if + needed. + * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand + as vtarget. + +2012-08-08 Steven Bosscher + + PR middle-end/54146 + * gimpify.c (gimplify_body): Only verify_gimple_in_seq with + checking enabled. + * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is + a gimple_reg if checking is enabled. + (find_uses_to_rename_stmt): Only look at non-virtual USE operands. + * tree-into-ssa (compute_global_livein): Change the worklist + type from an array to a VEC. + +2012-08-08 Richard Guenther + + * tree-ssa-operands.h (virtual_operand_p): Declare. + * tree-ssa-operands.c (virtual_operand_p): New predicate. + * gimple.c (is_gimple_reg): Use virtual_operand_p. + * tree-into-ssa.c (prepare_block_for_update): Likewise. + * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise. + +2012-08-08 Richard Guenther + + * tree-call-cdce.c (check_pow): Simplify. + (gen_conditions_for_pow_int_base): Likewise. + * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle + virtual operands here. + * tree-ssa-operands.c (get_name_decl): Remove unused function. + * gimplify.c (gimple_regimplify_operands): Remove dead code. + * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access. + * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name. + * value-prof.c (gimple_ic): Use duplicate_ssa_name. + (gimple_stringop_fixed_value): Likewise. + * tree.c (needs_to_live_in_memory): Remove SSA name handling. + * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs + in the bitmap alongside shifted DECL_UIDs. + (va_list_counter_struct_op): Likewise. + (va_list_ptr_read): Likewise. + (va_list_ptr_write): Likewise. + (check_va_list_escapes): Likewise. + (check_all_va_list_escapes): Likewise. + (execute_optimize_stdarg): Likewise. + * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name. + +2012-08-08 Richard Sandiford + H.J. Lu + + PR rtl-optimization/54157 + * combine.c (gen_lowpart_for_combine): Don't return identity + for CONST or symbolic reference. + +2012-08-08 Michael Zolotukhin + + * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New. + (OPTION_MASK_ISA_ADX_UNSET): Likewise. + (ix86_handle_option): Handle madx option. + * config.gcc (i[34567]86-*-*): Add adxintrin.h. + (x86_64-*-*): Likewise. + * config/i386/adxintrin.h: New header. + * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX + support. + * config/i386/i386-builtin-types.def + (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type. + (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise. + * config/i386/i386-c.c: Define __ADX__ if needed. + * config/i386/i386.c (ix86_target_string): Define -madx option. + (PTA_ADX): New. + (ix86_option_override_internal): Handle new option. + (ix86_valid_target_attribute_inner_p): Add OPT_madx. + (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32, + IX86_BUILTIN_ADDCARRYX64. + (ix86_init_mmx_sse_builtins): Define corresponding built-ins. + (ix86_expand_builtin): Handle these built-ins. + (ix86_expand_args_builtin): Handle new function types. + * config/i386/i386.h (TARGET_ADX): New. + * config/i386/i386.md (adcx3): New define_insn. + * config/i386/i386.opt (madx): New. + * config/i386/x86intrin.h: Include adxintrin.h. + +2012-08-08 Nick Clifton + + * config/rl78/rl78.c: Include tree-pass.h. + +2012-08-08 Steven Bosscher + + PR middle-end/54146 + * ira.c (init_live_subregs): Take live_subregs_used as a bitmap. + (build_insn_chain): Make live_subregs_used a bitmap. + Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs. + Use sbitmap_free to free the live_subreg sbitmaps. + + PR middle-end/54146 + * ifcvt.c: Include pointer-set.h. + (cond_move_process_if_block): Change type of then_regs and + else_regs from alloca'd array to pointer_sets. + (check_cond_move_block): Update for this change. + (cond_move_convert_if_block): Likewise. + * Makefile.in: Fix dependencies for ifcvt.o. + +2012-08-07 Bill Schmidt + + * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct. + (incr_vec): New static var. + (incr_vec_len): Likewise. + (address_arithmetic_p): Likewise. + (stmt_cost): Remove dead assignment. + (dump_incr_vec): New function. + (cand_abs_increment): Likewise. + (lazy_create_slsr_reg): Likewise. + (incr_vec_index): Likewise. + (count_candidates): Likewise. + (record_increment): Likewise. + (record_increments): Likewise. + (unreplaced_cand_in_tree): Likewise. + (optimize_cands_for_speed_p): Likewise. + (lowest_cost_path): Likewise. + (total_savings): Likewise. + (analyze_increments): Likewise. + (ncd_for_two_cands): Likewise. + (nearest_common_dominator_for_cands): Likewise. + (profitable_increment_p): Likewise. + (insert_initializers): Likewise. + (introduce_cast_before_cand): Likewise. + (replace_rhs_if_not_dup): Likewise. + (replace_one_candidate): Likewise. + (replace_profitable_candidates): Likewise. + (analyze_candidates_and_replace): Handle candidates with SSA-name + strides. + +2012-08-07 Steven Bosscher + + * cfg.c (debug_bb): Do not set TDF_BLOCKS. + * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS. + * pretty-print.c (pp_base_flush): Do not add a newline, and do not + clear pp_needs_newline. + * pretty-print.h (pp_newline_and_flush): New macro with the behavior + of pp_base_flush before the above change. + * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush + instead of pp_flush. + * diagnostic.c (diagnostic_finish): Likewise. + (diagnostic_report_diagnostic): Likewise. + (verbatim): Likewise. + (error_recursion): Likewise. + * tree-pretty-print.c (print_generic_stmt): Likewise. + (print_generic_stmt_indented): LIkewise. + * gimple-pretty-print.c (print_gimple_stmt): Likewise. + (print_gimple_seq): Likewise. + (gimple_dump_bb_buff): Likewise. + +2012-08-07 Uros Bizjak + + PR debug/54177 + * var-tracking.c (var_lowpart): Exit early for matched modes. + +2012-08-07 Richard Henderson + + * config/s390/s390.c (s390_emit_compare_and_swap): Update for + atomic_compare_and_swapsi_internal name change. + (s390_expand_insv): Try RISBG last, not requiring operands in + registers but forcing them there. Try a limited form of ICM. + (s390_two_part_insv): New. + (s390_expand_cs_hqi): Use it. Update for atomic optabs. + * config/s390/s390.md (UNSPEC_MOVA): New. + (TDSI): Remove mode iterator. + (DGPR, DINT, TDI): New mode iterators. + (td): New mode attribute. + (mem_signal_fence): New. + (mem_thread_fence): Rename from memory_barrier; update for model arg. + (mem_thread_fence_1): Rename from *memory_barrier. + (atomic_load, atomic_store): New expanders. + (atomic_loaddi_1, atomic_loadti_1): New. + (atomic_storedi_1, atomic_storeti_1): New. + (sync_compare_and_swap, sync_compare_and_swap): Remove. + (atomic_compare_and_swap, atomic_compare_and_swap): New. + (atomic_compare_and_swap_internal): New. + (*sync_compare_and_swap, *sync_compare_and_swap): Remove. + (*atomic_compare_and_swap_1): New. + (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New. + (sync_, sync_old_): Remove. + (atomic_fetch_): New. + (atomic_fetch__iaf): New. + (sync_, sync_old_): Remove. + (sync_new_): Remove. + (atomic_, atomic_fetch_): New. + (atomic__fetch): New. + (sync_lock_test_and_set): Remove. + (atomic_exchange): New. + +2012-08-07 Paul Brook + Sandra Loosemore + + * except.c (switch_to_exception_section): Place tables for + DECL_ONE_ONLY functions in comdat groups. + +2012-08-07 Richard Guenther + + * tree-flow.h (copy_ssa_name_fn): New function. + (duplicate_ssa_name_fn): Likewise. + * tree-flow-inline.h (copy_ssa_name): New function. + (duplicate_ssa_name): Likewise. + * tree-ssanames.c (copy_ssa_name_fn): New function. + (duplicate_ssa_name): Rename to ... + (duplicate_ssa_name_fn): ... this and adjust. + * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name. + * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): + Likewise. + (slpeel_update_phi_nodes_for_guard2): Likewise. + (slpeel_tree_peel_loop_to_edge): Likewise. + (vect_loop_versioning): Likewise. + * tree-parloops.c (transform_to_exit_first_loop): Likewise. + (create_parallel_loop): Likewise. + * ipa-split.c (split_function): Likewise. + * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise. + (vect_create_epilog_for_reduction): Likewise. + * tree-vect-data-refs.c (bump_vector_ptr): Likewise. + (vect_setup_realignment): Likewise. + * tree-vect-stmts.c (vectorizable_load): Likewise. + * tree-switch-conversion.c (build_one_array): Likewise. + (gen_def_assigns): Likewise. + * tree-cfg.c (gimple_make_forwarder_block): Likewise. + * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call + create_zero_dim_array with the SSA name. + (rewrite_phi_out_of_ssa): Likewise. + (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name. + +2012-08-07 Richard Guenther + + * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF + bit of the old name when we clear the slot. + * tree-ssa-live.c (remove_unused_locals): Release any default + def associated with an unused var. + * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true. + +2012-08-07 Richard Guenther + + * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables + we rewrite into SSA form. + (rewrite_enter_block): Adjust. + * gimple-iterator.c (gsi_replace): Also allow replacement with + a stmt without a lhs. + * tree-ssa-live.c (remove_unused_locals): Remove code handling + clobbers of SSA names. + * tree-nested.c (convert_local_reference_stmt): Remove clobbers + for variables we access through the local chain. + * tree-cfg.c (verify_gimple_assign_single): Verify clobbers + clobber full decls only. + +2012-08-07 Richard Guenther + + * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT. + * tree-phinodes.c (make_phi_node): Allow a NULL var. + * tree-into-ssa.c (insert_phi_nodes_for): Simplify. + * tree-complex.c (update_phi_components): Likewise. + * tree-ssa-loop-manip.c (create_iv): Likewise. + (add_exit_phis_edge): Likewise. + (split_loop_exit_edge): Likewise. + (tree_transform_and_unroll_loop): Likewise. + * value-prof.c (gimple_ic): Likewise. + (gimple_stringop_fixed_value): Likewise. + * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise. + * omp-low.c (expand_parallel_call): Likewise. + (expand_omp_for_static_chunk): Likewise. + (expand_omp_atomic_pipeline): Likewise. + * tree-parloops.c (create_phi_for_local_result): Likewise. + (transform_to_exit_first_loop): Likewise. + * tree-vect-data-refs.c (vect_setup_realignment): Likewise. + * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise. + * tree-predcom.c (initialize_root_vars): Likewise. + (initialize_root_vars_lm): Likewise. + * sese.c (sese_add_exit_phis_edge): Likewise. + * gimple-streamer-in.c (input_phi): Likewise. + * tree-inline.c (copy_phis_for_bb): Likewise. + * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. + * tree-cfg.c (gimple_make_forwarder_block): Likewise. + (gimple_duplicate_bb): Likewise. + +2012-08-07 Nick Clifton + + * config/mn10300/mn10300.c (mn10300_expand_prologue): Report + stack usage if requested. + +2012-08-06 Cary Coutant + + * cgraphunit.c (assemble_thunk): Add source line info. + * final.c (final): Check for non-null cfg pointer. + +2012-08-06 Sandra Loosemore + Maxim Kuvyrkov + Julian Brown + + * config/mips/24k.md (r24k_unknown_store): Delete special handling + for cprestore. + (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo) + (r24k_int_cop, r24k_int_multi) + (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer) + (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p + instead of store_data_bypass_p. + * config/mips/74k.md (r74k_int_store): Delete special handling for + cprestore. + (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove): + Use mips_store_data_bypass_p instead of store_data_bypass_p. + +2012-08-06 Marc Glisse + + PR tree-optimization/51938 + PR tree-optimization/52005 + * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for + inverted conditions. + (ifcombine_iforif): Remove, merge code into ifcombine_ifandif. + (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b + and !a||b patterns. + +2012-08-06 Olivier Hainque + + * tree-emutls.c (new_emutls_decl): When a var_section is requested by + the target, attach the new decl to that, not to the template section. + +2012-08-06 Tom de Vries + + * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in + unsigned type. + +2012-08-05 Venkataramanan Kumar + + * doc/invoke.texi: Document AMD btver2. + * doc/extend.texi: Document AMD btver1 and btver2. + +2012-08-04 Sandra Loosemore + Richard Sandiford + + * config/mips/mips.c (mips_option_override): Check -fpic + for compatibility with -mabicalls and ABI. + +2012-08-04 Catherine Moore + Sandra Loosemore + + * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation. + (ir_xlr_alu): Remove clz. + * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY. + +2012-08-04 Richard Earnshaw + + * arm.c (arm_gen_constant): Use SImode when preparing operands for + gen_extzv_t2. + +2012-08-04 Uros Bizjak + + * config/i386/i386.h (QI_REGNO_P): New define. + (ANY_QI_REGNO_P): Ditto. + (GENERAL_REGNO_P): Use IN_RANGE macro. + (QI_REG_P): Use QI_REGNO_P. + (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P. + (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P. + * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto. + (x86_extended_QIreg_mentioned_p): Ditto. Also check if + register is a general register. + +2012-08-03 Uros Bizjak + + * config/i386/sync.md (*atomic_fetch_add_cmp): Use + incdec_operand predicate to return INC or DEC insn mnemonic. + Add %K operand modifier. + (atomic_add): Use incdec_operand predicate to + return INC or DEC insn mnemonic. + (atomic_dec): Ditto. + +2012-08-03 Michael Matz + + PR tree-optimization/54146 + * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into. + (add_scope_conflicts): Iterate in RPO order. + (add_stack_protection_conflicts): Iterate over the other triangle. + (fini_vars_expansion): Clear stack_vars_sorted. + +2012-08-03 Marc Glisse + + PR tree-optimization/30318 + * double-int.c (mul_double_wide_with_sign): New function. + (mul_double_with_sign): Call the new function. + * double-int.h (mul_double_wide_with_sign): Declare the new function. + * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]: + Handle integer types that wrap on overflow. + (quad_int_cmp): New helper function. + (quad_int_pair_sort): Likewise. + +2012-08-03 Richard Guenther + + * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query + is_gimple_reg on the SSA name, not its variable. + (vect_update_ivs_after_vectorizer): Likewise. + * tree-ssa-copyrename.c (rename_ssa_copies): Likewise. + * tree-if-conv.c (if_convertible_phi_p): Likewise. + (predicate_scalar_phi): Likewise. + * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise. + (vect_analyze_scalar_cycles_1): Likewise. + * tree-ssa-live.c (register_ssa_partition_check): Likewise. + * tree-outof-ssa.c (eliminate_useless_phis): Likewise. + * tree-ssa-reassoc.c (phi_rank): Likewise. + * tree-parloops.c (separate_decls_in_region_name): Use + replace_ssa_name_symbol. + * tree-predcom.c (base_names_in_chain_on): Likewise. + * matrix-reorg.c (update_type_size): Query the type of the SSA name, + not its variable. + * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise. + (create_mul_imm_cand): Likewise. + (create_add_ssa_cand): Likewise. + (create_add_imm_cand): Likewise. + (slsr_process_add): Likewise. + * tree-inline.c (remap_ssa_name): Do not set the type of the + new SSA_NAME. + * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert. + Check for default def first. + +2012-08-04 Steven Bosscher + + * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns. + + * sched-vis.c (print_pattern): Handle SEQUENCE also. + +2012-08-02 Richard Henderson + + Revert: + PR 34548 + * function.h (struct rtl_data): Add max_dynamic_stack_alignment. + * cfgexpand.c (gimple_expand_cfg): Initialise it. + * explow.c (allocate_dynamic_stack_space): Set it. Simplify + alignment requirements given the known alignment of dynamic_offset. + * function.c (instantiate_virtual_regs): Align dtnamic_offset. + +2012-08-02 Kenneth Zadeck + + * cfgexpand.c (expand_debug_locations): Encapsulate test for + CONST_DOUBLE in macro. + * combine.c (try_combine, gen_lowpart_for_combine): Ditto. + * cprop.c (implicit_set_cond_p): Ditto. + * cselib.c (rtx_equal_for_cselib_1): Ditto. + * expmed.c (expand_mult): Ditto. + * expr.c (convert_modes): Ditto. + * ira-costs.c (record_reg_classes): Ditto. + * ira-lives.c (single_reg_class): Ditto. + * optabs.c (expand_copysign_absneg, expand_copysign): Ditto. + * print-rtl.c (print_rtx): Ditto. + * recog.c (simplify_while_replacing, const_double_operand) + (asm_operand_ok, constrain_operands): Ditto. + * reg-stack.c (subst_stack_regs_pat): Ditto. + * reload.c (find_reloads, find_equiv_reg): Ditto. + * rtlanal.c (replace_rtx): Remove test. + * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate + test for CONST_DOUBLE in macro. + * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference) + (simplify_unary_operation_1, simplify_const_unary_operation) + (simplify_binary_operation_1, simplify_const_binary_operation) + (simplify_relational_operation_1) + (simplify_const_relational_operations) + (implify_subreg): Ditto. + * varasm.c (output_constant_pool_2): Ditto. + * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros. + * rtl.def (CONST_DOUBLE): Updated comments. + +2012-08-02 Richard Sandiford + + PR target/51931 + * config/mips/mips-protos.h (mips_strip_unspec_address): Declare. + * config/mips/mips.c (mips_strip_unspec_address): Make extern. + (mips16_rewrite_pool_constant): Make a copy of the pool constant + before adding to a PC-relative table. + (mips16_lay_out_constants): Add a SPLIT_P parameter. + (mips16_load_branch_target, mips16_split_long_branches): New functions. + (mips_reorg): Update call to mips16_lay_out_constants. + Call mips16_split_long_branches. + * config/mips/predicates.md (pc_or_label_operand): Delete. + * config/mips/mips.md (length): Add a calculation for MIPS16 branches. + Move the extended_mips16 handling further down. + (*branch_equality_mips16): Replace use pc_or_label_operand + with explicit label_ref and pc. Follow the usual operand numbering. + (*branch_equality_mips16_inverted): New pattern. + (*jump_mips16): Add length attribute. + (indirect_jump_and_restore_): New pattern. + (consttable_int): Call mips_strip_unspec_address on the operand. + +2012-08-02 Richard Sandiford + + * recog.c (split_insn): Copy the original SET_SRC before using + it as a note. + +2012-08-02 Richard Sandiford + + * reorg.c (dbr_schedule): Delete REG_BR_PRED loop. + +2012-08-02 Marc Glisse + + PR tree-optimization/53805 + * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and + UNORDERED_EXPR even for trapping floating point. + +2012-08-02 H.J. Lu + + PR middle-end/53321 + PR middle-end/53865 + * ipa-inline-analysis.c (inline_free_summary): Return if + inline_edge_summary_vec is NULL. + * ipa-split.c (execute_split_functions): Check if a function + is inlinable only if inline_edge_summary_vec != NULL. + * ipa.c (symtab_remove_unreachable_nodes): Restore + cgraph_propagate_frequency call when something was changed. + (free_inline_summary): New function. + (pass_ipa_free_inline_summary): New pass. + * passes.c (init_optimization_passes): Add + pass_ipa_free_inline_summary before pass_ipa_tree_profile. + * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New. + * tree-pass.h (pass_ipa_free_inline_summary): New. + +2012-08-02 Richard Earnshaw + + * arm.c (arm_gen_constant): Use UBFX for some AND operations when + available. + +2012-08-02 Richard Guenther + + * tree-into-ssa.c (struct common_info_d): New struct. + (struct var_info_d, struct ssa_name_info): Use it. + (get_ssa_name_ann): Adjust. + (get_phi_state, set_phi_state): Remove. + (get_common_info): New function. + (get_current_def, set_current_def): Adjust. + (get_def_blocks_for): Take a common info as param. + (set_def_block): Call get_common_info once. + (set_livein_block): Likewise. + (find_def_blocks_for): Adjust. + (insert_phi_nodes): Likewise. + (register_new_def): Call get_common_info once. + (get_reaching_def): Likewise. + (rewrite_debug_stmt_uses): Likewise. + (rewrite_leave_block): Likewise. + (dump_currdefs): Likewise. + (debug_var_infos_r): Adjust. + (register_new_update_single): Call get_common_info once. + (maybe_replace_use_in_debug_stmt): Likewise. + (rewrite_update_leave_block): Likewise. + (mark_use_interesting): Adjust. + (create_new_def_for): Likewise. + (update_ssa): Likewise. + +2012-08-02 Michael Matz + + * tree-ssa-live.c (set_is_used): Return a bool. + (mark_all_vars_used): Don't take data argument. + (mark_all_vars_used_1): Adjust calls to above, merge handling + of local and global vars. + (remove_unused_scope_block_p): Don't take global_unused_vars, + merge handling of local and global vars. + (remove_unused_locals): Don't allocate/fill/pass global_unused_vars, + use is_used_p for local and global vars. + +2012-08-02 Richard Guenther + + * tree-flow.h (make_rename_temp): Remove. + * tree-dfa.c (make_rename_temp): Likewise. + * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg + instead of make_rename_temp. + * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk, + expand_omp_atomic_pipeline): Likewise. + * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load, + build_tm_store, expand_call_tm, expand_transaction, + ipa_tm_insert_gettmclone_call): Likewise. + * tree-complex.c (expand_complex_div_wide): Likewise. + * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for): + Likewise. + * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm): + Likewise. + * tree-ssa-math-opts.c (insert_reciprocals): Likewise. + * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2, + gimple_mod_subtract): Likewise. + +2012-08-02 Richard Guenther + + * tree-flow.h (set_default_def): Rename to ... + (set_ssa_default_def): ... this. Take a struct function argument. + (gimple_default_def): Rename to ... + (ssa_default_def): ... this. + (get_or_create_ssa_default_def): New function. + * tree-dfa.c: Likewise. + (dump_variable): Adjust. + * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check + for used parameters. + * ipa-split.c (consider_split): Adjust, avoid repeated default-def + lookups. + (split_function): Likewise. + * lto-streamer-in.c (input_ssa_names): Adjust. + * omp-low.c (expand_omp_taskreg): Likewise. + * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun. + * tree-complex.c (init_parameter_lattice_values): Adjust. + (get_component_ssa_name): Likewise. + (update_parameter_components): Likewise. + * tree-inline.c (remap_ssa_name): Likewise. + (setup_one_parameter): Likewise. + (initialize_inlined_parameters): Likewise. + (declare_return_variable): Likewise. + (expand_call_inline): Likewise. + (tree_function_versioning): Likewise. + * tree-into-ssa.c (get_default_def_for): Remove. + (get_reaching_def): Use get_or_create_ssa_default_def instead. + * tree-predcom.c (replace_ref_with): Adjust. + * tree-sra.c (get_repl_default_def_ssa_name): Likewise. + (is_unused_scalar_param): Likewise. + (ptr_parm_has_direct_uses): Likewise. + (sra_ipa_reset_debug_stmts): Likewise. + * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust. + * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise. + * tree-ssa-live.c (verify_live_on_entry): Likewise. + * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise, + avoid repeated default def lookups. + * tree-ssa-sccvn.c (run_scc_vn): Likewise. + * tree-tailcall.c (arg_needs_copy_p): Adjust. + (tree_optimize_tail_calls_1): Likewise. + +2012-08-02 Richard Guenther + + PR tree-optimization/50672 + Revert + 2012-08-01 Richard Guenther + + * tree-ssa-tail-merge.c (release_last_vdef): Remove. + (replace_block_by): Adjust. + +2012-08-02 Richard Guenther + + * tree-dfa.c (referenced_var_lookup): Remove. + (find_referenced_vars): Remove. + (pass_referenced_vars): Likewise. + (make_rename_temp): Do not add referenced vars. + (dump_referenced_vars): Remove. + (debug_referenced_vars): Likewise. + (dump_dfa_stats): Do not dump referenced var stats. + (find_vars_r): Remove. + (find_referenced_vars_in): Likewise. + (referenced_var_check_and_insert): Likewise. + (add_referenced_var_1): Likewise. + (remove_referenced_var): Likewise. + * tree-flow.h (referenced_var_lookup): Likewise. + (struct gimple_df): Remove referenced_vars member. + (typedef referenced_var_iterator): Remove. + (FOR_EACH_REFERENCED_VAR): Likewise. + (num_referenced_vars): Likewise. + (debug_referenced_vars, dump_referenced_vars): Likewise. + (add_referenced_var_1, add_referenced_var): Likewise. + (remove_referenced_var): Likewise. + (find_referenced_vars_in): Likewise. + * tree-flow-inline.h (gimple_referenced_vars): Remove. + (first_referenced_var): Likewise. + (end_referenced_vars_p): Likewise. + (next_referenced_var): Likewise. + * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert. + * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs + unconditionally. + * tree-into-ssa.c (dump_decl_set): Likewise. + (pass_build_ssa): Do not require PROP_referenced_vars. + * tree-ssa.c (target_for_debug_bind): Virtual operands are + not suitable, but all register type vars are. + (init_tree_ssa): Do not allocate referenced vars. + (delete_tree_ssa): Do not free referenced vars. + * cgraphunit.c (init_lowered_empty_function): Do not set + PROP_referenced_vars. + (assemble_thunk): Do not add referenced vars. + * gimple-fold.c (canonicalize_constructor_val): Likewise. + (gimplify_and_update_call_from_tree): Likewise. + * gimple-streamer-in.c (input_bb): Likewise. + * passes.c (init_optimization_passes): Do not run + pass_referenced_vars. + (dump_properties): Do not dump PROP_referenced_vars. + * tree-inline.c (remap_decl): Do not add referenced vars. + (remap_gimple_op_r): Likewise. + (copy_tree_body_r): Likewise. + (copy_bb): Likewise. + (setup_one_parameter): Likewise. + (declare_return_variable): Likewise. + (copy_decl_for_dup_finish): Likewise. + (copy_arguments_for_versioning): Likewise. + (tree_function_versioning): Likewise. + * tree-pass.h (PROP_referenced_vars): Remove. + (pass_referenced_vars): Likewise. + * tree-profile.c (gimple_gen_edge_profiler): Do not add + referenced vars. + (gimple_gen_interval_profiler): Likewise. + (gimple_gen_pow2_profiler): Likewise. + (gimple_gen_one_value_profiler): Likewise. + (gimple_gen_ic_profiler): Likewise. + (gimple_gen_average_profiler): Likewise. + (gimple_gen_ior_profiler): Likewise. + * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars. + * tree-cfg.c (replace_ssa_name): Do not add referenced vars. + (move_stmt_op): Likewise. + * tree-ssa-operands.c (create_vop_var): Likewise. + * gimple-low.c (record_vars_into): Likewise. + * gimplify.c (gimple_regimplify_operands): Likewise. + (force_gimple_operand_1): Likewise. + * omp-low.c (expand_omp_for_generic): Likewise. + (expand_omp_for_static_chunk): Likewise. + (expand_omp_atomic_pipeline): Likewise. + * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise. + (translate_clast_assignment): Likewise. + * graphite-sese-to-poly.c (create_zero_dim_array): Likewise. + (handle_scalar_deps_crossing_scop_limits): Likewise. + * ipa-prop.c (ipa_modify_formal_parameters): Likewise. + * ipa-split.c (split_function): Likewise. + * matrix-reorg.c (transform_access_sites): Likewise. + * trans-mem.c (tm_log_add): Likewise. + (ipa_tm_insert_gettmclone_call): Likewise. + * tree-complex.c (create_one_component_var): Likewise. + * tree-if-conv.c (ifc_temp_var): Likewise. + * tree-parloops.c (take_address_of): Likewise. + (initialize_reductions): Likewise. + (separate_decls_in_region_name): Likewise. + (create_call_for_reduction_1): Likewise. + (separate_decls_in_region): Likewise. + * tree-predcom.c (predcom_tmp_var): Likewise. + (reassociate_to_the_same_stmt): Likewise. + * tree-sra.c (build_ref_for_offset): Likewise. + (create_access_replacement): Likewise. + (get_replaced_param_substitute): Likewise. + (sra_ipa_reset_debug_stmts): Likewise. + * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise. + (rewrite_bittest): Likewise. + * tree-ssa-loop-ivopts.c (create_new_iv): Likewise. + * tree-ssa-loop-manip.c (create_iv): Likewise. + (tree_transform_and_unroll_loop): Likewise. + * tree-ssa-math-opts.c (powi_as_mults): Likewise. + (build_and_insert_call): Likewise. + (gimple_expand_builtin_cabs): Likewise. + (execute_optimize_bswap): Likewise. + * tree-ssa-phiopt.c (conditional_replacement): Likewise. + (abs_replacement): Likewise. + (cond_store_replacement): Likewise. + (cond_if_else_store_replacement_1): Likewise. + * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. + * tree-ssa-pre.c (get_representative_for): Likewise. + (create_expression_by_pieces): Likewise. + (insert_into_preds_of_block): Likewise. + * tree-ssa-propagate.c (update_call_from_tree): Likewise. + * tree-ssa-reassoc.c (undistribute_ops_list): Likewise. + (eliminate_redundant_comparison): Likewise. + (rewrite_expr_tree_parallel): Likewise. + (get_reassoc_pow_ssa_name): Likewise. + * tree-ssa-strlen.c (get_string_length): Likewise. + * tree-switch-conversion.c (emit_case_bit_tests): Likewise. + (build_arrays): Likewise. + * tree-tailcall.c (adjust_return_value_with_ops): Likewise. + (create_tailcall_accumulator): Likewise. + * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise. + (vect_create_addr_base_for_vector_ref): Likewise. + (vect_permute_store_chain): Likewise. + (vect_permute_load_chain): Likewise. + * tree-vect-generic.c (expand_vector_divmod): Likewise. + * tree-vect-loop-manip.c (set_prologue_iterations): Likewise. + (vect_build_loop_niters): Likewise. + (vect_generate_tmps_on_preheader): Likewise. + (vect_update_ivs_after_vectorizer): Likewise. + (vect_gen_niters_for_prolog_loop): Likewise. + (vect_do_peeling_for_alignment): Likewise. + (vect_create_cond_for_align_checks): Likewise. + * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise. + (vect_handle_widen_op_by_const): Likewise. + (vect_operation_fits_smaller_type): Likewise. + (vect_recog_over_widening_pattern): Likewise. + * tree-vect-stmts.c (vect_init_vector): Likewise. + +2012-08-01 Alexandre Oliva + + PR debug/52983 + * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec. + +2012-08-01 Alexandre Oliva + + PR debug/52983 + * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally, + falling back to copy_rtx on non-autoinc machines. + (propagate_for_debug_subst): Always use cleanup_auto_inc_dec. + +2012-08-01 Alexandre Oliva + + PR debug/52983 + * valtrack.h, valtrack.c: New. + * Makefile.in (VALTRACK_H): New. + (OBJS): Add valtrack.o. + (valtrack.o): New. + (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H. + * combine.c: Include valtrack.h. + (make_compound_operation): Publish. + (cleanup_auto_inc_dec): Move to valtrack.c. + (struct rtx_subst_pair, propagate_for_debug_subst): Likewise. + (propagate_for_debug): Likewise. Add this_basic_block parameter. + Adjust all callers. + * cselib.c: Include valtrack.h. + * dce.c: Likewise. + * df-problems.c: Likewise. + (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c. + (dead_debug_finish, dead_debug_add): Likewise. + (dead_debug_insert_temp): Likewise. + * df.h (struct dead_debug_use): Move to valtrack.h. + (struct dead_debug, enum debug_temp_where): Likewise. + (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h. + (dead_debug_finish, dead_debug_add): Likewise. + (dead_debug_insert_temp): Likewise. + * rtl.h (make_compound_operation): Declare. + +2012-08-01 Catherine Moore + Sandra Loosemore + + * config/mips/mips-cpus.def (34kn): New. + * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn. + (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn. + * config/mips/mips-tables.opt: Regenerate. + * doc/invoke.texi (MIPS Options): Document -march=34kn. + +2012-08-01 Richard Henderson + + * expmed.h (NUM_MODE_PARTIAL_INT): New. + (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New. + (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT. + (struct expmed_op_costs): Likewise. + (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT. + (expmed_mode_index): New. + (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index. + (convert_cost_ptr): Likewise. + * expmed.c (struct init_expmed_rtl): Rename convert to trunc. + (init_expmed_one_conv): Split out from ... + (init_expmed_one_mode): ... here. Iterate conversions over + partial integer modes too. + (init_expmed): Iterate over partial integer modes too. + +2012-08-01 Richard Henderson + + * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove. + (m32c_init_libfuncs): Remove. + * config/m32c/cond.md (cstore4_16): Rename from cstore4. + (cstore4): New expander. + +2012-08-01 Richard Guenther + + * tree-flow-inline.h (referenced_var): Remove. + * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate + checking code. + * tree-sra.c (candidates): New global hashtable. + (candidate): New function. + (sra_initialize): Initialize candidates. + (sra_deinitialize): Free candidates. + (disqualify_candidate): Remove candidate from candidates. + (maybe_add_sra_candidate): New function. + (find_var_candidates): Walk over all local decls and parameters, + add candidates to candidates hashtable. + (find_param_candidates): Add candidates to candidates hashtable. + (analyze_all_variable_accesses): Use candidate instead of + referenced_var. + +2012-08-01 Tom de Vries + + * tree-vrp.c (find_case_label_ranges): New function. + (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use + find_case_label_ranges instead of find_case_label_range. Handle second + range. + +2012-08-01 Michael Matz + + * tree-complex.c (init_parameter_lattice_values): Don't call var_ann. + * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member. + (dump_dfa_stats): Don't dump stats about var anns. + (collect_dfa_stats): Don't collect them. + (add_referenced_var_1): Don't set var annotation pointers. + (remove_referenced_var): Ditto, and only remove it it's in the + hash table. + + * tree-flow-inline.h (var_ann): Remove. + * tree-flow.h (struct var_ann_d, var_ann_t): Remove. + + * tree-inline.c (remapped_type): Remove. + (can_be_nonlocal): Most variable will be considered live here, + return false earlier. + (remap_decls): Don't call var_ann, all variables will be considered + referenced here. + (copy_debug_stmt): Ditto, and use is_global_var. + + * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to + determine if a variable was referred to, not var_ann. + * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann. + (remove_unused_locals): Ditto. + * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers. + * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann. + * tree.c (copy_node_stat): Don't clear var ann pointer. + * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove + ann member. + (DECL_VAR_ANN_PTR): Remove. + +2012-08-01 Michael Matz + + * tree-flow.h (struct var_ann_d): Rename used member. + (set_is_used): Don't declare. + * tree-flow-inline.h (clear_is_used): Remove. + (set_is_used, is_used_p): Move to ... + * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use + on the side bitmap. + (usedvars): New bitmap. + (dump_scope_block): Don't dump unusedness. + (remove_unused_locals): Allocate and free usedvars. + * tree-nrv.c (tree_nrv): Don't clear used flags here. + +2012-08-01 Michael Matz + + * tree-flow.h (struct var_ann_d): Remove base_var_processed and + base_index members. + * tree-ssa-live.h (struct _var_map): Remove basevars member. + (VAR_ANN_BASE_INDEX): Remove. + * tree-ssa-live.c (var_map_base_init): Use a hash table instead + of var annotation to compress index space. Don't deal with above + removed members. + (var_map_base_fini): Don't free basevars. + (init_var_map): Don't clear basevars. + +2012-08-01 Bill Schmidt + + * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change + base_name to base_expr. + (struct cand_chain_d): Likewise. + (base_cand_hash): Likewise. + (base_cand_eq): Likewise. + (record_potential_basis): Likewise. + (alloc_cand_and_find_basis): Likewise. + (create_mul_ssa_cand): Likewise. + (create_mul_imm_cand): Likewise. + (create_add_ssa_cand): Likewise. + (create_add_imm_cand): Likewise. + (slsr_process_cast): Likewise. + (slsr_process_copy): Likewise. + (dump_candidate): Likewise. + (base_cand_dump_callback): Likewise. + (unconditional_cands_with_known_stride_p): Likewise. + (cand_increment): Likewise. + +2012-08-01 Bill Schmidt + + PR tree-optimization/46556 + * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF. + (base_cand_map): Change to hash table. + (base_cand_hash): New function. + (base_cand_free): Likewise. + (base_cand_eq): Likewise. + (lookup_cand): Change base_cand_map to hash table. + (find_basis_for_candidate): Likewise. + (base_cand_from_table): Exclude CAND_REF. + (restructure_reference): New function. + (slsr_process_ref): Likewise. + (find_candidates_in_block): Call slsr_process_ref. + (dump_candidate): Handle CAND_REF. + (base_cand_dump_callback): New function. + (dump_cand_chains): Change base_cand_map to hash table. + (replace_ref): New function. + (replace_refs): Likewise. + (analyze_candidates_and_replace): Call replace_refs. + (execute_strength_reduction): Change base_cand_map to hash table. + +2012-08-01 Uros Bizjak + + * config/i386/i386.c (ix86_address_subreg_operand): Reject + stack pointer. + (ix86_print_operand_address): Assert that parts.base and parts.index + are non-NULL after call to simplify_subreg. + +2012-08-01 Richard Guenther + + * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming. + +2012-08-01 Richard Guenther + + * graphite-clast-to-gimple.c (translate_clast_user): Rename + virtual operands. + * sese.c (graphite_copy_stmts_from_block): Do not rename virtual + operands here. + * tree-call-cdce.c (tree_call_cdce): Use + mark_virtual_operands_for_renaming. + * tree-eh.c (sink_clobbers): Simplify. + * tree-flow.h (mark_sym_for_renaming): Remove. + (mark_virtual_operands_for_renaming): New function. + * tree-if-conv.c (tree_if_conversion): Use + mark_virtual_operands_for_renaming. + * tree-inline.c (update_ssa_across_abnormal_edges): Likewise. + * tree-into-ssa.c (mark_sym_for_renaming): Remove. + (mark_virtual_operands_for_renaming): New function. + * tree-loop-distribution.c (tree_loop_distribution): Use + mark_virtual_operands_for_renaming. + * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not + update stmts, use mark_virtual_operands_for_renaming. + * tree-ssa-tail-merge.c (release_last_vdef): Remove. + (replace_block_by): Adjust. + (tail_merge_optimize): Use mark_virtual_operands_for_renaming. + * tree-tailcall.c (tree_optimize_tail_calls_1): Use + mark_virtual_operands_for_renaming. + * tree-vect-slp.c (vect_slp_transform_bb): Likewise. + * tree-vectorizer.c (vectorize_loops): Likewise. + +2012-08-01 Richard Guenther + + * tree-flow.h (struct gimple_df): Remove syms_to_rename member, + add ssa_renaming_needed and rename_vops flags. + (SYMS_TO_RENAME): Remove. + (symbol_marked_for_renaming): Likewise. + (mark_virtual_ops_for_renaming): Likewise. + * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename): + New globals. + (mark_for_renaming, marked_for_renaming): New functions. + (symbol_marked_for_renaming): Remove. + (dump_currdefs): Adjust. + (maybe_replace_use): Likewise. + (maybe_replace_use_in_debug_stmt): Likewise. + (maybe_register_def): Likewise. + (rewrite_update_phi_arguments): Likewise. + (rewrite_update_enter_block): Likewise. + (fini_ssa_renamer): Clear update SSA status here ... + (delete_update_ssa): ... not here. Free rename set. + (prepare_block_for_update): Compute which decls need renaming. + (dump_update_ssa): Adjust. + (mark_sym_for_renaming): Adjust update SSA status for virtuals. + (need_ssa_update_p): Adjust. + (insert_updated_phi_nodes_for): Likewise. + (update_ssa): Likewise. + * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status + for virtual and real operands. + (finalize_ssa_uses): Likewise. + * tree-ssanames.c (init_ssanames): Adjust. + * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var, + execute_update_addresses_taken): Add bitmap to keep track of which + candidates are suitable for rewriting and later renaming by SSA update. + * matrix-reorg.c (transform_access_sites): Do not rename all defs. + * tree-dfa.c (make_rename_temp): Do not mark real operands for + renaming. + * cgraphunit.c (assemble_thunk): Likewise. + * gimplify.c (gimple_regimplify_operands): Likewise. + (force_gimple_operand_1): Likewise. + * ipa-prop.c (ipa_modify_formal_parameters): Likewise. + * tree-inline.c (declare_return_variable): Likewise. + * tree-parloops.c (separate_decls_in_region_stmt): Do not call + mark_virtual_ops_for_renaming. + (create_stores_for_reduction): Likewise. + (create_loads_and_stores_for_name): Likewise. + * tree-predcom.c (mark_virtual_ops_for_renaming): Remove. + (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming. + (execute_load_motion): Likewise. + (remove_stmt): Likewise. + (execute_pred_commoning_chain): Likewise. + * tree-sra.c (create_access_replacement): Do not rename real operands. + (get_unrenamed_access_replacement): Unify with ... + (get_access_replacement): ... this. + (get_repl_default_def_ssa_name): Adjust. + * tree-ssa-loop-im.c (move_computations_stmt): Manually update + virtual SSA form. + (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming. + * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise. + +2012-07-31 DJ Delorie + + * config/s390/s390.c (s390_option_override): Disable DWARF 3/4 + extensions for TPF, unless specifically selected. + +2012-08-01 Alan Modra + + PR target/54131 + * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range + of lo_sum offsets. Comment. Assert mode at least word size + rather than bypassing powerpc64 word offset check. + +2012-07-31 Bill Schmidt + + * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise + costs for vec_perm and vec_promote_demote down to more natural values. + (struct _rs6000_cost_data): New data structure. + (rs6000_density_test): New function. + (rs6000_init_cost): Change to use rs6000_cost_data. + (rs6000_add_stmt_cost): Likewise. + (rs6000_finish_cost): Perform density test when vectorizing a loop. + +2012-07-31 Steven Bosscher + + * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling + of RTX_UNARY function-like operations. Print unknown expression + RTX classes as pseudo-functions. + (print_pattern): Simplify return pattern printing. + (dump_insn_slim): Print the value of notes as a pattern for proper + printing of CFA notes. + +2012-07-31 Dehao Chen + + * predict.c (tree_estimate_probability_driver): Normalize the + loop when initializing the loop optimizer. + +2012-07-31 Richard Guenther + + * tree-flow.h (struct var_ann_d): Remove need_phi_state + and current_def members. + * tree-into-ssa.c (struct def_blocks_d): Remove var member. + (def_blocks): Remove. + (struct var_info_d): New. + (var_infos): New hashtable. + (struct ssa_name_info): Add def_blocks member. + (get_ssa_name_ann): Adjust. + (get_var_info): New function. + (get_phi_state, set_phi_state, get_current_def, + set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust. + (insert_phi_nodes_compare_def_blocks): Rename to ... + (insert_phi_nodes_compare_var_infos): ... this and adjust. + (insert_phi_nodes): Adjust. + (dump_tree_ssa, dump_tree_ssa_stats): Adjust. + (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove. + (debug_def_blocks_r): Rename to ... + (debug_var_infos_r): ... this and adjust. + (var_info_hash): New function. + (var_info_eq): Likewise. + (rewrite_blocks): Adjust. + (init_ssa_renamer): Likewise. + (fini_ssa_renamer): Likewise. + (delete_update_ssa): Likewise. + (update_ssa): Likewise. + * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs. + +2012-07-31 Bill Schmidt + + PR tree-optimization/53773 + * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped. + (LOOP_VINFO_OPERANDS_SWAPPED): New macro. + * tree-vect-loop.c (new_loop_vec_info): Initialize + LOOP_VINFO_OPERANDS_SWAPPED field. + (destroy_loop_vec_info): Restore canonical form. + (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field. + (vect_is_simple_reduction_1): Likewise. + +2012-07-31 Steven Bosscher + + * sched-vis.c (dump_insn_slim): Print print_rtx_head at the + start of each new line. + * final.c (final_scan_insn): If the final dump is requested as + slim RTL, dump slim RTL to the assembly file also. + +2012-07-31 Andrey Belevantsev + + PR target/53975 + + * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment. + + Revert + 2011-08-04 Sergey Grechanik + + * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge + only if producer writes to the register given by regno. + +2012-07-31 Nick Clifton + + * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add + support for reporting stack usage. + + * config/frv/frv.c (QUAD): Fix typo. + (frv_expand_prologue): Report stack usage. + +2012-07-31 Steven Bosscher + + PR pch/53880 + * gengtype.c (struct walk_type_data): Add have_this_obj field. + (walk_type): For functions that take a this_obj argument and + that process fields with a GTY((length)) argument, write the + test that write_types_local_process_field will write also at the + head of the loop, effectively unswitching the loop. + (write_func_for_structure, write_local_func_for_structure): Clear + have_this_obj before calling walk_type. + (write_local_func_for_structure): Set have_this_obj before walk_type. + (write_array): Set have_this_obj for output of local pointer walking + functions but not for marker functions. + (write_types_local_process_field): Assert have_this_obj is set. + + * rtl.h (simplify_using_condition): Adjust prototype using bitmap + from coretypes.h. + +2012-07-30 Nathan Froyd + + + * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. + * targhooks.c (default_mode_dependent_address_p): Delete code + for GO_IF_MODE_DEPENDENT_ADDRESS. + * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison. + * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention. + * doc/tm.texi: Regenerate. + * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to... + * config/alpha.c (alpha_mode_dependent_address_p): ...here. New + function. + (TARGET_MODE_DEPENDENT_ADDRESS_P): Define. + * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. + * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. + * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete. + * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. + * config/vax/vax.c (vax_mode_dependent_address_p): Make static. + Take a const_rtx. + (TARGET_MODE_DEPENDENT_ADDRESS_P): Define. + +2012-07-30 Nathan Froyd + + * expmed.h (NUM_MODE_VECTOR_INT): Define. + (struct expmed_op_cheap, struct expmed_op_costs): New structures. + (struct target_expmed): Convert x_mul_highpart_cost and + x_mul_widen_cost fields to be indexed by integer modes. + Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be + of type struct expmed_op_cheap. Convert other cost fields to be + of type struct_expmed_op_costs. + (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new + indexing of respective fields. + (expmed_op_cheap_ptr): New function. + (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it. + (expmed_op_cost_ptr): New function. + (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr, + shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr, + sdiv_cost_ptr, udiv_cost_ptr): Call it. + +2012-07-30 Sandra Loosemore + Julian Brown + + * doc/invoke.texi (MIPS Options): Document -mno-float. + * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know + about -mno-float. + +2012-07-30 Joseph Myers + + * doc/sourcebuild.texi (Subdirectories): Document common subdirectory. + +2012-07-30 John David Anglin + + PR middle-end/53823 + * expmed.c (expand_mult): Skip synth_mult for constant double op1 except + for special cases. Don't initialize coeff and is_neg. + +2012-07-30 Ulrich Weigand + Richard Earnshaw + + * target.def (vector_alignment): New target hook. + * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook. + * doc/tm.texi: Regenerate. + * targhooks.c (default_vector_alignment): New function. + * targhooks.h (default_vector_alignment): Add prototype. + * stor-layout.c (layout_type): Use targetm.vector_alignment. + * config/arm/arm.c (arm_vector_alignment): New function. + (TARGET_VECTOR_ALIGNMENT): Define. + + * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use + vector type alignment instead of size. + * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use + element type size directly instead of computing it from alignment. + Fix variable naming and comment. + +2012-07-30 Kirill Yukhin + Michael Zolotukhin + + * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New. + (OPTION_MASK_ISA_RDSEED_UNSET): Likewise. + (ix86_handle_option): Handle mrdseed option. + * config.gcc (i[34567]86-*-*): Add rdseedintrin.h. + (x86_64-*-*): Likewise. + * config/i386/prfchwintrin.h: New header. + * config/i386/cpuid.h (bit_RDSEED): New. + * config/i386/driver-i386.c (host_detect_local_cpu): Detect + RDSEED support. + * config/i386/i386-c.c: Define __RDSEED__ if needed. + * config/i386/i386.c (ix86_target_string): Define -mrdseed option. + (PTA_RDSEED): New. + (ix86_option_override_internal): Handle new option. + (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed. + (ix86_builtins): Add enum entries for RDSEED* builtins. + (ix86_init_mmx_sse_builtins): Define new builtins. + (ix86_expand_builtin): Expand RDSEED* builtins. + * config/i386/i386.h (TARGET_RDSEED): New. + * config/i386/i386.md (rdseed_1): New. + * config/i386/i386.opt (mrdseed): New. + * config/i386/x86intrin.h: Include rdseedintrin.h. + +2012-07-30 Richard Guenther + + * tree-into-ssa.c (mark_def_sites): Also process virtual operands. + (rewrite_stmt): Likewise. + (rewrite_enter_block): Likewise. + (pass_build_ssa): Do not update virtual SSA form during TODO. + (mark_symbol_for_renaming): Do nothing if we are not in SSA form. + * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier. + +2012-07-30 Oleg Endo + + PR target/39423 + * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New + insns. + +2012-07-30 Oleg Endo + + PR target/51244 + * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section. + Use t_reg_operand predicate. Add split for negated case. + (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t. + * config/sh/sh.c (expand_ashiftrt): Likewise. + +2012-07-30 Oleg Endo + + PR target/54089 + * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead + of trying to emit ashlsi3_n. + +2012-07-30 Laurynas Biveinis + Steven Bosscher + + * gengtype.c (adjust_field_type): Diagnose duplicate "length" + option applications and option being applied to arrays of atomic types. + (walk_type): Allow "atomic" option on strings too. + * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option + for the array field. + * vec.h: Describe the atomic object "A" type of the macros in + the header comment. + (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define. + * emit-rtl.c (locations_locators_vals): use the atomic object vector. + * doc/gty.texi: Clarify that GTY option "length" is only for + arrays of non-atomic objects. Fix typo in the description of the + "atomic" option. + +2012-07-27 Uros Bizjak + + * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle + zero-extended addresses. Return false if the address has less + than two components. + (ix86_split_lea_for_addr): Unconditionally convert target and + all address operands to requested mode. + * config/i386/i386.md (*lea): Recover operands from curr_insn. + Pass SImode to ix86_split_lea_for_addr when splitting zero-extended + address. + (zero-extended add splitter): New splitter to conditionally split + non-destructive adds. + (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl. + +2012-07-28 Alan Modra + + PR target/54093 + * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit + multi-gpr reload to cases where predicate passes. Do the same for + 64-bit multi-gpr reload. + +2012-07-27 Nathan Froyd + + * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap, + smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost) + shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost, + sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete + macro definitions and re-purpose as inline functions. + (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr, + set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap, + zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost, + neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost, + shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr, + set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost, + mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost, + udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr, + set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost): + New functions. + (convert_cost_ptr): New function, split out from... + (set_convert_cost, convert_cost): ...here. + * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions. + * gimple-ssa-strength-reduction.c: Likewise. + +2012-07-20 Ryan Mansfield + + * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after + diagnostic_initialize. + +2012-07-27 Oleg Endo + + PR target/54089 + * config/sh/sh.c (shiftcosts): Remove case where first operand + is a const_int. Move COSTS_N_INSNS usage into caller ... + (sh_rtx_costs) ... here. Return false when shiftcosts cannot be + calculated instead of MAX_COST. + +2012-07-27 Richard Guenther + + * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained + check whether SSA form is not up-to-date. + * tree-flow.h (name_mappings_registered_p): Remove. + * tree-into-ssa.c (struct repl_map_d): Remove. + (repl_tbl): Likewise. + (struct ssa_name_info): Add repl_set member. + (update_ssa_obstack): New static global. + (get_ssa_name_ann): Initialize repl_set. + (clear_ssa_name_info): Assert age did not wrap. + (repl_map_hash, repl_map_eq, repl_map_free): Remove. + (names_replaced_by): Adjust. + (add_to_repl_tbl): Likewise. + (dump_tree_ssa_stats): Likewise. + (init_update_ssa): Initialize update_ssa_obstack. + (delete_update_ssa): Free update_ssa_obstack. + (name_mappings_registered_p): Remove. + (update_ssa): Adjust. + +2012-07-27 Segher Boessenkool + + * config/rs6000/constraints.md: Delete "q" constraint. + * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat): + Delete the "q" alternative. + * config/rs6000/predicates.md (gpc_reg_operand): Adjust. + * config/rs6000/rs6000.c (rs6000_debug_reg_global) + (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number): + adjust to MQ_REGNO removal. + * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust + comment. + (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order. + (enum reg_class): Adjust comment. Delete MQ_REGS. + (REG_CLASS_CONTENTS): Adjust. + (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment. + * config/rs6000/rs6000.md: Delete MQ_REGNO. + (movsi_internal1, movsi_internal1_single, movhi_internal, + movqi_internal, movcc_internal1, movsf_hardfloat, + movsf_softfloat): Delete the "q" alternative. + (ctr_internal1, ctr_internal2, ctr_internal5, + ctr_internal6): Delete "q" constraint. + +2012-07-27 Richard Guenther + + * tree-into-ssa.c (def_blocks_p): New typedef. + (insert_phi_nodes_compare_def_blocks): New function. + (insert_phi_nodes): Do not walk over referenced vars, instead + walk over recorded def_blocks, record relevant ones and sort + them to avoid repeated hashtable lookups. + +2012-07-27 Richard Guenther + + * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio): + Remove param documentation. + * params.def (PARAM_MIN_VIRTUAL_MAPPINGS, + PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove. + * tree-flow.h (mark_set_for_renaming): Remove. + * tree-into-ssa.c (struct update_ssa_stats_d): Remove. + (add_new_name_mapping): Remove bookkeeping code. + (dump_update_ssa): Remove stats dumping code. + (init_update_ssa): Remove stats allocation code. + (delete_update_ssa): Remove stats freeing code. + (mark_set_for_renaming): Remove. + (switch_virtuals_to_full_rewrite_p): Likewise. + (switch_virtuals_to_full_rewrite): Likewise. + (update_ssa): Do not call switch_virtuals_to_full_rewrite. + +2012-07-27 Marek Polacek + + * cgraphunit.c: Rename varpool_finalize_variable to + varpool_finalize_decl in a comment. + +2012-07-27 Segher Boessenkool + + * common/config/rs6000/rs6000-common.c (rs6000_handle_option): + Delete code for -mno-power, -mpower, and -mpower2. + * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete. + (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together + with -maix64. + (ASM_CPU_SPEC): Delete support for POWER and POWER2. + * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete. + (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together + with -maix64. + (ASM_CPU_SPEC): Delete support for POWER and POWER2. + * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete. + (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together + with -maix64. + (TARGET_POWER): Delete. + * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete. + (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together + with -maix64. + (TARGET_POWER): Delete. + * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete. + (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together + with -maix64. + (TARGET_POWER): Delete. + * config/rs6000/darwin.h (TARGET_POWER): Delete. + * config/rs6000/driver-rs6000.c (struct asm_names): Delete + support for -mpower, -mpower2, and -mno-power. + * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): + Likewise. + (rs6000_cpu_cpp_builtins): Likewise. + * config/rs6000/rs6000-cpus.def: Likewise. + * config/rs6000/rs6000-tables.opt: Regenerate. + * config/rs6000/rs6000.c (POWER_MASKS): Delete. + (rs6000_option_override_internal): Adjust. + (rs6000_conditional_register_usage): Adjust. + (rs6000_emit_move): Adjust. + (rs6000_common_init_builtins): Adjust. + (rs6000_init_libfuncs): Adjust. + (rs6000_output_function_prologue): Adjust. + (rs6000_adjust_cost): Adjust. + (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2. + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for + POWER and POWER2. + (TARGET_DEFAULT): Adjust. + (PROCESSOR_POWER): Delete. + (SHIFT_COUNT_TRUNCATED): Adjust. + * config/rs6000/rs6000.md (extendqisi2): Delete POWER support. + (extendqisi2_power): Delete. + (extendqisi2_no_power): Adjust. + (extendqihi2, extendqihi2_power, extendqihi2_no_power): + Likewise. + (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust. + (anonymous doz insn patterns): Delete. + (abssi2): Adjust. + (abssi2_power): Delete. + (abssi2_nopower): Adjust. + (nabs_power, nabs_nopower): Likewise. + (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1): + Likewise. Delete anonymous post-reload splitter. + (mulsi3_no_mq_internal1): rename to... + (mulsi3_internal1): New define_insn. + (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2): + Likewise. + (divmodsi4, divmodsi4_internal, udiv3, udivsi3_mq, + udivsi3_no_mq, udivsi3, div3, divsi3_mq, div3_no_mq, + udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise. + (mulh_call, mull_call, divss_call, divus_call, quoss_call, + quous_call): Likewise. + (maskir_internal1, maskir_internal2, maskir_internal3, + maskir_internal4, maskir_internal5, maskir_internal6, + maskir_internal7, maskir_internal8): Delete. + (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust. + (anonymous sl insn patterns): Delete. + (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust. + (lshrsi3_64): Adjust. + (anonymous sr insn patterns): Delete. + (anonymous rrib insn patterns): Delete. + (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust. + (anonymous sra insn patterns): Delete. + (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust. + (fix_truncsi2, fix_truncsi2_internal, + fctiwz_): Adjust. + (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq, + umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq, + smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq, + umulsi3_highpart_no_mq): Adjust. + (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete. + (ashrdi3_no_power, ashldi3, ashldi3_internal1, + lshrdi3_internal1): Adjust. + (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust. + (movti_power): Delete. + (movti_string): Adjust. + (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust. + (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power, + stmsi4_power, stmsi3_power): Delete. + (anonymous movmemsi insn patterns): Adjust. + (lfq_power2, stfq_power2): Delete. + (eq, eq_compare): Adjust. + (eqsi_power): Delete. + (ne0si): Adjust. + (anonymous le, lt, ge, gt insn patterns): Delete. + * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete. + * config/rs6000/sysv4.h (TARGET_POWER): Delete. + * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, + MULTILIB_MATCHES): Adjust. + * doc/invoke.texi (RS/6000 and PowerPC Options): Delete + -mpower, -mno-power, -mpower2, -mno-power2 documentation. + Delete -mcpu=power and -mcpu=power2 documentation. + +2012-07-27 Segher Boessenkool + + * config/rs6000/601.md: New file. + * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for + RIOS CPUs. + * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise. + * config/rs6000/driver-rs6000.c (detect_processor_aix, + struct asm_names): Likewise. + * config/rs6000/rios1.md: Delete file. + * config/rs6000/rios2.md: Delete file. + * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS + CPUs. + * config/rs6000/rs6000-opts.h (enum processor_type): Delete + PROCESSOR_RIOS1 and PROCESSOR_RIOS2. + * config/rs6000/rs6000-tables.opt: Regenerated. + * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost): + Delete. + (rs6000_option_override_internal): Delete support for RIOS CPUs. + (rs6000_conditional_register_usage): Adjust comment. + (rs6000_issue_rate):Delete support for RIOS CPUs. + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for + RIOS CPUs. + (PROCESSOR_POWER): Change to PROCESSOR_PPC601. + (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603. + * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1 + and rios2. + (include "rios1.md", include "rios2.md"): Delete. + (include "601.md"): New. + * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to + PROCESSOR_PPC603. + * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support + for RIOS CPUs. + * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and + rios2.md . Add 601.md . + +2012-07-26 Richard Henderson + + * doc/extend.texi (attribute): Document hot/cold for labels. + * predict.c (tree_estimate_probability_bb): Handle hot/cold + attributes on user labels. + * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New. + +2012-07-26 Andrew Jenner + Sandra Loosemore + + * cse.c (find_comparison_args): Check for cycles of any length. + +2012-07-26 Nick Clifton + + * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete. + (mn10300_get_live_callee_saved_regs): If requested return a count + of the number of bytes in the mask. + (mn10300_expand_prologue): Add argument to invocation of + mn10300_get_live_callee_regs. + (mn10300_expand_epilogue): Compute reg_save_bytes by calling + mn10300_get_live_callee_saved_regs. + (mn10300_initial_offset): Likewise. + * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs): + Update prototype. + * config/mn10300/mn10300.md (return_ret): Add argument to + invocation of mn10300_get_live_callee_saved_regs. + +2012-07-26 Steven Bosscher + + PR regression/54084 + * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix + pointer difference check. + +2012-07-26 Bill Schmidt + + * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove. + (mbc_entry_eq): Likewise. + (mult_costs): Likewise. + (cost_tables_exist): Likewise. + (initialize_costs): Likewise. + (finalize_costs): Likewise. + (tree_ssa_iv_optimize_init): Remove call to initialize_costs. + (add_regs_cost): Remove. + (multiply_regs_cost): Likewise. + (add_const_cost): Likewise. + (extend_or_trunc_reg_cost): Likewise. + (negate_reg_cost): Likewise. + (struct mbc_entry): Likewise. + (multiply_by_const_cost): Likewise. + (get_address_cost): Change add_regs_cost calls to add_cost lookups; + change multiply_by_const_cost to mult_by_coeff_cost. + (force_expr_to_var_cost): Likewise. + (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost. + (get_computation_cost_at): Change add_regs_cost calls to add_cost + lookups; change multiply_by_const_cost to mult_by_coeff_cost. + (determine_iv_cost): Change add_regs_cost calls to add_cost lookups. + (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs. + * tree-ssa-address.c (expmed.h): New #include. + (most_expensive_mult_to_index): Change multiply_by_const_cost to + mult_by_coeff_cost. + * gimple-ssa-strength-reduction.c (expmed.h): New #include. + (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost, + neg_cost, and convert_cost instead of IVOPTS interfaces. + (execute_strength_reduction): Remove calls to initialize_costs and + finalize_costs. + * expmed.c (struct init_expmed_rtl): Add convert rtx_def. + (init_expmed_one_mode): Initialize convert rtx_def; initialize + x_convert_cost for related modes. + (mult_by_coeff_cost): New function. + * expmed.h (NUM_MODE_INT): New #define. + (struct target_expmed): Add x_convert_cost matrix. + (set_convert_cost): New inline function. + (convert_cost): Likewise. + (mult_by_coeff_cost): New extern decl. + * tree-flow.h (initialize_costs): Remove decl. + (finalize_costs): Likewise. + (multiply_by_const_cost): Likewise. + (add_regs_cost): Likewise. + (multiply_regs_cost): Likewise. + (add_const_cost): Likewise. + (extend_or_trunc_reg_cost): Likewise. + (negate_reg_cost): Likewise. + * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies. + (tree-ssa-address.o): Update dependencies. + +2012-07-26 Steven Bosscher + + * bitmap.h: Add explanation of sparse set as linked-list bitmap. + * sbitmap.h: Add explanation about non-sparse sets as simple bitmap. + (TEST_BIT): Make a static inline function for stronger type checking. + (SET_BIT): Don't handle sbitmaps with popcount. + (RESET_BIT): Likewise. + (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount. + (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount. + * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and + RESET_BIT_WITH_POPCOUNT on wordmask bitmaps. + (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into, + ebitmap_and_compl_into, ebitmap_and_compl): Likewise. + * sparseset.h: Add explanation of sparse set representation. + +2012-07-26 Richard Guenther + + PR tree-optimization/54098 + * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the + original range was UNDEFINED. + +2012-07-26 Ramana Radhakrishnan + + * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and + vld1Q_dupu64 tests. + +2012-07-26 Oleg Endo + + PR target/51244 + * config/sh/sh.opt (mzdcbranch): New option. + * doc/invoke.texi: Document it. + * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition + instead of TARGET_HARD_SH4. + * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default + for TARGET_HARD_SH4. + +2012-07-25 Oleg Endo + + PR target/54089 + * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA + case. + (p27_shift_count_operand, not_p27_shift_count_operand): New predicates. + * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber + from expander. Do not emit shift insn for not-SHMEDIA case. + (ashlsi3_std): Replace with ... + (ashlsi3_k, ashlsi3_d): ... these new insns. + * config/sh/sh.c (gen_ashift): Make static. Add sanity checks. + Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case. + (gen_ashift_hi): Make static. + * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward + declaration. + +2012-07-25 Bharathi Seshadri + Jim Wilson + + * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to + TARGET_BIG_ENDIAN_DEFAULT. + +2012-07-25 Eric Botcazou + + * gimple-low.c (lower_try_catch): New function. + (lower_stmt) : Use it to lower GIMPLE_TRY_CATCH. + : Delete. + : Likewise. + +2012-07-25 Eric Botcazou + + * expr.c (expand_expr_real_1): Do not expand operand #1 and #2 + of BIT_FIELD_REF for ignored results. + * fold-const.c (fold_ternary_loc) : Check that the + CONSTRUCTOR has vector type before using vector accessors on it. + * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and + #2 of BIT_FIELD_REF. + (gimplify_expr) : Likewise. + * tree-nested.c (convert_nonlocal_reference_op) : Do + not process operand #1 and #2. + (convert_local_reference_op): Likewise. + * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous + breaks throughout. + : Reuse operand #1 and #2 directly. + * tree.c (stabilize_reference) : Do not stabilize + operand #1 and #2. + (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF. + (build6_stat): Delete. + * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise. + +2012-07-25 Marc Glisse + + PR tree-optimization/30318 + * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]: + Handle __int128. + [MINUS_EXPR]: Merge with PLUS_EXPR. + +2012-07-25 Sandra Loosemore + Paul Brook + + PR target/53633 + * target.def (warn_func_return): New hook. + * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook. + * doc/tm.texi: Regenerate. + * doc/sourcebuild.texi (Effective-Target Keywords): Document + naked_functions. + * ipa-pure-const.c (warn_function_noreturn): Check + targetm.warn_func_return. + * tree-cfg.c (execute_warn_function_return): Likewise. + * config/spu/spu.c (spu_warn_func_return): New. + (TARGET_WARN_FUNC_RETURN): Define. + * config/rx/rx.c (rx_warn_func_return): New. + (TARGET_WARN_FUNC_RETURN): Define. + * config/avr/avr.c (avr_warn_func_return): New. + (TARGET_WARN_FUNC_RETURN): Define. + * config/arm/arm.c (arm_warn_func_return): New. + (TARGET_WARN_FUNC_RETURN): Define. + * config/mcore/mcore.c (mcore_warn_func_return): New. + (TARGET_WARN_FUNC_RETURN): Define. + (saved_warn_return_type, saved_warn_return_type_count): Remove. + (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack. + +2012-07-25 Siddhesh Poyarekar + + * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New + function to implement assembler dialects. + (output_asm_insn): Use do_assembler_dialects. + (asm_fprintf): Likewise. + +2012-07-25 Richard Henderson + + PR bootstrap/54092 + * libfuncs.h: Don't include optabs.h. + (struct libfunc_entry): Use "int" for op, mode1, mode2 members. + * optabs.c (hash_libfunc): Don't cast members to int. + * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H. + +2012-07-25 Dodji Seketeli + + * basic-block.c: Fix typo in comment. + +2012-07-25 Kirill Yukhin + Michael Zolotukhin + + * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New. + (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise. + (ix86_handle_option): Handle mprfchw option. + * config.gcc (i[34567]86-*-*): Add prfchwintrin.h. + (x86_64-*-*): Likewise. + * config/i386/prfchwintrin.h: New header. + * config/i386/cpuid.h (bit_PRFCHW): New. + (bit_BMI): Formatting fix. + (bit_HLE): Likewise. + (bit_RTM): Likewise. + * config/i386/driver-i386.c (host_detect_local_cpu): Detect + PREFETCHW support. + * config/i386/i386-c.c: Define __PRFCHW__ if needed. + * config/i386/i386.c (ix86_target_string): Define + -mprfchw option. Formatting fixes. + (PTA_HLE): Formatting fix. + (PTA_PRFCHW): New. + (ix86_option_override_internal): Handle new option. + (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw. + * config/i386/i386.h (TARGET_PRFCHW): New. + * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW. + * config/i386/i386.opt (mprfchw): New. + * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h. + * config/i386/x86intrin.h: Include prfchwintrin.h. + +2012-07-25 Sergey Melnikov + + * config/i386/i386.md (stack_protect_set): Disable the pattern + for Android since Android libc (bionic) does not provide random + value for stack protection guard at gs:0x14. Guard value + will be provided from external symbol (default implementation). + (stack_protect_set_): Likewise. + (stack_protect_test): Likewise. + (stack_protect_test_): Likewise. + * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does + not have Bionic by default + * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC) + Macro OPTION_BIONIC is defined in this file and provides Bionic + accessibility status + +2012-07-25 Steven Bosscher + + * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush. + +2012-07-25 Venkataramanan Kumar + + btver2 Enablement + * config.gcc (i[34567]86-*-linux* | ...): Add btver2. + (case ${target}): Add btver2. + * config/i386/driver-i386.c (host_detect_local_cpu): Let + -march=native recognize btver2 processors. + * config/i386/i386-c.c (ix86_target_macros_internal): Add + btver2 def_and_undef + * config/i386/i386.c (struct processor_costs btver2_cost): New + btver2 cost table. + (m_BTVER2): New definition. + (m_AMD_MULTIPLE): Includes m_BTVER2. + (initial_ix86_tune_features): Add btver2 tune. + (processor_target_table): Add btver2 entry. + (static const char *const cpu_names): Add btver2 entry. + (software_prefetching_beneficial_p): Add btver2. + (ix86_option_override_internal): Add btver2 instruction sets. + (ix86_issue_rate): Add btver2. + (ix86_adjust_cost): Add btver2. + * config/i386/i386.h (TARGET_BTVER2): New definition. + (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2. + (enum processor_type): Add PROCESSOR_BTVER2. + * config/i386/i386.md (define_attr "cpu"): Add btver2. + +2012-07-24 Bill Schmidt + + * doc/tm.texi: Regenerate. + * targhooks.c (default_init_cost): Add prologue and epilogue costs. + (default_add_stmt_cost): Likewise; also handle NULL stmt_info. + (default_finish_cost): Add prologue and epilogue costs. + * targhooks.h (default_add_stmt_cost): Change parameter list. + (default_finish_cost): Likewise. + * target.def (init_cost): Change documentation string. + (add_stmt_cost): Change documentation string and parameter list. + (finish_cost): Likewise. + * target.h (vect_cost_model_location): New enum. + * tree-vectorizer.h (struct _slp_tree): Remove cost substruct. + (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec + to body_cost_vec. + (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove. + (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC. + (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove. + (struct _vect_peel_extended_info): Rename stmt_cost_vec to + body_cost_vec. + (struct _stmt_vec_info): Remove cost substruct. + (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove. + (stmt_vinfo_set_outside_of_loop_cost): Remove. + (builtin_vectorization_cost): New function. + (vect_get_stmt_cost): Change to use builtin_vectorization_cost. + (add_stmt_cost): Change parameter list. + (finish_cost): Likewise. + (vect_model_simple_cost): Likewise. + (vect_model_store_cost): Likewise. + (vect_model_load_cost): Likewise. + (record_stmt_cost): Likewise. + (vect_get_load_cost): Likewise. + (vect_get_known_peeling_cost): Likewise. + * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter + list; call record_stmt_cost for prologue and epilogue costs. + (vect_estimate_min_profitable_iters): Call add_stmt_cost for + prologue and epilogue costs; remove computation of vec_outside_cost; + return vec_prologue_cost and vec_epilogue_cost from finish_cost. + (vect_model_reduction_cost): Revise call to add_stmt_cost for body + costs; call add_stmt_cost for prologue and epilogue costs. + (vect_model_induction_cost): Revise call to add_stmt_cost for body + costs; call add_stmt_cost for prologue costs. + * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter + list for function and arguments for calls to vect_get_load_cost and + vect_get_store_cost. + (vect_peeling_hash_get_lowest_cost): Change argument list for calls to + vect_get_data_access_cost and vect_get_known_peeling_cost; use + temporary vectors prologue_cost_vec and epilogue_cost_vec for the + latter call and discard their results; rename stmt_cost_vec to + body_cost_vec; correct possible storage leak for body_cost_vec. + (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to + body_cost_vec. + (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to + body_cost_vec; add extra dummy parameter on calls to + vect_get_data_access_cost; tolerate null si->stmt; add vect_body to + argument list on call to add_stmt_cost. + * tree-vect-stmts.c (record_stmt_cost): Change parameter list; + rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call + builtin_vectorization_cost; add "where" parameter on call to + add_stmt_cost. + (vect_model_simple_cost): Change parameter list; call record_stmt_cost + for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost; + rename stmt_cost_vec to body_cost_vec. + (vect_model_promotion_demotion_cost): Add vect_body argument to call + to add_stmt_cost; call add_stmt_cost for prologue costs; remove call + to stmt_vinfo_set_outside_of_loop_cost. + (vect_model_store_cost): Change parameter list; call record_stmt_cost + for prologue costs; add vect_body argument to call to record_stmt_cost; + rename stmt_cost_vec to body_cost_vec; remove call to + stmt_vinfo_set_outside_of_loop_cost. + (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add + vect_body argument to calls to record_stmt_cost. + (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to + body_cost_vec; add vect_body argument to calls to record_stmt_cost; + remove call to stmt_vinfo_set_outside_of_loop_cost. + (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to + body_cost_vec; add vect_body argument to calls to record_stmt_cost; + call record_stmt_cost for prologue costs. + (vectorizable_store): Change argument list for call to + vect_model_store_cost. + (vectorizable_load): Change argument list for call to + vect_model_load_cost. + (new_stmt_vec_info): Remove assignment to + STMT_VINFO_OUTSIDE_OF_LOOP_COST. + * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs. + (spu_add_stmt_cost): Likewise; also handle NULL stmt_info. + (spu_finish_cost): Add prologue and epilogue costs. + * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs. + (i386_add_stmt_cost): Likewise; also handle NULL stmt_info. + (i386_finish_cost): Add prologue and epilogue costs. + * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue + costs. + (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info. + (rs6000_finish_cost): Add prologue and epilogue costs. + * tree-vect-slp.c (vect_free_slp_instance): Rename + SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC. + (vect_create_new_slp_node): Remove assignment to + SLP_TREE_OUTSIDE_OF_LOOP_COST. + (vect_get_and_check_slp_defs): Change parameter list; change argument + lists to calls to vect_model_store_cost and vect_model_simple_cost. + (vect_build_slp_tree): Change parameter list; change argument lists + to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and + recursive self-calls; remove setting of outside_cost from + SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to + record_stmt_cost. + (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec; + rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC; + remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP + prologue costs. + (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to + body_cost_vec; handle null ci->stmt; add vect_body argument to call + to add_stmt_cost; simplify calls to targetm.vectorize. + builtin_vectorization_cost; return vec_prologue_cost and + vec_epilogue_cost from finish_cost. + (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to + body_cost_vec; add vect_body argument to call to add_stmt_cost. + +2012-07-24 Richard Henderson + + * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison. + * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. + * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. + * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. + * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove + comment reference. + * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. + * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New. + (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX. + * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. + * config/vax/vax.md (fixuns_trunc): New. + * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove. + * doc/tm.texi: Rebuild. + +2012-07-24 Richard Henderson + + * optabs.def: New file. + * Makefile.in (OPTABS_H): Add insn-opinit.h. + (MOSTLYCLEANFILES): Likewise. + (insn-opinit.o): Remove reload.h + (simple_rtl_generated_c): Remove insn-opinit.c. + (s-opinit): New rule. + (build/genopinit.o): Add optabs.def. + * genopinit.c (rtx_upname): New. + (optabs): Extract to optabs.def + (enum optab_tag, struct optab_def_d, optabs): New. + (struct pattern_d, patterns): New. + (match_pattern): Split out from ... + (gen_insn): ... here. Push matches on patterns vec. + (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New. + (header_file_name, source_file_name, handle_arg): New. + (open_outfile): New. + (main): Sort and emit new tables. Generate lookup_handler, + raw_optab_handler, swap_optab_enable. + * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op". + * optabs.c (code_to_optab_): Remove. + (hash_libfunc): Update for optab name change. + (eq_libfunc): Likewise. + (convert_optab_libfunc): Update computation of optab member; + use the new convlib_def table. + (optab_libfunc): Similarly. + (set_optab_libfunc, set_conv_libfunc): Likewise. + (sign_expand_binop): Use swap_optab_enable instead of fake optabs. + (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove. + (init_optabs): Don't call them; export the data to optabs.def. + (gen_int_libfunc, gen_fp_libfunc): Export non-static. + (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise. + (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise. + (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise. + (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise. + (gen_int_signed_fixed_libfunc): Likewise. + (gen_int_unsigned_fixed_libfunc): Likewise. + (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise. + (gen_ufloat_conv_libfunc): Likewise. + (gen_int_to_fp_nondecimal_conv_libfunc): Likewise. + (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise. + (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise. + (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise. + (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise. + (debug_optab_libfuncs): Update for optab representation change. + * optabs.h: Include insn-opinit.h. + (optab, convert_optab, direct_optab): New typedefs. + (struct optab_handlers, struct widening_optab_handlers): Remove. + (struct optab_libcall_d): Rename from optab_d; remove code_, + handlers, widening members. + (struct convert_optab_libcall_d): Rename from convert_optab_d; + remove code_ and handlers members. + (enum optab_index, enum convert_optab_index): Remove. + (enum direct_optab_index): Remove. + (code_to_optab_): Fix array range. + (optab_to_code): Covert to inline function. + (optab_to_code_, convlib_def, normlib_def): Declare. + (raw_optab_handler, swap_optab_enable): Declare. + (unknown_optab): Remove; export to optabs.def + (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab, + usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab, + ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab, + addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab, + smul_widen_optab, umul_widen_optab, usmul_widen_optab, + smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab, + usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab, + ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab, + sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab, + umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab, + ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab, + rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab, + vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab, + atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab, + movstrict_optab, movmisalign_optab, storent_optab, neg_optab, + negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab, + ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab, + parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab, + cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab, + ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab, + log_optab, log10_optab, log2_optab, log1p_optab, floor_optab, + ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab, + tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab, + cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab, + lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab, + cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab, + reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab, + reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab, + usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab, + vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab, + vec_realign_load_optab, vec_widen_umult_hi_optab, + vec_widen_umult_lo_optab, vec_widen_smult_hi_optab, + vec_widen_smult_lo_optab, vec_widen_umult_even_optab, + vec_widen_umult_odd_optab, vec_widen_smult_even_optab, + vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab, + vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab, + vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab, + vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab, + vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab, + vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab, + vec_pack_usat_optab, vec_pack_sfix_trunc_optab, + vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab, + sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab, + sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab, + sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab, + sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab, + sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab, + ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab, + ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab, + fract_optab, fractuns_optab, satfract_optab, satfractuns_optab, + vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab, + movcc_optab, reload_in_optab, reload_out_optab, movmem_optab, + setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab, + sync_lock_release_optab, sync_add_optab, sync_sub_optab, + sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab, + atomic_exchange_optab, atomic_compare_and_swap_optab, + atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab, + atomic_sub_fetch_optab, atomic_and_fetch_optab, + atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab, + atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab, + atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab, + atomic_add_optab, atomic_sub_optab, atomic_and_optab, + atomic_nand_optab, atomic_xor_optab, atomic_or_optab, + atomic_always_lock_free_optab, atomic_is_lock_free_optab, + atomic_thread_fence_optab, atomic_signal_fence_optab, + vec_perm_optab, vec_perm_const_optab): Likewise. + (struct target_optabs): Remove x_optab_table, x_convert_optab_table, + and x_direct_optab_table members; add pat_enable. + (optab_table, convert_optab_table, direct_optab_table): Remove. + (optab_handler): Use raw_optab_handler. + (widening_optab_handler, convert_optab_handler): Likewise. + (set_optab_handler, set_widening_optab_handler): Remove. + (set_convert_optab_handler, set_direct_optab_handler): Remove. + (direct_optab_handler): Defer to optab_handler. + * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New. + +2012-07-24 Jason Merrill + + * bitmap.c (bitmap_descriptor): Adjust order of parameters to + match MEM_STAT_DECL. + * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo. + +2012-07-24 Richard Henderson + + * optabs.h (struct optab_d): Rename code member to code_. + (struct convert_optab_h): Likewise. + (code_to_optab_): Rename from code_to_optab. + (code_to_optab, optab_to_code): New. + * dojump.c (do_compare_rtx_and_jump): Use code_to_optab. + * ifcvt.c (noce_emit_move_insn): Likewise. + * optabs.c (simplify_expand_binop): Use optab_to_code. + (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise. + (avoid_expensive_constant, expand_binop_directly): Likewise. + (expand_binop, expand_simple_unop, expand_unop_direct): Likewise. + (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise. + (have_insn_for, debug_optab_libfuncs): Likewise. + (init_optab, init_optabv, init_convert_optab): Update for optab + member name change. + + * libfuncs.h: Include optabs.h. + * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h. + * Makefile.in (LIBFUNCS_H): Add OPTABS_H. + (lto-streamer-in.o, dwarf2out.o): Update deps. + + * optabs.h (unknown_optab): New. + * builtins.c (interclass_mathfn_icode): Use it. + * dojump.c (do_compare_rtx_and_jump): Likewise. + * optabs.c (optab_for_tree_code, expand_binop): Likewise. + * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise. + (expand_vector_operations_1): Likewise. + * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise. + * tree-vect-stmts.c (supportable_narrowing_operation): Likewise. + +2012-07-24 Steven Bosscher + + * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check. + +2012-07-24 Ramana Radhakrishnan + + PR target/54051 + * config/arm/arm.c (arm_print_operand_address): Remove superfluous + printing of 0. + * config/arm/neon.md ("neon_vld3_lane":VD): Remove alignment + specifier. + ("neon_vld3_lane":VMQ): Likewise. + ("neon_vld3_dup":VDX): Likewise. + ("neon_vst3_lane":VD): Likewise. + ("neon_vst3_lane":VMQ): Likewise. + +2012-07-24 Roland McGrath + + * arm.c (arm_get_frame_offsets): Don't use fixed regs for + stack alignment padding. + +2012-07-24 Uros Bizjak + + PR target/53961 + * config/i386/i386.c (ix86_legitimate_address_p): Move check for + negative constant address for TARGET_X32 ... + (ix86_decompose_address): ... here. Reject constant addresses + that don't satisfy x86_64_immediate_operand predicate. + +2012-07-24 Julian Brown + + * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check. + +2012-07-24 Steven Bosscher + + * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS. + Move test to check that there is a popcount function for the the number + of bits in SBITMAP_ELT_BITS to sbitmap.c. + * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT. + MEM_STAT_INFO): Define in terms of their ALONE counterparts. + + * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled. + * configure: Regenerate. + * statistics.h (GATHER_STATISTICS): Error out if it is not defined. + (GCC_MEM_STAT_ARGUMENTS): New define. + (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS. + (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines. + (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT, + FINAL_PASS_MEM_STAT): Define. + * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL. + * ggc.h (ggc_record_overhead, ggc_free_overhead, + ggc_prune_overhead_list): Remove internal prototypes, they are defined + already in ggc-internal.h. + * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS + wrappers. + (add_statistics): Likewise. + (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0. + * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS + wrappers around "survived" and "stats" members. + (alloc_large_page): Always initialize survived. + (ggc_internal_alloc_zone_stat): Likewise. + Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if + GATHER_STATISTICS is non-0. + (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code. + (sweep_pages): Always increase survived. + (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code. + (calculate_average_page_survival): Always define. + (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code. + (ggc_print_statistics): Likewise. + (ggc_pch_read): Likewise. + * ggc-page.c (struct globals): Always define "stats" member. + (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code. + (ggc_free): Likewise. + (ggc_collec): Likewise. + (ggc_print_statistics): Likewise. + * bitmap.h (struct bitmap_head_def): Always define "desc" member. + (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code. + * gimple.h (enum gimple_alloc_kind): Always define. + (gimple_alloc_kind): Likewise. + * tree-flow.h (phinodes_print_statistics): Always define. + (ssanames_print_statistics): Likewise. + * vec.h (vec_heap_free): Always define. + (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0. + * alloc-pool.c (alloc_pool_descriptor): Always define. + (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code. + (empty_alloc_pool): Likewise. + (pool_alloc): Likewise. + (pool_free): Likewise. + (dump_alloc_pool_statistics): Likewise. + (print_statistics): Always define. + * bitmap.c (struct bitmap_descriptor): Always define. + (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT. + (register_overhead): Always define. + (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code. + (bitmap_element_allocate): Likewise. + (bitmap_elt_clear_from): Likewise. + (bitmap_obstack_alloc_stat): Likewise. + (bitmap_gc_alloc_stat): Likewise. + (bitmap_obstack_free): Likewise. + (bitmap_find_bit): Likewise. + (bitmap_ior_and_into): Likewise. + (bitmap_print): Likewise. + (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0. + * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define. + (gimple_alloc_kind_names): Likewise. + (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code. + (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0. + * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts, + rtvec_alloc_sizes): Always define. + (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code. + (rtx_alloc_stat): Likewise. + (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0. + * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts, + tree_node_sizes, tree_node_kind_names): Always define. + (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS + to if-code. + (type_hash_canon): Likewise. + (dump_tree_statistics): Likewise. + * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created): + Always define. + (ssanames_print_statistics): Likewise. + (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code. + * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define. + (phinodes_print_statistics): Likewise. + (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code. + * vec.c (struct vec_descriptor): Always define. + (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr, + vec_descriptor, rester_overhead, free_overhead): Likewise. + (cmp_statistic): Likewise. + (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code. + (vec_heap_o_reserve_1): Likewise. + (dump_vec_loc_statistics): Likewise. + +2012-07-24 Richard Guenther + + PR tree-optimization/53616 + * tree-loop-distribution.c (ldist_gen): Do not change + partition ordering when merging partitions. + +2012-07-24 Alan Modra + + PR target/53914 + PR target/54009 + * config/rs6000/constraints.md (Y): Use mem_operand_gpr. + * config/rs6000/predicates.md (word_offset_memref_operand): Delete. + Adjust all rs6000_legitimate_offset_address_p calls. + * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare. + (rs6000_secondary_reload_gpr): Declare. + (rs6000_legitimate_offset_address_p): Update prototype. + (rs6000_offsettable_memref_p): Delete. + (rs6000_secondary_reload_ppc64): Delete. + * config/rs6000/rs6000.c (address_offset): New function. + (mem_operand_gpr): Likewise. + (rs6000_legitimate_offset_address_p): Add worst_case param. When + not worst_case assume class of regs with least restrictive offsets. + Adjust all calls. + (legitimate_lo_sum_address_p): Simplify register mode tests. + (rs6000_legitimize_address): Likewise. Assume best case offset + addressing. Combine ELF and MACHO lo_sum code. + (rs6000_mode_dependent_address): Correct offset addressing limits. + (rs6000_offsettable_memref_p): Make static, add reg_mode param. + Use reg_mode to help rs6000_legitimate_offset_address_p. + (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi + gpr load/store when offset too large. + (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64. + (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls. + * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint + for gpr load/store. Order alternatives as r->Y,Y->r,r->r and + d->m,m->d,d->d. Correct size of gpr load/store. + (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order + alternatives. + (movti_ppc64): Likewise. + (movdi_internal32): Likewise. Also disparage fprs. + (movdi_mfpgpr, movdi_internal64): Likewise. + (movtf_internal): Use 'm' for fpr load/store. Order alternatives. + (movtf_softfloat): Order alternatives. + (extenddftf2_internal): Use 'm' and 'Y' for store. + (movti_power, movti_string): Use 'Y' for gpr load/store. Order. + (stack_protect_setdi, stack_protect_testdi): Likewise. + (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives. + (movdf_softfloat64): Likewise. + (reload__store): Adjust reload_di_store to provide + reload_si_store as well. + (reload__load): Likewise. + +2012-07-23 Oleg Endo + + PR target/51244 + * config/sh/predicates.md (general_movsrc_operand, + general_movdst_operand): Reject T_REG. + * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg, + movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg): + Remove T_REG alternatives. + (*negtstsi): New insn. + +2012-07-23 Oleg Endo + + PR target/53511 + * config/sh/sh.md (mulsf3_ie): Delete. + (mulsf3_i4): Rename to mulsf3_i. + (mulsf3): Emit mulsf3_i insn. + +2012-07-23 Oleg Endo + + * config/sh/sh.md (addc1, subc1): Delete. + (adddi3_compact): Use addc instead of addc1. + (subdi3_compact): Use subc instead of subc1. + +2012-07-23 Uros Bizjak + + * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype. + * config/i386/i386.c (ix86_lea_outperforms): Make static. Make + split_cost argument signed. + (ix86_avoid_lea_for_add): Cleanup. + (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1. + (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed. + Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup. + +2012-07-23 Ulrich Weigand + + * config/arm/arm.c (arm_reorg): Ensure all insns are split. + +2012-07-23 Uros Bizjak + + PR target/53961 + * config/i386/i386.md (*lea): Add asserts to detect invalid addresses. + * config/i386/i386.c (ix86_print_operand_address): Ditto. + (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...))) + addresses. Prevent zero extensions of CONST_INT operands. + +2012-07-23 Steven Bosscher + + * sbitmap.h (struct int_list): Remove. + (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc): + Remove prototypes of non-existing function. + (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors, + sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove + unused defines. + (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds, + sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to... + * basic-block.h: ... here. + * sbitmap.c: Do not include basic-block.h. + (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds, + sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to... + * cfganal.c: ... here. + * bt-load.c (compute_out, link_btr_uses): Update for above changes. + * gcse.c (compute_code_hoist_vbeinout): Likewise. + * lcm.c (compute_antinout_edge, compute_available): Likewise. + * Makefile.in: Fix sbitmap.o dependencies. + +2012-07-23 Jan-Benedict Glaw + Nick Clifton + + * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype. + * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of + (unused) parameter to void *. + +2012-07-23 Richard Guenther + + * tree-ssa-alias.c (dump_alias_info): Walk over local decls + instead of referenced vars. + +2012-07-23 Steven Bosscher + + * coverage.c: Refer to "notes file" instead of "graph file" + in all comments. Explain history of bbg prefix. + * gcov-io.h: Likewise. + * gcov.c: Likewise. + (find_source): Likewise in fnotice. + (read_graph_file): Likewise. + (read_count_file): Likewise. + * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file" + and "data file" explicitly in the explanation of the files. + +2012-07-22 Steven Bosscher + + PR tree-optimization/53881 + * tree-cfg.c (group_case_labels_stmt): Look up the basic block + for each label and compare them instead of labels. + +2012-07-22 Steven Bosscher + + * opts.c (common_handle_option): Do not set + flag_value_profile_transformations for -fprofile-generate. + * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE. + (BB_TO_GCOV_INDEX): Remove. + (output_location): Don't use it. + (branch_prob): Likewise. Don't fiddle with the index of + ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks. + (find_spanning_tree): + * gcov.c (struct function_info): Document that blocks 0 and 1 + are the entry resp. exit blocks in gcov, too, like in GCC itself. + (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special + blocks identification. + (output_lines): Likewise. + * value-prof.c (gimple_value_profile_transformations): Do not + test flag_value_profile_transformations again. + (gimple_ic_transform): Take a gimple_stmt_iterator like all other + transformation functions. + (gimple_values_to_profile): + Don't test flag_value_profile_transformations + * tree-profile.c (tree_profiling): Assert that the cgraph is in + the CGRAPH_STATE_IPA_SSA state. + Do not set, or look at, after_tree_profile. + * function.h (struct function): Remove after_tree_profile bit. + * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile. + * tree-inline.c (initialize_cfun): Don't copy it. + * lto-streamer-out.c (output_struct_function_base): Don't stream it. + * lto-streamer-in.c (input_struct_function_base): Likewise. + +2012-07-22 Oleg Endo + + * config/sh/sh.h (TARGET_DYNSHIFT): New macro. + (SH_DYNAMIC_SHIFT_COST): Use it. + * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise. + (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition. + Add sanity check for input value. Add function description. + * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3, + lshrsi3_d): Use TARGET_DYNSHIFT. + +2012-07-22 Oleg Endo + + * config/sh/sh.md (negc): Delete expander. + (*negc): Rename insn to negc. + +2012-07-22 Uros Bizjak + + PR target/53961 + * config/i386/i386.md (*lea): New insn pattern. + (*lea_1): Remove. + (*lea_2): Ditto. + (*lea_{3,4,5,6}_zext): Ditto. + * config/i386/predicates.md (lea_address_operand): Do not reject + zero-extended address operands. + * config/i386/constraints.md (j): Remove address constraint. + * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg + of an address. + (ix86_print_operand_address): Handle SImode subreg of an address. + (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now. + +2012-07-22 Hans-Peter Nilsson + + Emit executable-stack note correctly for CRIS targets. + * config/cris/cris.c (cris_file_end): New function. + (TARGET_ASM_FILE_END): Define. + +2012-07-22 Chung-Lin Tang + Maxim Kuvyrkov + NetLogic Microsystems Inc. + + * config/mips/mips.c (mips_issue_rate): Handle XLP. + * config/mips/mips.md: Include xlp.md. + * config/mips/xlp.md: New file. + +2012-07-21 Steven Bosscher + + PR gcov-profile/32543 + * profile.c (branch_prob): Update total_num_edges_instrumented and + report the number of edges to instrument. + +2012-07-21 Oleg Endo + + * config/sh/sh.md: Correct comment regarding clrt and sett insns. + +2012-07-21 Andrew Pinski + + * config/mips/mips.md (*popcountdi2_trunc): New pattern + to handle popcount of a truncation. + +2012-07-21 Andrew Pinski + + * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load): + Add a bool argument. + * config/mips/mips.c (mips_block_move_straight): Update call to + mips_expand_ext_as_unaligned_load. + (mips_expand_ext_as_unaligned_load): Add unsigned_p argument. + Accept DImode dest when the width is that of SImode. + * config/mips/mips.md (extv): Update call to + mips_expand_ext_as_unaligned_load. + (extzv): Likewise. + +2012-07-21 Andrew Pinski + + * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling + adjust_address. + +2012-07-20 Maxim Kuvyrkov + + * config/mips/mips.md (define_attr sync_*): Move before "type". + (define_attr "type"): New values "atomic" and "syncloop". + * config/mips/sync.md (atomic_exchange, atomic_fetch_add): + Set "type" attribute. + * config/mips/generic.md (generic_atomic, generic_syncloop): + New reservations. + * config/mips/10000.md, config/mips/20kc.md, + * config/mips/24k.md, config/mips/4130.md, + * config/mips/4k.md, config/mips/5400.md, + * config/mips/5500.md, config/mips/5k.md, + * config/mips/7000.md, config/mips/74k.md, + * config/mips/9000.md, config/mips/loongson2ef.md, + * config/mips/loongson3a.md, config/mips/octeon.md, + * config/mips/sb1.md, config/mips/sr71k.md, + * config/mips/xlr.md: Handle "atomic" and "syncloop" types. + +2012-07-20 Oleg Endo + + * config/sh/sh.md: Group and sort shift related patterns. + (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes. + +2012-07-20 Hans-Peter Nilsson + + * config/cris/cris.c (cris_asm_output_ident): Remove unused + local variables section_asm_op, size, buf. + +2012-07-20 Pat Haugen + Steven Bosscher + + * config/rs6000/power4.md (power4-store-update): Fix reservation. + (power4-three): Likewise. + +2012-07-20 Sameera Deshpande + Greta Yorsh + + * config/arm/arm.c (arm_cortex_a15_tune): New tune. + * config/arm/arm-cores.def (cortex-a15): Use it. + +2012-07-20 Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd. + * config/arm/arm.c (arm_slowmul_tune): Initialize it. + (arm_fastmul_tune, arm_strongarm_tune): Likewise. + (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise. + (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise. + (arm_fa726te_tune): Likewise. + +2012-07-20 Richard Guenther + + * tree-dfa.c (collect_dfa_stats): Simplify. + * tree-ssa-structalias.c (compute_may_aliases): Do not dump + referenced vars. + * cfgexpand.c (estimated_stack_frame_size): Walk over local + decls instead of referenced vars. + * tree-ssa.c (delete_tree_ssa): Simplify. + * tree-tailcall.c (find_tail_calls): Walk over local decls + instead of referenced vars. + (add_virtual_phis): Remove. + (tree_optimize_tail_calls_1): Instead mark the virtual operand + for renaming. + +2012-07-20 Steven Bosscher + + * basic-block.h (BB_FLAGS_TO_PRESERVE): New define. + (brief_dump_cfg): Update prototype to take flags argument. + (check_bb_profile): Remove prototype. + * tracer.c (tracer): Update brief_dump_cfg calls. + * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info. + Call dump_bb_info before and after the cfghook dump_bb. Terminate + the dump with a newline. + (dump_flow_info): Do not call check_bb_profile. + * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE. + (check_bb_profile): Make static. Take indent and flags arguments. + (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call + check_bb_profile. Print one edge per line. + (brief_dump_cfg): Take a flags argument, and filter out + TDF_COMMENT and TDF_DETAILS. + * pretty-print.c (pp_base_newline): Set pp_needs_newline to false. + * gimple-pretty-print.c (dump_gimple_bb_header): Do not use + dump_bb_info here, it is already called from dump_bb. Idem for + check_bb_profile. + (dump_gimple_bb_footer): Likewise. + (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to + avoid broken dumps for statement histograms. + (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do + not call pp_flush here, the buffer should be empty. + * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb. + * sched-vis.c (debug_bb_slim): Likewise. + * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb. + (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb. + (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT. + (dump_function_to_file): Do not call check_bb_profile on + ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them. + Use dump_bb instead of gimple_dump_bb. + (print_loops_bb): Use dump_bb instead of gimple_dump_bb. + * passes.c (execute_function_dump): Always call print_rtl_with_bb + for RTL dumps. + * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date + CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and + bottom of each basic block. + +2012-07-20 Richard Guenther + + PR tree-optimization/54031 + * tree-ssa-ccp.c (get_value_from_alignment): Use + get_pointer_alignment_1. + +2012-07-20 Richard Guenther + + * tree-inline.c (add_local_variables): Remove check_var_ann + parameter and dead code. + (expand_call_inline): Adjust. + (tree_function_versioning): Likewise. + +2012-07-20 Jakub Jelinek + + PR c++/28656 + * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead + of just the first one. + +2012-07-20 Richard Guenther + + * builtins.c (get_object_alignment_2): Correct offset handling + when using type alignment of a MEM_REF kind base. + +2012-07-20 Kirill Yukhin + + PR target/53877 + * config/i386/lzcntintrin.h (_lzcnt_u32): New. + (_lzcnt_u64): Ditto. + +2012-07-19 Eric Botcazou + + * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber. + +2012-07-19 Eric Botcazou + + * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the + defining statement is a SSA name that occurs in abnormal PHIs. + +2012-07-19 Eric Botcazou + + * gimple-fold.c (canonicalize_constructor_val): Strip only useless type + conversions. + +2012-07-19 Jakub Jelinek + + PR rtl-optimization/53942 + * function.c (assign_parm_setup_reg): Avoid zero/sign extension + directly from likely spilled non-fixed hard registers, move them + to pseudo first. + +2012-07-19 Steve Ellcey + + * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in + MIPS16 mode. + +2012-07-19 Jason Merrill + + PR debug/53235 + * dwarf2out.c (get_die_parent): New. + (generate_type_signature): Use it. + +2012-07-19 Richard Henderson + + * config/ia64/vect.md (smulv4hi3_highpart): New. + (umulv4hi3_highpart): New. + (vec_widen_smult_even_v4hi): Rename from pmpy2_even. + (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd. + (udot_prodv8qi, sdot_prodv8qi): Remove. + (sdot_prodv4hi, udot_prodv4hi): Remove. + * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove. + * config/ia64/ia64-protos.h: Update. + + * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require + vectors larger than UNITS_PER_WORD. + + * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing. + * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for + dummy != CODE_FOR_nothing value. + +2012-07-19 Uros Bizjak + + * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument. + * doc/tm.texi: Regenerate. + * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call. + * config/sh/sh.h (MODE_AFTER): Update. + * config/epiphany/epiphany.h (MODE_AFTER): Update. + +2012-07-19 Jakub Jelinek + + PR middle-end/54017 + * tree-cfgcleanup.c (cleanup_omp_return): Remove. + (cleanup_tree_cfg_bb): Don't call it. + * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case + handling. + +2012-07-19 Christian Bruel + + PR target/54029 + * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps. + +2012-07-19 Richard Guenther + Eric Botcazou + + * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment + about transition from invariant to known bits. + (likely_value): Addresses with UNDEFINED components are UNDEFINED. + +2012-07-19 Richard Guenther + + PR tree-optimization/53970 + * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning. + +2012-07-19 Tristan Gingold + Richard Henderson + + * opts.c (finish_options): Handle UI_SEH. + * expr.c (build_personality_function): Handle UI_SEH. + * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH. + * coretypes.h (unwind_info_type): Add UI_SEH. + * config/i386/winnt.c (i386_pe_seh_emit_except_personality): + New function. + (i386_pe_seh_init_sections): Likewise. + * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define. + (TARGET_ASM_INIT_SECTIONS): Define. + * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define. + (i386_except_unwind_info): New function. + +2012-07-18 Maciej W. Rozycki + Chao-ying Fu + + * config/mips/mips.opt (mmcu): New option. + * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define + _mips_mcu when TARGET_MCU. + (ASM_SPEC): Pass mcu options to the assembler. + * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu. + +2012-07-18 Ralf Corsépius + + * config.gcc (v850-*-rtems*): New target. + * config/v850/rtems.h: New. + * config/v850/t-rtems: New. + +2012-07-18 Bill Schmidt + + * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list + of flags controlling optimization; add -ftree-slsr to list of flags + enabled by default at -O; add -fhoist-adjacent-loads to list of flags + enabled by default at -O2; add -fvect-cost-model to list of flags + enabled by default at -O3; document -fhoist-adjacent-loads and + -ftree-slsr. + * opts.c (default_option): Make -ftree-slsr default at -O1 and above. + * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use + flag_tree_slsr. + * common.opt: Add -ftree-slsr with flag_tree_slsr. + +2012-07-18 Jie Zhang + Julian Brown + + * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR. + (arm_size_rtx_costs): Likewise. + (neon_valid_immediate): Add a case for double 0.0. + +2012-07-18 Andrew Stubbs + Mark Shinwell + Julian Brown + + * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp) + (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp) + (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp) + (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add + neon_type. + * config/arm/arm.md (neon_type): Update comment. + +2012-07-18 Richard Guenther + + PR tree-optimization/53970 + * tree.h (contains_packed_reference): Remove. + * expr.c (contains_packed_reference): Likewise. + * tree-vect-data-refs.c (not_size_aligned): New function. + (vector_alignment_reachable_p): Use it. + (vect_supportable_dr_alignment): Likewise. + +2012-07-18 Richard Guenther + + * tree.h (get_object_or_type_alignment): Remove. + * builtins.c (get_object_alignment_2): New function copied from + get_object_alignment_1. Take extra argument to indicate whether + we take the address of EXP. Rework to use type alignment information + if not, and return whether the result is an approximation or not. + (get_object_alignment_1): Wrap around get_object_alignment_2. + (get_pointer_alignment_1): Call get_object_alignment_2 indicating + we take the address. + (get_object_or_type_alignment): Remove. + * expr.c (expand_assignment): Call get_object_alignment. + (expand_expr_real_1): Likewise. + +2012-07-18 Nick Clifton + + * doc/invoke.texi (ARM Options): Document -munaligned-access. + +2012-07-18 Oleg Endo + + * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in + expander. Use arith_reg_dest predicate. + (rotldi3, rotrdi3): Remove constraints in expander. + (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact, + ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to + insn_and_split. + +2012-07-18 Oleg Endo + + PR target/33135 + * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct + description. + * config/sh/sh.c (sh_option_override): Do not change + flag_finite_math_only. Set TARGET_IEEE to complement of + flag_finite_math_only. + * doc/invoke.texi (SH options): Add mno-ieee. Correct description + of mieee and mno-ieee behavior. + +2012-07-18 Steven Bosscher + + * graphite-poly.c (print_pbb_body): Fixup dump_bb call. + +2012-07-18 Steven Bosscher + + * dumpfile.h (TDF_COMMENT): New define. + * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL, + EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU, + EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE, + EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE): + Move to new file cfg-flags.h. + (enum cfg_edge_flags): New enum, using cfg-flags.h. + (EDGE_ALL_FLAGS): Compute value automatically. + (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK, + BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION, + BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL, + BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED, + BB_IN_TRANSACTION): Move to new file cfg-flags.h. + (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h. + (BB_ALL_FLAGS): New, compute value automatically. + (dump_bb_info): Update prototype. + (dump_edge_info): Update prototype. + * cfg-flags.h: New file. + * cfg.c (dump_edge_info): Take flags argument. Be verbose only if + TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames. + Check that the edge flags are within the range of EDGE_ALL_FLAGS. + (debug_bb): Update dump_bb call. + (dump_cfg_bb_info): Remove. + (dump_bb_info): New function. Use cfg-flags.h for bitnames. + Adjust verbosity using TDF_* flags. Check that the basic block flags + are within the range of BB_ALL_FLAGS. + (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info. + * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE + first for consistency with other dump functions. + (dump_bb): Update prototype accordingly. + * cfghooks.c: Include dumpfile.h. + (verify_flow_info): Update dump_edge_info calls. + (dump_bb): Take a flags argument and pass it around. + Use dump_bb_info to dump common information about a basic block. + (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic. + (debug_flow_info): Moved here from cfgrtl.c. + * profile.c (is_edge_inconsistent): Update dump_bb calls. + * loop-invariant.c (find_defs): Update print_rtl_with_bb call. + * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim, + print_rtl_slim_with_bb): Remove prototypes. + (dump_insn_slim): Adjust prototype to take a const_rtx. + (print_rtl_with_bb): Adjust prototype. + * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim. + * sched-vis.c (dump_insn_slim): Take a const_rtx. + (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker. + (print_rtl_slim_with_bb): Remove. + (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info, + not basic block info (print_rtl_with_bb with TDF_SLIM should be used + for that. Prototype here near DEBUG_FUNCTION marker. + (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker. + Use dump_bb. + (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker. + * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX. + (remove_bb): Update dump_bb call. + (gimple_debug_bb): Use dump_bb. + (dump_function_to_file): Update gimple_dump_bb call. + (print_loops_bb): Likewise. + * tree-flow.h (gimple_dump_bb): Update prototype. + * gimple-pretty-print.c (dump_bb_header): Rename to + dump_gimple_bb_header. Write to a stream instead of a pretty + printer. Use dump_bb_info to dump basic block info. + (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a + stream instead of a pretty printer. Use dump_bb_info. + (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end. + (gimple_dump_bb): Do it here with dump_gimple_bb_header and + dump_gimple_bb_footer. + * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the + dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM. + (print_rtl_with_bb): Take a flags argument and pass it around. + Use dump_insn_slim if TDF_SLIM. + (dump_bb_info): Removed and re-incarnated in cfg.c. + (dump_flow_info): Moved to cfghooks.c. + (debug_flow_info): Moved to cfghooks.c. + * passes.c (execute_function_dump): Unconditionally use + print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM. + * final.c (dump_basic_block_info): Update dump_edge_info calls. + * tree-vrp.c (dump_asserts_for): Likewise. + * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb. + * tree-if-conv.c (if_convertible_bb_p): Don't look at + EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world. + * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL, + for the same reason. + * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls. + +2012-07-17 Richard Guenther + + * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced + vars here, use create_tmp_reg where appropriate. + (vect_create_addr_base_for_vector_ref): Do not add referenced + vars here, use create_tmp_reg where appropriate. + (vect_create_data_ref_ptr): Likewise. + (vect_create_destination_var): Likewise. + (vect_permute_store_chain): Likewise. + (vect_permute_load_chain): Likewise. + * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): + Likewise. + * tree-vect-loop.c (get_initial_def_for_induction): Likewise. + * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise. + (vect_handle_widen_op_by_const): Likewise. + * tree-vect-stmts.c (vect_init_vector): Likewise. + (vectorizable_load): Likewise. + +2012-07-17 Tom de Vries + + * hwint.c: Fix loop range. + +2012-07-17 Tom de Vries + + * double-int.h (double_int_popcount): New inline function. + * hwint.c (popcount_hwi): New function. + * hwint.h (popcount_hwi): Declare function. New inline function. + +2012-07-17 Richard Henderson + + * tree-vect-stmts.c (supportable_widening_operation): Remove decl + parameters. + (vectorizable_conversion): Update supportable_widening_operation call. + * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise. + (vect_recog_widen_shift_pattern): Likewise. + * tree-vectorizer.h: Update decl. + +2012-07-17 Ramana Radhakrishnan + Ulrich Weigand + + * common/config/arm/arm-common.c (arm_option_optimization_table): + Enable -fsched-pressure by default while optimizing. + * config/arm/arm.c (arm_option_override): Use the alternate scheduler + pressure algorithm by default. + +2012-07-16 Oleg Endo + + * config/sh/sh.h (CONST_OK_FOR_I06): Delete. + (CONST_OK_FOR_I10): Move macro to ... + * config/sh/sh.c: ... here. + (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of + CONST_OK_FOR_I06. + +2012-07-16 Oleg Endo + + * config/sh/sh.md: Delete mov related define_peephole patterns. + +2012-07-16 Jonathan Wakely + + PR c++/53919 + * doc/install.texi (Installing GCC): Refer to instructions for + released versions. Fix hyphenation. + +2012-07-16 Ulrich Weigand + + * config/spu/spu.c (targetm): Move to bottom of file. + (spu_attribute_table): Likewise. + (spu_option_override, spu_init_builtins, spu_builtin_decl, + spu_scalar_mode_supported_p, spu_vector_mode_supported_p, + spu_legitimate_address_p, spu_addr_space_legitimate_address_p, + adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store, + frame_emit_load, frame_emit_add_imm, emit_nop_for_insn, + insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare, + get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate, + spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global, + spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute, + spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg, + spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start, + spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr, + spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs, + spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory, + spu_encode_section_info, spu_legitimize_address, + spu_addr_space_legitimize_address, spu_builtin_mask_for_load, + spu_builtin_vectorization_cost, spu_vector_alignment_reachable, + spu_addr_space_pointer_mode, spu_addr_space_address_mode, + spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii, + spu_section_type_flags, spu_select_section, spu_unique_section, + spu_trampoline_init, spu_conditional_register_usage, + spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode, + spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode, + spu_setup_incoming_varargs): Remove prototypes. + (spu_legitimize_address): Add "static" to definition. + +2012-07-16 Jakub Jelinek + + * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon. + +2012-07-16 Ulrich Weigand + + * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p + before calling gsi_stmt. + +2012-07-16 Kirill Yukhin + + Revert + 2012-07-16 Sergey Melnikov + + * config/i386/i386.md (stack_protect_set): Disable the pattern + for Android since Android libc (bionic) does not provide random + value for stack protection guard at gs:0x14. Guard value + will be provided from external symbol (default implementation). + (stack_protect_set_): Likewise. + (stack_protect_test): Likewise. + (stack_protect_test_): Likewise. + +2012-07-16 H.J. Lu + + PR middle-end/53959 + PR bootstrap/53963 + * gimple.c (gimple_types_compatible_p_1): Restore type attribute + comparison. + +2012-07-16 Bill Schmidt + + * opts.c (default_option): Add -fvect-cost-model to default options + at -O3 and above. + +2012-07-16 Steven Bosscher + + * graphite-clast-to-gimple.c, graphite-dependences.c, + graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h + for pass TODO flags. + * Makefile.in: Fix dependencies. + +2012-07-16 Steven Bosscher + + * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU. + * cfgrtl.c (force_nonfallthru_and_redirect): Likewise. + + * function.c (stack_protect_epilogue): Use expand_call to expand + targetm.stack_protect_fail. + * stmt.c (expand_expr_stmt): Remove now-unused function. + * tree.h (expand_expr_stmt): Remove prototype. + * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this + hook must return a CALL_EXPR. + * doc/tm.texi: Regenerate. + + * emit-rtl.c (emit_label_before): Do not allow the same label + to be emitted twice. + (emit_label_after): Likewise. + (emit_label): Likewise. + + * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, + TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h. + * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, + TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home. + +2012-07-16 Steven Bosscher + + * system.h (dump_file): Do not define. + * tree-pass.h: Include dumpfile.h, which is a new file containing... + (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p, + dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p, + dump_flag_name, dump_file, dump_flags, dump_file_name, + get_dump_file_info, struct dump_file_info): all of this, moved to... + * dumpfile.h: Here, new file. + * tree-dump.h: Include dumpfile.h, but not tree-pass.h. + (dump_stmt): Remove prototype for C++ specific function. + (dump_enumerated_decls): Move prototype from here... + * tree-flow.h (dump_enumerated_decls): ... to here. + (get_ref_base_and_extent) Move prototype from here ... + * tree.h (get_ref_base_and_extent) ... to here. + * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because + gimple-pretty-print.h is enough. Do not include tree-dump.h, + include timevar.h and dumpfile.h instead. + (struct numbered_tree_d, compare_decls_by_uid, + dump_enumerated_decls_push, dump_enumerated_decls): Move from here ... + * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid, + dump_enumerated_decls_push, dump_enumerated_decls):... to here. + Do not include timevar.h. + * tree.c: Do not include timevar.h. + * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and + timevar.h. + (dump_cfg_stats): Use current_function_name. + (gimple_cfg2vcg): Likewise. + (dump_function_to_file): Likewise. + * df-scan.c: Do not include tree-pass.h and timevar.h. + Include dumpfile.h. + (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not + use print_current_pass. + * df-problems.c: Include dumpfile.h. + Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it + leads to errors in the code not selected. + (df_note_compute): Do not print_rtl_with_bb here. Fix compilation + bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here. + * lcm.c: Include dumpfile.h. + Remove obsolete include of insn-attr.h. + * dojump.c (do_compare_rtx_and_jump): Remove failure printing for + missing probability notes. + * stmt.c: Include dumpfile.h. + (emit_case_decision_tree): Re-enable printing expand details only + if TDF_DETAILS. + * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c, + cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c, + cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c, + coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c, + dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c, + function.c, fwprop.c, gcse.c, gimple-fold.c, + gimple-pretty-print.c, gimple-ssa-strength-reduction.c, + gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c, + graphite-dependences.c, graphite-interchange.c, + graphite-optimize-isl.c, graphite-poly.c, + graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c, + ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c, + ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c, + ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c, + jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c, + loop-unroll.c, loop-unswitch.c, lower-subreg.c, + lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c, + mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c, + plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c, + print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c, + regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c, + sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c, + store-motion.c, tracer.c, trans-mem.c, tree-affine.c, + tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c, + tree-data-ref.c, tree-diagnostic.c, tree-dump.c, + tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c, + tree-mudflap.c, tree-nrv.c, tree-object-size.c, + tree-optimize.c, tree-outof-ssa.c, tree-predcom.c, + tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c, + tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c, + tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c, + tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c, + tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, + tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, + tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, + tree-ssa-loop-manip.c, tree-ssa-loop-niter.c, + tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, + tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c, + tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c, + tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c, + tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c, + tree-ssa-threadedge.c, tree-ssa-threadupdate.c, + tree-ssa-uncprop.c, tree-ssa-uninit.c, + tree-switch-conversion.c, tree-tailcall.c, + tree-vect-data-refs.c, tree-vect-loop.c, + tree-vect-loop-manip.c, tree-vectorizer.c, + tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c, + tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h + only if needed. If tree-pass.h is included, do not include timevar.h + and dumpfile.h. If tree-pass.h is not included but dump_file, or + dump_flags, or the TDF_* flags are used, include dumpfile.h. + If gimple-pretty-print.h is included, don't include + tree-pretty-print.h. Remove assorted unnecessary includes. + + * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c, + config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c, + config/spu/spu.c, config/mep/mep.c, config/i386/i386.c: + Include dumpfile.h. + * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h. + * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep, + spu/t-spu-elf: Fix dependencies. + +2012-07-16 Dehao Chen + + Revert + 2012-07-10 Dehao Chen + + * tree.h (phi_arg_d): New field. + * tree-flow-inline.h (gimple_phi_arg_block): New function. + (gimple_phi_arg_block_from_edge): New function. + (gimple_phi_arg_set_block): New function. + (gimple_phi_arg_has_block): New function. + (redirect_edge_var_map_block): New function. + * tree-flow.h (_edge_var_map): New field. + * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used. + * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for + redirect_edge_var_map_add. + * tree-outof-ssa.c (_elim_graph): New field. + (insert_partition_copy_on_edge): New parameter. + (insert_value_copy_on_edge): New parameter. + (insert_rtx_to_part_on_edge): New parameter. + (insert_part_to_rtx_on_edge): New parameter. + (elim_graph_add_edge): New parameter. + (elim_graph_remove_succ_edge): New parameter. + (FOR_EACH_ELIM_GRAPH_SUCC): New parameter. + (FOR_EACH_ELIM_GRAPH_PRED): New parameter. + (new_elim_graph): Add block debug info. + (clear_elim_graph): Likewise. + (delete_elim_graph): Likewise. + (elim_graph_add_node): Likewise. + (elim_graph_add_edge): Likewise. + (elim_graph_remove_succ_edge): Likewise. + (eliminate_build): Likewise. + (elim_forward): Likewise. + (elim_unvisited_predecessor): Likewise. + (elim_backward): Likewise. + (elim_create): Likewise. + (eliminate_phi): Likewise. + (insert_backedge_copies): Likewise. + * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for + add_phi_arg. + (rewrite_add_phi_arguments): Likewise. + * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise. + * tree-ssa-tail-merge.c (replace_block_by): Likewise. + * tree-ssa-threadupdate.c (copy_phi_args): Likewise. + * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise. + * tree-ssa-loop-manip.c (create_iv): Likewise. + (add_exit_phis_edge): Likewise. + (split_loop_exit_edge): Likewise. + (copy_phi_node_args): Likewise. + (tree_transform_and_unroll_loop): Likewise. + * value-prof.c (gimple_ic): Likewise. + (gimple_stringop_fixed_value): Likewise. + * tree-tailcall.c (add_successor_phi_arg): Likewise. + (eliminate_tail_call): Likewise. + (create_tailcall_accumulator): Likewise. + (tree_optimize_tail_calls_1): Likewise. + * tree-phinodes.c (add_phi_arg): Likewise. + (make_phi_node): Likewise. + (resize_phi_node): Likewise. + (remove_phi_arg_num): Likewise. + * omp-low.c (expand_parallel_call): Likewise. + (expand_omp_for_static_chunk): Likewise. + * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop): + Likewise. + (slpeel_update_phi_nodes_for_guard1): Likewise. + (slpeel_update_phi_nodes_for_guard2): Likewise. + (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise. + (set_prologue_iterations): Likewise. + (slpeel_tree_peel_loop_to_edge): Likewise. + (vect_loop_versioning): Likewise. + * tree-parloops.c (create_phi_for_local_result): Likewise. + (transform_to_exit_first_loop): Likewise. + (create_parallel_loop): Likewise. + * ipa-split.c (split_function): Likewise. + * tree-vect-loop.c (get_initial_def_for_induction): Likewise. + (vect_create_epilog_for_reduction): Likewise. + * tree-vect-data-refs.c (vect_setup_realignment): Likewise. + * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise. + * tree-ssa-phiopt.c (cond_store_replacement): Likewise. + (cond_if_else_store_replacement_1): Likewise. + * tree-cfgcleanup.c (remove_forwarder_block): Likewise. + (remove_forwarder_block_with_phi): Likewise. + * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. + * tree-predcom.c (initialize_root_vars): Likewise. + (initialize_root_vars_lm): Likewise. + * sese.c (sese_add_exit_phis_edge): Likewise. + * tree-ssa-dce.c (forward_edge_to_pdom): Likewise. + * tree-ssa.c (flush_pending_stmts): Likewise. + (redirect_edge_var_map_add): Likewise. + (ssa_redirect_edge): Likewise. + * gimple-streamer-in.c (input_phi): Likewise. + * tree-vect-stmts.c (vectorizable_load): Likewise. + * tree-inline.c (copy_phis_for_bb): Likewise. + * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. + * tree-switch-conversion.c (fix_phi_nodes): Likewise. + * tree-cfg.c (reinstall_phi_args): Likewise. + (gimple_make_forwarder_block): Likewise. + (add_phi_args_after_copy_edge): Likewise. + (gimple_duplicate_sese_tail): Likewise. + +2012-07-16 Sergey Melnikov + + * config/i386/i386.md (stack_protect_set): Disable the pattern + for Android since Android libc (bionic) does not provide random + value for stack protection guard at gs:0x14. Guard value + will be provided from external symbol (default implementation). + (stack_protect_set_): Likewise. + (stack_protect_test): Likewise. + (stack_protect_test_): Likewise. + +2012-07-16 Hans-Peter Nilsson + + * config/cris/cris-protos.h (cris_legitimate_address_p): Declare. + * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of + CONSTANT_P and cris_legitimate_address_p. + * config/cris/cris.c (cris_legitimate_address_p): Make non-static. + (cris_preferred_reload_class): Don't return GENERAL_REGS as + preferred to MOF_SRP_REGS. + + * config/cris/cris.c (cris_init_libfuncs): Handle initialization + of library functions for basic atomic compare-and-swap. + * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro. + * config/cris/cris.opt (munaligned-atomic-may-use-library): New option. + * config/cris/sync.md ("atomic_fetch_") + ("cris_atomic_fetch__1") + ("atomic_compare_and_swap") + ("cris_atomic_compare_and_swap_1"): Make conditional on + TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte. + * config/cris/cris.c (cris_print_operand) : New cases. + * config/cris/sync.md (atomic_op_op_cnstr): New code_attr. + (atomic_op_op_pred): Ditto. + (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to + reflect the change to include %2 in expansion. All callers changed. + (qm3): New mode_attr. + ("atomic_fetch_"): Use + as predicate for operand 2. + ("cris_atomic_fetch__1"): Update FIXME. Use + "" "" for predicate and + constraint for operand 2. + ("atomic_compare_and_swap"): Add FIXME. Change predicate to + nonmemory_operand for operand 3. + ("cris_atomic_compare_and_swap_1"): Change operand 3 to + exclude memory. Improve emitted sync code for v10 and v32. Use + instead of for size designator for cmp. + ("atomic_compare_and_swap"): Change predicate to + nonmemory_operand for operand 3. Add FIXME. + ("cris_atomic_compare_and_swap_1"): Change predicates and + constraints for operand 3 to exclude memory. + ("atomic_fetch_") + ("atomic_compare_and_swap"): Gate expand_mem_thread_fence + calls on result of call to need_atomic_barrier_p. + +2012-07-15 Richard Sandiford + + * config/mips/mips.md (move_type): Replace mfhilo and mthilo + with mflo and mtlo. + (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi + and mtlo. Adjust move_type->type mapping. + (may_clobber_hilo): Split mthilo into mthi and mtlo. + (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16) + (*mov_internal, *mov_mips16, *movhi_internal) + (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo + instead of mthilo and mfhilo. + (mfhi_): Use mfhi instead of mfhilo. + (mthi_): Use mthi instead of mthilo. + * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w) + (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip): + Use mflo instead of mfhilo. + * config/mips/10000.md (r10k_arith): Split mthilo. + (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly. + * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise. + (ir_sb1_mthilo): Split mthilo into mthi and mtlo. + * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split + mthilo and mfhilo. + * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise. + * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo): + Likewise. + * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise. + * config/mips/5400.md (ir_vr54_hilo): Likewise. + * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise. + * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise. + * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise. + * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise. + * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise. + * config/mips/generic.md (generic_hilo): Likewise. + * config/mips/loongson2ef.md (ls2_alu): Likewise. + * config/mips/loongson3a.md (ls3a_mfhilo): Likewise. + * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2) + (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise. + * config/mips/sr71k.md (ir_sr70_hilo): Likewise. + * config/mips/xlr.md (xlr_hilo): Likewise. + +2012-07-14 Andrew Stubbs + Sandra Loosemore + + * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options. + +2012-07-14 Uros Bizjak + + * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode + for TARGET_SSE. + +2012-07-14 Steven Bosscher + + * toplev.c (init_asm_output): Open asm_out_file in 'w' mode. + +2012-07-13 Bill Schmidt + + PR bootstrap/53955 + * config/spu/spu.c (spu_init_cost): Mark static. + (spu_add_stmt_cost): Likewise. + (spu_finish_cost): Likewise. + (spu_destroy_cost_data): Likewise. + * config/i386/i386.c (ix86_init_cost): Mark static. + (ix86_add_stmt_cost): Likewise. + (ix86_finish_cost): Likewise. + (ix86_destroy_cost_data): Likewise. + * config/rs6000/rs6000.c (rs6000_init_cost): Mark static. + (rs6000_add_stmt_cost): Likewise. + (rs6000_finish_cost): Likewise. + (rs6000_destroy_cost_data): Likewise. + +2012-07-13 Steven Bosscher + + * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat, + ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args, + ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add + ATTRIBUTE_MALLOC. + * alloc-pool.h (pool_alloc): Likewise. + + * final.c (final): Do not loop to find max_uid. + +2012-07-13 Steven Bosscher + + * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static. + * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes. + +2012-07-13 Richard Guenther + + PR tree-optimization/53907 + * tree-ssa-forwprop.c (associate_pointerplus): New function. + (ssa_forward_propagate_and_combine): Call it. + +2012-07-13 Richard Guenther + + PR tree-optimization/53922 + * tree-vrp.c (value_inside_range): Change prototype to take + min/max instead of value-range. + (range_includes_zero_p): Likewise. Return the result from + value_inside_range. + (extract_range_from_binary_expr_1): Adjust to handle dont-know + return value from range_includes_zero_p. + (extract_range_from_unary_expr_1): Likewise. + (compare_range_with_value): Likewise. + (vrp_meet_1): Likewise. + +2012-07-13 Bill Schmidt + + * doc/tm.texi: Regenerate. + * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook. + (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. + (TARGET_VECTORIZE_FINISH_COST): Likewise. + (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. + * targhooks.c (default_init_cost): New function. + (default_add_stmt_cost): Likewise. + (default_finish_cost): Likewise. + (default_destroy_cost_data): Likewise. + * targhooks.h (default_init_cost): New decl. + (default_add_stmt_cost): Likewise. + (default_finish_cost): Likewise. + (default_destroy_cost_data): Likewise. + * target.def (init_cost): New DEFHOOK. + (add_stmt_cost): Likewise. + (finish_cost): Likewise. + (destroy_cost_data): Likewise. + * target.h (struct _stmt_vec_info): New extern decl. + (stmt_vectype): Likewise. + (stmt_in_inner_loop_p): Likewise. + * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef. + (stmt_vector_for_cost): New VEC/typedef. + (add_stmt_info_to_vec): New function. + (struct _slp_tree): Remove cost.inside_of_loop field. + (struct _slp_instance): Remove cost.inside_of_loop field; add + stmt_cost_vec field. + (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro. + (SLP_INSTANCE_STMT_COST_VEC): New accessor macro. + (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro. + (struct _vect_peel_extended_info): Add stmt_cost_vec field. + (struct _loop_vec_info): Add target_cost_data field. + (LOOP_VINFO_TARGET_COST_DATA): New accessor macro. + (struct _bb_vec_info): Add target_cost_data field. + (BB_VINFO_TARGET_COST_DATA): New accessor macro. + (struct _stmt_vec_info): Remove cost.inside_of_loop field. + (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro. + (stmt_vinfo_set_inside_of_loop_cost): Remove function. + (init_cost): New function. + (add_stmt_cost): Likewise. + (finish_cost): Likewise. + (destroy_cost_data): Likewise. + (vect_model_simple_cost): Change parameter list. + (vect_model_store_cost): Likewise. + (vect_model_load_cost): Likewise. + (record_stmt_cost): New extern decl. + (vect_get_load_cost): Change parameter list. + (vect_get_store_cost): Likewise. + * tree-vect-loop.c (new_loop_vec_info): Call init_cost. + (destroy_loop_vec_info): Call destroy_cost_data. + (vect_estimate_min_profitable_iters): Remove old calculation of + inside costs; call finish_cost instead. + (vect_model_reduction_cost): Call add_stmt_cost instead of old + inside-costs calculation. + (vect_model_induction_cost): Likewise. + * tree-vect-data-refs.c (vect_get_data_access_cost): Change to + return a stmt_vector_for_cost; modify calls to vect_get_load_cost + and vect_get_store_cost to obtain the value to return. + (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from + vect_get_data_access_cost and store it in the minimum peeling + structure. + (vect_peeling_hash_choose_best_peeling): Change the parameter list + to add a (stmt_vector_for_cost *) output parameter, and set its value. + (vect_enhance_data_refs_alignment): Ignore the new return value from + calls to vect_get_data_access_cost; obtain stmt_cost_vec from + vect_peeling_hash_choose_best_peeling and pass its contents to the + target cost model. + * tree-vect-stmts.c (stmt_vectype): New function. + (stmt_in_inner_loop_p): Likewise. + (record_stmt_cost): Likewise. + (vect_model_simple_cost): Add stmt_cost_vec parameter; call + record_stmt_cost instead of old calculation; don't call + stmt_vinfo_set_inside_of_loop_cost. + (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of + old calculation; don't call stmt_vinfo_set_inside_of_loop_cost. + (vect_model_store_cost): Add stmt_cost_vec parameter; call + record_stmt_cost instead of old calculation; add stmt_cost_vec + parameter to vect_get_store_cost call; don't call + stmt_vinfo_set_inside_of_loop_cost. + (vect_get_store_cost): Add stmt_cost_vec parameter; call + record_stmt_cost instead of old calculation. + (vect_model_load_cost): Add stmt_cost_vec parameter; call + record_stmt_cost instead of old calculation; add stmt_cost_vec + parameter to vect_get_load_cost call; don't call + stmt_vinfo_set_inside_of_loop_cost. + (vect_get_load_cost): Add stmt_cost_vec parameter; call + record_stmt_cost instead of old calculation. + (vectorizable_call): Add NULL parameter to vect_model_simple_cost call. + (vectorizable_conversion): Likewise. + (vectorizable_assignment): Likewise. + (vectorizable_shift): Likewise. + (vectorizable_operation): Likewise. + (vectorizable_store): Add NULL parameter to vect_model_store_cost call. + (vectorizable_load): Add NULL parameter to vect_model_load_cost call. + (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST. + * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def. + (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. + (TARGET_VECTORIZE_FINISH_COST): Likewise. + (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. + (spu_init_cost): New function. + (spu_add_stmt_cost): Likewise. + (spu_finish_cost): Likewise. + (spu_destroy_cost_data): Likewise. + * config/i386/i386.c (ix86_init_cost): New function. + (ix86_add_stmt_cost): Likewise. + (ix86_finish_cost): Likewise. + (ix86_destroy_cost_data): Likewise. + (TARGET_VECTORIZE_INIT_COST): New macro def. + (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. + (TARGET_VECTORIZE_FINISH_COST): Likewise. + (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. + * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def. + (TARGET_VECTORIZE_ADD_STMT_COST): Likewise. + (TARGET_VECTORIZE_FINISH_COST): Likewise. + (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise. + (rs6000_init_cost): New function. + (rs6000_add_stmt_cost): Likewise. + (rs6000_finish_cost): Likewise. + (rs6000_destroy_cost_data): Likewise. + * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec. + (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST. + (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add + stmt_cost_vec parameter to vect_model_store_cost and + vect_model_simple_cost calls. + (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec + parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs, + vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent + calculating cost more than once for loads; remove inside_cost + parameter from recursive vect_build_slp_tree calls; call + record_stmt_cost instead of old calculation. + (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with + the instance; free it on premature exit; remove inside_cost parameter + from vect_build_slp_tree call; add stmt_cost_vec parameter to + vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST. + (new_bb_vec_info): Call init_cost. + (destroy_bb_vec_info): Call destroy_cost_data. + (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each + statement recorded with an SLP instance; call finish_cost instead of + the old calculation. + (vect_update_slp_costs_according_to_vf): Record statement costs from + SLP instances, multiplying by the appropriate number of copies; don't + update SLP_INSTANCE_INSIDE_OF_LOOP_COST. + +2012-07-13 Richard Guenther + + PR middle-end/53937 + * builtins.c (get_pointer_alignment_1): Handle constant + pointers. + +2012-07-13 Richard Sandiford + Steven Bosscher + Bernd Schmidt + + PR rtl-optimization/53908 + * df-problems.c (can_move_insns_across): When doing + memory-reference book-keeping, handle call insns. + +2012-07-13 Richard Guenther + + * gimple.c (gimple_types_compatible_p_1): Remove redundant + type attribute comparisons. + (gimple_canonical_types_compatible_p): Likewise. + +2012-07-12 Hans-Peter Nilsson + + PR rtl-optimization/53176 + * rtlanal.c (rtx_cost): Adjust default cost for X with a + UNITS_PER_WORD factor for all X according to the size of + its mode, not just for SUBREGs with untieable modes. + Handle SET. Use factor * factor for MULT, DIV, UDIV, + MOD, UMOD. + +2012-07-12 Uros Bizjak + + * config/i386/i386.md (QImode and HImode cmove splitters): Merge + QImode and HImode splitters. Use ix86_comparison_operator. + Explicitly match FLAGS_REG. + (DFmode cmove splitter): Explicitly match FLAGS_REG. + +2012-07-11 Steven Bosscher + + * expr.h (can_move_by_pieces): Move prototype from here ... + * tree.h (can_move_by_pieces): ... to here. + * optabs.h (set_widening_optab_handler): Use XCNEW. + * gimplify.c: Do not include expr.h. + + * toplev.c: Do not include dwarf2out.h. + * config/ia64/ia64.c: Likewise. + * config/sparc/sparc.c: Likewise. + * config/sparc/t-sparc (sparc.o): Fix dependencies. + + * Makefile.in (toplev.o): Fix dependencies + (c-family/c-gimplify.o): Likewise. + (c-family/c-common.o): Likewise. + +2012-07-11 Steven Bosscher + + * basic-block.h (struct edge_def): Use basic_block instead of + basic_block_def *. + * cfgloop.h (struct loop_exit, struct loop): Likewise. + * gengenrtl.c (type_from_format): Likewise. Also for 'tree' + instead of union tree_node *. + * rtl.h (union rtunion_def, emit_insn_before_noloc, + emit_insn_after_noloc, add_insn_before, add_insn_after, + debug_bb_slim): Likewise. + * tree-inline.h (struct copy_body_data): Likewise. + * sched-rgn.c (dump_region_dot): Likewise. + * gimple.h (struct gimple_statement_base, gimple_set_bb, + gsi_move_to_bb_end): Likewise. + * sched-vis.c (debug_bb_slim): Likewise. + (debug_bb_n_slim): Likewise. + * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise. + (mn10300_block_contains_call): + +2012-07-11 Greta Yorsh + + PR target/53859 + * config/arm/arm.c (arm_early_load_addr_dep): Handle new + epilogue patterns. + +2012-07-11 Jonathan Wakely + + * doc/extend.texi (Namespace Association): Alter cautionary text. + +2012-07-10 Oleg Endo + + PR target/53911 + * config/sh/sh.md: Remove displacement addresssing related splits. + +2012-07-10 Xinliang David Li + + * doc/invoke.texi: New option documented. + * flag-types.h: New enum type. + * gimplify.c (gimplify_bind_expr): Control + clobber generation with new option. + (gimplify_target_expr): Ditto. + * common.opt: New option. + +2012-07-10 Julian Brown + + * config/arm/arm.md (movsi): Don't split symbol refs here. + (define_split): New. + +2012-07-10 Andreas Schwab + + PR bootstrap/53913 + * config/m68k/m68k.c (m68k_epilogue_uses): New. + * config/m68k/m68k.h (EPILOGUE_USES): Use it. + * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype. + +2012-07-10 Richard Henderson + + * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove. + * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison. + * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove. + (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove. + (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove. + (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove. + (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove. + (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove. + (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove. + (bdesc_args): Remove entries to match. + (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove. + * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove. + (rs6000_builtin_mul_widen_odd): Remove. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove. + * config/spu/spu.c (spu_builtin_mul_widen_even): Remove. + (spu_builtin_mul_widen_odd): Remove. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove. + * doc/tm.texi.in: Don't document the removed hooks. + + * tree-vect-stmts.c (supportable_widening_operation): Expand + WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible. + + * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart. + (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab. + * optabs.c (can_mult_highpart_p): New. + (expand_mult_highpart): New. + * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it. + * tree-vect-generic.c (expand_vector_operations_1): Don't expand + by pieces if can_mult_highpart_p. + (expand_vector_divmod): Use can_mult_highpart_p and always + generate MULT_HIGHPART_EXPR. + * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise. + * tree-vect-stmts.c (vectorizable_operation): Likewise. + + * config/spu/spu-builtins.md (spu_mpy): Move to spu.md. + (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise. + * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy. + (vec_widen_umult_odd_v8hi): Rename from spu_mpyu. + (vec_widen_smult_even_v8hi): Rename from spu_mpyhh. + (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu. + * config/spu/spu-builtins.def: Update pattern names to match. + + * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename + from altivec_vmuleub. + (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb. + (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh. + (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh. + (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub. + (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb. + (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh. + (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh. + * config/rs6000/rs6000-builtin.def: Update pattern names to match. + + * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from + avx2_umulv4siv4di3. + (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3. + (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3. + (mulv4si3): Remove XOP test shadowed by SSE4 test. + * config/i386/i386.c (bdesc_args): Update pattern names. + (ix86_expand_sse2_mulvxdi3): Likewise. + (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test + shadowed by SSE4 test. + + * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New. + * cfgexpand.c (expand_debug_expr): Handle them. + * expr.c (expand_expr_real_2): Likewise. + * fold-const.c (fold_binary_loc): Likewise. + * gimple-pretty-print.c (dump_binary_rhs): Likewise. + * optabs.c (optab_for_tree_code): Likewise. + * tree-cfg.c (verify_gimple_assign_binary): Likewise. + * tree-inline.c (estimate_operator_cost): Likewise. + * tree-pretty-print.c (dump_generic_node): Likewise. + * tree.c (commutative_tree_code): Likewise. + * tree-vect-generic.c (expand_vector_operations_1): Likewise. + Handle type change before looking up optab. + * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New. + (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New. + (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New. + (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New. + * genopinit.c (optabs): Initialize them. + * doc/md.texi: Document them. + +2012-07-10 Dehao Chen + + * tree.h (phi_arg_d): New field. + * tree-flow-inline.h (gimple_phi_arg_block): New function. + (gimple_phi_arg_block_from_edge): New function. + (gimple_phi_arg_set_block): New function. + (gimple_phi_arg_has_block): New function. + (redirect_edge_var_map_block): New function. + * tree-flow.h (_edge_var_map): New field. + * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used. + * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for + redirect_edge_var_map_add. + * tree-outof-ssa.c (_elim_graph): New field. + (insert_partition_copy_on_edge): New parameter. + (insert_value_copy_on_edge): New parameter. + (insert_rtx_to_part_on_edge): New parameter. + (insert_part_to_rtx_on_edge): New parameter. + (elim_graph_add_edge): New parameter. + (elim_graph_remove_succ_edge): New parameter. + (FOR_EACH_ELIM_GRAPH_SUCC): New parameter. + (FOR_EACH_ELIM_GRAPH_PRED): New parameter. + (new_elim_graph): Add block debug info. + (clear_elim_graph): Likewise. + (delete_elim_graph): Likewise. + (elim_graph_add_node): Likewise. + (elim_graph_add_edge): Likewise. + (elim_graph_remove_succ_edge): Likewise. + (eliminate_build): Likewise. + (elim_forward): Likewise. + (elim_unvisited_predecessor): Likewise. + (elim_backward): Likewise. + (elim_create): Likewise. + (eliminate_phi): Likewise. + (insert_backedge_copies): Likewise. + * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for + add_phi_arg. + (rewrite_add_phi_arguments): Likewise. + * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise. + * tree-ssa-tail-merge.c (replace_block_by): Likewise. + * tree-ssa-threadupdate.c (copy_phi_args): Likewise. + * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise. + * tree-ssa-loop-manip.c (create_iv): Likewise. + (add_exit_phis_edge): Likewise. + (split_loop_exit_edge): Likewise. + (copy_phi_node_args): Likewise. + (tree_transform_and_unroll_loop): Likewise. + * value-prof.c (gimple_ic): Likewise. + (gimple_stringop_fixed_value): Likewise. + * tree-tailcall.c (add_successor_phi_arg): Likewise. + (eliminate_tail_call): Likewise. + (create_tailcall_accumulator): Likewise. + (tree_optimize_tail_calls_1): Likewise. + * tree-phinodes.c (add_phi_arg): Likewise. + (make_phi_node): Likewise. + (resize_phi_node): Likewise. + (remove_phi_arg_num): Likewise. + * omp-low.c (expand_parallel_call): Likewise. + (expand_omp_for_static_chunk): Likewise. + * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop): + Likewise. + (slpeel_update_phi_nodes_for_guard1): Likewise. + (slpeel_update_phi_nodes_for_guard2): Likewise. + (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise. + (set_prologue_iterations): Likewise. + (slpeel_tree_peel_loop_to_edge): Likewise. + (vect_loop_versioning): Likewise. + * tree-parloops.c (create_phi_for_local_result): Likewise. + (transform_to_exit_first_loop): Likewise. + (create_parallel_loop): Likewise. + * ipa-split.c (split_function): Likewise. + * tree-vect-loop.c (get_initial_def_for_induction): Likewise. + (vect_create_epilog_for_reduction): Likewise. + * tree-vect-data-refs.c (vect_setup_realignment): Likewise. + * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise. + * tree-ssa-phiopt.c (cond_store_replacement): Likewise. + (cond_if_else_store_replacement_1): Likewise. + * tree-cfgcleanup.c (remove_forwarder_block): Likewise. + (remove_forwarder_block_with_phi): Likewise. + * tree-ssa-pre.c (insert_into_preds_of_block): Likewise. + * tree-predcom.c (initialize_root_vars): Likewise. + (initialize_root_vars_lm): Likewise. + * sese.c (sese_add_exit_phis_edge): Likewise. + * tree-ssa-dce.c (forward_edge_to_pdom): Likewise. + * tree-ssa.c (flush_pending_stmts): Likewise. + (redirect_edge_var_map_add): Likewise. + (ssa_redirect_edge): Likewise. + * gimple-streamer-in.c (input_phi): Likewise. + * tree-vect-stmts.c (vectorizable_load): Likewise. + * tree-inline.c (copy_phis_for_bb): Likewise. + * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise. + * tree-switch-conversion.c (fix_phi_nodes): Likewise. + * tree-cfg.c (reinstall_phi_args): Likewise. + (gimple_make_forwarder_block): Likewise. + (add_phi_args_after_copy_edge): Likewise. + (gimple_duplicate_sese_tail): Likewise. + +2012-07-09 Oleg Endo + + PR target/53886 + * config/sh/sh.c (sequence_insn_p): New function. + (find_barrier, sh_insn_length_adjustment): Use it. + +2012-07-09 Iain Sandoe + + PR target/53283 + * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN + if defined. + * config/darwin.h: Rename TARGET_FOLD_BUILTIN to + SUBTARGET_FOLD_BUILTIN. + * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto + SUBTARGET_FOLD_BUILTIN. + +2012-07-09 Iain Sandoe + + * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT + runtime exceptions model setting from here ... + * config/darwin.c (darwin_override_options): ... to here. + +2012-07-09 Steven Bosscher + + PR tree-optimization/53887 + * tree-cfg.c (group_case_labels_stmt): Make non-static. + * tree-flow.h (group_case_labels_stmt): Add prototype. + * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt + to pre-process every switch. + +2012-07-09 Jason Merrill + + PR c++/53882 + * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE. + (type_hash_eq): Likewise. + +2012-07-09 Tom de Vries + Richard Guenther + + * tree-ssa-ccp.c (optimize_unreachable): New function. + (execute_fold_all_builtins): Use optimize_unreachable to optimize + BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE. + +2012-07-09 Richard Guenther + + PR bootstrap/53898 + * graphite-optimize-isl.c: Make sure CU is not empty. + +2012-07-09 Steven Bosscher + + * gensupport.c (init_rtx_reader_args_cb): Start counting code + generating patterns from 1 to free up 0 for CODE_FOR_nothing. + * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add + the LAST_INSN_CODE marker at the end. + * genoutput.c (nothing): New static struct data. + (idata): Initialize to ¬hing. + (idata_end): Initialize to ¬hing.next. + (init_insn_for_nothing): New function to create dummy 'nothing' insn. + (main): Use it. + * genpeep.c (insn_code_number): Remove global variable. + (gen_peephole): Take it as an argument instead. + (main): Take insn_code_number from read_md_rtx. + * optabs.h: Revert r161809: + (optab_handlers): Change type of insn_code back to insn_code. + (optab_handler, widening_optab_handler, set_optab_handler, + set_widening_optab_handler, convert_optab_handler, + set_convert_optab_handler, direct_optab_handler, + set_direct_optab_handler): Remove int casts. + Revert to treating the insn_code field as "insn_code". + +2012-07-08 Oleg Endo + + * config/sh/sh.md (*return_i): Move trap_exit attribute check to ... + * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function. + * config/sh/sh-protos.h: Declare it. + +2012-07-08 Steven Bosscher + + * mcf.c: Do not include tm.h, tree.h, and langhooks.h. + (dump_fixup_graph): Use current_function_name. + (adjust_cfg_counts): Likewise. + * ira-conflicts.c: Do not include tree.h. + (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL. + +2012-07-08 Oleg Endo + + PR target/51244 + * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns. + +2012-07-08 Steven Bosscher + + * basic-block.h: Re-group most prototypes per file. + (struct edge_list): Remove num_blocks field. + (dump_bb_info): Adjust prototypes. + (dump_reg_info): Move prototype to regs.h. + * function.h: Do not include tree.h. + Include vec.h, vecir.h, input.h and machmode.h to compensate. + (function_name): New prototype. + * gimple.h: Include tree.h to compensate for basic-block.h change. + * langhooks.h: Note that tree.h is only necessary for enum tree_code. + * regs.h (dump_reg_info): Prototype here. + * regset.h: Adjust file reference in comment. + (debug_regset): Remove prototype. + * rtl.h: Include flags.h for flag_var_tracking_assignments. + (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments + instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS. + (dump_reg_info, dump_flow_info): Remove prototypes. + * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c + to here, the only user. Make static. + (reorder_basic_blocks): Call dump_reg_info before dump_flow_info. + * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h, + flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h, + tree-pass.h, cfgloop.h, and tree-flow.h. + Include basic-block.h, the first header I'd expect to be included. + (reg_obstack): Move to df-core.c. + (free_edge): Remove bogus ATTRIBUTE_UNUSED. + (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear. + (redirect_edge_succ_nodup): Move to cfghooks.c. + (dump_regset, debug_regset): Move to df-core.c. + (dump_bb_info): Move to cfgrtl.c. + (dump_reg_info): Move to regstat.c. + (dump_flow_info): Move to cfgrtl.c. + (debug_flow_info): Likewise. + (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense. + * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h, + insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h. + (flow_active_insn_p, forwarder_block_p, can_fallthru, + could_fall_through): Move to cfgrtl.c. + (set_edge_can_fallthru_flag): Moved to bb-reorder.c. + (create_edge_list): Do not set edge_list's removed num_blocks. + (print_edge_list): Look at n_basic_blocks instead of num_blocks. + (flow_nodes_print): Remove. + (flow_edge_list_print): Remove. + (inverted_post_order_compute): Use FOR_ALL_BB. + * cfgrtl.c (dump_flow_info): Moved from cfg.c. + Do not call dump_reg_info. + (debug_flow_info): Moved from cfg.c + (dump_bb_info): Moved from cfg.c. Take 'verbose' argument + to avoid looking at TDF_* flags from tree-pass.h. + (flow_active_insn_p, forwarder_block_p, can_fallthru, + could_fall_through): Moved from cfganal.c. + (print_rtl_with_bb): Adjust dump_bb_info calls. + * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c. + (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE. + (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS. + * cselib.c: Include tree.h with a FIXME. + * df-core.c (reg_obstack): Moved from cfg.c. + (dump_regset): Likewise. + (debug_regset): Likewise. Make a DEBUG_FUNCTION. + * final.c (compute_alignments): Call dump_reg_info before + dump_flow_info. + * function.c (function_name): New function. + (current_function_name): Use it. + * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before + dump_flow_info. + * ira-conflicts.c: Include tree.h with a note. + * regstat.c (dump_reg_info): Moved here from cfg.c. + * loop-init.c: Include regs.h instead of hard-reg-set.h. + (rtl_loop_init): Call dump_reg_info before dump_flow_info. + (rtl_loop_done): Likewise. + * mcf.c: Include tree.h before langhooks.h. + * predict.c (maybe_hot_count_p): Assert we have cfun. + (probably_never_executed_bb_p): Likewise. + * profile.c (compute_branch_probabilities): Use gimple_dump_cfg + instead of dump_flow_info. + * sched-deps.c: Include tree.h with a FIXME. + (call_may_noreturn_p): Add FIXME note why this function has to + look at function decls instead of function decl flags. + * sched-vis.c: Include tree.h with a FIXME. + (print_rtl_slim): Adjust dump_bb_info uses. + * statistics.c (statistics_fini_pass_2): Use current_function_name + to avoid including tree.h. + (statistics_counter_event): Use function_name for the same reason. + (statistics_histogram_event): Likewise. + * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg + instead of dump_flow_info. + * var-tracking.c (variable_tracking_main_1): Call dump_reg_info + before dump_flow_info. + * doc/cfg.texi: Update CFG documentation. + * Makefile.in (RTL_H): Depend on FLAGS_H. + (GIMPLE_H): Depend on TREE_H. + (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H, + but no longer on TREE_H. + (C_COMMON_H): Depend on TREE_H. + (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o, + sched-deps.o, sched-vis.o): Fixup dependencies. + +2012-07-08 Steven Bosscher + + * alias.h: Do not include coretypes.h in header files. + * cppbuiltin.h: Likewise. + * double-int.h: Likewise. + * gimple-fold.h: Likewise. + * flags.h: Likewise. + * tree-ssa-alias.h: Likewise. + * gengtype.h (obstack_chunk_alloc, obstack_chunk_free, + OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h. + * Makefile.in (RTL_BASE_H): Depend on coretypes.h. + (TREE_H): Likewise. + (ALIAS_H): Do not depend on coretypes.h. + (FLAGS_H): Likewise. + (realmpfr.o): Depend on coretypes.h. + +2012-07-08 Steven Bosscher + + * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, + gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects. + +2012-07-07 Richard Earnshaw + + * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support. + (TARGET_FPA): Delete definition. + (TARGET_MAVERICK): Likewise. + (TARGET_FPA_EMU2): Likewise. + (arm_fp_model): Remove FPA and Maverick models. + (arm_arch_cirrus): Delete declaration. + (FLOAT_WORDS_BIG_ENDIAN): Delete definition. + (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize. + (CALL_USED_REGISTERS): Likewise. + (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition. + (FIRST_VFP_REGNUM): Renumbered. + (D7_VFP_REGNUM): Chain definition. + (LAST_LO_VFP_REGNUM): Likewise. + (FIRST_HI_VFP_REGNUM): Likewise. + (LAST_HI_VFP_REGNUM): Likewise. + (FIRST_IWMMXT_GR_REGNUM): Likewise. + (LAST_IWMMXT_GR_REGNUM): Likewise. + (FIRST_IWMMXT_REGNUM): Likewise. + (LAST_IWMMXT_REGNUM): Likewise. + (FRAME_POINTER_REGNUM): Renumbered. + (ARG_POINTER_REGNUM): Renumbered. + (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers. + (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions. + (HARD_REGNO_REGNUM): Remove FPA support. + (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize. + (reg_class): Likewise. + (REG_CLASS_NAMES): Likewise. + (REG_CLASS_CONTENTS): Likewise. + (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment. + (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support. + (CLASS_MAX_NREGS): Remove FPA and Maverick support. + * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers. + Reorganize. Use AAPCS preferred names. + (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update + comments. + (OVERLAPPING_REGISTER_NAMES): Update register numbering. + * arm.c (FL_CIRRUS): Delete definition. + (arm_arch_cirrus): Delete variable. + (arm_float_words_big_endian): Delete function. + (cirrus_memory_offset): Delete function. + (output_mov_long_double_fpa_from_arm): Delete function. + (output_mov_long_double_arm_from_fpa): Delete function. + (output_mov_double_fpa_from_arm): Delete function. + (output_mov_double_arm_from_fpa): Delete function. + (emit_sfm): Delete function. + (maybe_get_arm_condition_code): Update comment. + (arm_file_start): Always use softvfp for softfloat systems. + (thumb_core_reg_alloc_order): Adjust for updated register allocation. + (arm_option_override): Remove FPA and Maverick support. Always + default to vfp as the fallback FPU format. + (use_return_insn): Remove FPA support. + (arm_get_frame_offsets): Likewise. + (arm_save_coproc_regs): Likewise. + (arm_canonicalize_comparison): Remove Maverick support. + (arm_select_cc_mode): Likewise. + (arm_gen_compare_reg): Likewise. + (arm_print_operand): Likewise. + (arm_libcall_value_1): Remove FPA and Maverick support. + (arm_function_value_regno_p): Likewise. + (arm_apply_result_size): Likewise. + (arm_legitimate_index_p): Likewise. + (thumb2_legitimate_index_p): Likewise. + (legitimize_reload_address): Likewise. + (arm_register_move_cost): Likewise. + (arm_hard_regno_mode_ok): Likewise. + (arm_regno_class): Likewise. + (arm_dbx_register_number): Likewise. + (arm_emit_unwind_sequence): Likewise. + (arm_conditional_register_usage): Likewise. + * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration. + (cirrus_memory_offset): Likewise. + (output_move_long_double_fpa_from_arm): Likewise. + (output_move_long_double_arm_from_fpa): Likewise. + (output_move_double_fpa_from_arm): Likewise. + (output_move_double_arm_from_fpa): Likewise. + (arm_float_words_big_endian): Likewise. + * arm.md (CC_REGNUM): Renumbered. + (VFPCC_REGNUM): Moved here. Renumbered. + (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete. + (attr fpu): Remove FPA and Maverick support. + * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md. + * arm-cores.def (ep9312): Remove Maverick support. + * arm-arches.def (ep9312): Delete architecture. + * arm-tables.opt: Regenerated. + + * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp. + +2012-07-07 Steven Bosscher + + PR tree-optimization/53881 + * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on + comparing labels to establish uniqueness of a switch case target, + use the CFG instead. + +2012-07-07 Ulrich Weigand + + * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour + due to negative shift amount. + +2012-07-07 Hans-Peter Nilsson + + Fix configure test for "stack protector support in target C library". + * configure.ac (test_prefix, test_exec_prefix): Move setting from + inside sysroot handling to before and outside it. + * configure: Regenerate. + +2012-07-06 Kai Tietz + + PR bootstrap/52947 + * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always + as "/mingw/include". + +2012-07-06 Alexandre Oliva + + PR debug/53820 + * var-tracking.c (vt_add_function_parameter): Convert + internal_arg_pointer into arg_pointer-based address even + without DRAP. + +2012-07-06 Alexandre Oilva + + PR rtl-optimization/53827 + PR debug/53671 + PR debug/49888 + * alias.c (memrefs_conflict_p): Adjust offset and size by the + same amount for alignment ANDs. + +2012-07-06 Tom de Vries + + PR tree-optimization/51879 + * tree-ssa-sccvn.c (copy_reference_ops_from_call) + (visit_reference_op_call): Handle case that lhs is not an SSA_NAME. + (visit_use): Also call visit_reference_op_call for calls with a vdef. + +2012-07-06 Tom de Vries + + PR tree-optimization/52009 + * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare + value numbers of gimple_vdef. + * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to + prototype. + * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR. + (vn_reference_insert): Add and handle vdef parameter. + (visit_reference_op_load): Add argument to vn_reference_insert call. + (visit_reference_op_store): Find value number of vdef of store. Insert + value number of vdef of store. + +2012-07-06 Uros Bizjak + + * config/i386/i386.md (simple lea to add peephole): Also transform + RTXes where second PLUS operand matches output. + +2012-07-06 Uros Bizjak + + * config/i386/i386.c (construct_plt_address): Make static. + * config/i386/i386-protos.h (construct_plt_address): Remove. + +2012-07-06 Nick Clifton + + * config/mn10300/mn10300.c (mn10300_encode_section_info): Call + default_encode_section_info. + +2012-07-06 Uros Bizjak + + PR target/53853 + * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model, + emit PIC sequence for fnaddr symbol reference in advance. + +2012-07-06 Eric Botcazou + + Revert + 2012-06-14 Eric Botcazou + + * dwarf2out.c (function_possibly_abstracted_p): New static function. + (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of + cgraph_function_possibly_inlined_p. + (gen_inlined_subroutine_die): Return if the origin is to be ignored. + (process_scope_var): Do not emit concrete instances of abstracted + nested functions from here. + (gen_decl_die): Emit the abstract instance if the function is possibly + abstracted and not only possibly inlined. + (dwarf2out_finish): Find the first non-abstract parent instance and + attach concrete instances on the limbo list to it. + +2012-07-05 Ramana Radhakrishnan + Julian Brown + + PR target/48941 + PR target/51980 + * config/arm/neon-gen.ml (return_by_ptr): Delete. + (print_function): Handle empty strings. + (return): Delete use of return_by_ptr. + (mask_shape_for_shuffle): New function. + (mask_elems): Likewise. + (shuffle_fn): Likewise. + (params): Simplify and remove use of return_by_ptr. + (get_shuffle): New function. + (print_variant): Update. + * config/arm/neon.ml (rev_elems): New function. + (permute_range): Likewise. + (zip_range): Likewise. + (uzip_range): Likewise. + (trn_range): Likewise. + (zip_elems): Likewise. + (uzip_elems): Likewise. + (trn_elems): Likewise. + (features): New enumeration Use_shuffle. Delete ReturnPtr. + (pf_su_8_16): New. + (suf_32): New. + (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp. + * config/arm/arm_neon.h: Regenerate. + +2012-07-05 Richard Guenther + + * tree-pretty-print.c (dump_generic_node): Properly test + the result of exact_log2. + +2012-07-05 Andreas Krebbel + + * config/s390/s390-protos.h (s390_expand_movmem) + (s390_expand_cmpmem): Add return value. + * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem): + Return FALSE to use the library function in some cases. + * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C + helper functions. + +2012-07-05 Andreas Krebbel + + * config.gcc: Enable ifunc attribute by default on s390 and s390x. + +2012-07-05 Steven Bosscher + + * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers. + * stmt.c (dump_case_nodes): New. + (expand_case): Split out code generation parts into new functions. + (expand_switch_as_decision_tree_p): Split out from expand_case. + (emit_case_decision_tree): Likewise. + (emit_case_dispatch_table): Likewise. + +2012-07-05 Matthew Gretton-Dann + + * config/arm/iterators.md (SDF): New mode iterator. + (V_if_elem): Add support for SF and DF modes. + (V_reg): Likewise. + (F_constraint): New mode iterator attribute. + (F_fma_type): Likewise. + config/arm/vfp.md (fma4): New pattern. + (*fmsub4): Likewise. + (*fmnsub4): Likewise. + (*fmnadd4): Likewise. + +2012-07-04 Uros Bizjak + + * expmed.c (expand_mult): Initialize coeff and is_neg. + +2012-07-04 Oleg Endo + + * config/sh/predicates.md (zero_extend_operand): New predicate. + * config/sh/sh.md (zero_extendhisi2): Simplify by using new + zero_extend_operand predicate. + (zero_extendqisi2): Likewise. + +2012-07-04 Uros Bizjak + + PR middle-end/53321 + * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375 + to not call cgraph_propagate_frequency if something was changed. + +2012-07-04 Richard Guenther + + PR middle-end/53433 + * gimple-fold.c (get_base_constructor): Do not return an + error_mark_node DECL_INITIAL. + +2012-07-04 Richard Guenther + + PR tree-optimization/53844 + * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle + the loop virtual PHI. + +2012-07-04 Richard Guenther + + PR tree-optimization/53849 + * tree-cfg.c (move_stmt_op): Only call add_referenced_var + for duplicated locals. Use add_referenced_var_1 to avoid + pushing/popping cfun. + +2012-07-04 Kai Tietz + + * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function. + * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add + prototype. + * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define + as i386_pe_reloc_rw_mask. + +2012-07-04 Richard Guenther + + * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same + as in free_lang_data_in_type. + +2012-07-04 Tobias Grosser + Michael Matz + + * Makefile.in (OBJS): Add graphite-optimize-isl.o. + (graphite-optimize-isl.o): Add dependencies. + * common.opt (floop-nest-optimize): New flag. + * doc/invoke.texi (floop-nest-optimize): Document. + * graphite-dependences.c (compute_deps): Export. + * graphite-poly.h (compute_deps): Declare. + * graphite-optimize-isl.c: New file. + * graphite-poly.c (apply_poly_transforms): Run the loop + nest optimizer. + * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite + if -floop-nest-optimize is enabled. + +2012-07-03 Oleg Endo + + * config/sh/predicates.md (logical_and_operand): New predicate. + * config/sh/constraints.md (Jmb, Jmw): New constraints. + * config/sh/sh.md (andsi3): Move expander above insns. Add handling + of 0xFFFF constant. Use logical_and_operand predicate and + satisfies_constraint_Jmb, satisfies_constraint_Jmw. + (*andsi3_compact): Make it an insn_and_split. Use + logical_and_operand predicate. Add Jmb,Jmw alternatives. + +2012-07-03 Jason Merrill + + PR c++/53826 + * tree.c (build_zero_cst): Handle NULLPTR_TYPE. + +2012-07-03 Nick Clifton + + * config/mep/mep.c (mep_reorg_regmove): Use + next_nonnote_non_debug_insn to advance to the next insn. Do not + expect delete_insn to return an rtx. + +2012-07-03 Richard Guenther + + * doc/install.texi (CLooG): Clarify how CLooG needs to be + configured and that it needs to be built against ISL 0.10. + +2012-07-03 Uros Bizjak + + * config/i386/i386.c (ix86_option_override_internal): Fix wrong + code model string in the error message. + +2012-07-03 Uros Bizjak + + PR target/53811 + * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies + sibcall_insn_operand. Move it to a temporary register if not. + +2012-07-03 Andreas Schwab + + PR target/28896 + * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx + if !TARGET_68020. + +2012-07-03 Uros Bizjak + + * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause. + +2012-07-03 Roland McGrath + + * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the + assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'. + * configure: Regenerated. + * config/i386/i386.md (simple_return_internal_long): Use %; + (ctz2): Likewise. + (*pause): Likewise. + +2012-07-02 Oleg Endo + + PR target/51244 + * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New + predicates. + * config/sh/sh-protos.h (get_t_reg_rtx): New prototype. + * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking + gen_branch_true and gen_branch_false. + * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and + gen_branch_false. + (branch_true, branch_false): Use t_reg_operand predicate. + (*branch_true, *branch_false): Delete. + (movt): Use t_reg_operand predicate. + (*negnegt): Use negt_reg_operand predicate and fold little and big + endian variants. + (*movtt): Use t_reg_operand and fold little and big endian variants. + (*movt_qi): Delete. + +2012-07-02 Steven Bosscher + + * stmt.c (emit_case_bit_tests): Remove. + (expand_case): Remove expand_switch_using_bit_tests_p code. + * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New. + (MAX_CASE_BIT_TESTS): Moved from stmt.c to here. + (lshift_cheap_p): Likewise. + (expand_switch_using_bit_tests_p): Likewise. + (struct case_bit_test): Likewise. + (case_bit_test_cmp): Likewise. + (emit_case_bit_tests): New implementation for GIMPLE. + (gen_inbound_check): Do not release post-dominator info here. + (process_switch): Reorder code. Expand as bit tests if it + looks like a win. + (do_switchconv): Release post-dominator info here if something changed. + (struct gimple_opt_pass): Verify more. + * tree.h (expand_switch_using_bit_tests_p): Remove prototype. + +2012-07-02 Martin Jambor + + PR middle-end/38474 + * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a + dynamic type change check. + +2012-07-02 Richard Guenther + Michael Matz + Tobias Grosser + Sebastian Pop + + * Makefile.in: Remove PPL flags in favor of ISL ones. + (BACKENDLIBS): Remove PPL libs. + (INCLUDES): Remove PPL includes in favor of ISL ones. + (graphite-clast-to-gimple.o): Remove graphite-dependences.h and + graphite-cloog-compat.h dependencies. + (graphite-dependences.o): Likewise. + (graphite-poly.o): Likewise. + * configure.ac: Declare ISL vars instead of PPL ones. + * configure: Regenerated. + * doc/install.texi: Replace PPL requirement documentation with ISL one. + * graphite-blocking.c: Remove PPL code, add ISL equivalent. + * graphite-clast-to-gimple.c: Likewise. + * graphite-dependences.c: Likewise. + * graphite-interchange.c: Likewise. + * graphite-poly.h: Likewise. + * graphite-poly.c: Likewise. + * graphite-sese-to-poly.c: Likewise. + * graphite.c: Likewise. + * graphite-scop-detection.c: Re-arrange includes. + * graphite-cloog-util.c: Remove. + * graphite-cloog-util.h: Likewise. + * graphite-ppl.h: Likewise. + * graphite-ppl.c: Likewise. + * graphite-dependences.h: Likewise. + +2012-07-02 Richard Guenther + + Merge from graphite branch + 2011-07-21 Tobias Grosser + + * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o): + Remove graphite-cloog-util.h. + * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop, + build_iv_mapping, translate_clast_user, translate_clast, + free_scattering, initialize_cloog_names, build_cloog_prog, + create_params_index): Do not use old compatibility functions. + (clast_name_to_index, set_cloog_options): Remove code for legacy cloog. + * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old + compatibility functions. + (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy + cloog. + * graphite-cloog-util.h: Remove include of graphite-cloog-util.h. + * graphite.c (graphite.c): Do not call outdated cloog_initialize() and + cloog_finalize(). + * graphite-cloog-compat.h: Remove. + + 2011-08-09 Tobias Grosser + + * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy + of the string, no just a reference. + (clast_name_index): Add a new field, that specifies if we need to free + the name. + (free_clast_name_index): If necessary, free the name string. + (clast_name_index_elt_info): Calculate the hash based on the string + content, not the memory location it is stored in. + (clast_name_to_level): Specify that we do not need to free the name. + (clast_name_to_index): Dito. + (clast_name_to_lb_ub): Dito. + (eq_clast_name_indexes): Compare the strings, not their base pointers. + (free_scattering): Removed. + (initialize_cloog_names): Renamed to add_names_to_union_domain(). + (add_names_to_union_domain): Changed to work on a union_domain, + instead of a CloogNames structure. + (build_cloog_prog): Removed. + (build_cloog_union_domain): New. + (generate_cloog_input): New. + (scop_to_clast): Use CloogInput instead of CloogProgram. + (print_generated_program): Adapt to new scop_to_clast() and do not + print the CloogProgram any more. + (create_params_index): Removed, functionality integrated in + add_names_to_union_domain(). + (gloog): Adapt to new scop_to_clast(). + * graphite-clast-to-gimple.h (scop_to_clast): Remove. + + 2012-01-11 Tobias Grosser + + * graphite-clast-to-gimple.c (clast_name_to_index, + clast_name_to_lb_ub, clast_name_to_gcc): Change types. + (clast_to_gcc_expression): Add clast_expr_name as a new + case. Do not assume a clast_expr_term points always to a + clast_expr_name. + (type_for_clast_term): Do not assume a clast_expr_term points always to + a clast_expr_name. + (type_for_clast_name): New. + (type_for_clast_expr): Add clast_expr_name as a new case. + + 2011-08-03 Sebastian Pop + + * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron, + new_Cloog_Scattering_from_ppl_Polyhedron, + new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED. + +2012-07-02 Jakub Jelinek + + PR tree-optimization/53645 + * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type) + instead of TYPE_MODE (wider_type) as can_vec_perm_p argument. + +2012-07-01 Wei Guozhi + + PR target/53447 + * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype. + * config/arm/arm.c (const_ok_for_dimode_op): New function. + * config/arm/constraints.md (Dd): New constraint. + * config/arm/predicates.md (arm_adddi_operand): New predicate. + * config/arm/arm.md (adddi3): Extend it to handle constants. + (arm_adddi3): Likewise. + (addsi3_carryin_): Extend it to handle sbc case. + (addsi3_carryin_alt2_): Likewise. + * config/arm/neon.md (adddi3_neon): Extend it to handle constants. + +2012-06-30 Nathan Sidwell + + * coverage.c (bbg_file_stamp): New. + (read_counts_file): Merge incoming stamp with bbg_file_stamp. + (build_info): Write bbg_file_stamp. + (coverage_init): Initialize bbg_file_stamp. Read counts file + before writing graph header. + (coverage_finish): Don't unlink the data file if we can generate a + unique file stamp. + * tree.h (crc32_unsigned): Declare. + * tree.c (crc32_unsigned_bits): New, broken out of ... + (crc32_byte): ... here. Use it. + (crc32_unsigned): New. + +2012-06-29 Cary Coutant + + * dwarf2out.c (add_pubname_string): Don't check for want_pubnames. + (gen_subprogram_die): Don't add pubname if want_pubnames is false. + (gen_variable_die): Likewise. + (gen_namespace_die): Likewise. + +2012-06-29 Eric Botcazou + + * tree-eh.c (lower_try_finally_switch): Really put the location of the + last statement of the finally block onto the switch. + +2012-06-29 H.J. Lu + + PR target/53539 + * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for + TARGET_LP64. + +2012-06-29 Sterling Augustine + + * dwarf2out.c (add_pubname): Add comment. + (add_pubtype): Fix indentation. + (gen_enumeration_type_die): Likewise. + +2012-06-29 Jakub Jelinek + + * tree-vect-generic.c (expand_vector_divmod): For even/odd + widening multiply, put even always as first argument to VEC_PERM_EXPR. + +2012-06-29 Richard Henderson + + * tree-vect-generic.c: Include target.h. + (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported. + * Makefile.in (tree-vect-generic.o): Update. + +2012-06-29 Steven Bosscher + + * configure.ac: Remove special gtfiles case for C. + * configure: Regenerate. + * Makefile.in: Remove C front-end hooks and build hooks that + will be picked up from c/Make-lang.in now. + Add tree-mudflap to C_COMMON_OBJS. + * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c. + * config/vms/vms.c: Look for c-tree.h in c/. + * doc/gty.texi: Remove reference to c-config-lang.in. + * doc/sourcebuild.texi: Document the c/ subdirectory. + +2012-06-29 Steven Bosscher + + * system.h (CASE_USE_BIT_TESTS): Poison. + * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ... + (expand_switch_using_bit_tests_p): ...here. + * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation. + * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate. + +2012-06-29 Steven Bosscher + + * system.h (IFCVT_EXTRA_FIELDS): Poison. + (IFCVT_INIT_EXTRA_FIELDS): Poison. + * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS. + * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of + IFCVT_INIT_EXTRA_FIELDS. + * gengtype-parse.c (struct_field_seq): Remove obsolete comment. + * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to + IFCVT_MACHDEP_INIT. + * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to + frv_ifcvt_machdep_init. + * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): + Remove documentation. + (IFCVT_MACHDEP_INIT): Document. + * doc/tm.texi: Regenerate. + +2012-06-29 Nick Clifton + + * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo. + +2012-06-29 Jakub Jelinek + + * tree-vect-stmts.c (vectorizable_operation): Check both + VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs. + Verify that operand[0]'s mode is TYPE_MODE (wide_vectype). + +2012-06-28 Richard Henderson + + * doc/generic.texi (MULT_HIGHPART_EXPR): Document it. + +2012-06-28 Jakub Jelinek + + PR tree-optimization/51581 + * tree-vect-stmts.c (permute_vec_elements): Add forward decl. + (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR + also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus + VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported. + * tree-vect-patterns.c (vect_recog_divmod_pattern): Use + MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts. + + PR tree-optimization/53645 + * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR + instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR + if possible. + +2012-06-28 Georg-Johann Lay + + PR 53595 + * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New. + * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New. + * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to + avr_hard_regno_call_part_clobbered. + +2012-06-28 Richard Guenther + + PR middle-end/53790 + * expr.c (expand_expr_real_1): Verify if the type is complete + before inspecting its size. + +2012-06-28 Andreas Schwab + + * doc/include/gpl.texi: Remove. + * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi. + +2012-06-28 Jakub Jelinek + + PR tree-optimization/53645 + * tree-vect-generic.c (add_rshift): New function. + (expand_vector_divmod): New function. + (expand_vector_operation): Use it for vector integer + TRUNC_{DIV,MOD}_EXPR by VECTOR_CST. + * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace + unused lguup variable with dummy_int. + +2012-06-28 OLivier Hainque + + * expr.c (convert_move): Latch mem integer inputs into a + register before expanding a multi-instructions sequence. + +2012-06-28 Alexandre Oliva + Uros Bizjak + Jakub Jelinek + + PR debug/53706 + PR debug/47624 + * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool... + (vt_finalize): ... here instead, if needed. + +2012-06-28 Alexandre Oliva + + PR debug/53740 + PR debug/52983 + PR debug/48866 + * dce.c (word_dce_process_block): Check whether inserting debug + temps are needed even for needed insns. + (dce_process_block): Likewise. + * df-problems.c (dead_debug_add): Add comment about multi-regs. + (dead_debug_insert_temp): Likewise. Don't subreg when we're + setting fewer regs than a multi-reg requires. + +2012-06-27 Richard Henderson + + * config/alpha/alpha.c (alpha_dimode_u): New. + (alpha_init_builtins): Initialize it, and use it. + (alpha_fold_builtin_cmpbge): Use alpha_dimode_u. + (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise. + (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise. + (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise. + (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise. + (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise. + (alpha_fold_builtin_ctpop): Likewise. + (alpha_fold_builtin_umulh): Remove. + (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix + typo in MAX_ARGS check. + +2012-06-27 Richard Henderson + + * tree.def (MULT_HIGHPART_EXPR): New. + * cfgexpand.c (expand_debug_expr): Ignore it. + * expr.c (expand_expr_real_2): Handle it. + * fold-const.c (int_const_binop_1): Likewise. + * optabs.c (optab_for_tree_code): Likewise. + * tree-cfg.c (verify_gimple_assign_binary): Likewise. + * tree-inline.c (estimate_operator_cost): Likewise. + * tree-pretty-print.c (dump_generic_node): Likewise. + (op_code_prio, op_symbol_code): Likewise. + * tree.c (commutative_tree_code): Likewise. Also handle + WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR. + +2012-06-27 Richard Henderson + + PR target/53749 + * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD + in 2012-06-23 change. Adjust two other DImode tests as well. + +2012-06-27 Nick Clifton + + * config/rx/rx.md (comparesi3_extend): Remove = modifier from + input operand. + +2012-06-27 Richard Guenther + + PR middle-end/53676 + * tree-chrec.c (chrec_convert_1): Represent truncation to + a type with undefined overflow as truncation to an unsigned + type converted to the type with undefined overflow. + * tree-scalar-evolution.c (interpret_rhs_expr): For computing + the scalar evolution of a truncated widened operation avoid + looking at the non-existing evolution of the widened operation + result. + +2012-06-27 Richard Guenther + + PR tree-optimization/53774 + * tree-ssa-reassoc.c (get_rank): All default defs have + precomputed rank. + (init_reassoc): Precompute rank for all SSA default defs. + +2012-06-27 Nick Clifton + + * config/rx/rx.md (simple_return): Use the simple_return rtx. + +2012-06-26 Richard Henderson + + * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p + and don't fall thru from standard_80387_constant_p to the memory + fallback. + +2012-06-26 Richard Henderson + + * config/i386/i386.c (bdesc_args): Update. Change + IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2. + (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New. + (ix86_builtin_mul_widen_even): Use it. + (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2. + (ix86_expand_mul_widen_evenodd): Handle signed for sse2. + * config/i386/sse.md (vec_widen_mult_hi_): Allow + for all SSE2. + (vec_widen_mult_lo_): Likewise. + (vec_widen_mult_odd_): Likewise. Relax from V124_AVX2. + (vec_widen_smult_even_v4si): New. + +2012-06-26 Richard Henderson + + * config/i386/sse.md (mul3): Change from insn_and_split + to expander; move guts to ... + * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add + highparts before shifting up. + * config/i386/i386-protos.h: Update. + +2012-06-26 Steven Bosscher + + * system.h (USE_COMMON_FOR_ONE_ONLY): Poison. + * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default. + * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define. + +2012-06-26 Alexandre Oliva + + * var-tracking.c (vt_add_function_parameter): Use a preserved + VALUE for the MEM address of an incoming parameter. + +2012-06-26 Sterling Augustine + + * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator. + (prune_unused_types): Likewise. + +2012-06-26 Steven Bosscher + + * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, + UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison. + * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, + UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to + VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP, + VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP. + * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP, + UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define. + * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the + documentation. + * doc/tm.texi: Regenerate. + * doc/cpp.texi: Make example for #error generic. + * config/frv/frv.h: Fix example text to match tm.texi. + +2012-06-26 Bill Schmidt + + * tree-pass.h (pass_strength_reduction): New decl. + * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static. + (finalize_costs): Likewise. + * timevar.def (TV_TREE_SLSR): New timevar. + * gimple-ssa-strength-reduction.c: New. + * tree-flow.h (initialize_costs): New decl. + (finalize_costs): Likewise. + * Makefile.in (tree-ssa-strength-reduction.o): New dependencies. + * passes.c (init_optimization_passes): Add pass_strength_reduction. + +2012-06-26 Matt Turner + + * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter. + (__builtin_arm_tinsrh): Likewise. + (__builtin_arm_tinsrw): Likewise. + (__builtin_arm_wsadb): Add missing v2si parameter. + (__builtin_arm_wsadh): Likewise. + (__builtin_arm_getwcx): Delete. + (__builtin_arm_setwcx): Delete. + (__builtin_arm_getwcgr0): Add. + (__builtin_arm_getwcgr1): Add. + (__builtin_arm_getwcgr2): Add. + (__builtin_arm_getwcgr3): Add. + (__builtin_arm_setwcgr0): Add. + (__builtin_arm_setwcgr1): Add. + (__builtin_arm_setwcgr2): Add. + (__builtin_arm_setwcgr3): Add. + +2012-06-26 Richard Guenther + + Revert + 2012-06-21 Richard Guenther + + * tree-inline.c (estimate_num_insns): Estimate call cost for + tailcalls properly. + +2012-06-26 Steven Bosscher + + PR other/33190 + * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT. + * doc/tm.texi: Regenerate. + +2012-06-26 Steven Bosscher + + PR other/33190 + * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES. + * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P. + * doc/tm.texi.in: Remove documentation for unused target macros + ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN, + DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE, + REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and + TARGET_NARROW_VOLATILE_BITFIELDS. + Document that MD_HANDLE_UNWABI is a macro in libgcc. + * doc/tm.texi: Regenerate. + * system.h: Poison target macros + ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN, + DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE, + REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and + TARGET_NARROW_VOLATILE_BITFIELDS + +2012-06-26 Jan Hubicka + + PR lto/53572 + * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of + used symbols. + +2012-06-26 Dehao Chen + + * tree-inline.c: (expand_call_inline): Ensure that lexical block's + source location is consistant with the call stmt. + +2012-06-26 Ulrich Weigand + + PR tree-optimization/53729 + PR tree-optimization/53636 + * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to + vect_verify_datarefs_alignment until after statements have + been marked as relevant/irrelevant. + * tree-vect-data-refs.c (vect_verify_datarefs_alignment): + Skip irrelevant statements. + (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P + instead of STMT_VINFO_RELEVANT. + (vect_get_data_access_cost): Do not check for supportable + alignment before calling vect_get_load_cost/vect_get_store_cost. + * tree-vect-stmts.c (vect_get_store_cost): Do not abort when + handling unsupported alignment. + (vect_get_load_cost): Likewise. + +2012-06-25 Steven Bosscher + + * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP. + Do not define JMP_BUF_SIZE. + +2012-06-26 Jakub Jelinek + + PR tree-optimization/53748 + * tree-ssa-phiopt.c (conditional_replacement): Only optimize + if arg0/arg1 have integral or pointer types. + +2012-06-25 Richard Henderson + + * config/i386/sse.md (sse2_sse4_1): Remove code attr. + (dot_prodv4si, dot_prodv8si): Remove + (sdot_prodv4si): New; handle only XOP. + +2012-06-25 Richard Henderson + + * config/i386/i386-builtin-types.def (V4UDI, V8USI): New. + (V2UDI_FUNC_V4USI_V4USI): New. + (V4UDI_FUNC_V8USI_V8USI): New. + * config/i386/i386.c (ix86_expand_args_builtin): Handle them. + (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New. + (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New. + (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New. + (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New. + (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New. + (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New. + (bdesc_args): Add them. + (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New. + (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New. + (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh. + * config/i386/sse.md (vec_widen_mult_odd_): New. + +2012-06-25 Richard Henderson + + * config/i386.sse.md (mul3): Use xop_pmacsdd. + +2012-06-25 Richard Henderson + + * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost + to V16QImode. + (ix86_expand_vec_interleave): New. + (ix86_expand_mul_widen_evenodd): New. + (ix86_expand_mul_widen_hilo): New. + (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd. + * config/i386/i386.md (u_bool) New code attr. + * config/i386/predicates.md + (nonimmediate_or_const_vector_operand): Remove. + * config/i386/sse.md (mul3): Don't use it; don't test + both AVX and SSE4_1. + (vec_widenmult_hi_): Remove. + (vec_widenmult_lo_): Remove. + (vec_widenmult_hi_v8si): Remove. + (vec_widenmult_lo_v8si): Remove. + (vec_widen_smult_hi_v4si): Remove. + (vec_widen_smult_lo_v4si): Remove. + (vec_widen_umult_hi_v4si): Remove. + (vec_widen_umult_lo_v4si): Remove. + (vec_widen_mult_hi_): New. + (vec_widen_mult_lo_): New. + * config/i386/i386-protos.h: Update. + +2012-06-25 Christophe Lyon + + * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove. + (neon_vld1_dup): Restrict to VQ operands. + (neon_vld1_dupv2di): New, fixes vld1q_dup_s64. + +2012-06-25 Matthew Gretton-Dann + James Greenhalgh + + * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins. + (TARGET_FMA): New macro. + (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise. + (TARGET_ARM_ARCH): Likewise. + (TARGET_ARM_ARCH_ISA_THUMB): Likewise. + (TARGET_V6M, TARGET_V7M): Likewise. + (TARGET_ARM_ARCH_PROFILE): Likewise. + (TARGET_ARM_FEATURE_LDREX): Likewise. + (TARGET_ARM_FP, TARGET_NEON_FP): Likewise. + (ARM_MIN_ENUM_SIZE): Likewise. + * config/arm/arm.c (arm_file_start): Refactor appropriately. + (base_architecture): New enumeration. + (arm_base_arch): New global variable. + (processors): Add field base_arch. + (ARM_ARCH, ARM_CORE): Adjust accordingly. + (arm_option_override): Add initialization of arm_base_arch. + * doc/cpp.texi (system-specific predefined macros.): Change. + +2012-06-25 Jakub Jelinek + + PR target/53759 + * config/i386/sse.md (sse_loadlps): Use x m x constraints instead + of x x x in the vmovlps load alternative. + +2012-06-25 Richard Sandiford + + PR debug/53740 + * df.h (dead_debug_add): Remove third argument. + * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the + REG that we want to replace instead. + (dead_debug_insert_temp): Use the REGNO of the reg that we want + to replace instead of DF_REF_REGNO. Require there to always be + at least one such use. Check for cases where the same location + has more than df_ref associated with it. + (df_note_bb_compute): Remove third dead_debug_add argument. + * dce.c (word_dce_process_block): Likewise. + +2012-06-25 Steven Bosscher + + * config/v850/v850.c: Remove redundant extern declarations for + last_assemble_variable_decl and size_directive_output. + + * doc/tm.texi.in: Document JMP_BUF_SIZE. + * doc/tm.texi: Regenerate. + * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define. + * config/pa/pa.h (JMP_BUF_SIZE): Likewise. + * config/stormy16/stormy16.h: Likewise. + + * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP. + + * doc/sourcebuild.texi: Add missing subdirectories. + +2012-06-25 Tristan Gingold + + * config/i386/i386.h: Fix typo. + +2012-06-25 Tristan Gingold + + * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ... + (seh_cfa_adjust_cfa): ... that function. + (seh_emit_stackalloc): Do not emit out of range values. + * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE, + UNSPEC_DEF_CFA constants. + * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define. + * config/i386/i386.c (ix86_frame_pointer_required): Required + for very large frames on SEH target. + (ix86_compute_frame_layout): Save area is before frame pointer + on SEH target. Handle very large frames. + (ix86_expand_prologue): Likewise. + +2012-06-24 Steven Bosscher + + * output.h: (current_function_is_leaf, + current_function_sp_is_unchanging, + current_function_uses_only_leaf_regs): Remove. + * function.c (current_function_is_leaf, + current_function_sp_is_unchanging, + current_function_uses_only_leaf_regs): Remove. + (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs + instead of current_function_uses_only_leaf_regs. + * function.h (struct rtl_data): New fields sp_is_unchanging, + is_leaf, uses_only_leaf_regs. + * resource.c (init_resource_info): Replace current_function_is_leaf, + current_function_sp_is_unchanging, and + current_function_uses_only_leaf_regs with new crtl fields. + * sdbout.c (sdbout_symbol): Likewise. + * df-core.c (rest_of_handle_df_initialize): Likewise. + * ira.c (ira): Likewise. + * final.c (final_start_function): Likewise. + * reorg.c (fill_simple_delay_slots): Likewise. + * regrename.c (check_new_reg_p): Likewise. + * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise. + (notice_stack_pointer_modification): Likewise. + * dbxout.c (dbxout_symbol): Likewise. + (dbxout_parms): Likewise. + * sel-sched.c (init_regs_for_mode): Likewise. + * dwarf2out.c (dbx_reg_number): Likewise. + (multiple_reg_loc_descriptor): Likewise. + * config/i386/i386.c (ix86_frame_pointer_required): Likewise. + (gen_pop): Likewise. + (ix86_select_alt_pic_regnum): Likewise. + (ix86_compute_frame_layout): Likewise. + (ix86_finalize_stack_realign_flags): Likewise. + (ix86_expand_epilogue): Likewise. + * config/rs6000/rs6000.c (rs6000_stack_info): Likewise. + * config/h8300/h8300.c (byte_reg): Likewise. + * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise. + (c6x_save_reg): Likewise. + (c6x_compute_frame_layout): Likewise. + * config/pa/pa.c (pa_compute_frame_size): Likewise. + (pa_output_function_prologue): Likewise. + * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise. + * config/sparc/sparc.md (attr "leaf_function"): Likewise. + * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise. + (sparc_expand_prologue): Likewise. + (sparc_flat_expand_prologue): Likewise. + (sparc_asm_function_prologue): Likewise. + (sparc_output_mi_thunk): Likewise. + (sparc_frame_pointer_required): Likewise. + * config/epiphany/epiphany.c (epiphany_compute_function_type): + Likewise. + (epiphany_compute_frame_size): Likewise. + * config/lm32/lm32.c (lm32_compute_frame_size): Likewise. + * config/cris/cris.c (cris_md_asm_clobbers): Likewise. + (cris_frame_pointer_required): Likewise. + * config/tilepro/tilepro.c (emit_sp_adjust): Likewise. + (tilepro_current_function_is_leaf): Likewise. + * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise. + * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise. + * config/ia64/ia64.c (find_gr_spill): Likewise. + (ia64_compute_frame_size): Likewise. + (ia64_can_eliminate): Likewise. + (ia64_initial_elimination_offset): Likewise. + * config/m68k/m68k.c (m68k_save_reg): Likewise. + (m68k_expand_epilogue): Likewise. + * config/rx/rx.c (rx_get_stack_layout): Likewise. + * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise. + * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save): + Likewise. + (picochip_output_frame_debug): Likewise. + * config/sh/sh.c (sh_media_register_for_return): Likewise. + (sh_allocate_initial_value): Likewise. + (sh_output_mi_thunk): Likewise. + * config/microblaze/microblaze.c (microblaze_must_save_register): + Likewise. + (compute_frame_size): Likewise. + (microblaze_initial_elimination_offset): Likewise. + (microblaze_expand_prologue): Likewise. + (microblaze_expand_epilogue): Likewise. + * config/frv/frv.c (frv_expand_epilogue): Likewise. + (frv_frame_pointer_required): Likewise. + * config/spu/spu.c (get_pic_reg): Likewise. + (direct_return): Likewise. + (spu_expand_prologue): Likewise. + (spu_expand_epilogue): Likewise. + (spu_initial_elimination_offset): Likewise. + * config/mips/mips.c (mips_global_pointer): Likewise. + (mips_cfun_might_clobber_call_saved_reg_p): Likewise. + (mips_compute_frame_info): Likewise. + * config/mep/mep.c (mep_interrupt_saved_reg): Likewise. + (mep_reload_pointer): Likewise. + * config/rl78/rl78.c (need_to_save): Likewise. + * config/cr16/cr16.c (cr16_compute_save_regs): Likewise. + * config/score/score.c (score_compute_frame_size): Likewise. + (score_function_prologue): Likewise. + * config/bfin/bfin.c (must_save_p): Likewise. + (expand_prologue_reg_save): Likewise. + (expand_epilogue_reg_restore): Likewise. + (bfin_frame_pointer_required): Likewise. + (n_regs_saved_by_prologue): Likewise. + (add_to_reg): Likewise. + (expand_interrupt_handler_prologue): Likewise. + (expand_interrupt_handler_epilogue): Likewise. + (bfin_expand_prologue): Likewise. + * config/avr/avr.c (avr_regs_to_save): Likewise. + (avr_prologue_setup_frame): Likewise. + (expand_epilogue): Likewise. + * config/s390/s390.c (s390_regs_ever_clobbered): Likewise. + (s390_register_info): Likewise. + (s390_frame_info): Likewise. + (s390_init_frame_layout): Likewise. + (s390_emit_prologue): Likewise. + + +2012-06-24 Steven Bosscher + + * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE. + * vmsdbgout: Do not undefine it if defined. + Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP. + * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP. + * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE. + +2012-06-24 Richard Sandiford + + * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast. + +2012-06-23 Richard Henderson + + PR target/53749 + * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for + V*QImode shifts and multiply. + (ix86_expand_vecop_qihi): Support shifts. + * config/i386/i386.md (any_shift): New code iterator. + * config/i386/sse.md (ashlv16qi3): Merge ... + (v16qi3): ... into ... + (3): ... here. Use ix86_expand_vecop_qihi + to support SSE and AVX. + + * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[] + parameter into src and dest. + * config/i386/sse.md (vec_unpacku_hi_): Update call. + (vec_unpacks_hi_): Likewise. + (vec_unpacku_lo_): Likewise. + (vec_unpacks_lo_): Likewise. + * config/i386/i386-protos.h: Update. + + * config/i386/sse.md (mul3): Change from insn_and_split to + pure expander; move expansion code ... + * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function. + * config/i386/i386-protos.h: Update. + +2012-06-22 Edmar Wienskoski + + * config/rs6000/rs6000.md (define_attr "type"): New type popcnt. + (popcntb2): Add attribute type popcnt. + (popcntd2): Ditto. + * config/rs6000/power4.md (define_insn_reservation): Add type popcnt. + * config/rs6000/power5.md (define_insn_reservation): Ditto. + * config/rs6000/power7.md (define_insn_reservation): Ditto. + * config/rs6000/476.md (define_insn_reservation): Ditto. + * config/rs6000/power6.md (define_insn_reservation): New + reservation for popcnt instructions. + +2012-06-22 H.J. Lu + + * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning. + +2012-06-22 H.J. Lu + + PR target/53383 + * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3. + * config/i386/i386.c (ix86_option_override_internal): Allow + -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled. + * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit + if SSE is disabled. + +2012-06-22 Bill Schmidt + + * double-int.c (double_int_multiple_of): New function. + * double-int.h (double_int_multiple_of): New decl. + * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs. + (mbc_entry_hash): New forward decl. + (mbc_entry_eq): Likewise. + (zero_cost): Change to no_cost. + (mult_costs): New static var. + (cost_tables_exist): Likewise. + (initialize_costs): New function. + (finalize_costs): Likewise. + (tree_ssa_iv_optimize_init): Call initialize_costs. + (add_cost): Change to add_regs_cost; distinguish costs by speed. + (multiply_regs_cost): New function. + (add_const_cost): Likewise. + (extend_or_trunc_reg_cost): Likewise. + (negate_reg_cost): Likewise. + (multiply_by_cost): Change to multiply_by_const_cost; distinguish + costs by speed. + (get_address_cost): Change add_cost to add_regs_cost; change + multiply_by_cost to multiply_by_const_cost. + (force_expr_to_var_cost): Change zero_cost to no_cost; change + add_cost to add_regs_cost; change multiply_by_cost to + multiply_by_const_cost. + (split_cost): Change zero_cost to no_cost. + (ptr_difference_cost): Likewise. + (difference_cost): Change zero_cost to no_cost; change multiply_by_cost + to multiply_by_const_cost. + (get_computation_cost_at): Change add_cost to add_regs_cost; change + multiply_by_cost to multiply_by_const_cost. + (determine_use_iv_cost_generic): Change zero_cost to no_cost. + (determine_iv_cost): Change add_cost to add_regs_cost. + (iv_ca_new): Change zero_cost to no_cost. + (tree_ssa_iv_optimize_finalize): Call finalize_costs. + * tree-ssa-address.c (most_expensive_mult_to_index): Change + multiply_by_cost to multiply_by_const_cost. + * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost. + (add_regs_cost): New decl. + (multiply_regs_cost): Likewise. + (add_const_cost): Likewise. + (extend_or_trunc_reg_cost): Likewise. + (negate_reg_cost): Likewise. + +2012-06-22 Richard Guenther + + Merge from graphite branch + 2011-08-10 Sebastian Pop + + * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak. + + 2012-01-13 Tobias Grosser + + * tree-flow.h (parallelized_function_p): Declare. + * tree-parloops.c (parallelized_function_p): Export. + * graphite.c (graphite_transform_loops): Do not run graphite on + already parallel functions. + +2012-06-22 Alan Modra + + * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and + return mem. Convert to indirect addressing if not indirect or + indexed. Adjust all callers. + +2012-06-22 Richard Guenther + + * gcov-iov.c: Include bconfig.h and system.h. + +2012-06-22 Andreas Schwab + + * doc/include/texinfo.tex: Update to version 2012-06-05.14. + +2012-06-22 Richard Guenther + + PR gcov-profile/53744 + * gcov-iov.c (main): Treat "" and "prerelease" the same. + +2012-06-22 Eric Botcazou + + PR debug/53704 + * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language + for GNU Fortran if in strict DWARF2 mode. + +2012-06-22 Eric Botcazou + + * tree-ssa-live.c (remove_unused_scope_block_p): Remove again + DECL_IGNORED_P non-reg vars even if they are used. + +2012-06-21 Alexandre Oliva + + PR debug/53671 + PR debug/49888 + * var-tracking.c (vt_get_canonicalize_base): New. + (vt_canonicalize_addr, vt_stack_offset_p): New. + (vt_canon_true_dep): New. + (drop_overlapping_mem_locs): Use vt_canon_true_dep. + (clobber_overlaping_mems): Use vt_canonicalize_addr. + +2012-06-21 Alexandre Oliva + + PR debug/53671 + PR debug/49888 + * var-tracking.c (vt_initialize): Record initial offset between + arg pointer and stack pointer. + +2012-06-21 Alexandre Oliva + + PR debug/53671 + PR debug/49888 + * var-tracking.c (vt_init_cfa_base): Drop redundant recording of + CFA base. + +2012-06-21 Alexandre Oliva + + PR debug/53671 + PR debug/49888 + * alias.c (memrefs_conflict_p): Improve handling of AND for alignment. + +2012-06-21 Alexandre Oliva + + * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug. + +2012-06-21 Alexandre Oliva + + PR debug/53682 + * cselib.c (promote_debug_loc): Don't crash on NULL argument. + +2012-06-21 Meador Inge + + PR c/53702 + * c-decl.c (c_push_function_context): Restore the behavior to reuse + the language function allocated for -Wunused-local-typedefs. + (c_pop_function_context): If necessary, clear the language function + created in c_push_function_context. Always clear out the + x_cur_stmt_list field of the restored language function. + +2012-06-21 Sterling Augustine + Cary Coutant + + * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die, + add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions. + (comdat_type_struct): New field 'skeleton_die'. + (breakout_comdat_types): Update it. + (add_pubname): Rework logic. Call is_class_die, is_cu_die and + is_namespace_die. Fix minor style violation. Call want_pubnames. + (add_pubname_string): Call want_pubnames. + (add_pubtype): Rework logic for calculating type name. Call + is_namespace_die. Call want_pubnames. + (output_pubnames): Move conditional logic deciding when to produce the + section from dwarf2out_finish. Use new skeleton_die field. + (base_type_die): Call add_pubtype. + (gen_enumeration_type_die): Unconditionally call add_pubtype. + (gen_subprogram_die): Adjust calls to add_pubname. + (gen_namespace_die): Call add_pubname_string. + (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to + produce pubnames and pubtypes sections to output_pubnames. + * common.opt (-gpubnames): New option. + * doc/invoke.texi: Document it. + +2012-06-21 Steven Bosscher + + * config/m32c/m32c-pragma.c: Remove unnecessary includes. + +2012-06-21 Michael Matz + + PR middle-end/53688 + * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF + with correct size. + +2012-06-21 Richard Guenther + + * tree-inline.c (estimate_num_insns): Estimate call cost for + tailcalls properly. + +2012-06-20 Rüdiger Sonderfeld + + * tree.h (DECL_SOURCE_COLUMN): New accessor. + +2012-06-20 Uros Bizjak + + * config/i386/i386.md (SINCOS): New int iterator. + (sincos): New int attribute. + (*xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using + SINCOS int iterator. + (*_extendxf2_i387): Macroize insn from + *{sin,cos}_extendxf2_i387 using SINCOS int iterator. + +2012-06-20 Uros Bizjak + + * config/i386/i386.md (RDFSGSBASE): New int iterator. + (WRFSGSBASE): Ditto. + (fsgs): New int attribute. + (rdbase): Macroize insn from rdbase using + RDFSGSBASE int iterator. + (wrbase): Macroize insn from wrbase using + WRFSGSBASE int iterator. + +2012-06-20 Uros Bizjak + + * config/i386/i386.md (2): Macroize expander + from {floor,ceil,btrunc}2 using FIST_ROUNDING int iterator. + (l2): Macroize expander + from l{floor,ceil}2 using FIST_ROUNDING + int iterator. + +2012-06-20 Steven Bosscher + + * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP. + +2012-06-20 Richard Guenther + + PR tree-optimization/30318 + * tree-vrp.c (range_int_cst_p): Do not reject overflowed + constants here. + (range_int_cst_singleton_p): But explicitely here. + (zero_nonzero_bits_from_vr): And here. + (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR + to cover all cases we can perform arbitrary precision + arithmetic with double-ints. + (intersect_ranges): Handle adjacent anti-ranges. + +2012-06-20 Uros Bizjak + + * config/i386/i386.md (rounding_insn): New int attribute. + (xf2): Macroize insn from + {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator. + (lxf2): Rename from lxf2. + +2012-06-20 Uros Bizjak + + * config/i386/i386.md (IEEE_MAXMIN): New int iterator. + (ieee_maxmin): New int attribute. + (*ieee_s3): Macroize insn from + *ieee_s{max,min}3 using IEEE_MAXMIN int iterator. + +2012-06-20 Steven Bosscher + + * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove. + * config/arm/arm.c: Do not include c-pragma.h. + (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE. + (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls + to arm_emit_eabi_attribute. + * arm-c.c: Do not include output.h. + (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a + call to arm_emit_eabi_attribute. + * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it. + +2012-06-20 Richard Guenther + + * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): + Allow adjusting alignment of user-aligned decls again. + +2012-06-20 Steven Bosscher + + * config/rl78/rl78-c.c: Remove unnecessary includes. + +2012-06-20 Steven Bosscher + + * config/cris/cris.c: Include cgraph.h. + (cris_option_override): Do not set non-existing flag_no_gcc_ident. + +2012-06-19 Maxim Kuvyrkov + + * emit-rtl.c (need_atomic_barrier_p): New function. + * emit-rtl.h (need_atomic_barrier_p): Declare it. + * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it. + * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it. + * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it. + * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove. + (mips_process_sync_loop): Use generic version instead. + +2012-06-19 Maxim Kuvyrkov + + * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if + it is used. + +2012-06-19 Tom de Vries + Maxim Kuvyrkov + + * config/mips/constraints.md (ZR): New constraint. + * config/mips/predicates.md (mem_noofs_operand): New predicate. + * config/mips/mips.c (mips_print_operand): Handle new print modifier. + * config/mips/mips.h (TARGET_XLP): Define. + (TARGET_SYNC_AFTER_SC): Update. + (ISA_HAS_SWAP, ISA_HAS_LDADD): Define. + * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use + XLP-specific swap and ldadd patterns. + (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns. + +2012-06-19 Tom de Vries + Maxim Kuvyrkov + + * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,) + (mips_emit_post_atomic_barrier_p): New static functions. + (mips_process_sync_loop): Use them. Emit sync memory barriers in + accordance with memory model semantics. Add return of CMP result for + compare_and_swap. + * config/mips/mips.md: Update comment. + (sync_cmp): New attribute. + (sync_memmodel): New attribute replacing sync_release_barrier. + * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,) + (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants. + (sync_lock_test_and_set, test_and_set_12): Update. + (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,) + (atomic_fetch_add, atomic_fetch_add_llsc): New patterns. + +2012-06-19 Joseph Myers + + * config/rs6000/spe.md (*mov_si_e500_subreg0): Rename to + mov_si_e500_subreg0. + (*mov_si_e500_subreg0_elf_low) + (*mov_si_e500_subreg4_elf_low): New patterns. + +2012-06-19 Richard Henderson + + * config/alpha/alpha.c: Include params.h. + (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE, + PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning. + +2012-06-19 Steven Bosscher + + * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE, + TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks. + (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE): + Remove. + * doc/tm.texi: Regenerate. + * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for + .objc_class_name_*. + * config/darwin-c.c: Include target.h. + (darwin_objc_declare_unresolved_class_reference): New function. + (darwin_objc_declare_class_definition): New function. + (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define. + (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define. + +2012-06-19 Steven Bosscher + + * target.def (output_ident): New hook. + * targhooks.h (default_asm_output_ident_directive): Add prototype. + * varasm.c (assemble_asm): Only prefix a tab if the string does not + already start with one. + (default_asm_output_ident_directive): New function to emit + .ident as a top-level asm node while parsing, or directly to + asm_out_file after parsing. + * toplev.c (compile_file): Print a GCC .ident with + targetm.asm_out.output_ident. + * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro. + (TARGET_ASM_OUTPUT_IDENT): Add @hook for this. + * doc/tm.texi: Update. + + * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove. + (TARGET_ASM_OUTPUT_IDENT): Define. + * config/i386/djgpp.h (IDENT_ASM_OP): Remove. + * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove. + * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove. + * config/sparc/sparc.h (IDENT_ASM_OP): Remove. + (TARGET_ASM_OUTPUT_IDENT): Define. + * config/picochip/picochip.h (IDENT_ASM_OP): Remove. + (TARGET_ASM_OUTPUT_IDENT): Define. + + * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype. + * config/cris/cris.c (cris_asm_output_ident): New function. + * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove. + + * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident): + Add prototype. + * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node. + (microblaze_asm_output_ident): Rewrite to work similar to + default_asm_output_ident_directive for front-end .idents. + * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove. + (TARGET_ASM_OUTPUT_IDENT): Define. + + * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove. + * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove. + + * config/rx/rx.c: Include cgraph.h for add_asm_node. + (rx_asm_output_ident): New function, similar to + default_asm_output_ident_directive, but handle AS100 syntax also, so + that #ident also works for rx in AS100 syntax. + (TARGET_ASM_OUTPUT_IDENT): Define. + * config/rx/rx.h (IDENT_ASM_OP): Remove. + + * Makefile.in: Fix dependencies for c-family/c-lex.o. + +2012-06-19 Uros Bizjak + + * config/i386/i386.md (FIST_ROUNDING): New int iterator. + (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}. + (ROUNDING): Ditto. + (*fist2__1): Macroize insn from + *fist2_{floor,ceil}_1 using FIST_ROUNDING int iterator. + (fistdi2_): Macroize insn from + fistdi2_{floor,ceil} using FIST_ROUNDING int iterator. + (fistdi2__with_temp and splitters): Macroize insn and + corresponding splitters from fistdi2_{floor,ceil} and corresponding + splitters using FIST_ROUNDING int iterator. + (fist2_): Macroize insn from + fist2_{floor,ceil} using FIST_ROUNDING int iterator. + (fist2__with_temp and splitters): Macroize insn and + corresponding splitters from fist2_{floor,ceil} and corresponding + splitters using FIST_ROUNDING int iterator. + (lxf2): Macroize expander from l{floor,ceil}xf2 + using FIST_ROUNDING int iterator. + +2012-06-19 Richard Henderson + + * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare. + * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New. + * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New. + * config/i386/sse.md (sse2_mulv4si3): Delete. + (mul3): Use ix86_expand_sse2_mulv4si3 and + nonimmediate_or_const_vector_operand. + +2012-06-19 Richard Henderson + + * expmed.c (struct init_expmed_rtl): Split ... + (init_expmed_one_mode): ... out of ... + (init_expmed): ... here. Initialize integer vector modes also. + (synth_mult): Handle integer vector modes. + (choose_mult_variant): Likewise. + (expand_mult_const): Likewise. + (expand_mult): Likewise. + * machmode.h (GET_MODE_UNIT_BITSIZE): New. + +2012-06-19 Richard Henderson + + * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and + integral vector modes. + +2012-06-19 Uros Bizjak + + * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator. + (rounding): New int attribute. + (ROUNDING): Ditto. + (frndintxf2_): Macroize insn from + frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator. + (frndintxf2__i387): Macroize insn from + frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator. + +2012-06-19 Richard Guenther + + * tree-vrp.c (union_ranges): New function. + (vrp_meet_1): Use union_ranges. + (vrp_meet): Dump what we union and call vrp_meet_1. + +2012-06-19 Richard Earnshaw + + * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS. + (attr type): Remove fmul, ffmul, farith, ffarith, float_em + f_fpa_load, f_fpa_store, f_mem_r, r_mem_f. + (attr write_conflict, attr core_cycles): Update. + * arm-generic.md (r_mem_f_wbuf): Delete reservation. + +2012-06-19 Richard Guenther + + * tree-vrp.c (intersect_ranges): Handle more cases. + (vrp_intersect_ranges): Dump what we intersect and call ... + (vrp_intersect_ranges_1): ... this. + +2012-06-19 Richard Guenther + + PR tree-optimization/53708 + * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve + user-supplied alignment and alignment of decls with the used + attribute. + +2012-06-18 Lawrence Crowl + + * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM. + (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN. + (TV_PHASE_STREAM_IN): New. + (TV_PHASE_STREAM_OUT): New. + * timevar.c (validate_phases): New. + (timevar_print): Call validate_phases. + * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH + to TV_PHASE_OPT_GEN. + * langhooks.c (write_global_declarations): Rename use of + TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of + TV_PHASE_CHECK_DBGINFO. + * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to + TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to + lang_hooks.decls.final_write_globals. + +2012-06-18 David Edelshn + + * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0. + +2012-06-18 Uros Bizjak + + PR target/53712 + * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New. + (*sse4_2_pcmpistr_unaligned): New. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (arm_output_epilogue): Remove. + * config/arm/arm.c (print_multi_reg): Remove. + (vfp_output_fldmd): Likewise. + (arm_output_epilogue): Likewise. + * config/arm/arm.md (epilogue_insns): Update condition and code. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (thumb2_expand_return): New declaration. + * config/arm/arm.c (thumb2_expand_return): New function. + * config/arm/arm.md (return): Update condition and code. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (output_return_instruction): New parameter + and int to bool change of parameter types. + * config/arm/arm.c (output_return_instruction): Likewise. + * config/arm/arm.md (arm_simple_return): New pattern. + (arm_return, cond_return, cond_return_inverted): Add new arguments. + * config/arm/thumb2.md (thumb2_return): Update condition and code. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (arm_expand_epilogue): New declaration. + * config/arm/arm.c (arm_expand_epilogue): New function. + * config/arm/arm.md (epilogue): Update condition and code. + (sibcall_epilogue): Likewise. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function. + * config/arm/arm.md (arm_addsi3) Add an alternative. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn. + * config/arm/predicates.md (pop_multiple_fp) New special predicate. + * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function. + +2012-06-18 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm.md (load_multiple_with_writeback) New define_insn. + (load_multiple, pop_multiple_with_writeback_and_return) Likewise. + (pop_multiple_with_return, ldr_with_return) Likewise. + * config/arm/predicates.md (pop_multiple_return) New special predicate. + * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration. + * config/arm/arm.c (arm_output_multireg_pop) New function. + (arm_emit_multi_reg_pop): New function. + +2012-06-18 Greta Yorsh + + * config/arm/arm.c (ldm_stm_operation_p): Require SP + as base register for loads if SP is in the register list. + +2012-06-18 Richard Guenther + + PR tree-optimization/53693 + * tree-vect-patterns.c (vect_operation_fits_smaller_type): + Reject operands with more than one use. + +2012-06-18 Bill Schmidt + + PR tree-optimization/53703 + * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis; + correctly set bb_for_def[12]. + +2012-06-18 Steven Bosscher + + * config/vax/vax.h (VMS_TARGET): Remove. + +2012-06-18 Richard Guenther + + * tree-vrp.c (extract_range_from_assert): Split out range + intersecting code. + (intersect_ranges): New function. + (vrp_intersect_ranges): Likewise. + +2012-06-18 Andreas Krebbel + + * config/s390/s390.c (s390_gimplify_va_arg): Revert change from + r187965. + +2012-06-18 Tejas Belagod + + * doc/md.texi: Document int iterators. + * read-rtl.c (ints): New iterator group. + (find_int): Int iterator group callback. + (apply_int_iterator): Likewise. + (apply_iterators): Traverse int iterator table and add all the used + iterators to list. + (initialize_iterators): Initialize data structures and callbacks for + int iterators. + (read_rtx): Parse and read mappings for int iterators. + (read_rtx_code): Record int iterator usage. + +2012-06-18 Richard Sandiford + + PR middle-end/53698 + * expr.c (expand_expr_addr_expr_1): Convert to tmode before + performing an addition. + +2012-06-17 Steven Bosscher + + * output.h (split_double): Move prototype to rtl.h. + (constructor_static_from_elts_p): Move prototype to tree.c. + * rtl.h (split_double): Moved here from output.h. + * tree.h (constructor_static_from_elts_p): Moved here from output.h. + * final.c (split_double): Move from here ... + * rtlanal.c (split_double): ... to here. + * expr.c: Do not include output.h. + +2012-06-17 Steven Bosscher + + * cfglayout.h: Remove. + * cfglayout.c: Remove. + * function.h (struct function): Remove x_last_location field. + * function.c: Do not include cfglayout.h. + (expand_function_start): Do not call no-op force_next_line_note. + (expand_function_end): Likewise. + * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h. + (unlink_insn_chain): Moved here from cfglayout.c. + (skip_insns_after_block, label_for_bb, record_effective_endpoints, + into_cfg_layout_mode, outof_cfg_layout_mode, + pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode, + relink_block_chain, fixup_reorder_chain, verify_insn_chain, + fixup_fallthru_exit_predecessor, force_one_exit_fallthru, + cfg_layout_can_duplicate_bb_p, duplicate_insn_chain, + cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks, + cfg_layout_finalize): Likewise. + (rtl_can_remove_branch_p): Likewise. + * rtl.h (insn_scope): Move prototype from cfglayout.h here. + (duplicate_insn_chain): Likewise. + (force_next_line_note): Remove prototype. + * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h. + (last_location): Remove #define to emit.x_last_location. + (force_next_line_note): Remove no-op function. + (init_emit): Don't set x_last_location. + (block_locators_locs, block_locators_blocks, locations_locators_locs, + locations_locators_vals, prologue_locator, epilogue_locator, + curr_location, last_location, curr_block, last_block, curr_rtl_loc): + Move POD to here from cfglayout.c. + (insn_locators_alloc, insn_locators_finalize, insn_locators_free, + set_curr_insn_source_location, get_curr_insn_source_location, + set_curr_insn_block, get_curr_insn_block, curr_insn_locator, + locator_scope, insn_scope, locator_location, locator_line, insn_line, + locator_file, insn_file, locator_eq): Move to here from cfglayout.c. + * cfghooks.h: Remove double-include protection. + (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here. + * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c. + * final.c: Do not include cfglayout.h. + (choose_inner_scope, change_scope): Move to here from cfglayout.c. + (reemit_insn_block_notes): Likewise. Make static. + * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p, + operation_could_trap_p, tree_could_throw_p): Move from here... + * tree.h: ... to here. + * gengtype.c (open_base_files): Remove cfglayout.h from the list. + * profile.c: Do not include cfghooks.h. + * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h. + * modulo-sched.c: Likewise. + * loop-unswitch.c: Do not include cfglayout.h. + * sched-ebb.c: Likewise. + * tracer.c: Likewise. + * ddg.c: Likewise. + * tree-vect-loop-manip.c: Likewise. + * loop-init.c: Likewise. + * dwarf2out.c: Likewise. + * hw-doloop.c: Likewise. + * loop-unroll.c: Likewise. + * cfgcleanup.c: Likewise. + * bb-reorder.c: Likewise. + * sched-rgn.c: Likewise. + * tree-cfg.c: Likewise. + * config/alpha/alpha.c: Likewise. + * config/spu/spu.c: Likewise. + * config/sparc/sparc.c: Likewise. + * config/sh/sh.c: Likewise. + * config/c6x/c6x.c: Likewise. + * config/ia64/ia64.c: Likewise. + * config/rs6000/rs6000.c: Likewise. + * config/score/score.c: Likewise. + * config/mips/mips.c: Likewise. + * config/bfin/bfin.c: Likewise. + * Makefile.in (CFGAYOUT_H): Remove, and fixup users. + * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h. + * config/spu/t-spu-elf (spu.o: $): Likewise. + * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H. + +2012-06-17 Steven Bosscher + + * cfgloop.h: Do not include rtl.h. + (enum iv_extend_code): New. + (struct rtx_iv): Use iv_extend_code instead of rtx_code. + * Makefile.in (CFGLOOP_H): Do not depend on RTL_H. + * loop-iv.c (iv_extend_to_rtx_code): New function to translate + an IV_EXTEND_CODE to an RTX_CODE. + (dump_iv_info): Update for rtx_iv field type change. + (iv_constant): Likewise. + (iv_subreg): Likewise. + (iv_extend): Likewise. + (iv_neg): Likewise. + (iv_add): Likewise. + (iv_mult): Likewise. + (iv_shift): Likewise. + (get_biv_step_1): Likewise. + (get_biv_step): Likewise. + (iv_analyze_biv): Likewise. + (get_iv_value): Likewise. + (shorten_into_mode): Likewise. + (canonicalize_iv_subregs): Likewise. + * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead + of MAY_HAVE_DEBUG_INSNS. + * tree-ssa-loop-ivopts.c: Include recog.h after expr.h. + * tree-ssa-loop-prefetch.c: Likewise. + +2012-06-17 Steven Bosscher + + * expmed.c (ceil_log2): Move from here... + * hwint.c: ... to here for older GCCs... + * hwint.h: ... and here for newer GCCs. + * rtl.h (ceil_log2): Remove prototype. + + * tree-phinodes.c: Do not include rtl.h. + * Makefile.in (tree-phinodes.o): Do not depend on RTL_H. + +2012-06-17 Steven Bosscher + + * config/cris/cris.h (TARGET_ELF): Remove. + (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove. + (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1. + (LOCAL_LABEL_PREFIX): Likewise. + * config/cris/cris.c (cris_target_asm_named_section): Remove. + (cris_option_override): Simpify using TARGET_ELF==1. + (cris_file_start): Likewise. + * config/cris/cris-protos.h (cris_target_asm_named_section): Remove. + +2012-06-17 Uros Bizjak + + * config/i386/sse.md (vcvtph2ps): Fix vec_select selector. + +2012-06-16 Eric Botcazou + + PR middle-end/53590 + * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions. + +2012-06-15 Easwaran Raman + + * passes.c (init_optimization_passes): Remove pass_call_cdce + from its current position and insert after pass_dce. + +2012-06-15 Walter Lee + + * config/tilegx/sync.md (atomic_fetch_): Fix typo. + +2012-06-15 Richard Earnshaw + + * arm.c (note_invalid_constants): Don't return a result. + (arm_memory_load_p): Delete function. + (arm_const_double_rtx): Delete iterator variable i; + (fp_immediate_constant): Likewise. + (fp_const_from_val): Likewise. + + * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void. + +2012-06-15 Marc Glisse + + PR c++/51033 + * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c. + * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h. + +2012-06-15 Georg-Johann Lay + + * config/avr/avr.c (avr_default_expand_builtin): New function. + (avr_expand_builtin): Use it. + (avr_expand_unop_builtin): Remove. + (avr_expand_binop_builtin): Remove. + (avr_expand_triop_builtin): Remove. + +2012-06-15 Michael Matz + + PR middle-end/38474 + * cfgexpand.c (add_alias_set_conflicts): Remove. + (expand_used_vars): Don't call it. + (aggregate_contains_union_type): Remove. + * function.c (n_temp_slots_in_use): New static data. + (make_slot_available, assign_stack_temp_for_type): Update it. + (init_temp_slots): Zero it. + (remove_unused_temp_slot_addresses): Use it for quicker removal. + (remove_unused_temp_slot_addresses_1): Use htab_clear_slot. + +2012-06-15 Michael Matz + + * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f + argument, don't emit assign statement if value is directly usable. + (gimplify_expr): Adjust. + +2012-06-15 Michael Matz + + * gimplify.c (gimplify_modify_expr): Fold generated statements. + * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans. + +2012-06-15 Richard Guenther + + * tree-vrp.c (set_and_canonicalize_value_range): Use canonical + predicates to set VR_UNDEFINED and VR_VARYING. Drop a case + we assert for in set_value_range to VR_VARYING. + +2012-06-15 Richard Earnshaw + + * arm.md (addsf3, adddf3): Use s_register_operand. + (subsf3, subdf3): Likewise. + (mulsf3, muldf3): Likewise. + (difsf3, divdf3): Likewise. + (movsfcc, movdfcc): Likewise. + * predicates.md (f_register_operand): Delete. + (arm_float_rhs_operand): Delete. + (arm_float_add_operand): Delete. + (arm_float_compare_operand): Use s_register_operand when + there's no VFP. + (cirrus_register_operand): Delete. + (cirrus_fp_register): Delete. + (cirrus_shift_const): Delete. + (cmpdi_operand): Remove Maverick support. + * constraints.md (f, v, H): Delete constraints. + (G): Update documentation. + * arm.c (fp_consts_inited): Convert to bool. + (strings_fp): Delete. + (values_fp): Delete. + (value_fp0): New variable. + (init_fp_table): Simplify logic. + (arm_const_double_rtx): Likewise. + (fp_immediate_constant): Likewise. + (fp_const_from_val): Likewise. + (neg_const_double_rtx_ok_for_fpa): Delete. + * doc/md.texi (ARM constraints): Update documentation. + +2012-06-15 Ulrich Weigand + + PR tree-optimization/53636 + * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify + stride when doing basic-block vectorization. + +2012-06-15 Ramana Radhakrishnan + + * tree-vect-generic.c (lower_vec_perm): Propagate vector constants + into VEC_PERM_EXPR. + +2012-06-15 Jakub Jelinek + + * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily + allocate and free bbs array for the SLP case. + + PR tree-optimization/51581 + * expr.h (choose_multiplier): New prototype. + * expmed.c (choose_multiplier): No longer static. + Change multiplier_ptr from rtx * to UHWI *. + (expand_divmod): Adjust callers. + * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to... + (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last + argument to new_stmt_vec_info. Attempt to optimize also divisions + by non-pow2 constants if integer vector division isn't supported. + * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL, + don't look at pattern stmts and sequences. + +2012-06-15 Eric Botcazou + + PR middle-end/53590 + * common.opt (-fdelete-dead-exceptions): New switch. + * doc/invoke.texi (Code Gen Options): Document it. + * cse.c (count_reg_usage) : Use !insn_nothrow_p in lieu of + insn_could_throw_p predicate. Do not skip an insn that could throw + if dead exceptions can be deleted. + (insn_live_p): Likewise, do not return true in that case. + * dce.c (can_alter_cfg): New flag. + (deletable_insn_p): Do not return false for an insn that can throw if + the CFG can be altered and dead exceptions can be deleted. + (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise. + * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_ + predicate. Do not preserve an insn that could throw if dead exceptions + can be deleted. + * function.h (struct function): Add can_delete_dead_exceptions flag. + * function.c (allocate_struct_function): Set it. + * lto-streamer-in.c (input_struct_function_base): Stream it. + * lto-streamer-out.c (input_struct_function_base): Likewise. + * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a + statement that could throw as necessary if dead exceptions can be + deleted. + +2012-06-14 Maxim Kuvyrkov + + * config/tilegx/sync.md (atomic_fetch_sub): Fix typo. + +2012-06-14 Oleg Endo + + PR target/53568 + * config/sh/sh.md: Add peephole for swapbsi2. + (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits. + +2012-06-14 Uros Bizjak + + * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative. + (*zero_extendsidi2_rex64): Ditto. Remove isa attribute. + +2012-06-14 Jakub Jelinek + + PR target/53639 + * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New. + +2012-06-14 Richard Earnshaw + + * arm.c (arm_cirrus_insn_p): Delete. + (cirrus_reorg): Delete. + (arm_reorg): Don't call cirrus_reorg. + (arm_final_prescan_insn_p): Don't check for cirrus insns. + * arm.md (define_attr "type"): Remove mav_farith and mav_dmult. + (adddi3, subdi3): Remove Maverick support. + (arm_adddi3): Likewise. + (adddi_sesidi_di, adddi_zesidi_di): Likewise. + (addsf3, adddf3): Likewise. + (subsf3, subdf3): Likewise. + (mulsf3, muldf3): Likewise. + (ashldi3, ashrdi3, lshrdi3): Likewise. + (floatsisf2, floatsidf2): Likewise. + (fix_truncsfsi2, fix_truncdfsi2): Likewise. + (arm_movdi, thumb1_movdi_insn): Likewise. + (arm_cmpdi_insn): Likewise. + (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise. + (cirrus.md): Don't include. + * cirrus.md: Delete file. + * t-arm (MD_INCLUDES): Remove cirrus.md. + +2012-06-14 Eric Botcazou + + * dwarf2out.c (function_possibly_abstracted_p): New static function. + (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of + cgraph_function_possibly_inlined_p. + (gen_inlined_subroutine_die): Return if the origin is to be ignored. + (process_scope_var): Do not emit concrete instances of abstracted + nested functions from here. + (gen_decl_die): Emit the abstract instance if the function is possibly + abstracted and not only possibly inlined. + (dwarf2out_finish): Find the first non-abstract parent instance and + attach concrete instances on the limbo list to it. + +2012-06-14 Richard Earnshaw + + * arm.md (divsf3, divdf3): Remove FPA support. + (negsf2, negdf2): Likewise. + (sqrtsf2, sqrtdf2): Likewise. + (movdfcc): Likewise. + (modsf3, moddf3, movxf): Delete. + (push_fp_multi): Delete. + (fpa.md): Don't include it. + * fpa.md: Delete file. + * t-arm (MD_INCLUDES): Remove fpa.md. + +2012-06-14 Bill Schmidt + + * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c. + (cost_for_stmt): Remove decl. + (vect_get_single_scalar_iteration_cost): Correct typo in name. + * tree-vect-loop.c (vect_get_cost): Remove. + (vect_get_single_scalar_iteration_cost): Correct typo in name; use + vect_get_stmt_cost rather than vect_get_cost. + (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than + vect_get_cost. + (vect_estimate_min_profitable_iters): Correct typo in call to + vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather + than vect_get_cost. + (vect_model_reduction_cost): Use vect_get_stmt_cost rather than + vect_get_cost. + (vect_model_induction_cost): Likewise. + * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct + typo in call to vect_get_single_scalar_iteration_cost. + * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h. + (cost_for_stmt): Remove unnecessary function. + * Makefile.in (TREE_VECTORIZER_H): Update dependencies. + +2012-06-14 Richard Earnshaw + + * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options. + * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types. + * arm-tables.opt: Regenerated. + * doc/invoke.texi: Remove references to deleted options. + +2012-06-14 Sandeep Kumar Singh + + * config/h8300/genmova.sh: Modified to add offset bits of + mova/Sz assembly instruction for memory access. + * config/h8300/h8300.c: Likewise. + * config/h8300/mova.md: Likewise. + +2012-06-12 Christian Bruel + + PR target/53621 + * config/sh/sh.c (sh_option_override): Don't force + flag_omit_frame_pointer and maccumulate_outgoing_args. + * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var. + +2012-06-14 Richard Guenther + + * tree-vrp.c (VR_INITIALIZER): New define. + (ranges_from_anti_range): New function. + (extract_range_from_binary_expr_1): Decompose operations on + VR_ANTI_RANGEs to operations on VR_RANGE. + (extract_range_from_unary_expr_1): Likewise. + (extract_range_from_binary_expr_1, extract_range_from_binary_expr, + extract_range_from_unary_expr_1, extract_range_from_unary_expr, + extract_range_from_cond_expr, adjust_range_with_scev, + vrp_visit_assignment_or_call, vrp_visit_phi_node, + simplify_bit_ops_using_ranges): Use VR_INITIALIZER. + +2012-06-13 Richard Henderson + + * hwint.h (HOST_WIDEST_INT_C): New. + (HOST_WIDE_INT_C): New. + (HOST_WIDE_INT_1): Use it. + * config/alpha/alpha.c (alpha_trampoline_init): Use it. + +2012-06-13 Alexandre Oliva + + PR debug/49888 + * var-tracking.c: Include alias.h. + (overlapping_mems): New struct. + (drop_overlapping_mem_locs): New. + (clobber_overlapping_mems): New. + (var_mem_delete_and_set, var_mem_delete): Call it. + (val_bind): Likewise, but only if modified. + (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs. + * Makefile.in (var-tracking.o): Depend in $(ALIAS_H). + +2012-06-13 Alexandre Oliva + + PR debug/47624 + * var-tracking.c (loc_exp_dep_pool): New. + (vt_emit_notes): Create and release the pool. + (compute_bb_dataflow): Use value-based locations in MO_VAL_SET. + (emit_notes_in_bb): Likewise. + (loc_exp_dep_insert): Deal with NOT_ONEPART vars. + (notify_dependents_of_changed_value): Likewise. + (notify_dependents_of_resolved_value): Check that NOT_ONEPART + variables don't have a VAR_LOC_DEP_LST. + (emit_note_insn_var_location): Expand NOT_ONEPART locs that are + VALUEs or MEMs of VALUEs. + +2012-06-13 Alexandre Oliva + + PR debug/52983 + PR debug/48866 + * dce.c (word_dce_process_block): Insert debug temps only if the + insn is not marked. + (dce_process_block): Likewise, and if debug.used is not empty, + and only after iterating over all DEFs that might mark the insn. + +2012-06-13 Alexandre Oliva + + * common.opt (ftree-coalesce-inlined-vars): New. + (ftree-coalesce-vars): New. + * doc/invoke.texi: Document them. + * tree-ssa-copyrename.c (copy_rename_partition_coalesce): + Implement them. + +2012-06-13 Richard Sandiford + + * read-rtl.c (mapping): Remove index field. Add current_value field. + Define heap vectors. + (iterator_group): Fix long line. Remove num_builtins field and + uses_iterator fields. Make apply_iterator take a void * parameter. + (iterator_use, atttribute_use): New structures. + (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete. + (current_iterators, iterator_uses, attribute_uses): New variables. + (uses_mode_iterator_p, uses_code_iterator_p): Delete. + (apply_mode_iterator, apply_code_iterator): Take a void * parameter. + (map_attr_string, apply_iterator_to_string): Remove iterator + and value parameters. Look through all current iterator values + for a matching attribute. + (mode_attr_index, apply_mode_maps): Delete. + (apply_iterator_to_rtx): Replace with... + (copy_rtx_for_iterators): ...this new function. + (uses_iterator_p, apply_iterator_traverse): Delete. + (apply_attribute_uses, add_current_iterators, apply_iterators): New + functions. + (add_mapping): Remove index field. Set current_value field. + (initialize_iterators): Don't set num_builtins and uses_iterator_p + fields. + (find_iterator): Delete. + (record_iterator_use, record_attribute_use): New functions. + (record_potential_iterator_use): New function. + (check_code_iterator): Remove handling of bellwether codes. + (read_rtx): Remove mode maps. Truncate iterator and attribute uses. + (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps + parameter. Use the first code iterator value instead of the + bellwether_codes array. Use record_potential_iterator_use for modes. + +2012-06-13 Oleg Endo + + PR target/53568 + * config/sh/sh.md (bswapsi2): New expander. + (swapbsi2): New insn. + +2012-06-13 H.J. Lu + + PR target/53647 + * config/i386/i386.c (ix86_tune_cost): New variable. + (ix86_option_override_internal): Set ix86_tune_cost. Use + ix86_tune_cost for simultaneous_prefetches, prefetch_block, + l1_cache_size and l2_cache_size. + +2012-06-13 Richard Guenther + + * tree-vrp.c (vrp_meet): Properly meet equivalent ranges. + Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement + all possible meetings of VR_RANGE with VR_ANTI_RANGE and + VR_ANTI_RANGE with VR_ANTI_RANGE. + +2012-06-13 Richard Earnshaw + + * config.gcc (unsupported): Move obsoleted FPA-based configurations + here from ... + (obsolete): ... here. + (arm*-*-freebsd*): Remove. + (arm*-*-linux*): Only accept EABI variants. Simplify logic. + (arm*-*-uclinux*): Likewise. + (arm*-*-ecos-elf): Remove. + (arm*-*-rtems*): Remove. + (arm*-*-elf): Remove. + (arm*-wince-pe*): Remove. + (arm, --with-fpu): Remove support for fpa and Maverick variants. + * arm/ecos-elf.h: Delete. + * arm/t-strongarm-elf: Delete. + * arm/rtems-elf.h: Delete. + * arm/wince-pe.h: Delete. + * arm/pe.c: Delete. + * arm/pe.h: Delete. + * arm/t-wince-pe: Delete. + +2012-06-13 Bill Schmidt + + PR tree-optimization/53647 + * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for + targets with no defined cache line size. + +2012-06-13 Bill Schmidt + + * targhooks.c (default_builtin_vectorized_conversion): Handle + vec_construct, using vectype to base cost on subparts. + * target.h (enum vect_cost_for_stmt): Add vec_construct. + * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct + instead of scalar_to-vec. + * config/spu/spu.c (spu_builtin_vectorization_cost): Handle + vec_construct in same way as default for now. + * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise. + * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): + Handle vec_construct, including special case for 32-bit loads. + +2012-06-13 Xinyu Qi + + * config/arm/arm.c (FL_IWMMXT2): New define. + (arm_arch_iwmmxt2): New variable. + (arm_option_override): Enable use of iWMMXt with VFP. + Disable use of iWMMXt with NEON. Disable use of iWMMXt under + Thumb mode. Set arm_arch_iwmmxt2. + (arm_expand_binop_builtin): Accept VOIDmode op. + (enum arm_builtins): Revise built-in fcode. + (IWMMXT2_BUILTIN): New define. + (IWMMXT2_BUILTIN2): Likewise. + (iwmmx2_mbuiltin): Likewise. + (builtin_description bdesc_2arg): Revise built in declaration. + (builtin_description bdesc_1arg): Likewise. + (arm_init_iwmmxt_builtins): Revise built in initialization. + (arm_expand_builtin): Revise built in expansion. + (arm_output_iwmmxt_shift_immediate): New function. + (arm_output_iwmmxt_tinsr): Likewise. + * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare. + (arm_output_iwmmxt_tinsr): Likewise. + * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant. + (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete. + (rorv4hi3, rorv2si3, rordi3): Likewise. + (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise. + (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise. + (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise. + (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise. + (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise + (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise. + (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern. + (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise. + (*and3_iwmmxt, *ior3_iwmmxt, *xor3_iwmmxt): Likewise. + (ror3, ror3_di): Likewise. + (ashr3_di, lshr3_di, ashl3_di): Likewise. + (ashli3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise. + (iwmmxt_walignr0, iwmmxt_walignr1): Likewise. + (iwmmxt_walignr2, iwmmxt_walignr3): Likewise. + (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise. + (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise. + (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise. + (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise. + (All instruction patterns): Add wtype attribute. + (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp. + (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern. + (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise. + (ashr3_iwmmxt, ashl3_iwmmxt, lshr3_iwmmxt): Likewise. + (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise. + (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise. + (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise. + (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise. + (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise. + (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise. + (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise. + (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise. + (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise. + (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise. + (iwmmxt2.md): Include. + * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__. + (TARGET_IWMMXT2): New define. + (TARGET_REALLY_IWMMXT2): Likewise. + (arm_arch_iwmmxt2): Declare. + * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics. + Use __IWMMXT2__ to enable iWMMXt2 intrinsics. + Use C name-mangling for intrinsics. + (__v8qi): Redefine. + (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise. + (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise. + (_m_from_int): Likewise. + (_mm_sada_pu8, _mm_sada_pu16): New intrinsic. + (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise. + (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise. + (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise. + (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise. + (_mm_tbcst_pi32): Likewise. + (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic. + (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise. + (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise. + (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise. + (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise. + (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise. + (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise. + (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise. + (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise. + (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise. + (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise. + (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise. + (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise. + (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise. + (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise. + (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise. + (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise. + (_mm_wmiawttn_si64, _mm_merge_si64): Likewise. + (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise. + (_m_to_int): New define. + * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2. + * config/arm/arm-arches.def (iwmmxt2): Likewise. + * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and + iwmmxt2.md. + * config/arm/arm.md (marvell-f-iwmmxt.md): Include. + (arch): Add "iwmmxt2". + (arch_enabled): Handle "iwmmxt2". + (wtype): New attribute. + (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete. + (UNSPEC_WALIGNI): New unspec. + * config/arm/predicates.md (imm_or_reg_operand): New predicate. + * config/arm/iterators.md (VMMX2): New mode_iterator. + * config/arm/marvell-f-iwmmxt.md: New file. + * config/arm/iwmmxt2.md: New file. + +2012-06-12 Jakub Jelinek + + PR c/53532 + PR c/51034 + PR c/53196 + * c-decl.c (build_compound_literal): Call c_incomplete_type_error + if type isn't complete. + +2012-06-12 Uros Bizjak + + * config/ia64/sync.md (fetchop_name): Change ior attribute to "or". + +2012-06-12 Richard Henderson + + * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode + iterator instead of INT. + +2012-06-12 Bill Schmidt + + * opts.c: Add -fhoist-adjacent-loads to -O2 and above. + * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward + declaration. + (hoist_adjacent_loads, gate_hoist_loads): New forward declarations. + (tree_ssa_phiopt): Call gate_hoist_loads. + (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call. + (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call + hoist_adjacent_loads. + (local_mem_dependence): New function. + (hoist_adjacent_loads): Likewise. + (gate_hoist_loads): Likewise. + * common.opt (fhoist-adjacent-loads): New switch. + * Makefile.in (tree-ssa-phiopt.o): Added dependencies. + +2012-06-12 Michael Matz + + * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments. + (nonoverlapping_memrefs_p): Don't call it here ... + (true_dependence_1): ... but here. + +2012-06-12 Richard Guenther + + * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code. + * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET + and MEM_SIZE only refines it. Reflect that and be less conservative + if either of the latter is not known. + +2012-06-12 Jakub Jelinek + + PR rtl-optimization/53589 + * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge + discovery even when e->dest != target. If any LABEL_REF points + to e->dest label, redirect it to target's label. + +2012-06-12 Chung-Lin Tang + + * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p + condition for generating REG_FRAME_RELATED_EXPR note. + (pop): Add code for generating REG_CFA_RESTORE, + REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1. + (sh_expand_epilogue): Use frame_insn() for FP to SP move. + Set 'frame_p' of calls to output_stack_adjust() to 'true'. + +2012-06-11 Richard Henderson + + * config/alpha/alpha.c (HWI_HEX2): Add missing shift. + * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix. + + * config/alpha/alpha.c (alpha_trampoline_init): Split large constants. + +2012-06-12 Hans-Peter Nilsson + + * doc/tm.texi.in (Addressing Modes) : + Mention that this hook needs to be defined for native TLS. + * doc/tm.texi: Regenerate. + +2012-06-11 Mike Stump + + * emit-rtl.c (init_emit_once): Iterate through the + MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and + MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through + all the MIN_MODE_PARTIAL_INT modes anymore. + +2012-06-12 Maxim Kuvyrkov + + * config/mips/mips-tables.opt (xlp): Fix merge typo. + +2012-06-11 Roland McGrath + + * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using + SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's + not a VAR_DECL. Also don't limit it to UNSPECs with exactly one + operand. + +2012-06-11 Oleg Endo + + PR target/53511 + * config/sh/sh.md (fmasf4): New expander. + (*macsf3): Rename to fmasf4_i. Adapt to fma pattern. + (mac_media): Rename to fmasf4_media. Adapt to fma pattern. + * config/sh/sh.opt (mfused-madd): Remove. + * config/sh/sh.c (sh_option_override): Remove mfused-madd handling. + (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S. + * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt + as extra options. + * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd + descriptions. + +2012-06-11 Richard Henderson + + * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots. + +2012-06-11 Richard Guenther + + PR middle-end/53470 + * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but + replace it with the first non-BLOCK context. + +2012-06-11 Richard Guenther + + * alias.c (aliases_everything_p): Remove. + (DIFFERENT_ALIAS_SETS_P): Likewise. + (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly. + Do not use aliases_everything_p or special-case ANDs. Do not + special-case BLKmode moves. + (may_alias_p): Likewise. Handle BLKmode similar like everywhere + - for SCATCH only. + +2012-06-09 Hans-Peter Nilsson + + Fix CRIS build errors with --enable-build-with-cxx. + * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename + variable "and" to "andop". + * config/cris/sync.md ("atomic_fetch_"): Use + temporary variable for memory model, passing C++-type-correct + parameter type to expand_mem_thread_fence. + ("atomic_compare_and_swap"): Ditto. + +2012-06-09 Richard Henderson + + PR c++/53602 + * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2. + (pass_jump): Rename from pass_jump2. + (execute_jump2, pass_jump2): New. + * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't + perform cfg cleanup here. Move the test of PUSH_ROUNDING + and ACCUMULATE_OUTGOING_ARGS test... + (gate_handle_stack_adjustments): ... here. + * passes.c (init_optimization_passes): Update for pass_jump2 rename. + Place new pass_jump2 after pass_stack_adjustments. + * tree-pass.h (pass_jump): Declare. + +2012-06-09 Kenneth Zadeck + + * simplify-rtx.c (simplify_const_binary_operation): Fixed shift + count trucation. + +2012-06-08 Richard Henderson + + PR c++/53602 + * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE + note to a clobber insn when no other insn is available. + +2012-06-08 Georg-Johann Lay + + * config/avr/avr.c (avr_case_values_threshold): Return 7. + +2012-06-07 Andreas Schwab + + * genhooks.c (main): Set progname. + (emit_documentation): Remove variable found_start, always bail out + when a place is missing. + * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT. + +2012-06-07 Jakub Jelinek + + PR middle-end/53580 + * omp-low.c (scan_omp): Change first argument to gimple_seq *, + call walk_gimple_seq_mod instead of walk_gimple_seq. + (scan_sharing_clauses, scan_omp_parallel, scan_omp_task, + scan_omp_for, scan_omp_sections, scan_omp_single, + execute_lower_omp): Adjust callers. + (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions + returns false, replace stmt with GIMPLE_NOP. + (check_omp_nesting_restrictions): Instead of issuing warnings, + issue errors and return false if any errors were reported. + +2012-06-06 Steven Bosscher + + * doc/invoke.texi (fconserve-space): Remove documentation. + +2012-06-06 Edmar Wienskoski + + * config/rs6000/rs6000-tables.opt: Regenerated. + +2012-06-06 Richard Guenther + + PR tree-optimization/53081 + * tree-data-ref.h (adjacent_store_dr_p): Rename to ... + (adjacent_dr_p): ... this and make it work for reads, too. + * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY. + (struct partition_s): Change main_stmt to main_dr, add + secondary_dr member. + (build_size_arg_loc): Change to date data-reference and not + gimplify here. + (build_addr_arg_loc): New function split out from ... + (generate_memset_builtin): ... here. Use it and simplify. + (generate_memcpy_builtin): New function. + (generate_code_for_partition): Adjust. + (classify_partition): Streamline pattern detection. Detect memcpy. + (ldist_gen): Adjust. + (tree_loop_distribution): Adjust seed statements for memcpy + recognition. + +2012-06-06 Matt Turner + + * config/arm/mmintrin.h (_mm_empty): New. + (_m_empty): New. + +2012-06-06 Richard Sandiford + + * doc/invoke.texi (sched-pressure-algorithm): Document new --param. + * common.opt (fsched-pressure-algorithm=): Remove. + * flag-types.h (sched_pressure_algorithm): Move to... + * sched-int.h (sched_pressure_algorithm): ...here. + * params.def (sched-pressure-algorithm): New param. + * haifa-sched.c (sched_init): Use it to initialize sched_pressure. + * common/config/s390/s390-common.c (s390_option_optimization_table): + Remove OPT_fsched_pressure_algorithm_ entry. + * config/s390/s390.c (s390_option_override): Set a default value for + PARAM_SCHED_PRESSURE_ALGORITHM. + +2012-06-05 Michael Meissner + + PR target/53487 + * config/rs6000/rs6000.c (rs6000_generate_compare): If we are + doing an unsigned compare, make sure the second argument is not a + negative constant. + (rs6000_emit_cmove): Don't allow floating point comparisons when + generating ISEL moves. + +2012-06-05 Edmar Wienskoski + + * config/rs6000/e5500.md: New file. + * config/rs6000/e6500.md: New file. + * config/rs6000/rs6000.c (processor_costs): Add new costs for + e5500 and e6500. + (rs6000_option_override_internal): Altivec and Spe options not + allowed with e5500. Spe options not allowed with e6500. Increase + move inline limit for e5500 and e6500. Disable string instructions + for e5500 and e6500. Enable branch targets alignment for e5500 and + e6500. Initialize rs6000_cost for e5500 and e6500. + (rs6000_adjust_cost): Add extra scheduling cycles between compare + and brnach for e5500 and e6500. + (rs6000_issue_rate): Set issue rate for e5500 and e6500. + * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and + e6500. + * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500. + * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and + ppce6500. + Include e5500.md and e6500.md. + * config/rs6000/rs6000-opt.h (processor_type): Add + PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500. + * config.gcc (cpu_is_64bit): Add new cores e5500, e6500. + (powerpc*-*-*): Add new cores e5500, e6500. + * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus. + +2012-06-05 Richard Guenther + + * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change. + +2012-06-05 H.J. Lu + + PR target/53575 + * config.gcc: Select x32 run-time library if --with-abi={x32|mx32} + is used for x86_64-*-*. + +2012-06-05 Richard Guenther + + PR tree-optimization/30442 + * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block + vectorization stop analysis at the first stmt we cannot compute + a data-reference for instead of giving up completely. + +2012-06-05 Richard Guenther + + * tree-loop-distribution.c (struct partition_s): Add has_writes member. + (partition_alloc): Initialize it. + (partition_has_writes): New function. + (rdg_flag_uses): Adjust. + (rdg_flag_vertex): Likewise. + (rdg_flag_vertex_and_dependent): Likewise. + (rdg_flag_loop_exits): Likewise. + (build_rdg_partition_for_component): Likewise. + (rdg_build_partitions): Likewise. + +2012-06-05 Richard Guenther + + PR tree-optimization/53081 + * tree-loop-distribution.c (generate_memset_builtin): Handle all + kinds of byte-sized stores. + (classify_partition): Likewise. + (tree_loop_distribution): Adjust seed statements used for + !flag_tree_loop_distribution. + +2012-06-05 Alan Modra + + * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment. + (rs6000_emit_prologue): Ensure register used for inline saves + of vector regs is not the static chain register. Revise comment. + +2012-06-04 Oleg Endo + + * doc/md.texi (Standard Pattern Names For Generation): Document + sincos pattern. + +2012-06-04 H.J. Lu + + PR bootstrap/53555 + * config/i386/i386.c (ix86_sched_reorder): Skip debug insns. + +2012-06-04 Jason Merrill + + * dwarf2out.c (is_unit_die): New. + (copy_declaration_context, copy_ancestor_tree): Use it. + (copy_decls_walk): Likewise. + +2012-06-04 Paolo Carlini + + PR c++/53524 + * doc/invoke.texi (Wenum-compare): Update documentation. + +2012-06-04 Dodji Seketeli + + PR preprocessor/53463 + * parser.c (cp_parser_assignment_expression): Use the location + for the '=' as the default location for the expression. + +2012-06-04 Edmar Wienskoski + + PR target/53559 + * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of + operands. + (altivec_stvlxl): Ditto. + (altivec_stvrx): Ditto. + (altivec_stvrxl): Ditto. + +2012-06-04 Vladimir Makarov + + * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p. + (ira_uniform_class_p): New macro. + + * ira.c (setup_uniform_class_p): New function. + (setup_allocno_and_important_classes): Call the function. + (print_unform_and_important_classes): New function. + (print_classes): Rename to print_translated_classes. + (ira_debug_allocno_classes): Add call of + print_unform_and_important_classes. + + * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform + classes instead of pressure classes. + +2012-06-04 Aldy Hernandez + + PR middle-end/47530 + * trans-mem.c (expand_block_edges): Do not skip the first + statement when resetting the BB. + +2012-06-04 Richard Guenther + + * tree-data-ref.c (stores_from_loop): Remove. + (stmt_with_adjacent_zero_store_dr_p): Likewise. + (stores_zero_from_loop): Likewise. + * tree-data-ref.h (stores_from_loop, stores_zero_from_loop, + stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove. + (adjacent_store_dr_p): New function. + * tree-loop-distribution.c (generate_memset_builtin): Pass + the RDG, use the already available data-reference. + (generate_code_for_partition): Pass down RDG. + (classify_partition): Inline parts of the former + stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p. + (ldist_gen): Remember if there was any detected builtin and + do less work if not and flag_tree_loop_distribution is not set. + (tree_loop_distribution): Inline and fuse stores_from_loop + and stores_zero_from_loop here. + +2012-06-04 Richard Guenther + + PR middle-end/53471 + * dwarf2out.c (dwarf2out_finish): If generating LTO do not + create new assembler names. + +2012-06-04 Richard Guenther + + * tree-data-ref.c (struct rdg_vertex_info): Remove. + (rdg_vertex_for_stmt): Simplify using gimple_uid. + (create_rdg_vertices): Pass loop argument, remove stmt to RDG index + hashtable. Record stmt data-references. + (hash_stmt_vertex_info): Remove. + (eq_stmt_vertex_info): Likewise. + (hash_stmt_vertex_del): Likewise. + (build_empty_rdg): Simplify. + (build_rdg): Adjust. + (free_rdg): Likewise. + (ref_base_address): Remove. + (have_similar_memory_accesses): Likewise. + * tree-data-ref.h (create_rdg_vertices): Remove. + (struct rdg_vertex): Add datarefs member. + (RDGV_DATAREFS): New define. + (RDG_DATAREFS): Likewise. + (have_similar_memory_accesses): Remove. + (rdg_has_similar_memory_accesses): Likewise. + * tree-loop-distribution.c (ref_base_address): Re-implement here. + (similar_memory_accesses): Re-implement using existing data-references. + (tree_loop_distribution): Initialize stmt uids for the stmt to + RDG index mapping. + * tree-vect-loop.c (vect_create_epilog_for_reduction): Only + access stmt vinfo for stmts in loop. + +2012-06-04 Andreas Schwab + + PR target/53461 + * config/m68k/m68k.md ("tablejump"): Fix check for + CASE_VECTOR_PC_RELATIVE. + +2012-06-04 Steven Bosscher + + * output.h (merge_weak, assemble_alias, + initializer_constant_valid_p, + initializer_constant_valid_for_bitfield_p): Move protos from here... + * tree.h: ... to here. + * cgraphclones.c: Do not include output.h. + * gimplify.c: Likewise. + * reload.c: Likewise. + * recog.c: Likewise. + * tree-ssa-loop-ivopts.c: Likewise. + * tree-switch-conversion.c: Likewise. + * c-parser.c: Likewise. + * c-typeck.c: Likewise. + * Makefile.in: Fix dependencies. + +2012-06-04 Georg-Johann Lay + + PR target/46261 + * config/avr/avr-stdint.h: New file. + * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of + newlib-stdint.h + +2012-06-04 Jakub Jelinek + + PR tree-optimization/53550 + * tree-ssa-loop-niter.c (number_of_iterations_cond): If type + is POINTER_TYPE_P, use sizetype as step type instead of type. + +2012-06-04 Richard Guenther + + * tree-data-ref.c (have_similar_memory_accesses_1): Remove. + (ref_base_address_1): Likewise. + (remove_similar_memory_refs): Likewise. + * tree-data-ref.h (remove_similar_memory_refs): Remove. + * tree-loop-distribution.c (classify_partition): Do not classify + as builtin if -ftree-loop-distribute-patterns is not enabled. + (fuse_partitions_with_similar_memory_accesses): Inline ... + (ldist_gen): ... here. Fuse all non-builtin partitions if + -ftree-loop-distribution is not enabled. Properly return + the number of created partitions. Do not update SSA form here but ... + (tree_loop_distribution): ... once here for the whole function. + Only walk innermost loops, constrain loops we consider here + further. Do not call remove_similar_memory_refs. + (distribute_loop): Do not check number of loop nodes here. + +2012-06-04 Steven Bosscher + + * Makefile.in (GIMPLE_H): Do not depend on TARGET_H. + +2012-06-03 Martin Jambor + + * ipa-prop.h (ipa_get_jf_known_type_offset): New function. + (ipa_get_jf_known_type_base_type): Likewise. + (ipa_get_jf_known_type_component_type): Likewise. + (ipa_get_jf_constant): Likewise. + (ipa_get_jf_pass_through_formal_id): Likewise. + (ipa_get_jf_pass_through_operation): Likewise. + (ipa_get_jf_ancestor_offset): Likewise. + (ipa_get_jf_ancestor_type): Likewise. + (ipa_get_jf_ancestor_formal_id): Likewise. + (ipa_get_jf_member_ptr_pfn): Likewise. + * ipa-prop.c (ipa_set_jf_known_type): New function. + (ipa_set_jf_constant): Likewise. + (ipa_set_jf_simple_pass_through): Likewise. + (ipa_set_jf_arith_pass_through): Likewise. + (ipa_set_ancestor_jf): Likewise. + (fill_member_ptr_cst_jump_function): Moved up and renamed to + ipa_set_jf_member_ptr_cst. + (detect_type_change_1): Use the new jump function creation functions. + (compute_complex_assign_jump_func): Likewise. + (compute_complex_ancestor_jump_func): Likewise. + (compute_known_type_jump_func): Likewise. + (compute_scalar_jump_functions): Likewise. + (compute_pass_through_member_ptrs): Likewise. + (determine_cst_member_ptr): Likewise. + (combine_known_type_and_ancestor_jfs): Likewise. + (try_make_edge_direct_simple_call): Likewise. + (try_make_edge_direct_virtual_call): Likewise. + (update_indirect_edges_after_inlining): Likewise. + * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function + access functions. Incorporat NOP_EXPR and BINFO handling from its + callers. + (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs + which was in its callers. + (ipa_value_from_jfunc): Use jump function access functions. Some + functionality moved to functions above. + (propagate_vals_accross_ancestor): Likewise. + (propagate_vals_accross_pass_through): Use jump function access + functions. + (propagate_accross_jump_function): Likewise. + * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function + access functions. + (inline_merge_summary): Likewise. + +2012-06-03 John David Anglin + + * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define. + * config/pa/pa.c (pa_attr_length_millicode_call): Use + MAX_PCREL17F_OFFSET instead of fixed offset. + (pa_attr_length_call): Likewise. + (pa_attr_length_indirect_call): Likewise. + +2012-06-03 Oleg Endo + + PR target/53512 + * config/sh/sh.opt (mfsca, mfsrra): New options. + * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA + condition. + (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition. + (sinssf2, cossf2): Fold expanders to ... + (sincossf3): ... this new expander. Use TARGET_FPU_ANY and + TARGET_FSCA condition. + * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and + TARGET_FSCA. + * doc/invoke.texi (SH Options): Add descriptions for -mfsca, + -mno-fsca, -mfsrra, -mno-fsrra. + +2012-06-03 Matt Turner + + * config/mips/4600.md (r4700_imul_si): New. + (r4700_imul_di): New. + (r4700_fmul_single): New. + (r4700_fmul_double): New. + * config/mips/mips-cpus.def: Add r4700. + * config/mips/mips.c: Likewise. + * config/mips/mips.md: Likewise. + * config/mips/mips-tables.opt: Regenerate. + +2012-06-02 Steven Bosscher + + * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to + new function sparc_initial_elimination_offset. + * config/sparc/sparc.c (sparc_initial_elimination_offset): New + function. + * config/sparc/sparc-protos.h (sparc_initial_elimination_offset): + Prototype it. + +2012-06-02 Kenneth Zadeck + + * expmed.c (expand_mult, choose_multiplier): Change + "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT". + * expr.c (convert_modes): Likewise. + * explow.c (plus_constant): Likewise. + * fixed-value.c (fixed_saturate1, fixed_saturate2) + (do_fixed_add, do_fixed_multiply, do_fixed_multiply) + (do_fixed_multiply, do_fixed_multiply, do_fixed_divide) + (do_fixed_divide, do_fixed_divide, do_fixed_divide) + (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift) + (do_fixed_shift, fixed_convert, fixed_convert) + (fixed_convert_from_int, fixed_convert_from_int) + (fixed_convert_from_real): Likewise. + * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p) + (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise. + * varasm.c (output_constructor_bitfield): Likewise. + * tree-vrp.c (register_edge_assert_for_2): Likewise. + * double-int.c (rshift_double, lshift_double): Likewise. + * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int): + Likewise. + * simplify-rtx.c (mode_signbit_p) + (simplify_const_unary_operation, simplify_binary_operation_1) + (simplify_immed_subreg): Likewise. + * builtins.c (c_readstr, fold_builtin_bitop): Likewise. + * tree-vect-generic.c (build_replicated_const): Likewise. + * dbxout.c (stabstr_O): Likewise. + * emit-rtl.c (immed_double_int_const, immed_double_const) + (gen_lowpart_common, init_emit_once): Likewise. + * tree.c (integer_pow2p, tree_log2, tree_floor_log2) + (widest_int_cst_value, upper_bound_in_type): Likewise. + * stor-layout.c (initialize_sizetypes, fixup_signed_type) + (fixup_unsigned_type): Likewise. + * real.c (real_to_integer2, real_from_integer): Likewise. + * dwarf2out.c (size_of_loc_descr, size_of_die, output_die) + (clz_loc_descriptor, mem_loc_descriptor): Likewise. + +2012-06-01 Eric Botcazou + + PR middle-end/53501 + * fold-const.c (fold_binary_loc): Refine previous change. + +2012-06-01 Olivier Hainque + + * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore + the "do {" part of the do-while(0) loop. + +2012-06-01 Yuri Rumyantsev + + * config/i386/i386.c (x86_sched_reorder): New function. + Added new function x86_sched_reorder. + +2012-06-01 Richard Guenther + + * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop): + Handle PHIs. + (classify_partition): Likewise. + +2012-06-01 Richard Guenther + + * tree-loop-distribution.c (enum partition_kind): New enum. + (struct partition_s): Add kind and main_stmt members. + (partition_alloc): Initialize kind to PKIND_NORMAL. + (partition_builtin_p): New function. + (copy_loop_before): Remove failure path and assert instead. + (generate_loops_for_partition): Likewise. + (generate_memset_zero): Fold into ... + (generate_memset_builtin): ... this. + (classify_partition): New function with code from + can_generate_builtin and generate_builtin. + (generate_builtin): Remove. + (can_generate_builtin): Likewise. + (fuse_partitions_with_similar_memory_accesses): Call + partition_builtin_p instead of can_generate_builtin. + (rdg_build_partitions): Do not call + fuse_partitions_with_similar_memory_accesses here... + (ldist_gen): ... but here after classifying all partitions. + Remove failure path of generate_code_for_partition. + (generate_code_for_partition): Generate code according + to partition classification. + +2012-06-01 Manuel López-Ibáñez + Jonathan Wakely + + PR c++/50134 + * doc/invoke.texi (Warning Options): Explain purpose and differences + between -Wmissing-prototypes and -Wmissing-declarations. + +2012-06-01 Christian Bruel + + * gcc.c (save_switch): Add user_p parameter. + (read_specs): Likewise. + (set_specs): Likewise. + (validate_switches): Likewise. + (validate_switches_from_spec): Likewise. + (validate_all_switches): Pass on user_p parameter. + (struct spec_list): Add user_p field. + (struct switchstr): Add known field. + (save_switch): Add known parameter. + (INIT_STATIC_SPEC): Initialize user_p; + (driver_unknown_option_callbac): call save_switch if + OPT_SPECIAL_unknown. + (driver_handle_option): Propagate OPT_specs. + (do_spec_1): Set validated only if known. + (check_live_switch): Likewise. + (validate_switches): Set validated if known or user_spec. + +2012-06-01 Hans-Peter Nilsson + + Add CRIS atomic patterns for 1, 2, and 4 bytes. + * config/cris/cris.c (cris_emit_trap_for_misalignment): New function. + * config/cris/cris-protos.h: Declare it. + * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32] + (TARGET_DEFAULT): Add alignment by 32. + [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New + case, as TARGET_CPU_DEFAULT == 0 but with alignment as for + TARGET_CPU_DEFAULT == 32. + (TARGET_TRAP_UNALIGNED_ATOMIC): New macro. + * config/cris/cris.md: Include sync.md. Avoid allocating specific + numbers by replacing the define_constants for all UNSPECs with the + equivalent define_c_enum construct. + * config/cris/cris.opt (mtrap-unaligned-atomic): New option. + * config/cris/sync.md: New file. + +2012-05-31 Matt Turner + + * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul. + (r4600_imul_di): New. + (r4600_idiv_si): Rename from r4600_idiv. + (r4600_idiv_di): New. + +2012-05-31 Steven Bosscher + + * output.h (__gcc_host_wide_int__): Move to hwint.h. + (decl_default_tls_model): Move to tree.h + (dump_file): Move to system.h. + (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor, + dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline, + dbxout_begin_empty_stabs, dbxout_begin_simple_stabs, + dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero, + dbxout_stab_value_zero, dbxout_stab_value_label_diff, + dbxout_stab_value_internal_label, + dbxout_stab_value_internal_label_diff): Move from here ... + * dbxout.h: ... to here. + * system.h (dump_file): Moved here from output.h. + * hwint.h (__gcc_host_wide_int__): Moved here from output.h. + * tree.h (decl_default_tls_model): Moved here from output.h. + * varasm.c (default_stabs_asm_out_destructor, + default_stabs_asm_out_constructor): Move from here ... + * dbxout.c: ... to here. + + * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers. + + * collect2.h (dump_file): Rename to dump_ld_file. + * collect2.c: Likewise. + * tlink.c: Likewise. + + * alias.c: Do not include output.h. + * auto-inc-dec.c: Likewise. + * bt-load.c: Likewise. + * caller-save.c: Likewise. + * cfg.c: Likewise. + * cfgbuild.c: Likewise. + * cfgcleanup.c: Likewise. + * cfglayout.c: Likewise. + * cfgloop.c: Likewise. + * cfgloopanal.c: Likewise. + * cfgloopmanip.c: Likewise. + * cfgrtl.c: Likewise. + * cgraph.c: Likewise. + * cgraphclones.c: Likewise. + * combine-stack-adj.c: Likewise. + * combine.c: Likewise. + * cprop.c: Likewise. + * cse.c: Likewise. + * cselib.c: Likewise. + * dbgcnt.c: Likewise. + * df-problems.c: Likewise. + * df-scan.c: Likewise. + * dojump.c: Likewise. + * fwprop.c: Likewise. + * gcse.c: Likewise. + * graph.c: Likewise. + * haifa-sched.c: Likewise. + * hw-doloop.c: Likewise. + * ipa-inline-transform.c: Likewise. + * ipa-pure-const.c: Likewise. + * ipa-reference.c: Likewise. + * ipa-utils.c: Likewise. + * ira-build.c: Likewise. + * ira-emit.c: Likewise. + * lcm.c: Likewise. + * loop-doloop.c: Likewise. + * loop-invariant.c: Likewise. + * loop-iv.c: Likewise. + * loop-unroll.c: Likewise. + * loop-unswitch.c: Likewise. + * lto-cgraph.c: Likewise. + * lto-section-in.c: Likewise. + * lto-streamer-in.c: Likewise. + * mcf.c: Likewise. + * mode-switching.c: Likewise. + * postreload-gcse.c: Likewise. + * postreload.c: Likewise. + * predict.c: Likewise. + * profile.c: Likewise. + * ree.c: Likewise. + * reg-stack.c: Likewise. + * regcprop.c: Likewise. + * regmove.c: Likewise. + * regstat.c: Likewise. + * reload1.c: Likewise. + * sched-ebb.c: Likewise. + * sel-sched-dump.c: Likewise. + * simplify-rtx.c: Likewise. + * stor-layout.c: Likewise. + * store-motion.c: Likewise. + * tracer.c: Likewise. + * tree-affine.c: Likewise. + * tree-cfg.c: Likewise. + * tree-cfgcleanup.c: Likewise. + * tree-dfa.c: Likewise. + * tree-into-ssa.c: Likewise. + * tree-nomudflap.c: Likewise. + * tree-optimize.c: Likewise. + * tree-pretty-print.c: Likewise. + * tree-profile.c: Likewise. + * tree-ssa-address.c: Likewise. + * tree-ssa-ccp.c: Likewise. + * tree-ssa-copy.c: Likewise. + * tree-ssa-dom.c: Likewise. + * tree-ssa-loop-ch.c: Likewise. + * tree-ssa-loop-im.c: Likewise. + * tree-ssa-loop-manip.c: Likewise. + * tree-ssa-loop-niter.c: Likewise. + * tree-ssa-loop-prefetch.c: Likewise. + * tree-ssa-loop-unswitch.c: Likewise. + * tree-ssa-loop.c: Likewise. + * tree-ssa-propagate.c: Likewise. + * tree-ssa-structalias.c: Likewise. + * tree-ssa-tail-merge.c: Likewise. + * tree-ssa-threadedge.c: Likewise. + * tree-ssa-threadupdate.c: Likewise. + * tree-ssa-uncprop.c: Likewise. + * tree-ssa-uninit.c: Likewise. + * tree-ssa.c: Likewise. + * value-prof.c: Likewise. + * var-tracking.c: Likewise. + * web.c: Likewise. + + * config/m32r/m32r.c: Include dbxout.h. + * config/pa/pa.c: Likewise. + * config/rs6000/rs6000.c: Likewise. + + * Makefile.in: Fix dependencies. + * config/rs6000/t-rs5000: Likewise. + +2012-05-31 Aldy Hernandez + + * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm. + * gimple.h (block_in_transaction): Check for flag_tm. + +2012-05-31 Aldy Hernandez + + PR tree-optimization/52558 + * cfg.c (alloc_aux_for_edge): Fix comment. + (alloc_aux_for_edge): Remove static. + * basic-block.h (alloc_aux_for_edge): Protoize. + * tree-ssa-loop-im.c (execute_sm_if_changed): New. + (execute_sm_if_changed_flag): New. + (execute_sm_if_changed_flag_set): New. + (execute_sm): Do not generate data races unless requested. + (tree_ssa_lim_initialize): Call alloc_aux_for_edges. + (tree_ssa_lim_finalize): Call free_aux_for_edges. + * gimple.h (block_in_transaction): New. + (gimple_in_transaction): Use block_in_transaction. + +2012-05-31 Georg-Johann Lay + + PR target/51345 + * config/avr/avr.opt (-msp8): Document it. + * doc/invoke.texi (AVR Options): Ditto. And document related + built-in macros. + +2012-05-31 Diego Novillo + + * configure.ac (CXX_FOR_BUILD): Define and substitute. + (BUILD_CXXFLAGS): Define and substitute. + * Makefile.in (BUILD_CXXFLAGS): Define. + (CXX_FOR_BUILD): Define. + (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++. + (LINKER_FOR_BUILD): Likewise. + (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++. + (BUILD_LINKERFLAGS): Likewise. + * configure: Regenerate. + +2012-05-31 Steven Bosscher + + * Makefile.in: Fix many dependencies. + * tree-profile.c: Don't include regs.h. + * tree-vectorizer.c: Don't include cfglayout.h. + * tree-vect-stmts.c: Likewise. + * tree-vect-slp.c: Likewise. + * tree-vect-loop.c: Likewise. + * reg-stack.c: Likewise. + * tree-ssa-loop-manip.c: Likewise. + * toplev.c: Likewise. + * varasm.c: Don't include cfglayout.h, basic-block.h, + and tree-iterator.h. + * tree-cfgcleanup.c: Don't include cfglayout.h. + * passes.c: Don't include cfglayout.h, dwarf2asm.h, + dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h. + * cgraphclones.c: Don't include plugin.h. + +2012-05-31 Georg-Johann Lay + + * config/avr/t-avr: Correct avr-mmcu.texi dependencies. + (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output. + * doc/avr-mmcu.texi (svn:eol-style): Set to native. + +2012-05-31 Richard Guenther + + * tree-loop-distribution.c (struct partition_s): New struct, + typedef and vector type. + (partition_alloc, partition_free): New functions. + (generate_loops_for_partition, generate_builtin, + generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex, + rdg_flag_vertex_and_dependent, rdg_flag_loop_exits, + build_rdg_partition_for_component, can_generate_builtin, + similar_memory_accesses, fuse_partitions_with_similar_memory_accesses, + rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions, + number_of_rw_in_partition, partition_contains_all_rw, + ldist_gen): Use partition_t instead of bitmap. + +2012-05-31 Georg-Johann Lay + + * config/avr/gen-avr-mmcu-texi.c: Sort MCUs. + * doc/avr-mmcu.texi: Regenerate. + +2012-05-31 Richard Guenther + + * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop): + Use FOR_EACH_SSA_DEF_OPERAND. + (generate_builtin): Adjust. + (stmt_generated_in_another_partition): Remove. + (add_scalar_computations_to_partition): Likewise. + (rdg_build_partitions): Do not call + add_scalar_computations_to_partition. + +2012-05-31 Eric Botcazou + + * tree-dfa.c (get_ref_base_and_extent): Compute the offset using + double ints throughout. + * tree-sra.c (build_user_friendly_ref_for_offset) : + Check that the position of the field is representable as an integer. + +2012-05-31 Richard Guenther + + * tree-data-ref.c (dr_analyze_innermost): Properly convert + the MEM_REF offset to sizetype. + +2012-05-31 Georg-Johann Lay + + * doc/invoke.texi (AVR Options): Fix typos. + +2012-05-31 Hans-Peter Nilsson + + * config/cris/cris.h (CC1_SPEC): Pass through all -march= + and -mcpu= options. + (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10, + non-v32 into --march=v0_v10. + +2012-05-31 Richard Sandiford + + * ira-int.h (target_ira_int): Rename x_move_cost to + x_ira_register_move_cost, x_may_move_in_cost to + x_ira_may_move_in_cost and x_may_move_out_cost to + x_ira_may_move_out_cost. Delete the old fields with + those names and also x_ira_max_register_move_cost, + x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost. + (move_cost, may_move_in_cost, may_move_out_cost) + (ira_max_register_move_cost, ira_max_may_move_in_cost) + (ira_max_may_move_out_cost): Delete. + * ira.c (init_move_cost): Rename to... + (ira_init_register_move_cost): ...this, deleting the old + function with that name. Apply above variable renamings. + Retain asserts for null fields. + (ira_init_once): Don't initialize register move costs here. + (free_register_move_costs): Apply above variable renamings. + Remove code for deleted fields. + +2012-05-31 Richard Sandiford + + * ira.c (init_move_cost): Adjust choice of subclasses to match + the current ira_init_register_move_cost choice. Use + ira_class_subset_p instead of reg_class_subset_p. + (ira_init_register_move_cost): Assert that move_cost, + may_move_in_cost and may_move_out_cost already hold the desired + values for their ira_* equivalents. For the latter two, + ignore classes that can't store a register of the given mode. + +2012-05-31 Richard Sandiford + + * ira.c (setup_allocno_and_important_classes): Use + ira_class_hard_regs_num to check whether a class has any + allocatable registers. + (ira_init_register_move_cost): Likewise. + +2012-05-31 Richard Sandiford + + * ira.c (init_move_cost): Adjust local variable names to match + file conventions. Use ira_assert instead of gcc_assert. + +2012-05-31 Richard Sandiford + + * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost): + Move these definitions and associated target_globals fields to... + * ira-int.h: ...here. + * rtl.h (init_move_cost): Delete. + * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to... + * ira.c: ...here, making the latter static. + +2012-05-31 Richard Sandiford + + * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary + and ira_register_move_cost instead of init_move_cost and move_cost. + +2012-05-31 Richard Sandiford + + * ira.h (target_ira): Delete x_ira_available_class_regs. + (ira_available_class_regs): Delete. + * ira.c (setup_available_class_regs): Delete. + (setup_alloc_classes): Don't call it. + (setup_pressure_classes): Use ira_class_hard_regs_num instead of + ira_available_class_regs. + * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info) + (model_spill_cost): Likewise. + * ira-build.c (low_pressure_loop_node_p): Likewise. + * ira-color.c (color_pass): Likewise. + * ira-emit.c (change_loop): Likewise. + * ira-lives.c (inc_register_pressure, dec_register_pressure) + (single_reg_class, ira_implicitly_set_insn_hard_regs) + (process_bb_node_lives): Likewise. + * loop-invariant.c (gain_for_invariant): Likewise. + +2012-05-30 John David Anglin + + PR target/52999 + * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define. + (pa_section_type_flags): New. + (pa_legitimate_constant_p): Revert previous change. + +2012-05-30 Steven Bosscher + + * ira.c (allocate_initial_values): Make static. + +2012-05-30 Uros Bizjak + + * config/i386/i386.c (legitimize_tls_address) : + Generate tls_initial_exec_64_sun only when !TARGET_X32. + +2012-05-30 Richard Guenther + + PR middle-end/53501 + * fold-const.c (fold_binary_loc): Make sure to call + fold_plusminus_mult_expr with the original sign of operands. + +2012-05-30 Steven Bosscher + + * Makefile.in: Fix many dependencies. + (DWARF2_H): Depend on dwarf2.def. + (RTL_ERROR_H): Depend on rtl-error.h. + (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace + all gimple-pretty-print.h and tree-pretty-print.h references. + +2012-05-30 Marc Glisse + + * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of + concatenations. + +2012-05-30 Richard Guenther + + PR middle-end/53522 + * tree-emutls.c (gen_emutls_addr): Do not add globals to + referenced-vars. + +2012-05-30 Eric Botcazou + + * explow.c (probe_stack_range): Restore simple control flow and stop + again when the probe cannot be generated if HAVE_check_stack. + +2012-05-30 Jakub Jelinek + + PR rtl-optimization/53519 + * combine.c (simplify_shift_const_1) : Use constm1_rtx + instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR. + +2012-05-30 Ramana Radhakrishnan + + * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error. + +2012-05-29 Jack Howarth + + PR debug/53453 + * doc/tm.texi: Update. + * doc/tm.texi.in (SDB and DWARF) : Add @hook. + * target.def (force_at_comp_dir): New hook. + * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define. + * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir. + +2012-05-29 Jack Howarth + + * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when + Darwin >= 10. + (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10. + (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10. + +2012-05-29 Oleg Endo + + PR target/51340 + * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if + flag_unsafe_math_optimizations is set. + * doc/invoke.texi (SH Options): Add -mno-fused-madd description. + Update description of -mfused-madd. + +2012-05-29 Oleg Endo + + PR target/52941 + * config/sh/predicates.md (atomic_arith_operand, + atomic_logical_operand): New predicates. + * config/sh/sh.c (sh_option_override): Check atomic options. + * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS, + UNSUPPORTED_HARD_ATOMIC_CPU): New macros. + (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and + UNSUPPORTED_HARD_ATOMIC_CPU. + * config/sh/sync.md: Update description comments. + (I12): New mode iterator. + (fetchop_predicate, fetchop_constraint): New code attributes. + (atomic_compare_and_swapsi_hard, atomic_compare_and_swap_hard, + atomic_exchangesi_hard, atomic_exchange_hard, + atomic_fetch_si_hard, + atomic_fetch__hard, + atomic_fetch_nandsi_hard, atomic_fetch_nand_hard, + atomic__fetchsi_hard, + atomic__fetch_hard, + atomic_nand_fetchsi_hard, atomic_nand_fetch_hard, + atomic_test_and_set_hard): New insns. + (atomic_compare_and_swap_soft, atomic_exchange_soft, + atomic_fetch__soft, atomic_fetch_nand_soft, + atomic__fetch_soft, atomic_nand_fetch_soft, + atomic_test_and_set_soft): Use same formatting for the first line of + the asm block as in new insns above. + (atomic_compare_and_swap, atomic_exchange, + atomic_fetch_, atomic__fetch, + atomic_test_and_set): Integrate new *_hard insns into expanders. + * config/sh/sh.opt (mhard-atomic): New option. + * doc/invoke.texi (SH Options): Document it. + +2012-05-29 Meador Inge + + * c-decl.c (c_push_function_context): Always create a new language + function. + (c_pop_function_context): Clear the language function created in + c_push_function_context. + +2012-05-29 Matt Turner + + * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New. + (define_bypass "ev6_fcmov"): New. + +2012-05-29 Steven Bosscher + + * integrate.c: Remove. + * integrate.h: Remove. + * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H. + * config/arm/t-arm: Remove INTEGRATE_H dependency for target files. + * config/rs6000/t-rs6000: Likewise + * config/spu/t-spu-elf: Likewise. + * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val, + get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes + from integrate.h to here. + (initial_value_entry): New prototype. + * reload.h (allocate_initial_values): Remove prototype. + * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise. + * cse.c (fixed_base_plus_p): Don't handle virtual registers for + integrate.c. + * dwarf2out.c (set_decl_origin_self, set_block_origin_self, + set_decl_abstract_flags, set_block_abstract_flags): Move from + integrate.c to here, the only user. + * expmed.c (extract_fixed_bit_field): Remove outdated comment + about integrate.c. + * function.c: Don't include integrate.h. + (struct initial_value_pair, struct initial_value_struct, + get_hard_reg_initial_val, has_hard_reg_initial_val, + get_hard_reg_initial_reg, emit_initial_value_sets): Move from + integrate.c to here. + (initial_value_entry): New function. + * genemit.c (main): Don't print integrate.h include line. + * ira.c: Don't include integrate.h. + (allocate_initial_values): Move from integrate.c to here. + (ira): Update allocate_initial_values call. + * tree-inline.c: Don't include integrate.h. + (function_attribute_inlinable_p): Moved from integrate.c to here. + * cfgexpand.c: Don't include integrate.h. + * except.c: Likewise. + * langhooks.c: Likewise. + * passes.c: Likewise. + * toplev.c: Likewise. + * config/frv/frv.c: Likewise. + * config/pa/pa.c: Likewise. + * config/spu/spu.c: Likewise. + * config/epiphany/epiphany.c: Likewise. + * config/mep/mep.c: Likewise. + * config/score/score.c: Likewise. + * config/picochip/picochip.c: Likewise. + * config/sh/sh.c: Likewise. + * config/alpha/alpha.c: Likewise. + * config/microblaze/microblaze.c: Likewise. + * config/mips/mips.c: Likewise. + * config/v850/v850.c: Likewise. + * config/mmix/mmix.c: Likewise. + * config/bfin/bfin.c: Likewise. + * config/arm/arm.c: Likewise. + * config/s390/s390.c: Likewise. + * config/m32r/m32r.c: Likewise. + * config/rs6000/rs6000.c: Likewise. + * config/c6x/c6x.c: Include function.h instead of integrate.h. + * config/tilegx/tilegx.c: Likewise. + * config/tilepro/tilepro.c: Likewise. + +2012-05-29 Georg-Johann Lay + + * config/avr/t-avr (s-avr-mmcu-texi): Call + gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH. + +2012-05-29 Michael Matz + + * rtl.h (assign_stack_temp, assign_stack_temp_for_type, + assign_temp): Remove 'keep' argument. + (mark_temp_addr_taken): Remove prototype. + * tree.h (expand_decl): Remove prototype. + * function.c (struct temp_slot): Remove addr_taken and keep member. + (assign_stack_temp_for_type) Don't initialize above, remove + keep argument. + (assign_stack_temp, assign_temp): Remove keep argument. + (mark_temp_addr_taken): Remove. + (preserve_temp_slots): Remove handling of addr_taken and keep members. + (free_temp_slots): Ditto. + * expr.c (expand_expr_real_1 ): Remove + dead code. + * stmt.c (expand_asm_operands): Remove dead code. + (expand_decl): Remove. + * c-decl.c (finish_struct): Don't call expand_decl. + * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp + and assign_stack_temp. + * calls.c (save_fixed_argument_area, initialize_argument_information, + expand_call, emit_library_call_value_1, store_one_arg): Ditto. + * expmed.c (extract_bit_field_1): Ditto. + * expr.c (emit_group_load_1, emit_group_store, + copy_blkmode_from_reg, emit_push_insn, expand_assignment, + store_field, expand_constructor, expand_cond_expr_using_cmove, + expand_expr_real_2, expand_expr_real_1): Ditto. + * stmt.c (expand_asm_operands, expand_return): Ditto. + + * function.c (pop_temp_slots): Call free_temp_slots. + * calls.c (store_one_arg): Don't call preserve_temp_slots or + free_temp_slots. + * expr.c (expand_assignment): Don't call free_temp_slots. + + * config/arm/arm.c (neon_expand_vector_init): Ditto. + * config/i386/i386.c (ix86_expand_vector_set): Ditto. + (ix86_expand_vector_extract): Ditto. + * config/ia64/ia64.c (spill_xfmode_rfmode_operand, + ia64_expand_movxf_movrf): Ditto. + * config/mips/mips.c (mips_expand_vi_general): Ditto. + * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2, + extendsfdf2): Ditto. + * config/rs6000/rs6000.c (rs6000_expand_vector_init, + rs6000_expand_vector_set, rs6000_expand_vector_extract, + rs6000_allocate_stack_temp): Ditto. + * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto. + * config/sparc/sparc.c (emit_soft_tfmode_libcall, + sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp, + sparc_expand_vector_init): Ditto. + +2012-05-29 Michael Matz + + * c-tree.h (c_expand_decl): Remove prototype. + + * expr.c (expand_expr_real_1 ): Don't allocate + a kept temp. + (expand_expr_real_1 ): Make unreachable. + * gimple-fold.c (canonicalize_constructor_val): Canonicalize + COMPOUND_LITERAL_EXPR. + * function.c (expand_function_start): Don't call expand_decl, + instead assert that we have RTL assigned. + * tree-ssa-live.c (remove_unused_locals): Clear + nonlocal_goto_save_area if its backing variable is removed. + * stmt.c (expand_asm_operands): Remove handling of non-lvalues + as mem inputs. + (expand_decl): Assert that this does nothing. + * calls.c (expand_call): Don't call mark_temp_addr_taken. + +2012-05-29 Richard Guenther + + PR tree-optimization/53516 + * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject + bitfield accesses. + * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise. + +2012-05-29 Joseph Myers + + * LANGUAGES: Fix typos. + * Makefile.in: Fix typos. + * alias.c: Fix typos. + * auto-inc-dec.c: Fix typos. + * bb-reorder.c: Fix typos. + * cfgcleanup.c: Fix typos. + * cgraph.c: Fix typos. + * cgraph.h: Fix typos. + * cgraphunit.c: Fix typos. + * collect2-aix.h: Fix typos. + * collect2.c: Fix typos. + * compare-elim.c: Fix typos. + * config/alpha/vms.h: Fix typos. + * config/arm/README-interworking: Fix typos. + * config/arm/arm.c: Fix typos. + * config/arm/iterators.md: Fix typos. + * config/arm/vxworks.h: Fix typos. + * config/avr/avr.c: Fix typos. + * config/avr/avr.h: Fix typos. + * config/avr/avr.md: Fix typos. + * config/avr/builtins.def: Fix typos. + * config/c6x/c6x.c: Fix typos. + * config/cr16/cr16.c: Fix typos. + * config/cr16/cr16.md: Fix typos. + * config/cris/cris.md: Fix typos. + * config/darwin.c: Fix typos. + * config/darwin.opt: Fix typos. + * config/i386/i386-c.c: Fix typos. + * config/i386/i386.c: Fix typos. + * config/ia64/ia64.c: Fix typos. + * config/m68k/cf.md: Fix typos. + * config/mep/mep.c: Fix typos. + * config/microblaze/microblaze.c: Fix typos. + * config/microblaze/microblaze.h: Fix typos. + * config/mn10300/mn10300.c: Fix typos. + * config/mn10300/mn10300.md: Fix typos. + * config/pa/pa.c: Fix typos. + * config/picochip/picochip.h: Fix typos. + * config/rs6000/a2.md: Fix typos. + * config/rs6000/rs6000.c: Fix typos. + * config/rs6000/vector.md: Fix typos. + * config/rx/rx.md: Fix typos. + * config/rx/rx.opt: Fix typos. + * config/s390/2097.md: Fix typos. + * config/s390/s390.c: Fix typos. + * config/s390/s390.h: Fix typos. + * config/sh/sh.c: Fix typos. + * config/sh/sh.md: Fix typos. + * config/sparc/sync.md: Fix typos. + * config/spu/spu.c: Fix typos. + * config/spu/spu.md: Fix typos. + * config/vms/vms.c: Fix typos. + * config/vxworks-dummy.h: Fix typos. + * config/vxworks.h: Fix typos. + * cselib.c: Fix typos. + * df-scan.c: Fix typos. + * df.h: Fix typos. + * doc/extend.texi: Fix typos. + * doc/install.texi: Fix typos. + * doc/invoke.texi: Fix typos. + * doc/md.texi: Fix typos. + * doc/plugins.texi: Fix typos. + * doc/rtl.texi: Fix typos. + * dse.c: Fix typos. + * dwarf2asm.c: Fix typos. + * dwarf2out.c: Fix typos. + * except.h: Fix typos. + * expr.c: Fix typos. + * fold-const.c: Fix typos. + * gcc.c: Fix typos. + * gcse.c: Fix typos. + * genautomata.c: Fix typos. + * gengtype-state.c: Fix typos. + * gengtype.c: Fix typos. + * genhooks.c: Fix typos. + * gimple-fold.c: Fix typos. + * gimple-pretty-print.c: Fix typos. + * gimple.c: Fix typos. + * gimple.h: Fix typos. + * gimplify.c: Fix typos. + * graphite-interchange.c: Fix typos. + * graphite-sese-to-poly.c: Fix typos. + * ifcvt.c: Fix typos. + * input.c: Fix typos. + * ipa-cp.c: Fix typos. + * ipa-inline-analysis.c: Fix typos. + * ipa-inline-transform.c: Fix typos. + * ipa-inline.c: Fix typos. + * ipa-pure-const.c: Fix typos. + * ipa-ref.h: Fix typos. + * ipa-reference.c: Fix typos. + * ipa-utils.c: Fix typos. + * ipa.c: Fix typos. + * ira-emit.c: Fix typos. + * ira-lives.c: Fix typos. + * lto-streamer.c: Fix typos. + * lto-streamer.h: Fix typos. + * lto-wrapper.c: Fix typos. + * mcf.c: Fix typos. + * mode-switching.c: Fix typos. + * modulo-sched.c: Fix typos. + * plugin.c: Fix typos. + * postreload.c: Fix typos. + * sched-deps.c: Fix typos. + * sel-sched-ir.c: Fix typos. + * sel-sched-ir.h: Fix typos. + * sel-sched.c: Fix typos. + * sese.c: Fix typos. + * stor-layout.c: Fix typos. + * target-hooks-macros.h: Fix typos. + * target.def: Fix typos. + * trans-mem.c: Fix typos. + * tree-eh.c: Fix typos. + * tree-predcom.c: Fix typos. + * tree-sra.c: Fix typos. + * tree-ssa-address.c: Fix typos. + * tree-ssa-loop-ivopts.c: Fix typos. + * tree-ssa-loop-niter.c: Fix typos. + * tree-ssa-math-opts.c: Fix typos. + * tree-ssa-pre.c: Fix typos. + * tree-ssa-propagate.c: Fix typos. + * tree-ssa-reassoc.c: Fix typos. + * tree-ssa-sccvn.c: Fix typos. + * tree-ssa-ter.c: Fix typos. + * tree-ssa-uninit.c: Fix typos. + * tree-ssanames.c: Fix typos. + * tree-vect-generic.c: Fix typos. + * tree-vect-slp.c: Fix typos. + * tree.c: Fix typos. + * tree.h: Fix typos. + * varasm.c: Fix typos. + * varpool.c: Fix typos. + +2012-05-29 Joseph Myers + + * doc/include/texinfo.tex: Update to version 2012-05-16.16. + +2012-05-29 Richard Guenther + + * tree-dfa.c (find_vars_r): Do not call add_referenced_vars + for globals. + (add_referenced_var_1): Re-organize. Assert we are not + called for globals. + (remove_referenced_var): Likewise. + * varpool.c (add_new_static_var): Use create_tmp_var_raw. + * tree-mudflap.c (execute_mudflap_function_ops): Do not + call add_referenced_var on globals. + * matrix-reorg.c (transform_access_sites): Likewise. + +2012-05-29 Steven Bosscher + + * alias.c (reg_known_value): Make this a VEC. + (reg_known_equiv_p): Make this an sbitmap. + (reg_known_value_size): Remove. + (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p, + set_reg_known_equiv_p): Update for reg_known_value and + reg_known_value_size data structure change. + (init_alias_analysis, end_alias_analysis): Likewise. + +2012-05-29 Jakub Jelinek + + PR middle-end/53510 + * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC + to avoid leaking memory. No need to handle memory allocation + failure. Double string_len on each reallocation instead of adding 2. + * gcov.c (read_line): Likewise. + +2012-05-29 Hans-Peter Nilsson + + * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8): + New macros. + * config/cris/cris.md ("trap"): Define, enabled for + TARGET_TRAP_USING_BREAK8. + * config/cris/cris.opt (mtrap-using-break8): New option. + +2012-05-28 Paolo Carlini + + PR c++/25137 + * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall + for C++. + +2012-05-28 Hans-Peter Nilsson + + * doc/md.texi (stack_protect_test): Remove negation of branch to label. + (Standard Names): Fix typos in documentation of atomic patterns. + +2012-05-27 Nathan Sidwell + + * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS. + +2012-05-26 Jason Merrill + + PR c++/53220 + * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning + about array compound literals. + +2012-05-26 Eric Botcazou + + * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks + if CLEANUP_NO_INSN_DEL. + * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted + from cfg_layout_merge_blocks. + (emit_nop_for_unique_locus_between): New function. + (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between. + (cfg_layout_merge_blocks): Likewise. + +2012-05-26 Dimitrios Apostolou + Paolo Bonzini + + * df-scan.c (df_def_record_1): Assert a parallel must contain an + EXPR_LIST at this point. Receive the LOC and move its extraction... + (df_defs_record): ... here. Change if-else to a switch statement. + (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New. + (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET + and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE + DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for + regs_invalidated_by_call. + (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after + df_get_call_refs(). + +2012-05-25 Eric Botcazou + + PR lto/52178 + * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL. + * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR. + +2012-05-25 Michael Meissner + + * config/rs6000/t-linux64: Delete the 32-bit multilib that uses + software floating point emulation. No longer build the multilibs + with -mstrict-align. + +2012-05-25 Aldy Hernandez + + PR middle-end/53008 + * trans-mem.c (ipa_tm_create_version_alias): Output new_node if + accessed indirectly. + (ipa_tm_create_version): Same. + +2012-05-25 Uros Bizjak + + PR target/53474 + * config/i386/i386.c (ix86_print_operand) : Print '.' here. + : Print '.' only for C and c. + +2012-05-25 Alexander Ivchenko + + PR target/53435 + * config/i386/i386.c (ix86_expand_vec_perm): Use correct op. + (ix86_expand_vec_perm): Use int mode instead of float. + (expand_vec_perm_pshufb): Remove handling of useseless type + conversion. + +2012-05-25 Eric Botcazou + + PR ada/52362 + * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and + gnu_ld variables to yes. + * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion. + (HAVE_GNU_AS): Likewise. + * config.in: Regenerate. + * configure: Likewise. + +2012-05-25 Tristan Gingold + + * config/i386/i386.c (struct ix86_frame): Remove unused frame field. + (ix86_compute_frame_layout): Fix type of stack_alignment_needed + and preferred_alignment. + +2012-05-25 Tristan Gingold + + * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo. + +2012-05-25 Thomas Schwinge + + * fold-const.c (optimize_bit_field_compare): Abort early in the strict + volatile bitfields case. + +2012-05-24 Pat Haugen + + * config/rs6000/rs6000.c (rs6000_option_override_internal): Change + rs6000_sched_costly_dep default to true_store_to_load_dep_costly. + (adjacent_mem_locations): Move some code to and call... + (get_memref_parts): ...new function. + (mem_locations_overlap): New function. + (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn. + (is_mem_ref): Rename to... + (find_mem_ref): ...this. Return MEM rtx. + (get_store_dest): Remove function. + (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add + new parameter and adjust calls. + (rs6000_is_costly_dependence): Update calls for extra arg. Make sure + mem refs overlap for true_store_to_load_dep_costly. + (rs6000_sched_reorder2): Update calls for extra arg. Adjust args + passed to adjacent_mem_locations. + (is_costly_group): Walk resolved dependency list. + (force_new_group): Emit group ending nop for Power6/Power7. + * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value. + (group_ending_nop): New define_insn. + +2012-05-24 Dodji Seketeli + + Make unwound macro expansion trace less redundant + * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print + context of macro definition in the trace, when it's redundant. + Update comments. + +2012-05-24 Richard Guenther + + PR middle-end/53460 + * tree-profile.c (tree_profiling): Cleanup the CFG if + execute_fixup_cfg requests it. + +2012-05-24 Richard Guenther + + * tree-flow.h (create_var_ann): Remove. + * tree-dfa.c (create_var_ann): Remove and inline into its + single caller ... + (add_referenced_var_1): ... here. + * varpool.c (add_new_static_var): Do not call add_referenced_var + for global vars. + * gimple-fold.c (canonicalize_constructor_val): Likewise. + * tree-switch-conversion.c (build_one_array): Likewise. + * tree-profile.c (gimple_gen_ic_profiler): Likewise. + * tree-flow-inline.h (gimple_referenced_vars): Guard against + NULL fn argument. + * tree-inline.c (remap_gimple_op_r): Likewise. Check + gimple_referenced_vars instead of gimple_in_ssa_p. + (copy_tree_body_r): Likewise. + (setup_one_parameter): Likewise. + (declare_return_variable): Likewise. + (tree_function_versioning): Likewise. + +2012-05-24 Jakub Jelinek + + PR tree-optimization/53465 + * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range + vr0 into *vr, then vrp_meet that. + (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't + have any equivalences. + (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the + first time. + +2012-05-24 Jim MacArthur + + * recog.c (reg_fits_class_p): Check both regno and regno + offset are + hard registers. + * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and + check end_regno - 1 is a hard register. + +2012-05-24 Richard Guenther + + * varpool.c (add_new_static_var): Remove call to create_var_ann. + * tree-ssa-operands.c (create_vop_var): Likewise. + +2012-05-24 Richard Guenther + + PR bootstrap/53466 + * tree-ssa-live.c (remove_unused_scope_block_p): Properly + handle globals. + (remove_unused_locals): Pass global_unused_vars to + remove_unused_scope_block_p. Restore code walking all + referenced vars and pruning them. + +2012-05-23 Jan Hubicka + + * tree.h (alias_diag_flags): Remove. + (alias_pair): Remove emitted_diags. + (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs, + symbol_alias_set_t, symbol_alias_set_destroy, + symbol_alias_set_contains, propagate_aliases_backward): Remove. + * toplev.c (compile_file): Do not call finish_aliases_2 + * cgraphunit.c (cgraph_process_new_functions): Do not call + finish_aliases_1. + (handle_alias_pairs): Output diagnostics about aliases to externals. + (assemble_thunks_and_aliases): Use do_assemble_alias. + (output_weakrefs): Likewise. + (finalize_compilation_unit): Do not call finish_aliases_1. + * ipa.c (symtab_remove_unreachable_nodes): De not call + remove_unreachable_alias_pairs. + * varasm.c (do_assemble_alias): Export. + (symbol_alias_set_create, symbol_alias_set_destroy, + symbol_alias_set_contains, symbol_alias_set_insert, + propagate_aliases_forward, propagate_aliases_backward, + propagate_aliases_backward, trivially_visible_alias, + trivially_defined_alias, remove_unreachable_alias_pairs, + finish_aliases_1, finish_aliases_2, assemble_alias): Remove. + * output.h (do_assemble_alias): Declare. + * varpool.c (varpool_remove_unreferenced_decls): Do not call + finish_aliases_1. + +2012-05-23 Martin Jambor + + * ipa-inline-analysis.c (inline_merge_summary): Free operand_map. + +2012-05-23 Eric Botcazou + + * gimple.c (gimple_types_compatible_p_1) : Remove bogus + size handling. + (gimple_canonical_types_compatible_p) : Likewise. + (iterative_hash_gimple_type): Adjust comment. + (iterative_hash_canonical_type): Likewise. Hash the bounds of the + domain for an array type instead of the domain type itself. + +2012-05-23 Richard Guenther + + PR tree-optimization/53438 + * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion. + +2012-05-23 Georg-Johann Lay + + PR target/53448 + * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1. + * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use + ASM_OUTPUT_ALIGN. + +2012-05-23 Richard Guenther + + * tree-dfa.c (add_referenced_var_1): Do not add global vars. + * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars + via the global_unused_vars bitmap. + (remove_unused_locals): Handle global vars in local-decls via + a global_unused_vars bitmap instead of the used flag in the + var annotation. Simplify global variable handling and removal. + +2012-05-22 Jan Hubicka + + PR middle-end/53426 + * tree-ssa-structalias.c (create_variable_info_for): Skip constructors + from other partitions. + +2012-05-22 Jan Hubicka + + PR middle-end/53161 + * symtab.c (symtab_register_node): Fix ordering issue. + +2012-05-22 Steven Drake + + * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir. + +2012-05-22 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref): + Use strip_name_encoding target hook. + +2012-05-22 Richard Guenther + + * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New. + (init_function_for_compilation): Remove. + * tree-dfa.c (find_vars_r): Take struct function argument. + (find_referenced_vars_in): Adjust. + * tree-ssa-operands.c (clobber_stats): Remove. + (create_vop_var): Take struct function argument. Mark + virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND. + (init_ssa_operands): Take struct function argument. + (fini_ssa_operands): Do not dump dead stats. + * tree-ssa-operands.h (init_ssa_operands): Take struct function + argument. + * cgraphunit.c (init_lowered_empty_function): Adjust. + * lto-streamer-in.c (input_cfg): Likewise. + * tree-inline.c (initialize_cfun): Likewise. + * tree-into-ssa.c (rewrite_into_ssa): Likewise. + * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun. + * gimple.c (is_gimple_reg): Optimize the SSA_NAME case, + virtual operands are not registers. + +2012-05-22 Richard Guenther + + * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit. + +2012-05-22 Richard Guenther + + PR middle-end/53437 + * tree-inline.c (setup_one_parameter): Create a dummy init + statement for unused parameters when not optimizing. + +2012-05-22 Richard Guenther + + * tree-flow.h (add_referenced_var_1): Declare. + (add_referenced_var): Define. + * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup. + (add_referenced_var): Rename to ... + (add_referenced_var_1): ... this. Take struct function argument. + +2012-05-22 Ramana Radhakrishnan + + PR target/53334 + * config/arm/arm-protos.h (arm_validize_comparison): Declare. + * config/arm/arm.c (arm_validize_comparison): Define. + * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use + arm_validize_comparison. + ("cbranchdi4"): Likewise. + ("cstoredi4"): Likewise. + ("movsicc"): Likewise. + ("movsfcc"): Likewise. + ("movdfcc"): Likewise. + +2012-05-22 Dimitrios Apostolou + + * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce + the mw_reg_pool size. + +2012-05-22 Paolo Bonzini + + PR tree-optimization/53336 + * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from + non-integer integral types to offset type and vice versa. + +2012-05-22 Alan Modra + + * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete. + * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete. + * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE, + V_SAVE_INLINE): Delete. + * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete. + (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic. + For ELF targets, use out-of-line restores for -Os and any number + of regs if the restore exits, and out-of-line gp save for two or + more regs. Use save_reg_p to test for holes in reg restore set. + Replace "#if" with "if". + +2012-05-22 Alan Modra + + * config/rs6000/rs6000.c (save_reg_p): New function. + (first_reg_to_save, first_fp_reg_to_save): Use it here. + (first_altivec_reg_to_save, restore_saved_cr): Likewise. + (emit_frame_save): Use gen_frame_store. + (gen_frame_mem_offset): Correct SPE condition requiring reg+reg. + (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for + vrsave and toc. + (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for + vrsave, toc, gp and fp restores. + +2012-05-22 Alan Modra + + * config/rs6000/rs6000.c: Delete unnecessary forward declarations. + Move those with ATTRIBUTE_UNUSED to immediately before definitions. + Move function pointer variables after forward declarations. + (rs6000_builtin_support_vector_misalignment): Make static. + (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise. + (rs6000_function_value, rs6000_can_eliminate): Likewise. + +2012-05-21 Bernd Schmidt + + PR rtl-optimization/53373 + * caller-save.c (save_call_clobbered_regs): Look into a possible + PARALLEL manually rather than using single_set on a call insn. + +2012-05-21 Jakub Jelinek + + PR tree-optimization/53436 + * omp-low.c (omp_build_component_ref): New function. + (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it. + +2012-05-21 Uros Bizjak + + * config/i386/i386.c (put_condition_code): Change "reverse" and "fp" + arguments to bool. + (ix86_print_operand) : Look at mode size of the operand. + Do not print '.' here. Output operand lossage error for unhandled + sizes. Move. + : Move. + : Ditto. + : Ditto. + : Hardcode "code" argument into error strings. + : Ditto. + : Merge AVX and non-AVX codes. + : Merge. Fix error string. + Update call to put_condition_code. + +2012-05-21 Andreas Schwab + + * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call + CC_STATUS_INIT. + (clzsi2): New expander. + (*clzsi2_68k): New insn. + * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO. + +2012-05-21 Aldy Hernandez + + * gimple.h (gimple_set_in_transaction): Remove. + (gimple_in_transaction): Look in BB instead. + (gimple_statement_base): Remove in_transaction field. + * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION. + * trans-mem.c (compute_transaction_bits): Place transaction bit + information into basic blocks. + +2012-05-21 Andreas Schwab + + * expr.c (get_def_for_expr_class): Define only if + HAVE_conditional_move. + (convert_tree_comp_to_rtx): Likewise. + +2012-05-21 Uros Bizjak + + PR target/53399 + * config/i386/i386.md (ffs2): Generate CCCmode compare + for TARGET_BMI. + (ffssi2_no_cmove): Ditto. + (*ffs_1): Remove insn pattern. + (*tzcnt_1): New insn pattern. + (*bsf1): Ditto. + +2012-05-21 Richard Guenther + + * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for + more referenced vars. + * tree-ssa-live.c (mark_all_vars_used_1): Only set the used + flag on variables that have a var-annotation. + +2012-05-21 Joseph Myers + + PR c/53418 + * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR + from folded operands before wrapping another around the + conditional expression. + +2012-05-21 Jakub Jelinek + + PR tree-optimization/53366 + * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut + tests if complex_numbers == 2, but there are non-complex number loads + too. + + PR tree-optimization/53409 + * tree-vect-loop.c (vect_analyze_loop_operations): Don't check + vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop. + + PR tree-optimization/53410 + * fold-const.c (fold_binary_loc): Use build_zero_cst (type) + instead of build_int_cst (type, 0) where vector types might be + involved. Instead of build_int_cst (type, 1) convert the original + integer_onep argument to the desired type. + +2012-05-21 Michael Matz + + * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1. + (simplify_test_exp): Handle one more case of distributive law, + decrease cost threshold. + (tests_attr_p, get_attr_order): New functions. + (optimize_attrs): Use topological order, inline only cheap values. + (write_attr_set): Reset our_known_true after some time. + +2012-05-21 H.J. Lu + + PR target/53425 + * config/i386/i386.c (type_natural_mode): Warn passing SSE + vector argument without SSE enabled changes the ABI. + +2012-05-21 Richard Guenther + + PR tree-optimization/53408 + * tree-vect-loop.c (vectorizable_induction): Properly check + the restriction that we cannot handle induction results from + the inner loop outside of the outer loop. + +2012-05-21 H.J. Lu + + PR target/53416 + * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ... + (UNSPECV_RDRAND): This. + (rdrand_1): Updated. + +2012-05-21 Richard Guenther + + * tree-loop-distribution.c (can_generate_builtin): Reject + volatile stmts. + +2012-05-21 Chung-Lin Tang + + * Makefile.in (options.c): Add options.h to included header + files, before tm.h. + +2012-05-21 Razya Ladelsky + + * tree-parloops.c : Add myself to contributors, update + TODO list, add link to wiki. + +2012-05-21 Alan Modra + + * config/rs6000/predicates.md (input_operand): Don't match + constant pool addresses. Remove label_ref, high and plus from + match_code list. Remove redundant CONSTANT_P test. + (splat_input_operand): Similarly update match_code list. + (small_toc_ref): New predicate. + * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype. + * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const. + (legitimate_constant_pool_address_p): Move TARGET_TOC test and + register checks to.. + (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl + generated by create_TOC_reference. + (rs6000_legitimize_address): Update cerate_TOC_reference call. + (rs6000_delegitimize_address): Handle new rtl for toc refs. + (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise. + (use_toc_relative_ref): New function, split out from.. + (rs6000_emit_move): ..here. Remove redundant tests. Update + create_TOC_reference calls. + (rs6000_legitimize_reload_address): Formatting. Handle splitting + of medium/large model toc addresses. Use use_toc_relative_ref. + (print_operand): Formatting, style. Adjust for toc changes. + (print_operand_address): Likewise. + (rs6000_output_addr_const_extra): Likewise. + (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather + than a PLUS. Use this formulation for both high and low part + of -mcmodel=medium/large toc reference too. Before reload, + always use the small model formulation. + * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid + a PLUS in high part of addresses here. + (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise. + (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise. + (largetoc_high, largetoc_low): Move earlier. Cope when no + base reg available. + (largetoc_high_plus): New insn. + (movsi_internal1, movsi_internal1_single, movsf_softfloat, + movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here.. + (tocref): ..instead do so here, new insn and split. + +2012-05-20 H.J. Lu + + * config/i386/driver-i386.c (host_detect_local_cpu): Support + RDRND, F16C and FSGSBASE. + +2012-05-20 John David Anglin + + PR rtl-optimzation/53373 + * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in + call pattern. Update split patterns. + (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic, + call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise. + +2012-05-20 Razya Ladelsky + + * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond + for outer loops. + +2012-05-18 Jan Hubicka + + * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs + (cgraph_process_new_functions): Process also aliases. + * lto-streamer-out.c (struct sets): Remove. + (trivally_defined_alias): Remove. + (output_alias_pair_p): Remove. + (output_unreferenced_globals): Remove. + (produce_symtab); Do not handle alias pairs. + (produce_asm_for_decls): Likewise. + * lto-streamer-in.c (input_alias_pairs): Remove. + (lto_read_body): Do not input alias pairs. + (lto_input_constructors_and_inits): Remove. + +2012-05-18 Jan Hubicka + + * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of + aliases. + +2012-05-18 Jan Hubicka + + * cgraphbuild.c (record_reference): Update. + * lto-cgraph.c (lto_output_varpool_node): External vars + are not in other partition even if they are not output + in current partition. + * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL + argument; fix. + (canonicalize_constructor_val): Take FROM_DECL argument. + (fold_ctor_reference, fold_string_cst_ctor_reference, + fold_array_ctor_reference, fold_nonarray_ctor_reference, + fold_ctor_reference): Likewise. + (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update. + * gimple.h (gimple_fold_builtin): Likewise. + +2012-05-18 Olivier Hainque + + * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of + $(libsubdir) as libexecsubdir. + +2012-05-18 Bill Schmidt + + * config/rs6000/rs6000.c (print_operand): Revise code that unsafely + relied on signed overflow behavior. + +2012-05-18 Richard Guenther + + PR tree-optimization/53346 + * tree-loop-distribution.c (ldist_gen): Make sure to apply + builtin transform even when only a single partition with + all reads/writes exists. + +2012-05-18 Richard Guenther + + PR tree-optimization/53390 + * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore + strided loads. + +2012-05-18 Bill Schmidt + + * tree-ssa-reassoc.c (bip_map): Remove decl. + (completely_remove_stmt): Remove function. + (remove_def_if_absorbed_call): Remove function. + (remove_visited_stmt_chain): Remove __builtin_powi handling. + (possibly_move_powi): Remove function. + (rewrite_expr_tree): Remove calls to possibly_move_powi. + (rewrite_expr_tree_parallel): Likewise. + (attempt_builtin_powi): Build multiplies explicitly rather than + relying on the ops vector and rank system. + (transform_stmt_to_copy): New function. + (transform_stmt_to_multiply): Likewise. + (reassociate_bb): Handle leftover operations after __builtin_powi + optimization; build a final multiply if necessary. + +2012-05-18 Jan Hubicka + + * cgraphunit.c (varpool_finalize_decl): Allow external decls. + (mark_functions_to_output): Fix sanity check. + * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check. + +2012-05-18 Richard Guenther + + * tree-flow.h (mark_symbols_for_renaming): Remove. + * tree-dfa.c (mark_symbols_for_renaming): Likewise. + * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming. + (copy_debug_stmt): Likewise. + (expand_call_inline): Likewise. + (declare_return_variable): Mark the return variable for renaming + if necessary. + +2012-05-18 Andrew Stubbs + + * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New + prototype. + * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function. + * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift. + (ashrdi3,lshrdi3): Likewise. + (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch. + +2012-05-18 Meador Inge + + PR rtl-optimization/53352 + * cse.c (equiv_constant): Ignore paradoxical subregs. + +2012-05-17 Steven Bosscher + + PR rtl-optimization/53125 + * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid + argument. Simplify calculation of REG_LIVE_LENGTH for regnos that + die in the basic block. Correctly top off REG_FREQ and + REG_FREQ_CALLS_CROSSED. + Remove do_not_gen. + (regstat_compute_ri): Allocate and free local_live_last_luid. + Remove do_not_gen. + (regstat_bb_compute_calls_crossed): Correctly top off + REG_FREQ_CALLS_CROSSED. + +2012-05-17 Jan Hubicka + + * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with + constructor over decl without. + * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes. + * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly. + * cgraphunit.c (process_function_and_variable_attributes): Finalize + extrnal decls. + (mark_functions_to_output): Also accept bodies for functions with + clones. + (output_in_order): Skip external vars. + * lto-cgraph.c (lto_output_node): External functions are never in other + partition. + (lto_output_varpool_node): Likewise. + * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for + forgotten initializers. + * ipa.c (process_references): Handle external vars. + (symtab_remove_unreachable_nodes): Update to handle external vars. + (varpool_externally_visible_p): External vars are externally visible. + * gimple-fold.c (can_refer_decl_in_current_unit_p): Update. + * varpool.c (varpool_remove_node): Remove constructor. + (decide_is_variable_needed): Handle externals. + (varpool_remove_unreferenced_decls): Likewise. + +2012-05-17 Manuel López-Ibáñez + + * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic. + (enable_warning_as_error): Do not special case Wuninitialized. + * optc-gen.awk: Add sanity checks. + +2012-05-17 Jan Hubicka + + * ipa-reference.c (is_proper_for_analysis): Do not check flags + that might change as result of global optimization. + (analyze_function): Do not check analyzed and externally_visible + flags; be happy about address dereferences. + (propagate): Prune all_module_statics so it really contains just + statics; prune all the local summaries. + (ipa_reference_write_optimization_summary): Simplify. + +2012-05-17 Kwok Cheung Yeung + + * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm. + * config/m68k/m68k-tables.opt: Regenerated. + * doc/invoke.texi (M680x0 Options): Document. + +2012-05-16 Dave Boutcher + Patrick Marlier + + * trans-mem.c (ipa_tm_transform_clone): Transform functions with + indirect calls. + +2012-05-16 H.J. Lu + + * configure: Regenerated. + +2012-05-16 Andrew Pinski + + * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under + GIMPLE_ASSIGN. + +2012-05-16 David S. Miller + + * jump.c (delete_related_insns): If we remove a CALL, make sure + we delete it's NOTE_INSN_CALL_ARG_LOCATION note too. + +2012-05-16 Bill Schmidt + + PR tree-optimization/53217 + * tree-ssa-reassoc.c (bip_map): New static variable. + (possibly_move_powi): Move feeding multiplies with __builtin_powi call. + (attempt_builtin_powi): Save feeding multiplies on a stack. + (reassociate_bb): Create and destroy bip_map. + +2012-05-16 Olivier Hainque + + * Makefile.in (install-no-fixedincludes): New target, former toplevel + gcc-no-fixedincludes. Stash "include-fixed" in addition to "include". + Add comments and improve stamp preservation across the whole sequence. + (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h. + +2012-05-16 Richard Guenther + + * tree-inline.c (insert_init_stmt): Do not call + mark_symbols_for_renaming. + (setup_one_parameter): Avoid initializing unused parameters. + (declare_return_variable): Properly handle DECL_BY_REFERENCE + return vars in SSA form. + +2012-05-16 Richard Guenther + + * tree-flow.h (get_virtual_var): Remove. + * tree-dfa.c (get_virtual_var): Likewise. + +2012-05-16 Richard Guenther + + * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): + Remove set-only bitmap of new names. + (slpeel_tree_peel_loop_to_edge): Likewise. Do not set + CFG hooks. + * tree-flow.h (ssa_names_to_replace): Remove. + * tree-into-ssa.c (ssa_names_to_replace): Likewise. + +2012-05-16 Richard Guenther + + PR tree-optimization/53364 + * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly + detect a view-conversion of the decl. + +2012-05-16 Dodji Seketeli + + PR preprocessor/7263 + * c-tree.h (enum c_declspec_word): Declare new enum. + (struct c_declspecs::locations): New member. + (declspecs_add_qual, declspecs_add_scspec) + (declspecs_add_addrspace, declspecs_add_alignas): Take a new + location parameter. + * c-decl.c (build_null_declspecs): Initialize the new struct + c_declspecs::locations member. + (declspecs_add_addrspace): Take a location parameter for the + address space. Store it onto declaration specifiers. + (declspecs_add_qual): Likewise, take a location parameter for the + qualifier. + (declspecs_add_type): Likewise, take a location parameter for the + type specifier. + (declspecs_add_scspec): Likewise, take a location parameter for + the storage class specifier. + (declspecs_add_attrs): Likewise, take a location parameter for the + first attribute. + (declspecs_add_alignas): Likewise, take a location parameter for + the alignas token. + (finish_declspecs): For diagnostics, use the location of the + relevant declspec, instead of the global input_location. + * c-parser.c (c_parser_parameter_declaration): Pass the precise + virtual location of the declspec to the declspecs-setters. + (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token + repeatedly. + +2012-05-16 Igor Zamyatin + + * configure.ac: Stack protector enabling for Android targets. + * configure: Regenerate. + +2012-05-16 Richard Sandiford + + * ira.c (pseudo_move_insn): Delete. + (find_moveable_pseudos): Don't set it. + (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find + the definitions of the original pseudo. Delete all of them. + +2012-05-16 Olivier Hainque + + * config/rs6000/rs6000-opts.h (enum processor_type): Add + PROCESSOR_PPC8548. + * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548". + * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548. + * config/rs6000/8540.md: indicate that the units/patterns apply to + ppc8548 as well. + + * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename + default_cpu into implicit_cpu, conveying what --with-cpu was passed at + configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE + related flags, check that what is queried is supported by the selected + configuration. Rework the single/double_float and MASK_STRING resets to + hit for all the E500 cores (854x + E500MC variants). Select the ppc8540 + costs for PROCESSOR_PPC8548 as well. + (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540. + (rs6000_use_sched_lookahead): Likewise, rewriting function as a case + statement instead of a sequence of ifs. + + * config/rs6000/rs6000.h (TARGET_E500): Remove. + (TARGET_NO_LWSYNC): Adjust accordingly. + * config/rs6000/e500.h (TARGET_E500): Remove. + (CHECK_E500_OPTIONS): Adjust accordingly. + * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove. + (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h. + * config/rs6000/linuxspe.h: Likewise. + * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and + superfluous comments. + * config/rs6000/e500-double.h: Remove. + + * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*, + default to with_cpu=8548 if --enable-e500-double, and to 8540 + otherwise. + (set misc flags section): For powerpc*|rs6000*, remove inclusion + of e500-double.h for --enable-e500-double. + +2012-05-16 Olivier Hainque + + * Makefile.in (s-header-vars): Resort to -n instead of trailing + -e d in sed invocation. + +2012-05-16 Hans-Peter Nilsson + + * doc/tm.texi.in (Type Layout) : Update reference to + source-code. + * doc/tm.texi: Regenerate. + +2012-05-15 Paolo Carlini + + * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P. + +2012-05-15 Jakub Jelinek + + PR target/53358 + * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check + that operands[2] is either immediate, or q_regs_operand. + +2012-05-15 Richard Guenther + + * cgraphunit.c (thunk_adjust): Use make_rename_temp. + (assemble_thunk): Likewise. Manually rename and register + function arguments. + +2012-05-15 Richard Guenther + + PR tree-optimization/53355 + * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs + by constants. + +2012-05-15 Tristan Gingold + + * tree-ssa-strlen.c (get_string_length): Convert lhs if needed. + +2012-05-15 Richard Guenther + + * gimple.c (gimple_set_modified): Move ... + * gimple.h (gimple_set_modified): ... here. + +2012-05-15 Tristan Gingold + + * ira-color.c (move_spill_restore): Add a guard. + +2012-05-15 Tristan Gingold + + * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to + plus_constant. + +2012-05-15 Eric Botcazou + + * gimplify.c (gimplify_init_constructor): Do a block move for very + small objects as well. + +2012-05-15 Bernd Schmidt + + * ira.c (find_moveable_pseudos): Skip registers whose + DF_REG_EQ_USE_COUNT is nonzero. + +2012-05-15 Kenneth Zadeck + + * doc/md.texi (fma): Define to only be applicable for single rounding. + +2012-05-14 Uros Bizjak + + PR target/46098 + * config/i386/i386.c (ix86_expand_special_args_builtin): Always + generate target register for "load" class builtins. + + Revert: + 2010-10-22 Uros Bizjak + + PR target/46098 + * config/i386/sse.md (*avx_movu): + Rename from avx_movu. + (avx_movu): New expander. + (*_movu): Rename from _movu. + (_movu): New expander. + (*avx_movdqu): Rename from avx_movdqu. + (avx_movdqu): New expander. + (*sse2_movdqu): Rename from sse2_movdqu. + (sse2_movdqu): New expander. + +2012-05-14 Marc Glisse + + PR target/52607 + * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ... + (canonicalize_perm): ... new function. + (expand_vec_perm_2vperm2f128_vshuf): New function. + (ix86_expand_vec_perm_const_1): Call it. + +2012-05-14 Andrew Pinski + H.J. Lu + Jakub Jelinek + + PR target/53315 + * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup. + (xbegin): Updated. + +2012-05-14 Jakub Jelinek + + * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat + lineno 1 the same as lineno 0 before first start file directive. + (optimize_macinfo_range): Likewise. + + * dwarf2out.c (have_macinfo): Define. + (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info + attribute, don't force empty compilation unit and don't emit any + .debug_macinfo/.debug_macro section if macinfo_table is empty. + +2012-05-14 Georg-Johann Lay + + PR target/53344 + * config/avr/avr.c (avr_const_address_lo16): Remove. + (avr_assemble_integer): Print ".byte lo8(x)", + ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler + .warning if 3-byte address is assembled. + * doc/extend.texi (AVR Named Address Spaces): Document that + binutils 2.23 is needed to assemble 3-byte addresses. + +2012-05-14 Richard Guenther + + * tree-vect-data-refs.c (vect_setup_realignment): Remove + call to mark_symbols_for_renaming. + (vect_permute_load_chain): Likewise. + * tree-vect-loop.c (vect_is_slp_reduction): Update stmt + instead of calling mark_symbols_for_renaming. + * tree-vect-stmts.c (read_vector_array): Remove call to + mark_symbols_for_renaming. + (write_vector_array): Likewise. + (vectorizable_call): Likewise. + (vectorizable_store): Likewise. + (vectorizable_load): Likewise. + * matrix-reorg.c (transform_allocation_sites): Likewise. + * tree-ssa-pre.c (create_expression_by_pieces): Likewise. + (create_expression_by_pieces): Likewise. + +2012-05-14 Richard Guenther + + * gimplify.c (gimple_regimplify_operands): Only mark the LHS + of statements for renaming. + (force_gimple_operand_1): Likewise, consistently for both + calls to force_gimple_operand and force_gimple_operand_gsi. + +2012-05-14 Richard Guenther + + * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form. + * omp-low.c (expand_omp_taskreg): Properly conditionalize call + to update_ssa. + (expand_omp_for): Likewise. + (expand_omp_for_generic): Adjust conditional add to referenced vars. + Use make_rename_temp for temporaries that should be rewritten into + SSA form. + (expand_omp_for_static_nochunk): Likewise. + (expand_omp_atomic_pipeline): Likewise. + +2012-05-14 Richard Guenther + + PR tree-optimization/53331 + * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore + strided loads. + * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads. + +2012-05-14 Manuel López-Ibáñez + + PR 53063 + * doc/options.texi: (LangEnabledBy): Document it. + * optc-gen.awk: Handle LangEnabledBy. + * opth-gen.awk: Generate declaration for lang-specific functions. + * opt-read.awk: Record lang numbers. + * opt-functions.awk (flag_set_p): Ignore the arguments of flags. + (lang_sanitized_name): New. + +2012-05-14 Bernd Schmidt + + * attribs.c (decl_attributes): Avoid emitting a warning if + ATTR_FLAG_BUILT_IN. + * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx + codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE. + * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to + define a string "1". + (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition. + * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, + BUILT_IN_STRCPY): Use it for these functions. + * postreload.c (reload_combine): Deal with SETs inside + CALL_INSN_FUNCTION_USAGE. + * caller-save.c (setup_save_areas, save_call_clobbered_regs): + Look for REG_RETURNED notes and use a cheap restore if possible. + * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num. + (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro. + * ira-build.c (ira_create_allocno, create_cap_allocno, + propagate_allocno_info, propagate_some_info_from_allocno, + copy_info_to_removed_store_destination, ira_flattening): Handle it. + * ira-lives.c (pseudo_regno_single_word_and_live_p, + find_call_crossed_cheap_reg): New static functions. + (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE, + and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make + a REG_RETURNED note in that case. + * ira.c (setup_reg_renumber): Change assert to allow cases where + allocnos only cross calls for which they are cheap to restore. + * ira-costs.c (ira_tune_allocno_costs): Compare + ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather + than 0. + * reg-notes.def (REG_RETURNED): New note. + * cse.c (cse_insn): Likewise. + * sched-deps.c (sched_analyze_insn): Likewise. + * expr.c (init_block_move_fn): Set a "fn spec" attribute. + * calls.c (decl_return_flags): New static function. + (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for + functions that return one of their arguments. + * regcprop.c (struct kill_set_value_data): New. + (kill_set_value): Interpret data as a pointer to such a struct. + Do nothing if the caller wants the register to be ignored. + (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE. + +2012-05-14 Richard Guenther + + PR tree-optimization/53340 + * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit. + +2012-05-14 Richard Guenther + + * gimplify.c (gimplify_expr): Remove odd code. + +2012-05-14 Eric Botcazou + + * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype + into a PLUS_EXPR byte offset. + + * tree-ssa-pre.c (can_value_number_call): Delete. + (compute_avail): Skip all statements with side effects. + : Skip calls to internal functions. + +2012-05-13 Steven Bosscher + + * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv". + +2012-05-13 Manuel López-Ibáñez + + * common.opt (Wtype-limits): Use EnabledBy. + +2012-05-13 Uros Bizjak + + * config/i386/i386.md (*pushtf): Enable for TARGET_SSE. + (pushtf splitter): Ditto. + (movtf): Ditto. + (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2. + (tf2): Enable for TARGET_SSE. + (*absnegtf2_sse): Ditto. + (copysign3): Enable TFmode for TARGET_SSE. + (copysign3_const): Ditto. + (copysign3_var): Ditto. + * config/i386/sse.md (tf3): Enable for TARGET_SSE. + (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2. + (*tf3): Ditto. + * config/i386/i386.c (struct builtin_description bdesc_args) + : Enable for TARGET_SSE. + : Ditto. + (ix86_expand_builtin) : + Emit a normal call if SSE isn't available. + +2012-05-13 Uros Bizjak + + * config/i386/sse.md (_andnot3): Handle + TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. + (3): Ditto. + (*andnot3): Ditto. + (*andnottf3): Ditto. + (*3): Ditto. + (tf3): Ditto. + +2012-05-13 Manuel López-Ibáñez + + * optc-gen.awk: Error instead of warning for conflicting help. + +2012-05-12 Jason Merrill + + PR debug/53235 + * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for + comdat types. + +2012-05-12 Eric Botcazou + + * function.c (requires_stack_frame_p): If the function can throw + non-call exceptions, return true if the insn can throw internally. + +2012-05-12 Paolo Carlini + + * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P. + +2012-05-12 Uros Bizjak + + * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle + ORDERED and UNORDERED conditions. + +2012-05-11 Richard Guenther + + * tree-flow.h (referenced_var_check_and_insert): Remove. + (find_new_referenced_vars): Likewise. + * tree-dfa.c (referenced_var_check_and_insert): Make static. + (find_new_referenced_vars_1, find_new_referenced_vars): Remove. + * tree-inline.c (copy_bb): Use find_referenced_vars_in + instead of find_new_referenced_vars. + * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise. + +2012-05-11 Richard Guenther + + * tree-pass.h (pass_rest_of_compilation, + pass_all_optimizations, pass_postreload, pass_all_early_optimizations): + Remove. + * passes.c (pass_all_optimizations, pass_postreload, + pass_all_early_optimizations): Make static. + (pass_rest_of_compilation): Likewise. Make it an RTL_PASS. + * tree-phinodes.c (init_phinodes, fini_phinodes): Remove. + * tree-ssa.c (init_tree_ssa): Do not call init_phinodes. + (delete_tree_ssa): Do not call fini_phinodes. + * tree-flow.h (init_phinodes, fini_phinodes): Remove. + +2012-05-11 Manuel López-Ibáñez + + PR 53063 + * doc/options.texi (EnabledBy): Document + * opts.c: Include opts.h and options.h before tm.h. + (finish_options): Do not handle some sub-options here... + (common_handle_option): ... instead call common_handle_option_auto + here. + * optc-gen.awk: Handle EnabledBy. + * opth-gen.awk: Declare common_handle_option_auto. + * common.opt (Wuninitialized): Use EnabledBy. Delete Init. + (Wmaybe-uninitialized): Likewise. + (Wunused-but-set-variable): Likewise. + (Wunused-function): Likewise. + (Wunused-label): Likewise. + (Wunused-value): Likewise. + (Wunused-variable): Likewise. + * opt-read.awk: Create opt_numbers array. + +2012-05-11 Richard Guenther + + PR tree-optimization/53295 + * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant + strides. + * tree-data-ref.c (dr_analyze_innermost): Allow non-constant + strides when analyzing data-references in a loop context. + * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject + non-constant strides for now. + (vect_enhance_data_refs_alignment): Ignore data references + that are strided loads. + (vect_analyze_data_ref_access): Handle non-constant strides. + (vect_check_strided_load): Verify the data-reference is a load. + (vect_analyze_data_refs): Restructure to make strided load + support not dependent on gather support. + * tree-vect-stmts.c (vectorizable_load): Avoid useless work + when doing strided or gather loads. + * tree-vect-loop-manip.c (vect_vfa_segment_size): Use + integer_zerop to compare stride with zero. + +2012-05-11 H.J. Lu + + * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM. + +2012-05-11 Jan Hubicka + + PR bootstrap/53300 + * varpool.c (varpool_assemble_decl): Also output constat pool entries + that output_constant_pool missed. + +2012-05-11 Mingjie Xing + + * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to + MULTILIB_EXTRA_OPTS. + +2012-05-11 Uros Bizjak + + PR target/53291 + * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc. + +2012-05-11 Uros Bizjak + + * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size + optimization for TARGET_AVX. + (*movti_internal_sse): Ditto. + (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. + (*movdi_internal): Ditto. + (*movsi_internal): Ditto. + (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX. + (*movdf_internal_rex64): Ditto. + (*movfd_internal): Ditto. + (*movsf_internal): Ditto. + * config/i386/sse.md (mov): Handle TARGET_SSE_LOAD0_BY_PXOR. + +2012-05-10 Eric Botcazou + + * dwarf2out.c (add_byte_size_attribute) : Handle variable + reference as size attribute. + +2012-05-10 Eric Botcazou + Tristan Gingold + + * doc/md.texi (Standard Names): Document probe_stack_address. + * explow.c (emit_stack_probe): Handle probe_stack_address. + * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant. + (UNSPECV_PROBE_STACK_RANGE): Likewise. + (probe_stack_address): New insn. + (probe_stack_range): Likewise. + * config/ia64/ia64.c: Include common/common-target.h. + (ia64_compute_frame_size): Mark r2 and r3 as used if static stack + checking is enabled. + (ia64_emit_probe_stack_range): New function. + (output_probe_stack_range): Likewise. + (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static + builtin stack checking is enabled. + (rtx_needs_barrier) : Handle UNSPECV_PROBE_STACK_RANGE + and UNSPECV_PROBE_STACK_ADDRESS. + (unknown_for_bundling_p): New predicate. + (group_barrier_needed): Use important_for_bundling_p. + (ia64_dfa_new_cycle): Use unknown_for_bundling_p. + (issue_nops_and_insn): Likewise. + (bundling): Likewise. + (final_emit_insn_group_barriers): Likewise. + * config/ia64/ia64-protos.h (output_probe_stack_range): Declare. + * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define. + (STACK_CHECK_PROTECT): Likewise. + * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise. + +2012-05-10 Jan Hubicka + + * ipa-inline.c (update_all_callee_keys): Remove. + (inline_small_functions): Simplify priority updating. + +2012-05-10 Jan Hubicka + + * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones. + +2012-05-10 Jan Hubicka + + * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ... + (symtab_remove_unreachable_nodes): ... this one. + * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes. + * cgraphunit.c (ipa_passes): Update. + * cgraphclones.c (cgraph_materialize_all_clones): Update. + * cgraph.c (cgraph_release_function_body): Only turn initial + into error mark when initial was previously set. + * ipa-inline.c (ipa_inline): Update. + * ipa.c: Include ipa-inline.h + (enqueue_cgraph_node, enqueue_varpool_node): Remove. + (enqueue_node): New function. + (process_references): Update. + (symtab_remove_unreachable_nodes): Cleanup. + * passes.c (execute_todo, execute_one_pass): Update. + +2012-05-10 Vladimir Makarov + + PR rtl-optimization/53125 + * ira.c (ira): Call find_moveable_pseudos and + move_unallocated_pseudos if only ira_conflicts_p is true. + +2012-05-10 Uros Bizjak + + * config/i386/i386.md (*movoi_internal_avx): Handle + TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES. + (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. + (*movti_internal_sse): Ditto. + (*movtf_internal): Ditto. + * config/i386/sse.md (ssePSmode): New mode attribute. + (*move_internal): Use ssePSmode. + (*_movu): Ditto. + (*_movdqu): Ditto. + * config/i386/i386.c (standard_sse_constant_opcode): Do not handle + TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here. + +2012-05-10 Eric Botcazou + + * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the + DECL_ORIGINAL_TYPE if it is present. + +2012-05-10 Nick Clifton + + PR target/53120 + * config/m32c/bitops.md (bset_qi): Change operand 2 from having + a "0" constraint to being a (match_dup 0). + +2012-05-10 Richard Guenther + + * stor-layout.c (byte_from_pos): Amend comment. + +2012-05-10 Rainer Orth + + * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init): + Document requirement to call in constructors. + + * config/i386/i386.c: Update comments for i386-cpuinfo.c name change. + +2012-05-10 Richard Guenther + + * tree.h (TYPE_IS_SIZETYPE): Remove. + * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use. + (extract_muldiv_1): Likewise. + * gimple.c (gtc_visit): Likewise. + (gimple_types_compatible_p): Likewise. + (iterative_hash_canonical_type): Likewise. + (gimple_canonical_types_compatible_p): Likewise. + * gimplify.c (gimplify_one_sizepos): Likewise. + * print-tree.c (print_node): Likewise. + * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE. + +2012-05-09 Uros Bizjak + + PR target/52908 + * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using + xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high. + (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern + instead of xop_mulv2div2di3_low. + (xop_pdql): Fix vec_select selector. + (xop_pdqh): Ditto. + (xop_mulv2div2di3_low): Remove insn_and_split pattern. + (xop_mulv2div2di3_high): Ditto. + +2012-05-09 Manuel López-Ibáñez + + PR c++/53289 + * diagnostic.h (diagnostic_context): Add last_location. + * diagnostic.c (diagnostic_initialize): Initialize it. + (diagnostic_show_locus): Use it. + +2012-05-09 Manuel López-Ibáñez + + * doc/extend.texi (Function Attributes): Point xref to section + about Pragmas. + +2012-05-09 Uros Bizjak + + * config/i386/i386.c (*movdf_internal_rex64): Remove + TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code. + Calculate "mode" attribute according to + TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag. + (*movdf_internal): Ditto. + +2012-05-09 Uros Bizjak + + PR target/44141 + * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle + 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and + sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL + or when optimizing for size. + * config/i386/sse.md (*mov_internal): Remove + TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code. + Calculate "mode" attribute according to optimize_function_for_size_p + and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag. + (*_movu): Choose asm template + depending on the mode of the instruction. Calculate "mode" attribute + according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES + and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags. + (*_movdqu): Ditto. + +2012-05-09 Georg-Johann Lay + + PR target/53256 + * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove. + * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove. + * config/avr/avr.h (struct machine_function): Add attributes_checked_p. + * config/avr/avr.c (avr_asm_declare_function_name): Remove. + (expand_prologue): Move initialization of cfun->machine->is_naked, + is_interrupt, is_signal, is_OS_task, is_OS_main from here to... + (avr_set_current_function): ...this new static function. + (TARGET_SET_CURRENT_FUNCTION): New define. + (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of + checking attributes of current_function_decl. + (avr_regs_to_save): Ditto. + (signal_function_p): Rename to avr_signal_function_p. + (interrupt_function_p): Rename to avr_interrupt_function_p. + + * doc/extend.texi (Function Attributes): Better explanation of + 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish + alphabetical order. + +2012-05-09 Michael Matz + + PR tree-optimization/53185 + * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable + peeling when we see strided loads. + +2012-05-09 Matthias Klose + + * gcc-ar.c (main): Don't check for execute bits for the plugin. + +2012-05-09 Ramana Radhakrishnan + + * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost): + Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with + USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately. + * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New. + (USE_LOAD_POST_INCREMENT): Define. + (USE_LOAD_PRE_INCREMENT): Define. + (USE_LOAD_POST_DECREMENT): Define. + (USE_LOAD_PRE_DECREMENT): Define. + (USE_STORE_PRE_DECREMENT): Define. + (USE_STORE_PRE_INCREMENT): Define. + (USE_STORE_POST_DECREMENT): Define. + (USE_STORE_POST_INCREMENT): Define. + (arm_auto_incmodes): Add enumeration. + * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare. + * config/arm/arm.c (arm_autoinc_modes_ok_p): Define. + +2012-05-09 Jakub Jelinek + + PR tree-optimization/53226 + * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove + prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false) + before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it + doesn't need to be revisited, look for earliest stmt with + !gimple_plf (stmt, GF_PLF_1) if something changed. + +2012-05-09 Terry Guo + + * genmultilib: Update copyright dates. + * doc/fragments.texi: Ditto. + +2012-05-09 Terry Guo + + * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED. + * genmultilib (MULTILIB_REQUIRED): New. + * doc/fragments.texi: Document the MULTILIB_REQUIRED. + +2012-05-09 Richard Guenther + + * tree-vectorizer.h (vect_loop_versioning): Adjust prototype. + (vect_do_peeling_for_loop_bound): Likewise. + (vect_do_peeling_for_alignment): Likewise. + * tree-vect-loop-manip.c (conservative_cost_threshold): Remove. + (vect_do_peeling_for_loop_bound): Get check_profitability and + threshold as parameters. + (vect_do_peeling_for_alignment): Likewise. + (vect_loop_versioning): Likewise. + * tree-vect-loop.c (vect_transform_loop): Compute check_profitability + and threshold here. Control where to put the check here. + +2012-05-09 Richard Sandiford + + PR middle-end/53249 + * dwarf2out.h (get_address_mode): Move declaration to... + * rtl.h: ...here. + * dwarf2out.c (get_address_mode): Move definition to... + * rtlanal.c: ...here. + * var-tracking.c (get_address_mode): Delete. + * combine.c (find_split_point): Use get_address_mode instead of + targetm.addr_space.address_mode. + * cselib.c (cselib_record_sets): Likewise. + * dse.c (canon_address, record_store): Likewise. + * emit-rtl.c (adjust_address_1, offset_address): Likewise. + * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces) + (store_by_pieces_1, expand_assignment, store_expr, store_constructor) + (expand_expr_real_1): Likewise. + * ifcvt.c (noce_try_cmove_arith): Likewise. + * optabs.c (maybe_legitimize_operand_same_code): Likewise. + * reload.c (find_reloads): Likewise. + * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise. + * sel-sched-dump.c (debug_mem_addr_value): Likewise. + +2012-05-09 Maciej W. Rozycki + + * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line + information from the instruction produced. + +2012-05-09 Richard Guenther + + * stor-layout.c (bit_from_pos): Document. + (byte_from_pos): Likewise. Optimize. + (pos_from_bit): Likewise. + (normalize_offset): Use pos_from_bit instead of replicating it. + +2012-05-09 Alan Modra + + PR target/53271 + * config/rs6000/rs6000.c (gen_frame_set): New function. + (gen_frame_load, gen_frame_store): New functions. + (rs6000_savres_rtx): Use the above. + (rs6000_emit_epilogue, rs6000_emit_prologue): Here too. + Correct mode used for CR2 in save/restore_world patterns. + Don't emit instructions for eh_return frame unwind reg info. + +2012-05-08 Jan Hubicka + + * cgraphbuild.c (build_cgraph_edges): Do not finalize vars + with VALUE_EXPR. + * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR + are removable. + * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR + need to wrapup. + (compile_file): Do not output variables. + * cgraphbuild.c (varpool_finalize_decl): When var is finalized late, + output it. + * langhooks.c: Include timevar.h + (write_global_declarations): Finalize compilation unit after wrapup; + set timevars correctly. + * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs + not to be added to varpool. + * varpool.c (varpool_assemble_decl): Sanity check that we are called + only on cases where it makes sense; skip constant pool and value expr + vars. + +2012-05-08 David S. Miller + + * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option. + * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise. + * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise. + +2012-05-08 Richard Sandiford + + PR rtl-optimization/53278 + * lower-subreg.c (decompose_multiword_subregs): Remove left-over + speed_p code from earlier patch. + +2012-05-08 Oleg Endo + + PR target/51244 + * config/sh/sh.md (*branch_true, *branch_false): New insns. + +2012-05-08 Teresa Johnson + + * gcov-io.h (__gcov_reset, __gcov_dump): Declare. + * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump. + +2012-05-08 Jan Hubicka + + * cgraph.c (cgraph_call_edge_duplication_hooks): Export. + (cgraph_create_node_1): Rename to ... + (cgraph_create_empty_node): ... this one; export. + (cgraph_create_node): Update. + (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c + (cgraph_create_edge_including_clones): Likewise. + (cgraph_find_replacement_node): Likewise. + (cgraph_clone_edge): Likewise. + (cgraph_clone_node): Likewise. + (clone_function_name): Likewise. + (cgraph_create_virtual_clone): Likewise. + (cgraph_remove_node_and_inline_clones): Likewise. + (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c + * cgraph.h: Reorder declarations so they match file of origin. + (cgraph_create_empty_node): Declare. + * cgraphunit.c (update_call_expr): Move to cgraphclones.c + (cgraph_copy_node_for_versioning): Likewise. + (cgraph_function_versioning): Likewise. + (cgraph_materialize_clone): Likewise. + (cgraph_redirect_edge_call_stmt_to_callee): Likewise. + (cgraph_materialize_all_clones): Likewise. + * cgraphclones.c: New file. + * Makefile.in: Update for cgraphclones. + +2012-05-08 Uros Bizjak + + PR target/53176 + * config/i386/i386.c (ix86_set_reg_reg_cost): New function. + (ix86_rtx_costs): Handle SET. + +2012-05-08 Michael Matz + + * basic-block.h (struct rtl_bb_info): Remove visited member and + move head_ member to ... + (struct basic_block_def.basic_block_il_dependent): ... the new + member x, replacing but containing old member rtl. + (enum bb_flags): New BB_VISITED flag. + (BB_HEADER, BB_FOOTER): New macros. + + * jump.c (mark_all_labels): Adjust. + * cfgcleanup.c (try_optimize_cfg): Adjust. + * cfglayout.c (record_effective_endpoints): Adjust. + (relink_block_chain): Ditto (and don't fiddle with visited). + (fixup_reorder_chain): Adjust. + (fixup_fallthru_exit_predecessor): Ditto. + (cfg_layout_duplicate_bb): Ditto. + * combine.c (update_cfg_for_uncondjump): Adjust. + * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member. + (bb_visited_trace): New accessor. + (mark_bb_visited): Move in front. + (rotate_loop): Use bb_visited_trace. + (find_traces_1_round): Ditto. + (emit_barrier_after): Ditto. + (copy_bb): Ditto, and initialize visited on resize. + (reorder_basic_blocks): Initize visited member. + (duplicate_computed_gotos): Clear bb flags at start, use + BB_VISITED flags. + + * cfgrtl.c (try_redirect_by_replacing_jump): Adjust. + (rtl_verify_flow_info_1): Ditto. + (cfg_layout_split_block): Ditto. + (cfg_layout_delete_block): Ditto. + (cfg_layout_merge_blocks): Ditto. + (init_rtl_bb_info): Adjust and initialize il.x.head_ member. + +2012-05-08 Hans-Peter Nilsson + + PR target/53272 + * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32, + when a constant source operand matches an "I" constraint, the "no + CC0 change" applies to a register-destination only, not a + strict_low_part-destination. + +2012-05-08 Richard Guenther + + * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2 + to zero or to (X * CST1) & CST2' when CST1 has trailing zeros. + +2012-05-08 Georg-Johann Lay + + * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi. + + * doc/avr-mmcu.texi: New auto-generated file. + * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order + to document all valid -mmcu= arguments. + + * config/avr/avr.h (arch_info_s): New struct definition. + * config/avr/avr-devices.c (avr_texinfo): New variable. + * config/avr/gen-avr-mmcu-texi.c: New file. + * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi. + +2012-05-08 Dehao Chen + + * predict.c (find_qualified_ssa_name): New. + (find_ssa_name_in_expr): New. + (find_ssa_name_in_assign_stmt): New. + (is_comparison_with_loop_invariant_p): New. + (is_bound_expr_similar): New. + (predict_iv_comparison): New. + (predict_loops): Add heuristic for loop-nested branches that compare an + induction variable to a loop bound variable. + * predict.def (PRED_LOOP_IV_COMPARE): New macro. + +2012-05-08 Uros Bizjak + + * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and + TARGET_BDVER2 defines where appropriate. + +2012-05-07 Eric Botcazou + + * configure.ac (PLUGIN_LD): Rename into... + (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet. + * config.in: Regenerate. + * configure: Likewise. + * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX. + +2012-05-07 Eric Botcazou + + * tree-dfa.c (get_ref_base_and_extent) : Do the offset + computation using the precision of the index type. + * gimple-fold.c (fold_const_aggregate_ref_1) : Likewise. + (fold_array_ctor_reference): Do index computations in the index type. + +2012-05-07 Georg-Johann Lay + + * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed + down to plus_constant. + (expand_epilogue): Ditto. + +2012-05-07 Steven Bosscher + + * postreload.c (reload_cse_regs): Make static. + * reload.h (reload_cse_regs): Remove prototype. + +2012-05-07 Richard Henderson + + * config/alpha/alpha.md (clear_cache): New pattern. + +2012-05-07 Steven Bosscher + + PR middle-end/53245 + * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high + is folded to a type boundary value, verify that the resulting case + label is still a care range. + +2012-05-07 Uros Bizjak + + * config/i386/i386.md (ctz2): Emit rep;bsf + only for TARGET_GENERIC, when not optimizing for size. + (*ffs_1): Ditto. + +2012-05-07 Steven Bosscher + + * tree-cfg.c (verify_gimple_switch): Tighten checks. + +2012-05-07 Jakub Jelinek + + PR tree-optimization/53239 + * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF + of DECL_BY_REFERENCE RESULT_DECL to nonnull. + +2012-05-07 Richard Guenther + + PR tree-optimization/53195 + * tree-inline.c (setup_one_parameter): Properly add referenced + vars from the parameters new known value. + +2012-05-07 Steven Bosscher + + * config/m68k/m68k.c (m68k_sched_branch_type): Remove. + (sched_branch_type): Remove. + (m68k_sched_md_init_global): Don't allocate it. + (m68k_sched_md_finish_global): Don't free it. + * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype. + * config/m68k/m68k.md: Set the type of insns using + m68k_sched_branch_type to bcc directly. + +2012-05-07 Rainer Orth + + * config/sol2.c (solaris_override_options): New function. + * config/sol2-protos.h (solaris_override_options): Declare. + * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define. + +2012-05-07 Richard Guenther + + * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return + whether we failed to compute data dependences. + (loop_prefetch_arrays): Fail if we failed. + +2012-05-07 Uros Bizjak + Paolo Bonzini + + * config/i386/i386.md (ctz2): Emit rep;bsf even for !TARGET_BMI. + Emit bsf when optimizing for size. + (*ffs_1): Ditto. + +2012-05-07 Oleg Endo + + PR target/53250 + * config/sh/sh.c (sh_rtx_costs): Handle SET. + +2012-05-06 Uros Bizjak + + PR target/53227 + * config/i386/i386.md (swap): Rename from *swap. + (bswapdi2): Split from bswap2. Use nonnimediate_operand + predicate for operand 1. Force operand 1 to register for TARGET_BSWAP. + (bswapsi2): Ditto. + (*bswapdi2_doubleword): New insn pattern. + (*bswap2): Rename from *bswap2_1. + +2012-05-06 Richard Sandiford + + * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function. + (mips_set_reg_reg_cost): Likewise. + (mips_rtx_costs): Handle SET. + +2012-05-06 Richard Sandiford + + * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET. + (compute_costs): Likewise for the zero extension. Use set_rtx_cost + to compute the cost of moves. Set the mode of the target register. + +2012-05-05 Richard Sandiford + + * rtl.h (plus_constant, plus_constant_mode): Merge into a single + plus_constant function. + * explow.c (plus_constant, plus_constant_mode): Likewise. Assert + that the mode is sensible. + (use_anchored_address, round_push, allocate_dynamic_stack_space) + (probe_stack_range, anti_adjust_stack_and_probe): Update calls to + plus_constant. + + * alias.c (canon_rtx): Likewise. + (init_alias_analysis): Likewise. + * builtins.c (expand_builtin_return_addr) + (expand_builtin_setjmp_setup, expand_builtin_longjmp) + (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf) + (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr) + (expand_builtin_stpcpy): Likewise. + * calls.c (save_fixed_argument_area, restore_fixed_argument_area) + (compute_argument_addresses, internal_arg_pointer_based_exp) + (expand_call, emit_library_call_value_1): Likewise. + * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise. + * combine-stack-adj.c (try_apply_stack_adjustment): Likewise. + * combine.c (combine_simplify_rtx, force_to_mode): Likewise. + * cse.c (insert_const_anchor, find_reg_offset_for_const) + (use_related_value, fold_rtx): Likewise. + * cselib.c (cselib_subst_to_values): Likewise. + * dse.c (record_store, check_mem_read_rtx): Likewise. + * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise. + * emit-rtl.c (adjust_address_1): Likewise. + * except.c (sjlj_emit_function_enter) + (expand_builtin_extract_return_addr) + (expand_builtin_frob_return_addr): Likewise. + * expmed.c (expand_divmod): Likewise. + * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1) + (emit_move_resolve_push, push_block, emit_push_insn, store_expr) + (expand_expr_addr_expr_1, expand_expr_real_1): Likewise. + * function.c (assign_stack_local_1) + (instantiate_virtual_regs_in_rtx): Likewise. + * optabs.c (prepare_cmp_insn): Likewise. + * recog.c (offsettable_address_addr_space_p): Likewise. + * reload.c (find_reloads_address, form_sum) + (find_reloads_subreg_address): Likewise. + * reload1.c (init_reload, eliminate_regs_1) + (eliminate_regs_in_insn): Likewise. + * simplify-rtx.c (simplify_unary_operation_1) + (simplify_binary_operation_1, simplify_plus_minus): Likewise. + * var-tracking.c (compute_cfa_pointer, prepare_call_arguments) + (vt_add_function_parameter): Likewise. + + * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise. + * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise. + * config/alpha/alpha.c (alpha_legitimize_address_1) + (get_unaligned_address, alpha_expand_unaligned_load) + (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words) + (alpha_expand_unaligned_store_words, alpha_expand_block_clear) + (alpha_expand_builtin_establish_vms_condition_handler) + (alpha_setup_incoming_varargs, emit_frame_store_1) + (alpha_expand_prologue, alpha_expand_epilogue) + (alpha_use_linkage): Likewise. + * config/alpha/alpha.md: Likewise. + + * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address) + (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address) + (thumb_legitimize_address, arm_gen_load_multiple_1) + (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq) + (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight) + (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi) + (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push) + (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue) + (thumb1_emit_multi_reg_push, thumb1_expand_prologue) + (thumb_expand_movmemqi, arm_set_return_address) + (thumb_set_return_address): Likewise. + * config/arm/arm.md: Likewise. + + * config/avr/avr.c (avr_incoming_return_addr_rtx) + (avr_prologue_setup_frame, expand_epilogue) + (avr_const_address_lo16): Likewise. + + * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise. + * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg) + (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call) + (bfin_output_mi_thunk): Likewise. + + * config/c6x/c6x.c (c6x_initialize_trampoline) + (c6x_output_mi_thunk): Likewise. + + * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise. + * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise. + + * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx) + (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load) + (cris_emit_movem_store, cris_trampoline_init): Likewise. + * config/cris/cris.md: Likewise. + + * config/darwin.c (machopic_indirect_data_reference) + (machopic_legitimize_pic_address): Likewise. + + * config/epiphany/epiphany.c (epiphany_emit_save_restore) + (epiphany_expand_prologue, epiphany_expand_epilogue) + (epiphany_trampoline_init): Likewise. + * config/epiphany/epiphany.md: Likewise. + + * config/fr30/fr30.c (fr30_move_double): Likewise. + + * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue) + (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx) + (frv_index_memory, unspec_got_name, frv_find_base_term) + (frv_output_dwarf_dtprel): Likewise. + + * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx) + (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise. + + * config/i386/i386.h (RETURN_ADDR_RTX): Likewise. + * config/i386/i386.c (setup_incoming_varargs_64) + (setup_incoming_varargs_ms_64, choose_baseaddr) + (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe) + (ix86_emit_probe_stack_range, ix86_expand_prologue) + (ix86_emit_restore_reg_using_pop, ix86_emit_leave) + (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address) + (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem) + (ix86_static_chain, ix86_trampoline_init, x86_this_parameter) + (x86_output_mi_thunk): Likewise. + * config/i386/i386.md: Likewise. + + * config/ia64/ia64.c (ia64_expand_load_address) + (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode) + (do_spill, ia64_trampoline_init): Likewise. + + * config/iq2000/iq2000.c (iq2000_va_start) + (iq2000_emit_frame_related_store, iq2000_expand_prologue) + (iq2000_expand_eh_return, iq2000_setup_incoming_varargs) + (iq2000_print_operand, iq2000_legitimize_address): Likewise. + + * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise. + + * config/m32c/m32c.c (m32c_return_addr_rtx) + (m32c_expand_insv): Likewise. + + * config/m32r/m32r.c (m32r_setup_incoming_varargs) + (m32r_legitimize_pic_address, m32r_print_operand) + (m32r_print_operand_address): Likewise. + + * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise. + * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise. + (EH_RETURN_HANDLER_RTX): Likewise. + * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue) + (m68k_expand_epilogue, legitimize_pic_address) + (m68k_output_mi_thunk): Likewise. + * config/m68k/m68k.md: Likewise. + + * config/mcore/mcore.c (mcore_expand_prolog): Likewise. + (mcore_expand_epilog): Likewise. + * config/mcore/mcore.md: Likewise. + + * config/mep/mep.c (mep_allocate_initial_value) + (mep_expand_prologue, mep_expand_epilogue): Likewise. + + * config/microblaze/microblaze.c (double_memory_operand) + (microblaze_block_move_loop): Likewise. + + * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset) + (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop) + (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg) + (mips_expand_prologue, mips_epilogue_set_cfa) + (mips_expand_epilogue): Likewise. + * config/mips/mips.md: Likewise. + + * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx) + (mmix_expand_prologue, mmix_expand_epilogue): Likewise. + + * config/mn10300/mn10300.c (mn10300_gen_multiple_store) + (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise. + + * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise. + (EH_RETURN_HANDLER_RTX): Likewise. + * config/moxie/moxie.c (moxie_static_chain): Likewise. + + * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address) + (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg) + (pa_return_addr_rtx, hppa_builtin_saveregs) + (pa_trampoline_init): Likewise. + * config/pa/pa.md: Likewise. + + * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise. + + * config/picochip/picochip.c (picochip_static_chain): Likewise. + + * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise. + * config/rs6000/rs6000.c (rs6000_legitimize_address) + (setup_incoming_varargs, print_operand, rs6000_return_addr) + (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range) + (rs6000_emit_epilogue) + (rs6000_machopic_legitimize_pic_address): Likewise. + + * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise. + + * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise. + (DYNAMIC_CHAIN_ADDRESS): Likewise. + * config/s390/s390.c (s390_decompose_address, legitimize_pic_address) + (s390_delegitimize_address, print_operand, annotate_constant_pool_refs) + (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx) + (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue) + (s390_emit_epilogue, s390_function_profiler): Likewise. + * config/s390/s390.md: Likewise. + + * config/score/score.c (score_add_offset, score_prologue): Likewise. + + * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs) + (sh_output_mi_thunk): Likewise. + * config/sh/sh.md: Likewise. + + * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX) + (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise. + * config/sparc/sparc.c (sparc_legitimize_pic_address) + (sparc_emit_probe_stack_range, emit_save_or_restore_regs) + (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx) + (emit_and_preserve): Likewise. + * config/sparc/sparc.md: Likewise. + + * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise. + * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg) + (spu_setup_incoming_varargs, ea_load_store_inline) + (spu_expand_load): Likewise. + + * config/stormy16/stormy16.c (xstormy16_expand_prologue) + (combine_bnp): Likewise. + + * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise. + * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs) + (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise. + + * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise. + * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs) + (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise. + + * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise. + * config/v850/v850.md: Likewise. + + * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise. + (EH_RETURN_HANDLER_RTX): Likewise. + * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise. + * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue) + (print_operand_address, vax_trampoline_init): Likewise. + + * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr) + (xtensa_function_value_regno_p): Likewise. + +2012-05-04 Andrew Pinski + + * expr.c (get_def_for_expr_class): New function. + (convert_tree_comp_to_rtx): New function. + (expand_cond_expr_using_cmove): New function. + (expand_expr_real_2 ): Call + expand_cond_expr_using_cmove first and return if it succeeds. + Remove the check for HAVE_conditional_move since we should have + already converted it to a conditional move. + * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison + modes of DImode for 32bits and TImode. + +2012-05-04 Steven Bosscher + + PR other/29442 + * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions. + (print_md_ptr_loc, print_c_condition): Use them. + * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes. + * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name, + attr_file, dfa_file, latency_file): New global variables. + (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value, + write_upcase, write_indent, write_length_unit_log, write_test_expr, + write_attr_get, write_insn_cases, write_eligible_delay, + write_const_num_delay_slots): Accept FILE pointer and toss it around. + Update all callers. + (write_header, open_outfile, handle_arg): New funcions. + (make_automaton_attrs): Write prototypes as extern to the output + files. + (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file + names from the command line. Open the output files and write out + internal functions for DFA functions to dfa_file_name, insn latency + functions to latency_file_name, and everything else to attr_file. + * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o. + (BACKEND): Build libbackend first. + (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c. + (.PRECIOUS): Likewise. + (insn-dfatab.o): New rule. + (insn-latencytab.o): New rule. + (simple_rtl_generated_c): Do not include insn-attrtab.c. + (s-attrtab): New rule. + +2012-05-04 Steven Bosscher + + * rtl.def (ATTR_FLAG): Remove probability indicating flags. + * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely, + ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely. + * reorg.c (get_jump_flags): Do not set the removed flags. + + * doc/md.texi (attr_flag): Update for abovementioned changes. + +2012-05-04 Uros Bizjak + + PR target/53228 + * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE. + (TARGET_CMOV): Rename from TARGET_CMOVE. + (TARGET_CMOVE): New define. + * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV. + Do not set TARGET_CMOVE here. + +2012-05-04 Dodji Seketeli + + Enable -Wunused-local-typedefs when -Wall or -Wunused is on + * opts.c (finish_options): Activate -Wunused-local-typedefs if + -Wunused is activated. + * doc/invoke.texi: Update blurb of -Wunused-local-typedefs. + +2012-05-04 Andreas Krebbel + + * config/s390/s390.md (*movmem_short, *clrmem_short) + (*cmpmem_short): Move the mode check from the insn condition to + the match_scratch. + +2012-05-04 Ulrich Weigand + + PR tree-optimization/52633 + * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of + vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern. + (vect_recog_over_widening_pattern): Remove handling of code that was + already detected as over-widening pattern. Remove special handling + of "unsigned" cases. Instead, support general case of conversion + of the shift result to another type. + +2012-05-04 Ulrich Weigand + + * tree-vect-patterns.c (vect_single_imm_use): New function. + (vect_recog_widen_mult_pattern): Use it instead of open-coding loop. + (vect_recog_over_widening_pattern): Likewise. + (vect_recog_widen_shift_pattern): Likewise. + +2012-05-04 Ulrich Weigand + + * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function. + (vect_handle_widen_op_by_const): Use it instead of open-coding test. + (vect_recog_widen_mult_pattern): Likewise. + (vect_operation_fits_smaller_type): Likewise. + (vect_recog_over_widening_pattern): Likewise. + (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test. + +2012-05-04 Richard Guenther + + PR lto/50602 + * lto-wrapper.c (merge_and_complain): Complain about mismatches + of -freg-struct-return and -fpcc-struct-return. + (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return + from the input file options and ignore those from the link + command line. + +2012-05-04 Richard Guenther + + PR tree-optimization/53168 + * tree-ssa-pre.c (phi_translate_1): Only handle type-punned + memory reads when the result is a constant we can pun. + +2012-05-04 Richard Guenther + + * common.opt (flto-report): Do not mark as Optimization. + +2012-05-04 Eric Botcazou + + PR target/48496 + * recog.c (constrain_operands): If extra constraints are present, also + accept pseudo-registers with equivalent memory locations during reload. + +2012-05-04 Olivier Hainque + + * collect2.c (may_unlink_output_file): New global. + (maybe_unlink): Honor it. + * collect2.h: Add extern for it. + * tlink.c (do_tlink): Set it to true if the link succeeded. + +2012-05-04 Olivier Hainque + + * gcc.c (eval_spec_function): Finalize/restore the current string + obstack state as part of the context push/pop operations. + +2012-05-04 Bin Cheng + + PR rtl-optimization/52804 + * reload1.c (reload_reg_reaches_end_p): Check whether successor + reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register + of current one with type RELOAD_FOR_INPADDR_ADDRESS. + Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and + RELOAD_FOR_OUTADDR_ADDRESS. + +2012-05-04 Manuel López-Ibáñez + + PR c++/24985 + * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret + for macro expansion. + +2012-05-03 Manuel López-Ibáñez + + * flags.h (flag_permissive): Do not declare. + * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive + option specially. + * toplev.c (flag_permissive): Do not define. + * c-tree.h (system_header_p): Delete unused. + +2012-05-03 David S. Miller + + PR target/52684 + * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a + MEM directly into a libcall, mark it's MEM_EXPR as addressable. + (sparc_emit_float_lib_cmp): Likewise. + +2012-05-03 Michael Meissner + + PR target/53199 + * config/rs6000/rs6000.md (bswapdi splitters): If + -mavoid-indexed-addresses (or -mcpu=power6 which sets it by + default) is used, generate an alternate sequence that does not + depend on using indexed addressing. + +2012-05-03 Jason Merrill + + * gengtype.c (write_types): Fix warning message. + (write_local): Likewise. + +2012-05-02 Jason Merrill + + * dwarf2out.c (struct external_ref, build_local_stub): New. + (hash_external_ref, external_ref_eq, lookup_external_ref): New. + (optimize_external_refs, optimize_external_refs_1): New. + (change_AT_die_ref): New. + (clone_as_declaration): Add DW_AT_signature when cloning a declaration. + (build_abbrev_table): Take the external refs hashtable. + (output_comp_unit): Get it from optimize_external_refs and pass it in. + +2012-05-03 Jan Hubicka + + PR middle-end/53093 + * tree-emutls.c (new_emutls_decl): Fix handling of aliases. + +2012-05-03 Jan Hubicka + + PR middle-end/53106 + * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones. + +2012-05-03 Jason Merrill + + * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of + use_debug_types to discriminate the die_id union. + (print_die, assign_symbol_names, copy_decls_walk): Likewise. + (build_abbrev_table, output_die): Likewise. + (prune_unused_types_walk_attribs): Likewise. + (generate_type_signature, copy_declaration_context): Set it. + (remove_child_or_replace_with_skeleton): Set it. + (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't + check use_debug_types. + (dwarf2out_finish): Do break_out_includes after .debug_types. + +2012-05-03 Jason Merrill + + * dwarf2out.c (modified_type_die): Use scope_die_for. + (gen_type_die_with_usage, dwarf2out_finish): Likewise. + (uses_local_type_r, uses_local_type): New. + (scope_die_for): Keep a type that uses a local type in local scope. + Use get_context_die for namespace and type scope. + +2012-05-03 Jason Merrill + + * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the + pc thunk. + * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions. + (dwarf2out_finish): Likewise. + +2012-05-03 Martin Jambor + + * builtins.c (get_object_alignment_1): Return whether we can determine + the alignment or conservatively assume byte alignment. Return the + alignment by reference. Use get_pointer_alignment_1 for dereference + alignment. + (get_pointer_alignment_1): Return whether we can determine the + alignment or conservatively assume byte alignment. Return the + alignment by reference. Use get_ptr_info_alignment to get SSA name + alignment. + (get_object_alignment): Update call to get_object_alignment_1. + (get_object_or_type_alignment): Likewise, fall back to type alignment + only when it returned false. + (get_pointer_alignment): Update call to get_pointer_alignment_1. + * fold-const.c (get_pointer_modulus_and_residue): Update call to + get_object_alignment_1. + * ipa-prop.c (ipa_modify_call_arguments): Update call to + get_pointer_alignment_1. + * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type + of MEM_REF or TARGET_MEM_REF only when it returns false. + * tree-ssa-ccp.c (get_value_from_alignment): Update call to + get_object_alignment_1. + (ccp_finalize): Use set_ptr_info_alignment. + * tree.h (get_object_alignment_1): Update declaration. + (get_pointer_alignment_1): Likewise. + * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment. + (dump_gimple_stmt): Likewise. + * tree-flow.h (ptr_info_def): Updated comments of fields align and + misalign. + (get_ptr_info_alignment): Declared. + (mark_ptr_info_alignment_unknown): Likewise. + (set_ptr_info_alignment): Likewise. + (adjust_ptr_info_misalignment): Likewise. + * tree-ssa-address.c (copy_ref_info): Use new access functions to get + and set alignment of SSA names. + * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call + mark_ptr_info_alignment_unknown. + * tree-ssanames.c (get_ptr_info_alignment): New function. + (mark_ptr_info_alignment_unknown): Likewise. + (set_ptr_info_alignment): Likewise. + (adjust_ptr_info_misalignment): Likewise. + (get_ptr_info): Call mark_ptr_info_alignment_unknown. + * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): + Likewise. + (bump_vector_ptr): Likewise. + * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment. + (vectorizable_store): Likewise. + (vectorizable_load): Likewise. + +2012-05-03 Michael Matz + + * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move + in front of basic_block_def. + (struct basic_block_def): Make il.gimple the full struct, not a + pointer. + (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef. + + * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members. + * gimple-iterator.c (gimple_stmt_iterator): Don't special case + NULL il.gimple, which can't happen anymore. + * gimple.h (bb_seq): il.gimple can't be NULL. + (bb_seq_add): Ditto. + (set_bb_seq): Adjust. + (gsi_start_bb, gsi_last_bb): Tidy. + * lto-streamer-in.c (make_new_block): Don't zero members that + are zeroed already, don't allocate a gimple_bb_info. + * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info. + (remove_bb): Clear all il.gimple members. + (gimple_verify_flow_info): Adjust for flat il.gimple. + * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust. + + * coretypes.h (const_gimple_seq): Remove typedef. + * gimple.h (gimple_seq_first): Take gimple_seq. + (gimple_seq_first_stmt): Ditto. + (gimple_seq_last): Ditto. + (gimple_seq_last_stmt): Ditto. + (gimple_seq_empty_p): Ditto. + +2012-05-03 Richard Guenther + + * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping + operations. + (prune_clobbered_mems): Do it here. Do not uselessly sort expressions. + (compute_avail): Do not add possibly trapping operations to + EXP_GEN if they might not be executed in the block. + +2012-05-03 Uros Bizjak + + * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove. + +2012-05-03 Steven Bosscher + + * tree-switch-conversion.c (gen_inbound_check): Free post-dominance + information as early as possible. Update dominance info instead of + discarding it. + +2012-05-03 Richard Guenther + + * tree-ssa-pre.c (debug_bitmap_sets_for): New function. + (union_contains_value): Remove. + (vro_valid_in_sets): Likewise. + (op_valid_in_sets): New function. + (valid_in_sets): Use op_valid_in_sets. + (insert_into_preds_of_block): Move dumping ... + (do_regular_insertion): ... here. + (do_partial_partial_insertion): ... and here. Dump that + we've found a partial partial redundancy. + (insert): Dump the current insert iteration. + +2012-05-03 Jakub Jelinek + + PR plugins/53126 + * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env, + append program name to it and pass that as first argument + to make_relative_prefix. Always pass standard_libexec_prefix + as last argument to make_relative_prefix. If + make_relative_prefix returns NULL, fall back to + standard_libexec_prefix. + + PR debug/53174 + * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being + removed. + + PR target/53187 + * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class + mode, return that mode. + + PR target/53194 + * config/i386/i386-c.c (ix86_target_macros_internal): Don't + define __ATOMIC_HLE_* macros here. + (ix86_target_macros): But here, using cpp_define_formatted. + +2012-05-03 Richard Guenther + + PR tree-optimization/53144 + * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces): + Rename to ... + (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal + with SSA name values. + (vn_reference_lookup_3): Adjust callers. + +2012-05-03 Ganesh Gopalasubramanian + + * config/i386/driver-i386.c (host_detect_local_cpu): Reset + has_fma4 for AMD processors with both fma3 and fma4 support. + +2012-05-03 Kirill Yukhin + + PR target/53201 + * config/i386/driver-i386.c (host_detect_local_cpu): Add space to + "-mno-hle". + +2012-05-03 Michael Matz + + PR bootstrap/53197 + * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator. + (dse_enter_block): Properly iterate the whole sequence even + if the last statement was removed. + +2012-05-02 Steven Bosscher + + * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code, + unset flag_jump_tables. + * stmt.c (expand_case): Remove special flag_pic case conditional + on ASM_OUTPUT_ADDR_DIFF_ELT not being defined. + +2012-05-02 Ulrich Weigand + + * common/config/s390/s390-common.c (s390_option_optimization_table): + Enable -fsched-pressure using -fsched-pressure-algorithm=model by + default when optimizing. + +2012-05-02 Martin Jambor + + PR lto/52605 + * dwarf2out.c (dwarf2out_decl): Only lookup die representing context + of a variable when the contect is a function. + +2012-05-02 Michael Matz + + * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple. + * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove. + (const_gimple_seq_node): Remove. + (gimple_seq_node): Typedef as gimple. + (struct gimple_statement_base): Add next and prev members, + adjust all WORD markers in using structs. + (union gimple_statement_d): Link via gsbase.next field for GC and PCH. + (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last, + gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and + gimple are the same. + (gimple_seq_set_last, gimple_seq_set_first): Don't allocate + gimple_seq, adjust. + (gimple_init_singleton): New function. + (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust. + (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly. + (gsi_stmt): Adjust. + (gsi_stmt_ptr): Remove. + (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member. + + * gimple-iterator.c (update_bb_for_stmts): Take last parameter + again, adjust for above changes. + (update_call_edge_frequencies): Adjust for above changes. + (gsi_insert_seq_nodes_before): Rewrite for new data structure. + (gsi_insert_seq_nodes_after): Ditto. + (gsi_split_seq_after): Ditto. + (gsi_set_stmt): Ditto. + (gsi_split_seq_before): Ditto. + (gsi_remove): Ditto. + (gsi_insert_seq_before_without_update): Don't free sequence. + (gsi_insert_seq_after_without_update): Ditto. + (gsi_replace): Assert some more invariants. + (gsi_insert_before_without_update, gsi_insert_after_without_update): + Tidy. + (gsi_for_stmt): Don't search for stmt. + (gsi_insert_on_edge_immediate): Tidy. + + * gimple.c (gimple_alloc_k): Remove "sequences". + (gimple_seq_cache): Remove. + (gimple_alloc_stat): Make stmt a singleton sequence. + (gimple_seq_alloc, gimple_seq_free): Remove. + (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton. + (gimple_copy): Ditto. + * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt, + create iterator from correct sequence. + * tree-phinodes.c (make_phi_node): Make stmt a singleton. + +2012-05-02 Michael Matz + + * gimple.h (gimple_stmt_iterator ): Make it be pointer to + gimple_seq. + (gimple_seq_set_last, gimple_seq_set_first): Take pointer to + sequence, lazily allocate it. + (bb_seq_addr): New function. + (gsi_start_1): Rename from gsi_start, but take pointer to sequence. + (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument. + (gsi_none): New function. + (gsi_start_bb): Adjust. + (gsi_last_1): Rename from gsi_last, but take pointer to sequence. + (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument. + (gsi_last_bb): Adjust. + (gsi_seq): Adjust. + * tree-flow-inline.h (phi_nodes_ptr): New function. + + * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to + datastructure and interface change. + (gsi_insert_seq_before_without_update): Ditto. + (gsi_insert_seq_nodes_after): Ditto. + (gsi_insert_seq_after_without_update): Ditto. + (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc. + (gsi_split_seq_before): Ditto. + (gsi_start_phis): Adjust. + * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none. + (vect_transform_loop): Ditto. + * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq, + gimple_seq_copy): Don't use gimple_seq_alloc. + * gimplify.c (gimple_seq_add_stmt_without_update): Ditto. + (gimplify_seq_add_seq): Ditto. + * lto-streamer-in.c (make_new_block): Ditto. + * tree-cfg.c (create_bb): Ditto. + * tree-sra.c (initialize_parameter_reductions): Ditto. + +2012-05-02 Michael Matz + + * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last, + gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first, + gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq, + set_bb_seq): Move down to after gimple_statement_d definition. + +2012-05-02 Michael Matz + + * gimple-fold.c (gimplify_and_update_call_from_tree): Use + gsi_replace_with_seq, instead of inserting itself. + * gimple-iterator.c (gsi_replace_with_seq): New function. + * tree-ssa-forwprop.c (forward_propagate_comparison): Take + iterator instead of statement, advance it. + (ssa_forward_propagate_and_combine): Adjust call to above. + +2012-05-02 Michael Matz + + * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use + gimple_seq_alloc. + * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc. + * tree-nested.c (walk_gimple_omp_for): Ditto. + * trans-mem.c (lower_transaction): Ditto. + * tree-eh.c (do_return_redirection): Ditto. + (do_goto_redirection): Ditto. + (lower_try_finally_switch): Ditto. + * gimplify.c (gimplify_stmt): Ditto. + (gimplify_scan_omp_clauses): Ditto. + (gimplify_omp_for): Ditto. + (gimplify_function_tree): Ditto. + * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto. + * tree-mudflap.c (mf_decl_cache_locals): Ditto. + (mf_build_check_statement_for): Ditto. + (mx_register_decls): Ditto. + * graphite-sese-to-poly.c (remove_invariant_phi): Ditto, + and don't use itertors to append. + (insert_stmts): Ditto. + (insert_out_of_ssa_copy): Ditto. + (insert_out_of_ssa_copy_on_edge): Ditto. + +2012-05-02 Michael Matz + + * gimple.h (gimple_bind_body_ptr): New function. + (gimple_bind_body): Use it. + (gimple_catch_handler): Use gimple_catch_handler_ptr. + (gimple_eh_filter_failure_ptr): New function. + (gimple_eh_filter_failure): Use it. + (gimple_eh_else_n_body_ptr): New function. + (gimple_eh_else_n_body): Use it. + (gimple_eh_else_e_body_ptr): New function. + (gimple_eh_else_e_body): Use it. + (gimple_try_eval_ptr): New function. + (gimple_try_eval): Use it. + (gimple_try_cleanup_ptr): New function. + (gimple_try_cleanup): Use it. + (gimple_wce_cleanup_ptr): New function. + (gimple_wce_cleanup): Use it. + (gimple_omp_body_ptr): New function. + (gimple_omp_body): Use it. + (gimple_omp_for_pre_body_ptr): New function. + (gimple_omp_for_pre_body): Use it. + (gimple_transaction_body_ptr): New function. + (gimple_transaction_body): Use it. + (gsi_split_seq_before): Adjust to return nothing and take pointer + to sequence. + (gsi_set_stmt): Declare. + (gsi_replace_with_seq): Declare. + (walk_gimple_seq_mod): Declare. + * function.h (struct function ): Use typedef gimple_seq. + + * gimple-iterator.c (gsi_set_stmt): New function. + (gsi_split_seq_before): Return new sequence via pointer argument. + (gsi_replace): Use gsi_set_stmt. + + * tree-ssa-loop-im.c (move_computations_stmt): First remove + then insert stmt. + * tree-complex.c (update_complex_components_on_edge): Don't copy gsi. + * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place, + return new stmt. + (reserve_phi_args_for_new_edge): Change call to above, + use gsi_set_stmt. + + * omp-low.c (lower_omp): Change prototype to take pointer to sequence. + (lower_rec_input_clauses): Use gimple_seq_add_seq instead of + iterators. Adjust call to lower_omp. + (lower_lastprivate_clauses): Adjust call to lower_omp. + (lower_reduction_clauses): Ditto. + (expand_omp_taskreg): Nullify non-cfg body of child_fn. + (lower_omp_sections): Don't explicitely count sequence length, + nullify lowered bodies earlier, ensure stmts are part of only + one sequence, adjust call to lower_omp. + (lower_omp_single): Ensure stmts are part of only one sequence, + adjust call to lower_omp. + (lower_omp_master): Ditto. + (lower_omp_ordered): Ditto. + (lower_omp_critical): Ditto. + (lower_omp_for): Ditto. + (lower_omp_taskreg): Ditto, tidy. + (lower_omp_1): Adjust calls to lower_omp. + (execute_lower_omp): Ditto. + (lower_omp): Adjust to take pointer to sequence. + (diagnose_sb_2): Use walk_gimple_seq_mod. + (diagnose_omp_structured_block_errors): Ditto and set possibly + changed function body. + * gimple-low.c (lower_function_body): Set function body after + it stabilizes. + (lower_sequence): Adjust to take pointer to sequence. + (lower_omp_directive): Ensure stmt isn't put twice into the + sequence, adjust call to lower_sequence. + (lower_stmt): Adjust calls to lower_sequence. + (lower_gimple_bind): Ditto. + (gimple_try_catch_may_fallthru): Call gsi_start with lvalue. + * tree-nested.c (walk_body): Take pointer to sequence, use + walk_gimple_seq_mod. + (walk_function): Adjust call to walk_body, set possibly changed body. + (walk_gimple_omp_for): Adjust calls to walk_body. + (convert_nonlocal_omp_clauses): Ditto. + (convert_nonlocal_reference_stmt): Ditto. + (convert_local_omp_clauses): Ditto. + (convert_local_reference_stmt): Ditto. + (convert_tramp_reference_stmt): Ditto. + (convert_gimple_call): Ditto. + (convert_nl_goto_reference): Use local iterator copy. + * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq, + but taking pointer to sequence, ensure gsi_start is called with + callers lvalue. + (walk_gimple_seq): New wrapper around walk_gimple_seq_mod, + asserting that the sequence head didn't change. + (walk_gimple_stmt): Replace all calls to walk_gimple_seq with + walk_gimple_seq_mod. + * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod. + (execute_lower_tm): Ditto, and set possibly changed body. + * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence, + call gsi_start with that lvalue. + (replace_goto_queue_stmt_list): Ditto. + (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list. + (replace_goto_queue): Ditto. + (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1. + (lower_try_finally_onedest): Ditto. + (lower_try_finally_copy): Ditto. + (lower_try_finally_switch): Ditto. + (lower_try_finally): Ditto. + (lower_eh_filter): Ditto. + (lower_eh_must_not_throw): Ditto. + (lower_cleanup): Ditto. + (lower_eh_constructs_2): Ditto. + (lower_catch): Ditto, and ensure gsi_start is called with lvalue. + (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and + set possibly changed body. + (optimize_double_finally): Call gsi_start with lvalue. + + * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before. + (gimple_split_block): Ditto. + (gimple_merge_blocks): Use gsi_start_phis. + (move_stmt_r): Use walk_gimple_seq_mod. + * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb. + * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis. + (rebuild_cgraph_edges): Ditto. + (cgraph_rebuild_references): Ditto. + * ipa-prop.c (ipa_analyze_params_uses): Ditto. + * tree-inline.c (copy_phis_for_bb): Ditto. + * tree-ssa-dce.c: Ditto. + + * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p. + +2012-05-02 Kirill Yukhin + Andi Kleen + + * coretypes.h (MEMMODEL_MASK): New. + * builtins.c (get_memmodel): Add val. Call target.memmodel_check + and return new variable. + (expand_builtin_atomic_exchange): Mask memmodel values. + (expand_builtin_atomic_compare_exchange): Ditto. + (expand_builtin_atomic_load): Ditto. + (expand_builtin_atomic_store): Ditto. + (expand_builtin_atomic_clear): Ditto. + * doc/extend.texi: Mention port-dependent memory model flags. + * config/i386/cpuid.h (bit_HLE): New. + * config/i386/driver-i386.c (host_detect_local_cpu): Detect + HLE support. + * config/i386/i386-protos.h (ix86_generate_hle_prefix): New. + * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines. + (ix86_target_string)<-mhle>: New. + (ix86_valid_target_attribute_inner_p) : Ditto. + * config/i386/i386.c (ix86_target_string) : New. + (ix86_valid_target_attribute_inner_p) : Ditto. + (ix86_option_override_internal) : New switch, set it + enabled for generic, generic64 and core-avx2. + (ix86_print_operand): Generate HLE lock prefixes. + (ix86_memmodel_check): New. + (TARGET_MEMMODEL_CHECK): Ditto. + * config/i386/i386.h (OPTION_ISA_HLE): Ditto. + (IX86_HLE_ACQUIRE): Ditto. + (IX86_HLE_RELEASE): Ditto. + * config/i386/i386.h (ix86_generate_hle_prefix): Ditto. + * config/i386/i386.opt (mhle): Ditto. + * config/i386/sync.md(atomic_compare_and_swap): Pass + success model to instruction emitter. + (atomic_fetch_add): Ditto. + (atomic_exchange): Ditto. + (atomic_add): Ditto. + (atomic_sub): Ditto. + (atomic_): Ditto. + (*atomic_compare_and_swap_doubledi_pic): Ditto. + (atomic_compare_and_swap_single): Define and use argument + for success model. + (atomic_compare_and_swap_double): Ditto. + * configure.ac: Check if assembler support HLE prefixes. + * configure: Regenerate. + * config.in: Ditto. + +2012-05-02 Steven Bosscher + + PR middle-end/53153 + * gimplify.c (preprocess_case_label_vec_for_gimple): New function, + split out from ... + (gimplify_switch_expr): ... here. + * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype. + * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function + to clean up case labels with values outside the index type range. + (simplify_gimple_switch): Call it if something changed. + Remove strange and unnecessary assert. + +2012-05-02 Richard Guenther + + * fold-const.c (div_if_zero_remainder): sizetypes no longer + sign-extend. + (int_const_binop_1): New worker for int_const_binop with + overflowable parameter. Pass it through to force_fit_type_double. + (int_const_binop): Wrap around int_const_binop_1 with overflowable + equal to one. + (size_binop_loc): Call int_const_binop_1 with overflowable equal + to minus one, forcing overflow detection for even unsigned types. + (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing. + (fold_binary_loc): Call try_move_mult_to_index with signed offset. + * stor-layout.c (initialize_sizetypes): sizetypes no longer + sign-extend. + (layout_type): For zero-sized arrays ignore overflow on the + size calculations. + * tree-ssa-ccp.c (bit_value_unop_1): Likewise. + (bit_value_binop_1): Likewise. + * tree.c (double_int_to_tree): Likewise. + (double_int_fits_to_tree_p): Likewise. + (force_fit_type_double): Likewise. + (host_integerp): Likewise. + (int_fits_type_p): Likewise. + * varasm.c (output_constructor_regular_field): Sign-extend the + field-offset to cater for negative offsets produced by the Ada + frontend. + * omp-low.c (extract_omp_for_data): Convert the loop step to + signed for pointer adjustments. + +2012-05-02 Richard Guenther + + * tree.c (valid_constant_size_p): New function. + * tree.h (valid_constant_size_p): Declare. + * cfgexpand.c (expand_one_var): Adjust check for too large + variables by using valid_constant_size_p. + * varasm.c (assemble_variable): Likewise. + + * c-decl.c (grokdeclarator): Properly check for sizes that + cover more than half of the address-space. + +2012-05-02 Jakub Jelinek + + PR tree-optimization/53163 + * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore + return value from compute_all_dependences. + + PR rtl-optimization/53160 + * ree.c (combine_reaching_defs): Handle the case where cand->insn + has been modified by ree pass already. + +2012-05-01 Ian Lance Taylor + + PR c/37303 + * c-decl.c (build_compound_literal): Make the decl readonly if it + an array of a readonly type. + * gimplify.c (gimplify_compound_literal_expr): Add fallback + parameter. Change all callers. If the decl is not addressable + and is not an l-value, make it readonly. + +2012-05-01 Bernd Schmidt + + * ira.c (allocated_reg_info_size): New static variable. + (expand_reg_info): Manage it. Call + setup_preferred_alternate_classes_for_new_pseudos. + (ira): Don't do it here. Remove local allocated_reg_info_size, + set the global before calling find_moveable_pseudos. + (find_moveable_pseudos): Call expand_reg_info rather than + resize_reg_info. + +2012-05-01 Richard Henderson + + * common.opt (fsync-libcalls): New. + * doc/invoke.texi: Document it. + * optabs.c (init_sync_libfuncs): Honor it. + +2012-05-01 Kenneth Zadeck + Richard Sandiford + + PR rtl-optimization/52543 + * Makefile.in (lower-subreg.o, target-globals.o): Depend on + lower-subreg.h. + * lower-subreg.h: New file. + * target-globals.h (this_target_lower_subreg): Declare. + (target_globals): Add lower_subreg; + (restore_target_globals): Restore this_target_lower_subreg. + * target-globals.c: Include it. + (default_target_globals): Add default_target_lower_subreg. + (save_target_globals): Initialize target_lower_subreg. + * rtl.h (init_lower_subreg): Added declaration. + * toplev.c (backend_init_target): Call initializer for lower-subreg + pass. + * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros. + (default_target_lower_subreg): New variable. + (this_target_lower_subreg): Likewise. + (twice_word_mode, choices): New macros. + (shift_cost, compute_splitting_shift, compute_costs) + (init_lower_subreg): New functions. + (resolve_simple_move): Add speed_p argument. Check choices. + (find_pseudo_copy): Don't check the mode size here. + (resolve_simple_move): Assert the mode size. + (find_decomposable_shift_zext): Add speed_p argument and return + a bool. Check choices. + (resolve_shift_zext): Add comment. + (dump_shift_choices, dump_choices): New functions. + (decompose_multiword_subregs): Dump list of profitable + transformations. Add code to skip non profitable transformations. + Update calls to simple_move and find_decomposable_shift_zext. + +2012-05-01 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to... + (thumb1_unexpanded_epilogue): ...this. + * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to... + (thumb1_unexpanded_epilogue): ...this. + * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to... + (thumb1_unexpanded_epilogue): ...this. + +2012-05-01 Richard Earnshaw + + * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef + comparing enumeration values. Update comments. + +2012-05-01 Alan Modra + + PR target/53038 + * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr, + load_cr_save, add_crlr_cfa_restore): New functions. + (rs6000_restore_saved_cr): Rename to.. + (restore_saved_cr): ..this. Add cfa_restore notes for cr. + (rs6000_emit_epilogue): Use new functions. Adjust condition + for emitting lr and cr cfa_restore. Emit cfa_restores for fp + regs when using out-of-line restore only when shrink wrapping. + +2012-04-30 Uros Bizjak + + PR middle-end/53136 + * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple + calls to cgraph_node_name in xstrdup. + (ipa_make_edge_direct_to_target): Ditto. + * cgraph.c (dump_cgraph_node): Ditto. + * tree-sra.c (convert_callers_for_node): Ditto. + * lto-symtab.c (lto_cgraph_replace_node): Ditto. + * ipa-cp.c (perhaps_add_new_callers): Ditto. + * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto. + (cgraph_materialize_all_clones): Ditto. + * ipa-inline.c (report_inline_failed_reason): Ditto. + (want_early_inline_function_p): Ditto. + (edge_badness): Ditto. + (update_edge_key): Ditto. + (flatten_function): Ditto. + (ipa_inline): Ditto. + (inline_always_inline_functions): Ditto. + (early_inline_small_functions): Ditto. + +2012-04-30 Uros Bizjak + + PR target/53141 + * config/i386/i386.md (*umul3_1): Switch places of + constraints 0 and 1. + +012-04-30 Jan Hubicka + + * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c + (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c + (cgraph_add_to_same_comdat_group): Remove. + (cgraph_add_asm_node): Move to cgraphunit.c. + (cgraph_make_decl_local): Move to symtab.c + (cgraph_make_node_local_1): Update. + (cgraph_can_remove_if_no_direct_calls_and): Update. + (used_from_object_file_p): Update. + (resolution_used_from_other_file_p): Move to symtab.c + (cgraph_used_from_object_file_p): move to symtab.c + (verify_cgraph_node): Verify same comdat groups. + * cgraph.h (cgraph_asm_node): Rename to ... + (asm_node): ... this one. + (cgraph_asm_nodes): Rename to ... + (asm_nodes): ... this one. + (symtab_add_to_same_comdat_group): New function. + (symtab_dissolve_same_comdat_group_list): New function. + (symtab_used_from_object_file_p): Declare. + (symtab_make_decl_local): Declare. + (cgraph_add_to_same_comdat_group): Remove. + (cgraph_add_asm_node): Remove. + (cgraph_used_from_object_file_p, varpool_used_from_object_file_p): + Remove. + (cgraph_finalize_compilation_unit): Rename to ... + (finalize_compilation_unit): ... this one. + (cgraph_optimize): Rename to .... + (compile): ... this one. + (add_asm_node): Declare. + (fixup_same_cpp_alias_visibility): Declare. + (cgraph_make_decl_local): Remove. + (varpool_assemble_pending_decls): Rename to ... + (varpool_output_variables): ... this one. + (varpool_remove_unreferenced_decls): Remove. + * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups. + (preserve_function_body_p): Make static. + * toplev.c (compile_file): Update comments; update. + * cgraphunit.c: Update comments. + (cgraph_expand_all_functions): Rename to ... + (expand_all_functions): ... this one; update. + (cgraph_mark_functions_to_output): Rename to ... + (mark_functions_to_output): ... this one; cleanup. + (cgraph_output_pending_asms): Remove prototype. + (asm_nodes, asm_last_node): New static vars. + (cgraph_process_new_functions): Update. + (cgraph_reset_node): Cleanup; add comment. + (cgraph_add_new_function): Update. + (cgraph_output_pending_asms): Rename to ... + (output_asm_statements): ... this one. + (add_asm_node): New function. + (fixup_same_cpp_alias_visibility): New function based on code + in cgraph_analyze_function. + (cgraph_analyze_function): Use it. + (cgraph_order_sort): Update. + (cgraph_output_in_order): Update. + (cgraph_function_versioning): Update. + (cgraph_optimize): Rename to ... + (compile): ... this one; initialize streamer hooks here. + (cgraph_finalize_compilation_unit): Rename to ... + (finalize_compilation_unit): ... this one; do not initialize streamer + hook here. + * lto-streamer-out.c (lto_output_toplevel_asms): Update. + * dwarf2out.c: Update ocmment. + * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group. + * method.c (use_thunk): Likewise. + * semantics.c (maybe_add_lambda_conv_op): Likewise. + * decl2.c (maybe_emit_vtables): Likewise. + (cp_write_global_declarations): Use finalize_compilation_unit. + * parser.c (cp_parser_asm_definition): Use add_asm_node. + * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node + * c-decl.c (c_write_global_declarations): Use + finalize_compilation_unit. + * langhooks.c (write_global_declarations): Update. + * ipa.c (cgraph_externally_visible_p): Update. + (dissolve_same_comdat_group_list): Remove. + (function_and_variable_visibility): Update. + * symtab.c: Inlcude lto-streamer.h and rtl.h + (ld_plugin_symbol_resolution_names): New. + (symtab_add_to_same_comdat_group): New. + (symtab_dissolve_same_comdat_group_list): New. + (resolution_used_from_other_file_p): Move here from cgraph.c + (symtab_used_from_object_file_p): New. + (symtab_make_decl_local): New. + * passes.c (register_pass): Update comments. + * c-parser.c (c_parser_asm_definition): Update. + * varpool.c (varpool_analyze_node): Use + fixup_same_cpp_alias_visibility. + (varpool_remove_unreferenced_decls): Make static. + (varpool_assemble_pending_decls): Rename to ... + (varpool_output_variables): ... this one; call + varpool_remove_unreferenced_decls. + (varpool_used_from_object_file_p): Remove. + +2012-04-30 Marc Glisse + + PR c++/51033 + * c-typeck.c (build_array_ref): Call + convert_vector_to_pointer_for_subscript. + * doc/extend.texi (Vector Extensions): Subscripting not just for C. + +2012-04-30 Uros Bizjak + + * config/i386/i386.md (and3): Change runtime operand mode checks + to compile-time "mode == mode" checks. + (and splitter): Ditto. + +2012-04-30 Richard Henderson + + * config/arm/arm.md (UNSPEC_LL): New. + * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New. + (arm_load_exclusivedi): Use %H0. + +2012-04-30 Jason Merrill + + * dwarf2out.c (comdat_symbol_id): Add const. + (union die_symbol_or_type_node): Add const to die_symbol. + (output_die_symbol, output_die, output_comp_unit): Adjust. + +2012-04-30 Andrew Stubbs + + * config/arm/arm.md (negdi2): Use gen_negdi2_neon. + * config/arm/neon.md (negdi2_neon): New insn. + Also add splitters for core and NEON registers. + +2012-04-30 Andrew Stubbs + + * config/arm/arm.c (neon_valid_immediate): Allow const_int. + (arm_print_operand): Add 'x' format. + * config/arm/constraints.md (Dn): Allow const_int. + * config/arm/neon.md (neon_mov): Use VDX to allow DImode. + Use 'x' format to print constants. + * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int. + * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon + is enabled. + (movdi_vfp_cortexa8): Likewise. + +2012-04-30 Ian Bolton + Sameera Deshpande + Greta Yorsh + + * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration. + * config/arm/arm.c (ldm_stm_operation_p): New function. + * config/arm/predicates.md (load_multiple_operation): Update predicate. + (store_multiple_operation): Likewise. + + * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters. + * config/arm/arm.c (ldm_stm_operation_p): New parameters. + * config/arm/predicates.md (load_multiple_operation): Add arguments. + (store_multiple_operation): Likewise. + +2012-04-30 Uros Bizjak + + * config/i386/i386.md (and3): Expand masking operations with + 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX. + (and splitter): Split to DImode zero_extend RTX for DImode operand[0]. + +2012-04-30 Dodji Seketeli + + Add -Wvarargs option + * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an + argument for the various warning_at calls. + * docs/invoke.texi: Update the documentation. + +2012-04-30 Dodji Seketeli + + Switch -ftrack-macro-expansion=2 on by default. + * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2 + by default. + + Fix va_start related location + * builtins.c (fold_builtin_next_arg): Unwinds to the first + location in real source code. + + Make conversion warnings work on NULL with -ftrack-macro-expansion + * input.h (expansion_point_location_if_in_system_header): Declare + new function. + * input.c (expansion_point_location_if_in_system_header): Define it. + + Fix -Wuninitialized for -ftrack-macro-expansion + * tree-ssa.c (warn_uninit): Use the spelling location of the variable + declaration. Use linemap_location_before_p for source locations. + + Strip "" loc from displayed expansion context + * input.c (expand_location_1): When expanding to spelling location + in a context of a macro expansion, skip reserved system header + locations. Update comments. * tree-diagnostic.c + (maybe_unwind_expanded_macro_loc): Likewise. + + Make expand_location resolve to locus in main source file + * input.c (expand_location_1): New. Takes a parameter to choose + whether to resolve the location to spelling or expansion point. + Was factorized from ... + (expand_location): ... here. + (expand_location_to_spelling_point): New. Implemented in terms of + expand_location_1. + * diagnostic.c (diagnostic_build_prefix): Use the new + expand_location_to_spelling_point instead of expand_location. + + Fix PCH crash on GTYed pointer-to-scalar field of a struct + * gengtype.c (write_types_process_field): Force second argument of + the call to the PCH object hierarchy walker to be 'x'. + +2012-04-30 Eric Botcazou + + * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper + predicate to discriminate types. + +2012-04-30 Manuel López-Ibáñez + + * doc/invoke.texi (Wmissing-format-attribute): Document as an + alias of Wsuggest-attribute=format. + * c-typeck.c (convert_for_assignment): Replace + Wmissing-format-attribute with Wsuggest-attribute=format. + (digest_init): Likewise. + +2012-04-29 Manuel López-Ibáñez + + * opts.c (finish_options): Do not handle -Wmissing-noreturn here. + * common.opt (Wmissing-noreturn): Alias of + -Wsuggest-attribute=noreturn. + +2012-04-29 Hans-Peter Nilsson + + PR target/53156 + * config/cris/cris.md (andqu): New peephole2. + (andu): Tweak head comment. + +2012-04-28 Joern Rennecke + Steven Bosscher + Maxim Kuvyrkov + + PR tree-optimization/38785 + * common.opt (ftree-partial-pre): New option. + * doc/invoke.texi: Document it. + * opts.c (default_options_table): Initialize flag_tree_partial_pre. + * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will + benefit speed path. + (execute_pre): Use flag_tree_partial_pre. + +2012-04-27 John David Anglin + + PR target/52999 + * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels + in constant pool. + +2012-04-27 Ollie Wild + + * doc/invoke.texi (Wliteral-suffix): Document new option. + +2012-04-27 Tom Tromey + + * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name. + (dwarf_tag_name): Use get_DW_TAG_name. + (dwarf_attr_name): Use get_DW_AT_name. + (dwarf_form_name): Use get_DW_FORM_name. + * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name. + +2012-04-27 Paolo Bonzini + + * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose + arguments are -1 and 0, by negating the result of the conditional. + +2012-04-27 Paolo Bonzini + + PR target/53138 + * config/i386/i386.md (x86_movcc_0_m1_neg): Add clobber. + +2012-04-27 Richard Guenther + + * tree-flow.h (is_hidden_global_store): Remove. + * tree-ssa-sink.c (is_hidden_global_store): Likewise. + * tree-ssa-alias.h (ref_may_alias_global_p): Declare. + (stmt_may_clobber_global_p): Likewise. + * tree-ssa-alias.c (ref_may_alias_global_p): New function. + (stmt_may_clobber_global_p): Likewise. + * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call + stmt_may_clobber_global_p. + * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise. + +2012-04-27 Steven Bosscher + + * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right + place. + + * tree-switch-conversion.c (struct switch_conv_info): Add range_max, + reorganize some fields and update comments. Rename bit_test_uniq + and bit_test_count to uniq resp. count. Remove bit_test_bb. + (collect_switch_conv_info): New function, collects info about a + GIMPLE_SWITCH into a struct switch_conv_info. + (check_range): Simplify to use pre-recorded info. Fix think-o in + range-branch ratio check. + (check_process_case): Remove function. + (check_all_empty_except_final): New function, verifies that all + non-final basic blocks are empty. + (process_switch): Simplify to use pre-recorded info. Call + collect_switch_conv_info to do that. Assert that degenerate switch + statements have been cleaned up. + +2012-04-27 Marc Glisse + + PR middle-end/27139 + * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT. + +2012-04-25 Manuel López-Ibáñez + + PR c/53130 + * c-typeck.c (pop_init_level): Use %qD instead of %qT. + +2012-04-27 Tom de Vries + + PR tree-optimization/51879 + * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field. + * tree-ssa-sccvn.c (mark_use_processed): New function, factored out + of ... + (defs_to_varying): ... here. Don't set use_processed. + (visit_reference_op_call): Handle gimple_vdef. + Handle case that lhs is NULL_TREE. + (visit_use): Use mark_use_processed. Handle calls with side-effect + using visit_reference_op_call. + +2012-04-26 Richard Sandiford + + * sched-deps.c (fixup_sched_groups): Rename to... + (chain_to_prev_insn): ...this. + (chain_to_prev_insn_p): New function. + (deps_analyze_insn): Use it instead of SCHED_GROUP_P. + +2012-04-26 Richard Sandiford + + * sched-int.h (_haifa_insn_data): Move priority_status. + Add model_index. + (INSN_MODEL_INDEX): New macro. + * haifa-sched.c (insn_delay): New function. + (sched_regno_pressure_class): Update commentary. + (mark_regno_birth_or_death): Pass the liveness bitmap and + pressure array as arguments, instead of using curr_reg_live and + curr_reg_pressure. Only update the pressure if the bit in the + liveness set has changed. + (initiate_reg_pressure_info): Always trust the live-in set for + SCHED_PRESSURE_MODEL. + (initiate_bb_reg_pressure_info): Update call to + mark_regno_birth_or_death. + (dep_list_size): Take the list as argument. + (calculate_reg_deaths): New function, extracted from... + (setup_insn_reg_pressure_info): ...here. + (MODEL_BAR): New macro. + (model_pressure_data, model_insn_info, model_pressure_limit) + (model_pressure_group): New structures. + (model_schedule, model_worklist, model_insns, model_num_insns) + (model_curr_point, model_before_pressure, model_next_priority): + New variables. + (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE) + (MODEL_INSN_INFO, MODEL_INSN): New macros. + (model_index, model_update_limit_points_in_group): New functions. + (model_update_limit_points, model_last_use_except): Likewise. + (model_start_update_pressure, model_update_pressure): Likewise. + (model_recompute, model_spill_cost, model_excess_group_cost): Likewise. + (model_excess_cost, model_dump_pressure_points): Likewise. + (model_set_excess_costs): Likewise. + (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to + SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model + schedule as an alternative tie-breaker. Update the call to + dep_list_size. + (ready_sort): Call model_set_excess_costs. + (update_register_pressure): Update call to mark_regno_birth_or_death. + Rely on that function to check liveness rather than doing it here. + (model_classify_pressure, model_order_p, model_add_to_worklist_at) + (model_remove_from_worklist, model_add_to_worklist, model_promote_insn) + (model_add_to_schedule, model_analyze_insns, model_init_pressure_group) + (model_record_pressure, model_record_pressures): New functions. + (model_record_final_pressures, model_add_successors_to_worklist) + (model_promote_predecessors, model_choose_insn): Likewise. + (model_reset_queue_indices, model_dump_pressure_summary): Likewise. + (model_start_schedule, model_finalize_pressure_group): Likewise. + (model_end_schedule): Likewise. + (schedule_insn): Say when we're scheduling the next instruction + in the model schedule. + (schedule_insn): Handle SCHED_PRESSURE_MODEL. + (queue_to_ready): Do not add instructions that are + MAX_SCHED_READY_INSNS beyond the current point of the model schedule. + Always allow the next instruction in the model schedule to be added. + (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE + and delay for SCHED_PRESSURE_MODEL too. + (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to + SCHED_PRIORITY_MODEL, but also take the DFA into account. + (schedule_block): Call model_start_schedule and model_end_schedule. + Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL. + (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling + to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or + region_ref_regs. + (sched_finish): Update accordingly. + (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling + to SCHED_PRESSURE_MODEL. + (add_jump_dependencies): Update call to dep_list_size. + (haifa_finish_h_i_d): Fix leak of max_reg_pressure. + (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling + to SCHED_PRESSURE_MODEL. + * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't + allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL. + (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE + handling to SCHED_PRESSURE_MODEL. + +2012-04-26 Richard Sandiford + + * common.opt (fsched-pressure-algorithm=): New option. + * flag-types.h (sched_pressure_algorithm): New enum. + * sched-int.h (sched_pressure_p): Replace with... + (sched_pressure): ...this new variable. + * haifa-sched.c (sched_pressure_p): Replace with... + (sched_pressure): ...this new variable. + (sched_regno_pressure_class, rank_for_schedule, ready_sort) + (update_reg_and_insn_max_reg_pressure, schedule_insn) + (debug_ready_list, prune_ready_list, schedule_block, sched_init) + (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly. + * sched-deps.c (init_insn_reg_pressure_info): Likewise. + (sched_analyze_insn): Likewise. + * sched-rgn.c (schedule_region): Likewise. + * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise. + +2012-04-26 Bernd Schmidt + + PR middle-end/52997 + * ira.c (find_moveable_pseudos): Call resize_reg_info. + + PR middle-end/52940 + * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT. + * expr.c (convert_move): Honor unsignedp when extending partial int + modes. + * genmodes.c (complete_mode): Don't clear component field of partial + int modes. + (emit_mode_inner): Don't emit it however. + (calc_wider_mode): Partial int modes widen to their component. + +2012-04-26 David S. Miller + + * config/sparc/niagara4.md: New file. + * config/sparc/sparc.md: Include it. + * config/sparc/sparc.c (niagara4_costs): New processor costs. + (sparc_option_override): Use it. + (sparc_use_sched_lookahead): Return 2 for niagara4. + (sparc_issue_rate): Likewise. + + * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'. + (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack. + (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis, + fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul. + (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, + alignaddrldi_vis): Set type to gsr. + (pdist_vis, pdistn_vis): Set type to fgm_pdsit. + (fcmp_vis, cmask8_vis, + cmask16_vis, cmask32_vis, fchksm16_vis, + v3, fmean16_vis, + fp64_vis, 3, + fucmp8_vis): Set type to fga. + * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp. + * config/sparc/niagara.md: Likewise. + * config/sparc/niagara2.md: Likewise. + * config/sparc/ultra3.md: Likewise, and fix type matching for + us3_ialuX reservation. + +2012-04-26 Andreas Krebbel + + * reload.c (find_reloads): Change the loop nesting when trying an + alternative with swapped operands. + +2012-04-26 Manuel López-Ibáñez + + * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix + comment. Delete unused parameter first_exp_point_map. + (virt_loc_aware_diagnostic_finalizer): Update call. + +2012-04-26 Michael Hope + Richard Earnshaw + + * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define. + (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define. + (GLIBC_DYNAMIC_LINKER_DEFAULT): Define. + (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path. + +2012-04-25 Sriraman Tallam + + * doc/extend.texi: Document avx2 support. + * config/i386/i386.c (fold_builtin_cpu): Add avx2. + +2012-04-26 Hans-Peter Nilsson + + PR target/53120 + * config/cris/cris.md ("*andhi_lowpart_v32") + ("*andqi_lowpart_v32"): Change first input-only operand from + a (match_operand ...) to (match_dup 0). Drop alternatives with + const_int-matching constraints for redundancy. + ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop + three-operand alternative. + +2012-04-25 Jakub Jelinek + + PR target/53110 + * config/i386/i386.md (and3): For andq $0xffffffff, reg + instead expand it as zero extension. + +2012-04-25 H.J. Lu + + PR debug/52857 + * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM. + +2012-04-25 Jakub Jelinek + + * common.opt (flag_debug_types_section): Default to 0. + (dwarf_version): Default to 4. + (dwarf_record_gcc_switches): Default to 1. + (dwarf_strict): Default to 0. + * toplev.c (process_options): Don't handle dwarf_strict + or dwarf_version here. + * config/vxworks.c (vxworks_override_options): Don't + test whether dwarf_strict or dwarf_version are negative, + instead test !global_options_set.x_dwarf_*. + * config/darwin.c (darwin_override_options): Default to + dwarf_version 2. + * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches + and -fno-debug-types-section are now the default. + +2012-04-25 Jan Hubicka + + * cgraphunit.c: Update toplevel comment. + (tree_rest_of_compilation): Merge into cgraph_expand_function. + (cgraph_analyze_function): Make static. + (cgraph_decide_is_function_needed): Make static. + (cgraph_add_new_function): Use expand_function instead of + rest_of_compilation. + (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt, + verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph): + Move to cgraph.c + (cgraph_inline_p): Remove. + (cgraph_preserve_function_body_p): Move to ipa-inline-transform. + (init_cgraph): Add comment. + * cgraphbuild.c (record_reference, mark_address, mark_load, + mark_store): Do not call analyze_expr hook. + * cgraph.c: Update toplevel comment. + (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt, + verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph): + Move fere from cgraphunit.c + (cgraph_mark_force_output_node): Move to cgraph.h + * cgraph.h: Reorder so the comments match the function placement. + (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove. + (cgraph_mark_force_output_node): Move here from cgraph.c + * tree.c (free_lang_data): Do not clear analyze_expr hook. + * ipa-inline-transform.c (preserve_function_body_p): New function. + (inline_transform): Update. + * langhooks.c (lhd_callgraph_analyze_expr): Remove. + * langhooks.h (lang_hooks_for_callgraph): Remove. + (lang_hooks): Remove callgraph. + * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p. + * varpool.c: Remove out of date comment. + * langhooks-def.h (lhd_callgraph_analyze_expr): Remove. + (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove. + +2012-04-25 Jan Hubicka + + PR middle-end/53089 + * cgraphunit.c (referred_to_p): Move ahead in file to avoid + forward declaration. + (cgraph_finalize_function): Finalize them here. + * symtab.c (dump_symtab): Dump ctors and dtors. + +2012-04-25 Jakub Jelinek + + PR middle-end/52979 + * stor-layout.c (get_best_mode): Don't return mode with bitsize + larger than maxbits. Don't compute maxbits modulo align. + Also check that unit bytes long store at bitpos / unit * unit + doesn't affect bits beyond bitregion_end. + * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM + would not fit into bitregion_start ... bitregion_end + 1 bit region. + (store_split_bit_field): Decrease unit close to end of bitregion_end + if access is restricted in order to avoid mutual recursion. + + PR tree-optimization/53058 + * double-int.h (double_int_max_value, double_int_min_value): New + prototypes. + * double-int.c (double_int_max_value, double_int_min_value): New + functions. + * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR + or GT_EXPR with double_int_max_value instead of double_int_mask. + +2012-04-25 Richard Guenther + + * tree-vectorizer.h (vect_loop_versioning): Adjust prototype. + * tree-vect-loop.c (vect_transform_loop): Adjust. + * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record + the maximum number of iterations for the epilogue loop. + (vect_loop_versioning): Remove case re-using the peeled epilogue loop. + +2012-04-25 Jakub Jelinek + + PR c/52880 + * c-typeck.c (set_nonincremental_init, + set_nonincremental_init_from_string): Pass true instead of false + as IMPLICIT to add_pending_init. + +2012-04-25 Manuel López-Ibáñez + + * c-typeck.c (pop_init_level): Improve diagnostics. + +2012-04-25 Uros Bizjak + + * compare-elim.c (try_eliminate_compare): Also handle operands with + implicit extensions. + +2012-04-25 Alan Modra + + * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS, + V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG, + SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define. + (no_global_regs_above): Delete. + (no_global_regs): New function. + (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p + value for load multiple test. + (savres_routine_syms): Increase size. + (rs6000_savres_routine_name, rs6000_savres_routine_sym, + ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector + rather than a number of boolean flags. Update all callers. + (rs6000_savres_routine_name): Generate vector save/restore names. + (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl. + (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise. + (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline + and using_store_multiple. Expand uses. Don't always use r11 as + frame reg when needed for out-of-line saves. Set up initial offset + for out-of-line vector saves when buying stack frame. Handle pointer + reg setup for out-of-line fp save. Emit call to out-of-line vector + save function. Choose r11 or r12 for vrsave reg when available for + better scheduling. + (rs6000_output_function_prologue): Don't emit .extern for ELF. + (rs6000_emit_epilogue): Choose a better frame reg when restoring + from back-chain to suit out-of-line vector restore functions. Emit + call to out-of-line vector restore function. Adjust register used + for cr restore. Tweak pointer register setup for gpr restore. + * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account + FIXED_R13. + * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify. + (V_SAVE_INLINE): Define. + * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns. + +2012-04-25 Alan Modra + + * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow + out-of-line save/restore for large frames. Don't disable + out-of-line saves on ABI_AIX when using static chain reg. + (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not + clobber static chain reg, and tweak for out-of-line gpr saves + that use r1. + +2012-04-25 Alan Modra + + * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define. + (rs6000_emit_prologue): Use the above to catch register overlap. + +2012-04-25 Alan Modra + + * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward + decl. Move logic selecting update reg to callers. Update all callers. + (rs6000_emit_allocate_stack): Add copy_off param. + (emit_frame_save): Don't handle reg+reg addressing. + (ptr_regno_for_savres): New function, extracted from.. + (rs6000_emit_savres_rtx): ..here. Add lr_offset param. + (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it. + Set frame_reg_rtx to r11 whenever r11 is needed, and merge + frame offset adjustment for out-of-line save with copy from sp. + Simplify condition controlling whether cr is saved early or + late. Use ptr_regno_for_savres to verify correct reg is set + up for out-of-line saves. Pass the actual pointer reg used to + rs6000_emit_savres_rtx so rtl matches insns in out-of-line + function. Rearrange spe vars so code is similar to that + elsewhere in this function. Don't update frame_off when spe + save code will restore r11. Use emit_frame_save for spe and + gpr saves. Consolidate darwin out-of-line gpr setup with that + for other abis. Don't assume frame_offset is zero and frame + reg is sp when setting up altivec reg saves, and calculate + exact offset requirement. + (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy + spe restore code. Consolidate darwin out-of-line gpr setup + with that for other abis. + +2012-04-25 Alan Modra + + * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a + REG_FRAME_RELATED_EXPR note when the instruction exactly matches + the replacement. + (emit_frame_save): Delete frame_ptr param. Rename total_size to + frame_reg_to_sp. + (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related + and emit_frame_save calls. Cope with possibly missing note. + +2012-04-24 Sriraman Tallam + + * config/i386/i386.c (build_processor_model_struct): New function. + (make_var_decl): New function. + (fold_builtin_cpu): New function. + (ix86_fold_builtin): New function. + (make_cpu_type_builtin): New function. + (ix86_init_platform_type_builtins): New function. + (ix86_expand_builtin): Expand new builtins by folding them. + (ix86_init_builtins): Make new builtins to detect CPU type. + (TARGET_FOLD_BUILTIN): New macro. + (IX86_BUILTIN_CPU_INIT): New enum value. + (IX86_BUILTIN_CPU_IS): New enum value. + (IX86_BUILTIN_CPU_SUPPORTS): New enum value. + * config/i386/i386-builtin-types.def: New function type. + * doc/extend.texi: Document builtins. + +2012-04-24 Olivier Hainque + + * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2. + * toplev.c (process_options): Default to dwarf_version 2. + * config/vxworks.c (vxworks_override_options): Default to strict-dwarf + and dwarf_version 2. + +2012-04-24 Manuel López-Ibáñez + + * tree-pretty-print.h (default_tree_printer): Do not declare. + * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and + intl.h. + (default_tree_diagnostic_starter): Make static. + (default_tree_printer): Move to here. Make static. + (tree_diagnostics_defaults): New. + * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare. + * tree.c (free_lang_data): Use tree_diagnostics_defaults. + * toplev.c: Do not include tree-pass.h. + (default_tree_printer): Move from here. + (general_init): Use tree_diagnostics_defaults. + +2012-04-24 Chao-ying Fu + + * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file. + (mips*-*-linux*): Append mips/linux-common.h to tm_file. + * config/mips/gnu-user.h + (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly. + (GNU_USER_TARGET_LINK_SPEC): New define. + (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. + (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly. + (GNU_USER_TARGET_MATHFILE_SPEC): New define. + (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and + GNU_USER_TARGET_ENDFILE_SPEC. + * config/mips/gnu-user64.h (LIB_SPEC): Remove. + (GNU_USER_TARGET_LINK_SPEC): New define. + (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. + * config/mips/linux-common.h: New file. + +2012-04-24 Bill Schmidt + + PR target/47197 + * config/rs6000/rs6000-c.c (fully_fold_convert): New function. + (altivec_build_resolved_builtin): Call fully_fold_convert. + +2012-04-24 Georg-Johann Lay + + PR target/53065 + * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define. + +2012-04-24 Richard Guenther + + PR tree-optimization/53085 + * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant + stores. + +2012-04-24 Richard Guenther + + * tree-if-conv.c (main_tree_if_conversion): Move bb under + ENABLE_CHECKING. + +2012-04-24 Jim Meyering + + * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing + absence of an define_enum call. + +2012-04-24 Richard Guenther + + * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If + the epilogue loop is not re-used as unvectorized version + record the its maximum number of iterations. + +2012-04-24 Andrew Pinski + + * tree-ssa-forwprop.c (simplify_bitwise_binary): + Don't directly use def1/def2. + +2012-04-24 Richard Guenther + + PR tree-optimization/53098 + * tree-vect-loop.c (vect_analyze_loop_operations): Fixup + comparison sign. + +2012-04-24 Andrew Pinski + + PR tree-opt/33512 + * tree-ssa-forwprop.c (defcodefor_name): New function. + (simplify_bitwise_binary): Use defcodefor_name instead of manually + Simplify "( X | Y) & X" to X and "( X & Y) | X" to X. + Simplify "(~X | Y) & X" to "X & Y" and + "(~X & Y) | X" to "X | Y". + +2012-04-24 Andreas Krebbel + + * recog.c (insn_invalid_p): Add IN_GROUP parameter and use + validate_change to add clobbers if IN_GROUP is nonzero. + (verify_changes): Call insn_invalid_p with IN_GROUP set to true. + * recog.h (insn_invalid_p): Add IN_GROUP parameter to function + prototype. + * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP + set to false. + * config/s390/s390.c (insn_invalid_p): Likewise. + +2012-04-24 Jakub Jelinek + + PR middle-end/53084 + * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF. + (output_addressed_constants): Likewise. + + PR middle-end/52999 + * varasm.c (get_section): Don't ICE for section conflicts with + built-in section kinds. + +2012-04-23 DJ Delorie + + * config/s390/s390.h (LINK_SPEC): Remove, no longer needed. + (LIBSTDCXX): Change to CPP2. + +2012-04-23 H.J. Lu + + PR bootstrap/52878 + * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for + extra_masks. + +2012-04-23 Uros Bizjak + + * config/i386/i386.md (*add_2): Add r/r/0 alternative. + (*addsi_2_zext): Ditto. + (*add_3): Ditto. + (*addsi_3_zext): Ditto. + (*add_5): Ditto. + +2012-04-23 Andrew Pinski + + * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 + (C & B) to (A OP0) & B. + +2012-04-23 Martin Jambor + + * expr.c (expand_expr_real_1): Remove setting parent's alias set for + temporaries created for a bitfield (reverting revision 122014). + +2012-04-23 Richard Guenther + + * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify + the condition using is_gimple_condexpr and avoid the not necessary + boolification. + (set_prologue_iterations): Likewise. + (vect_loop_versioning): Likewise. + +2012-04-23 Richard Guenther + + PR tree-optimization/53070 + * tree-if-conv.c (combine_blocks): Free predicates in all blocks. + (main_tree_if_conversion): Verify we succeeded in that. + +2012-04-23 Jan Hubicka + + * lto-symtab.c (lto_cgraph_replace_node): Do not call + mark_reahcable_node. + * cgraph.c (cgraph_remove_node): Do not clear reachable. + (cgraph_mark_reachable_node): Remove. + (cgraph_mark_force_output_node): Do not set reachable. + (dump_cgraph_node): Do not dump reachable. + (cgraph_create_virtual_clone): Do not set reachable. + * cgraph.h (cgraph_node): Remove reachable flag. + (varpool_node): Remove reachable flag. + (cgraph_mark_if_needed): Remove. + (cgraph_mark_reachable_node): Remove. + * tree-emutls.c (ipa_lower_emutls): Do not check reachable. + * cgraphunit.c (cgraph_finalize_function): Do not mark node as + reachable. + (cgraph_add_new_function): Likewise. + (cgraph_mark_if_needed): Remove. + (cgraph_analyze_function): Do not set target as reachable. + (process_function_and_variable_attributes): Do not care about + dllexport. + (cgraph_analyze_functions): Do not set reachable flags. + (cgraph_mark_functions_to_output): Do not check reachability. + (cgraph_copy_node_for_versioning): Do not set reachable flag. + (dbxout_expand_expr): Update. + * c-decl.c (merge_decls): Do not track changed externs. + * ipa.c: Include pointer-set.h + (enqueue_cgraph_node): Use reachable pointer set. + (process_references): Likewise. + (cgraph_remove_unreachable_nodes): Likewise. + (whole_program_function_and_variable_visibility): Do not recompute + reachable. + * trans-mem.c (ipa_tm_execute): Do not check reachable flag. + +2012-04-23 Georg-Johann Lay + + * doc/extend.texi (AVR Named Address Spaces): Fix typos. + +2012-04-23 Richard Guenther + + PR c/53060 + * c-typeck.c (build_binary_op): Fix typo. + +2012-04-23 Jakub Jelinek + + PR tree-optimizations/52891 + * tree-vect-patterns.c (adjust_bool_pattern): Use + build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE, + but with non-standard precision. + +2012-04-22 Jan Hubicka + + * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL + tree refs. + +2012-04-22 Jan Hubicka + + * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags. + * cgraphbuild.c (record_reference, record_type_list, mark_address, + mark_load, mark_store): Do not mark varpool nodes as needed. + * cgraph.c (cgraph_new_nodes): Remove. + (cgraph_create_function_alias): Do not mark nodes as reachable. + (cgraph_add_thunk): Likewise. + (cgraph_mark_reachable_node): Do not manage the queue. + * cgraph.h (cgraph_node): Remove next_needed. + (varpool_nodes_queue): Remove next_needed and prev_needed. + (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove. + (cgraph_new_nodes): Declare. + (x_varpool_nodes_queue, varpool_nodes_queue); Remove. + (varpool_analyze_pending_decls): Remove. + (varpool_analyze_node): New. + (varpool_mark_needed_node): Remove. + (varpool_first_variable, varpool_next_variable): New inlines. + (varpool_first_static_initializer, varpool_next_static_initializer): + Update. + (FOR_EACH_STATIC_VARIABLE): Remove unused walker. + (varpool_first_defined_variable): New inline. + (varpool_next_defined_variable): New inline + (FOR_EACH_VARIABLE): Reimplement. + (FOR_EACH_DEFINED_VARIABLE): Reimplement. + * toplev.c (wrapup_global_declaration_2): Use analyzed instead of + needed flag. + * cgraphunit.c (cgraph_new_nodes): Declare here. + (enqueue_node): New function. + (cgraph_process_new_functions): update for new + node set; when constructing cgraph enqueue node for processing. + (cgraph_add_new_function): Use new node set. + (process_function_and_variable_attributes): Do not set varpool needed + flags. + (referred_to_p): New function. + (varpool_finalize_decl): Move here from varpool.c; enqueue needed node + when varpool is in construction. + (cgraph_analyze_functions): Rewrite. + (cgraph_expand_all_functions): Update. + (cgraph_output_in_order): Do not analyze pending decls; do not set + needed flags. + (cgraph_optimize): Do not analyze pending decls. + * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects + in other partition; do not mark node as needed. + * dwarf2out.c (reference_to_unused): Use analyzed flag. + (premark_types_used_by_global_vars_helper): Likewise. + * ipa.c (process_references): Do not call varpool_mark_needed_node. + (cgraph_remove_unreachable_nodes): Do not rely on varpool and + cgrpah queues. + (function_and_variable_visibility): Do not mark node as needed. + (whole_program_function_and_variable_visibility): Likewise. + * Makefile.in (gt-varpool.h): No longer needed. + * passes.c (execute_one_pass, execute_ipa_pass_list): Update. + (ipa_write_summaries): Do not use needed flag. + * varpool.c: Do not include gt-varpool.h + (x_varpool_nodes_queue, x_varpool_last_needed_node, + x_varpool_last_needed_node, x_varpool_first_unanalyzed_node, + x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue): + Remove. + (varpool_remove_node): Do not update the lists. + (dump_varpool_node): Do not dump needed flag. + (varpool_enqueue_needed_node): Remove. + (varpool_mark_needed_node): Remove. + (varpool_reset_queue): Remove. + (varpool_finalize_decl): Move to cgraphunit.c + (varpool_analyze_node): New functions based on former + varpool_analyze_pending_decls. + (varpool_analyze_pending_decls): Remove. + (varpool_assemble_decl): Do not update the lists. + (enqueue_node): New function. + (varpool_remove_unreferenced_decls): Rewrite. + (varpool_empty_needed_queue): Remove. + (add_new_static_var): Do not mark node as needed. + (varpool_create_variable_alias): Handle expansion state + creation. + * except.c (output_ttype): Do not mark node as needed. + * varasm.c (mark_decl_referenced): Do not use mark_needed_node. + * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars): + Likewise. + * tree-switch-conversion.c (build_one_array): Likewise. + +2012-04-22 Manuel López-Ibáñez + + PR c/44774 + * doc/invoke.texi (pedantic): Rename to Wpedantic. + * common.opt (Wpedantic): New. + (pedantic): Alias Wpedantic. + * diagnostic.c (warning_at): Likewise. + * c-decl.c (diagnose_mismatched_decls): Likewise. + (build_array_declarator): Likewise. + (mark_forward_parm_decls): + (check_bitfield_type_and_width): Likewise. + (grokdeclarator): Likewise. + (grokfield): Likewise. + (finish_struct): Likewise. + (build_enumerator): Likewise. + (store_parm_decls_oldstyle): Likewise. + (declspecs_add_qual): Likewise. + (declspecs_add_type): Likewise. + (finish_declspecs): Likewise. + * c-typeck.c (composite_type): Likewise. + (comp_target_types): Likewise. + (build_array_ref): Likewise. + (pointer_diff): Likewise. + (build_unary_op): Likewise. + (build_conditional_expr): Likewise. + (build_c_cast): Likewise. + (convert_for_assignment): Likewise. + (maybe_warn_string_init): Likewise. + (digest_init): Likewise. + (pop_init_level): Likewise. + (set_init_index): Likewise. + (c_finish_goto_label): Likewise. + (c_finish_return): Likewise. + (do_case): Likewise. + (build_binary_op): Likewise. + * c-parser.c (static): Likewise. + (c_parser_external_declaration): Likewise. + (c_parser_declaration_or_fndef): Likewise. + (c_parser_static_assert_declaration_no_se): Likewise. + (c_parser_enum_specifier): Likewise. + (c_parser_struct_or_union_specifier): Likewise. + (c_parser_struct_declaration): Likewise. + (c_parser_alignas_specifier): Likewise. + (c_parser_braced_init): Likewise. + (c_parser_initelt): Likewise. + (c_parser_compound_statement_nostart): Likewise. + (c_parser_conditional_expression): Likewise. + (c_parser_alignof_expression): Likewise. + (c_parser_postfix_expression): Likewise. + (c_parser_postfix_expression_after_paren_): Likewise. + (c_parser_objc_class_instance_variables): Likewise. + (c_parser_objc_method_definition): Likewise. + (c_parser_objc_methodprotolist): Likewise. + +2012-04-22 Ian Lance Taylor + + * godump.c (go_output_typedef): Dump size of structs. + +2012-04-22 Razya Ladelsky + + Correcting transform_to_exit_first_loop + fix to PR46886 + * tree-parloops.c (transform_to_exit_first_loop): Remove + setting of number of iterations according to the loop pattern. + Duplicate from entry to exit->src instead of loop->latch. + (pallelize_loops): Remove the condition preventing do-while loops. + * tree-cfg.c (bool bb_in_region_p): New. + (gimple_duplicate_sese_tail): Adjust duplication of the the subloops. + Adjust redirection of the duplicated iteration. + +2012-04-21 Richard Sandiford + + PR bootstrap/53021 + * rtl.def (ADDRESS): Use "i" rather than "w". + * rtl.h (find_base_term): Delete. + (may_be_sp_based_p): Declare. + * rtl.c (rtx_code_size): Remove ADDRESS special case. + * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP) + (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to... + * alias.c: ...here. + (find_base_term): Make static. + (may_be_sp_based_p): New function. + * dse.c (record_store): Use it. + * store-motion.c (store_killed_in_insn): Likewise. + +2012-04-21 Richard Sandiford + + * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case. + +2012-04-21 Manuel López-Ibáñez + + PR 35441 + * c-typeck.c (inform_declaration): New. + (build_function_call_vec): Do not pretty-print + expressions when caret is enabled. + (convert_arguments): Use inform_declaration. + +2012-04-20 Jim Meyering + + * genmodes.c (make_complex_modes): Don't truncate a mode name of + length 7 or more when prepending a "C". Suggested by Richard Guenther. + +2012-04-20 Bill Schmidt + + PR rtl-optimization/44214 + * fold-const.c (exact_inverse): New function. + (fold_binary_loc): Fold vector and complex division by constant into + multiply by recripocal with flag_reciprocal_math; fold vector division + by constant into multiply by reciprocal with exact inverse. + +2012-04-20 Jan Hubicka + + * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of + force flags. + * cgraph.c (cgraph_add_thunk): Use mark_reachable_node. + (cgraph_remove_node): Update. + (cgraph_mark_needed_node): Remove. + (cgraph_mark_force_output_node): New. + (dump_cgraph_node): Do not dump needed flag. + (cgraph_node_cannot_be_local_p_1): Update. + (cgraph_can_remove_if_no_direct_calls_and_refs): Update. + * cgraph.h (symtab_node_base): Add force_output flag. + (cgraph_node): Remove needed flag. + (varpool_node): Remove force_output flag. + (cgraph_mark_needed_node): Remove. + (cgraph_mark_force_output_node): New. + (cgraph_only_called_directly_or_aliased_p, + varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update. + * ipa-cp.c (ipcp_generate_summary): Remove out of date assert. + * cgraphunit.c (cgraph_decide_is_function_needed): rewrite. + (cgraph_add_new_function): Update. + (cgraph_mark_if_needed): Update. + (verify_cgraph_node): Update. + (cgraph_analyze_function): Alias target is reachable. + (process_function_and_variable_attributes): Update: externally_visible + flag makes function reachable. + (cgraph_analyze_functions): Update dumping. + * lto-cgraph.c (lto_output_node, lto_output_varpool_node, + input_overwrite_node, input_varpool_node): Update streaming. + * lto-streamer-out.c (produce_symtab): Use force_output. + * ipa.c (process_references): Weakrefs must be processed. + (cgraph_remove_unreachable_nodes): Likewise; update for new + force_output flag. + (varpool_externally_visible_p): Weakrefs are externally visible + even if they are not. + (function_and_variable_visibility): Update; when processing alias + pair force the targets to be output. + (whole_program_function_and_variable_visility): Use + mark_reachable_node. + * trans-mem.c (ipa_tm_mark_needed_node): Remove + (ipa_tm_mark_force_output_node): New function. + (ipa_tm_create_version_alias, ipa_tm_create_version): Update. + * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about + aliases. + * varasm.c (mark_decl_referenced): Update. + (find_decl_and_mark_needed): Remove. + (find_decl): New function. + (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark + alias targets as needed. + (dump_tm_clone_pairs): Update. + * tree-inline.c (copy_bb): Update check. + * symtab.c (dump_symtab_base): Dump force_output. + * tree-ssa-structalias.c (ipa_pta_execute): Use force_output. + * passes.c (execute_todo): Fix dumping. + * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update. + (varpool_analyze_pending_decls): Alias target is reachable. + (varpool_create_variable_alias): Finalize weakrefs. + +2012-04-20 Jakub Jelinek + + PR bootstrap/53021 + * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP, + UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define. + * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_* + macros instead of constants. + * dse.c (record_store): Check for SP ADDRESS by comparing + XWINT to UNIQUE_BASE_VALUE_SP instead of expecting + XEXP to be stack_pointer_rtx. + +2012-04-20 Richard Guenther + + * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use + update_call_from_tree when propagating into a call. + +2012-04-20 Alan Modra + + * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting. + (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename + sp_offset to frame_off. Move world save code earlier. + +2012-04-20 Richard Guenther + + PR tree-optimization/53050 + * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): + Do only one transform on COND_EXPRs at the same time. + +2012-04-19 Jan Hubicka + + * symtab.c (dump_symtab_base): Revert accidental checkin. + +2012-04-20 Alan Modra + + PR target/53040 + * config/rs6000/rs6000.c (rs6000_savres_strategy): When using + static chain, set REST_INLINE_FPRS too. + +2012-04-20 Thomas Schwinge + + * tree-dump.c (dequeue_and_dump) : Dump the three child + nodes. + +2012-04-20 Richard Guenther + + * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize + loops that can never run more often than the vectorization factor. + +2012-04-19 Jan Hubicka + + * symtab.c (dump_symtab_base): Fix dumping of asm lists. + +2012-04-19 David Edelsohn + + * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or". + +2012-04-19 Jim Meyering + + * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy. + We verified above that the string(including trailing NUL) fits in buf, + so just use memcpy. + +2012-04-19 Richard Guenther + + * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER + for dumping DECL_SECTION_NAME. + +2012-04-19 Michael Matz + + PR middle-end/52977 + * tree.h (VECTOR_CST_NELTS): Use part number of types again. + (struct tree_vector): Adjust GTY length. + * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS. + + * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter + members. + (walk_type, ): Handle case where our + caller emitted the length calulation already. + (walk_type, ): Emit length calculations + before handling any of the fields for structs. + +2012-04-19 Richard Guenther + + PR tree-optimization/53031 + * tree-vrp.c (adjust_range_with_scev): Revert back to + using max_loop_iterations. + +2012-04-19 Michael Matz + + * diagnostic.c (emit_diagnostic): Move va_end call after user + of the va_list. + (warning, warning_at, pedwarn, permerror): Ditto. + +2012-04-19 Richard Guenther + + * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound + array access. + +2012-04-19 Georg-Johann Lay + + PR target/53033 + * config/avr/avr.c (avr_out_load_psi): Fix assembler template for + the case *(X+const). + +2012-04-19 Ramana Radhakrishnan + + * config/arm/sync.md (sync_optab): Change ior attribute to "or". + +2012-04-19 Manuel López-Ibáñez + + PR c/52283/37985 + * stmt.c (warn_if_unused_value): Skip NOP_EXPR. + * convert.c (convert_to_integer): Don't set TREE_NO_WARNING. + +2012-04-19 Richard Guenther + + PR rtl-optimization/44688 + * loop-iv.c (determine_max_iter): Only return max_iter. + (iv_number_of_iterations): Also use the recorded loop bound + on the maximum number of iterations. + * loop-unroll.c (decide_unroll_runtime_iterations): Use + max_iter to avoid unrolling loops that do not roll. + (decide_unroll_stupid): Likewise. + +2012-04-18 Steven Bosscher + + * targhooks.c (default_case_values_threshold): Fix code style nit. + + * stmt.c (add_case_node, expand_case): Move logic to remove/reduce + case range and type folding from here... + * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE + type, as documented in tree.def. + +2012-04-18 Jan Hubicka + + * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base): + Declare. + * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify + cgraph hash and same comdat groups. + (cgraph_optimize): Verify symbol table. + * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table. + (dissolve_same_comdat_group_list): Work on symtab nodes. + (function_and_variable_visibility): Dissolve variable same comdat group + lists, too. + * symtab.c: Include timevar.h + (verify_symtab_base, verify_symtab_node, verify_symtab): New functions. + +2012-04-18 Steven Bosscher + + * tree-switch-conversion.c (info): Remove global pass info. + (check_range, check_process_case, check_final_bb, create_temp_arrays, + free_temp_arrays, gather_default_values, build_constructors, + array_value_type, build_one_array, build_arrays, gen_def_assigns, + fix_phi_nodes, gen_inbound_check): Pass info around from ... + (process_switch): ... here. Unify message format. Return a const + char pointer to the failure reason message. + (do_switchconv): Unify message format. Update process_switch usage. + + * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands. + * tree-cfg.c (edge_to_cases): Fix documentation. + +2012-04-18 Uros Bizjak + + * config/alpha/sync.md (fetchop_name): Change ior attribute to "or". + +2012-04-18 Bill Schmidt + + PR tree-optimization/52976 + * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete. + (possibly_move_powi): New function. + (rewrite_expr_tree): Call possibly_move_powi. + (rewrite_expr_tree_parallel): Likewise. + (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to + call add_to_ops_vec instead. + +2012-04-18 Bill Schmidt + + PR tree-optimization/52976 + * tree-ssa-reassoc.c (stmt_is_power_of_op): New function. + (decrement_power): Likewise. + (propagate_op_to_single_use): Likewise. + (zero_one_operation): Handle __builtin_pow* calls in linearized + expression trees; factor logic into propagate_op_to_single_use. + (undistribute_ops_list): Allow operands with repeat counts > 1. + +2012-04-18 Richard Guenther + + PR tree-optimization/44688 + * cfgloop.h (record_niter_bound): Declare. + * tree-ssa-loop-niter.c (record_niter_bound): Export. + Update the estimation with the upper bound here... + (estimate_numbers_of_iterations_loop): ... instead of here. + Do not forcefully reset a recorded upper bound. + * tree-vect-loop-manip.c (vect_do_peeling_for_alignment): + Record the maximum number of loop iterations of the prologue loop. + +2012-04-18 Jan Hubicka + + * lto-symtab.c (lto_cgraph_replace_node): Update. + * cgraphbuild.c (record_reference, record_type_list, + record_eh_tables, mark_address, mark_load, mark_store): Update. + * cgraph.c (cgraph_same_body_alias, dump_cgraph_node, + cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases): + Update. + * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove. + (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update. + * reload.c: Fix typo in comment. + * rtlanal.c: Likewise. + * tree-emultls.c (gen_emutls_addr): Update. + * ipa-reference.c (analyze_function): Update. + * cgraphunit.c (cgraph_analyze_function, + cgraph_process_same_body_aliases, assemble_thunks_and_aliases): + Update. + * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types. + (ipa_remove_reference): Likewise. + (ipa_remove_all_refering): Rename to ... + (ipa_remove_all_referring): ... this one; update. + (ipa_dump_references): Update. + (ipa_dump_referring): Update. + (ipa_clone_references): Update. + (ipa_clone_refering): Rename to ... + (ipa_clone_referring): ... this one; update. + (ipa_ref_cannot_lead_to_return): Update. + (ipa_ref_has_aliases_p): Update. + * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New + forward typedefs. + (ipa_ref_type): Remove. + (ipa_ref_ptr_u): Remove. + (ipa_ref): Remove referencing, refered, refered_index, refering_type + and refered_type; add referring, referred and referred_index. + (ipa_ref_list): Rename refering to referring. + (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring, + ipa_clone_references, ipa_clone_referring): Update prototypes. + * lto-cgraph.c (referenced_from_other_partition_p): Update. + (lto_output_ref): Update. + (add_references): Update. + (input_varpool_node): Update. + (input_refs): Update. + * ipa-ref-inline.h (ipa_ref_node): Update. + (ipa_ref_varpool_node): Update. + (ipa_ref_referring_node): Update. + (ipa_ref_referring_varpool_node): Update. + (ipa_ref_referring_ref_list): Update. + (ipa_ref_referred_ref_list): Update. + (ipa_ref_list_first_referring): Update. + (ipa_empty_ref_list): Update. + (ipa_ref_list_refering_iterate): Rename to ... + (ipa_ref_list_referring_iterate): ... this one. + * cse.c: Update comment. + * ipa-utils.c (ipa_reverse_postorder): Update. + * tree-ssa-alias.c: Update. + * ipa-inline.c (reset_edge_caches): Update. + (update_caller_keys): Update. + * ipa-inline.h: Update comments. + * jump.c: Update comment. + * alias.c: Likewise. + * ipa.c (process_references): Update. + (cgraph_remove_unreachable_nodes): Likewise. + (ipa_discover_readonly_nonaddressable_var): Likewise. + (cgraph_address_taken_from_non_vtable_p): Likewise. + * trans-mem.c (ipa_tm_execute): Update. + * simplify-rtx.c: Fix comment. + * rtl.c: Fix comment. + * symtab.c (symtab_unregister_node): Update. + * varpool.c (dump_varpool_node): Update. + (varpool_analyze_pending_decls): Update. + (assemble_aliases): Update. + (varpool_for_node_and_aliases): Update. + +2012-04-18 Richard Guenther + + * cfgloop.h (estimate_numbers_of_iterations_loop): Remove + use_undefined_p parameter. + * tree-flow.h (estimate_numbers_of_iterations): Likewise. + * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): + Likewise. + (estimate_numbers_of_iterations): Likewise. + (estimated_loop_iterations): Adjust. + (max_loop_iterations): Likewise. + (scev_probably_wraps_p): Likewise. + * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise. + * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions, + not max_loop_iterations. + (execute_vrp): Remove explicit number of iterations estimation. + +2012-04-18 Enkovich Ilya + + * config/i386/linux-common.h: New. + + * config.gcc: Add i386/linux-common.h before + all i386/linux.h and i386/linux64.h usages. + + * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New. + (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. + * config/i386/gnu-user64.h: Likewise. + + * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New. + (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC. + (GNU_USER_TARGET_MATHFILE_SPEC): New. + (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC. + +2012-04-18 Jan Hubicka + + * cgraph.c (cgraph_node_name): Remove. + (dump_cgraph_node): Use dump_symtab_base; reformat. + * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab, + debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base): + Declare. + (cgraph_node_name, varpool_node_name): Remove. + (cgraph_node_asm_name, varpool_node_asm_name, + cgraph_node_name, varpool_node_name): New. + * tree-pass.h (TODO_dump_cgraph): Rename to ... + (TODO_dump_symtab): ... this one. + * ipa-cp (pass_ipa_cp): Update. + * ia-reference.c (generate_summary, read_write_all_from_decl, + propagate, ipa_reference_read_optimization_summary): Update. + * cgraphunit.c (cgraph_analyze_functions): Update. + (cgraph_optimize): Update. + * ipa-ref.c (ipa_dump_references): Update. + (ipa_dump_refering): Update. + * ipa-inline.c (pass_ipa_inline): Update. + * matrix-reorg.c (pass_ipa_matrix_reorg): Update. + * ipa.c (pass_ipa_function_visibility, + pass_ipa_whole_program_visibility): Update. + * tree-sra.c (pass_early_ipa_sra): Update. + * symtab.c: Include langhooks.h + (symtab_node_asm_name): New. + (symtab_node_name): New. + (symtab_type_names): New static var. + (dump_symtab_base): New. + (dump_symtab_node, dump_symtab): New. + (debug_symtab_node, debug_symtab): New. + * tree-ssa-structalias.c: Dump symbol table. + * pases.c (execute_todo): Handle TODO_dump_symtab instead + of TODO_dump_cgraph. + * varpoo.c (varpool_node_name): Remove. + (dump_varpool_node): Use dump_symtab_base; reformat. + +2012-04-18 Manuel López-Ibáñez + + * doc/invoke.texi (Language Independent Options): @item should be + before @opindex. + +2012-04-17 Richard Sandiford + + PR bootstrap/53021 + * rtl.c (rtx_code_size): Handle ADDRESS. + +2012-04-17 Tom de Vries + + * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p + is not a STMT_LIST. + +2012-04-17 Uros Bizjak + + PR target/53020 + * config/i386/sync.md (atomic_): Rename to + atomic_. + +2012-04-17 Richard Sandiford + + * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT. + * alias.c (reg_base_value): Expand and update comment. + (arg_base_value): New variable. + (unique_id): Move up file. + (unique_base_value, unique_base_value_p, known_base_value_p): New. + (find_base_value): Use arg_base_value and known_base_value_p. + (record_set): Document REG_NOALIAS handling. Use unique_base_value. + (find_base_term): Use known_base_value_p. + (base_alias_check): Use unique_base_value_p. + (init_alias_target): Initialize arg_base_value. Use unique_base_value. + (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases. + +2012-04-17 Pat Haugen + + * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode. + +2012-04-17 Michael Matz + + PR tree-optimization/18437 + * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member. + (STMT_VINFO_STRIDE_LOAD_P): New accessor. + (vect_check_strided_load): Declare. + * tree-vect-data-refs.c (vect_check_strided_load): New function. + (vect_analyze_data_refs): Use it to accept strided loads. + * tree-vect-stmts.c (vectorizable_load): Ditto and handle them. + +2012-04-17 Richard Guenther + + PR middle-end/53011 + * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard + loops when redirecting an entry or latch edge. + +2012-04-17 Bernd Schmidt + + * sel-sched.c (sel_global_init): Revert previous change. + +2012-04-17 Richard Guenther + + * tree-flow.h (array_at_struct_end_p): Move declaration ... + * tree.h (array_at_struct_end_p): ... here. + * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ... + * expr.c (array_at_struct_end_p): ... here. Rewrite. + +2012-04-17 Steven Bosscher + + * stmt.c (cost_table_, use_cost_table, cost_table_initialize, + COST_TABLE): Remove. + (estimate_case_costs): Remove. + (expand_case): Do not call estimate_case_costs + to set use_cost_table. + (balance_case_nodes): Do not use use_cost_table. + +2012-04-16 Jan Hubicka + + * cgraph.c (cgraph_hash, assembler_name_hash): Remove. + (hash_node, eq_node): Remove. + (cgraph_create_node): Do not handle hashtable. + (cgraph_get_node): Remove. + (cgraph_insert_node_to_hashtable): Remove. + (hash_node_by_assembler_name): Remove. + (eq_assembler_name): Remove. + (cgraph_node_for_asm): Rewrite. + (cgraph_find_replacement_node): Break out from ... + (cgraph_remove_node): ... here; do not maintain hashtables. + (change_decl_assembler_name): Remove. + (cgraph_clone_node): Do not maintain hashtables. + * cgraph.h (const_symtab_node): New typedef. + (cgraph_insert_node_to_hashtable): Remove. + (symtab_get_node, symtab_node_for_asm, + symtab_insert_node_to_hashtable): Declare. + (cgraph_find_replacement_node): Declare. + (cgraph_get_node, varpool_get_node): Turn into inlines. + (cgraph, varpool): Work sanely on NULL pointers. + (FOR_EACH_SYMBOL): New walker. + * ipa-inline-transform.c (save_inline_function_body): Use + symtab_insert_node_to_hashtable. + * symtab.c: Include ggc.h and diagnostics.h + (symtab_hash, assembler_name_hash): New static vars; + (hash_node, eq_node, hash_node_by_assembler_name, + eq_assembler_name, insert_to_assembler_name_hash, + unlink_from_assembler_name_hash): New. + (symtab_register_node): Update hashtables. + (symtab_insert_node_to_hashtable): New. + (symtab_unregister_node): Update hashtables. + (symtab_get_node): New. + (symtab_node_for_asm): New. + (change_decl_assembler_name): New. + * Makefile.in (symtab.o): Needs GTY. + * varpool.c (varpool_hash): Remove. + (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove. + (varpool_node): Rewrite using varpool_get_node. + (varpool_remove_node): DO not maintain hashtables. + (varpool_node_for_asm): Rewrite. + +2012-04-16 Sandra Loosemore + + * doc/invoke.texi: Copy-edit to put verbs in the present tense + when describing the current behavior of GCC. + +2012-04-16 Richard Sandiford + + * genemit.c (gen_exp): Remove ADDRESS handling. + * genoutput.c (scan_operands): Likewise. + * genpeep.c (match_rtx): Likewise. + * genrecog.c (add_to_sequence): Likewise. + +2012-04-16 David Edelsohn + + * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status. + +2012-04-16 Martin Jambor + + * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for + bit-fields. + +2012-04-16 Ulrich Weigand + + PR target/51819 + * config/arm/arm.c (arm_print_operand): Fix invalid alignment + hints for 'A' operand types. + +2012-04-16 Jan Hubicka + + * cgraph.h (symtab_node_base): Add next and previous pointers. + (cgraph_node): Remove next and preivous pointers. + (varpool_node): Likewise; remove next/previous GTY marker; + it is not type safe. + (symtab_node_def): Update GTY marker + (x_cgraph_nodes, cgraph_nodes): Remove. + (symtab_nodes): New function. + (cgraph_order): Rename to ... + (symtab_order): ... this one. + (symtab_register_node, symtab_unregister_node, symtab_remove_node): + Declare. + (x_varpool_nodes, varpool_nodes): Remove. + (FOR_EACH_STATIC_VARIABLE): Update. + (symtab_function_p, symtab_variable_p): New function. + (FOR_EACH_VARIABLE): Update. + (varpool_first_variable, varpool_next_variable): New functions. + (FOR_EACH_VARIABLE): Update. + (cgraph_first_defined_function): Update. + (cgraph_next_defined_function, cgraph_next_defined_function): Update. + (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update. + (cgraph_first_function, cgraph_next_function): New. + (FOR_EACH_FUNCTION): Update. + (cgraph_first_function_with_gimple_body, + cgraph_next_function_with_gimple_body): Update. + * symtab.c: New file. + * cgraph.c: Update copyright dates. + (x_cgraph_nodes, cgraph_order): Remove. + (NEXT_FREE_NODE): Update. + (SET_NEXT_FREE_NODE): New. + (cgraph_create_node_1): Remove common code. + (cgraph_create_node): Remove common code; call symtab_register_node. + (cgraph_remove_node): Remove common code; call symtab_unregister-node. + (cgraph_add_asm_node): Update. + (cgraph_clone_node): Register new node. + * cgraphunit.c (process_function_and_variable_attributes): Update. + (cgraph_analyze_functions): Update. + (cgraph_analyze_functions): Update. + (cgraph_output_in_order): Update. + * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1): + Update. + * ipa-inline.c (recursive_inlining): Update. + * lto-streamer-in.c (lto_input_toplevel_asms): Update. + * ipa.c (cgraph_remove_unreachable_nodes): Update. + * Makefile.in: Add symtab.o + * varpool.c (x_varpool_nodes): Remove + (varpool_node): Remove common code; call symtab_register_node. + (varpool_remove_node): Remove common code; call symtab_unregister_node. + +2012-04-16 Richard Guenther + + PR middle-end/52977 + * tree.h (VECTOR_CST_NELTS): Adjust. + (struct tree_vector): Add explicit length field. + (make_vector_stat): Declare. + (make_vector): Define. + * tree.c (make_vector_stat): New function. + (build_vector_stat): Use it. + * tree-streamer-in.c (streamer_alloc_tree): Likewise. + +2012-04-16 Bill Schmidt + + PR tree-optimization/52976 + * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function. + (undistribute_ops_list): Ops with repeat counts aren't eligible for + undistribution. + (attempt_builtin_powi): Call add_to_ops_vec_max_rank. + +2012-04-16 Jan Hubicka + + * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION): + New macros. + * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH + walkers to walk cgraph and varpool. + * cgraph.c (cgraph_node_for_asm): Likewise. + (dump_cgraph): Likewise. + * value-prof.c (init_node_map): Likewise. + * tree.c (free_lang_data_in_cgraph): Likewise. + * tree-emutls.c: (ipa_lower_emutls): Likewise. + * ipa-reference.c (generate_summary, propagate): Likewise. + * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases, + cgraph_mark_functions_to_output, cgraph_output_in_order, + output_weakrefs, cgraph_materialize_all_clones, + cgraph_optimize): Likewise. + * lto-cgraph.c (merge_profile_summaries): Likewise. + (input_cgraph): Likewise. + * ipa-pure-const.c (generate_summary): Likewise. + (propagate): Likwise. + * ipa-utils.c (ipa_reduced_postorder): Likewise. + (ipa_free_postorder_info): Likewise. + (ipa_reverse_postorder): Likewise. + * ipa-inline.c (ipa_inline): Likewise. + * matrix-reorg.c (find_matrices_decl): Likewise. + (matrix_reorg): Likewise. + * tree-vectorizer.c (increase_alignment): Likewise. + * ipa.c (cgraph_remove_unreachable_nodes): Likewise. + (function_and_variable_visibility): Likewise. + (whole_program_function_and_variable_visibility): Likewise. + (ipa_cdtor_merge): Likewise. + * trans-mem.c (ipa_tm_execute): Likewise. + * ipa-inline-analysis.c (dump_inline_summaries): Likewise. + * ipa-prop.c (ipa_print_all_jump_functions): Likewise. + (ipa_print_all_params): Likewise. + (ipa_update_after_lto_read): Likewise. + * tree-profie.c (tree_profiling): Likewise. + * tree-ssa-structalias.c (ipa_pta_execute): Likewise. + * passes.c (dump_passes): Likewise. + (do_per_function): Likewise. + (ipa_write_summaries): Likewise. + * varpool.c (dump_varpool): Likewise. + (varpool_node_for_asm): Likewise. + (varpool_assemble_pending_decls): Likewise. + +2012-04-16 Richard Guenther + + PR tree-optimization/52975 + * tree-if-conv.c (predicate_bbs): Do not simplify inverted + condition but always mark it with TRUTH_NOT_EXPR. + +2012-04-16 Richard Guenther + + PR tree-optimization/52975 + * tree-ssa-forwprop.c (combine_cond_exprs): New function. + (ssa_forward_propagate_and_combine): Call it for COND_EXPRs + and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition. + * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF. + +2012-04-14 Uros Bizjak + + * config/i386/sse.md (ssse3_plusminus): New code iterator. + (avx2_phwv16hi3): Macroize insn from + avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator. + (ssse3_phwv8hi3): Macroize insn from + ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator. + (ssse3_phwv4hi3): Macroize insn from + ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator. + + (avx2_phdv8si3): Macroize insn from + avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator. + (ssse3_phdv4si3): Macroize insn from + ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator. + (ssse3_phdv2si3): Macroize insn from + ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator. + + (xop_plus): New code iterator. + (macs): New code attribute. + (macds): Ditto. + (xop_p): Macroize insn from + xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode + iterator. + (xop_pdql): Macroize insn from xop_pmacs{,s}dql using + xop_plus code iterator. + (xop_pdqh): Macroize insn from xop_pmacs{,s}dqh using + xop_plus code iterator. + (xop_pwd): Macroize insn from xop_pmacs{,s}wd using + xop_plus code iterator. + (xop_pwd): Macroize insn from xop_pmadcs{,s}wd using + xop_plus code iterator. + + (xop_phaddbw): Macroize insn from xop_phadd{,u}bw usign + any_extend code iterator. + (xop_phaddbd): Macroize insn from xop_phadd{,u}bd usign + any_extend code iterator. + (xop_phaddbq): Macroize insn from xop_phadd{,u}bq usign + any_extend code iterator. + (xop_phaddwd): Macroize insn from xop_phadd{,u}wd usign + any_extend code iterator. + (xop_phaddwq): Macroize insn from xop_phadd{,u}wq usign + any_extend code iterator. + (xop_phadddq): Macroize insn from xop_phadd{,u}dq usign + any_extend code iterator. + +2012-04-14 Tom de Vries + + * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by + call to delete_insn. Remove code to reorder BASIC_BLOCK note and + DELETED_LABEL note, and move it to ... + * cfgrtl.c (delete_insn): ... here. Change return type to void. + (delete_insn_and_edges): Likewise. + (delete_insn_chain): Handle new return type of delete_insn. Delete + chain backwards rather than forwards. + * rtl.h (delete_insn, delete_insn_and_edges): Change return type to + void. + * cfglayout.c (fixup_reorder_chain): Delete unused label. + +2012-04-14 Jan Hubicka + + * cgraph.h: Update copyrights; + (symtab_node): Turn to union typedef. + (symtab_node_base): New structure. + (symtab_type): Add SYMTAB_SYMBOL tag. + (cgraph_node): Annotate some pinters with nested_ptr. + (varpool_node): Likewise. + (cgraph_local_info): Remove lto_file_data + and externally_visible. + (cgraph_node): Remove decl; same_comdat_group list; + aux; ref_list; order; address_taken; reachable_from_other_parittion, + in_other_partition; resolution. + (varpool_node): Remove decl; same_comdat_group; + ref_list; lto_file_data; aux; order; resolution; externally_visible; + used_from_other_partition; in_other_partition. + (symtab_node_def): New union. + (cgraph, varpool): Update. + (varpool_first_static_initializer, varpool_next_static_initializer, + cgraph_only_called_directly_or_aliased_p, + varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs, + varpool_all_refs_explicit_p, cgraph_alias_aliased_node, + varpool_alias_aliased_node, cgraph_edge_recursive_p): Update + field references. + * cgraph.c: Likewise. + (cgraph_hash, assembler_name_hash): Turn into symtab_node. + * cgraphbuild.c: Likewise. + * lto-symtab.c: Likewise. + * c-gimplify.c: Likewise. + * value-prof.c: Likewise. + * tree.c: Likewise. + * ipa-cp.c: Likewise. + * tree-emutls.c: Likewise. + * ipa-inline-transform.c: Likwise. + * ipa-reference.c: Likewise. + * cgraphunit.c: Likewise. + * ipa-ref.c: Likewise. + * lto-cgraph.c: Likewise. + * ipa-ref-inline.h: Likewise. + * ipa-pure-const.c: Likewise. + * lto-streamer-out.c: Likewise. + * ipa-utils.c: Likewise. + * ipa-inline.c: Likewise. + * matrix-reorg.c: Likewise. + * tree-eh.c: Likewise. + * tree-vectorizer.c: Likewise. + * ipa-split.c: Likewise. + * ipa.c: Likewise. + * trans-mem.c: Likewise. + * ipa-inline-analysis.c: Likewise. + * gimplify.c: Likewise. + * cfgexpand.c: Likewise. + * tree-sra.c: Likewise. + * ipa-prop.c: Likewise. + * varasm.c: Likewise. + * tree-nested.c: Likewise. + * tree-inline.c: Likewise. + * tree-profile.c: Likewise. + * tree-ssa-structalias.c: Likewise. + * passes.c: Likewise. + * varpool.c: Likewise. + +2012-04-14 Tom de Vries + + * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of + same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND. + Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use + of find_edge. + (gsi_advance_fw_nondebug_nonlocal): New function. + (local_def): Removed function. + (same_succ_hash): Use stmt_local_def. + (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal. + (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def. + +2012-04-13 H.J. Lu + + * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 + and __ILP32__ for x32. + +2012-04-13 Martin Jambor + + PR middle-end/52939 + * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if + fold_ctor_reference returns a zero constant. + +2012-04-13 Enkovich Ilya + + * config.gcc: Add i386/gnu-user-common.h before all + i386/gnu-user.h and i386/gnu-user64.h usages. + + * config/i386/gnu-user-common.h: New. + + * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h. + (CC1_SPEC): Likewise. + (ENDFILE_SPEC): Likewise. + (DEFAULT_PCC_STRUCT_RETURN): Likewise. + (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise. + (TARGET_OS_CPP_BUILTINS): Likewise. + (LIBGCC2_HAS_TF_MODE): Likewise. + (LIBGCC2_TF_CEXT): Likewise. + (TF_SIZE): Likewise. + (TARGET_ASM_FILE_END): Likewise. + (STACK_CHECK_MOVING_SP): Likewise. + (STACK_CHECK_STATIC_BUILTIN): Likewise. + * config/i386/gnu-user64.h: Likewise. + +2012-04-13 Martin Jambor + + * expr.c (expand_expr_real_1): Pass type, not the expression, to + set_mem_attributes for a memory temporary. Do not call the function + for the memory temporary created for a bitfield. + +2012-04-13 Alexandre Oliva + + PR debug/48866 + * df.h (enum debug_temp_where): New. + (dead_debug_init, dead_debug_finish) Declare. + (dead_debug_add, dead_debug_insert_temp): Declare. + (struct dead_debug_use, struct dead_debug): Moved from... + * df-problems.c: ... here. + (df_set_unused_notes_for_mw): Bind debug uses of unused regno + to a debug temp. + (df_create_unused_note): Likewise. + (df_set_dead_notes_for_mw): Move comment where it belongs. + (dead_debug_init): Export. + (dead_debug_reset_uses): New, factored out of... + (dead_debug_finish): ...this. Export. + (dead_debug_reset): Remove. + (dead_debug_add): Export. + (dead_debug_insert_before): Rename to... + (dead_debug_insert_temp): ... this. Add where argument. Export. + Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts. + Return insertion count. + (df_note_bb_compute): Adjust. + * dce.c (word_dce_process_block): Adjust dead debug uses. + (dce_process_block): Likewise. + +2012-04-13 Alexandre Oliva + + * df-problems.c (df_note_bb_compute): Do not take note of + debug uses for whose REGs we won't emit DEAD or UNUSED notes. + +2012-04-13 Alexandre Oliva + + PR debug/51570 + * var-tracking.c (expand_depth): New type. + (onepart_aux, expand_loc_callback_data): Change depth type to it. + (loc_exp_dep_alloc): Adjust initializer. + (update_depth): Use new type. Add entryvals. + (vt_expand_var_loc_chain): Take note of expansions with + ENTRY_VALUEs, but don't accept them right away. Run an optional + second pass accepting the minimum ENTRY_VALUE count found in the + first pass. + (vt_expand_loc_callback, INIT_ELCD): Adjust. + +2012-04-13 Tom de Vries + + * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add + parameters vuse and vuse_escaped. + (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to + gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and + vuse1 != vuse2. + +2012-04-13 Richard Guenther + + PR tree-optimization/52969 + * tree-if-conv.c (predicate_mem_writes): Properly gimplify + the condition for the COND_EXPR and handle predicate negation + by swapping the COND_EXPR arms. + +2012-04-13 Nick Clifton + + * config/rl78/rl78.c (rl78_devirt_pass): Remove use of + TODO_dump_func flag. + +2012-04-13 Andrey Belevantsev + + PR rtl-optimization/52203 + PR rtl-optimization/52715 + + Revert the 2012-03-07 fix for PR 52203. + * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that + the insn does not modify DFA right before issuing, adjust + issue_rate accordingly. + +2012-04-13 Richard Guenther + + PR c/52549 + * c-typeck.c (pointer_diff): Remove bogus assert. + +2012-04-13 Richard Guenther + + PR c/52862 + * convert.c (convert_to_pointer): Remove special-casing of zero. + +2012-04-13 Joey Ye + + * config/arm/constraints.md (Pe): New constraint. + * config/arm/arm.md: New split for imm 256-510. + +2012-04-13 Terry Guo + + * config/arm/arm-cores.def: Added core cortex-m0plus. + * config/arm/arm-tune.md: Regenerated. + * config/arm/arm-tables.opt: Regenerated. + * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus. + +2012-04-13 Alan Modra + + PR target/52828 + * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with + tie regs on destination of sets. Delete forward declaration. + (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls. + (rs6000_emit_prologue): Likewise. + (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie + and gen_stack_tie. + (is_mem_ref): Use tie_operand to recognise stack ties. + * config/rs6000/predicates.md (tie_operand): New. + * config/rs6000/rs6000.md (restore_stack_block): Generate new + stack tie rtl. + (restore_stack_nonlocal): Likewise. + (stack_tie): Update. + (frame_tie): Delete. + +2012-04-12 Bill Schmidt + + * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to + HOST_WIDE_INT_PRINT_DEC in format strings. + +2012-04-12 Uros Bizjak + + PR target/52932 + * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second + argument type to __m256i. Update call to __builtin_ia32_permvarsf256. + * config/i386/sse.md (UNSPEC_VPERMVAR): New. + (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove. + (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2. + (avx2_permvar): Macroize insn from avx2_permvarv8sf and + avx2_permvarv8si using VI4F_256 mode iterator. + * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>: + Update builtin type to V8SF_FTYPE_V8SF_V8SI. + (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and + gen_avx2_permvarv8sf. + (expand_vec_perm_pshufb): Ditto. + +2012-04-12 Michael Meissner + + PR target/52775 + * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to + the list of options to enable the FCFID instruction. + (TARGET_EXTRA_BUILTINS): Adjust comment. + +2012-04-12 Bill Schmidt + + PR tree-optimization/18589 + * tree-ssa-reassoc.c (reassociate_stats): Add two fields. + (operand_entry): Add count field. + (add_repeat_to_ops_vec): New function. + (completely_remove_stmt): Likewise. + (remove_def_if_absorbed_call): Likewise. + (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls. + (acceptable_pow_call): New function. + (linearize_expr_tree): Look for builtin pow/powi calls and add operand + entries with repeat counts when found. + (repeat_factor_d): New struct and associated typedefs. + (repeat_factor_vec): New static vector variable. + (compare_repeat_factors): New function. + (get_reassoc_pow_ssa_name): Likewise. + (attempt_builtin_powi): Likewise. + (reassociate_bb): Call attempt_builtin_powi. + (fini_reassoc): Two new calls to statistics_counter_event. + +2012-04-12 Richard Guenther + + * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency. + * cgraph.h (tree_rest_of_compilation): Remove. + * cgraph.c (cgraph_add_new_function): Move ... + * cgraphunit.c (cgraph_add_new_function): ... here. + (tree_rest_of_compilation): Make static. + (cgraph_expand_function): Do not set cgraph_function_flags_ready. + * tree-optimize.c (gate_all_optimizations, pass_all_optimizations, + gate_all_early_local_passes, execute_all_early_local_passes, + pass_early_local_passes, gate_all_early_optimizations, + pass_all_early_optimizations): Move ... + * passes.c (gate_all_optimizations, pass_all_optimizations, + gate_all_early_local_passes, execute_all_early_local_passes, + pass_early_local_passes, gate_all_early_optimizations, + pass_all_early_optimizations): ... here. + * tree-optimize.c (execute_free_datastructures): Remove. + * tree-flow.h (execute_free_datastructures): Remove. + * tree-optimize.c (execute_init_datastructures, + pass_init_datastructures): Move ... + * tree-ssa.c (execute_init_datastructures, + pass_init_datastructures): ... here. + * cfgexpand.c (gimple_expand_cfg): Inline-expand call to + execute_free_datastructures. + +2012-04-12 Bernd Schmidt + + * dbgcnt.def (ira_move): New counter. + * ira-int.h (ira_create_new_reg): Declare function. + (first_moveable_pseudo, last_moveable_pseudo): Declare variables. + * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and + no longer static. All callers changed. + * ira.c: Include "dbgcnt.h". + (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos, + move_unallocated_pseudos): New static functions. + (first_moveable_pseudo, last_moveable_pseudo): New global variables. + (pseudo_replaced_reg, pseudo_move_insn): New static variables. + (ira): Call find_moveable_pseudos and move_unallocated_pseudos. + * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero + to the pseudos generated in find_moveable_pseudos. + * Makefile.in (ira.o): Add $(DBGCNT_H). + +2012-04-12 Richard Guenther + + PR tree-optimization/52943 + * tree-chrec.h (chrec_is_positive): Remove. + * tree-scalar-evolution.c (chrec_is_positive): Move ... + * tree-data-ref.c (chrec_is_positive): ... here. Make static. + Return false for a constant zero instead of negative. + (analyze_siv_subscript_cst_affine): Handle zero difference + in the initial condition explicitely. + +2012-04-12 Richard Guenther + + * tree-parloops.c (parallelize_loops): Also consult the upper + bound for the number of iterations. + * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. + (loop_prefetch_arrays): Likewise. + +2012-04-12 Richard Guenther + + * cfgloop.h (estimated_loop_iterations_int): Ditch + 'conservative' parameter. + (max_stmt_executions_int): Likewise. + (estimated_loop_iterations): Likewise. + (max_stmt_executions): Likewise. + (max_loop_iterations): Declare. + (max_loop_iterations_int): Likewise. + (estimated_stmt_executions): Likewise. + (estimated_stmt_executions_int): Likewise. + * tree-ssa-loop-niter.c (estimated_loop_iterations): + Split parts to ... + (max_loop_iterations): ... this. + (estimated_loop_iterations_int): Split parts to ... + (max_loop_iterations_int): ... this. + (max_stmt_executions_int): Split parts to ... + (estimated_stmt_executions_int): ... this. + (max_stmt_executions): Split parts to ... + (estimated_stmt_executions): ... this. + * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust. + * predict.c (predict_loops): Likewise. + * tree-data-ref.c (max_stmt_executions_tree): Likewise. + (analyze_siv_subscript_cst_affine): Likewise. + (compute_overlap_steps_for_affine_1_2): Likewise. + (analyze_subscript_affine_affine): Likewise. + (init_omega_for_ddr_1): Likewise. + * tree-parloops.c (parallelize_loops): Likewise. + * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise. + (may_eliminate_iv): Likewise. + * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. + (loop_prefetch_arrays): Likewise. + * tree-vrp.c (adjust_range_with_scev): Likewise. + +2012-04-12 Oleg Endo + + * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0. + * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE): + Fix line width. + (dump_table): Use bool type for need_align and have_df variables. + (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0. + (regs_used): Remove register modifier. + (barrier_align): Move variables slot, credit, jump_to_next + into if block above for loop. Use bool type for jump_to_next. + (sh_function_arg): Use NULL_RTX instead of 0. + +2012-04-11 Andreas Schwab + + * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart. + (bswapsi2): New expander. + +2012-04-11 H.J. Lu + + * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to + 0x60000000 if __x86_64 is defined and __LP64__ isn't defined. + +2012-04-11 H.J. Lu + + PR rtl-optimization/52876 + * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value. + Don't call mark_reg_pointer for incompatible pointer sign extension. + * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value + directly. + +2012-04-11 Bernd Schmidt + + * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for + comparisons against TYPE_PRECISION. + * tree-ssa-forwprop.c (combine_conversions): Likewise. + +2012-04-11 Xinliang David Li + + * tree-passes.h: Remove TODO_dump_func. + * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func. + * trans-mem.c: Remove TODO_dump_func. + * ira.c: Remove TODO_dump_func. + +2012-04-11 H.J. Lu + + * config/i386/i386.c (ix86_option_override_internal): Check + SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS + after TARGET_64BIT is updated. + +2012-04-11 Oleg Endo + + * config/sh/sh.h: Remove old secondary reload code. + +2012-04-11 Oleg Endo + + * config/sh/sh.c (SCHED_REORDER): Merge macro into ... + (ready_reorder): ... this function. + +2012-04-11 Bernd Schmidt + + * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and + sched_init calls. + + * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P + insns so that no other insn is queued for a time before them. + + * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to + unknown. + +2012-04-11 Richard Guenther + + PR middle-end/52621 + * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly + consider loop nesting. + (evolution_function_is_univariate_p): Properly check the remainder + for chrecs. + +2012-04-11 Richard Guenther + + PR middle-end/52918 + * except.c (sjlj_emit_dispatch_table): Properly update loop structure. + +2012-04-11 Nick Clifton + + * config/rl78/rl78.c (rl78_expand_prologue): Set stack use + information, if requested. + + * config/rx/rx.c (rx_expand_prologue): Likewise. + +2012-04-11 Peter Bergner + Michael Matz + + PR target/16458 + * rtlanal.c (unsigned_reg_p): New function. + Update copyright notice dates. + * rtl.h (unsigned_reg_p): Prototype it. + Update copyright notice dates. + * config/rs6000/rs6000.c (rs6000_generate_compare): Use it. + Update comment. + * expr.c (expand_expr_real_1): Set register attributes. + * stmt.c (expand_case): Likewise. + +2012-04-11 Oleg Endo + + PR target/50751 + * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments + consider_sh2a and allow_zero. + * config/sh/sh.c (sh_legitimate_index_p): Likewise. + (disp_addr_displacement): New function. + (sh_address_cost): Use disp_addr_displacement function instead + of DISP_ADDR_OFFSET. + (sh_legitimate_address_p): Adapt to changed + sh_legitimate_index_p declaration. + (sh_find_mov_disp_adjust): Remove HImode check. + (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd, + disp_addr_displacement and max_mov_insn_displacement. + (max_mov_insn_displacement): Remove HImode check. + * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, + DISP_ADDR_P, DISP_ADDR_OFFSET): Remove. + * config/sh/constraints.md (K05, K13): New constraints. + (K12): Correct comment. + (Sdd): Do not use DISP_ADDR_P macro. + (Snd, Sbw): Use satisfies_constraint_Sdd. + * config/sh/sh.md (extendhisi2): Remove constraints from expander. + (*extendhisi2_compact, movhi_i): Remove. + (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp, + *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd, + *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13, + *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns. + (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp, + *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp, + *movqi_load_mem_disp): Use sh_legitimate_index_p instead of + CONST_OK_FOR_Kxx. + Add new peepholes for HImode displacement addressing. + +2012-04-11 Oleg Endo + + * config/sh/sh.h (SIDI_OFF): Remove. + * config/sh/sh.md: Use gen_highpart and gen_lowpart to access + DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg + or operand_subword. + +2012-04-11 Eric Botcazou + + PR target/52624 + * doc/extend.texi (Other Builtins): Document __builtin_bswap16. + (PowerPC AltiVec/VSX Built-in Functions): Remove it. + * doc/md.texi (Standard Names): Add bswap. + * builtin-types.def (BT_UINT16): New primitive type. + (BT_FN_UINT16_UINT16): New function type. + * builtins.def (BUILT_IN_BSWAP16): New. + * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument. + (expand_builtin) : New case. Pass TARGET_MODE to + expand_builtin_bswap. + (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case. + (fold_builtin_1): Likewise. + (is_inexpensive_builtin): Likewise. + * optabs.c (expand_unop): Deal with bswap in HImode specially. Add + missing bits for bswap to libcall code. + * tree.c (build_common_tree_nodes): Build uint16_type_node. + * tree.h (enum tree_index): Add TI_UINT16_TYPE. + (uint16_type_node): New define. + * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete. + * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of + above builtin. + (rs6000_init_builtins): Likewise. + * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate. + +2012-04-11 Tristan Gingold + + * doc/extend.texi (Type Attributes): Move paragraph. + +2012-04-11 Manuel López-Ibáñez + + PR 24985 + * diagnostic.h (show_caret): Declare. + (caret_max_width): Declare. + (diagnostic_show_locus): Declare. + * diagnostic.c (diagnostic_initialize): Initialize to false. + (diagnostic_show_locus): New. + (diagnostic_report_diagnostic): Call it. + (getenv_columns): New. + (adjust_line): New. + (diagnostic_set_caret_max_width): New. + * input.c (read_line): New. + (location_get_source_line): New. + * input.h (location_get_source_line): Declare. + * toplev.c (general_init): Initialize show_caret from options. + * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret. + * opts.c (common_handle_option): Likewise. + * pretty-print.h (pp_get_prefix): New. + (pp_base_get_prefix): New. + * common.opt (fdiagnostics-show-caret): New option. + * doc/invoke.texi (fdiagnostics-show-caret): Document it. + +2012-04-11 Richard Guenther + + PR rtl-optimization/52881 + * ifcvt.c (find_if_case_2): Avoid speculating loop latches. + +2012-04-11 Richard Guenther + + PR tree-optimization/52912 + * tree-ssa-threadupdate.c (thread_block): Tell the cfg + manipulation code we are threading through a loop header + to an exit destination. + +2012-04-10 Manuel López-Ibáñez + + * tree.h (warn_if_unused_value): Move declaration from here. + * stmt.c (warn_if_unused_value): Move definition from here. + +2012-04-10 Michael Matz + + * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to + grouped_stores. + (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES. + (struce _bb_vec_info.strided_stores): Rename to grouped_stores. + (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES. + (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS. + (vect_strided_store_supported): Rename to vect_grouped_store_supported. + (vect_strided_load_supported): Rename to vect_grouped_load_supported. + (vect_transform_strided_load): Rename to vect_transform_grouped_load. + (vect_record_strided_load_vectors): Rename to + vect_record_grouped_load_vectors. + * tree-vect-data-refs.c (vect_update_misalignment_for_peel): + Rename use of above macros. + (vect_verify_datarefs_alignment): Ditto. + (vector_alignment_reachable_p): Ditto. + (vect_peeling_hash_get_lowest_cost): Ditto. + (vect_enhance_data_refs_alignment): Ditto. + (vect_analyze_group_access): Ditto and rename stride to groupsize. + (vect_analyze_data_ref_access): Rename "strided" to "grouped". + (vect_strided_store_supported): Rename to vect_grouped_store_supported. + (vect_strided_load_supported): Rename to vect_grouped_load_supported. + (vect_transform_strided_load): Rename to vect_transform_grouped_load. + (vect_record_strided_load_vectors): Rename to + vect_record_grouped_load_vectors. + * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros. + (destroy_loop_vec_info): Ditto. + (vect_transform_loop): Ditto and rename strided_store to grouped_store. + * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros. + (vect_analyze_slp): Ditto. + (new_bb_vec_info): Ditto. + (destroy_bb_vec_info): Ditto. + (vect_schedule_slp_instance): Ditto and rename strided_store to + grouped_store. + * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to + vect_cost_group_size. + (vect_model_store_cost): Rename use of above macros and call + to vect_cost_strided_group_size. + (vect_model_load_cost): Ditto. + (vectorizable_store): Ditto, rename strided_store to grouped_store + and calls to renamed tree-vectorizer.h functions. + (vectorizable_load): Ditto. + (vect_transform_stmt): Rename use of above macros and strided_store + to grouped_store. + +2012-04-10 Jan Hubicka + + * cgraph.h: Remove misledaing comment on ipa-ref.h. + (symtab_type): New enum. + (symtab_node): New structure. + (cgraph_node, varpool_node): Add symbol base type. + (cgraph, varpool): New accestor functions. + * cgraph.c (cgraph_create_node_1): Set symbol type. + * varpool.c (varpool_node): Set symbol type. + +2012-04-10 Ulrich Weigand + Richard Sandiford + + * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs. + +2012-04-10 Richard Guenther + + PR middle-end/52888 + * gimple-low.c (gimple_check_call_args): Properly account for + compatible aggregate types. + +2012-04-10 Richard Guenther + + * toplev.h (tree_rest_of_compilation): Remove. + * tree-optimize.c (tree_rest_of_compilation): Likewise. + * cgraph.h (tree_rest_of_compilation): Declare. + * tree-optimize.c (tree_rest_of_compilation): Move ... + * cgraphunit.c (tree_rest_of_compilation): ... here. + * cgraph.c (cgraph_add_new_function): Adjust. + * Makefile.in (tree-optimize.o): Adjust. + (cgraphunit.o): Likewise. + +2012-04-10 Ulrich Weigand + + PR tree-optimization/52870 + * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that + presumed pattern statement is within the same loop or basic block. + +2012-04-10 Tristan Gingold + + * gengtype.c (main): Make uintptr_t a known type. + +2012-04-10 Richard Guenther + + * tree-pass.h (tree_lowering_passes): Remove. + * tree-optimize.c (tree_lowering_passes): Remove. + * cgraph.c (cgraph_add_new_function): Inline relevant parts + of tree_lowering_passes, avoid redundant call of early local passes. + * cgraphunit.c (cgraph_lower_function): Fold into ... + (cgraph_analyze_function): ... its single caller. Inline + relevant parts of tree_lowering_passes. + +2012-04-09 H.J. Lu + + PR other/52777 + * config/pa/pa.opt: Remove SIO and GNU_LD. + +2012-04-09 Jan Hubicka + + PR lto/52722 + PR lto/51765 + PR lto/52634 + * lto-cgraph.c (compute_ltrans_boundary): When alias is in the + boundary, add its target too. + * lto.c (add_references_to_partition): Add also aliased nodes. + (add_cgraph_node_to_partition, + add_varpool_node_to_partition): Work on nodes, not functions/variables; + when adding alias, add also the aliased object. + +2012-04-09 Uros Bizjak + + PR target/52883 + * config/i386/predicates.md (x86_64_zext_general_operand): Prevent + VOIDmode immediate operands. + * config/i386/constraints.md (Wz): New constraint. + * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z. + +2012-04-09 Eric Botcazou + + PR target/52717 + * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on + the DECL generated for the special GOT helper. + +2012-04-09 Oleg Endo + + * config/sh/constraints.md: Update list of constraints in + comment block. + (Sr0): Remove unused memory constraint. + +2012-04-08 Manuel López-Ibáñez + + * tree-pretty-print.h: Update comment. + +2012-04-08 Oleg Endo + + * config/sh/sh.md: Use braced string notation where applicable. + (*prefetch_i4, prefetch_m2a): Merge into ... + (*prefetch): ... this new insn. + +2012-04-07 Oleg Endo + + * config/sh/sh.h (high_life_started): Remove + * config/sh/predicates.md (general_movdst_operand): Use + 'reload_in_progress' instead of 'high_life_started'. + * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine, + divsi_inv_fp): Likewise. + +2012-04-07 Oleg Endo + + * config/sh/sh-protos.h (prepare_move_operands): Return void + instead of int. + * config/sh/sh.c (prepare_move_operands): Likewise. + * config/sh/sh.md: Remove return value checks of prepare_move_operands. + +2012-04-07 Oleg Endo + + * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand, + general_movsrc_operand, general_movdst_operand, arith_reg_operand, + fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand, + logical_operand, fpscr_operand, fpul_operand, expand_fp_branch, + commutative_float_operator, noncommutative_float_operator, + sh_handle_pragma): Remove. + +2012-04-06 Sandra Loosemore + + * doc/invoke.texi: Clean up Texinfo markup throughout the file. + Use @option markup on command-line options. Use @samp markup on + literal keywords to options. Use @code markup on code fragments. + Use other markup in preference to quotation marks in the text. + Add markup to some passages without any. + +2012-04-06 Mike Stump + + * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning. + +2012-04-06 Oleg Endo + + * config/sh/sh.c (hi_const): Remove. + (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead + of hi_const. + +2012-04-06 Oleg Endo + + * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int + to bool. + * config/sh/sh.c (sh_expand_t_scc): Likewise. + * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before + calling sh_expand_t_scc. + +2012-04-06 Oleg Endo + + * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand, + nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt, + sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand, + reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok, + sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p, + sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p, + check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p, + sh2a_is_function_vector_call): Use bool as return type. + (sh_pass_in_reg_p): Remove. + * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure, + flow_dependent_p, sh2a_function_vector_p, expand_block_move, + expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, + sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p, + sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p, + sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand, + fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch, + sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p, + sh_loads_bankedreg_p): Use bool as return type. + (nonpic_symbol_mentioned_p): Use bool as return type. Remove + 'register' modifier. + +2012-04-06 Matt Turner + + * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc". + +2012-04-06 Eric Botcazou + + * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member + of the destination isn't also a FP_REGS register. + +2012-04-05 Teresa Johnson + H.J. Lu + + * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL. + * config/i386/i386.md (move immediate to memory peephole2): + Add cases for HImode move when LCP stall avoidance is needed. + * config/i386/i386.c (initial_ix86_tune_features): Initialize + X86_TUNE_LCP_STALL entry. + +2012-04-05 Uros Bizjak + + PR target/52882 + * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode + CONST_INT operands, zero-extended with AND. + +2012-04-05 Oleg Endo + + PR target/50751 + * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the + first argument instead of mode size. Move displacement calculations + to ... + (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask): + ... these new functions. + (disp_adjust): Remove max_mov_disp field. + (sh_legitimate_index_p): Use max_mov_insn_displacement and + mov_insn_alignment_mask. + (sh_address_cost): Use max_mov_insn_displacement. + +2012-04-05 Andrew Stubbs + + * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8. + (arch_enabled): Handle new arch types. + (one_cmpldi2): Add NEON support. + +2012-04-05 Richard Guenther + + * gimple.c (walk_gimple_op): Compute val_only for the LHS + of an assigment in the canonical way, avoiding is_gimple_mem_rhs. + (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ... + * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): + ... here and make static. + * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): + Remove. + +2012-04-05 Richard Guenther + + * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt + basic-block before removing it. + +2012-04-05 Richard Guenther + + * tree-ssanames.c (release_dead_ssa_names): Compact the SSA + version namespace as we release the freelist. + +2012-04-05 Richard Guenther + + * tree-nrv.c (tree_nrv): Release VDEFs. + * tree-sra.c (sra_modify_constructor_assign): Likewise. + (sra_modify_assign): Likewise. + * tree-vect-stmts.c (vect_remove_stores): Likewise. + * tree-vect-loop.c (vect_transform_loop): Likewise. + * tree-ssa-dom.c (optimize_stmt): Likewise. + * tree-vect-slp.c (vect_schedule_slp): Likewise. + * tree-ssa-math-opts.c (execute_cse_sincos): Likewise. + +2012-04-05 Richard Guenther + + * gimple-iterator.c (gsi_remove): Return whether EH edges need to be + cleanup. + * gimple.h (gsi_remove): Adjust. + * tree-ssa-operands.c (unlink_stmt_vdef): Optimize. + * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result. + * tree-ssa-dse.c (dse_optimize_stmt): Likewise. + * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise. + * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise. + * tree-ssa-pre.c (eliminate): Likewise. + +2012-04-04 Mike Stump + + * doc/rtl.texi (const_double): Document as sign-extending. + * expmed.c (expand_mult): Ensure we don't use shift incorrectly. + * emit-rtl.c (immed_double_int_const): Refine to state the + value is signed. + * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than + CONST_DOUBLE integers. + (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no + negative values are converted. Fix conversions bigger than + HOST_BITS_PER_WIDE_INT. + (simplify_binary_operation_1): Ensure we don't use shift incorrectly. + (simplify_immed_subreg): Sign-extend CONST_DOUBLEs. + * explow.c (plus_constant_mode): Add. + (plus_constant): Implement with plus_constant_mode. + * rtl.h (plus_constant_mode): Add. + +2012-04-04 Richard Guenther + + PR tree-optimization/52808 + * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks. + * Makefile.in (tracer.o): Depend on $(CFGLOOP_H). + +2012-04-04 Tristan Gingold + + * expr.c (expand_expr_real_2): Handle larger sizetype in + POINTER_PLUS_EXPR. + +2012-04-03 Kaz Kojima + + * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only + to m2a-single instead of m2e. + +2012-04-03 Eric Botcazou + + * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS. + Change type of BITOFFSET to signed. Make sure the lower bound of + the computed range is non-negative by adjusting OFFSET and BITPOS. + (expand_assignment): Adjust call to get_bit_range. + +2012-04-03 Sandeep Kumar Singh + + * h8300/h8300.c (h8300_current_function_monitor_function_p): + New function. Added to check monitor functions. + (h8300_option_override): Modified to generate error/warning + messages for invalid combinations of different command line + options. + * h8300/h8300.md: Generate 'rte' for monitor functions. Do not + save EXR on stack for monitor function in case of H8S target + when "-mno-exr" is passed. + * h8300/h8300-protos.h (h8300_current_function_monitor_function_p): + Add prototype. + * doc/invoke.texi: Document H8S options. + +2012-04-03 Tristan Gingold + + * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead + of gcc_AC_FUNC_MMAP_BLACKLIST. + * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove. + * Makefile.in (aclocal_deps): Add mmap.m4. + * configure: Regenerate. + * aclocal.m4: Regenerate. + +2012-04-03 Richard Guenther + + PR tree-optimization/52808 + * tracer.c (tail_duplicate): Return whether we have duplicated + any block. + (tracer): If we have duplicated any block, cleanup the CFG. + * cfghooks.c (duplicate_block): If we duplicated a loop + header but not its loop, destroy the loop because it now has + multiple entries. + * tree-ssa-threadupdate.c (thread_through_loop_header): Tell + the cfg manipulation routines we are not creating a multiple + entry loop. + +2012-04-03 Tristan Gingold + + * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle + 'byte' alignment. + (vms_c_common_override_options): Allow parameterless variadic + functions. + +2012-04-03 Jakub Jelinek + + PR tree-optimization/52835 + * tree-data-ref.c (build_rdg): Return NULL if + compute_data_dependences_for_loop failed. + +2012-04-03 Eric Botcazou + + * varasm.c (initializer_constant_valid_for_bitfield_p): Return true + for REAL_CST as well. + (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate. + In the bitfield case, if the value is a REAL_CST, convert it first to + an INTEGER_CST. + +2012-04-02 H.J. Lu + + * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h + for --with-abi={x32|mx32} or --with-multilib-list=mx32. + (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*. + + * config/i386/biarchx32.h: New. + +2012-04-02 Anatoly Sokolov + + * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove. + * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define. + (arm_preferred_reload_class): New function. + +2012-04-02 Richard Guenther + + PR tree-optimization/52756 + * tree-ssa-threadupdate.c (def_split_header_continue_p): New function. + (thread_through_loop_header): After threading through the loop latch + remove the split part from the loop and clear further threading + opportunities that would create a multiple entry loop. + +2012-04-02 Richard Guenther + + PR rtl-optimization/52800 + * cprop.c (execute_rtl_cprop): Call cleanup_cfg with + CLEANUP_CFG_CHANGED. + +2012-04-02 Richard Guenther + + PR middle-end/52803 + * loop-init.c (gate_handle_loop2): Destroy loops here if + we don't enter RTL loop optimizers. + +2012-04-02 Uros Bizjak + + Partially revert: + 2012-03-29 Richard Guenther + + * rtl.h (extended_count): Remove. + * combine.c (extended_count): Remove. + +2012-04-02 Dodji Seketeli + + PR c++/40942 + * pt.c (more_specialized_fn): Don't apply decay conversion to + types of function parameters. + +2012-04-02 Tristan Gingold + + * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2) + (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry) + (alloc_page, init_ggc, clear_marks, struct ggc_pch_data) + (ggc_pch_this_base): Use uintptr_t instead of size_t. + +2012-03-31 H.J. Lu + + PR bootstrap/52784 + * config/i386/i386.c (ix86_option_override_internal): Don't + check TARGET_64BIT if TARGET_64BIT_DEFAULT is false. + +2012-03-31 Eric Botcazou + + * tree-cfg.c (call_can_make_abnormal_goto): New predicate. + (stmt_can_make_abnormal_goto): Use it. + (is_ctrl_altering_stmt): Likewise. + +2012-03-30 Naveen H.S + Kaz Kojima + + * config/sh/sh.c (push_regs): Skip banked registers when + resbank attribute is specified. + (sh_expand_epilogue): Likewise. + +2012-03-30 Richard Henderson + + PR debug/52727 + * combine-stack-adj.c (prev_active_insn_bb): New. + (next_active_insn_bb): New. + (force_move_args_size_note): New. + (combine_stack_adjustments_for_block): Use it. + +2012-03-30 Richard Henderson + + * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p. + (ix86_expand_vector_init_duplicate): Initialize it. + (expand_vec_perm_palignr): Likewise. + (ix86_expand_vec_perm_const): Likewise. + (ix86_vectorize_vec_perm_const_ok): Likewise. + (expand_vec_perm_blend): Use it. + (expand_vec_perm_vpermil): Likewise. + (expand_vec_perm_pshufb): Likewise. + (expand_vec_perm_1): Likewise. + (expand_vec_perm_pshuflw_pshufhw): Likewise. + (expand_vec_perm_interleave2): Likewise. + (expand_vec_perm_vpermq_perm_1): Likewise. + (expand_vec_perm_vperm2f128): Likewise. + (expand_vec_perm_interleave3): Likewise. + (expand_vec_perm_vperm2f128_vblend): Likewise. + (expand_vec_perm_vpshufb2_vpermq): Likewise. + (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,. + (expand_vec_perm_broadcast): Likewise. + (expand_vec_perm_vpshufb4_vpermq2): Likewise. + +2012-03-30 Richard Henderson + + * dwarf2out.c (gen_variable_die): Initialize off. + +2012-03-30 Tristan Gingold + + * config/vms/vms-f.c: New file. + * config/vms/t-vms (vms-f.o): New rule. + * config.gcc (*-*-*vms*): Define fortran_target_objs. + +2012-03-30 Richard Guenther + + PR tree-optimization/52754 + * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only + propagate arbitrary addresses into really plain dereferences. + +2012-03-30 Richard Guenther + + PR middle-end/52772 + * except.c (emit_to_new_bb_before): Move loop updating ... + (dw2_build_landing_pads): ... here. Use a proper block for + querying the loop father. + +2012-03-30 Tristan Gingold + + * config/ia64/ia64.c (ia64_section_type_flags): Remove + common_object attribute handling. + (SECTION_VMS_OVERLAY): Remove + (ia64_vms_common_object_attribute): Replace abort with an assert. + Do not set DECL_SECTION_NAME. + (ia64_vms_output_aligned_decl_common): Handle common_object + attribute. + (ia64_vms_elf_asm_named_section): Remove. + * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove. + +2012-03-30 Richard Guenther + + PR middle-end/52786 + * double-int.c (rshift_double): Remove not needed cast. + +2012-03-30 Richard Guenther + + * tree-affine.h (print_aff): Remove. + * tree-affine.c (print_aff): Make static. + * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove. + (get_references_in_stmt): Likewise. + (print_direction_vector): Likewise. + (print_dir_vectors): Likewise. + (print_dist_vectors): Likewise. + (dump_subscript): Likewise. + (dump_ddrs): Likewise. + (dump_dist_dir_vectors): Likewise. + (dump_data_references): Likewise. + (dump_data_dependence_relation): Likewise. + (dump_data_dependence_direction): Likewise. + (dump_rdg_vertex): Likewise. + (dump_rdg_component): Likewise. + (debug_ddrs): Declare. + (struct data_ref_loc_d): Move ... + * tree-data-ref.c (struct data_ref_loc_d): ... here. + (get_references_in_stmt): Make static. + (dump_data_references): Likewise. + (dump_subscript): Likewise. + (print_direction_vector): Likewise. + (print_dir_vectors): Likewise. + (print_dist_vectors): Likewise. + (dump_data_dependence_relation): Likewise. + (dump_dist_dir_vectors): Likewise. + (dump_ddrs): Likewise. + (dump_rdg_vertex): Likewise. + (dump_rdg_component): Likewise. + (debug_ddrs): New function. + (access_matrix_get_index_for_parameter): Remove. + +2012-03-30 Tristan Gingold + + * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename. + (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New. + (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL) + (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE) + (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New. + (vms_patch_builtins): Handle new flags + * config/vms/vms-crtlmap.map: Completed using nm on + c and math system libraries. + * config/vms/make-crtlmap.awk: Handle any number of flags. + +2012-03-30 Martin Jambor + + * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there + is a builtin_stack_save in a dominating BB. + +2012-03-29 Uros Bizjak + + * config/i386/sse.md (avx_hv4df3): Fix results + crossing 128bit lane boundary. + +2012-03-29 Vladimir Makarov + + * ira-color.c (setup_left_conflict_sizes_p): Process all + conflicting objects. + +2012-03-29 Jakub Jelinek + + PR tree-optimization/52760 + * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p + shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type). + +2012-03-29 Richard Guenther + + * cgraph.h (cgraph_materialize_all_clones): Remove. + (reset_inline_failed): Likewise. + * cgraphunit.c (cgraph_materialize_all_clones): Make static. + * cgraphbuild.c (reset_inline_failed): Remove. + * rtl.h (cse_main): Remove. + (extended_count): Likewise. + * cse.c (dump_class): Mark as DEBUG_FUNCTION. + (cse_main): Make static. + * combine.c (extended_count): Remove. + (dump_combine_stats): Mark as DEBUG_FUNCTION. + * basic-block.h (reorder_basic_blocks): Remove. + * bb-reorder.c (reorder_basic_blocks): Make static. + * Makefile.in (dse.o): Remove dse.h dependency. + * dse.h: Remove. + * dse.c (gate_dse): Remove. + (clear_alias_mode_eq): Likewise. + (clear_alias_mode_hash): Likewise. + (dse_record_singleton_alias_set): Likewise. + (dse_invalidate_singleton_alias_set): Likewise. + +2012-03-29 H.J. Lu + + * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use + crtbegin_so%O%s for -shared. + (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared. + +2012-03-29 Richard Guenther + + * tree-flow.h (struct pre_expr_d): Remove forward declaration. + (add_to_value): Remove. + (print_value_expressions): Likewise. + * tree-ssa-pre.c (add_to_value): Make static. + (print_value_expressions): Likewise. + * gimple.h (gimple_adjust_this_by_delta): Remove. + * gimple-fold.c (gimple_adjust_this_by_delta): Likewise. + +2012-03-29 Richard Guenther + + PR middle-end/50708 + * double-int.h (rshift_double): Remove. + * double-int.c (lshift_double): Use absu_hwi to make count positive. + (rshift_double): Make static, take unsigned count argument, + remove handling of negative count argument. + (double_int_rshift): Dispatch to lshift_double. + +2012-03-28 H.J. Lu + + * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add + OPTION_MASK_ABI_64. + * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2. + (SPEC_X32): Likewise. + (MULTILIB_DEFAULTS): Likewise. + * config/i386/i386.c (isa_opts): Remove -m64. + (ix86_target_string): Properly handle -m32/-m64/-mx32. + (ix86_option_override_internal): Properly + set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as + handle -m32, -m64 and -mx32. + * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32 + with OPTION_ABI_X32. Moved after TARGET_LP64. + (TARGET_LP64): Changed to OPTION_ABI_64. + * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64. + (mx32): Replace ISA_X32 with ABI_X32. + +2012-03-28 Eric Botcazou + + * tree.c (tree_size) : New case. + +2012-03-28 Uros Bizjak + + * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes. + (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls. + +2012-03-28 Jakub Jelinek + + PR middle-end/52691 + * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize + __builtin_va_start to __builtin_next_arg if the latter is + builtin_decl_explicit_p rather than when it is not. + + PR middle-end/52750 + * tree-vect-generic.c (vector_element): Perform multiplication + for pos in bitsizetype type instead of idx type. + +2012-03-28 Richard Guenther + + * loop-init.c (loop_optimizer_init): If loops are preserved + perform incremental initialization of required loop features. + (loop_optimizer_finalize): If loops are to be preserved only + clean up optional loop features. + (rtl_loop_done): Forcefully free loops here. + * cgraph.c (cgraph_release_function_body): Forcefully free loops. + * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks + to existing loops. + (construct_init_block): Likewise. + (construct_exit_block): Likewise. + (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup + the CFG after expanding. + * cfgloop.c (verify_loop_structure): Calculate or verify dominators. + If we needed to calculate them, free them afterwards. + * tree-pass.h (PROP_loops): New define. + * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops. + * basic-block.h (CLEANUP_CFG_CHANGED): New. + * cfgcleanup.c (merge_blocks_move): Protect loop latches. + (cleanup_cfg): If we did something and have loops around, fix them up. + * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg + with CLEANUP_CFG_CHANGED. + * cfghooks.c (merge_blocks): If we merge a loop header into + its predecessor, update the loop structure. + (duplicate_block): If we copy a loop latch, adjust loop state + to note we may have multiple latches. + (delete_basic_block): Mark loops for fixup if we remove a loop. + * cfganal.c (forwarder_block_p): Protect loop latches, headers + and preheaders. + * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches. + (cfg_layout_can_merge_blocks_p): Likewise. + * cprop.c (bypass_block): If we create a loop with multiple + entries, mark it for removal. + * except.c (emit_to_new_bb_before): Add the new basic-block + to existing loops. + * tree-eh.c (lower_resx): Likewise. + * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops. + (expand_omp_taskreg): Likewise. + * tree-inline.c (initialize_cfun): Likewise. + * tree-mudflap.c (add_bb_to_loop): Prototype. + (mf_build_check_statement_for): Properly add new basic-blocks + to existing loops. + * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup + if we remove a loop. + (thread_through_loop_header): Likewise. + * trans-mem.c (tm_log_emit_save_or_restores): Properly add + new basic-blocks to existing loops. + (expand_transaction): Likewise. + * Makefile.in (except.o): Add $(CFGLOOP_H). + (expr.o): Likewise. + (cgraph.o): Likewise. + (cprop.o): Likewise. + (cfgexpand.o): Likewise. + (cfganal.o): Likewise. + (trans-mem.o): Likewise. + (tree-eh.o): Likewise. + +2012-03-28 Georg-Johann Lay + + PR target/52692 + * config/avr/avr.c (TARGET_BUILTIN_DECL): New define. + (avr_builtin_decl): New static function. + (struct avr_builtin_description, avr_bdesc): Move up. + Add GTY marker. Add field fndecl. Remove redundant field id. + (avr_init_builtins): Initialize avr_bdesc[ID].fndecl. + (avr_expand_builtin): Code cleanup because .id is removed. + +2012-03-28 Georg-Johann Lay + + PR target/52737 + * config.gcc (tm_file): Remove avr/multilib.h. + + * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack. + + * config/avr/genmultilib.awk: Remove code to generate multilib.h. + (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack. + * config/avr/t-avr: Remove generation of multilib.h. + * config/avr/t-multilib: Regenerate. + * config/avr/multilib.h: Remove. + * config/avr/avr.opt (-msp8): New option. + (avr_sp8): New variable. + * config/avr/driver-avr.c (avr_device_to_sp8): New function. + * config/avr/avr.h (AVR_HAVE_SPH): New define. + (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8. + (avr_device_to_sp8): New prototype. + (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 } + (DRIVER_SELF_SPECS): New define. + * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines: + __AVR_SP8__, __AVR_HAVE_SPH__. + * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of + AVR_HAVE_8BIT_SP to decide if SP_H is present. + (avr_file_start): Ditto. + +2012-03-28 Jakub Jelinek + + PR target/52736 + * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0 + instead of 8 in adjust_address. + +2012-03-27 Aurelien Buhrig + + PR middle-end/51893 + * expmed.c (store_bit_field_1): Fix wordnum value for big-endian + targets. + +2012-03-27 Oleg Endo + + PR target/50751 + * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address): + Rearrange conditional logic. Move displacement address calculations + to ... + (sh_find_mov_disp_adjust): ... this new function. + +2012-03-27 H.J. Lu + + * config/arm/arm.opt (mapcs): Remove MaskExists. + * config/cris/linux.opt (mno-gotplt): Likewise. + * config/i386/i386.opt (mhard-float): Likewise. + (msse4): Likewise. + (mno-sse4): Likewise. + * config/m68k/m68k.opt (mhard-float): Likewise. + * config/mep/mep.op (mcop32): Likewise. + * config/pa/pa-hpux.opt (msio): Likewise. + * config/pa/pa64-hpux.opt (mgnu-ld): Likewise. + * config/picochip/picochip.opt (mlittle): Likewise. + * config/sh/sh.opt (mrenesas): Likewise. + * config/sparc/long-double-switch.opt (mlong-double-128): Likewise. + * config/sparc/sparc.opt (mhard-float): Likewise. + * config/v850/v850.opt (mv850es): Likewise. + * config/vax/vax.opt (mg-float): Likewise. + +2012-03-27 Martin Jambor + + PR middle-end/52693 + * tree-sra.c (sra_modify_assign): Do not call + load_assign_lhs_subreplacements when working with an unscalarizable + region. + +2012-03-27 Uros Bizjak + + PR target/52698 + * config/i386/i386-protos.h (ix86_legitimize_reload_address): + New prototype. + * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define. + * config/i386/i386.c: Include reload.h. + (ix86_legitimize_reload_address): New function. + +2012-03-27 H.J. Lu + + * opth-gen.awk: Allocated a bit for Mask and InverseMask if it + hasn't been allocated. Define a target macro for Mask and + InverseMask if it hasn't been defined. Remove MaskExists handling. + + * doc/options.texi: Remove MaskExists. + +2012-03-27 Chung-Lin Tang + + PR target/52667 + * config/sh/sh.c (find_barrier): Add equality check of last_got + to avoid going above orig insn. Update comments. + +2012-03-27 Richard Guenther + + PR middle-end/52720 + * fold-const.c (try_move_mult_to_index): Handle &x.array more + explicitely. + +2012-03-27 Eric Botcazou + + * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple + of a unit before computing the offset in units. + * expr.c (get_bit_range): Return the null range if the enclosing record + is part of a larger bit field. + +2012-03-27 Tristan Gingold + + * config/ia64/vms.h (CASE_VECTOR_MODE): Define. + * config/ia64/ia64.md: Remove mode in template. + Sign extend operand in expand_simple_binop. + * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use + CASE_VECTOR_MODE instead of TARGET_ILP32. + (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE. + +2012-03-26 Steven Bosscher + + * varasm.c (assemble_external): #if 0 out the new assert from the + previous commit, it breaks the Java and Go front ends. + +2012-03-26 Steven Bosscher + + * toplev.c (check_global_declaration_1): Do not call assemble_external. + * expr.c (emit_block_move_libcall_fn): Likewise. + (clear_storage_libcall_fn): Likewise. + (expand_expr_addr_expr_1): Likewise. + (expand_expr_real_1): Likewise. + * calls.c (rtx_for_function_call): Likewise. + + * varasm.c (assemble_external): Assert this function is only called + during or after expanding to RTL. + +2012-03-26 Martin Jambor + + PR tree-optimization/50052 + * tree-sra.c (tree_non_aligned_mem_p): Removed. + (tree_non_aligned_mem_for_access_p): Likewise. + (build_accesses_from_assign): Removed strict alignment requirements + checks. + (access_precludes_ipa_sra_p): Likewise. + +2012-03-26 Richard Guenther + + PR tree-optimization/52701 + * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always + compute and set the evolution part of PHI nodes. + +2012-03-26 Richard Guenther + + PR tree-optimization/52721 + * tree-vect-stmts.c (vect_init_vector): Handle scalars. + +2012-03-26 Ulrich Weigand + + PR tree-optimization/52686 + * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle + WIDEN_LSHIFT_EXPR. + +2012-03-26 Tristan Gingold + + * config/alpha/vms.h (LINK_SPEC): Simplify. + (STARTFILE_SPEC): Remove -mvms-return-codes handling. + (NAME__MAIN, SYMBOL__MAIN): Remove. + (VMS_DEBUG_MAIN_POINTER): Remove. + * config/ia64/vms.h: Likewise. + * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main + code to vms.c. Call vms_start_function. + * config/ia64/ia64.c (ia64_start_function): Likewise. + * config/vms/vms-protos.h (vms_start_function): Declare. + * config/vms/vms.c (vms_start_function): New function. + * config/vms/vms.h (MATH_LIBRARY): Define. + (VMS_DEBUG_MAIN_POINTER): Define. + +2012-03-26 Eric Botcazou + + PR rtl-optimization/52629 + * reload1.c (count_pseudo): Short-circuit common case. + (count_spilled_pseudo): Return early for pseudos without hard regs. + Assert that the pseudo has got a hard reg before manipulating it. + +2012-03-24 Jan Hubicka + + PR lto/51663 + * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here. + (decide_is_variable_needed): Do not handle toplevel reorder here. + * cgraph.h (varpool_can_remove_if_no_refs): Likewise. + * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars + even at -O0. + +2012-03-24 Eric Botcazou + + * expr.c (optimize_bitfield_assignment_op) : Use str_mode + and str_bitsize instead of more convoluted expressions. + +2012-03-24 Eric Botcazou + + PR target/52610 + * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon. + +2012-03-24 Eric Botcazou + + PR target/52656 + * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto. + +2012-03-23 Martin Jambor + + * tree-sra.c (build_accesses_from_assign): Remove FIXME comment. + +2012-03-23 Richard Guenther + + PR tree-optimization/52678 + * tree-vectorizer.h (struct _stmt_vec_info): Add + loop_phi_evolution_part member. + (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define. + * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize + STMT_VINFO_LOOP_PHI_EVOLUTION_PART. + * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): + Use the cached evolution part and the PHI nodes value from + the loop preheader edge instead of re-analyzing the evolution. + +2012-03-22 Maxim Kuvyrkov + + * config/mips/mips-tables.opt: Update. + * config/mips/mips.md (processor): Add xlp. + * config/mips/mips-cpus.def: Add xlp. + * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from + 5KF for now. + * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp. + * doc/invoke.texi: Mention XLP. + +2012-03-22 Jakub Jelinek + + PR middle-end/52547 + * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars + on any new_local_var_chain vars declared during recursing on + GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body. + +2012-03-22 Uros Bizjak + + * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h + (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h + (ASM_OUTPUT_LOCAL): Ditto. + (ASM_OUTPUT_COMMON): Remove. + * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF. + * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define. + +2012-03-22 Jan Hubicka + + PR middle-end/51737 + * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE + parameter. + * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype. + * ipa-inline-transform.c (save_inline_function_body): Remove + copied clone if needed. + * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update. + +2012-03-22 Richard Guenther + + PR middle-end/52666 + * fold-const.c (fold_ternary_loc): Fix typo. + +2012-03-22 Georg-Johann Lay + + PR target/52496 + * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER. + (unspecv): Add UNSPECV_MEMORY_BARRIER. + (cli_sei): Use unspec_volatile instead of unspec for memory barrier. + (delay_cycles_1, delay_cycles_2): Ditto. + (delay_cycles_3, delay_cycles_4): Ditto. + (nopv, *nopv): Ditto. + (sleep, *sleep): Ditto. + (wdr, *wdr): Ditto. + +2012-03-22 Richard Guenther + + PR tree-optimization/52548 + * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation + because of clobbers. + (prune_clobbered_mems): New function. + (compute_antic_aux): Use it to prune ANTIC_OUT. + (compute_partial_antic_aux): Use it to prune PA_IN. + (compute_avail): Only insert expressions into EXP_GEN that are not + invalidated when translated up to the beginning of the block. + +2012-03-22 Richard Guenther + + PR tree-optimization/52638 + * tree-vect-stmts.c (vect_init_vector_1): New function, split + out from ... + (vect_init_vector): ... here. Handle scalar vector inits. + (vect_get_vec_def_for_operand): Adjust. + (vectorizable_load): Likewise. + +2012-03-22 Uros Bizjak + + * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file. + (alpha*-*-freebsd*): Ditto. + (alpha*-*-netbsd*): Ditto. + (alpha*-*-openbsd*): Ditto. + * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove. + (DWARF2_DEBUGGING_INFO): Remove. + (PREFERRED_DEBUGGING_TYPE): Remove. + (ASM_FINAL_SPEC): Remove. + (IDENT_ASM_OP): Remove. + (ASM_OUTPUT_IDENT): Remove. + (SKIP_ASM_OP): Remove. + (ASM_OUTPUT_SKIP): Remove. + (ALIGN_ASM_OP): Remove. + (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove. + (ASM_OUTPUT_CASE_LABEL): Remove. + (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove. + (COMMON_ASM_OP): Remove. + (ASM_OUTPUT_ALIGNED_COMMON): Remove. + (ASCII_DATA_ASM_OP): Remove. + (READONLY_DATA_SECTION_ASM_OP): Remove. + (INIT_SECTION_ASM_OP): Remove. + (FINI_SECTION_ASM_OP): Remove. + (ASM_SECTION_START_OP): Remove. + (ASM_OUTPUT_SECTION_START_FILE): Remove. + (TARGET_ASM_NAMED_SECTION): Remove. + (TARGET_ASM_SELECT_SECTION): Remove. + (MAKE_DECL_ONE_ONLY): Remove. + (TYPE_ASM_OP): Remove. + (SIZE_ASM_OP): Remove. + (ASM_WEAKEN_LABEL): Remove. + (TYPE_OPERAND_FMT): Remove. + (ASM_DECLARE_RESULT): Remove. + (ASM_DECLARE_OBJECT_NAME): Remove. + (ASM_FINISH_DECLARE_OBJECT): Remove. + (ELF_ASCII_ESCAPES): Remove. + (ELF_STRING_LIMIT): Remove. + (STRING_ASM_OP): Remove. + (ASM_OUTPUT_EXTERNAL): Remove. + (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false. + * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine + before define. + (ASM_DECLARE_FUNCTION_NAME): Ditto. + (ASM_DECLARE_FUNCTION_SIZE): Ditto. + (ASM_GENERATE_INTERNAL_LABEL): Ditto. + (ASM_OUTPUT_SKIP): Ditto. + (READONLY_DATA_SECTION_ASM_OP): Remove. + (USER_LABEL_PREFIX): Remove. + (ASM_OUTPUT_ASCII): Remove. + (ASM_OUTPUT_CASE_LABEL): Remove. + (NO_DOLLAR_IN_LABEL): Undefine. + +2012-03-22 Richard Guenther + + PR tree-optimization/52459 + * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit + PHI insertion for calls. + +2012-03-21 Steven Bosscher + + * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg, + find_sets_in_insn, canonicalize_insn): Split out from ... + (cse_insn): ... here. + (invalidate_from_clobbers): Take an insn instead of the pattern. + +2012-03-21 Oleg Endo + + PR target/52479 + * config/sh/sh-protos.h (sh_fsca_df2int): Remove. + * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove. + * config/sh/sh.md (sindf2, cosdf2): Remove. + +2012-03-21 Kaz Kojima + + PR target/52642 + * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of + prologue for unwinder and profiler. + +2012-03-21 Andreas Tobler + + * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*. + Introduce emul_name to select the right linker emulation for + powerpc64-*-freebsd*. + * configure: Regenerate. + * config.gcc: Add bits to support powerpc64-*-freebsd*. + * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define. + * config/rs6000/freebsd64.h: New file. + * config/rs6000/rs6000.c (rs6000_option_override_internal): Use + POWERPC_FREEBSD. + (rs6000_savres_strategy): Likewise. + (rs6000_savres_routine_name): Likewise. + (rs6000_elf_file_end): Likewise. + * config/rs6000/t-freebsd64: New file. + * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the + rs6000_current_abi for 64-bit FreeBSD to ABI_AIX. + + * config/rs6000/freebsd64.h: Remove duplicated entries from last + commit. + * config/rs6000/t-freebsd64: Likewise. + +2012-03-21 Georg-Johann Lay + + PR rtl-optimization/52543 + PR target/52461 + * config/avr/avr-protos.h (avr_load_lpm): New prototype. + * config/avr/avr.c (avr_mode_dependent_address_p): New function. + (TARGET_MODE_DEPENDENT_ADDRESS_P): New define. + (avr_load_libgcc_p): Restrict to __flash loads. + (avr_out_lpm): Only handle 1-byte loads from __flash. + (avr_load_lpm): New function. + (avr_find_unused_d_reg): Remove. + (avr_out_lpm_no_lpmx): Remove. + (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM. + * config/avr/avr.md (unspec): Add UNSPEC_LPM. + (load__libgcc): Use UNSPEC_LPM instead of MEM. + (load_, load__clobber): New insns. + (mov): For multi-byte move from non-generic + 16-bit address spaces: Expand to load_ resp. + load__clobber. + (load_libgcc): Remove expander. + (split-lpmx): Remove split. + +2012-03-21 Richard Earnshaw + + * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart. + * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg. + All callers changed. + (Fixed_core_reg): New feature. + (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in + disassembly. + * neon-testgen.ml: Handle Fixed_core_reg. + +2012-03-21 Andrew Stubbs + + * config/arm/arm.c (thumb2_reorg): Add complete support + for 16-bit instructions. + * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes. + +2012-03-21 Richard Guenther + + PR tree-optimizer/52636 + * tree-vect-slp.c (vect_get_constant_vectors): Convert constants + to the appropriate type. + +2012-03-21 Richard Guenther + + * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) + dependencies. + * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function, + pass_jump, pass_initial_value_sets and pass_unshare_all_rtl. + * passes.c (init_optimization_passes): Remove pass_init_function, + pass_jump, pass_initial_value_sets and pass_unshare_all_rtl. + * tree-pass.h (pass_init_function): Remove. + (pass_jump): Remove. + (pass_initial_value_sets): Remove. + (pass_unshare_all_rtl): Remove. + * integrate.c (pass_initial_value_sets): Remove. + * emit-rtl.c (pass_unshare_all_rtl): Remove. + * tree.h (init_function_for_compilation): Remove. + * function.c (init_function_for_compilation): Remove. + (pass_init_function): Remove. + * cfgcleanup.c (rest_of_handle_jump): Remove. + (pass_jump): Remove. + +2012-03-20 Jason Merrill + + * tree-streamer-in.c (streamer_alloc_tree): Call + ggc_alloc_zone_cleared_tree_node instead of + ggc_alloc_zone_cleared_tree_node_stat. + +2012-03-20 Jonathan Wakely + + * doc/extend.texi (Template Instantiation): Remove anachronisms. + +2012-03-20 Jakub Jelinek + + PR target/52607 + * config/i386/i386.c (expand_vec_perm_vperm2f128): New function. + (ix86_expand_vec_perm_const_1): Call it. + + * config/i386/i386.c (vselect_insn): New variable. + (init_vselect_insn): New function. + (expand_vselect, expand_vselect_insn): Add testing_p argument. + Call init_vselect_insn if vselect_insn is NULL. Adjust + PATTERN (vselect_insn), instead of creating a new insn each time, + only emit a copy of it if not testing and recog has been successful. + (expand_vec_perm_pshufb, expand_vec_perm_1, + expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust + callers. + + PR target/52607 + * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2. + ("enabled" attribute): Handle avx2 and noavx2 isas. + * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast_1): + New insns. + (vec_dup): Add avx2 =x,x alternative. + (vec_dup splitter): Don't split if TARGET_AVX2. + (*avx_vperm_broadcast_): Don't split V4DFmode if TARGET_AVX2. + For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss. + * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps + for V8SFmode. + (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast_1 + if possible, handle also V8SFmode. + +2012-03-20 Richard Earnshaw + + * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates. + * arm/neon.md (neon_vceq, neon_vcge): Use + reg_or_zero_operand predicate. + (neon_vcle, neon_vclt): Use zero_operand predicate. + +2012-03-20 Jakub Jelinek + + * config/i386/i386.c (ix86_decompose_address) : + If operand isn't UNSPEC, return 0. + +2012-03-20 Richard Guenther + + * tree-pass.h (pass_rtl_eh): Remove. + * except.c (gate_handle_eh): Likewise. + (rest_of_handle_eh): Likewise. + (pass_rtl_eh): Likewise. + (finish_eh_generation): Export. + * except.h (finish_eh_generation): Declare. + * passes.c (init_optimization_passes): Remove pass_rtl_eh. + * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation + after expanding stack alignment. Instead of compacting blocks + call cleanup_cfg. + +2012-03-20 Richard Guenther + + * stor-layout.c (finish_bitfield_representative): Fallback + to conservative maximum size if the padding up to the next + field cannot be computed as a constant. + (finish_bitfield_layout): If we cannot compute the distance + between the start of the bitfield representative and the + bitfield member start a new representative. + * expr.c (get_bit_range): The distance between the start of + the bitfield representative and the bitfield member is zero + if the field offsets are not constants. + +2012-03-20 Tristan Gingold + + * tree.h (enum size_type_kind): Add stk_ prefix to constants, + convert in lowercase. + (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype) + (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust. + * stor-layout.c (sizetype_tab): Adjust. + (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE. + * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last + instead of type_kind_last. + * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int + instead of size_int_kind. + * doc/tm.texi.in (Type Layout): Document SIZETYPE. + * doc/tm.texi: Regenerate. + * defaults.h (SIZETYPE): Provide a default value. + * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int". + (SIZETYPE): Define. + +2012-03-20 Oleg Endo + + * config/sh/sh.md: Use braced string notation where applicable. + +2012-03-19 Uros Bizjak + + * config/i386/i386.md (allocate_stack): Simplify. + +2012-03-19 Uros Bizjak + + * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of + copy_to_mode_reg (Pmode, ...). + (expand_builtin_frame_address): Ditto. + * expr.c (emit_block_move_via_libcall): Ditto. + (set_storage_via_libcall): Ditto. + + * config/i386/i386.c (ix86_expand_movmem): Ditto. + (ix86_expand_setmem): Ditto. + (ix86_trampoline_init): DItto. + * config/i386/i386.md (cmpstrnsi): Ditto. + +2012-03-19 Sandra Loosemore + + * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete. + * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL. + * doc/invoke.texi (Option Summary): Remove -madjust-unroll. + (SH Options): Likewise. + +2012-03-19 Uros Bizjak + + * config/i386/i386.c (get_thread_pointer): Add tp_mode argument. + Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode. + (legitimize_tls_address) : Always generate + DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT. + (ix86_decompose_address): Allow zero extended UNSPEC_TP references. + + Revert: + 2012-03-13 Uros Bizjak + + * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New. + * config/i386/i386.c (ix86_decompose_address): Use + TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses. + (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load + thread pointer to a register. + + Revert: + 2012-03-10 H.J. Lu + + * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg) + if Pmode != word_mode. + (legitimize_tls_address): Call gen_tls_initial_exec_x32 if + Pmode == SImode for TARGET_X32. + * config/i386/i386.md (UNSPEC_TLS_IE_X32): New. + (tls_initial_exec_x32): Likewise. + +2012-03-19 Oleg Endo + + PR target/50751 + * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P, + DISP_ADDR_OFFSET): New macros. + * config/sh/sh.c (sh_address_cost): Add SH2A special case. + (sh_legitimate_index_p): Allow QImode displacements for non-SH2A. + (sh_legitimize_address): Add QImode displacement handling. + (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode + vector subregs. + (sh_secondary_reload): Add QImode displacement handling. + * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate. + * config/sh/constraints.md (K04, Snd, Sdd): New constraints. + * config/sh/sh.md (extendqisi2): Remove constraints from expander. + (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict + to register operands only. + (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns. + (extendqihi2): Change insn to expander. + (*extendqihi2_compact_reg): New insn. + (movqi_i, movqi): Replace with ... + (movqi, *movqi_reg_reg, *movqi_store_mem_disp12, + *movqi_load_mem_disp, *movqi_load_mem_disp): ... these. + Add new peepholes for QImode displacement addressing. + +2012-03-19 Paolo Carlini + + PR c++/14710 + * doc/invoke.texi: Document -Wuseless-cast. + +2012-03-19 Eric Botcazou + + * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move. + * tree.h (handled_component_p): Reorder cases. + * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do + not initialize unsignedp. + (loc_list_from_tree): Likewise. + (fortran_common): Likewise. + * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise. + +2012-03-19 Uros Bizjak + + * config/i386/i386.c (ix86_expand_prologue) : Use Pmode + mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode. + (ix86_expand_split_stack_prologue): Use ix86_gen_add3. + (ix86_split_long_move): Ditto. + (legitimize_tls_address): Use ix86_gen_sub3. + (construct_plt_address): Assert that Pmode == DImode. + +2012-03-18 Uros Bizjak + + * config/i386/i386.md: Remove empty predicates and/or constraints. + * config/i386/sync.md: Ditto. + * config/i386/sse.md: Ditto. + * config/i386/mmx.md: Ditto. + * config/i386/pentium.md: Ditto. + * config/i386/athlon.md: Ditto. + +2012-03-16 Richard Guenther + + PR tree-optimization/52603 + * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify + comment. + + Revert + 2012-03-14 Richard Guenther + + PR tree-optimization/52571 + * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move + flag_section_anchors check ... + (vect_can_force_dr_alignment_p): ... here. + +2012-03-16 Martin Jambor + + * expr.c (expand_expr_real_1): Handle misaligned scalar reads from + memory through MEM_REFs by calling extract_bit_field. + +2012-03-16 Richard Guenther + + * fold-const.c (native_interpret_expr): Also support POINTER_TYPE + and REFERENCE_TYPE interpretations. + (can_native_interpret_type_p): New function. + (fold_ternary_loc): Use native encode/interpret to fold + BIT_FIELD_REFs of constants. + +2012-03-16 Richard Guenther + + PR middle-end/52584 + * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs + of vector constants and constructors. + +2012-03-16 Richard Guenther + + * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use + VIEW_CONVERT_EXPR to convert constants. + (vect_is_simple_use): Treat all constants as vec_constant_def. + +2012-03-16 Richard Guenther + Kai Tietz + + PR middle-end/48814 + * gimplify.c (gimplify_self_mod_expr): Evaluate postfix + side-effects completely in the pre-queue and use a temporary + for the result. + +2012-03-16 Richard Guenther + + * stor-layout.c (finish_bitfield_representative): Fall back + to the conservative maximum size if we cannot compute the + size of the tail padding. + +2012-03-16 Tristan Gingold + + * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define + __CRTL_VER and __VMS_VER. + * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver + and vms_c_get_vms_ver. + * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New + functions. + * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER) + (VMS_DEFAULT_VMS_VER): Define. + * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER) + (VMS_DEFAULT_VMS_VER): Define. + +2012-03-16 Richard Guenther + + * tree-vect-loop.c (get_initial_def_for_induction): Use + build_constructor directly. + * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use + build_vector_from_val. + * tree.c (build_vector_from_val): Avoid creating a constructor + first when we want a constant vector. + +2012-03-16 Rainer Orth + + * doc/install.texi (Specific, *-*-solaris2*): Improve wording. + +2012-03-16 Richard Guenther + + * tree.h (TREE_VECTOR_CST_ELTS): Remove. + (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines. + (struct tree_vector): Remove elements member, add variable size + elts array member. + (build_vector_stat): Declare. + (build_vector): Define in terms of build_vector_stat. + * tree.c (build_vector): Rename to ... + (build_vector_stat): ... this. Take array of trees as parameter. + (build_vector_from_ctor): Adjust. + (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr, + initializer_zerop): Adjust. + * cfgexpand.c (expand_debug_expr): Likewise. + * expr.c (categorize_ctor_elements_1, expand_expr_real_1, + const_vector_from_tree): Likewise. + * fold-const.c (const_binop, operand_equal_p, native_encode_vector, + native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array, + fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise. + * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR. + (lto_input_ts_vector_tree_pointers): Adjust. + * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR. + (write_ts_vector_tree_pointers): Adjust. + * varasm.c (const_hash_1, compare_constant, copy_constant, + output_constant): Adjust. + * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust. + * print-tree.c (print_node): Adjust. + * tree-pretty-print.c (dump_generic_node): Adjust. + * tree-vect-generic.c (uniform_vector_p, vector_element, + lower_vec_perm): Adjust. + * tree-vect-loop.c (get_initial_def_for_reduction): Adjust. + * tree-vect-slp.c (vect_get_constant_vectors, + vect_transform_slp_perm_load): Adjust. + * tree-vect-stmts.c (vect_gen_perm_mask): Adjust. + * expmed.c (make_tree): Adjust. + * config/i386/i386.c (ix86_expand_builtin): Adjust. + * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface + and implementation. + (sparc_fold_builtin): Adjust. + +2012-03-16 Tristan Gingold + + * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file. + * config/vms/vms-stdint.h: New file. + +2012-03-16 Tristan Gingold + + * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*) + (ia64-hp-*vms*): Replaced by ... + (*-*-*vms*): ... This new entry. + +2012-03-15 Jakub Jelinek + + PR target/52568 + * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function. + (ix86_expand_vec_perm_const_1): Use it. + + PR target/52568 + * config/i386/sse.md (UNSPEC_VPERMDF): Remove. + (avx2_permv4df): Remove. + (avx2_permv4di): Macroize into... + (avx2_perm): ... this using VI8F_256 iterator. + (avx2_permv4di_1): Macroize into... + (avx2_perm_1): ... this using VI8F_256 iterator. + +2012-03-15 Ulrich Weigand + + * combine.c (apply_distributive_law): Do not distribute SUBREG. + +2012-03-15 Ira Rosen + Ulrich Weigand + + * tree-vect-patterns.c (widened_name_p): Rename to ... + (type_conversion_p): ... this. Add new argument to determine + if it's a promotion or demotion operation. Check for + CONVERT_EXPR_CODE_P instead of NOP_EXPR. + (vect_recog_dot_prod_pattern): Call type_conversion_p instead + widened_name_p. + (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern, + vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern): + Likewise. + (vect_recog_mixed_size_cond_pattern): Likewise and allow + non-constant then and else clauses. + +2012-03-15 Ira Rosen + Ulrich Weigand + + * tree-vectorizer.h (vect_pattern_recog): Add new argument. + * tree-vect-loop.c (vect_analyze_loop_2): Update call to + vect_pattern_recog. + * tree-vect-patterns.c (widened_name_p): Pass basic block + info to vect_is_simple_use. + (vect_recog_dot_prod_pattern): Fail for basic blocks. + (vect_recog_widen_sum_pattern): Likewise. + (vect_handle_widen_op_by_const): Support basic blocks. + (vect_operation_fits_smaller_type, + vect_recog_over_widening_pattern): Likewise. + (vect_recog_vector_vector_shift_pattern): Support basic blocks. + Update call to vect_is_simple_use. + (vect_recog_mixed_size_cond_pattern): Support basic blocks. + Add printing. + (check_bool_pattern): Add an argument, update call to + vect_is_simple_use and the recursive calls. + (vect_recog_bool_pattern): Update relevant function calls. + Add printing. + (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info. + (vect_pattern_recog_1): Check for reduction only in loops. + (vect_pattern_recog): Add new argument. Support basic blocks. + * tree-vect-stmts.c (vectorizable_conversion): Pass basic block + info to vect_is_simple_use_1. + * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks. + (vect_slp_analyze_bb_1): Call vect_pattern_recog. + +2012-03-15 Jakub Jelinek + Andrew Pinski + + PR middle-end/52592 + * builtins.c (expand_builtin_int_roundingfn_2): If expanding + BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}* + calls instead of __builtin_ir{int,ound}*. + +2012-03-15 Bernhard Reutner-Fischer + + * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update + documentation. + +2012-03-15 Ramana Radhakrishnan + + * config.gcc (target_type_format_char): New. Document it. Set it for + arm*-*-* . + * configure.ac (gnu_unique_option): Use target_type_format_char + in test. Comment rationale. + * configure: Regenerate . + +2012-03-15 Jakub Jelinek + + PR tree-optimization/52267 + * tree-vrp.c (masked_increment): New function. + (register_edge_assert_for_2): Derive ASSERT_EXPRs + from (X & CST1) cmp CST2 tests. + +2012-03-15 Richard Guenther + + PR middle-end/52580 + * tree-data-ref.c (subscript_dependence_tester_1): Check + all dimensions for non-conflicting access functions. + +2012-03-15 Manuel López-Ibáñez + + PR c++/44783 + * doc/invoke.texi [C++ Language Options]: Document + -ftemplate-backtrace-limit. + +2012-03-15 Tristan Gingold + + * c-parser.c (c_parser_parameter_declaration): Handle #pragma + before a parameter. + +2012-03-15 Tristan Gingold + + * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to + use DW_OP_call_frame_cfa. + +2012-03-14 H.J. Lu + + PR target/50797 + * config/i386/i386-opts.h (pmode): New. + * config/i386/i386.c (ix86_option_override_internal): Properly + check and set ix86_pmode. + * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT. + * config/i386/i386.opt (maddress-mode=): New. + * doc/invoke.texi: Document -maddress-mode=short|long for x86. + +2012-03-14 Rainer Orth + + * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling. + (dwarf2out_do_cfi_asm): Likewise. + * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO + handling. + (add_data_member_location_attribute): Likewise. + (gen_array_type_die): Likewise. + (gen_subprogram_die): Likewise. + (gen_producer_string): Likewise. + * sdbout.c (sdbout_begin_prologue): Declare unconditionally. + Remove MIPS_DEBUGGING_INFO handling. + (sdb_debug_hooks): Likewise. + (sdbout_begin_block): Likewise. + (sdbout_end_block): Likewise. + (sdbout_begin_prologue): Likewise. + (sdbout_start_source_file): Likewise. + (sdbout_end_source_file): Likewise. + (sdbout_init): Likewise. + * system.h (MIPS_DEBUGGING_INFO): Poison. + +2012-03-14 Rainer Orth + + * config/alpha/alpha.c [HAVE_STAMP_H]: Remove. + (alpha_file_start) [MS_STAMP]: Remove. + + * config/alpha/elf.h (TARGET_GAS): Remove. + * config/alpha/freebsd.h (TARGET_DEFAULT): Remove. + * config/alpha/linux.h (TARGET_DEFAULT): Remove. + * config/alpha/netbsd.h (TARGET_DEFAULT): Remove. + * config/alpha/vms.h (TARGET_DEFAULT): Remove. + * config.gcc (alpha*-*-linux*): Remove target_cpu_default. + (alpha*-*-freebsd*): Likewise. + (alpha*-*-netbsd*): Likewise. + (alpha*-*-openbsd*): Likewise. + (alpha*-*-*): Remove target_cpu_default2. + * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS + handling. + * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove. + (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove. + * config/alpha/alpha.c (print_operand): Always assume + TARGET_AS_SLASH_BEFORE_SUFFIX. + * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"): + Remove TARGET_AS_CAN_SUBTRACT_LABELS. + ("*builtin_setjmp_receiver_er_1"): Remove. + * config/alpha/alpha.opt (malpha-as): Remove. + (mgas): Ignore. + * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove + -malpha-as, -mgas. + Remove DEC Unix reference. + + * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove. + (EXTENDED_COFF): Remove. + * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef. + (EXTENDED_COFF): Don't undef. + * config/alpha/alpha.c (alpha_file_start): Always assume + OBJECT_FORMAT_ELF. + Don't set targetm.asm_file_start_file_directive. + [!OBJECT_FORMAT_ELF]: Remove. + (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove. + + * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove. + (DBX_DEBUGGING_INFO): Remove. + (MIPS_DEBUGGING_INFO): Remove. + (PREFERRED_DEBUGGING_TYPE): Remove. + (DBX_OUTPUT_SOURCE_LINE): Remove. + (SDB_OUTPUT_SOURCE_LINE): Remove. + (DBX_CONTIN_LENGTH): Remove. + (NO_DBX_FUNCTION_END): Remove. + (ASM_STABS_OP): Remove. + (ASM_STABN_OP): Remove. + (ASM_STABD_OP): Remove. + (SDB_ALLOW_FORWARD_REFERENCES): Remove. + (SDB_ALLOW_UNKNOWN_REFERENCES): Remove. + (PUT_SDB_DEF): Remove. + (PUT_SDB_PLAIN_DEF): Remove. + (PUT_SDB_TYPE): Remove. + (sdb_label_count): Remove. + (PUT_SDB_BLOCK_START): Remove. + (PUT_SDB_BLOCK_END): Remove. + (PUT_SDB_FUNCTION_START): Remove. + (PUT_SDB_FUNCTION_END): Remove. + (PUT_SDB_EPILOGUE_END): Remove. + * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef. + (MIPS_DEBUGGING_INFO): Don't undef. + (DBX_DEBUGGING_INFO): Don't undef. + * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef. + (MIPS_DEBUGGING_INFO): Don't undef. + (DBX_DEBUGGING_INFO): Don't undef. + * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove. + * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG + handling. + (alpha_start_function): Likewise. + (sdb_label_count): Remove. + (alpha_output_filename): Remove DBX_DEBUG handling. + (alpha_file_start): Likewise. + +2012-03-14 Rainer Orth + + * config.gcc (enable_obsolete): Remove *-*-solaris2.8*. + (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported. + (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove + Solaris 8 support. + * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*. + (ld_tls_support): Remove Solaris 8 references. + (lwp_dir, lwp_spec): Remove support for alternate thread library. + * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests. + * configure: Regenerate. + * config.in: Regenerate. + + * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC. + * config/i386/sol2.h: Remove Solaris 8 references. + + * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ... + (i?86-*-solaris2.9): ... this. + Remove Solaris 8 references. + (Specific, *-*-solaris2*): Document Solaris 8 removal. + Remove Solaris 8 references. + +2012-03-14 Rainer Orth + + * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5. + (mips-sgi-irix6.5*): Remove. + * config.host (mips-sgi-irix*): Remove. + * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*. + (set_have_as_tls): Remove *-*-irix6*. + (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*. + * configure: Regenerate. + + * config/mips/iris6.h: Remove. + * config/mips/iris6.opt: Remove. + * config/mips/t-irix6: Remove. + + * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling. + (TARGET_IRIX6): Remove. + (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling. + Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C. + * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6 + handling. + (mips_file_start): Likewise. + * config/mips/mips-protos.h (irix_asm_output_align): Remove. + + * config/mips/driver-native.c [__sgi__]: Remove. + (host_detect_local_cpu) [__sgi__]: Remove. + + * config/mips/gnu-user.h: Remove iris5.h reference. + + * config/mips/mips-modes.def: Remove IRIX 6 reference. + * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove. + * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]: + Remove. + + * gcc.c (main): Move asm_debug initialization ... + (asm_debug): ... here. + + * ginclude/stddef.h (__STDDEF_H__): Don't define. + + * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove. + * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison. + * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove. + (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove. + [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove. + * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): + Remove. + * doc/tm.texi: Regenerate. + + * doc/invoke.texi (Debugging Options, -gdwarf-): Remove + IRIX 6 reference. + (MIPS Options, -march): Remove IRIX reference. + * doc/install.texi (Binaries, SGI IRIX): Remove. + (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest + of section. + * doc/trouble.texi (Interoperation): Remove -lgl_s handling. + +2012-03-14 Martin Jambor + + * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE + when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases. + (expand_expr_real_1): Do not handle misalignment if modifier is + EXPAND_WRITE. + +2012-03-14 Richard Guenther + + PR middle-end/52584 + * tree-vect-generic.c (type_for_widest_vector_mode): Take + element type instead of mode, use build_vector_type_for_mode + instead of the langhook, build a vector of proper signedness. + (expand_vector_operations_1): Adjust. + +2012-03-14 Richard Guenther + + PR middle-end/52582 + * gimple-fold.c (canonicalize_constructor_val): Make sure we have + a cgraph node for a FUNCTION_DECL that comes from a constructor. + (gimple_get_virt_method_for_binfo): Likewise. + +2012-03-14 Richard Guenther + + PR tree-optimization/52571 + * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move + flag_section_anchors check ... + (vect_can_force_dr_alignment_p): ... here. Do not re-align + DECL_COMMON variables. + +2012-03-14 Richard Guenther + + * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define. + * stor-layout.c (start_bitfield_representative): New function. + (finish_bitfield_representative): Likewise. + (finish_bitfield_layout): Likewise. + (finish_record_layout): Call finish_bitfield_layout. + * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER + for QUAL_UNION_TYPE fields. + * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers): + Stream DECL_BIT_FIELD_REPRESENTATIVE. + * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise. + + PR middle-end/52080 + PR middle-end/52097 + PR middle-end/48124 + * expr.c (get_bit_range): Unconditionally extract bitrange + from DECL_BIT_FIELD_REPRESENTATIVE. + (expand_assignment): Adjust call to get_bit_range. + +2012-03-14 Richard Guenther + + PR middle-end/52578 + * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if + the outermost conversion is a sign-change only. + (fold_binary_loc): Disregard widening and sign-changing + conversions when we determine if two variables are equal + for reassociation. + * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to + (T1)x if the outermost conversion is a sign-change only. + +2012-03-14 Uros Bizjak + + Revert: + 2012-03-14 Uros Bizjak + + * config/i386/predicates.md (constant_call_address_operand): Declare + as special predicate. Update all uses. + +2012-03-13 Jakub Jelinek + + PR c/52577 + * c-parser.c (c_parser_postfix_expression) + : Call mark_exp_read on argument values. + + * config/i386/smmintrin.h: Avoid /* within a comment. + * config/i386/nmmintrin.h: Likewise. + +2012-03-13 Uros Bizjak + + * config/i386/i386.md (xbegin): Remove constraint from expander. + +2012-03-13 Uros Bizjak + + * config/i386/predicates.md (constant_call_address_operand): Declare + as special predicate. Update all uses. + * config/i386/i386.md: Remove mode from constant_call_address_operand + predicates. + * config/i386/i386.c (ix86_output_call_insn): Call + constant_call_address_operand with VOIDmode. + +2012-03-13 Uros Bizjak + + * config/i386/i386.c (ix86_decompose_address): Handle subregs of + AND zero extended address correctly. + +2012-03-13 Uros Bizjak + + * config/i386/predicates.md (tls_symbolic_operand): Declare as + special predicate. + (tls_modbase_operand): Ditto. + * config/i386/i386.md: Remove mode from tls_symbolic_operand and + tls_modbase_operand predicates. + +2012-03-13 Martin Jambor + + * expr.c (expand_assignment): Handle misaligned scalar writes to + memory through top-level MEM_REFs by calling store_bit_field. + +2012-03-13 Richard Guenther + + PR middle-end/52134 + * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y + if Y is a constant multiple of 1 << CST. + +2012-03-13 Georg-Johann Lay + + PR target/52488 + * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack + offset (size) to a value the insns can deal with. + (expand_epilogue): Ditto. + +2012-03-13 Matthew Gretton-Dann + + * config/arm/neon.ml (ops): Fixup expected instructions for + unsigned vector compares. + +2012-03-13 Uros Bizjak + + * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg) + addresses only when %reg is not in word mode. + +2012-03-13 Rainer Orth + + * config/microblaze/microblaze.md: Fix typo. + * tree-if-conv.c: Likewise. + * tree-vect-patterns.c: Likewise. + +2012-03-13 Rainer Orth + + * config.gcc (extra_passes): Remove. + * configure.ac (extra_passes): Don't substitute. + * configure: Regenerate. + * Makefile.in (EXTRA_PASSES): Remove. + (GCC_PASSES): Remove $(EXTRA_PASSES). + (MOSTLYCLEANFILES): Likewise. + (native): Likewise. + (install-common): Likewise. + +2012-03-13 Uros Bizjak + + * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New. + * config/i386/i386.c (ix86_decompose_address): Use + TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses. + (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load + thread pointer to a register. + +2012-03-12 H.J. Lu + + * config/i386/i386.md (*tls_global_dynamic_64_): Remove :P + on tls_symbolic_operand. + (tls_global_dynamic_64_): Likewise. + +2012-03-12 Georg-Johann Lay + + PR other/52545 + * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use + SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE. + +2012-03-12 Georg-Johann Lay + + PR target/52499 + * config/avr/avr.c (avr_mode_code_base_reg_class): Change return + type from reg_class_t to enum reg_class. + * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto. + +2012-03-12 Andrew Pinski + + * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function. + (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges. + (value_replacement): Likewise. + (empty_block_p): Check also if the PHIs for the block are empty. + +2012-03-12 Georg-Johann Lay + + PR target/52148 + * config/avr/avr.c (avr_out_movmem): Fix typo in output template + for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in + r184615 from 2012-02-28. + +2012-03-12 H.J. Lu + + * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New. + (ix86_gen_tls_local_dynamic_base_64): Likewise. + (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64 + and ix86_gen_tls_local_dynamic_base_64. + (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and + ix86_gen_tls_local_dynamic_base_64. + * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ... + (*tls_global_dynamic_64_): This. + (tls_global_dynamic_64): Renamed to ... + (tls_global_dynamic_64_): This. + (*tls_local_dynamic_base_64): Renamed to ... + (*tls_local_dynamic_base_64_): This. + (tls_local_dynamic_base_64): Renamed to ... + (tls_local_dynamic_base_64_): This. + +2012-03-12 H.J. Lu + + * config/i386/i386.c (ix86_option_override_internal): Properly + set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode, + instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3, + ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker, + ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range. + * config/i386/sse.md (sse3_monitor64): Renamed to ... + (sse3_monitor64_): This. + +2012-03-12 Tristan Gingold + + * config/ia64/ia64.c (ia64_function_arg_1): Move code around. + (ia64_function_arg_advance): Ditto. + +2012-03-12 Rainer Orth + + * config.gcc (mips*-*-openbsd*): Remove. + * config/mips/openbsd.h: Remove. + * config/mips/sdb.h: Remove. + + * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove. + * config/mips/mips.c (sdb_label_count): Remove. + (mips_debugger_offset): Remove #if 0 code. + (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove. + * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef. + +2012-03-12 Rainer Orth + + * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update + binutils reference. + (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference. + Update binutils references. + (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11. + Update binutils reference. + Update Sun as/GNU ld caveat. + Document binutils largefile requirement for LTO plugin. + Remove reference to alternate libpthread. + +2012-03-12 Rainer Orth + + * config.gcc (alpha*-dec-osf5.1*): Remove. + * config.host (alpha*-dec-osf*): Remove. + * configure.ac (*-*-osf*): Remove. + (alpha*-dec-osf*): Remove. + * configure: Regenerate. + + * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt, + config/alpha/va_list.h, config/alpha/x-osf: Remove. + + * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove. + * config/alpha/alpha.c (struct machine_function): Update comment. + (alpha_start_function): Remove Tru64 UNIX as handling for + max_frame_size. + * config/alpha/alpha.md ("exception_receiver"): Remove + TARGET_LD_BUGGY_LDGP. + ("*exception_receiver_2"): Likewise. + * except.c (finish_eh_generation): Remove Tru64 reference. + * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST. + * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison. + * target.def (handle_pragma_extern_prefix): Remove. + + * Makefile.in (mips-tfile.o-warn): Remove. + (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o. + (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove. + * mips-tdump.c, mips-tfile.c: Remove. + + * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma + extern_prefix. + * doc/install.texi (Binaries): Remove Tru64 UNIX reference. + (Specific, alpha*-dec-osf5.1): Note removal. + * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): + Remove. + * doc/tm.texi: Regenerate. + * doc/trouble.texi (Cross-Compiler Problems): Remove. + +2012-03-12 Richard Guenther + + * config/arm/arm.c (neon_dereference_pointer): Do not call + covert during RTL expansion. + +2012-03-12 Tristan Gingold + + * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS + Options. Mention -mpointer-size. + +2012-03-12 Richard Guenther + + * config/alpha/alpha.c (alpha_gimplify_va_arg): Use + build_nonstandard_integer_type. + +2012-03-12 Richard Guenther + + * tree.c (signed_or_unsigned_type_for): Use + build_nonstandard_integer_type. + (signed_type_for): Adjust documentation. + (unsigned_type_for): Likewise. + * tree-pretty-print.c (dump_generic_node): Use standard names + for non-standard integer types if available. + +2012-03-12 Tristan Gingold + + * config/vms/vms.opt: Add vms-opts.h header. + (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64 + target mask. + (-mvms-return-codes): Document. + (-mpointer-size): New option. + (vms_pointer_size): Add enumeration. + * config/vms/vms-opts.h: New file. + * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define + __INITIAL_POINTER_SIZE. + (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition. + (C_COMMON_OVERRIDE_OPTIONS): Define. + (DWARF2_ADDR_SIZE): Define. + * config/vms/vms.c (vms_patch_builtins): Adjust condition. + * config/vms/vms-protos.h (vms_c_common_override_options): + New prototype. + * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma + if -mno-pointer-size. + (vms_c_common_override_options): New function. + * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64. + * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64. + (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64 + and flag_vms_pointer_size. + (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size. + * config.gcc (*-*-*vms*): Define xm_file. + (alpha*-dec-*vms*): Do not define xm_file. + (alpha64-dec-*vms*): Remove. + (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file + and tmake_file. + +2012-03-12 Jakub Jelinek + + PR tree-optimization/51721 + * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar + if (int) unsvar cmp CST. + +2012-03-12 Richard Guenther + + * tree-sra.c (create_access_replacement): Only rename the replacement + if we can rewrite it into SSA form. Properly mark register typed + replacements that we cannot rewrite with TREE_ADDRESSABLE. + * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification + for aggregate or BLKmode results. + +2012-03-12 Jakub Jelinek + + PR tree-optimization/52533 + * tree-vrp.c (register_edge_assert_for_2): Use double_int + type for mask, only handle shifts by non-zero in-range + shift count, for LE_EXPR and GT_EXPR if new_val is + maximum, don't add the assertion. + +2012-02-12 Kirill Yukhin + + * doc/invoke.texi: Document -mrtm option. + * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New. + (OPTION_MASK_ISA_RTM_UNSET): Ditto. + (ix86_handle_option): Handle OPT_mrtm. + * config.gcc (i[34567]86-*-*): Add rtmintrin.h and + xtestintrin.h. + (x86_64-*-*): Ditto. + * i386-builtin-types.def (INT_FTYPE_VOID): New. + * config/i386/i386-c.c (ix86_target_macros_internal): Define + __RTM__ if needed. + (ix86_target_string): Define -mrtm option. + (PTA_RTM): New. + (ix86_option_override_internal): Extend "corei7-avx" with RTM option. + Handle new option. + (ix86_valid_target_attribute_inner_p): Add OPT_mrtm. + (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND, + IX86_BUILTIN_XTEST. + (bdesc_special_args): Ditto. + (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT. + (ix86_expand_special_args_builtin): Handle new built-in type. + (ix86_expand_builtin): Handle XABORT instruction. + * config/i386/i386.h (TARGET_RTM): New. + * config/i386/i386.md (UNSPECV_XBEGIN): New. + (UNSPECV_XEND): Ditto. + (UNSPECV_XABORT): Ditto. + (UNSPECV_XTEST): Ditto. + (xbegin): Ditto. + (xbegin_1): Ditto. + (xend): Ditto. + (xabort): Ditto + (xtest): Ditto. + (xtest_1): Ditto. + * config/i386/i386.opt (mrtm): New. + * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h. + * config/i386/rtmintrin.h: New header. + * config/i386/xtestintrin.h: Ditto. + +2012-03-12 Tristan Gingold + + * ginclude/stddef.h: Adjust previous patch. + Use __VMS__ instead of VMS. + +2012-03-12 Uros Bizjak + + * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2): + Also convert sequences with CC setting arithmetic instruction. + +2012-03-11 Sandra Loosemore + + * doc/invoke.texi (Option Summary): Move -no-integrated-cpp + from C Language Options to Preprocessor Options. + (C Dialect Options): Move -no-integrated-cpp documentation + from here... + (Preprocessor Options): ...to here. Rewrite the description + so it makes more sense, and remove discussion of merging front ends. + +2012-03-11 H.J. Lu + + * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size + needed for loop. + (ix86_expand_setmem): Likewise. + +2012-03-11 Uros Bizjak + + * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using + convert_to_mode. + +2012-03-11 H.J. Lu + + * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if + ptr_mode == SImode. Replace DImode with Pmode or ptr_mode. + +2012-03-11 H.J. Lu + + * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode. + +2012-03-11 H.J. Lu + + * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of + TARGET_64BIT. + +2012-03-11 H.J. Lu + Uros Bizjak + + * config/i386/predicates.md (call_insn_operand): Allow + constant_call_address_operand in Pmode only. + (sibcall_insn_operand): Ditto. + * config/i386/i386.md (*call): Use W mode iterator instead of P mode. + (*call_vzeroupper): Ditto. + (*sibcall): Ditto. + (*sibcall_vzeroupper): Ditto. + (*call_value): Ditto. + (*call_value_vzeroupper): Ditto. + (*sibcall_value): Ditto. + (*sibcall_value_vzeroupper): Ditto. + (*indirect_jump): Ditto. + (*tablejump_1): Ditto. + (indirect_jump): Convert memory address to word mode for TARGET_X32. + (tablejump): Ditto. + * config/i386/i386.c (ix86_expand_call): Convert indirect operands + to word mode. + +2012-03-11 Oleg Endo + + PR target/51244 + * config/sh/sh.md (movnegt): Expand into respective insns immediately. + Use movrt_negc instead of negc pattern for non-SH2A. + (*movnegt): Remove. + (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits. + +2012-03-10 H.J. Lu + + * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg) + if Pmode != word_mode. + (legitimize_tls_address): Call gen_tls_initial_exec_x32 if + Pmode == SImode for TARGET_X32. + * config/i386/i386.md (UNSPEC_TLS_IE_X32): New. + (tls_initial_exec_x32): Likewise. + +2012-03-10 Chung-Lin Tang + + PR rtl-optimization/52528 + * combine.c (can_combine_p): Add setting of subst_low_luid + before call to expand_field_assignment(). + +2012-03-09 Sandra Loosemore + + * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld", + and related program names. + +2012-03-09 Sandra Loosemore + + * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF". + +2012-03-09 Uros Bizjak + + PR target/52530 + * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier. + (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback + to set code to 'q'. + * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec. + (*movdi_internal_rex64): Use %E operand modifier for lea. + (*movsi_internal): Ditto. + (*lea_1): Ditto. + (*lea_2): Ditto. + (*lea_{3,4,5,6}_zext): Ditto. + (*tls_global_dynamic_32_gnu): Ditto. + (*tls_global_dynamic_64): Ditto. + (*tls_dynamic_gnu2_lea_32): Ditto. + (*tls_dynamic_gnu2_lea_64): Ditto. + (pro_epilogue_adjust_stack__add): Ditto. + +2012-03-09 Michael Meissner + + * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not + redefine to be NULL if the current bit-size is different from the + configured bit-size. + + * config/rs6000/rs6000.c (rs6000_option_override_internal): If the + cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to + set the default tuning. Add asserts to make sure the cpu and tune + indexes are defined. Fix tests for cpu/tune index to use >= 0 to + test whether the index is set, instead of > 0. + (rs6000_file_start): Do not reset the default cpu if the current + bit-size is different from the configured bit-size. + +2012-03-09 Tristan Gingold + + * config/vms/vms-crtlmap.map: Add comments. + Add entries needed to build Ada RTS. + +2012-03-09 Tristan Gingold + + * ginclude/stddef.h: Do not define __size_t on VMS. + +2012-03-09 Tristan Gingold + + * c-tree.h (c_default_pointer_mode): New variable. + * c-decl.c (c_default_pointer_mode): New variable. + (c_build_pointer_type): New function. + (grokdeclarator): Call c_build_pointer_type instead + of build_pointer_type. + + * config/vms/vms-c.c: Include c-tree.h + (saved_pointer_mode): New variable. + (handle_pragma_pointer_size): New function. + (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise. + (vms_c_register_pragma): Register __pointer_size and + __required_pointer_size pragmas. + +2012-03-09 Tristan Gingold + + * config/vms/vms-c.c (vms_construct_include_filename): New function. + (vms_c_register_includes): Reference it. + +2012-03-09 Andrew Pinski + + PR middle-end/51988 + * tree-ssa-phiopt.c: Include tree-pretty-print.h for + print_generic_expr. + (tree_ssa_phiopt_worker): Go through all the PHIs for + value_replacement instead of just the singleton one. + (value_replacement): Change return type to int. Return 0 instead of + false. + Allow the middle basic block to contain more than just the defining + statement. + Handle non empty middle basic blocks. + * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h. + +2012-03-09 Jiangning Liu + + * tree-scalar-evolution (interpret_rhs_expr): generate chrec for + array reference and component reference. + (analyze_scalar_evolution_for_address_of): New. + +2012-03-08 Jie Zhang + + PR target/49862 + * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings. + (hwloop_pattern_reg): Fix set but not used warning. + (bfin_reorg_loops): Remove unused parameter. + (bfin_reorg): Update use of bfin_reorg_loops. + +2012-03-08 H.J. Lu + + * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode + with integer parameters in registers. + (gen_push): Push register in word_mode instead of Pmode. + (ix86_emit_save_regs): Likewise. + (ix86_emit_save_regs_using_mov): Save integer registers in word_mode. + (gen_pop): Pop register in word_mode instead of Pmode. + (ix86_emit_restore_regs_using_pop): Likewise. + (ix86_expand_prologue): Replace Pmode with word_mode for push + immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and + restore RAX and R10 in word_mode. + (ix86_emit_restore_regs_using_mov): Restore integer registers + in word_mode. + (ix86_expand_split_stack_prologue): Save R10_REG and restore in + word_mode. + (ix86_split_to_parts): Use word_mode with PUT_MODE for push. + (ix86_split_long_move): Likewise. + * config/i386/i386.md (W): New. + (*push2_prologue): Replace :P with :W. + (*pop1): Likewise. + (*pop1_epilogue): Likewise. + (push/pop peephole2): Use word_mode scratch registers. + +2012-03-08 Uros Bizjak + + * config/i386/predicates.md (indirect_branch_operand): Simplify. + +2012-03-08 Georg-Johann Lay + + * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative + for constants in [-63,63]. + +2012-03-08 Uros Bizjak + + PR target/52530 + Revert: + 2012-03-04 H.J. Lu + + * config/i386/i386.c (ix86_print_operand_address): Only handle + zero-extended DImode addresses. + +2012-03-08 Rainer Orth + + * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label. + * configure: Regenerate. + +2012-03-08 Georg-Johann Lay + + PR target/52496 + * config/avr/avr.c (avr_mem_clobber): New static function. + (avr_expand_delay_cycles): Add memory clobber operand to + delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4. + * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER. + (enable_interrupt, disable_interrupt): New expander. + (nopv, sleep, wdr): New expanders. + (delay_cycles_1): Add memory clobber. + (delay_cycles_2): Add memory clobber. + (delay_cycles_3): Add memory clobber. + (delay_cycles_4): Add memory clobber. + (cli_sei): New insn from former "enable_interrupt", + "disable_interrupt" with memory clobber. + (*wdt): New insn from former "wdt" with memory clobber. + (*nopv): Similar, but for "nopv". + (*sleep): Similar, but for "sleep". + +2012-03-07 Oleg Endo + Kaz Kojima + + PR target/52503 + * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask. + * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC. + (SUBTARGET_OVERRIDE_OPTIONS): Define. + +2012-03-07 Uros Bizjak + + * config/i386/predicates.md (x86_64_zext_general_operand): New. + * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1 + predicate to x86_64_zext_general_operand. Accept "Z" constraint. + +2012-03-07 Walter Lee + + * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate + REG_CFA_* notes for the stack pointer. + (tilegx_expand_epilogue): Restore stack pointer by adjusting it by + EH_RETURN_STACKADJ_RTX. + * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't + generate REG_CFA_* notes for the stack pointer. + (tilepro_expand_epilogue): Restore stack pointer by adjusting it + by EH_RETURN_STACKADJ_RTX. + +2012-03-07 Georg-Johann Lay + + * doc/invoke.texi (AVR Built-in Macros): Correct condition for + when __AVR_3_BYTE_PC__ is defined. + +2012-03-07 Uros Bizjak + + * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'. + (ix86_print_operand): Handle '^'. + * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands + using P mode iterator. Add %^ to asm template to conditionally emit + addr32 prefix. + (*rep_movdi_rex64): Ditto. + (*strsetdi_rex_1): Ditto. + (*rep_stosdi_rex64): Ditto. + (*strmov{si,hi,qi}_1): Add %^ to asm template to + conditionally emit addr32 prefix. + (*rep_mov{si,qi}): Ditto. + (*strset{si,hi,qi}): Ditto. + (*rep_stos{si,qi}): Ditto. + (*cmpstrnqi_nz_1): Ditto. + (*cmpstrnqi_1): Ditto. + (*strlenqi_1): Ditto. + +2012-03-07 H.J. Lu + + * config/i386/i386.c (function_value_64): Return pointers in + word_mode instead of Pmode. + (ix86_promote_function_mode): Likewise. + +2012-03-07 Richard Guenther + + * coverage.c (get_gcov_type): Use type_for_mode. + (get_gcov_unsigned_t): Likewise. + * expr.c (store_constructor): Use type_for_mode. + (try_casesi): Likewise. + * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove. + (add_standard_iv_candidates): Use standard type trees. + * dojump.c (do_jump): Remove dead code. + +2012-03-07 Richard Guenther + + * c-typeck.c (pointer_diff): Use c_common_type_for_size. + +2012-03-07 Richard Guenther + + * convert.c (strip_float_extensions): Move ... + * tree.c (strip_float_extensions): ... here. + +2012-03-07 Georg-Johann Lay + + PR target/52484 + * config/avr/avr.md (xload_A): Add R22... to register footprint. + +2012-03-07 Richard Guenther + + * omp-low.c (extract_omp_for_data): Use signed_type_for. + (expand_omp_for_generic): Likewise. + (expand_omp_for_static_nochunk): Likewise. + (expand_omp_for_static_chunk): Likewise. + * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode. + * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise. + * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): + Use unsigned_type_for. + (vect_create_cond_for_align_checks): Use signed_type_for. + +2012-03-07 Andrey Belevantsev + + PR rtl-optimization/52203 + * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust + all callers to pass NULL except ... + (reset_sched_cycles_in_current_ebb): ... here, save the value + in new variable 'empty'. Increase issue_rate only for + non-empty insns. + +2012-03-07 Ralf Corsépius + + PR target/51417 + * Makefile.in: Let install-gcc-ar depend on installdirs, + gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext). + Don't double canonicalize if cross-compiling. + +2012-03-07 Georg-Johann Lay + + PR target/52506 + * config/avr/avr.c (expand_epilogue): Fix order of restoration + to: RAMPZ, RAMPY, RAMPX, RAMPD. + (expand_prologue): Only clear RAMPZ if it has effect on RAM-read. + +2012-03-07 Georg-Johann Lay + + PR target/52505 + * config/avr/avr.c (avr_out_xload): Don't read unintentionally + from RAM. + * config/avr/avr.md (xload_8): Adjust insn length. + +2012-03-07 Georg-Johann Lay + + PR target/52461 + * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage + if RAMPZ affects reading from RAM. + +2012-03-07 Richard Guenther + + PR pch/52518 + PR pch/38987 + * doc/invoke.texi (Precompiled Headers): Remove sentence that + suggests you can include PCHs from inside another header. + +2012-03-07 Richard Sandiford + + PR middle-end/52515 + * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers. + +2012-03-07 Kai Tietz + + * doc/invoke.texi (fwritable-relocated-rdata): Document + new Cygwin/MinGW target option. + * config/i386/winnt.c (i386_pe_unique_section): Ignore + reloc if flag -fwritable-relocated-rdata is not set. + (i386_pe_section_type_flags): Likewise. + * config/i386/cygming.opt (fwritable-relocated-rdata): + Add new flag variable flag_writable_rel_rdata. + +2012-03-07 Richard Guenther + + * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual + precision against gimple constraints. + +2012-03-06 Richard Sandiford + + PR middle-end/52372 + * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as + variables. + (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete. + * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New + variables. + (init_emit_regs): Move associated initialization to... + (init_emit_once): ...here. + +2012-03-06 Richard Henderson + + * config/m68k/m68k.h (ISA_HAS_TAS): New. + * config/m68k/sync.md (atomic_test_and_set): Use it. + (atomic_test_and_set_1): Likewise. + +2012-03-06 Michael Meissner + + PR target/50310 + * config/rs6000/vector.md (vector_uneq): Add support for + UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons. + (vector_ltgt): Likewise. + (vector_ordered): Likewise. + (vector_unordered): Likewise. + * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise. + +2012-03-06 Aldy Hernandez + + * trans-mem.c: New typedef for tm_region_p. + Define vector types for tm_region_p. + (tm_region_init): Replace region_worklist to a vector called + bb_regions. + +2012-03-06 Richard Guenther + + * fold-const.c (build_fold_addr_expr_with_type_loc): Fold + MEM_REF with constant pointer operand. + +2012-03-06 Richard Guenther + + PR middle-end/52493 + * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify. + +2012-03-06 Tristan Gingold + + * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword. + (external_model_kind): Improve documentation. + (vms_pragma_extern_model): Handle relaxed_redef. + (vms_c_register_pragma): Allow expansion for nomember_alignment. + +2012-03-06 Georg-Johann Lay + + * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores. + Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc. + Some more notes on EIND usage and reorder EIND subsection. + +2012-03-06 Tristan Gingold + + * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF. + * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL. + +2012-03-06 Tristan Gingold + + * config/vms/t-vmsnative (version): Define. + * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove. + +2012-03-06 Andrey Belevantsev + + PR rtl-optimization/52250 + * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb + to put note list into. Unconditionally call move_bb_info. + (move_bb_info): Do not assert the blocks being in the same region, + just drop the note list if they are not. + +2012-03-06 Oleg Endo + + PR target/51244 + * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case + and use unified expansion logic. + * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move + closer to the existing movt insn. + (negc): Rename insn to *negc. Add new expander. + (movnegt): Use xor pattern for T bit negation. Reserve helper + constant for negc pattern. + (*movnegt): New insn and splitter. + +2012-03-05 Bernd Schmidt + + * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not + PLUS_EXPR. + +2012-03-05 Richard Henderson + + * genemit.c (main): Include "target.h" in insn-emit.c. + * Makefile.in (insn-emit.o): Depend on TARGET_H. + * config/sh/sync.md (atomic_test_and_set): Reference + targetm.atomic_test_and_set_trueval instead of + TARGET_ATOMIC_TEST_AND_SET_TRUEVAL. + +2012-03-05 Joern Rennecke + + * config/epiphany/epiphany.c (epiphany_function_value_regno_p): + Make static. + +2012-03-05 Steven Bosscher + + * langhooks.c (add_builtin_type): New function. + * langhooks.h (add_builtin_type): Export it. + * config/mep/mep.c (mep_init_builtins): Use it. + * config/rs6000/rs6000.c (rs6000_init_builtins): Use it. + +2012-03-05 Jakub Jelinek + + PR debug/51902 + * tree.h (BLOCK_SAME_RANGE): Define. + * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE + if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared. + Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment + isn't equal to supercontext fragment's fragment chain. + Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's + fragment origin. + (blocks_nreverse_all): Likewise. + (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set + BLOCK_SUPERCONTEXT to supercontext fragment instead of + supercontext fragment's fragment origin. + * dwarf2out.c (add_high_low_attributes): If stmt has the same + range as its parent (or parents thereof etc.), use the parent's + DW_AT_ranges value instead of creating a new .debug_ranges range. + +2012-03-05 Richard Henderson + + PR tree-opt/52242 + Revert: 2011-11-26 Richard Henderson + * omp-low.c (expand_omp_atomic): Assume anything aligned to + BIGGEST_ALIGNMENT is aligned. + +2012-03-05 Richard Henderson + + * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move... + * config/sh/sh.c: ... here. + +2012-03-05 Richard Henderson + + PR target/52481 + * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop + instead of calling negqi2 directly. + +2012-03-05 Aldy Hernandez + + PR middle-end/52463 + * trans-mem.c (tm_region_init): Use last_basic_block. + +2012-03-05 Oleg Endo + + * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook. + * config/sh/sync.md (atomic_test_and_set): New expander. + (tasb, atomic_test_and_set_soft): New insns. + * config/sh/sh.opt (menable-tas): New option. + * doc/invoke.texi (SH Options): Document it. + +2012-03-05 Richard Guenther + + * cfgloop.c (verify_loop_structure): Verify dominators before + using them. + * graphite-clast-to-gimple.c (graphite_verify): Do not verify + dominators from here. + * graphite-scop-detection.c (create_sese_edges): Likewise. + * loop-doloop.c (doloop_optimize_loops): Likewise. + * loop-init.c (loop_optimizer_init): Likewise. + * loop-unroll.c (unroll_and_peel_loops): Likewise. + * loop-unswitch.c (unswitch_loops): Likewise. + * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise. + * tree-parloops.c (parallelize_loops): Likewise. Verify + only when checking is enabled. + * tree-loop-distribution.c (tree_loop_distribution): Likewise. + +2012-03-05 Bernd Schmidt + + * genautomata.c (parse_automata_opt): New static function. + (initiate_automaton_gen): Remove all option handling code. Remove + argc argument. All callers changed. + (main): Call init_rtx_reader_args_cb with the new function as argument. + +2012-03-05 Richard Guenther + + * cfgexpand.c (gimple_expand_cfg): Free dominator info. + * tree-if-conv.c (combine_blocks): Free post-dominator info + after breaking it. + * tree-parloops.c (create_parallel_loop): Free and re-compute + dominator info after breaking it. + +2012-03-05 Richard Guenther + + PR middle-end/52353 + * optabs.h (trapv_unoptab_p): New function. + (trapv_binoptab_p): Likewise. + * optabs.c (expand_binop): Use emit_libcall_block_1 with + a proper equiv_may_trap argument. + (expand_unop): Likewise. + (emit_libcall_block_1): Take extra argument whether the + instruction may trap. Renamed from ... + (emit_libcall_block): ... this. New wrapper. + +2012-03-05 Jakub Jelinek + + PR tree-optimization/51721 + * tree-vrp.c (register_edge_assert_for_2): If comparing + lhs of right shift by constant with an integer constant, + add ASSERT_EXPRs for the rhs1 of the right shift. + + * cfgrtl.c (cfg_layout_merge_blocks): Cleanup. + +2012-03-05 Richard Guenther + + * tree.c (integer_zerop): Handle VECTOR_CSTs. + (integer_onep): Likewise. + (integer_all_onesp): Likewise. + +2012-03-05 Georg-Johann Lay + + * config/avr/avr.md (*umaddqihi4.2): New insn-and-split. + +2012-03-04 H.J. Lu + + * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode + instead of TARGET_64BIT. + +2012-03-04 H.J. Lu + + * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set + adjust_stack_insn. + +2012-03-04 H.J. Lu + + * config/i386/i386.c (ix86_print_operand_address): Only handle + zero-extended DImode addresses. + +2012-03-04 Uros Bizjak + + * config/i386/i386.c (ix86_print_operand) : Declare + taken and cputaken as bool. + +2012-03-04 Uros Bizjak + + * config/i386/constraints.md (Ya): New internal constraint. + * config/i386/i386.md (zero_extendsidi2): Remove expansion. + (*zero_extendsidi2_rex64): Add x,x alternative. + (*zero_extendsidi2): Ditto. Add o,0 alternative. + Remove flags reg clobber. Adjust corresponding splits. + (zero_extendsi2): Macroize expander from zero_extendhisi2 and + zero_extendqisi2 expanders using SWI12 mode iterator. + (zero_extendsi2_and): Macroize insn from + zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding + splitters. + (*zero_extendsi2): Macroize insn from + *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl. + (*zero_extend*2_movzbl_and): Remove insn patterns. + (zero_extendqihi2_and): Merge corresponding splitter. + (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl. + (*zero_extend*2_movzbl_and): Remove insn patterns. + (*anddi_1): Split TYPE_IMOVX instructions. + (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions. + (*andhi_1): Ditto. + (and->zext splitter): Add splitter pattern. + (zero extend with andsi3 splitter): Adjust zero_extend pattern. + +2012-03-04 Sandra Loosemore + + * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to + x86-specific text. + (Debugging Options): Likewise. + (Optimize Options): Likewise. + (i386 and x86-64 Options): Discuss -march before -mtune, consistently + with other architectures. Use official processor names with correct + spelling/capitalization. Fix formatting and grammar issues. + (i386 and x86-64 Windows Options): Similar cleanup here. + +2012-03-03 Kaz Kojima + + * config/sh/sh.md (abssi2): Add TARGET_SH1 condition. + +2012-03-03 Kaz Kojima + + * config/sh/sh.c (sh_dwarf_register_span): Don't apply + DBX_REGISTER_NUMBER. + +2012-03-03 Kaz Kojima + + * config/sh/sh.c (shiftcosts): Return MAX_COST when the first + operand is CONST_INT. Take COSTS_N_INSNS into account. + (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value + of shiftcosts. + +2012-03-02 Richard Henderson + + * optabs.c (expand_atomic_test_and_set): Honor + atomic_test_and_set_trueval even when atomic_test_and_set + optab is not in use. + +2012-03-02 Kaz Kojima + + PR target/48596 + PR target/48806 + * config/sh/sh.c (sh_register_move_cost): Increase cost between + GENERAL_REGS and FP_REGS for SImode. + +2012-03-02 Oleg Endo + + PR target/49486 + * config/sh/sh.md (negdi2): Add TARGET_SH1 condition. + (absdi2): New expander. + (*absdi2, *negabsdi2, negdi_cond): New insns and splits. + +2012-03-02 Oleg Endo + + * config/sh/sync.md (atomic_exchange): New expander. + (atomic_exchange_soft): New insn. + +2012-03-02 Oleg Endo + + * config/sh/sync.md: Update copyright notice dates. + (atomic_compare_and_swap): Use SImode for return value instead + of QImode. + (atomic_compare_and_swap_soft): Likewise. + +2012-03-02 Oleg Endo + + PR target/31640 + * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align. + * config/sh/sh.c: Update copyright notice dates. + (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop + alignment for TARGET_HARD_SH4. + (sh_option_override): Reduce default function alignment. Set + loop alignment to 4 bytes when not optimizing for size. + +2012-03-02 Maxim Kuvyrkov + + PR middle-end/50335 + * doc/invoke.texi (floop-flatten): Remove. + * toplev.c (process_options): Remove references to flag_loop_flatten. + * tree-ssa-loop.c (gate_graphite_transform): Same. + * common.opt (floop-flatten): Obsolete. + * graphite-poly.c (apply_poly_transforms): Remove reference to + flag_loop_flatten. + * Makefile.in (graphite-flattening.o): Remove. + * graphite-flattening.c: Remove. + +2012-03-02 Uros Bizjak + + * compare-elim.c (find_comparisons_in_bb): Eliminate only compares + having mode compatible with the mode of previous compare. Substitute + compare mode of previous compare with the mode, compatible + with eliminated and previous compare. + +2012-03-02 Peter Bergner + + * config/rs6000/dfp.md (floatdidd2): New define_insn. + +2012-03-02 Uros Bizjak + + * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode + compatible with CCGOCmode and CCGCmode. + +2012-03-02 Peter Bergner + + * config/rs6000/vsx.md (vsx_set_): Reorder operands. + +2012-03-02 Ulrich Weigand + + * config/arm/arm.c (arm_sat_operator_match): New function. + * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype. + * config/arm/arm.md ("insn" attribute): Add "sat" value. + ("SAT", "SATrev"): New code iterators. + ("SATlo", "SAThi"): New code iterator attributes. + ("*satsi_"): New pattern. + ("*satsi__shift"): Likewise. + * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn" + and "shift" attributes. + ("arm_usatsihi"): Add "insn" attribute. + * config/arm/predicates.md (sat_shift_operator): Allow multiplication + by powers of two. Do not allow shift by 32. + +2012-03-02 Uros Bizjak + + PR target/46716 + * config/i386/i386.c (construct_container): Use gen_reg_or_parallel + to pass the argument in the register of "natural" mode. + +2012-03-02 Richard Guenther + + PR tree-optimization/52406 + * tree-data-ref.h: Update documentation about DR_BASE_OBJECT. + (struct indices): Add unconstrained_base member. + (struct dr_alias): Remove unused vops member. + (DR_UNCONSTRAINED_BASE): New define. + * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs + add indices to allow their disambiguation. Make DR_BASE_OBJECT + be an artificial access that covers the whole indexed object, + or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize + plain decl base-objects to their MEM_REF variant. + (dr_may_alias_p): When the base-object of either data reference + has unknown size use only points-to information. + (compute_affine_dependence): Make dumps easier to read and + more verbose. + * tree-vect-data-ref.c (vector_alignment_reachable_p): Use + DR_REF when looking for packed references. + (vect_supportable_dr_alignment): Likewise. + +2012-03-02 Greta Yorsh + + * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole): + Improve conditions for peepholes of loads followed by commutative + operators. + * config/arm/ldmstm.md: Regenerated. + +2012-03-02 Richard Guenther + + * BASE-VER: Set to 4.8.0. + +2012-03-01 Richard Earnshaw + + * config.gcc (obsolete): Add all ARM targets using the FPA. + (with_fpu): Obsolete selection of the FPA or Maverick on ARM. + * doc/install.texi: Avoid references to obsolete ARM ports. + +2012-03-01 Joern Rennecke + + * config/epiphany/epiphany.md (movmisalign): New patterns. + +2012-03-01 Jeremy Bennett + Joern Rennecke + + * doc/extend.texi: Expand and update information on interrupt + attribute for Epiphany. + +2012-03-01 Oleg Endo + + * config/sh/sh-protos.h: Update copyright notice dates. + * config/sh/sh.h: Likewise. + * config/sh/sh.md: Likewise. + * config/sh/constraints.md: Likewise. + * config/sh/predicates.md: Likewise. + +2012-03-01 Oleg Endo + + * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function. + * config/sh/sh.c (tertiary_reload_operand): Likewise. + +2012-03-01 Oleg Endo + + * config/sh/constraints.md: Fix comment typo. + +2012-03-01 John David Anglin + + PR target/52408 + * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to + unsigned HOST_WIDE_INT. + (zvdep_imm64): Likewise. + (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT. + (vdepi_and): Likewise. + Likewise for unamed 64-bit patterns. + * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment. + +2012-03-01 Alexandre Oliva + + PR debug/52001 + PR rtl-optimization/52417 + * cselib.c (cselib_any_perm_equivs): New variable. + (cselib_reset_table): Check that it's not set when not + preserving constants. + (cselib_add_permanent_equiv): Set it. + (cselib_have_permanent_equivalences): New. + (cselib_init, cselib_finish): Reset it. + * cselib.h (cselib_have_permanent_equivalences): Declare. + * alias.c (get_addr): Restore earlier behavior when there + aren't permanent equivalences. + +2012-03-01 Steven Bosscher + + * config/mn10300/mn10300-modes.def: Fix copyright notice. + * config/v850/v850-modes.def: Fix copyright notice. + +2012-03-01 Georg-Johann Lay + + * doc/extend.texi (AVR Built-in Functions): Document + __builtin_avr_flash_segment. + + * config/avr/builtins.def (__builtin_avr_flash_segment): New entry. + * config/avr/avr.md (flash_segment, flash_segment1): New expanders. + (*split.flash_segment): New insn-and-split. + * config/avr/avr.c (avr_init_builtins): Add local variables: + const_memx_void_node, const_memx_ptr_type_node, + char_ftype_const_memx_ptr. + +2012-03-01 Jakub Jelinek + + PR tree-optimization/52445 + * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field, + add ssa_name_ver, offset and size fields and change store field + to bool. + (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes. + (add_or_mark_expr): Likewise. Only consider previous stores + with the same size and offset. + (nt_init_block): Only look at gimple_assign_single_p stmts, + doesn't look at rhs2. + +2012-03-01 Richard Guenther + + PR middle-end/52443 + * tree-cfg.c (verify_gimple_assign_unary): Allow any + conversions from integral types to pointer types. + +2012-03-01 Georg-Johann Lay + + * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in + defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__ + unintentionally removed in r184616. + +2012-03-01 Venkataramanan Kumar + + * doc/invoke.texi: Document AMD bdver2 and remove mentioning + 3DNow from bdver1. + +2012-02-29 Jakub Jelinek + Uros Bizjak + + PR target/52437 + * config/i386/sse.md (vec_set_0): Swap "*r" and "fF" + alternatives, add "e" constraint to the new last alternative + and ! to last 3 alternatives. + +2012-02-29 Eric Botcazou + + * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and + DW_AT_artificial attributes at the end of the processing. + (gen_array_type_die): Likewise. + (gen_enumeration_type_die): Likewise. + (gen_struct_or_union_type_die): Likewise. + (add_gnat_descriptive_type_attribute): Do not suppress debug info for + the parent type. + +2012-02-29 Jakub Jelinek + + PR middle-end/52419 + * expr.c (expand_assignment): If doing misaligned store that doesn't + cover all mode bits, perform a RMW cycle. + + PR tree-optimization/52429 + * tree-parloops.c (separate_decls_in_region_debug): Return early + if var is LABEL_DECL. + +2012-02-29 Bill Schmidt + + PR tree-optimization/52424 + * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before + calling dom_thread_across_edge. + +2012-02-29 Georg-Johann Lay + + * config/avr/avr.c: Move definition of TARGET macros to end of file. + +2012-02-29 Georg-Johann Lay + + * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype. + * config/avr/avr.c (avr_output_bld): Remove unused function. + (avr_out_sbxx_branch): Use "%T" to print bit position. + +2012-02-29 Georg-Johann Lay + + * config/avr/avr.md: Untabify. + +2012-02-29 Georg-Johann Lay + + * config/avr/avr.md (eqne): New code iterator. + (*dec-and-branchsi): Use it in text peephole's condition. + (*dec-and-branchhi): Ditto. + (*dec-and-branchqi): Ditto. + +2012-02-29 Georg-Johann Lay + + PR target/49939 + * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that + the device does not have the skip-bug. + +2012-02-29 Oleg Endo + + * doc/invoke.texi (-msoft-atomic): Add more detailed description. + (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd + -mpretend-cmove): New. + +2012-02-29 Jakub Jelinek + + PR bootstrap/52397 + * df.h (struct df_d): Adjust comment that hard_regs_live_count + doesn't count DEBUG_INSN refs. + * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE + for DEBUG_INSN refs. + +2012-02-28 Ulrich Weigand + + Partially revert: + + 2012-02-20 Richard Guenther + PR tree-optimization/52298 + * tree-vect-stmts.c (vectorizable_load): Properly use + STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops. + +2012-02-28 Aldy Hernandez + + PR middle-end/51752 + * gimple.h (gimple_in_transaction): New. + (gimple_set_in_transaction): New. + (struct gimple_statement_base): Add in_transaction field. + * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of + transaction loads. + (tree_ssa_lim_initialize): Compute transaction bits. + * tree.h (compute_transaction_bits): Protoize. + * trans-mem.c (tm_region_init): Use the heap to store BB + auxilliary data. + (compute_transaction_bits): New. + +2012-02-28 Bernhard Reutner-Fischer + + * gcc.c (display_help): Document --help=common and sort entries + alphabetically. + +2012-02-28 Bernhard Reutner-Fischer + + * doc/install.texi: Document check-$LANG specific shortcuts + +2012-02-28 Matthew Gretton-Dann + + PR target/51534 + * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu + and vcgtu. + * config/arm/arm_neon.h: Regenerate. + * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU. + (neon_vcgeu): New insn. + (neon_vcgtu): Likewise. + * config/arm/neon.ml (s_8_32, u_8_32): New lists. + (ops): Unsigned comparison intrinsics call a different builtin. + +2012-02-28 Richard Guenther + + PR target/52407 + * config/i386/i386.c (ix86_expand_vector_set): Fix element + ordering for the VEC_CONCAT for two element vectors for + V2SFmode, V2SImode and V2DImode. + +2012-02-28 Richard Earnshaw + + PR target/49448 + * config.gcc (arm*-*-linux*): Use an unambiguous pattern for + detecting big-endian triplets. + +2012-02-28 Richard Earnshaw + + * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine + mode if there is no type information available. + +2012-02-28 Thomas Koenig + + PR tree-optimization/53207 + * doc/invoke.texi: Document as experimental and relying on graphite. + +2012-02-28 Georg-Johann Lay + + * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part + of initializer to changes from r184614. + +2012-02-28 Richard Guenther + + PR tree-optimization/52395 + * tree-sra.c (build_ref_for_offset): Also look at the base + TYPE_ALIGN when figuring out the alignment of the replacement. + +2012-02-28 Richard Guenther + + PR tree-optimization/52402 + * ipa-prop.c (ipa_modify_call_arguments): Properly use + mis-aligned types when creating the accesses at the call site. + +2012-02-28 Georg-Johann Lay + + * config/avr/builtins.def: New file. + * config/avr/t-avr (avr.o, avr-c.o): Depend on it. + * config/avr/avr.c (enum avr_builtin_id): Use it. + (avr_init_builtins): Use it. And use avr_bdesc. + (bdesc_1arg): Remove. + (bdesc_2arg): Remove. + (bdesc_3arg): Remove. + (struct avr_builtin_description): Add field n_args. + (avr_bdesc): New static variable using builtins.def. + (avr_expand_builtin): Use it. + Don't call avr_expand_delay_cycles if op0 is not CONST_INT. + (avr_fold_builtin): Fold AVR_BUILTIN_SWAP. + Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST. + +2012-02-28 Georg-Johann Lay + + PR target/52148 + * config/avr/avr.md (movmem_): Replace match_operand that + match only one single hard register with respective hard reg rtx. + (movmemx_): Ditto. + * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new + insn anatomy of movmem[x]_. + (avr_out_movmem): Same for printing assembler and operand usage. + +2012-02-28 Georg-Johann Lay + + PR target/49868 + PR target/52261 + * doc/extend.texi (AVR Named Address Spaces): No more try to fix + address spaces located outside of device flash. + + * config/avr/avr.h (base_arch_s): Remove field n_segments. + (mcu_type_s): Add field n_flash. + * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments. + Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5. + (AVR_MCU): Add N_FLASH argument. + * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash. + * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in + macro __FLASH if that address space makes sense for the device. + * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces + outside of target flash. + (avr_asm_named_section): Ditto. + (avr_asm_select_section): Ditto. + (avr_addr_space_convert): Ditto. + (avr_emit_movmemhi): Ditto. + (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if + address space is outside of device flash. + (avr_insert_attributes): Ditto. + (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of + avr_current_arch->n_segments. + +2012-02-27 H.J. Lu + + PR target/52352 + * config/i386/i386.md (*movabs_1): Enable only for TARGET_LP64. + (*movabs_2): Likewise. + +2012-02-27 Jakub Jelinek + + PR target/52375 + * config/arm/neon.md (vashr3, vlshr3): Use + s_register_operand in the test instead of REG_P. Don't call + gen_reg_rtx if it won't be used. + + PR tree-optimization/52376 + * ipa-split.c (split_function): Ignore CLOBBER stmts. + +2012-02-27 Stuart Henderson + + * ifcvt.c (noce_get_condition): Check condition variable is not + small_register_classes_for_mode_p before accepting. + +2012-02-27 Uros Bizjak + + * config/i386/i386.md (*movabs_1): Fix operand 1 constraints. + +2012-02-27 Matthew Gretton-Dann + + Revert: + 2012-01-09 Matthew Gretton-Dann + * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for + tuning parameters. + * config/arm/arm.c (arm_cortex_a15_tune): New static variable. + +2012-02-27 Oleg Endo + + * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro. + +2012-02-26 Oleg Endo + + * config/sh/predicates.md: Remove blank lines. + * config/sh/sh.c: Fix typos in comments. + * config/sh/constraints.md: Likewise. + * config/sh/sh.md: Remove blank lines. + Fix typos in comments. Use ;; as comment characters. + +2012-02-26 Walter Lee + + * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern. + (replace_mov_pcrel_step2): Ditto. + +2012-02-25 Alexandre Oliva + + PR debug/52001 + * alias.c (refs_newer_value_cb, refs_newer_value_p): New. + (get_addr): Walk canonical value's locs. Avoid returning VALUEs + and locs that reference values newer than the non-canonical value + at hand. Return the canonical value as a worst case. + (memrefs_conflict_p): Walk canonical value's locs. + + PR debug/52001 + * cselib.c (preserve_only_constants): Rename to... + (preserve_constants_and_equivs): ... this. Split out... + (invariant_or_equiv_p): ... this. Preserve plus expressions + of other preserved expressions too. + (cselib_reset_table): Adjust. + * var-tracking.c (reverse_op): Use canonical value to build + reverse operation. + +2012-02-23 Kai Tietz + + * config/i386/i386.c (ix86_delegitimize_address): Handle + UNSPEC_PCREL plus displacement. + +2012-02-24 Georg-Johann Lay + + PR target/52261 + * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base + to test for unusedness in st X addressing. + +2012-02-24 Richard Guenther + + PR middle-end/52361 + * gimple.c (walk_gimple_op): Use predicates with less redundant tests. + (is_gimple_reg_type): Move inline ... + * gimple.h (is_gimple_reg_type): ... here. + +2012-02-24 Richard Guenther + + PR middle-end/52361 + * passes.c (execute_function_todo): When verifying SSA form + verify gimple form first. + * tree-ssa.c (verify_ssa): Do not verify gimple form here. + +2012-02-24 Richard Guenther + + PR middle-end/52355 + * fold-const.c (fold_addr_of_array_ref_difference): New function. + (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding. + +2012-02-13 Bernhard Reutner-Fischer + + * tree-if-conv (predicate_scalar_phi): Commentary typo fix. + +2012-02-23 Bernhard Reutner-Fischer + + * tree-phinodes.c (make_phi_node): Mark static. + * tree-flow.h (make_phi_node): Remove extern decl. + * doc/gimple.texi (make_phi_node): Remove documentation. + +2012-02-23 Bernhard Reutner-Fischer + + * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file. + * tree-ssa-sccvn.c (print_scc): Ditto. + +2012-02-23 Bernhard Reutner-Fischer + + * doc/passes.texi (Full redundancy elimination): Fix typo. + +2012-02-23 Bernhard Reutner-Fischer + + * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries. + +2012-02-23 Eric Botcazou + + PR bootstrap/52287 + * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns. + +2012-02-23 Uros Bizjak + + PR c/52290 + * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL. + +2012-02-23 Georg-Johann Lay + + * config/avr/avr.md (code_stdname): Add ior, xor. + (xior): New code iterator. + (*qi.byte0): Use xior instead of ior. + (*qi.byte1-3): Ditto. + +2012-02-23 Jakub Jelinek + + PR tree-optimization/52019 + * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore + CLOBBER stmts. + +2012-02-23 Ulrich Weigand + + * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of + HAVE_INITFINI_ARRAY to work around namespace pollution in + certain versions of newlib system headers. + * config.in: Regenerate. + * configure: Regenerate. + * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT + instead of HAVE_INITFINI_ARRAY. + +2012-02-22 Uros Bizjak + + PR target/52330 + * config/i386/i386.c (ix86_print_operand) : Error out if x + is not offsettable memory reference. + +2012-02-22 Georg-Johann Lay + + PR target/18145 + * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip + setting avr_need_clear_bss_p for __gnu_lto* symbols. + +2012-02-22 Georg-Johann Lay + + * config/avr/avr.h (avr_accumulate_outgoing_args): Return int. + * config/avr/avr.c (avr_accumulate_outgoing_args): Return int. + +2012-02-22 Rainer Orth + + * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread + library on Solaris 8 even without TLS support. + * configure: Regenerate. + +2012-02-22 Richard Guenther + + PR middle-end/52329 + * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs + for GIMPLE_DEBUG stmts. + +2012-02-22 Martin Jambor + + PR middle-end/51782 + * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space + according to the base object. + +2012-02-22 Georg-Johann Lay + + PR rtl-optimization/50063 + * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state) + and 2 (8-bit SP) in operand 2. + * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue + setup to use movhi_sp_r instead of vanilla move to write SP. + Adjust REG_CFA notes to superseed unspec. + (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead + of vanilla move. + As function body might contain CLI or SEI: Use irq_state 0 (IRQ + known to be off) only with TARGET_NO_INTERRUPTS. Never use + irq_state 1 (IRQ known to be on) here. + +2012-02-21 Bernd Schmidt + + * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not + WORDS_BIG_ENDIAN. + * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p, + assign_hard_reg): Likewise. + +2012-02-21 Georg-Johann Lay + + * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0". + +2012-02-21 Georg-Johann Lay + + * config/avr/avr.md + (*dec-and-branchhi!=-1.d.clobber): New text peephole. + (*dec-and-branchhi!=-1.l.clobber): New text peephole. + +2012-02-21 Georg-Johann Lay + + * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move + prototype from here to... + * config/avr/avr.h: ...here. + +2012-02-21 Richard Earnshaw + + PR target/52294 + * thumb2.md (thumb2_shiftsi3_short): Split register and + immediate shifts. For register shifts tie operands 0 and 1. + (peephole2 for above): Check that register-controlled shifts + have suitably tied operands. + +2012-02-21 Quentin Neill + + PR target/52137 + * config/i386/bdver1.md (bdver1_call, bdver1_push, + bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul, + bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem, + bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov, + bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore, + bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store, + bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf, + bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load, + bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn, + bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc, + bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load, + bdver1_fcomi, bdver1_fcom_load, bdver1_fcom, + bdver1_fxch, bdver1_ssevector_avx128_unaligned_load, + bdver1_ssevector_avx256_unaligned_load, + bdver1_ssevector_sse128_unaligned_load, + bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load, + bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load, + bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load, + bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store, + bdver1_mmxsse_store_short, bdver1_ssevector_avx256, + bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256, + bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog, + bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load, + bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256, + bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd, + bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd, + bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps, + bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps, + bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd, + bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd, + bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si, + bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi, + bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq, + bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi, + bdver1_ssemuladd_load_256, bdver1_ssemuladd_256, + bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load, + bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd, + bdver1_ssediv_double_load_256, bdver1_ssediv_double_256, + bdver1_ssediv_single_load_256, bdver1_ssediv_single_256, + bdver1_ssediv_double_load, bdver1_ssediv_double, + bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins): + Add "bdver2" attribute. + +2012-02-21 Andreas Krebbel + + * config/s390/s390.c (s390_option_override): Make -mhard-dfp the + default if possible and not specified otherwise. + +2012-02-21 Richard Guenther + + PR middle-end/52314 + * gimplify.c (create_tmp_from_val): Use the main variant type + for the type of the temporary we create. + +2012-02-21 Richard Guenther + + PR tree-optimization/52324 + * gimplify.c (gimplify_expr): When re-gimplifying expressions + do not gimplify a MEM_REF address operand if it is already + in suitable form. + +2012-02-21 Andreas Krebbel + + * config/s390/s390.md ("fixuns_truncsi2"): Replace + TARGET_HARD_FLOAT with TARGET_HARD_DFP. + +2012-02-21 Richard Guenther + + * tree-vect-stmts.c (vectorizable_load): Use pre-computed + nested_in_vect_loop. + +2012-02-21 Jakub Jelinek + + PR tree-optimization/52318 + * gimple-fold.c (gimplify_and_update_call_from_tree): Add + vdef also to non-pure/const call stmts in the sequence. + +2012-02-21 Tristan Gingold + + * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding. + +2012-02-20 David S. Miller + + * config/sparc/sparc.md (load_pcrel_sym): Explain why we + don't use the "rd %pc" instruction on v9 for PIC register loads. + +2012-02-20 Aldy Hernandez + + PR middle-end/52141 + * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's + in a transaction safe function. + +2012-02-20 Kai Tietz + + PR target/52238 + * stor-layout.c (place_field): Handle desired_align for + ms-bitfields, too. + +2012-02-20 Richard Guenther + + PR tree-optimization/52298 + * tree-vect-stmts.c (vectorizable_store): Properly use + STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing + outer loops. + (vectorizable_load): Likewise. + * tree-vect-data-refs.c (vect_analyze_data_ref_access): + Access DR_STEP after ensuring it is not NULL. + +2012-02-20 Jakub Jelinek + + PR tree-optimization/52286 + * fold-const.c (fold_binary_loc): For (X & C1) | C2 + optimization use double_int_to_tree instead of build_int_cst_wide, + rewrite to use double_int vars. + +2012-02-20 Rainer Orth + + PR target/50166 + * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION. + Define _start. + Remove -e 0 from $gcc_cv_ld invocation. + Only use __GLIBC_PREREQ if defined. + Enable on Solaris since Solaris 8 patch. + (gcc_SUN_LD_VERSION): New macro. + * configure.ac (ld_ver) <*-*-solaris2*>: Refer to + gcc_SUN_LD_VERSION for version number format. + * configure: Regenerate. + * varasm.c (get_elf_initfini_array_priority_section): Set + SECTION_NOTYPE for non-default priority. + Use get_section instead of get_unnamed_section to emit + .init_array/.fini_array with default priority. + +2012-02-19 Richard Sandiford + + * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable. + (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally. + (mips_start_unique_function, mips_output_mips16_rdhwr) + (mips_code_end): New functions. + (TARGET_ASM_CODE_END): Define. + +2012-02-19 Richard Sandiford + + * config/mips/mips.c (mips16_build_call_stub): Add CFI information + to stubs with non-sibling calls. + +2012-02-18 Sandra Loosemore + + * doc/invoke.texi (-fira-* options): Copy-edit. + (ira-* parameters): Copy-edit. + +2012-02-17 Sandra Loosemore + + * doc/invoke.texi: Minor copy-edits to bring into conformance with + GCC coding conventions. + +2012-02-17 Sandra Loosemore + + * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian" + when used as adjectives. + +2012-02-16 Sandra Loosemore + + * doc/invoke.texi: Clean up "that"/"which" confusion. + +2012-02-17 Steven Bosscher + + * system.h: Poison SMALL_REGISTER_CLASSES + * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook. + * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES. + +2012-02-16 Jakub Jelinek + + PR tree-optimization/52285 + * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts + when deciding if a call is a tail call or tail recursion. + +2012-02-16 Kai Tietz + + * config/i386/i386.c (legitimate_pic_address_disp_p): Allow + interger-constant displacement for UNSPEC_PCREL. + +2012-02-16 Jakub Jelinek + + PR rtl-optimization/52208 + * ira-costs.c (scan_one_insn): Don't decrease mem_cost + for MEMs with REG_EQUIV, if the MEM isn't general_operand. + + PR tree-optimization/52255 + * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If + loop->header has virtual PHI, but exit_e->dest doesn't, add + virtual PHI to exit_e->dest and adjust all uses after the loop. + + PR debug/52260 + * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing + children with clone_tree_hash, not after it. + +2012-02-16 Iain Sandoe + + * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for + extended identifiers. + +2012-02-16 Jakub Jelinek + + PR middle-end/51929 + * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is + a same_body_alias, also test whether e->callee isn't a former + or current clone of the decl this is a same body alias of. + + PR translation/52264 + * cgraphunit.c (verify_cgraph_node): Fix a typo. + +2012-02-15 Sandra Loosemore + + * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers. + +2012-02-15 Michael Meissner + + PR target/52199 + * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use + force_reg instead of copy_to_reg for better optimization. Force + non-register or memory operands into a register. + +2012-02-15 Andrew MacLeod + + * extend.texi: Reserve upper bits of memory model for future use. + +2012-01-15 Georg-Johann Lay + Anatoly Sokolov + Eric Weddington + + PR target/52261 + * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2, + avrxmega4, avrxmega5, avrxmega6, avrxmega7. + Rewrite initializers for .macro. + * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs: + avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4 + atxmega32d4, atxmega32x1. + avrxmega4: atxmega64a3, atxmega64d3. + avrxmega5: atxmega64a1, atxmega64a1u. + avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3, + atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3. + avrxmega7: atxmega128a1, atxmega128a1u. + * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2, + ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7. + (struct base_arch_s): Rename reserved to xmega_p. + Rename reserved2 to have_rampd. + (AVR_XMEGA): New define. + (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines. + (AVR_HAVE_RAMPZ): Change definition to fit xmega. + * config/avr/predicates.md (io_address_operand): Take into + account SFR offset. + (low_io_address_operand): Ditto. + (high_io_address_operand): Ditto. + * config/avr/avr.md (isa): Add alternatives no_xmega, xmega. + (enabled, movhi_sp_r): Use them. + * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use + cpp_define_formatted to built-in define __AVR_ARCH__. + (__AVR_XMEGA__): New built-in define. + (__AVR_HAVE_RAMPD__): New built-in define. + (__AVR_HAVE_RAMPX__): New built-in define. + (__AVR_HAVE_RAMPY__): New built-in define. + (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it. + + * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy. + (avr_option_override): Initialize them. + (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx. + (avr_init_expanders): Initialize them. No more block several calls. + (emit_push_sfr): New static function. + (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed. + Handle AVR_XMEGA. + (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed. + (avr_print_operand): Print addreeses as symbols for + RAMPX, RAMPY, RAMPD, CCP. + (output_movhi): Handle AVR_XMEGA when writing to SP. + (avr_out_movhi_mr_r_xmega): New static function. + (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA. + (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__, + __RAMPD__, __CCP__ as needed. + + * config/avr/multilib.h: Regenerate. + * config/avr/t-multilib: Regenerate. + * config/avr/avr-tables.opt: Regenerate. + +2012-02-15 Tobias Grosser + + PR tree-optimization/50561 + * graphite-flattening.c (lst_project_loop): Do not + remove old scattering dimensions after flattening. + (lst_do_flatten): Likewise. + +2012-02-15 Georg-Johann Lay + + * doc/extend.texi (AVR Built-in Functions): Remove doc for + __builtin_avr_map8, __builtin_avr_map16. + Document __builtin_avr_insert_bits. + + * config/avr/avr.md (map_bitsqi, map_bitshi): Remove. + (insert_bits): New insn. + (adjust_len.map_bits): Rename to insert_bits. + (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS. + * avr-protos.h (avr_out_map_bits): Remove. + (avr_out_insert_bits, avr_has_nibble_0xf): New. + * config/avr/constraints.md (Cxf,C0f): New. + * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in + defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16. + New built-in define __BUILTIN_AVR_INSERT_BITS. + * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define. + (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS. + (avr_move_bits): Rewrite. + (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static + functions. + (avr_map_op_t): New typedef. + (avr_map_op): New static variable. + (avr_out_insert_bits, avr_has_nibble_0xf): New functions. + (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS. + (avr_init_builtins): Add definition for __builtin_avr_insert_bits. + (bdesc_3arg, avr_expand_triop_builtin): New. + (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS. + (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove. + (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove. + (avr_map_equal_p, avr_map_sig_p): Remove. + (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove. + (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. + (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS. + (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. + (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16. + (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. + +2012-02-14 Bernd Schmidt + + * config/c6x/c6x.md (reserve_cycles): New attribute. + * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate + don't reserve functional units after the branch occurs. + +2012-02-14 Aldy Hernandez + + PR middle-end/52142 + * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure + functions into non-tm_pure functions. + +2012-02-14 Eric Botcazou + + PR lto/52178 + * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P. + (iterative_hash_canonical_type): Likewise. + * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all + the dead edges. + +2012-02-14 Bernd Schmidt + + * haifa-sched.c (prune_ready_list): Ensure that if there is a + sched-group insn, it either remains alone or the entire list is pruned. + +2012-02-14 Jonathan Wakely + + * doc/install.texi (Prerequisites): Fix grammar. + (Configuration): Likewise. + +2012-02-14 Jonathan Wakely + + * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and + MPC as part of GCC before describing configuring with --with-gmp etc. + (Installing GCC: Configuration): --with-gmp etc. aren't needed if + sources are present. + +2012-02-14 Jakub Jelinek + + PR debug/51950 + * dwarf2out.c (clone_tree_hash): New function. + (copy_decls_walk): Use it instead of clone_tree. + +2012-02-14 Richard Guenther + + PR tree-optimization/52244 + PR tree-optimization/51528 + * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE + replacements for integral types. + +2012-02-14 Walter Lee + + * config.gcc: Handle tilegx and tilepro. + * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for + tilegx and tilepro. + Add HAVE_AS_TLS check for tilegx and tilepro. + * configure: Regenerate. + * doc/contrib.texi: Add Mat Hostetter and self. + * doc/extend.texi (TILE-Gx Built-in Functions): New node. + Document instruction intrinsics and network accessing intrinsics. + (TILEPro Built-in Functions): New node. Document instruction + intrinsics and network accessing intrinsics. + * doc/install.texi (Specific, tilegx-*-linux*): Document it. + (Specific, tilepro-*-linux*): Likewise. + * doc/invoke.texi (TILE-Gx Options): New section. + (TILEPro Options): New section. + * doc/md.texi (TILE-Gx): New section. + (TILEPro): New section. + * common/config/tilegx/tilegx-common.c: New file. + * common/config/tilepro/tilepro-common.c: New file. + * config/tilegx/constraints.md: New file. + * config/tilegx/linux.h: New file. + * config/tilegx/mul-tables.c: New file. + * config/tilegx/predicates.md: New file. + * config/tilegx/sync.md: New file. + * config/tilegx/t-tilegx: New file. + * config/tilegx/tilegx-builtins.h: New file. + * config/tilegx/tilegx-c.c: New file. + * config/tilegx/tilegx-generic.md: New file. + * config/tilegx/tilegx-modes.def: New file. + * config/tilegx/tilegx-multiply.h: New file. + * config/tilegx/tilegx-protos.h: New file. + * config/tilegx/tilegx.c: New file. + * config/tilegx/tilegx.h: New file. + * config/tilegx/tilegx.md: New file. + * config/tilegx/tilegx.opt: New file. + * config/tilepro/constraints.md: New file. + * config/tilepro/gen-mul-tables.cc: New file. + * config/tilepro/linux.h: New file. + * config/tilepro/mul-tables.c: New file. + * config/tilepro/predicates.md: New file. + * config/tilepro/t-tilepro: New file. + * config/tilepro/tilepro-builtins.h: New file. + * config/tilepro/tilepro-c.c: New file. + * config/tilepro/tilepro-generic.md: New file. + * config/tilepro/tilepro-modes.def: New file. + * config/tilepro/tilepro-multiply.h: New file. + * config/tilepro/tilepro-protos.h: New file. + * config/tilepro/tilepro.c: New file. + * config/tilepro/tilepro.h: New file. + * config/tilepro/tilepro.md: New file. + * config/tilepro/tilepro.opt: New file. + +2012-02-14 Jakub Jelinek + + PR tree-optimization/52210 + * tree-vect-slp.c (vect_get_and_check_slp_defs): Call + vect_model_simple_cost with two entry vect_def_type array instead + of an address of dt. + +2012-02-14 Richard Guenther + + PR lto/52178 + * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers): + Do not stream DECL_QUALIFIER. + * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise. + * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER. + (find_decls_types_r): Do not walk DECL_QUALIFIER. + +2012-02-14 Jakub Jelinek + + PR c/52181 + * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to + newdecl. + +2012-02-13 Jakub Jelinek + + PR bootstrap/52172 + * cselib.h (cselib_subst_to_values_from_insn): New prototype. + * cselib.c (cselib_subst_to_values_from_insn): New function. + * sched-deps.c (add_insn_mem_dependence, + sched_analyze_1, sched_analyze_2): Use it. + +2012-02-13 Jan Hubicka + + PR middle-end/52214 + * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch. + +2012-02-13 Eric Botcazou + + * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm. + (GTM_SELF_SPECS): Define if not already defined. + (driver_self_specs): Add GTM_SELF_SPECS. + * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm. + (GTM_SELF_SPECS): Define. + * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise. + * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise. + +2012-02-13 Jakub Jelinek + + * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right + away if seen. + + * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL. + + PR middle-end/52230 + * omp-low.c (expand_omp_for): If a static schedule without chunk size + has NULL region->cont, force fd.chunk_size to be integer_zero_node. + +2012-02-13 Andrew MacLeod + + PR c/52190 + * doc/extend.texi : Fix another __atomic_compare_exchange typo. + +2012-02-13 Richard Guenther + + PR translation/52211 + * passes.c (enable_disable_pass): Fix typo. + +2012-02-13 Jakub Jelinek + + PR middle-end/52209 + * expr.c (expand_expr_real_2) : Only expand using + XOR for reduce_bit_field if type is unsigned. + +2012-02-12 Eric Botcazou + + * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode, + disallow changes from SFmode to mode with different size in FP regs. + +2012-02-12 Robert Millan + Gerald Pfeifer + + * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define. + Tweak comment. + +2012-02-11 Richard Sandiford + + PR rtl-optimization/52175 + * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization + to frame-related instructions. + +2012-02-10 Jason Merrill + + PR c++/51910 + * tlink.c (demangled_hash_entry): Change mangled to a VEC. + (demangle_new_symbols): Fill it. + (scan_linker_output): Walk it. + (start_tweaking): Split out from scan_linker_output. + (maybe_tweak): Update sym->chosen. + * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o + +2012-02-11 Jakub Jelinek + + PR debug/52132 + * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg. + +2012-02-11 Uros Bizjak + + * compare-elim.c (find_comparisons_in_bb): Eliminate only compares + having the same mode as previous compare. + +2012-02-10 Eric Botcazou + + * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use. + * config/sparc/sparc.md (UNSPECV_GOTO): Delete. + (nonlocal_goto_internal): Likewise. + (nonlocal_goto): Emit a use and an indirect jump directly. + +2012-02-10 Andrew MacLeod + + PR c/52190 + * doc/extend.texi : Update comments for __atomic_compare_exchange and + __atomic_{is,always}_lock_free. + +2012-02-10 Uros Bizjak + + PR target/52146 + * config/i386/i386.c (ix86_legitimate_address_p): Disallow + negative constant address for TARGET_X32. + +2012-02-10 Richard Henderson + + * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION. + * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands + for GIMPLE_TRANSACTION. Tidy if's into a switch. + +2012-02-10 Bill Schmidt + Ira Rosen + + PR tree-optimization/50031 + * targhooks.c (default_builtin_vectorization_cost): Handle + vec_promote_demote. + * target.h (enum vect_cost_for_stmt): Add vec_promote_demote. + * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle + all types of reduction and pattern statements. + (vect_estimate_min_profitable_iters): Likewise. + * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function. + (vect_get_load_cost): Use vec_perm for permutations; add dump logic + for explicit realigns. + (vectorizable_conversion): Call vect_model_promotion_demotion_cost. + * config/spu/spu.c (spu_builtin_vectorization_cost): Handle + vec_promote_demote. + * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise. + * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update + vec_perm for VSX and handle vec_promote_demote. + +2012-02-10 Jakub Jelinek + + PR middle-end/52177 + * builtins.c (fold_builtin_atomic_always_lock_free, + expand_builtin_atomic_always_lock_free, + fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free): + Return and/or test boolean_true_node/boolean_false_node instead of + integer_one_node/integer_zero_node. + +2012-02-10 Jan Hubicka + + PR middle-end/48600 + * predict.c (predict_paths_for_bb): Prevent looping. + (predict_paths_leading_to_edge, predict_paths_leading_to): Update. + +2012-02-10 Roman Zhuykov + + * config/arm/arm.c (output_move_double): In one case properly + count number of instructions that will be emitted. + +2012-02-10 Richard Guenther + + PR translation/52193 + * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo. + +2012-02-09 Peter Bergner + + PR middle-end/52140 + * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P. + +2012-02-09 Jakub Jelinek + + PR debug/52165 + * var-tracking.c (emit_note_insn_var_location): If + EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION, + emit it before next non-NOTE_INSN_CALL_ARG_LOCATION + non-NOTE_DURING_CALL_P insn. + +2012-02-09 Bin Cheng + + PR middle-end/51867 + * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P. + +2012-02-08 Magnus Granberg + + PR driver/48524 + * gcc.c (switch_matches) Support switches with separated form, + -D and -U. + +2012-02-08 Georg-Johann Lay + + * config/avr/avr.md (SREG_ADDR): Remove constant definition. + (SP_ADDR): Ditto. + (RAMPZ_ADDR): Ditto. + * config/avr/avr.c (avr_addr_t): New typedef. + (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG. + (avr_init_expanders): Initialize it. + (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR, + SREG_ADDR. + (expand_epilogue): Ditto. + (avr_print_operand): Ditto. + (avr_file_start): Ditto. + (avr_emit_movmemhi): Ditto. + +2012-02-08 Richard Guenther + + PR tree-optimization/46886 + * tree-flow.h (do_while_loop_p): Declare. + * tree-ssa-loop-ch.c (do_while_loop_p): Export. + * tree-parloops.c (parallelize_loops): Only parallelize do-while loops. + +2012-02-08 Andrew MacLeod + + * optabs.c (expand_atomic_load): Do not assume compare_and_swap will + always succeed for integers larger than a native word. + +2012-02-08 Richard Guenther + + PR rtl-optimization/52170 + * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to + properly handle integer vector modes. + +2012-02-08 Jakub Jelinek + + PR gcov-profile/52150 + * coverage.c: Include target.h. + (build_var): Call targetm.strip_name_encoding on the assembler name. + Change one _ into . or $ if the target allows it. + * Makefile.in (coverage.o): Depend on $(TARGET_H). + + PR rtl-optimization/52139 + * cfgrtl.c (cfg_layout_merge_blocks): If BB_END + is a BARRIER after emit_insn_after_noloc, move BB_END + to the last non-BARRIER insn before it. + +2012-02-07 Richard Sandiford + + PR middle-end/24306 + * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function. + (mips_gimplify_va_arg_expr): Call it instead of + std_gimplify_va_arg_expr. + +2012-02-07 Michael Meissner + + * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error + message for -mno-pointers-to-nested-function. + +2012-02-07 Eric Botcazou + + PR middle-end/51994 + * expr.c (get_inner_reference): If there is an offset, add a negative + bit position to it (if any). + +2012-02-07 Jakub Jelinek + + PR rtl-optimization/52060 + * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables, + copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already + before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy + and/or i0src_copy2 when needed. + +2012-02-07 Jakub Jelinek + + * gcc.c (main): Don't look for lto-wrapper or lto-wrapper + or LTOPLUGINSONAME if have_c. + + * config/freebsd-spec.h: Add comment about what macros can be defined + in this header. + (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here. + * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But + here instead. + +2012-02-07 Richard Guenther + + * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive + newline in -alias dumps. + +2012-02-07 Kai Tietz + Dave Korn + + PR target/40068 + * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): + Take care that typinfo gets dllexport-attribute. + +2012-02-07 Jakub Jelinek + + PR middle-end/52074 + * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL + if modifier < EXPAND_SUM call force_operand on the result. + +2012-02-07 Joern Rennecke + + * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine, + adding __forwarder_dst__ prefix if a forwarder_section attribute is + present. + (epiphany_function_type): Replace types for specific interrupts with + EPIPHANY_FUNCTION_INTERRUPT. + (EPIPHANY_INTERRUPT_P): Update. + * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute): + New static function. + (epiphany_attribute_table) : min_len is 0, max_len is 9. + : Affects type identity. + (epiphany_handle_interrupt_attribute): Handle variable number of + arguments. + (epiphany_compute_function_type): Update for new + epiphany_function_type definition. + (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt + handlers with a longcall forwarder. + (epiphany_start_function): Handle multiple interrupt arguments and/or + forwarder_section attribute. + + * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after + libgloss. + +2012-02-07 Alan Modra + + PR target/52107 + * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode + subregs of TFmode. + +2012-02-06 Bill Schmidt + + PR tree-optimization/50969 + * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to + use vec_perm rather than vector_stmt. + (vect_model_load_cost): Likewise. + * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of + vec_perm to be the same as other vector statements. + * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise + cost of vec_perm for TARGET_VSX. + +2012-02-06 Richard Guenther + + PR tree-optimization/52115 + * tree-sra.c (access_has_replacements_p): New function. + (sra_modify_assign): Use it to decide whether a use is uninitialized. + +2012-02-06 Patrick Marlier + + PR middle-end/52047 + * trans-mem.c (expand_call_tm): Add an assertion. + * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops' + functions. + +2012-02-06 Richard Guenther + + PR tree-optimization/50955 + * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially + raise cost of expressions that replace an address with an + expression based on a different pointer. + +2012-02-06 Jakub Jelinek + + PR target/52129 + * calls.c (mem_overlaps_already_clobbered_arg_p): If val is + CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it. + +2012-02-06 Jonathan Wakely + + PR c++/48680 + * doc/invoke.texi (C++ Dialect Options): Use @option markup for + -Weffc++ and specify guidelines come from second edition. + +2012-02-05 Richard Sandiford + + * config/mips/mips.md (sibcall_internal, sibcall_value_internal) + (sibcall_value_multiple_internal, call_split, call_internal_direct) + (call_direct_split, call_value_split, call_value_internal_direct) + (call_value_direct_split, call_value_multiple_split): Use jal and + jal_macro attributes. + +2012-02-05 Richard Sandiford + + * reload1.c (reload_regs_reach_end_p): Replace with... + (reload_reg_rtx_reaches_end_p): ...this function. + (new_spill_reg_store): Update commentary. + (emit_input_reload_insns): Don't clear new_spill_reg_store here. + (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p + before setting new_spill_reg_store. + (emit_reload_insns): Use a separate loop to clear new_spill_reg_store. + Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p. + Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store + for non-spill reload registers. + +2012-02-05 Ira Rosen + + PR tree-optimization/52091 + * tree-vectorizer.h (vect_is_simple_use): Add an argument. + (vect_is_simple_use_1): Likewise. + * tree-vect-loop.c (vectorizable_reduction): Update calls + to vect_is_simple_use_1 and vect_is_simple_use. + (vectorizable_live_operation): Likewise. + * tree-vect-patterns.c (widened_name_p, + vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise. + * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand, + vectorizable_call, vectorizable_conversion, vectorizable_assignment, + vectorizable_shift,vectorizable_operation, vectorizable_store, + vectorizable_load): Likewise. + (vect_is_simple_cond): Add an argument, pass it to + vect_is_simple_use_1. + (vectorizable_condition): Update calls to vect_is_simple_cond, + vect_is_simple_use. + (vect_is_simple_use): Add an argument, the statement in which + OPERAND is used. Check that if OPERAND's def stmt is a double + reduction phi node, the use is a phi node too. + (vect_is_simple_use_1): Add an argument, pass it to + vect_is_simple_use. + * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call + to vect_is_simple_use. + +2012-02-04 Jakub Jelinek + + PR rtl-optimization/52095 + * modulo-sched.c (dump_insn_locator): New function. + (loop_canon_p, sms_schedule): Use it. + + PR rtl-optimization/52113 + * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized + even for decomposable shift/zext insns. + +2012-02-03 Jakub Jelinek + Zdenek Dvorak + + PR rtl-optimization/52092 + * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared + on get_iv_value result. + +2012-02-02 Andrew Pinski + + PR middle-end/47982 + PR middle-end/43967 + * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo. + +2012-02-02 Jakub Jelinek + + PR middle-end/48071 + * diagnostic.c (diagnostic_finish): Remove trailing newlines. + +2012-02-02 Vladimir Makarov + + PR rtl-optimization/49800 + * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs. + (sched_finish): Call regstat_free_n_sets_and_refs. + +2012-02-02 Jia Liu + + * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather + than operand 2. + +2012-02-02 Jan Hubicka + Tom de Vries + + PR middle-end/51998 + * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases. + * varpool.c (varpool_analyze_pending_decls): Likewise. + +2012-02-02 Sumanth G + Jayant R Sonar + + * config.gcc: Add cr16-* support. + + * doc/extend.texi: Document cr16 extensions. + * doc/install.texi: Document cr16 install. + * doc/invoke.texi: Document cr16 options. + * doc/md.texi: Document cr16 constraints. + + * common/config/cr16/cr16-common.c: New file. + * config/cr16/cr16.c: New file. + * config/cr16/cr16.h: New file. + * config/cr16/cr16.md: New file. + * config/cr16/cr16.opt: New file. + * config/cr16/cr16-protos.h: New file. + * config/cr16/predicates.md: New file. + * config/cr16/constraints.md: New file. + * config/cr16/t-cr16: New file. + +2012-02-02 Jakub Jelinek + + PR target/52086 + * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check + that operands[2] is either immediate, or q_regs_operand. + + PR tree-optimization/52073 + * tree-vect-stmts.c (vect_mark_relevant): When checking uses of + a pattern stmt for pattern uses, ignore uses outside of the loop. + +2012-02-01 Georg-Johann Lay + + * config/avr/avr.c: Resolve all AS1 and AS2 macros. + * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove. + (OUT_AS1, OUT_AS2): Remove. + +2012-02-01 Georg-Johann Lay + + PR rtl-optimization/51374 + * combine.c (can_combine_p): Don't allow volatile_refs_p insns + to cross other volatile_refs_p insns. + +2012-02-01 Richard Guenther + + * doc/invoke.texi (fno-inline): Clarify documentation. + (finline-small-functions): Likewise. + (finline-functions): Likewise. + * common.opt (finline): Adjust comment and documentation. + (finline-small-functions): Clarify documentation. + (finline-functions): Likewise. + (finline-functions-called-once): Likewise. + +2012-02-01 Tristan Gingold + + * c-typeck.c (composite_type): Keep mode for pointers. + +2012-01-31 Richard Sandiford + + * function.h (regno_reg_rtx): Adjust comment. + * reginfo.c (init_reg_modes_target): Only use the previous mode + if it fits within one register. Remove MIPS comment. + +2012-01-31 Jakub Jelinek + + PR bootstrap/52058 + * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0. + +2012-01-31 Andreas Krebbel + + * config/s390/s390.md ("*ashr3_and"): Add missing z196 flag + to srak instruction. + +2012-01-31 Matthew Gretton-Dann + + * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition. + +2012-01-31 Jakub Jelinek + + PR bootstrap/52041 + PR bootstrap/52039 + PR target/51974 + * ipa-prop.c (detect_type_change_1): Call ao_ref_init. + +2012-01-31 Richard Guenther + + PR tree-optimization/51528 + * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate + assigns. + +2012-01-31 Jakub Jelinek + + PR bootstrap/52041 + PR bootstrap/52039 + PR target/51974 + * ree.c (add_removable_extension): Change def_map argument + to unsigned *, store in def_map 1 + offset into *insn_list vector + instead of pointers into the vector. + (find_removable_extensions): Adjust caller. + +2012-01-30 Georg-Johann Lay + + * config/avr/avr.md: Resolve all AS1 and AS2 macros. + Transform all "* quoted-c-code" to { c-code }. + Remove redundant test for "optimize" in combine patterns. + Move (include "avr-dimode.md") to end of file. + +2012-01-30 Bin Cheng + + PR target/51835 + * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI + for __aeabi_d2iz/__aeabi_d2uiz with hard-float. + +2012-01-30 Richard Guenther + + PR tree-optimization/52028 + * tree-loop-distribution.c (ldist_gen): Properly update + virtual SSA form. + +2012-01-30 Jakub Jelinek + + PR debug/52027 + * dwarf2out.c (dwarf2out_switch_text_section): Don't call + set_cur_line_info_table if not emitting debug info. + + PR tree-optimization/52046 + * tree-vect-patterns.c (check_bool_pattern): Give up if + a comparison could throw. + + PR debug/52048 + * tree-ssa-tail-merge.c (local_def): Ignore debug uses. + +2012-01-30 Richard Guenther + + PR tree-optimization/52045 + * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update + SSA form if cfgcleanup did anything. + +2012-01-30 Richard Guenther + + PR tree-optimization/52045 + * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg + before computing final todo. + +2012-01-30 Richard Guenther + + PR tree-optimization/51528 + * tree-sra.c (sra_modify_assign): Re-factor in preparation + for PR51528 fix. + +2012-01-30 Paolo Bonzini + + * df-problems.c (df_kill_notes): Check that the use refers + to the note under examination. + +2012-01-30 Eric Botcazou + + PR target/51920 + * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE + parameter and use short-lived pseudos. + (vector_init_faligndata): Remove INNER_MODE parameter and use loop. + (sparc_expand_vector_init): Const-ify local variables and adjust + calls to above functions. + +2012-01-30 Georg-Johann Lay + + * config/avr/avr.c (out_movqi_mr_r): Fix length computation. + +2012-01-29 Sandra Loosemore + + * doc/invoke.texi: Make usage of "compile time" and + "run time"/"runtime" consistent throughout the file. + +2012-01-29 Uros Bizjak + + * config/alpha/alpha.c (alpha_option_override): Default to + full IEEE compliance mode for Go language. + +2012-01-29 Tijl Coosemans + + * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP] + (LINK_SSP_SPEC): Define. + +2012-01-28 John David Anglin + + PR target/51871 + * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export + stubs. + +2012-01-28 Sandra Loosemore + + * doc/invoke.texi: Correct hyphenation of "floating point", + "double precision", and related terminology throughout the file. + +2012-01-28 Jakub Jelinek + + PR target/52006 + * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use + arm_general_register_operand predicate for operand 2 instead of + register_operand. + +2012-01-27 Ian Lance Taylor + + PR go/47656 + * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define. + * builtins.c (expand_builtin_init_trampoline): Add onstack + parameter. Change caller. + (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE. + * tree.c (build_common_builtin_nodes): Declare + __builtin_init_heap_trampoline. + +2012-01-27 Georg-Johann Lay + + * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx, + tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global. + * config/avr/avr.c: Ditto. + (avr_regnames): Remove because unused. + * config/avr/avr.md (*cpse.ne): New peephole. + (*cpse.eq): New peephole from former cpse peepholes. + +2012-01-27 Michael Eager + + * config/microblaze.c (microblaze_emit_compare): Correct + test after pcmp instruction. + +2012-01-27 Richard Guenther + + PR tree-optimization/52020 + * tree-sra.c (sra_modify_assign): Do not transform clobbers. + +2012-01-27 Richard Guenther + + * ipa-pure-const.c (check_stmt): Clobbers do not make a + function non-const/pure. + +2012-01-27 Richard Guenther + + PR tree-optimization/50444 + * tree-sra.c (build_ref_for_offset): Properly adjust the + MEM_REF type for unaligned accesses. + +2012-01-27 Richard Guenther + + PR tree-optimization/50444 + * expr.c (mem_ref_refers_to_non_mem_p): New function. + (expand_assignment): Use it. Properly handle misaligned + bases when expanding stores to component references. + (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and + refactor that case. + +2012-01-27 Andrey Belevantsev + + PR middle-end/51389 + * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H). + * tree-data-ref.h (find_data_references_in_loop): Remove declaration. + * tree-data-ref.c (find_data_references_in_loop): Make static. + (compute_all_dependences): Change return type to bool. Bail out + for too many datarefs in a loop. Move the hunk resetting the data + dependences vector from ... + (compute_data_dependences_for_loop): ... here. Account for + compute_all_dependences returning false. + (compute_data_dependences_for_bb): Likewise. + * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param. + * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it. + +2012-01-27 Richard Guenther + + PR middle-end/51959 + * expr.c (store_field): Use the alias-set of the scratch memory + for storing to it. + +2012-01-27 Tom de Vries + + PR tree-optimization/51990 + * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle + WITH_SIZE_EXPR. + * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same. + +2012-01-27 Jakub Jelinek + + PR debug/52001 + * var-tracking.c (reverse_op): Don't add any reverse operation + if V already has any constant locations. + +2012-01-27 Sandra Loosemore + + * doc/invoke.texi: Correct usage of "command line" (noun) + vs "command-line" (adjective) throughout. + +2012-01-27 Sandra Loosemore + + * doc/invoke.texi (Language Independent Options): Move + -Wcoverage-mismatch blurb from here.... + (Warning Options): ...to here. + +2012-01-27 Peter Bergner + + * config/rs6000/rs6000.c (rs6000_option_override_internal): + Set rs6000_always_hint to false for 476. + +2012-01-27 Matthias Klose + + * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from + system root. + * incpath.c (add_standard_paths): Likewise. + +2012-01-27 Richard Henderson + + * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. + * config/m68k/sync.md (atomic_test_and_set): Rename from + sync_test_and_setqi and adjust the operands. + (atomic_test_and_set_1): Rename from sync_test_and_setqi_1 + and unconditionally enable. + +2012-01-27 Richard Henderson + + * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. + * config/sparc/sync.md (atomic_test_and_set): Only handle QImode. + (ldstub): Rename from ldstubqi. + (ldstub): Remove. + +2012-01-27 Richard Henderson + + * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New. + * c-cppbuiltin.c (cpp_atomic_builtins): Define + __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. + * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook. + * doc/tm.texi: Rebuild. + +2012-01-27 Richard Henderson + + * optabs.c (gen_atomic_test_and_set): Remove default. + (maybe_emit_atomic_test_and_set): Use maybe_expand_insn. + +2012-01-26 Jakub Jelinek + + PR rtl-optimization/51978 + * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx. + (combine_reaching_defs): Likewise. + (struct re_info): Remove. + (add_removable_extension): Remove x and data arguments, + add insn, insn_list and def_map. Use the arguments directly + instead of using struct re_info. + (find_removable_extensions): Don't call add_removable_extension + through note_stores, instead just call it with single_set + result if non-NULL. + (find_and_remove_re): Pass curr_cand->expr instead of + PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs. + +2012-01-26 Michael Matz + + PR tree-optimization/46590 + * cfgexpand.c: Revert last change (r183305). + * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple + regs. + * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before + checking for emptiness. + +2012-01-26 Jakub Jelinek + + PR middle-end/51895 + * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of + non-addressable non-BLKmode base correctly. + +2012-01-26 Michael Matz + + PR tree-optimization/48794 + * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove + regions referenced from RESX/EH_DISPATCH. + +2012-01-26 Andreas Krebbel + + * config/s390/s390.h: Make BRANCH_COST an option. + * config/s390/s390.opt: New option -mbranch-cost. + +2012-01-26 Richard Henderson + + Revert 2012-01-24 change: + * trans-mem.c (requires_barrier): Do not instrument thread local + variables and emit save/restore for them. + +2012-01-25 Jakub Jelinek + + PR middle-end/51986 + * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test + for pat == 0. + +2012-01-25 Richard Sandiford + + * config/mips/mips.c (mips_small_data_pattern_1): Don't process + ASM_OPERANDS. + +2012-01-25 Georg-Johann Lay + + PR target/49868 + Rename __pgm to __flash. + Rename __pgm1 to __flash1. + Rename __pgm2 to __flash2. + Rename __pgm3 to __flash3. + Rename __pgm4 to __flash4. + Rename __pgm5 to __flash5. + Rename __pgmx to __memx. + * doc/extend.texi (AVR Named Address Spaces) + Rename address space names as indicated above. + * config/avr/avr.c (avr_addrspace): Ditto. + + * config/avr/avr-protos.h + (avr_mem_pgmx_p): Rename to avr_mem_memx_p. + (avr_mem_pgm_p): Rename to avr_mem_flash_p. + * config/avr/predicates.md: Ditto. + * config/avr/avr.c Ditto, and + (avr_decl_pgmx_p): Rename to avr_decl_memx_p. + (avr_decl_pgm_p): Rename to avr_decl_flash_p. + + * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH. + (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1. + (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2. + (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3. + (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4. + (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5. + (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX. + * config/avr/avr.c: Ditto. + * config/avr/avr.md: Ditto. + +2012-01-25 Jason Merrill + + PR c++/51992 + * tree.c (find_decls_types_in_node): Walk gimple_call_fntype. + +2012-01-25 Jakub Jelinek + + PR tree-optimization/51987 + * tree-data-ref.c (get_references_in_stmt): Handle references in + non-volatile GIMPLE_ASM. + +2012-01-25 Richard Guenther + + * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both + bases are dereferenced. + +2012-01-25 Andrey Belevantsev + + PR rtl-optimization/48374 + * sel-sched-ir.h (get_all_loop_exits): Check for zero successors. + +2012-01-25 Andrey Belevantsev + + * tree-predcom.c (tree_predictive_commoning_loop): Bail out when + compute_data_dependences_for_loop returns false. + * tree-parloops.c (loop_parallel_p): Likewise. + +2012-01-25 Richard Guenther + + * tree.h (get_pointer_alignment_1): Declare. + * builtins.c (get_pointer_alignment_1): New function. + (get_pointer_alignment): Use it. + +2012-01-25 Ramana Radhakrishnan + + PR rtl-optimization/48308 + * combine.c (enum undo_kind): Add UNDO_LINKS. + (struct undo): Add member l to other_contents and where. + (do_SUBST_LINK): New. + (SUBST_LINK): New. + (try_combine): Handle LOG_LINKS for the dummy i1 case. + (undo_all): Handle UNDO_LINKS. + +2012-01-25 Richard Henderson + + * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode + mem inputs. + +2012-01-24 Richard Sandiford + + * optabs.c (gen_atomic_test_and_set): Use each argument. + +2012-01-24 Richard Sandiford + + * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf) + (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_) + (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t) + (bc1any2f, mips_rsqrt1_, mips_rsqrt2_, mips_recip1_) + (mips_recip2_): Require TARGET_MIPS3D rather than + TARGET_PAIRED_SINGLE_FLOAT. + +2012-01-24 Richard Sandiford + + * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete. + (in_struct, return_val): Remove MEM documentation. + * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val. + (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete. + (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P + and MEM_SCALAR. + * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise. + * cfgexpand.c (add_alias_set_conflicts): Likewise. + * expr.c (store_field): Likewise. + * function.c (assign_stack_temp_for_type): Likewise. + * ifcvt.c (noce_try_cmove_arith): Likewise. + * reload1.c (reload): Likewise. + * config/alpha/alpha.c (alpha_set_memflags_1): Likewise. + (alpha_set_memflags): Likewise. + * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify. + +2012-01-24 Richard Sandiford + + * rtl.h (true_dependence, canon_true_dependence): Remove varies + parameter. + * alias.c (fixed_scalar_and_varying_struct_p): Delete. + (true_dependence_1, write_dependence_p, may_alias_p): Don't call it. + (true_dependence_1, true_dependence, canon_true_dependence): Remove + varies parameter. + * cselib.c (cselib_rtx_varies_p): Delete. + (cselib_invalidate_mem): Update call to canon_true_dependence. + * dse.c (record_store, check_mem_read_rtx): Likewise. + (scan_reads_nospill): Likewise. + * cse.c (check_dependence): Likewise. + (cse_rtx_varies_p): Delete. + * expr.c (safe_from_p): Update call to true_dependence. + * ira.c (validate_equiv_mem_from_store): Likewise. + (memref_referenced_p): Likewise. + * postreload-gcse.c (find_mem_conflicts): Likewise. + * sched-deps.c (sched_analyze_2): Likewise. + * store-motion.c (load_kills_store): Likewise. + * config/frv/frv.c (frv_registers_conflict_p_1): Likewise. + * gcse.c (mems_conflict_for_gcse_p): Likewise. + (compute_transp): Update call to canon_true_dependence. + +2012-01-25 Richard Henderson + + * optabs.c (CODE_FOR_atomic_test_and_set): Provide default. + (maybe_emit_atomic_test_and_set): New. + (expand_sync_lock_test_and_set): Use it. + (expand_atomic_test_and_set): Likewise. + * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match + the implementation; clarify implementation defined details. + * doc/md.texi (atomic_test_and_set): Document. + +2012-01-25 Richard Henderson + + * config/sparc/predicates.md (zero_or_v7_operand): Use match_code. + +2012-01-25 Richard Henderson + + PR target/51968 + * config/arm/arm.c (neon_split_vcombine): Emit deleted note + to effect no-op split. + +2012-01-24 Aldy Hernandez + + PR lto/51698 + * builtin-types.def: (BT_CONST_DOUBLE_PTR): New. + (BT_FN_VOID_PTR_CONST_PTR_SIZE): New. + (BT_FN_VOID_PTR_INT_SIZE): New. + (BT_FN_UINT_UINT_VAR): Remove. + (BT_FN_UINT32_UINT32_VAR): New. + (BT_FN_DOUBLE_VPTR): Remove. + (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New. + + * gtm-builtins.def (_ITM_abortTransaction): Set return type to void. + (_ITM_changeTransactionMode): Same. + (_ITM_memmoveRtWt): Change return type to void. + (_ITM_memcpyRtWt): Same. + (_ITM_memsetW): Same. + (_ITM_RaRD): Change types to double. + (_ITM_RD): Same. + (_ITM_RaWD): Same. + (_ITM_RfWD): Same. + + * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true. + +2012-01-24 Aldy Hernandez + Patrick Marlier + + * trans-mem.c (requires_barrier): Do not instrument thread local + variables and emit save/restore for them. + +2012-01-24 Jason Merrill + + PR c++/51812 + * cgraphunit.c (cgraph_decide_is_function_needed): Don't always + output static aliases. + +2012-01-24 Jakub Jelinek + + PR driver/47249 + * common.opt (-pie, -shared, pie, shared): Change from Common to + Driver. + * gcc.c (display_help): Display help for -pie and -shared. + +2012-01-24 Georg-Johann Lay + + PR target/49868 + * doc/extend.texi (AVR Named Address Spaces): Move sample code up. + Remove note on size/offset limitation. + (AVR Variable Attributes): Add example how to read data located + with progmem. Refer to named address spaces. + * doc/invoke.texi (AVR Options): Fix typo. + +2012-01-24 Richard Guenther + + Forward-port to trunk + 2010-09-21 Jakub Jelinek + + PR middle-end/45678 + * expr.c (expand_expr_real_1) : If + op0 isn't sufficiently aligned and there is movmisalignM + insn for mode, use it to load op0 into a temporary register. + +2012-01-24 Jakub Jelinek + + PR target/51957 + * target.def (const_not_ok_for_debug_p): New hook. + * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook + documentation. + * doc/tm.texi: Regenerated. + * dwarf2out.c (const_ok_for_output_1): If + targetm.const_not_ok_for_debug_p returns true, fail. + * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New + function. + (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine. + +2012-01-23 Kai Tietz + + PR target/51900 + * config/i386/predicates.md (symbolic_operand): Allow + UNSPEC_PCREL as PIC expression for lea. + * config/i386/winnt.c (i386_pe_binds_local_p): Reworked. + * config/i386/i386.c (ix86_delegitimize_address): Handle + UNSPEC_PCREL for none-MEM, too. + +2012-01-23 Aldy Hernandez + + * trans-mem.c (ipa_tm_create_version): Set externally_visible. + (ipa_tm_create_version_alias): Same. + +2012-01-23 Uros Bizjak + + PR libitm/51830 + * builtin-types.def (BT_FN_UINT_UINT_VAR): New. + * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR. + +2012-01-23 Aldy Hernandez + Patrick Marlier + Iain Sandoe + + PR lto/51916 + * lto-wrapper.c (run_gcc): Pass the LTO section name to + simple_object_start_read. + +2012-01-23 Richard Guenther + + + PR tree-optimization/51895 + * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal + parameter decomposition into BLKmode components. + +2012-01-23 Eric Botcazou + + * tree-ssa-structalias.c (intra_create_variable_infos): Do not create + fake variables for restrict-qualified pointers whose pointed-to type + contains a placeholder. + +2012-01-23 Richard Guenther + + PR tree-optimization/51949 + * ipa-split.c (execute_split_functions): Do not split malloc functions. + +2012-01-23 Jakub Jelinek + + PR rtl-optimization/51933 + * ree.c (transform_ifelse): Return true right away if dstreg is + already wider or equal to cand->mode. + (enum ext_modified_kind, struct ext_modified, ext_state): New types. + (make_defs_and_copies_lists): Remove defs_list and copies_list + arguments, add state argument, just truncate state->work_list + instead of always allocating and freeing the vector. Assert that + get_defs succeeds instead of returning 2. Changed return type to bool. + (merge_def_and_ext): Add state argument. If SET_DEST doesn't + have ext_src_mode, see if it has been modified already with the + right kind of extension and has been extended before from the + ext_src_mode. If SET_DEST is already wider or equal to cand->mode, + just return true. Remember the original mode in state->modified array. + (combine_reaching_defs): Add state argument. Don't allocate and + free here def_list, copied_list and vec vectors, instead just + VEC_truncate the vectors in *state. Don't handle outcome == 2 here. + (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag. + Add state variable, clear vectors in it, initialize state.modified + if needed. Free all the vectors at the end and state.modified too. + Don't skip a candidate if the extension expression has been modified. + +2012-01-22 Douglas B Rupp + + PR target/47096 + * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete + configurations. Change triplet to i[34567]86-*-interix[3-9]*. + (extra_options) interix.opt -> i386/interix.opt" + (extra_objs):Add winnt-stubs.o + * configure.ac: Add interix to target_os .comm on PE check. + * configure: Regenerate. + * config/interix3.h: Delete and move bits to.. + * config/interix.h: Delete and move bits to.. + * config/i386/i386-interix3.h: Delete and move bits to.. + * config/i386/i386-interix.h: ..here. + (TARGET_CPU_DEFAULT): Remove redefinition. + (TARGET_ASM_CONSTRUCTOR): Undefine. + (SUBTARGET_SWITCHES): Define for ms-bitfields. + (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec. + (PTRDIFF_TYPE): Define. + (LONG_DOUBLE_TYPE_SIZE): Define. + (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define. + (SUBTARGET_OVERRIDE_OPTIONS): Remove. + (TARGET_SECTION_TYPE_FLAGS): Define. + (ASM_DECLARE_FUNCTION_NAME): Define. + (ASM_OUTPUT_EXTERNAL): Define. + (ASM_OUTPUT_EXTERNAL_LIBCALL): Define. + (ASM_OUTPUT_ALIGNED_BSS): Define. + (PCC_BITFIELD_TYPE_MATTERS): Define. + (USE_CONST_SECTION): Define. + (SUBTARGET_ENCODE_SECTION_INFO): Remove. + (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove. + (SUPPORTS_ONE_ONLY): Remove. + (I386_PE_STRIP_ENCODING): Define. + * config/interix.opt: Delete and move bits to.. + * config/i386/interix.opt: ..here. New. + (mpe-aligned-commons): Add. + * config/i386/t-interix: Add copyright header. + (winnt-stubs.o): Add rule. + +2012-01-22 Jason Merrill + + PR c++/51832 + * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL + for extra name aliases. + +2012-01-22 Eric Botcazou + + PR rtl-optimization/51924 + * ree.c (combine_set_extension): Improve debugging message. + (combine_reaching_defs): Likewise. + (get_defs): Rename confusingly named variable. + (find_and_remove_re): Skip a candidate if the extension expression has + been modified. + +2012-01-21 Robert Millan + Gerald Pfeifer + + * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro. + (GNU_USER_DYNAMIC_LINKER): Adjust indentation. + +2012-01-20 Jakub Jelinek + + PR tree-optimization/51914 + * tree-vect-stmts.c (vectorizable_conversion): For + cvt_type && modifier == WIDEN, put temporary with cvt_type + at the beginning of vec_dsts and set vec_dest to temporary + with vectype_out. + +2012-01-20 Eric Botcazou + + * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. + +2012-01-20 Tijl Coosemans + + * config/i386/i386.c: Fix checks for !TARGET_MACHO. + * config/rs6000/rs6000.c: Likewise. + +2012-01-20 Jakub Jelinek + + PR target/51915 + * config/arm/arm.c (arm_count_output_move_double_insns): Call + output_move_double on a copy of operands array. + +2012-01-20 Cary Coutant + Dodji Seketeli + + PR debug/45682 + * dwarf2out.c (copy_declaration_context): Return ref to parent + of declaration DIE, if necessary. + (remove_child_or_replace_with_skeleton): Add new parameter; update + caller. Place skeleton DIE under parent DIE of original declaration. + Move call to copy_declaration_context to here ... + (break_out_comdat_types): ... from here. + +2012-01-20 Andreas Krebbel + + PR rtl-optimization/51856 + * reload.c (find_reloads_subreg_address): Set the address_reloaded + flag to reloaded. + +2012-01-20 Ramana Radhakrishnan + + PR target/51819 + * config/arm/arm.c (arm_print_operand): Correct output of alignment + hints for neon loads and stores. + +2012-01-20 Georg-Johann Lay + + PR target/49868 + PR target/50887 + * doc/extend.texi (Named Address Spaces): Split into subsections. + (AVR Named Address Spaces): New subsection. + (M32C Named Address Spaces): New subsection. + (RL78 Named Address Spaces): New subsection. + (SPU Named Address Spaces): New subsection. + (Variable Attributes): New anchor "AVR Variable Attributes". + (AVR Variable Attributes): Rewrite and avoid wording + "address space" in this context. + * doc/invoke.texi (AVR Options): Rewrite and add documentation + for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls. + (AVR Built-in Macros): New subsubsection therein. + * doc/md.texi (AVR constraints): Remove "C04", "R". + +2012-01-20 Richard Guenther + + PR tree-optimization/51903 + * tree-ssa-pre.c (eliminate): Properly purging of EH edges + when removing stmts. + +2012-01-20 Ramana Radhakrishnan + + PR target/50313 + * config/arm/arm.c (arm_load_pic_register): Use + gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit + , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four. + (arm_pic_static_addr): Likewise. + (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED. + (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED. + * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define. + (pic_load_addr_unified): New. + +2012-01-20 Andrey Belevantsev + + PR target/51106 + * function.c (instantiate_virtual_regs_in_insn): Use + delete_insn_and_edges when removing a wrong asm insn. + +2012-01-19 Vladimir Makarov + + PR rtl-optimization/40761 + * ira-int.h (struct ira_loop_tree_node): Add comment for member loop. + Add new member loop_num. + (IRA_LOOP_NODE_BY_INDEX): Modify the check. + (ira_build): Remove the parameter. + + * ira.c (ira_print_disposition): Use loop_num instead of loop->num. + (ira.c): Do not build CFG loops for one region allocation. Remove + argument from ira_build call. + + * ira-build.c (init_loop_tree_node): New function. + (create_loop_tree_nodes): Use it. Separate the case when CFG + loops are not built. + (more_one_region_p): Check current_loops. + (finish_loop_tree_nodes): Separate the case when CFG loops are not + built. + (add_loop_to_tree): Process loop equal to NULL too. + (form_loop_tree): Separate the case when CFG loops are not built. + Use explicitly number for the root. + (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add + an assertion. + (ira_print_expanded_allocno, loop_compare_func): Use loop_num + instead of loop->num. + (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num. + (mark_all_loops_for_removal): Ditto. + (remove_unnecessary_regions): Separate the case when CFG loops + are not built. + (ira_build): Remove the parameter. Use explicit number of regions + when CFG loops are not built. + + * ira-color.c (print_loop_title): Separate the case for the root node. + Use loop_num instead of loop->num. + (move_spill_restore): Use loop_num instead of loop->num. + + * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion. + (change_loop): Ditto. + (change_loop): Use loop_num instead of loop->num. + + * ira-lives.c (process_bb_node_lives): Ditto. + + * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto. + + * ira-conflicts.c (print_allocno_conflicts): Ditto. + +2012-01-19 Jakub Jelinek + + PR libmudflap/40778 + * tree-mudflap.c (mf_artificial): New function. + (execute_mudflap_function_ops, execute_mudflap_function_decls, + mx_register_decls, mudflap_enqueue_decl): Use it. + + PR target/51876 + * config/arm/neon.md (*neon_vswp): Fix up operand + numbers in the insn pattern. + +2012-01-19 Michael Matz + + PR tree-optimization/46590 + * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument, + use it in remembering which conflicts we already created. + (add_scope_conflicts): Adjust call to above, (de)allocate helper + bitmap. + +2012-01-19 Aldy Hernandez + + PR lto/51280 + * lto-wrapper.c (run_gcc): Pass -fgnu_tm on. + (merge_and_complain): Same. + +2012-01-19 Jakub Jelinek + + PR bootstrap/50237 + * config/initfini-array.h: Guard content of the header + with #ifdef HAVE_INITFINI_ARRAY. + * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file. + Add initfini-array.h to tm_file here. + * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test. + * config.gcc: Don't add initfini-array.h to tm_file here. + * configure: Regenerated. + +2012-01-19 Andrey Belevantsev + + PR rtl-optimization/51505 + * df-problems.c (df_kill_notes): New parameter live. Update comment. + Remove REG_EQUAL/REG_EQUIV notes referring to dead registers. + (df_note_bb_compute): Update the call to df_kill_notes. + +2012-01-18 Aldy Hernandez + + * trans-mem.c (requires_barrier): Remove call to is_global_var. + +2012-01-18 Richard Guenther + + * tree-ssa.c (useless_type_conversion_p): Remove special-casing + of conversions to void *. + +2012-01-17 Andreas Krebbel + Richard Sandiford + + PR middle-end/50325 + PR middle-end/51192 + * optabs.h (simplify_expand_binop): Declare. + * optabs.c (simplify_expand_binop): Make global. + * expmed.c (store_bit_field_1): Use simplify_expand_binop on big + endian targets if the source cannot be exactly covered by word + mode chunks. + +2012-01-17 Jakub Jelinek + + PR bootstrap/51872 + * hard-reg-set.h (struct hard_reg_set_container): New type. + * target.h (struct hard_reg_set_container): Forward declare. + * target.def (set_up_by_prologue): New target hook. + * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it. + * doc/tm.texi: Regenerated. + * function.c (thread_prologue_and_epilogue_insns): Change + set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container. + Call targetm.set_up_by_prologue on it. + * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function. + (TARGET_SET_UP_BY_PROLOGUE): Redefine to it. + +2012-01-17 Nick Clifton + + * config/rx/rx.c (rx_can_use_simple_return): New function. + * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype. + * config/rx/rx.md (return): Predicate on rx_can_use_simple_return. + +2012-01-17 Richard Guenther + + PR middle-end/51782 + * expr.c (expand_assignment): Take address-space information + from the address operand of MEM_REF and TARGET_MEM_REF. + (expand_expr_real_1): Likewise. + +2012-01-17 Andreas Krebbel + + * ira.c (do_reload): Make sure ira_dump_file is re-set if no + reload dump is requested. + +2012-01-17 Aldy Hernandez + + PR other/51165 + * trans-mem.c (requires_barrier): Call may_be_aliased. + +2012-01-17 Jakub Jelinek + + PR tree-optimization/51877 + * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever + call arguments and fndecls compare equal, instead return false if they + don't. Return true only if lhs1 and lhs2 are either both NULL, or + both SSA_NAMEs that are valueized the same, or they satisfy + operand_equal_p. + +2012-01-17 Rainer Orth + + * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on + Solaris 11+. + * configure: Regenerate. + +2012-01-16 Jan Hubicka + + PR c/12245 + PR c++/14179 + * convert.c (convert_to_integer): Use fold_convert for + converting an INTEGER_CST to integer type. + +2012-01-16 Jason Merrill + + PR c++/14179 + * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size. + +2012-01-16 Jakub Jelinek + + PR bootstrap/51860 + * config/s390/s390.c (s390_chunkify_start): Don't skip + call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip + NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes. + If insn is followed by NOTE_INSN_VAR_LOCATION or + NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes. + Don't use location of note insns. + + PR tree-optimization/51865 + * tree-inline.c (tree_function_versioning): Call remap_decl + on DECL_RESULT whenever it has VOID_TYPE_P type. + +2012-01-15 Richard Sandiford + + * config/mips/mips.c (mips16_build_call_stub): Don't use a stub + for calls to locally-binding MIPS16 functions if only the return + type uses float regs. + +2012-01-15 Chung-Lin Tang + Richard Sandiford + + * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete. + (SYMBOL_32_HIGH): Likewise. + (mips_output_tls_reloc_directive): Declare. + * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md. + (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare. + * config/mips/mips.c (mips_use_pcrel_pool_p): New variable. + (mips_lo_relocs, mips_hi_relocs): Make extern. + (mips16_stub_function): Move up file. + (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling. + (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too. + (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p. + (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of + SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false. + (mips_get_tp): Add MIPS16 support. + (mips_legitimize_tls_address): Remove MIPS16 sorry(). + Generalize DTPREL and TPREL handling. + (mips_init_relocs): Initialize mips_use_pcrel_pool_p. + Add MIPS16 TLS support. + (mips_output_tls_reloc_directive): New function. + (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs. + * config/mips/predicates.md (symbolic_operand_with_high) + (tls_reloc_operand): New predicates. + (force_to_mem_operand): Use mips_use_pcrel_pool_p. + * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec. + (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h. + (*unshifted_high): New instruction. Use it for MIPS16 high splitter. + (consttable_tls_reloc, tls_get_tp_mips16_): New patterns. + (*tls_get_tp_mips16_call_): Likewise. + +2012-01-15 Uros Bizjak + + PR rtl-optimization/51821 + * recog.c (peep2_find_free_register): Determine clobbered registers + from insn pattern. + +2012-01-14 Denis Chertykov + + PR target/50925 + * config/avr/avr-protos.h: Revert change of 2012-01-09. + * config/avr/avr.c: Likewise. + * config/avr/avr.h: Likewise. + +2012-01-13 Ian Lance Taylor + + PR c++/50012 + * tree.h (TYPE_QUALS): Add cast to int. + (TYPE_QUALS_NO_ADDR_SPACE): Likewise. + +2012-01-13 Ian Lance Taylor + + * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when + comparing param_index to VEC_length result. + +2012-01-13 Steven Bosscher + + * c-decl.c: Do not include tree-mudflap.h + * tree-optimize.c: Likewise. + * Makefile.in: Update dependencies. + +2012-01-13 Richard Guenther + + PR middle-end/8081 + * gimplify.c (gimplify_modify_expr_rhs): For calls with a + variable-sized result always use RSO. + +2012-01-12 DJ Delorie + + * cfgexpand.c (convert_debug_memory_address): Allow any valid + pointer type, not just the default pointer type. + +2012-01-09 Richard Henderson + Denis Chertykov + + PR target/50925 + * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare. + * config/avr/avr.c (avr_can_eliminate): Simplify. + (avr_initial_elimination_offset): Likewise. + (avr_prologue_setup_frame): Use hard_frame_pointer_rtx. + (expand_epilogue): Likewise. + (avr_legitimize_address): Gut. + (avr_legitimize_reload_address): Use hard_frame_pointer_rtx. + (avr_hard_regno_nregs): New. + (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers. + (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers. + * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer, + add soft frame pointer. + (CALL_USED_REGISTERS): Likewise. + (REG_CLASS_CONTENTS): Likewise. + (REGISTER_NAMES): Likewise. + (HARD_REGNO_NREGS): Use avr_hard_regno_nregs. + (HARD_FRAME_POINTER_REGNUM): New. + (FRAME_POINTER_REGNUM): Use soft frame pointer. + (ELIMINABLE_REGS): Eliminate from the soft frame pointer, + remove the HARD_FRAME_POINTER self-elimination. + +2012-01-12 Georg-Johann Lay + + PR target/51756 + * config/avr/avr.c (avr_encode_section_info): Test for absence of + DECL_EXTERNAL when checking for initializers of progmem variables. + +2012-01-12 Ira Rosen + + PR tree-optimization/51799 + * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check + that the last operation is a type demotion. + +2012-01-12 Uros Bizjak + + * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template. + (x86_shift_adj_1): Remove operand constraint from operand 3. + +2012-01-11 Jakub Jelinek + + PR bootstrap/51796 + * combine.c (distribute_notes): If i3 is a noreturn call, + allow old_size to be equal to args_size and make sure the + noreturn call gets REG_ARGS_SIZE note. + * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes + on noreturn calls even when the delta is 0. + +2012-01-11 Nathan Sidwell + + * gcov.c (STRING_SIZE): Remove. + (generate_results): Erase annotations for source files with no + coverage information. + (read_line): New. + (output_lines): Use it. + +2012-01-11 Eric Botcazou + + * gimple.h (gimplify_body): Remove first argument. + * gimplify.c (copy_if_shared): Add DATA argument. Do not create the + pointer set here, instead just pass DATA to walk_tree. + (unshare_body): Remove BODY_P argument and adjust. Create the pointer + set here and invoke copy_if_shared on the size trees of DECL_RESULT. + (unvisit_body): Likewise, but with unmark_visited. + (gimplify_body): Remove BODY_P argument and adjust. + (gimplify_function_tree): Adjust call to gimplify_body. + * omp-low.c (finalize_task_copyfn): Likewise. + +2012-01-11 Eric Botcazou + + * tree.h (build_function_decl_skip_args): Add boolean parameter. + (build_function_type_skip_args): Delete. + * tree.c (build_function_type_skip_args): Make static and add + SKIP_RETURN parameter. Fix thinko in the handling of variants. + (build_function_decl_skip_args): Add SKIP_RETURN parameter and + pass it to build_function_type_skip_args. + * cgraph.h (cgraph_function_versioning): Add boolean parameter. + (tree_function_versioning): Likewise. + * cgraph.c (cgraph_create_virtual_clone): Adjust call to + build_function_decl_skip_args. + * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter + and pass it to build_function_decl_skip_args/tree_function_versioning. + (cgraph_materialize_clone): Adjust call to tree_function_versioning. + * ipa-inline-transform.c (save_inline_function_body): Likewise. + * trans-mem.c (ipa_tm_create_version): Likewise. + * tree-sra.c (modify_function): Ditto for cgraph_function_versioning. + * tree-inline.c (declare_return_variable): Remove always-true test. + (tree_function_versioning): Add SKIP_RETURN parameter. If the function + returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL. + * ipa-split.c (split_function): Skip the return value for the split + part if it doesn't return. + +2012-01-11 Bill Schmidt + + PR tree-optimization/49642 + * ipa-split.c (forbidden_dominators): New variable. + (check_forbidden_calls): New function. + (dominated_by_forbidden): Likewise. + (consider_split): Check for forbidden dominators. + (execute_split_functions): Initialize and free forbidden + dominators info; call check_forbidden_calls. + +2012-01-11 Matthew Gretton-Dann + + * config/arm/arm.md (mov_notscc): Use MVN for false condition. + +2012-01-11 Nick Clifton + + * config/rx/rx.md (return): Define pattern. + +2012-01-11 Richard Guenther + + * doc/extend.texi (malloc attribute): Adjust according to + implementation. + +2012-01-10 Aldy Hernandez + Patrick Marlier + + PR middle-end/51516 + * trans-mem.c (get_cg_data): Traverse aliases if requested. + (ipa_tm_scan_calls_block): Update parameters to get_cg_data. + (ipa_tm_note_irrevocable): Same. + (ipa_tm_scan_irr_block): Same. + (ipa_tm_decrement_clone_counts): Same. + (ipa_tm_scan_irr_function): Same. + (ipa_tm_create_version_alias): Same. + (ipa_tm_create_version): Same. + (ipa_tm_transform_calls_redirect): Same. + (ipa_tm_transform_calls): Same. + (ipa_tm_transform_transaction): Same. + (ipa_tm_execute): Same. + +2012-01-10 Richard Guenther + + PR middle-end/51806 + * opts.c (common_handle_option): Handle -Werror. + +2012-01-10 Andreas Schwab + + * config/m68k/sync.md ("atomic_compare_and_swap_1"): Fix + operand number. + +2012-01-10 Jason Merrill + + * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6 + information. + +2012-01-10 Rainer Orth + + * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker + supports R_386_TLS_GD_PLT reloc. + (gcc_cv_as_ix86_tlsldmplt): Check if linker + supports R_386_TLS_LDM_PLT reloc. + * configure: Regenerate. + * config.in: Regenerate. + +2012-01-10 Georg-Johann Lay + + PR target/49868 + Extend __pgmx semantics to linearize memory. + * config/avr/avr.md (mov): Use avr_xload_libgcc_p to + determine if code comes inline or from libgcc. + (MOVMEM_r_d:HI): Add "w" to constraint for better preference. + (movmem_qi, movmem_qi): Set constraint #2 to "n". + (movmem_qi_elpm, movmem_hi_elpm): Remove insns. + (movmemx_qi, movmemx_hi): New insns. + (xload__libgcc): Rewrite to new insn condition. + (xload_): Remove insns. + * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle + cases that don't satisfy avr_xload_libgcc_p(). + (avr_addr_space_convert): Allow converting in any direction. + (avr_addr_space_subset_p): Return always true. + (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics. + (avr_emit_movmemhi): Ditto. + (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more. + (avr_out_movmem): Ditto. + (AVR_SYMBOL_FLAG_PROGMEM): New macro. + (AVR_SYMBOL_SET_ADDR_SPACE): New macro. + (AVR_SYMBOL_GET_ADDR_SPACE): New macro. + (avr_encode_section_info): Encode 'progmem' in symbol flags. + (output_reload_in_const): Don't zero-extend any 24-bit symbols. + +2012-01-10 Richard Guenther + + PR tree-optimization/50913 + * graphite-scop-detection.c (stmt_has_simple_data_refs_p): + Require data-refs to be representable by Graphite with respect + to any loop nest. + +2012-01-10 Uros Bizjak + + * config/i386/constraints.md ("L"): Return true for 0xffffffff. + * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV. + +2012-01-10 Tom de Vries + + PR rtl-optimization/51271 + * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when + handling annulled branch. + +2012-01-10 Richard Henderson + + * config/arm/arm.c (arm_vectorize_vec_perm_const_ok, + TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN, + struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm, + arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev, + arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1, + arm_expand_vec_perm_const): New. + * config/arm/arm-protos.h: Update. + * config/arm/neon.md (UNSPEC_VCONCAT): New. + (*neon_vswp): New. + (neon_vcombine): Use neon_split_vcombine. + (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New. + * config/arm/vec-common.md (vec_perm_const): New. + (vec_perm): New. + +2012-01-10 Richard Henderson + + * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument; + use it if reload_completed. + (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count, + arm_output_asm_insn, arm_process_output_memory_barrier, + arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex, + arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3, + arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND, + arm_process_output_sync_insn, arm_output_sync_insn, + arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove. + (arm_pre_atomic_barrier, arm_post_atomic_barrier): New. + (arm_emit_load_exclusive, arm_emit_store_exclusive): New. + (emit_unlikely_jump): New. + (arm_expand_compare_and_swap, arm_split_compare_and_swap): New. + (arm_split_atomic_op): New. + * config/arm/arm-protos.h: Update. + * config/arm/arm.h (enum arm_sync_generator_tag): Remove. + (struct arm_sync_generator): Remove. + * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK, + VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove. + (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New. + (VUNSPEC_LL, VUNSPEC_SC): New. + (sync_result, sync_memory, sync_required_value, sync_new_value, + sync_t1, sync_t2, sync_release_barrier, sync_op): Remove. + (attr length): Don't use arm_sync_loop_insns. + (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg. + (movsfcc, movdfcc): Likewise. + * config/arm/constraints.md (Ua): New. + * config/arm/prediates.md (mem_noofs_operand): New. + (sync_compare_and_swap, sync_lock_test_and_set): Remove. + (sync_clobber, sync_t2_reqd): Remove. + (sync_, sync_nand): Remove. + (sync_new_, sync_new_nand): Remove. + (sync_old_, sync_old_nand): Remove. + (arm_sync_compare_and_swap): Remove. + (arm_sync_compare_and_swap): Remove. + (arm_sync_lock_test_and_set): Remove. + (arm_sync_lock_test_and_set): Remove. + (arm_sync_new_): Remove. + (arm_sync_new_): Remove. + (arm_sync_new_nand): Remove. + (arm_sync_new_nand): Remove. + (arm_sync_old_): Remove. + (arm_sync_old_): Remove. + (arm_sync_old_nand): Remove. + (arm_sync_old_nand): Remove. + (*memory_barrier): Merge arm_output_memory_barrier. + (atomic_compare_and_swap): New. + (atomic_compare_and_swap_1): New. + (atomic_compare_and_swap_1): New. + (atomic_exchange): New. + (cas_cmp_operand, cas_cmp_str): New. + (atomic_op_operand, atomic_op_str): New. + (atomic_, atomic_nand): New. + (atomic_fetch_, atomic_fetch_nand): New. + (atomic__fetch, atomic_nand_fetch): New. + (arm_load_exclusive): New. + (arm_load_exclusivesi, arm_load_exclusivedi): New. + (arm_store_exclusive): New. + +2012-01-09 Michael Meissner + + * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF + reload patterns if -mvsx-scalar-memory. + + * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be + generated, even -mno-vsx-scalar-double was used. + (vsx_xscvdpsp_scalar): Likewise. + (vsx_xscvspdp_scalar2): Likewise. + +2012-01-09 Tom de Vries + Andrew Pinski + + PR debug/51471 + * reorg.c (fill_slots_from_thread): Don't speculate + frame-related insns. + +2012-01-09 Richard Sandiford + + * sched-int.h (bb_note): Move to... + * basic-block.h: ...here. + * haifa-sched.c (bb_note): Move to... + * cfgrtl.c: ...here. + * function.c (next_block_for_reg): New function. + (move_insn_for_shrink_wrap): Likewise. + (prepare_shrink_wrap): Rewrite to use the above. + +2012-01-09 Aldy Hernandez + + * gimple.c (is_gimple_non_addressable): Remove. + * gimple.h: Remove is_gimple_non_addressable. + * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of + is_gimple_non_addressable. + * trans-mem.c (expand_assign_tm): Same. + +2012-01-09 Richard Guenther + + PR tree-optimization/51775 + * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts. + * tree-ssa-pre.c (eliminate): Properly fixup EH info. + +2012-01-09 Matthew Gretton-Dann + + * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for + tuning parameters. + * config/arm/arm.c (arm_cortex_a15_tune): New static variable. + +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. + +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. diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index d9e91b6826e..5416e12e7e2 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -424,8697 +424,8 @@ * sem_prag.adb (Analyze_Pragma, case pragma Check): Omit call to Set_SCO_Pragma_Enabled for Invariant and Predicate. * sem_ch13.adb: Minor comment update. - -2012-12-21 Ed Schonberg - - PR ada/53737 - * sem_ch12.adb (Analyze_Associations): Do not check the legality of - actuals for RACW types if this is an internal instantiation for a formal - package with defaulted parameters. - -2012-12-21 Eric Botcazou - - * adaint.c: Move directive around. - * argv.c: Likewise. - * cio.c: Likewise. - * cstreams.c: Likewise. - * env.c: Likewise. - * exit.c: Likewise. - * init.c: Likewise. - * initialize.c: Likewise. - * raise.c: Likewise. - * seh_init.c: Likewise. - * targext.c: Likewise. - -2012-12-15 Eric Botcazou - Martin Ettl - - PR ada/53996 - * gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d. - -2012-12-11 Eric Botcazou - - * gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled. - -2012-12-08 Eric Botcazou - - * gcc-interface/trans.c (gnat_to_gnu) : Assert - that the type of the prefix is ultimately an array. - -2012-12-08 Eric Botcazou - - * gcc-interface/trans.c (Subprogram_Body_to_gnu): Be prepared for a - by-ref VAR_DECL in the case of an Out parameter passed by copy. - -2012-12-05 Robert Dewar - - * par_sco.adb, sem_prag.adb, put_scos.adb, get_scos.adb: Minor - reformatting. - -2012-12-05 Ed Schonberg - - * sem_ch3.adb: Code clean up. - -2012-12-05 Arnaud Charlet - - * gcc-interface/Make-lang.in: Update dependencies. - * gcc-interface/lang.opt: New language AdaSCIL. - * gcc-interface/lang-specs.h: Add specs for adascil language. - -2012-12-05 Thomas Quinot - - * par_sco.adb (Traverse_Aspects): Ensure we always have - an entry in the sloc -> SCO map for invariants, since - Set_SCO_Pragma_Enabled is called with that sloc when checks - are enabled. - -2012-12-05 Thomas Quinot - - * exp_ch4.adb: Minor reformatting. - -2012-12-05 Hristian Kirtchev - - * par-prag.adb: Checks and processing of pragma Assume are - carried out by Sem_Prag. - * sem_prag.adb (Analyze_Pragma): Check the legality of pragma - Assume. - * snames.ads-tmpl: Add new name Assume. Add a pragma identifier - for Assume. - -2012-12-05 Ed Schonberg - - * aspects.ads, aspects.adb: Add aspect Relative_Deadline. - * sem_ch13.adb (Analyze_Aspect_Specifications): Process aspect - Relative_Deadline, and introduce the corresponding pragma within - the task definition of the task type to which it applies. - (Check_Aspect_At_Freeze_Point): Expression in a Relative_Deadline - aspect is of type Time_Span. - -2012-12-05 Hristian Kirtchev - - * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): When pragma - Loop_[In]variant does not appear immediately within the statements - of a loop, it must appear in a chain of nested blocks. - -2012-12-05 Thomas Quinot - - * sem_ch13.adb: Minor reformatting. - Remove redundant assertion. - -2012-12-05 Thomas Quinot - - * par_sco.adb, scos.ads, put_scos.adb, put_scos.ads, - get_scos.adb: Generation of SCOs for aspects. - -2012-12-05 Thomas Quinot - - * sem_prag.adb (Check_Precondition_Postcondition): Remove - redundant call to Set_SCO_Pragma_Enabled (the pragma will be - rewritten into a pragma Check later on, and the call will be - made when processing the rewritten pragma). - (Analyze_Pragma, case Pragma_Check): Omit call to - Set_SCO_Pragma_Enabled if Split_PPC is set. - -2012-12-05 Olivier Hainque - - * tracebak.c: Add partial support for Lynx178. - -2012-12-05 Hristian Kirtchev - - * sem_attr.adb (Analyze_Attribute): Improve - the error message related to loop assertions. - -2012-12-05 Gary Dismukes - - * atree.ads: Minor reformatting. - -2012-12-05 Robert Dewar - - * atree.ads, par-ch4.adb, sem_attr.adb, sem_ch13.adb: Minor - reformatting. - -2012-12-05 Eric Botcazou - - * gnat_ugn.texi (Switches for gcc): Document -flto and reorder. - -2012-12-05 Ed Schonberg - - * par-ch5.adb (P_Condition): Handle properly Ada 2012 - expressions that must be parenthesized before checking for - redundant parentheses when that check is enabled. - -2012-12-05 Ed Schonberg - - * par-ch4.adb (P_Allocator): In Ada 2012 (AI05-0104) an - uninitialized allocator cannot carry an explicit not null - indicator. - * sem_ch4.adb (Analyze_Allocator): Remove code that implements - the check for AI05-0104, the check is syntactic and performed - in the parser. - -2012-12-05 Geert Bosch - - * sem_attr.adb (Analyze_Attribute): Use base type for floating - point attributes. - -2012-12-05 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications, - Ahalyze_Aspect_Default_Value): For a scalar type attach default - value to base type as well, because it is a type-specific aspect - even though it can be specified on a first subtype. - -2012-12-05 Yannick Moy - - * urealp.ads: Minor rewording. - -2012-12-05 Yannick Moy - - * aspects.ads (No_Duplicates_Allowed): Forbid use of duplicate - Contract_Cases aspects. - * sem_prag.adb (Analyze_Pragma/Pragma_Contract_Case): Rename - POST_CASE into CONTRACT_CASE in both grammar and code, to be - consistent with current language definition. Issue a more precise - error message when the pragma duplicates another pragma or aspect. - -2012-12-05 Hristian Kirtchev - - * exp_attr.adb (Expand_N_Attribute_Reference): Add processing - for attribute Update. - (Expand_Update_Attribute): New routine. - * par-ch4.adb (P_Name): The sole expression of attribute Update - is an aggregate, parse it accordingly. - * sem_attr.adb (Analyze_Attribute): Verify the legality of - attribute Update. - (Eval_Attribute): Attribute Update does not - need evaluation because it is never static. - * snames.ads-tmpl: Add Name_Update to the list of special names - recognized by the compiler. Add an Attribute_Id for Update. - -2012-12-05 Ed Schonberg - - * exp_util.adb (Remove_Side_Effects): For purposes of removing - side effects, qualified expressions do not receive a special - treatment, even though in Ada 2012 they are defined as object - references. - -2012-12-05 Thomas Quinot - - * par-ch3.adb: Minor reformatting. - -2012-12-05 Thomas Quinot - - * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call, - Build_TypeCode_Call): For a used-defined subtype, always go to - the first subtype of the base type. - -2012-12-05 Thomas Quinot - - * exp_dist.adb: Minor reformatting. - -2012-12-05 Tristan Gingold - - * Make-generated.in: Remove the VMS host specific part, as VMS - compilers aren't built anymore on VMS. - -2012-12-05 Thomas Quinot - - * sem.adb, errout.ads, atree.adb, atree.ads (Check_Error_Detected): - Only return quietly if a serious error of configurable run time - violation has been found. - -2012-12-05 Yannick Moy - - * sem_res.adb (Resolve_Type_Conversion): In Alfa_Mode, do not apply - conversion checks. - -2012-12-05 Ed Schonberg - - * exp_ch5.adb (Expand_N_Assignment_Statement): Handle properly - the generation of discriminant checks when the left-hand side - has a type with hidden discriminants. - * sem_ch3.ads (Is_Visible_Component): Add defaulted parameter to - specify the node on which component visibility is being checked. - * sem_ch3.adb (Is_Visible_Component): Use new parameter to - determine whether the reference comes from a type conversion to - a full view of a private type with unknown discriminants. - * sem_ch4.adb (Analyze_Selected_Component): Call - Is_Visible_Component with added parameter. - -2012-12-05 Arnaud Charlet - - * make.adb: Minor comment update. - -2012-12-05 Arnaud Charlet - - * gnatlink.adb: Also use -x adascil in CodePeer mode when - calling gcc. - * exp_ch5.adb: Minor reformatting. - -2012-12-05 Bob Duff - - * exp_ch4.adb: Minor comment. - -2012-12-05 Bob Duff - - * par-ch4.adb: Set Paren_Count correctly for a parenthesized expression - containing a conditional expression or quantified expression. - * sprint.adb: Update comment. - -2012-12-05 Bob Duff - - * style.adb, scans.ads, styleg.adb: Update comments. - -2012-12-05 Ed Schonberg - - * sem_ch8.adb (Find_Selected_Component): Handle properly an - expanded name whose prefix is the expanded name of an enclosing - entry, that is to say a construct such as T.E.X, where T is an - enclosing concurrent type and E is an enclosing entry. - -2012-12-05 Robert Dewar - - * lib-writ.adb (Write_ALI): Output T lines. - * lib-writ.ads: Minor reformatting. Add documentation of T lines. - * opt.ads (Generate_Target_Dependent_Info): New flag. - * switch-c.adb (Scan_Switches): Recognize -gnatet switch - (target dependent info). - * ttypes.ads: Add four letter codes to declarations (for target - dependent info). - * usage.adb: Add line for -gnatet switch. - -2012-12-05 Hristian Kirtchev - - * exp_prag.adb (Expand_N_Pragma): Add a call to expand - pragma Loop_Variant. - (Expand_Pragma_Loop_Assertion): Removed. - (Expand_Pragma_Loop_Variant): New routine. - * par-prag.adb: Remove Pragma_Loop_Assertion and add two new - Pragma_Loop_Invariant and Pragma_Loop_Variant entries. - * sem_attr.adb (Analyze_Attribute): Update the code which - locates the enclosing pragma. - * sem_prag.adb (Analyze_Pragma): Remove the code which analyzes - pragma Loop_Assertion as the pragma is now obsolete. Add the - machinery to checks the semantics of pragmas Loop_Invariant - and Loop_Variant. - (Check_Loop_Invariant_Variant_Placement): New routine. - * snames.ads-tmpl: Remove name Loop_Assertion. Add new names - Loop_Invariant and Loop_Variant. Rename Name_Decreasing - to Name_Decreases and Name_Increasing to Name_Increases. - Remove the pragma Id for Loop_Assertion and add two new Ids for - Loop_Invariant and Loop_Variant. - -2012-12-05 Robert Dewar - - * gnatchop.adb, sem_attr.ads, sem_ch4.adb, sem_ch6.adb, exp_disp.adb, - atree.adb, sem_eval.adb: Minor reformatting. - -2012-12-05 Yannick Moy - - * uintp.adb (UI_Div_Rem): Correct algorithm D to remove potential - overflow. - -2012-12-05 Robert Dewar - - * exp_ch4.adb (Expand_N_Op_Mod): Minor comment additions. - (Expand_N_Op_Rem): Ditto. - -2012-12-05 Robert Dewar - - * sem_attr.adb: Minor reformatting. - -2012-12-05 Robert Dewar - - * usage.adb: Update lines for -gnato? switch. - -2012-12-05 Ed Schonberg - - * par-ch6.adb (P_Return_Object_Declaration): Do not check for - legality of Aliased keyword. - * sem_ch6.adb (Analyze_Function_Return): The keyword aliased is - legal in an extended return statement only if the return type - is immutably limited. - -2012-12-05 Javier Miranda - - * exp_disp.adb (Expand_Interface_Thunk): Simplify - management of controlling formals. Required to avoid problems - with primitives of internally generated base types associated - with constrained tagged types. - -2012-12-05 Ed Schonberg - - * sem_eval.adb: Remove spurious warnings. - -2012-12-05 Ed Schonberg - - * sem_util.adb (Build_Explicit_Dereference): Set properly - the type of the prefix prior to rewriting, because subsequent - legality checks examine the original node. - -2012-12-05 Hristian Kirtchev - - * aspects.adb: Add Contract_Cases to the canonical aspects map. - * aspects.ads: Add aspect Contract_Cases in the various aspect - tables. - * par-prag.adb: The parser does not need to perform special - actions for pragma Contract_Cases. - * sem_ch6.adb (Expand_Contract_Cases): New routine. - (Process_Contract_Cases): Convert pragma Contract_Cases into pre- - and post- condition checks that verify the runtime state of all - case guards and their corresponding consequences. - * sem_ch13.adb (Analyze_Aspect_Specifications): Perform - various legality checks on aspect Contract_Cases. The aspect is - transformed into a pragma. - * sem_prag.adb: Add an entry in table Sig_Flags for pragma - Contract_Cases. - (Analyze_Pragma): Perform various legality - checks on pragma Contract_Cases. The pragma is associated with - the contract of the related subprogram. - (Chain_CTC): Omit pragma - Contract_Cases because it does not introduce a unique case name - and does not follow the syntax of Contract_Case and Test_Case. - * snames.ads-tmpl: Add new name Name_Contract_Cases. Add a - Pragma_Id for Contract_Cases. - -2012-12-05 Thomas Quinot - - * sem_ch5.adb: Minor reformatting. - -2012-12-05 Hristian Kirtchev - - * sem_attr.ads: Add an entry for attribute Loop_Entry in the - Attribute_Impl_Def table. - -2012-12-05 Bob Duff - - * gnatchop.adb (Read_File): Avoid storage leak, and in most cases avoid - an extra copy of the string. - -2012-12-05 Ed Schonberg - - * sem_ch5.adb (Preanalyze_Range): If the expression, which - denotes some domain of iteration, has a type with implicit - dereference, and does not have any iterable aspects, insert - dereference to obtain proper container type. - -2012-12-05 Bob Duff - - * par-ch8.adb (P_Use_Type_Clause): Fix the Sloc for "use all type ..." - to point to "use". - -2012-12-05 Arnaud Charlet - - * make.adb (Compile): Always pass -x adascil in CodePeer mode. - -2012-12-05 Ed Schonberg - - * s-rident.ads, restrict.ads: Remove discrepancies between the - documentation on implementation-defined restrictions, and - the internal data structure used for warnings and errors on - implementation-defined restriction violations. - -2012-12-05 Ed Schonberg - - * sem_prag.adb (Chain_PPC): Pre- and postcondition aspects - are legal on a subprogram body that acts as a spec. - -2012-12-05 Ed Schonberg - - * sem_ch8.adb (Find_Selected_Component): If the selector name is - an overloadable entity but the name is not overloaded, generate - reference to it rather than delaying this until resolution. - -2012-12-05 Robert Dewar - - * checks.ads, checks.adb (Activate_Overflow_Check): No effect for - MOD/REM/unary + - * exp_ch4.adb (Expand_N_Op_Mod): Remove call to set Do_Overflow_Check. - -2012-12-05 Ed Schonberg - - * sem_ch4.adb (Find_Non_Universal_Interpretation): Use the - types of the right operand if the left operand is null. - -2012-12-05 Sergey Rybin - - * gnat_ugn.texi, vms_data.ads: document gnatpp -nn option. - -2012-12-05 Jose Ruiz - - * init.c (__gnat_install_handler): For the LEON VxWorks kernel - run-time library we need to install a trap handler directly in the - trap table (no support by the OS) for the software trap 0. - -2012-12-05 Eric Botcazou - - * gnat_rm.texi (Interfacing to C++): Document new restrictions. - -2012-12-05 Ben Brosgol - - * gnat_ugn.texi: Fix typo. - -2012-12-05 Robert Dewar - - * gnatbind.adb: Minor reformatting. - -2012-12-05 Arnaud Charlet - - * gnat_ugn.texi: Fix typo. - -2012-12-05 Tristan Gingold - - * gnatbind.adb: Minor comment update. - -2012-12-05 Yannick Moy - - * gnat1drv.adb (Adjust_Global_Switches): Set flags to indicate that - CodePeer backend deals with divide and overflow checks. - -2012-12-05 Robert Dewar - - * gnat_rm.texi: Update overflow description. Pragma Overflow_Checks - changed to Overflow_Mode. - -2012-12-05 Robert Dewar - - * checks.ads, exp_ch4.adb, gnat1drv.adb, par-prag.adb, sem_prag.adb, - snames.ads-tmpl, switch-c.adb, types.ads, checks.adb: Change pragma - Overflow_Checks to Overflow_Mode. - Separate overflow checking from overflow mode. - Several name changes to reflect this separation. - CHECKED mode is renamed STRICT mode. - -2012-12-05 Yannick Moy - - * gnat1drv.adb (Adjust_Global_Switches): Move setting of flags for - Alfa mode before general treatment of flags, so that overflow checks - settings are set appropriately in Alfa mode. Also set the mode to - STRICT in Alfa mode if not already set by the user. - -2012-12-05 Robert Dewar - - * sem_ch3.adb: Minor reformatting. - -2012-12-05 Steve Baird - - * sinfo.ads: Improve comments about SCIL-related node kinds and selector - functions. - -2012-12-05 Ed Schonberg - - * sem_ch10.adb (Build_Limited_Views): Even though the unit is - not analyzed, place its entity on the name in the with clause, - so that warnings on unused with-clause are properly supported - for limited withs. - -2012-12-05 Robert Dewar - - * gnat_ugn.texi: Update overflow description. Pragma - Overflow_Checks changed to Overflow_Mode. - -2012-12-05 Ed Schonberg - - * sem_ch3.adb (Build_Derived_Private_Type): Handle properly a - completion in a grand-child unit when the parent type is itself - a private type in a child unit whose full view is itself a - derivation from a private type. - -2012-12-05 Gary Dismukes - - * exp_attr.adb (Expand_N_Attribute_Reference, case - Attribute_Valid): Remove code for issuing warning on Valid within - a predicate. Moved to Sem_Attr. Remove with and use of Errout. - * sem_attr.adb (Analyze_Attribute, case Attribute_Valid): - Test for prefix's subtype having a predicate and issue warning - about infinite recursion if Valid occurs within the subtype's - predicate. Warning moved here from Exp_Attr. - -2012-12-05 Yannick Moy - - * debug.adb: Minor comment addition. - -2012-12-05 Yannick Moy - - * gnat1drv.adb (Adjust_Global_Switches): In CodePeer mode, check - overflows by default, even when the user suppresses overflow checks. - -2012-12-05 Thomas Quinot - - * err_vars.ads: Fix minor typo in comment. - -2012-12-05 Hristian Kirtchev - - * sem_attr.adb (Analyze_Attribute): Do not analyze the attribute - arguments when processing Loop_Entry. Rewrite the analysis of - attribute Loop_Entry to handle an optional loop name. - (Convert_To_Indexed_Component): New routine. - (Eval_Attribute): Remove ??? comment and explain - why Loop_Entry does not need to be evaluated. - -2012-12-01 John David Anglin - - PR ada/52110 - * s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and - pthread_rwlock_t subtypes. Delete duplicate declaration of clockid_t. - * s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment. - -2012-11-28 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Use - valid_constant_size_p to detect too large objects. - : Likewise for too large return types. - (allocatable_size_p): Call valid_constant_size_p in the fixed case. - (annotate_value) : Simplify. - : Deal with negative values here. - * gcc-interface/trans.c (gnat_to_gnu) : Use - valid_constant_size_p to detect too large objects on the LHS. - * gcc-interface/misc.c (default_pass_by_ref): Likewise for large types. - And use TYPE_SIZE_UNIT throughout. - (must_pass_by_ref): Likewise. - * gcc-interface/utils.c (max_size) : Split from common case. - : Likewise. Call size_binop instead of fold_build2. - : Simplify. - * gcc-interface/utils2.c (build_allocator): Use valid_constant_size_p - to detect too large allocations. - -2012-11-23 Eric Botcazou - - * gcc-interface/trans.c (Attribute_to_gnu) : Look through - a view conversion from constrained to unconstrained form. - -2012-11-23 Eric Botcazou - - * gcc-interface/decl.c (components_need_strict_alignment): New. - (components_to_record): Do not pack the variants if one of the fields - needs strict alignment. Likewise for the variant part as a whole. - Specify the position of the variants even if the size isn't specified, - but do not specify the size of the variant part in this case. - -2012-11-20 Diego Novillo - Jakub Jelinek - - * gcc-interface/decl.c: Replace all vec() initializers with vNULL. - -2012-11-18 Eric Botcazou - - * gcc-interface/decl.c: Remove trailing spaces. - * gcc-interface/trans.c: Remove trailing spaces. - -2012-11-16 Diego Novillo - - Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * gcc-interface/decl.c: Use new vec API in vec.h. - * gcc-interface/gigi.h: Likewise. - * gcc-interface/trans.c: Likewise. - * gcc-interface/utils.c: Likewise. - * gcc-interface/utils2.c: Likewise. - -2012-11-09 Eric Botcazou - - PR other/52438 - * s-taspri-lynxos.ads: Delete. - * s-osinte-kfreebsd-gnu.ads: Change license to GPL V3+. - * s-tpopsp-rtems.adb: Likewise. - * s-osinte-rtems.adb: Likewise. - -2012-11-09 Eric Botcazou - - * gcc-interface/trans.c (gnat_to_gnu) : Deal - with a missing library unit instead of calling gnat_to_gnu on Emtpy. - Remove last bits of support for SCIL nodes. Add cases for nodes that - should only be present when annotating types. Add default abort. - -2012-11-06 Eric Botcazou - - * gcc-interface/Makefile.in: Revert most changes. - * gcc-interface/Make-lang.in (gnatlib): Remove ada/s-oscons.ads. - -2012-11-06 Arnaud Charlet - - * gcc-interface/Makefile.in (copy-s-oscons): New target. - -2012-11-06 Robert Dewar - - * err_vars.ads, atree.ads: Minor reformatting. - -2012-11-06 Arnaud Charlet - - * gcc-interface/Make-lang.in: Update dependencies. - * gcc-interface/Makefile.in: Add runtime pairs for Android. - Rework handling of s-oscons.ads. - * s-osinte-android.ads, s-osinte-android.adb: New files. - -2012-11-06 Tristan Gingold - - * gcc-interface/trans.c (gnat_to_gnu): For N_Real_Literal, create the - binary representation of vax floats. - -2012-11-06 Tristan Gingold - - * sem_ch9.adb (Analyze_Protected_Type_Declaration): Fix thinko - in previous commit. - -2012-11-06 Jose Ruiz - - * ali.adb (Scan_ALI): Fix parsing mechanism for -fstack-check. - -2012-11-06 Thomas Quinot - - * atree.adb, atree.ads, einfo.adb, errout.adb, errout.ads, erroutc.adb, - erroutc.ads, errutil.adb, errutil.ads, err_vars.ads, expander.adb, - exp_ch13.adb, exp_ch2.adb, exp_ch6.adb, exp_dist.adb, fe.h, - fmap.adb, fmap.ads, gprep.adb, makeutl.adb, osint.adb, osint.ads, - par_sco.adb, prepcomp.adb, prj-part.adb, prj-proc.adb, scng.adb, - sdefault.ads, sem_ch10.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, - sem_ch4.adb, sem_ch5.adb, sem_dim.adb, sem_elab.adb, sem_eval.adb, - sem_intr.adb, sem_prag.adb, sem_type.adb, sem_warn.adb, stylesw.adb, - stylesw.ads, targparm.adb, targparm.ads (Cascaded_Error): Rename to - more descriptive name 'Check_Error_Detected'. Add calls to - Check_Error_Detected at places where semantic analysis is abandoned - assuming a previously detected error. - -2012-11-06 Robert Dewar - - * exp_ch4.adb: Minor comment change. - -2012-11-06 Robert Dewar - - * gnat_ugn.texi: Extensive revision of documentation of overflow - checking. - * vms_data.ads: Overflow check numbers must be in range 1-3, - not 0-3. - -2012-11-06 Tristan Gingold - - * sem_ch9.adb (Analyze_Protected_Type_Declaration): Emit a - warning if pragma Priority is used in presence of an interrupt - handler. - -2012-11-06 Robert Dewar - - * checks.ads, checks.adb, exp_ch4.adb: Minor changes throughout for - new overflow checking. - * exp_util.adb (Insert_Actions): Remove special casing of - Overflow_Check. - * gnat1drv.adb (Adjust_Global_Switches): Fixes for new handling - of overflow checks. - * sem.adb (Analyze): Remove special casing of Overflow_Check - (Analyze_List): ditto. - * sem_prag.adb (Analyze_Pragma, case Overflow_Checks): Remove - SUPPRESSED and change CHECKED to STRICT. - * sem_res.adb (Analyze_And_Resolve): No longer treat - Overflow_Check specially. - (Preanalyze_And_Resolve): ditto. - (Resolve): ditto. - * snames.ads-tmpl: Replace Name_Checked by Name_Strict. - * switch-c.adb (Get_Overflow_Mode): Eliminate 0 setting, - CHECKED => STRICT. - * types.ads (Overflow_Check_Type): Remove Suppressed, change - Checked to Strict (Suppress_Record): Overflow check controlled - by Suppress array. - -2012-11-06 Ed Schonberg - - * sem_res.adb (Preanalyze_And_Resolve): In Alfa mode do not - disable checks, so that flags can be properly set on expressions - that are not further expanded. - -2012-11-06 Robert Dewar - - * exp_attr.adb, sem_attr.adb: Minor reformatting. - -2012-11-06 Gary Dismukes - - * exp_attr.adb (Expand_N_Attribute_Reference): Apply a predicate - check when evaluating the attribute Valid, and issue a warning - about infinite recursion when the check occurs within the - predicate function of the prefix's subtype. - * exp_ch4.adb (Expand_N_In): Remove test for Is_Discrete_Type - when we're checking that there's no predicate check function as a - condition for substituting a Valid check for a scalar membership - test (substitution should be suppressed for any kind of scalar - subtype with a predicate check). Also, don't emit a predicate - check when the right operand is a range. - -2012-11-06 Robert Dewar - - * par_sco.adb, bindgen.adb, exp_vfpt.adb, exp_vfpt.ads, exp_ch2.adb, - errout.adb, sem_ch8.adb: Minor reformatting. - -2012-11-06 Hristian Kirtchev - - * einfo.adb: Include Loop_Entry_Attributes to the list of - Node/List/Elist10 usage. - (Loop_Entry_Attributes): New routine. - (Set_Loop_Entry_Attributes): New routine. - (Write_Field10_Name): Add an output string for Loop_Entry_Attributes. - * einfo.ads: Define new attribute Loop_Entry_Attributes along - with its usage in nodes. - (Loop_Entry_Attributes): New routine and dedicated pragma Inline. - (Set_Loop_Entry_Attributes): New routine and dedicated pragma Inline. - * exp_attr.adb (Expand_N_Attribute_Reference): Do not expand - Attribute_Loop_Entry here. - * exp_ch5.adb: Add with and use clause for Elists; - (Expand_Loop_Entry_Attributes): New routine. - (Expand_N_Loop_Statement): Add a call to Expand_Loop_Entry_Attributes. - * exp_prag.adb (Expand_Pragma_Loop_Assertion): Specialize the - search to include multiple nested loops produced by the expansion - of Ada 2012 array iterator. - * sem_attr.adb: Add with and use clause for Elists. - (Analyze_Attribute): Check the legality of attribute Loop_Entry. - (Resolve_Attribute): Nothing to do for Loop_Entry. - (S14_Attribute): New routine. - * snames.ads-tmpl: Add a comment on entries marked with - HiLite. Add new name Name_Loop_Entry. Add new attribute - Attribute_Loop_Entry. - -2012-11-06 Geert Bosch - - * eval_fat.adb (Machine, Succ): Fix front end to support static - evaluation of attributes on targets with both VAX and IEEE float. - * sem_util.ads, sem_util.adb (Has_Denormals, Has_Signed_Zeros): - New type-specific functions. Previously we used Denorm_On_Target - and Signed_Zeros_On_Target directly, but that doesn't work well - for OpenVMS where a single target supports both floating point - with and without signed zeros. - * sem_attr.adb (Attribute_Denorm, Attribute_Signed_Zeros): Use - new Has_Denormals and Has_Signed_Zeros functions to support both - IEEE and VAX floating point on a single target. - -2012-11-06 Tristan Gingold - - * bindgen.adb (System_Interrupts_Used): New variable. - (Gen_Adainit): Declare and call - Install_Restricted_Handlers_Sequential if System.Interrupts is - used when elaboration policy is sequential. - -2012-11-06 Ed Schonberg - - * sem_ch8.adb: Complete previous change. - -2012-11-06 Tristan Gingold - - * fe.h (Get_Vax_Real_Literal_As_Signed): Declare. - * eval_fat.adb, eval_fat.ads (Decompose_Int): Move spec in package spec. - * exp_vfpt.adb, exp_vfpt.ads (Vax_Real_Literal_As_Signed): New function. - (Expand_Vax_Real_Literal): Remove. - * exp_ch2.adb (Expand_N_Real_Literal): Do nothing. - * sem_eval.adb (Expr_Value_R): Remove special Vax float case, - as this is not anymore a special case. - -2012-11-06 Yannick Moy - - * uintp.ads: Minor correction of typo in comment. - -2012-11-06 Ed Schonberg - - * sem_prag.adb (Analyze_Pragnma, case Unchecked_Union): remove - requirement that discriminants of an unchecked_union must have - defaults. - -2012-11-06 Vasiliy Fofanov - - * projects.texi: Minor wordsmithing. - -2012-11-06 Robert Dewar - - * sem_ch9.adb, exp_vfpt.adb, xoscons.adb: Minor reformatting. - -2012-11-06 Tristan Gingold - - * exp_vfpt.adb: Document VAX float point layout. - -2012-11-06 Geert Bosch - - * eval_fat.adb (Machine): Don't return -0.0 on targets without - signed zeros. - -2012-11-06 Ed Schonberg - - * sem_ch9.adb (Analyze_Entry_Call_Alternative, - Check_Triggering_Statement): Reject properly an indirect call. - -2012-11-06 Pascal Obry - - * xoscons.adb, xutil.adb, xutil.ads: Add support for post-processing. - -2012-11-06 Yannick Moy - - * s-bignum.adb (Div_Rem): Fix another bug in step D3. - -2012-11-06 Tristan Gingold - - * s-tarest.adb (Create_Restricted_Task): Call - Create_Restricted_Task_Sequential in sequential case. - -2012-11-06 Hristian Kirtchev - - * exp_prag.adb (Expand_Pragma_Loop_Assertion): Do not rewrite the - pragma into a null statement as its presence is desirable in -gnatG - output. - -2012-11-06 Ed Schonberg - - * sem_ch8.adb (Check_Constrained_Object): Do nothing if the - renamed object is a limited record. - -2012-11-06 Bernard Banner - - * sysdep.c (_getpagesize): New. Minor reformatting. - -2012-11-06 Robert Dewar - - * sem_prag.adb: Minor reformatting. - -2012-11-06 Robert Dewar - - * s-bignum.adb (Div_Rem): Fix bug in step D3. - * uintp.adb (UI_Div_Rem): Add comment on bug in step D3. - -2012-11-06 Hristian Kirtchev - - * exp_prag.adb (Expand_Pragma_Loop_Assertion): Update the comment - on intended expansion. Reimplement the logic which expands the - termination variants. - (Process_Increase_Decrease): Update the parameter profile and the - comment related to it. Accommodate the new aggregate-like appearance of - the termination variants. - * sem_prag.adb (Analyze_Pragma): Update the syntax of pragma - Loop_Assertion. Reimplement the semantic analysis of the pragma - to accommodate the new aggregate-like variant. - (Check_Variant): New routine. - * snames.ads-tmpl: Change names Name_Decreases and Name_Increases - to Name_Decreasing and Name_Increasing respectively. Add name - Variant. - -2012-11-06 Ed Schonberg - - * sem_eval.adb: Static evaluation of case expressions. - -2012-11-06 Robert Dewar - - * exp_prag.adb, impunit.adb, exp_ch9.adb, par-ch4.adb, - s-tarest.adb: Minor reformatting. - -2012-11-06 Tristan Gingold - - * s-tposen.ads: Minor comment update. - -2012-11-06 Arnaud Charlet - - * sysdep.c: Rename sig* wrappers to use unique names. - -2012-11-06 Yannick Moy - - * exp_dbug.adb (Qualify_Entity_Name): Mark entity as having a qualified - name after being treated, in formal verification mode. - -2012-11-06 Fedor Rybin - - * gnat_ugn.texi: Updating gnattest section to reflect changes - in default behaviour of the tool. - -2012-11-06 Thomas Quinot - - * s-oscons-tmplt.c: Interfaces.C now needs to be WITH'd even - on platforms that do not support sockets (for the benefit of - subtype IOCTL_Req_T). - -2012-11-06 Ed Schonberg - - * par-ch4.adb (P_Primary): if-expressions, case-expressions, - and quantified expressions are legal if surrounded by parentheses - from an enclosing context, such as a call or an instantiation. - -2012-11-06 Yannick Moy - - * impunit.adb (Get_Kind_Of_Unit): Return appropriate kind for - predefined implementation files, instead of returning - Not_Predefined_Unit on all .adb files. - -2012-11-06 Tristan Gingold - - * exp_ch9.adb (Build_Activation_Chain_Entity): Return immediately if - partition elaboration policy is sequential. - (Build_Task_Activation_Call): Likewise. Use - Activate_Restricted_Tasks on restricted profile. - (Make_Task_Create_Call): Do not use the _Chain - parameter if elaboration policy is sequential. Call - Create_Restricted_Task_Sequential in that case. - * exp_ch3.adb (Build_Initialization_Call): Change condition to - support concurrent elaboration policy. - (Build_Record_Init_Proc): Likewise. - (Init_Formals): Likewise. - * bindgen.adb (Gen_Adainit): Declare Partition_Elaboration_Policy - and set it in generated code if the elaboration policy is - sequential. The procedure called to activate all tasks is now - named __gnat_activate_all_tasks. - * rtsfind.adb (RE_Activate_Restricted_Task, - RE_Create_Restricted_Task_Sequential): New RE_Id literals. - * s-tarest.adb (Create_Restricted_Task): Added to create a task without - adding it on an activation chain. - (Activate_Tasks): Has now a Chain parameter. - (Activate_All_Tasks_Sequential): Added. Called by the binder to - activate all tasks. - (Activate_Restricted_Tasks): Added. Called during elaboration to - activate tasks of the units. - * s-tarest.ads: Remove pragma Partition_Elaboration_Policy. - (Partition_Elaboration_Policy): New variable (set by the binder). - (Create_Restricted_Task): Revert removal of the chain parameter. - (Create_Restricted_Task_Sequential): New procedure. - (Activate_Restricted_Tasks): Revert removal. - (Activate_All_Tasks_Sequential): New procedure. - -2012-11-06 Bernard Banner - - * adaint.c Add file macro definitions missing on Android. - * adaint.h Avoid definitions related to task affinity and CPU - sets since this functionality is missing on the Android - * errno.c (__set_errno): Android already contains such a named - procedure so do include again. - * gsocket.h: Sockets not supported on Android. - * init.c: Avoid linux related code not supported on Android. - * sysdep.c (sigismember, sigaddset, sigdelset, sigemptyset, - sigfillset): wrapper functions since sig routines are defined - as inline macros on Android. - * terminals.c: Add stubs for terminal related functions not - supported on Android. - -2012-11-06 Hristian Kirtchev - - * sem_prag.adb (Analyze_Pragma): Do not - output the characters of an illegal argument as it may not have - characters to begin with. - -2012-11-06 Hristian Kirtchev - - * exp_prag.adb (Expand_Pragma_Loop_Assertion): - Change the order of argument processing to avoid disappearing - increase / decrease expressions. - -2012-11-06 Hristian Kirtchev - - * exp_prag.adb: Add with and use clause for Sem_Ch8. - (Expand_N_Pragma): Add a new variant to expand pragma Loop_Assertion. - (Expand_Pragma_Loop_Assertion): New routine. - * par-prag.adb (Prag): The semantic analysis of pragma - Loop_Assertion is carried out by Analyze_Pragma. No need for - checks in the parser. - * sem_prag.adb: Add a reference position value for pragma - Loop_Assertion in Sig_Flags. - (Analyze_Pragma): Add semantic analysis for pragma Loop_Assertion. - * snames.ads-tmpl: Add the following new names: - Name_Decreases Name_Increases Name_Loop_Assertion. - Add new pragma id Pragma_Loop_Assertion. - -2012-11-06 Ed Schonberg - - * exp_ch5.adb: Identifier in iterator must have debug - information. - -2012-11-06 Arnaud Charlet - - * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Remove - duplicate rules handled by Make-generated.in. - -2012-10-31 Lawrence Crowl - - * gcc-interface/utils.c (gnat_write_global_declarations): - Rename varpool_node to varpool_node_for_decl. - -2012-10-30 Eric Botcazou - - * gcc-interface/Make-lang.in: Fix and clean up rules for C files. - -2012-10-29 Arnaud Charlet - - * gcc-interface/Makefile.in (s-oscons.ads): Adjust call to xoscons. - -2012-10-29 Pascal Obry - - * xoscons.adb, Make-generated.in; The template used by xoscons is now - given as parameter. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-10-29 Yannick Moy - - * exp_dbug.adb (Qualify_Entity_Name): Only do renaming in formal - verification mode when there is a homonym. - -2012-10-29 Thomas Quinot - - * xoscons.adb: Minor reformatting. - -2012-10-29 Yannick Moy - - * exp_alfa.adb (Expand_Alfa): Backtrack change that removed - qualification of names in formal verification mode. Instead, - the qualification should be modified. - * exp_dbug.adb (Qualify_Entity_Name): Modify qualification in formal - verification mode, so that only a suffix is added to distinguish - homonyms from the same scope. - -2012-10-29 Robert Dewar - - * gnat_rm.texi: Document that pragma Optimize_Alignment (Space) is - ignored with a warning for packed variable length records. - -2012-10-29 Thomas Quinot - - * socket.c, g-socthi-dummy.adb, g-socthi-dummy.ads, g-socthi-vms.adb, - g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads, - s-oscons-tmplt.c, g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb, - g-socthi.ads, xoscons.adb, g-socket.adb, g-sothco.ads: Introduce an - appropriate subtype for IOCTL requests, since these may be signed or - unsigned. - -2012-10-29 Gary Dismukes - - * exp_alfa.adb: Minor reformatting. - -2012-10-29 Robert Dewar - - * gnat_rm.texi, gnat_ugn.texi: Clarify documentation on maximum - line length style switch. - -2012-10-29 Robert Dewar - - * layout.adb (Set_Composite_Alignment): Ignore pragma - Optimize_Alignment (Space) for packed variable length records. - -2012-10-29 Robert Dewar - - * s-bignum.adb: Minor comment change. - -2012-10-29 Thomas Quinot - - * s-oscons-tmplt.c: Fix signedness of ioctl request identifiers - for x86_64-freebsd. - -2012-10-29 Yannick Moy - - * exp_alfa.adb (Expand_Alfa): Remove qualification of names. - -2012-10-29 Robert Dewar - - * sem_prag.adb: Minor reformatting. - -2012-10-29 Robert Dewar - - * gnat_rm.texi: Minor rewording. - -2012-10-29 Javier Miranda - - * exp_disp.ads (Is_Expanded_Dispatching_Call): New subprogram. - * exp_disp.adb (Expand_Dispatching_Call): No action needed if the - call has been already expanded. - (Is_Expanded_Dispatching_Call): New subprogram. - * sem_disp.adb (Propagate_Tag): No action needed if the call - has been already expanded. - -2012-10-29 Hristian Kirtchev - - * exp_ch9.adb (Create_Index_And_Data): Remove local - variable Index_Typ and its uses. The type of the index is now - System.Tasking.Entry_Index. Update all related comments. - * rtsfind.ads: Add RE_Entry_Index in tables RE_Id and RE_Unit_Table. - * s-taskin.adb (Number_Of_Entries): The return type is now Entry_Index. - * s-taskin.ads: The index type of Task_Entry_Names_Array is now - Entry_Index. - (Number_Of_Entries): The return type is now Entry_Index. - * s-tpoben.adb (Number_Of_Entries): The return type is now Entry_Index. - * s-tpoben.ads: The index type of Protected_Entry_Names_Array - is now Entry_Index. - (Number_Of_Entries): The return type is now Entry_Index. - -2012-10-29 Pascal Obry - - * gnat_ugn.texi: Add note about SEH setup on x86-windows. - -2012-10-29 Eric Botcazou - - * s-bignum.adb (Allocate_Bignum): Use the exact layout of - Bignum_Data for the overlay. - -2012-10-29 Thomas Quinot - - * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_util.ads, - par-prag.adb, par-util.adb, snames.ads-tmpl (Sem_Prag.Analyze_Pragma): - Handle new pragma Attribute_Definition. - (Sem_Util.Bad_Attribute): New routine, moved here - from par-util, so that it can be used by the above. - (Par_Util.Signal_Bad_Attribute): Processing moved to - Sem_Util.Bad_Attribute. - -2012-10-29 Robert Dewar - - * s-tpoben.ads, s-taskin.ads, exp_ch3.adb: Minor reformatting. - -2012-10-29 Yannick Moy - - * sem_prag.adb, gnat1drv.adb, opt.ads: Rename S14_Extensions - into Formal_Extensions. - -2012-10-29 Thomas Quinot - - * sem_attr.adb: Minor reformatting. - -2012-10-29 Tristan Gingold - - * gnat_rm.texi: Document implementation advice for Pragma - Partition_Elaboration_Policy. - -2012-10-29 Yannick Moy - - * s-bignum.adb (Div_Rem): Reference that Algorithm_D is from - the second edition of TAOCP from Knuth, since the algo changed - in the third edition. Also correct the definition of 'd' which - could overflow. - -2012-10-29 Hristian Kirtchev - - * exp_ch3.adb (Build_Initialization_Call): Create static strings - which denote entry [family] names and associate them with the - object's Protection_Entries or ATCB. - (Build_Init_Statements): - Remove local variable Names. Do not generate the entry [family] - names inside the init proc because they are now static. - * exp_ch9.adb (Build_Entry_Names): Reimplemented. The strings - which denote entry [family] names are now generated statically - and associated with the concurrent object's Protection_Entries - or ATCB during initialization. - * exp_ch9.ads (Build_Entry_Names): Change subprogram profile - and associated comment on usage. - * rtsfind.ads: Add the following entries to tables RE_Id and - RE_Unit_Table: - - RE_Protected_Entry_Names_Array RE_Task_Entry_Names_Array - RO_PE_Number_Of_Entries RO_PE_Set_Entry_Names - RO_ST_Number_Of_Entries RO_ST_Set_Entry_Names - - Remove the following entries from tables RE_Id and RE_Unit_Table: - - RO_PE_Set_Entry_Name RO_TS_Set_Entry_Name - - * s-taskin.adb: Remove with clause for Ada.Unchecked_Deallocation. - (Free_Entry_Names_Array): Removed. - (Number_Of_Entries): New routine. - (Set_Entry_Names): New routine. - * s-taskin.ads: Rename type Entry_Names_Array to - Task_Entry_Names_Array. Rename type Entry_Names_Array_Access - to Task_Entry_Names_Access. Update the type of ACTB field - Entry_Names and add a comment on its protection status. - (Free_Entry_Names_Array): Removed. - (Number_Of_Entries): New routine. - (Set_Entry_Names): New routine. - * s-tassta.adb (Create_Task): Remove formal parameter - Build_Entry_Names. Do not allocate an array to hold the - string names of entries and families. - (Free_Entry_Names): Removed. - (Free_Task): Remove the call to Free_Entry_Names. - (Set_Entry_Name): Removed. - (Vulnerable_Free_Task): Remove the call to Free_Entry_Names. - * s-tassta.ads (Create_Task): Remove formal parameter - Build_Entry_Names along with associated comment. - (Set_Entry_Name): Removed. - * s-tpoben.adb: Remove with clause for Ada.Unchecked_Deallocation. - (Finalize): Remove the call to Free_Entry_Names. - (Free_Entry_Names): Removed. - (Initialize_Protection_Entries): - Remove formal parameter Build_Entry_Names. Do not allocate - an array to hold the string names of entries and families. - (Number_Of_Entries): New routine. - (Set_Entry_Name): Removed. - (Set_Entry_Names): New routine. - * s-tpoben.ads: Add types Protected_Entry_Names_Array and - Protected_Entry_Names_Access. Update the type of Protection_Enties - field Entry_Names. - (Initialize_Protection_Entries): Remove - formal parameter Build_Entry_Names along with associated comment. - (Number_Of_Entries): New routine. - (Set_Entry_Name): Removed. - (Set_Entry_Names): New routine. - -2012-10-29 Arnaud Charlet - - * gnat_ugn.texi: Minor typo fix. -2012-10-29 Yannick Moy - - * debug.adb Associate debug switch -gnatd.V to extensions for - formal verification. - * gnat1drv.adb (Adjust_Global_Switches): Set flag S14_Extensions - when -gnatd.V is set. - * gnat_rm.texi: Remove doc for Assert_And_Cut. - * opt.ads Declare new flag S14_Extensions, to be set when new - aspects/pragmas/attributes for formal verification should be - accepted. - * sem_prag.adb (Analyze_Pragma): Check that S14_Extensions is - set when treating pragma Assert_And_Cut. - -2012-10-29 Tristan Gingold - - * s-tarest.ads, s-tassta.adb: Add a pragma Partition_Elaboration_Policy. - -2012-10-29 Robert Dewar - - * freeze.adb: Minor reformatting. - -2012-10-29 Robert Dewar - - * xr_tabls.adb, xr_tabls.ads, exp_ch9.adb, snames.adb-tmpl, - snames.ads-tmpl, exp_ch3.adb: Minor reformatting. - -2012-10-29 Ed Schonberg - - * sem_ch6.adb: Call Build_Subprogrm_Instance_Renamings only when - generating code. - -2012-10-29 Robert Dewar - - * gnat_ugn.texi: Add documentation for -gnatw.k/-gnatw.K. - * ug_words: Add entries for -gnatw.k/.K for [NO]STANDARD_REDEFINITION. - * vms_data.ads: Add entries for [NO]STANDARD_REDEFINITION. - -2012-10-29 Tristan Gingold - - * exp_ch9.adb, s-tarest.ads, exp_ch3.adb: Update comments. - -2012-10-29 Yannick Moy - - * gnat_rm.texi: Minor documentation addition. - -2012-10-29 Emmanuel Briot - - * xr_tabls.adb, xr_tabls.ads (Add_Declaration, Add_Reference): No - longer assume that a parameter declaration is seen after the subprogram - that uses it. - -2012-10-29 Tristan Gingold - - * lib-writ.adb (Write_ALI): Emit partition elaboration policy - in P line. - * lib-writ.ads: Document partition elaboration policy indication. - * sem_prag.adb (Check_Arg_Is_Partition_Elaboration_Policy): New - procedure. - (Analyze_Pragma): Handle Partition_Elaboration_Policy. - (Sig_Flags): Add flag for Pragma_Partition_Elaboration_Policy - * ali.adb (Initialize_ALI): Init Partition_Elaboration_Policy_Specified. - (Scan_ALI): Read Ex indications. - * ali.ads: ALIs_Record: Add Partition_Elaboration_Policy. - * par-prag.adb (Prag): Add Partition_Elaboration_Policy. - * snames.adb-tmpl (Is_Partition_Elaboration_Policy_Name): New function. - * opt.ads (Partition_Elaboration_Policy): Declare. - (Partition_Elaboration_Policy_Sloc): Declare. - * bcheck.adb (Check_Consistent_Partition_Elaboration_Policy): - New procedure. (Check_Configuration_Consistency): Check partition - elaboration policy consistency. - * snames.ads-tmpl (Name_Partition_Elaboration_Policy): New name. - (First_Partition_Elaboration_Policy_Name, Name_Concurrent, - Name_Sequential, Last_Partition_Elaboration_Policy_Name): Likewise. - (Pragma_Partition_Elaboration_Policy): New literal. - (Is_Partition_Elaboration_Policy_Name): New function. - -2012-10-29 Ed Schonberg - - * sem_ch6.adb (Is_Public_Subprogram_For): Handle properly - expression functions, which are rewritten as subprogram - declarations, when generating invariants for its return value - and in-out parameters. - -2012-10-29 Arnaud Charlet - - * warnsw.adb (Set_GNAT_Mode_Warnings): Unset - Warn_On_Standard_Redefinition. - -2012-10-29 Javier Miranda - - * sem_ch3.adb (Derive_Progenitor_Subprograms): Complete documentation. - -2012-10-29 Robert Dewar - - * par-ch11.adb (Warn_If_Standard_Redefinition): Add calls. - * par-ch3.adb (P_Defining_Identifier): Call - Warn_If_Standard_Redefinition if not inside record definition. - * par-ch6.adb (Warn_If_Standard_Redefinition): Add calls. - * par-util.adb (Warn_If_Standard_Redefinition): New procedure. - * par.adb (Inside_Record_Definition): New flag. - (Warn_If_Standard_Redefinition): New procedure. - * sinfo-cn.adb (Change_Identifier_To_Defining_Identifier): Remove - handling of warning for redefining standard name (moved to Par*). - -2012-10-29 Javier Miranda - - * sem_ch3.adb (Derive_Progenitor_Subprograms): Disable small - optimization in generic formal types. - -2012-10-29 Robert Dewar - - * exp_ch9.adb, exp_ch3.adb: Add comments. - * sem_prag.adb: Minor reformatting. - -2012-10-29 Tristan Gingold - - * bindgen.adb (Gen_Output_File_Ada): Do not emit declaration for - Is_Elaborated if not referenced. - -2012-10-29 Tristan Gingold - - * exp_ch9.adb (Build_Activation_Chain_Entity): Punt in restricted - profile. - * exp_ch3.adb (Build_Initialization_Call): Do no append _Chain - parameter in restricted profile. - (Build_Init_Call_Thru): Likewise. - (Init_Formals): Likewise. - * exp_ch3.adb: Minor reformatting. - -2012-10-29 Arnaud Charlet - - * usage.adb: Update usage line for -gnatw.k. - -2012-10-29 Yannick Moy - - * sem_prag.adb: Code clean up. - -2012-10-29 Vincent Celier - - * projects.texi: Clarify documentation of attribute - Ignore_Source_Sub_Dirs. - -2012-10-29 Robert Dewar - - * g-sechas.adb, g-sechas.ads, exp_ch9.adb, bindgen.adb, exp_dbug.adb, - exp_dbug.ads: Minor reformatting. - -2012-10-29 Pascal Obry - - * g-sechas.adb, g-sechas.ads: (Binary_Message_Digest): New subtype. - (Digest): New versions returning a Binary_Message_Digest. - (Wide_Digest): Likewise. - -2012-10-29 Robert Dewar - - * warnsw.adb: Complete previous change. - -2012-10-29 Tristan Gingold - - * bindgen.adb (Check_File_In_Partition, Check_System_Restrictions_Used): - Removed. - (Check_Dispatching_Domains_Used): Removed. - (Gen_Adafinal): Remove call to above procedures. - (Resolve_Binder_Options): Handle system restrictions and dispatching - domains. - -2012-10-29 Tristan Gingold - - * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Remove - Chain parameter. - * exp_ch9.adb (Make_Task_Create_Call): Do not add Chain parameter - on restricted runtime. - -2012-10-29 Pascal Obry - - * g-sechas.adb, g-sechas.ads: Minor code clean-up. - -2012-10-29 Ed Schonberg - - * sem_aux.adb (Get_Rep_Item): Treat Priority and Interrupt_Priority - as equivalent, because only one of them can be specified for a - task, protected definition, or subprogram body. - * aspects.adb ((Same_Aspect): The canonical aspect of - Interrupt_Priority is Priority. - -2012-10-29 Robert Dewar - - * sem_ch13.adb: Minor reformatting. - -2012-10-29 Robert Dewar - - * i-cstrea.ads: Avoid redefinition of standard symbol string. - * prj-makr.adb: Add comment for OK redefinition of Stadard. - * prj.ads: Add comment for OK redefinition of Stadard. - * s-crtl.ads: Avoid redefinition of standard symbol string. - * sinfo-cn.adb (Change_Identifier_To_Defining_Identifier): - Generate warning for standard redefinition if - Warn_On_Standard_Definition set. - * usage.adb: Add lines for -gnatw.k and -gnatw.K - * warnsw.adb: Set/reset Warn_On_Standard_Redefinition - appropriately. - * warnsw.ads (Warn_On_Standard_Redefinition): New flag. - * s-stratt-xdr.adb: Avoid new warning. - -2012-10-29 Ed Schonberg - - * exp_dbug.ads, exp_dbug.adb (Build_Subprogram_Instance_Renamings): - in the body of a subpogram instance, introduce local renamings - for actuals of an elementary type, so that GDB can recover the - values of these actuals more directly. - -2012-10-29 Robert Dewar - - * sem_ch5.adb (Analyze_Loop_Statement): Add warning for identical - inner/outer ranges. - -2012-10-29 Robert Dewar - - * einfo.ads: Change terminology "present" to "defined" in talking - about whether a given field is defined for a given entity kind. - -2012-10-29 Bob Duff - - * atree.ads: Minor comment fix. - -2012-10-29 Bob Duff - - * sem_ch13.adb (Replace_Type_Reference): Set_Comes_From_Source. - Otherwise, the node is ignored by ASIS. - * sem_ch5.adb: Minor reformatting. - -2012-10-29 Thomas Quinot - - * exp_attr.adb, exp_dist.adb, exp_dist.ads (Build_To_Any_Call): Pass - an explicit Loc parameter to set the source location of generated - nodes. - -2012-10-29 Tristan Gingold - - * exp_ch9.adb (Build_Task_Activation_Call): Do nothing on - restricted profile. - * bindgen.adb (System_Tasking_Restricted_Stages_Used): New variable. - (Gen_Adainit): Declare and call Activate_Tasks when the above variable - is set. - (Resolve_Binder_Options): Set the variable. - * rtsfind.ads (RE_Activate_Restricted_Tasks): Removed (now unused). - * s-tarest.adb (Tasks_Activation_Chain): New variable. - (Activate_Restricted_Tasks): Removed, and replaced by ... - (Activate_Tasks): New procedure, to activate all tasks at - the end of elaboration. - (Create_Restricted_Tasks): Chain parameter is now unreferenced. Put - the created task on the Tasks_Activation_Chain list. - * s-tarest.ads (Activate_Restricted_Tasks): Removed. - (Activate_Tasks): Added. - -2012-10-29 Gary Dismukes - - * sem_res.adb (Resolve_If_Expression): Compare subtype of the 'then' - expression against the subtype of the expression rather than comparing - base types, same as is already done for the 'else' expression. - -2012-10-29 Steve Baird - - * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If CodePeer_Mode - = True and we detect that an Address specification is used to overlay - another object, do not set that object's Treat_As_Volatile flag. - -2012-10-29 Ed Schonberg - - * sem_ch3.adb (Constant_Redeclaration): If the type of a - deferred constant has invariants, generate invariant call on - the initial value. - -2012-10-29 Bob Duff - - * sem_ch13.adb (Replace_Type_Reference): Use correct sloc for - the new node. - -2012-10-29 Thomas Quinot - - * sem_elab.adb: Minor reformatting and code reorganization. - -2012-10-29 Robert Dewar - - * par-ch4.adb (P_Primary): Warn on bad use of unary minus. - -2012-10-29 Robert Dewar - - * s-valuti.ads, s-valuti.adb (Bad_Value): New procedure. - * s-valllu.adb, s-valwch.adb, s-valcha.adb, s-valint.adb, - s-valuns.adb, s-valrea.adb, s-valboo.adb, s-valenu.adb, - s-vallli.adb: Use Bad_Value everywhere. - -2012-10-29 Yannick Moy - - * gnat1drv.adb (Adjust_Global_Switches): Do not suppress checks - in Alfa mode. - -2012-10-29 Yannick Moy - - * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): - Add special case for case expression alternative. - (Is_Signed_Integer_Arithmetic_Op): Remove special case for case - expression alternative. - * exp_ch4.adb Minor reformatting. - -2012-10-29 Thomas Quinot - - * sem_elab.adb: Minor reformatting. - -2012-10-29 Bob Duff - - * sem_res.adb: Minor: Remove redundant test. - -2012-10-29 Arnaud Charlet - - * pprint.ads, pprint.adb, adabkend.ads, adabkend.adb, - aa_util.ads, aa_util.adb: New. - -2012-10-23 Eric Botcazou - - * system-linux-mipsel.ads (Stack_Check_Probes): Set to True. - * system-linux-mips.ads (Stack_Check_Probes): Likewise. - * system-linux-mips64el.ads (Stack_Check_Probes): Likewise. - -2012-10-22 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Force - BLKmode on the type if it is passed by reference. - : Likewise. - : Guard the call to Is_By_Reference_Type predicate. - : Likewise. - - * gcc-interface/Makefile.in: Remove outdated comment and reference to - non-existing file. - -2012-10-22 Eric Botcazou - - * gcc-interface/utils.c (rest_of_record_type_compilation): Simplify and - robustify pattern machine code for masking operations. - -2012-10-22 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : In - type annotation mode, break circularities introduced by AI05-0151. - -2012-10-22 Eric Botcazou - - * gcc-interface/trans.c (Loop_Statement_to_gnu): Use gnat_type_for_size - directly to obtain an unsigned version of the base type. - -2012-10-22 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not - generate the special PARM_DECL for an Out parameter in LTO mode. - -2012-10-22 Eric Botcazou - - PR bootstrap/54820 - * gcc-interface/Make-lang.in (GCC_LINK): Remove hardcoded options. - -2012-10-15 Matthias Klose - - * gcc-interface/Makefile.in: Match arm*-*-linux-*eabi* for - ARM Linux/GNU. - -2012-10-05 Robert Dewar - - * sem_ch7.adb: Minor reformatting. - -2012-10-05 Ed Schonberg - - * sem_prag.adb (Analyze_Pragma, case Persistent_BSS): check for - a duplicate pragma before Rep_Item_Too_Late to prevent spurious - messages about duplicate pragmas. - -2012-10-05 Ed Schonberg - - * exp_util.adb (Find_Init_Call): If the successor of the - object declaration is a block, check whether it contains the - initialization call, because it may have been created by actuals - that use the secondary stack. - -2012-10-05 Thomas Quinot - - * sem_dim.adb, errout.adb, errout.ads (Analyze_Dimension_Call): Add - guard against abnormal tree resulting from a previously diagnosed - illegality. - -2012-10-05 Hristian Kirtchev - - * freeze.adb (Freeze_Expression): Rename local variable Cspc to Spec - and update all refs to it. Do not freeze an entity outside a subprogram - body when the original context is an expression function. - -2012-10-05 Robert Dewar - - * gnat1drv.adb (Adjust_Global_Switches): Default for overflow checking - is suppressed, even if backend overflow/divide checks are enabled. - -2012-10-05 Ed Schonberg - - * einfo.adb (Set_Invariant_Procedure, Set_Predicate_Function): - chain properly subprograms on Subprograms_For_Type list. - * sem_ch13.ads; (Build_Invariant_Procedure_Declaration): new - procedure, to create declaration for invariant procedure - independently of the construction of the body, so that it can - be called within expression functions. - * sem_ch13.adb (Build_Invariant_Procedure): code cleanup. The - declaration may already have been generated at the point an - explicit invariant aspect is encountered. - * sem_prag.adb; (Analyze_Pragma, case Invariant): create declaration - for invariant procedure. - * sem_ch7.adb (Analyze_Package_Specification): clean up call to - build invariant procedure. - (Preserve_Full_Attributes): propagate information about invariants - if they appear on a completion, - -2012-10-05 Pascal Obry - - * gnat_ugn.texi: Update documentation to lift Microsoft C - restriction. - -2012-10-05 Robert Dewar - - * sem_util.adb (Has_One_Matching_Field): Handle case of lone - discriminant. - -2012-10-05 Yannick Moy - - * checks.adb (Minimize_Eliminate_Overflow_Checks): Correct code - for the division operation and exponent operation. Adjust bound - for the mod and rem operations. - -2012-10-05 Robert Dewar - - * checks.adb, checks.ads, s-tassta.adb, s-stposu.adb, s-spsufi.adb, - s-spsufi.ads, exp_ch4.adb: Minor reformatting. - -2012-10-05 Yannick Moy - - * switch-c.adb, checks.adb, checks.ads, sem_prag.adb, exp_ch4.adb, - osint.adb: Minor correction of typos, and special case for Alfa mode. - -2012-10-05 Hristian Kirtchev - - * s-spsufi.adb: Add with clause for Ada.Unchecked_Deallocation. - Add with and use clauses for System.Finalization_Masters. - (Finalize_And_Deallocate): Add an instance of - Ada.Unchecked_Deallocation. Merge the code from the now obsolete - Finalize_Subpool into this routine. - * s-spsufi.ads: Add pragma Preelaborate. - * s-stposu.adb: Remove with clause for - Ada.Unchecked_Deallocation; Add with and use clauses for - System.Storage_Pools.Subpools.Finalization; (Finalize_Pool): - Update the comment on all actions takes with respect to a subpool - finalization. Finalize and deallocate each individual subpool. - (Finalize_Subpool): Removed. - (Free): Removed; - (Detach): Move from package body to spec. - * s-stposu.ads (Detach): Move from package body to spec. - (Finalize_Subpool): Removed. - -2012-10-05 Arnaud Charlet - - * s-tassta.adb: Update comments. - (Vulnerable_Complete_Master): If Free_On_Termination is set, do - nothing, and let the task free itself if not already done. - -2012-10-04 Robert Dewar - - * sem_res.adb (Resolve_Set_Membership): Warn on duplicates. - -2012-10-04 Emmanuel Briot - - * g-comlin.adb (Getopt): Fix value of Full_Switch returned in case of - invalid switch. - -2012-10-04 Arnaud Charlet - - * gcc-interface/Make-lang.in: Update dependencies. - -2012-10-04 Robert Dewar - - * sem_eval.adb (Fold_Str, Fold_Uint, Fold_Ureal): Reset static - expression state after Resolve call. - -2012-10-04 Robert Dewar - - * sem_prag.adb (Analyze_Pragma. case Warnngs): Don't make entry - in the table for Warnings Off pragmas if within an instance. - -2012-10-04 Ed Schonberg - - * sem_ch9.adb (Analyze_Entry_Body): Transfer - Has_Pragma_Unreferenced flag from entry formal to corresponding - entity in body, to prevent spurious warnings when pragma is - present. - -2012-10-04 Robert Dewar - - * s-bignum.adb (Big_Exp): Raise Storage_Error for ludicrously - large results. - -2012-10-04 Ed Schonberg - - * sem_ch3.adb (Check_Duplicate_Aspects): Diagnose properly - aspects that appear in the partial and the full view of a type. - -2012-10-04 Robert Dewar - - * sinfo.ads (N_Return_Statement): Removed. - -2012-10-04 Tristan Gingold - - * init.c (__gl_zero_cost_exceptions): Comment it as not used - anymore. - * bindgen.adb (Gen_Adainit): Do not emit Zero_Cost_Exceptions - anymore. - -2012-10-04 Thomas Quinot - - * prep.adb, prepcomp.adb, gprep.adb, opt.ads: New preprocessor switch - -a (all source text preserved). - -2012-10-04 Vincent Celier - - * prj-proc.adb (Recursive_Process): Use project directory - display path name as the value of 'Project_Dir. - -2012-10-04 Robert Dewar - - * exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): - Deal with case where we get a bignum operand and cannot do a - range analysis. - * sem_eval.adb (Why_Not_Static): Deal with bignum operands - -2012-10-04 Ed Schonberg - - * sem_ch4.adb (Find_Unary_Types): Within an instance, an - interpretation that involves a predefied arithmetic operator is - not a candidate if the corresponding generic formal type is not - a numeric type. - * sem_util.ads, sem_util.adb (Corresonding_Generic_Type): If a - type is a generic actual type within an instance, return the - corresponding formal in the generic unit, otherwise return - Any_Type. - -2012-10-04 Robert Dewar - - * checks.adb (Minimize_Eliminate_Overflow_Checks): Dont reanalyze - if/case expression if nothing has changed (just reexpand). Stops - case expression from generating incorrect temporary. - * exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): - Fix cut and paste typo for range analysis in NE (not equal) case. - * sem_eval.adb (Compile_Time_Compare): Small optimization to - catch some more cases. - * types.ads (Suppressed_Or_Checked): New subtype of - Overflow_Check_Type. - -2012-10-04 Javier Miranda - - * exp_disp.adb (Set_CPP_Constructors_Old): Removed. - (Set_CPP_Constructors): Code cleanup. - -2012-10-04 Ed Schonberg - - * sem_ch10.adb (Is_Ancestor_Unit): Make global, for use elsewhere. - (Install_Private_with_Clauses): if clause is private and limited, - do not install the limited view if the library unit is an ancestor - of the unit being compiled. This unusual configuration occurs - when compiling a unit DDP, when an ancestor P of DDP has a - private limited with clause on a descendant of P that is itself - an ancestor of DDP. - -2012-10-04 Vincent Celier - - * prj-proc.adb (Process_Package_Declaration): Use project - directory display path name as the value of 'Project_Dir. - -2012-10-04 Gary Dismukes - - * exp_util.adb (Build_Allocate_Deallocate_Proc): The subpool can be - given by an arbitrary name, so copy the tree to make the call's actual. - -2012-10-04 Robert Dewar - - * s-exnllf.adb, s-exnllf.ads: Minor reformatting. - -2012-10-04 Thomas Quinot - - * exp_ch6.adb: Minor reformatting. - -2012-10-04 Pascal Obry - - * projects.texi: Use consistently @command{} when referencing - commands. Fix typos. - -2012-10-03 Ed Schonberg - - * sem_ch6.adb (New_Overloaded_Entity): call - Append_Inherited_Subprogram when appropriate. - * sem_dim.adb (Analyze_Dimension_Call): Do not perform dimensional - analysis if call has previous semantic error. - * sem_util.ads, sem_util.adb (Append_Inherited_Subprogram): - new subprogram to handle properly the visibility of inherited - operations that are primitives of a type extension, when the - parent type and operations are declared in the same visible part. - -2012-10-03 Robert Dewar - - * checks.adb (Minimize_Eliminate_Overflow_Checks): Properly - handle case of top level expression within type conversion - * gnat1drv.adb (Adjust_Global_Switches): Set SUPPRESSED as - default for overflow checking for -gnatg mode (includes run-time). - * sem_res.adb (Resolve_Type_Conversion): Avoid bogus warnings - about redundant conversions from MINIMIZED/EXTENDED mode checking - -2012-10-03 Javier Miranda - - * exp_ch4.adb (Expand_N_Allocator_Expression): Minor code - reorganization and cleanup. Done to ensure proper management of - the C++ constructor covering tagged and untagged types and also - non-default constructors. - * exp_ch6.ads, exp_ch6.adb (Make_CPP_Constructor_Call_In_Allocator): - New subprogram. - -2012-10-03 Gary Dismukes - - * sem_ch6.adb: Minor typo fix. - -2012-10-03 Robert Dewar - - * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): - Set Top_Level properly (to False) for operand of range of - membership test. - * exp_ch4.adb (Expand_Membership_Minimize_Eliminate_Overflow): - Fix crash with -gnato3 and membership operations. - (Expand_Membership_Minimize_Eliminate_Overflow): Fix error message - and wrong results for -gnato3 large expression and predicated - subtype. - (Expand_Membership_Minimize_Eliminate_Overflow): Use - expression action node to avoid using insert actions (bombs in - some cases). - (Expand_Compare_Minimize_Eliminate_Overflow): Use expression action - node to avoid using insert actions (bombs in some cases). - -2012-10-03 Javier Miranda - - * exp_disp.adb (Set_CPP_Constructors_Old): Handle constructor of - untagged type that has all its parameters with defaults and hence it - covers the default constructor. - -2012-10-03 Yannick Moy - - * checks.adb, sem_prag.adb, s-bignum.ads: Minor typo fixes. - -2012-10-03 Thomas Quinot - - * g-socket.adb (Connect_Socket, version with timeout): When the - newly-connected socket is reported as available for writing, check - whether it has a pending asynchronous error prior to returning. - -2012-10-03 Ed Schonberg - - * sem_ch6.adb (Check_Conformance): Additional info when subtype - conformance fails, due to a missing null exclusion indicatar in - a formal that must match a controlling access formal. - -2012-10-02 Ben Brosgol - - * gnat_rm.texi: Minor editing. - -2012-10-02 Ed Schonberg - - * sem_ch6.adb (Analyze_Function_Return): Reject a return - expression whose type is a local access to subprogram type. - -2012-10-02 Robert Dewar - - * sem_eval.adb: Minor improvement to Compile_Time_Compare. - -2012-10-02 Robert Dewar - - * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): - Fix base type problem that resulted in improper conversion. - (Minimize_Eliminate_Overflow_Checks): Properly handle top - level case to avoid unnecessary conversion to bignum or LLI. - (Minimize_Eliminate_Overflow_Checks): Implement uniform two phase - approach for arithmetic operators and for if/case expressions. - * checks.ads: Minor comment fix. - * exp_ch4.adb (Minimized_Eliminated_Overflow_Check): New function, - implements a uniform way of treating minimized/eliminated checks in - two phases. - (Expand_Compare_Minimize_Eliminate_Overflow): Fix cut and - paste error resulting in wrong results for less than in some - cases. (Expand_Membership_Minimize_Eliminate_Overflow): - Fix error caused by incorrect capture of operand types. - (Expand_Membership_Minimize_Eliminate_Overflow): Fix error in - handling of bignum case. - (Expand_N_Case_Expression): Implement - proper two phase handling (Expand_N_If_Expression): Implement - proper two phase handling (Expand_N_Op_Abs): Implement proper - two phase handling ditto for all other arithmetic operators - * sem_res.adb (Resolve_If_Expression): Avoid introducing - unneeded conversions. - -2012-10-02 Robert Dewar - - * s-bignum.adb (Big_Exp): 0**0 should be 1, not 0. - (Big_Exp): Fix possible error for (-1)**0. - (Big_Exp): Fix error in computing 2**K for small K. - (Big_Mod): Fix wrong sign for negative operands. - (Div_Rem): Fix bad results for operands close to 2**63. - * s-bignum.ads: Add documentation and an assertion to require - LLI size to be 64 bits. - * sem_prag.adb (Analyze_Pragma, case Overflow_Checks): Do not - allow ELIMINATED if LLI'Size is other than 64 bits. - * switch-c.adb (Scan_Switches): Do not allow -gnato3 if LLI'Size - is not 64 bits. - * switch.ads (Bad_Switch): Add missing pragma No_Return. - * gnat_ugn.texi: Added appendix on Overflow Check Handling in GNAT. - -2012-10-02 Robert Dewar - - * sem_type.adb: Minor reformatting. - -2012-10-02 Robert Dewar - - * sem_ch8.adb: Minor reformatting. - -2012-10-02 Javier Miranda - - * exp_disp.adb (Set_CPP_Constructors): Handle constructor with default - parameters that covers the default constructor. - -2012-10-02 Yannick Moy - - * s-bignum.adb: Minor stylistic and comment corrections. - -2012-10-02 Pascal Obry - - * prj-util.adb (For_Interface_Sources): Iterate over all sources in - aggregate library projects. - -2012-10-02 Ed Schonberg - - * sem_ch8.adb (Find_Direct_Name): The left-hand side of an - assignment may designate a generalized reference. - -2012-10-02 Eric Botcazou - - * types.h (N_Return_Statement): Delete. - * gcc-interface/trans.c (gnat_to_gnu): Replace N_Return_Statement with - N_Simple_Return_Statement. - -2012-10-02 Ed Schonberg - - * freeze.adb (Freeze_Entity): in a generic context, aspects must - be analyzed because they may be queried subsequently within the - generic unit, even if no other freezing actions are generated - for an entity. - * sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): iterator - aspects must be analyzed because they are delayed aspects and - the corresponding attribute definition clause may not have been - analyzed yet. - -2012-10-02 Yannick Moy - - * gnat_rm.texi: Minor editing. - -2012-10-02 Robert Dewar - - * sinfo.adb, sinfo.ads, sem_util.adb, sem_util.ads, types.h, - exp_ch4.adb, exp_ch6.adb: Get rid of internal use of N_Return_Statement. - -2012-10-02 Eric Botcazou - - * types.h: Minor cosmetic fix. - -2012-10-02 Eric Botcazou - - * gcc-interfaces/decl.c (elaborate_expression_1): Use the variable for - bounds of loop iteraration scheme only for locally defined subtypes. - - * gcc-interface/trans.c (gigi): Fix formatting. - (build_return_expr): Apply the NRV optimization only for BLKmode. - -2012-10-02 Robert Dewar - - * sinfo.ads: Remove refs of N_Conditional_Expression and - N_Parameterized_Expression. - -2012-10-02 Thomas Quinot - - * exp_aggr.adb (Get_Component_Val): Rewrite code that computes - justification of bits in enclosing word in an attempt to make - it clearer. - -2012-10-02 Robert Dewar - - * par_sco.adb, sem_ch3.adb, layout.adb, exp_ch7.adb, exp_imgv.adb, - exp_util.adb, exp_util.ads, exp_attr.adb, sinfo.adb, sinfo.ads, - exp_ch9.adb, style.ads, scos.ads, debug.adb, einfo.ads, scng.adb, - checks.adb, checks.ads, sem.adb, par-ch4.adb, sem_util.adb, types.h, - sem_res.adb, expander.adb, scans.ads, par.adb, exp_ch2.adb, - gnat1drv.adb, stylesw.ads, sem_elab.adb, exp_ch4.adb, exp_ch4.ads, - exp_ch6.adb, sem_ch4.adb, sem_ch4.ads, sem_ch6.adb, - opt.ads, sem_eval.adb, sem_eval.ads, exp_intr.adb, sprint.adb, - sprint.ads, styleg.ads: Change name Conditional_Expression to - If_Expression. - * gcc-interface/trans.c (gnat_to_gnu): Replace - N_Conditional_Expression by N_If_Expression. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-10-02 Robert Dewar - - * exp_ch4.adb (Expand_N_Op_Expon): Use expression with actions - for x ** 4. - -2012-10-02 Ed Schonberg - - * sem_ch5.adb: (Analyze_Iterator_Specification): If container - has a variable indexing aspect, the element is a variable and - is modifiable in the loop. This check is also performed when the - loop is expanded, but it must be done in semantic analysis when - expansion is disabled, for example for ASIS usage. - -2012-10-02 Ed Schonberg - - * lib-xref.adb (Generate_Reference): If a child subprogram - has no previous spec, treat a reference to its formals (such - as a parameter association) as coming from source in order to - generate the proper references and enable gps navigation between - reference and declaration. - -2012-10-02 Robert Dewar - - * checks.adb (Apply_Arithmetic_Overflow_Checked_Suppressed): - New name for Apply_Arithmetic_Overflow_Normal - (Apply_Arithmetic_Overflow_Minimized_Eliminated): - Add handling for conditional expressions - (Is_Signed_Integer_Arithmetic_Op): Now includes conditional - expressions (Minimize_Eliminate_Overflow_Checks): Handle - conditional expressions. - * checks.ads: Minor comment fixes. - * exp_ch4.adb (Expand_N_Case_Expression): Call - Apply_Arithmetic_Overflow_Check (Expand_N_Conditional_Expression): - Call Apply_Arithmetic_Overflow_Check - * s-bignum.adb (Normalize): Remove incorrect precondition. - * sem_res.adb (Resolve_Case_Expression): Set Do_Overflow_Check - flag (Resolve_Conditional_Expression): Set Do_Overflow_Check flag. - * sinfo.adb: Add Do_Overflow_Check for conditional expressions. - * sinfo.ads: Minor documentation updates. - -2012-10-02 Ed Schonberg - - * exp_ch4.adb (Expand_N_Case_Expression): Do not introduce - indirections when the type of the alternatives is an access type: - more efficient, and removes anomalies when an alternative is - statically null. - -2012-10-02 Robert Dewar - - * aspects.ads: Minor comment addition (Invariant is a GNAT aspect). - -2012-10-02 Robert Dewar - - * exp_ch7.adb, sem_dim.adb, sem_dim.ads, prj-part.adb, checks.adb, - freeze.adb, sem_ch4.adb, sem_ch13.adb: Minor reformatting. - -2012-10-02 Robert Dewar - - * sem_prag.adb (Analyze_Pragma, case Overflow_Checks): Fix - typo preventing proper processing of Overflow_Checks pragmas - for general case. - -2012-10-02 Robert Dewar - - * exp_ch4.adb (Expand_N_Op_Mod): Fix crash in ELIMINATED overflow - checks mode when bignum mode is used. - -2012-10-02 Robert Dewar - - * stylesw.ads, gnat_ugn.texi: Document new style rule for NOT IN. - * par-ch4.adb (P_Relational_Operator): Add style check for NOT IN. - * style.ads, styleg.adb, styleg.ads (Check_Not_In): New procedure. - -2012-10-02 Vincent Pucci - - * sem_attr.adb (Analyze_Attribute): Check dimension for attribute - Old before it gets expanded. - * sem_dim.adb (Analyze_Dimension_Has_Etype): Correctly propagate - dimensions for identifier. - -2012-10-02 Ed Schonberg - - * exp_ch5.adb (Expand_Iterator_Loop): Handle properly the case - where the iterator type is derived locally from an instantiation - of Ada.Iterators_Interface. - * exp_ch7.adb (Establish_Transient_Scope): Do not create a - transient scope if within the expansion of an iterator loop, - because a transient block already exists. - -2012-10-02 Vincent Celier - - * gnatcmd.adb: Use absolute path for configuration pragmas files - * make.adb (Configuration_Pragmas_Switch.Absolute_Path): Moved - to Makeutl. - * makeutl.ads, makeutl.adb (Absolute_Path): New function, moved from - make.adb. - -2012-10-02 Vincent Celier - - * prj-part.adb (Post_Parse_Context_Clause): Resurrect Boolean - parameter In_Limited. Check for circularity also if In_Limited - is True. - (Parse_Single_Project): Call Post_Parse_Context_Clause with - In_Limited parameter. - -2012-10-02 Bob Duff - - * checks.adb (Apply_Predicate_Check): Disable check in -gnatc mode. - -2012-10-02 Vincent Pucci - - * sem_ch6.adb (Analyze_Function_Call): Dimension propagation - for function calls moved to Analyze_Dimension_Call. - * sem_dim.adb (Analyze_Dimension_Call): Properly propagate the - dimensions from the returned type for function calls. - -2012-10-02 Vincent Celier - - * gnatcmd.adb: Take into account any configuration pragma file - in the project files for gnat pretty/stub/metric. - -2012-10-02 Ed Schonberg - - * sem_ch13.adb (Check_Indexing_Functions): Refine several tests - on the legality of indexing aspects: Constant_Indexing functions - do not have to return a reference type, and given an indexing - aspect Func, not all overloadings of Func in the current scope - need to be indexing functions. - -2012-10-02 Vasiliy Fofanov - - * gnat_ugn.texi: Adjust docs for overflow checks to be VMS-friendly. - -2012-10-02 Vincent Celier - - * switch-m.adb (Normalize_Compiler_Switches): Recognize switches - -gnatox and -gnatoxx when x=0/1/2/3. - -2012-10-02 Vincent Pucci - - * sem_ch4.adb (Analyze_Indexed_Component_Form): Dimension - analysis for indexed components added. - * sem_ch6.adb (Analyze_Function_Call): Dimension propagation - for function calls added. - * sem_dim.adb (Analyze_Dimension): Call to - Analyze_Dimension_Has_Etype when N is a function call. - (Analyze_Dimension_Call): Don't propagate anymore the dimensions - for function calls since this is now treated separately in - Analyze_Dimension_Has_Etype. - (Analyze_Dimension_Has_Etype): For - attribute references, propagate the dimensions from the prefix. - * sem_dim.ads (Copy_Dimensions): Fix comment. - -2012-10-02 Hristian Kirtchev - - * checks.ads, checks.adb (Apply_Parameter_Aliasing_Checks): New routine. - (Apply_Parameter_Aliasing_And_Validity_Checks): This routine - has been split into two. - (Apply_Parameter_Validity_Checks): New routine. - * exp_ch6.adb (Expand_Call): Add checks to verify that actuals - do not overlap. The checks are made on the caller side to overcome - issues of parameter passing mechanisms. - * freeze.adb (Freeze_Entity): Update call to - Apply_Parameter_Aliasing_And_Validity_Checks. - -2012-10-02 Ed Schonberg - - * sem_ch4.adb (Is_Empty_Range): Use bounds of index type - to determine whether an array is empty when optimizing - a quantified expression over a null range. Use of RM_Size - was incorrect. Analyze condition before constant-folding the - expression to catch potential errors. Modify the error message - to avoid mathematical terminology. - -2012-10-02 Robert Dewar - - * usage.adb, gnat_rm.texi, vms_data.ads: Add entry for - /OVERFLOW_CHECKS=?? generating -gnato?? for control - of extended overflow checking. - * ug_words: Add entry for -gnato?? for /OVERFLOW_CHECKS=?? - * gnat_ugn.texi: Add documentation for -gnato?? for control of overflow - checking mode. - -2012-10-02 Ed Schonberg - - * sem_ch4.adb (Analyze_Quantified_Expression): If the iterator in - a quantified expression is statically known to be null (e.g. a - array with an empty index type) emit a warning. - -2012-10-02 Robert Dewar - - * sem_dim.adb: Minor code reorganization. - * sem_dim.ads: Add comment. - -2012-10-02 Robert Dewar - - * checks.ads, exp_ch4.adb, checks.adb - (Minimize_Eliminate_Overflow_Checks): Add Top_Level parameter to avoid - unnecessary conversions to Bignum. - Minor reformatting. - -2012-10-02 Ed Schonberg - - * sem_ch6.adb (Process_PPCs): Generate invariant checks for a - return value whose type is an access type and whose designated - type has invariants. Ditto for in-out parameters and in-parameters - of an access type. - * exp_ch3.adb (Build_Component_Invariant_Call): Add invariant check - for an access component whose designated type has invariants. - -2012-10-01 Vincent Pucci - - * sem_aggr.adb (New_Copy_Tree_And_Copy_Dimensions): New routine. - (Resolve_Record_Aggregate): New_Copy_Tree calls replaced by - New_Copy_Tree_And_Copy_Dimensions calls. Move_Dimensions call - replaced by Copy_Dimensions call. - * sem_dim.adb (Analyze_Dimension_Component_Declaration): Don't - remove the dimensions of expression in component declaration anymore. - (Copy_Dimensions): New routine. - (Move_Dimensions): Add call to Copy_Dimensions. - * sem_dim.ads (Copy_Dimensions): New routine. - (Move_Dimensions): Spec moved to body of Sem_Dim. - -2012-10-01 Ed Schonberg - - * checks.adb (Apply_Predicate_Check): If the predicate is a - static one and the operand is static, evaluate the predicate at - compile time. - * sem_eval.ads, sem_eval.adb (Eval_Static_Predicate_Check): new - procedure, to evaluate a static predicate check whenever possible. - * sem_res.adb (Resolve_Type_Conversion): Apply predicate check - on the conversion if the target type has predicates. - -2012-10-01 Vincent Pucci - - * sem_dim.adb (Has_Symbols): Complain if parameter Symbol has been - provided by the user in the dimension output call. - -2012-10-01 Robert Dewar - - * checks.adb (Apply_Divide_Checks): New name for - Apply_Divide_Check (Minimize_Eliminate_Overflow_Checks): - Add code to handle division (and rem and mod) properly. - (Apply_Division_Check): New procedure (Apply_Divide_Checks): - Use Apply_Division_Check (Apply_Divide_Checks): Use - Apply_Arithmetic_Overflow_Minimized_Eliminated. - * checks.ads (Apply_Divide_Checks): New name for - Apply_Divide_Check, also add clearer documentation for this - routine and put in alfa order. - * exp_ch4.adb (Apply_Divide_Checks): New name for - Apply_Divide_Check. - * s-bignum.adb (To_Bignum): Handle largest negative integer - properly. - * sem.adb (Analyze): Handle overflow suppression correctly - (Analyze_List): Handle overflow suppression correctly - * sem_res.adb (Analyze_And_Resolve): Handle overflow suppression - correctly. - -2012-10-01 Vasiliy Fofanov - - * s-oscons-tmplt.c, g-socket.ads: Revert previous change, breaks VMS. - -2012-10-01 Robert Dewar - - * checks.adb (Minimize_Eliminate_Overflow_Checks): Changes - for exponentiation. - * exp_ch4.adb (Expand_N_Op_Expon): Changes for Minimize/Eliminate - overflow checks. - * s-bignum.adb (Compare): Fix bad precondition. - -2012-10-01 Ed Schonberg - - * sem_ch3.adb (Build_Derived_Record_Type): If the derived - type has new discriminantss that constrain inherited ones, use - the discriminant type in the original declaration to check for - conformance, because in the presence of array components with a - smaller range that are constrained by the origina discriminant, - the compiler will have created a narrower subtype for that - discriminant. - -2012-10-01 Robert Dewar - - * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): - Handle case of appearing in range in membership test. - * exp_ch4.adb (Expand_Membership_Minimize_Eliminate_Overflow): - New procedure (Expand_N_In): Use - Expand_Membership_Minimize_Eliminate_Overflow. - * rtsfind.ads: Add RE_Bignum_In_LLI_Range. - * s-bignum.ads, s-bignum.adb (Bignum_In_LLI_Range): New function. - * sinfo.ads, sinfo.adb (No_Minimize_Eliminate): New flag. - -2012-10-01 Robert Dewar - - * uintp.ads: Minor reformatting. - -2012-10-01 Ed Schonberg - - * checks.adb: Improve warning message. - -2012-10-01 Robert Dewar - - * checks.adb: Minor reformatting. - -2012-10-01 Javier Miranda - - * exp_ch3.adb (Expand_N_Object_Declaration): Suppress tag - assignment for initializations that are aggregates. - -2012-10-01 Robert Dewar - - * exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): - New procedure. - -2012-10-01 Robert Dewar - - * checks.adb (Minimize_Eliminate_Checks): Changes from testing. - (Apply_Arithmetic_Overflow_Minimized_Eliminated): Changes - from testing. - * sinfo.ads: Remove note on not setting Entity field in overflow - case since this is no longer true. - * Makefile.rtl: Add s-bignum.o - -2012-10-01 Thomas Quinot - - * Make-generated.in: Correction to previous change for s-oscons - target. - -2012-10-01 Thomas Quinot - - * s-bignum.adb (Allocate_Bignum): Reorganize to kill strict - aliasing warning. - -2012-10-01 Robert Dewar - - * checks.adb (Overflow_Check_Mode): New function - (Apply_Overflow_Check): New procedure (Is_Check_Suppressed): - Moved here from Sem, Overflow_Check case now specially treated. - * checks.ads (Overflow_Check_Mode): New function - (Is_Check_Suppressed): Moved here from Sem (more logical) - * exp_ch4.adb (Substitute_Valid_Check): Suppress warning about - optimization if we are in MINIMIZED or ELIMINATED overflow - checking mode and within an assertiom expression. - * rtsfind.ads: Add entries for Bignum stuff. - * s-bignum.ads, s-bignum.adb: New files. - * sem.ads, sem.adb (Is_Check_Suppressed): Moved to Checks, more logical. - * sem_prag.adb (Process_Suppress_Unsuppress): New behavior for - Unsuppress of Overflow_Check (sets Checked instead of Minimized) - * sem_res.adb: Update comments. - * sinfo.ads (N_Op): Add documentation on overflow handling. - * tbuild.ads, tbuild.adb (Convert_To_And_Rewrite): New procedure. - * types.ads (Minimized_Or_Eliminated): New subtype. - -2012-10-01 Eric Botcazou - - * layout.adb (Layout_Type): Do not set twice the address size - on an access-to-unconstrained array if Debug_Flag_6 is set. - -2012-10-01 Hristian Kirtchev - - * sem_ch3.adb (Analyze_Declarations): Remove the specialized - code which prevents freezing when the declarative list contains - a _postconditions body. This is no longer needed because the - body is now inserted at the end of the declarations. - * sem_ch6.adb (Insert_After_Last_Declaration): New routine. - (Insert_Before_First_Source_Declaration): Removed. - (Process_PPCs): Insert the _postconditions body at the end of - the declarative list to prevent premature freezing of types that - appear in the declarations. - -2012-10-01 Robert Dewar - - * sem_aggr.adb, sem_dim.adb: Minor reformatting. - -2012-10-01 Ed Schonberg - - * sem_prag.adb (Process_Convention, Process_Import_Or_Interface): - Adjust test so that when the pragma comes from an aspect - specification it only applies to the entity in the original - declaration. - -2012-10-01 Thomas Quinot - - * gnat_ugn.texi: Document new command line switch -fada-spec-parent. - -2012-10-01 Thomas Quinot - - * s-oscons-tmplt.c, g-socket.ads: Minor code improvement: use gcc - builtin __alignof__ to get the alignment of struct fd_set. - -2012-10-01 Vincent Pucci - - * exp_ch6.adb (Expand_Call): Remove call to - Remove_Dimension_In_Call. - * sem_aggr.adb (Resolve_Array_Aggregate): Analyze dimension of - components in array aggregate. - (Resolve_Aggr_Expr): Propagate dimensions from the original expression - Expr to the new created expression New_Expr when resolving the - expression of a component in record aggregates. - (Resolve_Record_Aggregate): Analyze - dimension of components in record (or extension) aggregate. - * sem_ch6.adb (Analyze_Subprogram_Specification): Analyze - dimension of formals with default expressions in subprogram - specification. - * sem_ch8.adb (Analyze_Expanded_Name): Analyze dimension of - expanded names. - (Find_Selected_Component): Analyze dimension of selected component. - * sem_dim.adb: Several dimension error messages reformatting. - (Dimensions_Msg_Of): New flag Description_Needed in order to - differentiate two different sort of dimension error messages. - (Dim_Warning_For_Numeric_Literal): New routine. - (Exists): New routine. - (Move_Dimensions): Routine spec moved to spec file. - * sem_dim.ads (String_From_Numeric_Literal): New routine. - (Analyze_Dimension): Analyze dimension only when the - node comes from source. Dimension analysis for expanded names added. - (Analyze_Dimension_Array_Aggregate): New routine. - (Analyze_Dimension_Call): New routine. - (Analyze_Dimension_Component_Declaration): Warning if default - expression is a numeric literal. - (Analyze_Dimension_Extension_Or_Record_Aggregate): New routine. - (Analyze_Dimension_Formals): New routine. - (Analyze_Dimension_Object_Declaration): Warning if default - expression is a numeric literal. - (Symbol_Of): Return either the dimension subtype symbol or the - dimension symbol built by From_Dim_To_Str_Of_Unit_Symbols. - * sem_dim.ads (Analyze_Dimension_Array_Aggregate): New routine. - (Analyze_Dimension_Call): New routine. - (Analyze_Dimension_Extension_Or_Record_Aggregate): New routine. - (Analyze_Dimension_Formals): New routine. - (Move_Dimensions): Moved from sem_dim.adb. - * s-dimmks.ads: Turn off the warnings for dimensioned object - declaration. Dimensioned subtypes sorted in alphabetical - order. New subtypes Area, Speed, Volume. - * s-dmotpr.ads: Turn off the warnings for dimensioned object - declaration. - * sem_res.adb (Resolve_Call): Analyze dimension for calls. - -2012-10-01 Thomas Quinot - - * Make-generated.in: Minor cleanup of all targets: use - MOVE_IF_CHANGE to put generated files in place, to avoid useless - recompilations. - -2012-10-01 Javier Miranda - - * exp_disp.adb (Expand_Dispatching_Call): For functions returning - interface types add an implicit conversion to the returned object - to force the displacement of the pointer to the returned object - to reference the corresponding secondary dispatch table. This - is needed to handle well combined calls involving secondary - dispatch tables (for example Obj.Prim1.Prim2). - * exp_ch4.adb (Expand_Allocator_Expression): Declare internal - access type as access to constant or access to variable depending - on the context. Found working in this ticket. - -2012-10-01 Ed Schonberg - - * checks.adb (Apply_Predicate_Check): Do not apply check to - actual of predicate checking procedure, to prevent infinite - recursion. - -2012-10-01 Arnaud Charlet - - * gcc-interface/Make-lang.in: Update dependencies. - (GCC_LINK): Add -static-libstdc++. - -2012-10-01 Arnaud Charlet - - * a-catizo.adb, a-stwiun.adb, a-cdlili.adb, a-cihama.adb, a-direct.adb, - a-coinve.adb, a-calend.adb, a-ciorse.adb, a-coorma.adb, a-cfdlli.adb, - a-stzunb-shared.adb, a-cfhase.adb, bindgen.adb, ceinfo.adb, a-tags.adb, - einfo.adb, checks.adb, eval_fat.adb, a-cborma.adb, a-stwifi.adb, - a-tifiio.adb, a-textio.adb, a-cidlli.adb, a-strunb-shared.adb, - a-cimutr.adb, a-calcon.adb, a-exexpr-gcc.adb, a-ciormu.adb, - a-stzunb.adb, a-stzsea.adb, a-ngelfu.adb, a-stzfix.adb, - a-cihase.adb, a-cohama.adb, a-exetim-posix.adb, a-dirval-vms.adb, - a-caldel-vms.adb, a-coorse.adb, errout.adb, - a-except.adb, butil.adb, a-dirval-mingw.adb, a-cforma.adb, - a-except-2005.adb, a-wtedit.adb, cstand.adb, a-stwiun-shared.adb, - a-cbhama.adb, a-direio.adb, clean.adb, a-cborse.adb, back_end.adb, - binde.adb, a-exexda.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb, - a-coormu.adb, a-teioed.adb, a-convec.adb, a-wtenau.adb, exp_aggr.adb, - a-ztedit.adb, a-cohase.adb, a-exetim-mingw.adb, bcheck.adb, - a-dynpri.adb, a-cfhama.adb, a-calfor.adb, a-cbdlli.adb, - a-crdlli.adb, a-cbmutr.adb, a-sequio.adb, a-ngcoar.adb, a-cforse.adb, - a-strunb.adb, a-calend-vms.adb, a-clrefi.adb, a-cofove.adb, - a-ztenau.adb, a-strfix.adb, a-cbhase.adb, a-stzsup.adb: Minor - reformatting. - -2012-10-01 Vincent Pucci - - PR ada/54614 - * s-gearop.adb (Vector_Matrix_Product): Fix dimension check and index - of Left in S evaluation. - -2012-10-01 Javier Miranda - - * sem_ch3.adb (Analyze_Declarations): Avoid - premature freezing caused by the internally generated subprogram - _postconditions. - * checks.adb (Expr_Known_Valid): Float literals are assumed to be valid - in VM targets. - -2012-10-01 Thomas Quinot - - * sinput.ads, sinput.adb, sinput-l.adb sinput-c.adb (Sinput): New - Instances table, tracking all generic instantiations. Source file - attribute Instance replaces previous Instantiation attribute with an - index into the Instances table. - (Iterate_On_Instances): New generic procedure. - (Create_Instantiation_Source): Record instantiations in Instances. - (Tree_Read, Tree_Write): Read/write the instance table. - * scils.ads, scos.adb (SCO_Instance_Table): New table, contains - information copied from Sinput.Instance_Table, but self-contained - within the SCO data structures. - * par_sco.ads, par_sco.adb (To_Source_Location): Move to library level. - (Record_Instance): New subprogram, used by... - (Populate_SCO_Instance_Table): New subprogram to fill - the SCO instance table from the Sinput one (called by SCO_Output). - * opt.ads (Generate_SCO_Instance_Table): New option. - * put_scos.adb (Write_Instance_Table): New subprogram, used by... - (Put_SCOs): Dump the instance table at the end of SCO information - if requested. - * get_scos.adb (Get_SCOs): Read SCO_Instance_Table. - * types.h: Add declaration for Instance_Id. - * back_end.adb (Call_Back_End): Pass instance ids in source file - information table. - (Scan_Back_End_Switches): -fdebug-instances sets - Opt.Generate_SCO_Instance_Table. - * gcc-interface/gigi.h: File_Info_Type includes instance id. - * gcc-interface/trans.c: Under -fdebug-instances, set instance - id in line map from same in file info. - -2012-10-01 Thomas Quinot - - * sem_elab.adb: Minor reformatting - (Check_Elab_Call): Minor fix to debugging code - (add special circuit for the valid case where a 'Access attribute - reference is passed to Check_Elab_Call). - -2012-10-01 Thomas Quinot - - * exp_ch3.adb: Minor reformatting. - -2012-10-01 Ed Schonberg - - * exp_ch3.ads (Build_Array_Invariant_Proc): moved to body. - * exp_ch3.adb (Build_Array_Invariant_Proc, - Build_Record_Invariant_Proc): transform into functions. - (Insert_Component_Invariant_Checks): for composite types that have - components with specified invariants, build a checking procedure, - and make into the invariant procedure of the composite type, - or incorporate it into the user- defined invariant procedure if - one has been created. - * sem_ch3.adb (Array_Type_Declaration): Checking for invariants - on the component type is defered to the expander. - -2012-10-01 Thomas Quinot - - * xsnamest.adb, namet.h, sem_ch10.adb, s-oscons-tmplt.c, - xoscons.adb: Minor reformatting. - -2012-10-01 Hristian Kirtchev - - * checks.adb (Apply_Parameter_Aliasing_And_Validity_Checks): - Do not process subprogram renaminds because a) those cannot - have PPC pragmas b) the renamed entity already has the PPCs. - (Build_PPC_Pragma): Prepend a PPC pragma for consistency with - Process_PPCs. - * sem_ch6.adb (Last_Implicit_Declaration): Removed. - (Process_PPCs): Insert a post condition body at the start of the - declarative region of the related subprogram. This way the body - will not freeze anything it shouldn't. - -2012-10-01 Robert Dewar - - * freeze.adb, sem_ch6.adb, opt.ads, sem_ch13.adb, - exp_ch3.adb: Minor reformatting. - -2012-10-01 Hristian Kirtchev - - * checks.adb (Build_PPC_Pragma): A PPC pragma can now be properly - associated with a subprogram body. - -2012-10-01 Ed Schonberg - - * aspects.ads: Type_Invariant'class is a valid aspect. - * sem_ch6.adb (Is_Public_Subprogram_For): with the exception of - initialization procedures, subprograms that do not come from - source are not public for the purpose of invariant checking. - * sem_ch13.adb (Build_Invariant_Procedure): Handle properly the - case of a non-private type in a package without a private part, - when the type inherits invariants from its ancestor. - -2012-10-01 Ed Schonberg - - * exp_ch3.adb (Build_Record_Invariant_Proc): new procedure to - generate a checking procedure for record types that may have - components whose types have type invariants declared. - -2012-10-01 Vincent Pucci - - * system-solaris-sparcv9.ads, system-mingw.ads, system-vms_64.ads: Flag - Support_Atomic_Primitives set to True. - -2012-10-01 Robert Dewar - - * impunit.adb: Ada.Locales is a language defined unit. - -2012-10-01 Hristian Kirtchev - - * checks.adb (Apply_Parameter_Aliasing_Checks): Removed. - (Apply_Parameter_Aliasing_And_Validity_Checks): New routine. - (Apply_Parameter_Validity_Checks): Removed. - * checks.ads (Apply_Parameter_Aliasing_Checks): Removed. - (Apply_Parameter_Aliasing_And_Validity_Checks): New routine. - (Apply_Parameter_Validity_Checks): Removed. - * exp_ch6.adb (Expand_Call): Remove the generation of parameter - aliasing checks. - * freeze.adb: Remove with and use clauses for Validsw. - (Freeze_Entity): Update the guard and generation of aliasing - and scalar initialization checks for subprogram parameters. - * opt.ads: Add new flags Check_Aliasing_Of_Parameters and - Check_Validity_Of_Parameters along with comments on usage. - * sem_attr.adb (Analyze_Attribute): Pragma Overlaps_Storage is - no longer an Ada 2012 feature. - * sem_ch4.adb: Remove with and use clauses for Checks and Validsw. - (Analyze_Call): Remove the generation of aliasing checks for - subprogram parameters. - * sem_ch13.adb: Remove with and use clauses for Validsw. - (Analyze_Aspect_Specifications): Remove the generation of scalar - initialization checks. - * switch-c.adb (Scan_Front_End_Switches): Add processing for - -gnateA and -gnateV. - * usage.adb (Usage): Add information on switches -gnateA and - -gnateV. Remove information on validity switches 'l', 'L', - 'v' and 'V'. - * validsw.adb (Reset_Validity_Check_Options): Remove the - reset of flags Validity_Check_Non_Overlapping_Params - and Validity_Check_Valid_Scalars_On_Params. - (Save_Validity_Check_Options): Remove the processing - for flags Validity_Check_Non_Overlapping_Params - and Validity_Check_Valid_Scalars_On_Params. - (Set_Validity_Check_Options): Remove the processing - for flags Validity_Check_Non_Overlapping_Params and - Validity_Check_Valid_Scalars_On_Params. - * validsw.ads: Remove flags Validity_Check_Non_Overlapping_Params - and Validity_Check_Valid_Scalars_On_Params along with their - comments on usage. - -2012-10-01 Yannick Moy - - * sem_ch13.adb (Add_Invariants): Analyze the invariant expression - as an assertion expression. - * sem_ch3.adb / sem_ch3.ads (Preanalyze_Assert_Expression): - New procedure that wraps a call to Preanalyze_Spec_Expression - for assertion expressions, so that In_Assertion_Expr can be - properly adjusted. - * sem_prag.adb (Analyze_PPC_In_Decl_Part - Check_Precondition_Postcondition Preanalyze_CTC_Args): Call the - new Preanalyze_Assert_Expression. - -2012-10-01 Robert Dewar - - * checks.ads: Minor reformatting. - -2012-10-01 Yannick Moy - - * types.ads, sem_prag.adb, sem.ads: Correct minor typos in comments. - -2012-10-01 Vincent Celier - - * make.adb (Scan_Make_Arg): Only test for "vP" of the option - includes at least 3 characters. - * gnatcmd.adb (GNATCmd): Ditto. - -2012-10-01 Eric Botcazou - - * exp_ch7.adb, sinfo.ads: Add comments. - -2012-10-01 Robert Dewar - - * checks.adb: Remove reference to Enable_Overflow_Checks Use - Suppress_Options rather than Scope_Suppress. - * gnat1drv.adb (Adjust_Global_Switches): Handle new overflow - settings (Adjust_Global_Switches): Initialize Scope_Suppress - from Suppress_Options. - * opt.adb: Remove Enable_Overflow_Checks (use Suppress_Options - instead). - * opt.ads: Remove Overflow_Checks_Unsuppressed (not used) - Remove Enable_Overflow_Checks (use Suppress_Options instead) - Suppress_Options is now current setting (replaces Scope_Suppress). - * osint.adb (Initialize): Deal with initializing overflow - checking. - * par-prag.adb: Add dummy entry for pragma Overflow_Checks. - * sem.adb (Semantics): Save and restore In_Assertion_Expr Use - Suppress_Options instead of Scope_Suppress. - * sem.ads (In_Assertion_Expr): New flag (Scope_Suppress): - Removed, use Suppress_Options instead. - * sem_eval.adb (Compile_Time_Compare): Return Unknown in - preanalysis mode. - * sem_prag.adb (Process_Suppress_Unsuppress): Setting of - Overflow_Checks_Unsuppressed removed (not used anywhere!) - (Analyze_Pragma, case Check): Set In_Assertion_Expression - (Analyze_Pragma, case Overflow_Checks): Implement new pragma - * snames.ads-tmpl: Add names needed for handling pragma - Overflow_Checks - * switch-c.adb (Scan_Front_End_Switches) Handle -gnato? and - -gnato?? where ? is 0-3 - * types.ads: Updates and fixes to comment on Suppress_Record. - -2012-10-01 Vincent Celier - - * prj-part.adb (Parse): Remove incorrect comment about checking - imported non extending projects from and "extending all" - one. Minor correction. - -2012-10-01 Robert Dewar - - * make.adb, exp_ch3.adb: Minor reformatting. - -2012-10-01 Hristian Kirtchev - - * validsw.adb (Save_Validity_Check_Options): Do not set - Validity_Check_Non_Overlapping_Params and - Validity_Check_Valid_Scalars_On_Params when -gnatVa is present - because the related checks are deemed too aggressive. - -2012-10-01 Ed Schonberg - - * sem_util.ads sem_util.adb (Check_Internal_Protected_Use): - reject use of protected procedure or entry within the body of - a protected function of the same protected type, when usage is - a call, an actual in an instantiation, a or prefix of 'Access. - * sem_ch8.adb (Analyze_Subprogram_Renaming): Verify that target - object in renaming of protected procedure is a variable, and - apply Check_Internal_Protected_Use. - * sem_res.adb (Analyze_Call, Analyze_Entry_Call): apply - Check_Internal_Protected_Use rather than on-line code. - * sem_attr.adb (Analyze_Access_Attribute): Verify that target - object in accsss to protected procedure is a variable, and apply - Check_Internal_Protected_Use. - -2012-10-01 Gary Dismukes - - * sem_ch4.adb (Find_Equality_Types.Try_One_Interp): Exclude the - predefined interpretation from consideration if it's for a "/=" - operator of a tagged type. This will allow Analyze_Equality_Op to - rewrite the "/=" as a logical negation of a call to the appropriate - dispatching equality function. This needs to be done during - analysis rather than expansion for the benefit of ASIS, which - otherwise gets the unresolved N_Op_Ne operator from Standard. - -2012-10-01 Thomas Quinot - - * gnatcmd.adb, make.adb (Scan_Make_Arg, Inspect_Switches): Recognize - and reject an invalid parameter passed to -vP. - -2012-10-01 Yannick Moy - - * sem_warn.adb (Check_Infinite_Loop_Warning/Test_Ref): Improve - the detection of modifications to the loop variable by noting - that, if the type of variable is elementary and the condition - does not contain a function call, then the condition cannot be - modified by side-effects from a procedure call. - -2012-10-01 Robert Dewar - - * checks.adb: Add comments. - -2012-10-01 Javier Miranda - - * exp_ch3.adb (Expand_N_Object_Declaration): Improve condition catching - never-ending recursion. The previous condition erroneously disabled - silently the expansion of the class-wide interface object - initialization in cases not involving the recursion. - -2012-10-01 Thomas Quinot - - * make.adb: Minor documentation fix: error messages are sent to - stderr, not stdout. - -2012-10-01 Hristian Kirtchev - - * checks.ads, checks.adb (Apply_Parameter_Aliasing_Checks): New routine. - (Apply_Parameter_Validity_Checks): New routines. - * exp_ch6.adb (Expand_Call): Add aliasing checks to detect - overlapping objects. - * freeze.adb: Add with and use clauses for Checks and Validsw. - (Freeze_Entity): Add checks to detect proper initialization - of scalars. - * sem_ch4.adb: Add with and use clauses for Checks and Validsw. - (Analyze_Call): Add aliasing checks to detect overlapping objects. - * sem_ch13.adb: Add with and use clauses for Validsw. - (Analyze_Aspect_Specifications): Add checks to detect proper - initialization of scalars. - * sem_prag.adb (Chain_PPC): Correct the extraction of the - subprogram name. - * sem_util.adb (Is_Object_Reference): Attribute 'Result now - produces an object. - * usage.adb (Usage): Add usage lines for validity switches 'l', - 'L', 'v' and 'V'. - * validsw.adb (Reset_Validity_Check_Options): Include - processing for flags Validity_Check_Non_Overlapping_Params and - Validity_Check_Valid_Scalars_On_Params. Code reformatting. - (Save_Validity_Check_Options): Include processing - for flags Validity_Check_Non_Overlapping_Params - and Validity_Check_Valid_Scalars_On_Params. - (Set_Validity_Check_Options): Add processing for validity switches - 'a', 'l', 'L', 'n', 'v' and 'V'. Code reformatting. - * validsw.ads: Add new flags Validity_Check_Non_Overlapping_Params - and Validity_Check_Valid_Scalars_On_Params along with comments - on usage. - -2012-10-01 Thomas Quinot - - * namet.ads, xsnamest.adb, prj-env.adb, sem_warn.adb, - errout.ads: Minor reformatting. - * prj-part.adb: Add comment. - -2012-10-01 Robert Dewar - - * sinfo.ads, exp_aggr.adb, sem_ch13.adb: Minor reformatting. - -2012-10-01 Ed Schonberg - - * sem_aggr.adb (Resolve_Array_Aggregate): Handle properly - component associations given by subtypes that have static - predicates. Improve error message for overlapping ranges in - array aggregates. - -2012-10-01 Pascal Obry - - * snames.ads-tmpl (Name_Link_Lib_Subdir): New constant. - -2012-10-01 Ed Schonberg - - * sem_ch9.adb (Analyze_Requeue): The target of a requeue - statement on a protected entry must be a variable. This is part - of AI05-0225. - -2012-09-26 Ian Lance Taylor - - * gcc-interface/Makefile.in (LIBBACKTRACE): New variable. - (LIBS): Add $(LIBBACKTRACE). - (LIBDEPS): Add $(LIBBACKTRACE). - (TOOLS_LIBS): Add ../../../libbacktrace/.libs/libbacktrace.a. - -2012-09-10 Diego Novillo - - * gcc-interface/decl.c (build_subst_list): Adjust call to VEC_safe_push. - (build_variant_list): Likewise. - * gcc-interface/utils.c (convert): Adjust calls to VEC_quick_push. - -2012-09-07 Eric Botcazou - - * gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using - size_type_node instead of sizetype. - -2012-08-19 Eric Botcazou - - * layout.adb (Set_Elem_Alignment): Cap the alignment of access types - to that of a regular access type for non-strict-alignment platforms. - * gcc-interface/utils.c (finish_fat_pointer_type): Do not set the - alignment for non-strict-alignment platforms. - -2012-08-19 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Use proper - dummy type for the temporary COMPONENT_REF built for a derived tagged - type with discriminant. - -2012-08-14 Diego Novillo - - Merge from cxx-conversion branch. Re-implement VEC in C++. - - * gcc-interface/trans.c (finalize_nrv_unc_r): Adjust VEC_index usage. - * gcc-interface/utils.c (convert): Likewise. - (remove_conversions): Likewise. - * gcc-interface/utils2.c (compare_fat_pointers): Likewise. - (build_unary_op): Likewise. - (gnat_stabilize_reference): Likewise. - -2012-08-06 Jose Ruiz - - * gcc-interface/Makefile.in: Add support for 32-bit VxWorks for SPARC - in kernel mode. - -2012-08-06 Arnaud Charlet - - * prj-attr.adb (Register_New_Package): Add missing blank. - -2012-08-06 Ed Schonberg - - * exp_aggr.adb (Is_Two_Dim_Packed_Array): New predicate, - used when computing maximum size allowable to construct static - aggregate. - -2012-08-06 Vincent Pucci - - * freeze.adb (Freeze_Entity): Inherit_Aspects_At_Freeze_Point - calls added for derived types and subtypes. - * sem_aux.adb, sem_aux.ads (Get_Rep_Item, Get_Rep_Pragma, - Has_Rep_Pragma): New routines. - * sem_ch13.ads (Inherit_Aspects_At_Freeze_Point): New routine. - * sem_ch13.adb (Analyze_Aspect_Specifications): Error message - for aspect Lock_Free fixed. - (Inherits_Aspects_At_Freeze_Point): New routine. - * sem_ch3.adb: Several flag settings removed since inheritance - of aspects must be performed at freeze point. - -2012-08-06 Thomas Quinot - - * s-oscons-tmplt.c: Fix s-oscons.ads formatting on VxWorks. - -2012-08-06 Vincent Pucci - - * sem_dim.adb (Analyze_Dimension_Binary_Op): Issue an error message - for unknown exponent at compile-time. - -2012-08-06 Gary Dismukes - - * sem_eval.ads (Compile_Time_Known_Value_Or_Aggr): Enhance - comment to make it clear that the aggregate's evaluation might - still involve run-time checks even though the aggregate is - considered known at compile time. - * sinfo.ads (Compile_Time_Known_Aggregate): Correct comment to - refer to Exp_Aggr instead of Sem_Aggr. - -2012-08-06 Robert Dewar - - * xoscons.adb: Minor code reorganization (remove unused variable - E at line 331). - * g-sercom.ads, exp_attr.adb: Minor reformatting. - * sinfo.adb, sinfo.ads: Minor cleanup, remove unused flag - Static_Processing_OK. - -2012-08-06 Ed Schonberg - - * sem_ch3.adb (Build_Derived_Concurrent_Type): Copy discriminant - constraint when building a constrained subtype, to prevent - undesirable tree sharing betweeb geberated subtype and derived - type definition. - -2012-08-06 Thomas Quinot - - * g-sercom-mingw.adb, s-oscons-tmplt.c: Add missing constants - on Windows. - -2012-08-06 Sergey Rybin - - * tree_io.ads: Update ASIS_Version_Number because of the tree fix - for discriminant constraints for concurrent types. - -2012-08-06 Thomas Quinot - - * sem_ch4.adb: Minor reformatting. - -2012-08-06 Thomas Quinot - - * s-oscons-tmplt.c, xoscons.adb: Per the Single UNIX Specification, - types cc_t, speed_t, and tcflag_t defined in all are - unsigned types. Add required special handling to have their correct - unsigned values in s-oscons.ads. - -2012-08-06 Thomas Quinot - - * par-ch13.adb: Minor reformatting. - -2012-08-06 Thomas Quinot - - * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb - (Set): Add Local and Flow_Control settings. - -2012-08-06 Ed Schonberg - - * exp_attr.adb: Suppress saving of 'Old if assertions are not - enabled. - -2012-08-06 Yannick Moy - - * sem_ch4.adb (Analyze_Selected_Component): Issue an error in - Alfa mode for component not present. - -2012-08-06 Thomas Quinot - - * exp_ch7.adb (Insert_Actions_In_Scope_Around): Do not - use a renaming of Scope_Stack.Table (Scope_Stack.Last), as - Process_Transient_Object may introduce new scopes and cause - Scope_Stack.Table to be reallocated. - -2012-08-06 Robert Dewar - - * exp_util.adb, switch-c.adb, inline.ads, sem_ch10.adb, types.ads, - checks.adb, sem_prag.adb, sem.adb, sem.ads, sem_res.adb, sem_attr.adb, - gnat1drv.adb, exp_ch4.adb, exp_ch6.adb, opt.ads, osint.adb: Implement - extended overflow checks (step 1). - (Overflow_Check_Type, Suppress_Record, Suppress_All): New types. - (Suppress_Array): Extended to include switches to control extended - overflow checking (and renamed to Suppress_Record). - Update all uses of Suppress_Array. - -2012-08-06 Thomas Quinot - - * makeutl.ads: Minor documentation fix. - -2012-08-06 Thomas Quinot - - * exp_ch7.adb: Minor reformatting. - -2012-08-06 Geert Bosch - - * a-ngelfu.adb: Change obsolete comment that this is a non-strict - implementation. - -2012-08-06 Steve Baird - - * exp_ch7.adb (Build_Finalizer.Process_Object_Declaration): If - CodePeer_Mode = True then omit exception handlers for finalization calls - -2012-08-06 Robert Dewar - - * exp_aggr.adb: Minor reformatting. - -2012-08-06 Robert Dewar - - * sem_ch6.adb: Remove useless flag Body_Deleted. - -2012-08-06 Thomas Quinot - - * sinfo.ads (End_Span): Change default from No_Uint to Uint_0, - as this is what all usage occurrences of this attribute are - expecting. - * uintp.adb (UI_To_Int): Add assertion to guard against calling - with No_Uint. - -2012-08-06 Vincent Pucci - - PR ada/54125 - * exp_attr.adb (Expand_N_Attribute_Reference): Expand new - Atomic_Always_Lock_Free attribute. - * sem_attr.adb (Analyze_Attribute): Analyze new - Atomic_Always_Lock_Free attribute. - (Eval_Attribute): Nothing to do with new Atomic_Always_Lock_Free - attribute. - * sem_ch9.adb (Allows_Lock_Free_Implementation): - Support_Atomic_Primitives check replaces previous erroneous - size check. - * sem_util.adb, sem_util.ads (Support_Atomic_Primitives): - New routine. - * snames.ads-tmpl: New name Name_Atomic_Always_Lock_Free and - new attribute Attribute_Atomic_Always_Lock_Free defined. - * s-atopri.adb: Support_Atomic_Primitives checks replaced by - Atomic_Always_Lock_Free queries. - * system-aix64.ads, system-aix.ads, system-darwin-ppc.ads, - system-hpux.ads, system-linux-alpha.ads, system-linux-hppa.ads, - system-linux-ppc.ads, system-linux-s390.ads, - system-linux-s390x.ads, system-linux-sh4.ads, - system-linux-sparc.ads, system-lynxos178-ppc.ads, - system-lynxos-ppc.ads, system-mingw.ads, - system-vxworks-arm.ads, system-solaris-sparc.ads, - system-solaris-sparcv9.ads, system-vms_64.ads, - system-vxworks-m68k.ads, system-vxworks-mips.ads, - system-vxworks-ppc.ads, system-vxworks-sparcv9.ads: Flag - Support_Atomic_Primitives removed. - -2012-08-06 Hristian Kirtchev - - * sem_mech.adb (Set_Mechanisms): OUT and IN OUT parameters are - now unconditionally passed by reference. IN parameters subject - to convention C_Pass_By_Copy are passed by copy, otherwise they - are passed by reference. - -2012-08-06 Ed Schonberg - - * sem_ch3.adb (Analyze_Object_Declaration): According to - AI95-0303, protected objects with interrupt handlers can be - declared in nested scopes. This is a binding interpretation, - and thus applies to all versions of the compiler. - -2012-08-06 Robert Dewar - - * frontend.adb, exp_aggr.adb: Minor reformatting. - -2012-08-06 Thomas Quinot - - * par-endh.adb: Minor reformatting. - -2012-08-06 Hristian Kirtchev - - * exp_ch7.adb (Process_Transient_Objects): Remove obsolete loop - processing related to array initialization. The expansion of - loops already contains a mechanism to detect controlled objects - generated by expansion and introduce a block around the loop - statements for finalization purposes. - -2012-08-06 Vincent Pucci - - * sem_ch13.adb: Current scope must be within - or same as the scope of the entity while analysing aspect - specifications at freeze point. - -2012-08-06 Thomas Quinot - - * par_sco.adb: Add note about dubious SCO for TERMINATE - alternative. - * sem_ch8.adb, exp_ch11.adb: Minor reformatting. - -2012-08-06 Ed Schonberg - - * exp_aggr.adb (Two_Dim_Packed_Array_Handled): New procedure to - transform an aggregate for a packed two-dimensional array into - a one-dimensional array of constant values, in order to avoid - the generation of component-by-component assignments. - -2012-08-06 Thomas Quinot - - * frontend.adb: Do not attempt to process deferred configuration - pragmas if the main unit failed to load, to avoid cascaded - inconsistencies that can lead to a compiler crash. - -2012-08-06 Vincent Pucci - - * s-atopri.adb: Minor reformatting. - -2012-08-06 Arnaud Charlet - - * gnat-style.texi: Clarify that all subprograms should be - documented. Minor rewording. - -2012-08-06 Robert Dewar - - * aspects.ads: Define Aspect_Id_Exclude_No_Aspect. - * par-ch13.adb, restrict.adb: Use Aspect_Id_Exclude_No_Aspect to - simplify code. - -2012-08-06 Yannick Moy - - * gnat-style.texi: Update style guide for declarations. - -2012-08-06 Yannick Moy - - * sem_attr.adb (Analyze_Attribute): In the case for 'Old, - skip a special expansion which is not needed in Alfa mode. - -2012-08-06 Yannick Moy - - * sem_ch5.adb (Analyze_Iterator_Specification): Do not perform - an expansion of the iterator in Alfa mode. - -2012-08-06 Robert Dewar - - * s-oscons-tmplt.c, sem_ch9.adb, osint.adb: Minor reformatting. - -2012-08-06 Hristian Kirtchev - - * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Remove obsolete - Alfa-specific guard. The code is a leftover from an early - implementation of iterators which is no longer in use. - -2012-08-06 Vincent Celier - - * par-ch13.adb (Get_Aspect_Specifications): Do not consider - No_Aspect when checking for a mispelled aspect. - -2012-08-06 Robert Dewar - - * s-htable.adb: Minor reformatting. - -2012-08-06 Thomas Quinot - - * s-oscons-tmplt.c, g-socket.adb (System.OS_Constants.Target_OS): - Suppress warnings so that we don't have to do it at each usage. - -2012-08-06 Vincent Pucci - - * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): - Use of Known_Static_Esize instead of Known_Esize and - Known_Static_RM_Size instead of Known_RM_Size in order to - properly call UI_To_Int. Don't check the size of the component - type in case of generic. - * sem_ch9.adb (Allows_Lock_Free_Implementation): - Use of Known_Static_Esize instead of Known_Esize and - Known_Static_RM_Size instead of Known_RM_Size in order to properly - call UI_To_Int. Don't check the size of the component type in - case of generic. - -2012-08-06 Hristian Kirtchev - - * checks.adb (Discrete_Range_Cond): Do not try to optimize on - the assumption that the type of an expression can always fit in - the target type of a conversion. - -2012-07-30 Robert Dewar - - * bindusg.adb: Clarify file in -A lines. - -2012-07-30 Robert Dewar - - * freeze.adb: Minor reformatting. - -2012-07-30 Robert Dewar - - * gnatcmd.adb, makeutl.adb, makeutl.ads: Minor code reorganization. - -2012-07-30 Vincent Pucci - - * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): Minor - reformatting. - * sem_ch9.adb (Allows_Lock_Free_Implementation): Minor reformatting. - Capture the correct error message in case of a quantified expression. - -2012-07-30 Thomas Quinot - - * g-socket.adb (Get_Socket_Option, Set_Socket_Option): On Windows, the - value is a milliseconds count in a DWORD, not a struct timeval. - -2012-07-30 Hristian Kirtchev - - * sem_ch12.adb (Earlier): Add local variables T1 and T2. Minor code - refactoring. - -2012-07-30 Thomas Quinot - - * gnatcmd.adb, make.adb, makeutl.adb, makeutl.ads - (Test_If_Relative_Path): Rename to Ensure_Absolute_Path to better - reflect what this subprogram does. Rename argument Including_L_Switch - to For_Gnatbind, and also exempt -A from rewriting. - * bindusg.adb: Document optional =file argument to gnatbind -A. - -2012-07-30 Ed Schonberg - - * freeze.adb (Freeze_Entity): Do no apply restriction check on - storage pools to access to subprogram types. - -2012-07-30 Robert Dewar - - * par_sco.adb, a-cihama.adb, a-coinve.adb, exp_ch7.adb, a-ciorse.adb, - exp_ch9.adb, sem_dim.adb, par-ch13.adb, sem_ch9.adb, a-cidlli.adb, - a-cimutr.adb, freeze.adb, a-ciormu.adb, sem_res.adb, sem_attr.adb, - a-cihase.adb, exp_ch4.adb, sem_ch4.adb, a-ciorma.adb, - s-tasinf-linux.ads, sem_ch13.adb, a-coinho.adb: Minor reformatting. - Add comments. - -2012-07-30 Vincent Pucci - - * sem_ch9.adb (Allows_Lock_Free_Implementation): Restrict implicit - dereferences of access values. - -2012-07-27 Iain Sandoe - - * system-darwin-ppc64.ads: Add Support_Atomic_Primitives, set to True. - -2012-07-25 Eric Botcazou - - * gcc-interface/utils2.c (gnat_stabilize_reference) : Do - not stabilize operand #1 and #2. - -2012-07-23 Tristan Gingold - - * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Use - End_Label sloc when possible for sloc of the TRY_CATCH_EXPR node. - -2012-07-23 Olivier Hainque - - * gcc-interface/Makefile.in: Adjust processing of Linker_Options for - VxWorks. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-07-23 Arnaud Charlet - - * s-tasinf-linux.ads: Fix typo. - -2012-07-23 Thomas Quinot - - * exp_ch7.adb, switch-m.adb, exp_ch3.adb, freeze.adb: Minor reformatting - -2012-07-23 Ed Schonberg - - * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): If original - loop carries an identifier, preserve it when rewriting it as a - standard loop to validate exit statements that may reference - that name in the body of the loop. - -2012-07-23 Thomas Quinot - - * exp_ch9.adb: Minor code cleanup. - -2012-07-23 Ed Schonberg - - * sem_ch4.adb (Analyze_Selected_Component): When checking for - potential ambiguities with class-wide operations on synchronized - types, attach the copied node properly to the tree, to prevent - errors during expansion. - -2012-07-23 Yannick Moy - - * sem_ch5.adb (Analyze_Loop_Statement): Make sure the loop body - is analyzed in Alfa mode. - -2012-07-23 Ed Schonberg - - * sem_res.adb: Adjust previous change. - -2012-07-23 Vincent Pucci - - * sem_ch9.adb (Allows_Lock_Free_Implementation): Flag - Lock_Free_Given renames previous flag Complain. Description - updated. Henceforth, catch every error messages issued by this - routine when Lock_Free_Given is True. Declaration restriction - updated: No non-elementary parameter instead (even in parameter) - New subprogram body restrictions implemented: No allocator, - no address, import or export rep items, no delay statement, - no goto statement, no quantified expression and no dereference - of access value. - -2012-07-23 Hristian Kirtchev - - * checks.adb (Determine_Range): Add local variable Btyp. Handle - the case where the base type of an enumeration subtype is - private. Replace all occurrences of Base_Type with Btyp. - * exp_attr.adb (Attribute_Valid): Handle the case where the - base type of an enumeration subtype is private. Replace all - occurrences of Base_Type with Btyp. - * sem_util.adb (Get_Enum_Lit_From_Pos): Add local variable - Btyp. Handle the case where the base type of an enumeration - subtype is private. Replace all occurrences of Base_Type with - Btyp. - -2012-07-23 Ed Schonberg - - * par-ch6.adb (P_Mode): in Ada 2005, a mode indicator can apply - to a formal object of an anonymous access type. - -2012-07-23 Ed Schonberg - - * sem_ch4.adb (Try_Container_Indexing): A user-defined indexing - aspect can have more than one index, e.g. to describe indexing - of a multidimensional object. - -2012-07-23 Hristian Kirtchev - - * exp_ch4.adb (Apply_Accessibility_Check): Reimplemented. The check is - now more complex and contains optional finalization part and mandatory - deallocation part. - -2012-07-23 Gary Dismukes - - * a-cihama.adb, a-cihase.adb, a-cimutr.adb, a-ciorma.adb, a-ciormu.adb, - a-ciorse.adb, a-coinho.adb, a-coinve.adb, a-cidlli.adb: Unsuppress - Accessibility_Check for Element_Type allocators. - -2012-07-23 Vasiliy Fofanov - - * projects.texi: Fix typo. - -2012-07-23 Ed Schonberg - - * sem_res.adb (Resolve_Explicit_Derenference): If prefix is - overloaded, remove those interpretations whose designated type - does not match the context, to avoid spurious ambiguities that - may be caused by the Ada 2012 conversion rule for anonymous - access types. - -2012-07-23 Vincent Celier - - * g-spitbo.adb (Substr (String)): Return full string and do not - raise exception when Start is 1 and Len is exactly the length - of the string parameter. - * g-spitbo.ads: Fix spelling error in the name of exception - Index_Error. - -2012-07-23 Ed Schonberg - - * par.adb: new subprogram Get_Aspect_Specifications. - * par-ch6.adb (P_Subprogram): handle subprogram bodies with aspect - specifications. - * par-ch13.adb (Get_Aspect_Specifications): extracted from - P_Aspect_Specifications. Collect aspect specifications in some - legal context, but do not attach them to any declaration. Used - when parsing subprogram declarations or bodies that include - aspect specifications. - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If aspects are - present, analyze them, or reject them if the subprogram as a - previous spec. - -2012-07-23 Vasiliy Fofanov - - * gnat_ugn.texi: Omit section on other platforms/runtimes support - in gnattest for vms version. - -2012-07-23 Ed Schonberg - - * sem_ch13.adb (Analyze_Aspect_Specifications): - Handle properly aspects that can be specified on a subprogram - body: CPU, Priority, and Interrupt_Priority. - -2012-07-23 Claire Dross - - * a-cfdlli.ads: Switch definition of Constant_Reference_Type - and Empty_List. - -2012-07-23 Thomas Quinot - - * par_sco.adb (Process_Decisions.Output_Header): For the guard - on an alternative in a SELECT statement, use the First_Sloc - of the guard expression (not its topmost sloc) as the decision - location, because this is what is referenced by dominance markers. - -2012-07-23 Hristian Kirtchev - - * exp_ch7.adb (Requires_Hooking): Examine the original expression - of an object declaration node because a function call that - returns on the secondary stack may have been rewritten into - something else. - -2012-07-23 Vincent Pucci - - * sem_dim.adb (Analyze_Dimension_Has_Etype): For identifier, propagate - dimension when entity is a non-dimensionless constant. - (Analyze_Dimension_Object_Declaration): Propagate - dimension from the expression to the entity when type is a - dimensioned type and object is a constant. - -2012-07-23 Ed Schonberg - - * sem_attr.adb (Analyze_Attribute, case 'Old): if the prefix - is not an entity name, expand at once so that code generated by - the expansion of the prefix is not generated before the constant - that captures the old value is properly inserted and analyzed. - -2012-07-23 Thomas Quinot - - * exp_ch9.adb (Ensure_Statement_Present): Mark generated NULL - statement as Comes_From_Source so that GIGI does not eliminate it. - -2012-07-23 Hristian Kirtchev - - * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Inst is now - a local variable. Retrieve the related instance when processing - a subprogram instantiation. Such instances appear as wrapper - packages. - -2012-07-23 Vincent Pucci - - * system-aix64.ads, system-aix.ads, system-darwin-ppc.ads, - system-hpux.ads, system-linux-alpha.ads, - system-linux-hppa.ads, system-linux-ppc.ads, - system-linux-s390.ads, system-linux-s390x.ads, - system-linux-sh4.ads, system-linux-sparc.ads, - system-lynxos-ppc.ads, system-mingw.ads, - system-solaris-sparc.ads, system-solaris-sparcv9.ads, - system-vms_64.ads, * system-vxworks-arm.ads, system-vxworks-m68k.ads, - system-vxworks-mips.ads, system-vxworks-ppc.ads, - system-vxworks-sparcv9.ads: Support_Atomic_Primitives set to False. - * system-darwin-x86.ads, system-darwin-x86_64.ads, - system-freebsd-x86.ads, system-freebsd-x86_64.ads, - system-hpux-ia64.ads, system-linux-ia64.ads, system-linux-x86.ads, - system-linux-x86_64.ads, system-lynxos-x86.ads, - system-mingw-x86_64.ads, system-solaris-x86.ads, - system-solaris-x86_64.ads, system-vms-ia64.ads, - system-vxworks-x86.ads: Support_Atomic_Primitives set to True. - * s-atopri.adb (Lock_Free_Read_X): New body. - (Lock_Free_Try_Write_X): Support_Atomic_Primitives check added. - (Lock_Free_Try_Write_64): New body. - * s-atopri.ads: New type uint. - (Sync_Compare_And_Swap_64): __sync_val_compare_and_swap_8 intrinsic - import. - (Lock_Free_Read_X): Body moved to s-atopri.adb. - (Lock_Free_Try_Write_64): Similar to other Lock_Free_Try_Write_X - routines. - * targparm.adb: New enumeration literal SAP - (Support_Atomic_Primitives) for type Targparm_Tags. New constant - SAP_Str. New component SAP_Str'Access for array Targparm_Str. - (Get_Target_Parameters): Parse Support_Atomic_Primitives_On_Target - flag. - * targparm.ads: New back-end code generation flag - Support_Atomic_Primitives_On_Target - -2012-07-23 Vincent Pucci - - * gnat_ugn.texi: Dimensionality checking documentation updated. - -2012-07-23 Ed Schonberg - - * sem_prag.adb (Make_Inline): If the pragma applies to a - subprogram renaming, set inline flags on both the renamed entity - and on the renaming, so that some ASIS queries can be handled - consistently in the absence of expansion. - -2012-07-23 Fedor Rybin - - * gnat_ugn.texi: Removing obsolete limitation of gnattest - to support only ada05. Updating gnattest support for other - platforms/run-times section to reflect the usage of taget - prefix in gnattest calls. Fixing missed obsolete --stub-default - option name. - -2012-07-23 Robert Dewar - - * uintp.adb: Minor reformatting. - -2012-07-23 Olivier Hainque - - * system-vxworks-ppc.ads: Replace the default - Linker_Options requesting crtbe by a commented out request for - -nostartfiles. - -2012-07-23 Vincent Celier - - * prj-nmsc.adb (Check_Naming): Do not get the exceptions names - in a virtual project. - -2012-07-23 Robert Dewar - - * layout.adb, sem_prag.adb, sem.ads, freeze.adb, - switch-m.adb, exp_disp.adb, system-vxworks-ppc.ads, exp_ch6.adb: Minor - reformatting. - -2012-07-23 Tristan Gingold - - * gcc-interface/trans.c: (Handled_Sequence_Of_Statements_to_gnu): Set - location on TRY_CATCH_EXPR. - -2012-07-19 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Try to ensure - that an object of CW type initialized to a value is sufficiently - aligned for this value. - -2012-07-19 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not - look up the REP part of the base type in advance. Deal with that of - the variant types. - (get_rep_part): Be prepared for record types with fields. - -2012-07-18 Eric Botcazou - - * gcc-interface/trans.c (stmt_group_may_fallthru): New function. - (gnat_to_gnu) : Use it to find out whether the - block needs to be translated. - -2012-07-17 Tristan Gingold - - * gnat_rm.texi: Adjust previous change. - -2012-07-17 Ed Schonberg - - * sem_prag.adb (Process_Import_Or_Interface): If the pragma - comes from an aspect, it applies to the corresponding entity - without further check. - -2012-07-17 Olivier Hainque - - * initialize.c (__gnat_initialize for VxWorks): Remove section with - call to __gnat_vxw_setup_for_eh. - * system-vxworks-ppc.ads: Add -auto-register to -crtbe, relying - on the VxWorks constructor mechanism for network loaded modules - by default. - -2012-07-17 Tristan Gingold - - * adaint.c: Minor reformatting. - -2012-07-17 Pascal Obry - - * s-regexp.adb (Adjust): Fix access violation in Adjust. - -2012-07-17 Ed Schonberg - - * freeze.adb (Freeze_Entity): Warn if an imported subprogram - has pre/post conditions, because these will not be enforced. - -2012-07-17 Eric Botcazou - - * exp_ch7.adb (Process_Transient_Objects): Put all the - finalization blocks and the final raise statement into a wrapper - block. - -2012-07-17 Vincent Pucci - - * s-atopri.adb (Lock_Free_Try_Write_X): Atomic_Compare_Exchange_X - replaced by Sync_Compare_And_Swap_X. - (Lock_Free_Try_Write_64): Removed. - * s-atopri.ads (Sync_Compare_And_Swap_X): Replaces previous - routine Atomic_Compare_Exchange_X. - (Lock_Free_Read_64): Renaming of Atomic_Load_64. - (Lock_Free_Try_Write_64): Renaming of Sync_Compare_And_Swap_64. - -2012-07-17 Vincent Celier - - * switch-m.adb (Normalize_Compiler_Switches): Recognize new - switches -gnatn1 and -gnatn2. - -2012-07-17 Vincent Pucci - - * gnat_ugn.texi: GNAT dimensionality checking - documentation updated with System.Dim.Mks modifications. - -2012-07-17 Ed Schonberg - - * exp_ch3.adb: sloc of array init_proc is sloc of type declaration. - -2012-07-17 Tristan Gingold - - * raise-gcc.c (get_call_site_action_for): Remove useless init - expression for p. - (get_action_description_for): Do not overwrite action->kind. - -2012-07-17 Hristian Kirtchev - - * exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr - and Conversion_Added. Add local constant Typ. - Retrieve the original attribute after the arithmetic check - machinery has modified the node. Add a conversion to the target - type when the prefix of attribute Max_Size_In_Storage_Elements - is a controlled type. - -2012-07-17 Gary Dismukes - - * exp_ch6.adb (Expand_Inlined_Call): For each actual parameter - of mode 'out' or 'in out' that denotes an entity, reset - Last_Assignment on the entity so that any assignments to the - corresponding formal in the inlining will not trigger spurious - warnings about overwriting assignments. - -2012-07-17 Robert Dewar - - * s-assert.ads: Fix comments to make it clear that this is used - for all assertions, not just pragma Assert. - -2012-07-17 Jerome Guitton - - * par_sco.ads: Minor typo fix. - -2012-07-17 Gary Dismukes - - * layout.adb (Layout_Type): In the case where the target is - AAMP, use 32 bits (a single pointer) rather than 64 bits for an - anonymous access-to-subprogram type if the type is library-level - and Is_Local_Anonymous_Access is True. - -2012-07-17 Jose Ruiz - - * s-tassta.adb, s-tarest.adb (Create_Task, Create_Restricted_Task, - Initialize): Add comments explaining that the CPU affinity value that - is passed to the run-time library can be either Unspecified_CPU, to - indicate that the task inherits the affinity of its activating task, - or a value in the range of CPU_Range but no greater than Number_Of_CPUs. - -2012-07-17 Javier Miranda - - * exp_disp.adb (Make_DT): Remove decoration of Ada.Tags entities. - (Make_Tags): Add decoration of Ada.Tags entities. - -2012-07-17 Ed Schonberg - - * sem_ch6.adb (Check_Statement_Sequence): When locating the - last significant statement in a sequence, ignore iserted nodes - that typically come from expansion of controlled operations. - -2012-07-17 Tristan Gingold - - * gnat_rm.texi: Document foreign exceptions. - -2012-07-17 Robert Dewar - - * sem_prag.adb, treepr.ads: Minor reformatting. - -2012-07-17 Robert Dewar - - * exp_ch9.adb: Minor code reorganization. - * exp_ch3.adb: Minor code improvement. - -2012-07-17 Tristan Gingold - - * seh_init.c (__gnat_SEH_error_handler): Not compiled anymore - on Windows 64 (+ SEH), as it is unused. - -2012-07-17 Javier Miranda - - * sem_prag.adb (CPP_Class): Transform obsolescent pragma CPP_Class into - CPP convention automatically. - -2012-07-16 Tristan Gingold - - * gcc-interface/decl.c (intrin_return_compatible_p): Map Address to - void *. - -2012-07-16 Thomas Quinot - - * exp_ch9.adb (Ensure_Statement_Present): New subprogram. - (Expand_N_Asynchronous_Select, - Expand_N_Selective_Accept.Process_Accept_Alternative, - Expand_N_Selective_Accept.Process_Delay_Alternative, - Expand_N_Timed_Entry_Call): For an alternative with no trailing - statements, introduce a null statement to carry the sloc of - the initial special statement (accept, delay, or entry call) - in the alternative, for coverage analysis purposes. - -2012-07-16 Thomas Quinot - - * sem_eval.adb (In_Subrange_Of): Fix typo in test for scalar - arguments. - -2012-07-16 Robert Dewar - - * a-exexpr.adb, freeze.adb, a-exexpr-gcc.adb, a-except-2005.adb, - sem_eval.adb, s-fileio.adb: Minor reformatting. - -2012-07-16 Javier Miranda - - * sem_prag.adb (Analyze_Pragma): Remove support for obsolescent - pragma CPP_Class. - * sem_ch13.adb (Analyze_Freeze_Entity): Add missing error on Ada - derivations of CPP types. Found updating the tests affected by - the removal of pragma CPP_Class. - -2012-07-16 Thomas Quinot - - * back_end.adb: Minor reformatting. - -2012-07-16 Thomas Quinot - - * exp_ch9.adb (Expand_N_Selective_Accept.Process_Accept_Alternative): - Remove junk test that was always true. For the case of no statements - following the ACCEPT, jump directly to End_Lab instead of - introducing an intermediate jump. - (Expand_N_Selective_Accept.Process_Delay_Alternative): Fix - predicate testing for presence of statements following the DELAY. - that was always true. For the case of no statements following - the ACCEPT, jump directly to End_Lab instead of introducing an - intermediate jump. - (Expand_N_Selective_Accept): Fix incorrect insertion point for - end label. - -2012-07-16 Thomas Quinot - - * gnat_rm.texi: Minor documentation improvements. - -2012-07-16 Yannick Moy - - * sem_ch13.adb (Analyze_Aspect_Specifications): Allow Pre - and Pre'Class aspects on the same declaration. - * sem_prag.adb (Chain_PPC): Allow Pre and Pre'Class aspects on the - same hierarchy of primitive operations. - -2012-07-16 Thomas Quinot - - * freeze.adb (Check_Component_Storage_Order): Do not reject a - nested composite with different scalar storage order if it is - byte aligned. - -2012-07-16 Thomas Quinot - - * gnat_rm.texi: Update documentation for Scalar_Storage_Order. - -2012-07-16 Tristan Gingold - - * a-exexpr.adb (Propagate_Exception): Adjust call to - Exception_Traces procedures. - * a-exexpr-gcc.adb (Setup_Current_Excep): Now a - function that returns an access to the Ada occurrence. - (Propagate_GCC_Exception): Adjust calls. - * raise.h (struct Exception_Occurrence): Declare. - * a-exextr.adb: Remove useless pragma. (Notify_Handled_Exception, - Notify_Unhandled_Exception) (Unhandled_Exception_Terminate): - Add Excep parameter. - * a-except.adb (Notify_Handled_Exception, - Notify_Unhandled_Exception) (Unhandled_Exception_Terminate): - Add Excep parameter. - (Process_Raise_Exception): Adjust calls. - * a-except-2005.adb (Notify_Handled_Exception, - Notify_Unhandled_Exception) (Unhandled_Exception_Terminate): Add - Excep parameter. - (Raise_Exception): Calls Raise_Exception_Always. - * raise-gcc.c (__gnat_setup_current_excep, - __gnat_notify_handled_exception) - (__gnat_notify_unhandled_exception): Adjust declarations. - (PERSONALITY_FUNCTION): Adjust calls. - (__gnat_personality_seh0): Remove warning. - -2012-07-16 Javier Miranda - - * sem_eval.adb (Test_Expression_Is_Foldable): Adding documentation. - (Eval_Relational_Op): Adding documentation. - -2012-07-16 Robert Dewar - - * freeze.adb, g-debpoo.adb, exp_ch3.adb: Minor reformatting. - -2012-07-16 Thomas Quinot - - * s-oscons-tmplt.c: Add definitions of E2BIG and EILSEQ. - -2012-07-16 Tristan Gingold - - * a-exexpr.adb (Propagate_Continue): New function replacing - Raise_Current_Excep. - (Allocate_Occurrence): New function. - (Propagate_Exception): Add Excep parameter, remove call to Call_Chain. - * a-exexpr-gcc.adb (GNAT_GCC_Exception): Occurrence component - is now aliased. - (To_GCC_Exception): Convert from Address. - (Allocate_Occurrence): Allocate an Unwind exception occurrence. - (Setup_Current_Excep): Fill the machine occurrence in case of - foreign exception. - (Propagate_Exception): Add Excep parameter, remove call to Call_Chain. - * a-except.adb (Set_Exception_C_Msg, Set_Exception_Msg): add - Excep parameter. - (Raise_Exception, Raise_Exception_Always, - Raise_Exception_No_Defer): Adjust calls to the above procedures. - (Raise_From_Signal_Handler, Raise_With_Location_And_Msg) - (Rcheck_PE_Finalize_Raised_Exception): Likewise. - * a-except-2005.adb (Set_Exception_C_Msg, Set_Exception_Msg): - add Excep parameter. - (Propagate_Exception): Likewise. - (Allocate_Occurrence): New function. - (Raise_Current_Excep): Removed. - (Complete_Occurrence): New function to save the call chain. - (Complete_And_Propagate_Occurrence): New procedure. - (Create_Occurrence_From_Signal_Handler): New function to build an - occurrence without propagating it. - (Create_Machine_Occurrence_From_Signal_Handler): Likewise, but - return the machine occurrence. - (Raise_From_Signal_Handler): Use Create_Occurrence_From_Signal_Handler. - (Raise_Exception, Raise_Exception_Always, Raise_Exception_No_Defer): - Adjust calls to the above procedures. Allocate the occurrence at - the beginning. - (Raise_With_Location_And_Msg, Raise_With_Msg) - (Rcheck_PE_Finalize_Raised_Exceptionm Reraise): Likewise. - (Reraise_Occurrence): Use Reraise_Occurrence_Always. - (Reraise_Occurrence_Always): Use Reraise_Occurrence_No_Defer. - (Reraise_Occurrence_No_Defer): Preserve machine occurrence. - (Save_Occurrence): Do not save machine occurrence. - * a-except-2005.ads (Exception_Occurrence): Add Machine_Occurrence - component. - (Null_Occurrence): Consider it. - * a-exexda.adb (Set_Exception_C_Msg, Set_Exception_Msg): add - Excep parameter. - -2012-07-16 Tristan Gingold - - * seh_init.c (__gnat_map_SEH): New function extracted from - __gnat_SEH_error_handler. - * raise-gcc.c: __gnat_personality_seh0: Directly transforms - Windows system exception into GCC one when possible, in order - to save stack room (particularly useful when Storage_Error will - be propagated). - -2012-07-16 Robert Dewar - - * a-direct.adb, g-dirope.adb: Minor reformatting. - -2012-07-16 Tristan Gingold - - * a-except.ads, a-except-2005.ads: Remove outdated comment. - -2012-07-16 Robert Dewar - - * sem_ch6.adb (Subprogram_Name_Greater): Fix algorithm to - conform to documentation. - -2012-07-16 Ed Schonberg - - * gnat1drv.adb (Check_Library_Items): Removed, no longer used. - -2012-07-16 Ed Schonberg - - * sem_ch3.adb (Array_Type_Declaration): if component type has - invariants, the array type itself requires an invariant procedure. - * exp_ch3.ads, exp_ch3.adb (Build_Array_Invariant_Proc): new - procedure, to build a checking procedure that applies the - invariant check on some type T to each component of an array - of T's. Code is similar to the construction of the init_proc - for an array, and handles multidimensional arrays by recursing - over successive dimensions. - -2012-07-16 Hristian Kirtchev - - * g-debpoo.adb: Revert previous change. - -2012-07-16 Hristian Kirtchev - - * freeze.adb (Freeze_Entity): Insert the itype reference to a - library-level class-wide subtype after the freeze node of the - equivalent record type. - -2012-07-16 Pascal Obry - - * s-crtl.ads (mkdir): New routine, support encoding. - * adaint.h (__gnat_mkdir): Update spec to pass encoding. - * mkdir.c (__gnat_mkdir): Add encoding parameter. - * a-direct.adb (Create_Directory): Use CRTL.mkdir, parse encoding - in form parameter. - * g-dirope.adb (Make_Dir): Update to pass encoding parameter. - -2012-07-16 Pascal Obry - - * adaint.c: Minor reformatting. - -2012-07-16 Steven Bosscher - - * gcc-interface/utils.c: Include timevar.h. - * Make-lang.in: Fix dependencies. - -2012-07-16 Vasiliy Fofanov - - * ug_words, vms_data.ads: Document VMS qualifiers for -gnatn1/2 - switches. - -2012-07-16 Bob Duff - - * sinfo.ads: Minor comment fix. - -2012-07-16 Bob Duff - - * sem_elab.adb (Within_Elaborate_All): Walk the with clauses to - find pragmas Elaborate_All that may be found in the transitive - closure of the dependences. - -2012-07-16 Robert Dewar - - * exp_pakd.adb, freeze.adb, sem_util.adb, vms_data.ads: Minor - reformatting. - -2012-07-12 Vasiliy Fofanov - - * vms_data.ads: Add VMS qualifiers for -gnatn1/2 switches. - -2012-07-12 Thomas Quinot - - * exp_ch5.adb, exp_pakd.adb, rtsfind.ads, freeze.adb, sem_util.adb, - sem_util.ads, exp_aggr.adb - (Exp_Aggr.Packed_Array_Aggregate_Handled): Simplify processing - for reverse storage order aggregate. - (Exp_Pakd.Byte_Swap): New utility routine used by... - (Exp_Pakd.Expand_Bit_Packed_Element_Set, - Expand_Packed_Element_Reference): For the case of a free-standing - packed array with reverse storage order, perform byte swapping. - (Rtsfind): Make new entities RE_Bswap_{16,32,64} available. - (Freeze.Check_Component_Storage_Order): New utility routine - to enforce legality rules for nested composite types whose - enclosing composite has an explicitly defined Scalar_Storage_Order - attribute. - (Sem_Util.In_Reverse_Storage_Order_Object): Renamed from - Sem_Util.In_Reverse_Storage_Order_Record, as SSO now applies to - array types as well. - (Exp_Ch5.Expand_Assign_Array): Remove now unnecessary kludge - for change of scalar storage order in assignments. The Lhs and - Rhs now always have the same scalar storage order. - -2012-07-12 Hristian Kirtchev - - * g-debpoo.adb (Allocate): Add local constant - No_Element. Initialize the allocated memory chunk to No_Element. - -2012-07-12 Ed Schonberg - - * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly - the case of an instance of a child unit where a formal derived - type DT is an extension of a type T declared in a parent unit, - and the actual in the instance of the child is the type T declared - in the parent instance, and that actual is not a derived type. - -2012-07-12 Eric Botcazou - Tristan Gingold - - * system-hpux-ia64.ads: Enable ZCX by default. - * gcc-interface/Makefile.in: Use alternate stack on ia64-hpux. - Change soext to .so. - -2012-07-12 Robert Dewar - - * s-atopri.adb, s-atopri.ads: Minor reformatting. - -2012-07-12 Robert Dewar - - * ali.adb: Add circuitry to read new named form of restrictions lines. - * debug.adb: Add doc for new -gnatd.R switch (used positional - notation for output of restrictions data in ali file). - * lib-writ.adb: Implement new named format for restrictions lines. - * lib-writ.ads: Add documentation for new named format for - restrictions in ali files. - * restrict.adb, restrict.ads, sem_prag.adb: Update comments. - * rident.ads: Go back to withing System.Rident - * s-rident.ads: Add extensive comment on dealing with consistency - checking. - -2012-07-12 Thomas Quinot - - * par_sco.adb, scos.ads: Emit detailed SCOs for SELECT statements. - -2012-07-12 Robert Dewar - - * sem_disp.adb: Minor reformatting - * s-bytswa.ads: Minor comment update. - -2012-07-12 Vincent Pucci - - * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): - Atomic_Load_N replaced by Lock_Free_Read_N. Atomic_Compare_Exchange_N - replaced by Lock_Free_Try_Write_N. - Renaming of several local variables. For - procedure, Expected_Comp declaration moved to the declaration - list of the procedure. - * rtsfind.ads: RE_Atomic_Compare_Exchange_8, - RE_Atomic_Compare_Exchange_16, RE_Atomic_Compare_Exchange_32, - RE_Atomic_Compare_Exchange_64, RE_Atomic_Load_8, - RE_Atomic_Load_16, RE_Atomic_Load_32, RE_Atomic_Load_64, - RE_Atomic_Synchronize, RE_Relaxed removed. RE_Lock_Free_Read_8, - RE_Lock_Free_Read_16, RE_Lock_Free_Read_32, RE_Lock_Free_Read_64, - RE_Lock_Free_Try_Write_8, RE_Lock_Free_Try_Write_16, - RE_Lock_Free_Try_Write_32, RE_Lock_Free_Try_Write_64 added. - * s-atopri.adb: New file. - * s-atopri.ads (Atomic_Compare_Exchange_8): Renaming of - parameters. Import primitive __sync_val_compare_and_swap_1. - (Atomic_Compare_Exchange_16): Renaming of parameters. - Import primitive __sync_val_compare_and_swap_2. - (Atomic_Compare_Exchange_32): Renaming of parameters. - Import primitive __sync_val_compare_and_swap_4. - (Atomic_Compare_Exchange_64): Renaming of parameters. Import - primitive __sync_val_compare_and_swap_8. - (Atomic_Load_8): Ptr renames parameter X. - (Atomic_Load_16): Ptr renames parameter X. - (Atomic_Load_32): Ptr renames parameter X. - (Atomic_Load_64): Ptr renames parameter X. - (Lock_Free_Read_8): New routine. - (Lock_Free_Read_16): New routine. - (Lock_Free_Read_32): New routine. - (Lock_Free_Read_64): New routine. - (Lock_Free_Try_Write_8): New routine. - (Lock_Free_Try_Write_16): New routine. - (Lock_Free_Try_Write_32): New routine. - (Lock_Free_Try_Write_64): New routine. - -2012-07-12 Robert Dewar - - * exp_attr.adb, exp_ch9.adb, sem_ch9.adb, exp_aggr.adb: Minor - reformatting. - -2012-07-12 Vincent Pucci - - * sem_dim.adb (Analyze_Dimension_Function_Call): Reformatting of error - msgs for elementary functions. - -2012-07-12 Vincent Pucci - - * sem_attr.adb (Eval_Attribute): Minor reformatting. - -2012-07-12 Pascal Obry - - * prj-nmsc.adb (Check_Library_Attributes): Allow the same library - project in different project tree (different aggregated projects). - -2012-07-12 Thomas Quinot - - * s-bytswa.adb, g-bytswa.adb, g-bytswa.ads, s-bytswa.ads: Further - reorganization of byte swapping routines. - -2012-07-12 Ed Schonberg - - * sem_disp.adb (Check_Dispatching_Context): Refine legality - checks on tagg indeterminate calls to abstract operations, - that appear in the context of other calls. - -2012-07-12 Thomas Quinot - - * s-bytswa.adb (Swapped2.Bswap16): Remove local function, - no longer needed. - -2012-07-12 Javier Miranda - - * exp_attr.adb (Expand_N_Attribute_Reference): For - attributes 'access, 'unchecked_access and 'unrestricted_access, - iff the current instance reference is located in a protected - subprogram or entry then rewrite the access attribute to be the - name of the "_object" parameter. - -2012-07-12 Tristan Gingold - - * raise.h: Revert previous patch: structure is used in init.c - by vms. - -2012-07-12 Vincent Celier - - * make.adb (Binding_Phase): If --subdirs was used, but not - -P, change the working directory to the specified subdirectory - before invoking gnatbind. - (Linking_Phase): If --subdirs was used, but not -P, change the working - directory to the specified subdirectory before invoking gnatlink. - -2012-07-12 Vincent Pucci - - * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): - For a procedure, instead of replacing each Comp reference by a - reference to Current_Comp, make a renaming Comp of Current_Comp - that rewrites the original renaming generated by the compiler - during the analysis. Move the declarations of the procedure - inside the generated block. - (Process_Stmts): Moved in the body - of Build_Lock_Free_Unprotected_Subprogram_Body. - (Process_Node): - Moved in the body of Build_Lock_Free_Unprotected_Subprogram_Body. - * sem_ch9.adb (Allows_Lock_Free_Implementation): Restrict any - non-elementary out parameters in protected procedures. - -2012-07-12 Thomas Quinot - - * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case - Scalar_Storage_Order): Attribute applies to base type only. - -2012-07-12 Ed Schonberg - - * exp_aggr.adb (Convert_To_Positional): Increase acceptable size - of static aggregate when Static_Elaboration_Desired is requested. - Add a warning if the request cannot be satisfied either because - some components or some array bounds are non-static. - -2012-07-12 Thomas Quinot - - * exp_pakd.adb: Minor reformatting. - -2012-07-12 Tristan Gingold - - * tracebak.c: Fix warnings. - * raise-gcc.c (__gnat_adjust_context): New function - (__gnat_personality_seh0): Call __gnat_adjust_context to adjust - PC in machine frame for exceptions that occur in the current - function. - -2012-07-12 Thomas Quinot - - * g-bytswa.adb, g-bytswa.ads, s-bytswa.adb, s-bytswa.ads, Makefile.rtl: - Move GNAT.Byte_Swapping to System (with a renaming under GNAT) - so that it is usable in expanded code. - -2012-07-12 Tristan Gingold - - * s-osinte-hpux.ads: Increase alternate stack size on hpux. - -2012-07-12 Javier Miranda - - * exp_ch3.adb (Make_Neq_Body): Fix typo in comment. - -2012-07-12 Eric Botcazou - - * tb-gcc.c (trace_callback): On IA-64/HP-UX, use workaround only - if USE_LIBUNWIND_EXCEPTIONS is defined. - * init.c: Further tweaks for IA-64/HP-UX. - -2012-07-12 Tristan Gingold - - * raise-gcc.c: Do not include unwind-dw2-fde.h. Adjust comments. - (db_region_for): Second argument is ip. Do not recompute ip. - (action_kind): Remove typedef, add unhandler enum const. - (action_descriptor): Adjust type of kind field. - (db_action_for): Second argument is ip, do not recompute it. - (get_call_site_action_for): First argument is call_site, do not - recompute it. Remove useless return. - (is_handled_by): Now return enum action_kind. - Handle GNAT_ALL_OTHERS first. - Return unhandler for GNAT_UNHANDLED_OTHERS. - (get_action_description_for): First argument is now ip, do not - recompute it. Adjust code for call to is_handled_by. - (__gnat_notify_unhandled_exception): Add prototype. - (PERSONALITY_FUNCTION): Call get_ip_from_context. Adjust calls. - Handle unhandler case. - (__gnat_cleanupunwind_handler): Add comments, add - ATTRIBUTE_UNUSED on arguments. - (__gnat_Unwind_RaiseException, __gnat_Unwind_ForcedUnwind): Define - only once. - * raise.h: Makes struct Exception_Data opaque. - -2012-07-12 Robert Dewar - - * make.adb, sem_ch9.adb, prj.adb, s-rident.ads, snames.ads-tmpl: Minor - reformatting. - -2012-07-12 Javier Miranda - - * exp_ch3.adb (Is_User_Defined_Equality): New subprogram. - (Make_Neq_Body): New subprogram. - (Make_Predefined_Primitive_Specs): Adding local variable - Has_Predef_Eq_ Renaming to ensure that we enable the machinery - which handles renamings of predefined primitive operators. - -2012-07-09 Pascal Obry - - * prj.adb (For_Every_Project_Imported_Context): Make sure we - callback with the project having sources. - Minor reformatting. - -2012-07-09 Eric Botcazou - - * make.adb: Fix typo. - -2012-07-09 Vincent Pucci - - * sem_ch9.adb (Check_Node): Allow attributes - that denote static function for lock-free implementation. - (Is_Static_Function): New routine. - -2012-07-09 Tristan Gingold - - * tracebak.c: Adjust skip_frames on Win64. - -2012-07-09 Tristan Gingold - - * init.c: Add __gnat_adjust_context_for_raise for ia64/hpux. - * raise-gcc.c: __gnat_cleanupunwind_handler: Do not call - _Unwind_GetGR on hpux when using libgcc unwinder. Part of - -2012-07-09 Vincent Pucci - - * exp_attr.adb, sem_attr.adb: Minor reformatting. - * par-ch13.adb, par-ch4.adb, par-util.adb: Reformatting - considering that internal attribute names are not defined anymore - in the main attribute names list. - * snames.adb-tmpl (Get_Attribute_Id): Special processinf - for names CPU, Dispatching_Domain and Interrupt_Priority. - (Is_Internal_Attribute_Name): Minor reformatting. - * snames.ads-tmpl: New list of internal attribute names. Internal - attributes moved at the end of the attribute Id list. - -2012-07-09 Robert Dewar - - * freeze.adb: Minor code reorganization (use Ekind_In). - * exp_attr.adb, sem_ch9.adb par-ch4.adb, s-taprop-mingw.adb, - sem_attr.adb, exp_ch8.adb, snames.adb-tmpl, par-util.adb, - sem_ch13.adb, snames.ads-tmpl: Minor reformatting. - -2012-07-09 Tristan Gingold - - * raise-gcc.c: Adjust previous patch. - -2012-07-09 Vincent Celier - - * make.adb (Compilation_Phase): Do not build libraries in - Codepeer mode (do not call Library_Phase). - -2012-07-09 Ed Schonberg - - * sem_ch13.adb: Extend previous change to elementary types. - -2012-07-09 Javier Miranda - - * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): Reverse - previous patch since unconditionally handling as renaming_as_body - renamings of predefined dispatching equality and unequality operator - cause visibility problems with private overridings of the equality - operator (see ACATS C854001). - -2012-07-09 Vincent Pucci - - * exp_attr.adb (Signal_Bad_Attribute): Raise Program_Error in - case of internal attribute names (already rejected by the parser). - * par-ch13.adb (P_Representation_Clause): Complain if an internal - attribute name that comes from source occurs. - * par-ch4.adb (P_Name): Complain if an internal attribute name - occurs in the context of an attribute reference. - * par-util.adb (Signal_Bad_Attribute): Don't complain about - mispelling attribute with internal attributes. - * sem_attr.adb (Analyze_Attribute): Raise Program_Error in case - of internal attribute names (already rejected by the parser). - * snames.adb-tmpl (Is_Internal_Attribute_Name): New routine. - * snames.ads-tmpl: Attributes CPU, Dispatching_Domain and - Interrupt_Priority are marked as INT attributes since they - don't denote real attribute and are only used internally in - the compiler. - (Is_Internal_Attribute_Name): New routine. - -2012-07-09 Thomas Quinot - - * einfo.adb (Set_Reverse_Storage_Order): Update assertion, - flag is now valid for array types as well. - -2012-07-09 Tristan Gingold - - * tracebak.c: Implement __gnat_backtrace for Win64 SEH. - -2012-07-09 Robert Dewar - - * einfo.ads: Minor reformatting. - -2012-07-09 Javier Miranda - - * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): Handle as - renaming_as_body renamings of predefined dispatching equality - and unequality operators. - -2012-07-09 Robert Dewar - - * rident.ads: Do not instantiate r-ident.ads, this is now an - independent unit. - -2012-07-09 Javier Miranda - - * exp_disp.adb (Write_DT): Avoid runtime crash of this debugging - routine. - * sem_disp.adb (Find_Dispatching_Time): Protect this routine - against partially decorated entities. - -2012-07-09 Ed Schonberg - - * sem_ch13.adb (Check_Size): Reject a size clause that specifies - a value greater than Int'Last for a scalar type. - -2012-07-09 Vincent Pucci - - * sem_ch9.adb (Allows_Lock_Free_Implementation): type must support - atomic operation moved to the protected body case. No non-elementary - out parameter moved to the protected declaration case. Functions have - only one lock-free restriction. - (Analyze_Protected_Type_Declaration): Issue a warning when - Priority given with Lock_Free. - -2012-07-09 Vincent Pucci - - * sem_dim.adb: Grammar of aspect Dimension fixed. - -2012-07-09 Vincent Pucci - - * freeze.adb (Freeze_Record_Type): Code reorg in order to avoid - pushing and popping the scope stack whenever a delayed aspect occurs. - -2012-07-09 Gary Dismukes - - * s-os_lib.ads: Remove pragma Elaborate_Body, as - this is now unnecessary due to recently added pragma Preelaborate. - -2012-07-09 Jose Ruiz - - * s-taprop-mingw.adb (Set_Priority): Remove the code that was - previously in place to reorder the ready queue when a task drops - its priority due to the loss of inherited priority. - -2012-07-09 Robert Dewar - - * layout.adb, i-cstrea.ads, a-ststio.ads, prj-util.ads, sem_cat.adb, - s-commun.ads, s-ficobl.ads, s-os_lib.ads, s-fileio.ads: Minor - reformatting. - -2012-07-09 Eric Botcazou - - * raise-gcc.c: Update comments. Fix typo. - -2012-07-09 Thomas Quinot - - * einfo.adb, einfo.ads, sem_attr.adb, sem_ch13.adb: Attribute - Scalar_Storage_Order can be defined or queried for array types as well - as record types. - -2012-07-09 Tristan Gingold - - * a-exexpr-gcc.adb (CleanupUnwind_Handler): Now imported from - raise-gcc.c - * raise-gcc.c (__gnat_cleanupunwind_handler): Defined. - Strictly follow the ABI convention on ia64. - -2012-07-09 Gary Dismukes - - * a-ststio.ads: Add pragma Preelaborate, per AI05-0283. - * i-cstrea.ads (max_path_len): Change from variable to deferred - constant to allow it to be used as a bound in string component - in type System.File_IO.Temp_File_Record. - * s-os_lib.ads, s-commun.ads, s-ficobl.ads, s-fileio.ads: Add pragma - Preelaborate. - * s-fileio.adb (Get_Case_Sensitive): Move function inside - procedure Open. - (File_Names_Case_Sensitive): Move variable inside - procedure Open, to avoid violation of Preelaborate restriction - (due to call to Get_Case_Sensitive). - -2012-07-09 Ed Schonberg - - * layout.adb (Set_Elem_Alignment): Protect against meaningless - size clause, to prevent overflow in internal computation of - alignment. - -2012-07-09 Robert Dewar - - * freeze.adb, prj-util.adb, prj-util.ads, sem_ch13.adb: Minor - reformatting. - -2012-07-09 Gary Dismukes - - * sem_cat.adb (Check_Categorization_Dependencies): - Allow dependence of both Remote_Types and Remote_Call_Interface - declarations (not just Remote_Types units) on preelaborated - units, but require that the dependence be made via a private - with_clause. Issue a specialized error message. - -2012-07-09 Pascal Obry - - * prj-util.adb, prj-util.ads (For_Interface_Sources): New routine. - -2012-07-09 Tristan Gingold - - * seh_init.c (__gnat_SEH_error_handler): On Win64 and SEH, - return for unknown exceptions. - * raise-gcc.c (__gnat_personality_seh0): Call __gnat_SEH_error_handler. - -2012-07-09 Joel Brobecker - - * exp_dbug.ads (No_Dollar_In_Label): Delete. - -2012-07-09 Vincent Pucci - - * sem_ch13.adb (Check_Overloaded_Name): New routine. - -2012-07-09 Vincent Pucci - - * freeze.adb (Freeze_Record_Type): Analyze the delayed aspects of the - components in a record type. - -2012-07-09 Pascal Obry - - * prj-util.ads: Minor reformatting. - -2012-07-09 Tristan Gingold - - * raise-gcc.c (db_indent): Simplify style, improve comments. - Remove !IN_RTS part (dead). - -2012-07-09 Robert Dewar - - * usage.adb: Minor change to format of -gnatn line. - -2012-07-09 Tristan Gingold - - * a-exexpr-gcc.adb: Reorder routine. - -2012-07-09 Vincent Celier - - * lib-writ.ads: Add documentation for the Z lines (implicitly - withed units) and Y lines (limited withed units). - -2012-07-09 Robert Dewar - - * lib.ads, exp_attr.adb, exp_ch9.adb, sem_dim.adb, sem_ch9.adb, - sem_prag.adb, sem_ch12.adb, mlib-utl.adb, freeze.adb, sem_res.adb, - sem_attr.adb, sem_case.adb, gnatlink.adb, exp_ch4.adb, sem_ch6.adb, - sem_elim.adb, s-dimmks.ads, sem_ch13.adb: Minor code clean ups. - -2012-07-09 Eric Botcazou - - * gnat_ugn.texi (Switches for gcc): Document -gnatn[12] only - lightly in the summary and more thoroughly in inlining section. - (Performance Considerations): Document -gnatn[12] in inlining - section. - -2012-07-09 Tristan Gingold - - * a-exexpr-gcc.adb (Unhandled_Except_Handler): New procedure. - (Unhandled_Others_Value): New const. - * raise-gcc.c (GNAT_UNHANDLED_OTHERS): Define. - (action_descriptor): Remove ttype_entry. - (get_action_description_for): Do not assign ttype_entry. - (is_handled_by): Consider GNAT_UNHANDLED_OTHERS. - -2012-07-03 Eric Botcazou - - * gcc-interface/trans.c (Call_to_gnu): Robustify test for function case - if the CICO mechanism is used. - -2012-07-03 Eric Botcazou - - * gcc-interface/utils2.c (build_simple_component_ref): Do not look - through an extension if the type contains a placeholder. - -2012-07-03 Eric Botcazou - - * exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on - the designated subprogram type and also set Is_Dispatch_Table_Entity. - (Expand_Interface_Thunk): Propagate the convention on the thunk. - (Set_CPP_Constructors_Old): Set Is_Constructor and Convention_CPP on - the internal view of the constructors. - (Set_CPP_Constructors): Likewise. - * sem_prag.adb (Analyze_Pragma) : Set the - convention on the function. - * gcc-interface/gigi.h (is_cplusplus_method): Declare. - * gcc-interface/decl.c (Has_Thiscall_Convention): New macro. - (gnat_to_gnu_entity) : Test it to set the `thiscall' - calling convention - (get_minimal_subprog_decl): Likewise. - (is_cplusplus_method): New predicate. - * gcc-interface/trans.c (Attribute_to_gnu) : Issue an - error on access to C++ constructor or member function. - -2012-07-03 Eric Botcazou - - * gcc-interface/utils.c (gnat_pushdecl): Set TYPE_CONTEXT for types - attached to a TYPE_DECL. - -2012-06-26 Vincent Pucci - - * exp_ch3.adb (Build_Init_Statements): Don't check the parents - in the Rep Item Chain of the task for aspects Interrupt_Priority, - Priority, CPU and Dispatching_Domain. - * exp_ch9.adb (Expand_N_Task_Type_Declaration): fields _Priority, - _CPU and _Domain are present in the corresponding record type - only if the task entity has a pragma, attribute definition - clause or aspect specification. - (Make_Initialize_Protection): Don't check the parents in the Rep Item - Chain of the task for aspects Interrupt_Priority, Priority, CPU and - Dispatching_Domain. - * freeze.adb (Freeze_Entity): Use of Evaluate_Aspects_At_Freeze_Point - call replaced by Analyze_Aspects_At_Freeze_Point. - * sem_ch13.adb, sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): - Renaming of Evaluate_Aspects_At_Freeze_Point. - -2012-06-26 Yannick Moy - - * sem_attr.adb (Analyze_Attribute): Detect if 'Old is used outside a - postcondition, and issue an error in such a case. - -2012-06-26 Yannick Moy - - * gnat_rm.texi: Minor editing. - -2012-06-26 Tristan Gingold - - * raise-gcc.c: Minor cleanup: remove unused prototype. - * seh_init.c: Do not create an image wide unwind info to catch - SEH when SEH unwind info are emitted by the compiler. - -2012-06-19 Steven Bosscher - - * gcc-interface/trans.c: Include target.h. - (gigi): Try to put out .ident with targetm.asm_out.output_ident. - Remove uses of ASM_OUTPUT_IDENT. - * gcc-interface/Make-lang.in: Fix dependencies. - -2012-06-15 Eric Botcazou - - PR ada/53592 - * gcc-interface/gigi.h (maybe_vector_array): Make static inline. - * gcc-interface/utils.c (maybe_vector_array): Delete. - * gcc-interface/trans.c (gnat_to_gnu) : Mark the - array object as addressable if it has vector type and is on the LHS. - -2012-06-15 Eric Botcazou - - PR middle-end/53590 - * gcc-interface/misc.c (gnat_init_options_struct): Set - opts->x_flag_delete_dead_exceptions to 1. - -2012-06-14 Jose Ruiz - - * gcc-interface/Make-lang.in (ada.install-common, ada.uninstall): - Use the prefix specified with the --program-prefix configure option - to determine the install name of the Ada tools. - (ada.all.cross): Use a for loop to iterate over the set of Ada tools - instead of duplicate the same processing. - Update dependencies. - -2012-06-14 Vincent Pucci - - * exp_ch6.adb (Expand_Call): Expand_Put_Call_With_Dimension_Symbol - call replaced by Expand_Put_Call_With_Symbol call. - * sem_dim.adb: New fields Unit_Names, Unit_Symbols - and Dim_Symbols for record type System_Type. - (From_Dimension_To_String_Of_Symbols): Removed. - (From_Dim_To_Str_Of_Dim_Symbols): Renames previous - routine From_Dimension_To_String_Of_Symbols. - (From_Dim_To_Str_Of_Unit_Symbols): New routine. - (Analyze_Aspect_Dimension): argument Symbol in aspect - Dimension aggregate is optional. Named association implemented. - (Has_Compile_Time_Known_Expressions): Removed. - (Analyze_Aspect_Dimension_System): New - component Dim_Symbol in each Dimension aggregate in - aspect Dimension_System. Named associations implemented. - (Add_Dimension_Vector_To_Buffer): Removed. - (Add_Whole_To_Buffer): Removed. - (Expand_Put_Call_With_Dimension_Symbol.): Removed. - (Expand_Put_Call_With_Symbol): Renames previous routine - Expand_Put_Call_With_Dimension_Symbol. - (Has_Dimension_Symbols): Removed. - (Has_Symbols): Renames previous routine - Has_Dimension_Symbols. (Store_String_Oexpon): New routine. - * sem_dim.ads (Expand_Put_Call_With_Dimension_Symbol.): Removed. - (Expand_Put_Call_With_Symbol): Renames previous routine - Expand_Put_Call_With_Dimension_Symbol. - * s-diflio.adb, s-diinio.adb (Put): Symbol renames Symbols. - (Put_Dim_Of): New routines. - * s-diflio.ads, s-diinio.ads: documentation updated. - (Put): Symbol renames Symbols. - (Put_Dim_Of): New routines. - * s-dim.ads: documentation updated. - * s-dimmks.ads: dimensioned type and subtypes updated. - * snames.ads-tmpl: Name_Dim_Symbol, Name_Put_Dim_Of, Name_Symbol, - and Name_Unit_Symbol added. Name_Symbols removed. - -2012-06-14 Vincent Pucci - - * freeze.adb (In_Exp_Body): Expression function case added. - (Freeze_Expression): Insert the Freeze_Nodes - list before the correct current scope in case of a quantified - expression. - -2012-06-14 Pascal Obry - - * projects.texi: Document the Install package for gprinstall. -2012-06-14 Ed Schonberg - - * sem_elim.adb (Check_For_Eliminated_Subprogram): Do not check within - a default expression. - * sem_res.adb (Resolve_Call): simplify code. - -2012-06-14 Ed Schonberg - - * sem_case.adb (Check, Issue_Msg): within an instance, non-other - values in a variant part or a case expression do not have to - belong to the actual subtype. - -2012-06-14 Ed Schonberg - - * sem_ch12.adb (Validate_Derived_Type_Instance): If parent is - an interface type, check whether it is itself a previous formal - already instantiated in the current list of actuals. - -2012-06-14 Ed Schonberg - - * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): The - expression for a stream attribute is a name that may be overloaded - with other declarations. To determine whether it matches the - aspect at the freeze point, it is necessary to verify that one - of its interpretations matches. - -2012-06-14 Robert Dewar - - * exp_ch7.adb, exp_util.adb, sem_aux.ads, exp_ch9.adb, - sem_ch10.adb, freeze.adb, sem_util.adb, exp_ch4.adb, - s-taprop-dummy.adb: Minor reformatting. - -2012-06-14 Vincent Pucci - - * exp_attr.adb (Expand_N_Attribute_Reference): Lock_Free - attribute case added. - * par-prag.adb (Prag): Lock_Free pragma case added. - * sem_attr.adb (Analyze_Attribute_Reference): Lock_Free attribute - case added. - * sem_ch13.adb (Analyze_Aspect_Specifications): Record_Rep_Item - call added for Aspect_Lock_Free. - * sem_ch9.adb (Allows_Lock_Free_Implementation): New Lock_Free - error messages for subprogram bodies. - (Lock_Free_Disabled): New routine. - (Analyze_Protected_Body): Call to Lock_Free_Disabled added. - * sem_prag.adb (Analyze_Pragma): Lock_Free pragma case added. - * snames.adb-tmpl (Get_Pragma_Id): Name_Lock_Free case added. - (Is_Pragma_Name): Name_Lock_Free case added. - * snames.ads-tmpl: Attribute_Lock_Free and Pragma_Lock_Free added. - -2012-06-14 Ed Schonberg - - * a-coorma.adb, a-cborma.adb, a-cbhama.adb, a-ciorma.adb: Add missing - aliased keyword. - -2012-06-14 Bob Duff - - * lib.ads, lib.adb, sem.adb (Write_Unit_Info): Move this - procedure from Sem body to Lib spec, so it can be used for - debugging elsewhere. - -2012-06-14 Ed Schonberg - - * sem_ch6.adb (Check_Conformance): Add Ada 2012 check on mode - conformance: "aliased" must apply to both or neither formal - parameters. - -2012-06-14 Gary Dismukes - - * exp_ch9.adb: Minor reformatting. - -2012-06-14 Thomas Quinot - - * freeze.adb (Freeze_Record_Type): Warn about useless bit order - specification [when there's no component clause] regardless - of whether the specified bit order is reversed or not. - -2012-06-14 Tristan Gingold - - * raise-gcc.c (__gnat_personality_seh0): New function. - -2012-06-14 Tristan Gingold - - * gnatname.adb (Gnatname): Make sure that dynamic table - argument_data is initialized. - -2012-06-14 Robert Dewar - - * sem_aux.adb: Minor code reorganization. - -2012-06-14 Vincent Pucci - - * einfo.adb einfo.ads (Get_Rep_Item): Removed. - (Get_Rep_Item_For_Entity): Removed. - (Get_Rep_Pragma): Removed. - (Get_Rep_Pragma_For_Entity): Removed. - (Has_Rep_Item): Removed. - (Has_Rep_Pragma): Removed. - (Has_Rep_Pragma_For_Entity): Removed. - * exp_ch9.adb (Expand_N_Task_Type_Declaration): - Has_Rep_Pragma_For_Entity replaced by Has_Rep_Pragma - and Get_Rep_Pragma_For_Entity replaced by Get_Rep_Pragma. - (Make_Task_Create_Call): Has_Rep_Pragma_For_Entity replaced - by Has_Rep_Pragma and Get_Rep_Pragma_For_Entity replaced by - Get_Rep_Pragma. - * exp_intr.adb: Dependency to Sem_Aux added for call to Get_Rep_Pragma. - * sem_aux.adb (Get_Rep_Item): New routine. - (Get_Rep_Pragma): New routine. - (Has_Rep_Item): New routine. - (Has_Rep_Pragma): New routine. - (Nearest_Ancestor): Minor reformatting. - * sem_aux.ads (Get_Rep_Item): New routine. - (Get_Rep_Pragma): New routine. - (Has_Rep_Item): New routine. - (Has_Rep_Pragma): New routine. - * sem_ch13.adb (Duplicate_Clause): Restore original error messages. - * sem_eval.adb (Subtypes_Statically_Match): Get_Rep_Item_For_Entity - replaced by Get_Rep_Item. - * sem_prag.adb (Analyze_Pragma): Restore original error messages. - (Check_Duplicate_Pragma): Restore original error messages. - -2012-06-14 Ed Schonberg - - * sem_util.adb (Is_Object_Reference): in Ada 2012, qualified - expressions are valid names. - -2012-06-14 Ed Schonberg - - * sem_ch10.adb (Analyze_Compilation_Unit): If the unit is an - instantiation do not emit warnings for obsolescent units. The - warnings belong on the corresponding generic. - -2012-06-14 Hristian Kirtchev - - * einfo.adb: Update the usage of Node15. - (Return_Flag_Or_Transient_Decl): Removed. - (Set_Return_Flag_Or_Transient_Decl): Removed. - (Set_Status_Flag_Or_Transient_Decl): New routine. - (Status_Flag_Or_Transient_Decl): New routine. - (Write_Field15_Name): Update the output for variables and constants. - * einfo.ads: Remove attribute - Return_Flag_Or_Transient_Decl along with occurrences in nodes. - (Return_Flag_Or_Transient_Decl): Removed along with pragma Inline. - (Set_Return_Flag_Or_Transient_Decl): Removed along with pragma Inline. - (Set_Status_Flag_Or_Transient_Decl): New routine along with pragma - Inline. - (Status_Flag_Or_Transient_Decl): New routine along with pragma Inline. - * exp_ch4.adb (Create_Alternative): New routine. - (Expand_N_Conditional_Expression): Handle the case - where at least one of the conditional expression - alternatives prodices a controlled temporary by means of a function - call. - (Is_Controlled_Function_Call): New routine. - (Process_Transient_Object): Update the call to - Set_Return_Flag_Or_Transient_Decl. - * exp_ch6.adb (Enclosing_Context): New routine. - (Expand_N_Extended_Return_Statement): Update all calls to - Set_Return_Flag_Or_Transient_Decl. - (Expand_Ctrl_Function_Call): Prohibit the finalization of a controlled - function result when the context is a conditional expression. - * exp_ch7.adb (Process_Declarations): Update all calls to - Return_Flag_Or_Transient_Decl. Add processing for intermediate - results of conditional expressions where one of the alternatives - uses a controlled function call. - (Process_Object_Declaration): Update all calls to - Return_Flag_Or_Transient_Decl and rearrange the logic to process - "hook" objects first. - (Process_Transient_Objects): Update the call to - Set_Return_Flag_Or_Transient_Decl. - * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, - Boolean)): Update all calls to Return_Flag_Or_Transient_Decl. Add - detection for intermediate results of conditional expressions - where one of the alternatives uses a controlled function call. - -2012-06-13 Eric Botcazou - - Revert - 2012-05-19 Eric Botcazou - - * gcc-interface/decl.c (Has_Thiscall_Convention): New macro. - (gnat_to_gnu_entity) : Test it to set the thiscall - calling convention - (get_minimal_subprog_decl): Likewise. - (gnat_first_param_is_class): New predicate. - -2012-06-12 Robert Dewar - - * gcc-interface/Make-lang.in: Update dependencies. - * sem_ch9.ads, einfo.adb, einfo.ads, sem_prag.adb, freeze.adb, - sem_util.adb, sem_ch13.adb, sem_ch13.ads, exp_ch3.adb: Add comments. - Minor reformatting. - -2012-06-12 Ed Schonberg - - * sem_ch12.adb (Instantiate_Formal_Subprogram): Remove code that - implements AI05-0296, because the actual may be overloaded. - * sem_ch8.adb (Analyze_Subprogram_Renaming): and move it here, - to be applied once the actual subprogram is properly resolved. - -2012-06-12 Robert Dewar - - * switch-c.adb, a-exexpr-gcc.adb: Minor reformatting. - -2012-06-12 Vincent Pucci - - * checks.adb (Tag_Checks_Suppressed): Remove Kill_Tag_Checks check. - * einfo.adb (Universal_Aliasing): Apply to the implementation - base type instead of the base type. - (Get_Rep_Item_For_Entity): - Return a pragma if the pragma node is not present in the Rep - Item chain of the parent. - (Kill_Tag_Checks): Removed (unused flag). - (Set_Kill_Tag_Checks): Removed. - (Get_First_Rep_Item): New routine. - (Get_Rep_Pragma_For_Entity): New routine. - (Has_Rep_Item): New routine. - (Has_Rep_Pragma_For_Entity): New routine. - (Present_In_Rep_Item): New routine. - * einfo.ads (Kill_Tag_Checks): Removed. - (Set_Kill_Tag_Checks): Removed. - (Get_First_Rep_Item): New routine. - (Get_Rep_Pragma_For_Entity): New routine. - (Has_Rep_Item): New routine. - (Has_Rep_Pragma_For_Entity): New routine. - (Present_In_Rep_Item): New routine. - * exp_attr.adb, sem_attr.adb: Attribute_CPU, - Attribute_Dispatching_Domain and Attribute_Interrupt_Priority - case added. - * exp_ch13.adb (Expand_N_Attribute_Definition_Clause): For - attribute Storage_Size, insert the new assignement statement - after the Size variable declaration. - * exp_ch3.adb (Build_Init_Statements): Fill the CPU, - Dispatching_Domain, Priority and Size components with the Rep - Item expression (if any). - * exp_ch9.adb (Expand_N_Task_Type_Declaration): _CPU, - _Priority, _Domain fields are always present in the - corresponding record type. - (Find_Task_Or_Protected_Pragma): Removed. - (Get_Relative_Deadline_Pragma): New routine. - (Make_Initialize_Protection): Find_Task_Or_Protected_Pragma removed. - (Make_Task_Create_Call): Check CPU, Size or - Dispatching_Domain Rep Item is present using new routine Has_Rep_Item. - * freeze.adb (Freeze_All): Push_Scope_And_Install_Discriminants - and Uninstall_Discriminants_And_Pop_Scope calls added. - (Freeze_Entity): Evaluate_Aspects_At_Freeze_Point call added. - * sem_aux.adb (Nearest_Ancestor): Retrieve the nearest ancestor - for private derived types. - * sem_ch13.adb (Analyze_Aspect_Specifications): Clean-up - and reordering. Delay analysis for all aspects (except some - peculiar cases). - (Analyze_Attribute_Definition_Clause): - Attribute_CPU, Attribute_Dispatching_Domain, - Interrupt_Priority and Attribute_Priority cases added. - (Analyze_Freeze_Entity): Push_Scope_And_Install_Discriminants - and Uninstall_Discriminants_And_Pop_Scope calls added. - (Check_Aspect_At_Freeze_Point): Reordering and clean-up. - (Duplicate_Clause): Issue an explicit error msg when the current - clause duplicates an aspect specification, an attribute definition - clause or a pragma. - (Evaluate_Aspects_At_Freeze_Point): New routine. - * sem_ch13.ads (Evaluate_Aspects_At_Freeze_Point): New routine. - * sem_ch9.adb, sem_ch9.ads (Install_Discriminants): New routine. - (Push_Scope_And_Install_Discriminants): New routine. - (Uninstall_Discriminants): New routine. - (Uninstall_Discriminants_And_Pop_Scope): New routine. - * sem_prag.adb (Check_Duplicate_Pragma): Issue an explicit error - msg when the current pragma duplicates an aspect specification, - an attribute definition clause or a pragma. - (Analyze_Pragma): Remove use of flags Has_Pragma_CPU, - Has_Pragma_Priority and Has_Pragma_Dispatching_Domain. - * sem_util.adb (Compile_Time_Constraint_Error): Don't complain - about the type if the corresponding concurrent type doesn't come - from source. - * sinfo.adb, sinfo.ads (Has_Pragma_CPU): Removed. - (Has_Pragma_Dispatching_Domain): Removed. - (Has_Pragma_Priority): Removed. - (Has_Task_Info_Pragma): Removed. - (Has_Task_Name_Pragma): Removed. - (Set_Has_Pragma_CPU): Removed. - (Set_Has_Pragma_Dispatching_Domain): Removed. - (Set_Has_Pragma_Priority): Removed. - (Set_Has_Task_Info_Pragma): Removed. - (Set_Has_Task_Name_Pragma): Removed. - * snames.adb-tmpl (Get_Pragma_Id): Pragma_CPU, - Pragma_Dispatching_Domain and Pragma_Interrupt_Priority added. - (Is_Pragma_Name): Name_CPU, Name_Dispatching_Domain and - Name_Interrupt_Priority added. - * snames.ads-tmpl: Name_Dispatching_Domain, Name_CPU - and Name_Interrupt_Priority moved to the list of - Attribute_Name. Attribute_CPU, Attribute_Dispatching_Domain and - Attribute_Interrupt_Priority added. Pragma_Dispatching_Domain, - Pragma_CPU and Pragma_Interrupt_Priority moved to the end of - the Pragma_Name list. - -2012-06-12 Arnaud Charlet - - * xref_lib.adb (Get_Full_Type): Add support for 'G'. - -2012-06-12 Tristan Gingold - - * a-exexpr-gcc.adb (Unwind_Exception): Add 4 more private fields. - -2012-06-12 Fedor Rybin - - * gnat_ugn.texi: Update doc on gnattest. - -2012-06-12 Robert Dewar - - * sem_ch12.adb: Add comments. - -2012-06-12 Robert Dewar - - * switch-c.adb, inline.adb, usage.adb, opt.ads: Minor reformatting. - -2012-06-12 Robert Dewar - - * sem_ch12.adb: Minor reformatting. - -2012-06-12 Eric Botcazou - - * opt.ads (Inline_Level): New variable. - * gnat1drv.adb (Adjust_Global_Switches): Set it based on optimization - level if it has not been set by the user. - * switch-c.adb (Scan_Front_End_Switches): Accept -gnatn1 and -gnatn2 - and set Inline_Level accordingly. - * inline.adb (Add_Inlined_Body): Declate new Inline_Level_Type type. - (Must_Inline): Return Inline_Level_T instead of Boolean to indicate - whether the package of the inlined subprogram must be compiled. - If Inline_Level is set to 1, only compile packages of subprograms - directly called from the main unit. - * usage.adb (Usage): Adjust line for -gnatn switch. - * gnat_ugn.texi (Switches for gcc): Document -gnatn1 and -gnatn2. - -2012-06-12 Ed Schonberg - - * sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply - AI05-296 if the actual is overloaded. In this case The rule must - be applied after resolution, in Analyze_Subprogram_Renaming. - -2012-06-12 Robert Dewar - - * stringt.adb: Minor reformatting. - -2012-06-12 Robert Dewar - - * ali-util.adb, stringt.ads: Minor reformatting. - -2012-06-12 Hristian Kirtchev - - * exp_ch7.adb (Process_Declarations): Handle the case where - the original context has been wrapped in a block to avoid - interference between exception handlers and At_End handlers. - (Wrap_HSS_In_Block): Mark the block which contains the original - statements of the context as being a finalization wrapper. - * sinfo.adb (Is_Finalization_Wrapper): New routine. - (Set_Is_Finalization_Wrapper): New routine. - - * sinfo.ads: Add new attribute Is_Finalization_Wrapper applicable - to block statemnts. - (Is_Finalization_Wrapper): New routine with corresponding pragma Inline. - (Set_Is_Finalization_Wrapper): New routine with corresponding pragma - Inline. - -2012-06-12 Steve Baird - - * gnat1drv.adb (Adjust_Global_Switches): No longer need to set - Exception_Extra_Info in CodePeer_Mode. - -2012-06-12 Robert Dewar - - * sem_dist.adb, exp_ch7.adb, sem_type.adb, exp_attr.adb, - sinfo.ads, sem_ch7.adb, exp_alfa.adb, sem_scil.adb, sem_ch12.adb, - sem_util.adb, sem_res.adb, sem_attr.adb, sem_elab.adb, exp_ch6.adb, - sem_ch4.adb, sem_warn.adb, scil_ll.adb, exp_cg.adb: Minor code - reorganization. - -2012-06-12 Eric Botcazou - - * s-tasini.ads: Minor fix in comment. - -2012-06-12 Thomas Quinot - - * freeze.adb (Freeze_Record_Type): Warn on record with - Scalar_Storage_Order if there is no placed component. - -2012-06-12 Thomas Quinot - - * sem_ch3.adb: Minor comment fix. - -2012-06-12 Vincent Celier - - * ali-util.adb (Time_Stamp_Mismatch): In minimal recompilation - mode, use Stringt Mark and Release to avoid growing the Stringt - internal tables uselessly. - * stringt.adb (Strings_Last): New global variable - (String_Chars_Last): New global variable. - (Mark, Release): New procedures. - * stringt.ads (Mark, Release) New procedures. - -2012-06-12 Hristian Kirtchev - - * exp_ch7.adb (Process_Transient_Objects): Renamed constant - Requires_Hooking to Must_Hook and replace all occurrences of the name. - (Requires_Hooking): New routine. Detect all contexts that require - transient variable export to the outer finalizer due to a potential - exception. - -2012-06-12 Ed Schonberg - - * sem_ch12.adb: Small adjustment. - -2012-06-12 Vincent Celier - - * vms_cmds.ads (Command_Type): New enumeration value Test - * vms_conv.adb (Initialize): Add component at index Test in - Command_List - * vms_data.ads (Test_Switches): New global variable for the - switches of gnattest, currently empty. - -2012-06-12 Ed Schonberg - - * sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete - type is tagged, so is a subtype of it. - * sem_ch12.adb (Validate_Actual_Subprogram): implement AI05-0296, - concerning freeze rules in the presence of formal incomplete - types: a formal abstract subprogram cannot have an incomplete - controlling type, and the profile of the actual subprogram does - not freeze if it includes an incomplete untagged type. - -2012-06-12 Robert Dewar - - * a-direct.adb: Minor reformatting. - -2012-06-12 Robert Dewar - - * gnat_ugn.texi: Add missing documentation for -gnatw.v and - -gnatw.V. - -2012-06-12 Thomas Quinot - - * sem_ch7.adb, sem_prag.adb, sem_ch12.adb, sem_ch4.adb, - sem_ch13.adb: Minor rewording of error messages for unchecked unions. - -2012-06-12 Robert Dewar - - * lib-xref.ads: Minor reformatting. - -2012-06-12 Pascal Obry - - * a-direct.adb (Delete_File): Delete symbolic links silently - instead of raising the Name_Error exception when the symbolic - link is pointing to a non existent file. - -2012-06-12 Robert Dewar - - * xref_lib.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting. - -2012-06-12 Javier Miranda - - * lib-xref.ads Adding missing documentation. - -2012-06-12 Hristian Kirtchev - - * exp_ch7.adb (Create_Finalizer): Add the - exception reraise mechanism at the very end of the finalizer - statements. This placement ensures that all objects are finalized, - the secondary stack mark released and aborts undeferred before - propagating an exception. - -2012-06-12 Ed Schonberg - - * sem_ch10.adb (Remove_Unit_From_Visibility): if the unit is a - wrapper package. remove from visibility the original subprogram - instance. - -2012-06-12 Javier Miranda - - * sem_prag.adb (Process_Convention): Generate reference to entity - exported to foreign language. Needed for GPS navigation. - * xref_lib.adb (Parse_Identifier_Info): Parse exported entities. - * lib-xref (Output_References): Output exported entities. - -2012-06-12 Pascal Obry - - * prj-attr.adb: Add install package and corresponding attributes. - * snames.ads-tmpl (Name_Active): New constant. - (Name_Exec_Subdir): Likewise. - (Name_Install): Likewise. - (Name_Lib_Subdir): Likewise. - (Name_Project_Subdir): Likewise. - (Name_Sources_Subdir): Likewise. - -2012-06-12 Bob Duff - - * sem_res.adb (Check_Infinite_Recursion): - Suppress spurious warning on recursion after "raise with ...". - -2012-06-12 Thomas Quinot - - * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Do - not crash on illegal unchecked union that is a null record. - -2012-06-12 Thomas Quinot - - * exp_ch4.adb (Has_Inferable_Discriminants): Reorganize code to - treat implicit dereferences with a constrained unchecked union - nominal subtype as having inferable discriminants. - -2012-06-12 Robert Dewar - - * sem_ch6.adb: Minor reformatting. - -2012-06-12 Eric Botcazou - - * gnat_ugn.texi: Couple of minor corrections. - -2012-06-12 Thomas Quinot - - * sem_prag.adb (Check_Variant): An empty component list is not - illegal in an unchecked union variant. - -2012-06-12 Gary Dismukes - - * projects.texi: Remove comments. - -2012-06-12 Thomas Quinot - - * back_end.adb (Scan_Back_End_Switches): Treat -fdump-scos as - synonym of -gnateS. - (gnat_post_options): Disable gimple-based SCO generator. - * gnat_ugn.texi: Document that -gnateS is an obsolete synonym - of -fdump-scos. - -2012-06-12 Ed Schonberg - - * sem_ch6.adb (Different_Generic_Profile): new predicate for - Find_Corresponding_Spec, to handle a rare case of accidental - overloading in an instance, when the profile of a subprogram body - that depends on a formal type becomes compatible with that of - a homonym whose profile in the generic mentions the actual type. - -2012-06-12 Thomas Quinot - - * gnat1drv.adb: Minor reformatting. - -2012-06-12 Ed Schonberg - - * sem_util.adb (Build_Explicit_Dereference): If the expression - is an entity, ensure that the type of the expression is the same - as that of the entity. - -2012-06-12 Pat Rogers - - * projects.texi: Corrected instances of the word "build" that - should be "built" instead. Other similar changes and minor - punctuation changes. - -2012-06-12 Eric Botcazou - - * sem_util.adb (Is_Atomic_Object): Return true for an atomic - component as well as a prefix which is an atomic component. - -2012-06-12 Ed Schonberg - - * exp_prag.adb (Expand_Pragma_Import_Or_Interface): revert previous - patch. The processing of interfacing aspects now generates a - proper Ada 2005 pragma. - * sem_prag.adb (Analyze_Pragma, cases Pragma_Export and - Pragma_Import): revert previous patch. The processing of - interfacing aspects now generates a proper Ada 2005 pragma. - * sem_ch13.adb (Analyze_Aspect_Specifications): generate proper - pragam for aspects Convention, Import and Export. Scan list - of aspects to collect link name and external name if present, - and verify that a complete pragma can be generated. - -2012-06-11 Olivier Hainque - - * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Remove - $(PIC_FLAG_FOR_TARGET). - (gnatlib-shared-default): Add $(PIC_FLAG_FOR_TARGET) to - GNATLIBCFLAGS_FOR_C passed to gnatlib. - (gnatlib-shared-win32): Likewise. - (gnatlib-shared-darwin): Likewise. - (gnatlib-shared-dual-win32): Pass PIC_FLAG_FOR_TARGET to - gnatlib-shared-win32. - -2012-06-11 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Convert GNU_SIZE - to units before invoking allocatable_size_p on it. - Remove orphaned comment. Do not use ssize_int. - : Traverse list in original order. Minor tweak. - (allocatable_size_p): Adjust and simplify. - (build_subst_list): Use consistent terminology throughout. - (build_variant_list): Likewise. Traverse list in original order. - (create_field_decl_from): Likewise. - (copy_and_substitute_in_size): Likewise. - (create_variant_part_from): Add comment about field list order. - * gcc-interface/utils.c (build_vms_descriptor): Do not use ssize_int. - * gcc-interface/utils2.c (build_allocator): Likewise. - -2012-06-11 Eric Botcazou - - * gcc-interface/trans.c (Identifier_to_gnu): Test Is_Elementary_Type - instead of Is_Scalar_Type for a constant with an address clause. - Do not return the underlying constant for a constant used by reference - if it holds the address of a constant and an lvalue is required. - -2012-06-11 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): Do not specifically deal - with external constants wrt force_global here... - : ...but here instead. - * gcc-interface/utils.c (gnat_pushdecl): Do not put external DECLs onto - the list of global DECLs. - -2012-06-11 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): Translate the Esize on - entry only for elementary types and abort if it is too large. - : Make sure the Esize is known before using it. - -2012-06-04 Steven Bosscher - - * gcc-interface/utils2.c: Do not include output.h. - * gcc-interface/Make-lang.in: Fix dependencies. - -2012-05-29 Michael Matz - - * gcc-interface/utils.c (create_var_decl_1): Don't call expand_decl. - -2012-05-26 Eric Botcazou - - * gcc-interface/decl.c (variant_desc): Rename 'record' to 'new_type'. - (build_variant_list): Adjust to above renaming. - (gnat_to_gnu_entity) : Likewise. Give a unique name - to the type of the variant containers. - (create_variant_part_from): Likewise. Give a unique name to the type - of the variant part. - -2012-05-25 Eric Botcazou - - PR ada/52362 - * link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker. - (__gnat_using_gnu_linker): Delete. - * gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here... - Declare Object_File_Option string constant and Using_GNU_response_file - boolean constant. - (Process_Binder_File): ...instead of here. Delete Using_GNU_Linker, - Opening and Closing local variables. Do not handle the GNU linker - specially. - (Write_RF): New procedure to write into the response file. Escape some - characters if a GNU response file is used. Keep track of error status. - Invoke Write_RF to write into the response file. Delete the file only - if the link was successful. - * mlib-utl.adb: Do not `with' package System. - (Gcc): Likewise. Declare Object_File_Option string constant and - Using_GNU_response_file boolean constant. - (Write_RF): Take a string instead of address and length. Escape some - characters if a GNU response file is used. - Invoke Write_RF to write into the response file. Delete the file only - if the link was successful. Do not warn if it cannot be deleted. - -2012-05-20 Eric Botcazou - - * gcc-interface/utils.c (gnat_write_global_declarations): Put a name - on the dummy global variable. - -2012-05-19 Eric Botcazou - - * gcc-interface/decl.c (Has_Thiscall_Convention): New macro. - (gnat_to_gnu_entity) : Test it to set the thiscall - calling convention - (get_minimal_subprog_decl): Likewise. - (gnat_first_param_is_class): New predicate. - - * gcc-interface/misc.c (gnat_handle_option): Fix formatting. - * gcc-interface/Makefile.in: Likewise. - -2012-05-18 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : For an object at - global level with unconstrained nominal subtype and a non-fixed size, - make a variable for the size. - -2012-05-15 Andris Pavenis - - PR ada/52494 - * s-taprop-dummy.adb (Specific): New package. - -2012-05-15 Olivier Hainque - - * gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS - instead of trying to mimic it. - -2012-05-15 Robert Dewar - - * sem_ch5.adb, sem_util.adb, s-stposu.adb, exp_ch4.adb: Minor - reformatting. - -2012-05-15 Geert Bosch - - * uintp.adb (UI_Rem): Remove optimizations, as they are complex and are - not needed. - (Sum_Digits): Remove, no longer used. - (Sum_Double_Digits): Likewise. - -2012-05-15 Yannick Moy - - * aspects.ads: Minor typo. - -2012-05-15 Thomas Quinot - - * gnat_rm.texi (Scalar_Storage_Order): Fix RM reference. - * sem_ch13.adb: Minor comment fix: incorrect RM reference. - -2012-05-15 Eric Botcazou - - * sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate - atomicity from an object to its underlying type only if it - is composite. - -2012-05-15 Ed Schonberg - - * sem_ch5.adb (Analyze_Iterator_Specification): Set kind of - loop variable after pre-analysis of iterator name, to prevent - premature usage of loop variable. - -2012-05-15 Ed Schonberg - - * sem_util.adb (Is_Variable): In Ada 2012, an explicit - dereference that is a rewriting of an expression whose type has - a declared Implicit_Derenference aspect is a variable. - -2012-05-15 Hristian Kirtchev - - * exp_ch4.adb (Insert_Dereference_Action): Reimplemented. The - routine performs address and size adjustments for dereferences - of heap-allocated controlled objects. This manipulation is needed - in order to restore the original state of the memory at the time - it was allocated by the finalization machinery. - * rtsfind.ads: Add RE_Adjust_Controlled_Dereference to tables - RE_Id and RE_Unit_Table. - * sinfo.adb (Has_Dereference_Action): New routine. - (Set_Has_Dereference_Action): New routine. - * sinfo.ads: Add new semantic flag Has_Dereference_Action along - its association in nodes. - (Has_Dereference_Action): New routine and pragma Inline. - (Set_Has_Dereference_Action): New routine and pragma Inline. - * s-stposu.ads, s-stposu.adb (Adjust_Controlled_Dereference): New - routine. - -2012-05-15 Thomas Quinot - - * uintp.adb (Image_Uint): Use UI_Div_Rem to get quotient and - remainder of U / Base in a single operation. - -2012-05-15 Robert Dewar - - * exp_ch5.adb, inline.adb, sem_ch10.adb, prj.ads, sem_util.adb, - a-ngelfu.ads, exp_ch4.adb, exp_ch6.adb, aspects.ads, sem_ch6.adb, - vms_data.ads, exp_ch3.adb, prj-env.adb: Minor reformatting. - -2012-05-15 Thomas Quinot - - * exp_ch4.adb (Has_Inferable_Discriminants): For a qualified - expression, use correct node for test on the subtype denoted by - the subtype mark. - -2012-05-15 Eric Botcazou - - * inline.adb (Scope_In_Main_Unit): Rename into... - (In_Main_Unit_Or_Subunit): ...this. Also return - true if the subprogram is within a subunit of the - main unit. - (Add_Inlined_Body): Adjust for above renaming. - (Add_Inlined_Subprogram): Likewise. Pass the subprogram directly. - (Analyze_Inlined_Bodies): Really set aside inlined subprograms - not handled by Add_Inlined_Body. - -2012-05-15 Ed Schonberg - - * sem_ch10.adb (Expand_With_Clause): In the context of a generic - package declaration, a private with-clause on a child unit implies - that the implicit with clauses on its parents are private as well. - -2012-05-15 Javier Miranda - - * sem_ch6.adb (Is_Interface_Conformant): Add missing call to - Base_Type to handle subtypes. - * exp_ch6.adb (Expand_Call): For calls located in thunks handle - unchecked conversions of access types found in actuals. - * exp_disp.adb (Expand_Interface_Thunk): Add missing unchecked - conversion to actuals whose type is an access type. Done to - avoid reporting spurious errors. - -2012-05-15 Vincent Celier - - * prj-env.adb (Create_Mapping): Ignore sources that are - suppressed (Create_Mapping_File.Process): Ditto - * prj-nmsc.adb (Add_Source): Update to take into - account suppressed files that may hide inherited sources. - (Mark_Excluded_Sources): Mark excluded sources of the current - project as suppressed. - * prj.ads (Source_Data): New Boolean component Suppressed, - defaulted to False - -2012-05-15 Thomas Quinot - - * exp_intr.adb: Minor reformatting. - -2012-05-15 Thomas Quinot - - * gnat_rm.texi: Document attribute Scalar_Storage_Order. - -2012-05-15 Javier Miranda - - * exp_ch3.adb (Build_Offset_To_Top): Modify the - expansion of the offset_to_top functions to ensure that their - profile is conformant with the profile specified in Ada.Tags. No - change in functionality. - -2012-05-15 Eric Botcazou - - * inline.adb (Subp_Info): Remove Count and Next_Nopred - components, add Processed component and move around Next component. - (Add_Call): Reverse meaning of Successors table to the natural one. - (Add_Inlined_Body): Do not inline a package if it is in the main unit. - (Add_Inlined_Subprogram): Do not add the subprogram to the list if the - package is in the main unit. Do not recurse on the successors. - (Add_Subp): Adjust to new contents of Subp_Info. - (Analyze_Inlined_Bodies): Do not attempt - to compute a topological order on the list of inlined subprograms, - but compute the transitive closure from the main unit instead. - (Get_Code_Unit_Entity): Always return the spec for a package. - -2012-05-15 Yannick Moy - - * aspects.ads: Minor addition of comments to provide info on - how to add new aspects. - -2012-05-15 Thomas Quinot - - * osint.ads: Minor reformatting. - -2012-05-15 Thomas Quinot - - * exp_ch5.adb, exp_pakd.adb, sem_util.adb, sem_util.ads - (Expand_Assign_Array): Handle the case of a packed bit array within a - record with reverse storage order (assign element by element in that - case). - (In_Reverse_Storage_Order_Record): New subprogram, - code extracted from Exp_Pakd. - -2012-05-15 Yannick Moy - - * a-ngelfu.ads: Add postconditions using Ada 2012 - aspect syntax, reflecting some of the RM requirements for these - functions, from Annex A.5.1 or G.2.4. - -2012-05-15 Thomas Quinot - - * adaint.c: Minor fix: move misplaced comment. - -2012-05-15 Doug Rupp - - * vms_data.ads: Enhance help for /IMMEDIATE_ERRORS to discourage - use by customers. - -2012-05-15 Tristan Gingold - - * a-exextr.adb: Add comment. - -2012-05-15 Ed Schonberg - - * sem_ch3.adb: Minor reformatting (remove long dead code). - -2012-05-15 Ed Schonberg - - * aspects.adb, aspects.ads: Add aspects for Convention, Export, - External_Name, Import, and Link_Name. - * exp_prag.adb (Expand_Pragma_Import_Or_Interface): if the - pragma comes from an aspect specification, the entity is the - first argument. - * sem_prag.adb (Analyze_Pragma, cases Pragma_Export and - Pragma_Import): if the pragma comes from an aspect specification, - the entity is the first argument, and the second has the value - True by default. - * sem_ch13.adb (Analyze_Aspect_Specifications): generate pragam - for aspect Convention. Add placeholders for Link_Name and - External_Name. - -2012-05-15 Hristian Kirtchev - - * exp_ch9.adb (Expand_N_Asynchronous_Select): Extract the statements - of the abortable part and triggering alternative after being processed - for controlled objects. - (Expand_N_Timed_Entry_Call): Code and comment reformatting. - -2012-05-15 Robert Dewar - - * sem_util.adb: Minor code reorganization. - -2012-05-15 Robert Dewar - - * exp_ch7.adb, exp_ch11.adb, exp_ch11.ads: Minor reformatting. - -2012-05-15 Thomas Quinot - - * sem_res.adb (Resolve): Enforce E.2.2(11/2) and E.2.2(12) for - 'Unrestricted_Access and 'Unchecked_Access (not just 'Access): - even in those cases, a remote access type may only designate a - remote subprogram. - -2012-05-15 Thomas Quinot - - * sem_util.adb, sem_util.ads, sem_cat.adb: Minor refactoring. - (Enclosing_Lib_Unit_Node): Rename to Enclosing_Comp_Unit_Node. - -2012-05-15 Ed Schonberg - - * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove obsolete - checks on nested inlined subprograms. - -2012-05-15 Tristan Gingold - - * fe.h (Get_RT_Exception_Name): Declare. - -2012-05-15 Tristan Gingold - - * raise-gcc.c (db_region_for): Use %p + cast to avoid warnings. - (get_region_description_for): Likewise. - (db_action_for): Likewise. - (get_call_site_action_for): Likewise. - (get_ttype_entry_for): Remove useless 'const'. - (PERSONALITY_FUNCTION): Add ATTRIBUTE_UNUSED on uw_exception_class. - -2012-05-15 Tristan Gingold - - * a-exextr.adb (Unhandled_Exception_Terminate): Save occurrence - on the stack to avoid a dynamic memory allocation. - -2012-05-15 Bob Duff - - * exp_ch9.adb (Expand_N_Timed_Entry_Call): Move initialization of - E_Stats and D_Stats after Process_Statements_For_Controlled_Objects, - because those calls can destroy the Statements list. - -2012-05-15 Tristan Gingold - - * fe.h (Get_RT_Exception_Name): Define. - * types.ads (RT_Exception_Code): Update comment. - * exp_ch11.adb, exp_ch11.ads (Get_RT_Exception_Name): New - procedure to get the name of the rcheck subprograms. - * a-except-2005.adb (Rcheck_xx): Rename. - * a-except.adb Likewise, but also keep the old Rcheck_nn routines - for bootstrap. - * arith64.c (__gnat_mulv64): Use __gnat_rcheck_CE_Overflow_Check - instead of __gnat_rcheck_10. - * gcc-interface/trans.c (build_raise_check): Use Get_RT_Exception_Name - to create the __gnat_rcheck routines name. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-05-15 Tristan Gingold - - * exp_ch7.adb (Build_Exception_Handler): Save current - occurrence only if -gnateE. - (Build_Object_Declaration): Declare E_Id only if -gnateE. - (Build_Raise_Statement): Call Raise_From_Controlled_Operation only if - -gnateE (else raise PE). - * s-soflin.adb (Save_Library_Occurrence): Handle null occurrence - access. - * a-except-2005.adb (Reraise_Library_Exception_If_Any): Call - Raise_From_Controlled_Operation only if the saved occurrence is - not null, otherwise raise PE. - -2012-05-15 Yannick Moy - - * exp_alfa.ads: Add comments describing the Alfa mode. - -2012-05-15 Tristan Gingold - - * s-soflin.ads, s-soflin.adb (Save_Library_Occurrence): Parameter - E is now of type Exception_Occurrence_Access. - * exp_ch7.ads, exp_ch7.adb (Build_Exception_Handler): Adjust generated - call to Save_Library_Occurrence. - -2012-05-15 Thomas Quinot - - * exp_ch4.adb (Rewrite_Coextension): Use Insert_Action to - insert temporary variable decl at the proper place in the tree. - -2012-05-15 Hristian Kirtchev - - * g-calend.adb (Split_At_Locale): New routine. - (Time_Of_At_Locale): New routine. - * g-calend.ads (Split_At_Locale): New routine. - (Time_Of_At_Locale): New routine. - -2012-05-15 Gary Dismukes - - * a-except.ads: Minor reformatting. - -2012-05-15 Ed Schonberg - - * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the loop - parameter specification is part of a quantified expression, and it - already carries a type, do not repeat the analysis to preserve - type information: a range attribute reference may have been - rewritten as a range with static bounds, and its re-analysis may - type it as Integer by default, instead of the original index type. - -2012-05-15 Robert Dewar - - * s-osprim-mingw.adb: Minor reformatting. - -2012-05-15 Arnaud Charlet - - * a-except.adb, a-except.ads (Reraise_Library_Exception_If_Any): New. - Mark this unit preelaborate. - * s-soflin.ads: Make package Preelaborate. - -2012-05-15 Robert Dewar - - * s-osprim-mingw.adb, sem_eval.adb, a-calend-vms.ads: Minor reformatting - -2012-05-15 Ed Schonberg - - * sem_eval.adb (Subtypes_Statically_Match): In Ada 2012, static - matching requires matching of static subtype predicates as well. - -2012-05-15 Ed Schonberg - - * sem_case.adb (Analyze_Choices): If the subtype of the - expression has a non-static predicate, the case alternatives - must cover the base type. - -2012-05-15 Tristan Gingold - - * a-calend-vms.ads: Add pragma export to Split and Time_Of. - Merge comments from a-calend.ads to minimize differences. - -2012-05-15 Sergey Rybin - - * gnat_ugn.texi: gnatmetric: add a small example that demonstrates - the difference between control coupling and unit coupling. - -2012-05-15 Tristan Gingold - - * bindgen.adb (Gen_Header): Remove code to emit LE_Set. - (Gen_Finalize_Library): Replace test with - a call to __gnat_reraise_library_exception_if_any. - * s-soflin.ads (Library_Exception): Do not export. - (Library_Exception_Set): Likewise. - * a-except-2005.ads, a-except-2005.adb - (Reraise_Library_Exception_If_Any): New procedure. - -2012-05-15 Geert Bosch - - * sem_ch9.adb (Allows_Lock_Free_Implementation): out or in out - parameters can be access types as well, not just scalar types, - so relax the test to Is_Elementary_Type. - -2012-05-15 Bob Duff - - * s-atacco.ads s-atacco.adb: Replace pragma Elaborate_Body - with pragma No_Body. - (Xyz): Remove Xyz, which is apparently unnecessary. - -2012-05-15 Tristan Gingold - - * a-calend-vms.adb: Complete previous change. - -2012-05-15 Bob Duff - - * s-win32.ads: Minor comment fix. - * s-osprim-mingw.adb: Minor editing. - -2012-05-15 Robert Dewar - - * exp_ch9.adb, sem_ch9.adb, sem_ch13.adb: Minor reformatting. - -2012-05-15 Robert Dewar - - * g-comlin.adb, g-comlin.ads: Minor reformatting. - -2012-05-15 Vincent Pucci - - * aspects.adb, aspects.adb: Reordering of the Aspect_Idi list. New - aspect Aspect_Lock_Free. - * einfo.adb, einfo.ads: New flag Uses_Lock_Free (flag 188). - (Set_Uses_Lock_Free): New routine. - (Uses_Lock_Free): New routine. - * exp_ch7.adb (Is_Simple_Protected_Type): Return False for - lock-free implementation. - * exp_ch9.adb (Allows_Lock_Free_Implementation): Moved to Sem_Ch9. - (Build_Lock_Free_Unprotected_Subprogram_Body): Protected - procedure uses __sync_synchronise. Check both Object_Size - and Value_Size. - (Expand_N_Protected_Body): Lock_Free_Active - renames Lock_Free_On. - (Expand_N_Protected_Type_Declaration): - _Object field removed for lock-free implementation. - (Install_Private_Data_Declarations): Protection object removed - for lock-free implementation. - (Make_Initialize_Protection): - Protection object initialization removed for lock-free implementation. - * rtsfind.ads: RE_Atomic_Synchronize and RE_Relaxed added. - * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect_Lock_Free - analysis added. - * sem_ch9.adb (Allows_Lock_Free_Implementation): New routine. - (Analyze_Protected_Body): Allows_Lock_Free_Implementation call added. - (Analyze_Protected_Type_Declaration): - Allows_Lock_Free_Implementation call added. - (Analyze_Single_Protected_Declaration): Second analysis of - aspects removed. - * s-atopri.ads: Header added. - (Atomic_Synchronize): New routine. - -2012-05-15 Robert Dewar - - * exp_ch7.ads: Add comment. - -2012-05-15 Hristian Kirtchev - - * a-calend.adb (Day_Of_Week): The routine once again treats - all dates as historic. (Formatting_Operations.Split): All - calls to UTC_Time_Offset are now controlled through formal - parameter Is_Historic. (Formatting_Operations.Time_Of): - All calls to UTC_Time_Offset are now handled through - formal parameter Is_Historic. - (Split): Update the call to Formatting_Operations.Split. - (Time_Of): Update the call to Formatting_Operations.Time_Of. - (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. - (To_Strict_Tm): Update the call to Formatting_Operations.Split. - * a-calend.ads (Split): Add new formal Is_Historic along with - comment on usage. This routine is now exported for the purposes - of GNAT.Calendar.Locale. - (Time_Of): Remove defaults. Add new - formal Is_Historic along with comment on usage. This routine is - now exported for the purposes of GNAT.Calendar.Locale. - * a-calend-vms.adb (Split): Update the call to - Formatting_Operations.Split. - (Time_Of): Update the call to Formatting_Operations.Time_Of. - * a-calend-vms.ads (Split): Add new formal Is_Historic along - with comment on usage. (Time_Of): Remove defaults. Add new - formal Is_Historic along with comment on usage. - * a-calfor.adb (Split): Update the call to - Formatting_Operations.Split. - (Time_Of): Update the call to Formatting_Operations.Time_Of. - -2012-05-15 Vincent Celier - - * prj-nmsc.adb (Add_Source): Always add the source if it is - excluded, to avoid incorrect duplicate checks. - -2012-05-15 Yannick Moy - - * sem_aux.ads: Correct typo. - * sem_eval.adb (Compile_Time_Known_Value): Return False in Alfa - mode for a deferred constant when outside of the scope of its - full view. - -2012-05-15 Emmanuel Briot - - * g-comlin.adb, g-comlin.ads (Define_Switch): Allow specifying the name - of the argument, for the automatic help message. - (Getopt): do not systematically initialize switches with string values - to the empty string, when the user has already specified a default. - -2012-05-14 Bernd Schmidt - - * gcc-interface/utils.c (DEF_ATTR_STRING): New. - -2012-05-14 Manuel López-Ibáñez - - PR 53063 - * gcc-interface/misc.c: Include opts.h and options.h before tm.h. - (gnat_handle_option): Call lang-specific generated function. - -2012-05-13 Manuel López-Ibáñez - - * gcc-interface/lang.opt (I): Comment out help text with no effect. - (nostdinc): Comment out help text with no effect. - -2012-05-12 Eric Botcazou - - * gcc-interface/Makefile.in (TOOLS_LIBS): Add ../../ggc-none.o. - -2012-05-11 Manuel López-Ibáñez - - PR 53063 - * gcc-interface/misc.c (gnat_parse_file): Move before ... - (gnat_handle_option): ... this. Use handle_generated_option. - -2012-05-10 Richard Guenther - - * gcc-interface/cuintp.c (UI_From_gnu): Remove TYPE_IS_SIZETYPE use. - -2012-05-06 Tristan Gingold - - * gcc-interface/trans.c (gigi): Decorate reraise_zcx_decl. - -2012-05-06 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : In the renaming - case, use the padded type if the renamed object has an unconstrained - type with default discriminant. - -2012-05-06 Eric Botcazou - - * gcc-interface/trans.c (Loop_Statement_to_gnu): Also handle invariant - conditions with only one bound. - (Raise_Error_to_gnu): Likewise. New function extracted from... - (gnat_to_gnu) : ...here. Call above function - in regular mode only. - -2012-05-06 Eric Botcazou - - * gcc-interface/misc.c (gnat_post_options): Disable caret by default. - -2012-05-06 Eric Botcazou - - * gcc-interface/gigi.h (make_packable_type): Declare. - (make_type_from_size): Likewise. - (relate_alias_sets): Likewise. - (maybe_pad_type): Adjust. - (init_gnat_to_gnu): Delete. - (destroy_gnat_to_gnu): Likewise. - (init_dummy_type): Likewise. - (destroy_dummy_type): Likewise. - (init_gnat_utils): Declare. - (destroy_gnat_utils): Likewise. - (ceil_pow2): New inline function. - * gcc-interface/decl.c (gnat_to_gnu_entity): Use ceil_pow2. - : Pass True for the final processing of alignment and size. - : Only create the TYPE_DECL for a padded return - type if necessary. - (round_up_to_align): Delete. - (ceil_alignment): Likewise. - (relate_alias_sets): Move to... - (make_aligning_type): Likewise. - (make_packable_type): Likewise. - (maybe_pad_type): Likewise. - (make_type_from_size): Likewise. - * gcc-interface/utils.c (MAX_BITS_PER_WORD): Delete. - (struct pad_type_hash): New type. - (pad_type_hash_table): New static variable. - (init_gnat_to_gnu): Merge into... - (init_dummy_type): Likewise. - (init_gnat_utils): ...this. New function. - (destroy_gnat_to_gnu): Merge into... - (destroy_dummy_type): Likewise. - (destroy_gnat_utils): ...this. New function. - (pad_type_hash_marked_p): New function. - (pad_type_hash_hash): Likewise. - (pad_type_hash_eq): Likewise. - (relate_alias_sets): ...here. - (make_aligning_type): Likewise. - (make_packable_type): Likewise. - (maybe_pad_type): Likewise. Change same_rm_size parameter into - set_rm_size; do not set TYPE_ADA_SIZE if it is false. Do not set - null as Ada size. Do not set TYPE_VOLATILE on the padded type. If it - is complete and has constant size, canonicalize it. Bail out earlier - if a warning need not be issued. - (make_type_from_size): Likewise. - : Bail out if size is too large - (gnat_types_compatible_p): Do not deal with padded types. - (convert): Compare main variants for padded types. - * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_utils. - (gnat_to_gnu): Do not convert at the end for a call to a function that - returns an unconstrained type with default discriminant. - (Attribute_to_gnu) : Simplify handling of padded objects. - * gcc-interface/utils2.c (build_binary_op) : Likewise. - Do not use the padded type if it is BLKmode and the inner type is - non-BLKmode. - -2012-05-02 Pascal Obry - - Revert - 2012-02-24 Dave Korn - - * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New - Windows-specific make variable. - (WIN_SO_INSTALL_DIR [windows targets]): Likewise. - (install-gnatlib): Respect the above during installation when set, - and also install any windows import library that has been built. - (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also - build a corresponding import library. - -2012-04-30 Jan Hubicka - - * gcc-interface/utils.c (rest_of_subprog_body_compilation): Update - comment. - (gnat_write_global_declarations): Use finalize_compilation_unit. - -2012-04-30 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): In type annotation mode, - do not adjust the size of a tagged type if there is a representation - clause on it. Otherwise, round the adjustment up to the alignment - of the first field and use the appropriate helper routine. - (maybe_pad_type): Do not warn in type annotation mode on a tagged type. - (gnat_to_gnu_field): Do not error out under the same circumstances. - (annotate_rep): In type annotation mode, do not adjust the offset of - components of a tagged type with representation clause. Otherwise, - round the adjustment up to the alignment of the first field. - -2012-04-30 Eric Botcazou - - * gcc-interface/utils.c (finish_record_type): Force the traditional GCC - layout for bitfields on the type if it is packed or has a representation - clause and an alternate layout is available. - -2012-04-30 Eric Botcazou - - * gcc-interface/gigi.h (mark_out_of_scope): Delete. - (destroy_gnat_to_gnu): Declare. - (destroy_dummy_type): Likewise. - * gcc-interface/decl.c (mark_out_of_scope): Delete. - * gcc-interface/utils.c (destroy_gnat_to_gnu): New function. - (destroy_dummy_type): Likewise. - * gcc-interface/trans.c (gnat_validate_uc_list): New variable. - (gigi): Call validate_unchecked_conversion on gnat_validate_uc_list - after the translation is completed. Call destroy_gnat_to_gnu and - destroy_dummy_type at the end. - (Subprogram_Body_to_gnu): Do not call mark_out_of_scope. - (gnat_to_gnu) : Likewise. - : Do not process the node, only push - it onto gnat_validate_uc_list. - (validate_unchecked_conversion): New function. - -2012-04-26 Tristan Gingold - - * gcc-interface/Make-lang.in: Update dependencies. - Remove s-traceb and tracebak objects from gnat1 and gnatbind (not used). - Remove s-tasdeb and s-vaflop rules (not used). - -2012-04-26 Olivier Hainque - - * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Default to - DOUBLE_TYPE_SIZE instead of LONG_DOUBLE_TYPE_SIZE. - -2012-04-26 Hristian Kirtchev - - * a-calend.adb (Day_Of_Week): Keep the internal - usage of UTC_Time_Offset consistent with Time_Of and Split. - -2012-04-26 Hristian Kirtchev - - * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Do not freeze - the loop variable while preanalyzing a quantified expression. - -2012-04-26 Hristian Kirtchev - - * a-calend.adb (Split, Time_Of): Rename parameter Is_Ada_05 - to Use_TZ to better illustrate its function. Update all - references to the parameter. - (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. - * a-calend.ads (Split, Time_Of): Rename parameter Is_Ada_05 - to Use_TZ to better illustrate its function. Update the related - comment on usage. - * a-calend-vms.adb (Split, Time_Of): Rename parameter - Is_Ada_05 to Use_TZ to better illustrate its function. Update - all references to the parameter. - (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. - * a-calend-vms.ads (Split, Time_Of): Rename parameter Is_Ada_05 - to Use_TZ to better illustrate its function. Update the related - comment on usage. - * a-calfor.adb (Split, Time_Of): Update the call to - Formatting_Operations.Time_Of. - * sysdep.c (__gnat_localtime_tzoff): Dereference pointer - "is_historic" and rewrite the check as a comparison. Add a - comment on flag values. - -2012-04-26 Robert Dewar - - * exp_ch2.adb, sem_ch8.adb: Minor reformatting. - -2012-04-26 Vasiliy Fofanov - - * a-stzunb-shared.adb, gnat_ugn.texi, a-strunb-shared.adb, - a-strunb-shared.ads, uintp.adb, a-stwiun-shared.adb, - a-stwiun-shared.ads, a-cbhama.ads, vms_data.ads, a-cobove.adb, - a-convec.adb, sem_ch13.adb, a-cbhase.ads: Fix common misuses of the - word "then" where "than" should be used in English. - -2012-04-26 Robert Dewar - - * sem_ch5.adb (Check_Unreachable_Code): Skip past pragmas. - -2012-04-26 Hristian Kirtchev - - * s-finroo.ads: Remove with clause for - Ada.Streams. Type Root_Controlled is now abstract tagged null - record. Remove internal package Stream_Attributes. Root_Controlled - doesn't need stream attribute redeclaration and avoids the - dependency on streams. - -2012-04-26 Tristan Gingold - - * adaint.c (to_host_path_spec): Removed (unused). - Minor reformatting. - -2012-04-26 Steve Baird - - * gnat_rm.texi Improve description of Valid_Scalars attribute. - -2012-04-26 Ed Schonberg - - * sem_ch6.adb (Can_Override_Operator): If the formal is a - generic type the operator cannot be overriding. - -2012-04-26 Ed Schonberg - - * sem_ch8.adb (Spec_Reloaded_For_Body): Check whether the type - is declared in a package specification, and current unit is the - corresponding package body. The use clauses themselves may be - within a nested package. - -2012-04-26 Bob Duff - - * exp_ch2.adb (Param_Entity): Take into account the case where - the type of the entry parameter has a representation clause. - -2012-04-26 Ed Schonberg - - * gnat_ugn.texi: Tweak dimensionality doc. - -2012-04-26 Robert Dewar - - * sem_eval.adb: Minor reformatting. - -2012-04-26 Robert Dewar - - * einfo.adb, einfo.ads, sem_res.adb, sem_ch4.adb, - sem_eval.adb: Minor reformatting. - -2012-04-26 Thomas Quinot - - * freeze.adb: Minor change in error wording. - -2012-04-26 Ed Schonberg - - * gnat_ugn.texi: Documentation on dimensional analysis. - -2012-04-26 Hristian Kirtchev - - * einfo.adb, einfo.ads: Remove synthesized attribute - Proper_First_Index along with its associations in various nodes. - (Proper_First_Index): Removed. - * sem_ch4.adb (Analyze_Slice): Alphabetize constants. Add new - local variable Index_Type. The index type of a string literal - subtype is that of the stored low bound. - * sem_eval (Get_Static_Length): Remove the use of Proper_First_Index. - * sem_res.adb (Resolve_Slice): Alphabetize constants. Add - new local variable Index_Type. The index type of a - string literal subtype is that of the stored low bound. - (Set_String_Literal_Subtype): Code reformatting. - -2012-04-26 Robert Dewar - - * exp_aggr.adb: Minor reformatting. - -2012-04-26 Hristian Kirtchev - - * exp_ch7.adb (Expand_Cleanup_Actions): Update the call to - Requires_Cleanup_Actions. - * exp_util.adb (Requires_Cleanup_Actions (List_Id; Boolean; - Boolean)): Rename formal parameter For_Package to Lib_Level to - better reflect its purpose. Update the related comment and all - occurrences of For_Package in the body. - (Requires_Cleanup_Actions - (Node_Id; Boolean)): Add new formal parameter Lib_Level. Add - local constant At_Lib_Level to keep monitor whether the path - taken from the top-most context to the current construct involves - package constructs. Update all calls to Requires_Cleanup_Actions. - * exp_util.ads (Requires_Cleanup_Actions): Add new formal - parameter Lib_Level and associated comment. - -2012-04-26 Ed Schonberg - - * sem_ch6.adb (Process_Formals): If the type of the formal is - a non null access type, mark the generated subtype as having a - delayed freeze only if the designated type is not frozen yet. - -2012-04-26 Vincent Celier - - * prj-attr.adb: New package Clean with attributes - Object_Artifact_Extensions and Source_Artifact_Extensions. - * prj-nmsc.adb (Process_Clean): Process new package Clean - * prj.ads (Language_Config): New components - Clean_Object_Artifacts and Clean_Source_Artifacts. - * snames.ads-tmpl: New standard names Clean, - Object_Artifact_Extensions and Source_Artifact_Extensions. - -2012-04-26 Hristian Kirtchev - - * einfo.adb (Proper_First_Index): Moved from Sem_Util. - * einfo.ads: Add new synthesized attribute Proper_First_Index - along with usage in nodes. - (Proper_First_Index): Moved from Sem_Util. - * sem_util.ads, sem_util.adb (Proper_First_Index): Moved to Einfo. - -2012-04-26 Gary Dismukes - - * layout.adb (Layout_Component_List): Test for the case of a - single variant and the size of its component list was computed - as an integer literal, and use that size (which is in bits) - as is rather than converting to storage units. - -2012-04-26 Robert Dewar - - * exp_aggr.adb: Minor reformatting. - -2012-04-26 Robert Dewar - - * sem_util.adb: Minor reformatting. - -2012-04-26 Thomas Quinot - - * exp_aggr.adb, exp_pakd.adb (Setup_Inline_Packed_Array_Reference, - Packed_Array_Aggregate_Handled.Get_Component_Val): - Reverse bit numbering within PAT when Reverse_Storage_Order - applies to the enclosing record. - -2012-04-26 Thomas Quinot - - * freeze.adb (Freeze_Record_Type): Improve error message for - Scalar_Storage_Order inconsistent with Bit_Order. - -2012-04-25 Gary Dismukes - - * exp_ch9.adb: Add comments on the usage of the - lock-free data structures. - -2012-04-25 Vincent Pucci - - * exp_intr.adb (Expand_Shift): Convert the left - operand and the operator when the type of the call differs from - the type of the operator. - -2012-04-25 Geert Bosch - - * stand.ads: Minor comment fix. - -2012-04-25 Hristian Kirtchev - - * sem_ch4.adb (Analyze_Slice): Handle the case where the prefix - is a string literal. Retrieve the first index from the base type - when slicing a string literal. - * sem_ch12.adb (Check_Private_View): Move the initialization - of the type inside the loop to reflect the changing index. - * sem_eval.adb (Eval_Relational_Op): Retrieve the first index - from the base type when dealing with a string literal. - * sem_res.adb (Resolve_Slice): Retrieve the first index from - the base type when slicing a string literal. - * sem_util.adb (Is_Internally_Generated_Renaming): New routine. - (Is_Object_Reference): String literals may act - as object references only when they are renamed internally. - (Proper_First_Index): New routine. - * sem_util.ads (Proper_First_Index): New routine. - -2012-04-25 Robert Dewar - - * sem_ch3.adb, csinfo.adb, lib-writ.adb, sem_ch12.adb, - lib-xref.adb: Minor reformatting. - -2012-04-25 Hristian Kirtchev - - * exp_ch9.adb: Rename Lock_Free_Sub_Type - to Lock_Free_Subprogram. Remove type Subprogram_Id. - Rename LF_Sub_Table to Lock_Free_Subprogram_Table. - (Allow_Lock_Free_Implementation): Renamed to - Allows_Lock_Free_Implementation. Update the comment on - lock-free restrictions. Code clean up and restructuring. - (Build_Lock_Free_Protected_Subprogram_Body): Update the - profile and related comments. Code clean up and restructuring. - (Build_Lock_Free_Unprotected_Subprogram_Body): Update the - profile and related comments. Code clean up and restructuring. - (Comp_Of): Removed. - -2012-04-25 Vincent Celier - - * sem_ch12.adb (Inherit_Context): Compare library units, not - names of units, when checking if a unit is already in the context. - -2012-04-25 Thomas Quinot - - * sem_ch3.adb: Reverse_Storage_Order must be propagated to - untagged derived record types. - -2012-04-25 Ed Schonberg - - * lib-xref.adb: Adjust position of end label. - -2012-04-22 Jan Hubicka - - * gcc-interface/utils.c (gnat_write_global_declarations): Do not mark - needed node. - -2012-04-20 Jan Hubicka - - * gcc-interface/utils.c (gnat_write_global_declarations): Update for new - force_output placement. - -2012-04-14 Jan Hubicka - - * gcc-interface/trans.c (finalize_nrv): Update field referenced for new - cgraph/varpool layout. - -2012-04-09 Mike Stump - - * a-assert.ads: Remove execute permission. - * a-chacon.ads: Likewise. - * a-coteio.ads: Likewise. - * a-envvar.ads: Likewise. - * a-exetim-mingw.ads: Likewise. - * a-fzteio.ads: Likewise. - * a-izteio.ads: Likewise. - * a-lcteio.ads: Likewise. - * a-llctio.ads: Likewise. - * a-scteio.ads: Likewise. - * a-suenco.ads: Likewise. - * a-suenst.ads: Likewise. - * a-suewst.ads: Likewise. - * a-suezst.ads: Likewise. - * a-tirsfi.ads: Likewise. - * a-wichha.ads: Likewise. - * a-zchara.ads: Likewise. - * a-zchhan.ads: Likewise. - * a-zchuni.ads: Likewise. - * a-zrstfi.ads: Likewise. - * aspects.ads: Likewise. - * g-byorma.ads: Likewise. - * g-decstr.ads: Likewise. - * g-encstr.ads: Likewise. - * g-spchge.ads: Likewise. - * g-u3spch.ads: Likewise. - * g-wispch.ads: Likewise. - * g-zspche.ads: Likewise. - * namet-sp.ads: Likewise. - * s-os_lib.ads: Likewise. - * s-regexp.ads: Likewise. - * s-regpat.ads: Likewise. - * s-string.ads: Likewise. - * s-tasloc.ads: Likewise. - * s-utf_32.ads: Likewise. - * sem_aux.ads: Likewise. - * a-assert.adb: Likewise. - * a-chacon.adb: Likewise. - * a-envvar.adb: Likewise. - * a-exetim-mingw.adb: Likewise. - * a-suenco.adb: Likewise. - * a-suenst.adb: Likewise. - * a-suewst.adb: Likewise. - * a-suezst.adb: Likewise. - * a-tirsfi.adb: Likewise. - * a-wichha.adb: Likewise. - * a-zchhan.adb: Likewise. - * a-zchuni.adb: Likewise. - * a-zrstfi.adb: Likewise. - * aspects.adb: Likewise. - * g-byorma.adb: Likewise. - * g-decstr.adb: Likewise. - * g-encstr.adb: Likewise. - * g-spchge.adb: Likewise. - * g-u3spch.adb: Likewise. - * g-wispch.adb: Likewise. - * g-zspche.adb: Likewise. - * namet-sp.adb: Likewise. - * s-except.adb: Likewise. - * s-inmaop-vxworks.adb: Likewise. - * s-os_lib.adb: Likewise. - * s-regexp.adb: Likewise. - * s-regpat.adb: Likewise. - * s-string.adb: Likewise. - * s-tasloc.adb: Likewise. - * s-utf_32.adb: Likewise. - * s-wchcon.adb: Likewise. - * sem_aux.adb: Likewise. - -2012-04-02 Robert Dewar - - * s-atopri.ads: Minor reformatting. - -2012-04-02 Thomas Quinot - - * sem_util.adb: Minor reformatting, minor code cleanup. - -2012-04-02 Ed Schonberg - - * lib-xref.adb (Generate_Reference): For a reference to an - operator symbol, set the sloc to point to the first character - of the operator name, and not to the initial quaote. - (Output_References): Ditto for the definition of an operator - symbol. - -2012-04-02 Vincent Celier - - * ali.adb (Scan_Ali): Recognize Z lines. Set - Implicit_With_From_Instantiation to True in the With_Record for - Z lines. - * ali.ads (With_Record): New Boolean component - Implicit_With_From_Instantiation, defaulted to False. - * csinfo.adb: Indicate that Implicit_With_From_Instantiation - is special - * lib-writ.adb (Write_ALI): New array Implicit_With. - (Collect_Withs): Set Implicit_With for the unit is it is not Yes. - (Write_With_Lines): Write a Z line instead of a W line if - Implicit_With is Yes for the unit. - * sem_ch12.adb (Inherit_Context): Only add a unit in the context - if it is not there yet. - * sinfo.ads: New flag Implicit_With_From_Instantiation (Flag12) - added. - -2012-04-02 Yannick Moy - - * osint.adb, osint.ads (Add_Default_Search_Dirs): Add library - search dirs in file specified with option -gnateO. - -2012-04-02 Robert Dewar - - * sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb: Minor - reformatting. - -2012-04-02 Olivier Hainque - - * g-sse.ads: Add x86-solaris and x86_64-darwin to the set of - platforms where the use of this spec is supported. Add current - year to the copyright notice. - * gcc-interfaces/Makefile.in: Add g-sse.o and g-ssvety.o to - EXTRA_GNATRTL_NONTASKING_OBJS on x86 32/64 targets that support - it and where they were missing (x86-solaris, x86-freebsd, - x86_64-freebsd, and x86-darwin). - -2012-04-02 Gary Dismukes - - * bindgen.adb (Gen_Ada_Init): When compiling for the AAMP small - library, where we no longer suppress the Standard_Library, - generate an empty body rather than the usual generation of - assignments to imported globals, since those aren't present in - the small library. - -2012-04-02 Ed Schonberg - - * sinfo.ads: Minor documentation fix. - -2012-04-02 Hristian Kirtchev - - * sem_res.adb (Resolve_Conditional_Expression): Add local variables - Else_Typ and Then_Typ. Add missing type conversions to the "then" and - "else" expressions when their respective types are scalar. - -2012-04-02 Vincent Pucci - - * exp_ch9.adb: Reordering of the local subprograms. New Table - for the lock free implementation that maps each protected - subprograms with the protected component it references. - (Allow_Lock_Free_Implementation): New routine. Check if - the protected body enables the lock free implementation. - (Build_Lock_Free_Protected_Subprogram_Body): New routine. - (Build_Lock_Free_Unprotected_Subprogram_Body): New routine. - (Comp_Of): New routine. - * Makefile.rtl: Add s-atopri.o - * debug.adb: New compiler debug flag -gnatd9 for lock free - implementation. - * rtsfind.ads: RE_Atomic_Compare_Exchange_8, - RE_Atomic_Compare_Exchange_16, RE_Atomic_Compare_Exchange_32, - RE_Atomic_Compare_Exchange_64, RE_Atomic_Load_8, - RE_Atomic_Load_16, RE_Atomic_Load_32, RE_Atomic_Load_64, RE_Uint8, - RE_Uint16, RE_Uint32, RE_Uint64 added. - * s-atropi.ads: New file. Defines atomic primitives used - by the lock free implementation. - -2012-04-02 Emmanuel Briot - - * g-expect.adb (Expect_Internal): Fix leak of the input file descriptor. - -2012-04-02 Hristian Kirtchev - - * exp_ch4.adb (Expand_N_Quantified_Expression): Reimplemented. - The expansion no longer uses the copy of the original QE created - during analysis. - * sem.adb (Analyze): Add processing for loop parameter specifications. - * sem_ch4.adb (Analyze_Quantified_Expression): Reimplemented. The - routine no longer creates a copy of the original QE. All - constituents of a QE are now preanalyzed and resolved. - * sem_ch5.adb (Analyze_Iteration_Scheme): Remove the guard which - bypasses all processing when the iteration scheme is related to a - QE. Relovate the code which analyzes loop parameter specifications - to a separate routine. (Analyze_Iterator_Specification): - Preanalyze the iterator name. This action was originally - done in Analyze_Iteration_Scheme. Update the check which - detects an iterator specification in the context of a QE. - (Analyze_Loop_Parameter_Specification): New routine. This - procedure allows for a stand-alone analysis of a loop parameter - specification without the need of a parent iteration scheme. Add - code to update the type of the loop variable when the range - generates an itype and the context is a QE. - (Pre_Analyze_Range): Renamed to Preanalyze_Range. Update all references - to the routine. - * sem_ch5.ads: Code reformatting. - (Analyze_Loop_Parameter_Specification): New routine. - * sem_ch6.adb (Fully_Conformant_Expressions): Detect a case - when establishing conformance between two QEs utilizing different - specifications. - * sem_res.adb (Proper_Current_Scope): New routine. - (Resolve): Do not resolve a QE as there is nothing to be done now. - Ignore any loop scopes generated for QEs when detecting an expression - function as the scopes are cosmetic and do not appear in the tree. - (Resolve_Quantified_Expression): Removed. All resolution of - QE constituents is now performed during analysis. This ensures - that loop variables appearing in array aggregates are properly - resolved. - -2012-04-02 Ed Schonberg - - * sem_util.adb (Build_Default_Subtype): If the base type is - private and its full view is available, use the full view in - the subtype declaration. - -2012-04-02 Jose Ruiz - - * gnat_ugn.texi: Add some minimal documentation about how to - use GNATtest for cross platforms. - -2012-04-02 Vincent Celier - - * opt.ads (Object_Path_File_Name): New variable. - * prj-attr.adb: New Compiler attribute Object_Path_Switches. - * prj-nmsc.adb (Process_Compiler): Recognize new attribute - Object_Path_Switches. - * snames.ads-tmpl: New standard name Object_Path_Switches. - * switch-c.adb (Scan_Front_End_Switches): Recognize new switch - -gnateO= and put its value in Opt.Object_Path_File_Name. - -2012-04-02 Hristian Kirtchev - - * exp_ch7.adb (Process_Declarations): Detect a case where - a source object was initialized by another source object, - but the expression was rewritten as a class-wide conversion - of Ada.Tags.Displace. - * exp_util.adb (Initialized_By_Ctrl_Function): Removed. - (Is_Controlled_Function_Call): New routine. - (Is_Displacement_Of_Ctrl_Function_Result): Removed. - (Is_Displacement_Of_Object_Or_Function_Result): New routine. - (Is_Source_Object): New routine. - (Requires_Cleanup_Actions): Detect a case where a source object was - initialized by another source object, but the expression was rewritten - as a class-wide conversion of Ada.Tags.Displace. - * exp_util.ads (Is_Displacement_Of_Ctrl_Function_Result): Removed. - (Is_Displacement_Of_Object_Or_Function_Result): New routine. - -2012-04-02 Ed Schonberg - - * sem_res.adb (Resolve_Call): A call to an expression function - does not freeze if it appears in a different scope from the - expression function itself. Such calls appear in the generated - bodies of other expression functions, or in pre/postconditions - of subsequent subprograms. - -2012-04-02 Yannick Moy - - * lib-xref-alfa.adb: Code clean up. - -2012-04-02 Ed Schonberg - - * sem_ch12.adb (Analyze_Subprogram_Instantiation): Do not suppress - style checks, because the subprogram instance itself may contain - violations of syle rules. - * style.adb (Missing_Overriding): Check for missing overriding - indicator on a subprogram instance. - -2012-04-02 Hristian Kirtchev - - * sem_ch6.adb (Last_Implicit_Declaration): New routine. - (Process_PPCs): Insert the body of _postconditions after the - last internally generated declaration. This ensures that actual - subtypes created for formal parameters are visible and properly - frozen as _postconditions may reference them. - -2012-04-02 Robert Dewar - - * einfo.adb (First_Component_Or_Discriminant) Now applies to - all types with discriminants, not just records. - * exp_attr.adb (Expand_N_Attribute): Add Scalar_Values handling - for arrays, scalars and non-variant records. - * sem_attr.adb (Analyze_Attribute): Handle Valid_Scalars - * sem_attr.ads (Valid_Scalars): Update description - * sem_util.ads, sem_util.adb (No_Scalar_Parts): New function. - -2012-03-31 Eric Botcazou - - Revert - 2012-03-25 Eric Botcazou - - * gcc-interface/decl.c (SS_MARK_NAME): New define. - (gnat_to_gnu_entity) : Prepend leaf attribute on entities - whose name is SS_MARK_NAME. - -2012-03-30 Robert Dewar - - * exp_ch5.adb, sem_util.adb, exp_ch4.adb: Minor comment updates. - -2012-03-30 Yannick Moy - - * lib-xref-alfa.adb (Add_Alfa_File): Treat possibly 2 units at the same - time, putting all scopes in the same Alfa file. - (Add_Alfa_Xrefs): Correct errors in comparison function. Correct value - of Def component. - (Collect_Alfa): Possibly pass 2 units to Add_Alfa_File. - -2012-03-30 Hristian Kirtchev - - * exp_util.adb (Is_Secondary_Stack_BIP_Func_Call): Handle a case where - a build-in-place call appears as Prefix'Reference'Reference. - -2012-03-30 Yannick Moy - - * lib-xref-alfa.adb: Minor refactoring to remove internal package. - -2012-03-30 Hristian Kirtchev - - * sem_ch5.adb (Analyze_Iteration_Scheme): Preanalyze the subtype - definition of a loop when the context is a quantified expression. - -2012-03-30 Vincent Celier - - * prj.ads: Minor comment update. - -2012-03-30 Yannick Moy - - * lib-xref-alfa.adb, alloc.ads, lib-xref.ads: Minor addition of - comments and refactoring. - -2012-03-30 Robert Dewar - - * lib-xref.adb, lib-xref-alfa.adb: Minor reformatting & code - reorganization. - -2012-03-30 Yannick Moy - - * lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit - instead of Get_Source_Unit to get file for reference. - (Traverse_Compilation_Unit): Do not add scopes for generic units. - * lib-xref.adb (Generate_Reference): Use Get_Code_Unit instead - of Get_Source_Unit to get file for reference. - * sem_ch12.adb (Analyze_Package_Instantiation): Enable - instantiation in Alfa mode. - -2012-03-30 Hristian Kirtchev - - * exp_ch7.adb (Process_Declarations): Replace - the call to Is_Null_Access_BIP_Func_Call with - Is_Secondary_Stack_BIP_Func_Call. Update the related comment. - * exp_util.adb (Is_Null_Access_BIP_Func_Call): Removed. - (Is_Secondary_Stack_BIP_Func_Call): New routine. - (Requires_Cleanup_Actions): Replace - the call to Is_Null_Access_BIP_Func_Call with - Is_Secondary_Stack_BIP_Func_Call. Update the related comment. - * exp_util.ads (Is_Null_Access_BIP_Func_Call): Removed. - (Is_Secondary_Stack_BIP_Func_Call): New routine. - -2012-03-30 Yannick Moy - - * lib-xref-alfa.adb, lib-xref.adb: Code clean ups. - -2012-03-30 Gary Dismukes - - * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): For the case of a - loop entity which is rewritten as a renaming - of the indexed array, explicitly mark the entity as needing - debug info so that Materialize entity will be set later by - Debug_Renaming_Declaration when the renaming is expanded. - -2012-03-30 Robert Dewar - - * sem_attr.ads: Update comment. - -2012-03-30 Vincent Celier - - * prj.ads: New Dependency_Kind: ALI_Closure. - -2012-03-30 Thomas Quinot - - * exp_pakd.adb: Minor reformatting. - -2012-03-30 Yannick Moy - - * lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence - of compilation unit for unit in Sdep_Table. - -2012-03-30 Thomas Quinot - - * freeze.adb (Freeze_Record_Type): For a type with reversed bit - order and reversed storage order, disable front-end relayout. - -2012-03-25 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Copy - the TYPE_PACKED flag from the base type. - -2012-03-25 Eric Botcazou - - * gcc-interface/decl.c (SS_MARK_NAME): New define. - (gnat_to_gnu_entity) : Prepend leaf attribute on entities - whose name is SS_MARK_NAME. - -2012-03-25 Eric Botcazou - - * gcc-interface/utils.c (add_parallel_type): Take a TYPE instead of a - DECL and adjust. Move around. - (has_parallel_type): New predicate. - (rest_of_record_type_compilation): Return early if the type already - has a parallel type. - * gcc-interface/gigi.h (add_parallel_type): Adjust. - * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes. - -2012-03-25 Eric Botcazou - - * gcc-interface/utils.c (finish_record_type): Return early for padded - types and tidy up. - -2012-03-20 Arnaud Charlet - - * hlo.ads, hlo.adb: Removed, no longer used. - * gcc-interface/Make-lang.in: Remove hlo.o. Update dependencies. - * gcc-interface/Makefile.in: Remove EXTRA_LIBGNAT_SRCS (temporarly) - and compute it from EXTRA_LIBGNAT_OBJS. - Clean up comments, reorder LIBGNAT_SRCS and LIBGNAT_OBJS. - -2012-03-20 Yannick Moy - - * gnat_rm.texi, sem_attr.ads: Update documentation. - -2012-03-19 Yannick Moy - - * sem_ch6.adb: Minor code clean up. - -2012-03-19 Vincent Celier - - * make.adb (Scan_Make_Arg): Make sure all significant -m switches - on the command line are counted. - -2012-03-19 Robert Dewar - - * sem_elab.adb (Generate_Elab_Warnings): Fix spec, fix attribute - reference case - -2012-03-19 Robert Dewar - - * par-ch4.adb (Check_Bad_Exp): New procedure - -2012-03-19 Robert Dewar - - * exp_attr.adb, sem_attr.adb, sem_attr.ads, snames.ads-tmpl: Add - initial framework for Valid_Scalars attribute. - -2012-03-19 Robert Dewar - - * scng.adb (Scan): Recognize incorrect preprocessor directive - -2012-03-19 Robert Dewar - - * atree.adb (Allocate_Initialize_Node): Use Num_Extension_Nodes - * atree.ads (Num_Extension_Nodes): New variable - * debug.adb: New debug flag -gnatd.N - * gnat1drv.adb (Adjust_Global_Switches): Adjust - Num_Extension_Nodes if -gnatd.N set - -2012-03-19 Eric Botcazou - - * einfo.ads: Minor update to First_Rep_Item and Has_Gigi_Rep_Item - descriptions. - -2012-03-19 Robert Dewar - - * opt.ads: Remove HLO_Active flag. - * sem.adb: Remove call of high level optimizer. - * sem.ads (New_Nodes_OK): Removed. - * sem_ch10.adb: Remove references to New_Nodes_OK. - * switch-c.adb: Remove handling of -gnatH switch. - -2012-03-19 Yannick Moy - - * sem_ch6.adb (Check_Subprogram_Contract): Do not emit warnings - on trivially True or False postconditions and Ensures components - of contract-cases. - -2012-03-19 Robert Dewar - - * gnat_ugn.texi: Fix index entry for -gnatei (now we have - ug_words entry). - -2012-03-19 Hristian Kirtchev - - * sem_ch3.adb (Get_Discriminant_Value): Instead of looking - at the immediate correcponsing discriminant, traverse a - potential chain of discriminants produced by type derivations. - (Root_Corresponding_Discriminant): Traverse a chain of inherited - discriminants and return the topmost discriminant. - -2012-03-19 Bob Duff - - * debug.adb: Minor comment change. - * gnat_ugn.texi: Update documentation for elaboration regarding - indirect calls. - -2012-03-19 Gary Dismukes - - * exp_ch3.adb (Expand_N_Object_Declaration): In - the case of an object of a class-wide interface type, where the - declaration is rewritten as a renaming, call Set_Debug_Info_Needed - on the renaming entity so that Materialize_Entity will be - set. Also, change existing call (for other than interface cases) - to call Set_Debug_Info_Needed rather than Set_Needs_Debug_Info - (as specified for that flag). - -2012-03-19 Hristian Kirtchev - - * sem_ch4.adb (Analyze_Allocator): Detect an allocator generated - by the build-in-place machinery where the designated type is - indefinite, but the underlying type is not. Do not emit errors - related to missing initialization in this case. - -2012-03-19 Robert Dewar - - * gnat_ugn.texi: Add documentation for -gnateinnn switch. - * sem_elab.adb, put_alfa.adb, lib-xref-alfa.adb: Minor reformatting. - * sem_prag.adb: Minor comment update. - -2012-03-15 Robert Dewar - - * errout.ads: Add entry for translating -gnateinn to - /MAX_INSTANTIATIONS for VMS. - * hostparm.ads (Max_Instantiations): Moved to Opt. - * opt.ads (Maximum_Instantiations): Moved from Hostparm, and renamed. - * sem_ch12.adb (Maximum_Instantiations): New name of - Max_Instantiations (Analyze_Package_Instantiation): Change error - msg for too many instantiations (mention -gnateinn switch). - * switch-c.adb (Scan_Front_End_Switches): Implement -gnateinn switch. - * switch.ads: Minor comment update. - * usage.adb (Usage): Output line for -maxeinn switch. - * vms_data.ads: Add entry for MAX_INSTANTIATIONS (-gnateinn). - -2012-03-15 Yannick Moy - - * alfa.ads Update the decription of ALI sections. - (Alfa_File_Record): Add a component Unit_File_Name to store the - unit file name for subunits. - * get_alfa.adb, put_alfa.adb Adapt to the possible presence of - a unit file name. - * lib-xref-alfa.adb (Add_Alfa_File): For subunits, retrieve the - file name of the unit. - -2012-03-15 Yannick Moy - - * sem_ch6.adb (Check_Subprogram_Contract): Do - not issue warning on missing 'Result in postcondition if all - postconditions and contract-cases already get a warning for only - referring to pre-state. - -2012-03-15 Bob Duff - - * debug.adb: Add new debug switch -gnatd.U, which disables the - support added below, in case someone trips over a cycle, and needs - to disable this. - * sem_attr.adb (Analyze_Access_Attribute): - Treat Subp'Access as a call for elaboration purposes. - * sem_elab.ads, sem_elab.adb (Check_Elab_Call): Add support - for Subp'Access. - -2012-03-15 Vincent Pucci - - * sem.ads, sem.adb (Preanalyze): New routine. - * sem_ch4.adb (Analyze_Quantified_Expression): Call to the - Preanalyze routine in Sem added. Renaming of Needs_Expansion - into Need_Preanalysis. - * sem_ch6.adb (Preanalyze): Removed. - -2012-03-15 Robert Dewar - - * sem_ch4.adb (Analyze_Quantified_Expression): Add comment. - * sem_prag.adb: Minor comment additions. - * sem_attr.adb (Check_First_Last_Valid): Make sure prefix type - is frozen. - -2012-03-15 Vincent Pucci - - * sem_ch4.adb (Analyze_Quantified_Expression): - Preanalyze the condition when the quantified expression will be - further expanded. - -2012-03-15 Yannick Moy - - * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, sem_ch6.adb, - sem_warn.adb: Minor refactoring, renaming Case_Pragma in CTC_Pragma, - to refer to both Test_Case pragma and Contract_Case pragma (same - acronym as in Spec_CTC_List). - -2012-03-15 Robert Dewar - - * sem_prag.adb, sem_prag.ads, sem_util.ads, sem_attr.adb, sem_ch6.adb, - sem_warn.adb: Minor reformatting. - -2012-03-15 Hristian Kirtchev - - * exp_util.adb (Initialized_By_Ctrl_Function): Do not loop over - selector names as the function call always appears at the top selected - component. - -2012-03-15 Ed Schonberg - - * sem_ch12.adb (Validate_Access_Subprogram_Instance): keep - Mode_Conformance check for older versions of the language. - -2012-03-15 Yannick Moy - - * gnat_ugn.texi Document the extension of option -gnatw.t. - * sem_ch3.adb (Analyze_Declaration): Check for suspicious - contracts only after contract cases have been semantically - analyzed. - * sem_ch6.adb (Check_Subprogram_Contract): Consider also Ensures - components of contract cases for detecting suspicious contracts. - -2012-03-15 Yannick Moy - - * aspects.adb, aspects.ads (Aspect_Id): New GNAT aspect - Aspect_Contract_Case. - * gnat_rm.texi Document the new pragma/aspect - Contract_Case. Correct the documentation of the existing - pragma/aspect Test_Case with the new semantics. - * sem_attr.adb (Analyze_Attribute): Allow use of 'Result in the - Ensures component of a Contract_Case pragma. - * sem_ch13.adb (Analyze_Aspect_Specifications): Check new aspect - and translate it into a pragma. - (Check_Aspect_At_Freeze_Point): Take into account the new aspect. - * sem_ch3.adb, sinfo.adb, sinfo.ads Renaming of TC (for test case) - into CTC (for contract and test case). - * sem_ch6.adb (Process_PPCs): Generate Check pragmas from - Contract_Case pragmas, similarly to what is done already for - postconditions. - * sem_prag.adb, sem_prag.ads (Check_Contract_Or_Test_Case): - Renaming of Check_Test_Case. - (Analyze_Pragma, Sig_Flags): Take into account the new pragma. - * sem_util.adb, sem_util.ads Renaming to take into account the - new pragma, so that functions which applied only to Test_Case - now apply to both Test_Case and Contract_Case. - * par-prag.adb, sem_warn.adb, snames.ads-tmpl Take into account - the new pragma. - -2012-03-15 Robert Dewar - - * sem_ch6.ads: Minor comment updates. - * sem_ch12.adb: Minor comment clarification. - -2012-03-15 Robert Dewar - - * sem_ch5.adb: Minor reformatting. - -2012-03-15 Ed Schonberg - - * exp_ch3.adb (Expand_N_Object_Declaration): When rewriting the - declaration of a class-wide object, retain the Ekind to prevent - subsequent misuse of constants. - -2012-03-15 Yannick Moy - - * gnat_rm.texi, gnat_ugn.texi: Minor correction of invariant - terminology. - -2012-03-15 Hristian Kirtchev - - * exp_util.adb (Initialized_By_Ctrl_Function): Add code to - process the case when a function call appears in object.operation - format. - -2012-03-15 Ed Schonberg - - * sem_ch6.ads, sem_ch6.adb (Check_Subtype_Conformant): add - Get_Inst formal, so that conformance within an instantiation - follows renamings of formals. This is similar to what is already - done in Check_Mode_conformant. - * sem_ch12.adb (Vailidate_Access_Subprogram_Instance): check that - formal and actual are subtype conformant. Previously only mode - conformance was required. - -2012-03-15 Robert Dewar - - * par-ch6.adb, einfo.ads, sem_eval.adb, sem_eval.ads, - sem_case.adb: Minor reformatting. - -2012-03-15 Robert Dewar - - * exp_attr.adb (Expand_N_Attribute_Reference): Add handling - of First_Valid/Last_Valid. - * sem_attr.adb (Check_First_Last_Valid): New procedure - (Analyze_Attribute): Add handling of First_Valid and Last_Valid - (Eval_Attribute): ditto. - * snames.ads-tmpl: Add entries for First_Valid and Last_Valid. - -2012-03-15 Ed Schonberg - - * exp_ch5.adb (Expand_Predicated_Loop): Suppress warnings on - loop variable, for the unusual case where the range has a single - element and the loop variable has no visible assignment to it. - -2012-03-15 Vincent Pucci - - * exp_ch4.adb (Expand_N_Quantified_Expression): Expand the - original quantified expression node. - * sem_ch4.adb (Analyze_Quantified_Expression): Properly analyze - the quantified expression and preserve the original non-analyzed - quantified expression when an expansion is needed. - * sem_ch5.adb (Analyze_Iteration_Scheme): Special treatment - for quantified expressions. - (Analyze_Iterator_Specification): Special treatment for quantified - expressions. - -2012-03-15 Ed Falis - - * s-vxwork-ppc.ads: Update FP_CONTEXT so name of former pad - field matches VxWorks headers. - -2012-03-14 Rainer Orth - - * gcc-interface/Makefile.in (mips-sgi-irix6*): Remove. - - * a-intnam-irix.ads, mlib-tgt-specific-irix.adb, - s-intman-irix.adb, s-mastop-irix.adb, s-osinte-irix.adb, - s-osinte-irix.ads, s-proinf-irix-athread.adb, - s-proinf-irix-athread.ads, s-taprop-irix.adb, s-tasinf-irix.ads, - system-irix-n32.ads, system-irix-n64.ads, system-irix-o32.ads: - Remove. - - * adaint.c [__mips && __sgi]: Remove. - (__gnat_number_of_cpus) [__mips && __sgi]: Remove. - [IS_CROSS && !(__mips && __sgi)]: Remove. - * adaint.h [sgi && _LFAPI]: Remove. - * cstreams.c (__gnat_full_name) [sgi]: Remove. - * env.c (__gnat_unsetenv) [__mips && __sgi]: Remove. - (__gnat_clearenv) [__mips && __sgi]: Remove. - * errno.c (_SGI_MP_SOURCE): Remove. - * gsocket.h [sgi]: Remove. - * init.c: Remove IRIX reference. - [sgi]: Remove. - * link.c [sgi]: Remove. - * s-oscons-tmplt.c [__mips && __sgi] (IOV_MAX): Don't define. - (main) [__mips && __sgi] (MAX_tv_sec): Don't define. - (CLOCK_SGI_FAST, CLOCK_SGI_CYCLE): Remove. - * sysdep.c [sgi]: Remove. - (getc_immediate_common) [sgi]: Remove. - (__gnat_localtime_tzoff) [sgi]: Remove. - * terminals.c [__mips && __sgi] (IRIX): Don't define. - [IRIX] (USE_GETPTY): Don't define. - (allocate_pty_desc) [USE_GETPTY]: Remove. - - * g-traceb.ads: Remove IRIX reference. - * g-trasym.ads: Likewise. - * memtrack.adb: Likewise. - * s-interr-sigaction.adb: Likewise. - - * gnat_rm.texi (Implementation Advice): Remove SGI info. - (Implementation Defined Characteristics): Likewise. - * gnat_ugn.texi (Summary of Run-Time Configurations, mips-irix): - Remove. - (Irix-Specific Considerations): Remove. - -2012-03-13 Tristan Gingold - - * gcc-interface/gigi.h (flag_vms_malloc64): Refine condition. - -2012-03-13 Tristan Gingold - - * sysdep.c: Adjust condition after removal of __osf__. - -2012-03-12 Eric Botcazou - - * gcc-interface/gigi.h (shift_unc_components_for_thin_pointers): Kill. - * gcc-interface/decl.c (gnat_to_gnu_entity) : Remove call - to above function. - * gcc-interface/trans.c (Attribute_to_gnu) : Adjust - handling of thin pointers. - : Likewise. - (gnat_to_gnu) : Likewise. - * gcc-interface/utils.c (shift_unc_components_for_thin_pointers): Kill. - (convert_to_fat_pointer): Adjust handling of thin pointers. - (convert) : Likewise. - * gcc-interface/utils2.c (build_unary_op) : Likewise. - -2012-03-12 Rainer Orth - - * gcc-interface/Makefile.in (alpha*-dec-osf*): Remove. - * a-intnam-tru64.ads, mlib-tgt-specific-tru64.adb, - s-mastop-tru64.adb, s-osinte-tru64.adb, s-osinte-tru64.ads, - s-taprop-tru64.adb, s-tasinf-tru64.ads, s-taspri-tru64.ads, - system-tru64.ads: Remove. - - * adaint.c (__gnat_number_of_cpus) [__alpha__ && __osf__]: - Remove. - [IS_CROSS] [!(__alpha__ && __osf__)]: Remove. - * env.c [__alpha__ && __osf__]: Remove. - * gsocket.h (_OSF_SOURCE): Remove. - (HAVE_THREAD_SAFE_GETxxxBYyyy) [__osf__]: Remove. - * init.c [__alpha__ && __osf__]: Remove. - * link.c [__osf__]: Remove. - * s-oscons-tmplt.c [__alpha__ && __osf__]: Remove. - [__osf__ && !_SS_MAXSIZE]: Remove. - * sysdep.c [__osf__]: Remove. - * terminals.c [__alpha__ && __osf__]: Remove. - [OSF1]: Remove. - - * g-traceb.ads: Remove Tru64 reference. - * g-trasym.ads: Likewise. - * gnat_ugn.texi (Linking a Mixed C++ & Ada Program): Likewise. - (Summary of Run-Time Configurations): Likewise. - * memtrack.adb: Likewise. - -2012-03-12 Tristan Gingold - - * gcc-interface/decl.c (gnat_to_gnu_param): Use flag_vms_malloc64 - instead of TARGET_MALLOC64. - * gcc-interface/gigi.h (flag_vms_malloc64): Define instead - of TARGET_MALLOC64. - -2012-03-09 Robert Dewar - - * a-direct.adb, comperr.adb, freeze.adb: Minor reformatting. - -2012-03-09 Arnaud Charlet - - * s-taskin.adb (Initialize_ATCB): Set Task_Image_Len to - 0 so that we never access this field uninitialized (e.g. in - Task_Primitives.Operations.Enter_Task for the environment task). - -2012-03-09 Vincent Pucci - - * exp_ch5.adb (Expand_Iterator_Loop): - Call to Expand_Iterator_Loop_Over_Array added. - (Expand_Iterator_Loop_Over_Array): New routine. Expansion of - "of" iterator loop over arrays. Multidimensional array case added. - -2012-03-09 Eric Botcazou - - * uintp.ads: Fix minor pasto in comment. - -2012-03-09 Vasiliy Fofanov - - * a-direct.adb: Do not strip the trailing directory separator - from path, as this is already done inside Normalize_Pathname; - doing it again produces the wrong result on Windows for the - drive's root dir (i.e. "X:\" becomes "X:"). - -2012-03-09 Thomas Quinot - - * exp_attr.adb, freeze.adb, sem_attr.adb, aspects.adb, aspects.ads, - sem_ch13.adb, snames.ads-tmpl (Exp_Attr.Expand_N_Attribute_Reference): - Add Attribute_Scalar_Storage_Order. - (Sem_Attr.Analyze_Attribute, Eval_Attribute): Ditto. - (Aspects): Add Aspect_Scalar_Storage_Order (Snames): Add - Name_Scalar_Storage_Order and Attribute_Scalar_Storage_Order. - (Sem_Ch13.Analyze_Attribute_Definition_Clause): Add processing - for Scalar_Storage_Order. - (Freeze): If Scalar_Storage_Order is specified, check that it - is compatible with Bit_Order. - -2012-03-09 Robert Dewar - - * s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb, - a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb, - a-stzsup.ads: Minor reformatting. - -2012-03-09 Thomas Quinot - - * s-ransee-vms.adb: Minor reformatting. - -2012-03-09 Arnaud Charlet - - * comperr.adb (Delete_SCIL_Files): Fix handling of - N_Package_Renaming_Declaration and N_Generic_Package_Declaration. - -2012-03-09 Javier Miranda - - * sem_ch6.adb (Check_Body_To_Inline): In AAMP and VM targets - use frontend inlining at all optimization levels. - * sem_util.adb (Must_Inline): In AAMP and VM targets, given that - there is no inlining support in the backend, use also frontend - inlining when compiling with optimizations enabled. - * exp_ch6.adb (Expand_Call): Minor code reorganization. - -2012-03-09 Eric Botcazou - - * gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around. - (TYPE_UNCONSTRAINED_ARRAY): Adjust comment. - * gcc-interface/trans.c (Attribute_to_gnu) : Tidy - up. Add comment and use canonical predicate for thin pointers. - (gnat_to_gnu) : Tidy up and reorder. Add comment - and use canonical predicate for thin pointers. - * gcc-interface/utils.c (convert_to_fat_pointer): Remove superfluous - 'else' and use standard name. - (convert_to_thin_pointer): Delete. - (convert) : Do the difference in sizetype directly and - change obsolete idioms. Do not call above function. - (unchecked_convert): Fix formatting. - * gcc-interface/utils2.c (build_unary_op) : In the thin - pointer case, use byte_position to get the field position. - -2012-03-07 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set flags on the - DECL node built for a type which has a non-trivial equivalent type. - -2012-03-07 Eric Botcazou - - * gcc-interface/gigi.h (rest_of_type_decl_compilation): Delete. - * gcc-interface/decl.c (defer_finalize_level): Likewise. - (defer_finalize_list): Likewise. - (gnat_to_gnu_entity): Delete references to above variables and do not - call rest_of_type_decl_compilation. - (rest_of_type_decl_compilation): Delete. - (rest_of_type_decl_compilation_no_defer): Likewise. - * gcc-interface/utils.c (rest_of_record_type_compilation): Do not call - rest_of_type_decl_compilation. - (create_type_decl): Likewise. - (update_pointer_to): Likewise. - -2012-03-07 Eric Botcazou - - * gcc-interface/trans.c (Identifier_to_gnu): Don't unshare initializer. - (add_decl_expr): Mark external DECLs as used. - * gcc-interface/utils.c (convert) : Copy the vector. - -2012-03-07 Tristan Gingold - - * s-ransee-vms.adb: New file. - * gcc-interface/Makefile.in: Use s-ransee-vms.adb on VMS. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-03-07 Bob Duff - - * rtsfind.ads: Add support for finding Super_String types. - * sem_util.ads, sem_util.adb (Is_Bounded_String): New function - to determine whether a given type is a bounded string type. - (Is_Fully_Initialized_Type): Return True for bounded - string types, to suppress bogus warnings. - * exp_ch4.adb (Expand_Composite_Equality): Special case for bounded - strings: equality composes. This allows us to remove default values in - super strings. - * a-strsup.ads, a-stwisu.ads, a-stzsup.ads: Update comments. - * exp_ch3.adb (Expand_Freeze_Record_Type): Comment. - -2012-03-07 Robert Dewar - - * sem_util.adb, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb: Minor - reformatting. - -2012-03-07 Sergey Rybin - - * gnat_ugn.texi: gnatpp: fix paragraph about sources with - preprocessor directives. - -2012-03-07 Arnaud Charlet - - * s-osinte-linux.ads, s-taprop-linux.adb (prctl): New function. - (Enter_Task): Call prctl when relevant. - -2012-03-07 Tristan Gingold - - * s-osinte-vms.ads: pthread_mutex_setname_np: new function. - -2012-03-07 Ed Schonberg - - * sem_ch6.adb (Process_Formals): a generic subprogram with - a formal incomplete type does not require a freeze node. - -2012-03-07 Bob Duff - - * sem_util.ads: Minor reformatting. - -2012-03-07 Geert Bosch - - * targparm.ads: New target parameter Atomic_Sync_Default, - defaulting to True. - * targparm.adb (Get_Target_Parameters): Add processing for - Atomic_Sync_Default. - * gnat1drv.adb (Adjust_Global_Switches): Adjust Supress_Options - based on ASD. - -2012-03-07 Javier Miranda - - * sem_ch3.adb (Analyze_Object_Declaration): If the object - declaration has an init expression then stop the analysis of the - object declaration if the expression which initializes the object - is a call to an inlined function which returns an unconstrained - and has been expanded into a procedure call. - * sem_ch5.adb (Has_Call_Using_Secondary_Stack): Add missing - support to handle selected components. - * sem_ch6.ads (Cannot_Inline): Adding parameter Is_Serious plus - documentation. - * sem_ch6.adb (Check_And_Build_Body_To_Inline): New - subprogram which implements the checks required by the - new rules for frontend inlining and builds the body to inline. - (Analyze_Subprogram_Body_Helper): Move code that - checks inlining of subprogram that has nested subprogram - to Check_And_Build_Body_To_Inline. Replace call to - Build_Body_To_Inline by call to the new subprogram - Check_And_Build_Body_To_Inline. - (Cannot_Inline): New implementation. - * sem_ch12.adb (Analyze_Package_Instantiation.Must_Inline_Subp): - New subprogram. - * sem_util.ad[sb] (Must_Inline): New subprogram. - (Returns_Unconstrained_Type): New subprogram. - * sem_res.adb (Resolve_Call): Do not create a transient scope - for inlined calls. - * inline.ads (Analyzing_Inlined_Bodies): Remove unreferenced variable. - * inline.adb (Analyze_Inlined_Bodies, Initialize): Remove setting - to false the variable Analyzing_Inlined_Bodies. Fix comments. - * exp_ch4.adb (Expand_N_Allocator): Fix handling of finalization master. - * exp_ch6.ads (List_Inlining_Info): New subprogram. - * exp_ch6.adb (Expand_Call.Do_Inline): New subprogram. - (Expand_Call.Do_Inline_Always): New subprogram. - (In_Unfrozen_Instance): Move the declaration of this subprogram. - (Expand_Inlined_Call.Reset_Dispatching_Calls): New subprogram. - (Expand_Inlined_Call): Adding new support for inlining functions - that return unconstrained types. - (List_Inlining_Info): New subprogram. - * debug.adb Document flags -gnatd.j and -gnatd.k - * gnat1drv.adb Add call to generate the new listing of inlined - calls and calls passed to the backend. - -2012-03-07 Robert Dewar - - * sem_ch5.adb, s-vaflop.adb, s-taprop-vms.adb, exp_ch6.adb, - s-gearop.adb, sem_ch6.adb, g-trasym.adb: Minor reformatting. - -2012-03-07 Javier Miranda - - * a-ngrear.ads: Add documentation. - -2012-03-07 Tristan Gingold - - * s-taprop-vms.adb (Create_Task): set thread name. - * s-osinte-vms.ads (pthread_attr_setname_np): Declare. - -2012-03-07 Arnaud Charlet - - * g-trasym.adb: Minor reformatting. - -2012-03-07 Robert Dewar - - * a-ngrear.ads: Minor addition of ??? comment. - -2012-03-07 Gary Dismukes - - * exp_ch4.adb (Apply_Accessibility_Check): Call - Remove_Side_Effects in the build-in-place case, to ensure that - we capture the call and don't end up with two calls. - -2012-03-07 Javier Miranda - - * exp_ch6.adb (Expand_Inlined_Call): Skip inlining of functions - that return unconstrained types using an extended return statement - since the support for inlining these functions has not been yet - added to the frontend. - * s-vaflop.adb, s-vaflop-vms-alpha.adb: Code reorganization. - * a-ngrear.ads: Replace all the Inline_Always pragmas by pragma - Inline. - * a-ngrear.adb (Eigenvalues, Transpose): Restructured to use - extended return statement. - * a-strsup.adb, a-stzsup.adb, a-stwisu.adb (Concat, Super_Slice, - Super_To_String): Restructured to use extended return statement. - * a-chahan.adb (To_Basic, To_Lower, To_Upper): Restructured to - use extended return statement. - * s-gearop.adb (Diagonal, Matrix_Elementwise_Operation, - Vector_Elementwise_Operation, Matrix_Elementwise_Operation, - Matrix_Matrix_Scalar_Elementwise_Operation, - Vector_Vector_Elementwise_Operation, - Vector_Vector_Scalar_Elementwise_Operation, - Matrix_Scalar_Elementwise_Operation, - Vector_Scalar_Elementwise_Operation, - Scalar_Matrix_Elementwise_Operation, - Scalar_Vector_Elementwise_Operation, Matrix_Matrix_Product, - Matrix_Vector_Product, Outer_Product, Unit_Matrix, Unit_Vector, - Vector_Matrix_Product): Restructured to use extended return - statement. - -2012-03-07 Vincent Pucci - - * sem_ch5.adb (One_Bound): Minor reformatting. - -2012-03-07 Tristan Gingold - - * s-osinte-vms-ia64.adb, s-osinte-vms-ia64.ads, s-osinte-vms.adb, - s-osinte-vms.ads, gcc-interface/Makefile.in: Merge s-osinte-vms and - s-osinte-vms-ia64. - -2012-03-07 Ed Schonberg - - * checks.adb (Apply_Predicate_Check): Do not generate a predicate - check is the context is an internally generated type-specific - function. - * sem_ch6.adb (Process_PPCs); the formals of internally generated - type-specific functions do not get assertion checks. - -2012-03-07 Yannick Moy - - * gnat_rm.texi: Minor renaming of title. - * gnat_ugn.texi: Minor correction. - -2012-03-07 Vincent Pucci - - * exp_ch4.adb (Expand_N_Quantified_Expression): Minor - reformating. - * sem_ch4.adb (Analyze_Quantified_Expression): Creation and - analysis of the iteration scheme added in all cases. - * sem_ch5.adb (Analyze_Iteration_Scheme): Minor reformating. - (Analyze_Iterator_Specification): Minor reformating. - * sem_res.adb (Resolve_Quantified_Expression): Resolution of - the condition added in all cases. - -2012-03-07 Thomas Quinot - - * einfo.adb, einfo.ads: Add flag Reverse_Storage_Order. - -2012-03-07 Yannick Moy - - * gnat_rm.texi, gnat_ugn.texi: Rewording of GNAT UG and GNAT RM to - account for Ada 2012 assertions, and their pragma counterparts in GNAT. - -2012-03-07 Thomas Quinot - - * exp_attr.adb, sem_attr.adb: Minor reformatting. - -2012-03-07 Bob Duff - - * hostparm.ads (Max_Instantiations): Increase parameter. - -2012-03-07 Bob Duff - - * par-prag.adb: Minor code rearrangement. - -2012-03-07 Bob Duff - - * a-strsup.ads, a-stwisu.ads, a-stzsup.ads (Super_String): - Remove default initial value for Data. It is no longer needed - because "=" now composes properly for untagged records. This - default has caused efficiency problems. - -2012-03-07 Ed Schonberg - - * sem_res.adb (Resolve_Actuals): If the actual is a selected - component of an anonymous access type, whose prefix is a variable, - treat the variable as if it may be modified by the call, to - suppress spurious warnings that a variable might be declared as - a constant. - -2012-03-07 Thomas Quinot - - * einfo.adb, einfo.ads: Remove unused entity flags. - -2012-03-07 Eric Botcazou - - * gnat_ugn.texi (Inline Assembler): Fix swapping of Input and - Output operands throughout. - -2012-03-07 Hristian Kirtchev - - * sem_ch12.adb (Earlier): When two nodes come from the same - generic instantiation, compare their locations. Otherwise always - use the top level locations of the nodes. - -2012-03-07 Thomas Quinot - - * einfo.ads, sem_prag.adb: Minor reformatting. - -2012-03-05 Jason Merrill - - * gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn - before using it. - -2012-03-04 Eric Botcazou - - * gnatvsn.ads (Library_Version): Bump to 4.8. - -2012-03-03 H.J. Lu - - * init.c (__gnat_adjust_context_for_raise): Also check - "orq $0x0,(%esp)" for x32. - - * link.c (__gnat_default_libgcc_subdir): Set to libx32 for x32. - - * gcc-interface/Makefile.in (arch): Set to x32 if MULTISUBDIR - is /x32 and add support for x32. - -2012-02-29 Eric Botcazou - - * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter - and set TYPE_ARTIFICIAL according to it. Adjust recursive call. - (gnat_to_gnu_entity) : Adjust call to above function. - * gcc-interface/utils.c (rest_of_record_type_compilation): Do not - invoke rest_of_type_decl_compilation on the parallel type, if any. - -2012-02-29 Eric Botcazou - - * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the - dummy global built for global types is preserved. - -2012-02-27 Tristan Gingold - - * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type, - E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and - gnu_template_type. - -2012-02-27 Eric Botcazou - - * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking. - (TYPE_BY_REFERENCE_P): New flag. - (TYPE_IS_BY_REFERENCE_P): New macro. - (TYPE_DUMMY_P): Add checking and remove VOID_TYPE. - (TYPE_IS_DUMMY_P): Adjust for above change. - * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P - and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE. - (gnat_to_gnu_param): Likewise. - (maybe_pad_type): Likewise. - (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P. - * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P - instead of TREE_ADDRESSABLE. - * gcc-interface/trans.c (finalize_nrv): Likewise. - (call_to_gnu): Likewise. Do not create a temporary for return values - with by-reference type here. - (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P. - (gnat_gimplify_expr) : Don't do anything for non-constant - CONSTRUCTORs and calls. - * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of - the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P - instead of TREE_ADDRESSABLE. - * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference - types explicitly. - -2012-02-27 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Revert previous - change that creates a special VAR_DECL for debugging purposes. For an - aliased object with an unconstrained nominal subtype, make its type a - thin reference to the underlying object. - * gcc-interface/utils2.c (build_unary_op) : Deal with - expressions built for the initialization of above objects. - -2012-02-24 Dave Korn - - * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New - Windows-specific make variable. - (WIN_SO_INSTALL_DIR [windows targets]): Likewise. - (install-gnatlib): Respect the above during installation when set, - and also install any windows import library that has been built. - (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also - build a corresponding import library. - -2012-02-22 Robert Dewar - - * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor - reformatting. - -2012-02-22 Geert Bosch - - * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove - x86-specific version of byteswap and use GCC builtins instead. - -2012-02-22 Tristan Gingold - - * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type, - E_Array_Type]: Translate component ealier. - -2012-02-22 Robert Dewar - - * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize - error message for 'Range. - -2012-02-22 Pascal Obry - - * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as - this is our own thread. - -2012-02-22 Sergey Rybin - - * tree_io.ads: Update ASIS_Version_Number because of the changes - in Snames. - -2012-02-22 Hristian Kirtchev - - * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on - stack-related finalizers. - -2012-02-22 Ed Schonberg - - * sem_ch6.adb (Analyze_Expression_Function): If the construct - is a completion, indicate that its formals are the formals of - a completion, and as such do not get a cross- reference entry. - (Analyze_Subprogram_Specification): Do not generate a definition - for the entity of an expression function, because it may be a - completion. Definition will be generated if needed when analyzing - the generated subprogram declaration. - -2012-02-22 Vincent Celier - - * make.adb (Check): When checking if an object file is in the - correct object directory, get the unit name from a previous call - to Check_Source_Info_In_ALI. - * makeutl.adb (Check_Source_Info_In_ALI): Return the name of - the unit when everything is OK, otherwise return No_Name. - * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead - of Boolean - -2012-02-22 Ed Schonberg - - * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an - instance, the operator is visible if an operand is of some - numeric type which is not in use or directly visible, and the - other operand is a numeric literal. - -2012-02-22 Tristan Gingold - - * init.c: Minor code clean up. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-02-22 Arnaud Charlet - - * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node, - otherwise GCC will generate an object file. - -2012-02-22 Vincent Celier - - * projects.texi: Correct typo related to "**" in Source_Dirs. - -2012-02-22 Steve Baird - - * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of - error message text. - -2012-02-22 Vincent Pucci - - * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and - System_Dim_Child cases added. - * rtsfind.ads: Ada_Numerics, - Ada_Numerics_Generic_Elementary_Functions, System_Dim, - System_Dim_Float_IO and System_Dim_Integer_IO added to the list - of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as - new RTU_Id subtypes. - * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of - Rtsfind to verify the package entity is located either - in System.Dim.Integer_IO or in System.Dim.Float_IO. - (Is_Dim_IO_Package_Instantiation): Minor - changes. (Is_Elementary_Function_Call): Removed. - (Is_Elementary_Function_Entity): New routine. - (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added. - * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions - removed. - -2012-02-22 Vincent Pucci - - * sem_prag.adb: Minor reformatting. - -2012-02-22 Ed Schonberg - - * sem_ch3.adb (Find_Type_Name): When analyzing a private type - declaration that is the completion of a tagged incomplete type, do - not associate the class-wide type already created with the private - type to prevent order-of-elaboration issues in the back-end. - * exp_disp.adb (Find_Specific_Type): Find specific type of - a class-wide type, and handle the case of an incomplete type - coming either from a limited_with clause or from an incomplete - type declaration. Used when expanding a dispatchin call and - generating tag checks (minor refactoring). - -2012-02-22 Robert Dewar - - * exp_ch5.adb: Add comment. - * sem_ch12.adb, exp_ch6.adb: minor reformatting - -2012-02-22 Ed Schonberg - - * freeze.adb (Freeze_Entity): Do not perform type layout within - a generic unit. - -2012-02-22 Eric Botcazou - - * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to - Storage_Error. - -2012-02-22 Ed Schonberg - - * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an - assignment to a classwide type whose type is limited, as - can happen in an instantiation in programs that run afoul or - AI05-0087. - -2012-02-17 Ed Schonberg - - * exp_ch6.adb (Legal_Copy): If layout is not - determined in the front-end, do not emit error message when - by-reference actual is potentially unaligned. - * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for - illegal representation clause on tagged or aliased component, or on - by-reference type with forced alignment. - -2012-02-17 Nicolas Roche - - * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is - propagated by gnatlib-sjlj and gnatlib-zcx targets. - * gcc-interface/Make-lang.in: Update dependencies. - -2012-02-17 Thomas Quinot - - * sem_ch12.adb (Analyze_Package_Instantiation): For an - instantiation in an RCI library unit, omit the instance body - if the RCI library unit is the instance itself (E.2.3(18)), - but include the body if the instantiation is within the RCI - declaration (12.3(12)). - -2012-02-17 Steve Baird - - * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and - Post'Class aspects can only be specified for a primitive operation - of a tagged type. - -2012-02-17 Yannick Moy - - * gnat_rm.texi: Minor shuffling. - -2012-02-17 Ed Schonberg - - * aspects.adb: Expression functions can carry pre/postconditions. - * par-ch6.adb (P_Subprogram): look for optional pre/postconditions - in an expression function. - * sem_prag (Check_Precondition_Postcondition): legal on expression - functions. - -2012-02-17 Vincent Pucci - - * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb, - * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb, - * a-convec.adb, a-coorma.adb (Adjust): New routine. - (Constant_Reference): Increment Busy and Lock counters. - (Reference): Increase Busy and Lock counters. - (Finalize): New routine. - * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb: - (Adjust): New routine. (Constant_Reference): Increment Busy - and Lock counters. - (Finalize): New routine. - * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads, - * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads, - * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads, - * a-coorma.ads, a-coorse: Controlled component added to the - reference types. - -2012-02-17 Robert Dewar - - * restrict.adb (Check_Restriction): Add special handling for - No_Obsolescent_Features. - -2012-02-17 Hristian Kirtchev - - * exp_util.adb (Find_Finalize_Address): When dealing with an - internally built full view for a type with unknown discriminants, - use the original record type. - -2012-02-17 Robert Dewar - - * sem_dim.adb: Minor reformatting. - -2012-02-17 Yannick Moy - - * gnat_rm.texi: Minor rewording. - -2012-02-17 Thomas Quinot - - * sem_aggr.adb: Minor reformatting. - -2012-02-17 Robert Dewar - - * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case. - -2012-02-17 Vincent Pucci - - * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine. - (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity - call added. - (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity - call added. - * s-dim.ads: Make package Pure. - -2012-02-17 Gary Dismukes - - * prj-nmsc.adb: Minor reformatting. - -2012-02-17 Yannick Moy - - * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions. - -2012-02-17 Yannick Moy - - * gnat_ugn.texi: Fix typos. - -2012-02-17 Pascal Obry - - * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an - aggregate is not Externally_Built. - -2012-02-17 Ed Schonberg - - * sem_aggr.adb (Resolve_Record_Aggregate): If a composite - component has a box association, copy the default value using - the current scope as the scope of internal types, to prevent - scoping anomalies in gigi. - -2012-02-17 Robert Dewar - - * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb, - sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb, - exp_intr.adb, s-os_lib.adb: Minor reformatting. - -2012-02-17 Ed Schonberg - - * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the - old operation is abstract, the relevant type is not abstract, - and the new subprogram fails to override. - -2012-02-15 Eric Botcazou - - * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the - type of the result to the end and execute it for a deferred constant of - a discriminated type whose full view can be elaborated statically. - -2012-02-15 Eric Botcazou - - * gcc-interface/trans.c (gnat_to_gnu) : If the - type is tagged, mark it as used for debugging purposes. - : Likewise for a qualified expression. - -2012-02-15 Eric Botcazou - - * gcc-interface/trans.c (call_to_gnu): Create the temporary for the - return value in the by-reference return type case if this isn't the - expression of an object declaration. Tidy up. - -2012-02-09 Tristan Gingold - - * gcc-interface/Makefile.in: Remove .sym rule (not used). - Remove adamsg.o object (requires native message compiler). - * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a - macro instead of as extern int. - (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR) - (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT) - (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH) - (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC) - (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH) - (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH) - (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH) - (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR) - (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise. - (struct cond_except): Field cond is now an unsigned int. - (dec_ada_cond_except_table): Adjust. - (cond_except_table): Likewise. - (cond_resignal_table): Likewise. - (__gnat_default_resignal_p): Fix style. - -2012-02-08 Vincent Celier - - * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects - (g-buorma is now imported by sinput). - Update dependencies. - * scn.adb (Initialize_Scanner): Call Check_For_BOM - * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM - * sinput.adb: New procedure Check_For_BOM - * sinput.ads: New procedure Check_For_BOM - -2012-02-08 Vincent Pucci - - * impunit.adb: Dimension package names updated - * Makefile.rtl: s-dim added - * sem_dim.adb (Is_Procedure_Put_Call): minor changes - (Is_Dim_IO_Package_Instantiation): minor changes - * sem_dim.ads: minor changes in comments - * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and - Name_Dim_Integer_IO removed - * s-dim.ads: New package. Define the dimension terminology. - * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads, - * s-dmotpr.ads: Package names updated. - * s-diflio.ads, s-diinio.ads: Documentation added and package - names updated. - -2012-02-08 Gary Dismukes - - * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test - for storage pools to test for an underlying record type rather than - testing Is_Tagged_Type, so that simple storage pools will be handled - the same as normal Ada storage pools. - -2012-02-08 Yannick Moy - - * gnat_rm.texi: Minor reshuffling to place restriction at - appropriate place. - -2012-02-08 Bob Duff - - * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value - False for '-gnatwA', to suppress these warnings. - -2012-02-08 Vincent Celier - - * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before - starting to scan, so that UTF8 encoding is taken into account. - -2012-02-08 Arnaud Charlet - - * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New - function. - (Complete_Rendezvous): Now call Internal_Complete_Rendezvous. - (Exceptional_Complete_Rendezvous): Mark No_Return. - -2012-02-08 Eric Botcazou - - * exp_aggr.adb (Compile_Time_Known_Composite_Value): - New predicate to compute whether a composite value can be - evaluated at compile time. - (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all - expressions of elementary type and Compile_Time_Known_Composite_Value - for all other expressions. - (Expand_Record_Aggregate): Convert to assignments in the case - of a type with mutable components if the aggregate cannot be - built statically. - -2012-02-08 Gary Dismukes - - * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type. - (Impl_Defined_Aspects): Add association for - Aspect_Simple_Storage_Pool_Type. - (Aspect_Names): Add - association for Aspect_Simple_Storage_Pool_Type. - * aspects.adb: - (Canonical_Aspect): Add association for Simple_Storage_Pool_Type. - * exp_attr.adb (Expand_N_Attribute_Reference): - Change name to Name_Simple_Storage_Pool_Type. - * exp_ch4.adb (Expand_N_Allocator): Change - name to Name_Simple_Storage_Pool_Type. - * exp_intr.adb (Expand_Unc_Deallocation): Change name to - Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity): - Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb: - Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb: - (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type. - * sem_ch13.adb (Analyze_Attribute_Definition_Clause): - Change name to Name_Simple_Storage_Pool_Type. - * sem_prag.adb: - (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type. - (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type. - * sem_res.adb (Resolve_Allocator): Change name to - Name_Simple_Storage_Pool_Type. * snames.ads-tmpl: - (Name_Simple_Storage_Pool_Type): New name constant. - (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and - move to main pragma section because it no longer matches the - attribute name. - * snames.adb-tmpl (Get_Pragma_Id): Remove test for - Name_Simple_Storage_Pool. - (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool. - -2012-02-08 Robert Dewar - - * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws. - -2012-02-08 Pascal Obry - - * prj.adb (Compute_All_Imported_Projects): Use new - For_Project_And_Aggregated_Context to ensure proper context is - used for encapsulated aggregate libraries. - * prj-proc.adb (Recursive_Process): Call - Process_Aggregated_Projects earlier to ensure that all dependent - projects are set with the proper encapsulated status. - -2012-02-08 Pascal Obry - - * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null - terminated string. - -2012-02-08 Pascal Obry - - * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New - generic routine with a context parameter. - -2012-02-08 Robert Dewar - - * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb, - a-convec.adb: Minor reformatting and code reorganization. - -2012-02-08 Steve Baird - - * sem_cat.adb (In_Preelaborated_Unit): A child - unit instantiation does not inherit preelaboration requirements - from its parent. - -2012-02-08 Gary Dismukes - - * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool. - (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool. - (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool. - (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool. - * aspects.adb (Canonical_Aspect): Add entry for - Aspect_Simple_Storage_Pool. - * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of - Attribute_Simple_Storage_Pool in the same way as Storage_Pool - (add conversion, analyze/resolve). For the Storage_Size attribute, - for the simple pool case, locate and use the simple pool type's - Storage_Size function (if any), otherwise evaluate to zero. - * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator - for an access type with an associated simple storage pool, - locate and use the pool type's Allocate. - * exp_intr.adb (Expand_Unc_Deallocation): In the case where the - access type has a simple storage pool, locate the pool type's - Deallocate procedure (if present) and use it as the procedure - to call on the Free operation. - * freeze.adb (Freeze_Entity): In the case of a full type for - a private type defined with pragma Simple_Storage_Pool, check - that the full type is also appropriate for the pragma. For - a simple storage pool type, validate that the operations - Allocate, Deallocate (if present), and Storage_Size - (if present) are defined with appropriate expected profiles. - (Validate_Simple_Pool_Op_Formal): New procedure - (Validate_Simple_Pool_Operation): New procedure Add with and - use of Rtsfind. - * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement - (no action required). - * sem_attr.adb (Analyze_Attribute): For the case of the - Storage_Pool attribute, give a warning if the prefix type has an - associated simple storage pool, and rewrite the attribute as a - raise of Program_Error. In the case of the Simple_Storage_Pool - attribute, check that the prefix type has an associated simple - storage pool, and set the attribute type to the pool's type. - * sem_ch13.adb (Analyze_Aspect_Specifications): Add - Aspect_Simple_Storage_Pool case choice. - (Analyze_Attribute_Definition_Clause): Add - Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses - (no action). Add handling for Simple_Storage_Pool attribute - definition, requiring the name to denote a simple storage pool - object. - (Check_Aspect_At_Freeze_Point): For a simple storage pool - aspect, set the type to that of the name specified for the aspect. - * sem_prag.adb (Analyze_Pragma): Add handling for pragma - Simple_Storage_Pool, requiring that it applies to a library-level - type declared in a package declaration that is a limited private - or limited record type. - * sem_res.adb (Resolve_Allocator): Flag an attempt to call a - build-in-place function in an allocator for an access type with - a simple storage pool as unsupported. - * snames.ads-tmpl: Add Name_Simple_Storage_Pool. - (type Attribute_Id): Add Attribute_Simple_Storage_Pool. - (type Pragma_Id): Add Pragma_Simple_Storage_Pool. - * snames.adb-tmpl (Get_Pragma_Id): Handle case of - Name_Simple_Storage_Pool. - (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool. - -2012-02-08 Cyrille Comar - - * projects.texi: Clarify doc for interfaces. - -2012-02-07 Eric Botcazou - - * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable. - (GCC_LINK): Use it. - -2012-02-01 Tristan Gingold - - * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype - instead of size_type_node. - -2012-01-30 Nicolas Roche - - * gcc-interface/Make-lang.in: Update dependencies. - * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads - when needed. - Remove Linker_Options -crtbe when building sjlj run-time. - -2012-01-30 Robert Dewar - - * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode. - * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of - form 2 * small-literal. - * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious - mod value). - * sem_ch4.ads (Analyze_Mod): New procedure. - -2012-01-30 Ed Schonberg - - * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy - types and return expression when building spec for implicit - body, to preserve global references that may be present in an - instantiation. - -2012-01-30 Matthew Heaney - - * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort, - Reverse_Elements): Check for cursor tampering. - -2012-01-30 Ed Schonberg - - * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a - type with aspect Default_Value or Default_Component_Value is - fully initialized, and use of variables of such types do not - generate warnings. - -2012-01-30 Javier Miranda - -PR ada/15846 - * sem_ch8.adb (Analyze_Subprogram_Renaming): - Handle self-renaming when the renamed entity is referenced using - its expanded name. - -2012-01-30 Vincent Celier - - * projects.texi: Add documentation for attribute Interfaces. - -2012-01-30 Hristian Kirtchev - - * exp_ch7.adb (Build_Finalizer_Call): Set loc again. - * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source - location for the wrapped call to the original AT_END routine - and the subsequent return statement. - -2012-01-30 Pascal Obry - - * s-rannum.adb: Minor reformatting. - -2012-01-30 Hristian Kirtchev - - * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds - to 25 and add the hard time value for 2012-06-30. - -2012-01-30 Robert Dewar - - * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb, - freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads, - s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb: - Minor reformatting/code reorganization. - -2012-01-30 Thomas Quinot - - * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return - Unsigned_64 rather than Duration. - (System.Random_Numbers.Reset): Use full value of seed - (do not truncate sub-second bits). - -2012-01-30 Thomas Quinot - - * sem_cat.adb, sem_ch12.adb: Minor reformatting. - -2012-01-30 Yannick Moy - - * gnat_ugn.texi: Minor correction of GNAT UG, to take into - account changes to -gnatwa and more recent warnings. - -2012-01-30 Hristian Kirtchev - - * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source - location when creating a call to a finalizer. - * exp_ch11.adb (Expand_Exception_Handlers): Do not provide - a source location for the first actual of Save_Occurrence for - consistency sake. - -2012-01-30 Ed Schonberg - - * einfo.ads, einfo,adb: New attribute on scalar types: - Default_Aspect_Value New attribute on array types: - Default_Aspect_Component_Value Move attribute Related_Array_Object - to a different position to accomodate new aspect attributes. - * freeze.adb (Freeze_Entity): Use new attributes to retrieve value - of defaults set with an aspect specification, rather than using - the list of aspects attached to the type, to prevent issues with - partial views. - * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects - Default_Value and Default_Component _Value, store corresponding - expression in type entity. - (Check_Aspect_At_End_Of_Declaration): If the default aspects - are declared on the full view, use the full view to resolve the - correseponding expression. - * exp_ch3.adb (Init_Component): Use attribute - Default_Aspect_Component_Value to perform default initialization, - rather than relying on the rep item list for the type. - (Get_Simple_Init_Val): Ditto. - -2012-01-30 Thomas Quinot - - * a-strhas.ads: Document risk of collision attack. - -2012-01-30 Yannick Moy - - * gnat_ugn.texi: Minor update wrt warning switches. - -2012-01-30 Vincent Celier - - * prj-nmsc.adb (Check_Interfaces): Report an error when a - unit from Library_Interface is not a unit of the project. - -2012-01-30 Vincent Pucci - - * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent - links fixed inside PPC pragmas. - * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl. - -2012-01-30 Thomas Quinot - - * s-ransee.ads: Minor reformatting. - -2012-01-30 Pascal Obry - - * prj.ads, prj.adb (For_Each_Source): Add support for skipping - sources coming from an encapsulated library. - -2012-01-30 Ed Schonberg - - * sem_ch3.adb (Process-Full_View): fix typo. - * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates - appear on a private type and the full view is available, ensure - existence of freeze node for full view. - (Build_Predicate_Function): Attach predicate function to both - views of a private type. - -2012-01-30 Vincent Celier - - * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs - for the project if either attribute Library_Interface or - Interfaces is declared. - (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in - Check_Interfaces. - -2012-01-30 Pascal Obry - - * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib - boolean value to true in the process list created by this routine. - * prj.ads (Project_List_Element): New field From_Encapsulated_Lib. - Continued work for KA06-021. - * prj.adb (Compute_All_Imported_Projects): Set - From_Encapsulated_Lib boolean flag. - -2012-01-30 Vincent Pucci - - * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor - code clean up. - * s-diflio.ads: Minor change. - -2012-01-30 Javier Miranda - - * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call - to Get_Entry_Index. Required to generate code which provides - the correct value of Entry_Index in the target entry. - -2012-01-30 Nicolas Roche - - * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to - fix issue with zcx on VxWorks5. - -2012-01-30 Pascal Obry - - * prj.ads, prj.adb (For_Every_Project_Imported): Remove - In_Aggregate_Lib. - (For_Every_Project_Imported_Context): New generic routine with - a context parameter. - * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid - distributed complexity. - * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto. - -2012-01-30 Thomas Quinot - - * exp_aggr.adb (Expand_Record_Aggregate): After creating the - _parent aggregate for an extension aggregate, check whether it - requires delayed (top-down) expansion. - -2012-01-30 Vincent Pucci - - * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten. - * snames.ads-tmpl: Name_Item and Name_Symbols added. - * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename - and change the position of parameter Symbols in every Put routine. - * s-dimmks.ads: Convert long float type Mks_Type into long - long float. - * s-llflex.ads: Modifications in comments. - -2012-01-30 Hristian Kirtchev - - * sem_ch12.adb (Earlier): Do not use the - top level source locations of the two input nodes. - -2012-01-30 Robert Dewar - - * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads, - sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting. - -2012-01-30 Robert Dewar - - * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting. - -2012-01-30 Olivier Hainque - - * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back + - comments. - -2012-01-30 Thomas Quinot - - * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb, - sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb, - sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type): - New subprogram (extracted from - Sem_Cat.Validate_Remote_Access_Object_Type_Declaration). - (Einfo.Is_Remote_Types): Now applies to generic types. Update - documentation accordingly. - (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as - actual for a formal type to which a pragma Remote_Access_Type - applies. - (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect - Remote_Access_Type. - (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can - be applied to a generic type if pragma Remote_Access_Type - applies, in which case the type of the attribute is - System.Partition_Interface.RACW_Stub_Type. - -2012-01-27 Eric Botcazou - - * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not set - an alignment on fields of the RETURN type built for the CICO mechanism. - -2012-01-27 Eric Botcazou - - * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for - a call to a function that returns an unconstrained type with default - discriminant. Similarly, avoid doing the conversion to the nominal - result type in this case. - -2012-01-27 Eric Botcazou - - * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag. - * gcc-interface/decl.c (is_variable_size): Rename to... - (type_has_variable_size): ...this. - (adjust_packed): Adjust to above renaming. - (gnat_to_gnu_field): Set DECL_ALIASED_P on the field. - (field_is_artificial): New predicate. - (field_is_aliased): Likewise. - (field_has_self_size): Likewise. - (field_has_variable_size): Likewise. - (components_to_record): Record information for the final layout during - the first pass on fields. - If there is an aliased field placed after a field whose length depends - on discriminants, put all the fields of the latter sort, last. - -2012-01-27 Eric Botcazou - - * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare. - * gcc-interface/decl.c (get_minimal_subprog_decl): New function. - * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an - Access-like attribute in a dispatch table if the subprogram is public. - -2012-01-27 Eric Botcazou - - * gcc-interface/gigi.h (create_label_decl): Adjust. - * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter - and invoke gnat_pushdecl on it. Remove obsolete settings. - * gcc-interface/decl.c (gnat_to_gnu_entity) : Adjust call to - create_label_decl. - * gcc-interface/trans.c (gnat_to_gnu) - - * gcc-interface/decl.c (gnat_to_gnu_entity) : For an aliased - object with an unconstrained nominal subtype and if optimization isn't - enabled, create a special VAR_DECL for debugging purposes. - -2012-01-23 Robert Dewar - - * sem_prag.ads, sem_prag.adb: Minor reformatting. - -2012-01-23 Robert Dewar - - * sem_ch13.adb (Analyze_Aspect_Specifications): Check for - language defined aspect applied to renaming or formal type - declaration (not permitted) - -2012-01-23 Matthew Heaney - - * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced - comment with pragma Assert. - -2012-01-23 Vincent Pucci - - * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call - to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode. - * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New - routine. In ASIS mode, convert any PPC pragmas into aspects in generic - subprogram declaration in order to enable the analysis of PPC boolean - expressions. - -2012-01-23 Robert Dewar - - * sem_ch3.adb (Analyze_Object_Declaration): Properly - handle Current_Value for volatile variables (also propagate - Treat_As_Volatile from type to object). - -2012-01-23 Hristian Kirtchev - - * sem_ch12.adb (Install_Body): Detect the case - where the enclosing context is a package with a stub body that - has already been replaced by the actual body. In such cases, - the freeze node for the enclosing context must be inserted after - the real body. - -2012-01-23 Ed Schonberg - - * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called - subprogram before expanding the pragma into an if-statement with - a block, to ensure that when the subprogram is null its body is - properly generated before expansion. - -2012-01-23 Hristian Kirtchev - - * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and - constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal - to Saved_Formal. - Freeze all eligible subprograms which appear as actuals in - the instantiation. - (Has_Fully_Defined_Profile): New routine. - (Renames_Standard_Subprogram): New routine. - (Earlier): Add local variable N. Comment update. Do not use source - locations when trying to determine whether one node precedes another. - -2012-01-23 Gary Dismukes - - * exp_ch4.adb (Expand_Concatenate): In the case - where the result of a concatentation can be null, set the to - result have both the low and high bounds of the right operand (not - just the high bound, as was the case prior to this fix). Also, - fix the saved high bound setting (Last_Opnd_High_Bound) in the - empty string literal case (should have been low bound minus one, - rather than plus one). - -2012-01-23 Thomas Quinot - - * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not - omit statement SCOs for disabled pragmas. - -2012-01-23 Matthew Heaney - - * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads, - a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads, - a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads, - a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read, - Cursor'Write): Declare in private part. - (Reference_Type'Read, Reference_Type'Write): Ditto. - (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto. - -2012-01-23 Robert Dewar - - * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor - reformatting. - -2012-01-23 Ed Schonberg - - * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the - Corresponding_Body on a defaulted null formal subprogram. - * sem_ch12.adb (Check_Formal_Package_Instance): No check needed - on a defaulted formal subprogram that is a null procedure. - -2012-01-23 Hristian Kirtchev - - * exp_ch9.adb: Update the comments involving pragma Implemented. - * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local - constant Subp_Alias and local variable Impl_Subp. Properly - handle aliases of synchronized wrappers. Code cleanup. - (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add - Name_Optional as part of the condition. - * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the - valid choices of implementation kind. - (Check_Arg_Is_One_Of): New routine. - * snames.ads-tmlp: Add Name_Optional. - -2012-01-23 Ed Schonberg - - * par-ch13.adb: Better error recovery in illegal aspect - specification. - -2012-01-23 Hristian Kirtchev - - * a-calend.adb: Add with clause for Interfaces.C. Add constant - Unix_Max. - (Day_Of_Week): Call the internal UTC_Time_Offset. - (Split): Call the internal UTC_Time_Offset. - (Time_Of): Call the internal UTC_Time_Offset. - (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset. - (UTC_Time_Offset): New library-level routine. - * a-calend.ads (UTC_Time_Offset): Remove parameter - Is_Historic. Update related comment on usage. - * a-catizo.adb (UTC_Time_Offset): Removed. - (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset. - * a-caltizo.ads (UTC_Time_Offset): Removed. - (UTC_Time_Offset (Time)): Add back the default expression of parameter - Date. - -2012-01-23 Robert Dewar - - * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter - (pg,po,ps): Make sure each entry starts on new line. - -2012-01-23 Hristian Kirtchev - - * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update - the parameter profile of procedure localtime_tzoff and its associated - comment. - (Day_Of_Week): Do not treat the input date as historical - with respect to time zones. - (Split): Do not treat the input - date as historical with respect to time zones. (Time_Of): Do - not treat the input constituents as forming a historical date - with respect to time zones. - (UTC_Time_Offset): Add new formal - parameter Is_Historic. Add local variable Flag. Update the call - to localtime_tzoff. - * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine. - (UTC_Time_Offset (Time)): Update the call to - Time_Zone_Operations.UTC_Time_Offset. - * sysdep.c (__gnat_localtime_tzoff): Update parameter - profile. Split the processing of offsets on Windows into two - one - part of historic time stamps and the other for the current time. - -2012-01-23 Robert Dewar - - * a-calend.adb: Minor reformatting. - -2012-01-23 Ed Schonberg - - * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized - interface in requeue statement. - -2012-01-23 Cyrille Comar - - * projects.texi: Remove references to main units and replace - with references to main programs to be coherent with the - documentation. - -2012-01-23 Robert Dewar - - * s-utf_32.adb: Minor reformatting. - -2012-01-23 Vincent Celier - - * snames.ads-tmpl: Minor comment addition Indicate that - Name_Library_Encapsulated_Options is only used in gprbuild. - -2012-01-23 Robert Dewar - - * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit - restrictions. - -2012-01-23 Ed Schonberg - - * snames.ads-tmpl: Add Name_Synchronization. - * aspects.ads, aspects.adb: Add Aspect_Synchronization to - enumeration type and related maps. - * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect - Synchronization, build corresponding pragma Implemented. - * sem_util.adb (Implementation_Kind): Handle both explicit and - implicit pragma_argument association to retrieve the given - synchronization mode. - -2012-01-23 Robert Dewar - - * sem_ch10.adb, errout.adb: Minor reformatting. - -2012-01-23 Ed Schonberg - - * sem_res.adb (Resolve_Actuals): An actual in a call to an - Ada 2012 Reference function does not lead to a dangerous order - dependence. - -2012-01-23 Gary Dismukes - - * exp_util.adb (Is_Iterated_Container): Test - Is_Entity_Name when searching for calls to the default iterator, - to avoid blowing up on indirect calls which have an explicit - dereference as the call name. - -2012-01-23 Thomas Quinot - - * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output - the complete expanded name, rather than just its Selector_Name. - -2012-01-23 Thomas Quinot - - * a-textio.adb (Put): Rewrite one-parameter Character version to - just call the two-parameter one with Current_Out. - -2012-01-23 Hristian Kirtchev - - * freeze.adb (Check_Current_Instance): Issue an - error when the prefix of 'Unchecked_Access or 'Access does not - denote a legal aliased view of a type. - (Freeze_Record_Type): Do not halt the processing of record components - once the Has_Controlled_Component is set as this bypasses the remaining - checks. - (Is_Aliased_View_Of_Type): New routine. - -2012-01-23 Thomas Quinot - - * errout.ads, freeze.adb: Minor reformatting. - -2012-01-23 Thomas Quinot - - * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error - messages. - -2012-01-23 Olivier Hainque - - * adadecode.c (__gnat_decode): Deal with empty input early, - preventing potential erroneous memory access later on. - -2012-01-21 Eric Botcazou - - PR ada/46192 - * gcc-interface/decl.c (gnat_to_gnu_entity) : In the case of a - renaming, preserve the volatileness through the indirection, if any. - -2012-01-14 Andreas Schwab - - * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add - $(GNATLIBCFLAGS). - -2012-01-10 Pascal Obry - - * prj-nmsc.adb (Check_Library_Attributes): - Kill check for object/source directories for aggregate libraries. - -2012-01-10 Matthew Heaney - - * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb, - a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads, - a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb, - a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads, - a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb, - a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb, - a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb, - a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads, - a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare - container parameter as aliased in/in out. - Code clean ups. - -2012-01-10 Bob Duff - - * s-os_lib.ads: Improve comment. - -2012-01-10 Geert Bosch - - * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing - for complex Scalar. - -2012-01-10 Bob Duff - - * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when - checking that the 'Size is correct. If the type is "mod 2**12", - for example, it's illegal, but Esize is the 'Object_Size, which - will be something like 16 or 32, so the error ('Size = 12) was - not detected. - * gnat_rm.texi: Improve documentation of shift - and rotate intrinsics. - -2012-01-10 Pascal Obry - - * prj.adb (For_Every_Project_Imported): Fix - implementation to make sure we return each project only once - for aggragte libraries. It is fine to return a project twice for - aggregate projects, this was the case as a Project_Id is different - in each project tree. The new implementation use a table based on - the project name to ensure proper detection of duplicate project - in aggregate library. A new context is then created to continue - retrurning duplicate project for aggregate libraries. - -2012-01-09 Eric Botcazou - - * gcc-interface/trans.c (call_to_gnu): Create the temporary for the - return value in the variable-sized return type case if the target is - an array with fixed size. However, do not create it if this is the - expression of an object declaration. - -2012-01-09 Eric Botcazou - - * gcc-interface/trans.c (addressable_p) : Fix thinko. - -2012-01-06 Robert Dewar - - * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads, - s-utf_32.ads: Add pragma Pure - * s-utf_32.adb: Suppress warnings on non-static constants (now - that this is Pure). - -2012-01-06 Bob Duff - - * s-rpc.ads (Read, Write): Add overriding indicators. - -2012-01-06 Robert Dewar - - * gnat_rm.texi: Add documentation for conventions - Ada_Pass_By_Copy and Ada_Pass_By_Reference. - -2012-01-06 Gary Dismukes - - * a-tienio.adb (Put): Add exception message on - raise statements. Remove unneeded blocks and object declarations. - -2012-01-06 Robert Dewar - - * sem_prag.adb: Minor reformatting. - -2012-01-06 Ed Schonberg - - * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate - that a selected component within a generic unit has been resolved - as a prefixed call with local references. - * sem_ch3.adb (Is_Visible_Component): In an instance body a selected - component is always visible. - * sem_ch4.adb (Analyze_Selected_Component): If the node is a - prefixed call in an instance, do not look for visible components - of the type. - * sem_ch12.adb (Reset_Entity): If a selected component has resolved - to a prefixed call, mark the node accordingly when prefix and - selector are local references. - -2012-01-02 Eric Botcazou - - * gnatvsn.ads (Current_Year): Bump to 2012. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/ada/ChangeLog-2012 b/gcc/ada/ChangeLog-2012 new file mode 100644 index 00000000000..2bb659a52de --- /dev/null +++ b/gcc/ada/ChangeLog-2012 @@ -0,0 +1,8694 @@ +2012-12-21 Ed Schonberg + + PR ada/53737 + * sem_ch12.adb (Analyze_Associations): Do not check the legality of + actuals for RACW types if this is an internal instantiation for a formal + package with defaulted parameters. + +2012-12-21 Eric Botcazou + + * adaint.c: Move directive around. + * argv.c: Likewise. + * cio.c: Likewise. + * cstreams.c: Likewise. + * env.c: Likewise. + * exit.c: Likewise. + * init.c: Likewise. + * initialize.c: Likewise. + * raise.c: Likewise. + * seh_init.c: Likewise. + * targext.c: Likewise. + +2012-12-15 Eric Botcazou + Martin Ettl + + PR ada/53996 + * gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d. + +2012-12-11 Eric Botcazou + + * gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled. + +2012-12-08 Eric Botcazou + + * gcc-interface/trans.c (gnat_to_gnu) : Assert + that the type of the prefix is ultimately an array. + +2012-12-08 Eric Botcazou + + * gcc-interface/trans.c (Subprogram_Body_to_gnu): Be prepared for a + by-ref VAR_DECL in the case of an Out parameter passed by copy. + +2012-12-05 Robert Dewar + + * par_sco.adb, sem_prag.adb, put_scos.adb, get_scos.adb: Minor + reformatting. + +2012-12-05 Ed Schonberg + + * sem_ch3.adb: Code clean up. + +2012-12-05 Arnaud Charlet + + * gcc-interface/Make-lang.in: Update dependencies. + * gcc-interface/lang.opt: New language AdaSCIL. + * gcc-interface/lang-specs.h: Add specs for adascil language. + +2012-12-05 Thomas Quinot + + * par_sco.adb (Traverse_Aspects): Ensure we always have + an entry in the sloc -> SCO map for invariants, since + Set_SCO_Pragma_Enabled is called with that sloc when checks + are enabled. + +2012-12-05 Thomas Quinot + + * exp_ch4.adb: Minor reformatting. + +2012-12-05 Hristian Kirtchev + + * par-prag.adb: Checks and processing of pragma Assume are + carried out by Sem_Prag. + * sem_prag.adb (Analyze_Pragma): Check the legality of pragma + Assume. + * snames.ads-tmpl: Add new name Assume. Add a pragma identifier + for Assume. + +2012-12-05 Ed Schonberg + + * aspects.ads, aspects.adb: Add aspect Relative_Deadline. + * sem_ch13.adb (Analyze_Aspect_Specifications): Process aspect + Relative_Deadline, and introduce the corresponding pragma within + the task definition of the task type to which it applies. + (Check_Aspect_At_Freeze_Point): Expression in a Relative_Deadline + aspect is of type Time_Span. + +2012-12-05 Hristian Kirtchev + + * sem_prag.adb (Check_Loop_Invariant_Variant_Placement): When pragma + Loop_[In]variant does not appear immediately within the statements + of a loop, it must appear in a chain of nested blocks. + +2012-12-05 Thomas Quinot + + * sem_ch13.adb: Minor reformatting. + Remove redundant assertion. + +2012-12-05 Thomas Quinot + + * par_sco.adb, scos.ads, put_scos.adb, put_scos.ads, + get_scos.adb: Generation of SCOs for aspects. + +2012-12-05 Thomas Quinot + + * sem_prag.adb (Check_Precondition_Postcondition): Remove + redundant call to Set_SCO_Pragma_Enabled (the pragma will be + rewritten into a pragma Check later on, and the call will be + made when processing the rewritten pragma). + (Analyze_Pragma, case Pragma_Check): Omit call to + Set_SCO_Pragma_Enabled if Split_PPC is set. + +2012-12-05 Olivier Hainque + + * tracebak.c: Add partial support for Lynx178. + +2012-12-05 Hristian Kirtchev + + * sem_attr.adb (Analyze_Attribute): Improve + the error message related to loop assertions. + +2012-12-05 Gary Dismukes + + * atree.ads: Minor reformatting. + +2012-12-05 Robert Dewar + + * atree.ads, par-ch4.adb, sem_attr.adb, sem_ch13.adb: Minor + reformatting. + +2012-12-05 Eric Botcazou + + * gnat_ugn.texi (Switches for gcc): Document -flto and reorder. + +2012-12-05 Ed Schonberg + + * par-ch5.adb (P_Condition): Handle properly Ada 2012 + expressions that must be parenthesized before checking for + redundant parentheses when that check is enabled. + +2012-12-05 Ed Schonberg + + * par-ch4.adb (P_Allocator): In Ada 2012 (AI05-0104) an + uninitialized allocator cannot carry an explicit not null + indicator. + * sem_ch4.adb (Analyze_Allocator): Remove code that implements + the check for AI05-0104, the check is syntactic and performed + in the parser. + +2012-12-05 Geert Bosch + + * sem_attr.adb (Analyze_Attribute): Use base type for floating + point attributes. + +2012-12-05 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications, + Ahalyze_Aspect_Default_Value): For a scalar type attach default + value to base type as well, because it is a type-specific aspect + even though it can be specified on a first subtype. + +2012-12-05 Yannick Moy + + * urealp.ads: Minor rewording. + +2012-12-05 Yannick Moy + + * aspects.ads (No_Duplicates_Allowed): Forbid use of duplicate + Contract_Cases aspects. + * sem_prag.adb (Analyze_Pragma/Pragma_Contract_Case): Rename + POST_CASE into CONTRACT_CASE in both grammar and code, to be + consistent with current language definition. Issue a more precise + error message when the pragma duplicates another pragma or aspect. + +2012-12-05 Hristian Kirtchev + + * exp_attr.adb (Expand_N_Attribute_Reference): Add processing + for attribute Update. + (Expand_Update_Attribute): New routine. + * par-ch4.adb (P_Name): The sole expression of attribute Update + is an aggregate, parse it accordingly. + * sem_attr.adb (Analyze_Attribute): Verify the legality of + attribute Update. + (Eval_Attribute): Attribute Update does not + need evaluation because it is never static. + * snames.ads-tmpl: Add Name_Update to the list of special names + recognized by the compiler. Add an Attribute_Id for Update. + +2012-12-05 Ed Schonberg + + * exp_util.adb (Remove_Side_Effects): For purposes of removing + side effects, qualified expressions do not receive a special + treatment, even though in Ada 2012 they are defined as object + references. + +2012-12-05 Thomas Quinot + + * par-ch3.adb: Minor reformatting. + +2012-12-05 Thomas Quinot + + * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call, + Build_TypeCode_Call): For a used-defined subtype, always go to + the first subtype of the base type. + +2012-12-05 Thomas Quinot + + * exp_dist.adb: Minor reformatting. + +2012-12-05 Tristan Gingold + + * Make-generated.in: Remove the VMS host specific part, as VMS + compilers aren't built anymore on VMS. + +2012-12-05 Thomas Quinot + + * sem.adb, errout.ads, atree.adb, atree.ads (Check_Error_Detected): + Only return quietly if a serious error of configurable run time + violation has been found. + +2012-12-05 Yannick Moy + + * sem_res.adb (Resolve_Type_Conversion): In Alfa_Mode, do not apply + conversion checks. + +2012-12-05 Ed Schonberg + + * exp_ch5.adb (Expand_N_Assignment_Statement): Handle properly + the generation of discriminant checks when the left-hand side + has a type with hidden discriminants. + * sem_ch3.ads (Is_Visible_Component): Add defaulted parameter to + specify the node on which component visibility is being checked. + * sem_ch3.adb (Is_Visible_Component): Use new parameter to + determine whether the reference comes from a type conversion to + a full view of a private type with unknown discriminants. + * sem_ch4.adb (Analyze_Selected_Component): Call + Is_Visible_Component with added parameter. + +2012-12-05 Arnaud Charlet + + * make.adb: Minor comment update. + +2012-12-05 Arnaud Charlet + + * gnatlink.adb: Also use -x adascil in CodePeer mode when + calling gcc. + * exp_ch5.adb: Minor reformatting. + +2012-12-05 Bob Duff + + * exp_ch4.adb: Minor comment. + +2012-12-05 Bob Duff + + * par-ch4.adb: Set Paren_Count correctly for a parenthesized expression + containing a conditional expression or quantified expression. + * sprint.adb: Update comment. + +2012-12-05 Bob Duff + + * style.adb, scans.ads, styleg.adb: Update comments. + +2012-12-05 Ed Schonberg + + * sem_ch8.adb (Find_Selected_Component): Handle properly an + expanded name whose prefix is the expanded name of an enclosing + entry, that is to say a construct such as T.E.X, where T is an + enclosing concurrent type and E is an enclosing entry. + +2012-12-05 Robert Dewar + + * lib-writ.adb (Write_ALI): Output T lines. + * lib-writ.ads: Minor reformatting. Add documentation of T lines. + * opt.ads (Generate_Target_Dependent_Info): New flag. + * switch-c.adb (Scan_Switches): Recognize -gnatet switch + (target dependent info). + * ttypes.ads: Add four letter codes to declarations (for target + dependent info). + * usage.adb: Add line for -gnatet switch. + +2012-12-05 Hristian Kirtchev + + * exp_prag.adb (Expand_N_Pragma): Add a call to expand + pragma Loop_Variant. + (Expand_Pragma_Loop_Assertion): Removed. + (Expand_Pragma_Loop_Variant): New routine. + * par-prag.adb: Remove Pragma_Loop_Assertion and add two new + Pragma_Loop_Invariant and Pragma_Loop_Variant entries. + * sem_attr.adb (Analyze_Attribute): Update the code which + locates the enclosing pragma. + * sem_prag.adb (Analyze_Pragma): Remove the code which analyzes + pragma Loop_Assertion as the pragma is now obsolete. Add the + machinery to checks the semantics of pragmas Loop_Invariant + and Loop_Variant. + (Check_Loop_Invariant_Variant_Placement): New routine. + * snames.ads-tmpl: Remove name Loop_Assertion. Add new names + Loop_Invariant and Loop_Variant. Rename Name_Decreasing + to Name_Decreases and Name_Increasing to Name_Increases. + Remove the pragma Id for Loop_Assertion and add two new Ids for + Loop_Invariant and Loop_Variant. + +2012-12-05 Robert Dewar + + * gnatchop.adb, sem_attr.ads, sem_ch4.adb, sem_ch6.adb, exp_disp.adb, + atree.adb, sem_eval.adb: Minor reformatting. + +2012-12-05 Yannick Moy + + * uintp.adb (UI_Div_Rem): Correct algorithm D to remove potential + overflow. + +2012-12-05 Robert Dewar + + * exp_ch4.adb (Expand_N_Op_Mod): Minor comment additions. + (Expand_N_Op_Rem): Ditto. + +2012-12-05 Robert Dewar + + * sem_attr.adb: Minor reformatting. + +2012-12-05 Robert Dewar + + * usage.adb: Update lines for -gnato? switch. + +2012-12-05 Ed Schonberg + + * par-ch6.adb (P_Return_Object_Declaration): Do not check for + legality of Aliased keyword. + * sem_ch6.adb (Analyze_Function_Return): The keyword aliased is + legal in an extended return statement only if the return type + is immutably limited. + +2012-12-05 Javier Miranda + + * exp_disp.adb (Expand_Interface_Thunk): Simplify + management of controlling formals. Required to avoid problems + with primitives of internally generated base types associated + with constrained tagged types. + +2012-12-05 Ed Schonberg + + * sem_eval.adb: Remove spurious warnings. + +2012-12-05 Ed Schonberg + + * sem_util.adb (Build_Explicit_Dereference): Set properly + the type of the prefix prior to rewriting, because subsequent + legality checks examine the original node. + +2012-12-05 Hristian Kirtchev + + * aspects.adb: Add Contract_Cases to the canonical aspects map. + * aspects.ads: Add aspect Contract_Cases in the various aspect + tables. + * par-prag.adb: The parser does not need to perform special + actions for pragma Contract_Cases. + * sem_ch6.adb (Expand_Contract_Cases): New routine. + (Process_Contract_Cases): Convert pragma Contract_Cases into pre- + and post- condition checks that verify the runtime state of all + case guards and their corresponding consequences. + * sem_ch13.adb (Analyze_Aspect_Specifications): Perform + various legality checks on aspect Contract_Cases. The aspect is + transformed into a pragma. + * sem_prag.adb: Add an entry in table Sig_Flags for pragma + Contract_Cases. + (Analyze_Pragma): Perform various legality + checks on pragma Contract_Cases. The pragma is associated with + the contract of the related subprogram. + (Chain_CTC): Omit pragma + Contract_Cases because it does not introduce a unique case name + and does not follow the syntax of Contract_Case and Test_Case. + * snames.ads-tmpl: Add new name Name_Contract_Cases. Add a + Pragma_Id for Contract_Cases. + +2012-12-05 Thomas Quinot + + * sem_ch5.adb: Minor reformatting. + +2012-12-05 Hristian Kirtchev + + * sem_attr.ads: Add an entry for attribute Loop_Entry in the + Attribute_Impl_Def table. + +2012-12-05 Bob Duff + + * gnatchop.adb (Read_File): Avoid storage leak, and in most cases avoid + an extra copy of the string. + +2012-12-05 Ed Schonberg + + * sem_ch5.adb (Preanalyze_Range): If the expression, which + denotes some domain of iteration, has a type with implicit + dereference, and does not have any iterable aspects, insert + dereference to obtain proper container type. + +2012-12-05 Bob Duff + + * par-ch8.adb (P_Use_Type_Clause): Fix the Sloc for "use all type ..." + to point to "use". + +2012-12-05 Arnaud Charlet + + * make.adb (Compile): Always pass -x adascil in CodePeer mode. + +2012-12-05 Ed Schonberg + + * s-rident.ads, restrict.ads: Remove discrepancies between the + documentation on implementation-defined restrictions, and + the internal data structure used for warnings and errors on + implementation-defined restriction violations. + +2012-12-05 Ed Schonberg + + * sem_prag.adb (Chain_PPC): Pre- and postcondition aspects + are legal on a subprogram body that acts as a spec. + +2012-12-05 Ed Schonberg + + * sem_ch8.adb (Find_Selected_Component): If the selector name is + an overloadable entity but the name is not overloaded, generate + reference to it rather than delaying this until resolution. + +2012-12-05 Robert Dewar + + * checks.ads, checks.adb (Activate_Overflow_Check): No effect for + MOD/REM/unary + + * exp_ch4.adb (Expand_N_Op_Mod): Remove call to set Do_Overflow_Check. + +2012-12-05 Ed Schonberg + + * sem_ch4.adb (Find_Non_Universal_Interpretation): Use the + types of the right operand if the left operand is null. + +2012-12-05 Sergey Rybin + + * gnat_ugn.texi, vms_data.ads: document gnatpp -nn option. + +2012-12-05 Jose Ruiz + + * init.c (__gnat_install_handler): For the LEON VxWorks kernel + run-time library we need to install a trap handler directly in the + trap table (no support by the OS) for the software trap 0. + +2012-12-05 Eric Botcazou + + * gnat_rm.texi (Interfacing to C++): Document new restrictions. + +2012-12-05 Ben Brosgol + + * gnat_ugn.texi: Fix typo. + +2012-12-05 Robert Dewar + + * gnatbind.adb: Minor reformatting. + +2012-12-05 Arnaud Charlet + + * gnat_ugn.texi: Fix typo. + +2012-12-05 Tristan Gingold + + * gnatbind.adb: Minor comment update. + +2012-12-05 Yannick Moy + + * gnat1drv.adb (Adjust_Global_Switches): Set flags to indicate that + CodePeer backend deals with divide and overflow checks. + +2012-12-05 Robert Dewar + + * gnat_rm.texi: Update overflow description. Pragma Overflow_Checks + changed to Overflow_Mode. + +2012-12-05 Robert Dewar + + * checks.ads, exp_ch4.adb, gnat1drv.adb, par-prag.adb, sem_prag.adb, + snames.ads-tmpl, switch-c.adb, types.ads, checks.adb: Change pragma + Overflow_Checks to Overflow_Mode. + Separate overflow checking from overflow mode. + Several name changes to reflect this separation. + CHECKED mode is renamed STRICT mode. + +2012-12-05 Yannick Moy + + * gnat1drv.adb (Adjust_Global_Switches): Move setting of flags for + Alfa mode before general treatment of flags, so that overflow checks + settings are set appropriately in Alfa mode. Also set the mode to + STRICT in Alfa mode if not already set by the user. + +2012-12-05 Robert Dewar + + * sem_ch3.adb: Minor reformatting. + +2012-12-05 Steve Baird + + * sinfo.ads: Improve comments about SCIL-related node kinds and selector + functions. + +2012-12-05 Ed Schonberg + + * sem_ch10.adb (Build_Limited_Views): Even though the unit is + not analyzed, place its entity on the name in the with clause, + so that warnings on unused with-clause are properly supported + for limited withs. + +2012-12-05 Robert Dewar + + * gnat_ugn.texi: Update overflow description. Pragma + Overflow_Checks changed to Overflow_Mode. + +2012-12-05 Ed Schonberg + + * sem_ch3.adb (Build_Derived_Private_Type): Handle properly a + completion in a grand-child unit when the parent type is itself + a private type in a child unit whose full view is itself a + derivation from a private type. + +2012-12-05 Gary Dismukes + + * exp_attr.adb (Expand_N_Attribute_Reference, case + Attribute_Valid): Remove code for issuing warning on Valid within + a predicate. Moved to Sem_Attr. Remove with and use of Errout. + * sem_attr.adb (Analyze_Attribute, case Attribute_Valid): + Test for prefix's subtype having a predicate and issue warning + about infinite recursion if Valid occurs within the subtype's + predicate. Warning moved here from Exp_Attr. + +2012-12-05 Yannick Moy + + * debug.adb: Minor comment addition. + +2012-12-05 Yannick Moy + + * gnat1drv.adb (Adjust_Global_Switches): In CodePeer mode, check + overflows by default, even when the user suppresses overflow checks. + +2012-12-05 Thomas Quinot + + * err_vars.ads: Fix minor typo in comment. + +2012-12-05 Hristian Kirtchev + + * sem_attr.adb (Analyze_Attribute): Do not analyze the attribute + arguments when processing Loop_Entry. Rewrite the analysis of + attribute Loop_Entry to handle an optional loop name. + (Convert_To_Indexed_Component): New routine. + (Eval_Attribute): Remove ??? comment and explain + why Loop_Entry does not need to be evaluated. + +2012-12-01 John David Anglin + + PR ada/52110 + * s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and + pthread_rwlock_t subtypes. Delete duplicate declaration of clockid_t. + * s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment. + +2012-11-28 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Use + valid_constant_size_p to detect too large objects. + : Likewise for too large return types. + (allocatable_size_p): Call valid_constant_size_p in the fixed case. + (annotate_value) : Simplify. + : Deal with negative values here. + * gcc-interface/trans.c (gnat_to_gnu) : Use + valid_constant_size_p to detect too large objects on the LHS. + * gcc-interface/misc.c (default_pass_by_ref): Likewise for large types. + And use TYPE_SIZE_UNIT throughout. + (must_pass_by_ref): Likewise. + * gcc-interface/utils.c (max_size) : Split from common case. + : Likewise. Call size_binop instead of fold_build2. + : Simplify. + * gcc-interface/utils2.c (build_allocator): Use valid_constant_size_p + to detect too large allocations. + +2012-11-23 Eric Botcazou + + * gcc-interface/trans.c (Attribute_to_gnu) : Look through + a view conversion from constrained to unconstrained form. + +2012-11-23 Eric Botcazou + + * gcc-interface/decl.c (components_need_strict_alignment): New. + (components_to_record): Do not pack the variants if one of the fields + needs strict alignment. Likewise for the variant part as a whole. + Specify the position of the variants even if the size isn't specified, + but do not specify the size of the variant part in this case. + +2012-11-20 Diego Novillo + Jakub Jelinek + + * gcc-interface/decl.c: Replace all vec() initializers with vNULL. + +2012-11-18 Eric Botcazou + + * gcc-interface/decl.c: Remove trailing spaces. + * gcc-interface/trans.c: Remove trailing spaces. + +2012-11-16 Diego Novillo + + Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * gcc-interface/decl.c: Use new vec API in vec.h. + * gcc-interface/gigi.h: Likewise. + * gcc-interface/trans.c: Likewise. + * gcc-interface/utils.c: Likewise. + * gcc-interface/utils2.c: Likewise. + +2012-11-09 Eric Botcazou + + PR other/52438 + * s-taspri-lynxos.ads: Delete. + * s-osinte-kfreebsd-gnu.ads: Change license to GPL V3+. + * s-tpopsp-rtems.adb: Likewise. + * s-osinte-rtems.adb: Likewise. + +2012-11-09 Eric Botcazou + + * gcc-interface/trans.c (gnat_to_gnu) : Deal + with a missing library unit instead of calling gnat_to_gnu on Emtpy. + Remove last bits of support for SCIL nodes. Add cases for nodes that + should only be present when annotating types. Add default abort. + +2012-11-06 Eric Botcazou + + * gcc-interface/Makefile.in: Revert most changes. + * gcc-interface/Make-lang.in (gnatlib): Remove ada/s-oscons.ads. + +2012-11-06 Arnaud Charlet + + * gcc-interface/Makefile.in (copy-s-oscons): New target. + +2012-11-06 Robert Dewar + + * err_vars.ads, atree.ads: Minor reformatting. + +2012-11-06 Arnaud Charlet + + * gcc-interface/Make-lang.in: Update dependencies. + * gcc-interface/Makefile.in: Add runtime pairs for Android. + Rework handling of s-oscons.ads. + * s-osinte-android.ads, s-osinte-android.adb: New files. + +2012-11-06 Tristan Gingold + + * gcc-interface/trans.c (gnat_to_gnu): For N_Real_Literal, create the + binary representation of vax floats. + +2012-11-06 Tristan Gingold + + * sem_ch9.adb (Analyze_Protected_Type_Declaration): Fix thinko + in previous commit. + +2012-11-06 Jose Ruiz + + * ali.adb (Scan_ALI): Fix parsing mechanism for -fstack-check. + +2012-11-06 Thomas Quinot + + * atree.adb, atree.ads, einfo.adb, errout.adb, errout.ads, erroutc.adb, + erroutc.ads, errutil.adb, errutil.ads, err_vars.ads, expander.adb, + exp_ch13.adb, exp_ch2.adb, exp_ch6.adb, exp_dist.adb, fe.h, + fmap.adb, fmap.ads, gprep.adb, makeutl.adb, osint.adb, osint.ads, + par_sco.adb, prepcomp.adb, prj-part.adb, prj-proc.adb, scng.adb, + sdefault.ads, sem_ch10.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, + sem_ch4.adb, sem_ch5.adb, sem_dim.adb, sem_elab.adb, sem_eval.adb, + sem_intr.adb, sem_prag.adb, sem_type.adb, sem_warn.adb, stylesw.adb, + stylesw.ads, targparm.adb, targparm.ads (Cascaded_Error): Rename to + more descriptive name 'Check_Error_Detected'. Add calls to + Check_Error_Detected at places where semantic analysis is abandoned + assuming a previously detected error. + +2012-11-06 Robert Dewar + + * exp_ch4.adb: Minor comment change. + +2012-11-06 Robert Dewar + + * gnat_ugn.texi: Extensive revision of documentation of overflow + checking. + * vms_data.ads: Overflow check numbers must be in range 1-3, + not 0-3. + +2012-11-06 Tristan Gingold + + * sem_ch9.adb (Analyze_Protected_Type_Declaration): Emit a + warning if pragma Priority is used in presence of an interrupt + handler. + +2012-11-06 Robert Dewar + + * checks.ads, checks.adb, exp_ch4.adb: Minor changes throughout for + new overflow checking. + * exp_util.adb (Insert_Actions): Remove special casing of + Overflow_Check. + * gnat1drv.adb (Adjust_Global_Switches): Fixes for new handling + of overflow checks. + * sem.adb (Analyze): Remove special casing of Overflow_Check + (Analyze_List): ditto. + * sem_prag.adb (Analyze_Pragma, case Overflow_Checks): Remove + SUPPRESSED and change CHECKED to STRICT. + * sem_res.adb (Analyze_And_Resolve): No longer treat + Overflow_Check specially. + (Preanalyze_And_Resolve): ditto. + (Resolve): ditto. + * snames.ads-tmpl: Replace Name_Checked by Name_Strict. + * switch-c.adb (Get_Overflow_Mode): Eliminate 0 setting, + CHECKED => STRICT. + * types.ads (Overflow_Check_Type): Remove Suppressed, change + Checked to Strict (Suppress_Record): Overflow check controlled + by Suppress array. + +2012-11-06 Ed Schonberg + + * sem_res.adb (Preanalyze_And_Resolve): In Alfa mode do not + disable checks, so that flags can be properly set on expressions + that are not further expanded. + +2012-11-06 Robert Dewar + + * exp_attr.adb, sem_attr.adb: Minor reformatting. + +2012-11-06 Gary Dismukes + + * exp_attr.adb (Expand_N_Attribute_Reference): Apply a predicate + check when evaluating the attribute Valid, and issue a warning + about infinite recursion when the check occurs within the + predicate function of the prefix's subtype. + * exp_ch4.adb (Expand_N_In): Remove test for Is_Discrete_Type + when we're checking that there's no predicate check function as a + condition for substituting a Valid check for a scalar membership + test (substitution should be suppressed for any kind of scalar + subtype with a predicate check). Also, don't emit a predicate + check when the right operand is a range. + +2012-11-06 Robert Dewar + + * par_sco.adb, bindgen.adb, exp_vfpt.adb, exp_vfpt.ads, exp_ch2.adb, + errout.adb, sem_ch8.adb: Minor reformatting. + +2012-11-06 Hristian Kirtchev + + * einfo.adb: Include Loop_Entry_Attributes to the list of + Node/List/Elist10 usage. + (Loop_Entry_Attributes): New routine. + (Set_Loop_Entry_Attributes): New routine. + (Write_Field10_Name): Add an output string for Loop_Entry_Attributes. + * einfo.ads: Define new attribute Loop_Entry_Attributes along + with its usage in nodes. + (Loop_Entry_Attributes): New routine and dedicated pragma Inline. + (Set_Loop_Entry_Attributes): New routine and dedicated pragma Inline. + * exp_attr.adb (Expand_N_Attribute_Reference): Do not expand + Attribute_Loop_Entry here. + * exp_ch5.adb: Add with and use clause for Elists; + (Expand_Loop_Entry_Attributes): New routine. + (Expand_N_Loop_Statement): Add a call to Expand_Loop_Entry_Attributes. + * exp_prag.adb (Expand_Pragma_Loop_Assertion): Specialize the + search to include multiple nested loops produced by the expansion + of Ada 2012 array iterator. + * sem_attr.adb: Add with and use clause for Elists. + (Analyze_Attribute): Check the legality of attribute Loop_Entry. + (Resolve_Attribute): Nothing to do for Loop_Entry. + (S14_Attribute): New routine. + * snames.ads-tmpl: Add a comment on entries marked with + HiLite. Add new name Name_Loop_Entry. Add new attribute + Attribute_Loop_Entry. + +2012-11-06 Geert Bosch + + * eval_fat.adb (Machine, Succ): Fix front end to support static + evaluation of attributes on targets with both VAX and IEEE float. + * sem_util.ads, sem_util.adb (Has_Denormals, Has_Signed_Zeros): + New type-specific functions. Previously we used Denorm_On_Target + and Signed_Zeros_On_Target directly, but that doesn't work well + for OpenVMS where a single target supports both floating point + with and without signed zeros. + * sem_attr.adb (Attribute_Denorm, Attribute_Signed_Zeros): Use + new Has_Denormals and Has_Signed_Zeros functions to support both + IEEE and VAX floating point on a single target. + +2012-11-06 Tristan Gingold + + * bindgen.adb (System_Interrupts_Used): New variable. + (Gen_Adainit): Declare and call + Install_Restricted_Handlers_Sequential if System.Interrupts is + used when elaboration policy is sequential. + +2012-11-06 Ed Schonberg + + * sem_ch8.adb: Complete previous change. + +2012-11-06 Tristan Gingold + + * fe.h (Get_Vax_Real_Literal_As_Signed): Declare. + * eval_fat.adb, eval_fat.ads (Decompose_Int): Move spec in package spec. + * exp_vfpt.adb, exp_vfpt.ads (Vax_Real_Literal_As_Signed): New function. + (Expand_Vax_Real_Literal): Remove. + * exp_ch2.adb (Expand_N_Real_Literal): Do nothing. + * sem_eval.adb (Expr_Value_R): Remove special Vax float case, + as this is not anymore a special case. + +2012-11-06 Yannick Moy + + * uintp.ads: Minor correction of typo in comment. + +2012-11-06 Ed Schonberg + + * sem_prag.adb (Analyze_Pragnma, case Unchecked_Union): remove + requirement that discriminants of an unchecked_union must have + defaults. + +2012-11-06 Vasiliy Fofanov + + * projects.texi: Minor wordsmithing. + +2012-11-06 Robert Dewar + + * sem_ch9.adb, exp_vfpt.adb, xoscons.adb: Minor reformatting. + +2012-11-06 Tristan Gingold + + * exp_vfpt.adb: Document VAX float point layout. + +2012-11-06 Geert Bosch + + * eval_fat.adb (Machine): Don't return -0.0 on targets without + signed zeros. + +2012-11-06 Ed Schonberg + + * sem_ch9.adb (Analyze_Entry_Call_Alternative, + Check_Triggering_Statement): Reject properly an indirect call. + +2012-11-06 Pascal Obry + + * xoscons.adb, xutil.adb, xutil.ads: Add support for post-processing. + +2012-11-06 Yannick Moy + + * s-bignum.adb (Div_Rem): Fix another bug in step D3. + +2012-11-06 Tristan Gingold + + * s-tarest.adb (Create_Restricted_Task): Call + Create_Restricted_Task_Sequential in sequential case. + +2012-11-06 Hristian Kirtchev + + * exp_prag.adb (Expand_Pragma_Loop_Assertion): Do not rewrite the + pragma into a null statement as its presence is desirable in -gnatG + output. + +2012-11-06 Ed Schonberg + + * sem_ch8.adb (Check_Constrained_Object): Do nothing if the + renamed object is a limited record. + +2012-11-06 Bernard Banner + + * sysdep.c (_getpagesize): New. Minor reformatting. + +2012-11-06 Robert Dewar + + * sem_prag.adb: Minor reformatting. + +2012-11-06 Robert Dewar + + * s-bignum.adb (Div_Rem): Fix bug in step D3. + * uintp.adb (UI_Div_Rem): Add comment on bug in step D3. + +2012-11-06 Hristian Kirtchev + + * exp_prag.adb (Expand_Pragma_Loop_Assertion): Update the comment + on intended expansion. Reimplement the logic which expands the + termination variants. + (Process_Increase_Decrease): Update the parameter profile and the + comment related to it. Accommodate the new aggregate-like appearance of + the termination variants. + * sem_prag.adb (Analyze_Pragma): Update the syntax of pragma + Loop_Assertion. Reimplement the semantic analysis of the pragma + to accommodate the new aggregate-like variant. + (Check_Variant): New routine. + * snames.ads-tmpl: Change names Name_Decreases and Name_Increases + to Name_Decreasing and Name_Increasing respectively. Add name + Variant. + +2012-11-06 Ed Schonberg + + * sem_eval.adb: Static evaluation of case expressions. + +2012-11-06 Robert Dewar + + * exp_prag.adb, impunit.adb, exp_ch9.adb, par-ch4.adb, + s-tarest.adb: Minor reformatting. + +2012-11-06 Tristan Gingold + + * s-tposen.ads: Minor comment update. + +2012-11-06 Arnaud Charlet + + * sysdep.c: Rename sig* wrappers to use unique names. + +2012-11-06 Yannick Moy + + * exp_dbug.adb (Qualify_Entity_Name): Mark entity as having a qualified + name after being treated, in formal verification mode. + +2012-11-06 Fedor Rybin + + * gnat_ugn.texi: Updating gnattest section to reflect changes + in default behaviour of the tool. + +2012-11-06 Thomas Quinot + + * s-oscons-tmplt.c: Interfaces.C now needs to be WITH'd even + on platforms that do not support sockets (for the benefit of + subtype IOCTL_Req_T). + +2012-11-06 Ed Schonberg + + * par-ch4.adb (P_Primary): if-expressions, case-expressions, + and quantified expressions are legal if surrounded by parentheses + from an enclosing context, such as a call or an instantiation. + +2012-11-06 Yannick Moy + + * impunit.adb (Get_Kind_Of_Unit): Return appropriate kind for + predefined implementation files, instead of returning + Not_Predefined_Unit on all .adb files. + +2012-11-06 Tristan Gingold + + * exp_ch9.adb (Build_Activation_Chain_Entity): Return immediately if + partition elaboration policy is sequential. + (Build_Task_Activation_Call): Likewise. Use + Activate_Restricted_Tasks on restricted profile. + (Make_Task_Create_Call): Do not use the _Chain + parameter if elaboration policy is sequential. Call + Create_Restricted_Task_Sequential in that case. + * exp_ch3.adb (Build_Initialization_Call): Change condition to + support concurrent elaboration policy. + (Build_Record_Init_Proc): Likewise. + (Init_Formals): Likewise. + * bindgen.adb (Gen_Adainit): Declare Partition_Elaboration_Policy + and set it in generated code if the elaboration policy is + sequential. The procedure called to activate all tasks is now + named __gnat_activate_all_tasks. + * rtsfind.adb (RE_Activate_Restricted_Task, + RE_Create_Restricted_Task_Sequential): New RE_Id literals. + * s-tarest.adb (Create_Restricted_Task): Added to create a task without + adding it on an activation chain. + (Activate_Tasks): Has now a Chain parameter. + (Activate_All_Tasks_Sequential): Added. Called by the binder to + activate all tasks. + (Activate_Restricted_Tasks): Added. Called during elaboration to + activate tasks of the units. + * s-tarest.ads: Remove pragma Partition_Elaboration_Policy. + (Partition_Elaboration_Policy): New variable (set by the binder). + (Create_Restricted_Task): Revert removal of the chain parameter. + (Create_Restricted_Task_Sequential): New procedure. + (Activate_Restricted_Tasks): Revert removal. + (Activate_All_Tasks_Sequential): New procedure. + +2012-11-06 Bernard Banner + + * adaint.c Add file macro definitions missing on Android. + * adaint.h Avoid definitions related to task affinity and CPU + sets since this functionality is missing on the Android + * errno.c (__set_errno): Android already contains such a named + procedure so do include again. + * gsocket.h: Sockets not supported on Android. + * init.c: Avoid linux related code not supported on Android. + * sysdep.c (sigismember, sigaddset, sigdelset, sigemptyset, + sigfillset): wrapper functions since sig routines are defined + as inline macros on Android. + * terminals.c: Add stubs for terminal related functions not + supported on Android. + +2012-11-06 Hristian Kirtchev + + * sem_prag.adb (Analyze_Pragma): Do not + output the characters of an illegal argument as it may not have + characters to begin with. + +2012-11-06 Hristian Kirtchev + + * exp_prag.adb (Expand_Pragma_Loop_Assertion): + Change the order of argument processing to avoid disappearing + increase / decrease expressions. + +2012-11-06 Hristian Kirtchev + + * exp_prag.adb: Add with and use clause for Sem_Ch8. + (Expand_N_Pragma): Add a new variant to expand pragma Loop_Assertion. + (Expand_Pragma_Loop_Assertion): New routine. + * par-prag.adb (Prag): The semantic analysis of pragma + Loop_Assertion is carried out by Analyze_Pragma. No need for + checks in the parser. + * sem_prag.adb: Add a reference position value for pragma + Loop_Assertion in Sig_Flags. + (Analyze_Pragma): Add semantic analysis for pragma Loop_Assertion. + * snames.ads-tmpl: Add the following new names: + Name_Decreases Name_Increases Name_Loop_Assertion. + Add new pragma id Pragma_Loop_Assertion. + +2012-11-06 Ed Schonberg + + * exp_ch5.adb: Identifier in iterator must have debug + information. + +2012-11-06 Arnaud Charlet + + * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Remove + duplicate rules handled by Make-generated.in. + +2012-10-31 Lawrence Crowl + + * gcc-interface/utils.c (gnat_write_global_declarations): + Rename varpool_node to varpool_node_for_decl. + +2012-10-30 Eric Botcazou + + * gcc-interface/Make-lang.in: Fix and clean up rules for C files. + +2012-10-29 Arnaud Charlet + + * gcc-interface/Makefile.in (s-oscons.ads): Adjust call to xoscons. + +2012-10-29 Pascal Obry + + * xoscons.adb, Make-generated.in; The template used by xoscons is now + given as parameter. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-10-29 Yannick Moy + + * exp_dbug.adb (Qualify_Entity_Name): Only do renaming in formal + verification mode when there is a homonym. + +2012-10-29 Thomas Quinot + + * xoscons.adb: Minor reformatting. + +2012-10-29 Yannick Moy + + * exp_alfa.adb (Expand_Alfa): Backtrack change that removed + qualification of names in formal verification mode. Instead, + the qualification should be modified. + * exp_dbug.adb (Qualify_Entity_Name): Modify qualification in formal + verification mode, so that only a suffix is added to distinguish + homonyms from the same scope. + +2012-10-29 Robert Dewar + + * gnat_rm.texi: Document that pragma Optimize_Alignment (Space) is + ignored with a warning for packed variable length records. + +2012-10-29 Thomas Quinot + + * socket.c, g-socthi-dummy.adb, g-socthi-dummy.ads, g-socthi-vms.adb, + g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads, + s-oscons-tmplt.c, g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb, + g-socthi.ads, xoscons.adb, g-socket.adb, g-sothco.ads: Introduce an + appropriate subtype for IOCTL requests, since these may be signed or + unsigned. + +2012-10-29 Gary Dismukes + + * exp_alfa.adb: Minor reformatting. + +2012-10-29 Robert Dewar + + * gnat_rm.texi, gnat_ugn.texi: Clarify documentation on maximum + line length style switch. + +2012-10-29 Robert Dewar + + * layout.adb (Set_Composite_Alignment): Ignore pragma + Optimize_Alignment (Space) for packed variable length records. + +2012-10-29 Robert Dewar + + * s-bignum.adb: Minor comment change. + +2012-10-29 Thomas Quinot + + * s-oscons-tmplt.c: Fix signedness of ioctl request identifiers + for x86_64-freebsd. + +2012-10-29 Yannick Moy + + * exp_alfa.adb (Expand_Alfa): Remove qualification of names. + +2012-10-29 Robert Dewar + + * sem_prag.adb: Minor reformatting. + +2012-10-29 Robert Dewar + + * gnat_rm.texi: Minor rewording. + +2012-10-29 Javier Miranda + + * exp_disp.ads (Is_Expanded_Dispatching_Call): New subprogram. + * exp_disp.adb (Expand_Dispatching_Call): No action needed if the + call has been already expanded. + (Is_Expanded_Dispatching_Call): New subprogram. + * sem_disp.adb (Propagate_Tag): No action needed if the call + has been already expanded. + +2012-10-29 Hristian Kirtchev + + * exp_ch9.adb (Create_Index_And_Data): Remove local + variable Index_Typ and its uses. The type of the index is now + System.Tasking.Entry_Index. Update all related comments. + * rtsfind.ads: Add RE_Entry_Index in tables RE_Id and RE_Unit_Table. + * s-taskin.adb (Number_Of_Entries): The return type is now Entry_Index. + * s-taskin.ads: The index type of Task_Entry_Names_Array is now + Entry_Index. + (Number_Of_Entries): The return type is now Entry_Index. + * s-tpoben.adb (Number_Of_Entries): The return type is now Entry_Index. + * s-tpoben.ads: The index type of Protected_Entry_Names_Array + is now Entry_Index. + (Number_Of_Entries): The return type is now Entry_Index. + +2012-10-29 Pascal Obry + + * gnat_ugn.texi: Add note about SEH setup on x86-windows. + +2012-10-29 Eric Botcazou + + * s-bignum.adb (Allocate_Bignum): Use the exact layout of + Bignum_Data for the overlay. + +2012-10-29 Thomas Quinot + + * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_util.ads, + par-prag.adb, par-util.adb, snames.ads-tmpl (Sem_Prag.Analyze_Pragma): + Handle new pragma Attribute_Definition. + (Sem_Util.Bad_Attribute): New routine, moved here + from par-util, so that it can be used by the above. + (Par_Util.Signal_Bad_Attribute): Processing moved to + Sem_Util.Bad_Attribute. + +2012-10-29 Robert Dewar + + * s-tpoben.ads, s-taskin.ads, exp_ch3.adb: Minor reformatting. + +2012-10-29 Yannick Moy + + * sem_prag.adb, gnat1drv.adb, opt.ads: Rename S14_Extensions + into Formal_Extensions. + +2012-10-29 Thomas Quinot + + * sem_attr.adb: Minor reformatting. + +2012-10-29 Tristan Gingold + + * gnat_rm.texi: Document implementation advice for Pragma + Partition_Elaboration_Policy. + +2012-10-29 Yannick Moy + + * s-bignum.adb (Div_Rem): Reference that Algorithm_D is from + the second edition of TAOCP from Knuth, since the algo changed + in the third edition. Also correct the definition of 'd' which + could overflow. + +2012-10-29 Hristian Kirtchev + + * exp_ch3.adb (Build_Initialization_Call): Create static strings + which denote entry [family] names and associate them with the + object's Protection_Entries or ATCB. + (Build_Init_Statements): + Remove local variable Names. Do not generate the entry [family] + names inside the init proc because they are now static. + * exp_ch9.adb (Build_Entry_Names): Reimplemented. The strings + which denote entry [family] names are now generated statically + and associated with the concurrent object's Protection_Entries + or ATCB during initialization. + * exp_ch9.ads (Build_Entry_Names): Change subprogram profile + and associated comment on usage. + * rtsfind.ads: Add the following entries to tables RE_Id and + RE_Unit_Table: + + RE_Protected_Entry_Names_Array RE_Task_Entry_Names_Array + RO_PE_Number_Of_Entries RO_PE_Set_Entry_Names + RO_ST_Number_Of_Entries RO_ST_Set_Entry_Names + + Remove the following entries from tables RE_Id and RE_Unit_Table: + + RO_PE_Set_Entry_Name RO_TS_Set_Entry_Name + + * s-taskin.adb: Remove with clause for Ada.Unchecked_Deallocation. + (Free_Entry_Names_Array): Removed. + (Number_Of_Entries): New routine. + (Set_Entry_Names): New routine. + * s-taskin.ads: Rename type Entry_Names_Array to + Task_Entry_Names_Array. Rename type Entry_Names_Array_Access + to Task_Entry_Names_Access. Update the type of ACTB field + Entry_Names and add a comment on its protection status. + (Free_Entry_Names_Array): Removed. + (Number_Of_Entries): New routine. + (Set_Entry_Names): New routine. + * s-tassta.adb (Create_Task): Remove formal parameter + Build_Entry_Names. Do not allocate an array to hold the + string names of entries and families. + (Free_Entry_Names): Removed. + (Free_Task): Remove the call to Free_Entry_Names. + (Set_Entry_Name): Removed. + (Vulnerable_Free_Task): Remove the call to Free_Entry_Names. + * s-tassta.ads (Create_Task): Remove formal parameter + Build_Entry_Names along with associated comment. + (Set_Entry_Name): Removed. + * s-tpoben.adb: Remove with clause for Ada.Unchecked_Deallocation. + (Finalize): Remove the call to Free_Entry_Names. + (Free_Entry_Names): Removed. + (Initialize_Protection_Entries): + Remove formal parameter Build_Entry_Names. Do not allocate + an array to hold the string names of entries and families. + (Number_Of_Entries): New routine. + (Set_Entry_Name): Removed. + (Set_Entry_Names): New routine. + * s-tpoben.ads: Add types Protected_Entry_Names_Array and + Protected_Entry_Names_Access. Update the type of Protection_Enties + field Entry_Names. + (Initialize_Protection_Entries): Remove + formal parameter Build_Entry_Names along with associated comment. + (Number_Of_Entries): New routine. + (Set_Entry_Name): Removed. + (Set_Entry_Names): New routine. + +2012-10-29 Arnaud Charlet + + * gnat_ugn.texi: Minor typo fix. +2012-10-29 Yannick Moy + + * debug.adb Associate debug switch -gnatd.V to extensions for + formal verification. + * gnat1drv.adb (Adjust_Global_Switches): Set flag S14_Extensions + when -gnatd.V is set. + * gnat_rm.texi: Remove doc for Assert_And_Cut. + * opt.ads Declare new flag S14_Extensions, to be set when new + aspects/pragmas/attributes for formal verification should be + accepted. + * sem_prag.adb (Analyze_Pragma): Check that S14_Extensions is + set when treating pragma Assert_And_Cut. + +2012-10-29 Tristan Gingold + + * s-tarest.ads, s-tassta.adb: Add a pragma Partition_Elaboration_Policy. + +2012-10-29 Robert Dewar + + * freeze.adb: Minor reformatting. + +2012-10-29 Robert Dewar + + * xr_tabls.adb, xr_tabls.ads, exp_ch9.adb, snames.adb-tmpl, + snames.ads-tmpl, exp_ch3.adb: Minor reformatting. + +2012-10-29 Ed Schonberg + + * sem_ch6.adb: Call Build_Subprogrm_Instance_Renamings only when + generating code. + +2012-10-29 Robert Dewar + + * gnat_ugn.texi: Add documentation for -gnatw.k/-gnatw.K. + * ug_words: Add entries for -gnatw.k/.K for [NO]STANDARD_REDEFINITION. + * vms_data.ads: Add entries for [NO]STANDARD_REDEFINITION. + +2012-10-29 Tristan Gingold + + * exp_ch9.adb, s-tarest.ads, exp_ch3.adb: Update comments. + +2012-10-29 Yannick Moy + + * gnat_rm.texi: Minor documentation addition. + +2012-10-29 Emmanuel Briot + + * xr_tabls.adb, xr_tabls.ads (Add_Declaration, Add_Reference): No + longer assume that a parameter declaration is seen after the subprogram + that uses it. + +2012-10-29 Tristan Gingold + + * lib-writ.adb (Write_ALI): Emit partition elaboration policy + in P line. + * lib-writ.ads: Document partition elaboration policy indication. + * sem_prag.adb (Check_Arg_Is_Partition_Elaboration_Policy): New + procedure. + (Analyze_Pragma): Handle Partition_Elaboration_Policy. + (Sig_Flags): Add flag for Pragma_Partition_Elaboration_Policy + * ali.adb (Initialize_ALI): Init Partition_Elaboration_Policy_Specified. + (Scan_ALI): Read Ex indications. + * ali.ads: ALIs_Record: Add Partition_Elaboration_Policy. + * par-prag.adb (Prag): Add Partition_Elaboration_Policy. + * snames.adb-tmpl (Is_Partition_Elaboration_Policy_Name): New function. + * opt.ads (Partition_Elaboration_Policy): Declare. + (Partition_Elaboration_Policy_Sloc): Declare. + * bcheck.adb (Check_Consistent_Partition_Elaboration_Policy): + New procedure. (Check_Configuration_Consistency): Check partition + elaboration policy consistency. + * snames.ads-tmpl (Name_Partition_Elaboration_Policy): New name. + (First_Partition_Elaboration_Policy_Name, Name_Concurrent, + Name_Sequential, Last_Partition_Elaboration_Policy_Name): Likewise. + (Pragma_Partition_Elaboration_Policy): New literal. + (Is_Partition_Elaboration_Policy_Name): New function. + +2012-10-29 Ed Schonberg + + * sem_ch6.adb (Is_Public_Subprogram_For): Handle properly + expression functions, which are rewritten as subprogram + declarations, when generating invariants for its return value + and in-out parameters. + +2012-10-29 Arnaud Charlet + + * warnsw.adb (Set_GNAT_Mode_Warnings): Unset + Warn_On_Standard_Redefinition. + +2012-10-29 Javier Miranda + + * sem_ch3.adb (Derive_Progenitor_Subprograms): Complete documentation. + +2012-10-29 Robert Dewar + + * par-ch11.adb (Warn_If_Standard_Redefinition): Add calls. + * par-ch3.adb (P_Defining_Identifier): Call + Warn_If_Standard_Redefinition if not inside record definition. + * par-ch6.adb (Warn_If_Standard_Redefinition): Add calls. + * par-util.adb (Warn_If_Standard_Redefinition): New procedure. + * par.adb (Inside_Record_Definition): New flag. + (Warn_If_Standard_Redefinition): New procedure. + * sinfo-cn.adb (Change_Identifier_To_Defining_Identifier): Remove + handling of warning for redefining standard name (moved to Par*). + +2012-10-29 Javier Miranda + + * sem_ch3.adb (Derive_Progenitor_Subprograms): Disable small + optimization in generic formal types. + +2012-10-29 Robert Dewar + + * exp_ch9.adb, exp_ch3.adb: Add comments. + * sem_prag.adb: Minor reformatting. + +2012-10-29 Tristan Gingold + + * bindgen.adb (Gen_Output_File_Ada): Do not emit declaration for + Is_Elaborated if not referenced. + +2012-10-29 Tristan Gingold + + * exp_ch9.adb (Build_Activation_Chain_Entity): Punt in restricted + profile. + * exp_ch3.adb (Build_Initialization_Call): Do no append _Chain + parameter in restricted profile. + (Build_Init_Call_Thru): Likewise. + (Init_Formals): Likewise. + * exp_ch3.adb: Minor reformatting. + +2012-10-29 Arnaud Charlet + + * usage.adb: Update usage line for -gnatw.k. + +2012-10-29 Yannick Moy + + * sem_prag.adb: Code clean up. + +2012-10-29 Vincent Celier + + * projects.texi: Clarify documentation of attribute + Ignore_Source_Sub_Dirs. + +2012-10-29 Robert Dewar + + * g-sechas.adb, g-sechas.ads, exp_ch9.adb, bindgen.adb, exp_dbug.adb, + exp_dbug.ads: Minor reformatting. + +2012-10-29 Pascal Obry + + * g-sechas.adb, g-sechas.ads: (Binary_Message_Digest): New subtype. + (Digest): New versions returning a Binary_Message_Digest. + (Wide_Digest): Likewise. + +2012-10-29 Robert Dewar + + * warnsw.adb: Complete previous change. + +2012-10-29 Tristan Gingold + + * bindgen.adb (Check_File_In_Partition, Check_System_Restrictions_Used): + Removed. + (Check_Dispatching_Domains_Used): Removed. + (Gen_Adafinal): Remove call to above procedures. + (Resolve_Binder_Options): Handle system restrictions and dispatching + domains. + +2012-10-29 Tristan Gingold + + * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Remove + Chain parameter. + * exp_ch9.adb (Make_Task_Create_Call): Do not add Chain parameter + on restricted runtime. + +2012-10-29 Pascal Obry + + * g-sechas.adb, g-sechas.ads: Minor code clean-up. + +2012-10-29 Ed Schonberg + + * sem_aux.adb (Get_Rep_Item): Treat Priority and Interrupt_Priority + as equivalent, because only one of them can be specified for a + task, protected definition, or subprogram body. + * aspects.adb ((Same_Aspect): The canonical aspect of + Interrupt_Priority is Priority. + +2012-10-29 Robert Dewar + + * sem_ch13.adb: Minor reformatting. + +2012-10-29 Robert Dewar + + * i-cstrea.ads: Avoid redefinition of standard symbol string. + * prj-makr.adb: Add comment for OK redefinition of Stadard. + * prj.ads: Add comment for OK redefinition of Stadard. + * s-crtl.ads: Avoid redefinition of standard symbol string. + * sinfo-cn.adb (Change_Identifier_To_Defining_Identifier): + Generate warning for standard redefinition if + Warn_On_Standard_Definition set. + * usage.adb: Add lines for -gnatw.k and -gnatw.K + * warnsw.adb: Set/reset Warn_On_Standard_Redefinition + appropriately. + * warnsw.ads (Warn_On_Standard_Redefinition): New flag. + * s-stratt-xdr.adb: Avoid new warning. + +2012-10-29 Ed Schonberg + + * exp_dbug.ads, exp_dbug.adb (Build_Subprogram_Instance_Renamings): + in the body of a subpogram instance, introduce local renamings + for actuals of an elementary type, so that GDB can recover the + values of these actuals more directly. + +2012-10-29 Robert Dewar + + * sem_ch5.adb (Analyze_Loop_Statement): Add warning for identical + inner/outer ranges. + +2012-10-29 Robert Dewar + + * einfo.ads: Change terminology "present" to "defined" in talking + about whether a given field is defined for a given entity kind. + +2012-10-29 Bob Duff + + * atree.ads: Minor comment fix. + +2012-10-29 Bob Duff + + * sem_ch13.adb (Replace_Type_Reference): Set_Comes_From_Source. + Otherwise, the node is ignored by ASIS. + * sem_ch5.adb: Minor reformatting. + +2012-10-29 Thomas Quinot + + * exp_attr.adb, exp_dist.adb, exp_dist.ads (Build_To_Any_Call): Pass + an explicit Loc parameter to set the source location of generated + nodes. + +2012-10-29 Tristan Gingold + + * exp_ch9.adb (Build_Task_Activation_Call): Do nothing on + restricted profile. + * bindgen.adb (System_Tasking_Restricted_Stages_Used): New variable. + (Gen_Adainit): Declare and call Activate_Tasks when the above variable + is set. + (Resolve_Binder_Options): Set the variable. + * rtsfind.ads (RE_Activate_Restricted_Tasks): Removed (now unused). + * s-tarest.adb (Tasks_Activation_Chain): New variable. + (Activate_Restricted_Tasks): Removed, and replaced by ... + (Activate_Tasks): New procedure, to activate all tasks at + the end of elaboration. + (Create_Restricted_Tasks): Chain parameter is now unreferenced. Put + the created task on the Tasks_Activation_Chain list. + * s-tarest.ads (Activate_Restricted_Tasks): Removed. + (Activate_Tasks): Added. + +2012-10-29 Gary Dismukes + + * sem_res.adb (Resolve_If_Expression): Compare subtype of the 'then' + expression against the subtype of the expression rather than comparing + base types, same as is already done for the 'else' expression. + +2012-10-29 Steve Baird + + * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If CodePeer_Mode + = True and we detect that an Address specification is used to overlay + another object, do not set that object's Treat_As_Volatile flag. + +2012-10-29 Ed Schonberg + + * sem_ch3.adb (Constant_Redeclaration): If the type of a + deferred constant has invariants, generate invariant call on + the initial value. + +2012-10-29 Bob Duff + + * sem_ch13.adb (Replace_Type_Reference): Use correct sloc for + the new node. + +2012-10-29 Thomas Quinot + + * sem_elab.adb: Minor reformatting and code reorganization. + +2012-10-29 Robert Dewar + + * par-ch4.adb (P_Primary): Warn on bad use of unary minus. + +2012-10-29 Robert Dewar + + * s-valuti.ads, s-valuti.adb (Bad_Value): New procedure. + * s-valllu.adb, s-valwch.adb, s-valcha.adb, s-valint.adb, + s-valuns.adb, s-valrea.adb, s-valboo.adb, s-valenu.adb, + s-vallli.adb: Use Bad_Value everywhere. + +2012-10-29 Yannick Moy + + * gnat1drv.adb (Adjust_Global_Switches): Do not suppress checks + in Alfa mode. + +2012-10-29 Yannick Moy + + * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): + Add special case for case expression alternative. + (Is_Signed_Integer_Arithmetic_Op): Remove special case for case + expression alternative. + * exp_ch4.adb Minor reformatting. + +2012-10-29 Thomas Quinot + + * sem_elab.adb: Minor reformatting. + +2012-10-29 Bob Duff + + * sem_res.adb: Minor: Remove redundant test. + +2012-10-29 Arnaud Charlet + + * pprint.ads, pprint.adb, adabkend.ads, adabkend.adb, + aa_util.ads, aa_util.adb: New. + +2012-10-23 Eric Botcazou + + * system-linux-mipsel.ads (Stack_Check_Probes): Set to True. + * system-linux-mips.ads (Stack_Check_Probes): Likewise. + * system-linux-mips64el.ads (Stack_Check_Probes): Likewise. + +2012-10-22 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Force + BLKmode on the type if it is passed by reference. + : Likewise. + : Guard the call to Is_By_Reference_Type predicate. + : Likewise. + + * gcc-interface/Makefile.in: Remove outdated comment and reference to + non-existing file. + +2012-10-22 Eric Botcazou + + * gcc-interface/utils.c (rest_of_record_type_compilation): Simplify and + robustify pattern machine code for masking operations. + +2012-10-22 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : In + type annotation mode, break circularities introduced by AI05-0151. + +2012-10-22 Eric Botcazou + + * gcc-interface/trans.c (Loop_Statement_to_gnu): Use gnat_type_for_size + directly to obtain an unsigned version of the base type. + +2012-10-22 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not + generate the special PARM_DECL for an Out parameter in LTO mode. + +2012-10-22 Eric Botcazou + + PR bootstrap/54820 + * gcc-interface/Make-lang.in (GCC_LINK): Remove hardcoded options. + +2012-10-15 Matthias Klose + + * gcc-interface/Makefile.in: Match arm*-*-linux-*eabi* for + ARM Linux/GNU. + +2012-10-05 Robert Dewar + + * sem_ch7.adb: Minor reformatting. + +2012-10-05 Ed Schonberg + + * sem_prag.adb (Analyze_Pragma, case Persistent_BSS): check for + a duplicate pragma before Rep_Item_Too_Late to prevent spurious + messages about duplicate pragmas. + +2012-10-05 Ed Schonberg + + * exp_util.adb (Find_Init_Call): If the successor of the + object declaration is a block, check whether it contains the + initialization call, because it may have been created by actuals + that use the secondary stack. + +2012-10-05 Thomas Quinot + + * sem_dim.adb, errout.adb, errout.ads (Analyze_Dimension_Call): Add + guard against abnormal tree resulting from a previously diagnosed + illegality. + +2012-10-05 Hristian Kirtchev + + * freeze.adb (Freeze_Expression): Rename local variable Cspc to Spec + and update all refs to it. Do not freeze an entity outside a subprogram + body when the original context is an expression function. + +2012-10-05 Robert Dewar + + * gnat1drv.adb (Adjust_Global_Switches): Default for overflow checking + is suppressed, even if backend overflow/divide checks are enabled. + +2012-10-05 Ed Schonberg + + * einfo.adb (Set_Invariant_Procedure, Set_Predicate_Function): + chain properly subprograms on Subprograms_For_Type list. + * sem_ch13.ads; (Build_Invariant_Procedure_Declaration): new + procedure, to create declaration for invariant procedure + independently of the construction of the body, so that it can + be called within expression functions. + * sem_ch13.adb (Build_Invariant_Procedure): code cleanup. The + declaration may already have been generated at the point an + explicit invariant aspect is encountered. + * sem_prag.adb; (Analyze_Pragma, case Invariant): create declaration + for invariant procedure. + * sem_ch7.adb (Analyze_Package_Specification): clean up call to + build invariant procedure. + (Preserve_Full_Attributes): propagate information about invariants + if they appear on a completion, + +2012-10-05 Pascal Obry + + * gnat_ugn.texi: Update documentation to lift Microsoft C + restriction. + +2012-10-05 Robert Dewar + + * sem_util.adb (Has_One_Matching_Field): Handle case of lone + discriminant. + +2012-10-05 Yannick Moy + + * checks.adb (Minimize_Eliminate_Overflow_Checks): Correct code + for the division operation and exponent operation. Adjust bound + for the mod and rem operations. + +2012-10-05 Robert Dewar + + * checks.adb, checks.ads, s-tassta.adb, s-stposu.adb, s-spsufi.adb, + s-spsufi.ads, exp_ch4.adb: Minor reformatting. + +2012-10-05 Yannick Moy + + * switch-c.adb, checks.adb, checks.ads, sem_prag.adb, exp_ch4.adb, + osint.adb: Minor correction of typos, and special case for Alfa mode. + +2012-10-05 Hristian Kirtchev + + * s-spsufi.adb: Add with clause for Ada.Unchecked_Deallocation. + Add with and use clauses for System.Finalization_Masters. + (Finalize_And_Deallocate): Add an instance of + Ada.Unchecked_Deallocation. Merge the code from the now obsolete + Finalize_Subpool into this routine. + * s-spsufi.ads: Add pragma Preelaborate. + * s-stposu.adb: Remove with clause for + Ada.Unchecked_Deallocation; Add with and use clauses for + System.Storage_Pools.Subpools.Finalization; (Finalize_Pool): + Update the comment on all actions takes with respect to a subpool + finalization. Finalize and deallocate each individual subpool. + (Finalize_Subpool): Removed. + (Free): Removed; + (Detach): Move from package body to spec. + * s-stposu.ads (Detach): Move from package body to spec. + (Finalize_Subpool): Removed. + +2012-10-05 Arnaud Charlet + + * s-tassta.adb: Update comments. + (Vulnerable_Complete_Master): If Free_On_Termination is set, do + nothing, and let the task free itself if not already done. + +2012-10-04 Robert Dewar + + * sem_res.adb (Resolve_Set_Membership): Warn on duplicates. + +2012-10-04 Emmanuel Briot + + * g-comlin.adb (Getopt): Fix value of Full_Switch returned in case of + invalid switch. + +2012-10-04 Arnaud Charlet + + * gcc-interface/Make-lang.in: Update dependencies. + +2012-10-04 Robert Dewar + + * sem_eval.adb (Fold_Str, Fold_Uint, Fold_Ureal): Reset static + expression state after Resolve call. + +2012-10-04 Robert Dewar + + * sem_prag.adb (Analyze_Pragma. case Warnngs): Don't make entry + in the table for Warnings Off pragmas if within an instance. + +2012-10-04 Ed Schonberg + + * sem_ch9.adb (Analyze_Entry_Body): Transfer + Has_Pragma_Unreferenced flag from entry formal to corresponding + entity in body, to prevent spurious warnings when pragma is + present. + +2012-10-04 Robert Dewar + + * s-bignum.adb (Big_Exp): Raise Storage_Error for ludicrously + large results. + +2012-10-04 Ed Schonberg + + * sem_ch3.adb (Check_Duplicate_Aspects): Diagnose properly + aspects that appear in the partial and the full view of a type. + +2012-10-04 Robert Dewar + + * sinfo.ads (N_Return_Statement): Removed. + +2012-10-04 Tristan Gingold + + * init.c (__gl_zero_cost_exceptions): Comment it as not used + anymore. + * bindgen.adb (Gen_Adainit): Do not emit Zero_Cost_Exceptions + anymore. + +2012-10-04 Thomas Quinot + + * prep.adb, prepcomp.adb, gprep.adb, opt.ads: New preprocessor switch + -a (all source text preserved). + +2012-10-04 Vincent Celier + + * prj-proc.adb (Recursive_Process): Use project directory + display path name as the value of 'Project_Dir. + +2012-10-04 Robert Dewar + + * exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): + Deal with case where we get a bignum operand and cannot do a + range analysis. + * sem_eval.adb (Why_Not_Static): Deal with bignum operands + +2012-10-04 Ed Schonberg + + * sem_ch4.adb (Find_Unary_Types): Within an instance, an + interpretation that involves a predefied arithmetic operator is + not a candidate if the corresponding generic formal type is not + a numeric type. + * sem_util.ads, sem_util.adb (Corresonding_Generic_Type): If a + type is a generic actual type within an instance, return the + corresponding formal in the generic unit, otherwise return + Any_Type. + +2012-10-04 Robert Dewar + + * checks.adb (Minimize_Eliminate_Overflow_Checks): Dont reanalyze + if/case expression if nothing has changed (just reexpand). Stops + case expression from generating incorrect temporary. + * exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): + Fix cut and paste typo for range analysis in NE (not equal) case. + * sem_eval.adb (Compile_Time_Compare): Small optimization to + catch some more cases. + * types.ads (Suppressed_Or_Checked): New subtype of + Overflow_Check_Type. + +2012-10-04 Javier Miranda + + * exp_disp.adb (Set_CPP_Constructors_Old): Removed. + (Set_CPP_Constructors): Code cleanup. + +2012-10-04 Ed Schonberg + + * sem_ch10.adb (Is_Ancestor_Unit): Make global, for use elsewhere. + (Install_Private_with_Clauses): if clause is private and limited, + do not install the limited view if the library unit is an ancestor + of the unit being compiled. This unusual configuration occurs + when compiling a unit DDP, when an ancestor P of DDP has a + private limited with clause on a descendant of P that is itself + an ancestor of DDP. + +2012-10-04 Vincent Celier + + * prj-proc.adb (Process_Package_Declaration): Use project + directory display path name as the value of 'Project_Dir. + +2012-10-04 Gary Dismukes + + * exp_util.adb (Build_Allocate_Deallocate_Proc): The subpool can be + given by an arbitrary name, so copy the tree to make the call's actual. + +2012-10-04 Robert Dewar + + * s-exnllf.adb, s-exnllf.ads: Minor reformatting. + +2012-10-04 Thomas Quinot + + * exp_ch6.adb: Minor reformatting. + +2012-10-04 Pascal Obry + + * projects.texi: Use consistently @command{} when referencing + commands. Fix typos. + +2012-10-03 Ed Schonberg + + * sem_ch6.adb (New_Overloaded_Entity): call + Append_Inherited_Subprogram when appropriate. + * sem_dim.adb (Analyze_Dimension_Call): Do not perform dimensional + analysis if call has previous semantic error. + * sem_util.ads, sem_util.adb (Append_Inherited_Subprogram): + new subprogram to handle properly the visibility of inherited + operations that are primitives of a type extension, when the + parent type and operations are declared in the same visible part. + +2012-10-03 Robert Dewar + + * checks.adb (Minimize_Eliminate_Overflow_Checks): Properly + handle case of top level expression within type conversion + * gnat1drv.adb (Adjust_Global_Switches): Set SUPPRESSED as + default for overflow checking for -gnatg mode (includes run-time). + * sem_res.adb (Resolve_Type_Conversion): Avoid bogus warnings + about redundant conversions from MINIMIZED/EXTENDED mode checking + +2012-10-03 Javier Miranda + + * exp_ch4.adb (Expand_N_Allocator_Expression): Minor code + reorganization and cleanup. Done to ensure proper management of + the C++ constructor covering tagged and untagged types and also + non-default constructors. + * exp_ch6.ads, exp_ch6.adb (Make_CPP_Constructor_Call_In_Allocator): + New subprogram. + +2012-10-03 Gary Dismukes + + * sem_ch6.adb: Minor typo fix. + +2012-10-03 Robert Dewar + + * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): + Set Top_Level properly (to False) for operand of range of + membership test. + * exp_ch4.adb (Expand_Membership_Minimize_Eliminate_Overflow): + Fix crash with -gnato3 and membership operations. + (Expand_Membership_Minimize_Eliminate_Overflow): Fix error message + and wrong results for -gnato3 large expression and predicated + subtype. + (Expand_Membership_Minimize_Eliminate_Overflow): Use + expression action node to avoid using insert actions (bombs in + some cases). + (Expand_Compare_Minimize_Eliminate_Overflow): Use expression action + node to avoid using insert actions (bombs in some cases). + +2012-10-03 Javier Miranda + + * exp_disp.adb (Set_CPP_Constructors_Old): Handle constructor of + untagged type that has all its parameters with defaults and hence it + covers the default constructor. + +2012-10-03 Yannick Moy + + * checks.adb, sem_prag.adb, s-bignum.ads: Minor typo fixes. + +2012-10-03 Thomas Quinot + + * g-socket.adb (Connect_Socket, version with timeout): When the + newly-connected socket is reported as available for writing, check + whether it has a pending asynchronous error prior to returning. + +2012-10-03 Ed Schonberg + + * sem_ch6.adb (Check_Conformance): Additional info when subtype + conformance fails, due to a missing null exclusion indicatar in + a formal that must match a controlling access formal. + +2012-10-02 Ben Brosgol + + * gnat_rm.texi: Minor editing. + +2012-10-02 Ed Schonberg + + * sem_ch6.adb (Analyze_Function_Return): Reject a return + expression whose type is a local access to subprogram type. + +2012-10-02 Robert Dewar + + * sem_eval.adb: Minor improvement to Compile_Time_Compare. + +2012-10-02 Robert Dewar + + * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): + Fix base type problem that resulted in improper conversion. + (Minimize_Eliminate_Overflow_Checks): Properly handle top + level case to avoid unnecessary conversion to bignum or LLI. + (Minimize_Eliminate_Overflow_Checks): Implement uniform two phase + approach for arithmetic operators and for if/case expressions. + * checks.ads: Minor comment fix. + * exp_ch4.adb (Minimized_Eliminated_Overflow_Check): New function, + implements a uniform way of treating minimized/eliminated checks in + two phases. + (Expand_Compare_Minimize_Eliminate_Overflow): Fix cut and + paste error resulting in wrong results for less than in some + cases. (Expand_Membership_Minimize_Eliminate_Overflow): + Fix error caused by incorrect capture of operand types. + (Expand_Membership_Minimize_Eliminate_Overflow): Fix error in + handling of bignum case. + (Expand_N_Case_Expression): Implement + proper two phase handling (Expand_N_If_Expression): Implement + proper two phase handling (Expand_N_Op_Abs): Implement proper + two phase handling ditto for all other arithmetic operators + * sem_res.adb (Resolve_If_Expression): Avoid introducing + unneeded conversions. + +2012-10-02 Robert Dewar + + * s-bignum.adb (Big_Exp): 0**0 should be 1, not 0. + (Big_Exp): Fix possible error for (-1)**0. + (Big_Exp): Fix error in computing 2**K for small K. + (Big_Mod): Fix wrong sign for negative operands. + (Div_Rem): Fix bad results for operands close to 2**63. + * s-bignum.ads: Add documentation and an assertion to require + LLI size to be 64 bits. + * sem_prag.adb (Analyze_Pragma, case Overflow_Checks): Do not + allow ELIMINATED if LLI'Size is other than 64 bits. + * switch-c.adb (Scan_Switches): Do not allow -gnato3 if LLI'Size + is not 64 bits. + * switch.ads (Bad_Switch): Add missing pragma No_Return. + * gnat_ugn.texi: Added appendix on Overflow Check Handling in GNAT. + +2012-10-02 Robert Dewar + + * sem_type.adb: Minor reformatting. + +2012-10-02 Robert Dewar + + * sem_ch8.adb: Minor reformatting. + +2012-10-02 Javier Miranda + + * exp_disp.adb (Set_CPP_Constructors): Handle constructor with default + parameters that covers the default constructor. + +2012-10-02 Yannick Moy + + * s-bignum.adb: Minor stylistic and comment corrections. + +2012-10-02 Pascal Obry + + * prj-util.adb (For_Interface_Sources): Iterate over all sources in + aggregate library projects. + +2012-10-02 Ed Schonberg + + * sem_ch8.adb (Find_Direct_Name): The left-hand side of an + assignment may designate a generalized reference. + +2012-10-02 Eric Botcazou + + * types.h (N_Return_Statement): Delete. + * gcc-interface/trans.c (gnat_to_gnu): Replace N_Return_Statement with + N_Simple_Return_Statement. + +2012-10-02 Ed Schonberg + + * freeze.adb (Freeze_Entity): in a generic context, aspects must + be analyzed because they may be queried subsequently within the + generic unit, even if no other freezing actions are generated + for an entity. + * sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): iterator + aspects must be analyzed because they are delayed aspects and + the corresponding attribute definition clause may not have been + analyzed yet. + +2012-10-02 Yannick Moy + + * gnat_rm.texi: Minor editing. + +2012-10-02 Robert Dewar + + * sinfo.adb, sinfo.ads, sem_util.adb, sem_util.ads, types.h, + exp_ch4.adb, exp_ch6.adb: Get rid of internal use of N_Return_Statement. + +2012-10-02 Eric Botcazou + + * types.h: Minor cosmetic fix. + +2012-10-02 Eric Botcazou + + * gcc-interfaces/decl.c (elaborate_expression_1): Use the variable for + bounds of loop iteraration scheme only for locally defined subtypes. + + * gcc-interface/trans.c (gigi): Fix formatting. + (build_return_expr): Apply the NRV optimization only for BLKmode. + +2012-10-02 Robert Dewar + + * sinfo.ads: Remove refs of N_Conditional_Expression and + N_Parameterized_Expression. + +2012-10-02 Thomas Quinot + + * exp_aggr.adb (Get_Component_Val): Rewrite code that computes + justification of bits in enclosing word in an attempt to make + it clearer. + +2012-10-02 Robert Dewar + + * par_sco.adb, sem_ch3.adb, layout.adb, exp_ch7.adb, exp_imgv.adb, + exp_util.adb, exp_util.ads, exp_attr.adb, sinfo.adb, sinfo.ads, + exp_ch9.adb, style.ads, scos.ads, debug.adb, einfo.ads, scng.adb, + checks.adb, checks.ads, sem.adb, par-ch4.adb, sem_util.adb, types.h, + sem_res.adb, expander.adb, scans.ads, par.adb, exp_ch2.adb, + gnat1drv.adb, stylesw.ads, sem_elab.adb, exp_ch4.adb, exp_ch4.ads, + exp_ch6.adb, sem_ch4.adb, sem_ch4.ads, sem_ch6.adb, + opt.ads, sem_eval.adb, sem_eval.ads, exp_intr.adb, sprint.adb, + sprint.ads, styleg.ads: Change name Conditional_Expression to + If_Expression. + * gcc-interface/trans.c (gnat_to_gnu): Replace + N_Conditional_Expression by N_If_Expression. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-10-02 Robert Dewar + + * exp_ch4.adb (Expand_N_Op_Expon): Use expression with actions + for x ** 4. + +2012-10-02 Ed Schonberg + + * sem_ch5.adb: (Analyze_Iterator_Specification): If container + has a variable indexing aspect, the element is a variable and + is modifiable in the loop. This check is also performed when the + loop is expanded, but it must be done in semantic analysis when + expansion is disabled, for example for ASIS usage. + +2012-10-02 Ed Schonberg + + * lib-xref.adb (Generate_Reference): If a child subprogram + has no previous spec, treat a reference to its formals (such + as a parameter association) as coming from source in order to + generate the proper references and enable gps navigation between + reference and declaration. + +2012-10-02 Robert Dewar + + * checks.adb (Apply_Arithmetic_Overflow_Checked_Suppressed): + New name for Apply_Arithmetic_Overflow_Normal + (Apply_Arithmetic_Overflow_Minimized_Eliminated): + Add handling for conditional expressions + (Is_Signed_Integer_Arithmetic_Op): Now includes conditional + expressions (Minimize_Eliminate_Overflow_Checks): Handle + conditional expressions. + * checks.ads: Minor comment fixes. + * exp_ch4.adb (Expand_N_Case_Expression): Call + Apply_Arithmetic_Overflow_Check (Expand_N_Conditional_Expression): + Call Apply_Arithmetic_Overflow_Check + * s-bignum.adb (Normalize): Remove incorrect precondition. + * sem_res.adb (Resolve_Case_Expression): Set Do_Overflow_Check + flag (Resolve_Conditional_Expression): Set Do_Overflow_Check flag. + * sinfo.adb: Add Do_Overflow_Check for conditional expressions. + * sinfo.ads: Minor documentation updates. + +2012-10-02 Ed Schonberg + + * exp_ch4.adb (Expand_N_Case_Expression): Do not introduce + indirections when the type of the alternatives is an access type: + more efficient, and removes anomalies when an alternative is + statically null. + +2012-10-02 Robert Dewar + + * aspects.ads: Minor comment addition (Invariant is a GNAT aspect). + +2012-10-02 Robert Dewar + + * exp_ch7.adb, sem_dim.adb, sem_dim.ads, prj-part.adb, checks.adb, + freeze.adb, sem_ch4.adb, sem_ch13.adb: Minor reformatting. + +2012-10-02 Robert Dewar + + * sem_prag.adb (Analyze_Pragma, case Overflow_Checks): Fix + typo preventing proper processing of Overflow_Checks pragmas + for general case. + +2012-10-02 Robert Dewar + + * exp_ch4.adb (Expand_N_Op_Mod): Fix crash in ELIMINATED overflow + checks mode when bignum mode is used. + +2012-10-02 Robert Dewar + + * stylesw.ads, gnat_ugn.texi: Document new style rule for NOT IN. + * par-ch4.adb (P_Relational_Operator): Add style check for NOT IN. + * style.ads, styleg.adb, styleg.ads (Check_Not_In): New procedure. + +2012-10-02 Vincent Pucci + + * sem_attr.adb (Analyze_Attribute): Check dimension for attribute + Old before it gets expanded. + * sem_dim.adb (Analyze_Dimension_Has_Etype): Correctly propagate + dimensions for identifier. + +2012-10-02 Ed Schonberg + + * exp_ch5.adb (Expand_Iterator_Loop): Handle properly the case + where the iterator type is derived locally from an instantiation + of Ada.Iterators_Interface. + * exp_ch7.adb (Establish_Transient_Scope): Do not create a + transient scope if within the expansion of an iterator loop, + because a transient block already exists. + +2012-10-02 Vincent Celier + + * gnatcmd.adb: Use absolute path for configuration pragmas files + * make.adb (Configuration_Pragmas_Switch.Absolute_Path): Moved + to Makeutl. + * makeutl.ads, makeutl.adb (Absolute_Path): New function, moved from + make.adb. + +2012-10-02 Vincent Celier + + * prj-part.adb (Post_Parse_Context_Clause): Resurrect Boolean + parameter In_Limited. Check for circularity also if In_Limited + is True. + (Parse_Single_Project): Call Post_Parse_Context_Clause with + In_Limited parameter. + +2012-10-02 Bob Duff + + * checks.adb (Apply_Predicate_Check): Disable check in -gnatc mode. + +2012-10-02 Vincent Pucci + + * sem_ch6.adb (Analyze_Function_Call): Dimension propagation + for function calls moved to Analyze_Dimension_Call. + * sem_dim.adb (Analyze_Dimension_Call): Properly propagate the + dimensions from the returned type for function calls. + +2012-10-02 Vincent Celier + + * gnatcmd.adb: Take into account any configuration pragma file + in the project files for gnat pretty/stub/metric. + +2012-10-02 Ed Schonberg + + * sem_ch13.adb (Check_Indexing_Functions): Refine several tests + on the legality of indexing aspects: Constant_Indexing functions + do not have to return a reference type, and given an indexing + aspect Func, not all overloadings of Func in the current scope + need to be indexing functions. + +2012-10-02 Vasiliy Fofanov + + * gnat_ugn.texi: Adjust docs for overflow checks to be VMS-friendly. + +2012-10-02 Vincent Celier + + * switch-m.adb (Normalize_Compiler_Switches): Recognize switches + -gnatox and -gnatoxx when x=0/1/2/3. + +2012-10-02 Vincent Pucci + + * sem_ch4.adb (Analyze_Indexed_Component_Form): Dimension + analysis for indexed components added. + * sem_ch6.adb (Analyze_Function_Call): Dimension propagation + for function calls added. + * sem_dim.adb (Analyze_Dimension): Call to + Analyze_Dimension_Has_Etype when N is a function call. + (Analyze_Dimension_Call): Don't propagate anymore the dimensions + for function calls since this is now treated separately in + Analyze_Dimension_Has_Etype. + (Analyze_Dimension_Has_Etype): For + attribute references, propagate the dimensions from the prefix. + * sem_dim.ads (Copy_Dimensions): Fix comment. + +2012-10-02 Hristian Kirtchev + + * checks.ads, checks.adb (Apply_Parameter_Aliasing_Checks): New routine. + (Apply_Parameter_Aliasing_And_Validity_Checks): This routine + has been split into two. + (Apply_Parameter_Validity_Checks): New routine. + * exp_ch6.adb (Expand_Call): Add checks to verify that actuals + do not overlap. The checks are made on the caller side to overcome + issues of parameter passing mechanisms. + * freeze.adb (Freeze_Entity): Update call to + Apply_Parameter_Aliasing_And_Validity_Checks. + +2012-10-02 Ed Schonberg + + * sem_ch4.adb (Is_Empty_Range): Use bounds of index type + to determine whether an array is empty when optimizing + a quantified expression over a null range. Use of RM_Size + was incorrect. Analyze condition before constant-folding the + expression to catch potential errors. Modify the error message + to avoid mathematical terminology. + +2012-10-02 Robert Dewar + + * usage.adb, gnat_rm.texi, vms_data.ads: Add entry for + /OVERFLOW_CHECKS=?? generating -gnato?? for control + of extended overflow checking. + * ug_words: Add entry for -gnato?? for /OVERFLOW_CHECKS=?? + * gnat_ugn.texi: Add documentation for -gnato?? for control of overflow + checking mode. + +2012-10-02 Ed Schonberg + + * sem_ch4.adb (Analyze_Quantified_Expression): If the iterator in + a quantified expression is statically known to be null (e.g. a + array with an empty index type) emit a warning. + +2012-10-02 Robert Dewar + + * sem_dim.adb: Minor code reorganization. + * sem_dim.ads: Add comment. + +2012-10-02 Robert Dewar + + * checks.ads, exp_ch4.adb, checks.adb + (Minimize_Eliminate_Overflow_Checks): Add Top_Level parameter to avoid + unnecessary conversions to Bignum. + Minor reformatting. + +2012-10-02 Ed Schonberg + + * sem_ch6.adb (Process_PPCs): Generate invariant checks for a + return value whose type is an access type and whose designated + type has invariants. Ditto for in-out parameters and in-parameters + of an access type. + * exp_ch3.adb (Build_Component_Invariant_Call): Add invariant check + for an access component whose designated type has invariants. + +2012-10-01 Vincent Pucci + + * sem_aggr.adb (New_Copy_Tree_And_Copy_Dimensions): New routine. + (Resolve_Record_Aggregate): New_Copy_Tree calls replaced by + New_Copy_Tree_And_Copy_Dimensions calls. Move_Dimensions call + replaced by Copy_Dimensions call. + * sem_dim.adb (Analyze_Dimension_Component_Declaration): Don't + remove the dimensions of expression in component declaration anymore. + (Copy_Dimensions): New routine. + (Move_Dimensions): Add call to Copy_Dimensions. + * sem_dim.ads (Copy_Dimensions): New routine. + (Move_Dimensions): Spec moved to body of Sem_Dim. + +2012-10-01 Ed Schonberg + + * checks.adb (Apply_Predicate_Check): If the predicate is a + static one and the operand is static, evaluate the predicate at + compile time. + * sem_eval.ads, sem_eval.adb (Eval_Static_Predicate_Check): new + procedure, to evaluate a static predicate check whenever possible. + * sem_res.adb (Resolve_Type_Conversion): Apply predicate check + on the conversion if the target type has predicates. + +2012-10-01 Vincent Pucci + + * sem_dim.adb (Has_Symbols): Complain if parameter Symbol has been + provided by the user in the dimension output call. + +2012-10-01 Robert Dewar + + * checks.adb (Apply_Divide_Checks): New name for + Apply_Divide_Check (Minimize_Eliminate_Overflow_Checks): + Add code to handle division (and rem and mod) properly. + (Apply_Division_Check): New procedure (Apply_Divide_Checks): + Use Apply_Division_Check (Apply_Divide_Checks): Use + Apply_Arithmetic_Overflow_Minimized_Eliminated. + * checks.ads (Apply_Divide_Checks): New name for + Apply_Divide_Check, also add clearer documentation for this + routine and put in alfa order. + * exp_ch4.adb (Apply_Divide_Checks): New name for + Apply_Divide_Check. + * s-bignum.adb (To_Bignum): Handle largest negative integer + properly. + * sem.adb (Analyze): Handle overflow suppression correctly + (Analyze_List): Handle overflow suppression correctly + * sem_res.adb (Analyze_And_Resolve): Handle overflow suppression + correctly. + +2012-10-01 Vasiliy Fofanov + + * s-oscons-tmplt.c, g-socket.ads: Revert previous change, breaks VMS. + +2012-10-01 Robert Dewar + + * checks.adb (Minimize_Eliminate_Overflow_Checks): Changes + for exponentiation. + * exp_ch4.adb (Expand_N_Op_Expon): Changes for Minimize/Eliminate + overflow checks. + * s-bignum.adb (Compare): Fix bad precondition. + +2012-10-01 Ed Schonberg + + * sem_ch3.adb (Build_Derived_Record_Type): If the derived + type has new discriminantss that constrain inherited ones, use + the discriminant type in the original declaration to check for + conformance, because in the presence of array components with a + smaller range that are constrained by the origina discriminant, + the compiler will have created a narrower subtype for that + discriminant. + +2012-10-01 Robert Dewar + + * checks.adb (Apply_Arithmetic_Overflow_Minimized_Eliminated): + Handle case of appearing in range in membership test. + * exp_ch4.adb (Expand_Membership_Minimize_Eliminate_Overflow): + New procedure (Expand_N_In): Use + Expand_Membership_Minimize_Eliminate_Overflow. + * rtsfind.ads: Add RE_Bignum_In_LLI_Range. + * s-bignum.ads, s-bignum.adb (Bignum_In_LLI_Range): New function. + * sinfo.ads, sinfo.adb (No_Minimize_Eliminate): New flag. + +2012-10-01 Robert Dewar + + * uintp.ads: Minor reformatting. + +2012-10-01 Ed Schonberg + + * checks.adb: Improve warning message. + +2012-10-01 Robert Dewar + + * checks.adb: Minor reformatting. + +2012-10-01 Javier Miranda + + * exp_ch3.adb (Expand_N_Object_Declaration): Suppress tag + assignment for initializations that are aggregates. + +2012-10-01 Robert Dewar + + * exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): + New procedure. + +2012-10-01 Robert Dewar + + * checks.adb (Minimize_Eliminate_Checks): Changes from testing. + (Apply_Arithmetic_Overflow_Minimized_Eliminated): Changes + from testing. + * sinfo.ads: Remove note on not setting Entity field in overflow + case since this is no longer true. + * Makefile.rtl: Add s-bignum.o + +2012-10-01 Thomas Quinot + + * Make-generated.in: Correction to previous change for s-oscons + target. + +2012-10-01 Thomas Quinot + + * s-bignum.adb (Allocate_Bignum): Reorganize to kill strict + aliasing warning. + +2012-10-01 Robert Dewar + + * checks.adb (Overflow_Check_Mode): New function + (Apply_Overflow_Check): New procedure (Is_Check_Suppressed): + Moved here from Sem, Overflow_Check case now specially treated. + * checks.ads (Overflow_Check_Mode): New function + (Is_Check_Suppressed): Moved here from Sem (more logical) + * exp_ch4.adb (Substitute_Valid_Check): Suppress warning about + optimization if we are in MINIMIZED or ELIMINATED overflow + checking mode and within an assertiom expression. + * rtsfind.ads: Add entries for Bignum stuff. + * s-bignum.ads, s-bignum.adb: New files. + * sem.ads, sem.adb (Is_Check_Suppressed): Moved to Checks, more logical. + * sem_prag.adb (Process_Suppress_Unsuppress): New behavior for + Unsuppress of Overflow_Check (sets Checked instead of Minimized) + * sem_res.adb: Update comments. + * sinfo.ads (N_Op): Add documentation on overflow handling. + * tbuild.ads, tbuild.adb (Convert_To_And_Rewrite): New procedure. + * types.ads (Minimized_Or_Eliminated): New subtype. + +2012-10-01 Eric Botcazou + + * layout.adb (Layout_Type): Do not set twice the address size + on an access-to-unconstrained array if Debug_Flag_6 is set. + +2012-10-01 Hristian Kirtchev + + * sem_ch3.adb (Analyze_Declarations): Remove the specialized + code which prevents freezing when the declarative list contains + a _postconditions body. This is no longer needed because the + body is now inserted at the end of the declarations. + * sem_ch6.adb (Insert_After_Last_Declaration): New routine. + (Insert_Before_First_Source_Declaration): Removed. + (Process_PPCs): Insert the _postconditions body at the end of + the declarative list to prevent premature freezing of types that + appear in the declarations. + +2012-10-01 Robert Dewar + + * sem_aggr.adb, sem_dim.adb: Minor reformatting. + +2012-10-01 Ed Schonberg + + * sem_prag.adb (Process_Convention, Process_Import_Or_Interface): + Adjust test so that when the pragma comes from an aspect + specification it only applies to the entity in the original + declaration. + +2012-10-01 Thomas Quinot + + * gnat_ugn.texi: Document new command line switch -fada-spec-parent. + +2012-10-01 Thomas Quinot + + * s-oscons-tmplt.c, g-socket.ads: Minor code improvement: use gcc + builtin __alignof__ to get the alignment of struct fd_set. + +2012-10-01 Vincent Pucci + + * exp_ch6.adb (Expand_Call): Remove call to + Remove_Dimension_In_Call. + * sem_aggr.adb (Resolve_Array_Aggregate): Analyze dimension of + components in array aggregate. + (Resolve_Aggr_Expr): Propagate dimensions from the original expression + Expr to the new created expression New_Expr when resolving the + expression of a component in record aggregates. + (Resolve_Record_Aggregate): Analyze + dimension of components in record (or extension) aggregate. + * sem_ch6.adb (Analyze_Subprogram_Specification): Analyze + dimension of formals with default expressions in subprogram + specification. + * sem_ch8.adb (Analyze_Expanded_Name): Analyze dimension of + expanded names. + (Find_Selected_Component): Analyze dimension of selected component. + * sem_dim.adb: Several dimension error messages reformatting. + (Dimensions_Msg_Of): New flag Description_Needed in order to + differentiate two different sort of dimension error messages. + (Dim_Warning_For_Numeric_Literal): New routine. + (Exists): New routine. + (Move_Dimensions): Routine spec moved to spec file. + * sem_dim.ads (String_From_Numeric_Literal): New routine. + (Analyze_Dimension): Analyze dimension only when the + node comes from source. Dimension analysis for expanded names added. + (Analyze_Dimension_Array_Aggregate): New routine. + (Analyze_Dimension_Call): New routine. + (Analyze_Dimension_Component_Declaration): Warning if default + expression is a numeric literal. + (Analyze_Dimension_Extension_Or_Record_Aggregate): New routine. + (Analyze_Dimension_Formals): New routine. + (Analyze_Dimension_Object_Declaration): Warning if default + expression is a numeric literal. + (Symbol_Of): Return either the dimension subtype symbol or the + dimension symbol built by From_Dim_To_Str_Of_Unit_Symbols. + * sem_dim.ads (Analyze_Dimension_Array_Aggregate): New routine. + (Analyze_Dimension_Call): New routine. + (Analyze_Dimension_Extension_Or_Record_Aggregate): New routine. + (Analyze_Dimension_Formals): New routine. + (Move_Dimensions): Moved from sem_dim.adb. + * s-dimmks.ads: Turn off the warnings for dimensioned object + declaration. Dimensioned subtypes sorted in alphabetical + order. New subtypes Area, Speed, Volume. + * s-dmotpr.ads: Turn off the warnings for dimensioned object + declaration. + * sem_res.adb (Resolve_Call): Analyze dimension for calls. + +2012-10-01 Thomas Quinot + + * Make-generated.in: Minor cleanup of all targets: use + MOVE_IF_CHANGE to put generated files in place, to avoid useless + recompilations. + +2012-10-01 Javier Miranda + + * exp_disp.adb (Expand_Dispatching_Call): For functions returning + interface types add an implicit conversion to the returned object + to force the displacement of the pointer to the returned object + to reference the corresponding secondary dispatch table. This + is needed to handle well combined calls involving secondary + dispatch tables (for example Obj.Prim1.Prim2). + * exp_ch4.adb (Expand_Allocator_Expression): Declare internal + access type as access to constant or access to variable depending + on the context. Found working in this ticket. + +2012-10-01 Ed Schonberg + + * checks.adb (Apply_Predicate_Check): Do not apply check to + actual of predicate checking procedure, to prevent infinite + recursion. + +2012-10-01 Arnaud Charlet + + * gcc-interface/Make-lang.in: Update dependencies. + (GCC_LINK): Add -static-libstdc++. + +2012-10-01 Arnaud Charlet + + * a-catizo.adb, a-stwiun.adb, a-cdlili.adb, a-cihama.adb, a-direct.adb, + a-coinve.adb, a-calend.adb, a-ciorse.adb, a-coorma.adb, a-cfdlli.adb, + a-stzunb-shared.adb, a-cfhase.adb, bindgen.adb, ceinfo.adb, a-tags.adb, + einfo.adb, checks.adb, eval_fat.adb, a-cborma.adb, a-stwifi.adb, + a-tifiio.adb, a-textio.adb, a-cidlli.adb, a-strunb-shared.adb, + a-cimutr.adb, a-calcon.adb, a-exexpr-gcc.adb, a-ciormu.adb, + a-stzunb.adb, a-stzsea.adb, a-ngelfu.adb, a-stzfix.adb, + a-cihase.adb, a-cohama.adb, a-exetim-posix.adb, a-dirval-vms.adb, + a-caldel-vms.adb, a-coorse.adb, errout.adb, + a-except.adb, butil.adb, a-dirval-mingw.adb, a-cforma.adb, + a-except-2005.adb, a-wtedit.adb, cstand.adb, a-stwiun-shared.adb, + a-cbhama.adb, a-direio.adb, clean.adb, a-cborse.adb, back_end.adb, + binde.adb, a-exexda.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb, + a-coormu.adb, a-teioed.adb, a-convec.adb, a-wtenau.adb, exp_aggr.adb, + a-ztedit.adb, a-cohase.adb, a-exetim-mingw.adb, bcheck.adb, + a-dynpri.adb, a-cfhama.adb, a-calfor.adb, a-cbdlli.adb, + a-crdlli.adb, a-cbmutr.adb, a-sequio.adb, a-ngcoar.adb, a-cforse.adb, + a-strunb.adb, a-calend-vms.adb, a-clrefi.adb, a-cofove.adb, + a-ztenau.adb, a-strfix.adb, a-cbhase.adb, a-stzsup.adb: Minor + reformatting. + +2012-10-01 Vincent Pucci + + PR ada/54614 + * s-gearop.adb (Vector_Matrix_Product): Fix dimension check and index + of Left in S evaluation. + +2012-10-01 Javier Miranda + + * sem_ch3.adb (Analyze_Declarations): Avoid + premature freezing caused by the internally generated subprogram + _postconditions. + * checks.adb (Expr_Known_Valid): Float literals are assumed to be valid + in VM targets. + +2012-10-01 Thomas Quinot + + * sinput.ads, sinput.adb, sinput-l.adb sinput-c.adb (Sinput): New + Instances table, tracking all generic instantiations. Source file + attribute Instance replaces previous Instantiation attribute with an + index into the Instances table. + (Iterate_On_Instances): New generic procedure. + (Create_Instantiation_Source): Record instantiations in Instances. + (Tree_Read, Tree_Write): Read/write the instance table. + * scils.ads, scos.adb (SCO_Instance_Table): New table, contains + information copied from Sinput.Instance_Table, but self-contained + within the SCO data structures. + * par_sco.ads, par_sco.adb (To_Source_Location): Move to library level. + (Record_Instance): New subprogram, used by... + (Populate_SCO_Instance_Table): New subprogram to fill + the SCO instance table from the Sinput one (called by SCO_Output). + * opt.ads (Generate_SCO_Instance_Table): New option. + * put_scos.adb (Write_Instance_Table): New subprogram, used by... + (Put_SCOs): Dump the instance table at the end of SCO information + if requested. + * get_scos.adb (Get_SCOs): Read SCO_Instance_Table. + * types.h: Add declaration for Instance_Id. + * back_end.adb (Call_Back_End): Pass instance ids in source file + information table. + (Scan_Back_End_Switches): -fdebug-instances sets + Opt.Generate_SCO_Instance_Table. + * gcc-interface/gigi.h: File_Info_Type includes instance id. + * gcc-interface/trans.c: Under -fdebug-instances, set instance + id in line map from same in file info. + +2012-10-01 Thomas Quinot + + * sem_elab.adb: Minor reformatting + (Check_Elab_Call): Minor fix to debugging code + (add special circuit for the valid case where a 'Access attribute + reference is passed to Check_Elab_Call). + +2012-10-01 Thomas Quinot + + * exp_ch3.adb: Minor reformatting. + +2012-10-01 Ed Schonberg + + * exp_ch3.ads (Build_Array_Invariant_Proc): moved to body. + * exp_ch3.adb (Build_Array_Invariant_Proc, + Build_Record_Invariant_Proc): transform into functions. + (Insert_Component_Invariant_Checks): for composite types that have + components with specified invariants, build a checking procedure, + and make into the invariant procedure of the composite type, + or incorporate it into the user- defined invariant procedure if + one has been created. + * sem_ch3.adb (Array_Type_Declaration): Checking for invariants + on the component type is defered to the expander. + +2012-10-01 Thomas Quinot + + * xsnamest.adb, namet.h, sem_ch10.adb, s-oscons-tmplt.c, + xoscons.adb: Minor reformatting. + +2012-10-01 Hristian Kirtchev + + * checks.adb (Apply_Parameter_Aliasing_And_Validity_Checks): + Do not process subprogram renaminds because a) those cannot + have PPC pragmas b) the renamed entity already has the PPCs. + (Build_PPC_Pragma): Prepend a PPC pragma for consistency with + Process_PPCs. + * sem_ch6.adb (Last_Implicit_Declaration): Removed. + (Process_PPCs): Insert a post condition body at the start of the + declarative region of the related subprogram. This way the body + will not freeze anything it shouldn't. + +2012-10-01 Robert Dewar + + * freeze.adb, sem_ch6.adb, opt.ads, sem_ch13.adb, + exp_ch3.adb: Minor reformatting. + +2012-10-01 Hristian Kirtchev + + * checks.adb (Build_PPC_Pragma): A PPC pragma can now be properly + associated with a subprogram body. + +2012-10-01 Ed Schonberg + + * aspects.ads: Type_Invariant'class is a valid aspect. + * sem_ch6.adb (Is_Public_Subprogram_For): with the exception of + initialization procedures, subprograms that do not come from + source are not public for the purpose of invariant checking. + * sem_ch13.adb (Build_Invariant_Procedure): Handle properly the + case of a non-private type in a package without a private part, + when the type inherits invariants from its ancestor. + +2012-10-01 Ed Schonberg + + * exp_ch3.adb (Build_Record_Invariant_Proc): new procedure to + generate a checking procedure for record types that may have + components whose types have type invariants declared. + +2012-10-01 Vincent Pucci + + * system-solaris-sparcv9.ads, system-mingw.ads, system-vms_64.ads: Flag + Support_Atomic_Primitives set to True. + +2012-10-01 Robert Dewar + + * impunit.adb: Ada.Locales is a language defined unit. + +2012-10-01 Hristian Kirtchev + + * checks.adb (Apply_Parameter_Aliasing_Checks): Removed. + (Apply_Parameter_Aliasing_And_Validity_Checks): New routine. + (Apply_Parameter_Validity_Checks): Removed. + * checks.ads (Apply_Parameter_Aliasing_Checks): Removed. + (Apply_Parameter_Aliasing_And_Validity_Checks): New routine. + (Apply_Parameter_Validity_Checks): Removed. + * exp_ch6.adb (Expand_Call): Remove the generation of parameter + aliasing checks. + * freeze.adb: Remove with and use clauses for Validsw. + (Freeze_Entity): Update the guard and generation of aliasing + and scalar initialization checks for subprogram parameters. + * opt.ads: Add new flags Check_Aliasing_Of_Parameters and + Check_Validity_Of_Parameters along with comments on usage. + * sem_attr.adb (Analyze_Attribute): Pragma Overlaps_Storage is + no longer an Ada 2012 feature. + * sem_ch4.adb: Remove with and use clauses for Checks and Validsw. + (Analyze_Call): Remove the generation of aliasing checks for + subprogram parameters. + * sem_ch13.adb: Remove with and use clauses for Validsw. + (Analyze_Aspect_Specifications): Remove the generation of scalar + initialization checks. + * switch-c.adb (Scan_Front_End_Switches): Add processing for + -gnateA and -gnateV. + * usage.adb (Usage): Add information on switches -gnateA and + -gnateV. Remove information on validity switches 'l', 'L', + 'v' and 'V'. + * validsw.adb (Reset_Validity_Check_Options): Remove the + reset of flags Validity_Check_Non_Overlapping_Params + and Validity_Check_Valid_Scalars_On_Params. + (Save_Validity_Check_Options): Remove the processing + for flags Validity_Check_Non_Overlapping_Params + and Validity_Check_Valid_Scalars_On_Params. + (Set_Validity_Check_Options): Remove the processing + for flags Validity_Check_Non_Overlapping_Params and + Validity_Check_Valid_Scalars_On_Params. + * validsw.ads: Remove flags Validity_Check_Non_Overlapping_Params + and Validity_Check_Valid_Scalars_On_Params along with their + comments on usage. + +2012-10-01 Yannick Moy + + * sem_ch13.adb (Add_Invariants): Analyze the invariant expression + as an assertion expression. + * sem_ch3.adb / sem_ch3.ads (Preanalyze_Assert_Expression): + New procedure that wraps a call to Preanalyze_Spec_Expression + for assertion expressions, so that In_Assertion_Expr can be + properly adjusted. + * sem_prag.adb (Analyze_PPC_In_Decl_Part + Check_Precondition_Postcondition Preanalyze_CTC_Args): Call the + new Preanalyze_Assert_Expression. + +2012-10-01 Robert Dewar + + * checks.ads: Minor reformatting. + +2012-10-01 Yannick Moy + + * types.ads, sem_prag.adb, sem.ads: Correct minor typos in comments. + +2012-10-01 Vincent Celier + + * make.adb (Scan_Make_Arg): Only test for "vP" of the option + includes at least 3 characters. + * gnatcmd.adb (GNATCmd): Ditto. + +2012-10-01 Eric Botcazou + + * exp_ch7.adb, sinfo.ads: Add comments. + +2012-10-01 Robert Dewar + + * checks.adb: Remove reference to Enable_Overflow_Checks Use + Suppress_Options rather than Scope_Suppress. + * gnat1drv.adb (Adjust_Global_Switches): Handle new overflow + settings (Adjust_Global_Switches): Initialize Scope_Suppress + from Suppress_Options. + * opt.adb: Remove Enable_Overflow_Checks (use Suppress_Options + instead). + * opt.ads: Remove Overflow_Checks_Unsuppressed (not used) + Remove Enable_Overflow_Checks (use Suppress_Options instead) + Suppress_Options is now current setting (replaces Scope_Suppress). + * osint.adb (Initialize): Deal with initializing overflow + checking. + * par-prag.adb: Add dummy entry for pragma Overflow_Checks. + * sem.adb (Semantics): Save and restore In_Assertion_Expr Use + Suppress_Options instead of Scope_Suppress. + * sem.ads (In_Assertion_Expr): New flag (Scope_Suppress): + Removed, use Suppress_Options instead. + * sem_eval.adb (Compile_Time_Compare): Return Unknown in + preanalysis mode. + * sem_prag.adb (Process_Suppress_Unsuppress): Setting of + Overflow_Checks_Unsuppressed removed (not used anywhere!) + (Analyze_Pragma, case Check): Set In_Assertion_Expression + (Analyze_Pragma, case Overflow_Checks): Implement new pragma + * snames.ads-tmpl: Add names needed for handling pragma + Overflow_Checks + * switch-c.adb (Scan_Front_End_Switches) Handle -gnato? and + -gnato?? where ? is 0-3 + * types.ads: Updates and fixes to comment on Suppress_Record. + +2012-10-01 Vincent Celier + + * prj-part.adb (Parse): Remove incorrect comment about checking + imported non extending projects from and "extending all" + one. Minor correction. + +2012-10-01 Robert Dewar + + * make.adb, exp_ch3.adb: Minor reformatting. + +2012-10-01 Hristian Kirtchev + + * validsw.adb (Save_Validity_Check_Options): Do not set + Validity_Check_Non_Overlapping_Params and + Validity_Check_Valid_Scalars_On_Params when -gnatVa is present + because the related checks are deemed too aggressive. + +2012-10-01 Ed Schonberg + + * sem_util.ads sem_util.adb (Check_Internal_Protected_Use): + reject use of protected procedure or entry within the body of + a protected function of the same protected type, when usage is + a call, an actual in an instantiation, a or prefix of 'Access. + * sem_ch8.adb (Analyze_Subprogram_Renaming): Verify that target + object in renaming of protected procedure is a variable, and + apply Check_Internal_Protected_Use. + * sem_res.adb (Analyze_Call, Analyze_Entry_Call): apply + Check_Internal_Protected_Use rather than on-line code. + * sem_attr.adb (Analyze_Access_Attribute): Verify that target + object in accsss to protected procedure is a variable, and apply + Check_Internal_Protected_Use. + +2012-10-01 Gary Dismukes + + * sem_ch4.adb (Find_Equality_Types.Try_One_Interp): Exclude the + predefined interpretation from consideration if it's for a "/=" + operator of a tagged type. This will allow Analyze_Equality_Op to + rewrite the "/=" as a logical negation of a call to the appropriate + dispatching equality function. This needs to be done during + analysis rather than expansion for the benefit of ASIS, which + otherwise gets the unresolved N_Op_Ne operator from Standard. + +2012-10-01 Thomas Quinot + + * gnatcmd.adb, make.adb (Scan_Make_Arg, Inspect_Switches): Recognize + and reject an invalid parameter passed to -vP. + +2012-10-01 Yannick Moy + + * sem_warn.adb (Check_Infinite_Loop_Warning/Test_Ref): Improve + the detection of modifications to the loop variable by noting + that, if the type of variable is elementary and the condition + does not contain a function call, then the condition cannot be + modified by side-effects from a procedure call. + +2012-10-01 Robert Dewar + + * checks.adb: Add comments. + +2012-10-01 Javier Miranda + + * exp_ch3.adb (Expand_N_Object_Declaration): Improve condition catching + never-ending recursion. The previous condition erroneously disabled + silently the expansion of the class-wide interface object + initialization in cases not involving the recursion. + +2012-10-01 Thomas Quinot + + * make.adb: Minor documentation fix: error messages are sent to + stderr, not stdout. + +2012-10-01 Hristian Kirtchev + + * checks.ads, checks.adb (Apply_Parameter_Aliasing_Checks): New routine. + (Apply_Parameter_Validity_Checks): New routines. + * exp_ch6.adb (Expand_Call): Add aliasing checks to detect + overlapping objects. + * freeze.adb: Add with and use clauses for Checks and Validsw. + (Freeze_Entity): Add checks to detect proper initialization + of scalars. + * sem_ch4.adb: Add with and use clauses for Checks and Validsw. + (Analyze_Call): Add aliasing checks to detect overlapping objects. + * sem_ch13.adb: Add with and use clauses for Validsw. + (Analyze_Aspect_Specifications): Add checks to detect proper + initialization of scalars. + * sem_prag.adb (Chain_PPC): Correct the extraction of the + subprogram name. + * sem_util.adb (Is_Object_Reference): Attribute 'Result now + produces an object. + * usage.adb (Usage): Add usage lines for validity switches 'l', + 'L', 'v' and 'V'. + * validsw.adb (Reset_Validity_Check_Options): Include + processing for flags Validity_Check_Non_Overlapping_Params and + Validity_Check_Valid_Scalars_On_Params. Code reformatting. + (Save_Validity_Check_Options): Include processing + for flags Validity_Check_Non_Overlapping_Params + and Validity_Check_Valid_Scalars_On_Params. + (Set_Validity_Check_Options): Add processing for validity switches + 'a', 'l', 'L', 'n', 'v' and 'V'. Code reformatting. + * validsw.ads: Add new flags Validity_Check_Non_Overlapping_Params + and Validity_Check_Valid_Scalars_On_Params along with comments + on usage. + +2012-10-01 Thomas Quinot + + * namet.ads, xsnamest.adb, prj-env.adb, sem_warn.adb, + errout.ads: Minor reformatting. + * prj-part.adb: Add comment. + +2012-10-01 Robert Dewar + + * sinfo.ads, exp_aggr.adb, sem_ch13.adb: Minor reformatting. + +2012-10-01 Ed Schonberg + + * sem_aggr.adb (Resolve_Array_Aggregate): Handle properly + component associations given by subtypes that have static + predicates. Improve error message for overlapping ranges in + array aggregates. + +2012-10-01 Pascal Obry + + * snames.ads-tmpl (Name_Link_Lib_Subdir): New constant. + +2012-10-01 Ed Schonberg + + * sem_ch9.adb (Analyze_Requeue): The target of a requeue + statement on a protected entry must be a variable. This is part + of AI05-0225. + +2012-09-26 Ian Lance Taylor + + * gcc-interface/Makefile.in (LIBBACKTRACE): New variable. + (LIBS): Add $(LIBBACKTRACE). + (LIBDEPS): Add $(LIBBACKTRACE). + (TOOLS_LIBS): Add ../../../libbacktrace/.libs/libbacktrace.a. + +2012-09-10 Diego Novillo + + * gcc-interface/decl.c (build_subst_list): Adjust call to VEC_safe_push. + (build_variant_list): Likewise. + * gcc-interface/utils.c (convert): Adjust calls to VEC_quick_push. + +2012-09-07 Eric Botcazou + + * gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using + size_type_node instead of sizetype. + +2012-08-19 Eric Botcazou + + * layout.adb (Set_Elem_Alignment): Cap the alignment of access types + to that of a regular access type for non-strict-alignment platforms. + * gcc-interface/utils.c (finish_fat_pointer_type): Do not set the + alignment for non-strict-alignment platforms. + +2012-08-19 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Use proper + dummy type for the temporary COMPONENT_REF built for a derived tagged + type with discriminant. + +2012-08-14 Diego Novillo + + Merge from cxx-conversion branch. Re-implement VEC in C++. + + * gcc-interface/trans.c (finalize_nrv_unc_r): Adjust VEC_index usage. + * gcc-interface/utils.c (convert): Likewise. + (remove_conversions): Likewise. + * gcc-interface/utils2.c (compare_fat_pointers): Likewise. + (build_unary_op): Likewise. + (gnat_stabilize_reference): Likewise. + +2012-08-06 Jose Ruiz + + * gcc-interface/Makefile.in: Add support for 32-bit VxWorks for SPARC + in kernel mode. + +2012-08-06 Arnaud Charlet + + * prj-attr.adb (Register_New_Package): Add missing blank. + +2012-08-06 Ed Schonberg + + * exp_aggr.adb (Is_Two_Dim_Packed_Array): New predicate, + used when computing maximum size allowable to construct static + aggregate. + +2012-08-06 Vincent Pucci + + * freeze.adb (Freeze_Entity): Inherit_Aspects_At_Freeze_Point + calls added for derived types and subtypes. + * sem_aux.adb, sem_aux.ads (Get_Rep_Item, Get_Rep_Pragma, + Has_Rep_Pragma): New routines. + * sem_ch13.ads (Inherit_Aspects_At_Freeze_Point): New routine. + * sem_ch13.adb (Analyze_Aspect_Specifications): Error message + for aspect Lock_Free fixed. + (Inherits_Aspects_At_Freeze_Point): New routine. + * sem_ch3.adb: Several flag settings removed since inheritance + of aspects must be performed at freeze point. + +2012-08-06 Thomas Quinot + + * s-oscons-tmplt.c: Fix s-oscons.ads formatting on VxWorks. + +2012-08-06 Vincent Pucci + + * sem_dim.adb (Analyze_Dimension_Binary_Op): Issue an error message + for unknown exponent at compile-time. + +2012-08-06 Gary Dismukes + + * sem_eval.ads (Compile_Time_Known_Value_Or_Aggr): Enhance + comment to make it clear that the aggregate's evaluation might + still involve run-time checks even though the aggregate is + considered known at compile time. + * sinfo.ads (Compile_Time_Known_Aggregate): Correct comment to + refer to Exp_Aggr instead of Sem_Aggr. + +2012-08-06 Robert Dewar + + * xoscons.adb: Minor code reorganization (remove unused variable + E at line 331). + * g-sercom.ads, exp_attr.adb: Minor reformatting. + * sinfo.adb, sinfo.ads: Minor cleanup, remove unused flag + Static_Processing_OK. + +2012-08-06 Ed Schonberg + + * sem_ch3.adb (Build_Derived_Concurrent_Type): Copy discriminant + constraint when building a constrained subtype, to prevent + undesirable tree sharing betweeb geberated subtype and derived + type definition. + +2012-08-06 Thomas Quinot + + * g-sercom-mingw.adb, s-oscons-tmplt.c: Add missing constants + on Windows. + +2012-08-06 Sergey Rybin + + * tree_io.ads: Update ASIS_Version_Number because of the tree fix + for discriminant constraints for concurrent types. + +2012-08-06 Thomas Quinot + + * sem_ch4.adb: Minor reformatting. + +2012-08-06 Thomas Quinot + + * s-oscons-tmplt.c, xoscons.adb: Per the Single UNIX Specification, + types cc_t, speed_t, and tcflag_t defined in all are + unsigned types. Add required special handling to have their correct + unsigned values in s-oscons.ads. + +2012-08-06 Thomas Quinot + + * par-ch13.adb: Minor reformatting. + +2012-08-06 Thomas Quinot + + * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb + (Set): Add Local and Flow_Control settings. + +2012-08-06 Ed Schonberg + + * exp_attr.adb: Suppress saving of 'Old if assertions are not + enabled. + +2012-08-06 Yannick Moy + + * sem_ch4.adb (Analyze_Selected_Component): Issue an error in + Alfa mode for component not present. + +2012-08-06 Thomas Quinot + + * exp_ch7.adb (Insert_Actions_In_Scope_Around): Do not + use a renaming of Scope_Stack.Table (Scope_Stack.Last), as + Process_Transient_Object may introduce new scopes and cause + Scope_Stack.Table to be reallocated. + +2012-08-06 Robert Dewar + + * exp_util.adb, switch-c.adb, inline.ads, sem_ch10.adb, types.ads, + checks.adb, sem_prag.adb, sem.adb, sem.ads, sem_res.adb, sem_attr.adb, + gnat1drv.adb, exp_ch4.adb, exp_ch6.adb, opt.ads, osint.adb: Implement + extended overflow checks (step 1). + (Overflow_Check_Type, Suppress_Record, Suppress_All): New types. + (Suppress_Array): Extended to include switches to control extended + overflow checking (and renamed to Suppress_Record). + Update all uses of Suppress_Array. + +2012-08-06 Thomas Quinot + + * makeutl.ads: Minor documentation fix. + +2012-08-06 Thomas Quinot + + * exp_ch7.adb: Minor reformatting. + +2012-08-06 Geert Bosch + + * a-ngelfu.adb: Change obsolete comment that this is a non-strict + implementation. + +2012-08-06 Steve Baird + + * exp_ch7.adb (Build_Finalizer.Process_Object_Declaration): If + CodePeer_Mode = True then omit exception handlers for finalization calls + +2012-08-06 Robert Dewar + + * exp_aggr.adb: Minor reformatting. + +2012-08-06 Robert Dewar + + * sem_ch6.adb: Remove useless flag Body_Deleted. + +2012-08-06 Thomas Quinot + + * sinfo.ads (End_Span): Change default from No_Uint to Uint_0, + as this is what all usage occurrences of this attribute are + expecting. + * uintp.adb (UI_To_Int): Add assertion to guard against calling + with No_Uint. + +2012-08-06 Vincent Pucci + + PR ada/54125 + * exp_attr.adb (Expand_N_Attribute_Reference): Expand new + Atomic_Always_Lock_Free attribute. + * sem_attr.adb (Analyze_Attribute): Analyze new + Atomic_Always_Lock_Free attribute. + (Eval_Attribute): Nothing to do with new Atomic_Always_Lock_Free + attribute. + * sem_ch9.adb (Allows_Lock_Free_Implementation): + Support_Atomic_Primitives check replaces previous erroneous + size check. + * sem_util.adb, sem_util.ads (Support_Atomic_Primitives): + New routine. + * snames.ads-tmpl: New name Name_Atomic_Always_Lock_Free and + new attribute Attribute_Atomic_Always_Lock_Free defined. + * s-atopri.adb: Support_Atomic_Primitives checks replaced by + Atomic_Always_Lock_Free queries. + * system-aix64.ads, system-aix.ads, system-darwin-ppc.ads, + system-hpux.ads, system-linux-alpha.ads, system-linux-hppa.ads, + system-linux-ppc.ads, system-linux-s390.ads, + system-linux-s390x.ads, system-linux-sh4.ads, + system-linux-sparc.ads, system-lynxos178-ppc.ads, + system-lynxos-ppc.ads, system-mingw.ads, + system-vxworks-arm.ads, system-solaris-sparc.ads, + system-solaris-sparcv9.ads, system-vms_64.ads, + system-vxworks-m68k.ads, system-vxworks-mips.ads, + system-vxworks-ppc.ads, system-vxworks-sparcv9.ads: Flag + Support_Atomic_Primitives removed. + +2012-08-06 Hristian Kirtchev + + * sem_mech.adb (Set_Mechanisms): OUT and IN OUT parameters are + now unconditionally passed by reference. IN parameters subject + to convention C_Pass_By_Copy are passed by copy, otherwise they + are passed by reference. + +2012-08-06 Ed Schonberg + + * sem_ch3.adb (Analyze_Object_Declaration): According to + AI95-0303, protected objects with interrupt handlers can be + declared in nested scopes. This is a binding interpretation, + and thus applies to all versions of the compiler. + +2012-08-06 Robert Dewar + + * frontend.adb, exp_aggr.adb: Minor reformatting. + +2012-08-06 Thomas Quinot + + * par-endh.adb: Minor reformatting. + +2012-08-06 Hristian Kirtchev + + * exp_ch7.adb (Process_Transient_Objects): Remove obsolete loop + processing related to array initialization. The expansion of + loops already contains a mechanism to detect controlled objects + generated by expansion and introduce a block around the loop + statements for finalization purposes. + +2012-08-06 Vincent Pucci + + * sem_ch13.adb: Current scope must be within + or same as the scope of the entity while analysing aspect + specifications at freeze point. + +2012-08-06 Thomas Quinot + + * par_sco.adb: Add note about dubious SCO for TERMINATE + alternative. + * sem_ch8.adb, exp_ch11.adb: Minor reformatting. + +2012-08-06 Ed Schonberg + + * exp_aggr.adb (Two_Dim_Packed_Array_Handled): New procedure to + transform an aggregate for a packed two-dimensional array into + a one-dimensional array of constant values, in order to avoid + the generation of component-by-component assignments. + +2012-08-06 Thomas Quinot + + * frontend.adb: Do not attempt to process deferred configuration + pragmas if the main unit failed to load, to avoid cascaded + inconsistencies that can lead to a compiler crash. + +2012-08-06 Vincent Pucci + + * s-atopri.adb: Minor reformatting. + +2012-08-06 Arnaud Charlet + + * gnat-style.texi: Clarify that all subprograms should be + documented. Minor rewording. + +2012-08-06 Robert Dewar + + * aspects.ads: Define Aspect_Id_Exclude_No_Aspect. + * par-ch13.adb, restrict.adb: Use Aspect_Id_Exclude_No_Aspect to + simplify code. + +2012-08-06 Yannick Moy + + * gnat-style.texi: Update style guide for declarations. + +2012-08-06 Yannick Moy + + * sem_attr.adb (Analyze_Attribute): In the case for 'Old, + skip a special expansion which is not needed in Alfa mode. + +2012-08-06 Yannick Moy + + * sem_ch5.adb (Analyze_Iterator_Specification): Do not perform + an expansion of the iterator in Alfa mode. + +2012-08-06 Robert Dewar + + * s-oscons-tmplt.c, sem_ch9.adb, osint.adb: Minor reformatting. + +2012-08-06 Hristian Kirtchev + + * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Remove obsolete + Alfa-specific guard. The code is a leftover from an early + implementation of iterators which is no longer in use. + +2012-08-06 Vincent Celier + + * par-ch13.adb (Get_Aspect_Specifications): Do not consider + No_Aspect when checking for a mispelled aspect. + +2012-08-06 Robert Dewar + + * s-htable.adb: Minor reformatting. + +2012-08-06 Thomas Quinot + + * s-oscons-tmplt.c, g-socket.adb (System.OS_Constants.Target_OS): + Suppress warnings so that we don't have to do it at each usage. + +2012-08-06 Vincent Pucci + + * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): + Use of Known_Static_Esize instead of Known_Esize and + Known_Static_RM_Size instead of Known_RM_Size in order to + properly call UI_To_Int. Don't check the size of the component + type in case of generic. + * sem_ch9.adb (Allows_Lock_Free_Implementation): + Use of Known_Static_Esize instead of Known_Esize and + Known_Static_RM_Size instead of Known_RM_Size in order to properly + call UI_To_Int. Don't check the size of the component type in + case of generic. + +2012-08-06 Hristian Kirtchev + + * checks.adb (Discrete_Range_Cond): Do not try to optimize on + the assumption that the type of an expression can always fit in + the target type of a conversion. + +2012-07-30 Robert Dewar + + * bindusg.adb: Clarify file in -A lines. + +2012-07-30 Robert Dewar + + * freeze.adb: Minor reformatting. + +2012-07-30 Robert Dewar + + * gnatcmd.adb, makeutl.adb, makeutl.ads: Minor code reorganization. + +2012-07-30 Vincent Pucci + + * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): Minor + reformatting. + * sem_ch9.adb (Allows_Lock_Free_Implementation): Minor reformatting. + Capture the correct error message in case of a quantified expression. + +2012-07-30 Thomas Quinot + + * g-socket.adb (Get_Socket_Option, Set_Socket_Option): On Windows, the + value is a milliseconds count in a DWORD, not a struct timeval. + +2012-07-30 Hristian Kirtchev + + * sem_ch12.adb (Earlier): Add local variables T1 and T2. Minor code + refactoring. + +2012-07-30 Thomas Quinot + + * gnatcmd.adb, make.adb, makeutl.adb, makeutl.ads + (Test_If_Relative_Path): Rename to Ensure_Absolute_Path to better + reflect what this subprogram does. Rename argument Including_L_Switch + to For_Gnatbind, and also exempt -A from rewriting. + * bindusg.adb: Document optional =file argument to gnatbind -A. + +2012-07-30 Ed Schonberg + + * freeze.adb (Freeze_Entity): Do no apply restriction check on + storage pools to access to subprogram types. + +2012-07-30 Robert Dewar + + * par_sco.adb, a-cihama.adb, a-coinve.adb, exp_ch7.adb, a-ciorse.adb, + exp_ch9.adb, sem_dim.adb, par-ch13.adb, sem_ch9.adb, a-cidlli.adb, + a-cimutr.adb, freeze.adb, a-ciormu.adb, sem_res.adb, sem_attr.adb, + a-cihase.adb, exp_ch4.adb, sem_ch4.adb, a-ciorma.adb, + s-tasinf-linux.ads, sem_ch13.adb, a-coinho.adb: Minor reformatting. + Add comments. + +2012-07-30 Vincent Pucci + + * sem_ch9.adb (Allows_Lock_Free_Implementation): Restrict implicit + dereferences of access values. + +2012-07-27 Iain Sandoe + + * system-darwin-ppc64.ads: Add Support_Atomic_Primitives, set to True. + +2012-07-25 Eric Botcazou + + * gcc-interface/utils2.c (gnat_stabilize_reference) : Do + not stabilize operand #1 and #2. + +2012-07-23 Tristan Gingold + + * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Use + End_Label sloc when possible for sloc of the TRY_CATCH_EXPR node. + +2012-07-23 Olivier Hainque + + * gcc-interface/Makefile.in: Adjust processing of Linker_Options for + VxWorks. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-07-23 Arnaud Charlet + + * s-tasinf-linux.ads: Fix typo. + +2012-07-23 Thomas Quinot + + * exp_ch7.adb, switch-m.adb, exp_ch3.adb, freeze.adb: Minor reformatting + +2012-07-23 Ed Schonberg + + * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): If original + loop carries an identifier, preserve it when rewriting it as a + standard loop to validate exit statements that may reference + that name in the body of the loop. + +2012-07-23 Thomas Quinot + + * exp_ch9.adb: Minor code cleanup. + +2012-07-23 Ed Schonberg + + * sem_ch4.adb (Analyze_Selected_Component): When checking for + potential ambiguities with class-wide operations on synchronized + types, attach the copied node properly to the tree, to prevent + errors during expansion. + +2012-07-23 Yannick Moy + + * sem_ch5.adb (Analyze_Loop_Statement): Make sure the loop body + is analyzed in Alfa mode. + +2012-07-23 Ed Schonberg + + * sem_res.adb: Adjust previous change. + +2012-07-23 Vincent Pucci + + * sem_ch9.adb (Allows_Lock_Free_Implementation): Flag + Lock_Free_Given renames previous flag Complain. Description + updated. Henceforth, catch every error messages issued by this + routine when Lock_Free_Given is True. Declaration restriction + updated: No non-elementary parameter instead (even in parameter) + New subprogram body restrictions implemented: No allocator, + no address, import or export rep items, no delay statement, + no goto statement, no quantified expression and no dereference + of access value. + +2012-07-23 Hristian Kirtchev + + * checks.adb (Determine_Range): Add local variable Btyp. Handle + the case where the base type of an enumeration subtype is + private. Replace all occurrences of Base_Type with Btyp. + * exp_attr.adb (Attribute_Valid): Handle the case where the + base type of an enumeration subtype is private. Replace all + occurrences of Base_Type with Btyp. + * sem_util.adb (Get_Enum_Lit_From_Pos): Add local variable + Btyp. Handle the case where the base type of an enumeration + subtype is private. Replace all occurrences of Base_Type with + Btyp. + +2012-07-23 Ed Schonberg + + * par-ch6.adb (P_Mode): in Ada 2005, a mode indicator can apply + to a formal object of an anonymous access type. + +2012-07-23 Ed Schonberg + + * sem_ch4.adb (Try_Container_Indexing): A user-defined indexing + aspect can have more than one index, e.g. to describe indexing + of a multidimensional object. + +2012-07-23 Hristian Kirtchev + + * exp_ch4.adb (Apply_Accessibility_Check): Reimplemented. The check is + now more complex and contains optional finalization part and mandatory + deallocation part. + +2012-07-23 Gary Dismukes + + * a-cihama.adb, a-cihase.adb, a-cimutr.adb, a-ciorma.adb, a-ciormu.adb, + a-ciorse.adb, a-coinho.adb, a-coinve.adb, a-cidlli.adb: Unsuppress + Accessibility_Check for Element_Type allocators. + +2012-07-23 Vasiliy Fofanov + + * projects.texi: Fix typo. + +2012-07-23 Ed Schonberg + + * sem_res.adb (Resolve_Explicit_Derenference): If prefix is + overloaded, remove those interpretations whose designated type + does not match the context, to avoid spurious ambiguities that + may be caused by the Ada 2012 conversion rule for anonymous + access types. + +2012-07-23 Vincent Celier + + * g-spitbo.adb (Substr (String)): Return full string and do not + raise exception when Start is 1 and Len is exactly the length + of the string parameter. + * g-spitbo.ads: Fix spelling error in the name of exception + Index_Error. + +2012-07-23 Ed Schonberg + + * par.adb: new subprogram Get_Aspect_Specifications. + * par-ch6.adb (P_Subprogram): handle subprogram bodies with aspect + specifications. + * par-ch13.adb (Get_Aspect_Specifications): extracted from + P_Aspect_Specifications. Collect aspect specifications in some + legal context, but do not attach them to any declaration. Used + when parsing subprogram declarations or bodies that include + aspect specifications. + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If aspects are + present, analyze them, or reject them if the subprogram as a + previous spec. + +2012-07-23 Vasiliy Fofanov + + * gnat_ugn.texi: Omit section on other platforms/runtimes support + in gnattest for vms version. + +2012-07-23 Ed Schonberg + + * sem_ch13.adb (Analyze_Aspect_Specifications): + Handle properly aspects that can be specified on a subprogram + body: CPU, Priority, and Interrupt_Priority. + +2012-07-23 Claire Dross + + * a-cfdlli.ads: Switch definition of Constant_Reference_Type + and Empty_List. + +2012-07-23 Thomas Quinot + + * par_sco.adb (Process_Decisions.Output_Header): For the guard + on an alternative in a SELECT statement, use the First_Sloc + of the guard expression (not its topmost sloc) as the decision + location, because this is what is referenced by dominance markers. + +2012-07-23 Hristian Kirtchev + + * exp_ch7.adb (Requires_Hooking): Examine the original expression + of an object declaration node because a function call that + returns on the secondary stack may have been rewritten into + something else. + +2012-07-23 Vincent Pucci + + * sem_dim.adb (Analyze_Dimension_Has_Etype): For identifier, propagate + dimension when entity is a non-dimensionless constant. + (Analyze_Dimension_Object_Declaration): Propagate + dimension from the expression to the entity when type is a + dimensioned type and object is a constant. + +2012-07-23 Ed Schonberg + + * sem_attr.adb (Analyze_Attribute, case 'Old): if the prefix + is not an entity name, expand at once so that code generated by + the expansion of the prefix is not generated before the constant + that captures the old value is properly inserted and analyzed. + +2012-07-23 Thomas Quinot + + * exp_ch9.adb (Ensure_Statement_Present): Mark generated NULL + statement as Comes_From_Source so that GIGI does not eliminate it. + +2012-07-23 Hristian Kirtchev + + * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Inst is now + a local variable. Retrieve the related instance when processing + a subprogram instantiation. Such instances appear as wrapper + packages. + +2012-07-23 Vincent Pucci + + * system-aix64.ads, system-aix.ads, system-darwin-ppc.ads, + system-hpux.ads, system-linux-alpha.ads, + system-linux-hppa.ads, system-linux-ppc.ads, + system-linux-s390.ads, system-linux-s390x.ads, + system-linux-sh4.ads, system-linux-sparc.ads, + system-lynxos-ppc.ads, system-mingw.ads, + system-solaris-sparc.ads, system-solaris-sparcv9.ads, + system-vms_64.ads, * system-vxworks-arm.ads, system-vxworks-m68k.ads, + system-vxworks-mips.ads, system-vxworks-ppc.ads, + system-vxworks-sparcv9.ads: Support_Atomic_Primitives set to False. + * system-darwin-x86.ads, system-darwin-x86_64.ads, + system-freebsd-x86.ads, system-freebsd-x86_64.ads, + system-hpux-ia64.ads, system-linux-ia64.ads, system-linux-x86.ads, + system-linux-x86_64.ads, system-lynxos-x86.ads, + system-mingw-x86_64.ads, system-solaris-x86.ads, + system-solaris-x86_64.ads, system-vms-ia64.ads, + system-vxworks-x86.ads: Support_Atomic_Primitives set to True. + * s-atopri.adb (Lock_Free_Read_X): New body. + (Lock_Free_Try_Write_X): Support_Atomic_Primitives check added. + (Lock_Free_Try_Write_64): New body. + * s-atopri.ads: New type uint. + (Sync_Compare_And_Swap_64): __sync_val_compare_and_swap_8 intrinsic + import. + (Lock_Free_Read_X): Body moved to s-atopri.adb. + (Lock_Free_Try_Write_64): Similar to other Lock_Free_Try_Write_X + routines. + * targparm.adb: New enumeration literal SAP + (Support_Atomic_Primitives) for type Targparm_Tags. New constant + SAP_Str. New component SAP_Str'Access for array Targparm_Str. + (Get_Target_Parameters): Parse Support_Atomic_Primitives_On_Target + flag. + * targparm.ads: New back-end code generation flag + Support_Atomic_Primitives_On_Target + +2012-07-23 Vincent Pucci + + * gnat_ugn.texi: Dimensionality checking documentation updated. + +2012-07-23 Ed Schonberg + + * sem_prag.adb (Make_Inline): If the pragma applies to a + subprogram renaming, set inline flags on both the renamed entity + and on the renaming, so that some ASIS queries can be handled + consistently in the absence of expansion. + +2012-07-23 Fedor Rybin + + * gnat_ugn.texi: Removing obsolete limitation of gnattest + to support only ada05. Updating gnattest support for other + platforms/run-times section to reflect the usage of taget + prefix in gnattest calls. Fixing missed obsolete --stub-default + option name. + +2012-07-23 Robert Dewar + + * uintp.adb: Minor reformatting. + +2012-07-23 Olivier Hainque + + * system-vxworks-ppc.ads: Replace the default + Linker_Options requesting crtbe by a commented out request for + -nostartfiles. + +2012-07-23 Vincent Celier + + * prj-nmsc.adb (Check_Naming): Do not get the exceptions names + in a virtual project. + +2012-07-23 Robert Dewar + + * layout.adb, sem_prag.adb, sem.ads, freeze.adb, + switch-m.adb, exp_disp.adb, system-vxworks-ppc.ads, exp_ch6.adb: Minor + reformatting. + +2012-07-23 Tristan Gingold + + * gcc-interface/trans.c: (Handled_Sequence_Of_Statements_to_gnu): Set + location on TRY_CATCH_EXPR. + +2012-07-19 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Try to ensure + that an object of CW type initialized to a value is sufficiently + aligned for this value. + +2012-07-19 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not + look up the REP part of the base type in advance. Deal with that of + the variant types. + (get_rep_part): Be prepared for record types with fields. + +2012-07-18 Eric Botcazou + + * gcc-interface/trans.c (stmt_group_may_fallthru): New function. + (gnat_to_gnu) : Use it to find out whether the + block needs to be translated. + +2012-07-17 Tristan Gingold + + * gnat_rm.texi: Adjust previous change. + +2012-07-17 Ed Schonberg + + * sem_prag.adb (Process_Import_Or_Interface): If the pragma + comes from an aspect, it applies to the corresponding entity + without further check. + +2012-07-17 Olivier Hainque + + * initialize.c (__gnat_initialize for VxWorks): Remove section with + call to __gnat_vxw_setup_for_eh. + * system-vxworks-ppc.ads: Add -auto-register to -crtbe, relying + on the VxWorks constructor mechanism for network loaded modules + by default. + +2012-07-17 Tristan Gingold + + * adaint.c: Minor reformatting. + +2012-07-17 Pascal Obry + + * s-regexp.adb (Adjust): Fix access violation in Adjust. + +2012-07-17 Ed Schonberg + + * freeze.adb (Freeze_Entity): Warn if an imported subprogram + has pre/post conditions, because these will not be enforced. + +2012-07-17 Eric Botcazou + + * exp_ch7.adb (Process_Transient_Objects): Put all the + finalization blocks and the final raise statement into a wrapper + block. + +2012-07-17 Vincent Pucci + + * s-atopri.adb (Lock_Free_Try_Write_X): Atomic_Compare_Exchange_X + replaced by Sync_Compare_And_Swap_X. + (Lock_Free_Try_Write_64): Removed. + * s-atopri.ads (Sync_Compare_And_Swap_X): Replaces previous + routine Atomic_Compare_Exchange_X. + (Lock_Free_Read_64): Renaming of Atomic_Load_64. + (Lock_Free_Try_Write_64): Renaming of Sync_Compare_And_Swap_64. + +2012-07-17 Vincent Celier + + * switch-m.adb (Normalize_Compiler_Switches): Recognize new + switches -gnatn1 and -gnatn2. + +2012-07-17 Vincent Pucci + + * gnat_ugn.texi: GNAT dimensionality checking + documentation updated with System.Dim.Mks modifications. + +2012-07-17 Ed Schonberg + + * exp_ch3.adb: sloc of array init_proc is sloc of type declaration. + +2012-07-17 Tristan Gingold + + * raise-gcc.c (get_call_site_action_for): Remove useless init + expression for p. + (get_action_description_for): Do not overwrite action->kind. + +2012-07-17 Hristian Kirtchev + + * exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr + and Conversion_Added. Add local constant Typ. + Retrieve the original attribute after the arithmetic check + machinery has modified the node. Add a conversion to the target + type when the prefix of attribute Max_Size_In_Storage_Elements + is a controlled type. + +2012-07-17 Gary Dismukes + + * exp_ch6.adb (Expand_Inlined_Call): For each actual parameter + of mode 'out' or 'in out' that denotes an entity, reset + Last_Assignment on the entity so that any assignments to the + corresponding formal in the inlining will not trigger spurious + warnings about overwriting assignments. + +2012-07-17 Robert Dewar + + * s-assert.ads: Fix comments to make it clear that this is used + for all assertions, not just pragma Assert. + +2012-07-17 Jerome Guitton + + * par_sco.ads: Minor typo fix. + +2012-07-17 Gary Dismukes + + * layout.adb (Layout_Type): In the case where the target is + AAMP, use 32 bits (a single pointer) rather than 64 bits for an + anonymous access-to-subprogram type if the type is library-level + and Is_Local_Anonymous_Access is True. + +2012-07-17 Jose Ruiz + + * s-tassta.adb, s-tarest.adb (Create_Task, Create_Restricted_Task, + Initialize): Add comments explaining that the CPU affinity value that + is passed to the run-time library can be either Unspecified_CPU, to + indicate that the task inherits the affinity of its activating task, + or a value in the range of CPU_Range but no greater than Number_Of_CPUs. + +2012-07-17 Javier Miranda + + * exp_disp.adb (Make_DT): Remove decoration of Ada.Tags entities. + (Make_Tags): Add decoration of Ada.Tags entities. + +2012-07-17 Ed Schonberg + + * sem_ch6.adb (Check_Statement_Sequence): When locating the + last significant statement in a sequence, ignore iserted nodes + that typically come from expansion of controlled operations. + +2012-07-17 Tristan Gingold + + * gnat_rm.texi: Document foreign exceptions. + +2012-07-17 Robert Dewar + + * sem_prag.adb, treepr.ads: Minor reformatting. + +2012-07-17 Robert Dewar + + * exp_ch9.adb: Minor code reorganization. + * exp_ch3.adb: Minor code improvement. + +2012-07-17 Tristan Gingold + + * seh_init.c (__gnat_SEH_error_handler): Not compiled anymore + on Windows 64 (+ SEH), as it is unused. + +2012-07-17 Javier Miranda + + * sem_prag.adb (CPP_Class): Transform obsolescent pragma CPP_Class into + CPP convention automatically. + +2012-07-16 Tristan Gingold + + * gcc-interface/decl.c (intrin_return_compatible_p): Map Address to + void *. + +2012-07-16 Thomas Quinot + + * exp_ch9.adb (Ensure_Statement_Present): New subprogram. + (Expand_N_Asynchronous_Select, + Expand_N_Selective_Accept.Process_Accept_Alternative, + Expand_N_Selective_Accept.Process_Delay_Alternative, + Expand_N_Timed_Entry_Call): For an alternative with no trailing + statements, introduce a null statement to carry the sloc of + the initial special statement (accept, delay, or entry call) + in the alternative, for coverage analysis purposes. + +2012-07-16 Thomas Quinot + + * sem_eval.adb (In_Subrange_Of): Fix typo in test for scalar + arguments. + +2012-07-16 Robert Dewar + + * a-exexpr.adb, freeze.adb, a-exexpr-gcc.adb, a-except-2005.adb, + sem_eval.adb, s-fileio.adb: Minor reformatting. + +2012-07-16 Javier Miranda + + * sem_prag.adb (Analyze_Pragma): Remove support for obsolescent + pragma CPP_Class. + * sem_ch13.adb (Analyze_Freeze_Entity): Add missing error on Ada + derivations of CPP types. Found updating the tests affected by + the removal of pragma CPP_Class. + +2012-07-16 Thomas Quinot + + * back_end.adb: Minor reformatting. + +2012-07-16 Thomas Quinot + + * exp_ch9.adb (Expand_N_Selective_Accept.Process_Accept_Alternative): + Remove junk test that was always true. For the case of no statements + following the ACCEPT, jump directly to End_Lab instead of + introducing an intermediate jump. + (Expand_N_Selective_Accept.Process_Delay_Alternative): Fix + predicate testing for presence of statements following the DELAY. + that was always true. For the case of no statements following + the ACCEPT, jump directly to End_Lab instead of introducing an + intermediate jump. + (Expand_N_Selective_Accept): Fix incorrect insertion point for + end label. + +2012-07-16 Thomas Quinot + + * gnat_rm.texi: Minor documentation improvements. + +2012-07-16 Yannick Moy + + * sem_ch13.adb (Analyze_Aspect_Specifications): Allow Pre + and Pre'Class aspects on the same declaration. + * sem_prag.adb (Chain_PPC): Allow Pre and Pre'Class aspects on the + same hierarchy of primitive operations. + +2012-07-16 Thomas Quinot + + * freeze.adb (Check_Component_Storage_Order): Do not reject a + nested composite with different scalar storage order if it is + byte aligned. + +2012-07-16 Thomas Quinot + + * gnat_rm.texi: Update documentation for Scalar_Storage_Order. + +2012-07-16 Tristan Gingold + + * a-exexpr.adb (Propagate_Exception): Adjust call to + Exception_Traces procedures. + * a-exexpr-gcc.adb (Setup_Current_Excep): Now a + function that returns an access to the Ada occurrence. + (Propagate_GCC_Exception): Adjust calls. + * raise.h (struct Exception_Occurrence): Declare. + * a-exextr.adb: Remove useless pragma. (Notify_Handled_Exception, + Notify_Unhandled_Exception) (Unhandled_Exception_Terminate): + Add Excep parameter. + * a-except.adb (Notify_Handled_Exception, + Notify_Unhandled_Exception) (Unhandled_Exception_Terminate): + Add Excep parameter. + (Process_Raise_Exception): Adjust calls. + * a-except-2005.adb (Notify_Handled_Exception, + Notify_Unhandled_Exception) (Unhandled_Exception_Terminate): Add + Excep parameter. + (Raise_Exception): Calls Raise_Exception_Always. + * raise-gcc.c (__gnat_setup_current_excep, + __gnat_notify_handled_exception) + (__gnat_notify_unhandled_exception): Adjust declarations. + (PERSONALITY_FUNCTION): Adjust calls. + (__gnat_personality_seh0): Remove warning. + +2012-07-16 Javier Miranda + + * sem_eval.adb (Test_Expression_Is_Foldable): Adding documentation. + (Eval_Relational_Op): Adding documentation. + +2012-07-16 Robert Dewar + + * freeze.adb, g-debpoo.adb, exp_ch3.adb: Minor reformatting. + +2012-07-16 Thomas Quinot + + * s-oscons-tmplt.c: Add definitions of E2BIG and EILSEQ. + +2012-07-16 Tristan Gingold + + * a-exexpr.adb (Propagate_Continue): New function replacing + Raise_Current_Excep. + (Allocate_Occurrence): New function. + (Propagate_Exception): Add Excep parameter, remove call to Call_Chain. + * a-exexpr-gcc.adb (GNAT_GCC_Exception): Occurrence component + is now aliased. + (To_GCC_Exception): Convert from Address. + (Allocate_Occurrence): Allocate an Unwind exception occurrence. + (Setup_Current_Excep): Fill the machine occurrence in case of + foreign exception. + (Propagate_Exception): Add Excep parameter, remove call to Call_Chain. + * a-except.adb (Set_Exception_C_Msg, Set_Exception_Msg): add + Excep parameter. + (Raise_Exception, Raise_Exception_Always, + Raise_Exception_No_Defer): Adjust calls to the above procedures. + (Raise_From_Signal_Handler, Raise_With_Location_And_Msg) + (Rcheck_PE_Finalize_Raised_Exception): Likewise. + * a-except-2005.adb (Set_Exception_C_Msg, Set_Exception_Msg): + add Excep parameter. + (Propagate_Exception): Likewise. + (Allocate_Occurrence): New function. + (Raise_Current_Excep): Removed. + (Complete_Occurrence): New function to save the call chain. + (Complete_And_Propagate_Occurrence): New procedure. + (Create_Occurrence_From_Signal_Handler): New function to build an + occurrence without propagating it. + (Create_Machine_Occurrence_From_Signal_Handler): Likewise, but + return the machine occurrence. + (Raise_From_Signal_Handler): Use Create_Occurrence_From_Signal_Handler. + (Raise_Exception, Raise_Exception_Always, Raise_Exception_No_Defer): + Adjust calls to the above procedures. Allocate the occurrence at + the beginning. + (Raise_With_Location_And_Msg, Raise_With_Msg) + (Rcheck_PE_Finalize_Raised_Exceptionm Reraise): Likewise. + (Reraise_Occurrence): Use Reraise_Occurrence_Always. + (Reraise_Occurrence_Always): Use Reraise_Occurrence_No_Defer. + (Reraise_Occurrence_No_Defer): Preserve machine occurrence. + (Save_Occurrence): Do not save machine occurrence. + * a-except-2005.ads (Exception_Occurrence): Add Machine_Occurrence + component. + (Null_Occurrence): Consider it. + * a-exexda.adb (Set_Exception_C_Msg, Set_Exception_Msg): add + Excep parameter. + +2012-07-16 Tristan Gingold + + * seh_init.c (__gnat_map_SEH): New function extracted from + __gnat_SEH_error_handler. + * raise-gcc.c: __gnat_personality_seh0: Directly transforms + Windows system exception into GCC one when possible, in order + to save stack room (particularly useful when Storage_Error will + be propagated). + +2012-07-16 Robert Dewar + + * a-direct.adb, g-dirope.adb: Minor reformatting. + +2012-07-16 Tristan Gingold + + * a-except.ads, a-except-2005.ads: Remove outdated comment. + +2012-07-16 Robert Dewar + + * sem_ch6.adb (Subprogram_Name_Greater): Fix algorithm to + conform to documentation. + +2012-07-16 Ed Schonberg + + * gnat1drv.adb (Check_Library_Items): Removed, no longer used. + +2012-07-16 Ed Schonberg + + * sem_ch3.adb (Array_Type_Declaration): if component type has + invariants, the array type itself requires an invariant procedure. + * exp_ch3.ads, exp_ch3.adb (Build_Array_Invariant_Proc): new + procedure, to build a checking procedure that applies the + invariant check on some type T to each component of an array + of T's. Code is similar to the construction of the init_proc + for an array, and handles multidimensional arrays by recursing + over successive dimensions. + +2012-07-16 Hristian Kirtchev + + * g-debpoo.adb: Revert previous change. + +2012-07-16 Hristian Kirtchev + + * freeze.adb (Freeze_Entity): Insert the itype reference to a + library-level class-wide subtype after the freeze node of the + equivalent record type. + +2012-07-16 Pascal Obry + + * s-crtl.ads (mkdir): New routine, support encoding. + * adaint.h (__gnat_mkdir): Update spec to pass encoding. + * mkdir.c (__gnat_mkdir): Add encoding parameter. + * a-direct.adb (Create_Directory): Use CRTL.mkdir, parse encoding + in form parameter. + * g-dirope.adb (Make_Dir): Update to pass encoding parameter. + +2012-07-16 Pascal Obry + + * adaint.c: Minor reformatting. + +2012-07-16 Steven Bosscher + + * gcc-interface/utils.c: Include timevar.h. + * Make-lang.in: Fix dependencies. + +2012-07-16 Vasiliy Fofanov + + * ug_words, vms_data.ads: Document VMS qualifiers for -gnatn1/2 + switches. + +2012-07-16 Bob Duff + + * sinfo.ads: Minor comment fix. + +2012-07-16 Bob Duff + + * sem_elab.adb (Within_Elaborate_All): Walk the with clauses to + find pragmas Elaborate_All that may be found in the transitive + closure of the dependences. + +2012-07-16 Robert Dewar + + * exp_pakd.adb, freeze.adb, sem_util.adb, vms_data.ads: Minor + reformatting. + +2012-07-12 Vasiliy Fofanov + + * vms_data.ads: Add VMS qualifiers for -gnatn1/2 switches. + +2012-07-12 Thomas Quinot + + * exp_ch5.adb, exp_pakd.adb, rtsfind.ads, freeze.adb, sem_util.adb, + sem_util.ads, exp_aggr.adb + (Exp_Aggr.Packed_Array_Aggregate_Handled): Simplify processing + for reverse storage order aggregate. + (Exp_Pakd.Byte_Swap): New utility routine used by... + (Exp_Pakd.Expand_Bit_Packed_Element_Set, + Expand_Packed_Element_Reference): For the case of a free-standing + packed array with reverse storage order, perform byte swapping. + (Rtsfind): Make new entities RE_Bswap_{16,32,64} available. + (Freeze.Check_Component_Storage_Order): New utility routine + to enforce legality rules for nested composite types whose + enclosing composite has an explicitly defined Scalar_Storage_Order + attribute. + (Sem_Util.In_Reverse_Storage_Order_Object): Renamed from + Sem_Util.In_Reverse_Storage_Order_Record, as SSO now applies to + array types as well. + (Exp_Ch5.Expand_Assign_Array): Remove now unnecessary kludge + for change of scalar storage order in assignments. The Lhs and + Rhs now always have the same scalar storage order. + +2012-07-12 Hristian Kirtchev + + * g-debpoo.adb (Allocate): Add local constant + No_Element. Initialize the allocated memory chunk to No_Element. + +2012-07-12 Ed Schonberg + + * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly + the case of an instance of a child unit where a formal derived + type DT is an extension of a type T declared in a parent unit, + and the actual in the instance of the child is the type T declared + in the parent instance, and that actual is not a derived type. + +2012-07-12 Eric Botcazou + Tristan Gingold + + * system-hpux-ia64.ads: Enable ZCX by default. + * gcc-interface/Makefile.in: Use alternate stack on ia64-hpux. + Change soext to .so. + +2012-07-12 Robert Dewar + + * s-atopri.adb, s-atopri.ads: Minor reformatting. + +2012-07-12 Robert Dewar + + * ali.adb: Add circuitry to read new named form of restrictions lines. + * debug.adb: Add doc for new -gnatd.R switch (used positional + notation for output of restrictions data in ali file). + * lib-writ.adb: Implement new named format for restrictions lines. + * lib-writ.ads: Add documentation for new named format for + restrictions in ali files. + * restrict.adb, restrict.ads, sem_prag.adb: Update comments. + * rident.ads: Go back to withing System.Rident + * s-rident.ads: Add extensive comment on dealing with consistency + checking. + +2012-07-12 Thomas Quinot + + * par_sco.adb, scos.ads: Emit detailed SCOs for SELECT statements. + +2012-07-12 Robert Dewar + + * sem_disp.adb: Minor reformatting + * s-bytswa.ads: Minor comment update. + +2012-07-12 Vincent Pucci + + * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): + Atomic_Load_N replaced by Lock_Free_Read_N. Atomic_Compare_Exchange_N + replaced by Lock_Free_Try_Write_N. + Renaming of several local variables. For + procedure, Expected_Comp declaration moved to the declaration + list of the procedure. + * rtsfind.ads: RE_Atomic_Compare_Exchange_8, + RE_Atomic_Compare_Exchange_16, RE_Atomic_Compare_Exchange_32, + RE_Atomic_Compare_Exchange_64, RE_Atomic_Load_8, + RE_Atomic_Load_16, RE_Atomic_Load_32, RE_Atomic_Load_64, + RE_Atomic_Synchronize, RE_Relaxed removed. RE_Lock_Free_Read_8, + RE_Lock_Free_Read_16, RE_Lock_Free_Read_32, RE_Lock_Free_Read_64, + RE_Lock_Free_Try_Write_8, RE_Lock_Free_Try_Write_16, + RE_Lock_Free_Try_Write_32, RE_Lock_Free_Try_Write_64 added. + * s-atopri.adb: New file. + * s-atopri.ads (Atomic_Compare_Exchange_8): Renaming of + parameters. Import primitive __sync_val_compare_and_swap_1. + (Atomic_Compare_Exchange_16): Renaming of parameters. + Import primitive __sync_val_compare_and_swap_2. + (Atomic_Compare_Exchange_32): Renaming of parameters. + Import primitive __sync_val_compare_and_swap_4. + (Atomic_Compare_Exchange_64): Renaming of parameters. Import + primitive __sync_val_compare_and_swap_8. + (Atomic_Load_8): Ptr renames parameter X. + (Atomic_Load_16): Ptr renames parameter X. + (Atomic_Load_32): Ptr renames parameter X. + (Atomic_Load_64): Ptr renames parameter X. + (Lock_Free_Read_8): New routine. + (Lock_Free_Read_16): New routine. + (Lock_Free_Read_32): New routine. + (Lock_Free_Read_64): New routine. + (Lock_Free_Try_Write_8): New routine. + (Lock_Free_Try_Write_16): New routine. + (Lock_Free_Try_Write_32): New routine. + (Lock_Free_Try_Write_64): New routine. + +2012-07-12 Robert Dewar + + * exp_attr.adb, exp_ch9.adb, sem_ch9.adb, exp_aggr.adb: Minor + reformatting. + +2012-07-12 Vincent Pucci + + * sem_dim.adb (Analyze_Dimension_Function_Call): Reformatting of error + msgs for elementary functions. + +2012-07-12 Vincent Pucci + + * sem_attr.adb (Eval_Attribute): Minor reformatting. + +2012-07-12 Pascal Obry + + * prj-nmsc.adb (Check_Library_Attributes): Allow the same library + project in different project tree (different aggregated projects). + +2012-07-12 Thomas Quinot + + * s-bytswa.adb, g-bytswa.adb, g-bytswa.ads, s-bytswa.ads: Further + reorganization of byte swapping routines. + +2012-07-12 Ed Schonberg + + * sem_disp.adb (Check_Dispatching_Context): Refine legality + checks on tagg indeterminate calls to abstract operations, + that appear in the context of other calls. + +2012-07-12 Thomas Quinot + + * s-bytswa.adb (Swapped2.Bswap16): Remove local function, + no longer needed. + +2012-07-12 Javier Miranda + + * exp_attr.adb (Expand_N_Attribute_Reference): For + attributes 'access, 'unchecked_access and 'unrestricted_access, + iff the current instance reference is located in a protected + subprogram or entry then rewrite the access attribute to be the + name of the "_object" parameter. + +2012-07-12 Tristan Gingold + + * raise.h: Revert previous patch: structure is used in init.c + by vms. + +2012-07-12 Vincent Celier + + * make.adb (Binding_Phase): If --subdirs was used, but not + -P, change the working directory to the specified subdirectory + before invoking gnatbind. + (Linking_Phase): If --subdirs was used, but not -P, change the working + directory to the specified subdirectory before invoking gnatlink. + +2012-07-12 Vincent Pucci + + * exp_ch9.adb (Build_Lock_Free_Unprotected_Subprogram_Body): + For a procedure, instead of replacing each Comp reference by a + reference to Current_Comp, make a renaming Comp of Current_Comp + that rewrites the original renaming generated by the compiler + during the analysis. Move the declarations of the procedure + inside the generated block. + (Process_Stmts): Moved in the body + of Build_Lock_Free_Unprotected_Subprogram_Body. + (Process_Node): + Moved in the body of Build_Lock_Free_Unprotected_Subprogram_Body. + * sem_ch9.adb (Allows_Lock_Free_Implementation): Restrict any + non-elementary out parameters in protected procedures. + +2012-07-12 Thomas Quinot + + * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case + Scalar_Storage_Order): Attribute applies to base type only. + +2012-07-12 Ed Schonberg + + * exp_aggr.adb (Convert_To_Positional): Increase acceptable size + of static aggregate when Static_Elaboration_Desired is requested. + Add a warning if the request cannot be satisfied either because + some components or some array bounds are non-static. + +2012-07-12 Thomas Quinot + + * exp_pakd.adb: Minor reformatting. + +2012-07-12 Tristan Gingold + + * tracebak.c: Fix warnings. + * raise-gcc.c (__gnat_adjust_context): New function + (__gnat_personality_seh0): Call __gnat_adjust_context to adjust + PC in machine frame for exceptions that occur in the current + function. + +2012-07-12 Thomas Quinot + + * g-bytswa.adb, g-bytswa.ads, s-bytswa.adb, s-bytswa.ads, Makefile.rtl: + Move GNAT.Byte_Swapping to System (with a renaming under GNAT) + so that it is usable in expanded code. + +2012-07-12 Tristan Gingold + + * s-osinte-hpux.ads: Increase alternate stack size on hpux. + +2012-07-12 Javier Miranda + + * exp_ch3.adb (Make_Neq_Body): Fix typo in comment. + +2012-07-12 Eric Botcazou + + * tb-gcc.c (trace_callback): On IA-64/HP-UX, use workaround only + if USE_LIBUNWIND_EXCEPTIONS is defined. + * init.c: Further tweaks for IA-64/HP-UX. + +2012-07-12 Tristan Gingold + + * raise-gcc.c: Do not include unwind-dw2-fde.h. Adjust comments. + (db_region_for): Second argument is ip. Do not recompute ip. + (action_kind): Remove typedef, add unhandler enum const. + (action_descriptor): Adjust type of kind field. + (db_action_for): Second argument is ip, do not recompute it. + (get_call_site_action_for): First argument is call_site, do not + recompute it. Remove useless return. + (is_handled_by): Now return enum action_kind. + Handle GNAT_ALL_OTHERS first. + Return unhandler for GNAT_UNHANDLED_OTHERS. + (get_action_description_for): First argument is now ip, do not + recompute it. Adjust code for call to is_handled_by. + (__gnat_notify_unhandled_exception): Add prototype. + (PERSONALITY_FUNCTION): Call get_ip_from_context. Adjust calls. + Handle unhandler case. + (__gnat_cleanupunwind_handler): Add comments, add + ATTRIBUTE_UNUSED on arguments. + (__gnat_Unwind_RaiseException, __gnat_Unwind_ForcedUnwind): Define + only once. + * raise.h: Makes struct Exception_Data opaque. + +2012-07-12 Robert Dewar + + * make.adb, sem_ch9.adb, prj.adb, s-rident.ads, snames.ads-tmpl: Minor + reformatting. + +2012-07-12 Javier Miranda + + * exp_ch3.adb (Is_User_Defined_Equality): New subprogram. + (Make_Neq_Body): New subprogram. + (Make_Predefined_Primitive_Specs): Adding local variable + Has_Predef_Eq_ Renaming to ensure that we enable the machinery + which handles renamings of predefined primitive operators. + +2012-07-09 Pascal Obry + + * prj.adb (For_Every_Project_Imported_Context): Make sure we + callback with the project having sources. + Minor reformatting. + +2012-07-09 Eric Botcazou + + * make.adb: Fix typo. + +2012-07-09 Vincent Pucci + + * sem_ch9.adb (Check_Node): Allow attributes + that denote static function for lock-free implementation. + (Is_Static_Function): New routine. + +2012-07-09 Tristan Gingold + + * tracebak.c: Adjust skip_frames on Win64. + +2012-07-09 Tristan Gingold + + * init.c: Add __gnat_adjust_context_for_raise for ia64/hpux. + * raise-gcc.c: __gnat_cleanupunwind_handler: Do not call + _Unwind_GetGR on hpux when using libgcc unwinder. Part of + +2012-07-09 Vincent Pucci + + * exp_attr.adb, sem_attr.adb: Minor reformatting. + * par-ch13.adb, par-ch4.adb, par-util.adb: Reformatting + considering that internal attribute names are not defined anymore + in the main attribute names list. + * snames.adb-tmpl (Get_Attribute_Id): Special processinf + for names CPU, Dispatching_Domain and Interrupt_Priority. + (Is_Internal_Attribute_Name): Minor reformatting. + * snames.ads-tmpl: New list of internal attribute names. Internal + attributes moved at the end of the attribute Id list. + +2012-07-09 Robert Dewar + + * freeze.adb: Minor code reorganization (use Ekind_In). + * exp_attr.adb, sem_ch9.adb par-ch4.adb, s-taprop-mingw.adb, + sem_attr.adb, exp_ch8.adb, snames.adb-tmpl, par-util.adb, + sem_ch13.adb, snames.ads-tmpl: Minor reformatting. + +2012-07-09 Tristan Gingold + + * raise-gcc.c: Adjust previous patch. + +2012-07-09 Vincent Celier + + * make.adb (Compilation_Phase): Do not build libraries in + Codepeer mode (do not call Library_Phase). + +2012-07-09 Ed Schonberg + + * sem_ch13.adb: Extend previous change to elementary types. + +2012-07-09 Javier Miranda + + * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): Reverse + previous patch since unconditionally handling as renaming_as_body + renamings of predefined dispatching equality and unequality operator + cause visibility problems with private overridings of the equality + operator (see ACATS C854001). + +2012-07-09 Vincent Pucci + + * exp_attr.adb (Signal_Bad_Attribute): Raise Program_Error in + case of internal attribute names (already rejected by the parser). + * par-ch13.adb (P_Representation_Clause): Complain if an internal + attribute name that comes from source occurs. + * par-ch4.adb (P_Name): Complain if an internal attribute name + occurs in the context of an attribute reference. + * par-util.adb (Signal_Bad_Attribute): Don't complain about + mispelling attribute with internal attributes. + * sem_attr.adb (Analyze_Attribute): Raise Program_Error in case + of internal attribute names (already rejected by the parser). + * snames.adb-tmpl (Is_Internal_Attribute_Name): New routine. + * snames.ads-tmpl: Attributes CPU, Dispatching_Domain and + Interrupt_Priority are marked as INT attributes since they + don't denote real attribute and are only used internally in + the compiler. + (Is_Internal_Attribute_Name): New routine. + +2012-07-09 Thomas Quinot + + * einfo.adb (Set_Reverse_Storage_Order): Update assertion, + flag is now valid for array types as well. + +2012-07-09 Tristan Gingold + + * tracebak.c: Implement __gnat_backtrace for Win64 SEH. + +2012-07-09 Robert Dewar + + * einfo.ads: Minor reformatting. + +2012-07-09 Javier Miranda + + * exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration): Handle as + renaming_as_body renamings of predefined dispatching equality + and unequality operators. + +2012-07-09 Robert Dewar + + * rident.ads: Do not instantiate r-ident.ads, this is now an + independent unit. + +2012-07-09 Javier Miranda + + * exp_disp.adb (Write_DT): Avoid runtime crash of this debugging + routine. + * sem_disp.adb (Find_Dispatching_Time): Protect this routine + against partially decorated entities. + +2012-07-09 Ed Schonberg + + * sem_ch13.adb (Check_Size): Reject a size clause that specifies + a value greater than Int'Last for a scalar type. + +2012-07-09 Vincent Pucci + + * sem_ch9.adb (Allows_Lock_Free_Implementation): type must support + atomic operation moved to the protected body case. No non-elementary + out parameter moved to the protected declaration case. Functions have + only one lock-free restriction. + (Analyze_Protected_Type_Declaration): Issue a warning when + Priority given with Lock_Free. + +2012-07-09 Vincent Pucci + + * sem_dim.adb: Grammar of aspect Dimension fixed. + +2012-07-09 Vincent Pucci + + * freeze.adb (Freeze_Record_Type): Code reorg in order to avoid + pushing and popping the scope stack whenever a delayed aspect occurs. + +2012-07-09 Gary Dismukes + + * s-os_lib.ads: Remove pragma Elaborate_Body, as + this is now unnecessary due to recently added pragma Preelaborate. + +2012-07-09 Jose Ruiz + + * s-taprop-mingw.adb (Set_Priority): Remove the code that was + previously in place to reorder the ready queue when a task drops + its priority due to the loss of inherited priority. + +2012-07-09 Robert Dewar + + * layout.adb, i-cstrea.ads, a-ststio.ads, prj-util.ads, sem_cat.adb, + s-commun.ads, s-ficobl.ads, s-os_lib.ads, s-fileio.ads: Minor + reformatting. + +2012-07-09 Eric Botcazou + + * raise-gcc.c: Update comments. Fix typo. + +2012-07-09 Thomas Quinot + + * einfo.adb, einfo.ads, sem_attr.adb, sem_ch13.adb: Attribute + Scalar_Storage_Order can be defined or queried for array types as well + as record types. + +2012-07-09 Tristan Gingold + + * a-exexpr-gcc.adb (CleanupUnwind_Handler): Now imported from + raise-gcc.c + * raise-gcc.c (__gnat_cleanupunwind_handler): Defined. + Strictly follow the ABI convention on ia64. + +2012-07-09 Gary Dismukes + + * a-ststio.ads: Add pragma Preelaborate, per AI05-0283. + * i-cstrea.ads (max_path_len): Change from variable to deferred + constant to allow it to be used as a bound in string component + in type System.File_IO.Temp_File_Record. + * s-os_lib.ads, s-commun.ads, s-ficobl.ads, s-fileio.ads: Add pragma + Preelaborate. + * s-fileio.adb (Get_Case_Sensitive): Move function inside + procedure Open. + (File_Names_Case_Sensitive): Move variable inside + procedure Open, to avoid violation of Preelaborate restriction + (due to call to Get_Case_Sensitive). + +2012-07-09 Ed Schonberg + + * layout.adb (Set_Elem_Alignment): Protect against meaningless + size clause, to prevent overflow in internal computation of + alignment. + +2012-07-09 Robert Dewar + + * freeze.adb, prj-util.adb, prj-util.ads, sem_ch13.adb: Minor + reformatting. + +2012-07-09 Gary Dismukes + + * sem_cat.adb (Check_Categorization_Dependencies): + Allow dependence of both Remote_Types and Remote_Call_Interface + declarations (not just Remote_Types units) on preelaborated + units, but require that the dependence be made via a private + with_clause. Issue a specialized error message. + +2012-07-09 Pascal Obry + + * prj-util.adb, prj-util.ads (For_Interface_Sources): New routine. + +2012-07-09 Tristan Gingold + + * seh_init.c (__gnat_SEH_error_handler): On Win64 and SEH, + return for unknown exceptions. + * raise-gcc.c (__gnat_personality_seh0): Call __gnat_SEH_error_handler. + +2012-07-09 Joel Brobecker + + * exp_dbug.ads (No_Dollar_In_Label): Delete. + +2012-07-09 Vincent Pucci + + * sem_ch13.adb (Check_Overloaded_Name): New routine. + +2012-07-09 Vincent Pucci + + * freeze.adb (Freeze_Record_Type): Analyze the delayed aspects of the + components in a record type. + +2012-07-09 Pascal Obry + + * prj-util.ads: Minor reformatting. + +2012-07-09 Tristan Gingold + + * raise-gcc.c (db_indent): Simplify style, improve comments. + Remove !IN_RTS part (dead). + +2012-07-09 Robert Dewar + + * usage.adb: Minor change to format of -gnatn line. + +2012-07-09 Tristan Gingold + + * a-exexpr-gcc.adb: Reorder routine. + +2012-07-09 Vincent Celier + + * lib-writ.ads: Add documentation for the Z lines (implicitly + withed units) and Y lines (limited withed units). + +2012-07-09 Robert Dewar + + * lib.ads, exp_attr.adb, exp_ch9.adb, sem_dim.adb, sem_ch9.adb, + sem_prag.adb, sem_ch12.adb, mlib-utl.adb, freeze.adb, sem_res.adb, + sem_attr.adb, sem_case.adb, gnatlink.adb, exp_ch4.adb, sem_ch6.adb, + sem_elim.adb, s-dimmks.ads, sem_ch13.adb: Minor code clean ups. + +2012-07-09 Eric Botcazou + + * gnat_ugn.texi (Switches for gcc): Document -gnatn[12] only + lightly in the summary and more thoroughly in inlining section. + (Performance Considerations): Document -gnatn[12] in inlining + section. + +2012-07-09 Tristan Gingold + + * a-exexpr-gcc.adb (Unhandled_Except_Handler): New procedure. + (Unhandled_Others_Value): New const. + * raise-gcc.c (GNAT_UNHANDLED_OTHERS): Define. + (action_descriptor): Remove ttype_entry. + (get_action_description_for): Do not assign ttype_entry. + (is_handled_by): Consider GNAT_UNHANDLED_OTHERS. + +2012-07-03 Eric Botcazou + + * gcc-interface/trans.c (Call_to_gnu): Robustify test for function case + if the CICO mechanism is used. + +2012-07-03 Eric Botcazou + + * gcc-interface/utils2.c (build_simple_component_ref): Do not look + through an extension if the type contains a placeholder. + +2012-07-03 Eric Botcazou + + * exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on + the designated subprogram type and also set Is_Dispatch_Table_Entity. + (Expand_Interface_Thunk): Propagate the convention on the thunk. + (Set_CPP_Constructors_Old): Set Is_Constructor and Convention_CPP on + the internal view of the constructors. + (Set_CPP_Constructors): Likewise. + * sem_prag.adb (Analyze_Pragma) : Set the + convention on the function. + * gcc-interface/gigi.h (is_cplusplus_method): Declare. + * gcc-interface/decl.c (Has_Thiscall_Convention): New macro. + (gnat_to_gnu_entity) : Test it to set the `thiscall' + calling convention + (get_minimal_subprog_decl): Likewise. + (is_cplusplus_method): New predicate. + * gcc-interface/trans.c (Attribute_to_gnu) : Issue an + error on access to C++ constructor or member function. + +2012-07-03 Eric Botcazou + + * gcc-interface/utils.c (gnat_pushdecl): Set TYPE_CONTEXT for types + attached to a TYPE_DECL. + +2012-06-26 Vincent Pucci + + * exp_ch3.adb (Build_Init_Statements): Don't check the parents + in the Rep Item Chain of the task for aspects Interrupt_Priority, + Priority, CPU and Dispatching_Domain. + * exp_ch9.adb (Expand_N_Task_Type_Declaration): fields _Priority, + _CPU and _Domain are present in the corresponding record type + only if the task entity has a pragma, attribute definition + clause or aspect specification. + (Make_Initialize_Protection): Don't check the parents in the Rep Item + Chain of the task for aspects Interrupt_Priority, Priority, CPU and + Dispatching_Domain. + * freeze.adb (Freeze_Entity): Use of Evaluate_Aspects_At_Freeze_Point + call replaced by Analyze_Aspects_At_Freeze_Point. + * sem_ch13.adb, sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): + Renaming of Evaluate_Aspects_At_Freeze_Point. + +2012-06-26 Yannick Moy + + * sem_attr.adb (Analyze_Attribute): Detect if 'Old is used outside a + postcondition, and issue an error in such a case. + +2012-06-26 Yannick Moy + + * gnat_rm.texi: Minor editing. + +2012-06-26 Tristan Gingold + + * raise-gcc.c: Minor cleanup: remove unused prototype. + * seh_init.c: Do not create an image wide unwind info to catch + SEH when SEH unwind info are emitted by the compiler. + +2012-06-19 Steven Bosscher + + * gcc-interface/trans.c: Include target.h. + (gigi): Try to put out .ident with targetm.asm_out.output_ident. + Remove uses of ASM_OUTPUT_IDENT. + * gcc-interface/Make-lang.in: Fix dependencies. + +2012-06-15 Eric Botcazou + + PR ada/53592 + * gcc-interface/gigi.h (maybe_vector_array): Make static inline. + * gcc-interface/utils.c (maybe_vector_array): Delete. + * gcc-interface/trans.c (gnat_to_gnu) : Mark the + array object as addressable if it has vector type and is on the LHS. + +2012-06-15 Eric Botcazou + + PR middle-end/53590 + * gcc-interface/misc.c (gnat_init_options_struct): Set + opts->x_flag_delete_dead_exceptions to 1. + +2012-06-14 Jose Ruiz + + * gcc-interface/Make-lang.in (ada.install-common, ada.uninstall): + Use the prefix specified with the --program-prefix configure option + to determine the install name of the Ada tools. + (ada.all.cross): Use a for loop to iterate over the set of Ada tools + instead of duplicate the same processing. + Update dependencies. + +2012-06-14 Vincent Pucci + + * exp_ch6.adb (Expand_Call): Expand_Put_Call_With_Dimension_Symbol + call replaced by Expand_Put_Call_With_Symbol call. + * sem_dim.adb: New fields Unit_Names, Unit_Symbols + and Dim_Symbols for record type System_Type. + (From_Dimension_To_String_Of_Symbols): Removed. + (From_Dim_To_Str_Of_Dim_Symbols): Renames previous + routine From_Dimension_To_String_Of_Symbols. + (From_Dim_To_Str_Of_Unit_Symbols): New routine. + (Analyze_Aspect_Dimension): argument Symbol in aspect + Dimension aggregate is optional. Named association implemented. + (Has_Compile_Time_Known_Expressions): Removed. + (Analyze_Aspect_Dimension_System): New + component Dim_Symbol in each Dimension aggregate in + aspect Dimension_System. Named associations implemented. + (Add_Dimension_Vector_To_Buffer): Removed. + (Add_Whole_To_Buffer): Removed. + (Expand_Put_Call_With_Dimension_Symbol.): Removed. + (Expand_Put_Call_With_Symbol): Renames previous routine + Expand_Put_Call_With_Dimension_Symbol. + (Has_Dimension_Symbols): Removed. + (Has_Symbols): Renames previous routine + Has_Dimension_Symbols. (Store_String_Oexpon): New routine. + * sem_dim.ads (Expand_Put_Call_With_Dimension_Symbol.): Removed. + (Expand_Put_Call_With_Symbol): Renames previous routine + Expand_Put_Call_With_Dimension_Symbol. + * s-diflio.adb, s-diinio.adb (Put): Symbol renames Symbols. + (Put_Dim_Of): New routines. + * s-diflio.ads, s-diinio.ads: documentation updated. + (Put): Symbol renames Symbols. + (Put_Dim_Of): New routines. + * s-dim.ads: documentation updated. + * s-dimmks.ads: dimensioned type and subtypes updated. + * snames.ads-tmpl: Name_Dim_Symbol, Name_Put_Dim_Of, Name_Symbol, + and Name_Unit_Symbol added. Name_Symbols removed. + +2012-06-14 Vincent Pucci + + * freeze.adb (In_Exp_Body): Expression function case added. + (Freeze_Expression): Insert the Freeze_Nodes + list before the correct current scope in case of a quantified + expression. + +2012-06-14 Pascal Obry + + * projects.texi: Document the Install package for gprinstall. +2012-06-14 Ed Schonberg + + * sem_elim.adb (Check_For_Eliminated_Subprogram): Do not check within + a default expression. + * sem_res.adb (Resolve_Call): simplify code. + +2012-06-14 Ed Schonberg + + * sem_case.adb (Check, Issue_Msg): within an instance, non-other + values in a variant part or a case expression do not have to + belong to the actual subtype. + +2012-06-14 Ed Schonberg + + * sem_ch12.adb (Validate_Derived_Type_Instance): If parent is + an interface type, check whether it is itself a previous formal + already instantiated in the current list of actuals. + +2012-06-14 Ed Schonberg + + * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): The + expression for a stream attribute is a name that may be overloaded + with other declarations. To determine whether it matches the + aspect at the freeze point, it is necessary to verify that one + of its interpretations matches. + +2012-06-14 Robert Dewar + + * exp_ch7.adb, exp_util.adb, sem_aux.ads, exp_ch9.adb, + sem_ch10.adb, freeze.adb, sem_util.adb, exp_ch4.adb, + s-taprop-dummy.adb: Minor reformatting. + +2012-06-14 Vincent Pucci + + * exp_attr.adb (Expand_N_Attribute_Reference): Lock_Free + attribute case added. + * par-prag.adb (Prag): Lock_Free pragma case added. + * sem_attr.adb (Analyze_Attribute_Reference): Lock_Free attribute + case added. + * sem_ch13.adb (Analyze_Aspect_Specifications): Record_Rep_Item + call added for Aspect_Lock_Free. + * sem_ch9.adb (Allows_Lock_Free_Implementation): New Lock_Free + error messages for subprogram bodies. + (Lock_Free_Disabled): New routine. + (Analyze_Protected_Body): Call to Lock_Free_Disabled added. + * sem_prag.adb (Analyze_Pragma): Lock_Free pragma case added. + * snames.adb-tmpl (Get_Pragma_Id): Name_Lock_Free case added. + (Is_Pragma_Name): Name_Lock_Free case added. + * snames.ads-tmpl: Attribute_Lock_Free and Pragma_Lock_Free added. + +2012-06-14 Ed Schonberg + + * a-coorma.adb, a-cborma.adb, a-cbhama.adb, a-ciorma.adb: Add missing + aliased keyword. + +2012-06-14 Bob Duff + + * lib.ads, lib.adb, sem.adb (Write_Unit_Info): Move this + procedure from Sem body to Lib spec, so it can be used for + debugging elsewhere. + +2012-06-14 Ed Schonberg + + * sem_ch6.adb (Check_Conformance): Add Ada 2012 check on mode + conformance: "aliased" must apply to both or neither formal + parameters. + +2012-06-14 Gary Dismukes + + * exp_ch9.adb: Minor reformatting. + +2012-06-14 Thomas Quinot + + * freeze.adb (Freeze_Record_Type): Warn about useless bit order + specification [when there's no component clause] regardless + of whether the specified bit order is reversed or not. + +2012-06-14 Tristan Gingold + + * raise-gcc.c (__gnat_personality_seh0): New function. + +2012-06-14 Tristan Gingold + + * gnatname.adb (Gnatname): Make sure that dynamic table + argument_data is initialized. + +2012-06-14 Robert Dewar + + * sem_aux.adb: Minor code reorganization. + +2012-06-14 Vincent Pucci + + * einfo.adb einfo.ads (Get_Rep_Item): Removed. + (Get_Rep_Item_For_Entity): Removed. + (Get_Rep_Pragma): Removed. + (Get_Rep_Pragma_For_Entity): Removed. + (Has_Rep_Item): Removed. + (Has_Rep_Pragma): Removed. + (Has_Rep_Pragma_For_Entity): Removed. + * exp_ch9.adb (Expand_N_Task_Type_Declaration): + Has_Rep_Pragma_For_Entity replaced by Has_Rep_Pragma + and Get_Rep_Pragma_For_Entity replaced by Get_Rep_Pragma. + (Make_Task_Create_Call): Has_Rep_Pragma_For_Entity replaced + by Has_Rep_Pragma and Get_Rep_Pragma_For_Entity replaced by + Get_Rep_Pragma. + * exp_intr.adb: Dependency to Sem_Aux added for call to Get_Rep_Pragma. + * sem_aux.adb (Get_Rep_Item): New routine. + (Get_Rep_Pragma): New routine. + (Has_Rep_Item): New routine. + (Has_Rep_Pragma): New routine. + (Nearest_Ancestor): Minor reformatting. + * sem_aux.ads (Get_Rep_Item): New routine. + (Get_Rep_Pragma): New routine. + (Has_Rep_Item): New routine. + (Has_Rep_Pragma): New routine. + * sem_ch13.adb (Duplicate_Clause): Restore original error messages. + * sem_eval.adb (Subtypes_Statically_Match): Get_Rep_Item_For_Entity + replaced by Get_Rep_Item. + * sem_prag.adb (Analyze_Pragma): Restore original error messages. + (Check_Duplicate_Pragma): Restore original error messages. + +2012-06-14 Ed Schonberg + + * sem_util.adb (Is_Object_Reference): in Ada 2012, qualified + expressions are valid names. + +2012-06-14 Ed Schonberg + + * sem_ch10.adb (Analyze_Compilation_Unit): If the unit is an + instantiation do not emit warnings for obsolescent units. The + warnings belong on the corresponding generic. + +2012-06-14 Hristian Kirtchev + + * einfo.adb: Update the usage of Node15. + (Return_Flag_Or_Transient_Decl): Removed. + (Set_Return_Flag_Or_Transient_Decl): Removed. + (Set_Status_Flag_Or_Transient_Decl): New routine. + (Status_Flag_Or_Transient_Decl): New routine. + (Write_Field15_Name): Update the output for variables and constants. + * einfo.ads: Remove attribute + Return_Flag_Or_Transient_Decl along with occurrences in nodes. + (Return_Flag_Or_Transient_Decl): Removed along with pragma Inline. + (Set_Return_Flag_Or_Transient_Decl): Removed along with pragma Inline. + (Set_Status_Flag_Or_Transient_Decl): New routine along with pragma + Inline. + (Status_Flag_Or_Transient_Decl): New routine along with pragma Inline. + * exp_ch4.adb (Create_Alternative): New routine. + (Expand_N_Conditional_Expression): Handle the case + where at least one of the conditional expression + alternatives prodices a controlled temporary by means of a function + call. + (Is_Controlled_Function_Call): New routine. + (Process_Transient_Object): Update the call to + Set_Return_Flag_Or_Transient_Decl. + * exp_ch6.adb (Enclosing_Context): New routine. + (Expand_N_Extended_Return_Statement): Update all calls to + Set_Return_Flag_Or_Transient_Decl. + (Expand_Ctrl_Function_Call): Prohibit the finalization of a controlled + function result when the context is a conditional expression. + * exp_ch7.adb (Process_Declarations): Update all calls to + Return_Flag_Or_Transient_Decl. Add processing for intermediate + results of conditional expressions where one of the alternatives + uses a controlled function call. + (Process_Object_Declaration): Update all calls to + Return_Flag_Or_Transient_Decl and rearrange the logic to process + "hook" objects first. + (Process_Transient_Objects): Update the call to + Set_Return_Flag_Or_Transient_Decl. + * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, + Boolean)): Update all calls to Return_Flag_Or_Transient_Decl. Add + detection for intermediate results of conditional expressions + where one of the alternatives uses a controlled function call. + +2012-06-13 Eric Botcazou + + Revert + 2012-05-19 Eric Botcazou + + * gcc-interface/decl.c (Has_Thiscall_Convention): New macro. + (gnat_to_gnu_entity) : Test it to set the thiscall + calling convention + (get_minimal_subprog_decl): Likewise. + (gnat_first_param_is_class): New predicate. + +2012-06-12 Robert Dewar + + * gcc-interface/Make-lang.in: Update dependencies. + * sem_ch9.ads, einfo.adb, einfo.ads, sem_prag.adb, freeze.adb, + sem_util.adb, sem_ch13.adb, sem_ch13.ads, exp_ch3.adb: Add comments. + Minor reformatting. + +2012-06-12 Ed Schonberg + + * sem_ch12.adb (Instantiate_Formal_Subprogram): Remove code that + implements AI05-0296, because the actual may be overloaded. + * sem_ch8.adb (Analyze_Subprogram_Renaming): and move it here, + to be applied once the actual subprogram is properly resolved. + +2012-06-12 Robert Dewar + + * switch-c.adb, a-exexpr-gcc.adb: Minor reformatting. + +2012-06-12 Vincent Pucci + + * checks.adb (Tag_Checks_Suppressed): Remove Kill_Tag_Checks check. + * einfo.adb (Universal_Aliasing): Apply to the implementation + base type instead of the base type. + (Get_Rep_Item_For_Entity): + Return a pragma if the pragma node is not present in the Rep + Item chain of the parent. + (Kill_Tag_Checks): Removed (unused flag). + (Set_Kill_Tag_Checks): Removed. + (Get_First_Rep_Item): New routine. + (Get_Rep_Pragma_For_Entity): New routine. + (Has_Rep_Item): New routine. + (Has_Rep_Pragma_For_Entity): New routine. + (Present_In_Rep_Item): New routine. + * einfo.ads (Kill_Tag_Checks): Removed. + (Set_Kill_Tag_Checks): Removed. + (Get_First_Rep_Item): New routine. + (Get_Rep_Pragma_For_Entity): New routine. + (Has_Rep_Item): New routine. + (Has_Rep_Pragma_For_Entity): New routine. + (Present_In_Rep_Item): New routine. + * exp_attr.adb, sem_attr.adb: Attribute_CPU, + Attribute_Dispatching_Domain and Attribute_Interrupt_Priority + case added. + * exp_ch13.adb (Expand_N_Attribute_Definition_Clause): For + attribute Storage_Size, insert the new assignement statement + after the Size variable declaration. + * exp_ch3.adb (Build_Init_Statements): Fill the CPU, + Dispatching_Domain, Priority and Size components with the Rep + Item expression (if any). + * exp_ch9.adb (Expand_N_Task_Type_Declaration): _CPU, + _Priority, _Domain fields are always present in the + corresponding record type. + (Find_Task_Or_Protected_Pragma): Removed. + (Get_Relative_Deadline_Pragma): New routine. + (Make_Initialize_Protection): Find_Task_Or_Protected_Pragma removed. + (Make_Task_Create_Call): Check CPU, Size or + Dispatching_Domain Rep Item is present using new routine Has_Rep_Item. + * freeze.adb (Freeze_All): Push_Scope_And_Install_Discriminants + and Uninstall_Discriminants_And_Pop_Scope calls added. + (Freeze_Entity): Evaluate_Aspects_At_Freeze_Point call added. + * sem_aux.adb (Nearest_Ancestor): Retrieve the nearest ancestor + for private derived types. + * sem_ch13.adb (Analyze_Aspect_Specifications): Clean-up + and reordering. Delay analysis for all aspects (except some + peculiar cases). + (Analyze_Attribute_Definition_Clause): + Attribute_CPU, Attribute_Dispatching_Domain, + Interrupt_Priority and Attribute_Priority cases added. + (Analyze_Freeze_Entity): Push_Scope_And_Install_Discriminants + and Uninstall_Discriminants_And_Pop_Scope calls added. + (Check_Aspect_At_Freeze_Point): Reordering and clean-up. + (Duplicate_Clause): Issue an explicit error msg when the current + clause duplicates an aspect specification, an attribute definition + clause or a pragma. + (Evaluate_Aspects_At_Freeze_Point): New routine. + * sem_ch13.ads (Evaluate_Aspects_At_Freeze_Point): New routine. + * sem_ch9.adb, sem_ch9.ads (Install_Discriminants): New routine. + (Push_Scope_And_Install_Discriminants): New routine. + (Uninstall_Discriminants): New routine. + (Uninstall_Discriminants_And_Pop_Scope): New routine. + * sem_prag.adb (Check_Duplicate_Pragma): Issue an explicit error + msg when the current pragma duplicates an aspect specification, + an attribute definition clause or a pragma. + (Analyze_Pragma): Remove use of flags Has_Pragma_CPU, + Has_Pragma_Priority and Has_Pragma_Dispatching_Domain. + * sem_util.adb (Compile_Time_Constraint_Error): Don't complain + about the type if the corresponding concurrent type doesn't come + from source. + * sinfo.adb, sinfo.ads (Has_Pragma_CPU): Removed. + (Has_Pragma_Dispatching_Domain): Removed. + (Has_Pragma_Priority): Removed. + (Has_Task_Info_Pragma): Removed. + (Has_Task_Name_Pragma): Removed. + (Set_Has_Pragma_CPU): Removed. + (Set_Has_Pragma_Dispatching_Domain): Removed. + (Set_Has_Pragma_Priority): Removed. + (Set_Has_Task_Info_Pragma): Removed. + (Set_Has_Task_Name_Pragma): Removed. + * snames.adb-tmpl (Get_Pragma_Id): Pragma_CPU, + Pragma_Dispatching_Domain and Pragma_Interrupt_Priority added. + (Is_Pragma_Name): Name_CPU, Name_Dispatching_Domain and + Name_Interrupt_Priority added. + * snames.ads-tmpl: Name_Dispatching_Domain, Name_CPU + and Name_Interrupt_Priority moved to the list of + Attribute_Name. Attribute_CPU, Attribute_Dispatching_Domain and + Attribute_Interrupt_Priority added. Pragma_Dispatching_Domain, + Pragma_CPU and Pragma_Interrupt_Priority moved to the end of + the Pragma_Name list. + +2012-06-12 Arnaud Charlet + + * xref_lib.adb (Get_Full_Type): Add support for 'G'. + +2012-06-12 Tristan Gingold + + * a-exexpr-gcc.adb (Unwind_Exception): Add 4 more private fields. + +2012-06-12 Fedor Rybin + + * gnat_ugn.texi: Update doc on gnattest. + +2012-06-12 Robert Dewar + + * sem_ch12.adb: Add comments. + +2012-06-12 Robert Dewar + + * switch-c.adb, inline.adb, usage.adb, opt.ads: Minor reformatting. + +2012-06-12 Robert Dewar + + * sem_ch12.adb: Minor reformatting. + +2012-06-12 Eric Botcazou + + * opt.ads (Inline_Level): New variable. + * gnat1drv.adb (Adjust_Global_Switches): Set it based on optimization + level if it has not been set by the user. + * switch-c.adb (Scan_Front_End_Switches): Accept -gnatn1 and -gnatn2 + and set Inline_Level accordingly. + * inline.adb (Add_Inlined_Body): Declate new Inline_Level_Type type. + (Must_Inline): Return Inline_Level_T instead of Boolean to indicate + whether the package of the inlined subprogram must be compiled. + If Inline_Level is set to 1, only compile packages of subprograms + directly called from the main unit. + * usage.adb (Usage): Adjust line for -gnatn switch. + * gnat_ugn.texi (Switches for gcc): Document -gnatn1 and -gnatn2. + +2012-06-12 Ed Schonberg + + * sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply + AI05-296 if the actual is overloaded. In this case The rule must + be applied after resolution, in Analyze_Subprogram_Renaming. + +2012-06-12 Robert Dewar + + * stringt.adb: Minor reformatting. + +2012-06-12 Robert Dewar + + * ali-util.adb, stringt.ads: Minor reformatting. + +2012-06-12 Hristian Kirtchev + + * exp_ch7.adb (Process_Declarations): Handle the case where + the original context has been wrapped in a block to avoid + interference between exception handlers and At_End handlers. + (Wrap_HSS_In_Block): Mark the block which contains the original + statements of the context as being a finalization wrapper. + * sinfo.adb (Is_Finalization_Wrapper): New routine. + (Set_Is_Finalization_Wrapper): New routine. + + * sinfo.ads: Add new attribute Is_Finalization_Wrapper applicable + to block statemnts. + (Is_Finalization_Wrapper): New routine with corresponding pragma Inline. + (Set_Is_Finalization_Wrapper): New routine with corresponding pragma + Inline. + +2012-06-12 Steve Baird + + * gnat1drv.adb (Adjust_Global_Switches): No longer need to set + Exception_Extra_Info in CodePeer_Mode. + +2012-06-12 Robert Dewar + + * sem_dist.adb, exp_ch7.adb, sem_type.adb, exp_attr.adb, + sinfo.ads, sem_ch7.adb, exp_alfa.adb, sem_scil.adb, sem_ch12.adb, + sem_util.adb, sem_res.adb, sem_attr.adb, sem_elab.adb, exp_ch6.adb, + sem_ch4.adb, sem_warn.adb, scil_ll.adb, exp_cg.adb: Minor code + reorganization. + +2012-06-12 Eric Botcazou + + * s-tasini.ads: Minor fix in comment. + +2012-06-12 Thomas Quinot + + * freeze.adb (Freeze_Record_Type): Warn on record with + Scalar_Storage_Order if there is no placed component. + +2012-06-12 Thomas Quinot + + * sem_ch3.adb: Minor comment fix. + +2012-06-12 Vincent Celier + + * ali-util.adb (Time_Stamp_Mismatch): In minimal recompilation + mode, use Stringt Mark and Release to avoid growing the Stringt + internal tables uselessly. + * stringt.adb (Strings_Last): New global variable + (String_Chars_Last): New global variable. + (Mark, Release): New procedures. + * stringt.ads (Mark, Release) New procedures. + +2012-06-12 Hristian Kirtchev + + * exp_ch7.adb (Process_Transient_Objects): Renamed constant + Requires_Hooking to Must_Hook and replace all occurrences of the name. + (Requires_Hooking): New routine. Detect all contexts that require + transient variable export to the outer finalizer due to a potential + exception. + +2012-06-12 Ed Schonberg + + * sem_ch12.adb: Small adjustment. + +2012-06-12 Vincent Celier + + * vms_cmds.ads (Command_Type): New enumeration value Test + * vms_conv.adb (Initialize): Add component at index Test in + Command_List + * vms_data.ads (Test_Switches): New global variable for the + switches of gnattest, currently empty. + +2012-06-12 Ed Schonberg + + * sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete + type is tagged, so is a subtype of it. + * sem_ch12.adb (Validate_Actual_Subprogram): implement AI05-0296, + concerning freeze rules in the presence of formal incomplete + types: a formal abstract subprogram cannot have an incomplete + controlling type, and the profile of the actual subprogram does + not freeze if it includes an incomplete untagged type. + +2012-06-12 Robert Dewar + + * a-direct.adb: Minor reformatting. + +2012-06-12 Robert Dewar + + * gnat_ugn.texi: Add missing documentation for -gnatw.v and + -gnatw.V. + +2012-06-12 Thomas Quinot + + * sem_ch7.adb, sem_prag.adb, sem_ch12.adb, sem_ch4.adb, + sem_ch13.adb: Minor rewording of error messages for unchecked unions. + +2012-06-12 Robert Dewar + + * lib-xref.ads: Minor reformatting. + +2012-06-12 Pascal Obry + + * a-direct.adb (Delete_File): Delete symbolic links silently + instead of raising the Name_Error exception when the symbolic + link is pointing to a non existent file. + +2012-06-12 Robert Dewar + + * xref_lib.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting. + +2012-06-12 Javier Miranda + + * lib-xref.ads Adding missing documentation. + +2012-06-12 Hristian Kirtchev + + * exp_ch7.adb (Create_Finalizer): Add the + exception reraise mechanism at the very end of the finalizer + statements. This placement ensures that all objects are finalized, + the secondary stack mark released and aborts undeferred before + propagating an exception. + +2012-06-12 Ed Schonberg + + * sem_ch10.adb (Remove_Unit_From_Visibility): if the unit is a + wrapper package. remove from visibility the original subprogram + instance. + +2012-06-12 Javier Miranda + + * sem_prag.adb (Process_Convention): Generate reference to entity + exported to foreign language. Needed for GPS navigation. + * xref_lib.adb (Parse_Identifier_Info): Parse exported entities. + * lib-xref (Output_References): Output exported entities. + +2012-06-12 Pascal Obry + + * prj-attr.adb: Add install package and corresponding attributes. + * snames.ads-tmpl (Name_Active): New constant. + (Name_Exec_Subdir): Likewise. + (Name_Install): Likewise. + (Name_Lib_Subdir): Likewise. + (Name_Project_Subdir): Likewise. + (Name_Sources_Subdir): Likewise. + +2012-06-12 Bob Duff + + * sem_res.adb (Check_Infinite_Recursion): + Suppress spurious warning on recursion after "raise with ...". + +2012-06-12 Thomas Quinot + + * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Do + not crash on illegal unchecked union that is a null record. + +2012-06-12 Thomas Quinot + + * exp_ch4.adb (Has_Inferable_Discriminants): Reorganize code to + treat implicit dereferences with a constrained unchecked union + nominal subtype as having inferable discriminants. + +2012-06-12 Robert Dewar + + * sem_ch6.adb: Minor reformatting. + +2012-06-12 Eric Botcazou + + * gnat_ugn.texi: Couple of minor corrections. + +2012-06-12 Thomas Quinot + + * sem_prag.adb (Check_Variant): An empty component list is not + illegal in an unchecked union variant. + +2012-06-12 Gary Dismukes + + * projects.texi: Remove comments. + +2012-06-12 Thomas Quinot + + * back_end.adb (Scan_Back_End_Switches): Treat -fdump-scos as + synonym of -gnateS. + (gnat_post_options): Disable gimple-based SCO generator. + * gnat_ugn.texi: Document that -gnateS is an obsolete synonym + of -fdump-scos. + +2012-06-12 Ed Schonberg + + * sem_ch6.adb (Different_Generic_Profile): new predicate for + Find_Corresponding_Spec, to handle a rare case of accidental + overloading in an instance, when the profile of a subprogram body + that depends on a formal type becomes compatible with that of + a homonym whose profile in the generic mentions the actual type. + +2012-06-12 Thomas Quinot + + * gnat1drv.adb: Minor reformatting. + +2012-06-12 Ed Schonberg + + * sem_util.adb (Build_Explicit_Dereference): If the expression + is an entity, ensure that the type of the expression is the same + as that of the entity. + +2012-06-12 Pat Rogers + + * projects.texi: Corrected instances of the word "build" that + should be "built" instead. Other similar changes and minor + punctuation changes. + +2012-06-12 Eric Botcazou + + * sem_util.adb (Is_Atomic_Object): Return true for an atomic + component as well as a prefix which is an atomic component. + +2012-06-12 Ed Schonberg + + * exp_prag.adb (Expand_Pragma_Import_Or_Interface): revert previous + patch. The processing of interfacing aspects now generates a + proper Ada 2005 pragma. + * sem_prag.adb (Analyze_Pragma, cases Pragma_Export and + Pragma_Import): revert previous patch. The processing of + interfacing aspects now generates a proper Ada 2005 pragma. + * sem_ch13.adb (Analyze_Aspect_Specifications): generate proper + pragam for aspects Convention, Import and Export. Scan list + of aspects to collect link name and external name if present, + and verify that a complete pragma can be generated. + +2012-06-11 Olivier Hainque + + * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Remove + $(PIC_FLAG_FOR_TARGET). + (gnatlib-shared-default): Add $(PIC_FLAG_FOR_TARGET) to + GNATLIBCFLAGS_FOR_C passed to gnatlib. + (gnatlib-shared-win32): Likewise. + (gnatlib-shared-darwin): Likewise. + (gnatlib-shared-dual-win32): Pass PIC_FLAG_FOR_TARGET to + gnatlib-shared-win32. + +2012-06-11 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Convert GNU_SIZE + to units before invoking allocatable_size_p on it. + Remove orphaned comment. Do not use ssize_int. + : Traverse list in original order. Minor tweak. + (allocatable_size_p): Adjust and simplify. + (build_subst_list): Use consistent terminology throughout. + (build_variant_list): Likewise. Traverse list in original order. + (create_field_decl_from): Likewise. + (copy_and_substitute_in_size): Likewise. + (create_variant_part_from): Add comment about field list order. + * gcc-interface/utils.c (build_vms_descriptor): Do not use ssize_int. + * gcc-interface/utils2.c (build_allocator): Likewise. + +2012-06-11 Eric Botcazou + + * gcc-interface/trans.c (Identifier_to_gnu): Test Is_Elementary_Type + instead of Is_Scalar_Type for a constant with an address clause. + Do not return the underlying constant for a constant used by reference + if it holds the address of a constant and an lvalue is required. + +2012-06-11 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): Do not specifically deal + with external constants wrt force_global here... + : ...but here instead. + * gcc-interface/utils.c (gnat_pushdecl): Do not put external DECLs onto + the list of global DECLs. + +2012-06-11 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): Translate the Esize on + entry only for elementary types and abort if it is too large. + : Make sure the Esize is known before using it. + +2012-06-04 Steven Bosscher + + * gcc-interface/utils2.c: Do not include output.h. + * gcc-interface/Make-lang.in: Fix dependencies. + +2012-05-29 Michael Matz + + * gcc-interface/utils.c (create_var_decl_1): Don't call expand_decl. + +2012-05-26 Eric Botcazou + + * gcc-interface/decl.c (variant_desc): Rename 'record' to 'new_type'. + (build_variant_list): Adjust to above renaming. + (gnat_to_gnu_entity) : Likewise. Give a unique name + to the type of the variant containers. + (create_variant_part_from): Likewise. Give a unique name to the type + of the variant part. + +2012-05-25 Eric Botcazou + + PR ada/52362 + * link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker. + (__gnat_using_gnu_linker): Delete. + * gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here... + Declare Object_File_Option string constant and Using_GNU_response_file + boolean constant. + (Process_Binder_File): ...instead of here. Delete Using_GNU_Linker, + Opening and Closing local variables. Do not handle the GNU linker + specially. + (Write_RF): New procedure to write into the response file. Escape some + characters if a GNU response file is used. Keep track of error status. + Invoke Write_RF to write into the response file. Delete the file only + if the link was successful. + * mlib-utl.adb: Do not `with' package System. + (Gcc): Likewise. Declare Object_File_Option string constant and + Using_GNU_response_file boolean constant. + (Write_RF): Take a string instead of address and length. Escape some + characters if a GNU response file is used. + Invoke Write_RF to write into the response file. Delete the file only + if the link was successful. Do not warn if it cannot be deleted. + +2012-05-20 Eric Botcazou + + * gcc-interface/utils.c (gnat_write_global_declarations): Put a name + on the dummy global variable. + +2012-05-19 Eric Botcazou + + * gcc-interface/decl.c (Has_Thiscall_Convention): New macro. + (gnat_to_gnu_entity) : Test it to set the thiscall + calling convention + (get_minimal_subprog_decl): Likewise. + (gnat_first_param_is_class): New predicate. + + * gcc-interface/misc.c (gnat_handle_option): Fix formatting. + * gcc-interface/Makefile.in: Likewise. + +2012-05-18 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : For an object at + global level with unconstrained nominal subtype and a non-fixed size, + make a variable for the size. + +2012-05-15 Andris Pavenis + + PR ada/52494 + * s-taprop-dummy.adb (Specific): New package. + +2012-05-15 Olivier Hainque + + * gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS + instead of trying to mimic it. + +2012-05-15 Robert Dewar + + * sem_ch5.adb, sem_util.adb, s-stposu.adb, exp_ch4.adb: Minor + reformatting. + +2012-05-15 Geert Bosch + + * uintp.adb (UI_Rem): Remove optimizations, as they are complex and are + not needed. + (Sum_Digits): Remove, no longer used. + (Sum_Double_Digits): Likewise. + +2012-05-15 Yannick Moy + + * aspects.ads: Minor typo. + +2012-05-15 Thomas Quinot + + * gnat_rm.texi (Scalar_Storage_Order): Fix RM reference. + * sem_ch13.adb: Minor comment fix: incorrect RM reference. + +2012-05-15 Eric Botcazou + + * sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate + atomicity from an object to its underlying type only if it + is composite. + +2012-05-15 Ed Schonberg + + * sem_ch5.adb (Analyze_Iterator_Specification): Set kind of + loop variable after pre-analysis of iterator name, to prevent + premature usage of loop variable. + +2012-05-15 Ed Schonberg + + * sem_util.adb (Is_Variable): In Ada 2012, an explicit + dereference that is a rewriting of an expression whose type has + a declared Implicit_Derenference aspect is a variable. + +2012-05-15 Hristian Kirtchev + + * exp_ch4.adb (Insert_Dereference_Action): Reimplemented. The + routine performs address and size adjustments for dereferences + of heap-allocated controlled objects. This manipulation is needed + in order to restore the original state of the memory at the time + it was allocated by the finalization machinery. + * rtsfind.ads: Add RE_Adjust_Controlled_Dereference to tables + RE_Id and RE_Unit_Table. + * sinfo.adb (Has_Dereference_Action): New routine. + (Set_Has_Dereference_Action): New routine. + * sinfo.ads: Add new semantic flag Has_Dereference_Action along + its association in nodes. + (Has_Dereference_Action): New routine and pragma Inline. + (Set_Has_Dereference_Action): New routine and pragma Inline. + * s-stposu.ads, s-stposu.adb (Adjust_Controlled_Dereference): New + routine. + +2012-05-15 Thomas Quinot + + * uintp.adb (Image_Uint): Use UI_Div_Rem to get quotient and + remainder of U / Base in a single operation. + +2012-05-15 Robert Dewar + + * exp_ch5.adb, inline.adb, sem_ch10.adb, prj.ads, sem_util.adb, + a-ngelfu.ads, exp_ch4.adb, exp_ch6.adb, aspects.ads, sem_ch6.adb, + vms_data.ads, exp_ch3.adb, prj-env.adb: Minor reformatting. + +2012-05-15 Thomas Quinot + + * exp_ch4.adb (Has_Inferable_Discriminants): For a qualified + expression, use correct node for test on the subtype denoted by + the subtype mark. + +2012-05-15 Eric Botcazou + + * inline.adb (Scope_In_Main_Unit): Rename into... + (In_Main_Unit_Or_Subunit): ...this. Also return + true if the subprogram is within a subunit of the + main unit. + (Add_Inlined_Body): Adjust for above renaming. + (Add_Inlined_Subprogram): Likewise. Pass the subprogram directly. + (Analyze_Inlined_Bodies): Really set aside inlined subprograms + not handled by Add_Inlined_Body. + +2012-05-15 Ed Schonberg + + * sem_ch10.adb (Expand_With_Clause): In the context of a generic + package declaration, a private with-clause on a child unit implies + that the implicit with clauses on its parents are private as well. + +2012-05-15 Javier Miranda + + * sem_ch6.adb (Is_Interface_Conformant): Add missing call to + Base_Type to handle subtypes. + * exp_ch6.adb (Expand_Call): For calls located in thunks handle + unchecked conversions of access types found in actuals. + * exp_disp.adb (Expand_Interface_Thunk): Add missing unchecked + conversion to actuals whose type is an access type. Done to + avoid reporting spurious errors. + +2012-05-15 Vincent Celier + + * prj-env.adb (Create_Mapping): Ignore sources that are + suppressed (Create_Mapping_File.Process): Ditto + * prj-nmsc.adb (Add_Source): Update to take into + account suppressed files that may hide inherited sources. + (Mark_Excluded_Sources): Mark excluded sources of the current + project as suppressed. + * prj.ads (Source_Data): New Boolean component Suppressed, + defaulted to False + +2012-05-15 Thomas Quinot + + * exp_intr.adb: Minor reformatting. + +2012-05-15 Thomas Quinot + + * gnat_rm.texi: Document attribute Scalar_Storage_Order. + +2012-05-15 Javier Miranda + + * exp_ch3.adb (Build_Offset_To_Top): Modify the + expansion of the offset_to_top functions to ensure that their + profile is conformant with the profile specified in Ada.Tags. No + change in functionality. + +2012-05-15 Eric Botcazou + + * inline.adb (Subp_Info): Remove Count and Next_Nopred + components, add Processed component and move around Next component. + (Add_Call): Reverse meaning of Successors table to the natural one. + (Add_Inlined_Body): Do not inline a package if it is in the main unit. + (Add_Inlined_Subprogram): Do not add the subprogram to the list if the + package is in the main unit. Do not recurse on the successors. + (Add_Subp): Adjust to new contents of Subp_Info. + (Analyze_Inlined_Bodies): Do not attempt + to compute a topological order on the list of inlined subprograms, + but compute the transitive closure from the main unit instead. + (Get_Code_Unit_Entity): Always return the spec for a package. + +2012-05-15 Yannick Moy + + * aspects.ads: Minor addition of comments to provide info on + how to add new aspects. + +2012-05-15 Thomas Quinot + + * osint.ads: Minor reformatting. + +2012-05-15 Thomas Quinot + + * exp_ch5.adb, exp_pakd.adb, sem_util.adb, sem_util.ads + (Expand_Assign_Array): Handle the case of a packed bit array within a + record with reverse storage order (assign element by element in that + case). + (In_Reverse_Storage_Order_Record): New subprogram, + code extracted from Exp_Pakd. + +2012-05-15 Yannick Moy + + * a-ngelfu.ads: Add postconditions using Ada 2012 + aspect syntax, reflecting some of the RM requirements for these + functions, from Annex A.5.1 or G.2.4. + +2012-05-15 Thomas Quinot + + * adaint.c: Minor fix: move misplaced comment. + +2012-05-15 Doug Rupp + + * vms_data.ads: Enhance help for /IMMEDIATE_ERRORS to discourage + use by customers. + +2012-05-15 Tristan Gingold + + * a-exextr.adb: Add comment. + +2012-05-15 Ed Schonberg + + * sem_ch3.adb: Minor reformatting (remove long dead code). + +2012-05-15 Ed Schonberg + + * aspects.adb, aspects.ads: Add aspects for Convention, Export, + External_Name, Import, and Link_Name. + * exp_prag.adb (Expand_Pragma_Import_Or_Interface): if the + pragma comes from an aspect specification, the entity is the + first argument. + * sem_prag.adb (Analyze_Pragma, cases Pragma_Export and + Pragma_Import): if the pragma comes from an aspect specification, + the entity is the first argument, and the second has the value + True by default. + * sem_ch13.adb (Analyze_Aspect_Specifications): generate pragam + for aspect Convention. Add placeholders for Link_Name and + External_Name. + +2012-05-15 Hristian Kirtchev + + * exp_ch9.adb (Expand_N_Asynchronous_Select): Extract the statements + of the abortable part and triggering alternative after being processed + for controlled objects. + (Expand_N_Timed_Entry_Call): Code and comment reformatting. + +2012-05-15 Robert Dewar + + * sem_util.adb: Minor code reorganization. + +2012-05-15 Robert Dewar + + * exp_ch7.adb, exp_ch11.adb, exp_ch11.ads: Minor reformatting. + +2012-05-15 Thomas Quinot + + * sem_res.adb (Resolve): Enforce E.2.2(11/2) and E.2.2(12) for + 'Unrestricted_Access and 'Unchecked_Access (not just 'Access): + even in those cases, a remote access type may only designate a + remote subprogram. + +2012-05-15 Thomas Quinot + + * sem_util.adb, sem_util.ads, sem_cat.adb: Minor refactoring. + (Enclosing_Lib_Unit_Node): Rename to Enclosing_Comp_Unit_Node. + +2012-05-15 Ed Schonberg + + * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove obsolete + checks on nested inlined subprograms. + +2012-05-15 Tristan Gingold + + * fe.h (Get_RT_Exception_Name): Declare. + +2012-05-15 Tristan Gingold + + * raise-gcc.c (db_region_for): Use %p + cast to avoid warnings. + (get_region_description_for): Likewise. + (db_action_for): Likewise. + (get_call_site_action_for): Likewise. + (get_ttype_entry_for): Remove useless 'const'. + (PERSONALITY_FUNCTION): Add ATTRIBUTE_UNUSED on uw_exception_class. + +2012-05-15 Tristan Gingold + + * a-exextr.adb (Unhandled_Exception_Terminate): Save occurrence + on the stack to avoid a dynamic memory allocation. + +2012-05-15 Bob Duff + + * exp_ch9.adb (Expand_N_Timed_Entry_Call): Move initialization of + E_Stats and D_Stats after Process_Statements_For_Controlled_Objects, + because those calls can destroy the Statements list. + +2012-05-15 Tristan Gingold + + * fe.h (Get_RT_Exception_Name): Define. + * types.ads (RT_Exception_Code): Update comment. + * exp_ch11.adb, exp_ch11.ads (Get_RT_Exception_Name): New + procedure to get the name of the rcheck subprograms. + * a-except-2005.adb (Rcheck_xx): Rename. + * a-except.adb Likewise, but also keep the old Rcheck_nn routines + for bootstrap. + * arith64.c (__gnat_mulv64): Use __gnat_rcheck_CE_Overflow_Check + instead of __gnat_rcheck_10. + * gcc-interface/trans.c (build_raise_check): Use Get_RT_Exception_Name + to create the __gnat_rcheck routines name. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-05-15 Tristan Gingold + + * exp_ch7.adb (Build_Exception_Handler): Save current + occurrence only if -gnateE. + (Build_Object_Declaration): Declare E_Id only if -gnateE. + (Build_Raise_Statement): Call Raise_From_Controlled_Operation only if + -gnateE (else raise PE). + * s-soflin.adb (Save_Library_Occurrence): Handle null occurrence + access. + * a-except-2005.adb (Reraise_Library_Exception_If_Any): Call + Raise_From_Controlled_Operation only if the saved occurrence is + not null, otherwise raise PE. + +2012-05-15 Yannick Moy + + * exp_alfa.ads: Add comments describing the Alfa mode. + +2012-05-15 Tristan Gingold + + * s-soflin.ads, s-soflin.adb (Save_Library_Occurrence): Parameter + E is now of type Exception_Occurrence_Access. + * exp_ch7.ads, exp_ch7.adb (Build_Exception_Handler): Adjust generated + call to Save_Library_Occurrence. + +2012-05-15 Thomas Quinot + + * exp_ch4.adb (Rewrite_Coextension): Use Insert_Action to + insert temporary variable decl at the proper place in the tree. + +2012-05-15 Hristian Kirtchev + + * g-calend.adb (Split_At_Locale): New routine. + (Time_Of_At_Locale): New routine. + * g-calend.ads (Split_At_Locale): New routine. + (Time_Of_At_Locale): New routine. + +2012-05-15 Gary Dismukes + + * a-except.ads: Minor reformatting. + +2012-05-15 Ed Schonberg + + * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the loop + parameter specification is part of a quantified expression, and it + already carries a type, do not repeat the analysis to preserve + type information: a range attribute reference may have been + rewritten as a range with static bounds, and its re-analysis may + type it as Integer by default, instead of the original index type. + +2012-05-15 Robert Dewar + + * s-osprim-mingw.adb: Minor reformatting. + +2012-05-15 Arnaud Charlet + + * a-except.adb, a-except.ads (Reraise_Library_Exception_If_Any): New. + Mark this unit preelaborate. + * s-soflin.ads: Make package Preelaborate. + +2012-05-15 Robert Dewar + + * s-osprim-mingw.adb, sem_eval.adb, a-calend-vms.ads: Minor reformatting + +2012-05-15 Ed Schonberg + + * sem_eval.adb (Subtypes_Statically_Match): In Ada 2012, static + matching requires matching of static subtype predicates as well. + +2012-05-15 Ed Schonberg + + * sem_case.adb (Analyze_Choices): If the subtype of the + expression has a non-static predicate, the case alternatives + must cover the base type. + +2012-05-15 Tristan Gingold + + * a-calend-vms.ads: Add pragma export to Split and Time_Of. + Merge comments from a-calend.ads to minimize differences. + +2012-05-15 Sergey Rybin + + * gnat_ugn.texi: gnatmetric: add a small example that demonstrates + the difference between control coupling and unit coupling. + +2012-05-15 Tristan Gingold + + * bindgen.adb (Gen_Header): Remove code to emit LE_Set. + (Gen_Finalize_Library): Replace test with + a call to __gnat_reraise_library_exception_if_any. + * s-soflin.ads (Library_Exception): Do not export. + (Library_Exception_Set): Likewise. + * a-except-2005.ads, a-except-2005.adb + (Reraise_Library_Exception_If_Any): New procedure. + +2012-05-15 Geert Bosch + + * sem_ch9.adb (Allows_Lock_Free_Implementation): out or in out + parameters can be access types as well, not just scalar types, + so relax the test to Is_Elementary_Type. + +2012-05-15 Bob Duff + + * s-atacco.ads s-atacco.adb: Replace pragma Elaborate_Body + with pragma No_Body. + (Xyz): Remove Xyz, which is apparently unnecessary. + +2012-05-15 Tristan Gingold + + * a-calend-vms.adb: Complete previous change. + +2012-05-15 Bob Duff + + * s-win32.ads: Minor comment fix. + * s-osprim-mingw.adb: Minor editing. + +2012-05-15 Robert Dewar + + * exp_ch9.adb, sem_ch9.adb, sem_ch13.adb: Minor reformatting. + +2012-05-15 Robert Dewar + + * g-comlin.adb, g-comlin.ads: Minor reformatting. + +2012-05-15 Vincent Pucci + + * aspects.adb, aspects.adb: Reordering of the Aspect_Idi list. New + aspect Aspect_Lock_Free. + * einfo.adb, einfo.ads: New flag Uses_Lock_Free (flag 188). + (Set_Uses_Lock_Free): New routine. + (Uses_Lock_Free): New routine. + * exp_ch7.adb (Is_Simple_Protected_Type): Return False for + lock-free implementation. + * exp_ch9.adb (Allows_Lock_Free_Implementation): Moved to Sem_Ch9. + (Build_Lock_Free_Unprotected_Subprogram_Body): Protected + procedure uses __sync_synchronise. Check both Object_Size + and Value_Size. + (Expand_N_Protected_Body): Lock_Free_Active + renames Lock_Free_On. + (Expand_N_Protected_Type_Declaration): + _Object field removed for lock-free implementation. + (Install_Private_Data_Declarations): Protection object removed + for lock-free implementation. + (Make_Initialize_Protection): + Protection object initialization removed for lock-free implementation. + * rtsfind.ads: RE_Atomic_Synchronize and RE_Relaxed added. + * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect_Lock_Free + analysis added. + * sem_ch9.adb (Allows_Lock_Free_Implementation): New routine. + (Analyze_Protected_Body): Allows_Lock_Free_Implementation call added. + (Analyze_Protected_Type_Declaration): + Allows_Lock_Free_Implementation call added. + (Analyze_Single_Protected_Declaration): Second analysis of + aspects removed. + * s-atopri.ads: Header added. + (Atomic_Synchronize): New routine. + +2012-05-15 Robert Dewar + + * exp_ch7.ads: Add comment. + +2012-05-15 Hristian Kirtchev + + * a-calend.adb (Day_Of_Week): The routine once again treats + all dates as historic. (Formatting_Operations.Split): All + calls to UTC_Time_Offset are now controlled through formal + parameter Is_Historic. (Formatting_Operations.Time_Of): + All calls to UTC_Time_Offset are now handled through + formal parameter Is_Historic. + (Split): Update the call to Formatting_Operations.Split. + (Time_Of): Update the call to Formatting_Operations.Time_Of. + (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. + (To_Strict_Tm): Update the call to Formatting_Operations.Split. + * a-calend.ads (Split): Add new formal Is_Historic along with + comment on usage. This routine is now exported for the purposes + of GNAT.Calendar.Locale. + (Time_Of): Remove defaults. Add new + formal Is_Historic along with comment on usage. This routine is + now exported for the purposes of GNAT.Calendar.Locale. + * a-calend-vms.adb (Split): Update the call to + Formatting_Operations.Split. + (Time_Of): Update the call to Formatting_Operations.Time_Of. + * a-calend-vms.ads (Split): Add new formal Is_Historic along + with comment on usage. (Time_Of): Remove defaults. Add new + formal Is_Historic along with comment on usage. + * a-calfor.adb (Split): Update the call to + Formatting_Operations.Split. + (Time_Of): Update the call to Formatting_Operations.Time_Of. + +2012-05-15 Vincent Celier + + * prj-nmsc.adb (Add_Source): Always add the source if it is + excluded, to avoid incorrect duplicate checks. + +2012-05-15 Yannick Moy + + * sem_aux.ads: Correct typo. + * sem_eval.adb (Compile_Time_Known_Value): Return False in Alfa + mode for a deferred constant when outside of the scope of its + full view. + +2012-05-15 Emmanuel Briot + + * g-comlin.adb, g-comlin.ads (Define_Switch): Allow specifying the name + of the argument, for the automatic help message. + (Getopt): do not systematically initialize switches with string values + to the empty string, when the user has already specified a default. + +2012-05-14 Bernd Schmidt + + * gcc-interface/utils.c (DEF_ATTR_STRING): New. + +2012-05-14 Manuel López-Ibáñez + + PR 53063 + * gcc-interface/misc.c: Include opts.h and options.h before tm.h. + (gnat_handle_option): Call lang-specific generated function. + +2012-05-13 Manuel López-Ibáñez + + * gcc-interface/lang.opt (I): Comment out help text with no effect. + (nostdinc): Comment out help text with no effect. + +2012-05-12 Eric Botcazou + + * gcc-interface/Makefile.in (TOOLS_LIBS): Add ../../ggc-none.o. + +2012-05-11 Manuel López-Ibáñez + + PR 53063 + * gcc-interface/misc.c (gnat_parse_file): Move before ... + (gnat_handle_option): ... this. Use handle_generated_option. + +2012-05-10 Richard Guenther + + * gcc-interface/cuintp.c (UI_From_gnu): Remove TYPE_IS_SIZETYPE use. + +2012-05-06 Tristan Gingold + + * gcc-interface/trans.c (gigi): Decorate reraise_zcx_decl. + +2012-05-06 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : In the renaming + case, use the padded type if the renamed object has an unconstrained + type with default discriminant. + +2012-05-06 Eric Botcazou + + * gcc-interface/trans.c (Loop_Statement_to_gnu): Also handle invariant + conditions with only one bound. + (Raise_Error_to_gnu): Likewise. New function extracted from... + (gnat_to_gnu) : ...here. Call above function + in regular mode only. + +2012-05-06 Eric Botcazou + + * gcc-interface/misc.c (gnat_post_options): Disable caret by default. + +2012-05-06 Eric Botcazou + + * gcc-interface/gigi.h (make_packable_type): Declare. + (make_type_from_size): Likewise. + (relate_alias_sets): Likewise. + (maybe_pad_type): Adjust. + (init_gnat_to_gnu): Delete. + (destroy_gnat_to_gnu): Likewise. + (init_dummy_type): Likewise. + (destroy_dummy_type): Likewise. + (init_gnat_utils): Declare. + (destroy_gnat_utils): Likewise. + (ceil_pow2): New inline function. + * gcc-interface/decl.c (gnat_to_gnu_entity): Use ceil_pow2. + : Pass True for the final processing of alignment and size. + : Only create the TYPE_DECL for a padded return + type if necessary. + (round_up_to_align): Delete. + (ceil_alignment): Likewise. + (relate_alias_sets): Move to... + (make_aligning_type): Likewise. + (make_packable_type): Likewise. + (maybe_pad_type): Likewise. + (make_type_from_size): Likewise. + * gcc-interface/utils.c (MAX_BITS_PER_WORD): Delete. + (struct pad_type_hash): New type. + (pad_type_hash_table): New static variable. + (init_gnat_to_gnu): Merge into... + (init_dummy_type): Likewise. + (init_gnat_utils): ...this. New function. + (destroy_gnat_to_gnu): Merge into... + (destroy_dummy_type): Likewise. + (destroy_gnat_utils): ...this. New function. + (pad_type_hash_marked_p): New function. + (pad_type_hash_hash): Likewise. + (pad_type_hash_eq): Likewise. + (relate_alias_sets): ...here. + (make_aligning_type): Likewise. + (make_packable_type): Likewise. + (maybe_pad_type): Likewise. Change same_rm_size parameter into + set_rm_size; do not set TYPE_ADA_SIZE if it is false. Do not set + null as Ada size. Do not set TYPE_VOLATILE on the padded type. If it + is complete and has constant size, canonicalize it. Bail out earlier + if a warning need not be issued. + (make_type_from_size): Likewise. + : Bail out if size is too large + (gnat_types_compatible_p): Do not deal with padded types. + (convert): Compare main variants for padded types. + * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_utils. + (gnat_to_gnu): Do not convert at the end for a call to a function that + returns an unconstrained type with default discriminant. + (Attribute_to_gnu) : Simplify handling of padded objects. + * gcc-interface/utils2.c (build_binary_op) : Likewise. + Do not use the padded type if it is BLKmode and the inner type is + non-BLKmode. + +2012-05-02 Pascal Obry + + Revert + 2012-02-24 Dave Korn + + * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New + Windows-specific make variable. + (WIN_SO_INSTALL_DIR [windows targets]): Likewise. + (install-gnatlib): Respect the above during installation when set, + and also install any windows import library that has been built. + (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also + build a corresponding import library. + +2012-04-30 Jan Hubicka + + * gcc-interface/utils.c (rest_of_subprog_body_compilation): Update + comment. + (gnat_write_global_declarations): Use finalize_compilation_unit. + +2012-04-30 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): In type annotation mode, + do not adjust the size of a tagged type if there is a representation + clause on it. Otherwise, round the adjustment up to the alignment + of the first field and use the appropriate helper routine. + (maybe_pad_type): Do not warn in type annotation mode on a tagged type. + (gnat_to_gnu_field): Do not error out under the same circumstances. + (annotate_rep): In type annotation mode, do not adjust the offset of + components of a tagged type with representation clause. Otherwise, + round the adjustment up to the alignment of the first field. + +2012-04-30 Eric Botcazou + + * gcc-interface/utils.c (finish_record_type): Force the traditional GCC + layout for bitfields on the type if it is packed or has a representation + clause and an alternate layout is available. + +2012-04-30 Eric Botcazou + + * gcc-interface/gigi.h (mark_out_of_scope): Delete. + (destroy_gnat_to_gnu): Declare. + (destroy_dummy_type): Likewise. + * gcc-interface/decl.c (mark_out_of_scope): Delete. + * gcc-interface/utils.c (destroy_gnat_to_gnu): New function. + (destroy_dummy_type): Likewise. + * gcc-interface/trans.c (gnat_validate_uc_list): New variable. + (gigi): Call validate_unchecked_conversion on gnat_validate_uc_list + after the translation is completed. Call destroy_gnat_to_gnu and + destroy_dummy_type at the end. + (Subprogram_Body_to_gnu): Do not call mark_out_of_scope. + (gnat_to_gnu) : Likewise. + : Do not process the node, only push + it onto gnat_validate_uc_list. + (validate_unchecked_conversion): New function. + +2012-04-26 Tristan Gingold + + * gcc-interface/Make-lang.in: Update dependencies. + Remove s-traceb and tracebak objects from gnat1 and gnatbind (not used). + Remove s-tasdeb and s-vaflop rules (not used). + +2012-04-26 Olivier Hainque + + * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Default to + DOUBLE_TYPE_SIZE instead of LONG_DOUBLE_TYPE_SIZE. + +2012-04-26 Hristian Kirtchev + + * a-calend.adb (Day_Of_Week): Keep the internal + usage of UTC_Time_Offset consistent with Time_Of and Split. + +2012-04-26 Hristian Kirtchev + + * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Do not freeze + the loop variable while preanalyzing a quantified expression. + +2012-04-26 Hristian Kirtchev + + * a-calend.adb (Split, Time_Of): Rename parameter Is_Ada_05 + to Use_TZ to better illustrate its function. Update all + references to the parameter. + (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. + * a-calend.ads (Split, Time_Of): Rename parameter Is_Ada_05 + to Use_TZ to better illustrate its function. Update the related + comment on usage. + * a-calend-vms.adb (Split, Time_Of): Rename parameter + Is_Ada_05 to Use_TZ to better illustrate its function. Update + all references to the parameter. + (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. + * a-calend-vms.ads (Split, Time_Of): Rename parameter Is_Ada_05 + to Use_TZ to better illustrate its function. Update the related + comment on usage. + * a-calfor.adb (Split, Time_Of): Update the call to + Formatting_Operations.Time_Of. + * sysdep.c (__gnat_localtime_tzoff): Dereference pointer + "is_historic" and rewrite the check as a comparison. Add a + comment on flag values. + +2012-04-26 Robert Dewar + + * exp_ch2.adb, sem_ch8.adb: Minor reformatting. + +2012-04-26 Vasiliy Fofanov + + * a-stzunb-shared.adb, gnat_ugn.texi, a-strunb-shared.adb, + a-strunb-shared.ads, uintp.adb, a-stwiun-shared.adb, + a-stwiun-shared.ads, a-cbhama.ads, vms_data.ads, a-cobove.adb, + a-convec.adb, sem_ch13.adb, a-cbhase.ads: Fix common misuses of the + word "then" where "than" should be used in English. + +2012-04-26 Robert Dewar + + * sem_ch5.adb (Check_Unreachable_Code): Skip past pragmas. + +2012-04-26 Hristian Kirtchev + + * s-finroo.ads: Remove with clause for + Ada.Streams. Type Root_Controlled is now abstract tagged null + record. Remove internal package Stream_Attributes. Root_Controlled + doesn't need stream attribute redeclaration and avoids the + dependency on streams. + +2012-04-26 Tristan Gingold + + * adaint.c (to_host_path_spec): Removed (unused). + Minor reformatting. + +2012-04-26 Steve Baird + + * gnat_rm.texi Improve description of Valid_Scalars attribute. + +2012-04-26 Ed Schonberg + + * sem_ch6.adb (Can_Override_Operator): If the formal is a + generic type the operator cannot be overriding. + +2012-04-26 Ed Schonberg + + * sem_ch8.adb (Spec_Reloaded_For_Body): Check whether the type + is declared in a package specification, and current unit is the + corresponding package body. The use clauses themselves may be + within a nested package. + +2012-04-26 Bob Duff + + * exp_ch2.adb (Param_Entity): Take into account the case where + the type of the entry parameter has a representation clause. + +2012-04-26 Ed Schonberg + + * gnat_ugn.texi: Tweak dimensionality doc. + +2012-04-26 Robert Dewar + + * sem_eval.adb: Minor reformatting. + +2012-04-26 Robert Dewar + + * einfo.adb, einfo.ads, sem_res.adb, sem_ch4.adb, + sem_eval.adb: Minor reformatting. + +2012-04-26 Thomas Quinot + + * freeze.adb: Minor change in error wording. + +2012-04-26 Ed Schonberg + + * gnat_ugn.texi: Documentation on dimensional analysis. + +2012-04-26 Hristian Kirtchev + + * einfo.adb, einfo.ads: Remove synthesized attribute + Proper_First_Index along with its associations in various nodes. + (Proper_First_Index): Removed. + * sem_ch4.adb (Analyze_Slice): Alphabetize constants. Add new + local variable Index_Type. The index type of a string literal + subtype is that of the stored low bound. + * sem_eval (Get_Static_Length): Remove the use of Proper_First_Index. + * sem_res.adb (Resolve_Slice): Alphabetize constants. Add + new local variable Index_Type. The index type of a + string literal subtype is that of the stored low bound. + (Set_String_Literal_Subtype): Code reformatting. + +2012-04-26 Robert Dewar + + * exp_aggr.adb: Minor reformatting. + +2012-04-26 Hristian Kirtchev + + * exp_ch7.adb (Expand_Cleanup_Actions): Update the call to + Requires_Cleanup_Actions. + * exp_util.adb (Requires_Cleanup_Actions (List_Id; Boolean; + Boolean)): Rename formal parameter For_Package to Lib_Level to + better reflect its purpose. Update the related comment and all + occurrences of For_Package in the body. + (Requires_Cleanup_Actions + (Node_Id; Boolean)): Add new formal parameter Lib_Level. Add + local constant At_Lib_Level to keep monitor whether the path + taken from the top-most context to the current construct involves + package constructs. Update all calls to Requires_Cleanup_Actions. + * exp_util.ads (Requires_Cleanup_Actions): Add new formal + parameter Lib_Level and associated comment. + +2012-04-26 Ed Schonberg + + * sem_ch6.adb (Process_Formals): If the type of the formal is + a non null access type, mark the generated subtype as having a + delayed freeze only if the designated type is not frozen yet. + +2012-04-26 Vincent Celier + + * prj-attr.adb: New package Clean with attributes + Object_Artifact_Extensions and Source_Artifact_Extensions. + * prj-nmsc.adb (Process_Clean): Process new package Clean + * prj.ads (Language_Config): New components + Clean_Object_Artifacts and Clean_Source_Artifacts. + * snames.ads-tmpl: New standard names Clean, + Object_Artifact_Extensions and Source_Artifact_Extensions. + +2012-04-26 Hristian Kirtchev + + * einfo.adb (Proper_First_Index): Moved from Sem_Util. + * einfo.ads: Add new synthesized attribute Proper_First_Index + along with usage in nodes. + (Proper_First_Index): Moved from Sem_Util. + * sem_util.ads, sem_util.adb (Proper_First_Index): Moved to Einfo. + +2012-04-26 Gary Dismukes + + * layout.adb (Layout_Component_List): Test for the case of a + single variant and the size of its component list was computed + as an integer literal, and use that size (which is in bits) + as is rather than converting to storage units. + +2012-04-26 Robert Dewar + + * exp_aggr.adb: Minor reformatting. + +2012-04-26 Robert Dewar + + * sem_util.adb: Minor reformatting. + +2012-04-26 Thomas Quinot + + * exp_aggr.adb, exp_pakd.adb (Setup_Inline_Packed_Array_Reference, + Packed_Array_Aggregate_Handled.Get_Component_Val): + Reverse bit numbering within PAT when Reverse_Storage_Order + applies to the enclosing record. + +2012-04-26 Thomas Quinot + + * freeze.adb (Freeze_Record_Type): Improve error message for + Scalar_Storage_Order inconsistent with Bit_Order. + +2012-04-25 Gary Dismukes + + * exp_ch9.adb: Add comments on the usage of the + lock-free data structures. + +2012-04-25 Vincent Pucci + + * exp_intr.adb (Expand_Shift): Convert the left + operand and the operator when the type of the call differs from + the type of the operator. + +2012-04-25 Geert Bosch + + * stand.ads: Minor comment fix. + +2012-04-25 Hristian Kirtchev + + * sem_ch4.adb (Analyze_Slice): Handle the case where the prefix + is a string literal. Retrieve the first index from the base type + when slicing a string literal. + * sem_ch12.adb (Check_Private_View): Move the initialization + of the type inside the loop to reflect the changing index. + * sem_eval.adb (Eval_Relational_Op): Retrieve the first index + from the base type when dealing with a string literal. + * sem_res.adb (Resolve_Slice): Retrieve the first index from + the base type when slicing a string literal. + * sem_util.adb (Is_Internally_Generated_Renaming): New routine. + (Is_Object_Reference): String literals may act + as object references only when they are renamed internally. + (Proper_First_Index): New routine. + * sem_util.ads (Proper_First_Index): New routine. + +2012-04-25 Robert Dewar + + * sem_ch3.adb, csinfo.adb, lib-writ.adb, sem_ch12.adb, + lib-xref.adb: Minor reformatting. + +2012-04-25 Hristian Kirtchev + + * exp_ch9.adb: Rename Lock_Free_Sub_Type + to Lock_Free_Subprogram. Remove type Subprogram_Id. + Rename LF_Sub_Table to Lock_Free_Subprogram_Table. + (Allow_Lock_Free_Implementation): Renamed to + Allows_Lock_Free_Implementation. Update the comment on + lock-free restrictions. Code clean up and restructuring. + (Build_Lock_Free_Protected_Subprogram_Body): Update the + profile and related comments. Code clean up and restructuring. + (Build_Lock_Free_Unprotected_Subprogram_Body): Update the + profile and related comments. Code clean up and restructuring. + (Comp_Of): Removed. + +2012-04-25 Vincent Celier + + * sem_ch12.adb (Inherit_Context): Compare library units, not + names of units, when checking if a unit is already in the context. + +2012-04-25 Thomas Quinot + + * sem_ch3.adb: Reverse_Storage_Order must be propagated to + untagged derived record types. + +2012-04-25 Ed Schonberg + + * lib-xref.adb: Adjust position of end label. + +2012-04-22 Jan Hubicka + + * gcc-interface/utils.c (gnat_write_global_declarations): Do not mark + needed node. + +2012-04-20 Jan Hubicka + + * gcc-interface/utils.c (gnat_write_global_declarations): Update for new + force_output placement. + +2012-04-14 Jan Hubicka + + * gcc-interface/trans.c (finalize_nrv): Update field referenced for new + cgraph/varpool layout. + +2012-04-09 Mike Stump + + * a-assert.ads: Remove execute permission. + * a-chacon.ads: Likewise. + * a-coteio.ads: Likewise. + * a-envvar.ads: Likewise. + * a-exetim-mingw.ads: Likewise. + * a-fzteio.ads: Likewise. + * a-izteio.ads: Likewise. + * a-lcteio.ads: Likewise. + * a-llctio.ads: Likewise. + * a-scteio.ads: Likewise. + * a-suenco.ads: Likewise. + * a-suenst.ads: Likewise. + * a-suewst.ads: Likewise. + * a-suezst.ads: Likewise. + * a-tirsfi.ads: Likewise. + * a-wichha.ads: Likewise. + * a-zchara.ads: Likewise. + * a-zchhan.ads: Likewise. + * a-zchuni.ads: Likewise. + * a-zrstfi.ads: Likewise. + * aspects.ads: Likewise. + * g-byorma.ads: Likewise. + * g-decstr.ads: Likewise. + * g-encstr.ads: Likewise. + * g-spchge.ads: Likewise. + * g-u3spch.ads: Likewise. + * g-wispch.ads: Likewise. + * g-zspche.ads: Likewise. + * namet-sp.ads: Likewise. + * s-os_lib.ads: Likewise. + * s-regexp.ads: Likewise. + * s-regpat.ads: Likewise. + * s-string.ads: Likewise. + * s-tasloc.ads: Likewise. + * s-utf_32.ads: Likewise. + * sem_aux.ads: Likewise. + * a-assert.adb: Likewise. + * a-chacon.adb: Likewise. + * a-envvar.adb: Likewise. + * a-exetim-mingw.adb: Likewise. + * a-suenco.adb: Likewise. + * a-suenst.adb: Likewise. + * a-suewst.adb: Likewise. + * a-suezst.adb: Likewise. + * a-tirsfi.adb: Likewise. + * a-wichha.adb: Likewise. + * a-zchhan.adb: Likewise. + * a-zchuni.adb: Likewise. + * a-zrstfi.adb: Likewise. + * aspects.adb: Likewise. + * g-byorma.adb: Likewise. + * g-decstr.adb: Likewise. + * g-encstr.adb: Likewise. + * g-spchge.adb: Likewise. + * g-u3spch.adb: Likewise. + * g-wispch.adb: Likewise. + * g-zspche.adb: Likewise. + * namet-sp.adb: Likewise. + * s-except.adb: Likewise. + * s-inmaop-vxworks.adb: Likewise. + * s-os_lib.adb: Likewise. + * s-regexp.adb: Likewise. + * s-regpat.adb: Likewise. + * s-string.adb: Likewise. + * s-tasloc.adb: Likewise. + * s-utf_32.adb: Likewise. + * s-wchcon.adb: Likewise. + * sem_aux.adb: Likewise. + +2012-04-02 Robert Dewar + + * s-atopri.ads: Minor reformatting. + +2012-04-02 Thomas Quinot + + * sem_util.adb: Minor reformatting, minor code cleanup. + +2012-04-02 Ed Schonberg + + * lib-xref.adb (Generate_Reference): For a reference to an + operator symbol, set the sloc to point to the first character + of the operator name, and not to the initial quaote. + (Output_References): Ditto for the definition of an operator + symbol. + +2012-04-02 Vincent Celier + + * ali.adb (Scan_Ali): Recognize Z lines. Set + Implicit_With_From_Instantiation to True in the With_Record for + Z lines. + * ali.ads (With_Record): New Boolean component + Implicit_With_From_Instantiation, defaulted to False. + * csinfo.adb: Indicate that Implicit_With_From_Instantiation + is special + * lib-writ.adb (Write_ALI): New array Implicit_With. + (Collect_Withs): Set Implicit_With for the unit is it is not Yes. + (Write_With_Lines): Write a Z line instead of a W line if + Implicit_With is Yes for the unit. + * sem_ch12.adb (Inherit_Context): Only add a unit in the context + if it is not there yet. + * sinfo.ads: New flag Implicit_With_From_Instantiation (Flag12) + added. + +2012-04-02 Yannick Moy + + * osint.adb, osint.ads (Add_Default_Search_Dirs): Add library + search dirs in file specified with option -gnateO. + +2012-04-02 Robert Dewar + + * sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb: Minor + reformatting. + +2012-04-02 Olivier Hainque + + * g-sse.ads: Add x86-solaris and x86_64-darwin to the set of + platforms where the use of this spec is supported. Add current + year to the copyright notice. + * gcc-interfaces/Makefile.in: Add g-sse.o and g-ssvety.o to + EXTRA_GNATRTL_NONTASKING_OBJS on x86 32/64 targets that support + it and where they were missing (x86-solaris, x86-freebsd, + x86_64-freebsd, and x86-darwin). + +2012-04-02 Gary Dismukes + + * bindgen.adb (Gen_Ada_Init): When compiling for the AAMP small + library, where we no longer suppress the Standard_Library, + generate an empty body rather than the usual generation of + assignments to imported globals, since those aren't present in + the small library. + +2012-04-02 Ed Schonberg + + * sinfo.ads: Minor documentation fix. + +2012-04-02 Hristian Kirtchev + + * sem_res.adb (Resolve_Conditional_Expression): Add local variables + Else_Typ and Then_Typ. Add missing type conversions to the "then" and + "else" expressions when their respective types are scalar. + +2012-04-02 Vincent Pucci + + * exp_ch9.adb: Reordering of the local subprograms. New Table + for the lock free implementation that maps each protected + subprograms with the protected component it references. + (Allow_Lock_Free_Implementation): New routine. Check if + the protected body enables the lock free implementation. + (Build_Lock_Free_Protected_Subprogram_Body): New routine. + (Build_Lock_Free_Unprotected_Subprogram_Body): New routine. + (Comp_Of): New routine. + * Makefile.rtl: Add s-atopri.o + * debug.adb: New compiler debug flag -gnatd9 for lock free + implementation. + * rtsfind.ads: RE_Atomic_Compare_Exchange_8, + RE_Atomic_Compare_Exchange_16, RE_Atomic_Compare_Exchange_32, + RE_Atomic_Compare_Exchange_64, RE_Atomic_Load_8, + RE_Atomic_Load_16, RE_Atomic_Load_32, RE_Atomic_Load_64, RE_Uint8, + RE_Uint16, RE_Uint32, RE_Uint64 added. + * s-atropi.ads: New file. Defines atomic primitives used + by the lock free implementation. + +2012-04-02 Emmanuel Briot + + * g-expect.adb (Expect_Internal): Fix leak of the input file descriptor. + +2012-04-02 Hristian Kirtchev + + * exp_ch4.adb (Expand_N_Quantified_Expression): Reimplemented. + The expansion no longer uses the copy of the original QE created + during analysis. + * sem.adb (Analyze): Add processing for loop parameter specifications. + * sem_ch4.adb (Analyze_Quantified_Expression): Reimplemented. The + routine no longer creates a copy of the original QE. All + constituents of a QE are now preanalyzed and resolved. + * sem_ch5.adb (Analyze_Iteration_Scheme): Remove the guard which + bypasses all processing when the iteration scheme is related to a + QE. Relovate the code which analyzes loop parameter specifications + to a separate routine. (Analyze_Iterator_Specification): + Preanalyze the iterator name. This action was originally + done in Analyze_Iteration_Scheme. Update the check which + detects an iterator specification in the context of a QE. + (Analyze_Loop_Parameter_Specification): New routine. This + procedure allows for a stand-alone analysis of a loop parameter + specification without the need of a parent iteration scheme. Add + code to update the type of the loop variable when the range + generates an itype and the context is a QE. + (Pre_Analyze_Range): Renamed to Preanalyze_Range. Update all references + to the routine. + * sem_ch5.ads: Code reformatting. + (Analyze_Loop_Parameter_Specification): New routine. + * sem_ch6.adb (Fully_Conformant_Expressions): Detect a case + when establishing conformance between two QEs utilizing different + specifications. + * sem_res.adb (Proper_Current_Scope): New routine. + (Resolve): Do not resolve a QE as there is nothing to be done now. + Ignore any loop scopes generated for QEs when detecting an expression + function as the scopes are cosmetic and do not appear in the tree. + (Resolve_Quantified_Expression): Removed. All resolution of + QE constituents is now performed during analysis. This ensures + that loop variables appearing in array aggregates are properly + resolved. + +2012-04-02 Ed Schonberg + + * sem_util.adb (Build_Default_Subtype): If the base type is + private and its full view is available, use the full view in + the subtype declaration. + +2012-04-02 Jose Ruiz + + * gnat_ugn.texi: Add some minimal documentation about how to + use GNATtest for cross platforms. + +2012-04-02 Vincent Celier + + * opt.ads (Object_Path_File_Name): New variable. + * prj-attr.adb: New Compiler attribute Object_Path_Switches. + * prj-nmsc.adb (Process_Compiler): Recognize new attribute + Object_Path_Switches. + * snames.ads-tmpl: New standard name Object_Path_Switches. + * switch-c.adb (Scan_Front_End_Switches): Recognize new switch + -gnateO= and put its value in Opt.Object_Path_File_Name. + +2012-04-02 Hristian Kirtchev + + * exp_ch7.adb (Process_Declarations): Detect a case where + a source object was initialized by another source object, + but the expression was rewritten as a class-wide conversion + of Ada.Tags.Displace. + * exp_util.adb (Initialized_By_Ctrl_Function): Removed. + (Is_Controlled_Function_Call): New routine. + (Is_Displacement_Of_Ctrl_Function_Result): Removed. + (Is_Displacement_Of_Object_Or_Function_Result): New routine. + (Is_Source_Object): New routine. + (Requires_Cleanup_Actions): Detect a case where a source object was + initialized by another source object, but the expression was rewritten + as a class-wide conversion of Ada.Tags.Displace. + * exp_util.ads (Is_Displacement_Of_Ctrl_Function_Result): Removed. + (Is_Displacement_Of_Object_Or_Function_Result): New routine. + +2012-04-02 Ed Schonberg + + * sem_res.adb (Resolve_Call): A call to an expression function + does not freeze if it appears in a different scope from the + expression function itself. Such calls appear in the generated + bodies of other expression functions, or in pre/postconditions + of subsequent subprograms. + +2012-04-02 Yannick Moy + + * lib-xref-alfa.adb: Code clean up. + +2012-04-02 Ed Schonberg + + * sem_ch12.adb (Analyze_Subprogram_Instantiation): Do not suppress + style checks, because the subprogram instance itself may contain + violations of syle rules. + * style.adb (Missing_Overriding): Check for missing overriding + indicator on a subprogram instance. + +2012-04-02 Hristian Kirtchev + + * sem_ch6.adb (Last_Implicit_Declaration): New routine. + (Process_PPCs): Insert the body of _postconditions after the + last internally generated declaration. This ensures that actual + subtypes created for formal parameters are visible and properly + frozen as _postconditions may reference them. + +2012-04-02 Robert Dewar + + * einfo.adb (First_Component_Or_Discriminant) Now applies to + all types with discriminants, not just records. + * exp_attr.adb (Expand_N_Attribute): Add Scalar_Values handling + for arrays, scalars and non-variant records. + * sem_attr.adb (Analyze_Attribute): Handle Valid_Scalars + * sem_attr.ads (Valid_Scalars): Update description + * sem_util.ads, sem_util.adb (No_Scalar_Parts): New function. + +2012-03-31 Eric Botcazou + + Revert + 2012-03-25 Eric Botcazou + + * gcc-interface/decl.c (SS_MARK_NAME): New define. + (gnat_to_gnu_entity) : Prepend leaf attribute on entities + whose name is SS_MARK_NAME. + +2012-03-30 Robert Dewar + + * exp_ch5.adb, sem_util.adb, exp_ch4.adb: Minor comment updates. + +2012-03-30 Yannick Moy + + * lib-xref-alfa.adb (Add_Alfa_File): Treat possibly 2 units at the same + time, putting all scopes in the same Alfa file. + (Add_Alfa_Xrefs): Correct errors in comparison function. Correct value + of Def component. + (Collect_Alfa): Possibly pass 2 units to Add_Alfa_File. + +2012-03-30 Hristian Kirtchev + + * exp_util.adb (Is_Secondary_Stack_BIP_Func_Call): Handle a case where + a build-in-place call appears as Prefix'Reference'Reference. + +2012-03-30 Yannick Moy + + * lib-xref-alfa.adb: Minor refactoring to remove internal package. + +2012-03-30 Hristian Kirtchev + + * sem_ch5.adb (Analyze_Iteration_Scheme): Preanalyze the subtype + definition of a loop when the context is a quantified expression. + +2012-03-30 Vincent Celier + + * prj.ads: Minor comment update. + +2012-03-30 Yannick Moy + + * lib-xref-alfa.adb, alloc.ads, lib-xref.ads: Minor addition of + comments and refactoring. + +2012-03-30 Robert Dewar + + * lib-xref.adb, lib-xref-alfa.adb: Minor reformatting & code + reorganization. + +2012-03-30 Yannick Moy + + * lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit + instead of Get_Source_Unit to get file for reference. + (Traverse_Compilation_Unit): Do not add scopes for generic units. + * lib-xref.adb (Generate_Reference): Use Get_Code_Unit instead + of Get_Source_Unit to get file for reference. + * sem_ch12.adb (Analyze_Package_Instantiation): Enable + instantiation in Alfa mode. + +2012-03-30 Hristian Kirtchev + + * exp_ch7.adb (Process_Declarations): Replace + the call to Is_Null_Access_BIP_Func_Call with + Is_Secondary_Stack_BIP_Func_Call. Update the related comment. + * exp_util.adb (Is_Null_Access_BIP_Func_Call): Removed. + (Is_Secondary_Stack_BIP_Func_Call): New routine. + (Requires_Cleanup_Actions): Replace + the call to Is_Null_Access_BIP_Func_Call with + Is_Secondary_Stack_BIP_Func_Call. Update the related comment. + * exp_util.ads (Is_Null_Access_BIP_Func_Call): Removed. + (Is_Secondary_Stack_BIP_Func_Call): New routine. + +2012-03-30 Yannick Moy + + * lib-xref-alfa.adb, lib-xref.adb: Code clean ups. + +2012-03-30 Gary Dismukes + + * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): For the case of a + loop entity which is rewritten as a renaming + of the indexed array, explicitly mark the entity as needing + debug info so that Materialize entity will be set later by + Debug_Renaming_Declaration when the renaming is expanded. + +2012-03-30 Robert Dewar + + * sem_attr.ads: Update comment. + +2012-03-30 Vincent Celier + + * prj.ads: New Dependency_Kind: ALI_Closure. + +2012-03-30 Thomas Quinot + + * exp_pakd.adb: Minor reformatting. + +2012-03-30 Yannick Moy + + * lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence + of compilation unit for unit in Sdep_Table. + +2012-03-30 Thomas Quinot + + * freeze.adb (Freeze_Record_Type): For a type with reversed bit + order and reversed storage order, disable front-end relayout. + +2012-03-25 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Copy + the TYPE_PACKED flag from the base type. + +2012-03-25 Eric Botcazou + + * gcc-interface/decl.c (SS_MARK_NAME): New define. + (gnat_to_gnu_entity) : Prepend leaf attribute on entities + whose name is SS_MARK_NAME. + +2012-03-25 Eric Botcazou + + * gcc-interface/utils.c (add_parallel_type): Take a TYPE instead of a + DECL and adjust. Move around. + (has_parallel_type): New predicate. + (rest_of_record_type_compilation): Return early if the type already + has a parallel type. + * gcc-interface/gigi.h (add_parallel_type): Adjust. + * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes. + +2012-03-25 Eric Botcazou + + * gcc-interface/utils.c (finish_record_type): Return early for padded + types and tidy up. + +2012-03-20 Arnaud Charlet + + * hlo.ads, hlo.adb: Removed, no longer used. + * gcc-interface/Make-lang.in: Remove hlo.o. Update dependencies. + * gcc-interface/Makefile.in: Remove EXTRA_LIBGNAT_SRCS (temporarly) + and compute it from EXTRA_LIBGNAT_OBJS. + Clean up comments, reorder LIBGNAT_SRCS and LIBGNAT_OBJS. + +2012-03-20 Yannick Moy + + * gnat_rm.texi, sem_attr.ads: Update documentation. + +2012-03-19 Yannick Moy + + * sem_ch6.adb: Minor code clean up. + +2012-03-19 Vincent Celier + + * make.adb (Scan_Make_Arg): Make sure all significant -m switches + on the command line are counted. + +2012-03-19 Robert Dewar + + * sem_elab.adb (Generate_Elab_Warnings): Fix spec, fix attribute + reference case + +2012-03-19 Robert Dewar + + * par-ch4.adb (Check_Bad_Exp): New procedure + +2012-03-19 Robert Dewar + + * exp_attr.adb, sem_attr.adb, sem_attr.ads, snames.ads-tmpl: Add + initial framework for Valid_Scalars attribute. + +2012-03-19 Robert Dewar + + * scng.adb (Scan): Recognize incorrect preprocessor directive + +2012-03-19 Robert Dewar + + * atree.adb (Allocate_Initialize_Node): Use Num_Extension_Nodes + * atree.ads (Num_Extension_Nodes): New variable + * debug.adb: New debug flag -gnatd.N + * gnat1drv.adb (Adjust_Global_Switches): Adjust + Num_Extension_Nodes if -gnatd.N set + +2012-03-19 Eric Botcazou + + * einfo.ads: Minor update to First_Rep_Item and Has_Gigi_Rep_Item + descriptions. + +2012-03-19 Robert Dewar + + * opt.ads: Remove HLO_Active flag. + * sem.adb: Remove call of high level optimizer. + * sem.ads (New_Nodes_OK): Removed. + * sem_ch10.adb: Remove references to New_Nodes_OK. + * switch-c.adb: Remove handling of -gnatH switch. + +2012-03-19 Yannick Moy + + * sem_ch6.adb (Check_Subprogram_Contract): Do not emit warnings + on trivially True or False postconditions and Ensures components + of contract-cases. + +2012-03-19 Robert Dewar + + * gnat_ugn.texi: Fix index entry for -gnatei (now we have + ug_words entry). + +2012-03-19 Hristian Kirtchev + + * sem_ch3.adb (Get_Discriminant_Value): Instead of looking + at the immediate correcponsing discriminant, traverse a + potential chain of discriminants produced by type derivations. + (Root_Corresponding_Discriminant): Traverse a chain of inherited + discriminants and return the topmost discriminant. + +2012-03-19 Bob Duff + + * debug.adb: Minor comment change. + * gnat_ugn.texi: Update documentation for elaboration regarding + indirect calls. + +2012-03-19 Gary Dismukes + + * exp_ch3.adb (Expand_N_Object_Declaration): In + the case of an object of a class-wide interface type, where the + declaration is rewritten as a renaming, call Set_Debug_Info_Needed + on the renaming entity so that Materialize_Entity will be + set. Also, change existing call (for other than interface cases) + to call Set_Debug_Info_Needed rather than Set_Needs_Debug_Info + (as specified for that flag). + +2012-03-19 Hristian Kirtchev + + * sem_ch4.adb (Analyze_Allocator): Detect an allocator generated + by the build-in-place machinery where the designated type is + indefinite, but the underlying type is not. Do not emit errors + related to missing initialization in this case. + +2012-03-19 Robert Dewar + + * gnat_ugn.texi: Add documentation for -gnateinnn switch. + * sem_elab.adb, put_alfa.adb, lib-xref-alfa.adb: Minor reformatting. + * sem_prag.adb: Minor comment update. + +2012-03-15 Robert Dewar + + * errout.ads: Add entry for translating -gnateinn to + /MAX_INSTANTIATIONS for VMS. + * hostparm.ads (Max_Instantiations): Moved to Opt. + * opt.ads (Maximum_Instantiations): Moved from Hostparm, and renamed. + * sem_ch12.adb (Maximum_Instantiations): New name of + Max_Instantiations (Analyze_Package_Instantiation): Change error + msg for too many instantiations (mention -gnateinn switch). + * switch-c.adb (Scan_Front_End_Switches): Implement -gnateinn switch. + * switch.ads: Minor comment update. + * usage.adb (Usage): Output line for -maxeinn switch. + * vms_data.ads: Add entry for MAX_INSTANTIATIONS (-gnateinn). + +2012-03-15 Yannick Moy + + * alfa.ads Update the decription of ALI sections. + (Alfa_File_Record): Add a component Unit_File_Name to store the + unit file name for subunits. + * get_alfa.adb, put_alfa.adb Adapt to the possible presence of + a unit file name. + * lib-xref-alfa.adb (Add_Alfa_File): For subunits, retrieve the + file name of the unit. + +2012-03-15 Yannick Moy + + * sem_ch6.adb (Check_Subprogram_Contract): Do + not issue warning on missing 'Result in postcondition if all + postconditions and contract-cases already get a warning for only + referring to pre-state. + +2012-03-15 Bob Duff + + * debug.adb: Add new debug switch -gnatd.U, which disables the + support added below, in case someone trips over a cycle, and needs + to disable this. + * sem_attr.adb (Analyze_Access_Attribute): + Treat Subp'Access as a call for elaboration purposes. + * sem_elab.ads, sem_elab.adb (Check_Elab_Call): Add support + for Subp'Access. + +2012-03-15 Vincent Pucci + + * sem.ads, sem.adb (Preanalyze): New routine. + * sem_ch4.adb (Analyze_Quantified_Expression): Call to the + Preanalyze routine in Sem added. Renaming of Needs_Expansion + into Need_Preanalysis. + * sem_ch6.adb (Preanalyze): Removed. + +2012-03-15 Robert Dewar + + * sem_ch4.adb (Analyze_Quantified_Expression): Add comment. + * sem_prag.adb: Minor comment additions. + * sem_attr.adb (Check_First_Last_Valid): Make sure prefix type + is frozen. + +2012-03-15 Vincent Pucci + + * sem_ch4.adb (Analyze_Quantified_Expression): + Preanalyze the condition when the quantified expression will be + further expanded. + +2012-03-15 Yannick Moy + + * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, sem_ch6.adb, + sem_warn.adb: Minor refactoring, renaming Case_Pragma in CTC_Pragma, + to refer to both Test_Case pragma and Contract_Case pragma (same + acronym as in Spec_CTC_List). + +2012-03-15 Robert Dewar + + * sem_prag.adb, sem_prag.ads, sem_util.ads, sem_attr.adb, sem_ch6.adb, + sem_warn.adb: Minor reformatting. + +2012-03-15 Hristian Kirtchev + + * exp_util.adb (Initialized_By_Ctrl_Function): Do not loop over + selector names as the function call always appears at the top selected + component. + +2012-03-15 Ed Schonberg + + * sem_ch12.adb (Validate_Access_Subprogram_Instance): keep + Mode_Conformance check for older versions of the language. + +2012-03-15 Yannick Moy + + * gnat_ugn.texi Document the extension of option -gnatw.t. + * sem_ch3.adb (Analyze_Declaration): Check for suspicious + contracts only after contract cases have been semantically + analyzed. + * sem_ch6.adb (Check_Subprogram_Contract): Consider also Ensures + components of contract cases for detecting suspicious contracts. + +2012-03-15 Yannick Moy + + * aspects.adb, aspects.ads (Aspect_Id): New GNAT aspect + Aspect_Contract_Case. + * gnat_rm.texi Document the new pragma/aspect + Contract_Case. Correct the documentation of the existing + pragma/aspect Test_Case with the new semantics. + * sem_attr.adb (Analyze_Attribute): Allow use of 'Result in the + Ensures component of a Contract_Case pragma. + * sem_ch13.adb (Analyze_Aspect_Specifications): Check new aspect + and translate it into a pragma. + (Check_Aspect_At_Freeze_Point): Take into account the new aspect. + * sem_ch3.adb, sinfo.adb, sinfo.ads Renaming of TC (for test case) + into CTC (for contract and test case). + * sem_ch6.adb (Process_PPCs): Generate Check pragmas from + Contract_Case pragmas, similarly to what is done already for + postconditions. + * sem_prag.adb, sem_prag.ads (Check_Contract_Or_Test_Case): + Renaming of Check_Test_Case. + (Analyze_Pragma, Sig_Flags): Take into account the new pragma. + * sem_util.adb, sem_util.ads Renaming to take into account the + new pragma, so that functions which applied only to Test_Case + now apply to both Test_Case and Contract_Case. + * par-prag.adb, sem_warn.adb, snames.ads-tmpl Take into account + the new pragma. + +2012-03-15 Robert Dewar + + * sem_ch6.ads: Minor comment updates. + * sem_ch12.adb: Minor comment clarification. + +2012-03-15 Robert Dewar + + * sem_ch5.adb: Minor reformatting. + +2012-03-15 Ed Schonberg + + * exp_ch3.adb (Expand_N_Object_Declaration): When rewriting the + declaration of a class-wide object, retain the Ekind to prevent + subsequent misuse of constants. + +2012-03-15 Yannick Moy + + * gnat_rm.texi, gnat_ugn.texi: Minor correction of invariant + terminology. + +2012-03-15 Hristian Kirtchev + + * exp_util.adb (Initialized_By_Ctrl_Function): Add code to + process the case when a function call appears in object.operation + format. + +2012-03-15 Ed Schonberg + + * sem_ch6.ads, sem_ch6.adb (Check_Subtype_Conformant): add + Get_Inst formal, so that conformance within an instantiation + follows renamings of formals. This is similar to what is already + done in Check_Mode_conformant. + * sem_ch12.adb (Vailidate_Access_Subprogram_Instance): check that + formal and actual are subtype conformant. Previously only mode + conformance was required. + +2012-03-15 Robert Dewar + + * par-ch6.adb, einfo.ads, sem_eval.adb, sem_eval.ads, + sem_case.adb: Minor reformatting. + +2012-03-15 Robert Dewar + + * exp_attr.adb (Expand_N_Attribute_Reference): Add handling + of First_Valid/Last_Valid. + * sem_attr.adb (Check_First_Last_Valid): New procedure + (Analyze_Attribute): Add handling of First_Valid and Last_Valid + (Eval_Attribute): ditto. + * snames.ads-tmpl: Add entries for First_Valid and Last_Valid. + +2012-03-15 Ed Schonberg + + * exp_ch5.adb (Expand_Predicated_Loop): Suppress warnings on + loop variable, for the unusual case where the range has a single + element and the loop variable has no visible assignment to it. + +2012-03-15 Vincent Pucci + + * exp_ch4.adb (Expand_N_Quantified_Expression): Expand the + original quantified expression node. + * sem_ch4.adb (Analyze_Quantified_Expression): Properly analyze + the quantified expression and preserve the original non-analyzed + quantified expression when an expansion is needed. + * sem_ch5.adb (Analyze_Iteration_Scheme): Special treatment + for quantified expressions. + (Analyze_Iterator_Specification): Special treatment for quantified + expressions. + +2012-03-15 Ed Falis + + * s-vxwork-ppc.ads: Update FP_CONTEXT so name of former pad + field matches VxWorks headers. + +2012-03-14 Rainer Orth + + * gcc-interface/Makefile.in (mips-sgi-irix6*): Remove. + + * a-intnam-irix.ads, mlib-tgt-specific-irix.adb, + s-intman-irix.adb, s-mastop-irix.adb, s-osinte-irix.adb, + s-osinte-irix.ads, s-proinf-irix-athread.adb, + s-proinf-irix-athread.ads, s-taprop-irix.adb, s-tasinf-irix.ads, + system-irix-n32.ads, system-irix-n64.ads, system-irix-o32.ads: + Remove. + + * adaint.c [__mips && __sgi]: Remove. + (__gnat_number_of_cpus) [__mips && __sgi]: Remove. + [IS_CROSS && !(__mips && __sgi)]: Remove. + * adaint.h [sgi && _LFAPI]: Remove. + * cstreams.c (__gnat_full_name) [sgi]: Remove. + * env.c (__gnat_unsetenv) [__mips && __sgi]: Remove. + (__gnat_clearenv) [__mips && __sgi]: Remove. + * errno.c (_SGI_MP_SOURCE): Remove. + * gsocket.h [sgi]: Remove. + * init.c: Remove IRIX reference. + [sgi]: Remove. + * link.c [sgi]: Remove. + * s-oscons-tmplt.c [__mips && __sgi] (IOV_MAX): Don't define. + (main) [__mips && __sgi] (MAX_tv_sec): Don't define. + (CLOCK_SGI_FAST, CLOCK_SGI_CYCLE): Remove. + * sysdep.c [sgi]: Remove. + (getc_immediate_common) [sgi]: Remove. + (__gnat_localtime_tzoff) [sgi]: Remove. + * terminals.c [__mips && __sgi] (IRIX): Don't define. + [IRIX] (USE_GETPTY): Don't define. + (allocate_pty_desc) [USE_GETPTY]: Remove. + + * g-traceb.ads: Remove IRIX reference. + * g-trasym.ads: Likewise. + * memtrack.adb: Likewise. + * s-interr-sigaction.adb: Likewise. + + * gnat_rm.texi (Implementation Advice): Remove SGI info. + (Implementation Defined Characteristics): Likewise. + * gnat_ugn.texi (Summary of Run-Time Configurations, mips-irix): + Remove. + (Irix-Specific Considerations): Remove. + +2012-03-13 Tristan Gingold + + * gcc-interface/gigi.h (flag_vms_malloc64): Refine condition. + +2012-03-13 Tristan Gingold + + * sysdep.c: Adjust condition after removal of __osf__. + +2012-03-12 Eric Botcazou + + * gcc-interface/gigi.h (shift_unc_components_for_thin_pointers): Kill. + * gcc-interface/decl.c (gnat_to_gnu_entity) : Remove call + to above function. + * gcc-interface/trans.c (Attribute_to_gnu) : Adjust + handling of thin pointers. + : Likewise. + (gnat_to_gnu) : Likewise. + * gcc-interface/utils.c (shift_unc_components_for_thin_pointers): Kill. + (convert_to_fat_pointer): Adjust handling of thin pointers. + (convert) : Likewise. + * gcc-interface/utils2.c (build_unary_op) : Likewise. + +2012-03-12 Rainer Orth + + * gcc-interface/Makefile.in (alpha*-dec-osf*): Remove. + * a-intnam-tru64.ads, mlib-tgt-specific-tru64.adb, + s-mastop-tru64.adb, s-osinte-tru64.adb, s-osinte-tru64.ads, + s-taprop-tru64.adb, s-tasinf-tru64.ads, s-taspri-tru64.ads, + system-tru64.ads: Remove. + + * adaint.c (__gnat_number_of_cpus) [__alpha__ && __osf__]: + Remove. + [IS_CROSS] [!(__alpha__ && __osf__)]: Remove. + * env.c [__alpha__ && __osf__]: Remove. + * gsocket.h (_OSF_SOURCE): Remove. + (HAVE_THREAD_SAFE_GETxxxBYyyy) [__osf__]: Remove. + * init.c [__alpha__ && __osf__]: Remove. + * link.c [__osf__]: Remove. + * s-oscons-tmplt.c [__alpha__ && __osf__]: Remove. + [__osf__ && !_SS_MAXSIZE]: Remove. + * sysdep.c [__osf__]: Remove. + * terminals.c [__alpha__ && __osf__]: Remove. + [OSF1]: Remove. + + * g-traceb.ads: Remove Tru64 reference. + * g-trasym.ads: Likewise. + * gnat_ugn.texi (Linking a Mixed C++ & Ada Program): Likewise. + (Summary of Run-Time Configurations): Likewise. + * memtrack.adb: Likewise. + +2012-03-12 Tristan Gingold + + * gcc-interface/decl.c (gnat_to_gnu_param): Use flag_vms_malloc64 + instead of TARGET_MALLOC64. + * gcc-interface/gigi.h (flag_vms_malloc64): Define instead + of TARGET_MALLOC64. + +2012-03-09 Robert Dewar + + * a-direct.adb, comperr.adb, freeze.adb: Minor reformatting. + +2012-03-09 Arnaud Charlet + + * s-taskin.adb (Initialize_ATCB): Set Task_Image_Len to + 0 so that we never access this field uninitialized (e.g. in + Task_Primitives.Operations.Enter_Task for the environment task). + +2012-03-09 Vincent Pucci + + * exp_ch5.adb (Expand_Iterator_Loop): + Call to Expand_Iterator_Loop_Over_Array added. + (Expand_Iterator_Loop_Over_Array): New routine. Expansion of + "of" iterator loop over arrays. Multidimensional array case added. + +2012-03-09 Eric Botcazou + + * uintp.ads: Fix minor pasto in comment. + +2012-03-09 Vasiliy Fofanov + + * a-direct.adb: Do not strip the trailing directory separator + from path, as this is already done inside Normalize_Pathname; + doing it again produces the wrong result on Windows for the + drive's root dir (i.e. "X:\" becomes "X:"). + +2012-03-09 Thomas Quinot + + * exp_attr.adb, freeze.adb, sem_attr.adb, aspects.adb, aspects.ads, + sem_ch13.adb, snames.ads-tmpl (Exp_Attr.Expand_N_Attribute_Reference): + Add Attribute_Scalar_Storage_Order. + (Sem_Attr.Analyze_Attribute, Eval_Attribute): Ditto. + (Aspects): Add Aspect_Scalar_Storage_Order (Snames): Add + Name_Scalar_Storage_Order and Attribute_Scalar_Storage_Order. + (Sem_Ch13.Analyze_Attribute_Definition_Clause): Add processing + for Scalar_Storage_Order. + (Freeze): If Scalar_Storage_Order is specified, check that it + is compatible with Bit_Order. + +2012-03-09 Robert Dewar + + * s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb, + a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb, + a-stzsup.ads: Minor reformatting. + +2012-03-09 Thomas Quinot + + * s-ransee-vms.adb: Minor reformatting. + +2012-03-09 Arnaud Charlet + + * comperr.adb (Delete_SCIL_Files): Fix handling of + N_Package_Renaming_Declaration and N_Generic_Package_Declaration. + +2012-03-09 Javier Miranda + + * sem_ch6.adb (Check_Body_To_Inline): In AAMP and VM targets + use frontend inlining at all optimization levels. + * sem_util.adb (Must_Inline): In AAMP and VM targets, given that + there is no inlining support in the backend, use also frontend + inlining when compiling with optimizations enabled. + * exp_ch6.adb (Expand_Call): Minor code reorganization. + +2012-03-09 Eric Botcazou + + * gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around. + (TYPE_UNCONSTRAINED_ARRAY): Adjust comment. + * gcc-interface/trans.c (Attribute_to_gnu) : Tidy + up. Add comment and use canonical predicate for thin pointers. + (gnat_to_gnu) : Tidy up and reorder. Add comment + and use canonical predicate for thin pointers. + * gcc-interface/utils.c (convert_to_fat_pointer): Remove superfluous + 'else' and use standard name. + (convert_to_thin_pointer): Delete. + (convert) : Do the difference in sizetype directly and + change obsolete idioms. Do not call above function. + (unchecked_convert): Fix formatting. + * gcc-interface/utils2.c (build_unary_op) : In the thin + pointer case, use byte_position to get the field position. + +2012-03-07 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set flags on the + DECL node built for a type which has a non-trivial equivalent type. + +2012-03-07 Eric Botcazou + + * gcc-interface/gigi.h (rest_of_type_decl_compilation): Delete. + * gcc-interface/decl.c (defer_finalize_level): Likewise. + (defer_finalize_list): Likewise. + (gnat_to_gnu_entity): Delete references to above variables and do not + call rest_of_type_decl_compilation. + (rest_of_type_decl_compilation): Delete. + (rest_of_type_decl_compilation_no_defer): Likewise. + * gcc-interface/utils.c (rest_of_record_type_compilation): Do not call + rest_of_type_decl_compilation. + (create_type_decl): Likewise. + (update_pointer_to): Likewise. + +2012-03-07 Eric Botcazou + + * gcc-interface/trans.c (Identifier_to_gnu): Don't unshare initializer. + (add_decl_expr): Mark external DECLs as used. + * gcc-interface/utils.c (convert) : Copy the vector. + +2012-03-07 Tristan Gingold + + * s-ransee-vms.adb: New file. + * gcc-interface/Makefile.in: Use s-ransee-vms.adb on VMS. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-03-07 Bob Duff + + * rtsfind.ads: Add support for finding Super_String types. + * sem_util.ads, sem_util.adb (Is_Bounded_String): New function + to determine whether a given type is a bounded string type. + (Is_Fully_Initialized_Type): Return True for bounded + string types, to suppress bogus warnings. + * exp_ch4.adb (Expand_Composite_Equality): Special case for bounded + strings: equality composes. This allows us to remove default values in + super strings. + * a-strsup.ads, a-stwisu.ads, a-stzsup.ads: Update comments. + * exp_ch3.adb (Expand_Freeze_Record_Type): Comment. + +2012-03-07 Robert Dewar + + * sem_util.adb, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb: Minor + reformatting. + +2012-03-07 Sergey Rybin + + * gnat_ugn.texi: gnatpp: fix paragraph about sources with + preprocessor directives. + +2012-03-07 Arnaud Charlet + + * s-osinte-linux.ads, s-taprop-linux.adb (prctl): New function. + (Enter_Task): Call prctl when relevant. + +2012-03-07 Tristan Gingold + + * s-osinte-vms.ads: pthread_mutex_setname_np: new function. + +2012-03-07 Ed Schonberg + + * sem_ch6.adb (Process_Formals): a generic subprogram with + a formal incomplete type does not require a freeze node. + +2012-03-07 Bob Duff + + * sem_util.ads: Minor reformatting. + +2012-03-07 Geert Bosch + + * targparm.ads: New target parameter Atomic_Sync_Default, + defaulting to True. + * targparm.adb (Get_Target_Parameters): Add processing for + Atomic_Sync_Default. + * gnat1drv.adb (Adjust_Global_Switches): Adjust Supress_Options + based on ASD. + +2012-03-07 Javier Miranda + + * sem_ch3.adb (Analyze_Object_Declaration): If the object + declaration has an init expression then stop the analysis of the + object declaration if the expression which initializes the object + is a call to an inlined function which returns an unconstrained + and has been expanded into a procedure call. + * sem_ch5.adb (Has_Call_Using_Secondary_Stack): Add missing + support to handle selected components. + * sem_ch6.ads (Cannot_Inline): Adding parameter Is_Serious plus + documentation. + * sem_ch6.adb (Check_And_Build_Body_To_Inline): New + subprogram which implements the checks required by the + new rules for frontend inlining and builds the body to inline. + (Analyze_Subprogram_Body_Helper): Move code that + checks inlining of subprogram that has nested subprogram + to Check_And_Build_Body_To_Inline. Replace call to + Build_Body_To_Inline by call to the new subprogram + Check_And_Build_Body_To_Inline. + (Cannot_Inline): New implementation. + * sem_ch12.adb (Analyze_Package_Instantiation.Must_Inline_Subp): + New subprogram. + * sem_util.ad[sb] (Must_Inline): New subprogram. + (Returns_Unconstrained_Type): New subprogram. + * sem_res.adb (Resolve_Call): Do not create a transient scope + for inlined calls. + * inline.ads (Analyzing_Inlined_Bodies): Remove unreferenced variable. + * inline.adb (Analyze_Inlined_Bodies, Initialize): Remove setting + to false the variable Analyzing_Inlined_Bodies. Fix comments. + * exp_ch4.adb (Expand_N_Allocator): Fix handling of finalization master. + * exp_ch6.ads (List_Inlining_Info): New subprogram. + * exp_ch6.adb (Expand_Call.Do_Inline): New subprogram. + (Expand_Call.Do_Inline_Always): New subprogram. + (In_Unfrozen_Instance): Move the declaration of this subprogram. + (Expand_Inlined_Call.Reset_Dispatching_Calls): New subprogram. + (Expand_Inlined_Call): Adding new support for inlining functions + that return unconstrained types. + (List_Inlining_Info): New subprogram. + * debug.adb Document flags -gnatd.j and -gnatd.k + * gnat1drv.adb Add call to generate the new listing of inlined + calls and calls passed to the backend. + +2012-03-07 Robert Dewar + + * sem_ch5.adb, s-vaflop.adb, s-taprop-vms.adb, exp_ch6.adb, + s-gearop.adb, sem_ch6.adb, g-trasym.adb: Minor reformatting. + +2012-03-07 Javier Miranda + + * a-ngrear.ads: Add documentation. + +2012-03-07 Tristan Gingold + + * s-taprop-vms.adb (Create_Task): set thread name. + * s-osinte-vms.ads (pthread_attr_setname_np): Declare. + +2012-03-07 Arnaud Charlet + + * g-trasym.adb: Minor reformatting. + +2012-03-07 Robert Dewar + + * a-ngrear.ads: Minor addition of ??? comment. + +2012-03-07 Gary Dismukes + + * exp_ch4.adb (Apply_Accessibility_Check): Call + Remove_Side_Effects in the build-in-place case, to ensure that + we capture the call and don't end up with two calls. + +2012-03-07 Javier Miranda + + * exp_ch6.adb (Expand_Inlined_Call): Skip inlining of functions + that return unconstrained types using an extended return statement + since the support for inlining these functions has not been yet + added to the frontend. + * s-vaflop.adb, s-vaflop-vms-alpha.adb: Code reorganization. + * a-ngrear.ads: Replace all the Inline_Always pragmas by pragma + Inline. + * a-ngrear.adb (Eigenvalues, Transpose): Restructured to use + extended return statement. + * a-strsup.adb, a-stzsup.adb, a-stwisu.adb (Concat, Super_Slice, + Super_To_String): Restructured to use extended return statement. + * a-chahan.adb (To_Basic, To_Lower, To_Upper): Restructured to + use extended return statement. + * s-gearop.adb (Diagonal, Matrix_Elementwise_Operation, + Vector_Elementwise_Operation, Matrix_Elementwise_Operation, + Matrix_Matrix_Scalar_Elementwise_Operation, + Vector_Vector_Elementwise_Operation, + Vector_Vector_Scalar_Elementwise_Operation, + Matrix_Scalar_Elementwise_Operation, + Vector_Scalar_Elementwise_Operation, + Scalar_Matrix_Elementwise_Operation, + Scalar_Vector_Elementwise_Operation, Matrix_Matrix_Product, + Matrix_Vector_Product, Outer_Product, Unit_Matrix, Unit_Vector, + Vector_Matrix_Product): Restructured to use extended return + statement. + +2012-03-07 Vincent Pucci + + * sem_ch5.adb (One_Bound): Minor reformatting. + +2012-03-07 Tristan Gingold + + * s-osinte-vms-ia64.adb, s-osinte-vms-ia64.ads, s-osinte-vms.adb, + s-osinte-vms.ads, gcc-interface/Makefile.in: Merge s-osinte-vms and + s-osinte-vms-ia64. + +2012-03-07 Ed Schonberg + + * checks.adb (Apply_Predicate_Check): Do not generate a predicate + check is the context is an internally generated type-specific + function. + * sem_ch6.adb (Process_PPCs); the formals of internally generated + type-specific functions do not get assertion checks. + +2012-03-07 Yannick Moy + + * gnat_rm.texi: Minor renaming of title. + * gnat_ugn.texi: Minor correction. + +2012-03-07 Vincent Pucci + + * exp_ch4.adb (Expand_N_Quantified_Expression): Minor + reformating. + * sem_ch4.adb (Analyze_Quantified_Expression): Creation and + analysis of the iteration scheme added in all cases. + * sem_ch5.adb (Analyze_Iteration_Scheme): Minor reformating. + (Analyze_Iterator_Specification): Minor reformating. + * sem_res.adb (Resolve_Quantified_Expression): Resolution of + the condition added in all cases. + +2012-03-07 Thomas Quinot + + * einfo.adb, einfo.ads: Add flag Reverse_Storage_Order. + +2012-03-07 Yannick Moy + + * gnat_rm.texi, gnat_ugn.texi: Rewording of GNAT UG and GNAT RM to + account for Ada 2012 assertions, and their pragma counterparts in GNAT. + +2012-03-07 Thomas Quinot + + * exp_attr.adb, sem_attr.adb: Minor reformatting. + +2012-03-07 Bob Duff + + * hostparm.ads (Max_Instantiations): Increase parameter. + +2012-03-07 Bob Duff + + * par-prag.adb: Minor code rearrangement. + +2012-03-07 Bob Duff + + * a-strsup.ads, a-stwisu.ads, a-stzsup.ads (Super_String): + Remove default initial value for Data. It is no longer needed + because "=" now composes properly for untagged records. This + default has caused efficiency problems. + +2012-03-07 Ed Schonberg + + * sem_res.adb (Resolve_Actuals): If the actual is a selected + component of an anonymous access type, whose prefix is a variable, + treat the variable as if it may be modified by the call, to + suppress spurious warnings that a variable might be declared as + a constant. + +2012-03-07 Thomas Quinot + + * einfo.adb, einfo.ads: Remove unused entity flags. + +2012-03-07 Eric Botcazou + + * gnat_ugn.texi (Inline Assembler): Fix swapping of Input and + Output operands throughout. + +2012-03-07 Hristian Kirtchev + + * sem_ch12.adb (Earlier): When two nodes come from the same + generic instantiation, compare their locations. Otherwise always + use the top level locations of the nodes. + +2012-03-07 Thomas Quinot + + * einfo.ads, sem_prag.adb: Minor reformatting. + +2012-03-05 Jason Merrill + + * gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn + before using it. + +2012-03-04 Eric Botcazou + + * gnatvsn.ads (Library_Version): Bump to 4.8. + +2012-03-03 H.J. Lu + + * init.c (__gnat_adjust_context_for_raise): Also check + "orq $0x0,(%esp)" for x32. + + * link.c (__gnat_default_libgcc_subdir): Set to libx32 for x32. + + * gcc-interface/Makefile.in (arch): Set to x32 if MULTISUBDIR + is /x32 and add support for x32. + +2012-02-29 Eric Botcazou + + * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter + and set TYPE_ARTIFICIAL according to it. Adjust recursive call. + (gnat_to_gnu_entity) : Adjust call to above function. + * gcc-interface/utils.c (rest_of_record_type_compilation): Do not + invoke rest_of_type_decl_compilation on the parallel type, if any. + +2012-02-29 Eric Botcazou + + * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the + dummy global built for global types is preserved. + +2012-02-27 Tristan Gingold + + * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type, + E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and + gnu_template_type. + +2012-02-27 Eric Botcazou + + * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking. + (TYPE_BY_REFERENCE_P): New flag. + (TYPE_IS_BY_REFERENCE_P): New macro. + (TYPE_DUMMY_P): Add checking and remove VOID_TYPE. + (TYPE_IS_DUMMY_P): Adjust for above change. + * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P + and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE. + (gnat_to_gnu_param): Likewise. + (maybe_pad_type): Likewise. + (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P. + * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P + instead of TREE_ADDRESSABLE. + * gcc-interface/trans.c (finalize_nrv): Likewise. + (call_to_gnu): Likewise. Do not create a temporary for return values + with by-reference type here. + (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P. + (gnat_gimplify_expr) : Don't do anything for non-constant + CONSTRUCTORs and calls. + * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of + the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P + instead of TREE_ADDRESSABLE. + * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference + types explicitly. + +2012-02-27 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Revert previous + change that creates a special VAR_DECL for debugging purposes. For an + aliased object with an unconstrained nominal subtype, make its type a + thin reference to the underlying object. + * gcc-interface/utils2.c (build_unary_op) : Deal with + expressions built for the initialization of above objects. + +2012-02-24 Dave Korn + + * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New + Windows-specific make variable. + (WIN_SO_INSTALL_DIR [windows targets]): Likewise. + (install-gnatlib): Respect the above during installation when set, + and also install any windows import library that has been built. + (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also + build a corresponding import library. + +2012-02-22 Robert Dewar + + * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor + reformatting. + +2012-02-22 Geert Bosch + + * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove + x86-specific version of byteswap and use GCC builtins instead. + +2012-02-22 Tristan Gingold + + * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type, + E_Array_Type]: Translate component ealier. + +2012-02-22 Robert Dewar + + * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize + error message for 'Range. + +2012-02-22 Pascal Obry + + * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as + this is our own thread. + +2012-02-22 Sergey Rybin + + * tree_io.ads: Update ASIS_Version_Number because of the changes + in Snames. + +2012-02-22 Hristian Kirtchev + + * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on + stack-related finalizers. + +2012-02-22 Ed Schonberg + + * sem_ch6.adb (Analyze_Expression_Function): If the construct + is a completion, indicate that its formals are the formals of + a completion, and as such do not get a cross- reference entry. + (Analyze_Subprogram_Specification): Do not generate a definition + for the entity of an expression function, because it may be a + completion. Definition will be generated if needed when analyzing + the generated subprogram declaration. + +2012-02-22 Vincent Celier + + * make.adb (Check): When checking if an object file is in the + correct object directory, get the unit name from a previous call + to Check_Source_Info_In_ALI. + * makeutl.adb (Check_Source_Info_In_ALI): Return the name of + the unit when everything is OK, otherwise return No_Name. + * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead + of Boolean + +2012-02-22 Ed Schonberg + + * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an + instance, the operator is visible if an operand is of some + numeric type which is not in use or directly visible, and the + other operand is a numeric literal. + +2012-02-22 Tristan Gingold + + * init.c: Minor code clean up. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-02-22 Arnaud Charlet + + * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node, + otherwise GCC will generate an object file. + +2012-02-22 Vincent Celier + + * projects.texi: Correct typo related to "**" in Source_Dirs. + +2012-02-22 Steve Baird + + * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of + error message text. + +2012-02-22 Vincent Pucci + + * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and + System_Dim_Child cases added. + * rtsfind.ads: Ada_Numerics, + Ada_Numerics_Generic_Elementary_Functions, System_Dim, + System_Dim_Float_IO and System_Dim_Integer_IO added to the list + of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as + new RTU_Id subtypes. + * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of + Rtsfind to verify the package entity is located either + in System.Dim.Integer_IO or in System.Dim.Float_IO. + (Is_Dim_IO_Package_Instantiation): Minor + changes. (Is_Elementary_Function_Call): Removed. + (Is_Elementary_Function_Entity): New routine. + (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added. + * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions + removed. + +2012-02-22 Vincent Pucci + + * sem_prag.adb: Minor reformatting. + +2012-02-22 Ed Schonberg + + * sem_ch3.adb (Find_Type_Name): When analyzing a private type + declaration that is the completion of a tagged incomplete type, do + not associate the class-wide type already created with the private + type to prevent order-of-elaboration issues in the back-end. + * exp_disp.adb (Find_Specific_Type): Find specific type of + a class-wide type, and handle the case of an incomplete type + coming either from a limited_with clause or from an incomplete + type declaration. Used when expanding a dispatchin call and + generating tag checks (minor refactoring). + +2012-02-22 Robert Dewar + + * exp_ch5.adb: Add comment. + * sem_ch12.adb, exp_ch6.adb: minor reformatting + +2012-02-22 Ed Schonberg + + * freeze.adb (Freeze_Entity): Do not perform type layout within + a generic unit. + +2012-02-22 Eric Botcazou + + * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to + Storage_Error. + +2012-02-22 Ed Schonberg + + * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an + assignment to a classwide type whose type is limited, as + can happen in an instantiation in programs that run afoul or + AI05-0087. + +2012-02-17 Ed Schonberg + + * exp_ch6.adb (Legal_Copy): If layout is not + determined in the front-end, do not emit error message when + by-reference actual is potentially unaligned. + * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for + illegal representation clause on tagged or aliased component, or on + by-reference type with forced alignment. + +2012-02-17 Nicolas Roche + + * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is + propagated by gnatlib-sjlj and gnatlib-zcx targets. + * gcc-interface/Make-lang.in: Update dependencies. + +2012-02-17 Thomas Quinot + + * sem_ch12.adb (Analyze_Package_Instantiation): For an + instantiation in an RCI library unit, omit the instance body + if the RCI library unit is the instance itself (E.2.3(18)), + but include the body if the instantiation is within the RCI + declaration (12.3(12)). + +2012-02-17 Steve Baird + + * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and + Post'Class aspects can only be specified for a primitive operation + of a tagged type. + +2012-02-17 Yannick Moy + + * gnat_rm.texi: Minor shuffling. + +2012-02-17 Ed Schonberg + + * aspects.adb: Expression functions can carry pre/postconditions. + * par-ch6.adb (P_Subprogram): look for optional pre/postconditions + in an expression function. + * sem_prag (Check_Precondition_Postcondition): legal on expression + functions. + +2012-02-17 Vincent Pucci + + * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb, + * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb, + * a-convec.adb, a-coorma.adb (Adjust): New routine. + (Constant_Reference): Increment Busy and Lock counters. + (Reference): Increase Busy and Lock counters. + (Finalize): New routine. + * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb: + (Adjust): New routine. (Constant_Reference): Increment Busy + and Lock counters. + (Finalize): New routine. + * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads, + * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads, + * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads, + * a-coorma.ads, a-coorse: Controlled component added to the + reference types. + +2012-02-17 Robert Dewar + + * restrict.adb (Check_Restriction): Add special handling for + No_Obsolescent_Features. + +2012-02-17 Hristian Kirtchev + + * exp_util.adb (Find_Finalize_Address): When dealing with an + internally built full view for a type with unknown discriminants, + use the original record type. + +2012-02-17 Robert Dewar + + * sem_dim.adb: Minor reformatting. + +2012-02-17 Yannick Moy + + * gnat_rm.texi: Minor rewording. + +2012-02-17 Thomas Quinot + + * sem_aggr.adb: Minor reformatting. + +2012-02-17 Robert Dewar + + * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case. + +2012-02-17 Vincent Pucci + + * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine. + (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity + call added. + (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity + call added. + * s-dim.ads: Make package Pure. + +2012-02-17 Gary Dismukes + + * prj-nmsc.adb: Minor reformatting. + +2012-02-17 Yannick Moy + + * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions. + +2012-02-17 Yannick Moy + + * gnat_ugn.texi: Fix typos. + +2012-02-17 Pascal Obry + + * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an + aggregate is not Externally_Built. + +2012-02-17 Ed Schonberg + + * sem_aggr.adb (Resolve_Record_Aggregate): If a composite + component has a box association, copy the default value using + the current scope as the scope of internal types, to prevent + scoping anomalies in gigi. + +2012-02-17 Robert Dewar + + * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb, + sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb, + exp_intr.adb, s-os_lib.adb: Minor reformatting. + +2012-02-17 Ed Schonberg + + * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the + old operation is abstract, the relevant type is not abstract, + and the new subprogram fails to override. + +2012-02-15 Eric Botcazou + + * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the + type of the result to the end and execute it for a deferred constant of + a discriminated type whose full view can be elaborated statically. + +2012-02-15 Eric Botcazou + + * gcc-interface/trans.c (gnat_to_gnu) : If the + type is tagged, mark it as used for debugging purposes. + : Likewise for a qualified expression. + +2012-02-15 Eric Botcazou + + * gcc-interface/trans.c (call_to_gnu): Create the temporary for the + return value in the by-reference return type case if this isn't the + expression of an object declaration. Tidy up. + +2012-02-09 Tristan Gingold + + * gcc-interface/Makefile.in: Remove .sym rule (not used). + Remove adamsg.o object (requires native message compiler). + * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a + macro instead of as extern int. + (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR) + (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT) + (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH) + (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC) + (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH) + (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH) + (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH) + (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR) + (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise. + (struct cond_except): Field cond is now an unsigned int. + (dec_ada_cond_except_table): Adjust. + (cond_except_table): Likewise. + (cond_resignal_table): Likewise. + (__gnat_default_resignal_p): Fix style. + +2012-02-08 Vincent Celier + + * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects + (g-buorma is now imported by sinput). + Update dependencies. + * scn.adb (Initialize_Scanner): Call Check_For_BOM + * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM + * sinput.adb: New procedure Check_For_BOM + * sinput.ads: New procedure Check_For_BOM + +2012-02-08 Vincent Pucci + + * impunit.adb: Dimension package names updated + * Makefile.rtl: s-dim added + * sem_dim.adb (Is_Procedure_Put_Call): minor changes + (Is_Dim_IO_Package_Instantiation): minor changes + * sem_dim.ads: minor changes in comments + * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and + Name_Dim_Integer_IO removed + * s-dim.ads: New package. Define the dimension terminology. + * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads, + * s-dmotpr.ads: Package names updated. + * s-diflio.ads, s-diinio.ads: Documentation added and package + names updated. + +2012-02-08 Gary Dismukes + + * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test + for storage pools to test for an underlying record type rather than + testing Is_Tagged_Type, so that simple storage pools will be handled + the same as normal Ada storage pools. + +2012-02-08 Yannick Moy + + * gnat_rm.texi: Minor reshuffling to place restriction at + appropriate place. + +2012-02-08 Bob Duff + + * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value + False for '-gnatwA', to suppress these warnings. + +2012-02-08 Vincent Celier + + * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before + starting to scan, so that UTF8 encoding is taken into account. + +2012-02-08 Arnaud Charlet + + * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New + function. + (Complete_Rendezvous): Now call Internal_Complete_Rendezvous. + (Exceptional_Complete_Rendezvous): Mark No_Return. + +2012-02-08 Eric Botcazou + + * exp_aggr.adb (Compile_Time_Known_Composite_Value): + New predicate to compute whether a composite value can be + evaluated at compile time. + (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all + expressions of elementary type and Compile_Time_Known_Composite_Value + for all other expressions. + (Expand_Record_Aggregate): Convert to assignments in the case + of a type with mutable components if the aggregate cannot be + built statically. + +2012-02-08 Gary Dismukes + + * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type. + (Impl_Defined_Aspects): Add association for + Aspect_Simple_Storage_Pool_Type. + (Aspect_Names): Add + association for Aspect_Simple_Storage_Pool_Type. + * aspects.adb: + (Canonical_Aspect): Add association for Simple_Storage_Pool_Type. + * exp_attr.adb (Expand_N_Attribute_Reference): + Change name to Name_Simple_Storage_Pool_Type. + * exp_ch4.adb (Expand_N_Allocator): Change + name to Name_Simple_Storage_Pool_Type. + * exp_intr.adb (Expand_Unc_Deallocation): Change name to + Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity): + Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb: + Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb: + (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type. + * sem_ch13.adb (Analyze_Attribute_Definition_Clause): + Change name to Name_Simple_Storage_Pool_Type. + * sem_prag.adb: + (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type. + (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type. + * sem_res.adb (Resolve_Allocator): Change name to + Name_Simple_Storage_Pool_Type. * snames.ads-tmpl: + (Name_Simple_Storage_Pool_Type): New name constant. + (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and + move to main pragma section because it no longer matches the + attribute name. + * snames.adb-tmpl (Get_Pragma_Id): Remove test for + Name_Simple_Storage_Pool. + (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool. + +2012-02-08 Robert Dewar + + * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws. + +2012-02-08 Pascal Obry + + * prj.adb (Compute_All_Imported_Projects): Use new + For_Project_And_Aggregated_Context to ensure proper context is + used for encapsulated aggregate libraries. + * prj-proc.adb (Recursive_Process): Call + Process_Aggregated_Projects earlier to ensure that all dependent + projects are set with the proper encapsulated status. + +2012-02-08 Pascal Obry + + * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null + terminated string. + +2012-02-08 Pascal Obry + + * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New + generic routine with a context parameter. + +2012-02-08 Robert Dewar + + * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb, + a-convec.adb: Minor reformatting and code reorganization. + +2012-02-08 Steve Baird + + * sem_cat.adb (In_Preelaborated_Unit): A child + unit instantiation does not inherit preelaboration requirements + from its parent. + +2012-02-08 Gary Dismukes + + * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool. + (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool. + (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool. + (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool. + * aspects.adb (Canonical_Aspect): Add entry for + Aspect_Simple_Storage_Pool. + * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of + Attribute_Simple_Storage_Pool in the same way as Storage_Pool + (add conversion, analyze/resolve). For the Storage_Size attribute, + for the simple pool case, locate and use the simple pool type's + Storage_Size function (if any), otherwise evaluate to zero. + * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator + for an access type with an associated simple storage pool, + locate and use the pool type's Allocate. + * exp_intr.adb (Expand_Unc_Deallocation): In the case where the + access type has a simple storage pool, locate the pool type's + Deallocate procedure (if present) and use it as the procedure + to call on the Free operation. + * freeze.adb (Freeze_Entity): In the case of a full type for + a private type defined with pragma Simple_Storage_Pool, check + that the full type is also appropriate for the pragma. For + a simple storage pool type, validate that the operations + Allocate, Deallocate (if present), and Storage_Size + (if present) are defined with appropriate expected profiles. + (Validate_Simple_Pool_Op_Formal): New procedure + (Validate_Simple_Pool_Operation): New procedure Add with and + use of Rtsfind. + * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement + (no action required). + * sem_attr.adb (Analyze_Attribute): For the case of the + Storage_Pool attribute, give a warning if the prefix type has an + associated simple storage pool, and rewrite the attribute as a + raise of Program_Error. In the case of the Simple_Storage_Pool + attribute, check that the prefix type has an associated simple + storage pool, and set the attribute type to the pool's type. + * sem_ch13.adb (Analyze_Aspect_Specifications): Add + Aspect_Simple_Storage_Pool case choice. + (Analyze_Attribute_Definition_Clause): Add + Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses + (no action). Add handling for Simple_Storage_Pool attribute + definition, requiring the name to denote a simple storage pool + object. + (Check_Aspect_At_Freeze_Point): For a simple storage pool + aspect, set the type to that of the name specified for the aspect. + * sem_prag.adb (Analyze_Pragma): Add handling for pragma + Simple_Storage_Pool, requiring that it applies to a library-level + type declared in a package declaration that is a limited private + or limited record type. + * sem_res.adb (Resolve_Allocator): Flag an attempt to call a + build-in-place function in an allocator for an access type with + a simple storage pool as unsupported. + * snames.ads-tmpl: Add Name_Simple_Storage_Pool. + (type Attribute_Id): Add Attribute_Simple_Storage_Pool. + (type Pragma_Id): Add Pragma_Simple_Storage_Pool. + * snames.adb-tmpl (Get_Pragma_Id): Handle case of + Name_Simple_Storage_Pool. + (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool. + +2012-02-08 Cyrille Comar + + * projects.texi: Clarify doc for interfaces. + +2012-02-07 Eric Botcazou + + * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable. + (GCC_LINK): Use it. + +2012-02-01 Tristan Gingold + + * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype + instead of size_type_node. + +2012-01-30 Nicolas Roche + + * gcc-interface/Make-lang.in: Update dependencies. + * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads + when needed. + Remove Linker_Options -crtbe when building sjlj run-time. + +2012-01-30 Robert Dewar + + * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode. + * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of + form 2 * small-literal. + * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious + mod value). + * sem_ch4.ads (Analyze_Mod): New procedure. + +2012-01-30 Ed Schonberg + + * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy + types and return expression when building spec for implicit + body, to preserve global references that may be present in an + instantiation. + +2012-01-30 Matthew Heaney + + * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort, + Reverse_Elements): Check for cursor tampering. + +2012-01-30 Ed Schonberg + + * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a + type with aspect Default_Value or Default_Component_Value is + fully initialized, and use of variables of such types do not + generate warnings. + +2012-01-30 Javier Miranda + +PR ada/15846 + * sem_ch8.adb (Analyze_Subprogram_Renaming): + Handle self-renaming when the renamed entity is referenced using + its expanded name. + +2012-01-30 Vincent Celier + + * projects.texi: Add documentation for attribute Interfaces. + +2012-01-30 Hristian Kirtchev + + * exp_ch7.adb (Build_Finalizer_Call): Set loc again. + * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source + location for the wrapped call to the original AT_END routine + and the subsequent return statement. + +2012-01-30 Pascal Obry + + * s-rannum.adb: Minor reformatting. + +2012-01-30 Hristian Kirtchev + + * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds + to 25 and add the hard time value for 2012-06-30. + +2012-01-30 Robert Dewar + + * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb, + freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads, + s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb: + Minor reformatting/code reorganization. + +2012-01-30 Thomas Quinot + + * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return + Unsigned_64 rather than Duration. + (System.Random_Numbers.Reset): Use full value of seed + (do not truncate sub-second bits). + +2012-01-30 Thomas Quinot + + * sem_cat.adb, sem_ch12.adb: Minor reformatting. + +2012-01-30 Yannick Moy + + * gnat_ugn.texi: Minor correction of GNAT UG, to take into + account changes to -gnatwa and more recent warnings. + +2012-01-30 Hristian Kirtchev + + * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source + location when creating a call to a finalizer. + * exp_ch11.adb (Expand_Exception_Handlers): Do not provide + a source location for the first actual of Save_Occurrence for + consistency sake. + +2012-01-30 Ed Schonberg + + * einfo.ads, einfo,adb: New attribute on scalar types: + Default_Aspect_Value New attribute on array types: + Default_Aspect_Component_Value Move attribute Related_Array_Object + to a different position to accomodate new aspect attributes. + * freeze.adb (Freeze_Entity): Use new attributes to retrieve value + of defaults set with an aspect specification, rather than using + the list of aspects attached to the type, to prevent issues with + partial views. + * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects + Default_Value and Default_Component _Value, store corresponding + expression in type entity. + (Check_Aspect_At_End_Of_Declaration): If the default aspects + are declared on the full view, use the full view to resolve the + correseponding expression. + * exp_ch3.adb (Init_Component): Use attribute + Default_Aspect_Component_Value to perform default initialization, + rather than relying on the rep item list for the type. + (Get_Simple_Init_Val): Ditto. + +2012-01-30 Thomas Quinot + + * a-strhas.ads: Document risk of collision attack. + +2012-01-30 Yannick Moy + + * gnat_ugn.texi: Minor update wrt warning switches. + +2012-01-30 Vincent Celier + + * prj-nmsc.adb (Check_Interfaces): Report an error when a + unit from Library_Interface is not a unit of the project. + +2012-01-30 Vincent Pucci + + * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent + links fixed inside PPC pragmas. + * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl. + +2012-01-30 Thomas Quinot + + * s-ransee.ads: Minor reformatting. + +2012-01-30 Pascal Obry + + * prj.ads, prj.adb (For_Each_Source): Add support for skipping + sources coming from an encapsulated library. + +2012-01-30 Ed Schonberg + + * sem_ch3.adb (Process-Full_View): fix typo. + * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates + appear on a private type and the full view is available, ensure + existence of freeze node for full view. + (Build_Predicate_Function): Attach predicate function to both + views of a private type. + +2012-01-30 Vincent Celier + + * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs + for the project if either attribute Library_Interface or + Interfaces is declared. + (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in + Check_Interfaces. + +2012-01-30 Pascal Obry + + * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib + boolean value to true in the process list created by this routine. + * prj.ads (Project_List_Element): New field From_Encapsulated_Lib. + Continued work for KA06-021. + * prj.adb (Compute_All_Imported_Projects): Set + From_Encapsulated_Lib boolean flag. + +2012-01-30 Vincent Pucci + + * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor + code clean up. + * s-diflio.ads: Minor change. + +2012-01-30 Javier Miranda + + * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call + to Get_Entry_Index. Required to generate code which provides + the correct value of Entry_Index in the target entry. + +2012-01-30 Nicolas Roche + + * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to + fix issue with zcx on VxWorks5. + +2012-01-30 Pascal Obry + + * prj.ads, prj.adb (For_Every_Project_Imported): Remove + In_Aggregate_Lib. + (For_Every_Project_Imported_Context): New generic routine with + a context parameter. + * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid + distributed complexity. + * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto. + +2012-01-30 Thomas Quinot + + * exp_aggr.adb (Expand_Record_Aggregate): After creating the + _parent aggregate for an extension aggregate, check whether it + requires delayed (top-down) expansion. + +2012-01-30 Vincent Pucci + + * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten. + * snames.ads-tmpl: Name_Item and Name_Symbols added. + * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename + and change the position of parameter Symbols in every Put routine. + * s-dimmks.ads: Convert long float type Mks_Type into long + long float. + * s-llflex.ads: Modifications in comments. + +2012-01-30 Hristian Kirtchev + + * sem_ch12.adb (Earlier): Do not use the + top level source locations of the two input nodes. + +2012-01-30 Robert Dewar + + * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads, + sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting. + +2012-01-30 Robert Dewar + + * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting. + +2012-01-30 Olivier Hainque + + * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back + + comments. + +2012-01-30 Thomas Quinot + + * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb, + sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb, + sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type): + New subprogram (extracted from + Sem_Cat.Validate_Remote_Access_Object_Type_Declaration). + (Einfo.Is_Remote_Types): Now applies to generic types. Update + documentation accordingly. + (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as + actual for a formal type to which a pragma Remote_Access_Type + applies. + (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect + Remote_Access_Type. + (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can + be applied to a generic type if pragma Remote_Access_Type + applies, in which case the type of the attribute is + System.Partition_Interface.RACW_Stub_Type. + +2012-01-27 Eric Botcazou + + * gcc-interface/decl.c (gnat_to_gnu_entity) : Do not set + an alignment on fields of the RETURN type built for the CICO mechanism. + +2012-01-27 Eric Botcazou + + * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for + a call to a function that returns an unconstrained type with default + discriminant. Similarly, avoid doing the conversion to the nominal + result type in this case. + +2012-01-27 Eric Botcazou + + * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag. + * gcc-interface/decl.c (is_variable_size): Rename to... + (type_has_variable_size): ...this. + (adjust_packed): Adjust to above renaming. + (gnat_to_gnu_field): Set DECL_ALIASED_P on the field. + (field_is_artificial): New predicate. + (field_is_aliased): Likewise. + (field_has_self_size): Likewise. + (field_has_variable_size): Likewise. + (components_to_record): Record information for the final layout during + the first pass on fields. + If there is an aliased field placed after a field whose length depends + on discriminants, put all the fields of the latter sort, last. + +2012-01-27 Eric Botcazou + + * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare. + * gcc-interface/decl.c (get_minimal_subprog_decl): New function. + * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an + Access-like attribute in a dispatch table if the subprogram is public. + +2012-01-27 Eric Botcazou + + * gcc-interface/gigi.h (create_label_decl): Adjust. + * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter + and invoke gnat_pushdecl on it. Remove obsolete settings. + * gcc-interface/decl.c (gnat_to_gnu_entity) : Adjust call to + create_label_decl. + * gcc-interface/trans.c (gnat_to_gnu) + + * gcc-interface/decl.c (gnat_to_gnu_entity) : For an aliased + object with an unconstrained nominal subtype and if optimization isn't + enabled, create a special VAR_DECL for debugging purposes. + +2012-01-23 Robert Dewar + + * sem_prag.ads, sem_prag.adb: Minor reformatting. + +2012-01-23 Robert Dewar + + * sem_ch13.adb (Analyze_Aspect_Specifications): Check for + language defined aspect applied to renaming or formal type + declaration (not permitted) + +2012-01-23 Matthew Heaney + + * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced + comment with pragma Assert. + +2012-01-23 Vincent Pucci + + * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call + to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode. + * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New + routine. In ASIS mode, convert any PPC pragmas into aspects in generic + subprogram declaration in order to enable the analysis of PPC boolean + expressions. + +2012-01-23 Robert Dewar + + * sem_ch3.adb (Analyze_Object_Declaration): Properly + handle Current_Value for volatile variables (also propagate + Treat_As_Volatile from type to object). + +2012-01-23 Hristian Kirtchev + + * sem_ch12.adb (Install_Body): Detect the case + where the enclosing context is a package with a stub body that + has already been replaced by the actual body. In such cases, + the freeze node for the enclosing context must be inserted after + the real body. + +2012-01-23 Ed Schonberg + + * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called + subprogram before expanding the pragma into an if-statement with + a block, to ensure that when the subprogram is null its body is + properly generated before expansion. + +2012-01-23 Hristian Kirtchev + + * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and + constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal + to Saved_Formal. + Freeze all eligible subprograms which appear as actuals in + the instantiation. + (Has_Fully_Defined_Profile): New routine. + (Renames_Standard_Subprogram): New routine. + (Earlier): Add local variable N. Comment update. Do not use source + locations when trying to determine whether one node precedes another. + +2012-01-23 Gary Dismukes + + * exp_ch4.adb (Expand_Concatenate): In the case + where the result of a concatentation can be null, set the to + result have both the low and high bounds of the right operand (not + just the high bound, as was the case prior to this fix). Also, + fix the saved high bound setting (Last_Opnd_High_Bound) in the + empty string literal case (should have been low bound minus one, + rather than plus one). + +2012-01-23 Thomas Quinot + + * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not + omit statement SCOs for disabled pragmas. + +2012-01-23 Matthew Heaney + + * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads, + a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads, + a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads, + a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read, + Cursor'Write): Declare in private part. + (Reference_Type'Read, Reference_Type'Write): Ditto. + (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto. + +2012-01-23 Robert Dewar + + * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor + reformatting. + +2012-01-23 Ed Schonberg + + * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the + Corresponding_Body on a defaulted null formal subprogram. + * sem_ch12.adb (Check_Formal_Package_Instance): No check needed + on a defaulted formal subprogram that is a null procedure. + +2012-01-23 Hristian Kirtchev + + * exp_ch9.adb: Update the comments involving pragma Implemented. + * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local + constant Subp_Alias and local variable Impl_Subp. Properly + handle aliases of synchronized wrappers. Code cleanup. + (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add + Name_Optional as part of the condition. + * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the + valid choices of implementation kind. + (Check_Arg_Is_One_Of): New routine. + * snames.ads-tmlp: Add Name_Optional. + +2012-01-23 Ed Schonberg + + * par-ch13.adb: Better error recovery in illegal aspect + specification. + +2012-01-23 Hristian Kirtchev + + * a-calend.adb: Add with clause for Interfaces.C. Add constant + Unix_Max. + (Day_Of_Week): Call the internal UTC_Time_Offset. + (Split): Call the internal UTC_Time_Offset. + (Time_Of): Call the internal UTC_Time_Offset. + (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset. + (UTC_Time_Offset): New library-level routine. + * a-calend.ads (UTC_Time_Offset): Remove parameter + Is_Historic. Update related comment on usage. + * a-catizo.adb (UTC_Time_Offset): Removed. + (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset. + * a-caltizo.ads (UTC_Time_Offset): Removed. + (UTC_Time_Offset (Time)): Add back the default expression of parameter + Date. + +2012-01-23 Robert Dewar + + * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter + (pg,po,ps): Make sure each entry starts on new line. + +2012-01-23 Hristian Kirtchev + + * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update + the parameter profile of procedure localtime_tzoff and its associated + comment. + (Day_Of_Week): Do not treat the input date as historical + with respect to time zones. + (Split): Do not treat the input + date as historical with respect to time zones. (Time_Of): Do + not treat the input constituents as forming a historical date + with respect to time zones. + (UTC_Time_Offset): Add new formal + parameter Is_Historic. Add local variable Flag. Update the call + to localtime_tzoff. + * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine. + (UTC_Time_Offset (Time)): Update the call to + Time_Zone_Operations.UTC_Time_Offset. + * sysdep.c (__gnat_localtime_tzoff): Update parameter + profile. Split the processing of offsets on Windows into two - one + part of historic time stamps and the other for the current time. + +2012-01-23 Robert Dewar + + * a-calend.adb: Minor reformatting. + +2012-01-23 Ed Schonberg + + * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized + interface in requeue statement. + +2012-01-23 Cyrille Comar + + * projects.texi: Remove references to main units and replace + with references to main programs to be coherent with the + documentation. + +2012-01-23 Robert Dewar + + * s-utf_32.adb: Minor reformatting. + +2012-01-23 Vincent Celier + + * snames.ads-tmpl: Minor comment addition Indicate that + Name_Library_Encapsulated_Options is only used in gprbuild. + +2012-01-23 Robert Dewar + + * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit + restrictions. + +2012-01-23 Ed Schonberg + + * snames.ads-tmpl: Add Name_Synchronization. + * aspects.ads, aspects.adb: Add Aspect_Synchronization to + enumeration type and related maps. + * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect + Synchronization, build corresponding pragma Implemented. + * sem_util.adb (Implementation_Kind): Handle both explicit and + implicit pragma_argument association to retrieve the given + synchronization mode. + +2012-01-23 Robert Dewar + + * sem_ch10.adb, errout.adb: Minor reformatting. + +2012-01-23 Ed Schonberg + + * sem_res.adb (Resolve_Actuals): An actual in a call to an + Ada 2012 Reference function does not lead to a dangerous order + dependence. + +2012-01-23 Gary Dismukes + + * exp_util.adb (Is_Iterated_Container): Test + Is_Entity_Name when searching for calls to the default iterator, + to avoid blowing up on indirect calls which have an explicit + dereference as the call name. + +2012-01-23 Thomas Quinot + + * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output + the complete expanded name, rather than just its Selector_Name. + +2012-01-23 Thomas Quinot + + * a-textio.adb (Put): Rewrite one-parameter Character version to + just call the two-parameter one with Current_Out. + +2012-01-23 Hristian Kirtchev + + * freeze.adb (Check_Current_Instance): Issue an + error when the prefix of 'Unchecked_Access or 'Access does not + denote a legal aliased view of a type. + (Freeze_Record_Type): Do not halt the processing of record components + once the Has_Controlled_Component is set as this bypasses the remaining + checks. + (Is_Aliased_View_Of_Type): New routine. + +2012-01-23 Thomas Quinot + + * errout.ads, freeze.adb: Minor reformatting. + +2012-01-23 Thomas Quinot + + * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error + messages. + +2012-01-23 Olivier Hainque + + * adadecode.c (__gnat_decode): Deal with empty input early, + preventing potential erroneous memory access later on. + +2012-01-21 Eric Botcazou + + PR ada/46192 + * gcc-interface/decl.c (gnat_to_gnu_entity) : In the case of a + renaming, preserve the volatileness through the indirection, if any. + +2012-01-14 Andreas Schwab + + * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add + $(GNATLIBCFLAGS). + +2012-01-10 Pascal Obry + + * prj-nmsc.adb (Check_Library_Attributes): + Kill check for object/source directories for aggregate libraries. + +2012-01-10 Matthew Heaney + + * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb, + a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads, + a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb, + a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads, + a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb, + a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb, + a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb, + a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads, + a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare + container parameter as aliased in/in out. + Code clean ups. + +2012-01-10 Bob Duff + + * s-os_lib.ads: Improve comment. + +2012-01-10 Geert Bosch + + * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing + for complex Scalar. + +2012-01-10 Bob Duff + + * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when + checking that the 'Size is correct. If the type is "mod 2**12", + for example, it's illegal, but Esize is the 'Object_Size, which + will be something like 16 or 32, so the error ('Size = 12) was + not detected. + * gnat_rm.texi: Improve documentation of shift + and rotate intrinsics. + +2012-01-10 Pascal Obry + + * prj.adb (For_Every_Project_Imported): Fix + implementation to make sure we return each project only once + for aggragte libraries. It is fine to return a project twice for + aggregate projects, this was the case as a Project_Id is different + in each project tree. The new implementation use a table based on + the project name to ensure proper detection of duplicate project + in aggregate library. A new context is then created to continue + retrurning duplicate project for aggregate libraries. + +2012-01-09 Eric Botcazou + + * gcc-interface/trans.c (call_to_gnu): Create the temporary for the + return value in the variable-sized return type case if the target is + an array with fixed size. However, do not create it if this is the + expression of an object declaration. + +2012-01-09 Eric Botcazou + + * gcc-interface/trans.c (addressable_p) : Fix thinko. + +2012-01-06 Robert Dewar + + * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads, + s-utf_32.ads: Add pragma Pure + * s-utf_32.adb: Suppress warnings on non-static constants (now + that this is Pure). + +2012-01-06 Bob Duff + + * s-rpc.ads (Read, Write): Add overriding indicators. + +2012-01-06 Robert Dewar + + * gnat_rm.texi: Add documentation for conventions + Ada_Pass_By_Copy and Ada_Pass_By_Reference. + +2012-01-06 Gary Dismukes + + * a-tienio.adb (Put): Add exception message on + raise statements. Remove unneeded blocks and object declarations. + +2012-01-06 Robert Dewar + + * sem_prag.adb: Minor reformatting. + +2012-01-06 Ed Schonberg + + * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate + that a selected component within a generic unit has been resolved + as a prefixed call with local references. + * sem_ch3.adb (Is_Visible_Component): In an instance body a selected + component is always visible. + * sem_ch4.adb (Analyze_Selected_Component): If the node is a + prefixed call in an instance, do not look for visible components + of the type. + * sem_ch12.adb (Reset_Entity): If a selected component has resolved + to a prefixed call, mark the node accordingly when prefix and + selector are local references. + +2012-01-02 Eric Botcazou + + * gnatvsn.ads (Current_Year): Bump to 2012. + +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. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f2148f72667..1690aebbfc9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -10,3070 +10,8 @@ PR c++/55245 * tree.c (build_cplus_array_type): Copy layout information to main variant if necessary. - -2012-12-28 Kai Tietz - - * rtti.c (LONGPTR_T): New helper-macro. - (get_pseudo_ti_init): Initialize offset_type by LONGPTR_T - type instead of 'long' type. - (create_tinfo_types): Use for offset/flags field LONGPTR_T - type instead of 'long' type. - -2012-12-19 Jason Merrill - - PR c++/55724 - * pt.c (type_unification_real): Re-combine post-deduction loops. - -2012-12-14 Jason Merrill - - PR c++/55685 - * pt.c (tsubst_copy_and_build): Don't use SIZEOF_EXPR_TYPE_P in - templates. - - PR c++/42315 - * decl.c (maybe_deduce_size_from_array_init): Don't change the - variable type. - -2012-12-13 Jakub Jelinek - - PR c++/55652 - * typeck2.c (merge_exception_specifiers): Don't call operand_equal_p - if noex is NULL. - -2012-12-11 Jason Merrill - - PR c++/54883 - * decl2.c (min_vis_r): Handle anon visibility for enums. - -2012-12-11 Marc Glisse - - PR c++/53094 - * tree.c (cp_tree_equal): Handle VECTOR_CST. - * semantics.c (cxx_eval_bare_aggregate): Protect a dereference. - Handle VECTOR_CST. - -2012-12-11 Jakub Jelinek - - PR c++/55643 - * expr.c (mark_exp_read): Handle FLOAT_EXPR similarly to NOP_EXPR. - -2012-12-11 Jason Merrill - - PR c++/54416 - * pt.c (maybe_process_partial_specialization): Don't accept - definition of a specialization without the appropriate header. - - * pt.c (maybe_process_partial_specialization): Handle aliases first. - -2012-12-11 Jakub Jelinek - - PR c++/55619 - * semantics.c (finish_asm_stmt): Don't call decay_conversion - on input operands that can be only in memory. - -2012-12-10 Eric Botcazou - - * Make-lang.in (cp/typeck.o): Add dependency on $(PARAMS_H). - (cp/name-lookup.o): Likewise. - -2012-12-10 Steven Bosscher - - * decl2.c (cp_write_global_declarations): Return after writing a PCH. - -2012-12-07 Jason Merrill - - PR c++/55127 - * search.c (accessible_in_template_p): New. - * cp-tree.h: Declare it. - * pt.c (instantiation_dependent_scope_ref_p): New. - (value_dependent_expression_p): Use it. - (instantiation_dependent_r): Likewise. - * semantics.c (finish_decltype_type): Handle SCOPE_REF. - - PR c++/55419 - * tree.c (build_target_expr): Don't set TREE_CONSTANT. - -2012-12-07 Aldy Hernandez - - PR c++/55513 - * semantics.c (cxx_eval_builtin_function_call): Set non_constant_p - after folding. - -2012-12-07 Paolo Carlini - - * tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter. - (build_cplus_new): Adjust. - * cp-tree.h: Adjust declaration. - * init.c (build_value_init): Adjust. - -2012-12-07 Dodji Seketeli - - PR c++/54401 - * parser.c (cp_parser_alias_declaration): Commit to tentative - parse when see the '=' token. Get out if the type-id is invalid. - Update function comment. - (cp_parser_member_declaration): Don't try to parse a using - declaration if we know that we expected an alias declaration; that - is, if we see the '=' token after the identifier. - -2012-12-06 Jason Merrill - - PR c++/54325 - * tree.c (build_aggr_init_expr): Don't check for abstract class. - (build_cplus_new): Check here instead. - - PR c++/55058 - * pt.c (tsubst): Keep the quals when looking through a typedef. - - PR c++/55249 - * tree.c (build_vec_init_elt): Use the type of the initializer. - - PR c++/54744 - * pt.c (resolve_typename_type): Check TYPENAME_IS_RESOLVING_P on scope. - * init.c (expand_member_init): Check for being in a template first. - * parser.c (cp_parser_mem_initializer_list): Only check class types - for equivalence to the current class. - - PR c++/54913 - * semantics.c (finish_qualified_id_expr): convert_from_reference - after building a SCOPE_REF. - -2012-12-06 Jakub Jelinek - - PR c++/54207 - * except.c (build_noexcept_spec): Avoid direct comparison - with boolean_true_node or boolean_false_node, instead use - operand_equal_p and/or INTEGER_CST check. - * pt.c (tsubst_exception_specification): Likewise. - * typeck2.c (merge_exception_specifiers): Likewise. - -2012-12-06 Marc Glisse - - PR c++/55573 - * semantics.c (adjust_temp_type): Handle VECTOR_CST. - -2012-12-06 Jason Merrill - - PR c++/54947 - * parser.c (cp_parser_initializer_list): Don't require an - expression in [] to be constant until we know it's a C99 - designator. - - PR c++/55015 - PR c++/53821 - * semantics.c (maybe_add_lambda_conv_op): Revert earlier change. - * decl.c (start_preparsed_function): Make local class methods comdat - in templates, too. - - PR c++/54653 - * parser.c (cp_parser_class_head): A partial specialization scope - counts as a template. - * pt.c (tsubst_template_parms): Handle template template parm parms. - (tsubst_decl) [TEMPLATE_DECL]: Handle getting a template template - argument back. - - PR c++/55564 - * pt.c (unify) [ARRAY_TYPE]: Unify the element type before the bounds. - -2012-12-03 Paolo Carlini - - PR c++/54170 - * cvt.c (cp_convert_to_pointer): Don't discard side-effects from - expressions of nullptr_t. - * typeck.c (build_ptrmemfunc): Likewise. - -2012-12-01 Jakub Jelinek - - PR c++/55542 - * pt.c (make_ith_pack_parameter_name): Return NULL if - name is NULL. - (tsubst_decl): Call make_ith_pack_parameter_name even if - DECL_NAME is NULL. - -2012-11-29 Jason Merrill - - PR c++/53137 - * pt.c (tsubst_expr) [DECL_EXPR]: Set LAMBDA_EXPR_THIS_CAPTURE here. - (tsubst_copy_and_build) [LAMBDA_EXPR]: And clear it here. - (instantiate_class_template_1): Not here. - -2012-11-29 Marc Glisse - - PR c++/53094 - * cvt.c (ocp_convert): Call convert_to_vector. - -2012-11-29 Kai Tietz - - PR target/53912 - * class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t. - (dump_vtable): Likewise. - -2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> - - PR c++/52654 - * parser.c (cp_parser_string_literal): Add overflow_type arg. - (cp_parser_userdef_numeric_literal): Warn on numeric overflow. - -2012-11-28 Andrew Pinski - - PR bootstrap/54279 - * Make-lang.in (g++$(exeext)): Rename to - (xg++$(exeext)): This. - (g++-cross$(exeext)): Use xg++$(exeext) instead of g++$(exeext). - (c++.start.encap): Likewise. - (c++.install-common): Likewise. - -2012-11-24 Paolo Carlini - - PR c++/55446 - * init.c (build_vec_init): Do not early return error_mark_mode - when integer_all_onesp (maxindex). - -2012-11-23 Jakub Jelinek - - PR c++/54046 - * cp-objcp-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Redefine. - * cp-objcp-common.c (cxx_block_may_fallthru): New function. - * cp-tree.h (cxx_block_may_fallthru): New prototype. - -2012-11-23 Markus Trippelsdorf - - PR c++/55418 - * method.c (implicitly_declare_fn): Properly initialize trivial_p. - -2012-11-22 Jason Merrill - - PR c++/55137 - * semantics.c (verify_constant): Track overflow separately. - (reduced_constant_expression_p): Don't check it here. - (cxx_eval_constant_expression): Check it on CSTs. - (cxx_eval_outermost_constant_expr): Treat overflows as non-constant - at this point, but still return the folded version. - (potential_constant_expression_1): Don't check overflow. - - * call.c (extend_ref_init_temps_1): Recompute TREE_CONSTANT for - the ADDR_EXPR. - -2012-11-20 Diego Novillo - Jakub Jelinek - - * name-lookup.c: Replace all vec() initializers - with vNULL. - * semantics.c: Likewise. - -2012-11-19 Paolo Carlini - - PR c++/55368 - * parser.c (cp_parser_member_declaration): Emit an error in case - of stray comma at end of member declaration. - -2012-11-19 Jason Merrill - - * class.c (one_inheriting_sig): Don't inherit base copy ctors. - - PR c++/55262 - * method.c (implicitly_declare_fn): Set DECL_PARM_INDEX on - the parms of an inheriting ctor. - - PR c++/55261 - * class.c (add_implicitly_declared_members): Use - lookup_fnfields_slot to get the base constructors. - -2012-11-19 Jakub Jelinek - - PR middle-end/54630 - * class.c (fixed_type_or_null_ref_ht): New variable. - (fixed_type_or_null): Use it instead of local static ht. - -2012-11-17 Diego Novillo - - Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * Make-lang.in: Remove dependencies on vecir.h and vecprim.h everywhere. - * call.c: Use new vec API in vec.h. - * class.c: Likewise. - * cp-gimplify.c: Likewise. - * cp-tree.h: Likewise. - * cvt.c: Likewise. - * decl.c: Likewise. - * decl2.c: Likewise. - * error.c: Likewise. - * except.c: Likewise. - * init.c: Likewise. - * mangle.c: Likewise. - * method.c: Likewise. - * name-lookup.c: Likewise. - * name-lookup.h: Likewise. - * parser.c: Likewise. - * parser.h: Likewise. - * pt.c: Likewise. - * repo.c: Likewise. - * rtti.c: Likewise. - * search.c: Likewise. - * semantics.c: Likewise. - * tree.c: Likewise. - * typeck.c: Likewise. - * typeck2.c: Likewise. - -2012-11-17 Gabriel Dos Reis - - * semantics.c (finish_id_expression): Tidy diagnostic message. - -2012-11-16 Dodji Seketeli - - PR c++/54875 - * pt.c (lookup_template_class_1): Look at the type of the - potential member enum of class template to determine if we are - actually substituting into a member enum of class template. - -2012-11-16 Jakub Jelinek - - PR c++/55337 - * tree.c (cp_tree_equal) : Use SIZEOF_EXPR_TYPE_P - only on SIZEOF_EXPR. - -2012-11-14 Jason Merrill - - PR c++/54903 - * decl2.c (mark_used): Don't complain about auto in templates. - - PR c++/37276 - * decl.c (decls_match): Remove #ifdef around earlier fix. - -2012-11-13 Jason Merrill - - * class.c (finish_struct_1): Check virtual functions - for missing ABI tags. - - PR c++/55275 - * pt.c (maybe_process_partial_specialization): Update - DECL_SOURCE_LOCATION for new specializations. - -2012-11-14 Paolo Carlini - - PR c++/55323 - * init.c (emit_mem_initializers): Skip arguments == error_mark_node. - -2012-11-14 Fabien Chêne - - PR c++/11750 - * call.c (build_new_method_call_1): Check that the instance type - and the function context are the same before setting the flag - LOOKUP_NONVIRTUAL. - -2012-11-13 Sriraman Tallam - - * class.c (mark_versions_used): Remove. - (resolve_address_of_overloaded_function): Call target hook - for versioned functions. Refactor to call - get_function_versions_dispatcher. - * decl.c (duplicate_decls): Add comments. - * cp/call.c (get_function_version_dispatcher): Expose function. - (mark_versions_used): Expose function. - * cp/cp-tree.h (mark_versions_used): New declaration. - (get_function_version_dispatcher): Ditto. - -2012-11-13 Dodji Seketeli - - PR c++/54466 - * pt.c (lookup_template_class_1): TYPE_STUB_DECL should be - accessed on the main variant of the type. - -2012-11-12 Ed Smith-Rowland <3dw4rd@verizon.net> - - * parser.c (cp_parser_objc_class_ivars): - Index declspecs.locations by ds_typedef rather than ds_thread. - -2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> - - PR c++/54413 - * decl.c (grokfndecl): Adjust calls to interpret_x_suffix. - -2012-11-09 Jason Merrill - - PR c++/54859 - * pt.c (check_instantiated_arg): Don't complain about dependent args. - - * tree.c (cxx_attribute_table): Add abi_tag attribute. - (check_abi_tag_redeclaration, handle_abi_tag_attribute): New. - * class.c (find_abi_tags_r, check_abi_tags): New. - (check_bases, check_field_decl): Call check_abi_tags. - * decl.c (redeclaration_error_message): Call - check_abi_tag_redeclaration. - * mangle.c (tree_string_cmp, write_abi_tags): New. - (write_unqualified_name): Call write_abi_tags. - -2012-11-07 Paolo Carlini - - PR c++/55226 - Revert: - 2012-10-23 Paolo Carlini - - PR c++/54922 - * semantics.c (cx_check_missing_mem_inits): Handle anonymous union - members. - -2012-11-07 Florian Weimer - - * init.c (build_new_1): Do not check for arithmetic overflow if - inner array size is 1. - -2012-11-05 Sriraman Tallam - - * class.c (add_method): Change assembler names of function versions. - (mark_versions_used): New static function. - (resolve_address_of_overloaded_function): Create dispatcher decl and - return address of dispatcher instead. - * decl.c (decls_match): Make decls unmatched for versioned - functions. - (duplicate_decls): Remove ambiguity for versioned functions. - Delete versioned function data for merged decls. - * decl2.c (check_classfn): Check attributes of versioned functions - for match. - * call.c (get_function_version_dispatcher): New function. - (mark_versions_used): New static function. - (build_over_call): Make calls to multiversioned functions - to call the dispatcher. - (joust): For calls to multi-versioned functions, make the most - specialized function version win. - -2012-10-31 Lawrence Crowl - - * decl2.c (var_finalized_p): Rename varpool_node to - varpool_node_for_decl. - (maybe_emit_vtables): Likewise. - -2012-10-31 Paolo Carlini - - PR c++/54583 - * tree.c (build_cplus_array_type): Set TREE_NO_WARNING on the - TYPE_SIZE of VLAs. - -2012-10-31 Dodji Seketeli - - PR c++/54955 - * parser.c (cp_nth_tokens_can_be_std_attribute_p): Recognize the - 'Alignas' keyword as the beginning of a c++11 attribute specifier. - Update the comment of the function. - (cp_next_tokens_can_be_gnu_attribute_p): Update the comment of the - function. - -2012-10-29 Jonathan Wakely - - PR c++/54930 - * typeck.c (maybe_warn_about_returning_address_of_local): Use - OPT_Wreturn_local_addr. - -2012-10-26 Jakub Jelinek - - PR c++/55081 - * typeck2.c (store_init_value): Call fold_non_dependent_expr - and maybe_constant_init even for C++98. - -2012-10-26 Paolo Carlini - - PR c++/54984 - * init.c (build_new): Don't turn a null *init into a pointer to - empty vector orig_init. - -2012-10-25 Paolo Carlini - - PR c++/53761 - * class.c (finish_struct_1): Reject aggregates decorated with - __transparent_union__ which cannot be made transparent because - the type of the first field has a different ABI from the class - overall. - -2012-10-25 Jason Merrill - - Core 1402 - * call.c (joust): An implicitly deleted move function is - worse than any non-deleted function. - * method.c (process_subob_fn): No special rules for move. - (synthesized_method_walk, implicitly_declare_fn): Likewise. - Warn about virtual base with non-trivial move assignment. - * cp-tree.h (struct lang_decl_fn): Remove suppress_implicit_decl. - (FNDECL_SUPPRESS_IMPLICIT_DECL): Remove. - - * semantics.c (finish_omp_threadprivate): Call complete_type. - - * class.c (one_inherited_ctor): Warn about variadic inherited ctor. - -2012-10-25 Marc Glisse - - PR c++/54427 - * typeck.c (build_x_conditional_expr): Handle VEC_COND_EXPR. - * call.c (build_conditional_expr_1): Likewise. - -2012-10-25 Paolo Carlini - - PR c++/34892 - * parser.c (cp_parser_template_parameter): When - cp_parser_parameter_declaration parsed a default argument don't - see if *is_parameter_pack needs setting. - -2012-10-23 Paolo Carlini - - PR c++/54922 - * semantics.c (cx_check_missing_mem_inits): Handle anonymous union - members. - -2012-10-23 Jakub Jelinek - - PR c++/54844 - * pt.c (tsubst_copy, tsubst_copy_and_build) : Use - tsubst instead of tsubst_copy* on types. - - PR c++/54988 - * decl2.c (cplus_decl_attributes): Don't return early - if attributes is NULL. - -2012-10-18 Paolo Carlini - - PR c++/54501 - * decl.c (reshape_init_array_1): Avoid infinite loops. - -2012-10-15 Alexandre Oliva - Paolo Carlini - - PR c++/17805 - * call.c (build_new_op_1): Filter out operator functions that don't - satisfy enum-conversion match requirements. - -2012-10-15 Paolo Carlini - - PR c++/50080 (again) - * parser.c (cp_parser_optional_template_keyword): When -pedantic - and C++98 mode restore pre-Core/468 behavior. - -2012-10-15 Paolo Carlini - - PR c++/50080 - * parser.c (cp_parser_optional_template_keyword): Implement - Core/468, allow outside template. - -2012-10-14 Jason Merrill - Ville Voutilainen - - Implement C++11 inheriting constructors. - * cp-tree.h (cpp0x_warn_str): Add CPP0X_INHERITING_CTORS. - (DECL_INHERITED_CTOR_BASE, SET_DECL_INHERITED_CTOR_BASE): New. - (special_function_kind): Add sfk_inheriting_constructor. - * class.c (add_method): An inheriting ctor is hidden by a - user-declared one. - (one_inheriting_sig, one_inherited_ctor): New. - (add_implicitly_declared_members): Handle inheriting ctors. - * error.c (maybe_warn_cpp0x): Handle CPP0X_INHERITING_CTORS. - * init.c (emit_mem_initializers): Don't set LOOKUP_DEFAULTED - for an inheriting constructor. - * method.c (type_has_trivial_fn): Handle sfk_inheriting_constructor. - (type_set_nontrivial_flag): Likewise. - (add_one_base_init): Split out from... - (do_build_copy_constructor): ...here. Handle inheriting constructors. - (locate_fn_flags): Handle a list of arg types. - (synthesized_method_walk): Handle inheriting constructors. - (maybe_explain_implicit_delete): Likewise. - (deduce_inheriting_ctor): New. - (implicitly_declare_fn): Handle inheriting constructors. - * name-lookup.c (push_class_level_binding_1): An inheriting constructor - does not declare the base's name. - (do_class_using_decl): Allow inheriting constructors. - * pt.c (template_parms_to_args): Split from current_template_args. - (add_inherited_template_parms): New. - (tsubst_decl): Handle inheriting constructors. - * tree.c (special_function_p): Handle inheriting constructors. - -2012-10-12 Jakub Jelinek - - PR c/54381 - * semantics.c (finish_call_expr): Pass array of 3 sizeof_arg - trees and locs (corresponding to first 3 arguments) to - sizeof_pointer_memaccess_warning. - -2012-10-12 Paolo Carlini - - PR c++/24449 - * decl.c (grokfndecl): When checking for ::main declarations - use PROCESSING_REAL_TEMPLATE_DECL_P(). - -2012-10-12 Marc Glisse - - PR c++/53055 - * call.c (build_new_op_1): Pass RO_ARROW_STAR to cp_build_indirect_ref. - * typeck.c (cp_build_indirect_ref): Handle RO_ARROW_STAR. - -2012-10-11 Jason Merrill - - * cp-tree.h (DECL_THUNKS): NULL_TREE for non-virtual functions. - (SET_DECL_THUNKS): New. - * decl.c (duplicate_decls): Adjust. - * method.c (make_thunk): Adjust. - - * decl.c (grokdeclarator): Set DECL_GNU_TLS_P for static data - members, too. - -2012-10-09 Dodji Seketeli - - PR c++/53540 - using fails to be equivalent to typedef - * cp-tree.h (TYPE_TEMPLATE_INFO): For an alias that is not an - instance of alias template, don't look for its TEMPLATE_INFO in - its declaration. - (alias_template_specialization_p): Take const_tree. - * pt.c (alias_template_specialization_p): Take a const_tree. - Don't call primary_template_instantiation_p. - (primary_template_instantiation_p): Call - alias_template_specialization_p. - -2012-10-10 Dodji Seketeli - - * parser (cp_parser_statement): Parse c++11 attributes - tentatively. - (cp_parser_std_attribute_spec_seq): Do not warn too early about - using c++11 attributes in non c++11 mode. - -2012-10-10 Dehao Chen - - * cp-gimplify.c (cp_genericize_r): Set location for TRY expr. - -2012-10-09 Lawrence Crowl - - * Make-lang.in (class.o): Add dependence on hash-table.h. - (tree.o): Likewise. - (semantics.o): Likewise. - * class.c (fixed_type_or_null): Change to new type-safe hash table. - * tree.c (verify_stmt_tree): Likewise. - (verify_stmt_tree_r): Likewise. - * semantics.c (struct nrv_data): Likewise. - -2012-10-09 Paolo Carlini - - PR c++/54194 - * typeck.c (build_x_binary_op): Update warn_about_parentheses call. - * parser.c (cp_parser_binary_expression): Use SET_EXPR_LOCATION - on current.lhs. - -2012-10-09 Marc Glisse - - PR c++/54427 - * typeck.c (cp_build_binary_op): Handle mixed scalar-vector - operations. - [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise. - -2012-10-08 Jakub Jelinek - - PR c++/54858 - * tree.c (cp_tree_equal): Handle FIELD_DECL. - -2012-10-08 Jason Merrill - - Allow dynamic initialization of thread_locals. - * decl.c: Define tls_aggregates. - (expand_static_init): Remove sorry. Add to tls_aggregates. - * cp-tree.h: Declare tls_aggregates. - * call.c (set_up_extended_ref_temp): Add to tls_aggregates. - * decl2.c (var_needs_tls_wrapper): New. - (var_defined_without_dynamic_init): New. - (get_tls_init_fn, get_tls_wrapper_fn): New. - (generate_tls_wrapper, handle_tls_init): New. - (cp_write_global_declarations): Call handle_tls_init and - enerate_tls_wrapper. - * mangle.c (write_guarded_var_name): Split out from.. - (mangle_guard_variable): ...here. - (mangle_tls_init_fn, mangle_tls_wrapper_fn): Use it. - (decl_tls_wrapper_p): New. - * semantics.c (finish_id_expression): Replace use of thread_local - variable with a call to its wrapper. - - * decl.c (get_thread_atexit_node): New. - (register_dtor_fn): Use it for TLS. - - Partial implementation of C++11 thread_local. - * decl.c (cp_finish_decl): Remove errors about non-trivial - initialization and destruction of TLS variables. - (register_dtor_fn): Add sorry about TLS variables. - (expand_static_init): Add sorry about non-local TLS variables, - or error with __thread. - Don't emit thread-safety guards for local TLS variables. - (grokdeclarator): thread_local in a function implies static. - * decl.h: Adjust prototype. - * decl2.c (get_guard): Copy DECL_TLS_MODEL. - * parser.c (cp_parser_set_storage_class, cp_parser_set_decl_spec_type) - (set_and_check_decl_spec_loc): Take the token rather than the location. - Distinguish between __thread and thread_local. - (cp_parser_set_storage_class): Don't complain about thread_local before - extern/static. - (token_is__thread): New. - * call.c (make_temporary_var_for_ref_to_temp): Handle TLS. - * cp-tree.h (DECL_GNU_TLS_P): New. - (cp_decl_specifier_seq): Add gnu_thread_keyword_p. - -2012-10-08 Dodji Seketeli - - PR c++/53528 C++11 attribute support - * cp-tree.h (enum cpp0x_warn_str::CPP0X_ATTRIBUTES): New member. - (enum cp_decl_spec::ds_std_attribute): New enumerator. - (struct cp_decl_specifier_seq::std_attributes): New field. - (cxx_alignas_expr, warn_misplaced_attr_for_class_type): Declare - new functions. - (check_tag_decl): Take an extra parameter for explicit - instantiations. - * decl.c (warn_misplaced_attr_for_class_type): Extract from ... - (check_tag_decl): ... here. Add check for c++11 attributes being - applied to an explicit instantiation. Take an extra parameter for - explicit instantiations. - (grokdeclarator): Make sure a c++11 attribute after an array - declarator appertains to the array, an attribute after a function - declarator appertains to the function type, an attribute after a - declarator-id appertains to the entity being declared, and an - attribute after a pointer declarator appertain to the pointer. - * decl2.c (is_late_template_attribute): Use get_attribute_name. - * error.c (maybe_warn_cpp0x): Support - CPP0X_GENERALIZED_ATTRIBUTES. - * parser.c (cp_next_tokens_can_be_attribute_p) - (cp_next_tokens_can_be_gnu_attribute_p) - (cp_next_tokens_can_be_std_attribute_p) - (cp_nth_tokens_can_be_attribute_p) - (cp_nth_tokens_can_be_gnu_attribute_p) - (cp_nth_tokens_can_be_std_attribute_p) - (cp_parser_gnu_attribute_list, cp_parser_std_attribute) - (cp_parser_std_attribute_spec, cp_parser_std_attribute_spec_seq) - (cp_parser_attributes_opt, cp_parser_std_attribute_list): New - static functions. - (cp_parser_gnu_attributes_opt): Replace cp_parser_attributes_opt. - (cp_parser_gnu_attribute_list): Replace cp_parser_attribute_list. - (cp_parser_postfix_expression): Disallow "[[" tokens here. - (cp_parser_label_for_labeled_statement): Use take an extra - parameter for attributes. - (cp_parser_block_declaration): Use - cp_nth_tokens_can_be_std_attribute_p here. - (cp_parser_decl_specifier_seq): Likewise. Store C++11 attributes - that appears in in decl specifiers in cp_decl_specifier_seq::std_attributes. - declaration. Emit proper warning about misplaced c++11 attributes - for class type. - (cp_parser_explicit_instantiation): Adjust call to check_tag_decl. - (cp_parser_init_declarator): Parsing attributes here is no more a - GNU extension in c++-11. - (cp_parser_type_specifier_seq): Use - cp_next_tokens_can_be_attribute_p. - (cp_parser_direct_declarator): Likewise. Hang c++11 attributes - following the declarator to its syntactic construct. It'll later - be applied to the proper appertaining entity by grokdeclarator. - (cp_parser_ptr_operator): Likewise. - (make_declarator): Initialize cp_declarator::std_attribute. - (make_pointer_declarator, make_reference_declarator) - (make_ptrmem_declarator, cp_parser_make_indirect_declarator): Take - attributes that appertain to the pointer/reference in argument. - (cp_parser_ptr_operator): Take an out parameter for c++11 - attributes. Update comments. - (cp_parser_new_declarator_opt) - (cp_parser_conversion_declarator_opt): Adjust. - (cp_parser_declarator): Likewise. Handle C++11 attributes. - Rename attributes to gnu_attribute for better legibility. - (cp_parser_simple_declaration): Update comment. - (cp_parser_class_specifier_1): Parse GNU attributes specifically - (cp_parser_enum_specifier): Accept only gnu attributes after the - specifier. - (cp_parser_member_declaration): Don't clear attributes -- intended - for the entity being declared -- too early because check_tag_decl - needs them. - (cp_parser_statement): Update comment. Parse optional c++11 - attributes at the beginning of the relevant kind of statements and - ignore them, for now, unless when calling - cp_parser_label_for_labeled_statement. - (cp_parser_label_for_labeled_statement): Take c++11 attributes - in parameter. - * semantics.c (potential_constant_expression_1): Likewise. - * typeck.c (fundamental_alignment_p, cxx_alignas_expr): New public - functions. - -2012-10-07 Paolo Carlini - - * pt.c (fold_non_dependent_expr_sfinae): Remove static specifier. - (tsubst_copy_and_build): Use get_target_expr_sfinae. - * call.c (build_conditional_expr_1, convert_like_real): Likewise. - * cvt.c (build_up_reference): Likewise. - (ocp_convert): Use abstract_virtuals_error_sfinae. - (build_up_reference): Propagate complain to cp_build_addr_expr. - * decl.c (compute_array_index_type): Use fold_non_dependent_expr_sfinae. - * cp-tree.h: Update declarations. - - * cvt.c (build_expr_type_conversion): Tidy. - - * tree.c (stabilize_aggr_init): Change to static. - -2012-10-07 Paolo Carlini - - PR c++/51422 - * semantics.c (is_normal_capture_proxy): Return true for - error_mark_node as DECL_VALUE_EXPR. - -2012-10-05 Jakub Jelinek - - * cp-tree.h (SIZEOF_EXPR_TYPE_P): Define. - * tree.c (cp_tree_equal): Handle SIZEOF_EXPR with - SIZEOF_EXPR_TYPE_P. - * mangle.c (write_expression): Likewise. - * cxx-pretty-print.c (pp_cxx_unary_expression): Likewise. - * error.c (dump_expr): Likewise. - * parser.c (cp_parser_unary_expression): For sizeof call - cxx_sizeof_or_alignof_{type,expr} just for diagnostics and - return SIZEOF_EXPR with the operand. - * pt.c (tsubst_copy, tsubst_copy_and_build): For SIZEOF_EXPR, - call cxx_sizeof_or_alignof_{type,expr} for diagnostics, but - return SIZEOF_EXPR with tsubsted operand. - (value_dependent_expression_p): Handle SIZEOF_EXPR with - SIZEOF_EXPR_TYPE_P. - (instantiation_dependent_r): Likewise. - * call.c (null_ptr_cst_p): Call maybe_constant_value for C++98. - * semantics.c (finish_call_expr): Call - sizeof_pointer_memaccess_warning if needed. - (cxx_eval_constant_expression): Handle SIZEOF_EXPR. - (potential_constant_expression_1): Remove early exit for - C++98. Handle PROPERTY_REF. - * decl.c (duplicate_decls): When redeclaring a builtin function, - keep the merged decl builtin also if newdecl is a gnu_inline - inline definition. - (fold_sizeof_expr_r): New function. - (compute_array_index_type): Fold SIZEOF_EXPRs in itype. - * cp-gimplify.c (cp_genericize_r): Fold SIZEOF_EXPR. - * typeck.c (cp_build_binary_op): For warn_for_sign_compare - try harder using maybe_constant_value to get INTEGER_CSTs. - - * decl.c (stabilize_vla_size): Call pointer_set_destroy - at the end. - -2012-10-04 Arnaud Charlet - - * decl2.c (cp_write_global_declarations): Fix handling of - -fdump-ada-spec*. - -2012-10-03 Jakub Jelinek - - PR c++/54777 - * semantics.c (cxx_eval_constant_expression) : If - not ignoring the second operand, pass the original second operand - and not one with stripped nops to cxx_eval_constant_expression. - -2012-10-01 Jason Merrill - - * decl.c (check_initializer): Set DECL_NONTRIVIALLY_INITIALIZED_P - for a constructor call. - (decl_jump_unsafe): So don't bother checking - type_has_nontrivial_default_init. - * call.c (set_up_extended_ref_temp): Set - DECL_NONTRIVIALLY_INITIALIZED_P. - - * cp-tree.h (TYPE_FUNCTION_OR_TEMPLATE_DECL_CHECK): New. - (DECL_FRIEND_P, DECL_ANTICIPATED): Use it. - (TYPE_FUNCTION_OR_TEMPLATE_DECL_P): New. - * name-lookup.c (hidden_name_p): Use it. - - * cp-tree.h (DECL_PRETTY_FUNCTION_P): Just look at the name. - * decl.c (cp_make_fname_decl): Adjust. - -2012-09-30 Sharad Singhai - - * decl2.c (cp_write_global_declarations): Use a different method - to determine if the dump has ben initialized. - -2012-09-29 Paolo Carlini - - PR c++/54738 - * decl2.c (build_offset_ref_call_from_tree): Add tsubst_flags_t - parameter. - * pt.c (tsubst_copy_and_build): Adjust. - * parser.c (cp_parser_postfix_expression): Likewise. - * cp-tree.h: Adjust declaration. - -2012-09-28 Dodji Seketeli - - PR c++/54372 - unused attribute inactive on dependant entities - * decl2.c (is_late_template_attribute): "unused" attribute is to - be applied at compile time. - -2012-09-25 Dodji Seketeli - - PR c++/29028 - Missed unused warning on using declaration - * decl.c (poplevel): Do not forget that some local - bindings are represented by a TREE_LIST. - -2012-09-25 Dodji Seketeli - - PR c++/53551 - -Wunused-local-typedefs misses uses - * decl.c (make_typename_type): Record the use of typedefs. - -2012-09-27 Jakub Jelinek - - * init.c (build_new_1): Don't test TREE_CONSTANT - of INTEGER_CST. - -2012-09-25 Paolo Carlini - - PR c++/54526 - * parser.c (cp_parser_template_id): In C++11 mode simply accept - X<::A>. - -2012-09-25 Zhenqiang Chen - - PR c++/50970 - * typeck.c (cp_build_binary_op): Check side effects before generating - pfn and delta related expressions. - -2012-09-24 Lawrence Crowl - - * init.c (build_new_1): Change to new double_int API. - * decl.c (build_enumerator): Likewise. - * typeck2.c (process_init_constructor_array): Likewise. - * mangle.c (write_array_type): Likewise. - -2012-09-24 Paolo Carlini - - PR c++/50828 - * error.c (dump_function_decl): Strip TFF_TEMPLATE_NAME from flags - at the outset. - -2012-09-24 Jason Merrill - - * decl.c (get_atexit_node): Remove dead code. - - * Make-lang.in (cp/parser.o): Depend on decl.h. - -2012-09-20 Paolo Carlini - - PR c++/52432 - * pt.c (tsubst_copy_and_build): If tf_error is not set in the complain - argument don't call unqualified_name_lookup_error. - -2012-09-19 Marc Glisse - - PR c++/54581 - * semantics.c (finish_decltype_type): Make vectors not opaque. - -2012-09-17 Jason Merrill - - PR c++/54575 - * pt.c (instantiate_alias_template): New. - (tsubst): Use it. - (push_access_scope): Allow TYPE_DECL. - -2012-09-14 Jason Merrill - - PR c++/53661 - * typeck2.c (check_narrowing): Avoid false positives on conversion - from enumeral type. - -2012-09-14 Marc Glisse - - PR c++/54427 - * typeck.c (cp_build_binary_op) [LSHIFT_EXPR, RSHIFT_EXPR, EQ_EXPR, - NE_EXPR, LE_EXPR, GE_EXPR, LT_EXPR, GT_EXPR]: Handle VECTOR_TYPE. - -2012-09-14 Paolo Carlini - - * decl.c (make_typename_type): Only error out if tf_error is set - in complain. - -2012-09-13 Paolo Carlini - Manuel López-Ibáñez - - PR c++/53210 - * init.c (perform_member_init): Use OPT_Winit_self instead of - OPT_Wuninitialized. - -2012-09-13 Paolo Carlini - - * typeck.c (build_indirect_ref, build_function_call, - build_function_call_vec, build_binary_op, build_unary_op, - build_compound_expr, build_c_cast, build_modify_expr): Remove - uses of ATTRIBUTE_UNUSED on the parameters. - * class.c (set_linkage_according_to_type, resort_type_method_vec, - dfs_find_final_overrider_post, empty_base_at_nonzero_offset_p): - Likewise. - * decl.c (local_variable_p_walkfn): Likewise. - * except.c (wrap_cleanups_r, check_noexcept_r): Likewise. - * error.c (find_typenames_r): Likewise. - * tree.c (verify_stmt_tree_r, bot_replace, - handle_java_interface_attribute, handle_com_interface_attribute, - handle_init_priority_attribute, c_register_addr_space): Likewise. - * cp-gimplify.c (cxx_omp_clause_default_ctor): Likewise. - * cp-lang.c (objcp_tsubst_copy_and_build): Likewise. - * pt.c (unify_success, unify_invalid, instantiation_dependent_r): - Likewise. - * semantics.c (dfs_calculate_bases_pre): Likewise. - * decl2.c (fix_temporary_vars_context_r, clear_decl_external): - Likewise. - * parser.c (cp_lexer_token_at, cp_parser_omp_clause_mergeable, - cp_parser_omp_clause_nowait, cp_parser_omp_clause_ordered, - cp_parser_omp_clause_untied): Likewise. - * mangle.c (write_unnamed_type_name, - discriminator_for_string_literal): Likewise. - * search.c (dfs_accessible_post, dfs_debug_mark): Likewise. - * lex.c (handle_pragma_vtable, handle_pragma_unit, - handle_pragma_interface, handle_pragma_implementation, - handle_pragma_java_exceptions): Likewise. - -2012-09-13 Jason Merrill - - PR c++/53839 - * semantics.c (cxx_eval_indirect_ref): If we aren't looking for an - address, make sure the value is constant. - - PR c++/54511 - * pt.c (tsubst_decl) [VAR_DECL]: Handle DECL_ANON_UNION_VAR_P. - - PR c++/53836 - * pt.c (value_dependent_expression_p): A TREE_LIST initializer must - be dependent. - -2012-09-10 Paolo Carlini - - PR c++/54541 - PR c++/54542 - * call.c (build_cxx_call): Add tsubst_flags_t parameter, use - require_complete_type_sfinae. - (build_op_delete_call, build_over_call): Adjust. - * typeck.c (build_x_compound_expr_from_vec): Add tsubst_flags_t - parameter. - (cp_build_function_call_vec): Adjust. - * init.c (build_new_1): Likewise. - * rtti.c (throw_bad_cast, throw_bad_typeid, build_dynamic_cast_1): - Likewise. - * optimize.c (build_delete_destructor_body): Likewise. - * cp-tree.h: Adjust declarations. - - * call.c (convert_arg_to_ellipsis): Use require_complete_type_sfinae. - -2012-09-10 Jason Merrill - - PR c++/54538 - PR c++/53783 - * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Go back to using RECUR - for LAMBDA_EXPR_EXTRA_SCOPE except for function scope. - - PR c++/54506 - * decl.c (move_signature_fn_p): Split out from move_fn_p. - * method.c (process_subob_fn): Use it. - * cp-tree.h: Declare it. - -2012-09-07 Jason Merrill - - * semantics.c (sort_constexpr_mem_initializers): Tweak. - -2012-09-09 Mark Kettenis - - * decl.c (reshape_init_class): Avoid dereferencing a - past-the-end pointer. - -2012-09-07 Paolo Carlini - - * pt.c (num_template_headers_for_class): Rework per the code - inline in cp_parser_check_declarator_template_parameters. - * parser.c (cp_parser_check_declarator_template_parameters): - Use num_template_headers_for_class. - -2012-09-06 Jason Merrill - - PR c++/54341 - PR c++/54253 - * semantics.c (sort_constexpr_mem_initializers): New. - (build_constexpr_constructor_member_initializers): Use it. - (cx_check_missing_mem_inits): Skip artificial fields. - * init.c (expand_aggr_init_1): Don't zero out a class - with no data. - -2012-09-05 Paolo Carlini - - PR c++/54191 - * search.c (lookup_base): Add tsubst_flags_t parameter. - (adjust_result_of_qualified_name_lookup, check_final_overrider): - Adjust. - * name-lookup.c (do_class_using_decl): Adjust. - * typeck2.c (binfo_or_else, build_scoped_ref, build_m_component_ref): - Likewise. - * cvt.c (cp_convert_to_pointer, convert_to_pointer_force, - build_up_reference): Likewise. - * rtti.c (build_dynamic_cast_1): Likewise. - * tree.c (maybe_dummy_object): Likewise. - * call.c (build_conditional_expr_1, build_over_call): Likewise. - * cp-tree.h (UNIQUELY_DERIVED_FROM_P, PUBLICLY_UNIQUELY_DERIVED_P): - Remove. - (enum base_access_flags, ba_quiet): Remove. - (uniquely_derived_from_p, publicly_uniquely_derived_p): Declare. - * except.c (can_convert_eh): Adjust. - * decl.c (grokdeclarator): Likewise. - * typeck.c (comp_except_types, build_class_member_access_expr, - finish_class_member_access_expr, get_member_function_from_ptrfunc, - build_static_cast_1, get_delta_difference_1): Likewise. - * class.c (build_base_path, convert_to_base, build_vtbl_ref_1, - warn_about_ambiguous_bases): Likewise. - (uniquely_derived_from_p, publicly_uniquely_derived_p): Define. - -2012-09-04 Jason Merrill - - PR c++/54441 - * decl.c (reshape_init_class): Handle invalid initializer for - 0-length array member. - - * error.c (dump_type_suffix): Correct handling of 0-length arrays. - - PR c++/54420 - * cp-tree.h (LAMBDANAME_P): Remove. - (LAMBDA_TYPE_P): Check CLASSTYPE_LAMBDA_EXPR instead. - * cp-lang.c (cxx_dwarf_name): Likewise. - * error.c (dump_aggr_type): Likewise. - * semantics.c (begin_lambda_type): Set CLASSTYPE_LAMBDA_EXPR sooner. - - PR c++/54198 - * decl.c (check_default_argument): Set cp_unevaluated_operand - around call to perform_implicit_conversion_flags. - - PR c++/54437 - PR c++/51213 - * pt.c (fn_type_unification): Call coerce_template_parms before - entering substitution context. - -2012-08-31 Paolo Carlini - Jason Merrill - - PR c++/18747 - * pt.c (check_template_variable): New. - (num_template_headers_for_class): Split out... - * decl.c (grokdeclarator): ...from here. - (start_decl): Remove redundant diagnostic. - * cp-tree.h: Declare them - * parser.c (cp_parser_single_declaration): Call check_template_variable. - -2012-08-31 Ollie Wild - - PR c++/54197 - * call.c (extend_ref_init_temps_1): Handle COMPOUND_EXPR trees. - -2012-08-30 Jason Merrill - - PR c++/50545 - PR c++/51222 - * pt.c (instantiation_dependent_r): New. - (instantiation_dependent_expression_p): New. - (value_dependent_expression_p): Use it. SCOPE_REF is always dependent. - * semantics.c (finish_decltype_type): Use it. - * cp-tree.h: Declare it. - - * semantics.c (finish_qualified_id_expr): Handle building up a - non-dependent SCOPE_REF here. - (finish_id_expression): Not here. - * error.c (dump_decl) [SCOPE_REF]: Only pass TFF_UNQUALIFIED_NAME. - - * friend.c (make_friend_class): Handle template template parameters. - * parser.c (cp_parser_template_declaration_after_export): Likewise. - * pt.c (tsubst_friend_class): Likewise. - (instantiate_class_template_1): Likewise - * decl.c (check_elaborated_type_specifier): Likewise. - (lookup_and_check_tag): Likewise. - - * pt.c (get_class_bindings): Call coerce_template_parms. Add - main_tmpl parameter. - (more_specialized_class): Add main_tmpl parameter. - (most_specialized_class): Adjust calls. - - * decl.c (cp_finish_decl): Check for invalid multiple initializers - even if the initializer is dependent. - - * pt.c (instantiate_template_1): Keep processing_template_decl set - if there are dependent args. - -2012-08-25 Paolo Carlini - - PR c++/51421 - * decl2.c (mark_used): Consistently return false after errors - about uses before deduction of auto. - * semantics.c (finish_id_expression): Check mark_used return - value and return error_mark_node in case of failure. - -2012-08-24 Jason Merrill - - PR c++/51213 (again) - * pt.c (deduction_tsubst_fntype): Remove. - (fn_type_unification): Check deduction depth and call - instantiate_template here. Handle default argument access checks. - (determine_specialization): Suppress access control. - (tsubst_decl): Check for excessive deduction depth. - (recheck_decl_substitution): Make sure access control is on. - (type_unification_real): Don't mess with access deferring here. - (get_bindings): Adjust for fn_type_unification return type. - * call.c (enum rejection_reason_code): Drop rr_template_instantiation. - (template_instantiation_rejection): Remove. - (struct rejection_reason): Change targs to num_targs. - (template_unification_rejection, print_z_candidate): Adjust. - (add_template_candidate_real): Adjust for fn_type_unification change. - * class.c (resolve_address_of_overloaded_function): Likewise. - * cp-tree.h: Adjust declaration. - - * pt.c (tsubst_default_argument): Indicate where the default - argument is being instantiated for. - (tsubst_expr): Restore previous location. - (tsubst_copy_and_build): Set and restore location. - * call.c (build_new_method_call_1): Remember location of call. - * semantics.c (finish_call_expr): Here too. - * parser.c (cp_parser_omp_for_loop): Remember the location of the - increment expression. - - * pt.c (resolve_overloaded_unification): Use coerce_template_parms - instead of get_bindings. - (resolve_nondeduced_context): Likewise. - - * pt.c (register_specialization): Correct argument to - check_specialization_namespace. - (determine_specialization): Don't consider members of - unspecialized types. - -2012-08-23 Jason Merrill - - * decl.c (compute_array_index_type): Use type_dependent_expression_p. - -2012-08-23 Paolo Carlini - - PR c++/20420 - * name-lookup.c (supplement_binding_1): Handle specially enums - only in class templates. - (validate_nonmember_using_decl): Enforce 7.3.3/10 about duplicate - using declarations at function scope. - -2012-08-21 Richard Guenther - - * cp-tree.h (TREE_INDIRECT_USING): Use TREE_LANG_FLAG_0 accessor. - (ATTR_IS_DEPENDENT): Likewise. - (ARGUMENT_PACK_INCOMPLETE_P): Use TREE_ADDRESSABLE instead of - TREE_LANG_FLAG_0 on TREE_VECs. - -2012-08-20 Florian Weimer - - PR c++/19351 - * call.c (build_operator_new_call): Add size_check argument and - evaluate it. - * cp-tree.h (build_operator_new_call): Adjust declaration. - * init.c (build_new_1): Compute array size check and apply it. - -2012-08-20 Paolo Carlini - - PR c++/10416 - * decl.c (poplevel): Check TYPE_HAS_NONTRIVIAL_DESTRUCTOR for - Wunused_variable too. - -2012-08-20 Diego Novillo - - * decl.c (poplevel): Start TV_NAME_LOOKUP conditionally. - -2012-08-20 Richard Guenther - - * name-lookup.c (store_binding_p): New predicate, split out from ... - (store_binding): ... here. Always store binding and require - target vector with enough space. - (store_bindings): Collect to store bindings and reserve space - for them, then store them. - (store_class_bindings): Likewise. - -2012-08-19 Mikael Morin - - * Make-lang.in: Fix typo. - -2012-08-17 Jakub Jelinek - - * cp-tree.def (SIZEOF_EXPR): Move to c-common.def. - -2012-08-14 Diego Novillo - - Merge from cxx-conversion branch. Re-write VEC in C++. - - * call.c (add_function_candidate): Remove const qualifier - from call to VEC_index. - -2012-08-10 Richard Guenther - - * error.c (dump_expr): Handle anonymous SSA names. - -2012-08-07 Steven Bosscher - - * error.c (print_instantiation_context): Pretty-print a newline before - diagnostic_flush_buffer. - * cxx-pretty-print.c (pp_cxx_function_definition): Use - pp_newline_and_flush instead of separate pp_newline and pp_flush. - -2012-08-06 Dodji Seketeli - - Avoid crashing on erroneous static_assert usage - * semantics.c (finish_static_assert): Don't crash on erroneous - message or condition. - -2012-08-06 Marc Glisse - Paolo Carlini - - PR c++/54165 - * typeck.c (build_static_cast_1): Move the conversion to void case - before the perform_direct_initialization_if_possible call. - -2012-08-03 Marc Glisse - - * pt.c (tsubst_copy_and_build): Handle VECTOR_TYPE like scalars. - * cp-tree.h (scalarish_type_p): Declare. - * tree.c (scalarish_type_p): Make non-static. - -2012-08-02 Jason Merrill - Paolo Carlini - - PR c++/51213 (again) - * pt.c (type_unification_real): Call push_deferring_access_checks / - pop_deferring_access_checks around the substitution of default - template args. - (instantiate_template_1): When the specialization returned by - retrieve_specialization has FNDECL_HAS_ACCESS_ERRORS set and we - are in a SFINAE context, simply return error_mark_node. - * cp-tree.h (FNDECL_RECHECK_ACCESS_P): Rename FNDECL_HAS_ACCESS_ERRORS. - -2012-07-31 Paolo Carlini - - * pt.c (check_default_tmpl_args): Change is_primary and is_partial - parameters to bool type, adjust. - (push_template_decl_real): Tidy. - * parser.c (cp_parser_init_declarator): Adjust. - * decl.c (redeclaration_error_message): Likewise. - * cp-tree.h (check_default_tmpl_args): Update prototype. - -2012-07-31 Paolo Carlini - - PR c++/53624 - * pt.c (check_default_tmpl_args): Don't check local types. - -2012-07-25 Sandra Loosemore - Paul Brook - - PR target/53633 - * decl.c (finish_function): Check targetm.warn_func_return. - -2012-07-25 Jason Merrill - - PR c++/54086 - * decl.c (grokdeclarator): Allow const and constexpr together. - - PR c++/54020 - * semantics.c (potential_constant_expression_1) [COND_EXPR]: Call - maybe_constant_value. - - * cp-tree.h (tsubst_flags): Remove tf_no_access_control. - * call.c (standard_conversion): Don't set it. - * class.c (resolve_address_of_overloaded_function): Don't check it. - * decl.c (check_default_argument): Call - perform_implicit_conversion_flags. - - * pt.c (print_candidates_1): Use inform instead of error. - -2012-07-24 Paolo Carlini - - * pt.c (convert_template_argument, tsubst): Simplify fourth argument - to make_typename_type (complain & tf_error -> complain). - -2012-07-24 Steven Bosscher - - * class.c (n_vtables, n_vtable_entries, n_vtable_searches, - n_vtable_elems, n_convert_harshness, n_compute_conversion_costs, - n_inner_fields_searched): Always define. - (build_primary_vtable): Convert #ifdef GATHER_STATISTICS to if-code. - (print_class_statistics): Convert #ifdef GATHER_STATISTICS to if-code. - * tree.c (depth_reached): Always define global. - (cxx_print_statistics): Convert #ifdef GATHER_STATISTICS to if-code. - * pt.c (depth_reached): Always define. - (push_tinst_level): Convert #ifdef GATHER_STATISTICS to if-code. - * search.c (n_fields_searched, n_calls_lookup_field, - n_calls_lookup_field_1, n_calls_lookup_fnfields, - n_calls_lookup_fnfields_1, n_calls_get_base_type, - n_outer_fields_searched, n_contexts_saved): Always define. - (lookup_field_1): Convert #ifdef GATHER_STATISTICS to if-code. - (lookup_member): Likewise. - (lookup_fnfields_idx_nolazy): Likewise. - (print_search_statistics): Likewise. - (reinit_search_statistics): Unconditionally re-set counters. - * lex.c (retrofit_lang_decl): Convert #ifdef GATHER_STATISTICS - to if-code. - (cxx_dup_lang_specific_decl): Likewise. - (copy_lang_type): Likewise. - (cxx_make_type): Likewise. - -2012-07-20 Jason Merrill - - PR c++/54038 - * tree.c (build_cplus_array_type): Use build_cplus_array_type to build - canonical array type rather than mess with its TYPE_*_VARIANT. - -2012-07-19 Jason Merrill - - PR c++/54026 - * typeck.c (cp_apply_type_quals_to_decl): Check COMPLETE_TYPE_P. - - PR c++/54021 - * call.c (build_cxx_call): Set optimize when folding - __builtin_constant_p in a constexpr function. - -2012-07-18 Jason Merrill - - * pt.c (instantiate_decl): Don't recheck substitutions. - -2012-07-18 Paolo Carlini - Jason Merrill - - DR 1170 - PR c++/51213 - * semantics.c (perform_access_checks): Add complain parm, return bool. - (perform_deferred_access_checks): Likewise. - (perform_or_defer_access_check): Likewise. - (speculative_access_check): Remove. - * call.c (enforce_access): Add complain parm, return bool. - * decl.c, friend.c, class.c, init.c, parser.c: Adjust callers. - * search.c: Adjust callers. - * cp-tree.h (TINFO_RECHECK_ACCESS_P): New macro. - (FNDECL_RECHECK_ACCESS_P): New macro. - * method.c (synthesized_method_walk): Stop deferring access checks. - * pt.c (recheck_decl_substitution): New. - (instantiate_template_1): Set and check FNDECL_RECHECK_ACCESS_P. - -2012-07-18 Jason Merrill - - * method.c (process_subob_fn): Make sure no_implicit_p is non-null - before trying to store through it. - -2012-07-17 Jason Merrill - - PR c++/53995 - * decl.c (finish_enum_value_list): Only call - insert_late_enum_def_into_classtype_sorted_fields in class scope. - - PR c++/53989 - * tree.c (build_cplus_array_type): Also add TYPE_CANONICAL - to the list of variants. - - * decl.c (xref_basetypes): Complain about incomplete template base. - * class.c (finish_struct): Adjust variants in templates, too. - - PR c++/53549 - * parser.c (cp_parser_class_head): Call xref_basetypes here. - (cp_parser_class_specifier_1): Not here. - * pt.c (tsubst_decl) [USING_DECL]: Check uses_template_parms - as well as DECL_DEPENDENT_P. - -2012-07-16 Jason Merrill - - * cp-tree.h (struct deferred_access_check): Add location. - * semantics.c (perform_access_checks): Use it. - (perform_or_defer_access_check): Store it. - -2012-07-16 Steven Bosscher - - * dump.c (dump_stmt): Moved here from c-dump.c. - * optimize.c: Include dumpfile.h instead of tree-dump.h. - * class.c: Likewise. - * decl2.c: Likewise. - * Make-lang.in: Fix dependencies. - -2012-07-13 Jason Merrill - - PR c++/53953 - * method.c (synthesized_method_walk): Initialize no_implicit_p sooner. - -2012-07-12 Jason Merrill - - * pt.c (instantiate_decl): Check typedefs access here. - (instantiate_template_1): Not here. - - * pt.c (deduction_tsubst_fntype): Just suppress access checking. - (instantiate_template_1): Set DECL_TI_TEMPLATE before access checking. - (push_deduction_access_scope, pop_deduction_access_scope): Remove. - -2012-07-11 Jason Merrill - - DR 1402 - * method.c (synthesized_method_walk): Replace uses of msg with diag. - Correct handling of virtual bases with move operations. - (process_subob_fn, walk_field_subobs): Replace uses of msg with diag. - -2012-07-11 Steven Bosscher - - * method.c: Do not include tree-pass.h. - -2012-07-10 Jason Merrill - - DR 1402 - PR c++/53733 - * cp-tree.h (FNDECL_SUPPRESS_IMPLICIT_DECL): New. - (struct lang_decl_fn): Add suppress_implicit_decl field. - * method.c (implicitly_declare_fn): Check it. - (process_subob_fn): Add no_implicit_p parm. - (walk_field_subobs, synthesized_method_walk): Likewise. - (maybe_explain_implicit_delete): Adjust. - (explain_implicit_non_constexpr): Adjust. - - * method.c (synthesized_method_walk): Avoid changing - EH spec based on cleanups in other places, too. - -2012-07-09 Sterling Augustine - - * error.c (lang_decl_name): Use TFF_UNQUALIFIED_NAME flag. - -2012-07-08 Steven Bosscher - - * decl.c (cp_finish_decl): Add FIXME at add_local_decl call site. - -2012-07-06 Jason Merrill - - PR c++/53862 - * pt.c (tsubst_arg_types): Add "end" parameter. - (check_undeduced_parms): Use it. - - * cp-tree.h (DECL_DECLARES_TYPE_P): Check DECL_TYPE_TEMPLATE_P. - - PR c++/53858 - * name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P. - -2012-07-05 Jason Merrill - - PR c++/53039 - * pt.c (arg_from_parm_pack_p): Go back to using same_type_p or - cp_tree_equal. - - * cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove. - (struct template_parm_index_s): Remove num_siblings. - * pt.c (fixup_template_parms, fixup_template_parm_index): Remove. - (fixup_template_type_parm_type): Remove. - (build_template_parm_index): Remove num_siblings parm. - (process_template_parm): Likewise. - * parser.c (cp_parser_template_parameter_list): Adjust. - * tree.c (cp_tree_equal): Don't compare num_siblings. - * typeck.c (comp_template_parms_position): Likewise. - - PR c++/50852 - PR c++/53039 - * tree.c (strip_typedefs_expr): New. - * cp-tree.h: Declare it. - * pt.c (convert_template_argument, unify): Use it. - * parser.c (cp_parser_template_declaration_after_export): Don't call - fixup_template_parms. - -2012-07-04 Jason Merrill - - PR c++/53848 - PR c++/53524 - * decl.c (build_enumerator): Don't use build_lang_decl_loc. - -2012-07-03 Jakub Jelinek - - PR c++/53812 - * semantics.c (finish_goto_stmt): Surround computed goto argument - with CLEANUP_POINT_EXPR if needed. - -2012-07-02 Jason Merrill - - PR c++/53619 - * pt.c (in_template_function): New. - * cp-tree.h: Declare it. - * class.c (build_base_path, resolves_to_fixed_type_p): Use it. - - PR c++/53783 - * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Use tsubst - for LAMBDA_EXPR_EXTRA_SCOPE. - - PR c++/53788 - * pt.c (build_non_dependent_expr): Don't wrap a dummy object. - - PR c++/53816 - * class.c (resolves_to_fixed_type_p): Check uses_template_parms - (current_function_decl) instead of processing_template_decl. - - PR c++/53821 - * semantics.c (maybe_add_lambda_conv_op): Don't set - DECL_INTERFACE_KNOWN. - - PR c++/53524 - * call.c (build_conditional_expr_1): Don't warn about comparison of - two enumerators before their enumeration is complete. - (build_new_op_1): Call decay_conversion before warn_logical_operator. - * decl.c (build_enumerator): Set DECL_CONTEXT of an enumerator to - its enumeration. - * decl2.c (mark_used): Call used_types_insert for enums. - * semantics.c (finish_id_expression): Don't decay CONST_DECL. - (finish_member_declaration): Don't change DECL_CONTEXT of enumerators. - * class.c (check_field_decls): Don't change DECL_CONTEXT of enums. - * typeck.c (convert_for_assignment): Don't decay CONST_DECL. - (build_class_member_access_expr): Look through unscoped enums. - * search.c (context_for_name_lookup): Look through unscoped enums. - * pt.c (tsubst_copy_and_build): Don't decay CONST_DECL. - (tsubst_copy): Use DECL_CONTEXT to find the enumeration. - * tree.c (decl_linkage): Likewise. - * cvt.c (ocp_convert): Check decayed expr for enum range warning. - -2012-06-29 Steven Bosscher - - * Make-lang.in: Remove tree-mudflap.o from CXX_AND_OBJCXX_OBJS. - -2012-06-27 Jason Merrill - - * parser.c (cp_parser_check_for_invalid_template_id): tag_type parm. - (cp_parser_simple_type_specifier, cp_parser_class_head): Adjust. - (cp_parser_elaborated_type_specifier): Adjust. - * decl.c (duplicate_decls): Return error_mark_node on template - mismatch. - - PR c++/53563 - * parser.c (cp_parser_template_id): Add tag_type parm. - (cp_parser_template_name): Likewise. - (cp_parser_id_expression, cp_parser_unqualified_id): Adjust. - (cp_parser_pseudo_destructor_name, cp_parser_type_name): Adjust. - (cp_parser_simple_type_specifier, cp_parser_class_name): Adjust. - (cp_parser_elaborated_type_specifier, cp_parser_class_head): Adjust. - -2012-06-27 Ramana Radhakrishnan - - PR C++/51033 - * semantics.c (constexpr_call): Fix typo in comment. - (cxx_eval_vec_perm_expr): New. - (cxx_eval_constant_expression): Fold VEC_PERM_EXPRs. - -2012-06-26 Richard Guenther - - PR c++/53752 - * mangle.c (write_array_type): Truncate the number-of-elements - result. - -2012-06-25 Jason Merrill - - PR c++/53498 - PR c++/53305 - * pt.c (tsubst_decl) [PARM_DECL]: Don't recurse into DECL_CHAIN - if cp_unevaluated_operand is set. - (tsubst_copy) [PARM_DECL]: Don't copy before tsubsting. - - PR c++/52988 - * typeck.c (decay_conversion): Don't discard side-effects from - expressions of nullptr_t. - -2012-06-25 Florian Weimer - - * init.c (build_new_1): Warn about (T[N]) for variable N, and - reject T[M][N]. - - * parser.c (cp_parser_direct_new_declarator): Accept non-constant - expressions. Handled now in build_new_1. - -2012-06-25 Jason Merrill - - PR c++/53202 - * semantics.c (build_data_member_initialization): Always keep - initializer for empty base. - (cxx_eval_bare_aggregate): Discard it here. - - PR c++/53565 - * pt.c (tsubst_omp_for_iterator): Simplify DECL_EXPR handling. - (tsubst_expr) [OMP_FOR]: Here, too. - -2012-06-25 Jakub Jelinek - - PR c++/53594 - * class.c (check_bases_and_members): Avoid -Wuninitialized - diagnostics for non-static const members or references if they - use NSDMI. - -2012-06-16 Ville Voutilainen - - * parser.c (cp_parser_direct_declarator): Move virt-specifier - parsing after late-specified return type parsing. - -2012-06-14 Jason Merrill - - PR c++/53651 - * name-lookup.c (constructor_name_p): Don't try to look at the - name of a DECLTYPE_TYPE. - -2012-06-18 Lawrence Crowl - - * decl2.c (cp_write_global_declarations): Rename use of TV_PHASE_CGRAPH - to TV_PHASE_OPT_GEN. - -2012-06-18 Steven Bosscher - - * decl.c (finish_function): Remove code conditional on VMS_TARGET. - -2012-06-15 Marc Glisse - - PR c++/51033 - * semantics.c (literal_type_p): Handle VECTOR_TYPE. - (potential_constant_expression_1): Handle VEC_PERM_EXPR. - * parser.c (cp_parser_postfix_expression): Handle RID_BUILTIN_SHUFFLE. - -2012-06-09 Jason Merrill - - * pt.c (tsubst_expr) [TAG_DEFN]: Instantiate local class. - * class.c (finish_struct): Don't add a TAG_DEFN for a lambda. - * decl2.c (finish_static_data_member_decl): Avoid redundant error. - - PR c++/53599 - * name-lookup.c (pushtag_1): Add a DECL_EXPR for a local class. - * semantics.c (finish_cond): Build a COMPOUND_EXPR. - * pt.c (tsubst_expr) [COMPOUND_EXPR]: Handle. - [DECL_EXPR]: Don't call cp_finish_decl for an implicit typedef. - Don't return the decl. - -2012-06-11 Richard Guenther - - PR c++/53605 - * mangle.c (write_array_type): Use double-ints for array domain - arithmetic. - -2012-06-07 Fabien Chêne - - PR c++/51214 - * cp-tree.h (insert_late_enum_def_into_classtype_sorted_fields): - Declare. - * class.c (insert_into_classtype_sorted_fields): New. - (add_enum_fields_to_record_type): New. - (count_fields): Adjust the comment. - (add_fields_to_record_type): Likewise. - (finish_struct_1): Move the code that inserts the fields for the - sorted case, into insert_into_classtype_sorted_fields, and call - it. - (insert_late_enum_def_into_classtype_sorted_fields): Define. - * decl.c (finish_enum_value_list): Call - insert_late_enum_def_into_classtype_sorted_fields if a late enum - definition is encountered. - -2012-06-06 Paolo Carlini - - PR c++/53567 - * typeck.c (cp_perform_integral_promotions): New, like - perform_integral_promotions but also takes a tsubst_flags_t parameter. - (pointer_diff): Add tsubst_flags_t parameter. - (decay_conversion, cp_default_conversion, cp_build_array_ref, - cp_build_binary_op, cp_build_unary_op, build_static_cast_1, - build_reinterpret_cast_1, cp_build_modify_expr, - convert_for_assignment): Adjust. - * optimize.c (build_delete_destructor_body): Adjust. - * init.c (expand_virtual_init, expand_default_init, build_new_1, - build_new, build_vec_delete_1, build_vec_init, build_delete): Adjust. - (construct_virtual_base): Adjust LOOKUP_COMPLAIN -> 0. - * class.c (build_base_path): Adjust. - * decl.c (compute_array_index_type, finish_destructor_body): Likewise. - * method.c (synthesized_method_walk): Adjust flag and complain. - * rtti.c (ifnonnull): Add tsubst_flags_t parameter. - (build_typeid, build_dynamic_cast_1): Adjust. - * except.c (initialize_handler_parm): Likewise. - * typeck2.c (process_init_constructor_record): Likewise. - * pt.c (tsubst_friend_class): Don't change flags. - * semantics.c (finish_goto_stmt, handle_omp_for_class_iterator, - finish_static_assert): Likewise. - * parser.c (cp_parser_lookup_name): Just pass 0 as flags to - lookup_name_real. - * call.c (build_op_delete_call): Add tsubst_flags_t parameter. - (convert_like_real, convert_arg_to_ellipsis, convert_for_arg_passing): - Adjust. - (standard_conversion): Adjust LOOKUP_COMPLAIN -> 0. - (implicit_conversion): Mask out tf_error with a FIXME. - (build_user_type_conversion_1, build_new_op_1, build_over_call): Use - complain & tf_error instead of flags & LOOKUP_COMPLAIN. - * cvt.c (cp_convert_to_pointer, convert_to_pointer_force, - build_up_reference, convert_to_reference, cp_convert, - cp_convert_and_check, ocp_convert, convert_force): Add tsubst_flags_t - parameter. - (convert_to_reference, ocp_convert): Use complain & tf_error instead - of flags & LOOKUP_COMPLAIN. - (convert_force): Adjust LOOKUP_COMPLAIN -> 0. - * name-lookup.c (identifier_type_value_1, lookup_qualified_name, - lookup_name_real, lookup_function_nonclass, lookup_name, - lookup_name_prefer_type): Adjust LOOKUP_COMPLAIN -> 0. - * cp-tree.h: Adjust prototypes; remove LOOKUP_COMPLAIN. - -2012-06-06 Steven Bosscher - - * decl.c: Do not include output.h. - (start_decl): Remove code for flag_conserve_space. - -2012-06-06 Fabien Chêne - - PR c++/52841 - * parser.c (cp_parser_alias_declaration): Return earlier - if an error occured. - -2012-06-04 Paolo Carlini - - PR c++/53524 - * call.c (build_conditional_expr_1): Use OPT_Wenum_compare - to control enumeral mismatch in conditional expression too. - -2012-06-04 Sterling Augustine - - * cp-tree.h: Declare decl_as_dwarf_string, lang_decl_dwarf_name. - * cp-lang.c (cxx_dwarf_name): Call them. - -2012-06-04 Steven Bosscher - - * semantics.c: Do not include output.h. - * decl2.c: Likewise. - * friend.c: Likewise. - * typeck.c: Likewise. - * typeck2.c: Likewise. - * Make-lang.in: Fix dependencies. - -2012-06-01 Jason Merrill - - PR c++/52973 - * parser.c (cp_parser_class_head): Apply attributes here. - * semantics.c (begin_class_definition): Not here. - * cp-tree.h: Adjust. - - PR c++/52725 - * parser.c (cp_parser_binary_expression): Bail early if we're parsing - tentatively and the LHS has a parse error. - - PR c++/53137 - * pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE. - (instantiate_decl): Don't push_to_top_level for local class methods. - (instantiate_class_template_1): Or for local classes. - - PR c++/53484 - * pt.c (do_auto_deduction): Don't try to deduce from a - type-dependent initializer. - -2012-06-01 Paolo Carlini - - PR c++/26155 - * name-lookup.c (push_namespace): When error recovery is - impossible just error out in duplicate_decls. - -2012-05-31 Steven Bosscher - - * call.c: Do not include output.h. - * class.c: Likewise. - * except.c: Likewise. - * friend.c: Likewise. - * init.c: Likewise. - * lex.c: Likewise. - * method.c: Likewise. - * parser.c: Likewise. - * pt.c: Likewise. - * rtti.c: Likewise. - * search.c: Likewise. - -2012-05-30 Jason Merrill - - PR c++/53356 - * tree.c (stabilize_init): Handle stabilizing a TARGET_EXPR - representing a bitwise copy of a glvalue. - - * tree.c (stabilize_expr): Tweak logic. - - PR c++/53356 - * tree.c (stabilize_init): Side effects make the init unstable. - -2012-05-28 Paolo Carlini - - PR c++/53503 - * semantics.c (potential_constant_expression_1): Handle LTGT_EXPR. - -2012-05-26 Paolo Carlini - - PR c++/53491 - * tree.c (stabilize_expr): Handle exp of void type. - -2012-05-26 Jason Merrill - - PR c++/53220 - * call.c (convert_like_real) [ck_list]: Take array address directly. - * typeck.c (decay_conversion): Reject decay of an array compound - literal. - -2012-05-25 Paolo Carlini - - PR c++/32054 - * parser.c (cp_parser_member_declaration): A storage class is not - allowed in a declaration of an anonymous aggregate in a class scope. - -2012-05-24 Uros Bizjak - - PR obj-c++/53441 - * decl.c (grokdeclarator): Check that current_class_type is non-NULL - before calling constructor_name_p. - -2012-05-24 Paolo Carlini - - PR c++/32080 - * parser.c (cp_parser_ctor_initializer_opt_and_function_body, - cp_parser_function_body): Add a bool parameter, true when parsing - a function-try-block. - (cp_parser_function_try_block): Pass true to the above. - (cp_parser_function_definition_after_declarator, - cp_parser_function_transaction): Adjust. - -2012-05-23 Paolo Carlini - - PR c++/29185 - * decl2.c (delete_sanity): Extend 'deleting array' warning to - any array type. - -2012-05-21 Paolo Carlini - - PR c++/51184 - * decl.c (grokdeclarator): Diagnose functions returning abstract - class types as TYPENAME. - * cp-tree.h (ABSTRACT_CLASS_TYPE_P): Add. - * except.c (is_admissible_throw_operand_or_catch_parameter): Use it. - * pt.c (tsubst): Likewise. - * semantics.c (trait_expr_value): Likewise. - -2012-05-21 Paolo Carlini - - PR c++/40821 - * parser.c (cp_parser_attributes_opt): Enforce error checking of - unbalanced parentheses in the presence of tentative parsing. - -2012-05-17 Paolo Carlini - - PR c++/39681 - * parser.c (cp_parser_new_type_id): Early return error_mark_node - if the cp_parser_type_specifier_seq call has type_specifier_seq.type - error_mark_node; tidy. - (cp_parser_new_expression): Always initialize nelts to NULL_TREE to - avoid uninitialized warnings. - (cp_parser_init_declarator, cp_parser_late_parse_one_default_arg): - Call cp_parser_skip_to_end_of_statement if cp_parser_initializer - returns error_mark_node. - -2012-05-17 Paolo Carlini - - PR c++/53371 - * except.c (is_admissible_throw_operand): Rename to - is_admissible_throw_operand_or_catch_parameter and handle - catch parameter too. - (expand_start_catch_block): Use it. - (build_throw): Adjust. - -2012-05-17 Paolo Carlini - - PR c++/44516 - * typeck.c (build_x_array_ref, build_x_conditional_expr, - build_x_compound_expr, build_x_modify_expr): Add location_t parameter. - (finish_class_member_access_expr, build_x_indirect_ref, - build_x_binary_op, build_x_compound_expr_from_list, - build_x_compound_expr_from_vec): Adjust callers. - * tree.c (build_min_nt_loc): New. - (build_min_nt): Remove. - * typeck2.c (build_x_arrow): Adjust callers. - * pt.c (tsubst_qualified_id, tsubst_omp_for_iterator, - tsubst_copy_and_build): Likewise. - * semantics.c (finish_mem_initializers, handle_omp_for_class_iterator, - finish_omp_atomic): Likewise. - * decl2.c (grok_array_decl, build_anon_union_vars): Adjust. - * parser.c (cp_parser_question_colon_clause, - cp_parser_assignment_expression, cp_parser_expression, - cp_parser_template_id, cp_parser_omp_for_loop): Likewise. - * cp-tree.h: Update. - -2012-05-16 Dodji Seketeli - - PR preprocessor/7263 - * cp-tree.h (enum cp_decl_spec): Add new enumerators to cover all - the possible declarator specifiers so far. - (struct cp_decl_specifier_seq::locations): Declare new member. - (cp_decl_specifier_seq::{specs, type_location}): Remove. - (decl_spec_seq_has_spec_p): Declare new function. - * parser.c (cp_parser_check_decl_spec): Remove. - (set_and_check_decl_spec_loc): Define new static function. - (decl_spec_seq_has_spec_p): Define new public function. - (cp_parser_decl_specifier_seq, cp_parser_function_specifier_opt) - (cp_parser_type_specifier, cp_parser_simple_type_specifier) - (cp_parser_set_storage_class, cp_parser_set_decl_spec_type) - (cp_parser_alias_declaration): Set the locations for each - declspec, using set_and_check_decl_spec_loc. - (cp_parser_explicit_instantiation, cp_parser_init_declarator) - (cp_parser_member_declaration, cp_parser_init_declarator): Use the - new declspec location for specifiers. Use the new - decl_spec_seq_has_spec_p. - (cp_parser_type_specifier_seq): Use the new - set_and_check_decl_spec_loc. Stop using - cp_parser_check_decl_spec. Use the new decl_spec_seq_has_spec_p. - (, cp_parser_init_declarator): Use the new - set_and_check_decl_spec_loc. - (cp_parser_single_declaration, cp_parser_friend_p) - (cp_parser_objc_class_ivars, cp_parser_objc_struct_declaration): - Use the new decl_spec_seq_has_spec_p. - * decl.c (check_tag_decl): Use new decl_spec_seq_has_spec_p. Use - the more precise ds_redefined_builtin_type_spec location for - diagnostics about re-declaring C++ built-in types. - (start_decl, grokvardecl, grokdeclarator): Use the new - decl_spec_seq_has_spec_p. - -2012-05-15 Paolo Carlini - - PR c++/11856 - * pt.c (tsubst_copy_and_build): Increase / decrease - c_inhibit_evaluation_warnings around build_x_binary_op call. - -2012-05-12 Paolo Carlini - - * cp-tree.h (TYPE_PTRMEM_P): Rename to TYPE_PTRDATAMEM_P. - (TYPE_PTR_TO_MEMBER_P): Rename to TYPE_PTRMEM_P. - (TYPE_PTR_OR_PTRMEM_P): Add. - * typeck.c (composite_pointer_type_r, composite_pointer_type, - common_pointer_type, cp_build_indirect_ref, cp_build_binary_op, - cp_truthvalue_conversion, convert_ptrmem, build_static_cast_1, - build_reinterpret_cast_1, build_const_cast_1, comp_ptr_ttypes_real, - casts_away_constness_r, casts_away_constness): Adjust. - * init.c (build_zero_init_1): Adjust. - * class.c (check_field_decls): Likewise. - * decl.c (check_default_argument): Likewise. - * rtti.c (target_incomplete_p): Likewise. - * tree.c (zero_init_p): Likewise. - * cxx-pretty-print.c (pp_cxx_ptr_operator, - pp_cxx_abstract_declarator): Likewise. - * typeck2.c (build_m_component_ref): Likewise. - * pt.c (convert_nontype_argument, invalid_nontype_parm_type_p, - dependent_type_p_r): Likewise. - * call.c (null_member_pointer_value_p, standard_conversion, - add_builtin_candidate, build_conditional_expr_1, compare_ics): - Likewise. - * cp-objcp-common.c (cp_var_mod_type_p): Likewise. - * cvt.c (cp_convert_to_pointer, ocp_convert, - perform_qualification_conversions): Likewise. - * mangle.c (write_type): Likewise. - * name-lookup.c (arg_assoc_type): Likewise. - -2012-05-12 Paolo Carlini - - * parser.c (struct cp_parser_expression_stack_entry): Add location_t - field. - (cp_parser_binary_expression): Rework to always update at the same - time tree_type and loc. - * call.c (print_z_candidate): Add location_t parameter. - (print_z_candidates, convert_like_real, joust): Adjust. - -2012-05-11 Alexandre Oliva - - PR c++/53209 - * pt.c (tsubst_decl): Bail out if argvec is error_mark_node. - -2012-05-11 Paolo Carlini - - PR c++/53305 - * pt.c (tsubst_copy: case PARM_DECL): Return error_mark_node if - tsubst_decl returns NULL_TREE. - * cxx-pretty-print.c (pp_cxx_simple_type_specifier): Handle - BOUND_TEMPLATE_TEMPLATE_PARM. - -2012-05-10 Paolo Carlini - - PR c++/53158 - * cvt.c (ocp_convert): Error out early for void -> bool conversions. - * typeck.c (decay_conversion): Use error_at. - * call.c (build_integral_nontype_arg_conv, convert_like_real, - convert_arg_to_ellipsis, perform_implicit_conversion_flags, - initialize_reference): Likewise. - * cvt.c (warn_ref_binding): Add location_t parameter. - (cp_convert_to_pointer, convert_to_reference, ocp_convert, - convert_to_void, ): Use error_at and warning_at. - -2012-05-10 Paolo Carlini - - PR c++/53301 - * decl.c (check_default_argument): Fix typo (POINTER_TYPE_P - instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning. - -2012-05-06 Paolo Carlini - - PR c++/53152 - * call.c (op_error, build_new_op_1, build_new_op): Add location_t - parameter. - (build_conditional_expr_1): Adjust. - * typeck.c (build_x_indirect_ref, build_x_binary_op, - build_x_unary_op): Add location_t parameter. - (rationalize_conditional_expr, build_x_array_ref, - build_x_compound_expr, cp_build_modify_expr, build_x_modify_expr): - Adjust. - * typeck2.c (build_x_arrow): Add location_t parameter. - * semantics.c (finish_unary_op_expr): Likewise. - (finish_increment_expr, handle_omp_for_class_iterator): Adjust. - * decl2.c (grok_array_decl): Add location_t parameter. - * parser.c (cp_parser_postfix_open_square_expression, - cp_parser_postfix_dot_deref_expression, cp_parser_unary_expression, - cp_parser_binary_expression, cp_parser_builtin_offsetof, - do_range_for_auto_deduction, cp_convert_range_for, - cp_parser_template_argument, cp_parser_omp_for_cond): Pass the - location, adjust. - * pt.c (tsubst_copy_and_build): Adjust. - * tree.c (maybe_dummy_object): Likewise. - * cp-tree.h: Update declarations. - -2012-05-04 Paolo Carlini - - * semantics.c (cxx_eval_constant_expression, case CONVERT_EXPR): Tidy. - -2012-05-04 Paolo Carlini - - PR c++/53166 - * pt.c (instantiate_class_template_1): Increase / decrease - c_inhibit_evaluation_warnings around the tsubst_expr call - for STATIC_ASSERT_CONDITION. - (tsubst_expr, case STATIC_ASSERT): Likewise. - * typeck.c (cp_build_binary_op, case EQ_EXPR/NE_EXPR): Check - c_inhibit_evaluation_warnings in the OPT_Waddress warnings. - -2012-05-03 Paolo Carlini - - PR c++/53186 - * call.c (build_over_call): Handle final member functions - and class types. - (build_new_method_call_1): Do not handle here. - -2012-05-02 Richard Guenther - - * decl.c (grokdeclarator): Properly check for sizes that - cover more than half of the address-space. - -2012-04-30 Marc Glisse - - PR c++/51033 - * typeck.c (cp_build_array_ref): Handle VECTOR_TYPE. - * decl2.c (grok_array_decl): Likewise. - - PR c++/51314 - * parser.c (cp_parser_sizeof_operand): Require parentheses for - sizeof... - -2012-04-30 Dodji Seketeli - - Fix location for static class members - * decl.c (grokdeclarator): Use the location carried by the - declarator for the DECL of the static class member. - - Fix va_arg type location - * cp-tree.h (build_x_va_arg): Take an additional location - parameter. - * call.c (build_x_va_arg): Take a loc parameter for the location - of the type of the va_arg expression. - * parser.c (cp_parser_primary_expression): Pass the type of the - type in the va_arg expression to build_x_va_arg. - * pt.c (tsubst_copy): Adjust calls to build_x_va_arg. - - Make conversion warnings work on NULL with -ftrack-macro-expansion - * call.c (conversion_null_warnings): Use the new - expansion_point_location_if_in_system_header. - * cvt.c (build_expr_type_conversion): Likewise. - * typeck.c (cp_build_binary_op): Likewise. - -2012-04-30 Manuel López-Ibáñez - - * typeck.c (convert_for_assignment): Replace - Wmissing-format-attribute with Wsuggest-attribute=format. - * call.c (convert_for_arg_passing): Likewise. - -2012-04-26 Paolo Carlini - - PR c++/53096 - * class.c (check_bases_and_members): Implement core/1333, do not - disallow defaulted in the class body non-const ref special members. - -2012-04-24 Paolo Carlini - - PR c++/52363 - * call.c (tourney, perform_overload_resolution, - build_operator_new_call, build_user_type_conversion_1, - build_user_type_conversion, perform_overload_resolution, - add_template_candidate, add_template_candidate_real, - add_template_conv_candidate, add_builtin_candidates, - add_builtin_candidate, build_builtin_candidate, - add_conv_candidate, add_function_candidate, implicit_conversion, - reference_binding, build_list_conv, conditional_conversion, - add_candidates, can_convert_array, build_aggr_conv, - build_array_conv, build_complex_conv, conditional_conversion): - Add tsubst_flags_t parameter. - (joust): Likewise, use it to handle SFINAE as if pedantic. - (add_list_candidates, build_integral_nontype_arg_conv, - perform_overload_resolution, build_new_function_call, - build_operator_new_call, build_op_call_1, - build_conditional_expr_1, build_new_op_1, convert_like_real, - convert_arg_to_ellipsis, convert_default_arg, - convert_for_arg_passing, build_over_call, - build_new_method_call_1, can_convert_arg, can_convert_arg_bad, - perform_implicit_conversion_flags, - perform_direct_initialization_if_possible, - initialize_reference): Adjust. - * typeck.c (casts_away_constness, casts_away_constness_r): - Add tsubst_flags_t parameter. - (convert_arguments, check_for_casting_away_constness, - build_static_cast_1, build_ptrmemfunc, convert_for_assignment): - Adjust. - * decl.c (reshape_init_r, check_default_argument): Likewise. - * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise. - * pt.c (convert_nontype_argument, check_non_deducible_conversion): - Likewise. - * init.c (build_new_1): Likewise. - * cvt.c (convert_to_reference, ocp_convert, build_type_conversion, - build_expr_type_conversion, ): Likewise. - * search.c (check_final_overrider): Likewise. - * cp-tree.h (build_user_type_conversion, - build_operator_new_call, can_convert, can_convert_arg, - can_convert_arg_bad, convert_default_arg, - convert_arg_to_ellipsis, convert_for_arg_passing): - Adjust declaration. - -2012-04-22 Jan Hubicka - - * decl2.c (maybe_make_one_only): Mark keyed COMDATs as USED so they - gets finalized. - -2012-04-22 Manuel López-Ibáñez - - PR c/44774 - * typeck.c (composite_pointer_type): Likewise. - (cxx_sizeof_or_alignof_type): Likewise. - (cp_build_array_ref): Likewise. - (cp_build_function_call_vec): Likewise. - (cp_build_addr_expr_1): Likewise. - (convert_member_func_to_ptr): Likewise. - * decl.c (check_tag_decl): Likewise. - (check_static_variable_definition): Likewise. - (compute_array_index_type): Likewise. - (create_array_type_for_decl): Likewise. - (grokdeclarator): Likewise. - (grok_op_properties): Likewise. - * error.c (maybe_warn_cpp0x): Likewise. - * pt.c (maybe_process_partial_specialization): Likewise. - (convert_template_argument): Likewise. - (do_decl_instantiation): Likewise. - (do_type_instantiation): Likewise. - * parser.c (cp_parser_primary_expression): Likewise. - (cp_parser_postfix_expression): Likewise. - (cp_parser_unary_expression): Likewise. - (cp_parser_question_colon_clause): Likewise. - (cp_parser_lambda_introducer): Likewise. - (cp_parser_lambda_declarator_opt): Likewise. - (cp_parser_compound_statement): Likewise. - (cp_parser_jump_statement): Likewise. - (cp_parser_declaration_seq_opt): Likewise. - (cp_parser_enum_specifier): Likewise. - (cp_parser_enumerator_list): Likewise. - (cp_parser_initializer_list): Likewise. - (cp_parser_member_declaration): Likewise. - * call.c (build_conditional_expr_1): Likewise. - * friend.c (make_friend_class): Likewise. - * name-lookup.c (pushdecl_maybe_friend_1): Likewise. - -2012-04-21 Jan Hubicka - - * method.c (make_alias_for): Do not set TREE_SYMBOL_REFERENCED. - * decl2.c (mark_needed): Likewise. - (decl_needed_p): Do not test TREE_SYMBOL_REFERENCED. - - * decl2.c (cxx_callgraph_analyze_expr): Remove. - * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove. - * cp-tree.h (cxx_callgraph_analyze_expr): Remove. - -2012-04-21 Manuel López-Ibáñez - - PR 35441 - * typeck.c (cp_build_function_call_vec): Do not pretty-print - expressions when caret is enabled. - -2012-04-20 Jan Hubicka - - PR target/53042 - * decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group - list when target has no support for it. - -2012-04-20 Michael Matz - - * error.c (pedwarn_cxx98): Move va_end call after user - of the va_list. - -2012-04-18 Paolo Carlini - - PR c++/52422 - * cp-tree.h (build_addr_func, decay_conversion, - get_member_function_from_ptrfunc, - build_m_component_ref, convert_member_func_to_ptr): - Add tsubst_flags_t parameter. - * typeck.c (cp_default_conversion): Add. - (decay_conversion, default_conversion, - get_member_function_from_ptrfunc, convert_member_func_to_ptr): - Add tsubst_flags_t parameter and use it throughout. - (cp_build_indirect_ref, cp_build_array_ref, - cp_build_function_call_vec, convert_arguments, build_x_binary_op, - cp_build_binary_op, cp_build_unary_op, build_reinterpret_cast_1, - build_const_cast_1, expand_ptrmemfunc_cst, - convert_for_initialization): Adjust. - * init.c (build_vec_init): Adjust. - * decl.c (grok_reference_init, get_atexit_node): Likewise. - * rtti.c (build_dynamic_cast_1, tinfo_base_init): Likewise. - * except.c (build_throw): Likewise. - * typeck2.c (build_x_arrow): Likewise. - (build_m_component_ref): Add tsubst_flags_t parameter and - use it throughout. - * pt.c (convert_nontype_argument): Adjust. - * semantics.c (finish_asm_stmt, maybe_add_lambda_conv_op): Likewise. - * decl2.c (build_offset_ref_call_from_tree): Likewise. - * call.c (build_addr_func): Add tsubst_flags_t parameter and - use it throughout. - (build_call_a, build_conditional_expr_1, build_new_op_1, - convert_like_real, convert_arg_to_ellipsis, build_over_call, - build_special_member_call): Adjust. - * cvt.c (cp_convert_to_pointer, force_rvalue, - build_expr_type_conversion): Likewise. - -2012-04-17 Tom de Vries - - * cp-gimplify.c (begin_bc_block): Add location parameter and use as - location argument to create_artificial_label. - (finish_bc_block): Change return type to void. Remove body_seq - parameter, and add block parameter. Append label to STMT_LIST and - return in block. - (gimplify_cp_loop, gimplify_for_stmt, gimplify_while_stmt) - (gimplify_do_stmt, gimplify_switch_stmt): Remove function. - (genericize_cp_loop, genericize_for_stmt, genericize_while_stmt) - (genericize_do_stmt, genericize_switch_stmt, genericize_continue_stmt) - (genericize_break_stmt, genericize_omp_for_stmt): New function. - (cp_gimplify_omp_for): Remove bc_continue processing. - (cp_gimplify_expr): Genericize VEC_INIT_EXPR. - (cp_gimplify_expr): Mark FOR_STMT, WHILE_STMT, DO_STMT, SWITCH_STMT, - CONTINUE_STMT, and BREAK_STMT as unreachable. - (cp_genericize_r): Genericize FOR_STMT, WHILE_STMT, DO_STMT, - SWITCH_STMT, CONTINUE_STMT, BREAK_STMT and OMP_FOR. - (cp_genericize_tree): New function, factored out of ... - (cp_genericize): ... this function. - -2012-04-17 Paolo Carlini - - PR c++/52599 - * semantics.c (build_constexpr_constructor_member_initializers): - Check for function-try-block as function-body. - -2012-04-17 Paolo Carlini - - PR c++/53003 - * parser.c (cp_parser_member_declaration): Check that - initializer_token_start is non null before dereferencing it. - -2012-04-16 Jason Merrill - - PR c++/38543 - * pt.c (determine_specialization): Instead of comparing the number - of parms, check that tsubst gives the right answer. - - PR c++/52008 - * pt.c (process_partial_specialization): Complain about a partial - specialization with fewer args than primary template parms. - - PR c++/50830 - * pt.c (convert_template_argument): Handle template template - argument packs. - - PR c++/50303 - * pt.c (tsubst_pack_expansion): Use tsubst_expr for template - template parameters. - -2012-04-16 Paolo Carlini - - PR c++/49152 - * call.c (op_error): Print types; when flag_diagnostics_show_caret - is false print expressions too. - (op_error_string): Add. - -2012-04-16 Jason Merrill - - PR c++/51148 - * friend.c (make_friend_class): Call check_for_bare_parameter_packs. - -2012-04-16 Jan Hubicka - - * decl2.c (collect_candidates_for_java_method_alias): Use FOR_EACH - walkers to walk cgraph and varpool. - -2012-04-15 Jason Merrill - - PR c++/47220 - * pt.c (coerce_template_parameter_pack): Check for error_mark_node. - - PR c++/52292 - PR c++/52380 - * pt.c (coerce_template_parms): Even if we aren't converting we - want to expand argument packs. - - PR c++/52706 - * mangle.c (write_type): nullptr_t is a builtin type. - -2012-04-14 Jan Hubicka - - * tree.c: Update field referenced for new cgraph/varpool layout. - * decl2.c: Likewise. - -2012-04-13 Jason Merrill - - PR c++/52824 - * pt.c (any_pack_expanson_args_p): New. - (coerce_template_parms): Use it. - - PR c++/52905 - * call.c (joust): Handle comparing list and non-list ctors. - - PR c++/52915 - * decl2.c (finish_anon_union): Use cp_finish_decl. - * error.c (dump_function_name): Avoid showing anonymous "name". - -2012-04-11 Fabien Chêne - - PR c++/52465 - * parser.c (cp_parser_class_name): Call strip_using_decl and - return the target decl. - * name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl - to be stripped is NULL_TREE. - (qualify_lookup): Call strip_using_decl and perform some checks on - the target decl. - -2012-04-11 Jason Merrill - - PR debug/45088 - * decl.c (grokdeclarator): Strip the injected-class-name typedef - if we are building a declaration or compound type. - - PR c++/52906 - * decl.c (check_tag_decl): Don't complain about attributes if we - don't even have a type. - -2012-04-10 Manuel López-Ibáñez - - * cvt.c (convert_to_void): Update comment. - -2012-04-05 Jason Merrill - - PR c++/52596 - * semantics.c (finish_non_static_data_member): In templates, pass - the decl to build_qualified_name. - * tree.c (lvalue_kind) [SCOPE_REF]: Handle FIELD_DECL. - -2012-04-04 Jason Merrill - - PR c++/52845 - * decl.c (finish_function): Update fntype after deducing return type. - -2012-04-03 Jason Merrill - - PR c++/52796 - * pt.c (tsubst_initializer_list): A pack expansion with no elements - means value-initialization. - -2012-04-01 Paolo Carlini - - PR c++/50043 - * class.c (deduce_noexcept_on_destructor, - deduce_noexcept_on_destructors): New. - (check_bases_and_members): Call the latter. - * decl.c (grokfndecl): Call the former. - * method.c (implicitly_declare_fn): Not static. - * cp-tree.h (deduce_noexcept_on_destructor, implicitly_declare_fn): - Declare - -2012-03-29 Paolo Carlini - - PR c++/52718 - * decl.c (check_default_argument): With -Wzero-as-null-pointer-constant - warn for a zero as null pointer constant default argument. - -2012-03-29 Jason Merrill - - PR c++/52685 - * tree.c (copy_binfo): Handle BINFO_DEPENDENT_BASE_P. - -2012-03-29 Jakub Jelinek - - PR c++/52759 - * decl.c (start_decl): Don't call maybe_apply_pragma_weak - if processing_template_decl. - -2012-03-29 Jason Merrill - - PR c++/52743 - * call.c (compare_ics): Handle ck_aggr like ck_list. - -2012-03-28 Jason Merrill - - PR c++/52746 - * typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if - we didn't get an explicit scope. - * pt.c (tsubst_baselink): Likewise. - -2012-03-28 Richard Guenther - - * typeck2.c (process_init_constructor_array): Use the proper - type for computing the array length. - -2012-03-27 Meador Inge - - PR c++/52672 - * semantics.c (cxx_fold_indirect_ref): Don't attempt to fold - stripped child trees that are not pointer types. - -2012-03-21 Jason Merrill - - Implement return type deduction for normal functions with -std=c++1y. - * cp-tree.h (FNDECL_USED_AUTO): New macro. - (LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P): Remove. - (dependent_lambda_return_type_node): Remove. - (CPTI_DEPENDENT_LAMBDA_RETURN_TYPE): Remove. - (struct language_function): Add x_auto_return_pattern field. - (current_function_auto_return_pattern): New. - (enum tsubst_flags): Add tf_partial. - * decl.c (decls_match): Handle auto return comparison. - (duplicate_decls): Adjust error message for auto return. - (cxx_init_decl_processing): Remove dependent_lambda_return_type_node. - (cp_finish_decl): Don't do auto deduction for functions. - (grokdeclarator): Allow auto return without trailing return type in - C++1y mode. - (check_function_type): Defer checking of deduced return type. - (start_preparsed_function): Set current_function_auto_return_pattern. - (finish_function): Set deduced return type to void if not previously - deduced. - * decl2.c (change_return_type): Handle error_mark_node. - (mark_used): Always instantiate functions with deduced return type. - Complain about use if deduction isn't done. - * parser.c (cp_parser_lambda_declarator_opt): Use 'auto' for - initial return type. - (cp_parser_lambda_body): Don't deduce return type in a template. - (cp_parser_conversion_type_id): Allow auto in C++1y. - * pt.c (instantiate_class_template_1): Don't mess with - LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P. - (tsubst_copy_and_build): Likewise. - (fn_type_unification, tsubst): Don't reduce the template parm level - of 'auto' during deduction. - (unify): Compare 'auto' specially. - (get_bindings): Change test. - (always_instantiate_p): Always instantiate functions with deduced - return type. - (do_auto_deduction): Handle error_mark_node and lambda context. - Don't check for use in initializer. - (contains_auto_r): Remove. - * search.c (lookup_conversions_r): Handle auto conversion function. - * semantics.c (lambda_return_type): Handle null return. Don't mess - with dependent_lambda_return_type_node. - (apply_deduced_return_type): Rename from apply_lambda_return_type. - * typeck.c (merge_types): Handle auto. - (check_return_expr): Do auto deduction. - * typeck2.c (add_exception_specifier): Fix complain check. - -2012-03-22 Paolo Carlini - - PR c++/52487 - * class.c (check_field_decls): Call literal_type_p only - on complete types. - -2012-03-22 Jakub Jelinek - - PR c++/52671 - * decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION - on CLASS_TYPE_P types. - -2012-03-20 Jason Merrill - - * lex.c (init_reswords): Use >= for cxx_dialect test. - * parser.c (cp_parser_exception_specification_opt): Likewise. - - * mangle.c (write_type): Handle 'auto'. - * init.c (build_new): Don't do auto deduction where it might - affect template mangling. - - PR c++/52510 - * decl.c (reshape_init_class): Handle repeated reshaping. - * search.c (lookup_field_1): Add sanity check. - -2012-03-19 Paolo Carlini - - PR c++/14710 - * cp-tree.h (xvalue_p, maybe_warn_about_useless_cast): Declare. - * tree.c (xvalue_p): Define. - * typeck.c (maybe_warn_about_useless_cast): Define. - (build_reinterpret_cast, build_const_cast, - build_static_cast, cp_build_c_cast): Use maybe_warn_about_useless_cast. - * rtti.c (build_dynamic_cast): Likewise. - * pt.c (tsubst_copy_and_build, case CAST_EXPR): Increment/decrement - c_inhibit_evaluation_warnings before/after the build_* calls. - -2012-03-15 Jason Merrill - - PR c++/52582 - * method.c (implicitly_declare_fn): Set DECL_EXTERNAL. - -2012-03-15 Manuel López-Ibáñez - - PR c++/44783 - * error.c (print_instantiation_partial_context): Use - template_backtrace_limit. - -2012-03-14 Rainer Orth - - * Make-lang.in (doc/g++.1): Remove IRIX 6.5 reference. - -2012-03-14 Jakub Jelinek - - PR c++/52521 - * parser.c (lookup_literal_operator): Return fn only if - processed all arguments from args vector and argtypes is - void_list_node. - -2012-01-30 Dodji Seketeli - - PR c++/51641 - * cp-tree.h (template_type_parameter_p): Declare new function. - (parameter_of_template_p): Remove. - * pt.c (template_type_parameter_p): Define new function. - (parameter_of_template_p): Remove. - * name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely - on parameter_of_template_p anymore. Compare the level of the - template parameter to the depth of the template. - -2011-12-15 Dodji Seketeli - - * call.c (standard_conversion, build_integral_nontype_arg_conv) - (build_new_op_1, convert_like_real, is_subseq) - (maybe_handle_implicit_object, maybe_handle_ref_bind, compare_ics) - (joust): Use next_conversion instead of accessing fields of struct - conversion directly. - -2012-03-12 Paolo Carlini - - PR c++/52299 - * pt.c (tsubst_copy_and_build, case COND_EXPR): Avoid bogus - division by zero warnings. - -2012-03-08 Paolo Carlini - - * typeck.c (build_array_ref, cp_build_addr_expr_1, convert_ptrmem, - build_ptrmemfunc): Consistently forward the tsubst_flags_t - parameter. - * call.c (resolve_args): Likewise. - -2012-03-07 Jason Merrill - - PR c++/52521 - * mangle.c (write_literal_operator_name): The length comes after the - operator prefix. - -2012-03-05 Jakub Jelinek - - * pt.c (local_specializations): Change from htab_t into - struct pointer_map_t *. - (retrieve_local_specializations, register_local_specialization, - tsubst_pack_expansion, instantiate_decl): Adjust users. - (eq_local_specializations, hash_local_specialization): Remove. - -2012-03-05 Jason Merrill - - PR c++/51930 - * decl2.c (determine_visibility): Correct calculation of class - args depth. - * decl.c (check_tag_decl): Adjust warning. - - * method.c (synthesized_method_walk): Cleanups don't affect the EH - spec either. - -2012-03-03 Jason Merrill - - * init.c (perform_member_init): Cope with uninstantiated NSDMI. - - Core 1270 - * call.c (build_aggr_conv): Call reshape_init. - (convert_like_real): Likewise. - * typeck2.c (process_init_constructor): Clear TREE_CONSTANT if - not all constant. - - * mangle.c (write_nested_name): Use decl_mangling_context. - (write_prefix, write_template_prefix): Likewise. - - PR c++/36797 - * mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR. - - * class.c (add_method): Always build an OVERLOAD for using-decls. - * search.c (lookup_member): Handle getting an OVERLOAD for a - single function. - -2012-03-02 Paolo Carlini - - PR c++/51989 - * typeck2.c (build_x_arrow): Take a tsubst_flags_t argument and - propagate it. - * cp-tree.h (build_x_arrow): Adjust prototype. - * pt.c (tsubst_copy_and_build): Adjust call. - * parser.c (cp_parser_postfix_dot_deref_expression): Likewise. - -2012-03-02 Paolo Carlini - - * name-lookup.c (binding_to_template_parms_of_scope_p): Clean up. - -2012-02-29 Jason Merrill - - PR c++/51930 - * decl.c (check_tag_decl): Move warning for misplaced attributes here. - (shadow_tag): From here. - * parser.c (cp_parser_explicit_instantiation): Don't warn here. - -2012-02-21 Jakub Jelinek - - PR c++/52312 - * typeck.c (check_literal_operator_args): Initialize *long_double_p - and *long_long_unsigned_p even if processing_template_decl. - -2012-02-16 Jason Merrill - - PR c++/52248 - * decl.c (define_label): Use timevar_cond_start/stop. - -2012-02-16 Fabien Chêne - - PR c++/52126 - * decl.c (xref_basetypes): call dependent_scope_p instead of - dependent_type_p. - -2012-02-16 Jason Merrill - - PR c++/51415 - * error.c (dump_expr): Handle lambda closures specifically. - -2012-02-14 Jason Merrill - - * parser.c (cp_parser_explicit_instantiation): Give a warning - for ignored attributes on explicit class instantiation. - -2012-02-14 Jakub Jelinek - - PR c++/52247 - * pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call - lookup_label on label's name and set TREE_USED. - -2012-02-14 Jason Merrill - - PR c++/39055 - * decl.c (local_variable_p_walkfn): Don't check DECL_ARTIFICIAL. - -2012-02-14 Jakub Jelinek - - PR c/52181 - * decl.c (duplicate_decls): If olddecl has bigger DECL_ALIGN than - newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits. - -2012-02-07 Jason Merrill - - PR c++/51675 - * semantics.c (cx_check_missing_mem_inits): Handle unions. - Fix constexpr default constructor logic. - - PR c++/52035 - * pt.c (tsubst): Strip uninstantiated typedef. - -2012-02-06 Jason Merrill - - PR c++/52088 - * cvt.c (build_expr_type_conversion): Check for template conversion. - -2012-01-31 Jason Merrill - - PR c++/52043 - * cp-tree.h (PACK_EXPANSION_LOCAL_P): New. - * pt.c (make_pack_expansion, tsubst_initializer_list): Set it. - (tsubst_pack_expansion): Check it. - -2012-01-29 Paolo Carlini - - PR c++/51327 - * class.c (explain_non_literal_class): Correctly handle implicitly - deleted constructors. - -2012-01-27 Jakub Jelinek - - PR c++/51852 - * pt.c (tsubst_pack_expansion): Delete and restore - local_specialization whenever need_local_specialization, not just - when saved_local_specializations is non-NULL. - -2012-01-26 Paolo Carlini - - PR c++/51370 - * error.c (dump_decl, [TEMPLATE_ID_EXPR]): Handle error_mark_node - as TREE_OPERAND (t, 1). - -2012-01-24 Jason Merrill - - PR c++/51917 - * decl.c (xref_basetypes): Check VEC_length instead of VEC_space. - - PR c++/51973 - * tree.c (called_fns_equal): Check template args. - (cp_tree_equal): Call it. - -2012-01-24 Aldy Hernandez - Patrick Marlier - - PR c++/51928 - * class.c (set_method_tm_attributes): Use TARGET_THUNK instead of - thunk for set_one_vmethod_tm_attributes. - -2012-01-24 Paolo Carlini - - PR c++/51223 - * call.c (build_over_call): Check for error_mark_node as - TREE_VALUE when default arguments are processed. - -2012-01-23 Jason Merrill - - PR c++/51930 - * decl2.c (determine_visibility): Check for visibility attribute - on template specialization. - -2012-01-23 Paolo Carlini - - PR c++/51398 - * pt.c (parameter_of_template_p): Skip error_mark_node parameters. - -2012-01-23 Jason Merrill - - PR c++/51925 - * class.c (add_method): Set OVL_USED for using-decls. - * tree.c (ovl_scope): New. - * cp-tree.h: Declare it. - * parser.c (cp_parser_template_name): Use it. - * semantics.c (baselink_for_fns): Likewise. - * name-lookup.c (set_inherited_value_binding_p): Likewise. - -2012-01-20 Paolo Carlini - - PR c++/51402 - * pt.c (lookup_template_class_1): Check context returned by - tsubst for error_mark_node. - -2012-01-19 Kai Tietz - - PR c++/51344 - * decl2.c (save_template_attributes): Use merge_attributes - instead of chaining up via TREE_CHAIN. - -2012-01-19 Jason Merrill - - PR c++/51889 - * class.c (finish_struct): Call add_method here for function usings. - * semantics.c (finish_member_declaration): Not here. - -2012-01-18 Paolo Carlini - - PR c++/51225 - * typeck2.c (store_init_value): Within a template guard - cxx_constant_value with require_potential_constant_expression. - * pt.c (convert_nontype_argument): Likewise. - -2012-01-16 Jakub Jelinek - - PR c++/51854 - * mangle.c (write_template_arg_literal): Handle complex. - -2012-01-16 Jason Merrill - - PR c++/51827 - * mangle.c (mangle_decl): Don't mangle uninstantiated templates. - - PR c++/51868 - * typeck.c (build_static_cast_1): Handle bit-fields properly. - -2012-01-13 Ian Lance Taylor - - PR c++/50012 - * typeck.c (enum_cast_to_int): New static function. - (cp_build_binary_op): When handling warn_sign_compare, don't test - for TREE_NO_WARNING. Do call enum_cast_to_int. - * call.c (avoid_sign_compare_warnings): Remove static function. - (build_new_op_1): Don't call avoid_sign_compare_warnings. - -2012-01-13 Steven Bosscher - - * decl2.c: Do not include tree-mudflap.h - * semantics.c: Likewise. - -2012-01-13 Jason Merrill - - PR c++/20681 - * semantics.c (finish_break_stmt): Avoid adding an unreachable - BREAK_STMT. - - PR c++/51813 - * decl2.c (constrain_visibility): Clear DECL_VISIBILITY_SPECIFIED - when reducing the visibility. - - PR c++/51620 - * class.c (build_vtbl_initializer): Use __cxa_deleted_virtual. - -2012-01-12 Jason Merrill - - PR c++/51714 - * pt.c (value_dependent_expression_p): Treat STMT_EXPR as - value-dependent. - -2012-01-13 Dodji Seketeli - - PR c++/51633 - * semantics.c (cp_parser_ctor_initializer_opt_and_function_body): - Set the pointer to the last block of the constructor to the - current statement. - (build_constexpr_constructor_member_initializers): Get - build_data_member_initialization a chance to deal with more - statements before we choke. - -2012-01-12 Jason Merrill - - PR c++/48051 - * mangle.c (write_expression): Mangle BASELINK scope if - BASELINK_QUALIFIED_P. - * search.c (adjust_result_of_qualified_name_lookup): Set - BASELINK_QUALIFIED_P. - * tree.c (cp_tree_equal) [BASELINK]: Compare BASELINK_QUALIFIED_P. - * parser.c (cp_parser_postfix_dot_deref_expression): Don't call - adjust_result_of_qualified_name_lookup for non-qualified names. - - PR c++/51403 - * pt.c (unify): Handle error_mark_node. - -2012-01-11 Jason Merrill - - PR c++/51565 - * call.c (standard_conversion): For ptrmemfuncs, compare the - static_fn_types. - - PR c++/51818 - * mangle.c (find_substitution): A type is only a substitution - match if we're looking for a type. - (write_nested_name): Use decl_mangling_context. - - * decl.c (decls_match): Assert that the arguments are decls. - - PR c++/51613 - * pt.c (resolve_overloaded_unification): Compare types with - same_type_p, not decls_match. - -2012-01-10 Jason Merrill - - PR c++/51614 - * class.c (build_base_path): Diagnose ambiguous base. - - PR c++/51433 - * semantics.c (cxx_eval_call_expression): Always retry previously - non-constant expressions. - -2012-01-06 Jason Merrill - - DR 686 - PR c++/47450 - * parser.c (cp_parser_new_expression): Set - type_definition_forbidden_message. - - PR c++/6057 - PR c++/48051 - PR c++/50855 - PR c++/51322 - * mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR, - THROW_EXPR, CONSTRUCTOR, OVERLOAD. Fix PREINCREMENT_EXPR and - PREDECREMENT_EXPR. - (write_template_arg): Fix mangling of class-scope functions and - argument packs. - (mangle_decl): Update suggested -fabi-version argument. - * operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR, - DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR. - * tree.c (dependent_name): No longer static. - * cp-tree.h: Declare it. - * pt.c (unify): Defer handling of unconverted functions. - - * mangle.c (mangle_decl): Don't generate mangling aliases - for maybe-in-charge [cd]tors. - - * error.c (dump_expr): Print type of CONSTRUCTOR. - -2012-01-05 Dodji Seketeli - - PR c++/51541 - * parser.c (cp_parser_alias_declaration): Get out early upon - errors in the identifier or the attributes. - -2012-01-04 Paolo Carlini - - PR c++/51064 - * pt.c (tsubst_copy_and_build): Maybe set TREE_NO_WARNING on - the tree returned by build_x_binary_op. - -2012-01-03 Paolo Carlini - - PR c++/51738 - * parser.c (cp_parser_postfix_open_square_expression): Handle - postfix-expression [ braced-init-list ]. - -2012-01-03 Paolo Carlini - - PR c++/29273 - * rtti.c (build_dynamic_cast_1): In case of T a pointer type, - call decay_conversion on v. - -2012-01-03 Paolo Carlini - - PR c++/15867 - * decl.c (duplicate_decls): With -Wredundant-decls don't warn for - declaration followed by specialization. - -2012-01-03 Jakub Jelinek - - PR c++/51669 - * semantics.c (finish_omp_clauses): Call fold_build_cleanup_point_expr - on OMP_CLAUSE_{IF,FINAL,NUM_THREADS,SCHEDULE_CHUNK}_EXPR. - -2012-01-02 Jason Merrill - - DR 1359 - PR c++/51675 - * method.c (walk_field_subobs): Don't check for uninitialized - fields in a union. - (synthesized_method_walk): Check here. - - DR 325 - PR c++/51666 - * parser.c (cp_parser_cache_defarg): Split out... - (cp_parser_parameter_declaration): ...from here. - (cp_parser_save_nsdmi): Use it. - (cp_parser_cache_group): Remove CPP_COMMA support. - -2012-01-02 Dodji Seketeli - - PR c++/51462 - * semantics.c (cx_check_missing_mem_inits): Don't assert in case - of error. - -2012-01-02 Paolo Carlini - - PR c++/20140 - * typeck2.c (digest_init_r): Use copy_init when initializing - an array of chars. - -2012-01-01 Paolo Carlini - - PR c++/16603 - * decl.c (build_enumerator): Don't call perform_integral_promotions - on the value. - -2012-01-01 Paolo Carlini - - PR c++/51379 - * typeck.c (build_reinterpret_cast_1): Implement resolution of - DR 799. - -2012-01-01 Fabien Chêne - - * parser.c (cp_parser_using_declaration): Add a warning about - deprecated access declarations when no errors were encountered - while parsing the access declaration. Save the first token in - order to emit the warning at the right place. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/cp/ChangeLog-2012 b/gcc/cp/ChangeLog-2012 new file mode 100644 index 00000000000..a57051ebf5f --- /dev/null +++ b/gcc/cp/ChangeLog-2012 @@ -0,0 +1,3067 @@ +2012-12-28 Kai Tietz + + * rtti.c (LONGPTR_T): New helper-macro. + (get_pseudo_ti_init): Initialize offset_type by LONGPTR_T + type instead of 'long' type. + (create_tinfo_types): Use for offset/flags field LONGPTR_T + type instead of 'long' type. + +2012-12-19 Jason Merrill + + PR c++/55724 + * pt.c (type_unification_real): Re-combine post-deduction loops. + +2012-12-14 Jason Merrill + + PR c++/55685 + * pt.c (tsubst_copy_and_build): Don't use SIZEOF_EXPR_TYPE_P in + templates. + + PR c++/42315 + * decl.c (maybe_deduce_size_from_array_init): Don't change the + variable type. + +2012-12-13 Jakub Jelinek + + PR c++/55652 + * typeck2.c (merge_exception_specifiers): Don't call operand_equal_p + if noex is NULL. + +2012-12-11 Jason Merrill + + PR c++/54883 + * decl2.c (min_vis_r): Handle anon visibility for enums. + +2012-12-11 Marc Glisse + + PR c++/53094 + * tree.c (cp_tree_equal): Handle VECTOR_CST. + * semantics.c (cxx_eval_bare_aggregate): Protect a dereference. + Handle VECTOR_CST. + +2012-12-11 Jakub Jelinek + + PR c++/55643 + * expr.c (mark_exp_read): Handle FLOAT_EXPR similarly to NOP_EXPR. + +2012-12-11 Jason Merrill + + PR c++/54416 + * pt.c (maybe_process_partial_specialization): Don't accept + definition of a specialization without the appropriate header. + + * pt.c (maybe_process_partial_specialization): Handle aliases first. + +2012-12-11 Jakub Jelinek + + PR c++/55619 + * semantics.c (finish_asm_stmt): Don't call decay_conversion + on input operands that can be only in memory. + +2012-12-10 Eric Botcazou + + * Make-lang.in (cp/typeck.o): Add dependency on $(PARAMS_H). + (cp/name-lookup.o): Likewise. + +2012-12-10 Steven Bosscher + + * decl2.c (cp_write_global_declarations): Return after writing a PCH. + +2012-12-07 Jason Merrill + + PR c++/55127 + * search.c (accessible_in_template_p): New. + * cp-tree.h: Declare it. + * pt.c (instantiation_dependent_scope_ref_p): New. + (value_dependent_expression_p): Use it. + (instantiation_dependent_r): Likewise. + * semantics.c (finish_decltype_type): Handle SCOPE_REF. + + PR c++/55419 + * tree.c (build_target_expr): Don't set TREE_CONSTANT. + +2012-12-07 Aldy Hernandez + + PR c++/55513 + * semantics.c (cxx_eval_builtin_function_call): Set non_constant_p + after folding. + +2012-12-07 Paolo Carlini + + * tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter. + (build_cplus_new): Adjust. + * cp-tree.h: Adjust declaration. + * init.c (build_value_init): Adjust. + +2012-12-07 Dodji Seketeli + + PR c++/54401 + * parser.c (cp_parser_alias_declaration): Commit to tentative + parse when see the '=' token. Get out if the type-id is invalid. + Update function comment. + (cp_parser_member_declaration): Don't try to parse a using + declaration if we know that we expected an alias declaration; that + is, if we see the '=' token after the identifier. + +2012-12-06 Jason Merrill + + PR c++/54325 + * tree.c (build_aggr_init_expr): Don't check for abstract class. + (build_cplus_new): Check here instead. + + PR c++/55058 + * pt.c (tsubst): Keep the quals when looking through a typedef. + + PR c++/55249 + * tree.c (build_vec_init_elt): Use the type of the initializer. + + PR c++/54744 + * pt.c (resolve_typename_type): Check TYPENAME_IS_RESOLVING_P on scope. + * init.c (expand_member_init): Check for being in a template first. + * parser.c (cp_parser_mem_initializer_list): Only check class types + for equivalence to the current class. + + PR c++/54913 + * semantics.c (finish_qualified_id_expr): convert_from_reference + after building a SCOPE_REF. + +2012-12-06 Jakub Jelinek + + PR c++/54207 + * except.c (build_noexcept_spec): Avoid direct comparison + with boolean_true_node or boolean_false_node, instead use + operand_equal_p and/or INTEGER_CST check. + * pt.c (tsubst_exception_specification): Likewise. + * typeck2.c (merge_exception_specifiers): Likewise. + +2012-12-06 Marc Glisse + + PR c++/55573 + * semantics.c (adjust_temp_type): Handle VECTOR_CST. + +2012-12-06 Jason Merrill + + PR c++/54947 + * parser.c (cp_parser_initializer_list): Don't require an + expression in [] to be constant until we know it's a C99 + designator. + + PR c++/55015 + PR c++/53821 + * semantics.c (maybe_add_lambda_conv_op): Revert earlier change. + * decl.c (start_preparsed_function): Make local class methods comdat + in templates, too. + + PR c++/54653 + * parser.c (cp_parser_class_head): A partial specialization scope + counts as a template. + * pt.c (tsubst_template_parms): Handle template template parm parms. + (tsubst_decl) [TEMPLATE_DECL]: Handle getting a template template + argument back. + + PR c++/55564 + * pt.c (unify) [ARRAY_TYPE]: Unify the element type before the bounds. + +2012-12-03 Paolo Carlini + + PR c++/54170 + * cvt.c (cp_convert_to_pointer): Don't discard side-effects from + expressions of nullptr_t. + * typeck.c (build_ptrmemfunc): Likewise. + +2012-12-01 Jakub Jelinek + + PR c++/55542 + * pt.c (make_ith_pack_parameter_name): Return NULL if + name is NULL. + (tsubst_decl): Call make_ith_pack_parameter_name even if + DECL_NAME is NULL. + +2012-11-29 Jason Merrill + + PR c++/53137 + * pt.c (tsubst_expr) [DECL_EXPR]: Set LAMBDA_EXPR_THIS_CAPTURE here. + (tsubst_copy_and_build) [LAMBDA_EXPR]: And clear it here. + (instantiate_class_template_1): Not here. + +2012-11-29 Marc Glisse + + PR c++/53094 + * cvt.c (ocp_convert): Call convert_to_vector. + +2012-11-29 Kai Tietz + + PR target/53912 + * class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t. + (dump_vtable): Likewise. + +2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> + + PR c++/52654 + * parser.c (cp_parser_string_literal): Add overflow_type arg. + (cp_parser_userdef_numeric_literal): Warn on numeric overflow. + +2012-11-28 Andrew Pinski + + PR bootstrap/54279 + * Make-lang.in (g++$(exeext)): Rename to + (xg++$(exeext)): This. + (g++-cross$(exeext)): Use xg++$(exeext) instead of g++$(exeext). + (c++.start.encap): Likewise. + (c++.install-common): Likewise. + +2012-11-24 Paolo Carlini + + PR c++/55446 + * init.c (build_vec_init): Do not early return error_mark_mode + when integer_all_onesp (maxindex). + +2012-11-23 Jakub Jelinek + + PR c++/54046 + * cp-objcp-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Redefine. + * cp-objcp-common.c (cxx_block_may_fallthru): New function. + * cp-tree.h (cxx_block_may_fallthru): New prototype. + +2012-11-23 Markus Trippelsdorf + + PR c++/55418 + * method.c (implicitly_declare_fn): Properly initialize trivial_p. + +2012-11-22 Jason Merrill + + PR c++/55137 + * semantics.c (verify_constant): Track overflow separately. + (reduced_constant_expression_p): Don't check it here. + (cxx_eval_constant_expression): Check it on CSTs. + (cxx_eval_outermost_constant_expr): Treat overflows as non-constant + at this point, but still return the folded version. + (potential_constant_expression_1): Don't check overflow. + + * call.c (extend_ref_init_temps_1): Recompute TREE_CONSTANT for + the ADDR_EXPR. + +2012-11-20 Diego Novillo + Jakub Jelinek + + * name-lookup.c: Replace all vec() initializers + with vNULL. + * semantics.c: Likewise. + +2012-11-19 Paolo Carlini + + PR c++/55368 + * parser.c (cp_parser_member_declaration): Emit an error in case + of stray comma at end of member declaration. + +2012-11-19 Jason Merrill + + * class.c (one_inheriting_sig): Don't inherit base copy ctors. + + PR c++/55262 + * method.c (implicitly_declare_fn): Set DECL_PARM_INDEX on + the parms of an inheriting ctor. + + PR c++/55261 + * class.c (add_implicitly_declared_members): Use + lookup_fnfields_slot to get the base constructors. + +2012-11-19 Jakub Jelinek + + PR middle-end/54630 + * class.c (fixed_type_or_null_ref_ht): New variable. + (fixed_type_or_null): Use it instead of local static ht. + +2012-11-17 Diego Novillo + + Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * Make-lang.in: Remove dependencies on vecir.h and vecprim.h everywhere. + * call.c: Use new vec API in vec.h. + * class.c: Likewise. + * cp-gimplify.c: Likewise. + * cp-tree.h: Likewise. + * cvt.c: Likewise. + * decl.c: Likewise. + * decl2.c: Likewise. + * error.c: Likewise. + * except.c: Likewise. + * init.c: Likewise. + * mangle.c: Likewise. + * method.c: Likewise. + * name-lookup.c: Likewise. + * name-lookup.h: Likewise. + * parser.c: Likewise. + * parser.h: Likewise. + * pt.c: Likewise. + * repo.c: Likewise. + * rtti.c: Likewise. + * search.c: Likewise. + * semantics.c: Likewise. + * tree.c: Likewise. + * typeck.c: Likewise. + * typeck2.c: Likewise. + +2012-11-17 Gabriel Dos Reis + + * semantics.c (finish_id_expression): Tidy diagnostic message. + +2012-11-16 Dodji Seketeli + + PR c++/54875 + * pt.c (lookup_template_class_1): Look at the type of the + potential member enum of class template to determine if we are + actually substituting into a member enum of class template. + +2012-11-16 Jakub Jelinek + + PR c++/55337 + * tree.c (cp_tree_equal) : Use SIZEOF_EXPR_TYPE_P + only on SIZEOF_EXPR. + +2012-11-14 Jason Merrill + + PR c++/54903 + * decl2.c (mark_used): Don't complain about auto in templates. + + PR c++/37276 + * decl.c (decls_match): Remove #ifdef around earlier fix. + +2012-11-13 Jason Merrill + + * class.c (finish_struct_1): Check virtual functions + for missing ABI tags. + + PR c++/55275 + * pt.c (maybe_process_partial_specialization): Update + DECL_SOURCE_LOCATION for new specializations. + +2012-11-14 Paolo Carlini + + PR c++/55323 + * init.c (emit_mem_initializers): Skip arguments == error_mark_node. + +2012-11-14 Fabien Chêne + + PR c++/11750 + * call.c (build_new_method_call_1): Check that the instance type + and the function context are the same before setting the flag + LOOKUP_NONVIRTUAL. + +2012-11-13 Sriraman Tallam + + * class.c (mark_versions_used): Remove. + (resolve_address_of_overloaded_function): Call target hook + for versioned functions. Refactor to call + get_function_versions_dispatcher. + * decl.c (duplicate_decls): Add comments. + * cp/call.c (get_function_version_dispatcher): Expose function. + (mark_versions_used): Expose function. + * cp/cp-tree.h (mark_versions_used): New declaration. + (get_function_version_dispatcher): Ditto. + +2012-11-13 Dodji Seketeli + + PR c++/54466 + * pt.c (lookup_template_class_1): TYPE_STUB_DECL should be + accessed on the main variant of the type. + +2012-11-12 Ed Smith-Rowland <3dw4rd@verizon.net> + + * parser.c (cp_parser_objc_class_ivars): + Index declspecs.locations by ds_typedef rather than ds_thread. + +2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> + + PR c++/54413 + * decl.c (grokfndecl): Adjust calls to interpret_x_suffix. + +2012-11-09 Jason Merrill + + PR c++/54859 + * pt.c (check_instantiated_arg): Don't complain about dependent args. + + * tree.c (cxx_attribute_table): Add abi_tag attribute. + (check_abi_tag_redeclaration, handle_abi_tag_attribute): New. + * class.c (find_abi_tags_r, check_abi_tags): New. + (check_bases, check_field_decl): Call check_abi_tags. + * decl.c (redeclaration_error_message): Call + check_abi_tag_redeclaration. + * mangle.c (tree_string_cmp, write_abi_tags): New. + (write_unqualified_name): Call write_abi_tags. + +2012-11-07 Paolo Carlini + + PR c++/55226 + Revert: + 2012-10-23 Paolo Carlini + + PR c++/54922 + * semantics.c (cx_check_missing_mem_inits): Handle anonymous union + members. + +2012-11-07 Florian Weimer + + * init.c (build_new_1): Do not check for arithmetic overflow if + inner array size is 1. + +2012-11-05 Sriraman Tallam + + * class.c (add_method): Change assembler names of function versions. + (mark_versions_used): New static function. + (resolve_address_of_overloaded_function): Create dispatcher decl and + return address of dispatcher instead. + * decl.c (decls_match): Make decls unmatched for versioned + functions. + (duplicate_decls): Remove ambiguity for versioned functions. + Delete versioned function data for merged decls. + * decl2.c (check_classfn): Check attributes of versioned functions + for match. + * call.c (get_function_version_dispatcher): New function. + (mark_versions_used): New static function. + (build_over_call): Make calls to multiversioned functions + to call the dispatcher. + (joust): For calls to multi-versioned functions, make the most + specialized function version win. + +2012-10-31 Lawrence Crowl + + * decl2.c (var_finalized_p): Rename varpool_node to + varpool_node_for_decl. + (maybe_emit_vtables): Likewise. + +2012-10-31 Paolo Carlini + + PR c++/54583 + * tree.c (build_cplus_array_type): Set TREE_NO_WARNING on the + TYPE_SIZE of VLAs. + +2012-10-31 Dodji Seketeli + + PR c++/54955 + * parser.c (cp_nth_tokens_can_be_std_attribute_p): Recognize the + 'Alignas' keyword as the beginning of a c++11 attribute specifier. + Update the comment of the function. + (cp_next_tokens_can_be_gnu_attribute_p): Update the comment of the + function. + +2012-10-29 Jonathan Wakely + + PR c++/54930 + * typeck.c (maybe_warn_about_returning_address_of_local): Use + OPT_Wreturn_local_addr. + +2012-10-26 Jakub Jelinek + + PR c++/55081 + * typeck2.c (store_init_value): Call fold_non_dependent_expr + and maybe_constant_init even for C++98. + +2012-10-26 Paolo Carlini + + PR c++/54984 + * init.c (build_new): Don't turn a null *init into a pointer to + empty vector orig_init. + +2012-10-25 Paolo Carlini + + PR c++/53761 + * class.c (finish_struct_1): Reject aggregates decorated with + __transparent_union__ which cannot be made transparent because + the type of the first field has a different ABI from the class + overall. + +2012-10-25 Jason Merrill + + Core 1402 + * call.c (joust): An implicitly deleted move function is + worse than any non-deleted function. + * method.c (process_subob_fn): No special rules for move. + (synthesized_method_walk, implicitly_declare_fn): Likewise. + Warn about virtual base with non-trivial move assignment. + * cp-tree.h (struct lang_decl_fn): Remove suppress_implicit_decl. + (FNDECL_SUPPRESS_IMPLICIT_DECL): Remove. + + * semantics.c (finish_omp_threadprivate): Call complete_type. + + * class.c (one_inherited_ctor): Warn about variadic inherited ctor. + +2012-10-25 Marc Glisse + + PR c++/54427 + * typeck.c (build_x_conditional_expr): Handle VEC_COND_EXPR. + * call.c (build_conditional_expr_1): Likewise. + +2012-10-25 Paolo Carlini + + PR c++/34892 + * parser.c (cp_parser_template_parameter): When + cp_parser_parameter_declaration parsed a default argument don't + see if *is_parameter_pack needs setting. + +2012-10-23 Paolo Carlini + + PR c++/54922 + * semantics.c (cx_check_missing_mem_inits): Handle anonymous union + members. + +2012-10-23 Jakub Jelinek + + PR c++/54844 + * pt.c (tsubst_copy, tsubst_copy_and_build) : Use + tsubst instead of tsubst_copy* on types. + + PR c++/54988 + * decl2.c (cplus_decl_attributes): Don't return early + if attributes is NULL. + +2012-10-18 Paolo Carlini + + PR c++/54501 + * decl.c (reshape_init_array_1): Avoid infinite loops. + +2012-10-15 Alexandre Oliva + Paolo Carlini + + PR c++/17805 + * call.c (build_new_op_1): Filter out operator functions that don't + satisfy enum-conversion match requirements. + +2012-10-15 Paolo Carlini + + PR c++/50080 (again) + * parser.c (cp_parser_optional_template_keyword): When -pedantic + and C++98 mode restore pre-Core/468 behavior. + +2012-10-15 Paolo Carlini + + PR c++/50080 + * parser.c (cp_parser_optional_template_keyword): Implement + Core/468, allow outside template. + +2012-10-14 Jason Merrill + Ville Voutilainen + + Implement C++11 inheriting constructors. + * cp-tree.h (cpp0x_warn_str): Add CPP0X_INHERITING_CTORS. + (DECL_INHERITED_CTOR_BASE, SET_DECL_INHERITED_CTOR_BASE): New. + (special_function_kind): Add sfk_inheriting_constructor. + * class.c (add_method): An inheriting ctor is hidden by a + user-declared one. + (one_inheriting_sig, one_inherited_ctor): New. + (add_implicitly_declared_members): Handle inheriting ctors. + * error.c (maybe_warn_cpp0x): Handle CPP0X_INHERITING_CTORS. + * init.c (emit_mem_initializers): Don't set LOOKUP_DEFAULTED + for an inheriting constructor. + * method.c (type_has_trivial_fn): Handle sfk_inheriting_constructor. + (type_set_nontrivial_flag): Likewise. + (add_one_base_init): Split out from... + (do_build_copy_constructor): ...here. Handle inheriting constructors. + (locate_fn_flags): Handle a list of arg types. + (synthesized_method_walk): Handle inheriting constructors. + (maybe_explain_implicit_delete): Likewise. + (deduce_inheriting_ctor): New. + (implicitly_declare_fn): Handle inheriting constructors. + * name-lookup.c (push_class_level_binding_1): An inheriting constructor + does not declare the base's name. + (do_class_using_decl): Allow inheriting constructors. + * pt.c (template_parms_to_args): Split from current_template_args. + (add_inherited_template_parms): New. + (tsubst_decl): Handle inheriting constructors. + * tree.c (special_function_p): Handle inheriting constructors. + +2012-10-12 Jakub Jelinek + + PR c/54381 + * semantics.c (finish_call_expr): Pass array of 3 sizeof_arg + trees and locs (corresponding to first 3 arguments) to + sizeof_pointer_memaccess_warning. + +2012-10-12 Paolo Carlini + + PR c++/24449 + * decl.c (grokfndecl): When checking for ::main declarations + use PROCESSING_REAL_TEMPLATE_DECL_P(). + +2012-10-12 Marc Glisse + + PR c++/53055 + * call.c (build_new_op_1): Pass RO_ARROW_STAR to cp_build_indirect_ref. + * typeck.c (cp_build_indirect_ref): Handle RO_ARROW_STAR. + +2012-10-11 Jason Merrill + + * cp-tree.h (DECL_THUNKS): NULL_TREE for non-virtual functions. + (SET_DECL_THUNKS): New. + * decl.c (duplicate_decls): Adjust. + * method.c (make_thunk): Adjust. + + * decl.c (grokdeclarator): Set DECL_GNU_TLS_P for static data + members, too. + +2012-10-09 Dodji Seketeli + + PR c++/53540 - using fails to be equivalent to typedef + * cp-tree.h (TYPE_TEMPLATE_INFO): For an alias that is not an + instance of alias template, don't look for its TEMPLATE_INFO in + its declaration. + (alias_template_specialization_p): Take const_tree. + * pt.c (alias_template_specialization_p): Take a const_tree. + Don't call primary_template_instantiation_p. + (primary_template_instantiation_p): Call + alias_template_specialization_p. + +2012-10-10 Dodji Seketeli + + * parser (cp_parser_statement): Parse c++11 attributes + tentatively. + (cp_parser_std_attribute_spec_seq): Do not warn too early about + using c++11 attributes in non c++11 mode. + +2012-10-10 Dehao Chen + + * cp-gimplify.c (cp_genericize_r): Set location for TRY expr. + +2012-10-09 Lawrence Crowl + + * Make-lang.in (class.o): Add dependence on hash-table.h. + (tree.o): Likewise. + (semantics.o): Likewise. + * class.c (fixed_type_or_null): Change to new type-safe hash table. + * tree.c (verify_stmt_tree): Likewise. + (verify_stmt_tree_r): Likewise. + * semantics.c (struct nrv_data): Likewise. + +2012-10-09 Paolo Carlini + + PR c++/54194 + * typeck.c (build_x_binary_op): Update warn_about_parentheses call. + * parser.c (cp_parser_binary_expression): Use SET_EXPR_LOCATION + on current.lhs. + +2012-10-09 Marc Glisse + + PR c++/54427 + * typeck.c (cp_build_binary_op): Handle mixed scalar-vector + operations. + [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise. + +2012-10-08 Jakub Jelinek + + PR c++/54858 + * tree.c (cp_tree_equal): Handle FIELD_DECL. + +2012-10-08 Jason Merrill + + Allow dynamic initialization of thread_locals. + * decl.c: Define tls_aggregates. + (expand_static_init): Remove sorry. Add to tls_aggregates. + * cp-tree.h: Declare tls_aggregates. + * call.c (set_up_extended_ref_temp): Add to tls_aggregates. + * decl2.c (var_needs_tls_wrapper): New. + (var_defined_without_dynamic_init): New. + (get_tls_init_fn, get_tls_wrapper_fn): New. + (generate_tls_wrapper, handle_tls_init): New. + (cp_write_global_declarations): Call handle_tls_init and + enerate_tls_wrapper. + * mangle.c (write_guarded_var_name): Split out from.. + (mangle_guard_variable): ...here. + (mangle_tls_init_fn, mangle_tls_wrapper_fn): Use it. + (decl_tls_wrapper_p): New. + * semantics.c (finish_id_expression): Replace use of thread_local + variable with a call to its wrapper. + + * decl.c (get_thread_atexit_node): New. + (register_dtor_fn): Use it for TLS. + + Partial implementation of C++11 thread_local. + * decl.c (cp_finish_decl): Remove errors about non-trivial + initialization and destruction of TLS variables. + (register_dtor_fn): Add sorry about TLS variables. + (expand_static_init): Add sorry about non-local TLS variables, + or error with __thread. + Don't emit thread-safety guards for local TLS variables. + (grokdeclarator): thread_local in a function implies static. + * decl.h: Adjust prototype. + * decl2.c (get_guard): Copy DECL_TLS_MODEL. + * parser.c (cp_parser_set_storage_class, cp_parser_set_decl_spec_type) + (set_and_check_decl_spec_loc): Take the token rather than the location. + Distinguish between __thread and thread_local. + (cp_parser_set_storage_class): Don't complain about thread_local before + extern/static. + (token_is__thread): New. + * call.c (make_temporary_var_for_ref_to_temp): Handle TLS. + * cp-tree.h (DECL_GNU_TLS_P): New. + (cp_decl_specifier_seq): Add gnu_thread_keyword_p. + +2012-10-08 Dodji Seketeli + + PR c++/53528 C++11 attribute support + * cp-tree.h (enum cpp0x_warn_str::CPP0X_ATTRIBUTES): New member. + (enum cp_decl_spec::ds_std_attribute): New enumerator. + (struct cp_decl_specifier_seq::std_attributes): New field. + (cxx_alignas_expr, warn_misplaced_attr_for_class_type): Declare + new functions. + (check_tag_decl): Take an extra parameter for explicit + instantiations. + * decl.c (warn_misplaced_attr_for_class_type): Extract from ... + (check_tag_decl): ... here. Add check for c++11 attributes being + applied to an explicit instantiation. Take an extra parameter for + explicit instantiations. + (grokdeclarator): Make sure a c++11 attribute after an array + declarator appertains to the array, an attribute after a function + declarator appertains to the function type, an attribute after a + declarator-id appertains to the entity being declared, and an + attribute after a pointer declarator appertain to the pointer. + * decl2.c (is_late_template_attribute): Use get_attribute_name. + * error.c (maybe_warn_cpp0x): Support + CPP0X_GENERALIZED_ATTRIBUTES. + * parser.c (cp_next_tokens_can_be_attribute_p) + (cp_next_tokens_can_be_gnu_attribute_p) + (cp_next_tokens_can_be_std_attribute_p) + (cp_nth_tokens_can_be_attribute_p) + (cp_nth_tokens_can_be_gnu_attribute_p) + (cp_nth_tokens_can_be_std_attribute_p) + (cp_parser_gnu_attribute_list, cp_parser_std_attribute) + (cp_parser_std_attribute_spec, cp_parser_std_attribute_spec_seq) + (cp_parser_attributes_opt, cp_parser_std_attribute_list): New + static functions. + (cp_parser_gnu_attributes_opt): Replace cp_parser_attributes_opt. + (cp_parser_gnu_attribute_list): Replace cp_parser_attribute_list. + (cp_parser_postfix_expression): Disallow "[[" tokens here. + (cp_parser_label_for_labeled_statement): Use take an extra + parameter for attributes. + (cp_parser_block_declaration): Use + cp_nth_tokens_can_be_std_attribute_p here. + (cp_parser_decl_specifier_seq): Likewise. Store C++11 attributes + that appears in in decl specifiers in cp_decl_specifier_seq::std_attributes. + declaration. Emit proper warning about misplaced c++11 attributes + for class type. + (cp_parser_explicit_instantiation): Adjust call to check_tag_decl. + (cp_parser_init_declarator): Parsing attributes here is no more a + GNU extension in c++-11. + (cp_parser_type_specifier_seq): Use + cp_next_tokens_can_be_attribute_p. + (cp_parser_direct_declarator): Likewise. Hang c++11 attributes + following the declarator to its syntactic construct. It'll later + be applied to the proper appertaining entity by grokdeclarator. + (cp_parser_ptr_operator): Likewise. + (make_declarator): Initialize cp_declarator::std_attribute. + (make_pointer_declarator, make_reference_declarator) + (make_ptrmem_declarator, cp_parser_make_indirect_declarator): Take + attributes that appertain to the pointer/reference in argument. + (cp_parser_ptr_operator): Take an out parameter for c++11 + attributes. Update comments. + (cp_parser_new_declarator_opt) + (cp_parser_conversion_declarator_opt): Adjust. + (cp_parser_declarator): Likewise. Handle C++11 attributes. + Rename attributes to gnu_attribute for better legibility. + (cp_parser_simple_declaration): Update comment. + (cp_parser_class_specifier_1): Parse GNU attributes specifically + (cp_parser_enum_specifier): Accept only gnu attributes after the + specifier. + (cp_parser_member_declaration): Don't clear attributes -- intended + for the entity being declared -- too early because check_tag_decl + needs them. + (cp_parser_statement): Update comment. Parse optional c++11 + attributes at the beginning of the relevant kind of statements and + ignore them, for now, unless when calling + cp_parser_label_for_labeled_statement. + (cp_parser_label_for_labeled_statement): Take c++11 attributes + in parameter. + * semantics.c (potential_constant_expression_1): Likewise. + * typeck.c (fundamental_alignment_p, cxx_alignas_expr): New public + functions. + +2012-10-07 Paolo Carlini + + * pt.c (fold_non_dependent_expr_sfinae): Remove static specifier. + (tsubst_copy_and_build): Use get_target_expr_sfinae. + * call.c (build_conditional_expr_1, convert_like_real): Likewise. + * cvt.c (build_up_reference): Likewise. + (ocp_convert): Use abstract_virtuals_error_sfinae. + (build_up_reference): Propagate complain to cp_build_addr_expr. + * decl.c (compute_array_index_type): Use fold_non_dependent_expr_sfinae. + * cp-tree.h: Update declarations. + + * cvt.c (build_expr_type_conversion): Tidy. + + * tree.c (stabilize_aggr_init): Change to static. + +2012-10-07 Paolo Carlini + + PR c++/51422 + * semantics.c (is_normal_capture_proxy): Return true for + error_mark_node as DECL_VALUE_EXPR. + +2012-10-05 Jakub Jelinek + + * cp-tree.h (SIZEOF_EXPR_TYPE_P): Define. + * tree.c (cp_tree_equal): Handle SIZEOF_EXPR with + SIZEOF_EXPR_TYPE_P. + * mangle.c (write_expression): Likewise. + * cxx-pretty-print.c (pp_cxx_unary_expression): Likewise. + * error.c (dump_expr): Likewise. + * parser.c (cp_parser_unary_expression): For sizeof call + cxx_sizeof_or_alignof_{type,expr} just for diagnostics and + return SIZEOF_EXPR with the operand. + * pt.c (tsubst_copy, tsubst_copy_and_build): For SIZEOF_EXPR, + call cxx_sizeof_or_alignof_{type,expr} for diagnostics, but + return SIZEOF_EXPR with tsubsted operand. + (value_dependent_expression_p): Handle SIZEOF_EXPR with + SIZEOF_EXPR_TYPE_P. + (instantiation_dependent_r): Likewise. + * call.c (null_ptr_cst_p): Call maybe_constant_value for C++98. + * semantics.c (finish_call_expr): Call + sizeof_pointer_memaccess_warning if needed. + (cxx_eval_constant_expression): Handle SIZEOF_EXPR. + (potential_constant_expression_1): Remove early exit for + C++98. Handle PROPERTY_REF. + * decl.c (duplicate_decls): When redeclaring a builtin function, + keep the merged decl builtin also if newdecl is a gnu_inline + inline definition. + (fold_sizeof_expr_r): New function. + (compute_array_index_type): Fold SIZEOF_EXPRs in itype. + * cp-gimplify.c (cp_genericize_r): Fold SIZEOF_EXPR. + * typeck.c (cp_build_binary_op): For warn_for_sign_compare + try harder using maybe_constant_value to get INTEGER_CSTs. + + * decl.c (stabilize_vla_size): Call pointer_set_destroy + at the end. + +2012-10-04 Arnaud Charlet + + * decl2.c (cp_write_global_declarations): Fix handling of + -fdump-ada-spec*. + +2012-10-03 Jakub Jelinek + + PR c++/54777 + * semantics.c (cxx_eval_constant_expression) : If + not ignoring the second operand, pass the original second operand + and not one with stripped nops to cxx_eval_constant_expression. + +2012-10-01 Jason Merrill + + * decl.c (check_initializer): Set DECL_NONTRIVIALLY_INITIALIZED_P + for a constructor call. + (decl_jump_unsafe): So don't bother checking + type_has_nontrivial_default_init. + * call.c (set_up_extended_ref_temp): Set + DECL_NONTRIVIALLY_INITIALIZED_P. + + * cp-tree.h (TYPE_FUNCTION_OR_TEMPLATE_DECL_CHECK): New. + (DECL_FRIEND_P, DECL_ANTICIPATED): Use it. + (TYPE_FUNCTION_OR_TEMPLATE_DECL_P): New. + * name-lookup.c (hidden_name_p): Use it. + + * cp-tree.h (DECL_PRETTY_FUNCTION_P): Just look at the name. + * decl.c (cp_make_fname_decl): Adjust. + +2012-09-30 Sharad Singhai + + * decl2.c (cp_write_global_declarations): Use a different method + to determine if the dump has ben initialized. + +2012-09-29 Paolo Carlini + + PR c++/54738 + * decl2.c (build_offset_ref_call_from_tree): Add tsubst_flags_t + parameter. + * pt.c (tsubst_copy_and_build): Adjust. + * parser.c (cp_parser_postfix_expression): Likewise. + * cp-tree.h: Adjust declaration. + +2012-09-28 Dodji Seketeli + + PR c++/54372 - unused attribute inactive on dependant entities + * decl2.c (is_late_template_attribute): "unused" attribute is to + be applied at compile time. + +2012-09-25 Dodji Seketeli + + PR c++/29028 - Missed unused warning on using declaration + * decl.c (poplevel): Do not forget that some local + bindings are represented by a TREE_LIST. + +2012-09-25 Dodji Seketeli + + PR c++/53551 - -Wunused-local-typedefs misses uses + * decl.c (make_typename_type): Record the use of typedefs. + +2012-09-27 Jakub Jelinek + + * init.c (build_new_1): Don't test TREE_CONSTANT + of INTEGER_CST. + +2012-09-25 Paolo Carlini + + PR c++/54526 + * parser.c (cp_parser_template_id): In C++11 mode simply accept + X<::A>. + +2012-09-25 Zhenqiang Chen + + PR c++/50970 + * typeck.c (cp_build_binary_op): Check side effects before generating + pfn and delta related expressions. + +2012-09-24 Lawrence Crowl + + * init.c (build_new_1): Change to new double_int API. + * decl.c (build_enumerator): Likewise. + * typeck2.c (process_init_constructor_array): Likewise. + * mangle.c (write_array_type): Likewise. + +2012-09-24 Paolo Carlini + + PR c++/50828 + * error.c (dump_function_decl): Strip TFF_TEMPLATE_NAME from flags + at the outset. + +2012-09-24 Jason Merrill + + * decl.c (get_atexit_node): Remove dead code. + + * Make-lang.in (cp/parser.o): Depend on decl.h. + +2012-09-20 Paolo Carlini + + PR c++/52432 + * pt.c (tsubst_copy_and_build): If tf_error is not set in the complain + argument don't call unqualified_name_lookup_error. + +2012-09-19 Marc Glisse + + PR c++/54581 + * semantics.c (finish_decltype_type): Make vectors not opaque. + +2012-09-17 Jason Merrill + + PR c++/54575 + * pt.c (instantiate_alias_template): New. + (tsubst): Use it. + (push_access_scope): Allow TYPE_DECL. + +2012-09-14 Jason Merrill + + PR c++/53661 + * typeck2.c (check_narrowing): Avoid false positives on conversion + from enumeral type. + +2012-09-14 Marc Glisse + + PR c++/54427 + * typeck.c (cp_build_binary_op) [LSHIFT_EXPR, RSHIFT_EXPR, EQ_EXPR, + NE_EXPR, LE_EXPR, GE_EXPR, LT_EXPR, GT_EXPR]: Handle VECTOR_TYPE. + +2012-09-14 Paolo Carlini + + * decl.c (make_typename_type): Only error out if tf_error is set + in complain. + +2012-09-13 Paolo Carlini + Manuel López-Ibáñez + + PR c++/53210 + * init.c (perform_member_init): Use OPT_Winit_self instead of + OPT_Wuninitialized. + +2012-09-13 Paolo Carlini + + * typeck.c (build_indirect_ref, build_function_call, + build_function_call_vec, build_binary_op, build_unary_op, + build_compound_expr, build_c_cast, build_modify_expr): Remove + uses of ATTRIBUTE_UNUSED on the parameters. + * class.c (set_linkage_according_to_type, resort_type_method_vec, + dfs_find_final_overrider_post, empty_base_at_nonzero_offset_p): + Likewise. + * decl.c (local_variable_p_walkfn): Likewise. + * except.c (wrap_cleanups_r, check_noexcept_r): Likewise. + * error.c (find_typenames_r): Likewise. + * tree.c (verify_stmt_tree_r, bot_replace, + handle_java_interface_attribute, handle_com_interface_attribute, + handle_init_priority_attribute, c_register_addr_space): Likewise. + * cp-gimplify.c (cxx_omp_clause_default_ctor): Likewise. + * cp-lang.c (objcp_tsubst_copy_and_build): Likewise. + * pt.c (unify_success, unify_invalid, instantiation_dependent_r): + Likewise. + * semantics.c (dfs_calculate_bases_pre): Likewise. + * decl2.c (fix_temporary_vars_context_r, clear_decl_external): + Likewise. + * parser.c (cp_lexer_token_at, cp_parser_omp_clause_mergeable, + cp_parser_omp_clause_nowait, cp_parser_omp_clause_ordered, + cp_parser_omp_clause_untied): Likewise. + * mangle.c (write_unnamed_type_name, + discriminator_for_string_literal): Likewise. + * search.c (dfs_accessible_post, dfs_debug_mark): Likewise. + * lex.c (handle_pragma_vtable, handle_pragma_unit, + handle_pragma_interface, handle_pragma_implementation, + handle_pragma_java_exceptions): Likewise. + +2012-09-13 Jason Merrill + + PR c++/53839 + * semantics.c (cxx_eval_indirect_ref): If we aren't looking for an + address, make sure the value is constant. + + PR c++/54511 + * pt.c (tsubst_decl) [VAR_DECL]: Handle DECL_ANON_UNION_VAR_P. + + PR c++/53836 + * pt.c (value_dependent_expression_p): A TREE_LIST initializer must + be dependent. + +2012-09-10 Paolo Carlini + + PR c++/54541 + PR c++/54542 + * call.c (build_cxx_call): Add tsubst_flags_t parameter, use + require_complete_type_sfinae. + (build_op_delete_call, build_over_call): Adjust. + * typeck.c (build_x_compound_expr_from_vec): Add tsubst_flags_t + parameter. + (cp_build_function_call_vec): Adjust. + * init.c (build_new_1): Likewise. + * rtti.c (throw_bad_cast, throw_bad_typeid, build_dynamic_cast_1): + Likewise. + * optimize.c (build_delete_destructor_body): Likewise. + * cp-tree.h: Adjust declarations. + + * call.c (convert_arg_to_ellipsis): Use require_complete_type_sfinae. + +2012-09-10 Jason Merrill + + PR c++/54538 + PR c++/53783 + * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Go back to using RECUR + for LAMBDA_EXPR_EXTRA_SCOPE except for function scope. + + PR c++/54506 + * decl.c (move_signature_fn_p): Split out from move_fn_p. + * method.c (process_subob_fn): Use it. + * cp-tree.h: Declare it. + +2012-09-07 Jason Merrill + + * semantics.c (sort_constexpr_mem_initializers): Tweak. + +2012-09-09 Mark Kettenis + + * decl.c (reshape_init_class): Avoid dereferencing a + past-the-end pointer. + +2012-09-07 Paolo Carlini + + * pt.c (num_template_headers_for_class): Rework per the code + inline in cp_parser_check_declarator_template_parameters. + * parser.c (cp_parser_check_declarator_template_parameters): + Use num_template_headers_for_class. + +2012-09-06 Jason Merrill + + PR c++/54341 + PR c++/54253 + * semantics.c (sort_constexpr_mem_initializers): New. + (build_constexpr_constructor_member_initializers): Use it. + (cx_check_missing_mem_inits): Skip artificial fields. + * init.c (expand_aggr_init_1): Don't zero out a class + with no data. + +2012-09-05 Paolo Carlini + + PR c++/54191 + * search.c (lookup_base): Add tsubst_flags_t parameter. + (adjust_result_of_qualified_name_lookup, check_final_overrider): + Adjust. + * name-lookup.c (do_class_using_decl): Adjust. + * typeck2.c (binfo_or_else, build_scoped_ref, build_m_component_ref): + Likewise. + * cvt.c (cp_convert_to_pointer, convert_to_pointer_force, + build_up_reference): Likewise. + * rtti.c (build_dynamic_cast_1): Likewise. + * tree.c (maybe_dummy_object): Likewise. + * call.c (build_conditional_expr_1, build_over_call): Likewise. + * cp-tree.h (UNIQUELY_DERIVED_FROM_P, PUBLICLY_UNIQUELY_DERIVED_P): + Remove. + (enum base_access_flags, ba_quiet): Remove. + (uniquely_derived_from_p, publicly_uniquely_derived_p): Declare. + * except.c (can_convert_eh): Adjust. + * decl.c (grokdeclarator): Likewise. + * typeck.c (comp_except_types, build_class_member_access_expr, + finish_class_member_access_expr, get_member_function_from_ptrfunc, + build_static_cast_1, get_delta_difference_1): Likewise. + * class.c (build_base_path, convert_to_base, build_vtbl_ref_1, + warn_about_ambiguous_bases): Likewise. + (uniquely_derived_from_p, publicly_uniquely_derived_p): Define. + +2012-09-04 Jason Merrill + + PR c++/54441 + * decl.c (reshape_init_class): Handle invalid initializer for + 0-length array member. + + * error.c (dump_type_suffix): Correct handling of 0-length arrays. + + PR c++/54420 + * cp-tree.h (LAMBDANAME_P): Remove. + (LAMBDA_TYPE_P): Check CLASSTYPE_LAMBDA_EXPR instead. + * cp-lang.c (cxx_dwarf_name): Likewise. + * error.c (dump_aggr_type): Likewise. + * semantics.c (begin_lambda_type): Set CLASSTYPE_LAMBDA_EXPR sooner. + + PR c++/54198 + * decl.c (check_default_argument): Set cp_unevaluated_operand + around call to perform_implicit_conversion_flags. + + PR c++/54437 + PR c++/51213 + * pt.c (fn_type_unification): Call coerce_template_parms before + entering substitution context. + +2012-08-31 Paolo Carlini + Jason Merrill + + PR c++/18747 + * pt.c (check_template_variable): New. + (num_template_headers_for_class): Split out... + * decl.c (grokdeclarator): ...from here. + (start_decl): Remove redundant diagnostic. + * cp-tree.h: Declare them + * parser.c (cp_parser_single_declaration): Call check_template_variable. + +2012-08-31 Ollie Wild + + PR c++/54197 + * call.c (extend_ref_init_temps_1): Handle COMPOUND_EXPR trees. + +2012-08-30 Jason Merrill + + PR c++/50545 + PR c++/51222 + * pt.c (instantiation_dependent_r): New. + (instantiation_dependent_expression_p): New. + (value_dependent_expression_p): Use it. SCOPE_REF is always dependent. + * semantics.c (finish_decltype_type): Use it. + * cp-tree.h: Declare it. + + * semantics.c (finish_qualified_id_expr): Handle building up a + non-dependent SCOPE_REF here. + (finish_id_expression): Not here. + * error.c (dump_decl) [SCOPE_REF]: Only pass TFF_UNQUALIFIED_NAME. + + * friend.c (make_friend_class): Handle template template parameters. + * parser.c (cp_parser_template_declaration_after_export): Likewise. + * pt.c (tsubst_friend_class): Likewise. + (instantiate_class_template_1): Likewise + * decl.c (check_elaborated_type_specifier): Likewise. + (lookup_and_check_tag): Likewise. + + * pt.c (get_class_bindings): Call coerce_template_parms. Add + main_tmpl parameter. + (more_specialized_class): Add main_tmpl parameter. + (most_specialized_class): Adjust calls. + + * decl.c (cp_finish_decl): Check for invalid multiple initializers + even if the initializer is dependent. + + * pt.c (instantiate_template_1): Keep processing_template_decl set + if there are dependent args. + +2012-08-25 Paolo Carlini + + PR c++/51421 + * decl2.c (mark_used): Consistently return false after errors + about uses before deduction of auto. + * semantics.c (finish_id_expression): Check mark_used return + value and return error_mark_node in case of failure. + +2012-08-24 Jason Merrill + + PR c++/51213 (again) + * pt.c (deduction_tsubst_fntype): Remove. + (fn_type_unification): Check deduction depth and call + instantiate_template here. Handle default argument access checks. + (determine_specialization): Suppress access control. + (tsubst_decl): Check for excessive deduction depth. + (recheck_decl_substitution): Make sure access control is on. + (type_unification_real): Don't mess with access deferring here. + (get_bindings): Adjust for fn_type_unification return type. + * call.c (enum rejection_reason_code): Drop rr_template_instantiation. + (template_instantiation_rejection): Remove. + (struct rejection_reason): Change targs to num_targs. + (template_unification_rejection, print_z_candidate): Adjust. + (add_template_candidate_real): Adjust for fn_type_unification change. + * class.c (resolve_address_of_overloaded_function): Likewise. + * cp-tree.h: Adjust declaration. + + * pt.c (tsubst_default_argument): Indicate where the default + argument is being instantiated for. + (tsubst_expr): Restore previous location. + (tsubst_copy_and_build): Set and restore location. + * call.c (build_new_method_call_1): Remember location of call. + * semantics.c (finish_call_expr): Here too. + * parser.c (cp_parser_omp_for_loop): Remember the location of the + increment expression. + + * pt.c (resolve_overloaded_unification): Use coerce_template_parms + instead of get_bindings. + (resolve_nondeduced_context): Likewise. + + * pt.c (register_specialization): Correct argument to + check_specialization_namespace. + (determine_specialization): Don't consider members of + unspecialized types. + +2012-08-23 Jason Merrill + + * decl.c (compute_array_index_type): Use type_dependent_expression_p. + +2012-08-23 Paolo Carlini + + PR c++/20420 + * name-lookup.c (supplement_binding_1): Handle specially enums + only in class templates. + (validate_nonmember_using_decl): Enforce 7.3.3/10 about duplicate + using declarations at function scope. + +2012-08-21 Richard Guenther + + * cp-tree.h (TREE_INDIRECT_USING): Use TREE_LANG_FLAG_0 accessor. + (ATTR_IS_DEPENDENT): Likewise. + (ARGUMENT_PACK_INCOMPLETE_P): Use TREE_ADDRESSABLE instead of + TREE_LANG_FLAG_0 on TREE_VECs. + +2012-08-20 Florian Weimer + + PR c++/19351 + * call.c (build_operator_new_call): Add size_check argument and + evaluate it. + * cp-tree.h (build_operator_new_call): Adjust declaration. + * init.c (build_new_1): Compute array size check and apply it. + +2012-08-20 Paolo Carlini + + PR c++/10416 + * decl.c (poplevel): Check TYPE_HAS_NONTRIVIAL_DESTRUCTOR for + Wunused_variable too. + +2012-08-20 Diego Novillo + + * decl.c (poplevel): Start TV_NAME_LOOKUP conditionally. + +2012-08-20 Richard Guenther + + * name-lookup.c (store_binding_p): New predicate, split out from ... + (store_binding): ... here. Always store binding and require + target vector with enough space. + (store_bindings): Collect to store bindings and reserve space + for them, then store them. + (store_class_bindings): Likewise. + +2012-08-19 Mikael Morin + + * Make-lang.in: Fix typo. + +2012-08-17 Jakub Jelinek + + * cp-tree.def (SIZEOF_EXPR): Move to c-common.def. + +2012-08-14 Diego Novillo + + Merge from cxx-conversion branch. Re-write VEC in C++. + + * call.c (add_function_candidate): Remove const qualifier + from call to VEC_index. + +2012-08-10 Richard Guenther + + * error.c (dump_expr): Handle anonymous SSA names. + +2012-08-07 Steven Bosscher + + * error.c (print_instantiation_context): Pretty-print a newline before + diagnostic_flush_buffer. + * cxx-pretty-print.c (pp_cxx_function_definition): Use + pp_newline_and_flush instead of separate pp_newline and pp_flush. + +2012-08-06 Dodji Seketeli + + Avoid crashing on erroneous static_assert usage + * semantics.c (finish_static_assert): Don't crash on erroneous + message or condition. + +2012-08-06 Marc Glisse + Paolo Carlini + + PR c++/54165 + * typeck.c (build_static_cast_1): Move the conversion to void case + before the perform_direct_initialization_if_possible call. + +2012-08-03 Marc Glisse + + * pt.c (tsubst_copy_and_build): Handle VECTOR_TYPE like scalars. + * cp-tree.h (scalarish_type_p): Declare. + * tree.c (scalarish_type_p): Make non-static. + +2012-08-02 Jason Merrill + Paolo Carlini + + PR c++/51213 (again) + * pt.c (type_unification_real): Call push_deferring_access_checks / + pop_deferring_access_checks around the substitution of default + template args. + (instantiate_template_1): When the specialization returned by + retrieve_specialization has FNDECL_HAS_ACCESS_ERRORS set and we + are in a SFINAE context, simply return error_mark_node. + * cp-tree.h (FNDECL_RECHECK_ACCESS_P): Rename FNDECL_HAS_ACCESS_ERRORS. + +2012-07-31 Paolo Carlini + + * pt.c (check_default_tmpl_args): Change is_primary and is_partial + parameters to bool type, adjust. + (push_template_decl_real): Tidy. + * parser.c (cp_parser_init_declarator): Adjust. + * decl.c (redeclaration_error_message): Likewise. + * cp-tree.h (check_default_tmpl_args): Update prototype. + +2012-07-31 Paolo Carlini + + PR c++/53624 + * pt.c (check_default_tmpl_args): Don't check local types. + +2012-07-25 Sandra Loosemore + Paul Brook + + PR target/53633 + * decl.c (finish_function): Check targetm.warn_func_return. + +2012-07-25 Jason Merrill + + PR c++/54086 + * decl.c (grokdeclarator): Allow const and constexpr together. + + PR c++/54020 + * semantics.c (potential_constant_expression_1) [COND_EXPR]: Call + maybe_constant_value. + + * cp-tree.h (tsubst_flags): Remove tf_no_access_control. + * call.c (standard_conversion): Don't set it. + * class.c (resolve_address_of_overloaded_function): Don't check it. + * decl.c (check_default_argument): Call + perform_implicit_conversion_flags. + + * pt.c (print_candidates_1): Use inform instead of error. + +2012-07-24 Paolo Carlini + + * pt.c (convert_template_argument, tsubst): Simplify fourth argument + to make_typename_type (complain & tf_error -> complain). + +2012-07-24 Steven Bosscher + + * class.c (n_vtables, n_vtable_entries, n_vtable_searches, + n_vtable_elems, n_convert_harshness, n_compute_conversion_costs, + n_inner_fields_searched): Always define. + (build_primary_vtable): Convert #ifdef GATHER_STATISTICS to if-code. + (print_class_statistics): Convert #ifdef GATHER_STATISTICS to if-code. + * tree.c (depth_reached): Always define global. + (cxx_print_statistics): Convert #ifdef GATHER_STATISTICS to if-code. + * pt.c (depth_reached): Always define. + (push_tinst_level): Convert #ifdef GATHER_STATISTICS to if-code. + * search.c (n_fields_searched, n_calls_lookup_field, + n_calls_lookup_field_1, n_calls_lookup_fnfields, + n_calls_lookup_fnfields_1, n_calls_get_base_type, + n_outer_fields_searched, n_contexts_saved): Always define. + (lookup_field_1): Convert #ifdef GATHER_STATISTICS to if-code. + (lookup_member): Likewise. + (lookup_fnfields_idx_nolazy): Likewise. + (print_search_statistics): Likewise. + (reinit_search_statistics): Unconditionally re-set counters. + * lex.c (retrofit_lang_decl): Convert #ifdef GATHER_STATISTICS + to if-code. + (cxx_dup_lang_specific_decl): Likewise. + (copy_lang_type): Likewise. + (cxx_make_type): Likewise. + +2012-07-20 Jason Merrill + + PR c++/54038 + * tree.c (build_cplus_array_type): Use build_cplus_array_type to build + canonical array type rather than mess with its TYPE_*_VARIANT. + +2012-07-19 Jason Merrill + + PR c++/54026 + * typeck.c (cp_apply_type_quals_to_decl): Check COMPLETE_TYPE_P. + + PR c++/54021 + * call.c (build_cxx_call): Set optimize when folding + __builtin_constant_p in a constexpr function. + +2012-07-18 Jason Merrill + + * pt.c (instantiate_decl): Don't recheck substitutions. + +2012-07-18 Paolo Carlini + Jason Merrill + + DR 1170 + PR c++/51213 + * semantics.c (perform_access_checks): Add complain parm, return bool. + (perform_deferred_access_checks): Likewise. + (perform_or_defer_access_check): Likewise. + (speculative_access_check): Remove. + * call.c (enforce_access): Add complain parm, return bool. + * decl.c, friend.c, class.c, init.c, parser.c: Adjust callers. + * search.c: Adjust callers. + * cp-tree.h (TINFO_RECHECK_ACCESS_P): New macro. + (FNDECL_RECHECK_ACCESS_P): New macro. + * method.c (synthesized_method_walk): Stop deferring access checks. + * pt.c (recheck_decl_substitution): New. + (instantiate_template_1): Set and check FNDECL_RECHECK_ACCESS_P. + +2012-07-18 Jason Merrill + + * method.c (process_subob_fn): Make sure no_implicit_p is non-null + before trying to store through it. + +2012-07-17 Jason Merrill + + PR c++/53995 + * decl.c (finish_enum_value_list): Only call + insert_late_enum_def_into_classtype_sorted_fields in class scope. + + PR c++/53989 + * tree.c (build_cplus_array_type): Also add TYPE_CANONICAL + to the list of variants. + + * decl.c (xref_basetypes): Complain about incomplete template base. + * class.c (finish_struct): Adjust variants in templates, too. + + PR c++/53549 + * parser.c (cp_parser_class_head): Call xref_basetypes here. + (cp_parser_class_specifier_1): Not here. + * pt.c (tsubst_decl) [USING_DECL]: Check uses_template_parms + as well as DECL_DEPENDENT_P. + +2012-07-16 Jason Merrill + + * cp-tree.h (struct deferred_access_check): Add location. + * semantics.c (perform_access_checks): Use it. + (perform_or_defer_access_check): Store it. + +2012-07-16 Steven Bosscher + + * dump.c (dump_stmt): Moved here from c-dump.c. + * optimize.c: Include dumpfile.h instead of tree-dump.h. + * class.c: Likewise. + * decl2.c: Likewise. + * Make-lang.in: Fix dependencies. + +2012-07-13 Jason Merrill + + PR c++/53953 + * method.c (synthesized_method_walk): Initialize no_implicit_p sooner. + +2012-07-12 Jason Merrill + + * pt.c (instantiate_decl): Check typedefs access here. + (instantiate_template_1): Not here. + + * pt.c (deduction_tsubst_fntype): Just suppress access checking. + (instantiate_template_1): Set DECL_TI_TEMPLATE before access checking. + (push_deduction_access_scope, pop_deduction_access_scope): Remove. + +2012-07-11 Jason Merrill + + DR 1402 + * method.c (synthesized_method_walk): Replace uses of msg with diag. + Correct handling of virtual bases with move operations. + (process_subob_fn, walk_field_subobs): Replace uses of msg with diag. + +2012-07-11 Steven Bosscher + + * method.c: Do not include tree-pass.h. + +2012-07-10 Jason Merrill + + DR 1402 + PR c++/53733 + * cp-tree.h (FNDECL_SUPPRESS_IMPLICIT_DECL): New. + (struct lang_decl_fn): Add suppress_implicit_decl field. + * method.c (implicitly_declare_fn): Check it. + (process_subob_fn): Add no_implicit_p parm. + (walk_field_subobs, synthesized_method_walk): Likewise. + (maybe_explain_implicit_delete): Adjust. + (explain_implicit_non_constexpr): Adjust. + + * method.c (synthesized_method_walk): Avoid changing + EH spec based on cleanups in other places, too. + +2012-07-09 Sterling Augustine + + * error.c (lang_decl_name): Use TFF_UNQUALIFIED_NAME flag. + +2012-07-08 Steven Bosscher + + * decl.c (cp_finish_decl): Add FIXME at add_local_decl call site. + +2012-07-06 Jason Merrill + + PR c++/53862 + * pt.c (tsubst_arg_types): Add "end" parameter. + (check_undeduced_parms): Use it. + + * cp-tree.h (DECL_DECLARES_TYPE_P): Check DECL_TYPE_TEMPLATE_P. + + PR c++/53858 + * name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P. + +2012-07-05 Jason Merrill + + PR c++/53039 + * pt.c (arg_from_parm_pack_p): Go back to using same_type_p or + cp_tree_equal. + + * cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove. + (struct template_parm_index_s): Remove num_siblings. + * pt.c (fixup_template_parms, fixup_template_parm_index): Remove. + (fixup_template_type_parm_type): Remove. + (build_template_parm_index): Remove num_siblings parm. + (process_template_parm): Likewise. + * parser.c (cp_parser_template_parameter_list): Adjust. + * tree.c (cp_tree_equal): Don't compare num_siblings. + * typeck.c (comp_template_parms_position): Likewise. + + PR c++/50852 + PR c++/53039 + * tree.c (strip_typedefs_expr): New. + * cp-tree.h: Declare it. + * pt.c (convert_template_argument, unify): Use it. + * parser.c (cp_parser_template_declaration_after_export): Don't call + fixup_template_parms. + +2012-07-04 Jason Merrill + + PR c++/53848 + PR c++/53524 + * decl.c (build_enumerator): Don't use build_lang_decl_loc. + +2012-07-03 Jakub Jelinek + + PR c++/53812 + * semantics.c (finish_goto_stmt): Surround computed goto argument + with CLEANUP_POINT_EXPR if needed. + +2012-07-02 Jason Merrill + + PR c++/53619 + * pt.c (in_template_function): New. + * cp-tree.h: Declare it. + * class.c (build_base_path, resolves_to_fixed_type_p): Use it. + + PR c++/53783 + * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Use tsubst + for LAMBDA_EXPR_EXTRA_SCOPE. + + PR c++/53788 + * pt.c (build_non_dependent_expr): Don't wrap a dummy object. + + PR c++/53816 + * class.c (resolves_to_fixed_type_p): Check uses_template_parms + (current_function_decl) instead of processing_template_decl. + + PR c++/53821 + * semantics.c (maybe_add_lambda_conv_op): Don't set + DECL_INTERFACE_KNOWN. + + PR c++/53524 + * call.c (build_conditional_expr_1): Don't warn about comparison of + two enumerators before their enumeration is complete. + (build_new_op_1): Call decay_conversion before warn_logical_operator. + * decl.c (build_enumerator): Set DECL_CONTEXT of an enumerator to + its enumeration. + * decl2.c (mark_used): Call used_types_insert for enums. + * semantics.c (finish_id_expression): Don't decay CONST_DECL. + (finish_member_declaration): Don't change DECL_CONTEXT of enumerators. + * class.c (check_field_decls): Don't change DECL_CONTEXT of enums. + * typeck.c (convert_for_assignment): Don't decay CONST_DECL. + (build_class_member_access_expr): Look through unscoped enums. + * search.c (context_for_name_lookup): Look through unscoped enums. + * pt.c (tsubst_copy_and_build): Don't decay CONST_DECL. + (tsubst_copy): Use DECL_CONTEXT to find the enumeration. + * tree.c (decl_linkage): Likewise. + * cvt.c (ocp_convert): Check decayed expr for enum range warning. + +2012-06-29 Steven Bosscher + + * Make-lang.in: Remove tree-mudflap.o from CXX_AND_OBJCXX_OBJS. + +2012-06-27 Jason Merrill + + * parser.c (cp_parser_check_for_invalid_template_id): tag_type parm. + (cp_parser_simple_type_specifier, cp_parser_class_head): Adjust. + (cp_parser_elaborated_type_specifier): Adjust. + * decl.c (duplicate_decls): Return error_mark_node on template + mismatch. + + PR c++/53563 + * parser.c (cp_parser_template_id): Add tag_type parm. + (cp_parser_template_name): Likewise. + (cp_parser_id_expression, cp_parser_unqualified_id): Adjust. + (cp_parser_pseudo_destructor_name, cp_parser_type_name): Adjust. + (cp_parser_simple_type_specifier, cp_parser_class_name): Adjust. + (cp_parser_elaborated_type_specifier, cp_parser_class_head): Adjust. + +2012-06-27 Ramana Radhakrishnan + + PR C++/51033 + * semantics.c (constexpr_call): Fix typo in comment. + (cxx_eval_vec_perm_expr): New. + (cxx_eval_constant_expression): Fold VEC_PERM_EXPRs. + +2012-06-26 Richard Guenther + + PR c++/53752 + * mangle.c (write_array_type): Truncate the number-of-elements + result. + +2012-06-25 Jason Merrill + + PR c++/53498 + PR c++/53305 + * pt.c (tsubst_decl) [PARM_DECL]: Don't recurse into DECL_CHAIN + if cp_unevaluated_operand is set. + (tsubst_copy) [PARM_DECL]: Don't copy before tsubsting. + + PR c++/52988 + * typeck.c (decay_conversion): Don't discard side-effects from + expressions of nullptr_t. + +2012-06-25 Florian Weimer + + * init.c (build_new_1): Warn about (T[N]) for variable N, and + reject T[M][N]. + + * parser.c (cp_parser_direct_new_declarator): Accept non-constant + expressions. Handled now in build_new_1. + +2012-06-25 Jason Merrill + + PR c++/53202 + * semantics.c (build_data_member_initialization): Always keep + initializer for empty base. + (cxx_eval_bare_aggregate): Discard it here. + + PR c++/53565 + * pt.c (tsubst_omp_for_iterator): Simplify DECL_EXPR handling. + (tsubst_expr) [OMP_FOR]: Here, too. + +2012-06-25 Jakub Jelinek + + PR c++/53594 + * class.c (check_bases_and_members): Avoid -Wuninitialized + diagnostics for non-static const members or references if they + use NSDMI. + +2012-06-16 Ville Voutilainen + + * parser.c (cp_parser_direct_declarator): Move virt-specifier + parsing after late-specified return type parsing. + +2012-06-14 Jason Merrill + + PR c++/53651 + * name-lookup.c (constructor_name_p): Don't try to look at the + name of a DECLTYPE_TYPE. + +2012-06-18 Lawrence Crowl + + * decl2.c (cp_write_global_declarations): Rename use of TV_PHASE_CGRAPH + to TV_PHASE_OPT_GEN. + +2012-06-18 Steven Bosscher + + * decl.c (finish_function): Remove code conditional on VMS_TARGET. + +2012-06-15 Marc Glisse + + PR c++/51033 + * semantics.c (literal_type_p): Handle VECTOR_TYPE. + (potential_constant_expression_1): Handle VEC_PERM_EXPR. + * parser.c (cp_parser_postfix_expression): Handle RID_BUILTIN_SHUFFLE. + +2012-06-09 Jason Merrill + + * pt.c (tsubst_expr) [TAG_DEFN]: Instantiate local class. + * class.c (finish_struct): Don't add a TAG_DEFN for a lambda. + * decl2.c (finish_static_data_member_decl): Avoid redundant error. + + PR c++/53599 + * name-lookup.c (pushtag_1): Add a DECL_EXPR for a local class. + * semantics.c (finish_cond): Build a COMPOUND_EXPR. + * pt.c (tsubst_expr) [COMPOUND_EXPR]: Handle. + [DECL_EXPR]: Don't call cp_finish_decl for an implicit typedef. + Don't return the decl. + +2012-06-11 Richard Guenther + + PR c++/53605 + * mangle.c (write_array_type): Use double-ints for array domain + arithmetic. + +2012-06-07 Fabien Chêne + + PR c++/51214 + * cp-tree.h (insert_late_enum_def_into_classtype_sorted_fields): + Declare. + * class.c (insert_into_classtype_sorted_fields): New. + (add_enum_fields_to_record_type): New. + (count_fields): Adjust the comment. + (add_fields_to_record_type): Likewise. + (finish_struct_1): Move the code that inserts the fields for the + sorted case, into insert_into_classtype_sorted_fields, and call + it. + (insert_late_enum_def_into_classtype_sorted_fields): Define. + * decl.c (finish_enum_value_list): Call + insert_late_enum_def_into_classtype_sorted_fields if a late enum + definition is encountered. + +2012-06-06 Paolo Carlini + + PR c++/53567 + * typeck.c (cp_perform_integral_promotions): New, like + perform_integral_promotions but also takes a tsubst_flags_t parameter. + (pointer_diff): Add tsubst_flags_t parameter. + (decay_conversion, cp_default_conversion, cp_build_array_ref, + cp_build_binary_op, cp_build_unary_op, build_static_cast_1, + build_reinterpret_cast_1, cp_build_modify_expr, + convert_for_assignment): Adjust. + * optimize.c (build_delete_destructor_body): Adjust. + * init.c (expand_virtual_init, expand_default_init, build_new_1, + build_new, build_vec_delete_1, build_vec_init, build_delete): Adjust. + (construct_virtual_base): Adjust LOOKUP_COMPLAIN -> 0. + * class.c (build_base_path): Adjust. + * decl.c (compute_array_index_type, finish_destructor_body): Likewise. + * method.c (synthesized_method_walk): Adjust flag and complain. + * rtti.c (ifnonnull): Add tsubst_flags_t parameter. + (build_typeid, build_dynamic_cast_1): Adjust. + * except.c (initialize_handler_parm): Likewise. + * typeck2.c (process_init_constructor_record): Likewise. + * pt.c (tsubst_friend_class): Don't change flags. + * semantics.c (finish_goto_stmt, handle_omp_for_class_iterator, + finish_static_assert): Likewise. + * parser.c (cp_parser_lookup_name): Just pass 0 as flags to + lookup_name_real. + * call.c (build_op_delete_call): Add tsubst_flags_t parameter. + (convert_like_real, convert_arg_to_ellipsis, convert_for_arg_passing): + Adjust. + (standard_conversion): Adjust LOOKUP_COMPLAIN -> 0. + (implicit_conversion): Mask out tf_error with a FIXME. + (build_user_type_conversion_1, build_new_op_1, build_over_call): Use + complain & tf_error instead of flags & LOOKUP_COMPLAIN. + * cvt.c (cp_convert_to_pointer, convert_to_pointer_force, + build_up_reference, convert_to_reference, cp_convert, + cp_convert_and_check, ocp_convert, convert_force): Add tsubst_flags_t + parameter. + (convert_to_reference, ocp_convert): Use complain & tf_error instead + of flags & LOOKUP_COMPLAIN. + (convert_force): Adjust LOOKUP_COMPLAIN -> 0. + * name-lookup.c (identifier_type_value_1, lookup_qualified_name, + lookup_name_real, lookup_function_nonclass, lookup_name, + lookup_name_prefer_type): Adjust LOOKUP_COMPLAIN -> 0. + * cp-tree.h: Adjust prototypes; remove LOOKUP_COMPLAIN. + +2012-06-06 Steven Bosscher + + * decl.c: Do not include output.h. + (start_decl): Remove code for flag_conserve_space. + +2012-06-06 Fabien Chêne + + PR c++/52841 + * parser.c (cp_parser_alias_declaration): Return earlier + if an error occured. + +2012-06-04 Paolo Carlini + + PR c++/53524 + * call.c (build_conditional_expr_1): Use OPT_Wenum_compare + to control enumeral mismatch in conditional expression too. + +2012-06-04 Sterling Augustine + + * cp-tree.h: Declare decl_as_dwarf_string, lang_decl_dwarf_name. + * cp-lang.c (cxx_dwarf_name): Call them. + +2012-06-04 Steven Bosscher + + * semantics.c: Do not include output.h. + * decl2.c: Likewise. + * friend.c: Likewise. + * typeck.c: Likewise. + * typeck2.c: Likewise. + * Make-lang.in: Fix dependencies. + +2012-06-01 Jason Merrill + + PR c++/52973 + * parser.c (cp_parser_class_head): Apply attributes here. + * semantics.c (begin_class_definition): Not here. + * cp-tree.h: Adjust. + + PR c++/52725 + * parser.c (cp_parser_binary_expression): Bail early if we're parsing + tentatively and the LHS has a parse error. + + PR c++/53137 + * pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE. + (instantiate_decl): Don't push_to_top_level for local class methods. + (instantiate_class_template_1): Or for local classes. + + PR c++/53484 + * pt.c (do_auto_deduction): Don't try to deduce from a + type-dependent initializer. + +2012-06-01 Paolo Carlini + + PR c++/26155 + * name-lookup.c (push_namespace): When error recovery is + impossible just error out in duplicate_decls. + +2012-05-31 Steven Bosscher + + * call.c: Do not include output.h. + * class.c: Likewise. + * except.c: Likewise. + * friend.c: Likewise. + * init.c: Likewise. + * lex.c: Likewise. + * method.c: Likewise. + * parser.c: Likewise. + * pt.c: Likewise. + * rtti.c: Likewise. + * search.c: Likewise. + +2012-05-30 Jason Merrill + + PR c++/53356 + * tree.c (stabilize_init): Handle stabilizing a TARGET_EXPR + representing a bitwise copy of a glvalue. + + * tree.c (stabilize_expr): Tweak logic. + + PR c++/53356 + * tree.c (stabilize_init): Side effects make the init unstable. + +2012-05-28 Paolo Carlini + + PR c++/53503 + * semantics.c (potential_constant_expression_1): Handle LTGT_EXPR. + +2012-05-26 Paolo Carlini + + PR c++/53491 + * tree.c (stabilize_expr): Handle exp of void type. + +2012-05-26 Jason Merrill + + PR c++/53220 + * call.c (convert_like_real) [ck_list]: Take array address directly. + * typeck.c (decay_conversion): Reject decay of an array compound + literal. + +2012-05-25 Paolo Carlini + + PR c++/32054 + * parser.c (cp_parser_member_declaration): A storage class is not + allowed in a declaration of an anonymous aggregate in a class scope. + +2012-05-24 Uros Bizjak + + PR obj-c++/53441 + * decl.c (grokdeclarator): Check that current_class_type is non-NULL + before calling constructor_name_p. + +2012-05-24 Paolo Carlini + + PR c++/32080 + * parser.c (cp_parser_ctor_initializer_opt_and_function_body, + cp_parser_function_body): Add a bool parameter, true when parsing + a function-try-block. + (cp_parser_function_try_block): Pass true to the above. + (cp_parser_function_definition_after_declarator, + cp_parser_function_transaction): Adjust. + +2012-05-23 Paolo Carlini + + PR c++/29185 + * decl2.c (delete_sanity): Extend 'deleting array' warning to + any array type. + +2012-05-21 Paolo Carlini + + PR c++/51184 + * decl.c (grokdeclarator): Diagnose functions returning abstract + class types as TYPENAME. + * cp-tree.h (ABSTRACT_CLASS_TYPE_P): Add. + * except.c (is_admissible_throw_operand_or_catch_parameter): Use it. + * pt.c (tsubst): Likewise. + * semantics.c (trait_expr_value): Likewise. + +2012-05-21 Paolo Carlini + + PR c++/40821 + * parser.c (cp_parser_attributes_opt): Enforce error checking of + unbalanced parentheses in the presence of tentative parsing. + +2012-05-17 Paolo Carlini + + PR c++/39681 + * parser.c (cp_parser_new_type_id): Early return error_mark_node + if the cp_parser_type_specifier_seq call has type_specifier_seq.type + error_mark_node; tidy. + (cp_parser_new_expression): Always initialize nelts to NULL_TREE to + avoid uninitialized warnings. + (cp_parser_init_declarator, cp_parser_late_parse_one_default_arg): + Call cp_parser_skip_to_end_of_statement if cp_parser_initializer + returns error_mark_node. + +2012-05-17 Paolo Carlini + + PR c++/53371 + * except.c (is_admissible_throw_operand): Rename to + is_admissible_throw_operand_or_catch_parameter and handle + catch parameter too. + (expand_start_catch_block): Use it. + (build_throw): Adjust. + +2012-05-17 Paolo Carlini + + PR c++/44516 + * typeck.c (build_x_array_ref, build_x_conditional_expr, + build_x_compound_expr, build_x_modify_expr): Add location_t parameter. + (finish_class_member_access_expr, build_x_indirect_ref, + build_x_binary_op, build_x_compound_expr_from_list, + build_x_compound_expr_from_vec): Adjust callers. + * tree.c (build_min_nt_loc): New. + (build_min_nt): Remove. + * typeck2.c (build_x_arrow): Adjust callers. + * pt.c (tsubst_qualified_id, tsubst_omp_for_iterator, + tsubst_copy_and_build): Likewise. + * semantics.c (finish_mem_initializers, handle_omp_for_class_iterator, + finish_omp_atomic): Likewise. + * decl2.c (grok_array_decl, build_anon_union_vars): Adjust. + * parser.c (cp_parser_question_colon_clause, + cp_parser_assignment_expression, cp_parser_expression, + cp_parser_template_id, cp_parser_omp_for_loop): Likewise. + * cp-tree.h: Update. + +2012-05-16 Dodji Seketeli + + PR preprocessor/7263 + * cp-tree.h (enum cp_decl_spec): Add new enumerators to cover all + the possible declarator specifiers so far. + (struct cp_decl_specifier_seq::locations): Declare new member. + (cp_decl_specifier_seq::{specs, type_location}): Remove. + (decl_spec_seq_has_spec_p): Declare new function. + * parser.c (cp_parser_check_decl_spec): Remove. + (set_and_check_decl_spec_loc): Define new static function. + (decl_spec_seq_has_spec_p): Define new public function. + (cp_parser_decl_specifier_seq, cp_parser_function_specifier_opt) + (cp_parser_type_specifier, cp_parser_simple_type_specifier) + (cp_parser_set_storage_class, cp_parser_set_decl_spec_type) + (cp_parser_alias_declaration): Set the locations for each + declspec, using set_and_check_decl_spec_loc. + (cp_parser_explicit_instantiation, cp_parser_init_declarator) + (cp_parser_member_declaration, cp_parser_init_declarator): Use the + new declspec location for specifiers. Use the new + decl_spec_seq_has_spec_p. + (cp_parser_type_specifier_seq): Use the new + set_and_check_decl_spec_loc. Stop using + cp_parser_check_decl_spec. Use the new decl_spec_seq_has_spec_p. + (, cp_parser_init_declarator): Use the new + set_and_check_decl_spec_loc. + (cp_parser_single_declaration, cp_parser_friend_p) + (cp_parser_objc_class_ivars, cp_parser_objc_struct_declaration): + Use the new decl_spec_seq_has_spec_p. + * decl.c (check_tag_decl): Use new decl_spec_seq_has_spec_p. Use + the more precise ds_redefined_builtin_type_spec location for + diagnostics about re-declaring C++ built-in types. + (start_decl, grokvardecl, grokdeclarator): Use the new + decl_spec_seq_has_spec_p. + +2012-05-15 Paolo Carlini + + PR c++/11856 + * pt.c (tsubst_copy_and_build): Increase / decrease + c_inhibit_evaluation_warnings around build_x_binary_op call. + +2012-05-12 Paolo Carlini + + * cp-tree.h (TYPE_PTRMEM_P): Rename to TYPE_PTRDATAMEM_P. + (TYPE_PTR_TO_MEMBER_P): Rename to TYPE_PTRMEM_P. + (TYPE_PTR_OR_PTRMEM_P): Add. + * typeck.c (composite_pointer_type_r, composite_pointer_type, + common_pointer_type, cp_build_indirect_ref, cp_build_binary_op, + cp_truthvalue_conversion, convert_ptrmem, build_static_cast_1, + build_reinterpret_cast_1, build_const_cast_1, comp_ptr_ttypes_real, + casts_away_constness_r, casts_away_constness): Adjust. + * init.c (build_zero_init_1): Adjust. + * class.c (check_field_decls): Likewise. + * decl.c (check_default_argument): Likewise. + * rtti.c (target_incomplete_p): Likewise. + * tree.c (zero_init_p): Likewise. + * cxx-pretty-print.c (pp_cxx_ptr_operator, + pp_cxx_abstract_declarator): Likewise. + * typeck2.c (build_m_component_ref): Likewise. + * pt.c (convert_nontype_argument, invalid_nontype_parm_type_p, + dependent_type_p_r): Likewise. + * call.c (null_member_pointer_value_p, standard_conversion, + add_builtin_candidate, build_conditional_expr_1, compare_ics): + Likewise. + * cp-objcp-common.c (cp_var_mod_type_p): Likewise. + * cvt.c (cp_convert_to_pointer, ocp_convert, + perform_qualification_conversions): Likewise. + * mangle.c (write_type): Likewise. + * name-lookup.c (arg_assoc_type): Likewise. + +2012-05-12 Paolo Carlini + + * parser.c (struct cp_parser_expression_stack_entry): Add location_t + field. + (cp_parser_binary_expression): Rework to always update at the same + time tree_type and loc. + * call.c (print_z_candidate): Add location_t parameter. + (print_z_candidates, convert_like_real, joust): Adjust. + +2012-05-11 Alexandre Oliva + + PR c++/53209 + * pt.c (tsubst_decl): Bail out if argvec is error_mark_node. + +2012-05-11 Paolo Carlini + + PR c++/53305 + * pt.c (tsubst_copy: case PARM_DECL): Return error_mark_node if + tsubst_decl returns NULL_TREE. + * cxx-pretty-print.c (pp_cxx_simple_type_specifier): Handle + BOUND_TEMPLATE_TEMPLATE_PARM. + +2012-05-10 Paolo Carlini + + PR c++/53158 + * cvt.c (ocp_convert): Error out early for void -> bool conversions. + * typeck.c (decay_conversion): Use error_at. + * call.c (build_integral_nontype_arg_conv, convert_like_real, + convert_arg_to_ellipsis, perform_implicit_conversion_flags, + initialize_reference): Likewise. + * cvt.c (warn_ref_binding): Add location_t parameter. + (cp_convert_to_pointer, convert_to_reference, ocp_convert, + convert_to_void, ): Use error_at and warning_at. + +2012-05-10 Paolo Carlini + + PR c++/53301 + * decl.c (check_default_argument): Fix typo (POINTER_TYPE_P + instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning. + +2012-05-06 Paolo Carlini + + PR c++/53152 + * call.c (op_error, build_new_op_1, build_new_op): Add location_t + parameter. + (build_conditional_expr_1): Adjust. + * typeck.c (build_x_indirect_ref, build_x_binary_op, + build_x_unary_op): Add location_t parameter. + (rationalize_conditional_expr, build_x_array_ref, + build_x_compound_expr, cp_build_modify_expr, build_x_modify_expr): + Adjust. + * typeck2.c (build_x_arrow): Add location_t parameter. + * semantics.c (finish_unary_op_expr): Likewise. + (finish_increment_expr, handle_omp_for_class_iterator): Adjust. + * decl2.c (grok_array_decl): Add location_t parameter. + * parser.c (cp_parser_postfix_open_square_expression, + cp_parser_postfix_dot_deref_expression, cp_parser_unary_expression, + cp_parser_binary_expression, cp_parser_builtin_offsetof, + do_range_for_auto_deduction, cp_convert_range_for, + cp_parser_template_argument, cp_parser_omp_for_cond): Pass the + location, adjust. + * pt.c (tsubst_copy_and_build): Adjust. + * tree.c (maybe_dummy_object): Likewise. + * cp-tree.h: Update declarations. + +2012-05-04 Paolo Carlini + + * semantics.c (cxx_eval_constant_expression, case CONVERT_EXPR): Tidy. + +2012-05-04 Paolo Carlini + + PR c++/53166 + * pt.c (instantiate_class_template_1): Increase / decrease + c_inhibit_evaluation_warnings around the tsubst_expr call + for STATIC_ASSERT_CONDITION. + (tsubst_expr, case STATIC_ASSERT): Likewise. + * typeck.c (cp_build_binary_op, case EQ_EXPR/NE_EXPR): Check + c_inhibit_evaluation_warnings in the OPT_Waddress warnings. + +2012-05-03 Paolo Carlini + + PR c++/53186 + * call.c (build_over_call): Handle final member functions + and class types. + (build_new_method_call_1): Do not handle here. + +2012-05-02 Richard Guenther + + * decl.c (grokdeclarator): Properly check for sizes that + cover more than half of the address-space. + +2012-04-30 Marc Glisse + + PR c++/51033 + * typeck.c (cp_build_array_ref): Handle VECTOR_TYPE. + * decl2.c (grok_array_decl): Likewise. + + PR c++/51314 + * parser.c (cp_parser_sizeof_operand): Require parentheses for + sizeof... + +2012-04-30 Dodji Seketeli + + Fix location for static class members + * decl.c (grokdeclarator): Use the location carried by the + declarator for the DECL of the static class member. + + Fix va_arg type location + * cp-tree.h (build_x_va_arg): Take an additional location + parameter. + * call.c (build_x_va_arg): Take a loc parameter for the location + of the type of the va_arg expression. + * parser.c (cp_parser_primary_expression): Pass the type of the + type in the va_arg expression to build_x_va_arg. + * pt.c (tsubst_copy): Adjust calls to build_x_va_arg. + + Make conversion warnings work on NULL with -ftrack-macro-expansion + * call.c (conversion_null_warnings): Use the new + expansion_point_location_if_in_system_header. + * cvt.c (build_expr_type_conversion): Likewise. + * typeck.c (cp_build_binary_op): Likewise. + +2012-04-30 Manuel López-Ibáñez + + * typeck.c (convert_for_assignment): Replace + Wmissing-format-attribute with Wsuggest-attribute=format. + * call.c (convert_for_arg_passing): Likewise. + +2012-04-26 Paolo Carlini + + PR c++/53096 + * class.c (check_bases_and_members): Implement core/1333, do not + disallow defaulted in the class body non-const ref special members. + +2012-04-24 Paolo Carlini + + PR c++/52363 + * call.c (tourney, perform_overload_resolution, + build_operator_new_call, build_user_type_conversion_1, + build_user_type_conversion, perform_overload_resolution, + add_template_candidate, add_template_candidate_real, + add_template_conv_candidate, add_builtin_candidates, + add_builtin_candidate, build_builtin_candidate, + add_conv_candidate, add_function_candidate, implicit_conversion, + reference_binding, build_list_conv, conditional_conversion, + add_candidates, can_convert_array, build_aggr_conv, + build_array_conv, build_complex_conv, conditional_conversion): + Add tsubst_flags_t parameter. + (joust): Likewise, use it to handle SFINAE as if pedantic. + (add_list_candidates, build_integral_nontype_arg_conv, + perform_overload_resolution, build_new_function_call, + build_operator_new_call, build_op_call_1, + build_conditional_expr_1, build_new_op_1, convert_like_real, + convert_arg_to_ellipsis, convert_default_arg, + convert_for_arg_passing, build_over_call, + build_new_method_call_1, can_convert_arg, can_convert_arg_bad, + perform_implicit_conversion_flags, + perform_direct_initialization_if_possible, + initialize_reference): Adjust. + * typeck.c (casts_away_constness, casts_away_constness_r): + Add tsubst_flags_t parameter. + (convert_arguments, check_for_casting_away_constness, + build_static_cast_1, build_ptrmemfunc, convert_for_assignment): + Adjust. + * decl.c (reshape_init_r, check_default_argument): Likewise. + * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise. + * pt.c (convert_nontype_argument, check_non_deducible_conversion): + Likewise. + * init.c (build_new_1): Likewise. + * cvt.c (convert_to_reference, ocp_convert, build_type_conversion, + build_expr_type_conversion, ): Likewise. + * search.c (check_final_overrider): Likewise. + * cp-tree.h (build_user_type_conversion, + build_operator_new_call, can_convert, can_convert_arg, + can_convert_arg_bad, convert_default_arg, + convert_arg_to_ellipsis, convert_for_arg_passing): + Adjust declaration. + +2012-04-22 Jan Hubicka + + * decl2.c (maybe_make_one_only): Mark keyed COMDATs as USED so they + gets finalized. + +2012-04-22 Manuel López-Ibáñez + + PR c/44774 + * typeck.c (composite_pointer_type): Likewise. + (cxx_sizeof_or_alignof_type): Likewise. + (cp_build_array_ref): Likewise. + (cp_build_function_call_vec): Likewise. + (cp_build_addr_expr_1): Likewise. + (convert_member_func_to_ptr): Likewise. + * decl.c (check_tag_decl): Likewise. + (check_static_variable_definition): Likewise. + (compute_array_index_type): Likewise. + (create_array_type_for_decl): Likewise. + (grokdeclarator): Likewise. + (grok_op_properties): Likewise. + * error.c (maybe_warn_cpp0x): Likewise. + * pt.c (maybe_process_partial_specialization): Likewise. + (convert_template_argument): Likewise. + (do_decl_instantiation): Likewise. + (do_type_instantiation): Likewise. + * parser.c (cp_parser_primary_expression): Likewise. + (cp_parser_postfix_expression): Likewise. + (cp_parser_unary_expression): Likewise. + (cp_parser_question_colon_clause): Likewise. + (cp_parser_lambda_introducer): Likewise. + (cp_parser_lambda_declarator_opt): Likewise. + (cp_parser_compound_statement): Likewise. + (cp_parser_jump_statement): Likewise. + (cp_parser_declaration_seq_opt): Likewise. + (cp_parser_enum_specifier): Likewise. + (cp_parser_enumerator_list): Likewise. + (cp_parser_initializer_list): Likewise. + (cp_parser_member_declaration): Likewise. + * call.c (build_conditional_expr_1): Likewise. + * friend.c (make_friend_class): Likewise. + * name-lookup.c (pushdecl_maybe_friend_1): Likewise. + +2012-04-21 Jan Hubicka + + * method.c (make_alias_for): Do not set TREE_SYMBOL_REFERENCED. + * decl2.c (mark_needed): Likewise. + (decl_needed_p): Do not test TREE_SYMBOL_REFERENCED. + + * decl2.c (cxx_callgraph_analyze_expr): Remove. + * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove. + * cp-tree.h (cxx_callgraph_analyze_expr): Remove. + +2012-04-21 Manuel López-Ibáñez + + PR 35441 + * typeck.c (cp_build_function_call_vec): Do not pretty-print + expressions when caret is enabled. + +2012-04-20 Jan Hubicka + + PR target/53042 + * decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group + list when target has no support for it. + +2012-04-20 Michael Matz + + * error.c (pedwarn_cxx98): Move va_end call after user + of the va_list. + +2012-04-18 Paolo Carlini + + PR c++/52422 + * cp-tree.h (build_addr_func, decay_conversion, + get_member_function_from_ptrfunc, + build_m_component_ref, convert_member_func_to_ptr): + Add tsubst_flags_t parameter. + * typeck.c (cp_default_conversion): Add. + (decay_conversion, default_conversion, + get_member_function_from_ptrfunc, convert_member_func_to_ptr): + Add tsubst_flags_t parameter and use it throughout. + (cp_build_indirect_ref, cp_build_array_ref, + cp_build_function_call_vec, convert_arguments, build_x_binary_op, + cp_build_binary_op, cp_build_unary_op, build_reinterpret_cast_1, + build_const_cast_1, expand_ptrmemfunc_cst, + convert_for_initialization): Adjust. + * init.c (build_vec_init): Adjust. + * decl.c (grok_reference_init, get_atexit_node): Likewise. + * rtti.c (build_dynamic_cast_1, tinfo_base_init): Likewise. + * except.c (build_throw): Likewise. + * typeck2.c (build_x_arrow): Likewise. + (build_m_component_ref): Add tsubst_flags_t parameter and + use it throughout. + * pt.c (convert_nontype_argument): Adjust. + * semantics.c (finish_asm_stmt, maybe_add_lambda_conv_op): Likewise. + * decl2.c (build_offset_ref_call_from_tree): Likewise. + * call.c (build_addr_func): Add tsubst_flags_t parameter and + use it throughout. + (build_call_a, build_conditional_expr_1, build_new_op_1, + convert_like_real, convert_arg_to_ellipsis, build_over_call, + build_special_member_call): Adjust. + * cvt.c (cp_convert_to_pointer, force_rvalue, + build_expr_type_conversion): Likewise. + +2012-04-17 Tom de Vries + + * cp-gimplify.c (begin_bc_block): Add location parameter and use as + location argument to create_artificial_label. + (finish_bc_block): Change return type to void. Remove body_seq + parameter, and add block parameter. Append label to STMT_LIST and + return in block. + (gimplify_cp_loop, gimplify_for_stmt, gimplify_while_stmt) + (gimplify_do_stmt, gimplify_switch_stmt): Remove function. + (genericize_cp_loop, genericize_for_stmt, genericize_while_stmt) + (genericize_do_stmt, genericize_switch_stmt, genericize_continue_stmt) + (genericize_break_stmt, genericize_omp_for_stmt): New function. + (cp_gimplify_omp_for): Remove bc_continue processing. + (cp_gimplify_expr): Genericize VEC_INIT_EXPR. + (cp_gimplify_expr): Mark FOR_STMT, WHILE_STMT, DO_STMT, SWITCH_STMT, + CONTINUE_STMT, and BREAK_STMT as unreachable. + (cp_genericize_r): Genericize FOR_STMT, WHILE_STMT, DO_STMT, + SWITCH_STMT, CONTINUE_STMT, BREAK_STMT and OMP_FOR. + (cp_genericize_tree): New function, factored out of ... + (cp_genericize): ... this function. + +2012-04-17 Paolo Carlini + + PR c++/52599 + * semantics.c (build_constexpr_constructor_member_initializers): + Check for function-try-block as function-body. + +2012-04-17 Paolo Carlini + + PR c++/53003 + * parser.c (cp_parser_member_declaration): Check that + initializer_token_start is non null before dereferencing it. + +2012-04-16 Jason Merrill + + PR c++/38543 + * pt.c (determine_specialization): Instead of comparing the number + of parms, check that tsubst gives the right answer. + + PR c++/52008 + * pt.c (process_partial_specialization): Complain about a partial + specialization with fewer args than primary template parms. + + PR c++/50830 + * pt.c (convert_template_argument): Handle template template + argument packs. + + PR c++/50303 + * pt.c (tsubst_pack_expansion): Use tsubst_expr for template + template parameters. + +2012-04-16 Paolo Carlini + + PR c++/49152 + * call.c (op_error): Print types; when flag_diagnostics_show_caret + is false print expressions too. + (op_error_string): Add. + +2012-04-16 Jason Merrill + + PR c++/51148 + * friend.c (make_friend_class): Call check_for_bare_parameter_packs. + +2012-04-16 Jan Hubicka + + * decl2.c (collect_candidates_for_java_method_alias): Use FOR_EACH + walkers to walk cgraph and varpool. + +2012-04-15 Jason Merrill + + PR c++/47220 + * pt.c (coerce_template_parameter_pack): Check for error_mark_node. + + PR c++/52292 + PR c++/52380 + * pt.c (coerce_template_parms): Even if we aren't converting we + want to expand argument packs. + + PR c++/52706 + * mangle.c (write_type): nullptr_t is a builtin type. + +2012-04-14 Jan Hubicka + + * tree.c: Update field referenced for new cgraph/varpool layout. + * decl2.c: Likewise. + +2012-04-13 Jason Merrill + + PR c++/52824 + * pt.c (any_pack_expanson_args_p): New. + (coerce_template_parms): Use it. + + PR c++/52905 + * call.c (joust): Handle comparing list and non-list ctors. + + PR c++/52915 + * decl2.c (finish_anon_union): Use cp_finish_decl. + * error.c (dump_function_name): Avoid showing anonymous "name". + +2012-04-11 Fabien Chêne + + PR c++/52465 + * parser.c (cp_parser_class_name): Call strip_using_decl and + return the target decl. + * name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl + to be stripped is NULL_TREE. + (qualify_lookup): Call strip_using_decl and perform some checks on + the target decl. + +2012-04-11 Jason Merrill + + PR debug/45088 + * decl.c (grokdeclarator): Strip the injected-class-name typedef + if we are building a declaration or compound type. + + PR c++/52906 + * decl.c (check_tag_decl): Don't complain about attributes if we + don't even have a type. + +2012-04-10 Manuel López-Ibáñez + + * cvt.c (convert_to_void): Update comment. + +2012-04-05 Jason Merrill + + PR c++/52596 + * semantics.c (finish_non_static_data_member): In templates, pass + the decl to build_qualified_name. + * tree.c (lvalue_kind) [SCOPE_REF]: Handle FIELD_DECL. + +2012-04-04 Jason Merrill + + PR c++/52845 + * decl.c (finish_function): Update fntype after deducing return type. + +2012-04-03 Jason Merrill + + PR c++/52796 + * pt.c (tsubst_initializer_list): A pack expansion with no elements + means value-initialization. + +2012-04-01 Paolo Carlini + + PR c++/50043 + * class.c (deduce_noexcept_on_destructor, + deduce_noexcept_on_destructors): New. + (check_bases_and_members): Call the latter. + * decl.c (grokfndecl): Call the former. + * method.c (implicitly_declare_fn): Not static. + * cp-tree.h (deduce_noexcept_on_destructor, implicitly_declare_fn): + Declare + +2012-03-29 Paolo Carlini + + PR c++/52718 + * decl.c (check_default_argument): With -Wzero-as-null-pointer-constant + warn for a zero as null pointer constant default argument. + +2012-03-29 Jason Merrill + + PR c++/52685 + * tree.c (copy_binfo): Handle BINFO_DEPENDENT_BASE_P. + +2012-03-29 Jakub Jelinek + + PR c++/52759 + * decl.c (start_decl): Don't call maybe_apply_pragma_weak + if processing_template_decl. + +2012-03-29 Jason Merrill + + PR c++/52743 + * call.c (compare_ics): Handle ck_aggr like ck_list. + +2012-03-28 Jason Merrill + + PR c++/52746 + * typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if + we didn't get an explicit scope. + * pt.c (tsubst_baselink): Likewise. + +2012-03-28 Richard Guenther + + * typeck2.c (process_init_constructor_array): Use the proper + type for computing the array length. + +2012-03-27 Meador Inge + + PR c++/52672 + * semantics.c (cxx_fold_indirect_ref): Don't attempt to fold + stripped child trees that are not pointer types. + +2012-03-21 Jason Merrill + + Implement return type deduction for normal functions with -std=c++1y. + * cp-tree.h (FNDECL_USED_AUTO): New macro. + (LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P): Remove. + (dependent_lambda_return_type_node): Remove. + (CPTI_DEPENDENT_LAMBDA_RETURN_TYPE): Remove. + (struct language_function): Add x_auto_return_pattern field. + (current_function_auto_return_pattern): New. + (enum tsubst_flags): Add tf_partial. + * decl.c (decls_match): Handle auto return comparison. + (duplicate_decls): Adjust error message for auto return. + (cxx_init_decl_processing): Remove dependent_lambda_return_type_node. + (cp_finish_decl): Don't do auto deduction for functions. + (grokdeclarator): Allow auto return without trailing return type in + C++1y mode. + (check_function_type): Defer checking of deduced return type. + (start_preparsed_function): Set current_function_auto_return_pattern. + (finish_function): Set deduced return type to void if not previously + deduced. + * decl2.c (change_return_type): Handle error_mark_node. + (mark_used): Always instantiate functions with deduced return type. + Complain about use if deduction isn't done. + * parser.c (cp_parser_lambda_declarator_opt): Use 'auto' for + initial return type. + (cp_parser_lambda_body): Don't deduce return type in a template. + (cp_parser_conversion_type_id): Allow auto in C++1y. + * pt.c (instantiate_class_template_1): Don't mess with + LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P. + (tsubst_copy_and_build): Likewise. + (fn_type_unification, tsubst): Don't reduce the template parm level + of 'auto' during deduction. + (unify): Compare 'auto' specially. + (get_bindings): Change test. + (always_instantiate_p): Always instantiate functions with deduced + return type. + (do_auto_deduction): Handle error_mark_node and lambda context. + Don't check for use in initializer. + (contains_auto_r): Remove. + * search.c (lookup_conversions_r): Handle auto conversion function. + * semantics.c (lambda_return_type): Handle null return. Don't mess + with dependent_lambda_return_type_node. + (apply_deduced_return_type): Rename from apply_lambda_return_type. + * typeck.c (merge_types): Handle auto. + (check_return_expr): Do auto deduction. + * typeck2.c (add_exception_specifier): Fix complain check. + +2012-03-22 Paolo Carlini + + PR c++/52487 + * class.c (check_field_decls): Call literal_type_p only + on complete types. + +2012-03-22 Jakub Jelinek + + PR c++/52671 + * decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION + on CLASS_TYPE_P types. + +2012-03-20 Jason Merrill + + * lex.c (init_reswords): Use >= for cxx_dialect test. + * parser.c (cp_parser_exception_specification_opt): Likewise. + + * mangle.c (write_type): Handle 'auto'. + * init.c (build_new): Don't do auto deduction where it might + affect template mangling. + + PR c++/52510 + * decl.c (reshape_init_class): Handle repeated reshaping. + * search.c (lookup_field_1): Add sanity check. + +2012-03-19 Paolo Carlini + + PR c++/14710 + * cp-tree.h (xvalue_p, maybe_warn_about_useless_cast): Declare. + * tree.c (xvalue_p): Define. + * typeck.c (maybe_warn_about_useless_cast): Define. + (build_reinterpret_cast, build_const_cast, + build_static_cast, cp_build_c_cast): Use maybe_warn_about_useless_cast. + * rtti.c (build_dynamic_cast): Likewise. + * pt.c (tsubst_copy_and_build, case CAST_EXPR): Increment/decrement + c_inhibit_evaluation_warnings before/after the build_* calls. + +2012-03-15 Jason Merrill + + PR c++/52582 + * method.c (implicitly_declare_fn): Set DECL_EXTERNAL. + +2012-03-15 Manuel López-Ibáñez + + PR c++/44783 + * error.c (print_instantiation_partial_context): Use + template_backtrace_limit. + +2012-03-14 Rainer Orth + + * Make-lang.in (doc/g++.1): Remove IRIX 6.5 reference. + +2012-03-14 Jakub Jelinek + + PR c++/52521 + * parser.c (lookup_literal_operator): Return fn only if + processed all arguments from args vector and argtypes is + void_list_node. + +2012-01-30 Dodji Seketeli + + PR c++/51641 + * cp-tree.h (template_type_parameter_p): Declare new function. + (parameter_of_template_p): Remove. + * pt.c (template_type_parameter_p): Define new function. + (parameter_of_template_p): Remove. + * name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely + on parameter_of_template_p anymore. Compare the level of the + template parameter to the depth of the template. + +2011-12-15 Dodji Seketeli + + * call.c (standard_conversion, build_integral_nontype_arg_conv) + (build_new_op_1, convert_like_real, is_subseq) + (maybe_handle_implicit_object, maybe_handle_ref_bind, compare_ics) + (joust): Use next_conversion instead of accessing fields of struct + conversion directly. + +2012-03-12 Paolo Carlini + + PR c++/52299 + * pt.c (tsubst_copy_and_build, case COND_EXPR): Avoid bogus + division by zero warnings. + +2012-03-08 Paolo Carlini + + * typeck.c (build_array_ref, cp_build_addr_expr_1, convert_ptrmem, + build_ptrmemfunc): Consistently forward the tsubst_flags_t + parameter. + * call.c (resolve_args): Likewise. + +2012-03-07 Jason Merrill + + PR c++/52521 + * mangle.c (write_literal_operator_name): The length comes after the + operator prefix. + +2012-03-05 Jakub Jelinek + + * pt.c (local_specializations): Change from htab_t into + struct pointer_map_t *. + (retrieve_local_specializations, register_local_specialization, + tsubst_pack_expansion, instantiate_decl): Adjust users. + (eq_local_specializations, hash_local_specialization): Remove. + +2012-03-05 Jason Merrill + + PR c++/51930 + * decl2.c (determine_visibility): Correct calculation of class + args depth. + * decl.c (check_tag_decl): Adjust warning. + + * method.c (synthesized_method_walk): Cleanups don't affect the EH + spec either. + +2012-03-03 Jason Merrill + + * init.c (perform_member_init): Cope with uninstantiated NSDMI. + + Core 1270 + * call.c (build_aggr_conv): Call reshape_init. + (convert_like_real): Likewise. + * typeck2.c (process_init_constructor): Clear TREE_CONSTANT if + not all constant. + + * mangle.c (write_nested_name): Use decl_mangling_context. + (write_prefix, write_template_prefix): Likewise. + + PR c++/36797 + * mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR. + + * class.c (add_method): Always build an OVERLOAD for using-decls. + * search.c (lookup_member): Handle getting an OVERLOAD for a + single function. + +2012-03-02 Paolo Carlini + + PR c++/51989 + * typeck2.c (build_x_arrow): Take a tsubst_flags_t argument and + propagate it. + * cp-tree.h (build_x_arrow): Adjust prototype. + * pt.c (tsubst_copy_and_build): Adjust call. + * parser.c (cp_parser_postfix_dot_deref_expression): Likewise. + +2012-03-02 Paolo Carlini + + * name-lookup.c (binding_to_template_parms_of_scope_p): Clean up. + +2012-02-29 Jason Merrill + + PR c++/51930 + * decl.c (check_tag_decl): Move warning for misplaced attributes here. + (shadow_tag): From here. + * parser.c (cp_parser_explicit_instantiation): Don't warn here. + +2012-02-21 Jakub Jelinek + + PR c++/52312 + * typeck.c (check_literal_operator_args): Initialize *long_double_p + and *long_long_unsigned_p even if processing_template_decl. + +2012-02-16 Jason Merrill + + PR c++/52248 + * decl.c (define_label): Use timevar_cond_start/stop. + +2012-02-16 Fabien Chêne + + PR c++/52126 + * decl.c (xref_basetypes): call dependent_scope_p instead of + dependent_type_p. + +2012-02-16 Jason Merrill + + PR c++/51415 + * error.c (dump_expr): Handle lambda closures specifically. + +2012-02-14 Jason Merrill + + * parser.c (cp_parser_explicit_instantiation): Give a warning + for ignored attributes on explicit class instantiation. + +2012-02-14 Jakub Jelinek + + PR c++/52247 + * pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call + lookup_label on label's name and set TREE_USED. + +2012-02-14 Jason Merrill + + PR c++/39055 + * decl.c (local_variable_p_walkfn): Don't check DECL_ARTIFICIAL. + +2012-02-14 Jakub Jelinek + + PR c/52181 + * decl.c (duplicate_decls): If olddecl has bigger DECL_ALIGN than + newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits. + +2012-02-07 Jason Merrill + + PR c++/51675 + * semantics.c (cx_check_missing_mem_inits): Handle unions. + Fix constexpr default constructor logic. + + PR c++/52035 + * pt.c (tsubst): Strip uninstantiated typedef. + +2012-02-06 Jason Merrill + + PR c++/52088 + * cvt.c (build_expr_type_conversion): Check for template conversion. + +2012-01-31 Jason Merrill + + PR c++/52043 + * cp-tree.h (PACK_EXPANSION_LOCAL_P): New. + * pt.c (make_pack_expansion, tsubst_initializer_list): Set it. + (tsubst_pack_expansion): Check it. + +2012-01-29 Paolo Carlini + + PR c++/51327 + * class.c (explain_non_literal_class): Correctly handle implicitly + deleted constructors. + +2012-01-27 Jakub Jelinek + + PR c++/51852 + * pt.c (tsubst_pack_expansion): Delete and restore + local_specialization whenever need_local_specialization, not just + when saved_local_specializations is non-NULL. + +2012-01-26 Paolo Carlini + + PR c++/51370 + * error.c (dump_decl, [TEMPLATE_ID_EXPR]): Handle error_mark_node + as TREE_OPERAND (t, 1). + +2012-01-24 Jason Merrill + + PR c++/51917 + * decl.c (xref_basetypes): Check VEC_length instead of VEC_space. + + PR c++/51973 + * tree.c (called_fns_equal): Check template args. + (cp_tree_equal): Call it. + +2012-01-24 Aldy Hernandez + Patrick Marlier + + PR c++/51928 + * class.c (set_method_tm_attributes): Use TARGET_THUNK instead of + thunk for set_one_vmethod_tm_attributes. + +2012-01-24 Paolo Carlini + + PR c++/51223 + * call.c (build_over_call): Check for error_mark_node as + TREE_VALUE when default arguments are processed. + +2012-01-23 Jason Merrill + + PR c++/51930 + * decl2.c (determine_visibility): Check for visibility attribute + on template specialization. + +2012-01-23 Paolo Carlini + + PR c++/51398 + * pt.c (parameter_of_template_p): Skip error_mark_node parameters. + +2012-01-23 Jason Merrill + + PR c++/51925 + * class.c (add_method): Set OVL_USED for using-decls. + * tree.c (ovl_scope): New. + * cp-tree.h: Declare it. + * parser.c (cp_parser_template_name): Use it. + * semantics.c (baselink_for_fns): Likewise. + * name-lookup.c (set_inherited_value_binding_p): Likewise. + +2012-01-20 Paolo Carlini + + PR c++/51402 + * pt.c (lookup_template_class_1): Check context returned by + tsubst for error_mark_node. + +2012-01-19 Kai Tietz + + PR c++/51344 + * decl2.c (save_template_attributes): Use merge_attributes + instead of chaining up via TREE_CHAIN. + +2012-01-19 Jason Merrill + + PR c++/51889 + * class.c (finish_struct): Call add_method here for function usings. + * semantics.c (finish_member_declaration): Not here. + +2012-01-18 Paolo Carlini + + PR c++/51225 + * typeck2.c (store_init_value): Within a template guard + cxx_constant_value with require_potential_constant_expression. + * pt.c (convert_nontype_argument): Likewise. + +2012-01-16 Jakub Jelinek + + PR c++/51854 + * mangle.c (write_template_arg_literal): Handle complex. + +2012-01-16 Jason Merrill + + PR c++/51827 + * mangle.c (mangle_decl): Don't mangle uninstantiated templates. + + PR c++/51868 + * typeck.c (build_static_cast_1): Handle bit-fields properly. + +2012-01-13 Ian Lance Taylor + + PR c++/50012 + * typeck.c (enum_cast_to_int): New static function. + (cp_build_binary_op): When handling warn_sign_compare, don't test + for TREE_NO_WARNING. Do call enum_cast_to_int. + * call.c (avoid_sign_compare_warnings): Remove static function. + (build_new_op_1): Don't call avoid_sign_compare_warnings. + +2012-01-13 Steven Bosscher + + * decl2.c: Do not include tree-mudflap.h + * semantics.c: Likewise. + +2012-01-13 Jason Merrill + + PR c++/20681 + * semantics.c (finish_break_stmt): Avoid adding an unreachable + BREAK_STMT. + + PR c++/51813 + * decl2.c (constrain_visibility): Clear DECL_VISIBILITY_SPECIFIED + when reducing the visibility. + + PR c++/51620 + * class.c (build_vtbl_initializer): Use __cxa_deleted_virtual. + +2012-01-12 Jason Merrill + + PR c++/51714 + * pt.c (value_dependent_expression_p): Treat STMT_EXPR as + value-dependent. + +2012-01-13 Dodji Seketeli + + PR c++/51633 + * semantics.c (cp_parser_ctor_initializer_opt_and_function_body): + Set the pointer to the last block of the constructor to the + current statement. + (build_constexpr_constructor_member_initializers): Get + build_data_member_initialization a chance to deal with more + statements before we choke. + +2012-01-12 Jason Merrill + + PR c++/48051 + * mangle.c (write_expression): Mangle BASELINK scope if + BASELINK_QUALIFIED_P. + * search.c (adjust_result_of_qualified_name_lookup): Set + BASELINK_QUALIFIED_P. + * tree.c (cp_tree_equal) [BASELINK]: Compare BASELINK_QUALIFIED_P. + * parser.c (cp_parser_postfix_dot_deref_expression): Don't call + adjust_result_of_qualified_name_lookup for non-qualified names. + + PR c++/51403 + * pt.c (unify): Handle error_mark_node. + +2012-01-11 Jason Merrill + + PR c++/51565 + * call.c (standard_conversion): For ptrmemfuncs, compare the + static_fn_types. + + PR c++/51818 + * mangle.c (find_substitution): A type is only a substitution + match if we're looking for a type. + (write_nested_name): Use decl_mangling_context. + + * decl.c (decls_match): Assert that the arguments are decls. + + PR c++/51613 + * pt.c (resolve_overloaded_unification): Compare types with + same_type_p, not decls_match. + +2012-01-10 Jason Merrill + + PR c++/51614 + * class.c (build_base_path): Diagnose ambiguous base. + + PR c++/51433 + * semantics.c (cxx_eval_call_expression): Always retry previously + non-constant expressions. + +2012-01-06 Jason Merrill + + DR 686 + PR c++/47450 + * parser.c (cp_parser_new_expression): Set + type_definition_forbidden_message. + + PR c++/6057 + PR c++/48051 + PR c++/50855 + PR c++/51322 + * mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR, + THROW_EXPR, CONSTRUCTOR, OVERLOAD. Fix PREINCREMENT_EXPR and + PREDECREMENT_EXPR. + (write_template_arg): Fix mangling of class-scope functions and + argument packs. + (mangle_decl): Update suggested -fabi-version argument. + * operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR, + DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR. + * tree.c (dependent_name): No longer static. + * cp-tree.h: Declare it. + * pt.c (unify): Defer handling of unconverted functions. + + * mangle.c (mangle_decl): Don't generate mangling aliases + for maybe-in-charge [cd]tors. + + * error.c (dump_expr): Print type of CONSTRUCTOR. + +2012-01-05 Dodji Seketeli + + PR c++/51541 + * parser.c (cp_parser_alias_declaration): Get out early upon + errors in the identifier or the attributes. + +2012-01-04 Paolo Carlini + + PR c++/51064 + * pt.c (tsubst_copy_and_build): Maybe set TREE_NO_WARNING on + the tree returned by build_x_binary_op. + +2012-01-03 Paolo Carlini + + PR c++/51738 + * parser.c (cp_parser_postfix_open_square_expression): Handle + postfix-expression [ braced-init-list ]. + +2012-01-03 Paolo Carlini + + PR c++/29273 + * rtti.c (build_dynamic_cast_1): In case of T a pointer type, + call decay_conversion on v. + +2012-01-03 Paolo Carlini + + PR c++/15867 + * decl.c (duplicate_decls): With -Wredundant-decls don't warn for + declaration followed by specialization. + +2012-01-03 Jakub Jelinek + + PR c++/51669 + * semantics.c (finish_omp_clauses): Call fold_build_cleanup_point_expr + on OMP_CLAUSE_{IF,FINAL,NUM_THREADS,SCHEDULE_CHUNK}_EXPR. + +2012-01-02 Jason Merrill + + DR 1359 + PR c++/51675 + * method.c (walk_field_subobs): Don't check for uninitialized + fields in a union. + (synthesized_method_walk): Check here. + + DR 325 + PR c++/51666 + * parser.c (cp_parser_cache_defarg): Split out... + (cp_parser_parameter_declaration): ...from here. + (cp_parser_save_nsdmi): Use it. + (cp_parser_cache_group): Remove CPP_COMMA support. + +2012-01-02 Dodji Seketeli + + PR c++/51462 + * semantics.c (cx_check_missing_mem_inits): Don't assert in case + of error. + +2012-01-02 Paolo Carlini + + PR c++/20140 + * typeck2.c (digest_init_r): Use copy_init when initializing + an array of chars. + +2012-01-01 Paolo Carlini + + PR c++/16603 + * decl.c (build_enumerator): Don't call perform_integral_promotions + on the value. + +2012-01-01 Paolo Carlini + + PR c++/51379 + * typeck.c (build_reinterpret_cast_1): Implement resolution of + DR 799. + +2012-01-01 Fabien Chêne + + * parser.c (cp_parser_using_declaration): Add a warning about + deprecated access declarations when no errors were encountered + while parsing the access declaration. Save the first token in + order to emit the warning at the right place. + +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. diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index c5ab44f7ff4..1fc88f22e07 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -2,2801 +2,8 @@ * gfortranspec.c (lang_specific_driver): Update copyright notice dates. - -2012-12-28 Janus Weil - - PR fortran/55692 - * check.c (gfc_check_associated): Remove a "gcc_assert (0)". - -2012-12-28 Tobias Burnus - - PR fortran/55763 - * check.c (gfc_check_move_alloc): Handle unlimited polymorphic. - * trans-intrinsic.c (conv_intrinsic_move_alloc): Ditto. - -2012-12-27 Jerry DeLisle - - PR fortran/48976 - * gfortran.h (gfc_inquire struct): Add pointer for inquire stream. - * io.c (io_tag): Add tag for inquire stream. (match_inquire_element): - Add matcher for new tag. (gfc_resolve_inquire): Resolve new tag. - * ioparm.def: Add new parameter for inquire stream. - * trans-io.c (gfc_trans_inquire): Add tranlste code for inquire - stream. - -2012-12-23 Tobias Burnus - - PR fortran/54884 - * module.c (write_symbol1_recursion): Set attr.public_use. - * interface.c (check_sym_interfaces, check_uop_interfaces, - gfc_check_interfaces): Remove attr.public_use code. - * resolve.c (resolve_function, resolve_variable, - resolve_typebound_procedure): Ditto. - -2012-12-22 Tobias Burnus - - PR fortran/55763 - * module.c (mio_component): Don't skip _hash's initializer. - * resolve.c (resolve_select_type): Add an assert. - * trans-expr.c (gfc_conv_procedure_call): Handle - INTENT(OUT) for UNLIMIT_POLY. - -2012-12-21 Richard Biener - - PR bootstrap/54659 - * gfortran.h: Do not include gmp.h here. - -2012-12-21 Paul Thomas - - PR fortran/55763 - * match.c (select_type_set_tmp): Return is a derived type or - class typespec has no derived type. - * resolve.c (resolve_fl_var_and_proc): Exclude select type - temporaries from 'pointer'. - (resolve_symbol): Exclude select type temporaries from tests - for assumed size and assumed rank. - -2012-12-20 Janus Weil - - PR fortran/36044 - * gfortran.h (gfc_isym_id): Add GFC_ISYM_BACKTRACE. - * intrinsic.c (add_subroutines): Add "backtrace". - * intrinsic.texi (BACKTRACE): Document BACKTRACE intrinsic. - -2012-12-20 Tobias Burnus - - PR fortran/54818 - * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ensure that - the string length is of type gfc_charlen_type_node. - -2012-12-19 Paul Thomas - - * array.c (resolve_array_list): Apply C4106. - * check.c (gfc_check_same_type_as): Exclude polymorphic - entities from check for extensible types. Improved error - for disallowed argument types to name the offending type. - * class.c : Update copyright date. - (gfc_class_null_initializer): Add argument for initialization - expression and deal with unlimited polymorphic typespecs. - (get_unique_type_string): Give unlimited polymorphic - entities a type string. - (gfc_intrinsic_hash_value): New function. - (gfc_build_class_symbol): Incorporate unlimited polymorphic - entities. - (gfc_find_derived_vtab): Deal with unlimited polymorphic - entities. - (gfc_find_intrinsic_vtab): New function. - * decl.c (gfc_match_decl_type_spec): Match typespec for - unlimited polymorphic type. - (gfc_match_data_decl): Skip to 'ok' if unlimited polymorphic. - expr.c (gfc_check_pointer_assign): Apply C717. If unlimited - polymorphic lvalue, find rvalue vtable for all typespecs, - except unlimited polymorphic expressions. - (gfc_check_vardef_context): Handle unlimited polymorphic - entities. - * gfortran.h : Add unlimited polymorphic attribute. Add - second arg to gfc_class_null_initializer primitive and - primitive for gfc_find_intrinsic_vtab. Add UNLIMITED_POLY - to detect unlimited polymorphic expressions. - * interface.c (gfc_compare_types): If expr1 is unlimited - polymorphic, always return 1. If expr2 is unlimited polymorphic - enforce C717. - (gfc_compare_interfaces): Skip past conditions that do not - apply for unlimited polymorphic entities. - (compare_parameter): Make sure that an unlimited polymorphic, - allocatable or pointer, formal argument is matched by an - unlimited polymorphic actual argument. - (compare_actual_formal): Ensure that an intrinsic vtable exists - to match an unlimited polymorphic formal argument. - * match.c (gfc_match_allocate): Type kind parameter does not - need to match an unlimited polymorphic allocate-object. - (alloc_opt_list): An unlimited polymorphic allocate-object - requires a typespec or a SOURCE tag. - (select_intrinsic_set_tmp): New function. - (select_type_set_tmp): Call new function. If it returns NULL, - build a derived type or class temporary instead. - (gfc_match_type_is): Remove restriction to derived types only. - Bind(C) or sequence derived types not permitted. - * misc (gfc_typename): Printed CLASS(*) for unlimited - polymorphism. - * module.c : Add AB_UNLIMITED_POLY to pass unlimited - polymorphic attribute to and from modules. - * resolve.c (resolve_common_vars): Unlimited polymorphic - entities cannot appear in common blocks. - (resolve_deallocate_expr): Deallocate unlimited polymorphic - enities. - (resolve_allocate_expr): Likewise for allocation. Make sure - vtable exists. - (gfc_type_is_extensible): Unlimited polymorphic entities are - not extensible. - (resolve_select_type): Handle unlimited polymorphic selectors. - Ensure that length type parameters are assumed and that names - for intrinsic types are generated. - (resolve_fl_var_and_proc): Exclude select type temporaries - from test of extensibility of type. - (resolve_fl_variable): Likewise for test that assumed character - length must be a dummy or a parameter. - (resolve_fl_derived0): Return SUCCESS unconditionally for - unlimited polymorphic entities. Also, allow unlimited - polymorphic components. - (resolve_fl_derived): Return SUCCESS unconditionally for - unlimited polymorphic entities. - (resolve_symbol): Return early with unlimited polymorphic - entities. - * simplifiy.c : Update copyright year. - (gfc_simplify_extends_type_of): No simplification possible - for unlimited polymorphic arguments. - * symbol.c (gfc_use_derived): Nothing to do for unlimited - polymorphic "derived type". - (gfc_type_compatible): Return unity if ts1 is unlimited - polymorphic. - * trans-decl.c (create_function_arglist) Formal arguments - without a character length should be treated in the same way - as passed lengths. - (gfc_trans_deferred_vars): Nullify the vptr of unlimited - polymorphic pointers. Avoid unlimited polymorphic entities - triggering gcc_unreachable. - * trans-expr.c (gfc_conv_intrinsic_to_class): New function. - (gfc_trans_class_init_assign): Make indirect reference of - src.expr. - (gfc_trans_class_assign): Expression NULL of unknown type - should set NULL vptr on lhs. Treat C717 cases where lhs is - a derived type and the rhs is unlimited polymorphic. - (gfc_conv_procedure_call): Handle the conversion of a non-class - actual argument to match an unlimited polymorphic formal - argument. Suppress the passing of a character string length - in this case. Make sure that calls to the character __copy - function have two character string length arguments. - (gfc_conv_initializer): Pass the initialization expression to - gfc_class_null_initializer. - (gfc_trans_subcomponent_assign): Ditto. - (gfc_conv_structure): Move handling of _size component. - trans-intrinsic.c: (gfc_conv_same_type_as): Handle conditions - where unlimited polymorphic arguments have null vptr. - * trans-stmt.c (trans_associate_var): Correctly treat array - temporaries associated with unlimited polymorphic selectors. - Recover the overwritten dtype for the descriptor. Use the _size - field of the vptr for character string lengths. - (gfc_trans_allocate): Cope with unlimited polymorphic allocate - objects; especially with character source tags. - (reset_vptr): New function. - (gfc_trans_deallocate): Call it. - * trans-types.c (gfc_get_derived_type): Detect unlimited - polymorphic types and deal with cases where the derived type of - components is null. - * trans.c : Update copyright year. - (trans_code): Call gfc_trans_class_assign for C717 cases where - the lhs is not unlimited polymorphic. - -2012-12-19 Tobias Burnus - - PR fortran/55733 - * trans-decl.c (gfc_create_string_length): Avoid setting - TREE_STATIC for automatic variables with -fno-automatic. - -2012-12-19 Tobias Burnus - Jakub Jelinek - Janus Weil - - PR fortran/55636 - PR fortran/55733 - * gfortran.h (GFC_PREFIX): Define. - * trans-decl.c (gfc_create_string_length): For VAR_DECLs that - will be TREE_STATIC, use GFC_PREFIX to mangle the names. Handle - -fno-automatic - (gfc_trans_deferred_vars): Don't free variables SAVEd via - -fno-automatic. - -2012-12-16 Tobias Burnus - - PR fortran/55197 - * module.c (gfc_use_module): Free rename list only for - internally generated intrinsic modules. - -2012-12-16 Tobias Burnus - - * trans-intrinsic.c (conv_intrinsic_move_alloc): Set dynamic - type of the FROM variable to the declared type. - -2012-12-16 Tobias Burnus - - PR fortran/55638 - * resolve.c (resolve_formal_arglist): Allow VALUE without - INTENT for ELEMENTAL procedures. - -2012-12-10 Janus Weil - - PR fortran/52909 - * trans-decl.c (get_proc_pointer_decl): Apply name mangling. - -2012-12-09 Tobias Burnus - - * trans-array.c (structure_alloc_comps): Use NULL_TREE in the - call to gfc_deallocate_scalar_with_status. - * trans-decl.c (gfc_trans_deferred_vars): Pass symbol. - * trans-stmt.c (gfc_trans_deallocate): Pass polymorphic variable. - -2012-12-09 Thomas Koenig - - PR fortran/55593 - * frontend-passes.c (doloop_code): Use resolved_sym - instead of n.sym->formal for formal argument list - to get the correct version for all generic subroutines. - -2012-12-05 Tobias Burnus - - * resolve.c (generate_component_assignments): Fix memleak. - -2012-12-03 Janus Weil - - PR fortran/55548 - * intrinsic.texi (SYSTEM_CLOCK): Update documentation of SYSTEM_CLOCK. - -2012-12-03 Tobias Burnus - Janus Weil - - PR fortran/37336 - * class.c (gfc_is_finalizable): New function. - * gfortran.h (gfc_is_finalizable): Its prototype. - * module.c (mio_component): Read initializer for vtype's _final. - * resolve.c (resolve_fl_derived0): Call gfc_is_finalizable. - * trans-expr.c (gfc_vtable_final_get): New function. - (conv_parent_component_references): Fix comment. - (gfc_conv_variable): Fix for scalar coarray components. - * trans-intrinsic.c (conv_intrinsic_move_alloc): For BT_CLASS, - pass the BT_CLASS type and not the declared type to - gfc_deallocate_scalar_with_status. - * trans.h (gfc_vtable_final_get): New prototype. - -2012-12-03 Tobias Burnus - - PR fortran/55475 - * scanner.c (gfc_next_char_literal): Fix setting locus - to free_line_length for the error message. - * error.c (show_locus): Fix potential out-of-bounds - read. - -2012-12-03 Tobias Burnus - - PR fortran/37336 - * class.c (finalizer_insert_packed_call): New static function. - (finalize_component, generate_finalization_wrapper): - Fix coarray handling and packing. - -2012-12-02 Paul Thomas - - * resolve.c (resolve_allocate_deallocate, - resolve_typebound_intrinsic_op): Recover revisions 193568 and - 193778, which were accidentally reverted by the previous patch. - -2012-12-01 Alessandro Fanfarillo - Paul Thomas - - PR fortran/46897 - * gfortran.h : Add bit field 'defined_assign_comp' to - symbol_attribute structure. - Add primitive for gfc_add_full_array_ref. - * expr.c (gfc_add_full_array_ref): New function. - (gfc_lval_expr_from_sym): Call new function. - * resolve.c (add_comp_ref): New function. - (build_assignment): New function. - (get_temp_from_expr): New function - (add_code_to_chain): New function - (generate_component_assignments): New function that calls all - the above new functions. - (resolve_code): Call generate_component_assignments. - (check_defined_assignments): New function. - (resolve_fl_derived0): Call check_defined_assignments. - (gfc_resolve): Reset component_assignment_level in case it is - left in a bad state by errors. - - - * resolve.c (is_sym_host_assoc, resolve_procedure_interface, - resolve_contained_fntype, resolve_procedure_expression, - resolve_elemental_actual, resolve_global_procedure, - is_scalar_expr_ptr, gfc_iso_c_func_interface, resolve_function, - set_name_and_label, gfc_iso_c_sub_interface, - resolve_specific_s0, resolve_operator, compare_bound_mpz_t, - gfc_resolve_character_operator, resolve_typebound_function, - gfc_resolve_expr, forall_index, remove_last_array_ref, - conformable_arrays, resolve_allocate_expr, - resolve_allocate_deallocate, resolve_select_type, - resolve_transfer, resolve_where, - gfc_resolve_where_code_in_forall, gfc_resolve_forall_body, - gfc_count_forall_iterators, resolve_values, - resolve_bind_c_comms, resolve_bind_c_derived_types, - gfc_verify_binding_labels, apply_default_init, - build_default_init_expr, apply_default_init_local, - resolve_fl_var_and_proc, resolve_fl_procedure, - gfc_resolve_finalizers, check_generic_tbp_ambiguity, - resolve_typebound_intrinsic_op, resolve_typebound_procedure, - resolve_typebound_procedures, ensure_not_abstract, - resolve_fl_derived0, resolve_fl_parameter, resolve_symbol, - resolve_equivalence_derived): Remove trailing white space. - * gfortran.h : Remove trailing white space. - -2012-11-28 Tobias Burnus - - PR fortran/52161 - * trans-stmt.c (gfc_trans_sync): Fix bound checking - for -fcoarray=lib. - -2012-11-28 Tobias Burnus - - PR fortran/52161 - * trans-stmt.c (gfc_trans_sync): Fix bound checking. - -2012-11-27 Tobias Burnus - - PR fortran/55476 - * expr.c (gfc_check_pointer_assign): Fix check - pointer-might-outlive-target check for host_assoc. - -2012-11-26 Eric Botcazou - - * trans-decl.c (gfc_finish_var_decl): Do not set DECL_RESTRICTED_P. - -2012-11-26 Janus Weil - - PR fortran/54997 - * decl.c (match_procedure_decl): Don't set 'referenced' attribute - for PROCEDURE declarations. - * parse.c (gfc_fixup_sibling_symbols,parse_contained): Don't set - 'referenced' attribute for all contained procedures. - * trans-decl.c (gfc_get_symbol_decl): Allow for unreferenced procedures. - (build_function_decl): Set TREE_USED for referenced procedures. - -2012-11-26 Janus Weil - - PR fortran/54881 - * match.c (select_derived_set_tmp,select_class_set_tmp): Removed and - unified into ... - (select_type_set_tmp): ... this one. Set POINTER argument according to - selector. - * trans-intrinsic.c (gfc_conv_associated): Use 'gfc_class_data_get' - instead of 'gfc_add_data_component'. - -2012-11-25 Thomas Koenig - - PR fortran/30146 - * frontend-passes.c (doloop_warn): New function. - (doloop_list): New static variable. - (doloop_size): New static variable. - (doloop_level): New static variable. - (gfc_run_passes): Call doloop_warn. - (doloop_code): New function. - (doloop_function): New function. - (gfc_code_walker): Keep track of DO level. - -2012-11-24 Thomas Koenig - - PR fortran/55314 - * resolve.c (resolve_allocate_deallocate): Compare all - subscripts when deciding if to reject a (de)allocate - statement. - -2012-11-21 Janus Weil - - PR fortran/55352 - * trans-decl.c (generate_local_decl): Don't warn for explicitly imported - but unused module variables which are in a namelist or common block. - -2012-11-20 Diego Novillo - Jakub Jelinek - - * trans-openmp.c: Replace all vec() initializers - with vNULL. - -2012-11-17 Diego Novillo - - Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) - - * frontend-passes.c: Use new vec API in vec.h. - * trans-array.c: Likewise. - * trans-common.c: Likewise. - * trans-decl.c: Likewise. - * trans-expr.c: Likewise. - * trans-intrinsic.c: Likewise. - * trans-openmp.c: Likewise. - * trans-stmt.c: Likewise. - * trans-types.c: Likewise. - * trans.h: Likewise. - -2012-11-17 Jakub Jelinek - - PR fortran/55341 - * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Convert last - argument to memcpy to size_type_node type. - * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise. - * trasn-array.c (duplicate_allocatable): Likewise. - -2012-11-16 Janus Weil - - PR fortran/55297 - * resolve.c (resolve_typebound_intrinsic_op): Only add typebound - operators to the operator list in the namespace of the derived type. - - -2012-11-12 Jan Hubicka - - * f95-lang.c (ATTR_NOTHROW_LEAF_MALLOC_LIST): New macro. - (gfc_define_builtin): Use set_call_expr_flags. - (gfc_init_builtin_functions): Update. - -2012-11-12 Tobias Burnus - - PR fortran/55272 - * module.c (mio_array_spec): Correctly handle coarray - scalars. - -2012-11-07 Tobias Schlüter - - PR fortran/51727 - * module.c (sorted_pointer_info): New. - (gfc_get_sorted_pointer_info): New. - (free_sorted_pointer_info_tree): New. - (compare_sorted_pointer_info): New. - (find_symbols_to_write): New. - (write_symbol1_recursion): New. - (write_symbol1): Collect symbols that need writing, output in order. - (write_generic): Traverse tree in order. - -2012-11-07 Manuel López-Ibáñez - - PR c/53063 - * options.c (set_Wall): Do not set warn_switch here. - -2012-11-06 Janus Weil - - PR fortran/54917 - * target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr): - Handle BT_CLASS. - * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Add support for - polymorphic arguments. - -2012-11-04 Janus Weil - - PR fortran/55199 - * primary.c (gfc_match_varspec): Clear typespec if it cannot be - determined at this point. - -2012-10-31 Janus Weil - - PR fortran/53718 - * trans.h (GFC_DECL_PUSH_TOPLEVEL): Removed. - * trans-decl.c (gfc_get_symbol_decl,gfc_generate_function_code): Remove - GFC_DECL_PUSH_TOPLEVEL. - (build_function_decl): Do not push __copy procedure to toplevel. - -2012-10-31 Tobias Burnus - - PR fortran/55134 - * trans-array.c (gfc_conv_array_parameter): Regard AS_DEFERRED as - array with descriptor. - -2012-10-28 Tobias Burnus - - PR fortran/54958 - * gfortran.h (gfc_resolve_iterator_expr, - gfc_check_vardef_context): Update prototype. - * expr.c (gfc_check_vardef_context): Add own_scope - argument and honour it. - * resolve.c (gfc_resolve_iterator_expr): Add own_scope - argument and honour it. - (resolve_deallocate_expr, resolve_allocate_expr, - resolve_data_variables, resolve_transfer - resolve_lock_unlock, resolve_code): Update calls. - * array.c (resolve_array_list): Ditto. - * check.c (gfc_check_atomic_def, gfc_check_atomic_ref): Ditto. - * interface.c (compare_actual_formal): Ditto. - * intrinsic.c (check_arglist): Ditto. - * io.c (resolve_tag, gfc_resolve_dt, gfc_resolve_inquire): Ditto. - -2012-10-27 Thomas Koenig - - * trans.c (gfc_allocate_allocatable): Revert accidental - commit. - -2012-10-24 Janus Weil - - PR fortran/55037 - * trans-expr.c (gfc_conv_procedure_call): Move a piece of code and - remove an assert. - -2012-10-21 Tobias Burnus - - PR fortran/54725 - * Make-lang.in (CFLAGS-cpp.o): Use TARGET_SYSTEM_ROOT_DEFINE. - * cpp.o (gfc_cpp_init_options): Use it for - setting gfc_cpp_option.sysroot. - -2012-10-21 Thomas König - - PR fortran/54465 - * lang.opt (Wextra): Add. - * invoke.texi: Document that -Wc-binding-type, -Wconversion - and -Wline-truncation are implied by -Wall. Document that - -Wcompare-reals is implied by -Wextra. Document -Wextra. - * options.c (set_Wextra): New function. - (gfc_handle_option): Handle -Wextra. - -2012-10-19 Janus Weil - - PR fortran/54224 - * trans-expr.c (conv_function_val): Set TREE_USED. - -2012-10-18 Tobias Burnus - - PR fortran/54884 - * resolve.c (specification_expr): Change to bool. - (resolve_formal_arglist, resolve_symbol): Set - specification_expr to true before resolving the array spec. - (resolve_variable, resolve_charlen, resolve_fl_variable): - Properly reset specification_expr. - (resolve_function): Set public_use when used in - a specification expr. - -2012-10-16 Tobias Burnus - - PR fortran/50981 - PR fortran/54618 - * trans.h (gfc_conv_derived_to_class, gfc_conv_class_to_class): - Update prototype. - * trans-stmt.c (trans_associate_var,gfc_trans_allocate): Update - calls to those functions. - * trans-expr.c (gfc_conv_derived_to_class, gfc_conv_class_to_class, - gfc_conv_expr_present): Handle absent polymorphic arguments. - (class_scalar_coarray_to_class): New function. - (gfc_conv_procedure_call): Update calls. - -2012-10-12 Janus Weil - - PR fortran/40453 - * interface.c (check_dummy_characteristics): Recursively check dummy - procedures. - -2012-10-11 Janus Weil - - PR fortran/54784 - * trans-stmt.c (gfc_trans_allocate): Correctly determine the reference - to the _data component for polymorphic allocation with SOURCE. - -2012-10-06 Janus Weil - - PR fortran/54832 - * resolve.c (resolve_fl_derived0): Correctly copy the 'class_ok' - attribute for proc-ptr components with RESULT variable. - -2012-10-06 Janus Weil - - PR fortran/45521 - * interface.c (generic_correspondence): Implement additional - distinguishability criteria of F08. - (compare_actual_formal): Reject data object as actual argument for - procedure formal argument. - -2012-10-04 Tobias Burnus - - * expr.c (scalarize_intrinsic_call): Plug memory leak. - * frontend-passes.c (gcc_assert): Extend assert. - * interface.c (gfc_compare_derived_types): Fix comparison. - (gfc_check_operator_interface): Move up to make this error - message reachable. - (get_sym_storage_size): Remove always-true checks. - * io.c (format_lex): Add comment. - (gfc_free_wait): Free memory. - * match.c (gfc_match_select_type): Ditto. - * matchexpr.c (match_level_3): Ditto. - * primary.c (match_string_constant): Ditto. - (match_actual_arg): Check return value. - * resolve.c (gfc_resolve_substring_charlen, - resolve_typebound_generic_call, resolve_typebound_function, - resolve_typebound_subroutine): Free memory. - * trans-types.c (gfc_get_derived_type): Remove always-true check. - -2012-10-02 Janus Weil - - PR fortran/54778 - * interface.c (matching_typebound_op): Check for 'class_ok' attribute. - -2012-09-30 Janus Weil - - PR fortran/54667 - * intrinsic.texi (C_F_POINTER): Fix description. - * resolve.c (gfc_iso_c_sub_interface): Add a check for FPTR argument - of C_F_POINTER. Modify two error messages. Cleanup. - -2012-09-24 Tobias Burnus - - PR fortran/54618 - PR fortran/54690 - * trans-expr.c (gfc_conv_procedure_call): Fix INTENT(OUT) - handling for allocatable BT_CLASS. - -2012-09-24 Lawrence Crowl - - * trans-expr.c (gfc_conv_cst_int_power): Change to new double_int API. - * target-memory.c (gfc_interpret_logical): Likewise. - -2012-09-23 Tobias Burnus - - * parse.c (parse_derived): Don't set attr.alloc_comp - for pointer components with allocatable subcomps. - - PR fortran/54599 - * resolve.c (resolve_fl_namelist): Remove superfluous - NULL check. - * simplify.c (simplify_min_max): Remove unreachable code. - * trans-array.c (gfc_trans_create_temp_array): Change - a condition into an assert. - - PR fortran/54618 - * trans-expr.c (gfc_trans_class_init_assign): Guard - re-setting of the _data by gfc_conv_expr_present. - (gfc_conv_procedure_call): Fix INTENT(OUT) handling - for allocatable BT_CLASS. - -2012-09-22 Thomas König - - PR fortran/54599 - * dependency.c (gfc_dep_compare_expr): Clarify logic, - remove dead code. - -2012-09-20 Tobias Burnus - - PR fortran/54599 - * cpp.c (print_line): Properly handle extern C. - -2012-09-20 Martin Jambor - - * trans-decl.c (gfc_get_extern_function_decl): Push NULL cfun. Do not - set and restore current_function_decl. - (gfc_init_coarray_decl): Do not set and restore current_function_decl. - -2012-09-17 Tobias Burnus - - PR fortran/54608 - * simplify.c (gfc_simplify_scan, gfc_simplify_verify): - Fix handling of BACK=variable. - -2012-09-17 Janus Weil - - PR fortran/54285 - * expr.c (gfc_check_pointer_assign): Correctly handle procedure pointers - as function results. - * primary.c (gfc_match_varspec): Allow to call a PPC with proc-ptr - result. - -2012-09-17 Tobias Burnus - - PR fortran/54603 - * trans-expr.c (gfc_trans_subcomponent_assign): Handle - proc-pointer components. - -2012-09-17 Tobias Burnus - - PR fortran/54599 - * error.c (error_print): Move increment out of the assert. - * interface.c (gfc_compare_derived_types): Add assert. - (get_expr_storage_size): Remove always-true logical condition. - * resolve.c (resolve_allocate_expr): Fix looping logic. - * target-memory.c (gfc_target_expr_size): Add assert. - -2012-09-16 Janus Weil - - PR fortran/54594 - * resolve.c (get_checked_tb_operator_target): Add a reference to the - relevant quote from the F08 standard. - -2012-09-16 Janus Weil - - PR fortran/54594 - * interface.c (compare_type_rank): Handle CLASS arrays. - -2012-09-16 Janus Weil - - PR fortran/54387 - * expr.c (gfc_check_pointer_assign): Check for result of embracing - function. - -2012-09-16 Tobias Burnus - - * trans-decl.c (gfc_generate_function_code): Fix - gfc_option.coarray check. - * trans-stmt.c (compute_inner_temp_size): Fix handling - of gfc_option.rtcheck. - -2012-09-16 Mikael Morin - - * symbol.c (gfc_undo_symbols): Correctly undo namelists. - -2012-09-15 Tobias Burnus - - * trans-io.c (gfc_trans_transfer): Add an assert. - -2012-09-15 Tobias Burnus - - * arith.c (arith_power): Call gfc_free_expr in case of error. - * array.c (gfc_match_array_constructor): Initialize variable. - (gfc_resolve_character_array_constructor): Remove superfluous check. - (gfc_array_dimen_size): Add assert. - * check.c (numeric_check): Fix implicit typing. - * class.c (gfc_build_class_symbol): Add assert. - (finalize_component): Free memory. - * dump-parse-tree.c (show_namespace): Add assert. - * trans-io.c (transfer_namelist_element, transfer_expr): Avoid - memory leakage. - (gfc_trans_transfer): Add assert. - * trans.c (gfc_trans_runtime_check): Call va_end - -2012-09-15 Tobias Burnus - - * match.c (lock_unlock_statement, sync_statement): Fix potential - double freeing. - (sync_statement): Remove unreachable code. - * simplify.c (gfc_simplify_bessel_n2): Avoid double freeing. - (gfc_simplify_repeat): Remove bogus code. - * target-memory.h (gfc_target_encode_expr): Update prototype. - * target-memory.c (gfc_target_encode_expr, encode_array, - encode_derived): Return unsigned HOST_WIDE_INT. - (gfc_target_interpret_expr): Add assert. - (gfc_merge_initializers): Fix "== 0" check for mpz_t. - * symbol.c (gfc_get_typebound_proc): Add assert. - (gfc_merge_initializers): Remove unreachable check. - -2012-09-13 Tobias Burnus - - PR fortran/54556 - * resolve.c (resolve_formal_arglist): Allow VALUE arguments - with implicit_pure. - (gfc_impure_variable): Don't check gfc_pure such that the - function also works for gfc_implicit_pure procedures. - -2012-09-12 Tobias Burnus - - PR fortran/54225 - PR fortran/53306 - * array.c (match_subscript, gfc_match_array_ref): Fix - diagnostic of coarray's '*'. - -2012-09-07 Mikael Morin - - PR fortran/54208 - * simplify.c (simplify_bound_dim): Resolve array spec before - proceeding with simplification. - -2012-09-06 Tobias Burnus - - PR fortran/54463 - * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Fix matmul - call to BLAS if the default-kind has been promoted. - -2012-09-05 Tobias Burnus - - PR fortran/54462 - * symbol.c (gfc_undo_symbols): Avoid NULL pointer dereference. - -2012-09-04 Janus Weil - - PR fortran/54435 - PR fortran/54443 - * match.c (gfc_match_select_type): Make sure to only access CLASS_DATA - for BT_CLASS. - -2012-09-03 Tobias Burnus - - PR fortran/54467 - * class.c (gfc_find_derived_vtab): Fix disabling of _final - by continuing to generate normal type-bound procedures. - -2012-09-03 Tobias Burnus - - * class.c (gfc_find_derived_vtab): Disable ABI-breaking - generation of the "_final" subroutine for now. - -2012-09-03 Tobias Burnus - - * class.c (finalize_component): Fixes to the comment. - -2012-09-03 Alessandro Fanfarillo - Tobias Burnus - - PR fortran/37336 - * gfortran.h (symbol_attribute): Add artificial. - * module.c (mio_symbol_attribute): Handle attr.artificial - * class.c (gfc_build_class_symbol): Defer creation of the vtab - if the DT has finalizers, mark generated symbols as - attr.artificial. - (has_finalizer_component, finalize_component, - finalization_scalarizer, generate_finalization_wrapper): - New static functions. - (gfc_find_derived_vtab): Add _final component and call - generate_finalization_wrapper. - * dump-parse-tree.c (show_f2k_derived): Use resolved - proc_tree->n.sym rather than unresolved proc_sym. - (show_attr): Handle attr.artificial. - * resolve.c (gfc_resolve_finalizers): Ensure that the vtab exists. - (resolve_fl_derived): Resolve finalizers before - generating the vtab. - (resolve_symbol): Also allow assumed-rank arrays with CONTIGUOUS; - skip artificial symbols. - (resolve_fl_derived0): Skip artificial symbols. - -2012-09-02 Tobias Burnus - - PR fortran/54426 - * symbol.c (find_common_symtree): New function. - (gfc_undo_symbols): Use it; free common_head if needed. - -2012-08-28 Tobias Burnus - - PR fortran/54389 - * trans-decl.c (gfc_get_extern_function_decl, - build_function_decl): Don't mark impure elemental - functions as DECL_PURE_P and honour implicit_pure. - -2012-08-28 Tobias Burnus - - PR fortran/54382 - * error.c (show_locus): Avoid out of bound access. - -2012-08-28 Tobias Burnus - - PR fortran/54384 - * decl.c (match_data_constant): Add missing gfc_free_expr. - (top_val_list): Remove always-true condition. - * data.c (get_array_index, create_character_initializer): - Free temporary expressions. - (gfc_assign_data_value): Free expression when aborting. - -2012-08-28 Tobias Burnus - - PR fortran/54384 - * symbol.c (gfc_copy_formal_args): Set also sym->formal_ns. - -2012-08-27 Tobias Burnus - - PR fortran/54384 - * resolve.c (gfc_resolve_character_operator): Free temporary - variables. - * trans-expr.c (gfc_conv_statement_function): Ditto. - -2012-08-27 Tobias Burnus - - PR fortran/54384 - * dependency.c (check_section_vs_section): Use gfc_free_expr - instead of free. - * trans-intrinsic.c (conv_generic_with_optional_char_arg): Use - gfc_free_symbol instead of free. - -2012-08-27 Tobias Burnus - - PR fortran/54384 - * trans-expr.c (gfc_trans_arrayfunc_assign): Free se.ss - and loop. - -2012-08-27 Tobias Burnus - - PR fortran/41093 - * gfortran.h (gfc_common_head): Add "int refs". - * match.c (gfc_match_common): Increment refs. - * resolve.c (resolve_symbol): Only increment formal_ns->refs - if formal_ns is not sym->ns. - * symbol.c (gfc_free_symbol): Only free formal_ns if - if formal_ns is not sym->ns. Free common_block if refs is one. - (gfc_release_symbol): Release formal_ns only if the - symbol is not ENTRY of a module. - * decl.c (get_proc_name): Don't increment gfc_current_ns->refs. - * parse.c (parse_interface): Incement proc_unit->refs++ for - proc-pointer result variables. - * module.c (mio_symbol): Don't increase sym->refs for its - use in sym->formal_ns->proc_name. - -2012-08-27 Tobias Burnus - - PR fortran/54370 - * trans-stmt.c (gfc_trans_do_while): Don't change the logical - kind for negation of the condition. - -2012-08-27 Tobias Burnus - - * options.c (set_Wall): Don't set for -Wcompare-reals. - * invoke.texi (-Wall, -Wcompare-reals): -Wall no longer - implies -Wcompare-reals. - -2012-08-24 Simon Baldwin - - * lang.opt (-cpp=): Mark flag NoDWARFRecord. - -2012-08-23 Tobias Burnus - - PR fortran/54350 - * trans-array.c (free_ss_info): Free data.array.subscript. - (gfc_free_ss): No longer free data.array.subscript. - (walk_coarray): New function, moved from trans-intrinsic.c - (gfc_conv_expr_descriptor): Walk array descriptor instead - of taking passed "ss". - (get_array_ctor_all_strlen, gfc_add_loop_ss_code, - gfc_conv_array_parameter): Update call and cleanup ss handling. - * trans-array.h (gfc_conv_expr_descriptor, - gfc_conv_array_parameter): Update prototype. - * trans-expr.c (gfc_conv_derived_to_class, - conv_isocbinding_procedure, gfc_conv_procedure_call, - gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign, - gfc_trans_pointer_assignment, gfc_trans_arrayfunc_assign): Update - call to gfc_conv_expr_descriptor and gfc_conv_array_parameter, and - clean up. - * trans-intrinsic.c (walk_coarray): Moved to trans-array.c - (trans_this_image, trans_image_index, gfc_conv_intrinsic_rank - gfc_conv_intrinsic_bound, gfc_conv_intrinsic_cobound, - gfc_conv_intrinsic_len, gfc_conv_intrinsic_size, - gfc_conv_intrinsic_sizeof, gfc_conv_intrinsic_storage_size, - gfc_conv_intrinsic_transfer, gfc_conv_allocated, - gfc_conv_associated, gfc_conv_intrinsic_loc, - conv_intrinsic_move_alloc): Update calls. - * trans-io.c (gfc_convert_array_to_string, set_internal_unit, - gfc_trans_transfer): Ditto. - * trans-stmt.c (gfc_conv_elemental_dependencies, - gfc_trans_sync, trans_associate_var, - gfc_trans_pointer_assign_need_temp): Ditto. - -2012-08-23 Jakub Jelinek - - * trans-decl.c (trans_function_start, generate_coarray_init, - create_main_function, gfc_generate_constructors): Call - allocate_struct_function instead of init_function_start. - -2012-08-22 Tobias Burnus - - * trans-expr.c (gfc_copy_class_to_class, - gfc_trans_arrayfunc_assign): Free loop and ss data. - * trans-intrinsic.c (gfc_trans_arrayfunc_assign): Free ss data. - -2012-08-21 Tobias Burnus - - * parse.c (parse_contained): Include EXEC_END_PROCEDURE - in ns->code to make sure the gfc_code is freed. - -2012-08-20 Tobias Burnus - - PR fortran/54301 - * expr.c (gfc_check_pointer_assign): Warn when a pointer, - which is a function result, might outlive its target. - -2012-08-20 Tobias Burnus - - PR fortran/54301 - * expr.c (gfc_check_pointer_assign): Warn when the pointer - might outlive its target. - * gfortran.h (struct gfc_option_t): Add warn_target_lifetime. - * options.c (gfc_init_options, set_wall, gfc_handle_option): - handle it. - * invoke.texi (-Wtarget-lifetime): Document it. - (-Wall): Implied it. - * lang.opt (-Wtarget-lifetime): New flag. - -2012-08-19 Thomas König - - PR fortran/54298 - * gfortran.h (struct gfc_option_t): Add warn_compare_reals. - * lang.opt: Add Wcompare-reals. - * invoke.texi: Document -Wcompare-reals. - * resolve.c (resolve_operator): If -Wcompare-reals is in effect, - warn about equality/inequality comparisions for REAL and COMPLEX. - * options.c (gfc_init_options): Set warn_compare_reals. - (set_Wall): Include warn_compare_reals in Wall. - (gfc_handle_option): Handle Wcompare_reals. - -2012-08-17 Jakub Jelinek - - * array.c (gfc_match_array_ref): Fix up memset arguments. - -2012-08-16 Diego Novillo - - Revert - - PR bootstrap/54281 - * gfortran.h: Do not include gmp.h. - -2012-08-16 Diego Novillo - - PR bootstrap/54281 - * gfortran.h: Do not include gmp.h. - -2012-08-15 Janus Weil - - PR fortran/54243 - PR fortran/54244 - * resolve.c (check_typebound_baseobject): Check for class_ok attribute. - (resolve_procedure_interface,resolve_fl_derived0): Copy class_ok - attribute. - -2012-08-14 Mikael Morin - - PR fortran/47586 - * trans-expr.c (expr_is_variable): Handle regular, procedure pointer, - and typebound functions returning a data pointer. - -2012-08-14 Mikael Morin - - * decl.c (match_ppc_decl): Copy the procedure interface's symbol - as procedure interface's result. - -2012-08-14 Mikael Morin - - * trans-expr.c (gfc_trans_scalar_assign): Rename argument, - extend comment. - -2012-08-14 Mikael Morin - - * gfortran.h (gfc_get_proc_ptr_comp): New prototype. - (gfc_is_proc_ptr_comp): Update prototype. - * expr.c (gfc_get_proc_ptr_comp): New function based on the old - gfc_is_proc_ptr_comp. - (gfc_is_proc_ptr_comp): Call gfc_get_proc_ptr_comp. - (gfc_specification_expr, gfc_check_pointer_assign): Use - gfc_get_proc_ptr_comp. - * trans-array.c (gfc_walk_function_expr): Likewise. - * resolve.c (resolve_structure_cons, update_ppc_arglist, - resolve_ppc_call, resolve_expr_ppc): Likewise. - (resolve_function): Update call to gfc_is_proc_ptr_comp. - * dump-parse-tree.c (show_expr): Likewise. - * interface.c (compare_actual_formal): Likewise. - * match.c (gfc_match_pointer_assignment): Likewise. - * primary.c (gfc_match_varspec): Likewise. - * trans-io.c (gfc_trans_transfer): Likewise. - * trans-expr.c (gfc_conv_variable, conv_function_val, - conv_isocbinding_procedure, gfc_conv_procedure_call, - gfc_trans_pointer_assignment): Likewise. - (gfc_conv_procedure_call, gfc_trans_array_func_assign): - Use gfc_get_proc_ptr_comp. - -2012-08-14 Tobias Burnus - - PR fortran/40881 - * error.c (gfc_notify_std): Reset cur_error_buffer->flag flag - when the error/warning has been printed. - * gfortran.h (gfc_sl_type): Add ST_LABEL_DO_TARGET. - * match.c (gfc_match_do): Use ST_LABEL_DO_TARGET. - * parse.c (check_statement_label): Use ST_LABEL_DO_TARGET. - (parse_executable): Add obsolescence check for DATA. - * resolve.c (resolve_branch): Handle ST_LABEL_DO_TARGET. - * symbol.c (gfc_define_st_label, gfc_reference_st_label): - Add obsolescence diagnostics. - * trans-stmt.c (gfc_trans_label_assign): Handle ST_LABEL_DO_TARGET. - -2012-08-14 Tobias Burnus - - PR fortran/54234 - * check.c (gfc_check_cmplx): Add -Wconversion warning - when converting higher-precision REAL to default-precision - CMPLX without kind= parameter. - -2012-08-12 Tobias Burnus - - PR fortran/54221 - * trans-decl.c (gfc_finish_var_decl, build_function_decl): - Fix setting private module vars/procs as TREE_PUBLIC(...) = 0. - -2012-08-09 Tobias Burnus - - PR fortran/54199 - * intrinsic.c (gfc_warn_intrinsic_shadow): Better warning - for internal procedures. - -2012-08-06 Janus Weil - - PR fortran/35831 - * interface.c (check_result_characteristics): New function, which checks - the characteristics of function results. - (gfc_compare_interfaces,gfc_check_typebound_override): Call it. - -2012-08-02 Thomas König - - PR fortran/54033 - * scanner.c (add_path_to_list): New argument warn. Don't - warn if it is true. - (gfc_add_include_path): Warn if directory is missing. - (gfc_add_intrinsic_modules_path): Do not warn if directory - is missing. - * optinons.c (gfc_handle_option): Do not add directory - for intrinsic modules to normal include path. - -2012-08-03 Mikael Morin - - PR fortran/54166 - * trans-array.c (set_loop_bounds): Access specinfo using spec_dim. - -2012-08-02 Mikael Morin - - PR fortran/48820 - * trans-array.c (gfc_conv_ss_startstride): Set the intrinsic - result's lower and upper bounds according to the rank. - (set_loop_bounds): Set the loop upper bound in the intrinsic case. - -2012-08-02 Mikael Morin - - * trans-array.c (set_loop_bounds): Allow non-array-section to be - chosen using the stride and lower bound criteria. - -2012-08-02 Mikael Morin - - * trans-array.c (set_loop_bounds): Remove useless dimension check. - Don't update loopspec if it would loose the wanted stride criterion. - -2012-08-02 Mikael Morin - - * trans-array.h (gfc_conv_descriptor_rank): New prototype. - * trans-array.c (gfc_conv_descriptor_rank): New function moved and - renamed ... - * trans-intrinsic.c (get_rank_from_desc): ... from this one. - (gfc_conv_intrinsic_rank, gfc_conv_intrinsic_bound, - gfc_conv_associated): Also rename function calls. - -2012-08-02 Mikael Morin - - * iresolve.c (resolve_bound, gfc_resolve_shape): - Don't set the shape for assumed rank arrays. - * simplify.c (gfc_simplify_shape): Don't try to simplify if the - argument is assumed rank. - -2012-08-02 Mikael Morin - - * array.c (gfc_copy_array_ref): Don't copy the offset field. - * expr.c (find_array_section): Ignore the offset field. - * trans-expr.c (gfc_find_interface_mapping_to_ref): Don't apply - any interface mapping to the offset field. - * gfortran.h (struct gfc_array_ref): Remove the offset field. - -2012-08-02 Janus Weil - - PR fortran/54147 - * resolve.c (check_proc_interface): New routine for PROCEDURE interface - checks. - (resolve_procedure_interface,resolve_typebound_procedure, - resolve_fl_derived0): Call it. - -2012-08-01 Thomas König - - PR fortran/54033 - * scanner.c (add_path_to_list): Emit warning if an error occurs - for an include path, if it is not present or if it is not a - directory. Do not add the path in these cases. - -2012-07-31 Janus Weil - - PR fortran/42418 - * decl.c (match_procedure_interface): Move some checks to - 'resolve_procedure_interface'. Set flavor if appropriate. - * expr.c (gfc_check_pointer_assign): Cleanup of 'gfc_is_intrinsic'. - * intrinsic.c (gfc_is_intrinsic): Additional checks for attributes which - identify a procedure as being non-intrinsic. - * resolve.c (resolve_procedure_interface): Checks moved here from - 'match_procedure_interface'. Minor cleanup. - (resolve_formal_arglist,resolve_symbol): Cleanup of - 'resolve_procedure_interface' - (resolve_actual_arglist,is_external_proc): Cleanup of - 'gfc_is_intrinsic'. - -2012-07-31 Janus Weil - - PR fortran/54134 - * dependency.c (gfc_dep_compare_expr): Check if arguments are NULL. - -2012-07-31 Tobias Burnus - - * interface.c (gfc_procedure_use): Return gfc_try instead of void. - * gfortran.h (gfc_procedure_use): Update prototype. - * resolve.c (gfc_iso_c_func_interface): Allow noninteroperable - procedures for c_funloc for TS29113. - * (gfc_iso_c_sub_interface): Ditto for c_f_procpointer. Add - diagnostic for c_ptr vs. c_funptr for c_f_(proc)pointer. - -2012-07-30 Janus Weil - - PR fortran/51081 - * gfortran.h (gfc_resolve_intrinsic): Add prototype. - * expr.c (gfc_check_pointer_assign): Set INTRINSIC attribute if needed. - Check for invalid intrinsics. - * primary.c (gfc_match_rvalue): Check for intrinsics came too early. - Set procedure flavor if appropriate. - * resolve.c (resolve_intrinsic): Renamed to gfc_resolve_intrinsic. - (resolve_procedure_interface,resolve_procedure_expression, - resolve_function,resolve_fl_derived0,resolve_symbol): Ditto. - -2012-07-26 Mikael Morin - - PR fortran/44354 - * trans-array.c (gfc_trans_array_constructor_value): - Evaluate the iteration bounds before the inner variable shadows - the outer. - -2012-07-26 Mikael Morin - - PR fortran/44354 - * array.c (sought_symbol): New variable. - (expr_is_sought_symbol_ref, find_symbol_in_expr): New functions. - (resolve_array_list): Check for references to the induction - variable in the iteration bounds and issue a diagnostic if some - are found. - -2012-07-26 Alessandro Fanfarillo - Tobias Burnus - - * module.c (mio_array_spec): Don't read as->lower for - assumed-rank arrays. - -2012-07-25 Tobias Burnus - - * trans-types.c (gfc_real16_is_float128): Fix spelling - in a comment. - * trans.h (struct gfc_array_info): Ditto. - * gfortran.h (gfc_expr): Ditto. - * simplify.c (gfc_count): Ditto. - * trans-expr.c (gfc_copy_class_to_class, - conv_parent_component_references, - gfc_trans_pointer_assignment): Ditto. - * expr.c (check_pointer_assign): Fix diagnostic spelling. - * interface.c (compare_parameter): Ditto. - * parse.c (use_modules, parse_associate): Ditto. - * decl.c (match_char_length): Fix spelling of the - an function argument. - -2012-07-21 Tobias Burnus - - * iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter. - * intrinsic.texi (ISO_C_BINDING): Document it. - -2012-07-21 Tobias Burnus - - PR fortran/48820 - * trans-intrinsic.c (gfc_conv_intrinsic_bound): Support - lbound/ubound with dim= for assumed-rank arrays. - * array.c (gfc_set_array_spec): Reject coarrays with - assumed shape. - * decl.c (merge_array_spec): Ditto. Return gfc_try. - (match_attr_spec, match_attr_spec): Update call. - -2012-07-21 Tobias Burnus - - * resolve.c (resolve_formal_arglist): Put variable - declaration before the first assignment. - -2012-07-21 Tobias Burnus - - * trans-expr.c (gfc_conv_derived_to_class): Fix argument passed - to class_array_data_assign. - -2012-07-20 Tobias Burnus - - * decl.c (gfc_verify_c_interop_param): Allow assumed-shape - with -std=f2008ts. - -2012-07-20 Tobias Burnus - - PR fortran/48820 - * array.c (match_array_element_spec, gfc_match_array_spec, - spec_size, gfc_array_dimen_size): Add support for - assumed-rank arrays. - * check.c (dim_rank_check): Ditto. - * class.c (gfc_add_component_ref): Ditto. - (gfc_build_class_symbol): Regard assumed-rank arrays - as having GFC_MAX_DIMENSIONS. And build extra class - container for a scalar pointer class. - * decl.c (merge_array_spec): Add assert. - * dump-parse-tree.c (show_array_spec): Add support for - assumed-rank arrays. - * expr.c (gfc_is_simply_contiguous): Ditto. - * gfortran.h (array_type): Ditto. - (gfc_array_spec, gfc_expr): Add comment to "rank" field. - * interface.c (compare_type_rank, argument_rank_mismatch, - compare_parameter, gfc_procedure_use): Ditto. - (compare_actual_formal): Fix NULL() to optional-dummy - handling for polymorphic dummies. - * module.c (mio_typespec): Add support for - assumed-rank arrays. - * resolve.c (resolve_formal_arglist, resolve_actual_arglist, - resolve_elemental_actual, resolve_global_procedure, - expression_shape, resolve_variable, update_ppc_arglist, - check_typebound_baseobject, gfc_resolve_expr, - resolve_fl_var_and_proc, gfc_resolve_finalizers, - resolve_typebound_procedure, resolve_symbol): Ditto. - (assumed_type_expr_allowed): Remove static variable. - (actual_arg, first_actual_arg): New static variables. - * simplify.c (simplify_bound, gfc_simplify_range): Add - support for assumed-rank arrays. - * trans-array.c (gfc_conv_array_parameter): Ditto. - (gfc_get_descriptor_dimension): New function, which returns - the descriptor. - (gfc_conv_descriptor_dimension): Use it. - (gfc_conv_descriptor_stride_get, gfc_conv_array_parameter): - Handle GFC_ARRAY_ASSUMED_RANK_CONT and AS_ASSUMED_RANK. - * trans-array.h (gfc_get_descriptor_dimension): New prototype. - * trans-decl. (gfc_build_dummy_array_decl, - gfc_trans_deferred_vars, add_argument_checking): Add - support for assumed-rank arrays. - * trans-expr.c (gfc_conv_expr_present, gfc_conv_variable, - gfc_conv_procedure_call): Ditto. - (get_scalar_to_descriptor_type, class_array_data_assign, - conv_scalar_to_descriptor): New static functions. - (gfc_conv_derived_to_class, gfc_conv_class_to_class): Use - them. - * trans-intrinsic.c (get_rank_from_desc): New function. - (gfc_conv_intrinsic_rank, gfc_conv_associated): Use it. - * trans-types.c (gfc_array_descriptor_base_caf, - gfc_array_descriptor_base): Make space for scalar array. - (gfc_is_nodesc_array, gfc_is_nodesc_array, - gfc_build_array_type, gfc_get_array_descriptor_base): Add - support for assumed-rank arrays. - * trans.h (gfc_array_kind): Add GFC_ARRAY_ASSUMED_RANK and - GFC_ARRAY_ASSUMED_RANK_CONT. - -2012-07-19 Tobias Burnus - - * trans-expr.c (gfc_conv_procedure_call): Fix handling - of polymorphic arguments. - * resolve.c (resolve_formal_arglist): Ditto, mark polymorphic - assumed-shape arrays as such. - -2012-07-19 Tobias Burnus - - * interface.c (compare_parameter, compare_actual_formal): Fix - handling of polymorphic arguments. - -2012-07-17 Janus Weil - - PR fortran/51081 - * error.c (gfc_notify_std): Automatically print the relevant Fortran - standard version. - * arith.c (arith_power): Remove explicit standard reference string. - * array.c (gfc_match_array_spec, gfc_match_array_constructor): Ditto. - * check.c (gfc_check_a_p, gfc_check_besn, gfc_check_count, - gfc_check_float, gfc_check_fn_rc2008, gfc_check_iand, - gfc_check_ichar_iachar, gfc_check_ieor, gfc_check_index, gfc_check_ior, - gfc_check_lbound, gfc_check_len_lentrim, check_rest, gfc_check_min_max, - gfc_check_null, gfc_check_scan, gfc_check_selected_real_kind, - gfc_check_shape, gfc_check_size, gfc_check_sngl, gfc_check_ubound, - gfc_check_verify): Ditto. - * data.c (gfc_assign_data_value): Ditto. - * decl.c (var_element, char_len_param_value, match_char_length, - gfc_verify_c_interop_param, match_pointer_init, variable_decl, - gfc_match_decl_type_spec, gfc_match_import, match_attr_spec, - gfc_match_prefix, gfc_match_suffix, match_ppc_decl, - match_procedure_in_interface, gfc_match_procedure,gfc_match_entry, - gfc_match_subroutine, gfc_match_end, gfc_match_codimension, - gfc_match_protected, gfc_match_value, gfc_match_volatile, - gfc_match_asynchronous, gfc_match_modproc, gfc_get_type_attr_spec, - gfc_match_enum, match_procedure_in_type): Ditto. - * expr.c (check_elemental, gfc_check_assign, gfc_check_pointer_assign): - Ditto. - * interface.c (gfc_match_abstract_interface, check_interface0): Ditto. - * intrinsic.c (gfc_intrinsic_func_interface): Ditto. - * io.c (format_lex, resolve_tag_format, resolve_tag, - compare_to_allowed_values, gfc_match_open, gfc_match_rewind, - gfc_resolve_dt, gfc_match_wait): Ditto. - * match.c (match_arithmetic_if, gfc_match_if, gfc_match_critical, - gfc_match_do, match_exit_cycle, gfc_match_pause, gfc_match_stop, - gfc_match_lock, sync_statement, gfc_match_assign, gfc_match_goto, - gfc_match_allocate, gfc_match_return, gfc_match_st_function): Ditto. - * module.c (gfc_match_use, gfc_use_module): Ditto. - * parse.c (parse_derived_contains, parse_block_construct, - parse_associate, parse_contained): Ditto. - * primary.c (match_hollerith_constant, match_boz_constant, - match_real_constant, match_sym_complex_part, match_arg_list_function, - build_actual_constructor, gfc_convert_to_structure_constructor): Ditto. - * resolve.c (resolve_formal_arglist, resolve_entries, - resolve_common_blocks, resolve_actual_arglist, gfc_resolve_index_1, - gfc_resolve_iterator_expr, resolve_ordinary_assign, - resolve_fl_var_and_proc, resolve_fl_variable_derived, - resolve_fl_procedure, resolve_fl_derived0, resolve_fl_derived, - resolve_fl_namelist, resolve_symbol, resolve_fntype): Ditto. - * symbol.c (check_conflict, conflict, gfc_add_is_bind_c, - gfc_add_extension, gfc_check_symbol_typed): Ditto. - -2012-07-17 Tobias Burnus - - PR fortran/53985 - * decl.c (gfc_verify_c_interop_param): Make warning conditional - on -Wc-binding-type works and improve the wording. - -2012-07-17 Tobias Burnus - - PR fortran/52101 - * decl.c (match_char_length): Extra argument, show obsolenscent - warning only if *length is used after the typename. - (variable_decl, gfc_match_char_spec): Update call - -2012-07-17 Tobias Burnus - Steven G. Kargl - - PR fortran/49265 - * decl.c (match_procedure_in_interface): Support "::" for - Fortran 2008 and later. - -2012-07-16 Thomas König - - PR fortran/53824 - * resolve.c (resolve_allocate_deallocate): If both - start indices are NULL, skip the test for equality. - -2012-07-16 Steven Bosscher - - * f95-lang.c: Include dumpfile.h instead of tree-dump.h. - * Make-lang.in: Fix dependencies. - -2012-07-16 Janus Weil - - PR fortran/53956 - * gfortran.h (gfc_copy_formal_args,gfc_copy_formal_args_ppc): Modified - prototypes. - * symbol.c (gfc_copy_formal_args): New argument 'if_src'. Copy if_source - of dummy procedures. - (gfc_copy_formal_args_ppc): Ditto. - * resolve.c (resolve_procedure_interface): Pass IFSRC_DECL to - gfc_copy_formal_args. - (resolve_fl_derived0): Pass IFSRC_DECL to gfc_copy_formal_args_ppc. - -2012-07-12 Tobias Burnus - - * trans-expr.c (conv_isocbinding_procedure): Generate c_f_pointer code - inline. - -2012-07-11 Steven Bosscher - - * trans.c: Do not include defaults.h. - * trans-intrinsic.c: Likewise. - -2012-07-08 Steven Bosscher - - * gfortran.h: Do not include coretypes.h here. - Make it an error to include this before coretypes.h - * openmp.c: Include coretypes.h. - * interface.c: Likewise. - * intrinsic.c: Likewise. - * symbol.c: Likewise. - * class.c: Likewise. - * decl.c: Likewise. - * matchexp.c: Likewise. - * dump-parse-tree.c: Likewise. - * array.c: Likewise. - * constructor.c: Likewise. - * error.c: Likewise. - * data.c: Likewise. - * expr.c: Likewise. - * module.c: Likewise. - * scanner.c: Likewise. - * bbt.c: Likewise. - * io.c: Likewise. - * frontend-passes.c: Likewise. - * resolve.c: Likewise. - * st.c: Likewise. - * target-memory.c: Likewise. - * match.c: Likewise. - * arith.c: Likewise. - * parse.c: Likewise. - * check.c: Likewise. - * dependency.c: Likewise. - * primary.c: Likewise. - * misc.c: Likewise. - * simplify.c: Likewise. - -2012-07-05 Mikael Morin - - PR fortran/53732 - * trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls - handling nested loop(s) if the subscript flag is true. - -2012-07-05 Uros Bizjak - - PR fortran/53449 - * parse.c (gfc_parse_file): Initialize errors_before. - -2012-06-27 Janus Weil - - PR fortran/41951 - PR fortran/49591 - * interface.c (check_new_interface): Rename, add 'loc' argument, - make non-static. - (gfc_add_interface): Rename 'check_new_interface' - * gfortran.h (gfc_check_new_interface): Add prototype. - * resolve.c (resolve_typebound_intrinsic_op): Add typebound operator - targets to non-typebound operator list. - -2012-06-22 Janus Weil - - PR fortran/47710 - PR fortran/53328 - * interface.c (count_types_test, generic_correspondence, - gfc_compare_interfaces): Ignore PASS arguments. - (check_interface1, compare_parameter): Pass NULL arguments to - gfc_compare_interfaces. - * gfortran.h (gfc_compare_interfaces): Modified prototype. - * expr.c (gfc_check_pointer_assign): Pass NULL arguments to - gfc_compare_interfaces. - * resolve.c (resolve_structure_cons): Ditto. - (check_generic_tbp_ambiguity): Determine PASS arguments and pass them - to gfc_compare_interfaces. - -2012-06-21 Janne Blomqvist - - PR fortran/39654 - * iresolve.c (gfc_resolve_ftell): Fix result kind and use new - library function. - -2012-06-18 Tobias Burnus - - * intrinsic.h (gfc_resolve_rank): New prototype. - * intrinsic.c (add_functions): Use gfc_resolve_rank. - * iresolve.c (add_functions): New function. - * trans-intrinsic.c (gfc_conv_intrinsic_rank): New function. - (gfc_conv_intrinsic_function): Call it. - -2012-06-18 Tobias Burnus - - PR fortran/53692 - * trans-array.c (set_loop_bounds): Don't scalarize via absent - optional arrays. - * resolve.c (resolve_elemental_actual): Don't stop resolving after printing - a warning. - -2012-06-18 Tobias Burnus - - PR fortran/53526 - * trans-intrinsic.c (conv_intrinsic_move_alloc): Handle coarrays. - -2012-06-18 Tobias Burnus - - PR fortran/53526 - * check.c (gfc_check_move_alloc): Reject coindexed actual arguments - and those with different corank. - -2012-06-17 Tobias Burnus - - PR fortran/53691 - PR fortran/53685 - * check.c (gfc_calculate_transfer_sizes): Return if - SIZE= is not constant or source-size cannot be determined. - -2012-06-16 Tobias Burnus - - PR fortran/53642 - PR fortran/45170 - * frontend-passes.c (optimize_assignment): Don't remove RHS's - trim when assigning to a deferred-length string. - * trans-expr.c (gfc_trans_assignment_1): Ensure that the RHS string - length is evaluated before the deferred-length LHS is reallocated. - -2012-06-13 Tobias Burnus - - PR fortran/53643 - * trans-decl.c (init_intent_out_dt): Fix for polymorphic arrays. - * trans-array.c (structure_alloc_comps): Don't loop for - scalar coarrays. - -2012-06-13 Tobias Burnus - - PR fortran/53597 - * decl.c (match_attr_spec): Only mark module variables - as SAVE_IMPLICIT for Fortran 2008 and later. - -2012-06-08 Janus Weil - - PR fortran/52552 - * match.c (gfc_match_allocate): Modify order of checks. Change wording - of error message. Remove FIXME note. - * resolve.c (resolve_allocate_expr): Add a comment. - -2012-06-07 Thomas König - - PR fortran/52861 - * frontend-passes.c (optimize_assignment): Don't set the - length of an empty string for deferred-length character - variables. - -2012-06-07 Thomas König - - PR fortran/52861 - * frontend-passes.c (empty_string): Add prototype. - (optimize_assignment): Set the length of an empty string - constant to zero. - -2012-06-04 Tobias Burnus - - PR fortran/50619 - * resolve.c (build_default_init_expr): Don't initialize - ASSOCIATE names. - -2012-06-03 Alessandro Fanfarillo - Tobias Burnus - - PR fortran/48831 - * gfortran.h (gfc_check_init_expr): Add prototype declaration - of function. - * check.c (kind_check): Change if condition to use - to gfc_check_init_expr. - * expr.c (check_init_expr): Remove forward declaration - and static keyword. Change name in gfc_check_init_expr. - (scalarize_intrinsic_call, check_init_expr_arguments, - check_inquiry, check_conversion, gfc_reduce_init_expr): Update - call to gfc_check_init_expr. - -2012-05-31 Steven Bosscher - - * trans-common.c: Do not include output.h. - * trans-decl.c: Likewise. - -2012-05-31 Tobias Burnus - - PR fortran/53521 - * trans.c (gfc_deallocate_scalar_with_status): Properly - handle the case size == 0. - -2012-05-30 Tobias Burnus - - PR c/53502 - * decl.c (match_attr_spec): Remove "typedef". - -2012-05-30 Tobias Burnus - - * decl.c: Fix comment typos. - * expr.c: Ditto. - * frontend-passes.c: Ditto. - * match.c: Ditto. - * resolve.c: Ditto. - * trans-array.c: Ditto. - * trans-common.c: Ditto. - * trans-intrinsic.c: Ditto. - * trans-types.c: Ditto. - -2012-05-23 Tobias Burnus - - PR fortran/51055 - PR fortran/45170 - * match.c (gfc_match_allocate): Set length_from_typespec - for characters. - * resolve.c (resolve_charlen): If set, don't check whether - the len is a specification expression. - -2012-05-22 Tobias Burnus - - PR fortran/53389 - * trans-array.c (gfc_add_loop_ss_code): Don't evaluate expression, if - ss->is_alloc_lhs is set. - -2012-05-22 Dodji Seketeli - - PR c++/53322 - * f95-lang.c (gfc_init_builtin_functions): Remove the unused - typedef builtin_type. - -2012-05-14 Janne Blomqvist - - PR fortran/52428 - * gfortran.texi: Update _gfortran_set_options documentation. - * invoke.texi: Remove runtime behavior description of - -fno-range-check. - * trans-decl.c (create_main_function): Don't pass the range-check - setting to the library. - -2012-05-14 Tobias Burnus - - PR fortran/49110 - PR fortran/51055 - PR fortran/53329 - * trans-expr.c (gfc_trans_assignment_1): Fix allocation - handling for assignment of function results to allocatable - deferred-length strings. - * trans-decl.c (gfc_create_string_length): For deferred-length - module variables, include module name in the assembler name. - (gfc_get_symbol_decl): Don't override the assembler name. - -2012-05-14 Manuel López-Ibáñez - - PR 53063 - * options.c (gfc_handle_option): Call lang-specific generated function. - -2012-05-13 Alessandro Fanfarillo - Tobias Burnus - - PR fortran/52158 - PR fortran/45170 - PR fortran/49430 - * resolve.c (resolve_fl_derived0): Deferred character length - procedure components are supported. - * trans-expr.c (gfc_conv_procedure_call): Handle TBP with - deferred-length results. - (gfc_string_to_single_character): Add a new check to prevent - NULL read. - (gfc_conv_procedure_call): Remove unuseful checks on - symbol's attributes. Add new checks to prevent NULL read on - string length. - -2012-05-12 Tobias Burnus - - PR fortran/49110 - PR fortran/52843 - * resolve.c (resolve_fl_procedure): Don't regard - character(len=:) as character(*) in the diagnostic. - -2012-05-11 Thomas Koenig - - PR fortran/52537 - * frontend-passes.c (optimize_op): Change - old-style comparison operators to new-style, simplify - switch as a result. - (empty_string): New function. - (get_len_trim_call): New function. - (optimize_comparison): If comparing to an empty string, - use comparison of len_trim to zero. - Use new-style comparison operators only. - (optimize_trim): Use get_len_trim_call. - -2012-05-11 Manuel López-Ibáñez - - PR 53063 - * options.c: Include diagnostics.h instead of - diagnostics-core.h. - (set_Wall): Do not see warn_unused here. - (gfc_handle_option): Set it here using handle_generated_option. - -2012-05-08 Jan Hubicka - - * trans-common.c (create_common): Do not fake TREE_ASM_WRITTEN. - * trans-decl.c (gfc_finish_cray_pointee): Likewise. - -2012-05-07 Tobias Burnus - - PR fortran/53255 - * resolve.c (resolve_typebound_static): Fix handling - of overridden specific to generic operator. - -2012-05-06 Tobias Burnus - - PR fortran/41587 - * decl.c (build_struct): Don't ignore FAILED status. - -2012-05-05 Paul Thomas - - PR fortran/41600 - * trans-array.c (build_array_ref): New static function. - (gfc_conv_array_ref, gfc_get_dataptr_offset): Call it. - * trans-expr.c (gfc_get_vptr_from_expr): New function. - (gfc_conv_derived_to_class): Add a new argument for a caller - supplied vptr and use it if it is not NULL. - (gfc_conv_procedure_call): Add NULL to call to above. - symbol.c (gfc_is_associate_pointer): Return true if symbol is - a class object. - * trans-stmt.c (trans_associate_var): Handle class associate- - names. - * expr.c (gfc_get_variable_expr): Supply the array-spec if - possible. - * trans-types.c (gfc_typenode_for_spec): Set GFC_CLASS_TYPE_P - for class types. - * trans.h : Add prototypes for gfc_get_vptr_from_expr and - gfc_conv_derived_to_class. Define GFC_CLASS_TYPE_P. - * resolve.c (resolve_variable): For class arrays, ensure that - the target expression has all the necessary _data references. - (resolve_assoc_var): Throw a "not yet implemented" error for - class array selectors that need a temporary. - * match.c (copy_ts_from_selector_to_associate, - select_derived_set_tmp, select_class_set_tmp): New functions. - (select_type_set_tmp): Call one of last two new functions. - (gfc_match_select_type): Copy_ts_from_selector_to_associate is - called if associate-name is typed. - - PR fortran/53191 - * resolve.c (resolve_ref): C614 applied to class expressions. - -2012-05-05 Janne Blomqvist - - PR fortran/49010 - PR fortran/24518 - * intrinsic.texi (MOD, MODULO): Mention sign and magnitude of result. - * simplify.c (gfc_simplify_mod): Use mpfr_fmod. - (gfc_simplify_modulo): Likewise, use copysign to fix the result if - zero. - * trans-intrinsic.c (gfc_conv_intrinsic_mod): Remove fallback as - builtin_fmod is always available. For modulo, call copysign to fix - the result when signed zeros are enabled. - -2012-05-05 Janne Blomqvist - - * gfortran.texi (GFORTRAN_TMPDIR): Rename to TMPDIR, explain - algorithm for choosing temp directory. - -2012-05-04 Tobias Burnus - - PR fortran/53175 - * resolve.c (resolve_variable): Set public_used - if a private module variable is used in a (public) - specification expression. - * trans-decl.c (gfc_finish_var_decl): Mark those - TREE_PUBLIC. - -2012-05-04 Tobias Burnus - - PR fortran/53111 - * resolve.c (resolve_fl_derived): Fix -std=f95 - diagnostic for generic vs. DT names. - -2012-05-03 Tobias Burnus - - PR fortran/52864 - * interface.c (compare_parameter_intent): Remove. - (check_intents): Remove call, handle CLASS pointer. - (compare_actual_formal): Handle CLASS pointer. - -2012-04-30 Jan Hubicka - - * f95-lang.c (gfc_finish): Update comments. - -2012-04-29 Thomas Koenig - - PR fortran/53148 - * frontend-passes.c (create_var): If the statement has a label, - put the label around the block. - -2012-04-25 Tobias Burnus - - PR fortran/52196 - * lang.opt (Wrealloc-lhs, Wrealloc-lhs-all): New flags. - * gfortran.h (gfc_option_t): Add them. - * options.c (gfc_init_options, gfc_post_options, - gfc_handle_option): Handle them. - * invoke.texi: Document them. - * trans-expr.c (realloc_lhs_warning): New function. - (gfc_trans_arrayfunc_assign, - alloc_scalar_allocatable_for_assignment, - gfc_trans_assignment_1): Use it. - -2012-04-18 Steven Bosscher - - * trans-decl.c (gfc_trans_entry_master_switch): Build SWITCH_EXPR - with NULL_TREE type instead of void_type_node. - * trans-io.c (io_result): Likewise. - * trans-stmt.c (gfc_trans_integer_select, - gfc_trans_character_select): Likewise. - -2012-04-16 Tobias Burnus - - PR fortran/52864 - * expr.c (gfc_check_vardef_context): Fix assignment check for - pointer components. - -2012-04-16 Janus Weil - - PR fortran/52968 - * class.c (gfc_build_class_symbol): Make sure the 'f2k_derived' - namespace is present. - -2012-04-15 Janus Weil - - PR fortran/51082 - * trans-expr.c (gfc_conv_expr_reference): Check if the expression is a - simple function call (or a more involved PPC reference). - -2012-04-15 Tobias Burnus - - PR fortran/52916 - PR fortran/40973 - * gfortran.h (symbol_attribute): Add public_used. - * interface.c (check_sym_interfaces, check_uop_interfaces, - gfc_check_interfaces): Set it. - * resolve.c (resolve_typebound_procedure): Ditto. - * trans-decl.c (build_function_decl): Use it. - -2012-04-11 Tobias Burnus - - PR fortran/52729 - * resolve.c (resolve_symbol): Fix searching for parent NS decl. - -2012-04-08 Tobias Burnus - - PR fortran/52751 - * trans-decl.c (gfc_finish_var_decl): Don't set TREE_PUBLIC - for PRIVATE module variables without C-binding label. - - PR fortran/40973 - * trans-decl.c (build_function_decl): Ditto for procedures. - -2012-04-07 Thomas Koenig - - PR fortran/52893 - * frontend-passes.c: Keep track of wether we are in an implicit - DO loop; do not do function elimination if we are. - -2012-04-06 Thomas Koenig - - PR fortran/52668 - * module.c: Only mark symbols as use_only if they have been - imported via an only list. - -2012-03-28 Paul Thomas - Tobias Burnus - - PR fortran/52652 - * match.c (gfc_match_allocate, gfc_match_deallocate): Change - "not.. or" to "neither.. nor". - * parse.c (decode_specification_statement): Correct error in - chpice of matching function for "allocatable". - -2012-03-23 Janne Blomqvist - - * gfortran.h (GFC_MAX_LINE): Remove unused macro. - -2012-03-19 Francois-Xavier Coudert - - PR fortran/52559 - * error.c (gfc_widechar_display_length): Consider tabs as - one character wide, as they're displayed as spaces. - (show_locus): Move tab handling to... - (print_wide_char_into_buffer): ... here. - -2012-03-17 Tobias Burnus - - PR fortran/52585 - * trans-intrinsic.c (gfc_conv_associated): Fix handling of - procpointer dummy arguments. - -2012-03-16 Janne Blomqvist - - * trans-intrinsic.c (build_round_expr): Don't use BUILT_IN_IROUND - for __float128. - -2012-03-15 Janne Blomqvist - - * f95-lang.c (gfc_init_builtin_functions): Initialize - BUILT_IN_IROUND. - * mathbuiltins.def: Add IROUND. - * trans-intrinsic.c (build_round_expr): Use BUILT_IN_IROUND if - type size matches. - (gfc_build_intrinsic_lib_fndecls): Build iround functions. - -2012-03-12 Richard Guenther - - * f95-lang.c (builtin_type_for_size): Use gfc_type_for_size. - -2012-03-12 Tobias Burnus - - PR fortran/52542 - * decl.c (match_procedure_decl): If the interface - is bind(C), the procedure is as well. - -2012-03-10 Steven Bosscher - - * convert.c (convert): Fold BOOLEAN_TYPE types to the proper variant. - -2012-03-09 Steven Bosscher - - * Make-lang.in (convert.o): Depend on convert.h. - * convert.c: Header and comment cleanups. - (gfc_thruthvalue_conversion): Rename static function - to truthvalue_conversion. Do not use 'internal_error' from here, - use 'gcc_unreachable' instead. - (convert): Do not use 'error' for conversions to void, use - 'gcc_unreachable' instead. Likewise for conversions to non-scalar - types. Do not hanlde ENUMERAL_TYPE, the front end never creates them. - Clean up #if 0 code. - -2012-03-08 Tobias Burnus - - PR fortran/52469 - * trans-types.c (gfc_get_function_type): Handle backend_decl - of a procedure pointer. - -2012-03-06 Steven Bosscher - - * f95-lang.c (yyerror, yylex): Remove. - (clear_binding_stack): Remove, fold into its only user. - (LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define. - (ridpointers): Remove. - (gfc_eh_initialized_p): Make static. - (gfc_truthvalue_conversion): Move to convert.c. - (gfc_be_parse_file): Clear binding level stack when done. - (gfc_print_identifier): Remove. - (pushlevel): Remove ignored 'ignore' argument. Update all callers. - (poplevel): Remove unused 'reverse' argument. Update all callers. - (ggc_p): Remove. - (gfc_builtin_function): Make static. Do not attempt to make RTL for - builtin functions. - * convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c, - and made static. - * trans.h (pushlevel, poplevel): Adjust prototypes. - (gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes. - * trans-openmp.c: Update calls to pushlevel and poplevel. - * trans.c: Likewise. - * trans-decl.c: Likewise. - -2012-03-04 Mikael Morin - - PR fortran/50981 - * gfortran.h (gfc_is_class_container_ref): New prototype. - * class.c (gfc_is_class_container_ref): New function. - * trans-expr.c (gfc_conv_procedure_call): Add a "_data" component - reference to polymorphic actual arguments. - -2012-03-04 Mikael Morin - - PR fortran/50981 - * trans-expr.c (gfc_conv_procedure_call): Save se->ss's value. - Handle the case of unallocated arrays passed to elemental procedures. - -2012-03-04 Mikael Morin - - * trans.h (struct gfc_ss_info): Move can_be_null_ref component from - the data::scalar subcomponent to the toplevel. - * trans-expr.c (gfc_conv_expr): Update component reference. - * trans-array.c (gfc_add_loop_ss_code): Ditto. - (gfc_walk_elemental_function_args): Ditto. Move the conditional setting - the field out of the scalar-only block. - -2012-03-04 Francois-Xavier Coudert - - PR fortran/36160 - * error.c (gfc_widechar_display_length, gfc_wide_display_length): - New functions. - (print_wide_char_into_buffer): Return length written. - (show_locus): Fix locus displayed when wide characters are present. - -2012-03-04 Francois-Xavier Coudert - - * module.c (gfc_use_module): Improve error message some more. - -2012-03-03 Francois-Xavier Coudert - - PR fortran/52313 - * module.c (gfc_use_module): Improve error messages. - -2012-03-03 Tobias Burnus - - PR fortran/48820 - * resolve.c (resolve_actual_arglist): Properly reset - assumed_type_expr_allowed. - -2012-03-03 Tobias Burnus - - * lang.opt (Wc-binding-type): New flag. - * options.c (gfc_init_options, gfc_handle_option): Handle it. - * invoke.texi (Wc-binding-type): Document it. - * gfortran.h (gfc_option_t): Add warn_c_binding_type. - * decl.c (verify_bind_c_sym): Handle -Wc-binding-type. - * symbol.c (gfc_set_default_type, verify_bind_c_derived_type): - Ditto. - -2012-03-03 Tobias Burnus - - PR fortran/48820 - * decl.c (gfc_match_decl_type_spec): Support type(*). - (gfc_verify_c_interop): Allow type(*). - * dump-parse-tree.c (show_typespec): Handle type(*). - * expr.c (gfc_copy_expr): Ditto. - * interface.c (compare_type_rank, compare_parameter, - compare_actual_formal, gfc_procedure_use): Ditto. - * libgfortran.h (bt): Add BT_ASSUMED. - * misc.c (gfc_basic_typename, gfc_typename): Handle type(*). - * module.c (bt_types): Ditto. - * resolve.c (assumed_type_expr_allowed): New static variable. - (resolve_actual_arglist, resolve_variable, resolve_symbol): - Handle type(*). - * trans-expr.c (gfc_conv_procedure_call): Ditto. - * trans-types.c (gfc_typenode_for_spec, gfc_get_dtype): Ditto. - -2012-03-02 Tobias Burnus - - PR fortran/52325 - * primary.c (gfc_match_varspec): Add missing ;. - -2012-03-02 Tobias Burnus - - PR fortran/52325 - * primary.c (gfc_match_varspec): Add diagnostic for % with - nonderived types. - -2012-03-02 Tobias Burnus - - PR fortran/52270 - * expr.c (gfc_check_vardef_context): Fix check for - intent-in polymorphic pointer . - * interface.c (compare_parameter): Allow passing TYPE to - intent-in polymorphic pointer. - -2012-03-02 Tobias Burnus - - PR fortran/52452 - * resolve.c (resolve_intrinsic): Don't search for a - function if we know that it is a subroutine. - -2012-02-29 Paul Thomas - - PR fortran/52386 - * trans-expr.c (fcncall_realloc_result): Dereference the - descriptor if needed. - -2012-02-22 Tobias Burnus - - PR fortran/52335 - * io.c (gfc_match_open): Remove bogus F2003 DELIM= check. - -2012-02-18 Tobias Burnus - - PR fortran/52295 - * interface.c (check_interface0): Internal procs in - generic interfaces are allowed in Fortran 2008. - -2012-02-17 Tobias Burnus - Roland Stigge - - PR translation/52273 - * interface.c (compare_actual_formal): Fix typo "at at". - -2012-02-17 Tobias Burnus - - * gfortran.texi (Q exponent-letter): Fix grammar. - -2012-02-17 Tobias Burnus - - * gfortran.texi (Status): Fix typos. - * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with - a majuscule. - -2012-02-17 Tobias Burnus - Roland Stigge - - PR translation/52232 - PR translation/52234 - PR translation/52245 - PR translation/52246 - PR translation/52262 - PR translation/52273 - * io.c (gfc_match_open): Fix typo. - * interface.c (compare_actual_formal): Ditto. - * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16): Ditto. - * match.c (alloc_opt_list, gfc_match_nullify): Ditto. - * check.c (gfc_check_associated, gfc_check_null): Ditto. - -2012-02-12 Mikael Morin - - PR fortran/50981 - * trans-stmt.c (gfc_get_proc_ifc_for_call): New function. - (gfc_trans_call): Use gfc_get_proc_ifc_for_call. - -2012-02-12 Mikael Morin - - * trans-array.c (gfc_walk_elemental_function_args, - gfc_walk_function_expr): Move call to gfc_get_proc_ifc_for_expr out - of gfc_walk_elemental_function_args. - * trans-stmt.c (gfc_trans_call): Ditto. - * trans-array.h (gfc_get_proc_ifc_for_expr): New prototype. - (gfc_walk_elemental_function_args): Update prototype. - -2012-02-12 Mikael Morin - - * trans-array.c (gfc_get_proc_ifc_for_expr): New function. - (gfc_walk_elemental_function_args): Move code to - gfc_get_proc_ifc_for_expr and call it. - -2012-02-08 Tobias Burnus - - PR fortran/52151 - * trans-expr.c (fcncall_realloc_result): Set also the stride. - -2012-02-07 Tobias Burnus - - PR fortran/51514 - * trans-expr.c (gfc_conv_procedure_call): Add _data component - for calls of scalar CLASS actuals to TYPE dummies. - -2012-02-05 Thomas König - - PR fortran/48847 - * trans-decl.c: Warn about unused dummy procedure arguments - if -Wunused-dummy-argument is specified. Suppress middle-end - warnings about procedure arguments. - -2012-02-05 Paul Thomas - - * trans-array.c (gfc_array_allocate): Zero memory for all class - array allocations. - * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars. - - PR fortran/52102 - * trans-stmt.c (gfc_trans_allocate): Before correcting a class - array reference, ensure that 'dataref' points to the _data - component that is followed by the array reference.. - -2012-02-02 Mikael Morin - - PR fortran/41587 - PR fortran/46356 - PR fortran/51754 - PR fortran/50981 - * class.c (insert_component_ref, class_data_ref_missing, - gfc_fix_class_refs): New functions. - * gfortran.h (gfc_fix_class_refs): New prototype. - * trans-expr.c (gfc_conv_expr): Remove special case handling and call - gfc_fix_class_refs instead. - -2012-02-02 Paul Thomas - - PR fortran/52012 - * trans-expr.c (fcncall_realloc_result): If variable shape is - correct, retain the bounds, whatever they are. - -2012-02-02 Tobias Burnus - - PR fortran/52093 - * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES. - -2012-02-01 Thomas König - - PR fortran/51958 - * frontend-passes.c (convert_elseif): New function. - (optimize_namespace): Call it. - -2012-02-01 Tobias Burnus - - PR fortran/52024 - * module.c (MOD_VERSION): Bump. - (mio_typebound_proc): Read/write is_operator from/to the - .mod file. - -2012-02-01 Tobias Burnus - - PR fortran/52059 - * trans-expr.c (gfc_conv_procedure_call): Add array ref - only to variables. - -2012-01-31 Tobias Burnus - - PR fortran/52024 - * gfortran.h (gfc_tbp_generic): Store whether the - generic is an operator. - * decl.c (gfc_match_generic): Set that flag. - * resolve.c (check_generic_tbp_ambiguity): Use it in the - gfc_compare_interfaces check. - -2012-01-31 Tobias Burnus - - PR fortran/52029 - * class.c (gfc_find_derived_vtab): Mark _copy function as pure. - -2012-01-31 Tobias Burnus - - PR fortran/52013 - * class.c (get_unique_hashed_string): Adapt trim length. - (gfc_build_class_symbol) Encode also corank in the container name. - -2012-01-31 Paul Thomas - - PR fortran/52012 - * trans-expr.c (fcncall_realloc_result): Correct calculation of - result offset. - -2012-01-29 Janne Blomqvist - - * module.c (pointer_info): Make true_name and module pointers - rather than arrays, order pointers before other fields. - (free_pi_tree): free true_name and module as well. - (mio_read_string): Rename to read_string. - (mio_write_string): Remove. - (load_commons): Use read_string. - (read_module): Use read_string rather than mio_internal_string. - (write_blank_common): Call write_atom directly. - (write_symbol): Likewise. - -2012-01-29 Tobias Burnus - - PR fortran/41600 - * expr.c (gfc_default_initializer): Convert the values if - the type does not match. - -2012-01-29 Tobias Burnus - - PR fortran/51972 - * trans-array.c (structure_alloc_comps): Fix assignment of - polymorphic components (polymorphic deep copying). - -2012-01-29 Janne Blomqvist - - PR fortran/51808 - * decl.c (set_binding_label): Make binding_label argument const. - (curr_binding_label): Constify. - * gfortran.h (gfc_symbol): Constify binding_label. - (gfc_common_head): Likewise. - (get_iso_c_sym): Likewise. - * match.c (gfc_match_name_C): Constify buffer argument. - * match.h (gfc_match_name_C): Likewise. - * resolve.c (set_name_and_label): Constify binding_label argument. - (gfc_iso_c_sub_interface): Constify binding_label variable. - * symbol.c (get_iso_c_sym): Constify binding_label argument. - -2012-01-29 Janne Blomqvist - - PR fortran/51808 - * decl.c (set_binding_label): Move prototype from match.h to here. - (curr_binding_label): Make a pointer rather than static array. - (build_sym): Check sym->binding_label pointer rather than array, - update set_binding_label call, handle curr_binding_label changes. - (set_binding_label): Handle new curr_binding_label, dest_label - double ptr, and sym->binding_label. - (verify_bind_c_sym): Handle sym->binding_label being a pointer. - (set_verify_bind_c_sym): Check sym->binding_label pointer rather - than array, update set_binding_label call. - (gfc_match_bind_c_stmt): Handle curr_binding_label change. - (match_procedure_decl): Update set_binding_label call. - (gfc_match_bind_c): Change binding_label to pointer, update - gfc_match_name_C call. - * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro. - (gfc_symbol): Make binding_label a pointer. - (gfc_common_head): Likewise. - * match.c (gfc_match_name_C): Heap allocate bind(C) name. - * match.h (gfc_match_name_C): Change prototype argument. - (set_binding_label): Move prototype to decl.c. - * module.c (struct pointer_info): Make binding_label a pointer. - (free_pi_tree): Free unused binding_label. - (mio_read_string): New function. - (mio_write_string): New function. - (load_commons): Redo reading of binding_label. - (read_module): Likewise. - (write_common_0): Change to write empty string instead of name if - no binding_label. - (write_blank_common): Write empty string for binding label. - (write_symbol): Change to write empty string instead of name if no - binding_label. - * resolve.c (gfc_iso_c_func_interface): Don't set binding_label. - (set_name_and_label): Make binding_label double pointer, use - asprintf. - (gfc_iso_c_sub_interface): Make binding_label a pointer. - (resolve_bind_c_comms): Handle cases if - gfc_common_head->binding_label is NULL. - (gfc_verify_binding_labels): sym->binding_label is a pointer. - * symbol.c (gfc_new_symbol): Rely on XCNEW zero init for - binding_label. - (gen_special_c_interop_ptr): Don't set binding label. - (generate_isocbinding_symbol): Insert binding_label into symbol - table. - (get_iso_c_sym): Use pointer assignment instead of strcpy. - * trans-common.c (gfc_sym_mangled_common_id): Handle - com->binding_label being a pointer. - * trans-decl.c (gfc_sym_mangled_identifier): Handle - sym->binding_label being a pointer. - (gfc_sym_mangled_function_id): Likewise. - -2012-01-29 Tobias Burnus - - PR fortran/52038 - * resolve.c (symbol_as): Remove unused, accidentally - added function. - -2012-01-28 Tobias Burnus - - PR fortran/51972 - * trans-stmt.c (gfc_trans_allocate): Properly check whether - we have a BT_CLASS which needs to be memset. - -2012-01-27 Tobias Burnus - - PR fortran/52022 - * trans-expr.c (gfc_conv_procedure_call): Fix passing - of functions, which return allocatables. - -2012-01-27 Tobias Burnus - - PR fortran/52016 - * resolve.c (resolve_formal_arglist): Fix elemental - constraint checks for polymorphic dummies also for - pointers. - -2012-01-27 Tobias Burnus - - PR fortran/51970 - PR fortran/51977 - * primary.c (gfc_match_varspec. gfc_match_rvalue): Set - handle array spec for BT_CLASS. - * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym) - * frontend-passes.c (create_var): Ditto. - * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto. - * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer - instead of attr.pointer. - (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS. - * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert. - * trans-stmt.c (trans_associate_var): Ask for the descriptor. - -2012-01-27 Tobias Burnus - - PR fortran/51953 - * match.c (gfc_match_allocate): Allow more than allocate - object with SOURCE=. - -2012-01-27 Tobias Burnus - - PR fortran/52016 - * resolve.c (resolve_formal_arglist): Fix elemental - constraint checks for polymorphic dummies. - -2012-01-27 Paul Thomas - Tobias Burnus - - PR fortran/48705 - PR fortran/51870 - PR fortran/51943 - PR fortran/51946 - * trans-array.c (gfc_array_init_size): Add two extra arguments - to convey the dynamic element size of a calls object and to - return the number of elements that have been allocated. - (gfc_array_allocate): Add the same arguments and use them to - call gfc_array_init_size. Before the allocation dereference - the data pointer, if necessary. Set the allocated array to zero - if the class element size or expr3 are non-null. - * trans-expr.c (gfc_conv_class_to_class): Give this function - global scope. - (get_class_array_ref): New function. - (gfc_copy_class_to_class): New function. - * trans-array.h : Update prototype for gfc_array_allocate. - * trans-stmt.c (gfc_trans_allocate): For non-variable class - STATUS expressions extract the class object and the dynamic - element size. Use the latter to call gfc_array_allocate and - the former for setting the vptr and, via - gfc_copy_class_to_clasfc_cs, to copy to the allocated data. - * trans.h : Prototypes for gfc_get_class_array_ref, - gfc_copy_class_to_class and gfc_conv_class_to_class. - -2012-01-25 Tobias Burnus - - * resolve.c (symbol_as): Check also for attr.class_ok. - -2012-01-25 Tobias Burnus - - PR fortran/51995 - * class.c (gfc_build_class_symbol): Fix invalid freeing - issue with fclass->f2k_derived. - -2012-01-25 Tobias Burnus - - PR fortran/51995 - * class.c (gfc_build_class_symbol): Ensure that - fclass->f2k_derived is set. - -2012-01-25 Tobias Burnus - - PR fortran/51966 - * resolve.c (resolve_structure_cons): Only create an - array constructors for nonscalars. - -2012-01-23 Tobias Burnus - - PR fortran/51948 - * check.c (variable_check): Fix checking for - variables and deeply nested BLOCKs. - -2012-01-21 Tobias Burnus - Steven G. Kargl - - PR fortran/50556 - * symbol.c (check_conflict): namelist-group-name cannot have the SAVE - attribute. - -2012-01-21 Tobias Burnus - - PR fortran/51913 - * interface.c (compare_parameter): Fix CLASS comparison. - -2012-01-20 Tobias Burnus - Janus Weil - - PR fortran/51056 - * module.c (load_needed, read_module): Don't mark __vtab etc. - as use_only. - -2012-01-19 Tobias Burnus - - PR fortran/51904 - * expr.c (gfc_build_intrinsic_call): Also set the symtree. - -2012-01-18 Paul Thomas - - PR fortran/51634 - * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable - components of temporary class arguments. - -2012-01-17 Tobias Burnus - Janne Blomqvist - - PR fortran/51869 - * trans-expr.c (alloc_scalar_allocatable_for_assignment): Nullify - LHS after allocation, if it has allocatable components. - * f95-lang.c (gfc_init_builtin_functions): Add BUILT_IN_CALLOC. - -2012-01-16 Mikael Morin - Tobias Burnus - - PR fortran/50981 - * trans-array.c (gfc_walk_elemental_function_args): Fix - passing of deallocated allocatables/pointers as absent argument. - -2012-01-16 Tobias Burnus - - PR fortran/51809 - * class.c (gfc_find_derived_vtab): Mark __vtab and - __def_init as FL_VARIABLE not as FL_PARAMETER. - * expr.c (gfc_simplify_expr): Remove special - handling of __vtab. - * resolve.c (resolve_values): Ditto. - * trans-decl.c (gfc_get_symbol_decl): Mark __vtab - and __def_init as TREE_READONLY. - -2012-01-16 Zydrunas Gimbutas - Andreas Kloeckner - Steven G. Kargl - - PR fortran/48426 - * gfortran.h (gfc_option_t): Add members flag_*_kind to store kind. - * lang.opt: Add options -freal-4-real-8, -freal-4-real-10, - -freal-4-real-16, -freal-8-real-4, -freal-8-real-10, -freal-8-real-16 - and -finteger-4-integer-8. User-desired type conversion information. - * decl.c (gfc_match_old_kind_spec,kind_expr): Type conversions - in declaration parsing. - * trans-types.c (gfc_init_kinds): User-specified type conversion - checked for current backend. - * primary.c (match_integer_constant,match_real_constant): Implement - type conversion in constant parsing. - * options.c (gfc_init_options,gfc_handle_option): Translate input - options to flags in internal options data structure. - * invoke.texi: Document new options. Re-order options in Options - summary section. - -2012-01-16 Paul Thomas - - * trans-array.c (gfc_trans_create_temp_array): In the case of a - class array temporary, detect a null 'eltype' on entry and use - 'initial' to provde the class reference and so, through the - vtable, the element size for the dynamic type. - * trans-stmt.c (gfc_conv_elemental_dependencies): For class - expressions, set 'eltype' to null and pass the values via the - 'initial' expression. - -2012-01-14 Tobias Burnus - - PR fortran/51800 - * resolve.c (build_default_init_expr): Also initialize - nonconstant-length strings with -finit-character=. - -2011-01-14 Tobias Burnus - - PR fortran/51816 - * module.c (read_module): Don't make nonexisting - intrinsic operators as found. - (rename_list_remove_duplicate): New function. - (gfc_use_modules): Use it. - -2012-01-13 Paul Thomas - - PR fortran/48351 - * trans-array.c (structure_alloc_comps): Suppress interative - call to self, when current component is deallocated using - gfc_trans_dealloc_allocated. - * class.c (gfc_build_class_symbol): Copy the 'alloc_comp' - attribute from the declared type to the class structure. - -2012-01-13 Tobias Burnus - - PR fortran/51842 - * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE - instead of a signed int of size POINTER_SIZE for - gfc_index_integer_kind. - -2012-01-12 Tobias Burnus - - PR fortran/36755 - * intrinsic.texi (CHMOD): Extend a bit and remove statement - that /bin/chmod is called. - -2012-01-10 Gerald Pfeifer - - * gfortran.texi (Fortran 2003 Status): Fix grammar. - -2012-01-10 Tobias Burnus - - PR fortran/51652 - * resolve.c (resolve_allocate_expr): For non-deferred char lengths, - check whether type-spec matches declaration. - -2012-01-10 Tobias Burnus - - * resolve.c (resolve_ordinary_assign): Improve error wording. - -2012-01-09 Paul Thomas - - PR fortran/51791 - * interface.c (matching_typebound_op): Drill down through - possible parentheses to obtain base expression. Do not test for - 'class_ok' but, instead for the class structure components. - * resolve.c (resolve_ordinary_assign): Extend error message for - polymorphic assignment to advise checking for specific - subroutine. - - PR fortran/51792 - * resolve.c (resolve_typebound_function): Restore 'static' to - declaration. - -2012-01-09 Mikael Morin - - PR fortran/51758 - * trans-array.c (gfc_walk_elemental_function_args): - Skip over NULL() actual arguments. - -2012-01-09 Tobias Burnus - - * gfortran.texi: Bump copyright year. - (Fortran 2003 Status): Update polymorphism item, add - item for generic interface with DT name. - -2012-01-09 Tobias Burnus - - PR fortran/51578 - * gfortran.h (gfc_use_list): - * match.h (gfc_use_module): Rename to ... - (gfc_use_modules): ... this. - * module.c (use_locus, specified_nonint, specified_int): Remove - global variable. - (module_name): Change type to const char*, used with gfc_get_string. - (module_list): New global variable. - (free_rename): Free argument not global var. - (gfc_match_use): Save match to module_list. - (load_generic_interfaces, read_module): Don't free symtree. - (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the - type change of module_name. - (write_symbol0, write_generic): Optimize due to the type change. - (import_iso_c_binding_module, use_iso_fortran_env_module): Use - locus of rename->where. - (gfc_use_module): Take module_list as argument. - (gfc_use_modules): New function. - (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list. - * parse.c (last_was_use_stmt): New global variable. - (use_modules): New function. - (decode_specification_statement, decode_statement): Move USE match up - and call use_modules. - (next_free, next_fixed): Call use_modules. - (accept_statement): Don't call gfc_module_use. - -2012-01-06 Tobias Burnus - - * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction): - Update call to gfc_trans_dealloc_allocated. - * trans.c (gfc_allocate_using_malloc): Fix spacing. - (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to - label_finish when an error occurs. - (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib. - * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status): - Update prototype. - (gfor_fndecl_caf_deregister): New tree symbol. - * trans-expr.c (gfc_conv_procedure_call): Update - gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls. - * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated, - structure_alloc_comps, gfc_trans_deferred_array): Ditto. - (gfc_array_deallocate): Handle coarrays with -fcoarray=lib. - * trans-array.h (gfc_array_deallocate, gfc_array_allocate, - gfc_trans_dealloc_allocated): Update prototypes. - * trans-stmt.c (gfc_trans_sync): Fix indentation. - (gfc_trans_allocate): Fix errmsg padding and label handling. - (gfc_trans_deallocate): Ditto and handle -fcoarray=lib. - * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS. - * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value - to avoid other stats accidentally matching this one. - * trans-decl.c (gfor_fndecl_caf_deregister): New global var. - (gfc_build_builtin_function_decls): Fix prototype decl of caf_register - and add decl for caf_deregister. - (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib. - * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to - gfc_deallocate_with_status. - -2012-01-05 Paul Thomas - - PR fortran/PR48946 - * resolve.c (resolve_typebound_static): If the typebound - procedure is 'deferred' try to find the correct specific - procedure in the derived type operator space itself. - -2012-01-04 Mikael Morin - - PR fortran/50981 - * trans-array.h (gfc_walk_elemental_function_args): New argument. - * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call. - * trans-stmt.c (gfc_trans_call): Ditto. - * trans-array.c (gfc_walk_function_expr): Ditto. - (gfc_walk_elemental_function_args): Get the dummy argument list - if possible. Check that the dummy and the actual argument are both - optional, and set can_be_null_ref accordingly. - -2012-01-04 Mikael Morin - - PR fortran/50981 - * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref - * trans-array.c: If the reference can be NULL, save the reference - instead of the value. - * trans-expr.c (gfc_conv_expr): If we have saved a reference, - dereference it. - -2012-01-04 Mikael Morin - - * trans-expr.c (gfc_conv_expr): Move address taking... - (gfc_conv_expr_reference): ... here. - -2012-01-04 Thomas Koenig - - PR fortran/49693 - * trans-common.c (create_common): Update copyright years. Mark - variables as used to avoid warnings about unused variables in - common blocks. - -2012-01-03 Hans-Peter Nilsson - - * gfortran.h (struct gfc_expr): Add missing "struct" - qualifier for member base_expr. - -2012-01-02 Paul Thomas - - PR fortran/51529 - * trans-array.c (gfc_array_allocate): Null allocated memory of - newly allocted class arrays. - - PR fortran/46262 - PR fortran/46328 - PR fortran/51052 - * interface.c(build_compcall_for_operator): Add a type to the - expression. - * trans-expr.c (conv_base_obj_fcn_val): New function. - (gfc_conv_procedure_call): Use base_expr to detect non-variable - base objects and, ensuring that there is a temporary variable, - build up the typebound call using conv_base_obj_fcn_val. - (gfc_trans_class_assign): Pick out class procedure pointer - assignments and do the assignment with no further prcessing. - (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign - gfc_trans_class_assign): Move to top of file. - * gfortran.h : Add 'base_expr' field to gfc_expr. - * resolve.c (get_declared_from_expr): Add 'types' argument to - switch checking of derived types on or off. - (resolve_typebound_generic_call): Set the new argument. - (resolve_typebound_function, resolve_typebound_subroutine): - Set 'types' argument for get_declared_from_expr appropriately. - Identify base expression, if not a variable, in the argument - list of class valued calls. Assign it to the 'base_expr' field - of the final expression. Strip away all references after the - last class reference. - -2012-01-02 Tobias Burnus - - PR fortran/51682 - * trans-intrinsic.c (trans_this_image, trans_image_index, - trans_num_images, conv_intrinsic_cobound): Fold_convert the - caf_num_images/caf_this_images variables to the correct int kind. - -2012-01-01 Jakub Jelinek - - * gfortranspec.c (lang_specific_driver): Update copyright notice - dates. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/fortran/ChangeLog-2012 b/gcc/fortran/ChangeLog-2012 new file mode 100644 index 00000000000..5045220f038 --- /dev/null +++ b/gcc/fortran/ChangeLog-2012 @@ -0,0 +1,2798 @@ +2012-12-28 Janus Weil + + PR fortran/55692 + * check.c (gfc_check_associated): Remove a "gcc_assert (0)". + +2012-12-28 Tobias Burnus + + PR fortran/55763 + * check.c (gfc_check_move_alloc): Handle unlimited polymorphic. + * trans-intrinsic.c (conv_intrinsic_move_alloc): Ditto. + +2012-12-27 Jerry DeLisle + + PR fortran/48976 + * gfortran.h (gfc_inquire struct): Add pointer for inquire stream. + * io.c (io_tag): Add tag for inquire stream. (match_inquire_element): + Add matcher for new tag. (gfc_resolve_inquire): Resolve new tag. + * ioparm.def: Add new parameter for inquire stream. + * trans-io.c (gfc_trans_inquire): Add tranlste code for inquire + stream. + +2012-12-23 Tobias Burnus + + PR fortran/54884 + * module.c (write_symbol1_recursion): Set attr.public_use. + * interface.c (check_sym_interfaces, check_uop_interfaces, + gfc_check_interfaces): Remove attr.public_use code. + * resolve.c (resolve_function, resolve_variable, + resolve_typebound_procedure): Ditto. + +2012-12-22 Tobias Burnus + + PR fortran/55763 + * module.c (mio_component): Don't skip _hash's initializer. + * resolve.c (resolve_select_type): Add an assert. + * trans-expr.c (gfc_conv_procedure_call): Handle + INTENT(OUT) for UNLIMIT_POLY. + +2012-12-21 Richard Biener + + PR bootstrap/54659 + * gfortran.h: Do not include gmp.h here. + +2012-12-21 Paul Thomas + + PR fortran/55763 + * match.c (select_type_set_tmp): Return is a derived type or + class typespec has no derived type. + * resolve.c (resolve_fl_var_and_proc): Exclude select type + temporaries from 'pointer'. + (resolve_symbol): Exclude select type temporaries from tests + for assumed size and assumed rank. + +2012-12-20 Janus Weil + + PR fortran/36044 + * gfortran.h (gfc_isym_id): Add GFC_ISYM_BACKTRACE. + * intrinsic.c (add_subroutines): Add "backtrace". + * intrinsic.texi (BACKTRACE): Document BACKTRACE intrinsic. + +2012-12-20 Tobias Burnus + + PR fortran/54818 + * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ensure that + the string length is of type gfc_charlen_type_node. + +2012-12-19 Paul Thomas + + * array.c (resolve_array_list): Apply C4106. + * check.c (gfc_check_same_type_as): Exclude polymorphic + entities from check for extensible types. Improved error + for disallowed argument types to name the offending type. + * class.c : Update copyright date. + (gfc_class_null_initializer): Add argument for initialization + expression and deal with unlimited polymorphic typespecs. + (get_unique_type_string): Give unlimited polymorphic + entities a type string. + (gfc_intrinsic_hash_value): New function. + (gfc_build_class_symbol): Incorporate unlimited polymorphic + entities. + (gfc_find_derived_vtab): Deal with unlimited polymorphic + entities. + (gfc_find_intrinsic_vtab): New function. + * decl.c (gfc_match_decl_type_spec): Match typespec for + unlimited polymorphic type. + (gfc_match_data_decl): Skip to 'ok' if unlimited polymorphic. + expr.c (gfc_check_pointer_assign): Apply C717. If unlimited + polymorphic lvalue, find rvalue vtable for all typespecs, + except unlimited polymorphic expressions. + (gfc_check_vardef_context): Handle unlimited polymorphic + entities. + * gfortran.h : Add unlimited polymorphic attribute. Add + second arg to gfc_class_null_initializer primitive and + primitive for gfc_find_intrinsic_vtab. Add UNLIMITED_POLY + to detect unlimited polymorphic expressions. + * interface.c (gfc_compare_types): If expr1 is unlimited + polymorphic, always return 1. If expr2 is unlimited polymorphic + enforce C717. + (gfc_compare_interfaces): Skip past conditions that do not + apply for unlimited polymorphic entities. + (compare_parameter): Make sure that an unlimited polymorphic, + allocatable or pointer, formal argument is matched by an + unlimited polymorphic actual argument. + (compare_actual_formal): Ensure that an intrinsic vtable exists + to match an unlimited polymorphic formal argument. + * match.c (gfc_match_allocate): Type kind parameter does not + need to match an unlimited polymorphic allocate-object. + (alloc_opt_list): An unlimited polymorphic allocate-object + requires a typespec or a SOURCE tag. + (select_intrinsic_set_tmp): New function. + (select_type_set_tmp): Call new function. If it returns NULL, + build a derived type or class temporary instead. + (gfc_match_type_is): Remove restriction to derived types only. + Bind(C) or sequence derived types not permitted. + * misc (gfc_typename): Printed CLASS(*) for unlimited + polymorphism. + * module.c : Add AB_UNLIMITED_POLY to pass unlimited + polymorphic attribute to and from modules. + * resolve.c (resolve_common_vars): Unlimited polymorphic + entities cannot appear in common blocks. + (resolve_deallocate_expr): Deallocate unlimited polymorphic + enities. + (resolve_allocate_expr): Likewise for allocation. Make sure + vtable exists. + (gfc_type_is_extensible): Unlimited polymorphic entities are + not extensible. + (resolve_select_type): Handle unlimited polymorphic selectors. + Ensure that length type parameters are assumed and that names + for intrinsic types are generated. + (resolve_fl_var_and_proc): Exclude select type temporaries + from test of extensibility of type. + (resolve_fl_variable): Likewise for test that assumed character + length must be a dummy or a parameter. + (resolve_fl_derived0): Return SUCCESS unconditionally for + unlimited polymorphic entities. Also, allow unlimited + polymorphic components. + (resolve_fl_derived): Return SUCCESS unconditionally for + unlimited polymorphic entities. + (resolve_symbol): Return early with unlimited polymorphic + entities. + * simplifiy.c : Update copyright year. + (gfc_simplify_extends_type_of): No simplification possible + for unlimited polymorphic arguments. + * symbol.c (gfc_use_derived): Nothing to do for unlimited + polymorphic "derived type". + (gfc_type_compatible): Return unity if ts1 is unlimited + polymorphic. + * trans-decl.c (create_function_arglist) Formal arguments + without a character length should be treated in the same way + as passed lengths. + (gfc_trans_deferred_vars): Nullify the vptr of unlimited + polymorphic pointers. Avoid unlimited polymorphic entities + triggering gcc_unreachable. + * trans-expr.c (gfc_conv_intrinsic_to_class): New function. + (gfc_trans_class_init_assign): Make indirect reference of + src.expr. + (gfc_trans_class_assign): Expression NULL of unknown type + should set NULL vptr on lhs. Treat C717 cases where lhs is + a derived type and the rhs is unlimited polymorphic. + (gfc_conv_procedure_call): Handle the conversion of a non-class + actual argument to match an unlimited polymorphic formal + argument. Suppress the passing of a character string length + in this case. Make sure that calls to the character __copy + function have two character string length arguments. + (gfc_conv_initializer): Pass the initialization expression to + gfc_class_null_initializer. + (gfc_trans_subcomponent_assign): Ditto. + (gfc_conv_structure): Move handling of _size component. + trans-intrinsic.c: (gfc_conv_same_type_as): Handle conditions + where unlimited polymorphic arguments have null vptr. + * trans-stmt.c (trans_associate_var): Correctly treat array + temporaries associated with unlimited polymorphic selectors. + Recover the overwritten dtype for the descriptor. Use the _size + field of the vptr for character string lengths. + (gfc_trans_allocate): Cope with unlimited polymorphic allocate + objects; especially with character source tags. + (reset_vptr): New function. + (gfc_trans_deallocate): Call it. + * trans-types.c (gfc_get_derived_type): Detect unlimited + polymorphic types and deal with cases where the derived type of + components is null. + * trans.c : Update copyright year. + (trans_code): Call gfc_trans_class_assign for C717 cases where + the lhs is not unlimited polymorphic. + +2012-12-19 Tobias Burnus + + PR fortran/55733 + * trans-decl.c (gfc_create_string_length): Avoid setting + TREE_STATIC for automatic variables with -fno-automatic. + +2012-12-19 Tobias Burnus + Jakub Jelinek + Janus Weil + + PR fortran/55636 + PR fortran/55733 + * gfortran.h (GFC_PREFIX): Define. + * trans-decl.c (gfc_create_string_length): For VAR_DECLs that + will be TREE_STATIC, use GFC_PREFIX to mangle the names. Handle + -fno-automatic + (gfc_trans_deferred_vars): Don't free variables SAVEd via + -fno-automatic. + +2012-12-16 Tobias Burnus + + PR fortran/55197 + * module.c (gfc_use_module): Free rename list only for + internally generated intrinsic modules. + +2012-12-16 Tobias Burnus + + * trans-intrinsic.c (conv_intrinsic_move_alloc): Set dynamic + type of the FROM variable to the declared type. + +2012-12-16 Tobias Burnus + + PR fortran/55638 + * resolve.c (resolve_formal_arglist): Allow VALUE without + INTENT for ELEMENTAL procedures. + +2012-12-10 Janus Weil + + PR fortran/52909 + * trans-decl.c (get_proc_pointer_decl): Apply name mangling. + +2012-12-09 Tobias Burnus + + * trans-array.c (structure_alloc_comps): Use NULL_TREE in the + call to gfc_deallocate_scalar_with_status. + * trans-decl.c (gfc_trans_deferred_vars): Pass symbol. + * trans-stmt.c (gfc_trans_deallocate): Pass polymorphic variable. + +2012-12-09 Thomas Koenig + + PR fortran/55593 + * frontend-passes.c (doloop_code): Use resolved_sym + instead of n.sym->formal for formal argument list + to get the correct version for all generic subroutines. + +2012-12-05 Tobias Burnus + + * resolve.c (generate_component_assignments): Fix memleak. + +2012-12-03 Janus Weil + + PR fortran/55548 + * intrinsic.texi (SYSTEM_CLOCK): Update documentation of SYSTEM_CLOCK. + +2012-12-03 Tobias Burnus + Janus Weil + + PR fortran/37336 + * class.c (gfc_is_finalizable): New function. + * gfortran.h (gfc_is_finalizable): Its prototype. + * module.c (mio_component): Read initializer for vtype's _final. + * resolve.c (resolve_fl_derived0): Call gfc_is_finalizable. + * trans-expr.c (gfc_vtable_final_get): New function. + (conv_parent_component_references): Fix comment. + (gfc_conv_variable): Fix for scalar coarray components. + * trans-intrinsic.c (conv_intrinsic_move_alloc): For BT_CLASS, + pass the BT_CLASS type and not the declared type to + gfc_deallocate_scalar_with_status. + * trans.h (gfc_vtable_final_get): New prototype. + +2012-12-03 Tobias Burnus + + PR fortran/55475 + * scanner.c (gfc_next_char_literal): Fix setting locus + to free_line_length for the error message. + * error.c (show_locus): Fix potential out-of-bounds + read. + +2012-12-03 Tobias Burnus + + PR fortran/37336 + * class.c (finalizer_insert_packed_call): New static function. + (finalize_component, generate_finalization_wrapper): + Fix coarray handling and packing. + +2012-12-02 Paul Thomas + + * resolve.c (resolve_allocate_deallocate, + resolve_typebound_intrinsic_op): Recover revisions 193568 and + 193778, which were accidentally reverted by the previous patch. + +2012-12-01 Alessandro Fanfarillo + Paul Thomas + + PR fortran/46897 + * gfortran.h : Add bit field 'defined_assign_comp' to + symbol_attribute structure. + Add primitive for gfc_add_full_array_ref. + * expr.c (gfc_add_full_array_ref): New function. + (gfc_lval_expr_from_sym): Call new function. + * resolve.c (add_comp_ref): New function. + (build_assignment): New function. + (get_temp_from_expr): New function + (add_code_to_chain): New function + (generate_component_assignments): New function that calls all + the above new functions. + (resolve_code): Call generate_component_assignments. + (check_defined_assignments): New function. + (resolve_fl_derived0): Call check_defined_assignments. + (gfc_resolve): Reset component_assignment_level in case it is + left in a bad state by errors. + + + * resolve.c (is_sym_host_assoc, resolve_procedure_interface, + resolve_contained_fntype, resolve_procedure_expression, + resolve_elemental_actual, resolve_global_procedure, + is_scalar_expr_ptr, gfc_iso_c_func_interface, resolve_function, + set_name_and_label, gfc_iso_c_sub_interface, + resolve_specific_s0, resolve_operator, compare_bound_mpz_t, + gfc_resolve_character_operator, resolve_typebound_function, + gfc_resolve_expr, forall_index, remove_last_array_ref, + conformable_arrays, resolve_allocate_expr, + resolve_allocate_deallocate, resolve_select_type, + resolve_transfer, resolve_where, + gfc_resolve_where_code_in_forall, gfc_resolve_forall_body, + gfc_count_forall_iterators, resolve_values, + resolve_bind_c_comms, resolve_bind_c_derived_types, + gfc_verify_binding_labels, apply_default_init, + build_default_init_expr, apply_default_init_local, + resolve_fl_var_and_proc, resolve_fl_procedure, + gfc_resolve_finalizers, check_generic_tbp_ambiguity, + resolve_typebound_intrinsic_op, resolve_typebound_procedure, + resolve_typebound_procedures, ensure_not_abstract, + resolve_fl_derived0, resolve_fl_parameter, resolve_symbol, + resolve_equivalence_derived): Remove trailing white space. + * gfortran.h : Remove trailing white space. + +2012-11-28 Tobias Burnus + + PR fortran/52161 + * trans-stmt.c (gfc_trans_sync): Fix bound checking + for -fcoarray=lib. + +2012-11-28 Tobias Burnus + + PR fortran/52161 + * trans-stmt.c (gfc_trans_sync): Fix bound checking. + +2012-11-27 Tobias Burnus + + PR fortran/55476 + * expr.c (gfc_check_pointer_assign): Fix check + pointer-might-outlive-target check for host_assoc. + +2012-11-26 Eric Botcazou + + * trans-decl.c (gfc_finish_var_decl): Do not set DECL_RESTRICTED_P. + +2012-11-26 Janus Weil + + PR fortran/54997 + * decl.c (match_procedure_decl): Don't set 'referenced' attribute + for PROCEDURE declarations. + * parse.c (gfc_fixup_sibling_symbols,parse_contained): Don't set + 'referenced' attribute for all contained procedures. + * trans-decl.c (gfc_get_symbol_decl): Allow for unreferenced procedures. + (build_function_decl): Set TREE_USED for referenced procedures. + +2012-11-26 Janus Weil + + PR fortran/54881 + * match.c (select_derived_set_tmp,select_class_set_tmp): Removed and + unified into ... + (select_type_set_tmp): ... this one. Set POINTER argument according to + selector. + * trans-intrinsic.c (gfc_conv_associated): Use 'gfc_class_data_get' + instead of 'gfc_add_data_component'. + +2012-11-25 Thomas Koenig + + PR fortran/30146 + * frontend-passes.c (doloop_warn): New function. + (doloop_list): New static variable. + (doloop_size): New static variable. + (doloop_level): New static variable. + (gfc_run_passes): Call doloop_warn. + (doloop_code): New function. + (doloop_function): New function. + (gfc_code_walker): Keep track of DO level. + +2012-11-24 Thomas Koenig + + PR fortran/55314 + * resolve.c (resolve_allocate_deallocate): Compare all + subscripts when deciding if to reject a (de)allocate + statement. + +2012-11-21 Janus Weil + + PR fortran/55352 + * trans-decl.c (generate_local_decl): Don't warn for explicitly imported + but unused module variables which are in a namelist or common block. + +2012-11-20 Diego Novillo + Jakub Jelinek + + * trans-openmp.c: Replace all vec() initializers + with vNULL. + +2012-11-17 Diego Novillo + + Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) + + * frontend-passes.c: Use new vec API in vec.h. + * trans-array.c: Likewise. + * trans-common.c: Likewise. + * trans-decl.c: Likewise. + * trans-expr.c: Likewise. + * trans-intrinsic.c: Likewise. + * trans-openmp.c: Likewise. + * trans-stmt.c: Likewise. + * trans-types.c: Likewise. + * trans.h: Likewise. + +2012-11-17 Jakub Jelinek + + PR fortran/55341 + * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Convert last + argument to memcpy to size_type_node type. + * trans-stmt.c (gfc_conv_elemental_dependencies): Likewise. + * trasn-array.c (duplicate_allocatable): Likewise. + +2012-11-16 Janus Weil + + PR fortran/55297 + * resolve.c (resolve_typebound_intrinsic_op): Only add typebound + operators to the operator list in the namespace of the derived type. + + +2012-11-12 Jan Hubicka + + * f95-lang.c (ATTR_NOTHROW_LEAF_MALLOC_LIST): New macro. + (gfc_define_builtin): Use set_call_expr_flags. + (gfc_init_builtin_functions): Update. + +2012-11-12 Tobias Burnus + + PR fortran/55272 + * module.c (mio_array_spec): Correctly handle coarray + scalars. + +2012-11-07 Tobias Schlüter + + PR fortran/51727 + * module.c (sorted_pointer_info): New. + (gfc_get_sorted_pointer_info): New. + (free_sorted_pointer_info_tree): New. + (compare_sorted_pointer_info): New. + (find_symbols_to_write): New. + (write_symbol1_recursion): New. + (write_symbol1): Collect symbols that need writing, output in order. + (write_generic): Traverse tree in order. + +2012-11-07 Manuel López-Ibáñez + + PR c/53063 + * options.c (set_Wall): Do not set warn_switch here. + +2012-11-06 Janus Weil + + PR fortran/54917 + * target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr): + Handle BT_CLASS. + * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Add support for + polymorphic arguments. + +2012-11-04 Janus Weil + + PR fortran/55199 + * primary.c (gfc_match_varspec): Clear typespec if it cannot be + determined at this point. + +2012-10-31 Janus Weil + + PR fortran/53718 + * trans.h (GFC_DECL_PUSH_TOPLEVEL): Removed. + * trans-decl.c (gfc_get_symbol_decl,gfc_generate_function_code): Remove + GFC_DECL_PUSH_TOPLEVEL. + (build_function_decl): Do not push __copy procedure to toplevel. + +2012-10-31 Tobias Burnus + + PR fortran/55134 + * trans-array.c (gfc_conv_array_parameter): Regard AS_DEFERRED as + array with descriptor. + +2012-10-28 Tobias Burnus + + PR fortran/54958 + * gfortran.h (gfc_resolve_iterator_expr, + gfc_check_vardef_context): Update prototype. + * expr.c (gfc_check_vardef_context): Add own_scope + argument and honour it. + * resolve.c (gfc_resolve_iterator_expr): Add own_scope + argument and honour it. + (resolve_deallocate_expr, resolve_allocate_expr, + resolve_data_variables, resolve_transfer + resolve_lock_unlock, resolve_code): Update calls. + * array.c (resolve_array_list): Ditto. + * check.c (gfc_check_atomic_def, gfc_check_atomic_ref): Ditto. + * interface.c (compare_actual_formal): Ditto. + * intrinsic.c (check_arglist): Ditto. + * io.c (resolve_tag, gfc_resolve_dt, gfc_resolve_inquire): Ditto. + +2012-10-27 Thomas Koenig + + * trans.c (gfc_allocate_allocatable): Revert accidental + commit. + +2012-10-24 Janus Weil + + PR fortran/55037 + * trans-expr.c (gfc_conv_procedure_call): Move a piece of code and + remove an assert. + +2012-10-21 Tobias Burnus + + PR fortran/54725 + * Make-lang.in (CFLAGS-cpp.o): Use TARGET_SYSTEM_ROOT_DEFINE. + * cpp.o (gfc_cpp_init_options): Use it for + setting gfc_cpp_option.sysroot. + +2012-10-21 Thomas König + + PR fortran/54465 + * lang.opt (Wextra): Add. + * invoke.texi: Document that -Wc-binding-type, -Wconversion + and -Wline-truncation are implied by -Wall. Document that + -Wcompare-reals is implied by -Wextra. Document -Wextra. + * options.c (set_Wextra): New function. + (gfc_handle_option): Handle -Wextra. + +2012-10-19 Janus Weil + + PR fortran/54224 + * trans-expr.c (conv_function_val): Set TREE_USED. + +2012-10-18 Tobias Burnus + + PR fortran/54884 + * resolve.c (specification_expr): Change to bool. + (resolve_formal_arglist, resolve_symbol): Set + specification_expr to true before resolving the array spec. + (resolve_variable, resolve_charlen, resolve_fl_variable): + Properly reset specification_expr. + (resolve_function): Set public_use when used in + a specification expr. + +2012-10-16 Tobias Burnus + + PR fortran/50981 + PR fortran/54618 + * trans.h (gfc_conv_derived_to_class, gfc_conv_class_to_class): + Update prototype. + * trans-stmt.c (trans_associate_var,gfc_trans_allocate): Update + calls to those functions. + * trans-expr.c (gfc_conv_derived_to_class, gfc_conv_class_to_class, + gfc_conv_expr_present): Handle absent polymorphic arguments. + (class_scalar_coarray_to_class): New function. + (gfc_conv_procedure_call): Update calls. + +2012-10-12 Janus Weil + + PR fortran/40453 + * interface.c (check_dummy_characteristics): Recursively check dummy + procedures. + +2012-10-11 Janus Weil + + PR fortran/54784 + * trans-stmt.c (gfc_trans_allocate): Correctly determine the reference + to the _data component for polymorphic allocation with SOURCE. + +2012-10-06 Janus Weil + + PR fortran/54832 + * resolve.c (resolve_fl_derived0): Correctly copy the 'class_ok' + attribute for proc-ptr components with RESULT variable. + +2012-10-06 Janus Weil + + PR fortran/45521 + * interface.c (generic_correspondence): Implement additional + distinguishability criteria of F08. + (compare_actual_formal): Reject data object as actual argument for + procedure formal argument. + +2012-10-04 Tobias Burnus + + * expr.c (scalarize_intrinsic_call): Plug memory leak. + * frontend-passes.c (gcc_assert): Extend assert. + * interface.c (gfc_compare_derived_types): Fix comparison. + (gfc_check_operator_interface): Move up to make this error + message reachable. + (get_sym_storage_size): Remove always-true checks. + * io.c (format_lex): Add comment. + (gfc_free_wait): Free memory. + * match.c (gfc_match_select_type): Ditto. + * matchexpr.c (match_level_3): Ditto. + * primary.c (match_string_constant): Ditto. + (match_actual_arg): Check return value. + * resolve.c (gfc_resolve_substring_charlen, + resolve_typebound_generic_call, resolve_typebound_function, + resolve_typebound_subroutine): Free memory. + * trans-types.c (gfc_get_derived_type): Remove always-true check. + +2012-10-02 Janus Weil + + PR fortran/54778 + * interface.c (matching_typebound_op): Check for 'class_ok' attribute. + +2012-09-30 Janus Weil + + PR fortran/54667 + * intrinsic.texi (C_F_POINTER): Fix description. + * resolve.c (gfc_iso_c_sub_interface): Add a check for FPTR argument + of C_F_POINTER. Modify two error messages. Cleanup. + +2012-09-24 Tobias Burnus + + PR fortran/54618 + PR fortran/54690 + * trans-expr.c (gfc_conv_procedure_call): Fix INTENT(OUT) + handling for allocatable BT_CLASS. + +2012-09-24 Lawrence Crowl + + * trans-expr.c (gfc_conv_cst_int_power): Change to new double_int API. + * target-memory.c (gfc_interpret_logical): Likewise. + +2012-09-23 Tobias Burnus + + * parse.c (parse_derived): Don't set attr.alloc_comp + for pointer components with allocatable subcomps. + + PR fortran/54599 + * resolve.c (resolve_fl_namelist): Remove superfluous + NULL check. + * simplify.c (simplify_min_max): Remove unreachable code. + * trans-array.c (gfc_trans_create_temp_array): Change + a condition into an assert. + + PR fortran/54618 + * trans-expr.c (gfc_trans_class_init_assign): Guard + re-setting of the _data by gfc_conv_expr_present. + (gfc_conv_procedure_call): Fix INTENT(OUT) handling + for allocatable BT_CLASS. + +2012-09-22 Thomas König + + PR fortran/54599 + * dependency.c (gfc_dep_compare_expr): Clarify logic, + remove dead code. + +2012-09-20 Tobias Burnus + + PR fortran/54599 + * cpp.c (print_line): Properly handle extern C. + +2012-09-20 Martin Jambor + + * trans-decl.c (gfc_get_extern_function_decl): Push NULL cfun. Do not + set and restore current_function_decl. + (gfc_init_coarray_decl): Do not set and restore current_function_decl. + +2012-09-17 Tobias Burnus + + PR fortran/54608 + * simplify.c (gfc_simplify_scan, gfc_simplify_verify): + Fix handling of BACK=variable. + +2012-09-17 Janus Weil + + PR fortran/54285 + * expr.c (gfc_check_pointer_assign): Correctly handle procedure pointers + as function results. + * primary.c (gfc_match_varspec): Allow to call a PPC with proc-ptr + result. + +2012-09-17 Tobias Burnus + + PR fortran/54603 + * trans-expr.c (gfc_trans_subcomponent_assign): Handle + proc-pointer components. + +2012-09-17 Tobias Burnus + + PR fortran/54599 + * error.c (error_print): Move increment out of the assert. + * interface.c (gfc_compare_derived_types): Add assert. + (get_expr_storage_size): Remove always-true logical condition. + * resolve.c (resolve_allocate_expr): Fix looping logic. + * target-memory.c (gfc_target_expr_size): Add assert. + +2012-09-16 Janus Weil + + PR fortran/54594 + * resolve.c (get_checked_tb_operator_target): Add a reference to the + relevant quote from the F08 standard. + +2012-09-16 Janus Weil + + PR fortran/54594 + * interface.c (compare_type_rank): Handle CLASS arrays. + +2012-09-16 Janus Weil + + PR fortran/54387 + * expr.c (gfc_check_pointer_assign): Check for result of embracing + function. + +2012-09-16 Tobias Burnus + + * trans-decl.c (gfc_generate_function_code): Fix + gfc_option.coarray check. + * trans-stmt.c (compute_inner_temp_size): Fix handling + of gfc_option.rtcheck. + +2012-09-16 Mikael Morin + + * symbol.c (gfc_undo_symbols): Correctly undo namelists. + +2012-09-15 Tobias Burnus + + * trans-io.c (gfc_trans_transfer): Add an assert. + +2012-09-15 Tobias Burnus + + * arith.c (arith_power): Call gfc_free_expr in case of error. + * array.c (gfc_match_array_constructor): Initialize variable. + (gfc_resolve_character_array_constructor): Remove superfluous check. + (gfc_array_dimen_size): Add assert. + * check.c (numeric_check): Fix implicit typing. + * class.c (gfc_build_class_symbol): Add assert. + (finalize_component): Free memory. + * dump-parse-tree.c (show_namespace): Add assert. + * trans-io.c (transfer_namelist_element, transfer_expr): Avoid + memory leakage. + (gfc_trans_transfer): Add assert. + * trans.c (gfc_trans_runtime_check): Call va_end + +2012-09-15 Tobias Burnus + + * match.c (lock_unlock_statement, sync_statement): Fix potential + double freeing. + (sync_statement): Remove unreachable code. + * simplify.c (gfc_simplify_bessel_n2): Avoid double freeing. + (gfc_simplify_repeat): Remove bogus code. + * target-memory.h (gfc_target_encode_expr): Update prototype. + * target-memory.c (gfc_target_encode_expr, encode_array, + encode_derived): Return unsigned HOST_WIDE_INT. + (gfc_target_interpret_expr): Add assert. + (gfc_merge_initializers): Fix "== 0" check for mpz_t. + * symbol.c (gfc_get_typebound_proc): Add assert. + (gfc_merge_initializers): Remove unreachable check. + +2012-09-13 Tobias Burnus + + PR fortran/54556 + * resolve.c (resolve_formal_arglist): Allow VALUE arguments + with implicit_pure. + (gfc_impure_variable): Don't check gfc_pure such that the + function also works for gfc_implicit_pure procedures. + +2012-09-12 Tobias Burnus + + PR fortran/54225 + PR fortran/53306 + * array.c (match_subscript, gfc_match_array_ref): Fix + diagnostic of coarray's '*'. + +2012-09-07 Mikael Morin + + PR fortran/54208 + * simplify.c (simplify_bound_dim): Resolve array spec before + proceeding with simplification. + +2012-09-06 Tobias Burnus + + PR fortran/54463 + * trans-intrinsic.c (gfc_conv_intrinsic_funcall): Fix matmul + call to BLAS if the default-kind has been promoted. + +2012-09-05 Tobias Burnus + + PR fortran/54462 + * symbol.c (gfc_undo_symbols): Avoid NULL pointer dereference. + +2012-09-04 Janus Weil + + PR fortran/54435 + PR fortran/54443 + * match.c (gfc_match_select_type): Make sure to only access CLASS_DATA + for BT_CLASS. + +2012-09-03 Tobias Burnus + + PR fortran/54467 + * class.c (gfc_find_derived_vtab): Fix disabling of _final + by continuing to generate normal type-bound procedures. + +2012-09-03 Tobias Burnus + + * class.c (gfc_find_derived_vtab): Disable ABI-breaking + generation of the "_final" subroutine for now. + +2012-09-03 Tobias Burnus + + * class.c (finalize_component): Fixes to the comment. + +2012-09-03 Alessandro Fanfarillo + Tobias Burnus + + PR fortran/37336 + * gfortran.h (symbol_attribute): Add artificial. + * module.c (mio_symbol_attribute): Handle attr.artificial + * class.c (gfc_build_class_symbol): Defer creation of the vtab + if the DT has finalizers, mark generated symbols as + attr.artificial. + (has_finalizer_component, finalize_component, + finalization_scalarizer, generate_finalization_wrapper): + New static functions. + (gfc_find_derived_vtab): Add _final component and call + generate_finalization_wrapper. + * dump-parse-tree.c (show_f2k_derived): Use resolved + proc_tree->n.sym rather than unresolved proc_sym. + (show_attr): Handle attr.artificial. + * resolve.c (gfc_resolve_finalizers): Ensure that the vtab exists. + (resolve_fl_derived): Resolve finalizers before + generating the vtab. + (resolve_symbol): Also allow assumed-rank arrays with CONTIGUOUS; + skip artificial symbols. + (resolve_fl_derived0): Skip artificial symbols. + +2012-09-02 Tobias Burnus + + PR fortran/54426 + * symbol.c (find_common_symtree): New function. + (gfc_undo_symbols): Use it; free common_head if needed. + +2012-08-28 Tobias Burnus + + PR fortran/54389 + * trans-decl.c (gfc_get_extern_function_decl, + build_function_decl): Don't mark impure elemental + functions as DECL_PURE_P and honour implicit_pure. + +2012-08-28 Tobias Burnus + + PR fortran/54382 + * error.c (show_locus): Avoid out of bound access. + +2012-08-28 Tobias Burnus + + PR fortran/54384 + * decl.c (match_data_constant): Add missing gfc_free_expr. + (top_val_list): Remove always-true condition. + * data.c (get_array_index, create_character_initializer): + Free temporary expressions. + (gfc_assign_data_value): Free expression when aborting. + +2012-08-28 Tobias Burnus + + PR fortran/54384 + * symbol.c (gfc_copy_formal_args): Set also sym->formal_ns. + +2012-08-27 Tobias Burnus + + PR fortran/54384 + * resolve.c (gfc_resolve_character_operator): Free temporary + variables. + * trans-expr.c (gfc_conv_statement_function): Ditto. + +2012-08-27 Tobias Burnus + + PR fortran/54384 + * dependency.c (check_section_vs_section): Use gfc_free_expr + instead of free. + * trans-intrinsic.c (conv_generic_with_optional_char_arg): Use + gfc_free_symbol instead of free. + +2012-08-27 Tobias Burnus + + PR fortran/54384 + * trans-expr.c (gfc_trans_arrayfunc_assign): Free se.ss + and loop. + +2012-08-27 Tobias Burnus + + PR fortran/41093 + * gfortran.h (gfc_common_head): Add "int refs". + * match.c (gfc_match_common): Increment refs. + * resolve.c (resolve_symbol): Only increment formal_ns->refs + if formal_ns is not sym->ns. + * symbol.c (gfc_free_symbol): Only free formal_ns if + if formal_ns is not sym->ns. Free common_block if refs is one. + (gfc_release_symbol): Release formal_ns only if the + symbol is not ENTRY of a module. + * decl.c (get_proc_name): Don't increment gfc_current_ns->refs. + * parse.c (parse_interface): Incement proc_unit->refs++ for + proc-pointer result variables. + * module.c (mio_symbol): Don't increase sym->refs for its + use in sym->formal_ns->proc_name. + +2012-08-27 Tobias Burnus + + PR fortran/54370 + * trans-stmt.c (gfc_trans_do_while): Don't change the logical + kind for negation of the condition. + +2012-08-27 Tobias Burnus + + * options.c (set_Wall): Don't set for -Wcompare-reals. + * invoke.texi (-Wall, -Wcompare-reals): -Wall no longer + implies -Wcompare-reals. + +2012-08-24 Simon Baldwin + + * lang.opt (-cpp=): Mark flag NoDWARFRecord. + +2012-08-23 Tobias Burnus + + PR fortran/54350 + * trans-array.c (free_ss_info): Free data.array.subscript. + (gfc_free_ss): No longer free data.array.subscript. + (walk_coarray): New function, moved from trans-intrinsic.c + (gfc_conv_expr_descriptor): Walk array descriptor instead + of taking passed "ss". + (get_array_ctor_all_strlen, gfc_add_loop_ss_code, + gfc_conv_array_parameter): Update call and cleanup ss handling. + * trans-array.h (gfc_conv_expr_descriptor, + gfc_conv_array_parameter): Update prototype. + * trans-expr.c (gfc_conv_derived_to_class, + conv_isocbinding_procedure, gfc_conv_procedure_call, + gfc_trans_alloc_subarray_assign, gfc_trans_subcomponent_assign, + gfc_trans_pointer_assignment, gfc_trans_arrayfunc_assign): Update + call to gfc_conv_expr_descriptor and gfc_conv_array_parameter, and + clean up. + * trans-intrinsic.c (walk_coarray): Moved to trans-array.c + (trans_this_image, trans_image_index, gfc_conv_intrinsic_rank + gfc_conv_intrinsic_bound, gfc_conv_intrinsic_cobound, + gfc_conv_intrinsic_len, gfc_conv_intrinsic_size, + gfc_conv_intrinsic_sizeof, gfc_conv_intrinsic_storage_size, + gfc_conv_intrinsic_transfer, gfc_conv_allocated, + gfc_conv_associated, gfc_conv_intrinsic_loc, + conv_intrinsic_move_alloc): Update calls. + * trans-io.c (gfc_convert_array_to_string, set_internal_unit, + gfc_trans_transfer): Ditto. + * trans-stmt.c (gfc_conv_elemental_dependencies, + gfc_trans_sync, trans_associate_var, + gfc_trans_pointer_assign_need_temp): Ditto. + +2012-08-23 Jakub Jelinek + + * trans-decl.c (trans_function_start, generate_coarray_init, + create_main_function, gfc_generate_constructors): Call + allocate_struct_function instead of init_function_start. + +2012-08-22 Tobias Burnus + + * trans-expr.c (gfc_copy_class_to_class, + gfc_trans_arrayfunc_assign): Free loop and ss data. + * trans-intrinsic.c (gfc_trans_arrayfunc_assign): Free ss data. + +2012-08-21 Tobias Burnus + + * parse.c (parse_contained): Include EXEC_END_PROCEDURE + in ns->code to make sure the gfc_code is freed. + +2012-08-20 Tobias Burnus + + PR fortran/54301 + * expr.c (gfc_check_pointer_assign): Warn when a pointer, + which is a function result, might outlive its target. + +2012-08-20 Tobias Burnus + + PR fortran/54301 + * expr.c (gfc_check_pointer_assign): Warn when the pointer + might outlive its target. + * gfortran.h (struct gfc_option_t): Add warn_target_lifetime. + * options.c (gfc_init_options, set_wall, gfc_handle_option): + handle it. + * invoke.texi (-Wtarget-lifetime): Document it. + (-Wall): Implied it. + * lang.opt (-Wtarget-lifetime): New flag. + +2012-08-19 Thomas König + + PR fortran/54298 + * gfortran.h (struct gfc_option_t): Add warn_compare_reals. + * lang.opt: Add Wcompare-reals. + * invoke.texi: Document -Wcompare-reals. + * resolve.c (resolve_operator): If -Wcompare-reals is in effect, + warn about equality/inequality comparisions for REAL and COMPLEX. + * options.c (gfc_init_options): Set warn_compare_reals. + (set_Wall): Include warn_compare_reals in Wall. + (gfc_handle_option): Handle Wcompare_reals. + +2012-08-17 Jakub Jelinek + + * array.c (gfc_match_array_ref): Fix up memset arguments. + +2012-08-16 Diego Novillo + + Revert + + PR bootstrap/54281 + * gfortran.h: Do not include gmp.h. + +2012-08-16 Diego Novillo + + PR bootstrap/54281 + * gfortran.h: Do not include gmp.h. + +2012-08-15 Janus Weil + + PR fortran/54243 + PR fortran/54244 + * resolve.c (check_typebound_baseobject): Check for class_ok attribute. + (resolve_procedure_interface,resolve_fl_derived0): Copy class_ok + attribute. + +2012-08-14 Mikael Morin + + PR fortran/47586 + * trans-expr.c (expr_is_variable): Handle regular, procedure pointer, + and typebound functions returning a data pointer. + +2012-08-14 Mikael Morin + + * decl.c (match_ppc_decl): Copy the procedure interface's symbol + as procedure interface's result. + +2012-08-14 Mikael Morin + + * trans-expr.c (gfc_trans_scalar_assign): Rename argument, + extend comment. + +2012-08-14 Mikael Morin + + * gfortran.h (gfc_get_proc_ptr_comp): New prototype. + (gfc_is_proc_ptr_comp): Update prototype. + * expr.c (gfc_get_proc_ptr_comp): New function based on the old + gfc_is_proc_ptr_comp. + (gfc_is_proc_ptr_comp): Call gfc_get_proc_ptr_comp. + (gfc_specification_expr, gfc_check_pointer_assign): Use + gfc_get_proc_ptr_comp. + * trans-array.c (gfc_walk_function_expr): Likewise. + * resolve.c (resolve_structure_cons, update_ppc_arglist, + resolve_ppc_call, resolve_expr_ppc): Likewise. + (resolve_function): Update call to gfc_is_proc_ptr_comp. + * dump-parse-tree.c (show_expr): Likewise. + * interface.c (compare_actual_formal): Likewise. + * match.c (gfc_match_pointer_assignment): Likewise. + * primary.c (gfc_match_varspec): Likewise. + * trans-io.c (gfc_trans_transfer): Likewise. + * trans-expr.c (gfc_conv_variable, conv_function_val, + conv_isocbinding_procedure, gfc_conv_procedure_call, + gfc_trans_pointer_assignment): Likewise. + (gfc_conv_procedure_call, gfc_trans_array_func_assign): + Use gfc_get_proc_ptr_comp. + +2012-08-14 Tobias Burnus + + PR fortran/40881 + * error.c (gfc_notify_std): Reset cur_error_buffer->flag flag + when the error/warning has been printed. + * gfortran.h (gfc_sl_type): Add ST_LABEL_DO_TARGET. + * match.c (gfc_match_do): Use ST_LABEL_DO_TARGET. + * parse.c (check_statement_label): Use ST_LABEL_DO_TARGET. + (parse_executable): Add obsolescence check for DATA. + * resolve.c (resolve_branch): Handle ST_LABEL_DO_TARGET. + * symbol.c (gfc_define_st_label, gfc_reference_st_label): + Add obsolescence diagnostics. + * trans-stmt.c (gfc_trans_label_assign): Handle ST_LABEL_DO_TARGET. + +2012-08-14 Tobias Burnus + + PR fortran/54234 + * check.c (gfc_check_cmplx): Add -Wconversion warning + when converting higher-precision REAL to default-precision + CMPLX without kind= parameter. + +2012-08-12 Tobias Burnus + + PR fortran/54221 + * trans-decl.c (gfc_finish_var_decl, build_function_decl): + Fix setting private module vars/procs as TREE_PUBLIC(...) = 0. + +2012-08-09 Tobias Burnus + + PR fortran/54199 + * intrinsic.c (gfc_warn_intrinsic_shadow): Better warning + for internal procedures. + +2012-08-06 Janus Weil + + PR fortran/35831 + * interface.c (check_result_characteristics): New function, which checks + the characteristics of function results. + (gfc_compare_interfaces,gfc_check_typebound_override): Call it. + +2012-08-02 Thomas König + + PR fortran/54033 + * scanner.c (add_path_to_list): New argument warn. Don't + warn if it is true. + (gfc_add_include_path): Warn if directory is missing. + (gfc_add_intrinsic_modules_path): Do not warn if directory + is missing. + * optinons.c (gfc_handle_option): Do not add directory + for intrinsic modules to normal include path. + +2012-08-03 Mikael Morin + + PR fortran/54166 + * trans-array.c (set_loop_bounds): Access specinfo using spec_dim. + +2012-08-02 Mikael Morin + + PR fortran/48820 + * trans-array.c (gfc_conv_ss_startstride): Set the intrinsic + result's lower and upper bounds according to the rank. + (set_loop_bounds): Set the loop upper bound in the intrinsic case. + +2012-08-02 Mikael Morin + + * trans-array.c (set_loop_bounds): Allow non-array-section to be + chosen using the stride and lower bound criteria. + +2012-08-02 Mikael Morin + + * trans-array.c (set_loop_bounds): Remove useless dimension check. + Don't update loopspec if it would loose the wanted stride criterion. + +2012-08-02 Mikael Morin + + * trans-array.h (gfc_conv_descriptor_rank): New prototype. + * trans-array.c (gfc_conv_descriptor_rank): New function moved and + renamed ... + * trans-intrinsic.c (get_rank_from_desc): ... from this one. + (gfc_conv_intrinsic_rank, gfc_conv_intrinsic_bound, + gfc_conv_associated): Also rename function calls. + +2012-08-02 Mikael Morin + + * iresolve.c (resolve_bound, gfc_resolve_shape): + Don't set the shape for assumed rank arrays. + * simplify.c (gfc_simplify_shape): Don't try to simplify if the + argument is assumed rank. + +2012-08-02 Mikael Morin + + * array.c (gfc_copy_array_ref): Don't copy the offset field. + * expr.c (find_array_section): Ignore the offset field. + * trans-expr.c (gfc_find_interface_mapping_to_ref): Don't apply + any interface mapping to the offset field. + * gfortran.h (struct gfc_array_ref): Remove the offset field. + +2012-08-02 Janus Weil + + PR fortran/54147 + * resolve.c (check_proc_interface): New routine for PROCEDURE interface + checks. + (resolve_procedure_interface,resolve_typebound_procedure, + resolve_fl_derived0): Call it. + +2012-08-01 Thomas König + + PR fortran/54033 + * scanner.c (add_path_to_list): Emit warning if an error occurs + for an include path, if it is not present or if it is not a + directory. Do not add the path in these cases. + +2012-07-31 Janus Weil + + PR fortran/42418 + * decl.c (match_procedure_interface): Move some checks to + 'resolve_procedure_interface'. Set flavor if appropriate. + * expr.c (gfc_check_pointer_assign): Cleanup of 'gfc_is_intrinsic'. + * intrinsic.c (gfc_is_intrinsic): Additional checks for attributes which + identify a procedure as being non-intrinsic. + * resolve.c (resolve_procedure_interface): Checks moved here from + 'match_procedure_interface'. Minor cleanup. + (resolve_formal_arglist,resolve_symbol): Cleanup of + 'resolve_procedure_interface' + (resolve_actual_arglist,is_external_proc): Cleanup of + 'gfc_is_intrinsic'. + +2012-07-31 Janus Weil + + PR fortran/54134 + * dependency.c (gfc_dep_compare_expr): Check if arguments are NULL. + +2012-07-31 Tobias Burnus + + * interface.c (gfc_procedure_use): Return gfc_try instead of void. + * gfortran.h (gfc_procedure_use): Update prototype. + * resolve.c (gfc_iso_c_func_interface): Allow noninteroperable + procedures for c_funloc for TS29113. + * (gfc_iso_c_sub_interface): Ditto for c_f_procpointer. Add + diagnostic for c_ptr vs. c_funptr for c_f_(proc)pointer. + +2012-07-30 Janus Weil + + PR fortran/51081 + * gfortran.h (gfc_resolve_intrinsic): Add prototype. + * expr.c (gfc_check_pointer_assign): Set INTRINSIC attribute if needed. + Check for invalid intrinsics. + * primary.c (gfc_match_rvalue): Check for intrinsics came too early. + Set procedure flavor if appropriate. + * resolve.c (resolve_intrinsic): Renamed to gfc_resolve_intrinsic. + (resolve_procedure_interface,resolve_procedure_expression, + resolve_function,resolve_fl_derived0,resolve_symbol): Ditto. + +2012-07-26 Mikael Morin + + PR fortran/44354 + * trans-array.c (gfc_trans_array_constructor_value): + Evaluate the iteration bounds before the inner variable shadows + the outer. + +2012-07-26 Mikael Morin + + PR fortran/44354 + * array.c (sought_symbol): New variable. + (expr_is_sought_symbol_ref, find_symbol_in_expr): New functions. + (resolve_array_list): Check for references to the induction + variable in the iteration bounds and issue a diagnostic if some + are found. + +2012-07-26 Alessandro Fanfarillo + Tobias Burnus + + * module.c (mio_array_spec): Don't read as->lower for + assumed-rank arrays. + +2012-07-25 Tobias Burnus + + * trans-types.c (gfc_real16_is_float128): Fix spelling + in a comment. + * trans.h (struct gfc_array_info): Ditto. + * gfortran.h (gfc_expr): Ditto. + * simplify.c (gfc_count): Ditto. + * trans-expr.c (gfc_copy_class_to_class, + conv_parent_component_references, + gfc_trans_pointer_assignment): Ditto. + * expr.c (check_pointer_assign): Fix diagnostic spelling. + * interface.c (compare_parameter): Ditto. + * parse.c (use_modules, parse_associate): Ditto. + * decl.c (match_char_length): Fix spelling of the + an function argument. + +2012-07-21 Tobias Burnus + + * iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter. + * intrinsic.texi (ISO_C_BINDING): Document it. + +2012-07-21 Tobias Burnus + + PR fortran/48820 + * trans-intrinsic.c (gfc_conv_intrinsic_bound): Support + lbound/ubound with dim= for assumed-rank arrays. + * array.c (gfc_set_array_spec): Reject coarrays with + assumed shape. + * decl.c (merge_array_spec): Ditto. Return gfc_try. + (match_attr_spec, match_attr_spec): Update call. + +2012-07-21 Tobias Burnus + + * resolve.c (resolve_formal_arglist): Put variable + declaration before the first assignment. + +2012-07-21 Tobias Burnus + + * trans-expr.c (gfc_conv_derived_to_class): Fix argument passed + to class_array_data_assign. + +2012-07-20 Tobias Burnus + + * decl.c (gfc_verify_c_interop_param): Allow assumed-shape + with -std=f2008ts. + +2012-07-20 Tobias Burnus + + PR fortran/48820 + * array.c (match_array_element_spec, gfc_match_array_spec, + spec_size, gfc_array_dimen_size): Add support for + assumed-rank arrays. + * check.c (dim_rank_check): Ditto. + * class.c (gfc_add_component_ref): Ditto. + (gfc_build_class_symbol): Regard assumed-rank arrays + as having GFC_MAX_DIMENSIONS. And build extra class + container for a scalar pointer class. + * decl.c (merge_array_spec): Add assert. + * dump-parse-tree.c (show_array_spec): Add support for + assumed-rank arrays. + * expr.c (gfc_is_simply_contiguous): Ditto. + * gfortran.h (array_type): Ditto. + (gfc_array_spec, gfc_expr): Add comment to "rank" field. + * interface.c (compare_type_rank, argument_rank_mismatch, + compare_parameter, gfc_procedure_use): Ditto. + (compare_actual_formal): Fix NULL() to optional-dummy + handling for polymorphic dummies. + * module.c (mio_typespec): Add support for + assumed-rank arrays. + * resolve.c (resolve_formal_arglist, resolve_actual_arglist, + resolve_elemental_actual, resolve_global_procedure, + expression_shape, resolve_variable, update_ppc_arglist, + check_typebound_baseobject, gfc_resolve_expr, + resolve_fl_var_and_proc, gfc_resolve_finalizers, + resolve_typebound_procedure, resolve_symbol): Ditto. + (assumed_type_expr_allowed): Remove static variable. + (actual_arg, first_actual_arg): New static variables. + * simplify.c (simplify_bound, gfc_simplify_range): Add + support for assumed-rank arrays. + * trans-array.c (gfc_conv_array_parameter): Ditto. + (gfc_get_descriptor_dimension): New function, which returns + the descriptor. + (gfc_conv_descriptor_dimension): Use it. + (gfc_conv_descriptor_stride_get, gfc_conv_array_parameter): + Handle GFC_ARRAY_ASSUMED_RANK_CONT and AS_ASSUMED_RANK. + * trans-array.h (gfc_get_descriptor_dimension): New prototype. + * trans-decl. (gfc_build_dummy_array_decl, + gfc_trans_deferred_vars, add_argument_checking): Add + support for assumed-rank arrays. + * trans-expr.c (gfc_conv_expr_present, gfc_conv_variable, + gfc_conv_procedure_call): Ditto. + (get_scalar_to_descriptor_type, class_array_data_assign, + conv_scalar_to_descriptor): New static functions. + (gfc_conv_derived_to_class, gfc_conv_class_to_class): Use + them. + * trans-intrinsic.c (get_rank_from_desc): New function. + (gfc_conv_intrinsic_rank, gfc_conv_associated): Use it. + * trans-types.c (gfc_array_descriptor_base_caf, + gfc_array_descriptor_base): Make space for scalar array. + (gfc_is_nodesc_array, gfc_is_nodesc_array, + gfc_build_array_type, gfc_get_array_descriptor_base): Add + support for assumed-rank arrays. + * trans.h (gfc_array_kind): Add GFC_ARRAY_ASSUMED_RANK and + GFC_ARRAY_ASSUMED_RANK_CONT. + +2012-07-19 Tobias Burnus + + * trans-expr.c (gfc_conv_procedure_call): Fix handling + of polymorphic arguments. + * resolve.c (resolve_formal_arglist): Ditto, mark polymorphic + assumed-shape arrays as such. + +2012-07-19 Tobias Burnus + + * interface.c (compare_parameter, compare_actual_formal): Fix + handling of polymorphic arguments. + +2012-07-17 Janus Weil + + PR fortran/51081 + * error.c (gfc_notify_std): Automatically print the relevant Fortran + standard version. + * arith.c (arith_power): Remove explicit standard reference string. + * array.c (gfc_match_array_spec, gfc_match_array_constructor): Ditto. + * check.c (gfc_check_a_p, gfc_check_besn, gfc_check_count, + gfc_check_float, gfc_check_fn_rc2008, gfc_check_iand, + gfc_check_ichar_iachar, gfc_check_ieor, gfc_check_index, gfc_check_ior, + gfc_check_lbound, gfc_check_len_lentrim, check_rest, gfc_check_min_max, + gfc_check_null, gfc_check_scan, gfc_check_selected_real_kind, + gfc_check_shape, gfc_check_size, gfc_check_sngl, gfc_check_ubound, + gfc_check_verify): Ditto. + * data.c (gfc_assign_data_value): Ditto. + * decl.c (var_element, char_len_param_value, match_char_length, + gfc_verify_c_interop_param, match_pointer_init, variable_decl, + gfc_match_decl_type_spec, gfc_match_import, match_attr_spec, + gfc_match_prefix, gfc_match_suffix, match_ppc_decl, + match_procedure_in_interface, gfc_match_procedure,gfc_match_entry, + gfc_match_subroutine, gfc_match_end, gfc_match_codimension, + gfc_match_protected, gfc_match_value, gfc_match_volatile, + gfc_match_asynchronous, gfc_match_modproc, gfc_get_type_attr_spec, + gfc_match_enum, match_procedure_in_type): Ditto. + * expr.c (check_elemental, gfc_check_assign, gfc_check_pointer_assign): + Ditto. + * interface.c (gfc_match_abstract_interface, check_interface0): Ditto. + * intrinsic.c (gfc_intrinsic_func_interface): Ditto. + * io.c (format_lex, resolve_tag_format, resolve_tag, + compare_to_allowed_values, gfc_match_open, gfc_match_rewind, + gfc_resolve_dt, gfc_match_wait): Ditto. + * match.c (match_arithmetic_if, gfc_match_if, gfc_match_critical, + gfc_match_do, match_exit_cycle, gfc_match_pause, gfc_match_stop, + gfc_match_lock, sync_statement, gfc_match_assign, gfc_match_goto, + gfc_match_allocate, gfc_match_return, gfc_match_st_function): Ditto. + * module.c (gfc_match_use, gfc_use_module): Ditto. + * parse.c (parse_derived_contains, parse_block_construct, + parse_associate, parse_contained): Ditto. + * primary.c (match_hollerith_constant, match_boz_constant, + match_real_constant, match_sym_complex_part, match_arg_list_function, + build_actual_constructor, gfc_convert_to_structure_constructor): Ditto. + * resolve.c (resolve_formal_arglist, resolve_entries, + resolve_common_blocks, resolve_actual_arglist, gfc_resolve_index_1, + gfc_resolve_iterator_expr, resolve_ordinary_assign, + resolve_fl_var_and_proc, resolve_fl_variable_derived, + resolve_fl_procedure, resolve_fl_derived0, resolve_fl_derived, + resolve_fl_namelist, resolve_symbol, resolve_fntype): Ditto. + * symbol.c (check_conflict, conflict, gfc_add_is_bind_c, + gfc_add_extension, gfc_check_symbol_typed): Ditto. + +2012-07-17 Tobias Burnus + + PR fortran/53985 + * decl.c (gfc_verify_c_interop_param): Make warning conditional + on -Wc-binding-type works and improve the wording. + +2012-07-17 Tobias Burnus + + PR fortran/52101 + * decl.c (match_char_length): Extra argument, show obsolenscent + warning only if *length is used after the typename. + (variable_decl, gfc_match_char_spec): Update call + +2012-07-17 Tobias Burnus + Steven G. Kargl + + PR fortran/49265 + * decl.c (match_procedure_in_interface): Support "::" for + Fortran 2008 and later. + +2012-07-16 Thomas König + + PR fortran/53824 + * resolve.c (resolve_allocate_deallocate): If both + start indices are NULL, skip the test for equality. + +2012-07-16 Steven Bosscher + + * f95-lang.c: Include dumpfile.h instead of tree-dump.h. + * Make-lang.in: Fix dependencies. + +2012-07-16 Janus Weil + + PR fortran/53956 + * gfortran.h (gfc_copy_formal_args,gfc_copy_formal_args_ppc): Modified + prototypes. + * symbol.c (gfc_copy_formal_args): New argument 'if_src'. Copy if_source + of dummy procedures. + (gfc_copy_formal_args_ppc): Ditto. + * resolve.c (resolve_procedure_interface): Pass IFSRC_DECL to + gfc_copy_formal_args. + (resolve_fl_derived0): Pass IFSRC_DECL to gfc_copy_formal_args_ppc. + +2012-07-12 Tobias Burnus + + * trans-expr.c (conv_isocbinding_procedure): Generate c_f_pointer code + inline. + +2012-07-11 Steven Bosscher + + * trans.c: Do not include defaults.h. + * trans-intrinsic.c: Likewise. + +2012-07-08 Steven Bosscher + + * gfortran.h: Do not include coretypes.h here. + Make it an error to include this before coretypes.h + * openmp.c: Include coretypes.h. + * interface.c: Likewise. + * intrinsic.c: Likewise. + * symbol.c: Likewise. + * class.c: Likewise. + * decl.c: Likewise. + * matchexp.c: Likewise. + * dump-parse-tree.c: Likewise. + * array.c: Likewise. + * constructor.c: Likewise. + * error.c: Likewise. + * data.c: Likewise. + * expr.c: Likewise. + * module.c: Likewise. + * scanner.c: Likewise. + * bbt.c: Likewise. + * io.c: Likewise. + * frontend-passes.c: Likewise. + * resolve.c: Likewise. + * st.c: Likewise. + * target-memory.c: Likewise. + * match.c: Likewise. + * arith.c: Likewise. + * parse.c: Likewise. + * check.c: Likewise. + * dependency.c: Likewise. + * primary.c: Likewise. + * misc.c: Likewise. + * simplify.c: Likewise. + +2012-07-05 Mikael Morin + + PR fortran/53732 + * trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls + handling nested loop(s) if the subscript flag is true. + +2012-07-05 Uros Bizjak + + PR fortran/53449 + * parse.c (gfc_parse_file): Initialize errors_before. + +2012-06-27 Janus Weil + + PR fortran/41951 + PR fortran/49591 + * interface.c (check_new_interface): Rename, add 'loc' argument, + make non-static. + (gfc_add_interface): Rename 'check_new_interface' + * gfortran.h (gfc_check_new_interface): Add prototype. + * resolve.c (resolve_typebound_intrinsic_op): Add typebound operator + targets to non-typebound operator list. + +2012-06-22 Janus Weil + + PR fortran/47710 + PR fortran/53328 + * interface.c (count_types_test, generic_correspondence, + gfc_compare_interfaces): Ignore PASS arguments. + (check_interface1, compare_parameter): Pass NULL arguments to + gfc_compare_interfaces. + * gfortran.h (gfc_compare_interfaces): Modified prototype. + * expr.c (gfc_check_pointer_assign): Pass NULL arguments to + gfc_compare_interfaces. + * resolve.c (resolve_structure_cons): Ditto. + (check_generic_tbp_ambiguity): Determine PASS arguments and pass them + to gfc_compare_interfaces. + +2012-06-21 Janne Blomqvist + + PR fortran/39654 + * iresolve.c (gfc_resolve_ftell): Fix result kind and use new + library function. + +2012-06-18 Tobias Burnus + + * intrinsic.h (gfc_resolve_rank): New prototype. + * intrinsic.c (add_functions): Use gfc_resolve_rank. + * iresolve.c (add_functions): New function. + * trans-intrinsic.c (gfc_conv_intrinsic_rank): New function. + (gfc_conv_intrinsic_function): Call it. + +2012-06-18 Tobias Burnus + + PR fortran/53692 + * trans-array.c (set_loop_bounds): Don't scalarize via absent + optional arrays. + * resolve.c (resolve_elemental_actual): Don't stop resolving after printing + a warning. + +2012-06-18 Tobias Burnus + + PR fortran/53526 + * trans-intrinsic.c (conv_intrinsic_move_alloc): Handle coarrays. + +2012-06-18 Tobias Burnus + + PR fortran/53526 + * check.c (gfc_check_move_alloc): Reject coindexed actual arguments + and those with different corank. + +2012-06-17 Tobias Burnus + + PR fortran/53691 + PR fortran/53685 + * check.c (gfc_calculate_transfer_sizes): Return if + SIZE= is not constant or source-size cannot be determined. + +2012-06-16 Tobias Burnus + + PR fortran/53642 + PR fortran/45170 + * frontend-passes.c (optimize_assignment): Don't remove RHS's + trim when assigning to a deferred-length string. + * trans-expr.c (gfc_trans_assignment_1): Ensure that the RHS string + length is evaluated before the deferred-length LHS is reallocated. + +2012-06-13 Tobias Burnus + + PR fortran/53643 + * trans-decl.c (init_intent_out_dt): Fix for polymorphic arrays. + * trans-array.c (structure_alloc_comps): Don't loop for + scalar coarrays. + +2012-06-13 Tobias Burnus + + PR fortran/53597 + * decl.c (match_attr_spec): Only mark module variables + as SAVE_IMPLICIT for Fortran 2008 and later. + +2012-06-08 Janus Weil + + PR fortran/52552 + * match.c (gfc_match_allocate): Modify order of checks. Change wording + of error message. Remove FIXME note. + * resolve.c (resolve_allocate_expr): Add a comment. + +2012-06-07 Thomas König + + PR fortran/52861 + * frontend-passes.c (optimize_assignment): Don't set the + length of an empty string for deferred-length character + variables. + +2012-06-07 Thomas König + + PR fortran/52861 + * frontend-passes.c (empty_string): Add prototype. + (optimize_assignment): Set the length of an empty string + constant to zero. + +2012-06-04 Tobias Burnus + + PR fortran/50619 + * resolve.c (build_default_init_expr): Don't initialize + ASSOCIATE names. + +2012-06-03 Alessandro Fanfarillo + Tobias Burnus + + PR fortran/48831 + * gfortran.h (gfc_check_init_expr): Add prototype declaration + of function. + * check.c (kind_check): Change if condition to use + to gfc_check_init_expr. + * expr.c (check_init_expr): Remove forward declaration + and static keyword. Change name in gfc_check_init_expr. + (scalarize_intrinsic_call, check_init_expr_arguments, + check_inquiry, check_conversion, gfc_reduce_init_expr): Update + call to gfc_check_init_expr. + +2012-05-31 Steven Bosscher + + * trans-common.c: Do not include output.h. + * trans-decl.c: Likewise. + +2012-05-31 Tobias Burnus + + PR fortran/53521 + * trans.c (gfc_deallocate_scalar_with_status): Properly + handle the case size == 0. + +2012-05-30 Tobias Burnus + + PR c/53502 + * decl.c (match_attr_spec): Remove "typedef". + +2012-05-30 Tobias Burnus + + * decl.c: Fix comment typos. + * expr.c: Ditto. + * frontend-passes.c: Ditto. + * match.c: Ditto. + * resolve.c: Ditto. + * trans-array.c: Ditto. + * trans-common.c: Ditto. + * trans-intrinsic.c: Ditto. + * trans-types.c: Ditto. + +2012-05-23 Tobias Burnus + + PR fortran/51055 + PR fortran/45170 + * match.c (gfc_match_allocate): Set length_from_typespec + for characters. + * resolve.c (resolve_charlen): If set, don't check whether + the len is a specification expression. + +2012-05-22 Tobias Burnus + + PR fortran/53389 + * trans-array.c (gfc_add_loop_ss_code): Don't evaluate expression, if + ss->is_alloc_lhs is set. + +2012-05-22 Dodji Seketeli + + PR c++/53322 + * f95-lang.c (gfc_init_builtin_functions): Remove the unused + typedef builtin_type. + +2012-05-14 Janne Blomqvist + + PR fortran/52428 + * gfortran.texi: Update _gfortran_set_options documentation. + * invoke.texi: Remove runtime behavior description of + -fno-range-check. + * trans-decl.c (create_main_function): Don't pass the range-check + setting to the library. + +2012-05-14 Tobias Burnus + + PR fortran/49110 + PR fortran/51055 + PR fortran/53329 + * trans-expr.c (gfc_trans_assignment_1): Fix allocation + handling for assignment of function results to allocatable + deferred-length strings. + * trans-decl.c (gfc_create_string_length): For deferred-length + module variables, include module name in the assembler name. + (gfc_get_symbol_decl): Don't override the assembler name. + +2012-05-14 Manuel López-Ibáñez + + PR 53063 + * options.c (gfc_handle_option): Call lang-specific generated function. + +2012-05-13 Alessandro Fanfarillo + Tobias Burnus + + PR fortran/52158 + PR fortran/45170 + PR fortran/49430 + * resolve.c (resolve_fl_derived0): Deferred character length + procedure components are supported. + * trans-expr.c (gfc_conv_procedure_call): Handle TBP with + deferred-length results. + (gfc_string_to_single_character): Add a new check to prevent + NULL read. + (gfc_conv_procedure_call): Remove unuseful checks on + symbol's attributes. Add new checks to prevent NULL read on + string length. + +2012-05-12 Tobias Burnus + + PR fortran/49110 + PR fortran/52843 + * resolve.c (resolve_fl_procedure): Don't regard + character(len=:) as character(*) in the diagnostic. + +2012-05-11 Thomas Koenig + + PR fortran/52537 + * frontend-passes.c (optimize_op): Change + old-style comparison operators to new-style, simplify + switch as a result. + (empty_string): New function. + (get_len_trim_call): New function. + (optimize_comparison): If comparing to an empty string, + use comparison of len_trim to zero. + Use new-style comparison operators only. + (optimize_trim): Use get_len_trim_call. + +2012-05-11 Manuel López-Ibáñez + + PR 53063 + * options.c: Include diagnostics.h instead of + diagnostics-core.h. + (set_Wall): Do not see warn_unused here. + (gfc_handle_option): Set it here using handle_generated_option. + +2012-05-08 Jan Hubicka + + * trans-common.c (create_common): Do not fake TREE_ASM_WRITTEN. + * trans-decl.c (gfc_finish_cray_pointee): Likewise. + +2012-05-07 Tobias Burnus + + PR fortran/53255 + * resolve.c (resolve_typebound_static): Fix handling + of overridden specific to generic operator. + +2012-05-06 Tobias Burnus + + PR fortran/41587 + * decl.c (build_struct): Don't ignore FAILED status. + +2012-05-05 Paul Thomas + + PR fortran/41600 + * trans-array.c (build_array_ref): New static function. + (gfc_conv_array_ref, gfc_get_dataptr_offset): Call it. + * trans-expr.c (gfc_get_vptr_from_expr): New function. + (gfc_conv_derived_to_class): Add a new argument for a caller + supplied vptr and use it if it is not NULL. + (gfc_conv_procedure_call): Add NULL to call to above. + symbol.c (gfc_is_associate_pointer): Return true if symbol is + a class object. + * trans-stmt.c (trans_associate_var): Handle class associate- + names. + * expr.c (gfc_get_variable_expr): Supply the array-spec if + possible. + * trans-types.c (gfc_typenode_for_spec): Set GFC_CLASS_TYPE_P + for class types. + * trans.h : Add prototypes for gfc_get_vptr_from_expr and + gfc_conv_derived_to_class. Define GFC_CLASS_TYPE_P. + * resolve.c (resolve_variable): For class arrays, ensure that + the target expression has all the necessary _data references. + (resolve_assoc_var): Throw a "not yet implemented" error for + class array selectors that need a temporary. + * match.c (copy_ts_from_selector_to_associate, + select_derived_set_tmp, select_class_set_tmp): New functions. + (select_type_set_tmp): Call one of last two new functions. + (gfc_match_select_type): Copy_ts_from_selector_to_associate is + called if associate-name is typed. + + PR fortran/53191 + * resolve.c (resolve_ref): C614 applied to class expressions. + +2012-05-05 Janne Blomqvist + + PR fortran/49010 + PR fortran/24518 + * intrinsic.texi (MOD, MODULO): Mention sign and magnitude of result. + * simplify.c (gfc_simplify_mod): Use mpfr_fmod. + (gfc_simplify_modulo): Likewise, use copysign to fix the result if + zero. + * trans-intrinsic.c (gfc_conv_intrinsic_mod): Remove fallback as + builtin_fmod is always available. For modulo, call copysign to fix + the result when signed zeros are enabled. + +2012-05-05 Janne Blomqvist + + * gfortran.texi (GFORTRAN_TMPDIR): Rename to TMPDIR, explain + algorithm for choosing temp directory. + +2012-05-04 Tobias Burnus + + PR fortran/53175 + * resolve.c (resolve_variable): Set public_used + if a private module variable is used in a (public) + specification expression. + * trans-decl.c (gfc_finish_var_decl): Mark those + TREE_PUBLIC. + +2012-05-04 Tobias Burnus + + PR fortran/53111 + * resolve.c (resolve_fl_derived): Fix -std=f95 + diagnostic for generic vs. DT names. + +2012-05-03 Tobias Burnus + + PR fortran/52864 + * interface.c (compare_parameter_intent): Remove. + (check_intents): Remove call, handle CLASS pointer. + (compare_actual_formal): Handle CLASS pointer. + +2012-04-30 Jan Hubicka + + * f95-lang.c (gfc_finish): Update comments. + +2012-04-29 Thomas Koenig + + PR fortran/53148 + * frontend-passes.c (create_var): If the statement has a label, + put the label around the block. + +2012-04-25 Tobias Burnus + + PR fortran/52196 + * lang.opt (Wrealloc-lhs, Wrealloc-lhs-all): New flags. + * gfortran.h (gfc_option_t): Add them. + * options.c (gfc_init_options, gfc_post_options, + gfc_handle_option): Handle them. + * invoke.texi: Document them. + * trans-expr.c (realloc_lhs_warning): New function. + (gfc_trans_arrayfunc_assign, + alloc_scalar_allocatable_for_assignment, + gfc_trans_assignment_1): Use it. + +2012-04-18 Steven Bosscher + + * trans-decl.c (gfc_trans_entry_master_switch): Build SWITCH_EXPR + with NULL_TREE type instead of void_type_node. + * trans-io.c (io_result): Likewise. + * trans-stmt.c (gfc_trans_integer_select, + gfc_trans_character_select): Likewise. + +2012-04-16 Tobias Burnus + + PR fortran/52864 + * expr.c (gfc_check_vardef_context): Fix assignment check for + pointer components. + +2012-04-16 Janus Weil + + PR fortran/52968 + * class.c (gfc_build_class_symbol): Make sure the 'f2k_derived' + namespace is present. + +2012-04-15 Janus Weil + + PR fortran/51082 + * trans-expr.c (gfc_conv_expr_reference): Check if the expression is a + simple function call (or a more involved PPC reference). + +2012-04-15 Tobias Burnus + + PR fortran/52916 + PR fortran/40973 + * gfortran.h (symbol_attribute): Add public_used. + * interface.c (check_sym_interfaces, check_uop_interfaces, + gfc_check_interfaces): Set it. + * resolve.c (resolve_typebound_procedure): Ditto. + * trans-decl.c (build_function_decl): Use it. + +2012-04-11 Tobias Burnus + + PR fortran/52729 + * resolve.c (resolve_symbol): Fix searching for parent NS decl. + +2012-04-08 Tobias Burnus + + PR fortran/52751 + * trans-decl.c (gfc_finish_var_decl): Don't set TREE_PUBLIC + for PRIVATE module variables without C-binding label. + + PR fortran/40973 + * trans-decl.c (build_function_decl): Ditto for procedures. + +2012-04-07 Thomas Koenig + + PR fortran/52893 + * frontend-passes.c: Keep track of wether we are in an implicit + DO loop; do not do function elimination if we are. + +2012-04-06 Thomas Koenig + + PR fortran/52668 + * module.c: Only mark symbols as use_only if they have been + imported via an only list. + +2012-03-28 Paul Thomas + Tobias Burnus + + PR fortran/52652 + * match.c (gfc_match_allocate, gfc_match_deallocate): Change + "not.. or" to "neither.. nor". + * parse.c (decode_specification_statement): Correct error in + chpice of matching function for "allocatable". + +2012-03-23 Janne Blomqvist + + * gfortran.h (GFC_MAX_LINE): Remove unused macro. + +2012-03-19 Francois-Xavier Coudert + + PR fortran/52559 + * error.c (gfc_widechar_display_length): Consider tabs as + one character wide, as they're displayed as spaces. + (show_locus): Move tab handling to... + (print_wide_char_into_buffer): ... here. + +2012-03-17 Tobias Burnus + + PR fortran/52585 + * trans-intrinsic.c (gfc_conv_associated): Fix handling of + procpointer dummy arguments. + +2012-03-16 Janne Blomqvist + + * trans-intrinsic.c (build_round_expr): Don't use BUILT_IN_IROUND + for __float128. + +2012-03-15 Janne Blomqvist + + * f95-lang.c (gfc_init_builtin_functions): Initialize + BUILT_IN_IROUND. + * mathbuiltins.def: Add IROUND. + * trans-intrinsic.c (build_round_expr): Use BUILT_IN_IROUND if + type size matches. + (gfc_build_intrinsic_lib_fndecls): Build iround functions. + +2012-03-12 Richard Guenther + + * f95-lang.c (builtin_type_for_size): Use gfc_type_for_size. + +2012-03-12 Tobias Burnus + + PR fortran/52542 + * decl.c (match_procedure_decl): If the interface + is bind(C), the procedure is as well. + +2012-03-10 Steven Bosscher + + * convert.c (convert): Fold BOOLEAN_TYPE types to the proper variant. + +2012-03-09 Steven Bosscher + + * Make-lang.in (convert.o): Depend on convert.h. + * convert.c: Header and comment cleanups. + (gfc_thruthvalue_conversion): Rename static function + to truthvalue_conversion. Do not use 'internal_error' from here, + use 'gcc_unreachable' instead. + (convert): Do not use 'error' for conversions to void, use + 'gcc_unreachable' instead. Likewise for conversions to non-scalar + types. Do not hanlde ENUMERAL_TYPE, the front end never creates them. + Clean up #if 0 code. + +2012-03-08 Tobias Burnus + + PR fortran/52469 + * trans-types.c (gfc_get_function_type): Handle backend_decl + of a procedure pointer. + +2012-03-06 Steven Bosscher + + * f95-lang.c (yyerror, yylex): Remove. + (clear_binding_stack): Remove, fold into its only user. + (LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define. + (ridpointers): Remove. + (gfc_eh_initialized_p): Make static. + (gfc_truthvalue_conversion): Move to convert.c. + (gfc_be_parse_file): Clear binding level stack when done. + (gfc_print_identifier): Remove. + (pushlevel): Remove ignored 'ignore' argument. Update all callers. + (poplevel): Remove unused 'reverse' argument. Update all callers. + (ggc_p): Remove. + (gfc_builtin_function): Make static. Do not attempt to make RTL for + builtin functions. + * convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c, + and made static. + * trans.h (pushlevel, poplevel): Adjust prototypes. + (gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes. + * trans-openmp.c: Update calls to pushlevel and poplevel. + * trans.c: Likewise. + * trans-decl.c: Likewise. + +2012-03-04 Mikael Morin + + PR fortran/50981 + * gfortran.h (gfc_is_class_container_ref): New prototype. + * class.c (gfc_is_class_container_ref): New function. + * trans-expr.c (gfc_conv_procedure_call): Add a "_data" component + reference to polymorphic actual arguments. + +2012-03-04 Mikael Morin + + PR fortran/50981 + * trans-expr.c (gfc_conv_procedure_call): Save se->ss's value. + Handle the case of unallocated arrays passed to elemental procedures. + +2012-03-04 Mikael Morin + + * trans.h (struct gfc_ss_info): Move can_be_null_ref component from + the data::scalar subcomponent to the toplevel. + * trans-expr.c (gfc_conv_expr): Update component reference. + * trans-array.c (gfc_add_loop_ss_code): Ditto. + (gfc_walk_elemental_function_args): Ditto. Move the conditional setting + the field out of the scalar-only block. + +2012-03-04 Francois-Xavier Coudert + + PR fortran/36160 + * error.c (gfc_widechar_display_length, gfc_wide_display_length): + New functions. + (print_wide_char_into_buffer): Return length written. + (show_locus): Fix locus displayed when wide characters are present. + +2012-03-04 Francois-Xavier Coudert + + * module.c (gfc_use_module): Improve error message some more. + +2012-03-03 Francois-Xavier Coudert + + PR fortran/52313 + * module.c (gfc_use_module): Improve error messages. + +2012-03-03 Tobias Burnus + + PR fortran/48820 + * resolve.c (resolve_actual_arglist): Properly reset + assumed_type_expr_allowed. + +2012-03-03 Tobias Burnus + + * lang.opt (Wc-binding-type): New flag. + * options.c (gfc_init_options, gfc_handle_option): Handle it. + * invoke.texi (Wc-binding-type): Document it. + * gfortran.h (gfc_option_t): Add warn_c_binding_type. + * decl.c (verify_bind_c_sym): Handle -Wc-binding-type. + * symbol.c (gfc_set_default_type, verify_bind_c_derived_type): + Ditto. + +2012-03-03 Tobias Burnus + + PR fortran/48820 + * decl.c (gfc_match_decl_type_spec): Support type(*). + (gfc_verify_c_interop): Allow type(*). + * dump-parse-tree.c (show_typespec): Handle type(*). + * expr.c (gfc_copy_expr): Ditto. + * interface.c (compare_type_rank, compare_parameter, + compare_actual_formal, gfc_procedure_use): Ditto. + * libgfortran.h (bt): Add BT_ASSUMED. + * misc.c (gfc_basic_typename, gfc_typename): Handle type(*). + * module.c (bt_types): Ditto. + * resolve.c (assumed_type_expr_allowed): New static variable. + (resolve_actual_arglist, resolve_variable, resolve_symbol): + Handle type(*). + * trans-expr.c (gfc_conv_procedure_call): Ditto. + * trans-types.c (gfc_typenode_for_spec, gfc_get_dtype): Ditto. + +2012-03-02 Tobias Burnus + + PR fortran/52325 + * primary.c (gfc_match_varspec): Add missing ;. + +2012-03-02 Tobias Burnus + + PR fortran/52325 + * primary.c (gfc_match_varspec): Add diagnostic for % with + nonderived types. + +2012-03-02 Tobias Burnus + + PR fortran/52270 + * expr.c (gfc_check_vardef_context): Fix check for + intent-in polymorphic pointer . + * interface.c (compare_parameter): Allow passing TYPE to + intent-in polymorphic pointer. + +2012-03-02 Tobias Burnus + + PR fortran/52452 + * resolve.c (resolve_intrinsic): Don't search for a + function if we know that it is a subroutine. + +2012-02-29 Paul Thomas + + PR fortran/52386 + * trans-expr.c (fcncall_realloc_result): Dereference the + descriptor if needed. + +2012-02-22 Tobias Burnus + + PR fortran/52335 + * io.c (gfc_match_open): Remove bogus F2003 DELIM= check. + +2012-02-18 Tobias Burnus + + PR fortran/52295 + * interface.c (check_interface0): Internal procs in + generic interfaces are allowed in Fortran 2008. + +2012-02-17 Tobias Burnus + Roland Stigge + + PR translation/52273 + * interface.c (compare_actual_formal): Fix typo "at at". + +2012-02-17 Tobias Burnus + + * gfortran.texi (Q exponent-letter): Fix grammar. + +2012-02-17 Tobias Burnus + + * gfortran.texi (Status): Fix typos. + * invoke.texi (ffixed-form, fstack-arrays): Spell Fortran with + a majuscule. + +2012-02-17 Tobias Burnus + Roland Stigge + + PR translation/52232 + PR translation/52234 + PR translation/52245 + PR translation/52246 + PR translation/52262 + PR translation/52273 + * io.c (gfc_match_open): Fix typo. + * interface.c (compare_actual_formal): Ditto. + * lang.opt (freal-4-real-8, freal-4-real-16, freal-8-real-16): Ditto. + * match.c (alloc_opt_list, gfc_match_nullify): Ditto. + * check.c (gfc_check_associated, gfc_check_null): Ditto. + +2012-02-12 Mikael Morin + + PR fortran/50981 + * trans-stmt.c (gfc_get_proc_ifc_for_call): New function. + (gfc_trans_call): Use gfc_get_proc_ifc_for_call. + +2012-02-12 Mikael Morin + + * trans-array.c (gfc_walk_elemental_function_args, + gfc_walk_function_expr): Move call to gfc_get_proc_ifc_for_expr out + of gfc_walk_elemental_function_args. + * trans-stmt.c (gfc_trans_call): Ditto. + * trans-array.h (gfc_get_proc_ifc_for_expr): New prototype. + (gfc_walk_elemental_function_args): Update prototype. + +2012-02-12 Mikael Morin + + * trans-array.c (gfc_get_proc_ifc_for_expr): New function. + (gfc_walk_elemental_function_args): Move code to + gfc_get_proc_ifc_for_expr and call it. + +2012-02-08 Tobias Burnus + + PR fortran/52151 + * trans-expr.c (fcncall_realloc_result): Set also the stride. + +2012-02-07 Tobias Burnus + + PR fortran/51514 + * trans-expr.c (gfc_conv_procedure_call): Add _data component + for calls of scalar CLASS actuals to TYPE dummies. + +2012-02-05 Thomas König + + PR fortran/48847 + * trans-decl.c: Warn about unused dummy procedure arguments + if -Wunused-dummy-argument is specified. Suppress middle-end + warnings about procedure arguments. + +2012-02-05 Paul Thomas + + * trans-array.c (gfc_array_allocate): Zero memory for all class + array allocations. + * trans-stmt.c (gfc_trans_allocate): Ditto for class scalars. + + PR fortran/52102 + * trans-stmt.c (gfc_trans_allocate): Before correcting a class + array reference, ensure that 'dataref' points to the _data + component that is followed by the array reference.. + +2012-02-02 Mikael Morin + + PR fortran/41587 + PR fortran/46356 + PR fortran/51754 + PR fortran/50981 + * class.c (insert_component_ref, class_data_ref_missing, + gfc_fix_class_refs): New functions. + * gfortran.h (gfc_fix_class_refs): New prototype. + * trans-expr.c (gfc_conv_expr): Remove special case handling and call + gfc_fix_class_refs instead. + +2012-02-02 Paul Thomas + + PR fortran/52012 + * trans-expr.c (fcncall_realloc_result): If variable shape is + correct, retain the bounds, whatever they are. + +2012-02-02 Tobias Burnus + + PR fortran/52093 + * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES. + +2012-02-01 Thomas König + + PR fortran/51958 + * frontend-passes.c (convert_elseif): New function. + (optimize_namespace): Call it. + +2012-02-01 Tobias Burnus + + PR fortran/52024 + * module.c (MOD_VERSION): Bump. + (mio_typebound_proc): Read/write is_operator from/to the + .mod file. + +2012-02-01 Tobias Burnus + + PR fortran/52059 + * trans-expr.c (gfc_conv_procedure_call): Add array ref + only to variables. + +2012-01-31 Tobias Burnus + + PR fortran/52024 + * gfortran.h (gfc_tbp_generic): Store whether the + generic is an operator. + * decl.c (gfc_match_generic): Set that flag. + * resolve.c (check_generic_tbp_ambiguity): Use it in the + gfc_compare_interfaces check. + +2012-01-31 Tobias Burnus + + PR fortran/52029 + * class.c (gfc_find_derived_vtab): Mark _copy function as pure. + +2012-01-31 Tobias Burnus + + PR fortran/52013 + * class.c (get_unique_hashed_string): Adapt trim length. + (gfc_build_class_symbol) Encode also corank in the container name. + +2012-01-31 Paul Thomas + + PR fortran/52012 + * trans-expr.c (fcncall_realloc_result): Correct calculation of + result offset. + +2012-01-29 Janne Blomqvist + + * module.c (pointer_info): Make true_name and module pointers + rather than arrays, order pointers before other fields. + (free_pi_tree): free true_name and module as well. + (mio_read_string): Rename to read_string. + (mio_write_string): Remove. + (load_commons): Use read_string. + (read_module): Use read_string rather than mio_internal_string. + (write_blank_common): Call write_atom directly. + (write_symbol): Likewise. + +2012-01-29 Tobias Burnus + + PR fortran/41600 + * expr.c (gfc_default_initializer): Convert the values if + the type does not match. + +2012-01-29 Tobias Burnus + + PR fortran/51972 + * trans-array.c (structure_alloc_comps): Fix assignment of + polymorphic components (polymorphic deep copying). + +2012-01-29 Janne Blomqvist + + PR fortran/51808 + * decl.c (set_binding_label): Make binding_label argument const. + (curr_binding_label): Constify. + * gfortran.h (gfc_symbol): Constify binding_label. + (gfc_common_head): Likewise. + (get_iso_c_sym): Likewise. + * match.c (gfc_match_name_C): Constify buffer argument. + * match.h (gfc_match_name_C): Likewise. + * resolve.c (set_name_and_label): Constify binding_label argument. + (gfc_iso_c_sub_interface): Constify binding_label variable. + * symbol.c (get_iso_c_sym): Constify binding_label argument. + +2012-01-29 Janne Blomqvist + + PR fortran/51808 + * decl.c (set_binding_label): Move prototype from match.h to here. + (curr_binding_label): Make a pointer rather than static array. + (build_sym): Check sym->binding_label pointer rather than array, + update set_binding_label call, handle curr_binding_label changes. + (set_binding_label): Handle new curr_binding_label, dest_label + double ptr, and sym->binding_label. + (verify_bind_c_sym): Handle sym->binding_label being a pointer. + (set_verify_bind_c_sym): Check sym->binding_label pointer rather + than array, update set_binding_label call. + (gfc_match_bind_c_stmt): Handle curr_binding_label change. + (match_procedure_decl): Update set_binding_label call. + (gfc_match_bind_c): Change binding_label to pointer, update + gfc_match_name_C call. + * gfortran.h (GFC_MAX_BINDING_LABEL_LEN): Remove macro. + (gfc_symbol): Make binding_label a pointer. + (gfc_common_head): Likewise. + * match.c (gfc_match_name_C): Heap allocate bind(C) name. + * match.h (gfc_match_name_C): Change prototype argument. + (set_binding_label): Move prototype to decl.c. + * module.c (struct pointer_info): Make binding_label a pointer. + (free_pi_tree): Free unused binding_label. + (mio_read_string): New function. + (mio_write_string): New function. + (load_commons): Redo reading of binding_label. + (read_module): Likewise. + (write_common_0): Change to write empty string instead of name if + no binding_label. + (write_blank_common): Write empty string for binding label. + (write_symbol): Change to write empty string instead of name if no + binding_label. + * resolve.c (gfc_iso_c_func_interface): Don't set binding_label. + (set_name_and_label): Make binding_label double pointer, use + asprintf. + (gfc_iso_c_sub_interface): Make binding_label a pointer. + (resolve_bind_c_comms): Handle cases if + gfc_common_head->binding_label is NULL. + (gfc_verify_binding_labels): sym->binding_label is a pointer. + * symbol.c (gfc_new_symbol): Rely on XCNEW zero init for + binding_label. + (gen_special_c_interop_ptr): Don't set binding label. + (generate_isocbinding_symbol): Insert binding_label into symbol + table. + (get_iso_c_sym): Use pointer assignment instead of strcpy. + * trans-common.c (gfc_sym_mangled_common_id): Handle + com->binding_label being a pointer. + * trans-decl.c (gfc_sym_mangled_identifier): Handle + sym->binding_label being a pointer. + (gfc_sym_mangled_function_id): Likewise. + +2012-01-29 Tobias Burnus + + PR fortran/52038 + * resolve.c (symbol_as): Remove unused, accidentally + added function. + +2012-01-28 Tobias Burnus + + PR fortran/51972 + * trans-stmt.c (gfc_trans_allocate): Properly check whether + we have a BT_CLASS which needs to be memset. + +2012-01-27 Tobias Burnus + + PR fortran/52022 + * trans-expr.c (gfc_conv_procedure_call): Fix passing + of functions, which return allocatables. + +2012-01-27 Tobias Burnus + + PR fortran/52016 + * resolve.c (resolve_formal_arglist): Fix elemental + constraint checks for polymorphic dummies also for + pointers. + +2012-01-27 Tobias Burnus + + PR fortran/51970 + PR fortran/51977 + * primary.c (gfc_match_varspec. gfc_match_rvalue): Set + handle array spec for BT_CLASS. + * expr.c (gfc_get_variable_expr, gfc_lval_expr_from_sym) + * frontend-passes.c (create_var): Ditto. + * resolve.c (resolve_actual_arglist, resolve_assoc_var): Ditto. + * trans-decl.c (gfc_trans_deferred_vars): Use class_pointer + instead of attr.pointer. + (gfc_generate_function_code): Use CLASS_DATA (sym) for BT_CLASS. + * trans-intrinsic.c (conv_intrinsic_move_alloc): Move assert. + * trans-stmt.c (trans_associate_var): Ask for the descriptor. + +2012-01-27 Tobias Burnus + + PR fortran/51953 + * match.c (gfc_match_allocate): Allow more than allocate + object with SOURCE=. + +2012-01-27 Tobias Burnus + + PR fortran/52016 + * resolve.c (resolve_formal_arglist): Fix elemental + constraint checks for polymorphic dummies. + +2012-01-27 Paul Thomas + Tobias Burnus + + PR fortran/48705 + PR fortran/51870 + PR fortran/51943 + PR fortran/51946 + * trans-array.c (gfc_array_init_size): Add two extra arguments + to convey the dynamic element size of a calls object and to + return the number of elements that have been allocated. + (gfc_array_allocate): Add the same arguments and use them to + call gfc_array_init_size. Before the allocation dereference + the data pointer, if necessary. Set the allocated array to zero + if the class element size or expr3 are non-null. + * trans-expr.c (gfc_conv_class_to_class): Give this function + global scope. + (get_class_array_ref): New function. + (gfc_copy_class_to_class): New function. + * trans-array.h : Update prototype for gfc_array_allocate. + * trans-stmt.c (gfc_trans_allocate): For non-variable class + STATUS expressions extract the class object and the dynamic + element size. Use the latter to call gfc_array_allocate and + the former for setting the vptr and, via + gfc_copy_class_to_clasfc_cs, to copy to the allocated data. + * trans.h : Prototypes for gfc_get_class_array_ref, + gfc_copy_class_to_class and gfc_conv_class_to_class. + +2012-01-25 Tobias Burnus + + * resolve.c (symbol_as): Check also for attr.class_ok. + +2012-01-25 Tobias Burnus + + PR fortran/51995 + * class.c (gfc_build_class_symbol): Fix invalid freeing + issue with fclass->f2k_derived. + +2012-01-25 Tobias Burnus + + PR fortran/51995 + * class.c (gfc_build_class_symbol): Ensure that + fclass->f2k_derived is set. + +2012-01-25 Tobias Burnus + + PR fortran/51966 + * resolve.c (resolve_structure_cons): Only create an + array constructors for nonscalars. + +2012-01-23 Tobias Burnus + + PR fortran/51948 + * check.c (variable_check): Fix checking for + variables and deeply nested BLOCKs. + +2012-01-21 Tobias Burnus + Steven G. Kargl + + PR fortran/50556 + * symbol.c (check_conflict): namelist-group-name cannot have the SAVE + attribute. + +2012-01-21 Tobias Burnus + + PR fortran/51913 + * interface.c (compare_parameter): Fix CLASS comparison. + +2012-01-20 Tobias Burnus + Janus Weil + + PR fortran/51056 + * module.c (load_needed, read_module): Don't mark __vtab etc. + as use_only. + +2012-01-19 Tobias Burnus + + PR fortran/51904 + * expr.c (gfc_build_intrinsic_call): Also set the symtree. + +2012-01-18 Paul Thomas + + PR fortran/51634 + * trans-expr.c (gfc_conv_procedure_call): Deallocate allocatable + components of temporary class arguments. + +2012-01-17 Tobias Burnus + Janne Blomqvist + + PR fortran/51869 + * trans-expr.c (alloc_scalar_allocatable_for_assignment): Nullify + LHS after allocation, if it has allocatable components. + * f95-lang.c (gfc_init_builtin_functions): Add BUILT_IN_CALLOC. + +2012-01-16 Mikael Morin + Tobias Burnus + + PR fortran/50981 + * trans-array.c (gfc_walk_elemental_function_args): Fix + passing of deallocated allocatables/pointers as absent argument. + +2012-01-16 Tobias Burnus + + PR fortran/51809 + * class.c (gfc_find_derived_vtab): Mark __vtab and + __def_init as FL_VARIABLE not as FL_PARAMETER. + * expr.c (gfc_simplify_expr): Remove special + handling of __vtab. + * resolve.c (resolve_values): Ditto. + * trans-decl.c (gfc_get_symbol_decl): Mark __vtab + and __def_init as TREE_READONLY. + +2012-01-16 Zydrunas Gimbutas + Andreas Kloeckner + Steven G. Kargl + + PR fortran/48426 + * gfortran.h (gfc_option_t): Add members flag_*_kind to store kind. + * lang.opt: Add options -freal-4-real-8, -freal-4-real-10, + -freal-4-real-16, -freal-8-real-4, -freal-8-real-10, -freal-8-real-16 + and -finteger-4-integer-8. User-desired type conversion information. + * decl.c (gfc_match_old_kind_spec,kind_expr): Type conversions + in declaration parsing. + * trans-types.c (gfc_init_kinds): User-specified type conversion + checked for current backend. + * primary.c (match_integer_constant,match_real_constant): Implement + type conversion in constant parsing. + * options.c (gfc_init_options,gfc_handle_option): Translate input + options to flags in internal options data structure. + * invoke.texi: Document new options. Re-order options in Options + summary section. + +2012-01-16 Paul Thomas + + * trans-array.c (gfc_trans_create_temp_array): In the case of a + class array temporary, detect a null 'eltype' on entry and use + 'initial' to provde the class reference and so, through the + vtable, the element size for the dynamic type. + * trans-stmt.c (gfc_conv_elemental_dependencies): For class + expressions, set 'eltype' to null and pass the values via the + 'initial' expression. + +2012-01-14 Tobias Burnus + + PR fortran/51800 + * resolve.c (build_default_init_expr): Also initialize + nonconstant-length strings with -finit-character=. + +2011-01-14 Tobias Burnus + + PR fortran/51816 + * module.c (read_module): Don't make nonexisting + intrinsic operators as found. + (rename_list_remove_duplicate): New function. + (gfc_use_modules): Use it. + +2012-01-13 Paul Thomas + + PR fortran/48351 + * trans-array.c (structure_alloc_comps): Suppress interative + call to self, when current component is deallocated using + gfc_trans_dealloc_allocated. + * class.c (gfc_build_class_symbol): Copy the 'alloc_comp' + attribute from the declared type to the class structure. + +2012-01-13 Tobias Burnus + + PR fortran/51842 + * fortran/trans-types.c (gfc_init_kinds): Use PTRDIFF_TYPE + instead of a signed int of size POINTER_SIZE for + gfc_index_integer_kind. + +2012-01-12 Tobias Burnus + + PR fortran/36755 + * intrinsic.texi (CHMOD): Extend a bit and remove statement + that /bin/chmod is called. + +2012-01-10 Gerald Pfeifer + + * gfortran.texi (Fortran 2003 Status): Fix grammar. + +2012-01-10 Tobias Burnus + + PR fortran/51652 + * resolve.c (resolve_allocate_expr): For non-deferred char lengths, + check whether type-spec matches declaration. + +2012-01-10 Tobias Burnus + + * resolve.c (resolve_ordinary_assign): Improve error wording. + +2012-01-09 Paul Thomas + + PR fortran/51791 + * interface.c (matching_typebound_op): Drill down through + possible parentheses to obtain base expression. Do not test for + 'class_ok' but, instead for the class structure components. + * resolve.c (resolve_ordinary_assign): Extend error message for + polymorphic assignment to advise checking for specific + subroutine. + + PR fortran/51792 + * resolve.c (resolve_typebound_function): Restore 'static' to + declaration. + +2012-01-09 Mikael Morin + + PR fortran/51758 + * trans-array.c (gfc_walk_elemental_function_args): + Skip over NULL() actual arguments. + +2012-01-09 Tobias Burnus + + * gfortran.texi: Bump copyright year. + (Fortran 2003 Status): Update polymorphism item, add + item for generic interface with DT name. + +2012-01-09 Tobias Burnus + + PR fortran/51578 + * gfortran.h (gfc_use_list): + * match.h (gfc_use_module): Rename to ... + (gfc_use_modules): ... this. + * module.c (use_locus, specified_nonint, specified_int): Remove + global variable. + (module_name): Change type to const char*, used with gfc_get_string. + (module_list): New global variable. + (free_rename): Free argument not global var. + (gfc_match_use): Save match to module_list. + (load_generic_interfaces, read_module): Don't free symtree. + (write_dt_extensions, gfc_dump_module): Fix module-name I/O due to the + type change of module_name. + (write_symbol0, write_generic): Optimize due to the type change. + (import_iso_c_binding_module, use_iso_fortran_env_module): Use + locus of rename->where. + (gfc_use_module): Take module_list as argument. + (gfc_use_modules): New function. + (gfc_module_init_2, gfc_module_done_2): Init module_list, rename_list. + * parse.c (last_was_use_stmt): New global variable. + (use_modules): New function. + (decode_specification_statement, decode_statement): Move USE match up + and call use_modules. + (next_free, next_fixed): Call use_modules. + (accept_statement): Don't call gfc_module_use. + +2012-01-06 Tobias Burnus + + * trans-openmp.c (gfc_omp_clause_dtor, gfc_trans_omp_array_reduction): + Update call to gfc_trans_dealloc_allocated. + * trans.c (gfc_allocate_using_malloc): Fix spacing. + (gfc_allocate_allocatable): For gfc_allocate_using_lib, jump to + label_finish when an error occurs. + (gfc_deallocate_with_status): Call caf_deregister for -fcoarray=lib. + * trans.h (gfc_allocate_allocatable, gfc_deallocate_with_status): + Update prototype. + (gfor_fndecl_caf_deregister): New tree symbol. + * trans-expr.c (gfc_conv_procedure_call): Update + gfc_deallocate_with_status and gfc_trans_dealloc_allocated calls. + * trans-array.c (gfc_array_allocate, gfc_trans_dealloc_allocated, + structure_alloc_comps, gfc_trans_deferred_array): Ditto. + (gfc_array_deallocate): Handle coarrays with -fcoarray=lib. + * trans-array.h (gfc_array_deallocate, gfc_array_allocate, + gfc_trans_dealloc_allocated): Update prototypes. + * trans-stmt.c (gfc_trans_sync): Fix indentation. + (gfc_trans_allocate): Fix errmsg padding and label handling. + (gfc_trans_deallocate): Ditto and handle -fcoarray=lib. + * expr.c (gfc_is_coarray): Fix algorithm for BT_CLASS. + * libgfortran.h (GFC_STAT_STOPPED_IMAGE): Use large value + to avoid other stats accidentally matching this one. + * trans-decl.c (gfor_fndecl_caf_deregister): New global var. + (gfc_build_builtin_function_decls): Fix prototype decl of caf_register + and add decl for caf_deregister. + (gfc_trans_deferred_vars): Handle CAF vars with -fcoarrays=lib. + * trans-intrinsic.c (conv_intrinsic_move_alloc): Update call to + gfc_deallocate_with_status. + +2012-01-05 Paul Thomas + + PR fortran/PR48946 + * resolve.c (resolve_typebound_static): If the typebound + procedure is 'deferred' try to find the correct specific + procedure in the derived type operator space itself. + +2012-01-04 Mikael Morin + + PR fortran/50981 + * trans-array.h (gfc_walk_elemental_function_args): New argument. + * trans-intrinsic.c (gfc_walk_intrinsic_function): Update call. + * trans-stmt.c (gfc_trans_call): Ditto. + * trans-array.c (gfc_walk_function_expr): Ditto. + (gfc_walk_elemental_function_args): Get the dummy argument list + if possible. Check that the dummy and the actual argument are both + optional, and set can_be_null_ref accordingly. + +2012-01-04 Mikael Morin + + PR fortran/50981 + * trans.h (struct gfc_ss_info): New field data::scalar::can_be_null_ref + * trans-array.c: If the reference can be NULL, save the reference + instead of the value. + * trans-expr.c (gfc_conv_expr): If we have saved a reference, + dereference it. + +2012-01-04 Mikael Morin + + * trans-expr.c (gfc_conv_expr): Move address taking... + (gfc_conv_expr_reference): ... here. + +2012-01-04 Thomas Koenig + + PR fortran/49693 + * trans-common.c (create_common): Update copyright years. Mark + variables as used to avoid warnings about unused variables in + common blocks. + +2012-01-03 Hans-Peter Nilsson + + * gfortran.h (struct gfc_expr): Add missing "struct" + qualifier for member base_expr. + +2012-01-02 Paul Thomas + + PR fortran/51529 + * trans-array.c (gfc_array_allocate): Null allocated memory of + newly allocted class arrays. + + PR fortran/46262 + PR fortran/46328 + PR fortran/51052 + * interface.c(build_compcall_for_operator): Add a type to the + expression. + * trans-expr.c (conv_base_obj_fcn_val): New function. + (gfc_conv_procedure_call): Use base_expr to detect non-variable + base objects and, ensuring that there is a temporary variable, + build up the typebound call using conv_base_obj_fcn_val. + (gfc_trans_class_assign): Pick out class procedure pointer + assignments and do the assignment with no further prcessing. + (gfc_trans_class_array_init_assign, gfc_trans_class_init_assign + gfc_trans_class_assign): Move to top of file. + * gfortran.h : Add 'base_expr' field to gfc_expr. + * resolve.c (get_declared_from_expr): Add 'types' argument to + switch checking of derived types on or off. + (resolve_typebound_generic_call): Set the new argument. + (resolve_typebound_function, resolve_typebound_subroutine): + Set 'types' argument for get_declared_from_expr appropriately. + Identify base expression, if not a variable, in the argument + list of class valued calls. Assign it to the 'base_expr' field + of the final expression. Strip away all references after the + last class reference. + +2012-01-02 Tobias Burnus + + PR fortran/51682 + * trans-intrinsic.c (trans_this_image, trans_image_index, + trans_num_images, conv_intrinsic_cobound): Fold_convert the + caf_num_images/caf_this_images variables to the correct int kind. + +2012-01-01 Jakub Jelinek + + * gfortranspec.c (lang_specific_driver): Update copyright notice + dates. + +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. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 37244533de0..0b77bdd0ba8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -40,11186 +40,8 @@ PR tree-optimization/55831 * gcc.dg/pr55831.c: New test. - -2012-12-31 Uros Bizjak - - * g++.dg/ipa/devirt-9.C: Cleanup inline ipa dump. - -2012-12-31 Uros Bizjak - - * gcc.target/i386/builtin_target.c (vendor_signatures): Remove. - (check_detailed): Use signature_INTEL_ebx and signature_AMD_ebx - to check vendor signature. - -2012-12-28 Janus Weil - - PR fortran/55692 - * gfortran.dg/associated_7.f90: New. - -2012-12-28 Tobias Burnus - - PR fortran/55763 - * gfortran.dg/unlimited_polymorphic_5.f90 - -2012-12-27 Jerry DeLisle - - PR fortran/48960 - * gfortran.dg/newunit_3.f90: New. - -2012-12-27 Jerry DeLisle - - PR fortran/48976 - * gfortran.dg/inquire_15.f90: New. - -2012-12-27 Sriraman Tallam - - * testsuite/g++.dg/mv1.C: Remove target options. - * testsuite/g++.dg/mv2.C: Ditto. - * testsuite/g++.dg/mv3.C: Ditto. - * testsuite/g++.dg/mv4.C: Ditto. - * testsuite/g++.dg/mv5.C: Ditto. - -2012-12-26 Janne Blomqvist - - PR fortran/55539 - * gfortran.dg/nosigned_zero_3.f90: New testcase. - -2012-12-23 Tobias Burnus - - PR fortran/54884 - * gfortran.dg/public_private_module_8.f90: New. - -2012-12-23 Richard Sandiford - - * gcc.target/mips/r10k-cache-barrier-10.c: Make a branch-likely - instruction more likely. - -2012-12-23 Richard Sandiford - - * gcc.target/mips/pr55315.c: Cast to long rather than int. - -2012-12-22 Tobias Burnus - - PR fortran/55763 - * gfortran.dg/unlimited_polymorphic_6.f90: New. - -2012-12-21 Martin Jambor - - PR tree-optimization/55355 - * g++.dg/torture/pr55355.C: New test. - -2012-12-21 Vladimir Makarov - - PR middle-end/55775 - * gcc.target/i386/pr55775.c: New test. - -2012-12-21 David Edelsohn - - * gcc.dg/pthread-init-2.c (dg-options): Define _XOPEN_SOURCE=500 - on AIX. - - * lib/target-supports.exp (add_options_for_tls): Add -pthread for - AIX as well. - (check_effective_target_powerpc_vsx_ok): Only test VSX on AIX 7.1 - and above. - - * gcc.c-torture/compile/pr44707.c: Do not try to assemble on AIX. - - * c-c++-common/pr43942.c: Remove XFAIL for AIX. - -2012-12-21 Paul Thomas - - PR fortran/55763 - * gfortran.dg/unlimited_polymorphic_4.f03: New test. - -2012-12-21 Richard Biener - - PR tree-optimization/52996 - * gcc.dg/torture/pr52996.c: New testcase. - -2012-12-20 Jakub Jelinek - - PR middle-end/55750 - * gcc.c-torture/execute/pr55750.c: New test. - -2012-12-20 Richard Biener - - PR middle-end/55740 - * g++.dg/torture/pr55740.C: New testcase. - -2012-12-20 Jakub Jelinek - - PR c++/55619 - * c-c++-common/pr55619.c: New test. - -2012-12-20 Tobias Burnus - - PR fortran/54818 - * gfortran.dg/transfer_intrinsic_4.f: New. - -2012-12-19 Paul Thomas - - * gfortran.dg/unlimited_polymorphic_1.f03: New test. - * gfortran.dg/unlimited_polymorphic_2.f03: New test. - * gfortran.dg/unlimited_polymorphic_3.f03: New test. - * gfortran.dg/same_type_as_1.f03: Correct for improved message. - -2012-12-19 Kyrylo Tkachov - - * gcc.target/arm/vmaxnmdf.c: New test. - * gcc.target/arm/vmaxnmsf.c: Likewise. - * gcc.target/arm/vminnmsf.c: Likewise. - * gcc.target/arm/vminnmdf.c: Likewise. - -2012-12-19 Tobias Burnus - - * gfortran.dg/gomp/use_intrinsic_1.f90: Moved - to libgomp/testsuite/libgomp.fortran/use_intrinsic_1.f90. - -2012-12-19 Richard Biener - - PR tree-optimization/55736 - PR tree-optimization/55703 - * gcc.dg/lto/pr55703_0.c: New testcase. - -2012-12-19 Jakub Jelinek - - PR debug/55730 - * gcc.dg/debug/pr55730.c: New test. - -2012-12-18 Jan Hubicka - - PR tree-optimization/55683 - * g++.dg/ipa/devirt-9.C: New testcase. - -2012-12-19 Terry Guo - - * gcc.target/arm/thumb-find-work-register.c: New. - -2012-12-19 Tobias Burnus - - PR fortran/55733 - * gfortran.dg/save_5.f90: New. - -2012-12-18 Jakub Jelinek - - PR c/39464 - * gcc.dg/pr39464.c: New test. - -2012-12-18 Ian Lance Taylor - - PR go/55201 - * lib/go.exp: Revert last patch. - -2012-12-18 Richard Biener - - PR middle-end/54838 - * g++.dg/torture/pr54838.C: New testcase. - -2012-12-18 Andreas Schwab - - * lib/go.exp (go_link_flags): Add libatomic location to flags and - ld_library_path. - -2012-12-18 Richard Biener - - * gcc.dg/tree-ssa/reassoc-19.c: Adjust. - -2012-12-18 Richard Biener - - PR tree-optimization/55555 - * gcc.dg/torture/pr55555.c: New testcase. - * gcc.dg/vect/vect-iv-11.c: Adjust. - -2012-12-18 Jakub Jelinek - - PR debug/55717 - * testsuite/g++.dg/opt/pr55717.C: New test. - -2012-12-17 Andrew Stubbs - Ulrich Weigand - - * gcc.target/arm/neon-extend-1.c: New file. - * gcc.target/arm/neon-extend-2.c: New file. - -2012-12-17 Kyrylo Tkachov - - * lib/target-supports.exp (add_options_for_arm_v8_neon): - Add -march=armv8-a. - -2012-12-17 James Greenhalgh - Tejas Belagod - - * lib/target-supports.exp - (check_effective_target_vect_multiple_sizes): Enable for AArch64. - -2012-12-16 Tobias Burnus - - PR fortran/55197 - * gfortran.dg/gomp/use_intrinsic_1.f90: New. - -2012-12-16 Tobias Burnus - - * gfortran.dg/move_alloc_14.f90: New. - -2012-12-16 Tobias Burnus - - PR fortran/55638 - * gfortran.dg/elemental_args_check_3.f90: Update dg-error. - * gfortran.dg/elemental_args_check_7.f90: New. - -2012-12-15 Eric Botcazou - - * lib/scanasm.exp (get_ada_spec_filename): Use procedural form. - -2012-12-15 Eric Botcazou - - PR ada/52735 - * gnat.dg/nested_generic1.adb: New test. - * gnat.dg/nested_generic1_pkg.ad[sb]: New helper. - -2012-12-15 Eric Botcazou - - PR ada/53766 - * gnat.dg/controlled7.ad[sb]: New test. - -2012-12-14 Steve Ellcey - - PR regression/55688 - * g++.dg/other/pr55650.C: Add dg-require-profiling. - -2012-12-14 Richard Biener - - PR tree-optimization/55684 - * gcc.dg/torture/pr55684.c: New testcase. - -2012-12-14 Richard Biener - - PR tree-optimization/55687 - * gcc.dg/torture/pr55687.c: New testcase. - -2012-12-13 Jakub Jelinek - - PR c++/55652 - * g++.dg/cpp0x/noexcept19.C: New test. - -2012-12-13 Richard Biener - - PR lto/55660 - * gcc.dg/lto/pr55660_0.c: New testcase. - * gcc.dg/lto/pr55660_1.c: Likewise. - -2012-12-13 Jakub Jelinek - - PR gcov-profile/55650 - * g++.dg/other/pr55650.C: New test. - * g++.dg/other/pr55650.cc: New file. - -2012-12-12 Jakub Jelinek - - PR debug/55665 - * g++.dg/guality/pr55665.C: New test. - - * lib/gcc-dg.exp (${tool}_load): Handle non-existing - set_target_env_var the same as if it is empty list. - (dg-set-target-env-var): Fix up error message. - (set-target-env-var): Record both preexisting env var values - as well as info that env wasn't set. - (restore-target-env-var): Iterate on reversed list, if second - sublist element is 1, setenv the env var to the third sublist - element, otherwise unsetenv it. - (gcc-dg-runtest): Don't initialize set_target_env_var. - (dg-test): Unset set_target_env_var if it was set. - - * g++.dg/asan/deep-tail-call-1.C: Whitespace fixes. Don't rely - on argc being one. - * g++.dg/asan/interception-malloc-test-1.C: Only run on linux. - Whitespace fixes. Avoid unnecessary * sizeof(char). - * g++.dg/asan/deep-thread-stack-1.C: Add -lasan -lpthread to - dg-options. Whitespace fixes. - * g++.dg/asan/deep-stack-uaf-1.C: Skip for -flto. Whitespace fixes. - * g++.dg/asan/interception-test-1.C: Whitespace fixes. - * g++.dg/asan/interception-failure-test-1.C: Whitespace fixes. - Avoid unnecessary * sizeof(char). Remove // CHECK: comment. - * g++.dg/asan/default-options-1.C: Whitespace fixes. - * g++.dg/asan/symbolize-callback-1.C: Whitespace fixes. Make - first __asan_symbolize argument unnamed. Avoid unnecessary - * sizeof(char). - * g++.dg/asan/large-func-test-1.C: Whitespace fixes. Don't rely - on argc being one. Allow both _Znwj and _Znwm as operator new. - Ignore everything in the backtrace above operator new. Fix up - dg-output regexps. - * c-c++-common/asan/null-deref-1.c: Add -fno-omit-frame-pointer - and for x86 -mno-omit-leaf-frame-pointer. Fix up dg-output regexps. - * c-c++-common/asan/clone-test-1.c: Whitespace fixes. Return non-zero - on failures. Avoid pointless PASS dg-output check. Remove bogus - dg-shouldfail. - * c-c++-common/asan/sanity-check-pure-c-1.c: Fix up dg-output regexps. - Avoid unnecessary * sizeof(char). - * c-c++-common/asan/heap-overflow-1.c: Fix up dg-output regexps. - Don't rely on argc being one. - * c-c++-common/asan/sleep-before-dying-1.c: Whitespace fixes. - Avoid unnecessary * sizeof(char). - * c-c++-common/asan/rlimit-mmap-test-1.c: Whitespace fixes. - * c-c++-common/asan/stack-overflow-1.c: Fix up dg-output regexps. - * c-c++-common/asan/global-overflow-1.c: Add -fno-builtin-memset. - Fix up dg-output regexps. - * c-c++-common/asan/strncpy-overflow-1.c: Fix up dg-output regexps. - * c-c++-common/asan/memcmp-1.c: Don't rely on argc being one. - * c-c++-common/asan/use-after-free-1.c: Fix up dg-output regexps. - * c-c++-common/asan/swapcontext-test-1.c: Don't rely on argc being - one. - * c-c++-common/asan/force-inline-opt0-1.c: Remove dg-skip-if. - * c-c++-common/asan/strip-path-prefix-1.c: Whitespace fixes. - Avoid unnecessary * sizeof(char). - -2012-12-12 Wei Mi - - * lib/target-supports.exp (check_effective_target_dlopen, - check_effective_target_clone, check_effective_target_setrlimit, - check_effective_target_swapcontext): New procedures. - * lib/gcc-dg.exp (${tool}_load): Handle dg-set-target-env-var. - (dg-set-target-env-var, set-target-env-var, - restore-target-env-var): New procedures. - (gcc-dg-runtest): Set set_target_env_var. - * g++.dg/asan/symbolize-callback-1.C: New test. - * g++.dg/asan/shared-lib-test-1-so.cc: New file. - * g++.dg/asan/deep-tail-call-1.C: New test. - * g++.dg/asan/default-options-1.C: New test. - * g++.dg/asan/interception-test-1.C: New test. - * g++.dg/asan/dlclose-test-1-so.cc: New file. - * g++.dg/asan/deep-thread-stack-1.C: New test. - * g++.dg/asan/interception-malloc-test-1.C: New test. - * g++.dg/asan/deep-stack-uaf-1.C: New test. - * g++.dg/asan/large-func-test-1.C: New test. - * g++.dg/asan/interception-failure-test-1.C: New test. - * c-c++-common/asan/strip-path-prefix-1.c: New test. - * c-c++-common/asan/force-inline-opt0-1.c: New test. - * c-c++-common/asan/swapcontext-test-1.c: New test. - * c-c++-common/asan/null-deref-1.c: New test. - * c-c++-common/asan/global-overflow-1.c: New test. - * c-c++-common/asan/strncpy-overflow-1.c: New test. - * c-c++-common/asan/rlimit-mmap-test-1.c: New test. - * c-c++-common/asan/stack-overflow-1.c: New test. - * c-c++-common/asan/use-after-free-1.c: New test. - * c-c++-common/asan/sanity-check-pure-c-1.c: New test. - * c-c++-common/asan/clone-test-1.c: New test. - * c-c++-common/asan/heap-overflow-1.c: New test. - * c-c++-common/asan/sleep-before-dying-1.c: New test. - -2012-12-12 Steve Ellcey - - * gcc.dg/pr55150-2.c: Add pic support check. - * gcc.dg/lto/pr54709_0.c: Ditto. - -2012-12-12 Zdenek Dvorak - - PR tree-optimization/55481 - * gcc.dg/torture/pr55481.c: New testcase. - -2012-12-12 Steven Bosscher - Jakub Jelinek - - PR middle-end/52640 - * gcc.c-torture/compile/limits-externdecl.c: New test. - -2012-12-12 Jakub Jelinek - - * gfortran.dg/vect/fast-math-pr38968.f90: Decrease n - from 2000 to 400. - - PR fortran/55633 - * gcc.dg/torture/pr55633.c: New test. - -2012-12-11 Marc Glisse - - PR c++/53094 - * g++.dg/cpp0x/constexpr-53094-1.C: New testcase. - * g++.dg/cpp0x/constexpr-53094-2.C: Likewise. - * g++.dg/cpp0x/constexpr-53094-3.C: Likewise. - -2012-12-11 Jakub Jelinek - - PR c++/55643 - * g++.dg/warn/Wunused-var-19.C: New test. - - * g++.dg/asan/asan_test.C: Link -lasan before -lpthread. - -2012-12-11 Eric Botcazou - - * gcc.dg/pr54121.c: New test. - -2012-12-11 Jakub Jelinek - - PR c++/55619 - * g++.dg/ext/asm12.C: New test. - - PR tree-optimization/54570 - * gcc.dg/builtin-object-size-8.c: Xfail. - * gcc.dg/builtin-object-size-13.c: New test. - -2012-12-11 Kyrylo Tkachov - - PR target/55642 - * gcc.target/arm/pr55642.c: New testcase. - -2012-12-11 Jakub Jelinek - - PR middle-end/43631 - PR bootstrap/55615 - * g++.dg/other/pr43631.C: New test. - -2012-12-11 Richard Biener - - PR tree-optimization/55079 - * gcc.dg/Warray-bounds-9.c: New testcase. - * gcc.dg/Warray-bounds-10.c: Likewise. - * gcc.dg/tree-ssa/ssa-pre-1.c: Adjust. - -2012-12-10 Janus Weil - - PR fortran/52909 - * gfortran.dg/proc_ptr_39.f90: New test case. - -2012-12-10 Richard Sandiford - - * gcc.target/mips/octeon-bbit-2.c: Restructure loops so that no - code duplication is required. Allow BNE to appear. - -2012-12-10 Richard Sandiford - - * gcc.target/mips/ext-2.c: Require -mlong64. - -2012-12-10 Richard Biener - - PR tree-optimization/55107 - * gcc.dg/torture/pr55107.c: New testcase. - * gcc.dg/tree-ssa/ssa-pre-5.c: Adjust. - -2012-12-10 Jakub Jelinek - - * g++.dg/asan/asan_test.cc: Sync from upstream. - * g++.dg/asan/asan_test_utils.h: Likewise. - -2012-12-10 Kyrylo Tkachov - - * gcc.target/arm/neon/vrndaf32.c: New test. - * gcc.target/arm/neon/vrndqaf32.c: Likewise. - * gcc.target/arm/neon/vrndf32.c: Likewise. - * gcc.target/arm/neon/vrndqf32.c: Likewise. - * gcc.target/arm/neon/vrndmf32.c: Likewise. - * gcc.target/arm/neon/vrndqmf32.c: Likewise. - * gcc.target/arm/neon/vrndnf32.c: Likewise. - * gcc.target/arm/neon/vrndqnf32.c: Likewise. - * gcc.target/arm/neon/vrndpf32.c: Likewise. - * gcc.target/arm/neon/vrndqpf32.c: Likewise. - -2012-12-09 John David Anglin - - * gcc.misc-tests/gcov-12.c: Fix dg order. - - PR middle-end/54470 - * gcc.dg/ipa/iinline-4.c: xfail hooray4 test on 32-bit hppa*-*-*. - - * gcc.dg/torture/pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if" - for *-*-hpux10*. - - * gcc.dg/20030711-1.c: Define MAP_FAILED if not defined. - * gcc.dg/20050826-1.c: Likewise. - -2012-12-09 Eric Botcazou - - * gnat.dg/vect9.adb: Add -w to dg-options. - * gnat.dg/vect10.adb: Likewise. - -2012-12-09 Thomas Koenig - - PR fortran/55593 - * gfortran.dg/do_check_8.f90: New test. - -2012-12-08 Eric Botcazou - - * gnat.dg/vect10.ad[sb]: New test. - -2012-12-08 Eric Botcazou - - * gnat.dg/vect9.ad[sb]: New test. - * gnat.dg/vect9_pkg.ads: New helper. - -2012-12-07 Mike Stump - - * gnat.dg/discr38.adb: Don't use ^M line endings. - gnat.dg/loop_optimization13.adb: Likewise. - gnat.dg/loop_optimization13.ads: Likewise. - gnat.dg/discr36_pkg.adb: Likewise. - gnat.dg/discr36_pkg.ads: Likewise. - gnat.dg/loop_optimization11_pkg.ads: Likewise. - gnat.dg/discr36.ads: Likewise. - gnat.dg/loop_optimization11.adb: Likewise. - -2012-12-07 Vladimir Makarov - - PR rtl-optimization/55141 - * gcc.target/i386/pr55141.c: New. - -2012-12-07 Dodji Seketeli - - PR c++/54401 - * g++.dg/cpp0x/alias-decl-28.C: New test. - * g++.dg/cpp0x/alias-decl-16.C: Update. - -2012-12-07 Martin Jambor - - PR tree-optimization/55590 - * gcc.target/i386/pr55590-1.c: New test. - * gcc.target/i386/pr55590-2.c: Likewise. - -2012-12-07 Paolo Carlini - - PR c++/54975 - * g++.dg/cpp0x/lambda/lambda-typedef.C: New. - -2012-12-06 Uros Bizjak - - PR target/55597 - * gcc.target/i386/pr55597.c: New test. - -2012-12-06 Jakub Jelinek - - PR c++/54207 - * g++.dg/cpp0x/noexcept18.C: New test. - - PR c++/55573 - * g++.dg/cpp0x/constexpr-55573.C: New test. - - PR c++/55137 - * g++.dg/opt/pr55137.C: New test. - * gcc.c-torture/execute/pr55137.c: New test. - -2012-12-06 Kyrylo Tkachov - - * lib/target-supports.exp (check_effective_target_arm_v8_neon_ok): - New procedure. - (add_options_for_arm_v8_neon): Likewise. - -2012-12-05 Steven Bosscher - - * g++.dg/pr55604.C: New test. - -2012-12-05 James Greenhalgh - - * lib/target-supports.exp - (check_effective_target_vect_perm): Allow aarch64*-*-*. - (check_effective_target_vect_perm_byte): Likewise. - (check_effective_target_vect_perm_short): Likewise. - (check_effective_target_vect_char_mult): Likewise. - (check_effective_target_vect_extract_even_odd): Likewise. - (check_effective_target_vect_interleave): Likewise. - -2012-12-05 Yufeng Zhang - - * g++.dg/abi/mangle-neon-aarch64.C: New test. - -2012-12-05 Yufeng Zhang - - * g++.dg/abi/arm_va_list.C: Also test on aarch64*-*-*. - -2012-12-05 James Greenhalgh - - * gcc.dg/vect/vect-rounding-btrunc.c: New test. - * gcc.dg/vect/vect-rounding-btruncf.c: Likewise. - * gcc.dg/vect/vect-rounding-ceil.c: Likewise. - * gcc.dg/vect/vect-rounding-ceilf.c: Likewise. - * gcc.dg/vect/vect-rounding-floor.c: Likewise. - * gcc.dg/vect/vect-rounding-floorf.c: Likewise. - * gcc.dg/vect/vect-rounding-lceil.c: Likewise. - * gcc.dg/vect/vect-rounding-lfloor.c: Likewise. - * gcc.dg/vect/vect-rounding-nearbyint.c: Likewise. - * gcc.dg/vect/vect-rounding-nearbyintf.c: Likewise. - * gcc.dg/vect/vect-rounding-round.c: Likewise. - * gcc.dg/vect/vect-rounding-roundf.c: Likewise. - * target-supports.exp - (check_effective_target_vect_call_btrunc): New. - (check_effective_target_vect_call_btruncf): Likewise. - (check_effective_target_vect_call_ceil): Likewise. - (check_effective_target_vect_call_ceilf): Likewise. - (check_effective_target_vect_call_floor): Likewise. - (check_effective_target_vect_call_floorf): Likewise. - (check_effective_target_vect_call_lceil): Likewise. - (check_effective_target_vect_call_lfloor): Likewise. - (check_effective_target_vect_call_nearbyint): Likewise. - (check_effective_target_vect_call_nearbyintf): Likewise. - (check_effective_target_vect_call_round): Likewise. - (check_effective_target_vect_call_roundf): Likewise. - -2012-12-05 Richard Biener - - PR tree-optimization/51238 - * gcc.dg/torture/pr51238.c: New testcase. - -2012-12-05 Richard Biener - - PR tree-optimization/50222 - * gcc.dg/torture/pr50222.c: New testcase. - -2012-12-05 Richard Biener - - PR lto/55525 - * gcc.dg/lto/pr55525_0.c: New testcase. - * gcc.dg/lto/pr55525_1.c: Likewise. - -2012-12-04 Tobias Burnus - - * gfortran.dg/quad_3.f90: Really fix an if condition. - -2012-12-04 Tobias Burnus - - * gfortran.dg/quad_3.f90: Fix a condition, - which wrongly required ordered/lazy evaluation. - -2012-12-04 Marcus Shawcroft - - * gcc.target/aarch64/121127.c: New test. - -2012-12-04 Jakub Jelinek - - PR testsuite/55587 - * lib/asan-dg.exp (asan_init): Return 1 if libasan has been found, - 0 if not. - * g++.dg/asan/asan.exp: Don't run gcc-dg-runtest if [asan_init] - returned 0. - * gcc.dg/asan/asan.exp: Likewise. - -2012-12-04 Richard Biener - - PR tree-optimization/55124 - * gcc.dg/torture/pr55124.c: New testcase. - -2012-12-03 Tobias Burnus - - * gfortran.dg/quad_3.f90: New. - -2012-12-03 Paolo Carlini - - PR c++/54170 - * g++.dg/cpp0x/lambda/lambda-nullptr.C: New. - -2012-12-03 Jakub Jelinek - - PR testsuite/55452 - * gfortran.dg/reassoc_4.f: Use --param max-completely-peeled-insns=400 - on all targets, not just s390*. - -2012-12-03 Marek Polacek - - PR c/55570 - * gcc.dg/pr55570.c: New test. - -2012-12-03 Jakub Jelinek - - * lib/asan-dg.exp (asan_get_gtest_test_list, - asan_get_gtest_expect_death_list, asan-gtest): New procedures. - (proc ${tool}_load): Remember [asan_get_gtest_test_list "$output"] - and [asan_get_gtest_expect_death_list "$output"] in global vars. - (asan_symbolize): Sanitize [] characters from key. - * g++.dg/asan/asan_test_config.h: New file. - * g++.dg/asan/asan_globals_test.cc: New file. - * g++.dg/asan/asan_test_utils.h: New file. - * g++.dg/asan/dejagnu-gtest.h: New file. - * g++.dg/asan/asan_test.cc: New file. - * g++.dg/asan/asan_test.C: New test. - -2012-12-03 Richard Biener - - * gcc.dg/torture/pr35634.c: Use signed char. - * g++.dg/torture/pr35634.C: Likewise. - -2012-12-02 Marek Polacek - - PR middle-end/54838 - * gcc.dg/pr54838.c: New test. - -2012-12-01 Xinliang David Li - - * gcc.target/i386/ifcvt-onecmpl-abs-1.c: Check for - cltd. - -2012-12-01 Paolo Carlini - - PR c++/55558 - * g++.dg/cpp0x/decltype46.C: New. - -2012-12-01 John David Anglin - - PR middle-end/52450 - * gcc.dg/torture/pr52402.c: Remove xfail for hppa*-*-hpux*. - -2012-12-01 Zdenek Sojka - - PR debug/53860 - * g++.dg/debug/pr53860.C: New test. - -2012-12-01 Alessandro Fanfarillo - Paul Thomas - - PR fortran/46897 - * gfortran.dg/defined_assignment_1.f90: New test. - * gfortran.dg/defined_assignment_2.f90: New test. - * gfortran.dg/defined_assignment_3.f90: New test. - * gfortran.dg/defined_assignment_4.f90: New test. - * gfortran.dg/defined_assignment_5.f90: New test. - -2012-12-01 Jakub Jelinek - - PR c++/55542 - * g++.dg/cpp0x/vt-55542.C: New test. - -2012-11-30 Eric Botcazou - - * gnat.dg/specs/pack9.ads: New test. - -2012-11-30 Martin Jambor - - PR middle-end/52890 - PR tree-optimization/55415 - PR tree-optimization/54386 - PR target/55448 - * gcc.dg/ipa/ipa-sra-7.c: New test. - * gcc.dg/ipa/ipa-sra-8.c: Likewise. - * gcc.dg/ipa/ipa-sra-9.c: Likewise. - * gcc.target/i386/pr55448.c: Likewise. - -2012-11-29 Eric Botcazou - - * loop_optimization14.ad[sb]: New test. - * loop_optimization14_pkg.ads: New helper. - -2012-11-29 Richard Earnshaw - - PR target/55073 - * gcc.target/arm/pr55073.C: New test. - -2012-11-29 Marc Glisse - - PR c++/53094 - * g++.dg/ext/vector20.C: New testcase. - -2012-11-28 Tobias Burnus - - PR fortran/52161 - * coarray/sync_3.f90: Extend test. - -2012-11-29 Jakub Jelinek - - PR rtl-optimization/55512 - * gcc.target/i386/pr55512-2.c: Remove unnecessary define. - * gcc.target/i386/pr55512-4.c: Likewise. - -2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> - - PR c++/52654 - * g++.dg/cpp0x/udlit-overflow.C: New. - * g++.dg/cpp0x/udlit-overflow-neg.C: New. - -2012-11-28 Jakub Jelinek - - PR debug/36728 - PR debug/55467 - PR middle-end/55507 - PR bootstrap/55511 - * gcc.dg/guality/pr36728-1.c: Include "../nop.h", make sure the asm - are non-empty and add dependency between the first and second asm. - * gcc.dg/guality/pr36728-2.c: Likewise. - * gcc.dg/guality/pr36728-3.c: New test. - * gcc.dg/guality/pr36728-4.c: New test. - -2012-11-28 Andrew Pinski - - PR bootstrap/54279 - * lib/g++.exp (g++_init): Search for xg++ instead of g++ in the build - directories. - * lib/obj-c++.exp (obj-c++_init): Likewise. - -2012-11-28 Tobias Burnus - - PR fortran/52161 - * coarray/sync_3.f90: New. - -2012-11-28 Uros Bizjak - - * gcc.target/i386/pr55458.c: Require ia32 target instead of ilp32. - -2012-11-28 Vladimir Makarov - - PR rtl-optimization/55512 - * gcc.target/i386/pr55512-[1234].c: New tests. - -2012-11-28 Jakub Jelinek - - PR testsuite/55505 - * gcc.c-torture/execute/921202-1.c: Increase size of dx and dy arrays. - - PR testsuite/55504 - * gcc.c-torture/execute/20071018-1.c (foo): Add noinline/noclone - attributes. Avoid clobbering memory before malloced chunk. - (main): Pass 1 instead of 0 as argument. - -2012-11-28 Eric Botcazou - - * gnat.dg/object_overflow.adb: Rename to... - * gnat.dg/object_overflow1.adb: ...this. - * gnat.dg/object_overflow2.adb: New test. - * gnat.dg/object_overflow3.adb: Likewise. - * gnat.dg/object_overflow4.adb: Likewise. - -2012-11-28 Paolo Carlini - - PR c++/55497 - * g++.dg/init/pr55497.C: New. - -2012-11-28 Richard Biener - - PR testsuite/55327 - * gcc.dg/vect/slp-perm-8.c: Mark worker as noinline. - * gcc.dg/vect/slp-perm-9.c: Likewise. - -2012-11-28 Richard Biener - - PR c/35634 - * gcc.dg/torture/pr35634.c: New testcase. - * g++.dg/torture/pr35634.C: Likewise. - * gcc.dg/vect/pr18536.c: Mark worker function noinline. - -2012-11-27 Tobias Burnus - - PR fortran/55476 - * gfortran.dg/warn_target_lifetime_3.f90: New. - -2012-11-27 Vladimir Makarov - - PR rtl-optimization/55458 - * gcc.target/i386/pr55458.c: New test. - -2012-11-27 Jakub Jelinek - - PR tree-optimization/55110 - * gcc.dg/pr55110.c: New test. - -2012-11-27 Richard Biener - - PR middle-end/55331 - * g++.dg/opt/pr55331.C: New testcase. - -2012-11-26 Steven Bosscher - - * gcc.dg/20050811-2.c: Change -dv option to -graph option. - -2012-11-26 Georg-Johann Lay - - * gcc.dg/54455.c: Require scheduling. - * gcc.dg/c1x-align-4.c: Skip avr. - * gcc.dg/pr44024.c: Skip avr in final scan. - -2012-11-26 Georg-Johann Lay - - PR testsuite/52641 - * gcc.c-torture/execute/20120919-1.x: New file (int32plus). - * gcc.dg/pr54676.c: Make work for 16-bit int. - -2012-11-26 Vladimir Makarov - - PR target/55277 - * gcc.target/i386/pr55227.c: New test. - -2012-11-26 Steven Bosscher - - * testsuite/gcc.dg/20050811-1.c: Change -dv option to -graph option - to -fdump-rtl-all. - * testsuite/gcc.dg/pr37858.c: Remove -dv option. - -2012-11-26 Kyrylo Tkachov - - * lib/target-supports.exp (check_effective_target_arm_v8_vfp_ok): - New procedure. - (add_options_for_arm_v8_vfp): New procedure. - * gcc.target/arm/vrintaf32.c: New test. - * gcc.target/arm/vrintaf64.c: Likewise. - * gcc.target/arm/vrintmf32.c: Likewise. - * gcc.target/arm/vrintmf64.c: Likewise. - * gcc.target/arm/vrintpf32.c: Likewise. - * gcc.target/arm/vrintpf64.c: Likewise. - * gcc.target/arm/vrintrf32.c: Likewise. - * gcc.target/arm/vrintrf64.c: Likewise. - * gcc.target/arm/vrintxf32.c: Likewise. - * gcc.target/arm/vrintxf64.c: Likewise. - * gcc.target/arm/vrintzf32.c: Likewise. - * gcc.target/arm/vrintzf64.c: Likewise. - -2012-11-26 Janus Weil - - PR fortran/54997 - * gfortran.dg/warn_unused_function_2.f90: New. - -2012-11-26 Janus Weil - - PR fortran/54881 - * gfortran.dg/associated_6.f90: New. - * gfortran.dg/select_type_30.f03: New. - -2012-11-26 Jakub Jelinek - - PR tree-optimization/54471 - * gcc.dg/tree-ssa/vrp86.c: New test. - * gcc.c-torture/execute/pr54471.c: New test. - -2012-11-26 Hans-Peter Nilsson - - PR middle-end/55030 - * gcc.dg/guality/pr36728-1.c, gcc.dg/guality/pr36728-2.c (foo): Don't - use volatile asms, use plain asms. Where the output value for the - asm is unused, write a global variable. - -2012-11-25 Uros Bizjak - - * gcc.target/i386/sw-1.c (dg-options): Add -mtune=generic. - -2012-11-25 Thomas Koenig - - PR fortran/30146 - * gfortran.dg/do_check_7.f90: New test. - -2012-11-24 Paolo Carlini - - PR c++/55446 - * g++.dg/init/new41.C: New. - -2012-11-24 Thomas Koenig - - PR fortran/55314 - * gfortran.dg/allocate_error_4.f90: New test. - -2012-11-24 Hans-Peter Nilsson - - * lib/gcc-gdb-test.exp (gdb-test): Pass -- as first argument - to send_log. - -2012-11-23 Jakub Jelinek - - * lib/asan-dg.exp (asan_symbolize): Remove all "BFD: " prefixed lines - from the output. - - PR c++/54046 - * g++.dg/warn/Wreturn-type-8.C: New test. - - PR middle-end/55430 - * gcc.dg/pr55430.c: New test. - -2012-11-23 Kostya Serebryany - - * c-c++-common/asan/memcmp-1.c: Update to match the new libsanitizer. - -2012-11-23 Eric Botcazou - - * gnat.dg/discr40.ad[sb]: New test. - -2012-11-23 Eric Botcazou - - * gnat.dg/discr39.adb: New test. - -2012-11-23 Georg-Johann Lay - - PR testsuite/52641 - * gcc.dg/unroll_5.c: Add dg-require-effective-target int32plus. - * gcc.dg/pr55150-1.c: Same. - * gcc.dg/torture/pr54894.c: Add size32plus. - -2012-11-23 Jakub Jelinek - - PR sanitizer/55435 - * c-c++-common/asan/attrib-1.c: New test. - -2012-11-22 Ian Bolton - - * gcc.target/aarch64/builtin-bswap-1.c: New test. - * gcc.target/aarch64/builtin-bswap-2.c: New test. - -2012-11-22 Paolo Carlini - - PR c++/55432 - * g++.dg/cpp0x/constexpr-55432.C: New. - -2012-11-21 Janus Weil - - PR fortran/55352 - * gfortran.dg/namelist_76.f90: New. - -2012-11-21 Martin Jambor - - * gcc.dg/ipa/ipcp-agg-7.c: New test. - * gcc.dg/ipa/ipcp-agg-8.c: Likewise. - -2012-11-21 Martin Jambor - - PR tree-optimization/55260 - * g++.dg/torture/pr55260-2.C: New test. - -2012-11-21 Martin Jambor - - * gcc.dg/torture/pr55238.c: Remove hidden attribute. - -2012-11-21 Bin Cheng - - * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Skip on ARM Cortex-M0. - * gcc.dg/tree-ssa/vrp47.c: Ditto. - -2012-11-20 Uros Bizjak - - PR target/19398 - * gcc.target/i386/pr19398.c: New test. - -2012-11-20 Martin Jambor - - PR tree-optimization/55260 - * g++.dg/torture/pr55260-1.C: New test. - -2012-11-20 Sofiane Naci - - * gcc.target/aarch64/atomic-comp-swap-release-acquire.c: New testcase. - * gcc.target/aarch64/atomic-op-acq_rel.c: Likewise. - * gcc.target/aarch64/atomic-op-acquire.c: Likewise. - * gcc.target/aarch64/atomic-op-char.c: Likewise. - * gcc.target/aarch64/atomic-op-consume.c: Likewise. - * gcc.target/aarch64/atomic-op-imm.c: Likewise. - * gcc.target/aarch64/atomic-op-int.c: Likewise. - * gcc.target/aarch64/atomic-op-long.c: Likewise. - * gcc.target/aarch64/atomic-op-relaxed.c: Likewise. - * gcc.target/aarch64/atomic-op-release.c: Likewise. - * gcc.target/aarch64/atomic-op-seq_cst.c: Likewise. - * gcc.target/aarch64/atomic-op-short.c: Likewise. - -2012-11-20 Jakub Jelinek - - PR middle-end/55094 - * gcc.dg/pr55094.c: New test. - - PR rtl-optimization/54921 - * gcc.dg/pr54921.c: New test. - -2012-11-19 Richard Sandiford - - * gcc.target/i386/pr55359.c: New test. - -2012-11-19 Eric Botcazou - - * g++.dg/tls/thread_local-order1.C: Add dg-require-cxa-atexit. - * g++.dg/tls/thread_local3g.C: Likewise. - * g++.dg/tls/thread_local4g.C: Likewise. - * g++.dg/tls/thread_local5g.C: Likewise. - * g++.dg/tls/thread_local6g.C: Likewise. - * g++.dg/tls/thread_local-cse.C: XFAIL on Solaris 9. - * g++.dg/tls/thread_local2.C: Likewise. - * g++.dg/tls/thread_local2g.C: Likewise. - * g++.dg/tls/thread_local6.C: Likewise. - -2012-11-19 Aldy Hernandez - - * g++.dg/tm/pr51516.C: Adjust for uninstrumented code path. - * gcc.dg/tm/clone-1.c: New test. - -2012-11-19 Paolo Carlini - - PR c++/55368 - * g++.dg/parse/struct-5.C: New. - -2012-11-19 Tom de Vries - - PR rtl-optimization/55315 - * gcc.target/mips/pr55315.c: New test. - -2012-11-17 Jakub Jelinek - - PR tree-optimization/55236 - * gcc.dg/pr55236.c: New test. - - PR testsuite/55188 - * gcc.dg/pr19105.c: Accept also optimizing - -[2, 2] and -[3, 3] and -[4, 4] range tests together. - - * lib/asan-dg.exp (asan_symbolize): Prune BFD: prefixed error messages - from addr2line_output. Increment idx if asking for more than one - address in one object. - -2012-11-16 Jakub Jelinek - - PR tree-optimization/55329 - * g++.dg/opt/pr55329.C: New test. - -2012-11-16 Janus Weil - - PR fortran/55297 - * gfortran.dg/typebound_operator_18.f90: New. - -2012-11-16 Vladimir Makarov - - PR rtl-optimization/55330 - * gfortran.dg/pr55330.f90: New test. - -2012-11-16 Uros Bizjak - - * lib/gcc-dg.exp (cleanup-saved-temps): Add .mii to suffixes. - * gcc.dg/hoist-register-pressure-1.c: Cleanup hoist rtl dump. - * gcc.dg/hoist-register-pressure-2.c: Ditto. - * gcc.dg/hoist-register-pressure-3.c: Ditto. - * gcc.dg/tree-prof/peel-1.c: Cleanup loop2_unroll rtl dump. - * gcc.dg/tree-prof/unroll-1.c: Ditto. - -2012-11-16 Dodji Seketeli - - PR c++/54875 - * g++.dg/cpp0x/alias-decl-27.C: New test. - -2012-11-16 Jakub Jelinek - - PR c++/55337 - * g++.dg/template/alignof2.C: New test. - -2012-11-16 Uros Bizjak - - * g++.dg/mv1.C (dg-options): Add -march=x86-64. - * g++.dg/mv6.C (dg-options): Ditto. - -2012-11-16 Uros Bizjak - - * lib/target_suports.exp - (check_effective_target_has_w_floating_suffix): New procedure. - (check_effective_target_has_q_floating_suffix): Ditto. - * g++.dg/cpp0x/gnu_fext-numeric-literals.C: Add dg-error directive - for unsupported non-standard suffix on floating constant. - * g++.dg/cpp0x/std_fext-numeric-literals.C: Ditto. - -2012-11-14 Jakub Jelinek - - * lib/asan-dg.exp: New file. - * gcc.dg/asan/asan.exp: New file. - * g++.dg/dg.exp: Prune also asan tests. - * g++.dg/asan/asan.exp: New file. - * c-c++-common/asan/memcmp-1.c: New test. - -2012-11-14 Paolo Carlini - - PR c++/55323 - * g++.dg/cpp0x/vt-55323.C: New. - -2012-11-13 Sriraman Tallam - - * g++.dg/mv4.C: Add require ifunc. Change error message. - * g++.dg/mv5.C: Add require ifunc. - * g++.dg/mv6.C: Add require ifunc. - -2012-11-13 Martin Jambor - - PR tree-optimization/55253 - * gcc.dg/torture/pr55253.c: New test. - * gcc.dg/torture/pr55305.c: Likewise. - -2012-11-13 H.J. Lu - - PR middle-end/55142 - * gcc.target/i386/pr55142-1.c: New file. - * gcc.target/i386/pr55142-2.c: Likewise. - -2012-11-13 Dodji Seketeli - - PR c++/54466 - * g++.dg/cpp0x/alias-decl-26.C: New test file. - -2012-11-13 H.J. Lu - - * gcc.target/i386/avx256-unaligned-load-2.c: Requre !ia32 - instead of lp64. - * gcc.target/i386/avx256-unaligned-store-2.c: Likewise. - * gcc.target/i386/pr49715-2.c: Likewise. - * gcc.target/i386/retarg.c: Likewise. Scan both %rdi and %edi. - -2012-11-13 Jakub Jelinek - - PR tree-optimization/55281 - * gcc.dg/vect/fast-math-pr55281.c: New test. - * g++.dg/opt/pr55281.C: New test. - - PR rtl-optimization/54127 - * gcc.dg/torture/pr54127.c: New test. - -2012-11-12 Steven Bosscher - Jakub Jelinek - - PR rtl-optimization/51447 - * gcc.c-torture/execute/pr51447.c: New test. - -2012-11-12 Ian Bolton - - * gcc.target/aarch64/csinc-2.c: New test. - -2012-11-12 Ian Bolton - - * gcc.target/aarch64/cmn.c: New test. - * gcc.target/aarch64/adds.c: New test. - * gcc.target/aarch64/subs.c: New test. - -2012-11-12 Tobias Burnus - - PR fortran/55272 - * gfortran.dg/coarray_29_1.f90: New. - * gfortran.dg/coarray_29_2.f90: New. - -2012-11-12 Bin Cheng - - * gcc.dg/hoist-register-pressure-3.c: New test. - -2012-11-11 Oleg Endo - - * gcc.target/sh/sh4a-fprun.c: Add test_sinf and test_cosf noinline - wrappers around sinf and cosf. - -2012-11-11 H.J. Lu - - PR middle-end/55247 - PR middle-end/55259 - * gcc.target/i386/pr55247-2.c: New file. - -2012-11-11 Steven Bosscher - - PR middle-end/55263 - * g++.dg/pr55263.C: New test. - -2012-11-11 Martin Jambor - - PR tree-optimization/55238 - * testsuite/gcc.dg/torture/pr55238.c: New test. - -2012-11-11 John David Anglin - - * gcc.dg/torture/pr54920.c: Add "-fno-common" option on hppa*-*-hpux*. - * c-c++-common/torture/vector-subscript-1.c: Likewise. - * c-c++-common/torture/vector-subscript-2.c: Likewise. - -2012-11-10 Jan Hubicka - - * gcc.dg/tree-ssa/cunroll-1.c: Fix bogus testcase. - -2012-11-10 H.J. Lu - - * gcc.target/i386/pr55247.c: Require maybe_x32 target. Add - -mno-sse -mno-mmx to dg-options. Reformat. - -2012-11-10 David Edelsohn - - * c-c++-common/scal-to-vec2.c: Ignore non-standard ABI message. - * c-c++-common/vector-compare-1.c: Same. - * c-c++-common/vector-compare-2.c: Same. - * g++.dg/other/unused1.C: Skip on AIX. - * g++.dg/other/anon5.C: Allow Undefined to be capitalized. Ignore - extra message on AIX. - -2012-11-10 Uros Bizjak - - PR target/55247 - * gcc.target/i386/pr55247.c: New test. - -2012-11-09 Andrew Pinski - - * gcc.c-torture/execute/20121108-1.c: New test. - -2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> - - PR c++/54413 - * g++.dg/cpp0x/gnu_fext-numeric-literals.C: New. - * g++.dg/cpp0x/std_fext-numeric-literals.C: New. - * g++.dg/cpp0x/gnu_fno-ext-numeric-literals.C: New. - * g++.dg/cpp0x/std_fno-ext-numeric-literals.C: New. - -2012-11-09 Siddhesh Poyarekar - - * gcc.dg/Warray-bounds-3.c (bar): Keep array access within - bounds for ABDAY, DAY, ABMON, MON, AM_PM. - * gcc.dg/vect/pr22506.c (foo): Reduce loop iterations to within - array bounds. - * gcc.dg/vect/pr34005.c (XdmcpUnwrap): Likewise. - -2012-11-09 Aldy Hernandez - - * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path. - * g++.dg/tm/pr47530.C: Same. - -2012-11-09 Jason Merrill - - PR c++/54859 - * g++.dg/cpp0x/alias-decl-25.C: New. - - * g++.dg/abi/abi-tag1.C: New. - * g++.dg/abi/abi-tag2.C: New. - -2012-11-09 Vladimir Makarov - - PR rtl-optimization/55154 - * gcc.target/i386/pr55154.c: New test. - -2012-11-09 Vladimir Makarov - - PR rtl-optimization/55151 - * gcc.dg/pr55151.c: Move ... - * gcc.target/i386/pr55151.c: ... here. - -2012-11-09 Andrey Belevantsev - - PR rtl-optimization/54472 - * gcc.dg/pr54472.c: New test. - -2012-11-09 Eric Botcazou - - * gnat.dg/stack_check3.ad[sb]: New test. - -2012-11-08 Ian Lance Taylor - - * go.test/go-test.exp (go-gc-tests): Handle runoutput test type - with arguments. Handle errorcheckoutput and rundir test types. - -2012-11-08 Steven Bosscher - - PR tree-optimization/55191 - * gcc.dg/pr55191.c: New test. - -2012-11-08 Jakub Jelinek - - PR debug/54499 - * g++.dg/debug/pr54499.C: New test. - -2012-11-08 Jan Hubicka - - PR middle-end/48636 - * gcc.dg/winline-3.c: Update. - -2012-11-08 Martin Jambor - - * gfortran.dg/ipcp-array-1.f90: New test. - -2012-11-08 Florian Weimer - - * g++.old-deja/g++.abi/cxa_vec.C: Fix typo in comment. - -2012-11-07 Vladimir Makarov - - PR rtl-optimization/55151 - * gcc.dg/pr55151.c: Use ia32 instead of x86_64. - -2012-11-07 Uros Bizjak - - * gcc.dg/tree-ssa/cunroll-1.c: Scan cunrolli dump. - -2012-11-07 Eric Botcazou - - * gcc.c-torture/compile/20121107-1.c: New test. - -2012-11-07 Vladimir Makarov - - PR rtl-optimization/55151 - * gcc.dg/pr55151.c: Compile it only for x86_64. - -2012-11-07 Vladimir Makarov - - PR rtl-optimization/55122 - * gcc.dg/pr55122.c: New test. - -2012-11-07 David Edelsohn - - * gcc.target/powerpc/pr46728-[1234578].c: Tighten regex to ignore - word powerpc. - * gcc.target/powerpc/vsx-mass-1.c: Escape [ and ] in regex. - * gcc.target/powerpc/loop_align.c: Skip on AIX. - * gcc.target/powerpc/ppc-pow.c: Allow dot symbols in branch. - * gcc.target/powerpc/tfmode_off.c: Skip on AIX. - -2012-11-07 Manuel LÁpez-IbÁÁez - - PR c/53063 - * gcc.dg/warn-nsstring.c: Use -Wformat explicitly. - -2012-11-07 Manuel LÁpez-IbÁÁez - - PR c/51294 - * c-c++-common/pr51294.c: New. - -2012-11-07 Martin Jambor - - PR tree-optimization/53787 - * gcc.dg/ipa/ipa-5.c: Adjust. - * gcc.dg/ipa/ipcp-agg-1.c: New test. - * gcc.dg/ipa/ipcp-agg-2.c: Likewise. - * gcc.dg/ipa/ipcp-agg-3.c: Likewise. - * gcc.dg/ipa/ipcp-agg-4.c: Likewise. - * gcc.dg/ipa/ipcp-agg-5.c: Likewise. - * gcc.dg/ipa/ipcp-agg-6.c: Likewise. - * gfortran.dg/pr48636.f90: Add -fno-ipa-cp. - * gfortran.dg/pr48636-2.f90: New test. - * gfortran.dg/pr53787.f90: Likewise. - -2012-11-07 Paolo Carlini - - PR c++/55226 - Revert: - 2012-10-23 Paolo Carlini - - PR c++/54922 - * g++.dg/cpp0x/constexpr-union4.C: New. - -2012-11-07 Yufeng Zhang - - * gcc.target/aarch64/dwarf-cfa-reg.c: New test. - -2012-11-07 Kaz Kojima - - PR target/49220 - * gcc.c-torture/compile/pr49220.c: New test. - -2012-11-07 Florian Weimer - - * g++.dg/init/new40.C: New. - -2012-11-07 Jakub Jelinek - - PR debug/54693 - * gcc.dg/guality/pr54693-2.c: New test. - -2012-11-06 Andrew Pinski - - * gcc.target/aarch64/vect-fmaxv-fminv-compile.c: Add - -fno-vect-cost-model. - -2012-11-06 Aldy Hernandez - - * c-c++-common/tm/trxn-expr-3.c: Adjust for uninstrumented code path. - * gcc.dg/tm/debug-1.c: Same. - * gcc.dg/tm/irrevocable-3.c: Same. - * gcc.dg/tm/irrevocable-4.c: Same. - * gcc.dg/tm/memopt-10.c: Same. - * gcc.dg/tm/memopt-11.c: Same. - * gcc.dg/tm/props-4.c: Same. - * gcc.dg/tm/wrap-3.c: Same. - * gcc.dg/tm/wrap-4.c: Same. - -2012-11-06 Andrew Pinski - - * g++.dg/abi/aarch64_guard1.C: Add -fno-section-anchors. - -2012-11-06 Jan Hubicka - - * gcc.dg/tree-ssa/loop-1.c: Make to look like a good unroling - candidate still. - * gcc.dg/tree-ssa/loop-23.c: Likewise. - * gcc.dg/tree-ssa/cunroll-1.c: Unrolling now happens early. - * gcc.dg/tree-prof/unroll-1.c: Remove confused dg-options. - -2012-11-06 David Edelsohn - - * const-uniq-1.c: Expand regex to match AIX XCOFF labels. - -2012-11-06 Uros Bizjak - - PR middle-end/41993 - * gcc.dg/torture/pr41993.c: New test. - -2012-11-06 Jan Hubicka - - * gcc.target/i386/l_fma_float_?.c: Update. - * gcc.target/i386/l_fma_double_?.c: Update. - -2012-11-06 Oleg Endo - - PR target/54089 - * gcc.target/sh/pr54089-8.c: New. - * gcc.target/sh/pr54089-9.c: New. - -2012-11-06 Vladimir Yakovlev - - PR target/47440 - * gcc.target/i386/avx-vzeroupper-5.c: Changed scan-assembler-times. - * gcc.target/i386/avx-vzeroupper-8.c: Likewise. - * gcc.target/i386/avx-vzeroupper-9.c: Likewise. - * gcc.target/i386/avx-vzeroupper-10.c: Likewise. - * gcc.target/i386/avx-vzeroupper-11.c: Likewise. - * gcc.target/i386/avx-vzeroupper-12.c: Likewise. - * gcc.target/i386/avx-vzeroupper-19.c: Likewis. - * gcc.target/i386/avx-vzeroupper-27.c: New. - -2012-11-06 Janus Weil - - PR fortran/54917 - * gfortran.dg/transfer_class_1.f90: New. - * gfortran.dg/transfer_class_2.f90: New. - -2012-11-05 Sriraman Tallam - - * testsuite/g++.dg/mv1.C: New test. - * testsuite/g++.dg/mv2.C: New test. - * testsuite/g++.dg/mv3.C: New test. - * testsuite/g++.dg/mv4.C: New test. - * testsuite/g++.dg/mv5.C: New test. - * testsuite/g++.dg/mv6.C: New test. - -2012-11-05 Hans-Peter Nilsson - - PR testsuite/55186 - * gcc.dg/const-uniq-1.c (a): Increase length four times. - -2012-11-05 Jack Howarth - - * gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on - darwin. - -2012-11-05 Eric Botcazou - - * g++.dg/torture/20121105-1.C: New test. - -2012-11-05 Andreas Schwab - - * gcc.dg/torture/fp-compare.c: New testcase. - -2012-11-05 Jan Hubicka - - * gcc.dg/const-1.c: Update. - * gcc.dg/pure-1.c: Update. - -2012-11-05 Vladimir Makarov - - PR rtl-optimization/55151 - * gcc.dg/pr55151.c: New test. - -2012-11-05 Jakub Jelinek - - PR debug/54970 - PR debug/54971 - * gcc.dg/guality/pr54970.c: Use NOP instead of "NOP" in inline-asm. - -2012-11-05 Uros Bizjak - - PR testsuite/51128 - * gcc.dg/torture/pr55018.c: Skip if -fno-fat-lto-objects was passed. - -2012-11-05 Jan Hubicka - - * gcc.dg/autopar/pr49960.c: Fix testcase. - -2012-11-05 Uros Bizjak - - * gcc.dg/tree-ssa/cunroll-9.c: Dump cunrolli details. - Fix scan-tree-dump-times directive. - -2012-11-04 Janus Weil - - PR fortran/55199 - * gfortran.dg/associate_12.f90: New. - -2012-11-03 Jack Howarth - - PR target/54255 - * lib/target-supports.exp (check_effective_target_masm_intel): New - proc. - * gcc.target/i386/asm-dialect-1.c: Use dg-require-effective-target - masm_intel. - -2012-11-03 H.J. Lu - Jack Howarth - - * lib/target-supports.exp (check_effective_target_maybe_x32): New proc. - * gcc.target/i386/pr54457.c: Use dg-require-effective-target maybe_x32. - * gcc.target/i386/pr53249.c: Likewise. - -2012-11-03 Andrew Pinski - - * gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to - call abort1 so that cross jumping does not happen. - -2012-11-03 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-18.c: New. - * gcc.target/sh/pr51244-19.c: New. - -2012-11-03 Richard Sandiford - - * gcc.target/mips/octeon-exts-7.c (bar): Make sure the extraction of - b requires a 64-bit operation followed by a truncation. - -2012-11-02 Jan Hubicka - - * gcc.dg/tree-ssa/loop-38.c: Correct testcase. - -2012-11-02 Michael Meissner - - * gcc.target/powerpc/pr48258-2.c: Simplfy the acceptance - conditions to verify the reduction code is vectorized. - - * gcc.target/powerpc/pr46728-1.c: Pass -fno-ident to eliminate failures - in case 'pow', such as 'powerpc' is used in the compiler version name. - * gcc.target/powerpc/pr46728-2.c: Likewise. - * gcc.target/powerpc/pr46728-3.c: Likewise. - * gcc.target/powerpc/pr46728-4.c: Likewise. - * gcc.target/powerpc/pr46728-5.c: Likewise. - * gcc.target/powerpc/pr46728-7.c: Likewise. - * gcc.target/powerpc/pr46728-8.c: Likewise. - * gcc/testsuite/gcc.dg/pr46728-6.c: Likewise. - -2012-11-02 Jan Hubicka - - * gcc.dg/tree-ssa/loop-38.c: New testcase. - -2012-11-02 Jan Hubicka - - * gcc.dg/tree-ssa/cunroll-10.c: New testcase. - * gcc.dg/tree-ssa/cunroll-9.c: New testcase. - -2012-11-02 Vladimir Makarov - - PR middle-end/55130 - * gcc.target/i386/pr55130.c: New test. - -2012-11-02 Jakub Jelinek - - PR target/55147 - * gcc.target/i386/pr55147.c: New test. - -2012-11-01 David Edelsohn - - * gfortran.dg/default_format_1.f90: XFAIL on AIX. - * gfortran.dg/default_format_denormal_1.f90: Same. - -2012-11-01 Marc Glisse - - PR middle-end/55001 - * g++.dg/ext/vector19.C: Remove target restrictions. - * gcc.dg/fold-compare-7.c: New testcase. - -2012-11-01 Oleg Endo - - PR target/55160 - * gcc.target/sh/pr55160.c: New. - -2012-11-01 David Edelsohn - - * gcc.target/powerpc/vsx-mass-1.c: Check for dot symbols in - scan-assembler regex. - -2012-11-01 Vladimir Makarov - - PR middle-end/55150 - * gcc.dg/pr55150.c: Rename to gcc.dg/pr55150-1.c. - * gcc.dg/pr55150-2.c: New test. - -2012-11-01 Sharad Singhai - - * testsuite/gcc.dg/plugin/selfassign.c: Add opgtroup_flags initializer. - * testsuite/gcc.dg/plugin/one_time_plugin.c: Likewise. - * testsuite/g++.dg/plugin/selfassign.c: Likewise. - * testsuite/g++.dg/plugin/dumb_plugin.c: Likewise. - -2012-10-31 Dehao Chen - - * g++.dg/debug/dwarf2/block.C: New testcase. - -2012-10-31 Jan Hubicka - - * gcc.dg/pr44974.c: Add noinline. - -2012-10-31 Janus Weil - - PR fortran/53718 - * gfortran.dg/class_54.f90: New. - -2012-10-31 Steven Bosscher - Jakub Jelinek - - PR tree-optimization/55018 - * gcc.dg/torture/pr55018.c: New test. - -2012-10-31 Paolo Carlini - - PR c++/54583 - * g++.dg/ext/vla13.C: New. - -2012-10-31 Vladimir Makarov - - PR middle-end/55150 - * gcc.dg/pr55150.c: New test. - -2012-10-31 Tobias Burnus - - PR fortran/55134 - * gfortran.dg/associate_11.f90: New. - -2012-10-31 Dodji Seketeli - - PR c++/54955 - * g++.dg/cpp0x/gen-attrs-48-2.C: New test. - -2012-10-31 Jakub Jelinek - - PR tree-optimization/19105 - PR tree-optimization/21643 - PR tree-optimization/46309 - * gcc.dg/pr19105.c: New test. - * gcc.dg/pr21643.c: New test. - * gcc.dg/pr46309-2.c: New test. - * gcc.c-torture/execute/pr46309.c: New test. - -2012-10-31 Alan Modra - - * gcc.target/powerpc/dimode_off.c: New. - * gcc.target/powerpc/timode_off.c: New. - * gcc.target/powerpc/dfmode_off.c: New. - * gcc.target/powerpc/tfmode_off.c: New. - -2012-10-30 H.J. Lu - - PR rtl-optimization/55093 - * gcc.target/i386/pr55093.c: New file. - -2012-10-30 H.J. Lu - - * gcc.target/i386/pr55116.c: Renamed to ... - * gcc.target/i386/pr55116-1.c: This. - -2012-10-30 H.J. Lu - - * gcc.target/i386/pr55116-2.c: New file. - -2012-10-30 Richard Biener - - * gcc.dg/vect/slp-perm-2.c: Adjust. - -2012-10-30 Richard Biener - - PR tree-optimization/55111 - * gcc.dg/torture/pr55111.c: New testcase. - -2012-10-30 Oleg Endo - - PR target/53988 - * gcc.target/sh/pr53988.c: New. - -2012-10-30 Bin Cheng - - PR target/54989 - * gcc.dg/hoist-register-pressure-1.c: Rename from - hoist-register-pressure.c. Add nonpic condition. - * gcc.dg/hoist-register-pressure-2.c: New testcase. - -2012-10-29 Jonathan Wakely - - PR c++/54930 - * gcc.dg/Wreturn-local-addr.c: New. - * g++.dg/warn/Wno-return-local-addr.C: New. - * g++.dg/warn/Wreturn-local-addr.C: New. - -2012-10-29 H.J. Lu - - PR middle-end/55116 - * gcc.target/i386/pr55116.c: New file. - -2012-10-29 Manuel LÁpez-IbÁÁez - - PR c/53066 - * gcc.dg/Wshadow-4.c: New. - * gcc.dg/Wshadow-4.h: New. - -2012-10-29 Alexandre Oliva - - PR debug/54693 - * gcc.dg/guality/pr54693.c: New. - -2012-10-29 Marc Glisse - - PR middle-end/55027 - * gcc.dg/pr55027.c: New testcase. - -2012-10-29 Jan Hubicka - - * gcc.dg/ipa/inline-6.c: New testcase. - -2012-10-29 Vladimir Makarov - - PR rtl-optimization/55106 - * g++.dg/pr55106.C: New. - -2012-10-29 Richard Guenther - - PR middle-end/53695 - * gcc.dg/torture/pr53695.c: New testcase. - -2012-10-28 Jan Hubicka - - * gcc.dg/ipa/inlinehint-3.c: New testcase. - -2012-10-28 Tobias Burnus - - PR fortran/54958 - * gfortran.dg/do_check_6.f90: New. - -2012-10-27 Dominique Dhumieres - Jack Howarth - - PR target/54404 - * g++.dg/other/darwin-cfstring1.C: Add -ftrack-macro-expansion=0 - to dg-options. - * obj-c++.dg/strings/const-cfstring-2.mm: Likewise. - -2012-10-27 Uros Bizjak - - PR target/34283 - * gcc.target/i386/pr34283.c: New test. - -2012-10-26 Jakub Jelinek - - PR c++/55081 - * g++.dg/opt/pr55081.C: New test. - - PR debug/54970 - PR debug/54971 - * gcc.dg/guality/pr54970.c: New test. - -2012-10-26 Paolo Carlini - - PR c++/54984 - * g++.dg/template/new11.C: New. - -2012-10-26 Richard Biener - - PR middle-end/54824 - * gcc.dg/torture/pr54824.c: New testcase. - -2012-10-26 Alexander Ivchenko - - * gcc.target/i386/fxsave-1.c: New. - * gcc.target/i386/fxsave64-1.c: Ditto. - * gcc.target/i386/fxrstor-1.c: Ditto. - * gcc.target/i386/fxrstor64-1.c: Ditto. - * gcc.target/i386/xsave-1.c: Ditto. - * gcc.target/i386/xsave64-1.c: Ditto. - * gcc.target/i386/xrstor-1.c: Ditto. - * gcc.target/i386/xrstor64-1.c: Ditto. - * gcc.target/i386/xsaveopt-1.c: Ditto. - * gcc.target/i386/xsaveopt64-1.c: Ditto. - * gcc.target/i386/sse-12.c: Add -mfxsr, -mxsaveopt. - * gcc.target/i386/sse-13.c: Ditto. - * gcc.target/i386/sse-14.c: Ditto. - * gcc.target/i386/sse-22.c: Ditto. - * gcc.target/i386/sse-23.c: Ditto. - * g++.dg/other/i386-2.C: Ditto. - * g++.dg/other/i386-3.C: Ditto. - -2012-10-25 Jan Hubicka - - * gcc.dg/tree-ssa/cunroll-4.c: Update; we now remove the loop - at ivcanon time. - -2012-10-25 Paolo Carlini - - PR c++/53761 - * g++.dg/ext/transparent-union.C: New. - -2012-10-25 Marc Glisse - - PR c++/54427 - * g++.dg/ext/vector19.C: New testcase. - -2012-10-25 Richard Biener - - PR tree-optimization/54902 - * g++.dg/torture/pr54902.C: New testcase. - -2012-10-25 Paolo Carlini - - PR c++/34892 - * g++.dg/template/crash114.C: New. - -2012-10-24 H.J. Lu - - PR bootstrap/55049 - * gcc.target/i386/pr55049-1.c: New test. - -2012-10-24 Janus Weil - - PR fortran/55037 - * gfortran.dg/class_dummy_4.f03: New. - -2012-10-24 Jakub Jelinek - - PR rtl-optimization/55010 - * gcc.dg/pr55010.c: New test. - - PR debug/54828 - * g++.dg/debug/pr54828.C: New test. - -2012-10-23 Dominique d'Humieres - - * gcc.dg/vect/vect-82_64.c: Adjust the dump file. - * gcc.dg/vect/vect-83_64.c: Likewise. - -2012-10-23 Paolo Carlini - - PR c++/54922 - * g++.dg/cpp0x/constexpr-union4.C: New. - -2012-10-23 Jeff Law - - * gcc.c-torture/execute/pr54985.c: New test. - -2012-10-23 Paul Koning - - PR debug/54508 - * g++.dg/debug/dwarf2/pr54508.C: New. - -2012-10-23 Jakub Jelinek - - PR c++/54844 - * g++.dg/template/sizeof14.C: New test. - -2012-10-23 Ian Bolton - Jim MacArthur - Chris Schlumberger-Socha - Marcus Shawcroft - Nigel Stephens - Ramana Radhakrishnan - Richard Earnshaw - Sofiane Naci - Stephen Thomas - Tejas Belagod - Yufeng Zhang - - * lib/target-supports.exp - (check_profiling_available): Add AArch64. - (check_effective_target_vect_int): Likewise. - (check_effective_target_vect_shift): Likewise. - (check_effective_target_vect_float): Likewise. - (check_effective_target_vect_double): Likewise. - (check_effective_target_vect_widen_mult_qi_to_hi): Likewise. - (check_effective_target_vect_widen_mult_hi_to_si): Likewise. - (check_effective_target_vect_pack_trunc): Likewise. - (check_effective_target_vect_unpack): Likewise. - (check_effective_target_vect_hw_misalign): Likewise. - (check_effective_target_vect_short_mult): Likewise. - (check_effective_target_vect_int_mult): Likewise. - (check_effective_target_vect_stridedN): Likewise. - (check_effective_target_sync_int_long): Likewise. - (check_effective_target_sync_char_short): Likewise. - (check_vect_support_and_set_flags): Likewise. - (check_effective_target_aarch64_tiny): New. - (check_effective_target_aarch64_small): New. - (check_effective_target_aarch64_large): New. - * g++.dg/other/PR23205.C: Enable aarch64. - * g++.dg/other/pr23205-2.C: Likewise. - * g++.old-deja/g++.abi/ptrmem.C: Likewise. - * gcc.c-torture/execute/20101011-1.c: Likewise. - * gcc.dg/20020312-2.c: Likewise. - * gcc.dg/20040813-1.c: Likewise. - * gcc.dg/builtin-apply2.c: Likewise. - * gcc.dg/stack-usage-1.c: Likewise. - -2012-10-23 Ian Bolton - Jim MacArthur - Chris Schlumberger-Socha - Marcus Shawcroft - Nigel Stephens - Ramana Radhakrishnan - Richard Earnshaw - Sofiane Naci - Stephen Thomas - Tejas Belagod - Yufeng Zhang - - * gcc.target/aarch64/aapcs/aapcs64.exp: New file. - * gcc.target/aarch64/aapcs/abitest-2.h: New file. - * gcc.target/aarch64/aapcs/abitest-common.h: New file. - * gcc.target/aarch64/aapcs/abitest.S: New file. - * gcc.target/aarch64/aapcs/abitest.h: New file. - * gcc.target/aarch64/aapcs/func-ret-1.c: New file. - * gcc.target/aarch64/aapcs/func-ret-2.c: New file. - * gcc.target/aarch64/aapcs/func-ret-3.c: New file. - * gcc.target/aarch64/aapcs/func-ret-3.x: New file. - * gcc.target/aarch64/aapcs/func-ret-4.c: New file. - * gcc.target/aarch64/aapcs/func-ret-4.x: New file. - * gcc.target/aarch64/aapcs/ice_1.c: New file. - * gcc.target/aarch64/aapcs/ice_2.c: New file. - * gcc.target/aarch64/aapcs/ice_3.c: New file. - * gcc.target/aarch64/aapcs/ice_4.c: New file. - * gcc.target/aarch64/aapcs/ice_5.c: New file. - * gcc.target/aarch64/aapcs/macro-def.h: New file. - * gcc.target/aarch64/aapcs/test_1.c: New file. - * gcc.target/aarch64/aapcs/test_10.c: New file. - * gcc.target/aarch64/aapcs/test_11.c: New file. - * gcc.target/aarch64/aapcs/test_12.c: New file. - * gcc.target/aarch64/aapcs/test_13.c: New file. - * gcc.target/aarch64/aapcs/test_14.c: New file. - * gcc.target/aarch64/aapcs/test_15.c: New file. - * gcc.target/aarch64/aapcs/test_16.c: New file. - * gcc.target/aarch64/aapcs/test_17.c: New file. - * gcc.target/aarch64/aapcs/test_18.c: New file. - * gcc.target/aarch64/aapcs/test_19.c: New file. - * gcc.target/aarch64/aapcs/test_2.c: New file. - * gcc.target/aarch64/aapcs/test_20.c: New file. - * gcc.target/aarch64/aapcs/test_21.c: New file. - * gcc.target/aarch64/aapcs/test_22.c: New file. - * gcc.target/aarch64/aapcs/test_23.c: New file. - * gcc.target/aarch64/aapcs/test_24.c: New file. - * gcc.target/aarch64/aapcs/test_25.c: New file. - * gcc.target/aarch64/aapcs/test_26.c: New file. - * gcc.target/aarch64/aapcs/test_3.c: New file. - * gcc.target/aarch64/aapcs/test_4.c: New file. - * gcc.target/aarch64/aapcs/test_5.c: New file. - * gcc.target/aarch64/aapcs/test_6.c: New file. - * gcc.target/aarch64/aapcs/test_7.c: New file. - * gcc.target/aarch64/aapcs/test_8.c: New file. - * gcc.target/aarch64/aapcs/test_9.c: New file. - * gcc.target/aarch64/aapcs/test_align-1.c: New file. - * gcc.target/aarch64/aapcs/test_align-2.c: New file. - * gcc.target/aarch64/aapcs/test_align-3.c: New file. - * gcc.target/aarch64/aapcs/test_align-4.c: New file. - * gcc.target/aarch64/aapcs/test_complex.c: New file. - * gcc.target/aarch64/aapcs/test_int128.c: New file. - * gcc.target/aarch64/aapcs/test_quad_double.c: New file. - * gcc.target/aarch64/aapcs/type-def.h: New file. - * gcc.target/aarch64/aapcs/va_arg-1.c: New file. - * gcc.target/aarch64/aapcs/va_arg-10.c: New file. - * gcc.target/aarch64/aapcs/va_arg-11.c: New file. - * gcc.target/aarch64/aapcs/va_arg-12.c: New file. - * gcc.target/aarch64/aapcs/va_arg-2.c: New file. - * gcc.target/aarch64/aapcs/va_arg-3.c: New file. - * gcc.target/aarch64/aapcs/va_arg-4.c: New file. - * gcc.target/aarch64/aapcs/va_arg-5.c: New file. - * gcc.target/aarch64/aapcs/va_arg-6.c: New file. - * gcc.target/aarch64/aapcs/va_arg-7.c: New file. - * gcc.target/aarch64/aapcs/va_arg-8.c: New file. - * gcc.target/aarch64/aapcs/va_arg-9.c: New file. - * gcc.target/aarch64/aapcs/validate_memory.h: New file. - * gcc.target/aarch64/aarch64.exp: New file. - * gcc.target/aarch64/adc-1.c: New file. - * gcc.target/aarch64/adc-2.c: New file. - * gcc.target/aarch64/asm-1.c: New file. - * gcc.target/aarch64/clrsb.c: New file. - * gcc.target/aarch64/clz.c: New file. - * gcc.target/aarch64/ctz.c: New file. - * gcc.target/aarch64/csinc-1.c: New file. - * gcc.target/aarch64/csinv-1.c: New file. - * gcc.target/aarch64/csneg-1.c: New file. - * gcc.target/aarch64/extend.c: New file. - * gcc.target/aarch64/fcvt.x: New file. - * gcc.target/aarch64/fcvt_double_int.c: New file. - * gcc.target/aarch64/fcvt_double_long.c: New file. - * gcc.target/aarch64/fcvt_double_uint.c: New file. - * gcc.target/aarch64/fcvt_double_ulong.c: New file. - * gcc.target/aarch64/fcvt_float_int.c: New file. - * gcc.target/aarch64/fcvt_float_long.c: New file. - * gcc.target/aarch64/fcvt_float_uint.c: New file. - * gcc.target/aarch64/fcvt_float_ulong.c: New file. - * gcc.target/aarch64/ffs.c: New file. - * gcc.target/aarch64/fmadd.c: New file. - * gcc.target/aarch64/fnmadd-fastmath.c: New file. - * gcc.target/aarch64/frint.x: New file. - * gcc.target/aarch64/frint_double.c: New file. - * gcc.target/aarch64/frint_float.c: New file. - * gcc.target/aarch64/index.c: New file. - * gcc.target/aarch64/mneg-1.c: New file. - * gcc.target/aarch64/mneg-2.c: New file. - * gcc.target/aarch64/mneg-3.c: New file. - * gcc.target/aarch64/mnegl-1.c: New file. - * gcc.target/aarch64/mnegl-2.c: New file. - * gcc.target/aarch64/narrow_high-intrinsics.c: New file. - * gcc.target/aarch64/pic-constantpool1.c: New file. - * gcc.target/aarch64/pic-symrefplus.c: New file. - * gcc.target/aarch64/predefine_large.c: New file. - * gcc.target/aarch64/predefine_small.c: New file. - * gcc.target/aarch64/predefine_tiny.c: New file. - * gcc.target/aarch64/reload-valid-spoff.c: New file. - * gcc.target/aarch64/scalar_intrinsics.c: New file. - * gcc.target/aarch64/table-intrinsics.c: New file. - * gcc.target/aarch64/tst-1.c: New file. - * gcc.target/aarch64/vect-abs-compile.c: New file. - * gcc.target/aarch64/vect-abs.c: New file. - * gcc.target/aarch64/vect-abs.x: New file. - * gcc.target/aarch64/vect-compile.c: New file. - * gcc.target/aarch64/vect-faddv-compile.c: New file. - * gcc.target/aarch64/vect-faddv.c: New file. - * gcc.target/aarch64/vect-faddv.x: New file. - * gcc.target/aarch64/vect-fmax-fmin-compile.c: New file. - * gcc.target/aarch64/vect-fmax-fmin.c: New file. - * gcc.target/aarch64/vect-fmax-fmin.x: New file. - * gcc.target/aarch64/vect-fmaxv-fminv-compile.c: New file. - * gcc.target/aarch64/vect-fmaxv-fminv.x: New file. - * gcc.target/aarch64/vect-fp-compile.c: New file. - * gcc.target/aarch64/vect-fp.c: New file. - * gcc.target/aarch64/vect-fp.x: New file. - * gcc.target/aarch64/vect-mull-compile.c: New file. - * gcc.target/aarch64/vect-mull.c: New file. - * gcc.target/aarch64/vect-mull.x: New file. - * gcc.target/aarch64/vect.c: New file. - * gcc.target/aarch64/vect.x: New file. - * gcc.target/aarch64/vector_intrinsics.c: New file. - * gcc.target/aarch64/vfp-1.c: New file. - * gcc.target/aarch64/volatile-bitfields-1.c: New file. - * gcc.target/aarch64/volatile-bitfields-2.c: New file. - * gcc.target/aarch64/volatile-bitfields-3.c: New file. - * g++.dg/abi/aarch64_guard1.C: New file. - -2012-10-23 Jakub Jelinek - - PR c++/54988 - * c-c++-common/pr54988.c: New test. - -2012-10-23 Jan Hubicka - - * gcc.dg/tree-prof/peel-1.c: New testcase. - -2012-10-23 Dominique d'Humieres - - PR gcc/52945 - * gcc.dg/lto/pr52634_0.c: Skip the test on Darwin. - -2012-10-23 Joseph Myers - - * gcc.dg/c99-predef-1.c: New test. - * gcc.dg/cpp/cmdlne-dU-1.c, gcc.dg/cpp/cmdlne-dU-2.c, - gcc.dg/cpp/cmdlne-dU-3.c, gcc.dg/cpp/cmdlne-dU-4.c, - gcc.dg/cpp/cmdlne-dU-5.c, gcc.dg/cpp/cmdlne-dU-6.c, - gcc.dg/cpp/cmdlne-dU-7.c, gcc.dg/cpp/cmdlne-dU-8.c, - gcc.dg/cpp/cmdlne-dU-9.c, gcc.dg/cpp/cmdlne-dU-10.c, - gcc.dg/cpp/cmdlne-dU-11.c, gcc.dg/cpp/cmdlne-dU-12.c, - gcc.dg/cpp/cmdlne-dU-13.c, gcc.dg/cpp/cmdlne-dU-14.c, - gcc.dg/cpp/cmdlne-dU-15.c, gcc.dg/cpp/cmdlne-dU-16.c, - gcc.dg/cpp/cmdlne-dU-17.c, gcc.dg/cpp/cmdlne-dU-18.c, - gcc.dg/cpp/cmdlne-dU-19.c, gcc.dg/cpp/cmdlne-dU-20.c, - gcc.dg/cpp/cmdlne-dU-21.c, gcc.dg/cpp/cmdlne-dU-22.c, - gcc.dg/cpp/mi5.c, gcc.dg/cpp/multiline.c: Add -nostdinc to dg-options. - -2012-10-23 Marc Glisse - - * gcc.dg/tree-ssa/foldconst-6.c: New testcase. - -2012-10-23 Jan Hubicka - - PR middle-end/54937 - * gcc.c-torture/execute/pr54937.c: New testcase. - * gcc.dg/tree-ssa/cunroll-2.c: Update. - -2012-10-23 Jan Hubicka - - PR middle-end/54967 - * gfortran.dg/pr54967.f90: New testcase. - -2012-10-23 Terry Guo - - PR target/55019 - * gcc.dg/pr55019.c: New. - -2012-10-22 Bill Schmidt - - PR tree-optimization/55008 - * gcc.dg/tree-ssa/pr55008.c: New test. - -2012-10-22 Richard Biener - - PR tree-optimization/55011 - * gcc.dg/torture/pr55011.c: New testcase. - -2012-10-22 Greta Yorsh - - * gcc.target/arm/pr40457-1.c: Adjust expected output. - * gcc.target/arm/pr40457-2.c: Likewise. - * gcc.target/arm/pr40457-3.c: Likewise. - -2012-10-22 Eric Botcazou - - * gnat.dg/specs/limited_with4.ads: New test. - * gnat.dg/specs/limited_with4_pkg.ads: New helper. - -2012-10-22 Eric Botcazou - - * gnat.dg/modular4.adb: New test. - * gnat.dg/modular4_pkg.ads: New helper. - -2012-10-21 Eric Botcazou - - * gnat.dg/specs/atomic1.ads: XFAIL on MIPS. - * gnat.dg/specs/addr1.ads: Likewise. - -2012-10-21 Hans-Peter Nilsson - - * gcc.dg/webizer.c (main): Add missing exit call. - -2012-10-21 Thomas KÁnig - - PR fortran/54465 - * gfortran.dg/wextra_1.f: New test. - -2012-10-20 Jan Hubicka - - * gcc.dg/tree-prof/unroll-1.c: New testcase. - -2012-10-19 Janus Weil - - PR fortran/54224 - * gfortran.dg/warn_unused_function.f90: New. - -2012-10-19 Greta Yorsh - - * lib/target-supports.exp - (check_effective_target_arm_prefer_ldrd_strd): New procedure. - -2012-10-19 Richard Guenther - - PR tree-optimization/54981 - * gcc.dg/pr54981.c: New testcase. - -2012-10-19 Zhenqiang Chen - - PR target/54892 - * gcc.target/arm/pr54892.c: New. - -2012-10-19 Bin Cheng - - * testsuite/gcc.dg/hoist-register-pressure.c: New test. - -2012-10-18 Paolo Carlini - - PR c++/54501 - * g++.dg/init/array30.C: New. - * g++.dg/init/array31.C: Likewise. - -2012-10-18 Tobias Burnus - - PR fortran/54884 - * gfortran.dg/public_private_module_7.f90: New. - -2012-10-18 Paolo Carlini - - PR c++/29633 - * g++.dg/template/pr29633.C: New. - -2012-10-18 Eric Botcazou - - * gnat.dg/loop_optimization13.ad[sb]: New test. - * gnat.dg/loop_optimization13_pkg.ads: New helper. - -2012-10-18 Matthew Gretton-Dann - - * gcc.target/arm/neon/vfmaQf32.c: New testcase. - * gcc.target/arm/neon/vfmaf32.c: Likewise. - * gcc.target/arm/neon/vfmsQf32.c: Likewise. - * gcc.target/arm/neon/vfmsf32.c: Likewise. - -2012-10-18 Matthew Gretton-Dann - - * gcc.target/arm/ftest-armv8a-arm.c: New testcase. - * gcc.target/arm/ftest-armv8a-thumb.c: Likewise. - * gcc.target/arm/ftest-support-arm.h (feature_matrix): Add ARMv8-A row. - * gcc.target/arm/ftest-support-thumb.h (feature_matrix): Likewise. - * gcc.target/arm/ftest-support.h (architecture): Add ARMv8-A. - * lib/target-supports.exp: Add ARMv8-A architecture expectation. - -2012-10-16 Jan Hubicka - - * gcc.target/i386/l_fma_float_?.c: Update. - * gcc.target/i386/l_fma_double_?.c: Update. - * gfortran.dg/do_1.f90: XFAIL - * gcc.dg/tree-ssa/cunroll-1.c: New testcase. - * gcc.dg/tree-ssa/cunroll-2.c: New testcase. - * gcc.dg/tree-ssa/cunroll-3.c: New testcase. - * gcc.dg/tree-ssa/cunroll-4.c: New testcase. - * gcc.dg/tree-ssa/cunroll-5.c: New testcase. - * gcc.dg/tree-ssa/ldist-17.c: Block cunroll to make testcase still - valid. - -2012-10-16 Manuel LÁpez-IbÁÁez - - PR c/53063 - PR c/40989 - * gcc.dg/Wstrict-overflow-24.c: New. - -2012-10-16 Tobias Burnus - - PR fortran/50981 - PR fortran/54618 - * gfortran.dg/class_optional_1.f90: New. - * gfortran.dg/class_optional_2.f90: New. - -2012-10-16 Jakub Jelinek - - PR debug/54796 - * gcc.dg/guality/pr54796.c: New test. - - PR tree-optimization/54889 - * gfortran.dg/pr54889.f90: New test. - -2012-10-16 Eric Botcazou - - * g++.dg/other/dump-ada-spec-2.C: New test. - -2012-10-16 Easwaran Raman - - * gcc.dg/tree-prof/switch-case-1.c: New test case. - * gcc.dg/tree-prof/switch-case-2.c: New test case. - -2012-10-16 Hans-Peter Nilsson - - * gcc.dg/torture/stackalign/builtin-apply-2.c, - gcc.dg/builtin-apply2.c: Correct STACK_ARGUMENTS_SIZE for MMIX. - -2012-10-15 Oleg Endo - - PR target/54925 - * gcc.c-torture/compile/pr54925.c: New. - -2012-10-15 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-17.c: New. - -2012-10-15 Oleg Endo - - PR target/54760 - * gcc.target/sh/pr54760-2.c: Add long long and unsigned long long test - functions. - * gcc.target/sh/pr54760-4.c: New. - -2012-10-15 Oleg Endo - - PR target/34777 - * gcc.target/sh/torture/sh-torture.exp: New. - * gcc.target/sh/torture/pr34777.c: New. - -2012-10-15 Matthias Klose - - * lib/target-supports.exp (check_profiling_available): Match - arm*-*-linux-* for ARM Linux/GNU. - * g++.dg/torture/predcom-1.C: Match arm*-*-linux-* for ARM Linux/GNU. - * gfortran.dg/enum_10.f90: Likewise. - * gfortran.dg/enum_9.f90: Likewise. - * gcc.target/arm/synchronize.c: Likewise. - * g++.old-deja/g++.jason/enum6.C: Likewise. - * g++.old-deja/g++.other/enum4.C: Likewise. - * g++.old-deja/g++.law/enum9.C: Likewise. - -2012-10-15 Richard Sandiford - - * g++.dg/tls/thread_local-cse.C: Move dg-do line. - * g++.dg/tls/thread_local-wrap4.C: Require fpic. - -2012-10-15 Alexandre Oliva - Paolo Carlini - - PR c++/17805 - * g++.dg/overload/operator6.C: New. - -2012-10-15 Paolo Carlini - - PR c++/50080 (again) - * g++.dg/parse/tmpl-outside2.C: Tweak, error in C++98. - * g++.dg/parse/tmpl-outside1.C: Likewise. - * g++.dg/template/qualttp18.C: Likewise. - * g++.old-deja/g++.pt/memtemp87.C: Likewise. - * g++.old-deja/g++.pt/overload13.C: Likewise. - -2012-10-15 Uros Bizjak - - * gcc.target/i386/avx256-unaligned-load-1.c: Update asm scan patterns. - * gcc.target/i386/avx256-unaligned-load-2.c: Ditto. - * gcc.target/i386/avx256-unaligned-load-3.c: Ditto. - * gcc.target/i386/avx256-unaligned-load-4.c: Ditto. - * gcc.target/i386/avx256-unaligned-store-1.c: Ditto. - * gcc.target/i386/avx256-unaligned-store-2.c: Ditto. - * gcc.target/i386/avx256-unaligned-store-3.c: Ditto. - * gcc.target/i386/avx256-unaligned-store-4.c: Ditto. - -2012-10-15 Paolo Carlini - - PR c++/50080 - * g++.dg/parse/tmpl-outside2.C: New. - * g++.dg/parse/tmpl-outside1.C: Adjust. - * g++.dg/template/qualttp18.C: Likewise. - * g++.old-deja/g++.pt/memtemp87.C: Likewise. - * g++.old-deja/g++.pt/overload13.C: Likewise. - -2012-10-15 Marc Glisse - - PR tree-optimization/54915 - * gcc.dg/tree-ssa/pr54915.c: New testcase. - -2012-10-15 Richard Guenther - - PR tree-optimization/54920 - * gcc.dg/torture/pr54920.c: New testcase. - -2012-10-15 Eric Botcazou - - * gnat.dg/unchecked_convert9.ad[sb]: New test. - -2012-10-13 Jason Merrill - - * g++.dg/tls/thread_local7g.C: Require tls_native. - -2012-10-14 Jason Merrill - - * g++.dg/cpp0x/inh-ctor1.C: New. - * g++.dg/cpp0x/inh-ctor2.C: New. - * g++.dg/cpp0x/inh-ctor3.C: New. - * g++.dg/cpp0x/inh-ctor4.C: New. - * g++.dg/cpp0x/inh-ctor5.C: New. - * g++.dg/cpp0x/inh-ctor6.C: New. - * g++.dg/cpp0x/inh-ctor7.C: New. - * g++.dg/cpp0x/inh-ctor8.C: New. - * g++.dg/cpp0x/inh-ctor9.C: New. - * g++.dg/cpp0x/inh-ctor10.C: New. - * g++.dg/cpp0x/inh-ctor11.C: New. - * g++.dg/cpp0x/inh-ctor12.C: New. - * g++.dg/cpp0x/inh-ctor13.C: New. - -2012-10-14 Steven Bosscher - - PR rtl-optimization/54919 - * gcc.dg/pr54919.c: New testcase. - -2012-10-14 Paolo Carlini - - PR c++/53581 - * g++.dg/template/crash113.C: New. - -2012-10-14 Jan Hubicka - - * gcc.dg/unroll_5.c: New testcase. - -2012-10-14 Paolo Carlini - - PR c++/52643 - * g++.dg/opt/pr52643.C: New. - -2012-10-12 Oleg Endo - - PR target/54602 - * gcc.target/sh/pr54602-1.c: New. - * gcc.target/sh/pr54602-2.c: New. - * gcc.target/sh/pr54602-3.c: New. - * gcc.target/sh/pr54602-4.c: New. - -2012-10-12 Oleg Endo - - PR target/54680 - * gcc.target/sh/pr54680.c: New. - -2012-10-12 Jan Hubicka - - * gcc.dg/webizer.c: New testcase. - -2012-10-12 Janis Johnson - - * gcc.dg/vect/pr48765.c: Skip for conflicting options, don't - specify -m64. - - * gcc.target/arm/div64-unwinding.c: Skip, don't xfail, for GNU/Linux. - - * lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok): - Return 0 if already specifying -mfloat-abi other than hard. - -2012-10-12 Joe Seymour - - * gcc.dg/pr53060.c: Prune irrelevant warning. - -2012-10-12 Jakub Jelinek - - PR c/54381 - * c-c++-common/Wsizeof-pointer-memaccess1.c: New test. - * c-c++-common/Wsizeof-pointer-memaccess2.c: New test. - * gcc.dg/Wsizeof-pointer-memaccess1.c: New test. - * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Test also stpncpy. - Adjust expected wording of warnings for *cmp* builtins. - * g++.dg/torture/Wsizeof-pointer-memaccess1.C: Likewise. - * g++.dg/torture/Wsizeof-pointer-memaccess2.C: Likewise. - -2012-10-12 Paolo Carlini - - PR c++/24449 - * g++.dg/parse/friend-main.C: New. - -2012-10-12 Marc Glisse - - PR c++/53055 - * g++.dg/pr53055.C: New testcase. - -2012-10-12 Paolo Carlini - - PR c++/52744 - * g++.dg/cpp0x/pr52744.C: New. - -2012-10-12 Janus Weil - - PR fortran/40453 - * gfortran.dg/dummy_procedure_9.f90: New. - -2012-10-12 Richard Biener - - PR tree-optimization/54894 - * gcc.dg/torture/pr54894.c: New testcase. - -2012-10-12 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-13.c: New. - * gcc.target/sh/pr51244-14.c: New. - * gcc.target/sh/pr51244-15.c: New. - * gcc.target/sh/pr51244-16.c: New. - -2012-10-11 Paolo Carlini - - PR c++/51878 - * g++.dg/cpp0x/decltype45.C: New. - -2012-10-11 Janus Weil - - PR fortran/54784 - * gfortran.dg/class_allocate_13.f90: New. - -2012-10-11 Jason Merrill - - * g++.dg/ext/visibility/pragma-override1.C: Fix target markup. - * g++.dg/ext/visibility/pragma-override2.C: Fix target markup. - - * g++.dg/gomp/tls-5.C: Require tls_native. - * g++.dg/tls/thread_local7.C: Require tls_native. - * g++.dg/tls/static2.C: New. - -2012-10-11 Paolo Carlini - - PR c++/36107 - * g++.dg/ext/weak5.C: New. - -2012-10-11 Marc Glisse - - PR testsuite/54868 - * gcc.dg/tree-ssa/forwprop-22.c: Move ... - * gcc.dg/vect/nodump-forwprop-22.c: ... here. Adapt options. - -2012-10-11 Paolo Carlini - - PR c++/43765 - * g++.dg/parse/pr43765.C: New. - -2012-10-11 Uros Bizjak - - * obj-c++.dg/tls/init-2.mm: Tweak errors. - -2012-10-10 Paolo Carlini - - PR c++/43663 - * g++.dg/init/bitfield3.C: New. - -2012-10-10 Richard Sandiford - - * gcc.target/mips/mips32-dsp-accinit-2.c: Fix test description. - -2012-10-10 Jakub Jelinek - - PR tree-optimization/54877 - * gcc.dg/torture/pr54877.c: New test. - -2012-10-10 Venkataramanan Kumar - - PR testsuite/53397 - * gcc.dg/pr53397-1.c: Moved to gcc.target/i386. - * gcc.target/i386/pr53397-1.c: Add -msse2 to dg-options - and remove target info from dg-do compile. - * gcc.dg/pr53397-2.c: Moved to gcc.target/i386. - * gcc.target/i386/pr53397-2.c: Add -msse2 to dg-options - and remove target info from dg-do compile. - -2012-10-10 Greta Yorsh - - * gcc.dg/pr54782.c: Require target with pthread support. - -2012-10-10 Paolo Carlini - - PR c++/53122 - * g++.dg/cpp0x/auto35.C: New. - -2012-10-10 Dodji Seketeli - - PR c++/53540 - using fails to be equivalent to typedef - * g++.dg/cpp0x/alias-decl-24.C: New test. - -2012-10-10 Dodji Seketeli - - * g++.dg/cpp0x/gen-attrs-8.C: Update the test to reflect the fact - that c++11 attributes to types are ignored for now. - * g++.dg/cpp0x/gen-attrs-36.C: Likewise. - * g++.dg/cpp0x/gen-attrs-37.C: Likewise - -2012-10-10 Paolo Carlini - - PR c++/53741 - * g++.dg/cpp0x/lambda/lambda-ice9.C: New. - -2012-10-10 Paolo Carlini - - PR c++/50478 - * g++.dg/cpp0x/initlist67.C: New. - -2012-10-10 Dehao Chen - - * g++.dg/debug/dwarf2/deallocator.C: Cover more deallocator cases. - -2012-10-10 Oleg Endo - - PR target/52480 - * gcc.target/sh/sh4a-bitmovua.c: Compact skip-if list. - Add runtime tests. - -2012-10-10 Paolo Carlini - - PR c++/53307 - * g++.dg/cpp0x/decltype44.C: New. - -2012-10-09 Steve Ellcey - - * gcc.target/ext_ins.c: Modify f2 to aviod uninitialized data. - -2012-10-09 Paolo Carlini - - PR c++/53763 - * g++.dg/cpp0x/decltype43.C: New. - -2012-10-09 Venkataramanan Kumar - - PR middle-end/53397 - * gcc.dg/pr53397-1.c: New test case. - * gcc.dg/pr53397-2.c: New test case. - -2012-10-09 Paolo Carlini - - PR c++/54194 - * g++.dg/warn/Wparentheses-26.C: Adjust. - * g++.dg/warn/Wparentheses-27.C: New. - -2012-10-09 Marc Glisse - - PR c++/54427 - * c-c++-common/vector-scalar.c: New testcase. - * g++.dg/ext/vector18.C: New testcase. - * g++.dg/ext/vector5.C: This is not an error anymore. - * gcc.dg/init-vec-1.c: Move ... - * c-c++-common/init-vec-1.c: ... here. Adapt error message. - * gcc.c-torture/execute/vector-shift1.c: Move ... - * c-c++-common/torture/vector-shift1.c: ... here. - * gcc.dg/scal-to-vec1.c: Move ... - * c-c++-common/scal-to-vec1.c: ... here. Avoid narrowing for - C++11. Adapt error messages. - * gcc.dg/convert-vec-1.c: Move ... - * c-c++-common/convert-vec-1.c: ... here. - * gcc.dg/scal-to-vec2.c: Move ... - * c-c++-common/scal-to-vec2.c: ... here. - -2012-10-08 Marc Glisse - - PR target/54400 - * gcc.target/i386/pr54400.c: New testcase. - -2012-10-08 Jakub Jelinek - - PR c++/54858 - * g++.dg/template/pr54858.C: New test. - -2012-10-08 Marek Polacek - - PR debug/54831 - * g++.dg/debug/pr54831.C: New test. - -2012-10-08 Dehao Chen - - * g++.dg/predict-loop-exit-1.C: New. - * g++.dg/predict-loop-exit-2.C: New. - * g++.dg/predict-loop-exit-3.C: New. - -2012-10-08 Rainer Orth - - * gcc.target/i386/pr54445-1.c: Require tls_runtime, add tls options. - -2012-10-08 Jason Merrill - - * g++.dg/gomp/tls-5.C: New. - * g++.dg/gomp/tls-wrap1.C: New. - * g++.dg/gomp/tls-wrap2.C: New. - * g++.dg/gomp/tls-wrap3.C: New. - * g++.dg/gomp/tls-wrap4.C: New. - * g++.dg/gomp/tls-wrapper-cse.C: New. - * g++.dg/tls/thread_local-cse.C: New. - * g++.dg/tls/thread_local-order1.C: New. - * g++.dg/tls/thread_local-order2.C: New. - * g++.dg/tls/thread_local-wrap1.C: New. - * g++.dg/tls/thread_local-wrap2.C: New. - * g++.dg/tls/thread_local-wrap3.C: New. - * g++.dg/tls/thread_local-wrap4.C: New. - * g++.dg/tls/thread_local2g.C: New. - * g++.dg/tls/thread_local3g.C: New. - * g++.dg/tls/thread_local4g.C: New. - * g++.dg/tls/thread_local5g.C: New. - * g++.dg/tls/thread_local6g.C: New. - * g++.dg/tls/thread_local7g.C: New. - - * g++.dg/tls/thread_local3.C: New. - * g++.dg/tls/thread_local4.C: New. - * g++.dg/tls/thread_local5.C: New. - * g++.dg/tls/thread_local6.C: New. - - * g++.dg/tls/init-2.C: Tweak errors. - * g++.dg/tls/thread_local1.C: New. - * g++.dg/tls/thread_local2.C: New. - * g++.dg/tls/thread_local7.C: New. - -2012-10-09 Rainer Orth - - PR target/54866 - * gcc.target/i386/long-double-80-7.c: Add -msse2 to dg-options. - -2012-10-08 Oleg Endo - - PR target/54685 - * gcc.target/sh/pr54685.c: New. - -2012-10-08 Dodji Seketeli - - PR c++/53528 C++11 attribute support - * g++.dg/cpp0x/gen-attrs-1.C: New test. - * g++.dg/cpp0x/gen-attrs-2.C: Likewise. - * g++.dg/cpp0x/gen-attrs-2-1.C: Likewise. - * g++.dg/cpp0x/gen-attrs-3.C: Likewise. - * g++.dg/cpp0x/gen-attrs-4.C: Likewise. - * g++.dg/cpp0x/gen-attrs-5.C: Likewise. - * g++.dg/cpp0x/gen-attrs-6.C: Likewise. - * g++.dg/cpp0x/gen-attrs-7.C: Likewise. - * g++.dg/cpp0x/gen-attrs-8.C: Likewise. - * g++.dg/cpp0x/gen-attrs-9.C: Likewise. - * g++.dg/cpp0x/gen-attrs-10.C: Likewise. - * g++.dg/cpp0x/gen-attrs-11.C: Likewise. - * g++.dg/cpp0x/gen-attrs-12.C: Likewise. - * g++.dg/cpp0x/gen-attrs-13.C: Likewise. - * g++.dg/cpp0x/gen-attrs-14.C: Likewise. - * g++.dg/cpp0x/gen-attrs-15.C: Likewise. - * g++.dg/cpp0x/gen-attrs-16.C: Likewise. - * g++.dg/cpp0x/gen-attrs-17.C: Likewise. - * g++.dg/cpp0x/gen-attrs-18.C: Likewise. - * g++.dg/cpp0x/gen-attrs-19.C: Likewise. - * g++.dg/cpp0x/gen-attrs-20.C: Likewise. - * g++.dg/cpp0x/gen-attrs-21.C: Likewise. - * g++.dg/cpp0x/gen-attrs-22.C: Likewise. - * g++.dg/cpp0x/gen-attrs-23.C: Likewise. - * g++.dg/cpp0x/gen-attrs-24.C: Likewise. - * g++.dg/cpp0x/gen-attrs-25.C: Likewise. - * g++.dg/cpp0x/gen-attrs-26.C: Likewise. - * g++.dg/cpp0x/gen-attrs-27.C: Likewise. - * g++.dg/cpp0x/gen-attrs-28.C: Likewise. - * g++.dg/cpp0x/gen-attrs-29.C: Likewise. - * g++.dg/cpp0x/gen-attrs-30.C: Likewise. - * g++.dg/cpp0x/gen-attrs-31.C: Likewise. - * g++.dg/cpp0x/gen-attrs-32.C: Likewise. - * g++.dg/cpp0x/gen-attrs-33.C: Likewise. - * g++.dg/cpp0x/gen-attrs-34.C: Likewise. - * g++.dg/cpp0x/gen-attrs-35.C: Likewise. - * g++.dg/cpp0x/gen-attrs-36.C: Likewise. - * g++.dg/cpp0x/gen-attrs-36-1.C: Likewise. - * g++.dg/cpp0x/gen-attrs-37.C: Likewise. - * g++.dg/cpp0x/gen-attrs-38.C: Likewise. - * g++.dg/cpp0x/gen-attrs-39.C: Likewise. - * g++.dg/cpp0x/gen-attrs-39-1.C: Likewise. - * g++.dg/cpp0x/gen-attrs-40.C: Likewise. - * g++.dg/cpp0x/gen-attrs-41.C: Likewise. - * g++.dg/cpp0x/gen-attrs-42.C: Likewise. - * g++.dg/cpp0x/gen-attrs-43.C: Likewise. - * g++.dg/cpp0x/gen-attrs-44.C: Likewise. - * g++.dg/cpp0x/gen-attrs-45.C: Likewise. - * g++.dg/cpp0x/gen-attrs-46.C: Likewise. - * g++.dg/cpp0x/gen-attrs-47.C: Likewise. - * g++.dg/cpp0x/gen-attrs-47-1.C: Likewise. - * g++.dg/cpp0x/gen-attrs-48.C: Likewise. - * g++.dg/cpp0x/gen-attrs-49.C: Likewise. - * g++.dg/cpp0x/gen-attrs-50.C: Likewise. - * g++.dg/cpp0x/gen-attrs-51.C: Likewise. - * g++.dg/cpp0x/gen-attrs-52.C: Likewise. - * g++.dg/cpp0x/gen-attrs-53.C: Likewise. - -2012-10-08 Eric Botcazou - - * gcc.dg/tree-ssa/slsr-30.c: Use correct cleanup directive. - * gcc.dg/tree-ssa/attr-hotcold-2.c: Likewise. - * gcc.dg/tree-ssa/ldist-21.c: Add missing cleanup directive. - -2012-10-08 Oleg Endo - - PR target/54760 - * gcc.target/sh/pr54760-2.c: New. - * gcc.target/sh/pr54760-3.c: New. - -2012-10-07 Paolo Carlini - - PR c++/51422 - * g++.dg/cpp0x/lambda/lambda-ice8.C: New. - -2012-10-07 Richard Sandiford - Sandra Loosemore - - * gcc.target/mips/madd-9.c: Force code to be tuned for the 4kc - and test that the accumulator is initialized using MULT. - * gcc.target/mips/mips32-dsp-accinit-1.c: New test. - * gcc.target/mips/mips32-dsp-accinit-2.c: Likewise. - -2012-10-06 Paolo Carlini - - PR c++/52764 - * g++.dg/cpp0x/stdint.C: New. - -2012-10-06 Paolo Carlini - - PR c++/54249 - * g++.dg/cpp0x/stddef.C: New. - -2012-10-06 Janus Weil - - PR fortran/54832 - * gfortran.dg/typebound_operator_17.f90: New. - -2012-10-06 Jan Hubicka - - PR lto/53831 - PR lto/54776 - * g++.dg/lto/v1-plugin-api-not-supported.C: New testcase. - -2012-10-06 Jan Hubicka - - * gcc.dg/lto/resolutions_0.c: New testcase. - -2012-10-06 Janus Weil - - PR fortran/45521 - * gfortran.dg/generic_25.f90: New. - * gfortran.dg/generic_26.f90: New. - * gfortran.dg/generic_27.f90: New. - -2012-10-06 Oleg Endo - - PR target/54760 - * gcc.target/sh/pr54760-1.c: New. - -2012-10-05 Jakub Jelinek - - * g++.dg/torture/Wsizeof-pointer-memaccess1.C: New test. - * g++.dg/torture/Wsizeof-pointer-memaccess2.C: New test. - * g++.dg/warn/Wsign-compare-5.C: New test. - * g++.dg/warn/Wsizeof-pointer-memaccess-1.C: New test. - * g++.dg/warn/Wnull-conversion-1.C: For c++11 add dg-error. - * g++.dg/ext/builtin30.C: New test. - * g++.dg/ext/vla12.C: New test. - * gcc.dg/builtins-85.c: New test. - - PR debug/54519 - * gcc.dg/guality/pr54519-1.c: New test. - * gcc.dg/guality/pr54519-2.c: New test. - * gcc.dg/guality/pr54519-3.c: New test. - * gcc.dg/guality/pr54519-4.c: New test. - * gcc.dg/guality/pr54519-5.c: New test. - * gcc.dg/guality/pr54519-6.c: New test. - -2012-10-05 Paolo Carlini - - PR c++/50893 - * g++.dg/cpp0x/defaulted38.C: New. - -2012-10-05 Jakub Jelinek - - PR tree-optimization/33763 - * c-c++-common/pr33763.c: New test. - - PR tree-optimization/54810 - * gcc.dg/tree-ssa/vrp85.c: New test. - -2012-10-04 David Edelsohn - - * gcc.dg/ucnid-7.c: Skip on AIX. - * gcc.dg/ucnid-8.c: Same. - * gcc.dg/ucnid-10.c: Same. - * gcc.dg/ucnid-13.c: Same. - * gcc.dg/attr-alias-3.c: Same. - * gcc.dg/attr-alias-5.c: Same. - * gcc.dg/torture/pr51106-2.c: Same. - * gcc.dg/vmx/3b-13.c: Use valid splat index. - -2012-10-04 Paolo Carlini - - PR c++/52233 - * g++.dg/cpp0x/alias-decl-23.C: New. - -2012-10-04 Paolo Carlini - - PR c++/53403 - * g++.dg/template/friend53.C: New. - -2012-10-04 Eric Botcazou - - * lib/gcc-dg.exp (cleanup-ada-spec): New procedure. - * lib/scanasm.exp (get_ada_spec_filename): Likewise. - (scan-ada-spec): Likewise. - (scan-ada-spec-not): Likewise. - * gcc.dg/dump-ada-spec-1.c: New test. - * g++.dg/other/dump-ada-spec-1.C: Likewise. - -2012-10-04 Eric Botcazou - - * gcc.dg/lto/20120723_0.c: Skip on SPARC 32-bit. - -2012-10-04 Florian Weimer - - * c-c++-common/cpp/diagnostic-pragma-1.c: New testcase. - -2012-10-04 Paolo Carlini - - PR c++/54323 - * g++.dg/cpp0x/pr54323.C: New. - -2012-10-04 Richard Guenther - - PR middle-end/54735 - * g++.dg/torture/pr54735.C: New testcase. - -2012-10-04 Eric Botcazou - - PR rtl-optimization/54739 - * gcc.dg/lower-subreg-1.c: Also skip on SPARC. - -2012-10-03 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-12.c: New. - -2012-10-03 Dehao Chen - - PR middle-end/54782 - * gcc.dg/pr54782.c: New test. - -2012-10-03 Jakub Jelinek - - PR c++/54777 - * g++.dg/cpp0x/constexpr-ref4.C: New test. - -2012-10-02 Janus Weil - - PR fortran/54778 - * gfortran.dg/class_53.f90: New. - -2012-10-02 Alexandre Oliva - - PR debug/54551 - * gcc.dg/guality/pr54551.c: New. - -2012-10-02 Pat Haugen - - * gcc.target/powerpc/pr46728-1.c: Accept xssqrtdp. - * gcc.target/powerpc/pr46728-2.c: Likewise. - -2012-10-02 Sharad Singhai - - PR testsuite/54772 - * gfortran.dg/vect/vect.exp: Change verbose vectorizor dump options - to fix test failures caused by r191883. - * gcc.dg/tree-ssa/gen-vect-11.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-2.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-32.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-25.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-11a.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-26.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-11b.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-11c.c: Likewise. - * gcc.dg/tree-ssa/gen-vect-28.c: Likewise. - -2012-09-30 Sharad Singhai - - * gcc.target/i386/vect-double-1.c: Fix test. - -2012-10-01 Andrew MacLeod - - PR target/54087 - * gcc.dg/pr54087.c: New testcase for atomic_sub -> atomic_add when - atomic_sub fails. - -2012-10-01 Uros Bizjak - - PR rtl-optimization/54457 - * gcc.target/i386/pr54457.c: New test. - -2012-10-01 Ulrich Weigand - - * gcc.dg/lower-subreg-1.c: Disable on arm*-*-* targets. - -2012-10-01 Marc Glisse - - * gcc.target/i386/vect-rebuild.c: New testcase. - -2012-09-30 Uros Bizjak - - * gcc.target/i386/pad-10.c (foo2): Return x - z. - -2012-09-30 Richard Sandiford - - * gcc.target/mips/pr37362.c: Fix target selector. - -2012-09-30 John David Anglin - - PR target/54083 - * gcc.dg/torture/pr53922.c: Skip on 32-bit hppa-*-hpux*. - -2012-09-30 Andreas Schwab - - * gcc.dg/ucnid-8.c: Update line number. - * gcc.dg/torture/pr51106-2.c: Likewise. - -2012-09-30 Janus Weil - - PR fortran/54667 - * gfortran.dg/c_funloc_tests_6.f90: Modified error message. - * gfortran.dg/c_f_pointer_shape_test.f90: Ditto. - * gfortran.dg/c_f_pointer_tests_5.f90: New. - -2012-09-30 Janus Weil - - * gfortran.dg/allocate_derived_1.f90: Re-enable class array checks, - partially reverting r170092. - * gfortran.dg/class_7.f03: Ditto. - * gfortran.dg/coarray_14.f90: Ditto. - * gfortran.dg/typebound_proc_13.f03: Ditto. - -2012-09-29 Paolo Carlini - - PR c++/54738 - * g++.dg/cpp0x/sfinae42.C: New. - -2012-09-29 David Edelsohn - - * gcc.target/powerpc/405-dlmzb-strlen-1.c: Skip on AIX. - * gcc.target/powerpc/440-dlmzb-strlen-1.c: Same. - * gcc.dg/ucnid-5.c: Remove XFAIL on AIX. - * gcc.dg/pr42629.c: XFAIL on AIX. - * gcc.dg/pr47684.c: Same. - * gcc.dg/pr43670.c: Same. - * gcc.dg/pr42916.c: Same. - * gcc.dg/pr45449.c: Same. - * gcc.dg/pr50017.c: Same. - * gcc.dg/pr42728.c: Same. - * gcc.dg/pr47881.c: Same. - * gcc.dg/pr44023.c: Same. - * gcc.dg/pr41345.c: Same. - * gcc.dg/pr42630.c: Same. - * gcc.dg/pr44971.c: Same. - * gcc.dg/pr46771.c: Same. - * gcc.dg/ucnid-8.c: Same. - * gcc.dg/ucnid-10.c: Same. - * gcc.dg/ucnid-13.c: Same. - * gcc.dg/torture/pr51106-2.c: Same. - * gcc.dg/pr48768.c: Same. - * gcc.dg/pr42631.c: Same. - * gcc.dg/pr43084.c: Same. - * gcc.dg/ucnid-7.c: Same. - * gcc.dg/pr42889.c: Same. - * gcc.dg/pr41241.c: Same. - * gcc.dg/pr42719.c: Same. - * g++.dg/debug/pr46583.C: Same. - * g++.dg/debug/pr47106.C: Same. - * g++.dg/opt/pr48549.C: Same. - * g++.dg/other/pr42685.C: Same. - * c-c++-common/pr43942.c: Same. - -2012-09-29 Ian Lance Taylor - - * go.test/go-test.exp: Update for latest version of Go testsuite. - -2012-09-29 Thomas KÁnig - - PR fortran/52724 - * gfortran.dg/internal_readwrite_3.f90: New test. - -2012-09-28 Dodji Seketeli - - * g++.dg/warn/Wunused-local-typedefs-3.C: Move the c++-only test - c-c++-common/Wunused-local-typedefs-2.c to here. - - PR c++/54372 - unused attribute inactive on dependant entities - * c-c++-common/Wunused-local-typedefs-2.c: New test. - -2012-09-25 Dodji Seketeli - - PR c++/29028 - Missed unused warning on using declaration - * g++.dg/warn/Wunused-var-18.C: New test. - -2012-09-25 Dodji Seketeli - - PR c++/53551 - -Wunused-local-typedefs misses uses - * g++.dg/warn/Wunused-local-typedefs-2.C: New test. - -2012-09-28 Jakub Jelinek - - PR target/54716 - * gcc.target/i386/xorps-sse2.c: Remove xfails. - - PR tree-optimization/54713 - * gcc.c-torture/compile/pr54713-1.c: New test. - * gcc.c-torture/compile/pr54713-2.c: New test. - * gcc.c-torture/compile/pr54713-3.c: New test. - -2012-09-27 Janis Johnson - - * gcc.target/arm/unsigned-extend-1.c: Omit -march option. - -2012-09-27 Ulrich Weigand - - * gcc.dg/lower-subreg-1.c: Disable on arm-*-* targets. - -2012-09-27 Jakub Jelinek - - PR target/54703 - * gcc.target/i386/pr54703.c: New test. - -2012-09-27 Richard Guenther - - PR lto/54709 - * gcc.dg/lto/pr54709_0.c: New testcase. - * gcc.dg/lto/pr54709_1.c: Likewise. - -2012-09-26 Janis Johnson - - * gcc.target/arm/div64-unwinding.c: XFAIL for GNU/Linux. - - * gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt. - - * gcc.target/arm/combine-movs.c: Use effective target arm_thumb2. - - * gcc.target/arm/pr42879.c: Handle big-endian. - -2012-09-26 Steve Ellcey - - PR c/37303 - * gcc.dg/pr37303.c: Check for rdata or rodata. - -2012-09-26 Christophe Lyon - - * gcc.target/arm/builtin-bswap16-1.c: New testcase. - -2012-09-25 Segher Boessenkool - - PR target/51274 - PR target/53087 - * gcc.target/powerpc/ppc-ne0-1.c: New. - -2012-09-25 Oleg Endo - - PR target/54089 - * gcc.target/sh/pr54089-1.c (test_15, test_16, test_17, test_18, - test_19, test_20, test_21, test_22, test_23): New functions. - * gcc.target/sh/pr54089-4.c: New. - * gcc.target/sh/pr54089-5.c: New. - * gcc.target/sh/pr54089-6.c: New. - * gcc.target/sh/pr54089-7.c: New. - -2012-09-25 Richard Guenther - - PR lto/54625 - * gcc.dg/lto/pr54702_0.c: New testcase. - * gcc.dg/lto/pr54702_1.c: Likewise. - * gcc.dg/lto/pr54625-1_0.c: Likewise. - * gcc.dg/lto/pr54625-1_1.C: Likewise. - * gcc.dg/lto/pr54625-2_0.c: Likewise. - * gcc.dg/lto/pr54625-2_1.C: Likewise. - -2012-09-25 Paolo Carlini - - PR c++/54526 - * g++.dg/cpp0x/parse2.C: New. - * g++.dg/parse/error11.C: Adjust. - * g++.dg/parse/error12.C: Likewise. - -2012-09-25 Igor Zamyatin - - * gcc.target/i386/20030217-1.c: Added check for - large_long_double effective target. - * gcc.target/i386/387-3.c: Likewise. - * gcc.target/i386/387-4.c: Likewise. - * gcc.target/i386/pr36578-1.c: Likewise. - * gcc.target/i386/excess-precision-1.c: Added new code for the case - when long double size is equal double size. - * gcc.target/i386/excess-precision-1.c: Likewise. - * gcc.target/i386/pr36578-2.c: Likewise. - * gcc.target/i386/20030217-2.c: New testcase. - -2012-09-25 Jakub Jelinek - - PR tree-optimization/54676 - * gcc.dg/pr54676.c: New test. - -2012-09-25 Richard Guenther - - PR tree-optimization/53663 - * gcc.dg/torture/pr53663-1.c: New testcase. - * gcc.dg/torture/pr53663-2.c: Likewise. - * gcc.dg/torture/pr53663-3.c: Likewise. - -2012-09-25 Uros Bizjak - - * gcc.target/i386/pr50725.c: Change 'long' to 'long long'. - -2012-09-24 Janis Johnson - - * lib/target-supports-dg.exp (dg-require-effective-target, - dg-skip-if, dg-xfail-if, dg-xfail-run-if, dg-shouldfail): Call - dg-process-target-1 instead of dg-process-target. - (dg-process-target-1): Rename from dg-process-target. - (dg-process-target): New. - -2012-09-24 Richard Guenther - - PR tree-optimization/54684 - * g++.dg/torture/pr54684.C: New testcase. - -2012-09-24 Marc Glisse - - * gcc.dg/tree-ssa/forwprop-23.c: New testcase. - -2012-09-24 Richard Guenther - - PR middle-end/52173 - * gcc.dg/tm/pr52173-1.c: New. - * gcc.dg/tm/pr52173-2.c: New. - -2012-09-23 Eric Botcazou - - * gcc.dg/pr54669.c: New test. - -2012-09-23 Paolo Carlini - Dominique Dhumieres - - PR testsuite/54677 - * g++.dg/cpp0x/decltype32.C: Add -ftemplate-depth=10. - -2012-09-23 Tobias Burnus - - PR fortran/54618 - * gfortran.dg/class_array_14.f90: New. - -2012-09-22 Kai Tietz - - * gcc.dg/tree-ssa/scev-3.c: Add llp64 to xfail. - * gcc.dg/tree-ssa/scev-4.c: Likewise. - -2012-09-21 Dehao Chen - - PR go/54649 - PR tree-optimization/54655 - * g++.dg/pr54655.C: New testcase. - -2012-09-21 Richard Guenther - - PR tree-optimization/54647 - * g++.dg/torture/pr54647.C: New testcase. - -2012-09-21 Marc Glisse - - PR c++/54427 - * c-c++-common/torture/vector-compare-2.c: Add -w. - -2012-09-20 Eric Botcazou - - * gnat.dg/opt20.ads: Move dg directive to... - * gnat.dg/opt20.adb: ...here. - * gnat.dg/addr1.ad[sb]: Likewise. - * gnat.dg/concat2.ad[sb]: Likewise. - * gnat.dg/array16.ad[sb]: Likewise. - * gnat.dg/atomic5.ad[sb]: Likewise. - * gnat.dg/discr29.ad[sb]: Likewise. - * gnat.dg/noreturn5.ad[sb]: Likewise. - * gnat.dg/vect8.ad[sb]: Likewise. Add dg-options. - * gnat.dg/discr23.ads: Remove dg directive. - * gnat.dg/nested_float_packed.ads: Likewise. - * gnat.dg/oconst6.ads: Move to... - * gnat.dg/specs/oconst6.ads: ...here. - -2012-09-20 Paolo Carlini - - PR c++/52432 - * g++.dg/cpp0x/decltype32.C: Tweak. - -2012-09-20 Marc Glisse - - * gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1. - * gcc.dg/tree-ssa/forwprop-20.c: Check in forwprop1. - * gcc.dg/tree-ssa/forwprop-21.c: Check in copyprop1. - * gcc.dg/tree-ssa/forwprop-22.c: Check in copyprop1. - -2012-09-19 Marc Glisse - - PR c++/54581 - * g++.dg/cpp0x/decltype-54581.C: New testcase. - -2012-09-19 Steve Ellcey - - * gcc.target/mips/pr37362.c: Add mips*-mti-elf exception. - -2012-09-19 Tulio Magno Quites Machado Filho - - * gcc.target/powerpc/ppc-get-timebase.c: New file. - * gcc.target/powerpc/ppc-mftb.c: New file. - -2012-09-19 Oleg Endo - - PR target/54089 - * gcc.target/sh/pr54089-1.c (test_11, test_12, test_13, test_14): New - functions. - -2012-09-19 Oleg Endo - - PR target/54236 - * gcc.target/sh/pr54236-1.c (test_08): Add one bit left shift case. - -2012-09-19 Eric Botcazou - - * gcc.c-torture/execute/20120919-1.c: New test. - -2012-09-19 Richard Guenther - - * lib/c-torture.exp (TORTURE_OPTIONS): Add -Og -g. - -2012-09-19 Richard Guenther - - * gcc.dg/builtin-unreachable-6.c: Adjust. - -2012-09-19 Richard Guenther - - * gcc.dg/builtin-object-size-10.c: Adjust. - * gcc.dg/builtin-unreachable-5.c: Adjust. - * gcc.dg/tree-ssa/builtin-fprintf-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-fprintf-chk-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-printf-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-printf-chk-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-vfprintf-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-vfprintf-chk-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-vprintf-1.c: Adjust. - * gcc.dg/tree-ssa/builtin-vprintf-chk-1.c: Adjust. - * gcc.dg/tree-ssa/ssa-ccp-10.c: Adjust. - * gcc.dg/vect/vec-scal-opt.c: Adjust. - * gcc.dg/vect/vec-scal-opt1.c: Adjust. - * gcc.dg/vect/vec-scal-opt2.c: Adjust. - -2012-09-19 Richard Guenther - - PR tree-optimization/54132 - * gcc.dg/tree-ssa/ldist-21.c: New testcase. - * gcc.dg/torture/pr54132.c: Likewise. - -2012-09-19 Terry Guo - - * lib/gcc-dg.exp (dg_runtest_extra_prunes): New variable to define - extra prune rules that will be applied to all tests in a .exp file. - (gcc-dg-prune): Use rules defined by the above variable. - * gcc.target/arm/arm.exp (dg_runtest_extra_prunes): Skip all the - harmless warnings on architecture switch conflict. - -2012-09-19 Hans-Peter Nilsson - - * g++.dg/debug/dwarf2/nested-3.C: Match a sequence - of asm-comment characters instead of a single one. - * g++.dg/debug/dwarf2/nested-2.C: Similar. - -2012-09-18 Janis Johnson - - * gcc.dg/vect/fast-math-pr35982.c: Skip check instead of xfail. - - * gcc.dg/vect/no-vfa-vect-101.c: Skip a check for an irrelevant - target instead of xfailing it. - * gcc.dg/vect/no-vfa-vect-102.c: Likewise. - * gcc.dg/vect/no-vfa-vect-102a.c: Likewise. - * gcc.dg/vect/no-vfa-vect-37.c: Likewise. - * gcc.dg/vect/no-vfa-vect-79.c: Likewise. - * gcc.dg/vect/vect-104.c: Likewise. - * gcc.dg/vect/vect-outer-1-big-array.c: Likewise. - * gcc.dg/vect/vect-outer-1.c: Likewise. - * gcc.dg/vect/vect-outer-1a-big-array.c: Likewise. - * gcc.dg/vect/vect-outer-1a.c: Likewise. - * gcc.dg/vect/vect-outer-1b-big-array.c: Likewise. - * gcc.dg/vect/vect-outer-1b.c: Likewise. - * gcc.dg/vect/vect-outer-2b.c: Likewise. - * gcc.dg/vect/vect-outer-3a-big-array.c: Likewise. - * gcc.dg/vect/vect-outer-3a.c: Likewise. - * gcc.dg/vect/vect-outer-3b.c: Likewise. - * gcc.dg/vect/vect-reduc-dot-s8b.c: Likewise. - - * lib/target-supports.exp - (check_effective_target_vect_widen_mult_qi_to_hi, - check_effective_target_vect_widen_mult_hi_to_si, - check_effective_target_vect_widen_mult_qi_to_hi_pattern, - check_effective_target_vect_widen_mult_hi_to_si_pattern, - check_effective_target_vect_pack_trunc, - check_effective_target_vect_unpack, - check_effective_target_vect_multiple_sizes): Check arm_neon_ok - instead of arm_none. - - * gcc.dg/vect/pr52298.c: Remove "dg-do run". - -2012-09-18 Senthil Kumar Selvaraj - - * lib/target-supports-dg.exp (check-flags): Add cflags from board - config to compiler_flags. - -2012-09-18 Jakub Jelinek - - PR target/54592 - * gcc.target/i386/pr54592.c: New test. - - PR tree-optimization/54610 - * gcc.target/i386/pr54610.c: New test. - -2012-09-17 Jason Merrill - - PR c++/54575 - * g++.dg/cpp0x/alias-decl-21.C: New. - * g++.dg/cpp0x/alias-decl-22.C: New. - -2012-09-17 Tobias Burnus - - PR fortran/54608 - * gfortran.dg/scan_2.f90: New. - -2012-09-17 Jason Merrill - - PR c++/53661 - * g++.dg/init/aggr9.C: New. - -2012-09-17 Eric Botcazou - - * gnat.dg/loop_optimization12.ad[sb]: New test. - -2012-09-17 Janus Weil - - PR fortran/54285 - * gfortran.dg/proc_ptr_result_7.f90: New. - -2012-09-17 Tobias Burnus - - PR fortran/54603 - * gfortran.dg/structure_constructor_11.f90: New. - -2012-09-17 Jakub Jelinek - - PR tree-optimization/54563 - * g++.dg/torture/pr54563.C: New test. - -2012-09-16 Janus Weil - - PR fortran/54594 - * gfortran.dg/typebound_generic_14.f03: New. - -2012-09-16 Janus Weil - - PR fortran/54387 - * gfortran.dg/proc_ptr_38.f90: New. - -2012-09-16 John David Anglin - - PR debug/54460 - * g++.dg/debug/dwarf2/nested-3.C: Add hppa assembler comment character - to scary regexp. - - PR testsuite/54007 - * gnat.dg/lto15.adb: Require lto. - - * gfortran.dg/bind_c_array_params_2.f90: Adjust scan-assembler-times - "myBindC" for hppa*-*-hpux*. - -2012-09-16 Mikael Morin - - * gfortran.dg/namelist_75.f90: New test. - -2012-09-15 Tom de Vries - - * gcc.dg/tree-ssa/vrp82.c: New test. - * gcc.dg/tree-ssa/vrp83.c: Same. - * gcc.dg/tree-ssa/vrp84.c: Same. - -2012-09-15 Tom de Vries - - * gcc.dg/tree-ssa/vrp80-2.c: Rename to ... - * gcc.dg/tree-ssa/vrp81.c: ... this. - -2012-09-15 Georg-Johann Lay - - PR target/54222 - * gcc.target/avr/torture/fix-types.h: New. - * gcc.target/avr/torture/vals-hr.def: New. - * gcc.target/avr/torture/vals-r.def: New. - * gcc.target/avr/torture/vals-k.def: New. - * gcc.target/avr/torture/vals-ur.def: New. - * gcc.target/avr/torture/vals-uk.def: New. - * gcc.target/avr/torture/vals-uhr.def: New. - * gcc.target/avr/torture/vals-llk.def: New. - * gcc.target/avr/torture/vals-ullk.def: New. - * gcc.target/avr/torture/sat-hr-plus-minus.c: New. - * gcc.target/avr/torture/sat-r-plus-minus.c: New. - * gcc.target/avr/torture/sat-k-plus-minus.c: New. - * gcc.target/avr/torture/sat-ur-plus-minus.c: New. - * gcc.target/avr/torture/sat-uk-plus-minus.c: New. - * gcc.target/avr/torture/sat-uhr-plus-minus.c: New. - * gcc.target/avr/torture/sat-llk-plus-minus.c: New. - * gcc.target/avr/torture/sat-ullk-plus-minus.c: New. - -2012-09-14 Dehao Chen - - * g++.dg/debug/dwarf2/deallocator.C: New test. - -2012-09-14 Joseph Myers - - PR c/54552 - * gcc.c-torture/compile/pr54552-1.c: New test. - -2012-09-14 Marc Glisse - - PR c++/54427 - * g++.dg/other/vector-compare.C: New testcase. - * c-c++-common/vector-compare-3.c: New testcase. - * gcc.dg/vector-shift.c: Move ... - * c-c++-common/vector-shift.c: ... here. - * gcc.dg/vector-shift1.c: Move ... - * c-c++-common/vector-shift1.c: ... here. - * gcc.dg/vector-shift3.c: Move ... - * c-c++-common/vector-shift3.c: ... here. - * gcc.dg/vector-compare-1.c: Move ... - * c-c++-common/vector-compare-1.c: ... here. - * gcc.dg/vector-compare-2.c: Move ... - * c-c++-common/vector-compare-2.c: ... here. - * gcc.c-torture/execute/vector-compare-1.c: Move ... - * c-c++-common/torture/vector-compare-1.c: ... here. - * gcc.c-torture/execute/vector-compare-2.x: Delete. - * gcc.c-torture/execute/vector-compare-2.c: Move ... - * c-c++-common/torture/vector-compare-2.c: ... here. - * gcc.c-torture/execute/vector-shift.c: Move ... - * c-c++-common/torture/vector-shift.c: ... here. - * gcc.c-torture/execute/vector-shift2.c: Move ... - * c-c++-common/torture/vector-shift2.c: ... here. - * gcc.c-torture/execute/vector-subscript-1.c: Move ... - * c-c++-common/torture/vector-subscript-1.c: ... here. - * gcc.c-torture/execute/vector-subscript-2.c: Move ... - * c-c++-common/torture/vector-subscript-2.c: ... here. - * gcc.c-torture/execute/vector-subscript-3.c: Move ... - * c-c++-common/torture/vector-subscript-3.c: ... here. - -2012-09-14 Joseph Myers - - PR c/54103 - * gcc.c-torture/compile/pr54103-1.c, - gcc.c-torture/compile/pr54103-2.c, - gcc.c-torture/compile/pr54103-3.c, - gcc.c-torture/compile/pr54103-4.c, - gcc.c-torture/compile/pr54103-5.c, - gcc.c-torture/compile/pr54103-6.c: New tests. - * gcc.dg/c90-const-expr-8.c: Update expected column number. - -2012-09-14 Eric Botcazou - - * gcc.dg/pr44194-1.c: Check that there are no memory accesses left. - -2012-09-14 Richard Guenther - - PR tree-optimization/54565 - * gcc.dg/tree-ssa/ssa-ccp-17.c: Adjust. - * gcc.dg/tree-ssa/forwprop-6.c: Likewise. Remove XFAIL. - -2012-09-14 Ulrich Weigand - - * gcc.target/arm/combine-movs.c: Add missing space. - -2012-09-14 Richard Guenther - - * g++.dg/torture/builtin-location.C: New testcase. - -2012-09-13 Paolo Carlini - Manuel LÁpez-IbÁÁez - - PR c++/53210 - * g++.dg/warn/Wuninitialized-self.C: New. - -2012-09-13 Jakub Jelinek - - PR c/54559 - * gcc.c-torture/compile/pr54559.c: New test. - -2012-09-13 Jason Merrill - - PR c++/53839 - * g++.dg/cpp0x/constexpr-temp1.C: New. - - PR c++/54511 - * g++.dg/template/anonunion2.C: New. - - PR c++/53836 - * g++.dg/template/init10.C: New. - -2012-09-13 Tobias Burnus - - PR fortran/54556 - * gfortran.dg/implicit_pure_3.f90: New. - -2012-09-13 Richard Guenther - - * gcc.dg/tree-ssa/ssa-fre-37.c: New testcase. - -2012-09-13 Christophe Lyon - - * gcc.target/arm/builtin-bswap-1.c: New testcase. - -2012-09-12 Kyrylo Tkachov - - * c-c++-common/pr51712.c: Handle for short-enum targets. - -2012-09-12 Terry Guo - - * gcc.target/arm/combine-movs.c: Check movs for ARM mode - and lsrs for Thumb2 mode. - -2012-09-12 Jan Hubicka - - * gcc.dg/ipa/inlinehint-2.c: New testcase. - -2012-09-12 H.J. Lu - - PR target/54445 - * gcc.target/i386/pr54445-1.c: New file. - * gcc.target/i386/pr54445-2.c: Likewise. - -2012-09-12 Tobias Burnus - - PR fortran/54225 - PR fortran/53306 - * gfortran.dg/coarray_10.f90: Update dg-error. - * gfortran.dg/coarray_28.f90: New. - * gfortran.dg/array_section_3.f90: New. - -2012-09-11 Christophe Lyon - - * gcc.target/arm/neon-vset_lanes8.c, gcc.target/arm/pr51835.c, - gcc.target/arm/pr48252.c: Fix for big-endian support. - -2012-09-11 Marc Glisse - - * gcc.dg/tree-ssa/forwprop-22.c: New testcase. - -2012-09-11 Ramana Radhakrishnan - Matthew Gretton-Dann - - * gcc.target/arm/neon-vfma-1.c: New testcase. - * gcc.target/arm/neon-vfms-1.c: Likewise. - * gcc.target/arm/neon-vmla-1.c: Update test to use int instead - of float. - * gcc.target/arm/neon-vmls-1.c: Likewise. - * lib/target-supports.exp (add_options_for_arm_neonv2): New - function. - (check_effective_target_arm_neonv2_ok_nocache): Likewise. - (check_effective_target_arm_neonv2_ok): Likewise. - (check_effective_target_arm_neonv2_hw): Likewise. - (check_effective_target_arm_neonv2): Likewise. - -2012-09-11 Richard Guenther - - PR middle-end/54515 - * g++.dg/tree-ssa/pr54515.C: New testcase. - -2012-09-10 Andrew Pinski - - PR tree-opt/c54362 - * gcc.dg/tm/memopt-16.c: New testcase. - -2012-09-10 Paolo Carlini - - PR c++/54541 - PR c++/54542 - * g++.dg/cpp0x/sfinae40.C: New. - * g++.dg/cpp0x/sfinae41.C: Likewise. - -2012-09-10 Jason Merrill - - PR c++/54538 - * g++.dg/cpp0x/lambda/lambda-mangle4.C: New. - -2012-09-10 Oleg Endo - - PR target/54089 - * gcc.target/sh/pr54089-3.c: New. - -2012-09-10 Marc Glisse - - * gcc.dg/tree-ssa/forwprop-21.c: New testcase. - -2012-09-10 Aldy Hernandez - - * gcc.dg/tm/reg-promotion.c: Modify dump message check. - -2012-09-10 Aldy Hernandez - - * gcc.dg/pr52558-2.c: Delete. - * gcc.dg/simulate-thread/speculative-store-3.c: New. - -2012-09-10 Marc Glisse - - * gcc.dg/tree-ssa/forwprop-20.c: New testcase. - -2012-09-10 Richard Guenther - - PR tree-optimization/54520 - * gcc.dg/torture/pr54520.c: New testcase. - -2012-09-10 Jason Merrill - - PR c++/54506 - * g++.dg/cpp0x/implicit14.C: New. - -2012-09-07 Mikael Morin - - PR fortran/54208 - * gfortran.dg/bound_simplification_3.f90: New test. - -2012-09-07 Aldy Hernandez - - PR testsuite/54184 - * gcc.dg/pr52558-1.c: Delete. - * gcc.dg/simulate-thread/speculative-store-2.c: New. - -2012-09-07 Richard Earnshaw - - * gcc.target/arm/pr50318-1.c: Scan for smlal. - * gcc.target/arm/smlaltb-1.c: XFAIL test. - * gcc.target/arm/smlaltt-1.c: Likewise. - -2012-09-07 Eric Botcazou - - * gcc.dg/pr44194-1.c: Skip on Alpha and adjust regexp for SPARC64. - -2012-09-07 Tom de Vries - - PR tree-optimization/53986 - * gcc.dg/tree-ssa/vrp80.c: New test. - * gcc.dg/tree-ssa/vrp80-2.c: Same. - -2012-09-06 Jason Merrill - - PR c++/54341 - PR c++/54253 - * g++.dg/cpp0x/constexpr-virtual2.C: New. - * g++.dg/cpp0x/constexpr-virtual3.C: New. - -2012-09-06 Andrew Pinski - - PR tree-opt/54494 - * gcc.dg/tree-ssa/strlen-1.c: New testcase. - -2012-09-06 Jakub Jelinek - - PR rtl-optimization/54455 - * gcc.dg/54455.c: New test. - -2012-09-06 Tobias Burnus - - PR fortran/54463 - * gfortran.dg/promotion_2.f90: New. - -2012-09-05 Jakub Jelinek - - PR middle-end/54486 - * c-c++-common/pr54486.c: New test. - -2012-09-05 Dominique Dhumieres - - PR fortran/54474 - * gfortran.dg/coarray_poly_3.f90: Adjust error messages. - -2012-09-05 Paolo Carlini - - PR c++/54191 - * g++.dg/cpp0x/sfinae39.C: New. - -2012-09-04 Jason Merrill - - PR c++/54441 - * g++.dg/ext/flexary3.C: New. - - PR c++/54420 - * g++.dg/cpp0x/lambda/lambda-intname.C: New. - - PR c++/54198 - * g++.dg/template/defarg15.C: New. - - PR c++/54437 - * g++.dg/template/access24.C: New. - -2012-09-04 Richard Guenther - - PR tree-optimization/54458 - * gcc.dg/torture/pr54458.c: New testcase. - -2012-09-04 Christophe Lyon - - * gcc.target/arm/neon-vext.c: New test. - * gcc.target/arm/neon-vext-execute.c: Ditto. - -2012-09-04 Janus Weil - - PR fortran/54243 - PR fortran/54244 - * gfortran.dg/select_type_29.f03: New. - -2012-09-03 Marc Glisse - - * gcc.dg/fold-perm.c: Improve test. - -2012-09-03 Tobias Burnus - - PR fortran/51632 - * gfortran.dg/coarray_class_1.f90: New. - -2012-09-02 Uros Bizjak - - PR target/49206 - * gcc.c-torture/compile/pr49206.c: New test. - -2012-09-02 Dominique Dhumieres - Uros Bizjak - - PR target/36680 - * gfortran.dg/pr36680.f90: New test. - -2012-09-02 Uros Bizjak - - PR target/42295 - * g++.dg/opt/pr42295.C: New test. - -2012-09-01 Jakub Jelinek - - PR target/54436 - * gcc.dg/torture/pr54436.c: New test. - -2012-09-01 Andrew Pinski - - * gcc.target/mips/truncate-8.c: New testcase. - -2012-09-01 Uros Bizjak - - PR target/46829 - PR target/46843 - * gcc.target/i386/pr46829.c: New test. - * gcc.target/i386/pr46843.c: Ditto. - -2012-08-31 Paolo Carlini - Jason Merrill - - PR c++/18747 - * g++.dg/parse/error50.C: New. - -2012-08-31 Jakub Jelinek - - PR c/54428 - * gcc.c-torture/compile/pr54428.c: New test. - -2012-08-31 Ollie Wild - - PR c++/54197 - * g++.dg/init/lifetime3.C: New test. - -2012-08-31 Martin Jambor - - PR middle-end/54409 - * gcc.dg/torture/pr54409.c: New test. - -2012-08-31 Martin Jambor - - * gfortran.dg/pr48636.f90: Add dump scan checks. - -2012-08-29 Richard Sandiford - - * gcc.target/mips/mips.exp: Work out default -msynci setting. - -2012-08-28 Joey Ye - - * gcc.dg/tree-ssa/ssa-dom-thread-3.c: Add -fno-short-enums. - -2012-08-27 Uros Bizjak - - PR target/46254 - * gcc.target/i386/pr46254.c: New test. - -2012-08-27 Richard Sandiford - - * gcc.target/mips/ext_ins.c, gcc.target/mips/octeon-pop-2.c, - gcc.target/mips/pr54240.c, gcc.target/mips/stack-1.c, - gcc.target/mips/unaligned-1.c: Add NOMIPS16. - -2012-08-27 Richard Sandiford - - * gcc.target/mips/20020620-1.c, gcc.target/mips/atomic-memory-2.c, - gcc.target/mips/branch-2.c, gcc.target/mips/branch-3.c, - gcc.target/mips/clear-cache-1.c, gcc.target/mips/const-anchor-1.c, - gcc.target/mips/const-anchor-2.c, gcc.target/mips/dspr2-MULT.c, - gcc.target/mips/dspr2-MULTU.c, gcc.target/mips/ext-1.c, - gcc.target/mips/ext-2.c, gcc.target/mips/ext-3.c, - gcc.target/mips/ext-4.c, gcc.target/mips/ext_ins.c, - gcc.target/mips/fpcmp-1.c, gcc.target/mips/fpcmp-2.c, - gcc.target/mips/mips16e-extends.c, gcc.target/mips/mips32-dsp.c, - gcc.target/mips/mips32-dsp-type.c, gcc.target/mips/mips32r2-mxhc1.c, - gcc.target/mips/mips-ps-5.c, gcc.target/mips/mips-ps-7.c, - gcc.target/mips/mips-ps-type-2.c, gcc.target/mips/mips-ps-type.c, - gcc.target/mips/movcc-1.c, gcc.target/mips/movcc-2.c, - gcc.target/mips/movcc-3.c, gcc.target/mips/neg-abs-1.c, - gcc.target/mips/neg-abs-2.c, gcc.target/mips/nmadd-1.c, - gcc.target/mips/nmadd-2.c, gcc.target/mips/nmadd-3.c, - gcc.target/mips/octeon-exts-7.c, gcc.target/mips/octeon-seq-4.c, - gcc.target/mips/rsqrt-1.c, gcc.target/mips/rsqrt-2.c, - gcc.target/mips/rsqrt-3.c, gcc.target/mips/sb1-1.c, - gcc.target/mips/scc-4.c, gcc.target/mips/stack-1.c, - gcc.target/mips/unaligned-1.c: Tighten regexps. - -2012-08-27 Richard Sandiford - - * gcc.target/mips/mips.exp: Use gcc-dg-runtest rather than dg-runtest. - (mips_option_groups): Remove optimization. Add various -f options. - (mips-dg-options): Make -funroll-loops imply -funroll-all-loops - and -pg imply -fno-omit-frame-pointer. - * gcc.target/mips/abi-eabi32-long32.c: Remove optimization flag. - * gcc.target/mips/abi-eabi32-long64.c: Likewise. - * gcc.target/mips/abi-eabi64-long32.c: Likewise. - * gcc.target/mips/abi-eabi64-long64.c: Likewise. - * gcc.target/mips/abi-n32-long32-no-shared.c: Likewise. - * gcc.target/mips/abi-n32-long32-pic.c: Likewise. - * gcc.target/mips/abi-n32-long32.c: Likewise. - * gcc.target/mips/abi-n32-long64-no-shared.c: Likewise. - * gcc.target/mips/abi-n32-long64-pic.c: Likewise. - * gcc.target/mips/abi-n32-long64.c: Likewise. - * gcc.target/mips/abi-n64-long32-no-shared.c: Likewise. - * gcc.target/mips/abi-n64-long32-pic.c: Likewise. - * gcc.target/mips/abi-n64-long32.c: Likewise. - * gcc.target/mips/abi-n64-long64-no-shared.c: Likewise. - * gcc.target/mips/abi-n64-long64-pic.c: Likewise. - * gcc.target/mips/abi-n64-long64.c: Likewise. - * gcc.target/mips/abi-o32-long32-no-shared.c: Likewise. - * gcc.target/mips/abi-o32-long32-pic.c: Likewise. - * gcc.target/mips/abi-o32-long32.c: Likewise. - * gcc.target/mips/abi-o32-long64-no-shared.c: Likewise. - * gcc.target/mips/abi-o32-long64-pic.c: Likewise. - * gcc.target/mips/abi-o32-long64.c: Likewise. - * gcc.target/mips/abi-o64-long32-no-shared.c: Likewise. - * gcc.target/mips/abi-o64-long32-pic.c: Likewise. - * gcc.target/mips/abi-o64-long32.c: Likewise. - * gcc.target/mips/abi-o64-long64-no-shared.c: Likewise. - * gcc.target/mips/abi-o64-long64-pic.c: Likewise. - * gcc.target/mips/abi-o64-long64.c: Likewise. - * gcc.target/mips/asm-1.c: Likewise. - * gcc.target/mips/branch-1.c: Likewise. - * gcc.target/mips/call-3.c: Likewise. - * gcc.target/mips/call-saved-3.c: Likewise. - * gcc.target/mips/clear-cache-1.c: Likewise. - * gcc.target/mips/div-1.c: Likewise. - * gcc.target/mips/div-2.c: Likewise. - * gcc.target/mips/div-3.c: Likewise. - * gcc.target/mips/div-4.c: Likewise. - * gcc.target/mips/div-5.c: Likewise. - * gcc.target/mips/div-6.c: Likewise. - * gcc.target/mips/div-7.c: Likewise. - * gcc.target/mips/div-8.c: Likewise. - * gcc.target/mips/div-9.c: Likewise. - * gcc.target/mips/div-10.c: Likewise. - * gcc.target/mips/div-11.c: Likewise. - * gcc.target/mips/div-12.c: Likewise. - * gcc.target/mips/dsp-ctrl.c: Likewise. - * gcc.target/mips/dsp-no-lhx.c: Likewise. - * gcc.target/mips/ext-8.c: Likewise. - * gcc.target/mips/extend-2.c: Likewise. - * gcc.target/mips/fix-r10000-1.c: Likewise. - * gcc.target/mips/fix-r10000-2.c: Likewise. - * gcc.target/mips/fix-r10000-3.c: Likewise. - * gcc.target/mips/fix-r10000-4.c: Likewise. - * gcc.target/mips/fix-r10000-5.c: Likewise. - * gcc.target/mips/fix-r10000-6.c: Likewise. - * gcc.target/mips/fix-r10000-7.c: Likewise. - * gcc.target/mips/fix-r10000-8.c: Likewise. - * gcc.target/mips/fix-r10000-9.c: Likewise. - * gcc.target/mips/fix-r10000-10.c: Likewise. - * gcc.target/mips/fix-r10000-11.c: Likewise. - * gcc.target/mips/fix-r10000-12.c: Likewise. - * gcc.target/mips/fix-r10000-13.c: Likewise. - * gcc.target/mips/fix-r10000-14.c: Likewise. - * gcc.target/mips/fix-r10000-15.c: Likewise. - * gcc.target/mips/fpcmp-1.c: Likewise. - * gcc.target/mips/fpcmp-2.c: Likewise. - * gcc.target/mips/fpr-moves-7.c: Likewise. - * gcc.target/mips/fpr-moves-8.c: Likewise. - * gcc.target/mips/int-moves-1.c: Likewise. - * gcc.target/mips/int-moves-2.c: Likewise. - * gcc.target/mips/long-calls-pg.c: Likewise. - * gcc.target/mips/loongson-muldiv-1.c: Likewise. - * gcc.target/mips/loongson-muldiv-2.c: Likewise. - * gcc.target/mips/loongson-shift-count-truncated-1.c: Likewise. - * gcc.target/mips/loongson3a-muldiv-1.c: Likewise. - * gcc.target/mips/loongson3a-muldiv-2.c: Likewise. - * gcc.target/mips/mips-3d-1.c: Likewise. - * gcc.target/mips/mips-3d-2.c: Likewise. - * gcc.target/mips/mips-3d-3.c: Likewise. - * gcc.target/mips/mips-3d-4.c: Likewise. - * gcc.target/mips/mips-3d-5.c: Likewise. - * gcc.target/mips/mips-3d-6.c: Likewise. - * gcc.target/mips/mips-3d-7.c: Likewise. - * gcc.target/mips/mips-3d-8.c: Likewise. - * gcc.target/mips/mips-3d-9.c: Likewise. - * gcc.target/mips/mips-ps-1.c: Likewise. - * gcc.target/mips/mips-ps-2.c: Likewise. - * gcc.target/mips/mips-ps-3.c: Likewise. - * gcc.target/mips/mips-ps-4.c: Likewise. - * gcc.target/mips/mips-ps-6.c: Likewise. - * gcc.target/mips/mips32-dspr2.c: Likewise. - * gcc.target/mips/mmcount-ra-address-1.c: Likewise. - * gcc.target/mips/neg-abs-1.c: Likewise. - * gcc.target/mips/neg-abs-2.c: Likewise. - * gcc.target/mips/nmadd-3.c: Likewise. - * gcc.target/mips/no-smartmips-lwxs.c: Likewise. - * gcc.target/mips/no-smartmips-ror-1.c: Likewise. - * gcc.target/mips/octeon-pop-1.c: Likewise. - * gcc.target/mips/pr26765.c: Likewise. - * gcc.target/mips/pr33256.c: Likewise. - * gcc.target/mips/pr33635-1.c: Likewise. - * gcc.target/mips/pr33755.c: Likewise. - * gcc.target/mips/pr35802.c: Likewise. - * gcc.target/mips/pr45074.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-1.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-2.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-3.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-4.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-5.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-6.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-7.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-8.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-9.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-11.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-12.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-13.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-14.c: Likewise. - * gcc.target/mips/r10k-cache-barrier-15.c: Likewise. - * gcc.target/mips/save-restore-1.c: Likewise. - * gcc.target/mips/save-restore-3.c: Likewise. - * gcc.target/mips/save-restore-5.c: Likewise. - * gcc.target/mips/smartmips-ror-1.c: Likewise. - * gcc.target/mips/smartmips-ror-2.c: Likewise. - * gcc.target/mips/smartmips-ror-3.c: Likewise. - * gcc.target/mips/smartmips-ror-4.c: Likewise. - * gcc.target/mips/stack-1.c: Likewise. - - * gcc.target/mips/clear-cache-2.c: Remove optimization flag. - Tighten regexps. - - * gcc.target/mips/branch-8.c: Arrange for the delay slot of the - branch under test to be filled with preceding rather than - following instructions. - * gcc.target/mips/branch-10.c: Likewise. - * gcc.target/mips/branch-11.c: Likewise. - * gcc.target/mips/branch-12.c: Likewise. - * gcc.target/mips/branch-13.c: Likewise. - * gcc.target/mips/branch-9.c: Likewise. Allow the frame pointer - to be eliminated. Tighten $28 scan-assembler-not test. - - * gcc.target/mips/call-2.c: Remove optimization flag. Move second - function to... - * gcc.target/mips/call-4.c: ...this new test. - - * gcc.target/mips/code-readable-2.c: Rework to make a jump table - more likely. - * gcc.target/mips/code-readable-3.c: Likewise. - * gcc.target/mips/code-readable-1.c: Likewise. Remove optimization - flag but skip for -O0. - * gcc.target/mips/code-readable-4.c: Likewise. - - * gcc.target/mips/mips32-dsp-run.c: Prevent compile-time reduction - of operations under test. - * gcc.target/mips/mips32-dsp.c: Likewise. Remove optimization flag. - - * gcc.target/mips/near-far-3.c: Remove optimization flag. - Don't require sibling-call optimization. - * gcc.target/mips/near-far-4.c: Likewise. - - * gcc.target/mips/no-dsp-1.c: Require -ffat-lto-objects. - Make sure that the register variable is used. - * gcc.target/mips/soft-float-1.c: Likewise. - - * gcc.target/mips/sdata-1.c: Make static data volatile. - * gcc.target/mips/sdata-2.c: Likewise. - * gcc.target/mips/sdata-3.c: Likewise. - * gcc.target/mips/sdata-4.c: Likewise. - - * gcc.target/mips/20020620-1.c: Remove optimization flag but - skip for -O0. - * gcc.target/mips/atomic-memory-2.c: Likewise. - * gcc.target/mips/branch-cost-1.c: Likewise. - * gcc.target/mips/branch-cost-2.c: Likewise. - * gcc.target/mips/cache-1.c: Likewise. - * gcc.target/mips/call-1.c: Likewise. - * gcc.target/mips/call-saved-2.c: Likewise. - * gcc.target/mips/const-anchor-1.c: Likewise. - * gcc.target/mips/const-anchor-2.c: Likewise. - * gcc.target/mips/dse-1.c: Likewise. - * gcc.target/mips/dsp-lhx.c: Likewise. - * gcc.target/mips/dspr2-MULTU.c: Likewise. - * gcc.target/mips/ext-1.c: Likewise. - * gcc.target/mips/ext-2.c: Likewise. - * gcc.target/mips/ext-3.c: Likewise. - * gcc.target/mips/ext-4.c: Likewise. - * gcc.target/mips/ext-5.c: Likewise. - * gcc.target/mips/ext-6.c: Likewise. - * gcc.target/mips/ext-7.c: Likewise. - * gcc.target/mips/extend-1.c: Likewise. - * gcc.target/mips/fix-r4000-1.c: Likewise. - * gcc.target/mips/fix-r4000-3.c: Likewise. - * gcc.target/mips/fix-r4000-5.c: Likewise. - * gcc.target/mips/fix-r4000-6.c: Likewise. - * gcc.target/mips/fix-r4000-8.c: Likewise. - * gcc.target/mips/fix-r4000-10.c: Likewise. - * gcc.target/mips/fixed-scalar-type.c: Likewise. - * gcc.target/mips/fixed-vector-type.c: Likewise. - * gcc.target/mips/fpr-moves-1.c: Likewise. - * gcc.target/mips/fpr-moves-2.c: Likewise. - * gcc.target/mips/fpr-moves-3.c: Likewise. - * gcc.target/mips/fpr-moves-4.c: Likewise. - * gcc.target/mips/fpr-moves-5.c: Likewise. - * gcc.target/mips/fpr-moves-6.c: Likewise. - * gcc.target/mips/ins-1.c: Likewise. - * gcc.target/mips/ins-2.c: Likewise. - * gcc.target/mips/interrupt_handler-2.c: Likewise. - * gcc.target/mips/interrupt_handler-3.c: Likewise. - * gcc.target/mips/lazy-binding-1.c: Likewise. - * gcc.target/mips/madd-3.c: Likewise. - * gcc.target/mips/madd-5.c: Likewise. - * gcc.target/mips/madd-6.c: Likewise. - * gcc.target/mips/madd-8.c: Likewise. - * gcc.target/mips/madd-9.c: Likewise. - * gcc.target/mips/memcpy-1.c: Likewise. - * gcc.target/mips/mips-ps-type.c: Likewise. - * gcc.target/mips/mips-ps-type-2.c: Likewise. - * gcc.target/mips/mips-sched-madd.c: Likewise. - * gcc.target/mips/mips16e-extends.c: Likewise. - * gcc.target/mips/mips32r2-mxhc1.c: Likewise. - * gcc.target/mips/mips64-dsp-ldx.c: Likewise. - * gcc.target/mips/movcc-1.c: Likewise. - * gcc.target/mips/movcc-2.c: Likewise. - * gcc.target/mips/movcc-3.c: Likewise. - * gcc.target/mips/msub-5.c: Likewise. - * gcc.target/mips/msub-6.c: Likewise. - * gcc.target/mips/msub-8.c: Likewise. - * gcc.target/mips/mult-2.c: Likewise. - * gcc.target/mips/mult-3.c: Likewise. - * gcc.target/mips/mult-5.c: Likewise. - * gcc.target/mips/mult-6.c: Likewise. - * gcc.target/mips/mult-7.c: Likewise. - * gcc.target/mips/mult-12.c: Likewise. - * gcc.target/mips/mult-13.c: Likewise. - * gcc.target/mips/mult-14.c: Likewise. - * gcc.target/mips/mult-15.c: Likewise. - * gcc.target/mips/mult-17.c: Likewise. - * gcc.target/mips/mult-18.c: Likewise. - * gcc.target/mips/mult-19.c: Likewise. - * gcc.target/mips/nmadd-1.c: Likewise. - * gcc.target/mips/nmadd-2.c: Likewise. - * gcc.target/mips/octeon-baddu-1.c: Likewise. - * gcc.target/mips/octeon-cins-1.c: Likewise. - * gcc.target/mips/octeon-cins-2.c: Likewise. - * gcc.target/mips/octeon-dmul-3.c: Likewise. - * gcc.target/mips/octeon-exts-2.c: Likewise. - * gcc.target/mips/octeon-exts-3.c: Likewise. - * gcc.target/mips/octeon-exts-4.c: Likewise. - * gcc.target/mips/octeon-exts-5.c: Likewise. - * gcc.target/mips/octeon-exts-6.c: Likewise. - * gcc.target/mips/octeon-exts-7.c: Likewise. - * gcc.target/mips/octeon-pop-2.c: Likewise. - * gcc.target/mips/octeon-seq-3.c: Likewise. - * gcc.target/mips/octeon-seq-4.c: Likewise. - * gcc.target/mips/octeon2-lx-1.c: Likewise. - * gcc.target/mips/octeon2-lx-2.c: Likewise. - * gcc.target/mips/octeon2-lx-3.c: Likewise. - * gcc.target/mips/pr54240.c: Likewise. - * gcc.target/mips/rsqrt-1.c: Likewise. - * gcc.target/mips/rsqrt-2.c: Likewise. - * gcc.target/mips/rsqrt-3.c: Likewise. - * gcc.target/mips/rsqrt-4.c: Likewise. - * gcc.target/mips/save-restore-2.c: Likewise. - * gcc.target/mips/save-restore-4.c: Likewise. - * gcc.target/mips/sb1-1.c: Likewise. - * gcc.target/mips/scc-1.c: Likewise. - * gcc.target/mips/scc-2.c: Likewise. - * gcc.target/mips/scc-3.c: Likewise. - * gcc.target/mips/scc-4.c: Likewise. - * gcc.target/mips/smartmips-lwxs.c: Likewise. - * gcc.target/mips/truncate-1.c: Likewise. - * gcc.target/mips/truncate-2.c: Likewise. - * gcc.target/mips/truncate-3.c: Likewise. - * gcc.target/mips/truncate-4.c: Likewise. - * gcc.target/mips/truncate-5.c: Likewise. - * gcc.target/mips/truncate-6.c: Likewise. - * gcc.target/mips/unaligned-1.c: Likewise. - - * gcc.target/mips/dpaq_sa_l_w.c: Remove optimization flag but - skip for -O0. Require -fexpensive-optimizations. - * gcc.target/mips/dpsq_sa_l_w.c: Likewise. - * gcc.target/mips/dspr2-MULT.c: Likewise. - * gcc.target/mips/fix-r4000-2.c: Likewise. - * gcc.target/mips/fix-r4000-4.c: Likewise. - * gcc.target/mips/fix-r4000-7.c: Likewise. - * gcc.target/mips/fix-r4000-9.c: Likewise. - * gcc.target/mips/madd-1.c: Likewise. - * gcc.target/mips/madd-2.c: Likewise. - * gcc.target/mips/madd-4.c: Likewise. - * gcc.target/mips/maddu-1.c: Likewise. - * gcc.target/mips/maddu-2.c: Likewise. - * gcc.target/mips/maddu-3.c: Likewise. - * gcc.target/mips/maddu-4.c: Likewise. - * gcc.target/mips/msub-1.c: Likewise. - * gcc.target/mips/msub-2.c: Likewise. - * gcc.target/mips/msub-3.c: Likewise. - * gcc.target/mips/msub-4.c: Likewise. - * gcc.target/mips/msubu-1.c: Likewise. - * gcc.target/mips/msubu-2.c: Likewise. - * gcc.target/mips/msubu-3.c: Likewise. - * gcc.target/mips/msubu-4.c: Likewise. - * gcc.target/mips/mult-1.c: Likewise. - * gcc.target/mips/mult-4.c: Likewise. - * gcc.target/mips/mult-8.c: Likewise. - * gcc.target/mips/mult-9.c: Likewise. - * gcc.target/mips/mult-10.c: Likewise. - * gcc.target/mips/mult-11.c: Likewise. - * gcc.target/mips/mult-16.c: Likewise. - - * gcc.target/mips/fix-r4000-11.c: Remove optimization flag but - skip for -O0 and -Os. - * gcc.target/mips/fix-r4000-12.c: Likewise. - * gcc.target/mips/madd-7.c: Likewise. - * gcc.target/mips/mips-ps-5.c: Likewise. - * gcc.target/mips/mips-ps-7.c: Likewise. - * gcc.target/mips/msub-7.c: Likewise. - - * gcc.target/mips/mmcount-ra-address-2.c: Remove optimization flag but - skip for -O0. Require -mno-abicalls. - * gcc.target/mips/mmcount-ra-address-3.c: Likewise. - - * gcc.target/mips/octeon-bbit-1.c: Remove optimization flag but - skip for -O0. Require a total number of BBIT instructions and - at least one of each kind. - - * gcc.target/mips/octeon-bbit-2.c: Remove optimization flag but - skip for -O0. Require -fno-unroll-loops. - - * gcc.target/mips/octeon-bbit-3.c: Remove optimization flag but - skip for -O0. Allow BLTZ as well as BGEZ. - - * gcc.target/mips/octeon-dmul-2.c: Skip for -Os. - - * gcc.target/mips/octeon-pipe-1.c: Remove optimization flag but - skip for -O0. Require -fschedule-insns2. - * gcc.target/mips/octeon2-pipe-1.c: Likewise. - - * gcc.target/mips/r10k-cache-barrier-10.c: Remove optimization flag - but skip for -O0. Make a branch-likely more likely. - - * gcc.target/mips/timode-2.c: Split each test into its own function. - * gcc.target/mips/timode-1.c: Likewise. Skip for -Os. - - * gcc.target/mips/vr-mult-1.c: Remove optimization flag but - skip for -O0. Require -fpeephole2. - * gcc.target/mips/vr-mult-2.c: Likewise. - -2012-05-25 Dodji Seketeli - - PR preprocessor/53469 - * gcc.dg/cpp/_Pragma7.c: New test case. - -2012-08-27 Tobias Burnus - - PR fortran/54370 - * gfortran.dg/do_5.f90: New. - -2012-08-27 Tobias Burnus - - * gfortran.dg/bessel_5.f90: Remove -Wno-compare-reals - from dg-options as -Wall no longer implies it. - -2012-08-26 Richard Sandiford - - * lib/scanasm.exp (scan-assembler-times_required_options): New proc. - -2012-08-25 Jason Merrill - - * g++.dg/cpp0x/fntmpdefarg3.C: New. - -2012-08-25 Paolo Carlini - - PR c++/51421 - * g++.dg/cpp0x/auto34.C: New. - -2012-08-24 Jakub Jelinek - - PR c/54363 - * gcc.dg/pr54363.c: New test. - - PR c/54355 - * gcc.dg/pr54355.c: New test. - -2012-08-24 H.J. Lu - - PR debug/52857 - * gcc.target/i386/pr52857-1.c: New. - * gcc.target/i386/pr52857-2.c: Likewise. - -2012-08-23 Richard Sandiford - - * gcc.target/mips/code-readable-4.c: New test. - -2012-08-23 Julian Brown - Sandra Loosemore - - * gcc.target/mips/code-readable-1.c: Add -O to options. - -2012-08-23 Paolo Carlini - - PR c++/20420 - * g++.dg/lookup/using53.C: New. - -2012-08-23 Georg-Johann Lay - - * gcc.dg/fixed-point/convert.c: Split into manageable parts: - * gcc.dg/fixed-point/convert-1.c: New. - * gcc.dg/fixed-point/convert-2.c: New. - * gcc.dg/fixed-point/convert-3.c: New. - * gcc.dg/fixed-point/convert-4.c: New. - * gcc.dg/fixed-point/convert-float-1.c: New. - * gcc.dg/fixed-point/convert-float-2.c: New. - * gcc.dg/fixed-point/convert-float-3.c: New. - * gcc.dg/fixed-point/convert-float-4.c: New. - * gcc.dg/fixed-point/convert-accum-neg.c: New. - * gcc.dg/fixed-point/convert-sat.c: New. - * gcc.dg/fixed-point/convert.h: New. - -2012-08-22 Oleg Endo - - PR target/54089 - * gcc.target/sh/pr54089-2.c: New. - -2012-08-22 H.J. Lu - - * gcc.target/i386/long-double-64-1.c: New file. - * gcc.target/i386/long-double-64-2.c: Likewise. - * gcc.target/i386/long-double-64-3.c: Likewise. - * gcc.target/i386/long-double-64-4.c: Likewise. - * gcc.target/i386/long-double-80-1.c: Likewise. - * gcc.target/i386/long-double-80-2.c: Likewise. - * gcc.target/i386/long-double-80-3.c: Likewise. - * gcc.target/i386/long-double-80-4.c: Likewise. - * gcc.target/i386/long-double-80-5.c: Likewise. - * gcc.target/i386/long-double-80-6.c: Likewise. - * gcc.target/i386/long-double-80-7.c: Likewise. - -2012-08-22 Marc Glisse - - PR tree-optimization/54317 - * gcc.dg/tree-ssa/vrp79.c: New testcase. - -2012-08-21 Oleg Endo - - PR target/39423 - * gcc.target/sh/pr39423-2.c: New. - -2012-08-21 Marc Glisse - - * gcc.dg/tree-ssa/forwprop-19.c: New testcase. - * gcc.dg/fold-perm.c: Likewise. - -2012-08-20 Jan Hubicka - - PR fortran/48636 - * gcc.dg/ipa/inlinehint-1.c: New. - -2012-08-20 Florian Weimer - - PR c++/19351 - * g++.dg/init/new38.C: New test. - * g++.dg/init/new39.C: New test. - -2012-08-20 Oleg Endo - - PR target/54089 - * gcc.target/sh/pr54089-1.c: New. - -2012-08-20 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-11.c: New. - -2012-08-20 Tobias Burnus - - PR fortran/54301 - * gfortran.dg/warn_target_lifetime_2.f90: New. - -2012-08-20 Paolo Carlini - - PR c++/10416 - * g++.dg/warn/Wunused-var-17.C: New. - -2012-08-20 Patrick Marlier - - PR middle-end/53992 - * gcc.dg/gomp/pr53992.c: New test. - -2012-08-20 Richard Earnshaw - - PR tree-ssa/54295 - * gcc.c-torture/execute/20120817-1.c: New test. - -2012-08-20 Richard Earnshaw - - * gcc.target/arm/thumb-16bit-ops.c (f): This test uses a 16-bit - add instruction. - (f2): New test that really does need adds. - -2012-08-20 Richard Guenther - - PR tree-optimization/54327 - * gcc.dg/torture/pr54327.c: New testcase. - -2012-08-20 Jakub Jelinek - - PR tree-optimization/54321 - * gcc.c-torture/compile/pr54321.c: New test. - -2012-08-20 Tobias Burnus - - PR fortran/54301 - * gfortran.dg/warn_target_lifetime_1.f90: New. - -2012-08-19 Thomas KÁnig - - PR fortran/54298 - * gfortran.dg/real_compare_1.f90: New test case. - * gfortran.dg/bessel_5.f90: Add -Wno-compare-reals to options. - -2012-08-18 Jan Hubicka - - * gcc.dg/ipa/iinline-1.c: Update testcase to test inline hints. - -2012-08-18 Mikael Morin - - PR fortran/39290 - * gfortran.dg/interface_37.f90: New test. - -2012-08-17 H.J. Lu - Gary Funck - - PR target/20020 - * gcc.target/i386/pr20020-1.c: New test. - * gcc.target/i386/pr20020-2.c: Likewise. - * gcc.target/i386/pr20020-3.c: Likewise. - -2012-08-17 Marc Glisse - - * gcc.target/i386/perm-concat.c: New test. - -2012-08-17 Julian Brown - - * gcc.target/arm/div64-unwinding.c: New test. - -2012-08-17 Jakub Jelinek - - * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: New test. - -2012-08-16 Oleg Endo - - PR target/54236 - * gcc.target/sh/pr54236-1.c: New. - -2012-08-16 Hans-Peter Nilsson - - * lib/target-supports.exp (check_effective_target_sync_int_long) - (check_effective_target_sync_char_short): Enable for crisv32-* - and cris-*. - - PR middle-end/54261 - * gcc.dg/torture/pr54261-1.c: New test. - -2012-08-15 Janus Weil - - PR fortran/54243 - PR fortran/54244 - * gfortran.dg/typebound_call_24.f03: New. - -2012-08-15 Bill Schmidt - - PR tree-optimization/54245 - * gcc.dg/tree-ssa/pr54245.c: New test. - -2012-08-15 Bill Schmidt - - PR tree-optimization/54240 - * gcc.target/powerpc/pr54240.c: New test. - * gcc.target/mips/pr54240.c: Likewise. - -2012-08-14 Oleg Endo - - PR target/52933 - * gcc.target/sh/pr52933-1.c: New. - * gcc.target/sh/pr52933-2.c: New. - -2012-08-14 Oleg Endo - - PR target/50751 - * gcc.target/sh/pr50751-8.c: New. - -2012-08-14 Mikael Morin - - PR fortran/47586 - * gfortran.dg/typebound_proc_20.f90: Enable runtime test. - * gfortran.dg/typebound_proc_27.f03: New test. - -2012-08-14 Sterling Augustine - - * g++.dg/debug/dwarf2/pubnames-2.C: Adjust. - -2012-08-14 Tobias Burnus - - PR fortran/40881 - * gfortran.dg/data_constraints_3.f90: New. - * gfortran.dg/data_constraints_1.f90: Add dg-options "" - to disable -pedantic compilation. - * gfortran.dg/pr37243.f: Ditto. - * gfortran.dg/g77/19990826-3.f: Ditto. - * gfortran.dg/g77/20020307-1.f : Ditto. - * gfortran.dg/g77/980310-3.f: Ditto. - -2012-08-14 Tobias Burnus - - PR fortran/54234 - * gfortran.dg/warn_conversion_4.f90: New. - -2012-08-14 Jakub Jelinek - - PR middle-end/53411 - PR rtl-optimization/53495 - * gcc.c-torture/compile/pr53411.c: New test. - * gcc.c-torture/compile/pr53495.c: New test. - -2012-08-13 Richard Guenther - - * gcc.dg/tree-prof/update-loopch.c: Adjust. - -2012-08-13 Richard Guenther - - PR tree-optimization/54200 - * gcc.dg/guality/pr54200.c: New testcase. - * gcc.dg/tree-ssa/slsr-8.c: Adjust. - -2012-08-12 Oleg Endo - - * gcc.target/sh/prefetch.c: Add -m3* to inclusion list. - -2012-08-12 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-7.c: New. - * gcc.target/sh/pr51244-8.c: New. - * gcc.target/sh/pr51244-9.c: New. - * gcc.target/sh/pr51244-10.c: New. - -2012-08-12 Oleg Endo - - * gcc.target/sh/pr50749-sf-postinc-1.c: Skip for -m3. Don't skip for - -m2e or -m2a. - * gcc.target/sh/pr50749-sf-postinc-3.c: Likewise. - * gcc.target/sh/pr53511-1.c: Likewise. - * gcc.target/sh/pr50749-sf-predec-1.c: Likewise. - * gcc.target/sh/pr50749-sf-predec-3.c: Likewise. - * gcc.target/sh/pr53512-1.c: Skip for -m3*. - * gcc.target/sh/pr53512-3.c: Likewise. - * gcc.target/sh/pr21255-3.c: Skip for single precision FPU targets. - -2012-08-12 Oleg Endo - - PR target/39423 - * gcc.c-torture/compile/pr39423-1.c: New. - * gcc.c-torture/compile/pr39423-2.c: New. - -2012-08-12 Tobias Burnus - - PR fortran/54221 - * vect/vect-gems.f90: Don't mark module vars as PRIVATE as - they appear uninitialized on the RHS. - * gfortran.dg/public_private_module_6.f90: New. - -2012-08-11 Martin Jambor - - PR fortran/48636 - * gfortran.dg/pr48636.f90: New test. - -2012-08-10 Jakub Jelinek - - * gcc.dg/torture/vector-shuffle1.c (f): Pass vectors indirectly - to avoid warnings. - (main): Adjust caller. - -2012-08-10 Richard Guenther - - * gcc.dg/matrix/*.c: Adjust and move ... - * gcc.dg/torture/: ... here. - * gcc.dg/matrix: Remove directory. - -2012-08-10 Richard Guenther - - PR middle-end/54219 - * gcc.dg/torture/vector-shuffle1.c: New testcase. - -2012-08-10 Bill Schmidt - - PR middle-end/54211 - * gcc.dg/tree-ssa/pr54211.c: New test. - -2012-08-10 Bill Schmidt - - * lib/target-supports.exp (check_effective_target_long_neq_int): New. - * gcc.dg/tree-ssa/slsr-30.c: Check for long_neq_int effective target. - -2012-08-10 Richard Guenther - - PR tree-optimization/54109 - * gcc.dg/torture/pr54109.c: New testcase. - * gcc.dg/tree-ssa/forwprop-1.c: Adjust. - * gcc.dg/tree-ssa/forwprop-2.c: Likewise. - -2012-08-10 Richard Guenther - - PR tree-optimization/54027 - * gcc.dg/torture/pr54027.c: New testcase. - -2012-08-10 Richard Guenther - - * g++.dg/plugin/selfassign.c: Adjust. - * gcc.dg/plugin/selfassign.c: Likewise. - * gcc.dg/strlenopt-11.c: Likewise. - * gcc.dg/strlenopt-13.c: Likewise. - * gcc.dg/no-strict-overflow-4.c: Likewise. - * gcc.dg/strict-overflow-4.c: Likewise. - * gcc.dg/tree-ssa/alias-11.c: Likewise. - * gcc.dg/tree-ssa/alias-6.c: Likewise. - * gcc.dg/tree-ssa/asm-3.c: Likewise. - * gcc.dg/tree-ssa/pr18908.c: Likewise. - * gcc.dg/tree-ssa/pr19431.c: Likewise. - * gcc.dg/tree-ssa/ssa-pre-21.c: Likewise. - * gcc.dg/tree-ssa/phi-opt-10.c: Likewise. - * gcc.dg/tree-ssa/phi-opt-7.c: Likewise. - * gcc.dg/tree-ssa/slsr-27.c: Likewise. - * gcc.dg/tree-ssa/slsr-28.c: Likewise. - * gcc.dg/tree-ssa/slsr-29.c: Likewise. - * gcc.dg/pr46309.c: Likewise. - * gcc.dg/tree-ssa/loop-5.c: Likewise. - -2012-08-09 Uros Bizjak - - * gcc.c-torture/compile/20120727-1.c (dg-options): Add -mfpmath=387 - for x86 targets. - * gcc.c-torture/compile/20120727-2.c: New test. - -2012-08-09 Martin Jambor - - * gcc.dg/ipa/iinline-4.c: New test. - * gcc.dg/ipa/iinline-5.c: Likewise. - * gcc.dg/ipa/iinline-6.c: Likewise. - * gcc.dg/ipa/iinline-7.c: Likewise. - * gcc.dg/lto/20120723_0.c: Likewise. - * gcc.dg/lto/20120723_1.c: Likewise. - -2012-08-09 Oleg Endo - - PR target/39423 - * gcc.target/sh/pr39423-1.c: New. - -2012-08-09 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-5: New. - * gcc.target/sh/pr51244-6: New. - -2012-08-09 Michael Zolotukhin - - * gcc.target/i386/adx-addxcarry32-3.c: New. - * gcc.target/i386/adx-addxcarry64-3.c: New. - -2012-08-09 Andrey Belevantsev - - PR rtl-optimization/53701 - * gcc.dg/pr53701.c: New test. - -2012-08-09 Bernd Schmidt - - * gcc.c-torture/compile/20120727-1.c: New test. - -2012-08-09 Tobias Burnus - - PR fortran/54199 - * gfortran.dg/intrinsic_shadow_4.f90: New. - -2012-08-08 H.J. Lu - - * gcc.dg/tree-ssa/slsr-30.c: Require non-ilp32. Remove dg-skip-if. - -2012-08-08 Joseph Myers - - * gcc.c-torture/execute/20120808-1.c: New test. - -2012-08-08 H.J. Lu - - PR rtl-optimization/54157 - * gcc.target/i386/pr54157.c: New file. - -2012-08-08 Michael Zolotukhin - - * gcc.target/i386/adx-addcarryx32-1.c: New. - * gcc.target/i386/adx-addcarryx32-2.c: New. - * gcc.target/i386/adx-addcarryx64-1.c: New. - * gcc.target/i386/adx-addcarryx64-2.c: New. - * gcc.target/i386/adx-check.h: New. - * gcc.target/i386/i386.exp (check_effective_target_adx): New. - * gcc.target/i386/sse-12.c: Add -madx. - * gcc.target/i386/sse-13.c: Ditto. - * gcc.target/i386/sse-14.c: Ditto. - * gcc.target/i386/sse-22.c: Ditto. - * gcc.target/i386/sse-23.c: Ditto. - * g++.dg/other/i386-2.C: Ditto. - * g++.dg/other/i386-3.C: Ditto. - -2012-08-07 Bill Schmidt - - * gcc.dg/tree-ssa/slsr-5.c: New. - * gcc.dg/tree-ssa/slsr-6.c: New. - * gcc.dg/tree-ssa/slsr-7.c: New. - * gcc.dg/tree-ssa/slsr-8.c: New. - * gcc.dg/tree-ssa/slsr-9.c: New. - * gcc.dg/tree-ssa/slsr-10.c: New. - * gcc.dg/tree-ssa/slsr-11.c: New. - * gcc.dg/tree-ssa/slsr-12.c: New. - * gcc.dg/tree-ssa/slsr-13.c: New. - * gcc.dg/tree-ssa/slsr-14.c: New. - * gcc.dg/tree-ssa/slsr-15.c: New. - * gcc.dg/tree-ssa/slsr-16.c: New. - * gcc.dg/tree-ssa/slsr-17.c: New. - * gcc.dg/tree-ssa/slsr-18.c: New. - * gcc.dg/tree-ssa/slsr-19.c: New. - * gcc.dg/tree-ssa/slsr-20.c: New. - * gcc.dg/tree-ssa/slsr-21.c: New. - * gcc.dg/tree-ssa/slsr-22.c: New. - * gcc.dg/tree-ssa/slsr-23.c: New. - * gcc.dg/tree-ssa/slsr-24.c: New. - * gcc.dg/tree-ssa/slsr-25.c: New. - * gcc.dg/tree-ssa/slsr-26.c: New. - * gcc.dg/tree-ssa/slsr-30.c: New. - * gcc.dg/tree-ssa/slsr-31.c: New. - -2012-08-07 Steven Bosscher - - * gcc.dg/tree-prof/update-loopch.c: Ask for dump with blocks info. - * gcc.dg/tree-ssa/attr-hotcold-2.c: Likewise. - * gcc.dg/tree-ssa/pr18133-1.c: Likewise. - -2012-08-06 Cary Coutant - - * g++.dg/debug/dwarf2/non-virtual-thunk.C: New test case. - -2012-08-06 Janus Weil - - PR fortran/35831 - * gfortran.dg/dummy_procedure_5.f90: Modified. - * gfortran.dg/dummy_procedure_8.f90: New. - * gfortran.dg/interface_26.f90: Modified. - * gfortran.dg/proc_ptr_11.f90: Modified. - * gfortran.dg/proc_ptr_15.f90: Modified. - * gfortran.dg/proc_ptr_result_5.f90: Modified. - * gfortran.dg/typebound_override_1.f90: Modified. - * gfortran.dg/typebound_proc_6.f03: Modified. - -2012-08-06 Marc Glisse - - PR tree-optimization/51938 - PR tree-optimization/52005 - * gcc.dg/tree-ssa/ssa-ifcombine-8.c: New testcase. - * gcc.dg/tree-ssa/ssa-ifcombine-9.c: Likewise. - * gcc.dg/tree-ssa/ssa-ifcombine-10.c: Likewise. - * gcc.dg/tree-ssa/ssa-ifcombine-11.c: Likewise. - -2012-08-06 Dodji Seketeli - - Avoid crashing on erroneous static_assert usage - * g++.dg/cpp0x/static_assert8.C: New test. - -2012-08-06 Jason Merrill - - * g++.dg/cpp0x/sfinae38.C: New. - -2012-08-06 Marc Glisse - Paolo Carlini - - PR c++/54165 - * g++.dg/conversion/void2.C: New. - -2012-08-06 Tom de Vries - - * gcc.dg/tree-ssa/vrp78.c: New test. - -2012-08-04 Sandra Loosemore - Richard Sandiford - - * g++.dg/opt/enum2.C: Require fpic target. - * g++.dg/lto/20090303_0.C: Likewise. - -2012-08-04 Sandra Loosemore - Catherine Moore - - * gcc.target/mips/clear-cache-1.c: Test for alternate cache - flush function names too. - * gcc.target/mips/clear-cache-1.c: Likewise. - -2012-08-03 Bill Schmidt - - PR target/54156 - * gcc.dg/vect/pr53773.c: Change to use optimized dump. - -2012-08-03 Mikael Morin - - PR fortran/54166 - * gfortran.dg/array_5.f90: New test. - -2012-08-03 Marc Glisse - - PR tree-optimization/30318 - * gcc.dg/tree-ssa/vrp77.c: New testcase. - -2012-08-03 Marc Glisse - - * g++.dg/ext/vector17.C: New testcase. - -2012-08-02 Richard Sandiford - - PR target/51931 - * gcc.c-torture/compile/20001226-1.c: Remove nomips16 attribute. - * g++.dg/opt/longbranch1.C: Likewise. - -2012-08-02 Marc Glisse - - PR tree-optimization/53805 - * gcc.dg/fold-notunord.c: New testcase. - -2012-08-02 Mikael Morin - - PR fortran/48820 - * gfortran.dg/assumed_rank_bounds_1.f90: New test. - * gfortran.dg/assumed_rank_bounds_2.f90: New test. - -2012-08-02 Jason Merrill - Paolo Carlini - - PR c++/51213 (again) - * g++.dg/cpp0x/sfinae37.C: Extend. - -2012-08-02 Richard Guenther - - PR tree-optimization/50672 - * g++.dg/torture/pr50672.C: New testcase. - -2012-08-02 Janus Weil - - PR fortran/54147 - * gfortran.dg/abstract_type_6.f03: Modified. - * gfortran.dg/proc_ptr_comp_3.f90: Modified. - * gfortran.dg/proc_ptr_comp_35.f90: New. - * gfortran.dg/typebound_proc_9.f03: Modified. - * gfortran.dg/typebound_proc_26.f90: New. - -2012-08-02 Richard Guenther - - * gcc.dg/torture/pta-callused-1.c: Adjust. - * gcc.dg/torture/pta-ptrarith-3.c: Likewise. - * gcc.dg/torture/ssa-pta-fn-1.c: Likewise. - * gcc.dg/tree-ssa/alias-19.c: Likewise. - * gcc.dg/tree-ssa/pta-escape-1.c: Likewise. - * gcc.dg/tree-ssa/pta-escape-2.c: Likewise. - * gcc.dg/tree-ssa/pta-escape-3.c: Likewise. - * gcc.dg/tree-ssa/pta-ptrarith-1.c: Likewise. - * gcc.dg/tree-ssa/pta-ptrarith-2.c: Likewise. - -2012-08-01 Thomas KÁnig - - PR fortran/54033 - * gfortran.dg/include_6.f90: New test case. - * gfortran.dg/include_7.f90: New test case. - * gfortran.dg/include_3.f90: Add dg-warning for missing directory. - -2012-08-01 Tom de Vries - - * gcc.dg/tree-ssa/vrp76.c: New test. - -2012-08-01 Bill Schmidt - - PR tree-optimization/46556 - * gcc.dg/tree-ssa/slsr-27.c: New. - * gcc.dg/tree-ssa/slsr-28.c: New. - * gcc.dg/tree-ssa/slsr-29.c: New. - -2012-07-31 Janus Weil - - PR fortran/42418 - * gfortran.dg/proc_decl_29.f90: New. - -2012-07-31 Dehao Chen - - * gcc.dg/predict-7.c: New test. - -2012-07-31 Janus Weil - - PR fortran/54134 - * gfortran.dg/typebound_override_3.f90: New. - -2012-07-31 Bill Schmidt - - PR tree-optimization/53773 - * gcc.dg/vect/pr53773.c: New test. - -2012-07-31 Nick Clifton - - * gcc.dg/stack-usage-1.c (SIZE): Define for FRV, - and for XStormy16. - -2012-07-31 Tobias Burnus - - * gfortran.dg/c_funloc_tests_6.f90: New. - * gfortran.dg/c_funloc_tests_7.f90: New. - * gfortran.dg/c_funloc_tests_5.f03: Compile with -std=f2003. - -2012-07-31 Paolo Carlini - - PR c++/53624 - * g++.dg/cpp0x/temp_default5.C: New. - -2012-07-30 Janus Weil - - PR fortran/51081 - * gfortran.dg/proc_ptr_37.f90: New. - -2012-07-30 Ulrich Weigand - - * lib/target-supports.exp - (check_effective_target_vect_natural_alignment): New function. - * gcc.dg/align-2.c: Only run on targets with natural alignment - of vector types. - * gcc.dg/vect/slp-25.c: Adjust tests for targets without natural - alignment of vector types. - -2012-07-30 Kirill Yukhin - Michael Zolotukhin - - * gcc.target/i386/rdseed16-1.c: New. - * gcc.target/i386/rdseed32-1.c: Ditto - * gcc.target/i386/rdseed64-1.c: Ditto - * gcc.target/i386/sse-12.c: Add -mrdseed. - * gcc.target/i386/sse-13.c: Ditto. - * gcc.target/i386/sse-14.c: Ditto. - * g++.dg/other/i386-2.C: Ditto. - * g++.dg/other/i386-3.C: Ditto. - -2012-07-30 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-4.c: New. - -2012-07-27 Uros Bizjak - - * gfortran.dg/bind_c_array_params_2.f90: Add "-mno-explicit-relocs" - for alpha*-*-* targets. Cleanup original tree dump. - -2012-07-27 Segher Boessenkool - - * gcc.target/powerpc/rs6000-power2-1.c: Delete. - * gcc.target/powerpc/rs6000-power2-2.c: Delete. - -2012-07-27 Anna Tikhonova - - * gcc.dg/20020201-1.c: Remove declarations for exit, abort, - rand, srand. Include . - -2012-07-26 Janis Johnson - - * gcc.dg/pr45259.c: Only -fpic depends on fpic support. - -2012-07-26 Richard Henderson - - * gcc.dg/attr-hotcold-1.c: New. - * gcc.dg/tree-ssa/attr-hotcold-2.c: New. - -2012-07-26 Andrew Jenner - Sandra Loosemore - - * gcc.c-torture/compile/pr50380.c: Add code to cause cycle of length 2. - -2012-07-26 Tobias Burnus - - * gfortran.dg/contiguous_1.f90: Update dg-error. - * gfortran.dg/proc_ptr_32.f90: Ditto. - -2012-07-26 Richard Guenther - - PR tree-optimization/54098 - * gcc.dg/torture/pr54098.c: New testcase. - -2012-07-26 Ramana Radhakrishnan - - * gcc.target/arm/neon/vld1Q_dupu64.c: Regenerate. - * gcc.target/arm/neon/vld1Q_dups64.c: Likewise. - -2012-07-26 Mikael Morin - - PR fortran/44354 - * gfortran.dg/array_constructor_39.f90: New test. - -2012-07-26 Mikael Morin - - PR fortran/44354 - * gfortran.dg/array_constructor_38.f90: New test. - -2012-07-25 Janis Johnson - - * g++.dg/cpp0x/nullptr21.c: Remove printfs, make self-checking. - -2012-07-25 Eric Botcazou - - * gnat.dg/noreturn5.ad[sb]: New test. - -2012-07-25 Sandra Loosemore - Paul Brook - - PR target/53633 - - * lib/target-suports.exp (check_effective_target_naked_functions): New. - * c-c++-common/pr53633.c: New test. - -2012-07-25 Siddhesh Poyarekar - - * gcc.target/i386/asm-dialect-1.c: New test case. - -2012-07-25 Kirill Yukhin - Michael Zolotukhin - - * gcc.target/i386/prefetchw-1.c: New. - * gcc.target/i386/sse-12.c: Add -mprfchw. - * gcc.target/i386/sse-13.c: Ditto. - * gcc.target/i386/sse-14.c: Ditto. - * gcc.target/i386/sse-22.c: Ditto. - * gcc.target/i386/sse-23.c: Ditto. - * g++.dg/other/i386-2.C: Ditto. - * g++.dg/other/i386-3.C: Ditto. - -2012-07-24 Janis Johnson - - * lib/gcc-dg.exp (process-message): Don't ignore errors. - -2012-07-24 Ramana Radhakrishnan - - PR target/54051 - * gcc.target/arm/pr54051.c: New. - * gcc.target/arm/vfp-1.c: Adjust test. - -2012-07-24 Julian Brown - - * lib/target-supports.exp (check_effective_target_arm_hf_eabi): New. - * gcc.dg/torture/stackalign/builtin-apply-2.c: Skip for - hard-float ARM. - -2012-07-23 Paul Brook - - * g++.dg/other/armv7m-1.c: New test. - -2012-07-23 Julian Brown - - * gcc.c-torture/execute/20101011-1.c (__aeabi_idiv0): Define for - ARM. - (DO_TEST): Define to 1 for appropriate ARM targets. - -2012-07-22 Steven Bosscher - - PR tree-optimization/53881 - * gcc.dg/pr53881.c: Renamed to ... - * gcc.dg/pr53881-1.c: ... this. - * gcc.dg/pr53881-2.c: New test. - -2012-07-22 Hans-Peter Nilsson - - Handle recent changes in default atomics for cris*-*-linux*. - * gcc.target/cris/torture/sync-mis-xchg-i-1ml.c, - gcc.target/cris/torture/sync-mis-xchg-i-2ml.c, - gcc.target/cris/torture/sync-mis-xchg-i-3ml.c, - gcc.target/cris/torture/sync-mis-xchg-s-1ml.c, - gcc.target/cris/torture/sync-mis-op-i-1ml.c, - gcc.target/cris/torture/sync-mis-op-i-2ml.c, - gcc.target/cris/torture/sync-mis-op-i-3ml.c, - gcc.target/cris/torture/sync-mis-op-s-1ml.c: New tests. - * gcc.target/cris/torture/sync-mis-op-i-2a.c: Make sure - -mno-unaligned-atomic-may-use-library is in effect for - cris*-*-linux*. - * gcc.target/cris/torture/sync-mis-xchg-i-1.c, - gcc.target/cris/torture/sync-mis-xchg-i-2.c, - gcc.target/cris/torture/sync-mis-xchg-i-3.c, - gcc.target/cris/torture/sync-mis-xchg-i-2a.c, - gcc.target/cris/torture/sync-mis-xchg-s-1.c, - gcc.target/cris/torture/sync-mis-op-i-1.c, - gcc.target/cris/torture/sync-mis-op-i-2.c, - gcc.target/cris/torture/sync-mis-op-i-1a.c, - gcc.target/cris/torture/sync-mis-op-i-3.c, - gcc.target/cris/torture/sync-mis-op-i-3a.c, - gcc.target/cris/torture/sync-mis-op-s-1a.c, - gcc.target/cris/torture/sync-mis-xchg-i-1a.c, - gcc.target/cris/torture/sync-mis-xchg-i-3a.c, - gcc.target/cris/torture/sync-mis-xchg-s-1a.c: Similar. - * gcc.target/cris/torture/sync-mis-op-s-1.c: Ditto. - (main): Remove local variable x. - [mis_ok]: Check that atomics don't fail. - -2012-07-21 Andrew Pinski - - * gcc.dg/tree-ssa/vrp72.c: New test. - * gcc.dg/tree-ssa/vrp73.c: New test. - * gcc.dg/tree-ssa/vrp74.c: New test. - * gcc.dg/tree-ssa/vrp75.c: New test. - -2012-07-21 Andrew Pinski - - * gcc.dg/tree-ssa/alias-21.c: New testcase. - * gcc.dg/tree-ssa/alias-22.c: New testcase. - -2012-07-21 Andrew Pinski - - * gcc.target/mips/octeon-pop-2.c: New testcase. - -2012-07-21 Tobias Burnus - - PR fortran/48820 - * gfortran.dg/assumed_rank_3.f90: New. - * gfortran.dg/assumed_rank_11.f90: New. - * gfortran.dg/assumed_rank_1.f90: Update dg-error. - * gfortran.dg/assumed_rank_2.f90: Update dg-error. - * gfortran.dg/assumed_rank_7.f90: Update dg-error. - -2012-07-21 Andrew Pinski - - * gcc.target/mips/unaligned-1.c: New testcase. - -2012-07-21 Hans-Peter Nilsson - - * gcc.c-torture/execute/20101011-1.c (DO_TEST): Define as 0 for CRIS. - -2012-07-20 Tobias Burnus - - * gfortran.dg/bind_c_array_params_2.f90: New. - * gfortran.dg/bind_c_array_params.f03: Add -std=f2003 - and update dg-error. - -2012-07-20 Tobias Burnus - - * gfortran.dg/assumed_rank_12.f90: Update dg-error. - -2012-07-20 Jason Merrill - - PR c++/54038 - * g++.dg/other/array7.C: New. - -2012-07-20 Steven Bosscher - - * gcc.dg/tree-prof/update-loopch.c: Look for counts on the dumps of - the basic block and check loop depth. - * gcc.dg/tree-ssa/pr18133-1.c: Dump details, not blocks. Update - matching patterns and comments. - * gcc.dg/tree-ssa/20031021-1.c: Fix check patterns. - * gcc.dg/tree-ssa/vector-2.c: Likewise. - -2012-07-20 Jakub Jelinek - - PR c++/28656 - * c-c++-common/pr28656.c: New test. - -2012-07-19 Jason Merrill - - PR c++/54026 - * g++.dg/init/mutable1.C: New. - -2012-07-20 Tobias Burnus - - PR fortran/48820 - * gfortran.dg/assumed_type_3.f90: Update dg-error. - * gfortran.dg/assumed_rank_1.f90: New. - * gfortran.dg/assumed_rank_1_c.c: New. - * gfortran.dg/assumed_rank_2.f90: New. - * gfortran.dg/assumed_rank_4.f90: New. - * gfortran.dg/assumed_rank_5.f90: New. - * gfortran.dg/assumed_rank_6.f90: New. - * gfortran.dg/assumed_rank_7.f90: New. - * gfortran.dg/assumed_rank_8.f90: New. - * gfortran.dg/assumed_rank_8_c.c: New. - * gfortran.dg/assumed_rank_9.f90: New. - * gfortran.dg/assumed_rank_10.f90: New. - * gfortran.dg/assumed_rank_12.f90: New. - -2012-07-19 Eric Botcazou - - * gnat.dg/opt25.adb: New test. - * gnat.dg/opt25_pkg1.ad[sb]: New helper. - * gnat.dg/opt25_pkg2.ad[sb]: Likewise. - -2012-07-19 Eric Botcazou - - * gnat.dg/aggr20.ad[sb]: New test. - * gnat.dg/aggr20_pkg.ads: New helper. - -2012-07-19 Eric Botcazou - - * gnat.dg/derived_type3.adb: New test. - * gnat.dg/derived_type3_pkg.ad[sb]: New helper. - -2012-07-19 Jakub Jelinek - - PR rtl-optimization/53942 - * gcc.dg/pr53942.c: New test. - -2012-07-19 Jason Merrill - - PR c++/54021 - * g++.dg/cpp0x/constexpr-builtin2.C: New. - -2012-07-19 Eric Botcazou - - * gnat.dg/discr38.adb: New test. - -2012-07-19 Jakub Jelinek - - PR middle-end/54017 - * c-c++-common/gomp/pr54017.c: New test. - -2012-07-19 Richard Guenther - Eric Botcazou - - * gnat.dg/loop_optimization11.adb: New testcase. - * gnat.dg/loop_optimization11_pkg.ads: Likewise. - -2012-07-18 Paolo Carlini - Jason Merrill - - * g++.dg/cpp0x/sfinae37.C: New. - * g++.dg/template/access23.C: New. - * g++.dg/template/access7.C: Adjust. - * g++.dg/template/sfinae10.C: Don't expect errors. - * g++.dg/template/sfinae6_neg.C: Don't expect errors. - -2012-07-18 Julian Brown - Sandra Loosemore - - * gcc.c-torture/execute/20101011-1.c: Skip on bare-metal m68k. - -2012-07-18 Eric Botcazou - - * gnat.dg/noreturn4.ad[sb]: New test. - * gnat.dg/noreturn4_pkg.ads: New helper. - -2012-07-18 Jie Zhang - Julian Brown - - * gcc.target/arm/neon-vdup-1.c: New test case. - * gcc.target/arm/neon-vdup-2.c: New test case. - * gcc.target/arm/neon-vdup-3.c: New test case. - * gcc.target/arm/neon-vdup-4.c: New test case. - * gcc.target/arm/neon-vdup-5.c: New test case. - * gcc.target/arm/neon-vdup-6.c: New test case. - * gcc.target/arm/neon-vdup-7.c: New test case. - * gcc.target/arm/neon-vdup-8.c: New test case. - * gcc.target/arm/neon-vdup-9.c: New test case. - * gcc.target/arm/neon-vdup-10.c: New test case. - * gcc.target/arm/neon-vdup-11.c: New test case. - * gcc.target/arm/neon-vdup-12.c: New test case. - * gcc.target/arm/neon-vdup-13.c: New test case. - * gcc.target/arm/neon-vdup-14.c: New test case. - * gcc.target/arm/neon-vdup-15.c: New test case. - * gcc.target/arm/neon-vdup-16.c: New test case. - * gcc.target/arm/neon-vdup-17.c: New test case. - * gcc.target/arm/neon-vdup-18.c: New test case. - * gcc.target/arm/neon-vdup-19.c: New test case. - * gcc.target/arm/neon-combine-sub-abs-into-vabd.c: Make intrinsic - arguments non-constant. - -2012-07-18 Richard Guenther - - PR tree-optimization/53970 - * g++.dg/torture/pr53970.C: New testcase. - -2012-07-18 Oleg Endo - - PR target/38621 - * gcc.c-torture/compile/pr38621.c: New. - -2012-07-18 Oleg Endo - - PR target/33135 - * gcc.target/sh/pr33135-1.c: New. - * gcc.target/sh/pr33135-2.c: New. - * gcc.target/sh/pr33135-3.c: New. - * gcc.target/sh/pr33135-4.c: New. - -2012-07-17 Jason Merrill - - PR c++/53995 - * g++.dg/parse/enum9.C: New. - -2012-07-17 Kazu Hirata - Sandra Loosemore - - * gcc.target/m68k/pr36134.c: Use dg-skip-if to skip the testcase - if there is a conflict with -mcpu=. Use -mcpu=5208. - -2012-07-17 Jason Merrill - - PR c++/53989 - * g++.dg/template/array23.C: New. - -2012-07-17 Tobias Burnus - - PR fortran/53985 - * gfortran.dg/bind_c_usage_26.f90: New. - * gfortran.dg/bind_c_procs.f03: Add dg-options "-Wc-binding-type". - * gfortran.dg/bind_c_usage_13.f03: Ditto. - * gfortran.dg/bind_c_usage_18.f90: Ditto. - * gfortran.dg/interop_params.f03: Ditto. - -2012-07-17 Jason Merrill - - * g++.dg/template/inherit8.C: Adjust. - * g++.dg/template/using21.C: Adjust. - * g++.dg/template/using22.C: Adjust. - - PR c++/53549 - * g++.dg/template/current-inst1.C: New. - * g++.dg/parse/crash35.C: Adjust. - -2012-07-17 Tobias Burnus - - PR fortran/52101 - * gfortran.dg/oldstyle_4.f90: New. - -2012-07-17 Tobias Burnus - - PR fortran/49265 - * gfortran.dg/module_procedure_double_colon_3.f90: New. - * gfortran.dg/module_procedure_double_colon_4.f90: New. - -2012-07-16 Jason Merrill - - * g++.dg/parse/access8.C: Adjust. - * g++.dg/template/sfinae6_neg.C: Adjust. - -2012-07-16 Thomas KÁnig - - PR fortran/53824 - * gfortran.dg/coarray_allocate_1.f90: New test. - -2012-07-16 Andrew Pinski - - * gcc.c-torture/execute/bswap-1.c: New testcase. - * gcc.c-torture/compile/unalign-1.c: New testcase. - * gcc.c-torture/compile/20120524-1.c: New testcase. - * gcc.c-torture/compile/20101216-1.c: New testcase. - -2012-07-16 Dehao Chen - - Revert - 2012-07-10 Dehao Chen - - * gcc.dg/debug_info_inline.c: New test. - -2012-07-16 Janus Weil - - PR fortran/53956 - * gfortran.dg/proc_decl_28.f90: New. - -2012-07-16 Andrew Pinski - - * gcc.dg/torture/builtins-1.c: New testcase. - -2012-07-16 Hans-Peter Nilsson - - * gcc.target/cris/sync-2i.c, gcc.target/cris/sync-2s.c, - gcc.target/cris/sync-3i.c, gcc.target/cris/sync-3s.c, - gcc.target/cris/sync-4i.c, gcc.target/cris/sync-4s.c, - gcc.target/cris/sync-1-v10.c, - gcc.target/cris/sync-1-v32.c: For cris*-*-linux*, also - pass -mno-unaligned-atomic-may-use-library. - * gcc.target/cris/sync-xchg-1.c: New test. - * gcc.target/cris/20011127-1.c: Adjust to %P being a - valid register operand output modifier. - -2012-07-15 Andreas Schwab - - * g++.dg/debug/dwarf2/pubnames-2.C: Support all known comment - characters. - -2012-07-13 Andrew Pinski - - * gcc.target/mips/octeon2-pipe-1.c: Use cleanup-rtl-dump - rather than cleanup-tree-dump. - * gcc.target/mips/octeon-pipe-1.c: Likewise. - -2012-07-13 Richard Guenther - - PR tree-optimization/53907 - * gcc.target/i386/pr53907.c: New testcase. - -2012-07-13 Richard Guenther - - PR tree-optimization/53922 - * gcc.dg/torture/pr53922.c: New testcase. - -2012-07-13 Hans-Peter Nilsson - - PR rtl-optimization/53908 - * gcc.dg/torture/pr53908.c: New test. - -2012-07-13 Jonathan Wakely - - PR c++/53531 - * g++.dg/cpp0x/variadic135.C: New. - -2012-07-12 Jason Merrill - - * g++.dg/template/sfinae6_neg.C: Adjust. - -2012-07-12 Tobias Burnus - - * gfortran.dg/c_f_pointer_shape_tests_5.f90: New. - * gfortran.dg/c_f_pointer_tests_3.f90: Update - scan-tree-dump-times pattern. - -2012-07-11 Rainer Orth - - * g++.dg/debug/dwarf2/pubnames-2.C: Allow for / comments. - -2012-07-11 Jason Merrill - - DR 1402 - * g++.g/cpp0x/defaulted37.C: New. - -2012-07-11 Greta Yorsh - - PR target/53859 - * gcc.target/arm/pr53859.c: New test. - -2012-07-10 Oleg Endo - - PR target/53886 - * gcc.c-torture/compile/pr53886.c: New. - -2012-07-10 Dehao Chen - - * gcc.dg/debug_info_inline.c: New test. - -2012-07-10 Jason Merrill - - PR c++/53733 - * g++.dg/cpp0x/defaulted36.C: New. - * g++.dg/cpp0x/defaulted21.C: Adjust. - - * g++.dg/cpp0x/implicit13.C: Add vbase and member tests. - -2012-07-09 Sterling Augustine - - * g++.dg/debug/dwarf2/pubnames-2.C: New. - -2012-07-09 Steven Bosscher - - PR tree-optimization/53887 - * gcc.dg/pr53887.c: New test. - -2012-07-09 Jason Merrill - - PR c++/53882 - * g++.dg/cpp0x/nullptr29.C: New. - -2012-07-09 Tom de Vries - Richard Guenther - - * gcc.dg/builtin-unreachable-6.c: New test. - * gcc.dg/builtin-unreachable-5.c: New test. - -2012-07-07 Steven Bosscher - - PR tree-optimization/53881 - * gcc.dg/pr53881.c: New test. - -2012-07-06 Jason Merrill - - PR c++/53862 - * g++.dg/cpp0x/variadic134.C: New. - - PR c++/53858 - * g++.dg/cpp0x/alias-decl-20.C: New. - -2012-07-06 Tom de Vries - - PR tree-optimization/51879 - * gcc.dg/pr51879-16.c: New test. - * gcc.dg/pr51879-17.c: Same. - -2012-07-06 Tom de Vries - - PR tree-optimization/52009 - * gcc.dg/pr51879-7.c: New test. - * gcc.dg/pr51879-18.c: New test. - -2012-07-05 Jason Merrill - - PR c++/50852 - * g++.dg/template/typedef39.C: New. - - PR c++/53039 - * g++.dg/cpp0x/variadic133.C: New. - * g++.dg/template/param1.C: Adjust. - -2012-07-05 Ramana Radhakrishnan - - PR target/48941 - PR target/51980 - * gcc.target/arm/neon/vtrnf32.c: Update. - * gcc.target/arm/neon/vtrns32.c: Update. - * gcc.target/arm/neon/vtrnu32.c: Update. - * gcc.target/arm/neon/vzipf32.c: Update. - * gcc.target/arm/neon/vzips32.c: Update. - * gcc.target/arm/neon/vzipu32.c: Update. - -2012-07-05 Mikael Morin - - PR fortran/53732 - * gfortran.dg/inline_sum_4.f90: New test. - -2012-07-05 Steven Bosscher - - * gcc.c-torture/compile/20000326-1.c: Fix to not optimize to empty. - -2012-07-05 Matthew Gretton-Dann - - * gcc.target/arm/fma-sp.c: New testcase. - * gcc.target/arm/fma.c: Likewise. - * gcc.target/arm/fma.h: Likewise. - -2012-07-04 Jason Merrill - - PR c++/53848 - * g++.dg/other/enum3.C: New. - -2012-07-04 Uros Bizjak - - PR middle-end/53321 - * g++.dg/torture/pr53321.C: New test. - -2012-07-04 Richard Guenther - - PR tree-optimization/53844 - * g++.dg/tree-ssa/pr53844.C: New testcase. - -2012-07-04 Richard Guenther - - PR tree-optimization/53849 - * gcc.dg/pr53849.c: New testcase. - -2012-07-03 Jakub Jelinek - - PR c++/53812 - * g++.dg/ext/label14.C: New test. - -2012-07-03 Uros Bizjak - - PR target/53811 - * g++.dg/other/pr53811.C: New test. - -2012-07-03 Andreas Schwab - - PR target/28896 - * gcc.target/m68k/stack-limit-1.c: New testcase. - -2012-07-03 Eric Botcazou - - * gnat.dg/recursive_call.adb: New test. - -2012-07-03 Eric Botcazou - - * gnat.dg/discr37.ad[sb]: New test. - -2012-07-03 Oleg Endo - - * g++.dg/other/packed1.C: Remove SH from xfail list. - -2012-07-02 Jason Merrill - - PR c++/53619 - * g++.dg/cpp0x/lambda/lambda-this5.C: New. - - PR c++/53783 - * g++.dg/cpp0x/lambda/lambda-template7.C: New. - - PR c++/53788 - * g++.dg/cpp0x/decltype39.C: New. - * g++.dg/diagnostic/method1.C: Adjust. - - PR c++/53816 - * g++.dg/template/ref6.C: New. - -2012-07-02 Oleg Endo - - PR target/53568 - * gcc.target/sh/pr53568-1.c: New. - -2012-07-02 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-1.c: Check that movt insn is not generated. - -2012-07-02 Jason Merrill - - PR c++/53821 - * g++.dg/cpp0x/lambda/lambda-template6.C: New. - - PR c++/53524 - * g++.dg/template/enum7.C: New. - * g++.dg/other/ptrmem10.C: Adjust. - * g++.dg/other/ptrmem11.C: Adjust. - * g++.dg/cpp0x/scoped_enum.C: Adjust. - -2012-07-02 Steven Bosscher - - * gcc.dg/tree-ssa/pr36881.c: Fix test case to not expand as bit tests. - -2012-07-01 Wei Guozhi - - PR target/53447 - * gcc.target/arm/pr53447-1.c: New testcase. - * gcc.target/arm/pr53447-2.c: New testcase. - * gcc.target/arm/pr53447-3.c: New testcase. - * gcc.target/arm/pr53447-4.c: New testcase. - -2012-06-29 Richard Guenther - - PR tree-optimization/47061 - * gcc.dg/tree-ssa/vrp71.c: New testcase. - -2012-06-29 Richard Guenther - - PR tree-optimization/37541 - * gcc.dg/tree-ssa/pr37508.c: Adjust and un-XFAIL. - -2012-06-29 Richard Guenther - - PR tree-optimization/52589 - * gcc.dg/tree-ssa/vrp70.c: New testcase. - -2012-06-28 Janis Johnson - - * g++.dg/cpp0x/nullptr19.c: Remove exta directives on same line. - - * g++.dg/template/error46.C: Add missing comment to dg-message. - * g++.dg/template/crash107.C: Likewise. - * g++.dg/template/error47.C: Likewise. - * g++.dg/template/crash108.C: Likewise. - * g++.dg/overload/operator5.C: Likewise. - - * gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax - errors in dg-message directives, add comments. - -2012-06-28 Kai Tietz - - * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of - hard-coded 'unsigned long'. - -2012-06-28 Jakub Jelinek - - PR tree-optimization/51581 - * gcc.dg/vect/pr51581-4.c: New test. - - PR tree-optimization/53645 - * gcc.c-torture/execute/pr53645-2.c: New test. - -2012-06-28 Richard Guenther - - PR middle-end/53790 - * gcc.dg/torture/pr53790.c: New testcase. - -2012-06-28 Jakub Jelinek - - PR tree-optimization/53645 - * gcc.c-torture/execute/pr53645.c: New test. - -2012-06-28 Arnaud Charlet - - * gnat.dg/deep_old.adb, gnat.dg/old_errors.adb: Removed, obsolete. - -2012-06-28 Alexandre Oliva - - PR debug/53671 - PR debug/49888 - * gcc.dg/guality/pr49888.c: Account for the possibility that - the variable is optimized out at the first test. - -2012-06-27 Jason Merrill - - * g++.dg/cpp0x/override2.C: Adjust. - * g++.dg/template/error5.C: Adjust. - * g++.dg/parse/crash28.C: Adjust. - - PR c++/53563 - * g++.dg/parse/template27.C: New. - * g++.dg/template/crash74.C: Adjust expected output. - -2012-06-27 Janus Weil - - PR fortran/41951 - PR fortran/49591 - * gfortran.dg/typebound_operator_16.f03: New. - -2012-06-27 Jakub Jelinek - - * gcc.target/i386/sse4_1-pmuldq.c (TEST): Initialize - even src1.i and src2.i fields even in the second half of the arrays. - -2012-06-27 Ramana Radhakrishnan - - PR c++/51033. - * g++.dg/torture/vshuf-16.inc: New test. - * g++.dg/torture/vshuf-2.inc: New test. - * g++.dg/torture/vshuf-4.inc: New test. - * g++.dg/torture/vshuf-8.inc: New test. - * g++.dg/torture/vshuf-main.inc: New test. - * g++.dg/torture/vshuf-v16hi.C: New test. - * g++.dg/torture/vshuf-v16qi.C: New test. - * g++.dg/torture/vshuf-v2df.C: New test. - * g++.dg/torture/vshuf-v2di.C: New test. - * g++.dg/torture/vshuf-v2sf.C: New test. - * g++.dg/torture/vshuf-v2si.C: New test. - * g++.dg/torture/vshuf-v4df.C: New test. - * g++.dg/torture/vshuf-v4di.C: New test. - * g++.dg/torture/vshuf-v4sf.C: New test. - * g++.dg/torture/vshuf-v4si.C: New test. - * g++.dg/torture/vshuf-v8hi.C: New test. - * g++.dg/torture/vshuf-v8qi.C: New test. - * g++.dg/torture/vshuf-v8si.C: New test. - -2012-06-27 Richard Guenther - - PR middle-end/53676 - * gcc.dg/tree-ssa/scev-6.c: New testcase. - -2012-06-26 Janis Johnson - - * lib/scandump.exp (scan-dump, scan-dump-not, scan-dump-dem, - scan-dump-dem-not): Use printable pattern in test name. - -2012-06-26 Sterling Augustine - Dominique Dhumieres - - * gcc.dg/pubtypes-2.c: Update expected output. - * gcc.dg/pubtypes-3.c: Likewise. - * gcc.dg/pubtypes-4.c: Likewise. - -2012-06-26 Bill Schmidt - - * gcc.dg/tree-ssa/slsr-1.c: New test. - * gcc.dg/tree-ssa/slsr-2.c: Likewise. - * gcc.dg/tree-ssa/slsr-3.c: Likewise. - * gcc.dg/tree-ssa/slsr-4.c: Likewise. - -2012-06-26 Matt Turner - - PR target/35294 - * gcc.target/arm/mmx-2.c: New. - -2012-06-26 Richard Guenther - - PR c++/53752 - * g++.dg/torture/pr53752.C: New testcase. - -2012-06-26 Jakub Jelinek - - PR tree-optimization/53748 - * gcc.c-torture/compile/pr53748.c: New test. - -2012-06-25 Jason Merrill - - PR c++/53498 - PR c++/53305 - * g++.dg/cpp0x/decltype38.C: New. - * g++.dg/cpp0x/variadic132.C: Remove dg-error. - -2012-06-25 Janis Johnson - - * lib/target-supports-dg.exp (testname-for-summary): New. - * lib/profopt.exp (profopt_execute): Define testname_with_flags. - * lib/gcc-dg.exp (cleanup-coverage-files, cleanup-repo-notes, - cleanup-stack-usage, cleanup-dump, cleanup-saved-temps, scan-module, - scan-module-absence, output-exists, output-exists-not: Use - testname-for-summary. - (dg-test): Clean up testname_with_flags. - * lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden, - scan-not-hidden, scan-file, scan-file-not, scan-stack-usage, - scan-stack-usage-not, scan-assembler-times, scan-assembler-dem, - scan-assembler-dem-not, object-size: Use testname-for-summary. - * lib/gcov.exp (run-gcov): Likewise. - * lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not, - scan-dump-dem, scan-dump-dem-note): Likewise. - - * lib/profopt.exp: Make prof_option_list local to profopt-execute. - * g++.dg/tree-prof/tree-prof.exp (PROFOPT_OPTIONS): Define after - including profopt.opt; save and restore existing value. - * g++.dg/bprob/bprob.exp: Likewise. - * gcc.dg/matrix/matrix.exp: Likewise. - * gcc.dg/tree-prof/tree-prof.exp: Likewise. - * gcc.misc-tests/bprob.exp: Likewise; also replace formerly-ignored - PROFOPT_OPTIONS. - -2012-06-25 Richard Henderson - - * gcc.dg/pr53749.c: New. - -2012-06-25 Jason Merrill - - PR c++/52988 - * g++.dg/cpp0x/nullptr28.C: New. - -2012-06-25 Christophe Lyon - - * gcc.target/arm/neon-vld1_dupQ.c: New. - -2012-06-25 Florian Weimer - - * g++.dg/init/new35.C: New. - * g++.dg/init/new36.C: New. - * g++.dg/init/new37.C: New. - * g++.dg/ext/vla5.C: New warning. - * g++.dg/ext/vla8.C: New warning. - * g++.dg/cpp0x/regress/debug-debug7.C: Update diagnostics. - -2012-06-25 Matthew Gretton-Dann - James Greenhalgh - - * gcc.target/arm/ftest-support-arm.h New testcase. - * gcc.target/arm/ftest-support-thumb.h Likewise. - * gcc.target/arm/ftest-support.h Likewise. - * gcc.target/arm/ftest-armv4-arm.c: Likewise. - * gcc.target/arm/ftest-armv4t-arm.c: Likewise. - * gcc.target/arm/ftest-armv4t-thumb.c: Likewise. - * gcc.target/arm/ftest-armv5t-arm.c Likewise. - * gcc.target/arm/ftest-armv5t-thumb.c Likewise. - * gcc.target/arm/ftest-armv5te-arm.c: Likewise. - * gcc.target/arm/ftest-armv5te-thumb.c: Likewise. - * gcc.target/arm/ftest-armv6-arm.c Likewise. - * gcc.target/arm/ftest-armv6-thumb.c Likewise. - * gcc.target/arm/ftest-armv6k-arm.c Likewise. - * gcc.target/arm/ftest-armv6k-thumb.c Likewise. - * gcc.target/arm/ftest-armv6m-thumb.c: Likewise. - * gcc.target/arm/ftest-armv6t2-arm.c: Likewise. - * gcc.target/arm/ftest-armv6t2-thumb.c: Likewise. - * gcc.target/arm/ftest-armv6z-arm.c: Likewise. - * gcc.target/arm/ftest-armv6z-thumb.c: Likewise. - * gcc.target/arm/ftest-armv7a-arm.c Likewise. - * gcc.target/arm/ftest-armv7a-thumb.c Likewise. - * gcc.target/arm/ftest-armv7m-thumb.c: Likewise. - * gcc.target/arm/ftest-armv7em-thumb.c: Likewise. - * gcc.target/arm/ftest-armv7r-arm.c Likewise. - * gcc.target/arm/ftest-armv7r-thumb.c Likewise. - * lib/target-supports.exp - (check_effective_target_arm_arch_FUNC): Add support for more - architectures. - (add_options_for_arm_arch_FUNC): Likewise. - (check_effective_target_arm_arch_FUNC_multilib): New functions. - -2012-06-25 Jason Merrill - - PR c++/53202 - * g++.dg/cpp0x/constexpr-tuple.C: New. - -2012-06-25 Jakub Jelinek - - PR target/53759 - * gcc.target/i386/pr53759.c: New test. - - PR c++/53594 - * g++.dg/cpp0x/nsdmi7.C: New test. - -2012-06-24 Kai Tietz - - * gcc.target/i386/pr23943.c (size_t): Use compatible type-definition - for LLP64 targets. - * gcc.target/i386/pr38988.c: Likewise. - -2012-06-22 Janus Weil - - PR fortran/47710 - PR fortran/53328 - * gfortran.dg/typebound_generic_12.f03: New. - * gfortran.dg/typebound_generic_13.f03: New. - -2012-06-22 Eric Botcazou - - * gnat.dg/lto15.ad[sb]: New test. - -2012-06-21 Meador Inge - - PR c/53702 - * gcc.dg/Wunused-local-typedefs.c: New testcase. - -2012-06-21 Steven Bosscher - - * gcc.dg/pch/ident-1.c: New test. - * gcc.dg/pch/ident-1.hs: Header file for new test. - -2012-06-21 Michael Matz - - PR middle-end/53688 - * gcc.c-torture/execute/pr53688.c: New test. - -2012-06-20 Richard Guenther - - PR tree-optimization/30318 - * gcc.dg/tree-ssa/vrp69.c: New testcase. - -2012-06-20 Richard Earnshaw - - * g++.dg/debug/dwarf2/nested-3.C: Add ARM comment character to regexp. - -2012-06-20 Rainer Orth - - * gcc.target/i386/clearcapv2.map: New file. - * gcc.target/i386/i386.exp: Try it first before clearcap.map. - -2012-06-19 Kaz Kojima - - * gcc.dg/stack-usage-1.c: Remove dg-options line for sh targets - and add __sh__ case. - -2012-06-19 Jason Merrill - - PR c++/52637 - * g++.dg/debug/localclass1.C: New. - -2012-06-16 Ville Voutilainen - - * g++.dg/cpp0x/override4.C: New. - -2012-06-14 Jason Merrill - - PR c++/53651 - * g++.dg/cpp0x/decltype37.C: New. - -2012-06-19 Kaz Kojima - - * gcc.dg/stack-usage-1.c: Use sh*-*-* instead of sh-*-*. - -2012-06-19 Joseph Myers - - * gcc.c-torture/compile/vector-5.c, - gcc.c-torture/compile/vector-6.c: New tests. - -2012-06-19 Richard Henderson - - * gcc.target/i386/pr33329.c: Change multiplier constant to 12345. - -2012-06-19 Richard Guenther - - * gcc.dg/tree-ssa/vrp68.c: Adjust testcase. - -2012-06-18 Uros Bizjak - - PR target/53712 - * gcc.target/i386/pr53712.c: New test. - -2012-06-18 Tobias Burnus - - PR fortran/53692 - * gfortran.dg/elemental_optional_args_6.f90: New. - -2012-06-18 Tobias Burnus - - PR fortran/53526 - * gfortran.dg/coarray_lib_move_alloc_1.f90: New. - * gfortran.dg/coarray/move_alloc_1.f90 - -2012-06-18 Tobias Burnus - - PR fortran/53526 - * gfortran.dg/coarray_27.f90: New. - -2012-06-18 Joey Ye - Greta Yorsh - - * gcc.target/arm/epilog-1.c: New test. - -2012-06-18 Richard Guenther - - PR tree-optimization/53693 - * g++.dg/torture/pr53693.C: New testcase. - -2012-06-18 Bill Schmidt - - PR tree-optimization/53703 - * gcc.dg/torture/pr53703.c: New test. - -2012-06-18 Richard Sandiford - - PR middle-end/53698 - * gcc.target/i386/pr53698.c: New test. - -2012-06-17 Uros Bizjak - - * gcc.target/i386/pr33329.c (f): Increase tabs array to 1024. - -2012-06-17 Tobias Burnus - - PR fortran/53691 - PR fortran/53685 - * gfortran.dg/transfer_check_3.f90: New. - -2012-06-17 Uros Bizjak - - * gcc.dg/tree-ssa/vrp68.c: Fix scan-tree-dump-times argument order. - -2012-06-16 Tobias Burnus - - PR fortran/53642 - PR fortran/45170 - * gfortran.dg/deferred_type_param_8.f90: New. - -2012-06-15 Janis Johnson - - * lib/gcov.exp (verify-lines, verify-branches, verify-calls): Use - testname that includes flags, passed in as new argument, in - pass/fail messages. - (run_gcov): Get testname from dg-test, use it in pass/fail messages - and pass it to verify-* procedures. - - * g++.dg/torture/stackalign/stackalign.exp: Combine stack - alignment torture options with usual torture options. - - * g++.dg/cpp0x/auto27.C: Add comments to checks for multiple - messages reported for one line of source code. - * g++.dg/cpp0x/constexpr-decl.C: Likewise. - * g++.dg/cpp0x/decltype2.C: Likewise. - * g++.dg/cpp0x/decltype3.C: Likewise. - * g++.dg/cpp0x/lambda/lambda-syntax1.C: Likewise. - * g++.dg/cpp0x/regress/error-recovery1.C: Likewise. - * g++.dg/cpp0x/static_assert3.C: Likewise. - * g++.dg/cpp0x/udlit-cpp98-neg.C: Likewise. - * g++.dg/cpp0x/udlit-shadow-neg.C: Likewise. - * g++.dg/cpp0x/union1.C: Likewise. - * g++.dg/cpp0x/variadic-ex10.C: Likewise. - * g++.dg/cpp0x/variadic-ex14.C: Likewise. - * g++.dg/cpp0x/variadic2.C: Likewise. - * g++.dg/cpp0x/variadic20.C: Likewise. - * g++.dg/cpp0x/variadic74.C: Likewise. - * g++.dg/diagnostic/bitfld2.C: Likewise. - * g++.dg/ext/attrib44.C: Likewise. - * g++.dg/ext/no-asm-1.C: Likewise. - * g++.dg/other/error34.C: Likewise. - * g++.dg/parse/crash46.C: Likewise. - * g++.dg/parse/error10.C: Likewise. - * g++.dg/parse/error2.C: Likewise. - * g++.dg/parse/error3.C: Likewise. - * g++.dg/parse/error36.C: Likewise. - * g++.dg/parse/error8.C: Likewise. - * g++.dg/parse/error9.C: Likewise. - * g++.dg/parse/parser-pr28152-2.C: Likewise. - * g++.dg/parse/parser-pr28152.C: Likewise. - * g++.dg/parse/template25.C: Likewise. - * g++.dg/parse/typename11.C: Likewise. - * g++.dg/tc1/dr147.C: Likewise. - * g++.dg/template/deduce3.C: Likewise. - * g++.dg/template/koenig9.C: Likewise. - * g++.dg/template/pr23510.C: Likewise. - * g++.dg/warn/pr12242.C: Likewise. - * g++.dg/warn/pr30551-2.C: Likewise. - * g++.dg/warn/pr30551.C: Likewise. - * g++.old-deja/g++.other/typename1.C: Likewise. - * g++.old-deja/g++.pt/niklas01a.C: Likewise. - -2012-06-15 Ramana Radhakrishnan - - PR c++/51033 - * c-c++-common/torture/vshuf-16.inc: Move from gcc.c-torture/execute/. - * c-c++-common/torture/vshuf-2.inc: Likewise. - * c-c++-common/torture/vshuf-4.inc: Likewise. - * c-c++-common/torture/vshuf-8.inc: Likewise. - * c-c++-common/torture/vshuf-main.inc: Likewise. - * c-c++-common/torture/vshuf-v16hi.c: Likewise. - * c-c++-common/torture/vshuf-v16qi.c: Likewise. - * c-c++-common/torture/vshuf-v2df.c: Likewise. - * c-c++-common/torture/vshuf-v2di.c: Likewise. - * c-c++-common/torture/vshuf-v2sf.c: Likewise. - * c-c++-common/torture/vshuf-v2si.c: Likewise. - * c-c++-common/torture/vshuf-v4df.c: Likewise. - * c-c++-common/torture/vshuf-v4di.c: Likewise. - * c-c++-common/torture/vshuf-v4hi.c: Likewise. - * c-c++-common/torture/vshuf-v4sf.c: Likewise. - * c-c++-common/torture/vshuf-v4si.c: Likewise. - * c-c++-common/torture/vshuf-v8hi.c: Likewise. - * c-c++-common/torture/vshuf-v8qi.c: Likewise. - * c-c++-common/torture/vshuf-v8si.c: Likewise. - -2012-06-15 Michael Matz - - * gcc.dg/tree-ssa/vector-4.c: New test. - -2012-06-15 Michael Matz - - * gcc.dg/debug/dwarf2/inline3.c: Adjust. - * gcc.dg/tree-ssa/foldstring-1.c: Adjust. - -2012-06-15 Ulrich Weigand - - PR tree-optimization/53636 - * gcc.target/arm/pr53636.c: New test. - -2012-06-15 Jakub Jelinek - - PR tree-optimization/51581 - * gcc.c-torture/execute/pr51581-1.c: New test. - * gcc.c-torture/execute/pr51581-2.c: New test. - * gcc.dg/vect/pr51581-1.c: New test. - * gcc.dg/vect/pr51581-2.c: New test. - * gcc.dg/vect/pr51581-3.c: New test. - * gcc.target/i386/avx-pr51581-1.c: New test. - * gcc.target/i386/avx-pr51581-2.c: New test. - * gcc.target/i386/avx2-pr51581-1.c: New test. - * gcc.target/i386/avx2-pr51581-2.c: New test. - * gcc.dg/vect/slp-26.c (main1): Divide by 0x8031 instead of 3. - -2012-06-15 Richard Guenther - - * gcc.c-torture/execute/20120615-1.c: New testcase. - -2012-06-15 Eric Botcazou - - * gnat.dg/vect8.ad[sb]: New test. - -2012-06-14 Richard Guenther - - * gcc.dg/tree-ssa/vrp.h: New testcase. - * gcc.dg/tree-ssa/vrp68.c: Likewise. - -2012-06-13 Christian Bruel - - PR target/53621 - * gcc.dg/stack-usage-1.c: Force -fomit-frame-pointer on SH. - -2012-06-14 Richard Sandiford - - * gcc.target/mips/mips.exp (mips-dg-options): Handle -msynci. - -2012-06-13 Janis Johnson - - PR testsuite/20771 - * lib/dg-pch.exp (dg-flags-pch): Add flags to make compile lines in - test summary unique. - - * lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden, - scan-not-hiddent, scan-file, scan-file-not, scan-stack-usage, - scan-stack-usage-not): Don't strip torture options from test name. - - * lib/scandump.exp (scan-dump-times): Use printable version of - regexp in test summary line. - - * gcc.dg/di-longlong64-sync-1.c: Add comments to checks for multiple - messages reported for one line of source code. - * gcc.dg/format/few-1.c: Likewise. - * gcc.dg/ia64-sync-2.c: Likewise. - * gcc.dg/sync-2.c: Likewise. - * gcc.dg/noncompile/pr44517.c: Likewise. - -2012-06-13 Alexandre Oliva - - PR debug/49888 - * gcc.dg/guality/pr49888.c: New. - -2012-06-13 Alexandre Oliva - - * g++.dg/tree-ssa/ivopts-2.C: Adjust for coalescing. - * gcc.dg/tree-ssa/forwprop-11.c: Likewise. - * gcc.dg/tree-ssa/ssa-fre-1.c: Likewise. - -2012-06-13 Tobias Burnus - - PR fortran/53643 - * gfortran.dg/intent_out_7.f90: New. - -2012-06-13 Tobias Burnus - - PR fortran/53597 - * gfortran.dg/save_4.f90: New. - -2012-06-12 Jakub Jelinek - - PR c/53532 - PR c/51034 - PR c/53196 - * gcc.dg/pr53532.c: New test. - * gcc.dg/c99-complit-2.c: Add two new dg-error directives, - adjust line numbers. - * gcc.dg/noncompile/950825-1.c: Expect incomplete type error message. - * gcc.dg/Wcxx-compat-8.c: Likewise. - * gcc.dg/pr51034.c: New test. - * gcc.dg/pr53196-1.c: New test. - * gcc.dg/pr53196-2.c: New test. - -2012-06-12 Janis Johnson - - * gcc.dg/torture/stackalign/stackalign.exp: Combine stack - alignment torture options with usual torture options. - * gcc.dg/torture/stackalign/alloca-2.c: Use dg-additional-options - instead of dg-options. - * gcc.dg/torture/stackalign/alloca-3.c: Likewise. - * gcc.dg/torture/stackalign/alloca-4.c: Likewise. - * gcc.dg/torture/stackalign/alloca-5.c: Likewise. - * gcc.dg/torture/stackalign/alloca-6.c: Likewise. - * gcc.dg/torture/stackalign/push-1.c: Likewise. - * gcc.dg/torture/stackalign/vararg-3.c: Likewise. - - * gcc.target/arm/di-longlong64-sync-withhelpers.c: Add comments - to checks for multiple messages reported for one line of source code. - * gcc.target/arm/di-longlong64-sync-withldrexd.c: Likewise. - - * gcc.c-torture/compile/sync-1.c: Add comments to checks for multiple - messages reported for one line of source code. - - * gcc.dg/20031223-1.c: Add comments to check for multiple - messages reported for one line of source code. - * gcc.dg/Wconversion-integer.c: Likewise. - * gcc.dg/Wfatal-2.c: Likewise. - * gcc.dg/Wfatal.c: Likewise. - * gcc.dg/Wobjsize-1.c: Likewise. - * gcc.dg/c99-vla-jump-1.c: Likewise. - * gcc.dg/c99-vla-jump-2.c: Likewise. - * gcc.dg/c99-vla-jump-3.c: Likewise. - * gcc.dg/c99-vla-jump-4.c: Likewise. - * gcc.dg/c99-vla-jump-5.c: Likewise. - * gcc.dg/decl-9.c: Likewise. - * gcc.dg/declspec-10.c: Likewise. - * gcc.dg/declspec-18.c: Likewise. - * gcc.dg/mtune.c: Likewise. - * gcc.dg/parser-pr28152-2.c: Likewise. - * gcc.dg/parser-pr28152.c: Likewise. - * gcc.dg/pr14475.c: Likewise. - * gcc.dg/pr27953.c: Likewise. - * gcc.dg/pr28322-3.c: Likewise. - * gcc.dg/pr30457.c: Likewise. - * gcc.dg/pr30551-2.c: Likewise. - * gcc.dg/pr30551-3.c: Likewise. - * gcc.dg/pr30551-4.c: Likewise. - * gcc.dg/pr30551-5.c: Likewise. - * gcc.dg/pr30551-6.c: Likewise. - * gcc.dg/pr30551.c: Likewise. - * gcc.dg/pr45461.c: Likewise. - * gcc.dg/pr48552-1.c: Likewise. - * gcc.dg/pr48552-2.c: Likewise. - * gcc.dg/redecl-1.c: Likewise. - * gcc.dg/transparent-union-3.c: Likewise. - * gcc.dg/utf-dflt.c: Likewise. - * gcc.dg/utf-dflt2.c: Likewise. - * gcc.dg/vla-8.c: Likewise. - * gcc.dg/vla-init-1.c: Likewise. - * gcc.dg/wtr-int-type-1.c: Likewise. - - * c-c++-common/raw-string-3.c: Add comments to checks for multiple - messages reported for for one line of source code. - * c-c++-common/raw-string-5.c: Likewise. - * c-c++-common/raw-string-4.c: Likewise. - * c-c++-common/raw-string-6.c: Likewise. - * c-c++-common/pr20000.c: Likewise. - - * gcc.dg/cpp/include2a.c: Add comments to checks for multiple - messages reported for one line of source code. - * gcc.dg/cpp/pr30786.c: Likewise. - * gcc.dg/cpp/pr28709.c: Likewise. - * gcc.dg/cpp/missing-header-MD.c: Likewise. - * gcc.dg/cpp/macspace2.c: Likewise. - * gcc.dg/cpp/missing-header-1.c: Likewise. - * gcc.dg/cpp/missing-header-MMD.c: Likewise. - * gcc.dg/cpp/missing-sysheader-MD.c: Likewise. - * gcc.dg/cpp/missing-sysheader-MMD.c: Likewise. - -2012-06-12 Jason Merrill - - PR c++/53599 - * g++.dg/template/local7.C: New. - -2012-06-12 Oleg Endo - - PR target/53511 - * gcc.target/sh/pr51340-1.c: Delete obsolete test case. - * gcc.target/sh/pr51340-2.c: Likewise. - * gcc.target/sh/pr51340-3.c: Likewise. - -2012-06-12 Michael Matz - - * gcc.dg/torture/alias-1.c: New test. - -2012-06-12 Jakub Jelinek - - PR rtl-optimization/53589 - * gcc.dg/torture/pr53589.c: New test. - -2012-06-12 Oleg Endo - - PR target/50749 - * gcc.target/sh/pr50749-sf-postinc-2.c: New. - * gcc.target/sh/pr50749-sf-postinc-4.c: New. - * gcc.target/sh/pr50749-qihisi-postinc-2.c: New. - * gcc.target/sh/pr50749-qihisi-postinc-4.c: New. - * gcc.target/sh/pr50749-sf-predec-2.c: New. - * gcc.target/sh/pr50749-sf-predec-4.c: New. - * gcc.target/sh/pr50749-qihisi-predec-1.c: New. - * gcc.target/sh/pr50749-qihisi-predec-3.c: New. - * gcc.target/sh/pr50749-sf-postinc-1.c: New. - * gcc.target/sh/pr50749-sf-postinc-3.c: New. - * gcc.target/sh/pr50749-qihisi-postinc-1.c: New. - * gcc.target/sh/pr50749-qihisi-postinc-3.c: New. - * gcc.target/sh/pr50749-sf-predec-1.c: New. - * gcc.target/sh/pr50749-sf-predec-3.c: New. - * gcc.target/sh/pr50749-qihisi-predec-2.c: New. - * gcc.target/sh/pr50749-qihisi-predec-4.c: New. - -2012-06-11 Sriraman Tallam - - * gcc.target/i386/builtin_target.c (vendor_signatures): New enum. - (check_intel_cpu_model): New function. - (check_amd_cpu_model): New function. - (check_features): New function. - (__get_cpuid_output): New function. - (check_detailed): New function. - (fn1): Rename to quick_check. - (main): Update to call quick_check and call check_detailed. - -2012-06-11 Richard Henderson - - * lib/target-supports.exp - (check_effective_target_sync_long_long_runtime): Use - check_effective_target_lp64 instead of - check_effective_target_powerpc64 for powerpc targets. - -2012-06-11 Oleg Endo - - PR target/53511 - * gcc.target/sh/pr53511-1.c: New. - -2012-06-11 Richard Guenther - - PR middle-end/53470 - * g++.dg/lto/pr53470_0.C: New testcase. - * gcc.dg/lto/pr53470_0.c: Likewise. - -2012-06-11 Richard Guenther - - PR c++/53605 - * g++.dg/ext/pr53605.C: New testcase. - -2012-06-11 Eric Botcazou - - * gnat.dg/specs/array1.ads: New test. - * gnat.dg/specs/array2.ads: Likewise. - * gnat.dg/array22.adb: Likewise. - -2012-06-11 Eric Botcazou - - * gnat.dg/constant4.adb: New test. - * gnat.dg/constant4_pkg.ads: New helper. - -2012-06-08 Janus Weil - - PR fortran/52552 - * gfortran.dg/allocate_alloc_opt_1.f90: Modified. - * gfortran.dg/allocate_class_1.f90: Modified. - * gfortran.dg/allocate_with_typespec_4.f90: Modified. - * gfortran.dg/allocate_class_2.f90: New. - -2012-06-07 Hans-Peter Nilsson - - PR middle-end/53535 - * gcc.dg/pr46647.c: xfail for cris-* and crisv32-*. - -2012-06-07 Thomas KÁnig - - PR fortran/52861 - * gfortran.dg/string_assign_2.f90: New test case. - -2012-06-07 Thomas KÁnig - - PR fortran/52861 - * gfortran.dg/string_assign_1.f90: New test case. - -2012-06-07 Jakub Jelinek - - PR middle-end/53580 - * gcc.dg/gomp/nesting-1.c: Expect errors rather than warnings. - * gcc.dg/gomp/critical-4.c: Likewise. - * gfortran.dg/gomp/appendix-a/a.35.1.f90: Likewise. - * gfortran.dg/gomp/appendix-a/a.35.3.f90: Likewise. - * gfortran.dg/gomp/appendix-a/a.35.4.f90: Likewise. - * gfortran.dg/gomp/appendix-a/a.35.6.f90: Likewise. - * c-c++-common/gomp/pr53580.c: New test. - -2012-06-07 Fabien ChÁne - - PR c++/51214 - * g++.dg/cpp0x/forw_enum11.C: New. - -2012-06-06 Paolo Carlini - - PR c++/53567 - * g++.dg/cpp0x/alias-decl-19.C: New. - -2012-06-06 Steven Bosscher - - * g++.old-deja/g++.brendan/array1.C: Remove dg-options. - -2012-06-06 Uros Bizjak - - * gcc.target/i386/avx-os-support.h (XCR_XFEATURE_ENABLED_MASK): New. - (XSTATE_FP): Ditto. - (XSTATE_SSE): Ditto. - (XSTATE_YMM): Ditto. - (avx_os_support): Use new defines. - -2012-06-06 Richard Guenther - - PR testsuite/32380 - * gfortran.dg/vect/pr32380.f: Adjust number of expected vectorized - loops. - -2012-06-06 Fabien ChÁne - - PR c++/52841 - * g++.dg/cpp0x/pr52841.C: New testcase. - -2012-06-06 Richard Guenther - - PR tree-optimization/53081 - * gcc.dg/tree-ssa/ldist-20.c: New testcase. - * gcc.dg/tree-ssa/loop-19.c: Add -fno-tree-loop-distribute-patterns. - -2012-06-05 Michael Meissner - - * gcc.target/powerpc/pr53487.c: New test. - -2012-06-05 Pat Haugen - - * gcc.target/powerpc/lhs-1.c: Use parm instead of stack space. - -2012-06-05 Edmar Wienskoski - - * gcc.dg/tree-ssa/vector-3.c: Adjust regular expression. - -2012-06-05 Richard Guenther - - PR tree-optimization/30442 - * gcc.dg/vect/bb-slp-30.c: New testcase. - -2012-06-05 Richard Guenther - - PR tree-optimization/53081 - * gcc.dg/tree-ssa/ldist-19.c: New testcase. - * gcc.c-torture/execute/builtins/builtins.exp: Always pass - -fno-tree-loop-distribute-patterns. - -2012-06-05 Alan Modra - - * gcc.target/powerpc/savres.c: Add -mdynamic-no-pic for darwin. - Check static chain in nested funcs. - -2012-06-04 Tobias Burnus - - PR fortran/50619 - * gfortran.dg/init_flag_10.f90: New. - -2012-06-04 Paolo Carlini - - PR c++/53524 - * g++.dg/warn/Wenum-compare-no-2: New. - -2012-06-04 Dodji Seketeli - - PR preprocessor/53463 - * g++.dg/cpp/limits.C: New test. - * g++.dg/parse/error19.C: Adjust. - * g++.dg/warn/Wconversion-real-integer2.C: Likewise. - * g++.dg/warn/pr35635.C: Likewise. - * g++.old-deja/g++.pt/assign1.C: Likewise. - -2012-06-04 Edmar Wienskoski - - PR target/53559 - * gcc.target/powerpc/cell_builtin_1.c: New test case. - * gcc.target/powerpc/cell_builtin_2.c: Ditto. - * gcc.target/powerpc/cell_builtin_3.c: Ditto. - * gcc.target/powerpc/cell_builtin_4.c: Ditto. - * gcc.target/powerpc/cell_builtin_5.c: Ditto. - * gcc.target/powerpc/cell_builtin_6.c: Ditto. - * gcc.target/powerpc/cell_builtin_7.c: Ditto. - * gcc.target/powerpc/cell_builtin_8.c: Ditto. - -2012-06-04 Andreas Schwab - - * g++.dg/debug/dwarf2/nested-3.C: Allow for | comments. - -2012-06-04 Jakub Jelinek - - PR tree-optimization/53550 - * gcc.dg/pr53550.c: New test. - -2012-06-04 Richard Guenther - - * gcc.dg/tree-ssa/ldist-11.c: Enable -ftree-loop-distribute-patterns. - * gcc.dg/tree-ssa/ldist-17.c: Likewise. - * gcc.dg/tree-ssa/ldist-pr45948.c: Likewise. - -2012-06-03 Alessandro Fanfarillo - - PR fortran/48831 - * gfortran.dg/parameter_array_element_2.f90: New. - -2012-06-03 Oleg Endo - - PR target/53512 - * gcc.target/sh/pr53512-1.c: New. - * gcc.target/sh/pr53512-2.c: New. - * gcc.target/sh/pr53512-3.c: New. - * gcc.target/sh/pr53512-4.c: New. - -2012-06-01 Jason Merrill - - PR c++/52973 - * g++.dg/ext/visibility/template12.C: New. - * g++.dg/ext/attrib14.C: Adjust warning line. - - PR c++/52725 - * g++.dg/parse/new6.C: New. - * g++.dg/template/sizeof-template-argument.C: Adjust error message. - -2012-06-01 Eric Botcazou - - * c-c++-common/restrict-2.c: Revert previous change. - -2012-06-01 Jason Merrill - - PR c++/53137 - * g++.dg/cpp0x/lambda/lambda-template5.C: New. - - PR c++/53484 - * g++.dg/cpp0x/auto33.C: New. - -2012-06-01 Paolo Carlini - - PR c++/26155 - * g++.dg/parse/namespace-alias-1.C: New. - -2012-06-01 Christian Bruel - - * gcc.dg/spec-options.c: New test. - * gcc.dg/foo.specs: New file. - -2012-06-01 Eric Botcazou - - PR ada/53517 - * gnat.dg/lto14.adb: Skip on Solaris. - -2012-06-01 Hans-Peter Nilsson - - * gcc.target/cris/sync-1-v10.c, - gcc.target/cris/sync-1-v32.c, gcc.target/cris/sync-1.c, - gcc.target/cris/sync-2c.c, gcc.target/cris/sync-2i.c, - gcc.target/cris/sync-2s.c, gcc.target/cris/sync-3i.c, - gcc.target/cris/sync-3s.c, gcc.target/cris/sync-4c.c, - gcc.target/cris/sync-4i.c, gcc.target/cris/sync-4s.c, - gcc.target/cris/torture/sync-mis-op-i-1.c, - gcc.target/cris/torture/sync-mis-op-i-1a.c, - gcc.target/cris/torture/sync-mis-op-i-2.c, - gcc.target/cris/torture/sync-mis-op-i-2a.c, - gcc.target/cris/torture/sync-mis-op-i-3.c, - gcc.target/cris/torture/sync-mis-op-i-3a.c, - gcc.target/cris/torture/sync-mis-op-s-1.c, - gcc.target/cris/torture/sync-mis-op-s-1a.c, - gcc.target/cris/torture/sync-mis-xchg-i-1.c, - gcc.target/cris/torture/sync-mis-xchg-i-1a.c, - gcc.target/cris/torture/sync-mis-xchg-i-2.c, - gcc.target/cris/torture/sync-mis-xchg-i-2a.c, - gcc.target/cris/torture/sync-mis-xchg-i-3.c, - gcc.target/cris/torture/sync-mis-xchg-i-3a.c, - gcc.target/cris/torture/sync-mis-xchg-s-1.c, - gcc.target/cris/torture/sync-mis-xchg-s-1a.c: New tests. - -2012-05-31 Richard Guenther - - * gcc.dg/tree-ssa/ldist-pr45948-2.c: New testcase copy of - ldist-pr45948.c with disabled SCCP. - -2012-05-31 Richard Guenther - - PR middle-end/48493 - * gcc.dg/torture/pr48493.c: New testcase. - -2012-05-31 Greta Yorsh - - * lib/target-supports.exp (check_effective_target_vect_char_mult): Add - arm32 to targets. - * gcc.dg/vect/slp-perm-8.c (main): Prevent vectorization - of the initialization loop. - (dg-final): Adjust the expected number of vectorized loops depending - on vect_char_mult target selector. - -2012-05-31 Hans-Peter Nilsson - - * gcc.target/cris/asm-v8.S, gcc.target/cris/asm-v10.S, - gcc.target/cris/asm-other.S, gcc.target/cris/inasm-v8.c, - gcc.target/cris/inasm-v10.c, gcc.target/cris/inasm-other.c: - New tests. - -2012-05-30 Jason Merrill - - PR c++/53356 - * g++.dg/init/new34.C: New. - * g++.dg/tree-ssa/stabilize1.C: New. - -2012-05-30 Jakub Jelinek - - PR c++/53356 - * g++.dg/init/new33.C: New test. - -2012-05-30 Richard Guenther - - PR middle-end/53501 - * gcc.dg/torture/pr53501.c: New testcase. - * c-c++-common/restrict-2.c: Adjust. - -2012-05-30 Alan Modra - - * gcc.target/powerpc/powerpc.exp: Load torture-options.exp, call - torture-finish. - -2012-05-30 Marc Glisse - - * gcc.target/i386/shuf-concat.c: New test. - -2012-05-30 Jakub Jelinek - - PR rtl-optimization/53519 - * gcc.c-torture/compile/pr53519.c: New test. - -2012-05-30 Ramana Radhakrishnan - - * gcc.target/arm/neon-vrev.c: New. - -2012-05-29 Oleg Endo - - PR target/51340 - * gcc.target/sh/pr51340-1.c: New. - * gcc.target/sh/pr51340-2.c: New. - * gcc.target/sh/pr51340-3.c: New. - -2012-05-29 Richard Guenther - - PR tree-optimization/53516 - * gcc.dg/torture/pr53516.c: New testcase. - -2012-05-29 Dodji Seketeli - - PR preprocessor/53229 - * gcc.dg/cpp/paste6.c: Force to run without - -ftrack-macro-expansion. - * gcc.dg/cpp/paste8.c: Likewise. - * gcc.dg/cpp/paste8-2.c: New test, like paste8.c but run with - -ftrack-macro-expansion. - * gcc.dg/cpp/paste12.c: Force to run without - -ftrack-macro-expansion. - * gcc.dg/cpp/paste12-2.c: New test, like paste12.c but run with - -ftrack-macro-expansion. - * gcc.dg/cpp/paste13.c: Likewise. - * gcc.dg/cpp/paste14.c: Likewise. - * gcc.dg/cpp/paste14-2.c: New test, like paste14.c but run with - -ftrack-macro-expansion. - * gcc.dg/cpp/paste18.c: New test. - -2012-05-29 Hans-Peter Nilsson - - * gcc.target/cris/torture/trap-1.c, - gcc.target/cris/torture/trap-2.c, - gcc.target/cris/torture/trap-3.c, - gcc.target/cris/torture/trap-v0.c, - gcc.target/cris/torture/trap-v3.c: New tests. - -2012-05-28 Paolo Carlini - - PR c++/25137 - * g++.dg/warn/Wbraces3.C: New. - * g++.dg/warn/Wbraces4.C: Likewise. - -2012-05-28 Jakub Jelinek - - PR tree-optimization/53505 - * c-c++-common/torture/pr53505.c: New test. - -2012-05-27 Nathan Sidwell - - * gcc.dg/stmt-expr-4.c: New. - -2012-05-26 Paolo Carlini - - PR c++/53491 - * g++.dg/parse/crash60.C: New. - -2012-05-26 Jason Merrill - - PR c++/53220 - * c-c++-common/array-lit.c: New. - * g++.dg/ext/complit12.C: #if 0 out decay-to-pointer test. - -2012-05-26 Eric Botcazou - - PR ada/50294 - * gnat.dg/array21.adb: New test. - -2012-05-26 Eric Botcazou - - * gnat.dg/renaming5.adb: Adjust dg-final directive. - -2012-05-25 Paolo Carlini - - PR c++/32054 - * g++.dg/other/anon-union3.C: New. - -2012-05-25 Ian Lance Taylor - - * gcc.dg/split-6.c: New test. - -2012-05-25 Eric Botcazou - - * gnat.dg/lto14.adb: New test. - -2012-05-25 Tristan Gingold - - * gcc.target/i386/large-frame.c: New. - -2012-05-24 Pat Haugen - * gcc.target/powerpc/lhs-1.c: New. - * gcc.target/powerpc/lhs-2.c: New. - * gcc.target/powerpc/lhs-3.c: New. - -2012-05-24 Dodji Seketeli - - Make unwound macro expansion trace less redundant - * gcc.dg/cpp/macro-exp-tracking-1.c: Adjust. - * gcc.dg/cpp/macro-exp-tracking-2.c: Likewise. - * gcc.dg/cpp/macro-exp-tracking-3.c: Likewise. - * gcc.dg/cpp/macro-exp-tracking-4.c: Likewise. - * gcc.dg/cpp/macro-exp-tracking-5.c: Likewise. - * gcc.dg/cpp/pragma-diagnostic-2.c: Likewise. - -2012-05-24 Paolo Carlini - - PR c++/53464 - * g++.dg/cpp0x/constexpr-default1.C: New. - -2012-05-24 Paolo Carlini - - PR c++/32080 - * g++.dg/eh/goto2.C: New. - -2012-05-24 Richard Guenther - - PR middle-end/53460 - * g++.dg/tree-prof/pr53460.C: New testcase. - -2012-05-24 Richard Guenther - - PR bootstrap/53466 - * g++.dg/debug/pr53466.C: New testcase. - -2012-05-24 Jakub Jelinek - - PR tree-optimization/53465 - * gcc.c-torture/execute/pr53465.c: New test. - -2012-05-23 Tobias Burnus - - PR fortran/51055 - PR fortran/45170 - * gfortran.dg/allocate_with_typespec_6.f90: New. - -2012-05-23 Paolo Carlini - - PR c++/29185 - * g++.dg/warn/delete-array-1.C: New. - -2012-05-23 Richard Guenther - - * gcc.dg/torture/pr39074-2.c: Adjust. - * gcc.dg/torture/pr39074.c: Likewise. - * gcc.dg/torture/pta-structcopy-1.c: Likewise. - * gcc.dg/tree-ssa/alias-19.c: Likewise. - -2012-05-22 Jan Hubicka - - PR middle-end/53161 - * g++.dg/torture/pr53161.C: New testcase. - -2012-05-22 Tobias Burnus - - PR fortran/53389 - * gfortran.dg/realloc_on_assign_15.f90: New. - -2012-05-22 Richard Guenther - - PR middle-end/51071 - * gcc.dg/torture/pr51071-2.c: New testcase. - -2012-05-22 Paolo Bonzini - - PR tree-optimization/53336 - * g++.dg/torture/pr53336.C: New testcase. - -2012-05-22 Dodji Seketeli - - PR c++/53322 - * g++.dg/warn/Wunused-local-typedefs.C: Adjust to use -Wunused - instead of -Wunused-local-typedefs. - -2012-05-21 Paolo Carlini - - PR c++/51184 - * g++.dg/other/abstract4.C: New- - -2012-05-21 Paolo Carlini - - PR c++/40821 - * g++.dg/ext/attrib46.C: New. - -2012-05-21 Joseph Myers - - PR c/53418 - * gcc.c-torture/compile/pr53418-1.c, - gcc.c-torture/compile/pr53418-2.c: New tests. - -2012-05-21 Jakub Jelinek - - PR tree-optimization/53366 - * gcc.dg/torture/pr53366-1.c: New test. - * gcc.dg/torture/pr53366-2.c: New test. - * gcc.target/i386/pr53366-1.c: New test. - * gcc.target/i386/pr53366-2.c: New test. - - PR tree-optimization/53409 - * gcc.c-torture/compile/pr53409.c: New test. - - PR tree-optimization/53410 - * gcc.c-torture/compile/pr53410-1.c: New test. - * gcc.c-torture/compile/pr53410-2.c: New test. - -2012-05-21 H.J. Lu - - PR target/53425 - * gcc.target/i386/pr53425-1.c: New file. - * gcc.target/i386/pr53425-2.c: Likewise. - -2012-05-21 Richard Guenther - - PR tree-optimization/53408 - * gcc.dg/torture/pr53408.c: New testcase. - -2012-05-21 Uros Bizjak - H.J. Lu - - PR target/53416 - * gcc.target/i386/pr53416.c: New file. - -2012-05-21 Richard Guenther - - * gfortran.dg/pr46519-2.f90: Adjust to avoid memset transform. - -2012-05-21 Richard Guenther - - * gcc.dg/torture/ldist-1.c: New testcase. - -2012-05-20 Eric Botcazou - - * gnat.dg/lto13.adb: New test. - * gnat.dg/lto13_pkg.ad[sb]: New helper. - -2012-05-18 Eric Botcazou - - * gnat.dg/specs/lto12.ads: New test. - * gnat.dg/specs/lto12_pkg.ads: New helper. - -2012-05-18 Richard Guenther - - PR tree-optimization/53346 - * gcc.dg/tree-ssa/ldist-18.c: New testcase. - * gcc.target/i386/incoming-10.c: Adjust. - * gcc.target/i386/incoming-11.c: Likewise. - * gcc.target/i386/pr46295.c: Likewise. - -2012-05-18 Richard Guenther - - * gcc.dg/pr53352.c: Return zero. - -2012-05-18 Richard Guenther - - PR tree-optimization/53390 - * gcc.dg/torture/pr53390.c: New testcase. - -2012-05-18 Meador Inge - - PR rtl-optimization/53352 - * gcc.dg/pr53352.c: New test. - -2012-05-17 David S. Miller - - * gfortran.dg/bessel_7.f90: Bump allowed precision to avoid - failure on sparc-*-linux-gnu. - -2012-05-17 Paolo Carlini - - PR c++/39681 - * g++.dg/parse/error49.C: New. - * g++.dg/cpp0x/error8.C: Likewise. - * g++.dg/ext/utf-cxx98.C: Adjust dg-error directive. - * g++.dg/ext/utf-dflt2.C: Likewise. - * g++.dg/ext/utf-gnuxx98.C: Likewise. - * g++.dg/ext/utf-dflt.C: Likewise. - * c-c++-common/raw-string-3.c: Likewise. - * c-c++-common/raw-string-4.c: Likewise. - -2012-05-17 Paolo Carlini - - PR c++/53371 - * g++.dg/cpp0x/catch1.C: New. - -2012-05-17 Paolo Carlini - - PR c++/44516 - * g++.dg/parse/error48.C: New. - * g++.dg/template/crash89.C: Adjust dg-error line numbers. - * g++.old-deja/g++.robertl/eb109.C: Add column info to dg-error string. - -2012-05-16 Patrick Marlier - - * gcc.dg/tm/indirect-2.c: New test. - -2012-05-16 Bill Schmidt - - PR tree-optimization/53217 - * gfortran.dg/pr53217.f90: New test. - -2012-05-16 Richard Guenther - - PR tree-optimization/53364 - * g++.dg/torture/pr53364.C: New testcase. - -2012-05-16 Georg-Johann Lay - - PR testsuite/52641 - * gcc.dg/pr52549.c: Fix test for long != void* - * gcc.c-torture/execute/pr52979-1.x: New file. - * gcc.c-torture/execute/pr52979-2.x: New file. - -2012-05-16 Dodji Seketeli - - PR preprocessor/7263 - * gcc.dg/binary-constants-2.c: Run without tracking locations - accross macro expansion. - * gcc.dg/binary-constants-3.c: Likewise. - * gcc.dg/cpp/sysmac2.c: Likewise. - * gcc.dg/nofixed-point-2.c: Adjust for more precise - location. - * gcc.dg/cpp/syshdr3.c: New test. - * gcc.dg/cpp/syshdr3.h: New header for the new test above. - * gcc.dg/system-binary-constants-1.c: New test. - * gcc.dg/system-binary-constants-1.h: New header for the new test - above. - * g++.dg/cpp/syshdr3.C: New test. - * g++.dg/cpp/syshdr3.h: New header the new test above. - * g++.dg/system-binary-constants-1.C: New test. - * g++.dg/system-binary-constants-1.h: New header the new test - above. - -2012-05-15 Paolo Carlini - - * g++.old-deja/g++.pt/crash10.C: Adjust post PR11586. - -2012-05-15 Jakub Jelinek - - PR target/53358 - * gcc.dg/pr53358.c: New test. - -2012-05-15 Paolo Carlini - - PR c++/11856 - * g++.dg/warn/Wtype-limits.C: Don't warn in templates. - * g++.dg/warn/Wtype-limits-Wextra.C: Likewise. - -2012-05-15 Olivier Hainque - - * g++.dg/eh/sighandle.C: New testcase. - -2012-05-15 Richard Guenther - - PR tree-optimization/53355 - * gcc.dg/tree-ssa/vrp67.c: New testcase. - -2012-05-15 Bernhard Reutner-Fischer - - * gfortran.dg/*.f90: Remove now redundant manual - cleanup-modules directive. - -2012-05-14 Uros Bizjak - - * gcc.target/i386/avx256-unaligned-load-[1234].c: Update scan strings. - * gcc.target/i386/avx256-unaligned-store-[1234].c: Ditto. - -2012-05-14 Janne Blomqvist - - PR fortran/52428 - * gfortran.dg/int_range_io_1.f90: New test. - -2012-05-14 Andi Kleen - Jakub Jelinek - - PR target/53315 - * gcc.target/i386/i386.exp (check_effective_target_rtm): New. - * gcc.target/i386/rtm-check.h: New file. - * gcc.target/i386/pr53315.c: New test. - -2012-05-14 Tobias Burnus - - PR fortran/49110 - PR fortran/51055 - PR fortran/53329 - * gfortran.dg/deferred_type_param_4.f90: New. - * gfortran.dg/deferred_type_param_6.f90: New. - -2012-05-14 Bernd Schmidt - - * gcc.target/i386/retarg.c: New test. - -2012-05-13 Alessandro Fanfarillo - - PR fortran/45170 - * gfortran.dg/deferred_type_param_3.f90: New. - * gfortran.dg/deferred_type_proc_pointer_1.f90: New. - * gfortran.dg/deferred_type_proc_pointer_2.f90: New. - -2012-05-12 Eric Botcazou - - * gnat.dg/null_pointer_deref3.adb: New test. - -2012-05-12 Tobias Burnus - - PR fortran/49110 - PR fortran/52843 - * gfortran.dg/deferred_type_param_5.f90: New. - -2012-05-12 Paolo Carlini - - * g++.dg/parse/error47.C: New. - -2012-05-11 Thomas Koenig - - PR fortran/52537 - * gfortran.dg/string_compare_4.f90: Change option - to -fdump-tree-original. Add test case for kind=4. - -2012-05-11 Thomas Koenig - - PR fortran/52537 - * gfortran.dg/string_compare_4.f90: New test. - -2012-05-11 Rainer Orth - - * g++.dg/debug/dwarf2/nested-3.C: Allow for ! comments. - -2012-05-11 Paolo Carlini - - PR c++/53305 - * g++.dg/cpp0x/variadic132.C: New. - -2012-05-10 Paolo Carlini - - PR c++/53158 - * g++.dg/cpp0x/lambda/lambda-err2.C: New. - * g++.dg/parse/error26.C: Tweak dg-error column number. - -2012-05-10 Paolo Carlini - - PR c++/53301 - * g++.dg/warn/Wzero-as-null-pointer-constant-6.C: New. - -2012-05-10 Eric Botcazou - - * gnat.dg/lto11.ad[sb]: New test. - -2012-05-09 Uros Bizjak - - PR target/52908 - * gcc.target/i386/xop-imul32widen-vector.c: Update scan-assembler - directive to Scan for vpmuldq, not vpmacsdql. - -2012-05-09 Michael Matz - - PR tree-optimization/53185 - * gcc.dg/vect/pr53185.c: New test. - -2012-05-09 H.J. Lu - - PR middle-end/53249 - * gcc.target/i386/pr53249.c: New. - -2012-05-09 Richard Guenther - - PR tree-optimization/18437 - * gfortran.dg/vect/rnflow-trs2a2.f90: Move ... - * gfortran.dg/vect/fast-math-rnflow-trs2a2.f90: ... here. - -2012-05-09 Jakub Jelinek - - PR tree-optimization/53226 - * gcc.c-torture/compile/pr53226.c: New test. - -2012-05-09 Rainer Orth - - * gcc.target/i386/hle-add-acq-1.c: Allow for ; after lock. - * gcc.target/i386/hle-add-rel-1.c: Likewise. - * gcc.target/i386/hle-and-acq-1.c: Likewise. - * gcc.target/i386/hle-and-rel-1.c: Likewise. - * gcc.target/i386/hle-cmpxchg-acq-1.c: Likewise. - * gcc.target/i386/hle-cmpxchg-rel-1.c: Likewise. - * gcc.target/i386/hle-or-acq-1.c: Likewise. - * gcc.target/i386/hle-or-rel-1.c: Likewise. - * gcc.target/i386/hle-sub-acq-1.c: Likewise. - * gcc.target/i386/hle-sub-rel-1.c: Likewise. - * gcc.target/i386/hle-xadd-acq-1.c: Likewise. - * gcc.target/i386/hle-xadd-rel-1.c: Likewise. - * gcc.target/i386/hle-xor-acq-1.c: Likewise. - * gcc.target/i386/hle-xor-rel-1.c: Likewise. - -2012-05-09 Dehao Chen - - * gcc.dg/predict-1.c: Remove the replicated text in this test. - * gcc.dg/predict-2.c: Likewise. - * gcc.dg/predict-3.c: Likewise. - * gcc.dg/predict-4.c: Likewise. - * gcc.dg/predict-5.c: Likewise. - * gcc.dg/predict-6.c: Likewise. - -2012-05-08 Hans-Peter Nilsson - - PR target/53272 - * gcc.dg/torture/pr53272-1.c, gcc.dg/torture/pr53272-2.c: New test. - -2012-05-08 Richard Guenther - - * gcc.dg/fold-bitand-4.c: New testcase. - -2012-05-08 Dehao Chen - - * gcc.dg/predict-1.c: Check if LOOP_IV_COMPARE static predict - heuristic is working properly. - * gcc.dg/predict-2.c: Likewise. - * gcc/dg/predict-3.c: Likewise. - * gcc/dg/predict-4.c: Likewise. - * gcc/dg/predict-5.c: Likewise. - * gcc/dg/predict-6.c: Likewise. - -2012-05-07 Jakub Jelinek - - PR tree-optimization/53239 - * g++.dg/opt/vrp3.C: New test. - * g++.dg/opt/vrp3-aux.cc: New file. - * g++.dg/opt/vrp3.h: New file. - -2012-05-07 Rainer Orth - - * g++.dg/debug/dwarf2/nested-3.C: Allow for / comments and missing - .uleb128 support in assembler output. - -2012-05-07 Richard Guenther - - PR lto/42987 - * g++.dg/lto/pr42987_0.C: New testcase. - * g++.dg/lto/pr42987_1.C: Likewise. - -2012-05-07 Tobias Burnus - - PR fortran/53255 - * gfortran.dg/typebound_operator_15.f90: New. - -2012-05-06 Tobias Burnus - - PR fortran/41587 - * gfortran.dg/class_array_13.f90: New. - -2012-05-06 Tristan Gingold - - * gnat.dg/warn7.adb: New test. - -2012-05-06 Eric Botcazou - - * gnat.dg/specs/renamings.ads: Rename to... - * gnat.dg/specs/renaming1.ads: ...this. - * gnat.dg/specs/renaming2.ads: New test. - * gnat.dg/specs/renaming2_pkg1.ads: New helper. - * gnat.dg/specs/renaming2_pkg2.ads: Likewise. - * gnat.dg/specs/renaming2_pkg3.ads: Likewise. - * gnat.dg/specs/renaming2_pkg4.ad[sb]: Likewise. - -2012-05-06 Eric Botcazou - - * gnat.dg/discr36.ad[sb]: New test. - * gnat.dg/discr36_pkg.ad[sb]: New helper. - -2012-05-05 Manuel LÁpez-IbÁÁez - - PR c/43772 - * c-c++-common/pr43772.c: New. - -2012-05-05 Paul Thomas - - PR fortran/41600 - * gfortran.dg/select_type_26.f03 : New test. - * gfortran.dg/select_type_27.f03 : New test. - - PR fortran/53191 - * gfortran.dg/select_type_28.f03 : New test. - -2012-05-05 Janne Blomqvist - - PR fortran/49010 - PR fortran/24518 - * gfortran.dg/mod_sign0_1.f90: New test. - * gfortran.dg/mod_large_1.f90: New test. - -2012-05-04 Tobias Burnus - - PR fortran/53175 - gfortran.dg/public_private_module_5.f90: New. - -2012-05-04 Tobias Burnus - - PR fortran/53111 - * gfortran.dg/constructor_7.f90: New. - * gfortran.dg/constructor_8.f90: New. - -2012-05-04 Paolo Carlini - - PR c++/53166 - * g++.dg/cpp0x/static_assert7.C: New. - -2012-05-04 Ulrich Weigand - - PR tree-optimization/52633 - * gcc.dg/vect/vect-over-widen-1.c: Two patterns should now be - recognized as widening shifts instead of over-widening. - * gcc.dg/vect/vect-over-widen-1-big-array.c: Likewise. - * gcc.dg/vect/vect-over-widen-4.c: Likewise. - * gcc.dg/vect/vect-over-widen-4-big-array.c: Likewise. - * gcc.target/arm/pr52633.c: New test. - -2012-05-04 Richard Guenther - - PR tree-optimization/53168 - * gcc.dg/torture/pr53168.c: New testcase. - * gcc.dg/tree-ssa/ssa-pre-30.c: Likewise. - -2012-05-04 Richard Guenther - - * gcc.dg/lto/pr53214_0.c: New testcase. - -2012-05-04 Eric Botcazou - - * gcc.target/ia64/pr48496.c: New test. - * gcc.target/ia64/pr52657.c: Likewise. - -2012-05-04 Manuel LÁpez-IbÁÁez - - PR c/51712 - * c-c++-common/pr51712.c: New. - -2012-05-03 Michael Meissner - - PR target/53199 - * gcc.target/powwerpc/pr53199.c: New file. - -2012-05-03 Jason Merrill - - * g++.dg/debug/dwarf2/nested-3.C: Adjust pattern. - - * gcc.dg/debug/dwarf2/dups-types.c: New. - * gcc.dg/debug/dwarf2/dups-types.h: New. - -2012-05-03 Jason Merrill - - * g++.dg/debug/dwarf2/namespace-2.C: New. - * g++.dg/debug/dwarf2/localclass3.C: New. - -2012-05-03 Jason Merrill - - * g++.dg/debug/dwarf2/thunk1.C: New. - -2012-05-03 Paolo Carlini - - PR c++/53186 - * g++.dg/other/final2.C: New. - -2012-05-03 Richard Guenther - - * gcc.dg/tree-ssa/ssa-pre-27.c: Remove XFAIL. - -2012-05-03 Uros Bizjak - - * gcc.target/i386/hle-cmpxchg-acq-1.c (dg-options): Add -march=x86-64. - * gcc.target/i386/hle-xadd-acq-1.c (dg-options): Ditto. - * gcc.target/i386/hle-cmpxchg-rel-1.c (dg-options): Ditto. - * gcc.target/i386/hle-xadd-rel-1.c (dg-options): Ditto. - -2012-05-03 Jakub Jelinek - - * gcc.target/i386/hle-xadd-rel-1.c: Match .byte 0xf3 instead of - .byte 0xf2. - * gcc.target/i386/hle-sub-rel-1.c: Likewise. - * gcc.target/i386/hle-xchg-rel-1.c: Likewise. - * gcc.target/i386/hle-add-rel-1.c: Likewise. - - PR debug/53174 - * gcc.dg/pr53174.c: New test. - - PR target/53187 - * gcc.target/arm/pr53187.c: New test. - * gcc.c-torture/compile/pr53187.c: New test. - -2012-05-03 Richard Guenther - - * gfortran.dg/pr52621.f90: Add -w to avoid diagnostic about - unsupported prefetching support. - -2012-05-03 Greta Yorsh - - * gcc.dg/fixed-point/composite-type.c (dg-options): Add - option -ftrack-macro-expansion=0. - * gcc.dg/fixed-point/operator-bitwise.c (dg-options): Add - option -ftrack-macro-expansion=0. - -2012-05-03 Greta Yorsh - - * gcc.dg/builtin-stringop-chk-1.c (dg-options): Replace - dg-options for target arm with dg-additional-options. - -2012-05-03 Richard Guenther - - PR tree-optimization/53144 - * gcc.dg/torture/pr53144.c: New testcase. - -2012-05-03 Tobias Burnus - - PR fortran/52864 - * gfortran.dg/pointer_intent_7.f90: New. - * gfortran.dg/pure_formal_3.f90: New. - -2012-05-02 Ulrich Weigand - - * gcc.target/s390/20030123-1.c: Add missing "volatile". - -2012-05-02 Martin Jambor - - PR lto/52605 - * g++.dg/lto/pr52605_0.C: New test. - -2012-05-02 Kirill Yukhin - - * gcc.target/i386/hle-cmpxchg-acq-1.c: New. - * gcc.target/i386/hle-cmpxchg-rel-1.c: Ditto. - * gcc.target/i386/hle-add-acq-1.c: Ditto. - * gcc.target/i386/hle-add-rel-1.c: Ditto. - * gcc.target/i386/hle-and-acq-1.c: Ditto. - * gcc.target/i386/hle-and-rel-1.c: Ditto. - * gcc.target/i386/hle-or-acq-1.c: Ditto. - * gcc.target/i386/hle-or-rel-1.c: Ditto. - * gcc.target/i386/hle-sub-acq-1.c: Ditto. - * gcc.target/i386/hle-sub-rel-1.c: Ditto. - * gcc.target/i386/hle-xadd-acq-1.c: Ditto. - * gcc.target/i386/hle-xadd-rel-1.c: Ditto. - * gcc.target/i386/hle-xchg-acq-1.c: Ditto. - * gcc.target/i386/hle-xchg-rel-1.c: Ditto. - * gcc.target/i386/hle-xor-acq-1.c: Ditto. - * gcc.target/i386/hle-xor-rel-1.c: Ditto. - -2012-05-02 Steven Bosscher - - PR middle-end/53153 - * gcc.dg/pr53153.c: New test. - -2012-05-02 Richard Guenther - - * g++.dg/tree-ssa/pr19807.C: Adjust. - -2012-05-02 Jakub Jelinek - - PR tree-optimization/53163 - * gcc.c-torture/compile/pr53163.c: New test. - - PR rtl-optimization/53160 - * gcc.c-torture/execute/pr53160.c: New test. - -2012-05-01 Ian Lance Taylor - - PR c/37303 - * gcc.dg/pr37303.c: New test. - -2012-05-01 Richard Henderson - - * lib/target-supports.exp - (check_effective_target_sync_long_long_runtime): True for - check_effective_target_powerpc64. - -2012-04-30 Marc Glisse - - PR c++/51033 - * gcc.dg/vector-1.c: Move to ... - * c-c++-common/vector-1.c: ... here. - * gcc.dg/vector-2.c: Move to ... - * c-c++-common/vector-2.c: ... here. - * gcc.dg/vector-3.c: Move to ... - * c-c++-common/vector-3.c: ... here. Adapt to C++. - * gcc.dg/vector-4.c: Move to ... - * c-c++-common/vector-4.c: ... here. - * gcc.dg/vector-init-1.c: Move to ... - * c-c++-common/vector-init-1.c: ... here. - * gcc.dg/vector-init-2.c: Move to ... - * c-c++-common/vector-init-2.c: ... here. - * gcc.dg/vector-subscript-1.c: Move to ... Adapt to C++. - * c-c++-common/vector-subscript-1.c: ... here. - * gcc.dg/vector-subscript-2.c: Move to ... - * c-c++-common/vector-subscript-2.c: ... here. - * gcc.dg/vector-subscript-3.c: Move to ... - * c-c++-common/vector-subscript-3.c: ... here. - - PR c++/51314 - * g++.dg/cpp0x/vt-51314.C: New test. - * g++.dg/cpp0x/variadic76.C: Fix. - -2012-04-30 Greta Yorsh - - * gcc.dg/pr52283.c: Add missing dg-warning and dg-options. - -2012-04-30 Dodji Seketeli - - Add -Wvarargs option - * c-c++-common/Wvarargs.c: New test case. - * c-c++-common/Wvarargs-2.c: Likewise. - -2012-04-30 Dodji Seketeli - - Adjust relevant test cases wrt -ftrack-macro-expansion=[0|2] - * objc.dg/foreach-7.m: Force the test case to run without - -ftrack-macro-expansion. - * c-c++-common/tm/attrib-1.c: Likewise. - * c-c++-common/warn-ommitted-condop.c: Likewise. - * gcc.dg/assign-warn-1.c: Likewise. - * gcc.dg/assign-warn-2.c: Likewise. - * gcc.dg/attr-alloc_size.c: Likewise. - * gcc.dg/builtin-stringop-chk-1.c: Likewise. - * gcc.dg/builtin-stringop-chk-2.c: Likewise. - * gcc.dg/builtin-strncat-chk-1.c: Likewise. - * gcc.dg/c90-const-expr-9.c: Likewise. - * gcc.dg/c99-const-expr-9.c: Likewise. - * gcc.dg/cpp/direct2.c: Likewise. Adjust. - * gcc.dg/cpp/direct2s.c: Likewise. - * gcc.dg/cpp/pr28709.c: Likewise. - * gcc.dg/cpp/pragma-diagnostic-1.c: Likewise. - * gcc.dg/dfp/composite-type.c: Likewise. - * gcc.dg/uninit-6-O0.c: Adjust the test case and force it to run - with -ftrack-macro-expansion - * g++.dg/cpp0x/constexpr-ex3.C: Likewise. - * g++.dg/cpp0x/constexpr-overflow.C: Likewise. - * g++.dg/ext/cleanup-1.C: Likewise. - * g++.dg/ext/gnu-inline-global-reject.C: Likewise. - * g++.dg/template/sfinae10.C: Likewise. - * g++.dg/tm/wrap-2.C: Likewise. - * g++.dg/warn/Wconversion-real-integer.C: Likewise. - * g++.dg/warn/Wsign-conversion.C: Likewise. - * g++.dg/warn/multiple-overflow-warn-1.C: Likewise. - * g++.old-deja/g++.mike/p10769b.C: Likewise. - * g++.dg/warn/Wdouble-promotion.C: Adjust the test case and force - it to run with -ftrack-macro-expansion. - * libstdc++-v3/scripts/testsuite_flags.in: By default, run the - test cases without -ftrack-macro-expansion. - - Fix location for static class members - * g++.dg/template/sfinae6_neg.C: Adjust. - - Make conversion warnings work on NULL with -ftrack-macro-expansion - * g++.dg/warn/Wconversion-null-2.C: Add testing for __null, - alongside the previous testing for NULL. - - Fix -Wuninitialized for -ftrack-macro-expansion - * gcc.dg/cpp/pragma-diagnostic-2.c: Fix this. - - Strip "" loc from displayed expansion context - * g++.dg/warn/Wconversion-real-integer2.C: New test. - * g++.dg/warn/Wconversion-real-integer-3.C: Likewise. - * g++.dg/warn/conversion-real-integer-3.h: New header used by the - new test above. - - Fix expansion point loc for macro-like tokens - * gcc.dg/debug/dwarf2/pr41445-5.c: Adjust. - * gcc.dg/debug/dwarf2/pr41445-6.c: Likewise. - - Fix token pasting with -ftrack-macro-expansion - * gcc.dg/cpp/paste17.c: New test case for - -ftrack-macro-expansion=2 mode only. - * gcc.dg/cpp/macro-exp-tracking-5.c: Likewise. - -2012-04-30 Eric Botcazou - - * gnat.dg/warn6.ad[sb]: New test. - -2012-04-29 Manuel LÁpez-IbÁÁez - - PR 53149 - * gcc.dg/20011021-1.c: Adjust testcase. - -2012-04-29 Thomas Koenig - - PR fortran/53148 - * gfortran.dg/function_optimize_12.f90: New test. - -2012-04-29 Hans-Peter Nilsson - - PR target/53156 - * gcc.target/cris/peep2-andu2.c: Tweak expected assembly - code to match current output and cover new peephole2 pattern. - -2012-04-27 Ollie Wild - - * g++.dg/cpp0x/Wliteral-suffix.c: New test. - -2012-04-27 Paolo Bonzini - - * gcc.c-torture/execute/20120427-2.c: New testcase. - * gcc.dg/tree-ssa/phi-opt-10.c: New testcase. - * gcc.dg/tree-ssa/ssa-pre-28.c: Bypass new optimization. - * gcc.dg/tree-ssa/ssa-ifcombine-7.c: Look into ifcombine dump. - -2012-04-27 Paolo Bonzini - - PR target/53138 - * gcc.c-torture/execute/20120427-1.c: New testcase. - -2012-04-27 Marc Glisse - - PR middle-end/27139 - * gcc.dg/tree-ssa/forwprop-18.c: New test. - -2012-04-27 Tom de Vries - - PR tree-optimization/51879 - * gcc.dg/pr51879.c: New test. - * gcc.dg/pr51879-2.c: Same. - * gcc.dg/pr51879-3.c: Same. - * gcc.dg/pr51879-4.c: Same. - * gcc.dg/pr51879-6.c: Same. - -2012-04-26 Paolo Carlini - - PR c++/53096 - * g++.dg/cpp0x/defaulted35.C: New. - * g++.dg/cpp0x/defaulted15.C: Adjust. - -2012-04-26 Janis Johnson - - * gcc.dg/bf-ms-layout.c: Adjust offsets to fit ms-bitfield - structure layout. - -2012-04-25 Sriraman Tallam - - * gcc.target/i386/builtin_target.c: Check avx2. - -2012-04-26 Alan Modra - - * gcc.target/powerpc/savres.c: New test. - * gcc.target/powerpc/powerpc.exp: Run it. - -2012-04-26 Hans-Peter Nilsson - - PR target/53120 - * gcc.dg/torture/pr53120.c: New test. - -2012-04-25 Jakub Jelinek - - PR middle-end/52979 - * gcc.c-torture/compile/pr52979-1.c: New test. - * gcc.c-torture/execute/pr52979-1.c: New test. - * gcc.c-torture/execute/pr52979-2.c: New test. - -2012-04-25 Richard Guenther - - * gcc.target/i386/l_fma_float_5.c: Adjust. - * gcc.target/i386/l_fma_double_4.c: Likewise. - * gcc.target/i386/l_fma_float_2.c: Likewise. - * gcc.target/i386/l_fma_float_6.c: Likewise. - * gcc.target/i386/l_fma_double_1.c: Likewise. - * gcc.target/i386/l_fma_double_5.c: Likewise. - * gcc.target/i386/l_fma_float_3.c: Likewise. - * gcc.target/i386/l_fma_double_2.c: Likewise. - * gcc.target/i386/l_fma_double_6.c: Likewise. - * gcc.target/i386/l_fma_float_4.c: Likewise. - * gcc.target/i386/l_fma_double_3.c: Likewise. - * gcc.target/i386/l_fma_float_1.c: Likewise. - -2012-04-25 Jakub Jelinek - - PR tree-optimization/53058 - * gcc.c-torture/compile/pr53058.c: New test. - -2012-04-25 Jan Hubicka - - PR middle-end/53088 - * gcc.target/i386/pr39082-1.c: Update warning location. - -2012-04-25 Jakub Jelinek - - PR c/52880 - * gcc.dg/pr52880.c: New test. - -2012-04-25 Manuel LÁpez-IbÁÁez - - * gcc.dg/m-un-2.c: Update. - * gcc.dg/20011021-1.c: Update. - -2012-04-25 Tobias Burnus - - PR fortran/52196 - * gfortran.dg/realloc_on_assign_14.f90: New. - -2012-04-24 Georg-Johann Lay - - PR testsuite/52641 - PR tree-optimizations/52891 - * gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int. - -2012-04-24 Paolo Carlini - - PR c++/52363 - * g++.dg/cpp0x/sfinae35.C: New. - * g++.dg/cpp0x/sfinae36.C: Likewise. - -2012-04-24 Sriraman Tallam - - * gcc.target/builtin_target.c: New testcase. - -2012-04-24 Bill Schmidt - - PR target/47197 - * gcc.target/powerpc/pr47197.c: New test. - -2012-04-24 Richard Guenther - - PR tree-optimization/53085 - * g++.dg/torture/pr53085.C: New testcase. - -2012-04-24 Andrew Pinski - - PR tree-opt/33512 - * gcc.dg/tree-ssa/andor-3.c: New testcase. - * gcc.dg/tree-ssa/andor-4.c: New testcase. - * gcc.dg/tree-ssa/andor-5.c: New testcase. - -2012-04-24 Jakub Jelinek - - PR middle-end/53084 - * gcc.c-torture/execute/pr53084.c: New test. - -2012-04-23 Paolo Carlini - - * g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes. - -2012-04-23 Andrew Pinski - - * gcc.dg/tree-ssa/forwprop-17.c: New testcase. - -2012-04-23 Bill Schmidt - - PR regression/53076 - * gcc.dg/torture/builtin-explog-1.c: Skip if -O0. - * gcc.dg/torture/builtin-power-1.c: Likewise. - -2012-04-23 Richard Guenther - - PR tree-optimization/53070 - * gcc.dg/torture/pr53070.c: New testcase. - -2012-04-23 Richard Guenther - - PR c/53060 - * gcc.dg/pr53060.c: New testcase. - -2012-04-23 Jakub Jelinek - - PR tree-optimizations/52891 - * gcc.c-torture/compile/pr52891-1.c: New test. - * gcc.c-torture/compile/pr52891-2.c: New test. - -2012-04-22 Tobias Burnus - - PR fortran/53051 - * gfortran.dg/read_float_4.f90: New. - -2012-04-21 Manuel LÁpez-IbÁÁez - - PR 35441 - * c-c++-common/pr35441.C: New. - -2012-04-20 Ian Lance Taylor - - * go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*. - (go-gc-tests): Skip nilptr.go on powerpc*-*-*. - -2012-04-20 Uros Bizjak - - * gcc.target/x86_64/abi/avx/test_passing_unions.c: Avoid undefined - array access. - * gcc.target/x86_64/abi/avx/test_passing_structs.c: Likewise. - -2012-04-20 Bill Schmidt - - PR rtl-optimization/44214 - * gcc.dg/pr44214-1.c: New test. - * gcc.dg/pr44214-2.c: Likewise. - * gcc.dg/pr44214-3.c: Likewise. - -2012-04-20 Richard Guenther - - * g++.dg/torture/20120420-1.C: New testcase. - -2012-04-19 Steven Bosscher - - * gcc.target/i386/pr45830.c: Update scan-tree-dump. - -2012-04-19 Christian Bruel - - * gcc.dg/pr52283.c: New test. - -2012-04-19 Manuel LÁpez-IbÁÁez - - * gcc.dg/pr37985.c: New test. - -2012-04-19 Richard Guenther - - PR rtl-optimization/44688 - * gcc.dg/var-expand1.c: Increase array size to make unrolling - possibly profitable. - -2012-04-18 Bill Schmidt - - PR tree-optimization/52976 - * gfortran.dg/reassoc_11.f: New test. - -2012-04-18 Bill Schmidt - - PR tree-optimization/52976 - * gfortran.dg/reassoc_7.f: New test. - * gfortran.dg/reassoc_8.f: Likewise. - * gfortran.dg/reassoc_9.f: Likewise. - * gfortran.dg/reassoc_10.f: Likewise. - -2012-04-18 Paolo Carlini - - PR c++/52422 - * g++.dg/cpp0x/sfinae33.C: New. - * g++.dg/cpp0x/sfinae34.C: Likewise. - -2012-04-18 Joey Ye - - * gcc.target/arm/thumb1-imm.c: Skip it in non-thumb1 target. - -2012-04-18 Richard Guenther - - * gcc.target/x86_64/abi/test_passing_unions.c: Avoid undefined - array access. - * gcc.target/x86_64/abi/test_passing_structs.c: Likewise. - * gcc.target/i386/avx256-unaligned-load-4.c: Fix array sizes. - -2012-04-17 Tom de Vries - - * g++.dg/pr51264-4.C: New test. - -2012-04-17 Paolo Carlini - - PR c++/52599 - * g++.dg/cpp0x/constexpr-ctor10.C: New. - -2012-04-17 Paolo Carlini - - PR c++/53003 - * g++.dg/parse/crash59.C: New. - -2012-04-17 Michael Matz - - PR tree-optimization/18437 - * gfortran.dg/vect/rnflow-trs2a2.f90: New test. - -2012-04-17 Richard Guenther - - PR middle-end/53011 - * g++.dg/torture/pr53011.C: New testcase. - -2012-04-16 Jason Merrill - - PR c++/38543 - * g++.dg/cpp0x/variadic131.C: New. - - PR c++/52008 - * g++.dg/cpp0x/variadic130.C: New. - - PR c++/50830 - * g++.dg/cpp0x/variadic129.C: New. - - PR c++/50303 - * g++.dg/cpp0x/variadic128.C: New. - -2012-04-16 Tobias Burnus - - PR fortran/52864 - * gfortran.dg/pointer_intent_6.f90: New. - -2012-04-16 Tobias Burnus - - PR fortran/52916 - * gfortran.dg/public_private_module_3.f90: Use dg-additional-sources - to include public_private_module_4.f90. - * gfortran.dg/public_private_module_4.f90: Skip this test on all - targets. - -2012-04-16 Paolo Carlini - - PR c++/49152 - * g++.dg/diagnostic/operator1.C: New. - * g++.dg/ext/label5.C: Adjust. - * g++.dg/ext/va-arg1.C: Likewise. - * g++.dg/other/error20.C: Likewise. - * g++.dg/other/error20.C: Likewise. - * g++.dg/other/error16.C: Likewise. - * g++.dg/other/error10.C: Likewise. - * g++.dg/parse/error30.C: Likewise. - * g++.dg/cpp0x/lambda/lambda-err1.C: Likewise. - -2012-04-16 Jason Merrill - - PR c++/51148 - * g++.dg/cpp0x/variadic127.C: New. - -2012-04-16 Rainer Orth - - * lib/plugin-support.exp (plugin-test-execute): Properly determine - testcase name. - Use fail, pass instead of unresolved. - Don't log $optstr. - - PR testsuite/52948 - * g++.dg/plugin/dumb_plugin.c (pass_dumb_plugin_example): Remove - TODO_dump_func. - * g++.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise. - * gcc.dg/plugin/one_time_plugin.c (one_pass): Likewise. - * gcc.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise. - -2012-04-16 Janus Weil - - PR fortran/52968 - * gfortran.dg/typebound_call_23.f03: New test case. - -2012-04-15 Jason Merrill - - PR c++/47220 - * g++.dg/cpp0x/variadic126.C: New. - - PR c++/52380 - * g++.dg/cpp0x/variadic125.C: New. - - PR c++/52292 - * g++.dg/cpp0x/variadic124.C: New. - - PR c++/52706 - * g++.dg/cpp0x/nullptr27.C: New. - - PR c++/52818 - * g++.dg/warn/format8.C: New. - -2012-04-15 Janus Weil - - PR fortran/51082 - * gfortran.dg/proc_ptr_comp_34.f90: New test case. - -2012-04-14 Tobias Burnus - - PR fortran/52916 - PR fortran/40973 - * gfortran.dg/public_private_module_3.f90: New. - * gfortran.dg/public_private_module_4.f90: New. - -2012-04-14 Tom de Vries - - * gcc.dg/superblock.c: New test. - -2012-04-14 Tom de Vries - - * gcc.dg/pr51879-12.c: New test. - -2012-04-13 Jason Merrill - - PR c++/52824 - * g++.dg/cpp0x/variadic123.C: New. - * g++.dg/cpp0x/alias-decl-15.C: Remove dg-errors. - - PR c++/52905 - * g++.dg/cpp0x/initlist-ctor1.C: New. - - PR c++/52915 - * g++.dg/other/anon-union2.C: New. - -2012-04-13 Martin Jambor - - PR middle-end/52939 - * g++.dg/ipa/pr52939.C: New test. - -2012-04-13 Tom de Vries - - * gcc.dg/pr52734.c: New test. - -2012-04-13 Richard Guenther - - PR tree-optimization/52969 - * gcc.dg/torture/pr52969.c: New testcase. - -2012-04-13 Richard Guenther - - PR c/52549 - * gcc.dg/pr52549.c: New testcase. - -2012-04-13 Richard Guenther - - PR c/52862 - * gcc.dg/pr52862.c: New testcase. - -2012-04-13 Joey Ye - - * gcc.target/arm/thumb1-imm.c: New testcase. - -2012-04-12 Uros Bizjak - - PR target/52932 - * gcc.target/i386/avx2-vpermps-1.c (avx2_test): Use __m256i type for - second function argument. - * gcc.target/i386/avx2-vpermps-2.c (init_permps): Update declaration. - (calc_permps): Update declaration. Calculate result correctly. - (avx2_test): Change src2 type to union256i_d. - * gcc.target/i386/avx2-vpermd-2.c (calc_permd): Calculate result - correctly. - -2012-04-12 Michael Meissner - - PR target/52775 - * gcc.target/powerpc/pr52775.c: New file. - -2012-04-12 Bill Schmidt - - PR tree-optimization/18589 - * gcc.dg/tree-ssa/pr18589-1.c: New test. - * gcc.dg/tree-ssa/pr18589-2.c: Likewise. - * gcc.dg/tree-ssa/pr18589-3.c: Likewise. - * gcc.dg/tree-ssa/pr18589-4.c: Likewise. - * gcc.dg/tree-ssa/pr18589-5.c: Likewise. - * gcc.dg/tree-ssa/pr18589-6.c: Likewise. - * gcc.dg/tree-ssa/pr18589-7.c: Likewise. - * gcc.dg/tree-ssa/pr18589-8.c: Likewise. - * gcc.dg/tree-ssa/pr18589-9.c: Likewise. - * gcc.dg/tree-ssa/pr18589-10.c: Likewise. - -2012-04-12 Richard Guenther - - PR tree-optimization/52943 - * gcc.dg/torture/pr52943.c: New testcase. - -2012-04-12 Oleg Endo - - PR target/50751 - * gcc/target/sh/pr50751-4.c: New. - * gcc/target/sh/pr50751-5.c: New. - * gcc/target/sh/pr50751-6.c: New. - * gcc/target/sh/pr50751-7.c: New. - -2012-04-11 Fabien ChÁne - - PR c++/52465 - * g++.dg/lookup/using52.C: New. - -2012-04-11 Manuel LÁpez-IbÁÁez - - * lib/prune.exp (TEST_ALWAYS_FLAGS): If undefined, set to empty. - -2012-04-11 H.J. Lu - - PR rtl-optimization/52876 - * gcc.target/i386/pr52876.c: New. - -2012-04-11 Bernd Schmidt - - * gcc.dg/c99-const-expr-9.c (old_offsetof): Insert a cast to - __UINTPTR_TYPE__. - * gcc.c-torture/execute/pr15296.c (intptr_t): Likewise, with - __INTPTR_TYPE__. - * gcc.dg/pr14092-1.c (intptr_t): Likewise. - * gcc.dg/tree-ssa/foldcast-1.c (ssize_t): Likewise. - * gcc.dg/c90-const-expr-6.c (intptr_t): New typedef to replace ... - (ptrdiff_t): ... this. All uses changed. - * gcc.dg/c99-const-expr-6.c (intptr_t, ptrdiff_t): Likewise. - * gcc.dg/torture/pta-escape-1.c (foo): Change arg type to - __INTPTR_TYPE__. - (main): Cast argument to __INTPTR_TYPE__. - * gcc.dg/20041106-1.c (main): Cast to __UINTPTR_TYPE__ rather than - size_t. - * gcc.dg/mallign.c (main): Likewise. - * gcc.dg/pr38700.c (foo): Likewise. - * gcc.dg/long-long-cst1.c (t): Likewise. - * gcc.dg/c99-const-expr-10.c (p, q, f, h, h2): Likewise. - * gcc.dg/array-10.c (c0, c1, c2, c3, c4, c5): Likewise. - * gcc.dg/pointer-arith-10.c (foo): Likewise. - * gcc.dg/pr25682.c (d, foo): Likewise. - * gcc.dg/format/cast-1.c (f): Likewise. - * gcc.dg/c90-const-expr-10.c - * gcc.dg/pr41551.c (uintptr_t): New typedef, replacing... - (size_t): ...this. All uses changed. - * gcc.c-torture/execute/pr22098-1.c (uintptr_t): Likewise. - * gcc.c-torture/execute/pr22098-2.c (uintptr_t): Likewise. - * gcc.c-torture/execute/pr22098-3.c (uintptr_t): Likewise. - * gcc.dg/pr34856.c (uintptr_t): Likewise. - * gcc.dg/sequence-pt-1.c: Likewise. - * gcc.dg/c90-const-expr-9.c (uintptr_t): Likewise. - * gcc.dg/max-1.c (intptr_t): Likewise, replacing ssize_t. - * gcc.dg/pr39074.c (intptr_t): Define using __INTPTR_TYPE__. - * gcc.dg/pr30744-1.c (my_intptr_t): New typedef. Replace all uses - of ptrdiff_t with it. - * gcc.dg/inline-23.c (my_intptr_t): Likewise. - * gcc.dg/pr37561.c (p): Use __INTPTR_TYPE__. - * gcc.dg/vla-11.c (foo11b): Use __UINTPTR_TYPE__. - -2012-04-11 Jason Merrill - - PR debug/45088 - * g++.dg/debug/dwarf2/self-ref-1.C: Define virtual destructor. - * g++.dg/debug/dwarf2/self-ref-1.C: Likewise. - - PR c++/52906 - * g++.dg/ext/attrib45.C: New. - - * g++.dg/eh/dtor3.C: New. - -2012-04-11 Richard Guenther - - PR middle-end/52621 - * gfortran.dg/pr52621.f90: New testcase. - -2012-04-11 Richard Guenther - - PR middle-end/52918 - * g++.dg/torture/pr52918-1.C: New testcase. - * g++.dg/torture/pr52918-2.C: Likewise. - -2012-04-11 Tobias Burnus - - PR fortran/52729 - * gfortran.dg/block_11.f90: New. - -2012-04-11 Nick Clifton - - * gcc.dg/stack-usage-1.c (SIZE): Define for the RL78. - -2012-04-11 Peter Bergner - - PR target/16458 - * gcc.target/powerpc/pr16458-1.c: New test. - * gcc.target/powerpc/pr16458-2.c: Likewise. - * gcc.target/powerpc/pr16458-3.c: Likewise. - * gcc.target/powerpc/pr16458-4.c: Likewise. - -2012-04-11 Eric Botcazou - - * gcc.dg/builtin-bswap-1.c: Test __builtin_bswap16 & __builtin_bswap64. - * gcc.dg/builtin-bswap-4.c: Test __builtin_bswap16. - * gcc.dg/builtin-bswap-5.c: Likewise. - * gcc.target/i386/builtin-bswap-4.c: New test. - -2012-04-11 Manuel LÁpez-IbÁÁez - - PR 24985 - * lib/prune.exp: Add -fno-diagnostics-show-caret. - -2012-04-11 Richard Guenther - - PR rtl-optimization/52881 - * gcc.dg/torture/pr52881.c: New testcase. - * gcc.dg/torture/pr52913.c: Likewise. - -2012-04-11 Richard Guenther - - PR tree-optimization/52912 - * gcc.dg/torture/pr52912.c: New testcase. - -2010-04-10 Michael Matz - - * gcc.dg/vect/vect-outer-1-big-array.c: Adjust. - * gcc.dg/vect/vect-outer-1.c: Adjust. - * gcc.dg/vect/vect-outer-1a-big-array.c: Adjust. - * gcc.dg/vect/vect-outer-1a.c: Adjust. - * gcc.dg/vect/vect-outer-1b-big-array.c: Adjust. - * gcc.dg/vect/vect-outer-1b.c: Adjust. - * gcc.dg/vect/vect-outer-2b.c: Adjust. - * gcc.dg/vect/vect-outer-3b.c: Adjust. - -2012-04-10 Ulrich Weigand - - PR tree-optimization/52870 - * gcc.dg/vect/pr52870.c: New test. - -2012-04-09 Mike Stump - - * g++.dg/cpp0x/udlit-raw-op.C: Don't use CRLF endings. - * gcc.dg/tree-ssa/vrp59.c: Likewise. - * gcc.dg/tree-ssa/vrp60.c: Likewise. - * gnat.dg/aggr11.adb: Likewise. - * gnat.dg/aggr11_pkg.ads: Likewise. - * gnat.dg/aggr15.adb: Likewise. - * gnat.dg/aggr15.ads: Likewise. - * gnat.dg/aggr17.adb: Likewise. - * gnat.dg/aggr18.adb: Likewise. - * gnat.dg/array14.adb: Likewise. - * gnat.dg/array14.ads: Likewise. - * gnat.dg/array14_pkg.ads: Likewise. - * gnat.dg/array19.adb: Likewise. - * gnat.dg/array19.ads: Likewise. - * gnat.dg/discr27.adb: Likewise. - * gnat.dg/discr27.ads: Likewise. - * gnat.dg/discr35.adb: Likewise. - * gnat.dg/discr35.ads: Likewise. - * gnat.dg/discr6.adb: Likewise. - * gnat.dg/discr6_pkg.ads: Likewise. - * gnat.dg/import1.adb: Likewise. - * gnat.dg/import1.ads: Likewise. - * gnat.dg/loop_address2.adb: Likewise. - * gnat.dg/opt7.adb: Likewise. - * gnat.dg/opt7.ads: Likewise. - * gnat.dg/pointer_variable_bounds.adb: Likewise. - * gnat.dg/pointer_variable_bounds.ads: Likewise. - * gnat.dg/rep_clause2.adb: Likewise. - * gnat.dg/rep_clause2.ads: Likewise. - * gnat.dg/slice2.adb: Likewise. - * gnat.dg/slice2.ads: Likewise. - * gnat.dg/slice6.adb: Likewise. - * gnat.dg/slice6_pkg.ads: Likewise. - * gnat.dg/specs/unchecked_union2.ads: Likewise. - * gnat.dg/taft_type2.adb: Likewise. - * gnat.dg/taft_type2.ads: Likewise. - * gnat.dg/taft_type2_pkg.ads: Likewise. - * gnat.dg/volatile10.adb: Likewise. - * gnat.dg/volatile10_pkg.ads: Likewise. - - * gcc.dg/dll-8.c: Remove execute permissions. - * g++.dg/ext/dllexport5.C: Likewise. - -2012-04-09 Jan Hubicka - - PR lto/52722 - PR lto/51765 - PR lto/52634 - * gcc.dg/lto/pr52634_1.c: New testcase. - * gcc.dg/lto/pr52634_0.c: New testcase. - -2012-04-09 Uros Bizjak - - PR target/52883 - * gcc.target/i386/pr52883.c: New testcase. - -2012-04-09 Eric Botcazou - - * lib/target-supports.exp (check_effective_target_sparc_v9): New. - (check_effective_target_sync_long_long): Add SPARC case. - (check_effective_target_sync_long_long_runtime): Likewise. - (check_effective_target_sync_int_long): Adjust SPARC case. - (check_effective_target_sync_char_short): Likewise. - -2012-04-08 Oleg Endo - - * gcc.target/sh/sh2a-prefetch.c: Rename to ... - * gcc.target/sh/prefetch.c: ... this. Enable test case for m4*. - -2012-04-08 Tobias Burnus - - PR fortran/40973 - PR fortran/52751 - * gfortran.dg/public_private_module_2.f90: New. - -2012-04-08 Manuel LÁpez-IbÁÁez - - * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to - directives. - -2012-04-07 Thomas Koenig - - PR fortran/52893 - * gfortran.dg/function_optimize_11.f90: New test. - -2012-04-06 Thomas Koenig - - PR fortran/52668 - * gfortran.dg/use_only_6.f90: New test. - -2012-04-06 Thomas Koenig - - PR fortran/52668 - * gfortran.dg/use_only_6.f90: New test. -2012-04-06 Mike Stump - - PR testsuite/50722 - * gcc.dg/pr49994-3.c: Use -w to squelch non-portable warnings. - -2012-04-05 Jason Merrill - - PR c++/52596 - * g++.dg/template/qualified-id5.C: New. - -2012-04-05 Uros Bizjak - - PR target/52882 - * gcc.target/i386/pr52882.c: New test. - -2012-04-05 Bill Schmidt - Dominique D'Humieures - - PR testsuite/52614 - * gcc.dg/vect/vect.exp: Use -fno-common on all targets. - * gcc.dg/vect/costmodel/ppc/ppc-costmodel-vect.exp: Likewise. - -2012-04-04 Jason Merrill - - PR c++/52845 - * g++.dg/cpp0x/lambda/lambda-warn4.C: New. - -2012-04-03 Jason Merrill - - PR c++/52796 - * g++.dg/cpp0x/variadic-value1.C: New. - -2012-04-03 Eric Botcazou - - * gnat.dg/pack18.adb: New test. - * gnat.dg/pack18_pkg.ads: New helper. - -2012-04-03 Richard Guenther - - PR tree-optimization/52808 - * gcc.dg/pr52808.c: New testcase. - -2012-04-03 Jakub Jelinek - - PR tree-optimization/52835 - * gfortran.dg/pr52835.f90: New test. - -2012-04-03 Eric Botcazou - - * gnat.dg/specs/aggr5.ads: New test. - -2012-04-02 Richard Guenther - - PR tree-optimization/52756 - * gcc.dg/torture/pr52756.c: New testcase. - -2012-04-02 Richard Guenther - - PR middle-end/52803 - * gcc.dg/pr52803.c: New testcase. - -2012-04-02 Dodji Seketeli - - PR c++/40942 - * g++.old-deja/g++.pt/spec40.C: Adjust to take the resolution of - DR 214 in account. - -2012-04-01 Paolo Carlini - - PR c++/50043 - * g++.dg/cpp0x/noexcept17.C: New. - * g++.old-deja/g++.eh/cleanup1.C: Adjust. - * g++.dg/tree-ssa/ehcleanup-1.C: Likewise. - * g++.dg/cpp0x/noexcept01.C: Likewise. - * g++.dg/eh/init-temp1.C: Likewise. - * g++.dg/eh/ctor1.C: Likwise. - -2012-03-31 Eric Botcazou - - * gnat.dg/controlled6.adb: New test. - * gnat.dg/controlled6_pkg.ads: New helper. - * gnat.dg/controlled6_pkg-iterators.ad[sb]: Likewise. - -2012-03-30 Richard Henderson - - PR debug/52727 - * g++.dg/opt/pr52727.C: New testcase. - -2012-03-30 Richard Guenther - - PR tree-optimization/52754 - * gcc.target/i386/pr52754.c: New testcase. - -2012-03-30 Richard Guenther - - PR middle-end/52772 - * g++.dg/torture/pr52772.C: New testcase. - -2012-03-29 Paolo Carlini - - PR c++/52718 - * g++.dg/warn/Wzero-as-null-pointer-constant-5.C: New. - -2012-03-29 Jason Merrill - - PR c++/52685 - * g++.dg/template/inherit8.C: New. - -2012-03-29 Jakub Jelinek - - PR c++/52759 - * g++.dg/ext/weak4.C: New test. - - PR tree-optimization/52760 - * gcc.c-torture/execute/pr52760.c: New test. - -2012-03-29 Jason Merrill - - PR c++/52743 - * g++.dg/cpp0x/initlist-array3.C: New. - -2012-03-28 Jason Merrill - - PR c++/52746 - * g++.dg/overload/virtual2.C: New. - -2012-03-28 Eric Botcazou - - * gnat.dg/vect7.ad[sb]: New test. - -2012-03-28 Paul Thomas - Tobias Burnus - - PR fortran/52652 - * gfortran.dg/allocate_class_1.f90 : Change error test. - * gfortran.dg/allocate_with_typespec_4.f90 : Change error test. - * gfortran.dg/allocate_alloc_opt_1.f90 : Change error test. - * gfortran.dg/deallocate_alloc_opt_1.f90 : Change error test. - -2012-03-28 Jakub Jelinek - - PR middle-end/52691 - * gcc.dg/pr52691.c: New test. - - PR middle-end/52750 - * gcc.c-torture/compile/pr52750.c: New test. - -2012-03-28 Georg-Johann Lay - - PR target/52692 - * gcc.target/avr/torture/builtins-2.c: New test. - -2012-03-28 Jakub Jelinek - - PR target/52736 - * gcc.target/i386/pr52736.c: New test. - -2012-03-27 Martin Jambor - - PR middle-end/52693 - * gcc.dg/torture/pr52693.c: New test. - -2012-03-27 Meador Inge - - PR c++/52672 - * g++.dg/cpp0x/constexpr-52672.C: New testcase. - -2012-03-27 Mike Stump - - PR target/52665 - * gcc.target/i386/pr28946.c: Use -fno-ident to avoid spurious - failures that match branch names. - -2012-03-27 Uros Bizjak - H.J. Lu - - PR target/52698 - * gcc.target/i386/pr52698.c: New test. - -2012-03-27 Richard Guenther - - PR middle-end/52720 - * gcc.dg/torture/pr52720.c: New testcase. - -2012-03-27 Eric Botcazou - - * gnat.dg/pack17.adb: New test. - -2012-03-27 Ramana Radhakrishnan - - * gcc.target/arm/thumb-ifcvt.c: Only run for -mthumb. - * gcc.target/arm/thumb-16bit-ops.c: Likewise. - -2012-03-26 Martin Jambor - - PR tree-optimization/50052 - * gcc.dg/ipa/ipa-sra-2.c: Also run on strict-alignment platforms. - -2012-03-26 Richard Guenther - - PR tree-optimization/52701 - * gfortran.dg/pr52701.f90: New testcase. - -2012-03-26 Ulrich Weigand - - PR tree-optimization/52686 - * gcc.target/arm/pr52686.c: New test. - -2012-03-26 Georg-Johann Lay - - * gcc.target/avr/torture/avr-torture.exp (AVR_TORTURE_OPTIONS): - Add "-Os -flto" to list. - -2012-03-25 Eric Botcazou - - * gnat.dg/concat2.ad[sb]: New test. - -2012-03-24 Jason Merrill - - * g++.dg/cpp0x/auto3.C: Compile with -pedantic-errors. - * g++.dg/cpp0x/trailing2.C: Likewise. - * g++.dg/warn/pr23075.C: Change dg-warning to dg-bogus. - * g++.dg/cpp1y/auto-fn1.C: New. - * g++.dg/cpp1y/auto-fn2.C: New. - * g++.dg/cpp1y/auto-fn3.C: New. - * g++.dg/cpp1y/auto-fn4.C: New. - * g++.dg/cpp1y/auto-fn5.C: New. - * g++.dg/cpp1y/auto-fn6.C: New. - * g++.dg/cpp1y/auto-fn7.C: New. - * g++.dg/cpp1y/auto-fn8.C: New. - * g++.dg/cpp1y/auto-fn9.C: New. - * g++.dg/cpp1y/auto-fn10.C: New. - * g++.dg/cpp1y/auto-fn11.C: New. - -2012-03-23 Richard Guenther - - PR tree-optimization/52678 - * gfortran.dg/pr52678.f: New testcase. - -2012-03-23 Richard Guenther - - PR tree-optimization/52638 - * g++.dg/torture/pr52638.C: New testcase. - -2012-03-22 Paolo Carlini - - PR c++/52487 - * g++.dg/cpp0x/lambda/lambda-ice7.C: New. - -2012-03-22 Jakub Jelinek - - PR c++/52671 - * g++.dg/ext/attrib44.C: New test. - -2012-03-22 Jan Hubicka - - PR middle-end/51737 - * g++.dg/torture/pr51737.C: New testcase - -2012-03-22 Richard Guenther - - PR tree-optimization/52548 - * gcc.dg/tree-ssa/ssa-pre-29.c: New testcase. - -2012-03-22 Bernhard Reutner-Fischer - - * lib/fortran-modules.exp (list-module-names-1): Remove - warning. - -2012-03-21 Oleg Endo - - PR target/50751 - * gcc.target/sh/pr50751-1.c: New. - * gcc.target/sh/pr50751-2.c: New. - * gcc.target/sh/pr50751-3.c: New. - -2012-03-21 Oleg Endo - - PR target/52479 - * gcc.target/sh/sh4a-cos.c: Remove. - * gcc.target/sh/sh4a-sin.c: Remove. - * gcc.target/sh/sh4a-sincos.c: Remove. - -2012-03-21 Richard Earnshaw - - * gcc.target/arm/neon/vgetQ_laneu64.c: Regenerated. - * gcc.target/arm/neon/vgetQ_lanes64.c: Likewise. - -2012-03-21 Martin Jambor - - PR testsuite/52641 - * gcc.dg/misaligned-expand-1.c (cst): Cast to int. - * gcc.dg/misaligned-expand-2.c (cst): Likewise. - -2012-03-21 Andrew Stubbs - - * gcc.target/arm/thumb-16bit-ops.c: New file. - * gcc.target/arm/thumb-ifcvt.c: New file. - -2012-03-20 Jason Merrill - - * lib/target-supports.exp: Add { target c++1y }. - - * g++.dg/cpp0x/auto32.C: New. - -2012-03-20 Georg-Johann Lay - - PR testsuite/52641 - * gcc.dg/torture/pr48124-1.c: Add dg-require-effective-target - int32plus. - * gcc.dg/torture/pr48124-4.c: Ditto: - * gcc.dg/torture/pr52530.c: Use long instead of int if int=16. - -2012-03-20 Jason Merrill - - PR c++/52510 - * g++.dg/cpp0x/initlist66.C: New. - -2012-03-20 Georg-Johann Lay - - * gcc.target/avr/progmem.h (pgm_read_char): Define depending on - __AVR_HAVE_LPMX__ - -2012-03-20 Georg-Johann Lay - - PR target/49868 - * gcc.target/avr/torture/addr-space-2.h: New file. - * gcc.target/avr/torture/addr-space-2-g.h: New test. - * gcc.target/avr/torture/addr-space-2-0.h: New test. - * gcc.target/avr/torture/addr-space-2-1.h: New test. - * gcc.target/avr/torture/addr-space-2-x.h: New test. - -2012-03-20 Richard Guenther - - * gnat.dg/pack16.adb: New testcase. - * gnat.dg/pack16_pkg.ads: Likewise. - * gnat.dg/specs/pack8.ads: Likewise. - * gnat.dg/specs/pack8_pkg.ads: Likewise. - -2012-03-19 Paolo Carlini - - * g++.dg/warn/Wuseless-cast.C: Extend. - -2012-03-19 Paolo Carlini - - PR c++/14710 - * g++.dg/warn/Wuseless-cast.C: New. - -2012-03-17 Janne Blomqvist - - PR libfortran/52608 - * gfortran.dg/pr52608.f90: New test. - -2012-03-17 Tobias Burnus - - PR fortran/52585 - * gfortran.dg/proc_ptr_36.f90: New. - -2012-03-16 Martin Jambor - - * gcc.dg/misaligned-expand-1.c: New test. - * gcc.dg/misaligned-expand-3.c: Likewise. - -2012-03-16 Richard Guenther - Kai Tietz - - PR middle-end/48814 - * gcc.c-torture/execute/pr48814-1.c: New test. - * gcc.c-torture/execute/pr48814-2.c: New test. - * gcc.dg/tree-ssa/assign-1.c: New test. - * gcc.dg/tree-ssa/assign-2.c: New test. - * gcc.dg/tree-ssa/assign-3.c: New test. - -2012-03-16 Richard Guenther - - * gnat.dg/specs/pack7.ads: New testcase. - -2012-03-15 Jakub Jelinek - - PR target/52568 - * gcc.dg/torture/vshuf-4.inc: Add two new tests. - * gcc.dg/torture/vshuf-8.inc: Likewise. - * gcc.dg/torture/vshuf-16.inc: Likewise. - * gcc.dg/torture/vshuf-32.inc: Likewise. - -2012-03-15 Jason Merrill - - * g++.dg/torture/pr52582.C: New. - -2012-03-15 Bernhard Reutner-Fischer - - * lib/fortran-modules.exp: New file which was forgotten in r185430. - -2012-03-15 Ira Rosen - Ulrich Weigand - - * gcc.dg/vect/slp-cond-3.c: New test. - * gcc.dg/vect/slp-cond-4.c: New test. - -2012-03-15 Ira Rosen - Ulrich Weigand - - * gcc.dg/vect/bb-slp-pattern-1.c: New test. - * gcc.dg/vect/bb-slp-pattern-2.c: New test. - -2012-03-15 Janne Blomqvist - - PR libfortran/52434 - PR libfortran/48878 - PR libfortran/38199 - * gfortran.dg/edit_real_1.f90: Don't assume roundTiesToAway. - * gfortran.dg/round_1.f03: Likewise. - -2012-03-15 Jakub Jelinek - Andrew Pinski - - PR middle-end/52592 - * gcc.dg/pr52592.c: New test. - -2012-03-15 Bernhard Reutner-Fischer - - * gfortran.fortran-torture/compile/compile.exp: Simplify. - * gfortran.fortran-torture/execute/execute.exp: Likewise. - * lib/gcc-dg.exp (cleanup-modules): Move to .. - * lib/fortran-modules.exp: .. this new file. Adjust users. - * lib/gfortran-dg.exp (gfortran-dg-runtest, - gfortran-dg-debug-runtest): Call cleanup-modules. - * lib/fortran-torture.exp (fortran-torture-execute, - fortran-torture): Likewise. - * gfortran.dg/coarray/caf.exp: Likewise. - * lib/lto.exp: Likewise. - * gfortran.dg/class_4a.f03: Adjust cleanup-modules and keep-modules. - * gfortran.dg/class_4b.f03: Likewise. - * gfortran.dg/class_4c.f03: Likewise. - * gfortran.dg/class_45a.f03: Likewise. - * gfortran.dg/binding_label_tests_10.f03: Likewise. - * gfortran.dg/binding_label_tests_10_main.f03: Likewise. - * gfortran.dg/binding_label_tests_11.f03: Likewise. - * gfortran.dg/binding_label_tests_11_main.f03: Likewise. - * gfortran.dg/binding_label_tests_13.f03: Likewise. - * gfortran.dg/binding_label_tests_13_main.f03: Likewise. - * gfortran.dg/test_common_binding_labels_2.f03: Likewise. - * gfortran.dg/test_common_binding_labels_2_main.f03: Likewise. - * gfortran.dg/test_common_binding_labels_3.f03: Likewise. - * gfortran.dg/test_common_binding_labels_3_main.f03: Likewise. - * gfortran.dg/whole_file_28.f90: Likewise. - * gfortran.dg/whole_file_29.f90: Likewise. - * gfortran.dg/whole_file_30.f90: Likewise. - * gfortran.dg/whole_file_31.f90: Likewise. - -2012-03-15 Jakub Jelinek - - PR tree-optimization/52267 - * gcc.dg/pr52267.c: New test. - * gcc.dg/tree-ssa/vrp65.c: New test. - * gcc.dg/tree-ssa/vrp66.c: New test. - -2012-03-15 Richard Guenther - - PR middle-end/52580 - * gfortran.dg/vect/pr52580.f: New testcase. - -2012-03-15 Oleg Endo - - * gcc.target/sh/fpul-usage-1.c: New. - -2012-03-14 Oleg Endo - - PR target/49468 - * gcc.target/sh/pr49468-si.c: Make dg-skip-if not the first directive. - * gcc.target/sh/pr49468-di.c: Likewise. - -2012-03-14 Rainer Orth - - * g++.dg/warn/miss-format-1.C: Remove *-*-solaris2.8 handling. - * gcc.dg/c99-stdint-6.c: Likewise. - * gcc.dg/lto/20090210_0.c: Likewise. - * gcc.dg/pr28796-2.c: Don't skip on sparc*-sun-solaris2.8. - * gcc.dg/pragma-init-fini.c: Don't skip on i?86-*-solaris2.8. - * gcc.dg/pragma-init-fini-2.c: Likewise. - * gcc.dg/torture/pr47917.c: Remove *-*-solaris2.8 handling. - * gcc.target/i386/pr22076.c: Remove i?86-*-solaris2.8 handling. - * gcc.target/i386/pr22152.c: Likewise. - * gcc.target/i386/vect8-ret.c: Likewise. - * lib/target-supports.exp (add_options_for_tls): Remove Solaris 8 - handling. - -2012-03-14 Rainer Orth - - * g++.dg/other/anon5.C: Don't skip on mips-sgi-irix*. - * g++.dg/tree-prof/partition1.C: Likewise. - * g++.dg/tree-prof/partition2.C: Likewise. - * g++.old-deja/g++.other/init19.C: Remove mips-sgi-irix* - handling. - * gcc.c-torture/compile/labels-3.c: Remove dg-options. - * gcc.c-torture/execute/20010724-1.c: Remove. - * gcc.c-torture/execute/20010724-1.x: Remove. - * gcc.c-torture/execute/20040208-2.c: Remove. - * gcc.c-torture/execute/20040208-2.x: Remove. - * gcc.c-torture/execute/ieee/20000320-1.c [__mips__ && __sgi__]: - Remove. - (main) [__mips__ && __sgi__]: Remove. - * gcc.c-torture/execute/ieee/copysign1.c: Remove IRIX reference. - * gcc.c-torture/execute/ieee/copysign2.c: Likewise. - * gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: Remove - mips-sgi-irix6* handling. - * gcc.dg/cpp/assert4.c [__mips__]: Remove __sgi__, sgi. - * gcc.dg/torture/20090618-1.c: Don't skip on mips-sgi-irix*. - * gcc.dg/torture/builtin-frexp-1.c: Remove mips*-*-irix6* - handling. - * gcc.dg/torture/builtin-logb-1.c: Likewise. - * gcc.dg/torture/pr47917.c: Remove mips-sgi-irix6.5 handling. - * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Don't skip on mips*-*-irix*. - * gcc.misc-tests/linkage.exp: Remove mips-sgi-irix6* handling. - * gcc.target/mips/args-1.c [!__sgi__]: Remove. - * gcc.target/mips/interrupt_handler-2.c: Don't skip on - mips-sgi-irix6*. - * gcc.target/mips/interrupt_handler-3.c: Likewise. - * gcc.target/mips/save-restore-1.c: Don't skip on mips-sgi-irix6*. - * gcc.target/mips/save-restore-3.c: Likewise. - * gcc.target/mips/save-restore-4.c: Likewise. - * gcc.target/mips/save-restore-5.c: Likewise. - * gfortran.dg/g77/cabs.f: Don't xfail on mips-sgi-irix6*. - * lib/prune.exp (prune_gcc_output): Remove pruning of IRIX 6 ld - messages. - * lib/target-libpath.exp (set_ld_library_path_env_vars): Remove - IRIX 6 handling. - (restore_ld_library_path_env_vars): Likewise. - * lib/target-supports.exp (check_profiling_available): Remove - mips*-*-irix* handling. - (check_ascii_locale_available): Remove mips-sgi-irix* handling. - (add_options_for_c99_runtime): Remove mips-sgi-irix6.5* handling. - * objc.dg/stabs-1.m: Don't xfail on mips-sgi-irix6.5. - -2012-03-14 Jakub Jelinek - - PR c++/52582 - * g++.dg/opt/pr52582.C: New test. - -2012-03-14 Richard Guenther - - PR tree-optimization/52571 - * gcc.dg/vect/vect-2.c: Initialize arrays. - * gcc.dg/vect/no-section-anchors-vect-34.c: Likewise. - * gcc.target/i386/recip-vec-divf.c: Use -fno-common. - * gcc.target/i386/recip-vec-sqrtf.c: Likewise. - -2012-03-14 Richard Guenther - - PR middle-end/52080 - PR middle-end/52097 - PR middle-end/48124 - * gcc.dg/torture/pr48124-1.c: New testcase. - * gcc.dg/torture/pr48124-2.c: Likewise. - * gcc.dg/torture/pr48124-3.c: Likewise. - * gcc.dg/torture/pr48124-4.c: Likewise. - -2012-03-14 Richard Guenther - - PR middle-end/52578 - * gcc.dg/pr52578.c: New testcase. - -2012-03-14 Jakub Jelinek - - PR c++/52521 - * g++.dg/cpp0x/udlit-args2.C: New test. - -2012-03-13 Oleg Endo - - PR target/48596 - * gcc.target/sh/pr48596.c: Move accidentally added new test case to ... - * gcc.c-torture/compile/pr48596.c: ... here. - -2012-01-30 Dodji Seketeli - - PR c++/51641 - * g++.dg/lookup/hidden-class17.C: New test. - -2012-03-13 Jakub Jelinek - - PR c/52577 - * gcc.dg/Wunused-var-3.c: New test. - -2012-03-13 Martin Jambor - - * gcc.dg/misaligned-expand-2.c: New test. - -2012-03-13 Richard Guenther - - PR middle-end/52134 - * gcc.dg/pr52134.c: New testcase. - -2012-03-13 Rainer Orth - - * ada/acats/tests/cd/cdd1001.a (CDD1001): Fix typo. - -2012-03-12 Bill Schmidt - - PR tree-optimization/46728 - * gcc.target/powerpc/pr46728-4.c: Use preferred syntax. - * gcc.target/powerpc/pr46728-5.c: Likewise. - * gcc.target/powerpc/pr46728-8.c: Likewise. - * gcc.target/powerpc/pr46728-10.c: Likewise. - * gcc.target/powerpc/pr46728-11.c: Likewise. - * gcc.target/powerpc/pr46728-13.c: Likewise. - * gcc.target/powerpc/pr46728-14.c: Likewise. - * gcc.target/powerpc/pr46728-15.c: Likewise. - -2012-03-12 Paolo Carlini - - PR c++/52299 - * g++.dg/warn/Wdiv-by-zero-bogus.C: New. - -2012-03-12 Bill Schmidt - - PR tree-optimization/46728 - * gcc.target/powerpc/pr46728-4.c: Skip for powerpc*-*-darwin*. - * gcc.target/powerpc/pr46728-5.c: Likewise. - * gcc.target/powerpc/pr46728-8.c: Likewise. - * gcc.target/powerpc/pr46728-10.c: Likewise. - * gcc.target/powerpc/pr46728-11.c: Likewise. - * gcc.target/powerpc/pr46728-13.c: Likewise. - * gcc.target/powerpc/pr46728-14.c: Likewise. - * gcc.target/powerpc/pr46728-15.c: Likewise. - -2012-03-12 Georg-Johann Lay - - PR target/49868 - * gcc.target/avr/torture/addr-space-1.h: New file. - * gcc.target/avr/torture/addr-space-1-g.h: New test. - * gcc.target/avr/torture/addr-space-1-0.h: New test. - * gcc.target/avr/torture/addr-space-1-1.h: New test. - * gcc.target/avr/torture/addr-space-1-x.h: New test. - -2012-03-12 Andrew Pinski - - * gcc.dg/tree-ssa/phi-opt-7.c: New testcase. - -2012-03-12 Rainer Orth - - * g++.dg/abi/rtti3.C: Remove alpha*-dec-osf* handling. - * g++.dg/abi/thunk4.C: Likewise. - * g++.dg/cdce3.C: Don't skip on*-dec-osf5*. - Adapt line numbers. - * g++.dg/compat/struct-layout-1_generate.c: Remove alpha*-dec-osf* - handling. - * g++.dg/cpp0x/constexpr-rom.C: Likewise. - * g++.dg/eh/spbp.C: Likewise. - * g++.dg/ext/label13.C: Likewise. - * g++.dg/guality/guality.exp: Likewise. - * g++.dg/other/anon5.C: Likewise. - * g++.dg/other/pragma-ep-1.C: Remove. - * g++.dg/warn/miss-format-1.C: Remove alpha*-dec-osf* handling. - * g++.dg/warn/pr31246.C: Likewise. - * g++.dg/warn/weak1.C: Likewise. - * g++.old-deja/g++.eh/badalloc1.C: Likewise. - * g++.old-deja/g++.ext/attrib5.C: Likewise. - * gcc.c-torture/compile/limits-declparen.c: Likewise. - * gcc.c-torture/compile/limits-pointer.c: Likewise. - * gcc.c-torture/execute/20001229-1.c: Remove __osf__ handling. - * gcc.dg/attr-weakref-1.c: Remove alpha*-dec-osf* handling. - * gcc.dg/c99-stdint-6.c: Remove alpha*-dec-osf5* handling. - * gcc.dg/c99-tgmath-1.c: Likewise. - * gcc.dg/c99-tgmath-2.c: Likewise. - * gcc.dg/c99-tgmath-3.c: Likewise. - * gcc.dg/c99-tgmath-4.c: Likewise. - * gcc.dg/compat/struct-layout-1_generate.c: Remove alpha*-dec-osf* - handling. - * gcc.dg/debug/pr49032.c: Likewise. - * gcc.dg/guality/guality.exp: Likewise. - * gcc.dg/intmax_t-1.c: Likewise. - * gcc.dg/pr48616.c: Likewise. - * gcc.dg/pragma-ep-1.c: Remove. - * gcc.dg/pragma-ep-2.c: Remove. - * gcc.dg/pragma-ep-3.c: Remove. - * gcc.dg/torture/pr47917.c: Remove alpha*-dec-osf5* handling. - * gcc.dg/tree-ssa/pr42585.c: Remove alpha*-dec-osf* handling. - * gcc.misc-tests/gcov-14.c: Likewise. - * gfortran.dg/guality/guality.exp: Likewise. - * lib/target-supports.exp (check_weak_available): Likewise. - (add_options_for_tls): Likewise. - (check_ascii_locale_available): Likewise. - * obj-c++.dg/dwarf-2.mm: Likewise. - * objc.dg/dwarf-1.m: Likewise. - * objc.dg/dwarf-2.m: Likewise. - -2012-03-12 Jakub Jelinek - - PR tree-optimization/51721 - * gcc.dg/tree-ssa/vrp64.c: New test. - - PR tree-optimization/52533 - * gcc.c-torture/compile/pr52533.c: New test. - -2012-03-12 Kirill Yukhin - - * gcc.target/i386/rtm-xabort-1.c: New. - * gcc.target/i386/rtm-xbegin-1.c: Ditto. - * gcc.target/i386/rtm-xend-1.c: Ditto. - * gcc.target/i386/rtm-xtest-1.c: Ditto. - * gcc.target/i386/sse-12.c: Test RTM intrinsics. - * gcc.target/i386/sse-13.c: Ditto. - * gcc.target/i386/sse-14.c: Ditto. - * gcc.target/i386/sse-22.c: Ditto. - * gcc.target/i386/sse-23.c: Ditto. - * g++.dg/other/i386-2.C: Ditto. - * g++.dg/other/i386-3.C: Ditto. - -2012-03-12 Tobias Burnus - - PR fortran/52542 - * gfortran.dg/proc_ptr_35.f90: New. - -2012-03-11 Uros Bizjak - - PR target/52530 - * gcc.dg/torture/pr52530.c: New test. - -2012-03-11 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-1.c: Fix thinkos. - -2012-03-10 John David Anglin - - PR target/52450 - * gcc.dg/torture/pr52402.c: Skip execution on 32-bit hppa*-*-hpux*. - - * gcc.dg/torture/pr52407.c: Add -fno-common option on hppa*-*-hpux*. - -2012-03-09 Andrew Pinski - - PR middle-end/51988 - * gcc.dg/tree-ssa/phi-opt-8.c: New testcase. - * gcc.dg/tree-ssa/phi-opt-9.c: New testcase. - -2012-03-09 Jiangning Liu - - * gcc.dg/tree-ssa/scev-3.c: New. - * gcc.dg/tree-ssa/scev-4.c: New. - -2012-03-08 Tobias Burnus - - PR fortran/52469 - * gfortran.dg/proc_ptr_34.f90 - -2012-03-07 Jason Merrill - - PR c++/52521 - * g++.dg/cpp0x/udlit-mangle.C: New. - -2012-03-06 Pat Haugen - - * gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check. - -2012-03-06 Richard Guenther - - PR middle-end/52493 - * gcc.dg/torture/pr52493.c: New testcase. - -2012-03-06 Richard Guenther - - PR lto/52097 - * gcc.dg/lto/pr52097_0.c: New testcase. - -2012-03-06 Oleg Endo - - PR target/51244 - * gcc.target/sh/pr51244-1.c: New. - * gcc.target/sh/pr51244-2.c: New. - * gcc.target/sh/pr51244-3.c: New. - -2012-03-05 Jason Merrill - - PR c++/51930 - * g++.dg/ext/visibility/template11.C: New. - - * g++.dg/cpp0x/implicit13.C: New. - -2012-03-05 Jakub Jelinek - - PR tree-optimization/51721 - * gcc.dg/tree-ssa/vrp63.c: New test. - * gcc.dg/pr51721.c: New test. - -2012-03-04 Mikael Morin - - PR fortran/50981 - * gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual - argument checks. - -2012-03-04 H.J. Lu - - PR target/52146 - * gcc.target/i386/pr52146.c: Update final-scan to allow $-18874240. - -2012-03-04 Mikael Morin - - PR fortran/50981 - * gfortran.dg/elemental_optional_args_5.f03: Add array checks. - -2012-03-04 Georg-Johann Lay - - * gcc.dg/torture/pr52402.c: Add dg-require-effective-target - int32plus. - -2012-03-03 Jason Merrill - - * g++.dg/cpp0x/nsdmi-defer6.C: New. - - Core 1270 - * g++.dg/cpp0x/initlist65.C: New. - - PR c++/36797 - * g++.dg/ext/is_empty2.C: New. - -2012-03-03 Tobias Burnus - - PR fortran/48820 - * gfortran.dg/assumed_type_3.f90: Undo previous commit. - -2012-03-03 Tobias Burnus - - * gfortran.dg/bind_c_dts_4.f03: Add dg-options -Wc-binding-type. - * gfortran.dg/bind_c_implicit_vars.f03: Ditto. - * gfortran.dg/bind_c_usage_8.f03: Ditto. - * gfortran.dg/c_kind_tests_2.f03: Ditto. - * gfortran.dg/class_30.f90: Remove dg-warning line. - * gfortran.dg/bind_c_usage_25.f90: New. - -2012-03-03 Tobias Burnus - - PR fortran/48820 - * gfortran.dg/assumed_type_1.f90: Correct dg-error. - * gfortran.dg/assumed_type_3.f90: Correct dg-error. - * gfortran.dg/assumed_type_4.f90: Correct dg-error. - -2012-03-03 Tobias Burnus - - PR fortran/48820 - * gfortran.dg/assumed_type_1.f90: New. - * gfortran.dg/assumed_type_2.f90: New. - * gfortran.dg/assumed_type_3.f90: New. - * gfortran.dg/assumed_type_4.f90: New. - -2012-03-02 Oleg Endo - - PR target/49486 - * gcc.target/sh/pr49468-si.c: Skip unsupported test for SH64. - * gcc.target/sh/pr49468-di.c: New. - -2012-03-02 Maxim Kuvyrkov - - * gcc.dg/graphite/pr50561.c: Update. - -2012-03-02 Peter Bergner - - * gcc.target/powerpc/pr52457.c: New test. - -2012-03-02 Ulrich Weigand - - * gcc.target/arm/sat-1.c: New test. - -2012-03-02 Uros Bizjak - - PR target/46716 - * gcc.target/i386/pr46716.c: New test. - -2012-03-02 Paolo Carlini - - PR c++/51989 - * g++.dg/cpp0x/sfinae32.C: New. - -2012-03-02 Richard Guenther - - PR tree-optimization/52406 - * gcc.dg/torture/pr52406.c: New testcase. - -2012-03-02 Tobias Burnus - - PR fortran/52325 - * gfortran.dg/derived_comp_array_ref_8.f90: New. - * gfortran.dg/nullify_2.f90: Update dg-error. - * gfortran.dg/nullify_4.f90: Ditto. - * gfortran.dg/pointer_init_6.f90: Ditto. - -2012-03-02 Tobias Burnus - - PR fortran/52270 - * gfortran.dg/class_51.f90: New. - -2012-03-02 Tobias Burnus - - PR fortran/52452 - * gfortran.dg/intrinsic_8.f90: New. - -2012-03-01 Kai Tietz - - * gcc.dg/torture/pr47917.c: Make test using POSIX-printf - routines on mingw targets. - * gcc.dg/vect/pr46126.c (uintptr_t): Add support for LLP64 target. - -2012-03-01 Jakub Jelinek - - PR tree-optimization/52445 - * gcc.dg/pr52445.c: New test. - -2012-02-29 Jakub Jelinek - - PR target/52437 - * gcc.c-torture/compile/pr52437.c: New test. - - PR middle-end/52419 - * gcc.dg/torture/pr52419.c: New test. - - PR tree-optimization/52429 - * gcc.dg/torture/pr52429.c: New test. - * g++.dg/opt/pr52429.C: New test. - -2012-02-29 Richard Guenther - - PR testsuite/52297 - * gcc.dg/lto/trans-mem-1_0.c: Remove. - * gcc.dg/lto/trans-mem-1_1.c: Likewise. - * gcc.dg/lto/trans-mem-2_0.c: Likewise. - * gcc.dg/lto/trans-mem-2_1.c: Likewise. - * gcc.dg/lto/trans-mem-4_0.c: Likewise. - * gcc.dg/lto/trans-mem-4_1.c: Likewise. - -2012-02-29 Jakub Jelinek - - * gcc.dg/torture/pr52402.c: Add -w -Wno-psabi to dg-options. - -2012-02-29 Paul Thomas - - PR fortran/52386 - * gfortran.dg/realloc_on_assign_13.f90 : New test. - -2012-02-28 Matthew Gretton-Dann - - PR target/51534 - * gcc.target/arm/neon/pr51534.c: New testcase. - -2012-02-28 Richard Guenther - - PR target/52407 - * gcc.dg/torture/pr52407.c: New testcase. - -2012-02-28 Ramana Radhakrishnan - - * gcc.target/arm/vfp1.c (dg_do run): Run on all eabi variants. - * gcc.target/arm/vfp2.c: Likewise. - * gcc.target/arm/vfp3.c: Likewise. - * gcc.target/arm/vfp4.c: Likewise. - * gcc.target/arm/vfp5.c: Likewise. - * gcc.target/arm/vfp6.c: Likewise. - * gcc.target/arm/vfp7.c: Likewise. - * gcc.target/arm/vfp8.c: Likewise. - * gcc.target/arm/vfp9.c: Likewise. - * gcc.target/arm/vfp10.c: Likewise. - * gcc.target/arm/vfp11.c: Likewise. - * gcc.target/arm/vfp12.c: Likewise. - * gcc.target/arm/vfp13.c: Likewise. - * gcc.target/arm/vfp14.c: Likewise. - * gcc.target/arm/vfp15.c: Likewise. - * gcc.target/arm/vfp16.c: Likewise. - * gcc.target/arm/vfp17.c: Likewise. - * gcc.target/arm/neon-constants.h: New file. - * gcc.target/arm/neon-vect1.c: New test. - * gcc.target/arm/neon-vect2.c: New test. - * gcc.target/arm/neon-vect3.c: New test. - * gcc.target/arm/neon-vect4.c: New test. - * gcc.target/arm/neon-vect5.c: New test. - * gcc.target/arm/neon-vect6.c: New test. - * gcc.target/arm/neon-vect7.c: New test. - * gcc.target/arm/neon-vect8.c: New test. - -2012-02-28 Richard Guenther - - PR tree-optimization/52402 - * gcc.dg/torture/pr52402.c: New testcase. - -2012-02-28 Richard Guenther - - PR lto/52400 - * g++.dg/lto/pr52400_0.C: New testcase. - -2012-02-28 Georg-Johann Lay - - * gcc.target/avr/torture/builtins-1.c: New test. - * gcc.target/avr/torture/builtins-error.c: New test. - -2012-02-28 Kai Tietz - - * gcc.target/i386/pr46939.c (long): Fix LP64 vs LLP64 issue. - * gcc.target/i386/pr45352-2.c: Likewise. - * gcc.target/i386/bitfield3.c: Add -mno-ms-bitfields for mingw targets. - * gcc.target/i386/xop-vshift-1.c (random): Use on mingw - targets instead rand. - * gcc.target/i386/sse4_1-blendps-2.c: Likewise. - * gcc.target/i386/sse2-mul-1.c: Likewise. - * gcc.target/i386/sse4_1-blendps.c: Likewise. - * gcc.target/i386/pad-6b.c: Adjust test for x64 mingw target. - * gcc.target/i386/pad-1.c: Likewise. - * gcc.target/i386/pad-9.c: Likewise. - * gcc.target/i386/pad-2.c: Likewise. - * gcc.target/i386/pad-5b.c: Likewise. - * gcc.target/i386/pad-8.c: Likewise. - * gcc.target/i386/pr46470.c: Skip for x64 mingw target. - * gcc.target/i386/pr44130.c: Likewise. - * gcc.target/i386/align-main-1.c: Likewise. - * gcc.target/i386/align-main-2.c: Likewise. - * gcc.target/i386/sw-1.c: Likewise. - * gcc.target/i386/avx-vzeroupper-5.c: Add -mabi=sysv - on x64 mingw target. - * gcc.target/i386/avx-vzeroupper-4.c: Likewise. - * gcc.target/i386/pr46295.c: Likewise. - * gcc.target/i386/amd64-abi-1.c: Likewise. - * gcc.target/i386/amd64-abi-2.c: Likewise. - * gcc.target/i386/pr39082-1.c: Likewise. - * gcc.target/i386/pr39162.c: Likewise. - * gcc.target/i386/pr22152.c: Likewise. - * gcc.target/i386/wrgsbase-2.c: Adjust dg-final rule. - * gcc.target/i386/wrfsbase-2.c: Likewise. - * gcc.target/i386/local.c: Likewise - * gcc.target/i386/wrgsbase-1.c: Likewise. - * gcc.target/i386/wrfsbase-1.c: Likewise. - * gcc.target/i386/pr39315-3.c: Likewise. - * gcc.target/i386/pr35767-4.c: Likewise. - * gcc.target/i386/pr45336-3.c (pextrd): Don't check for - x64 mingw target. - * gcc.target/i386/pr45336-2.c: Likewise. - * gcc.target/i386/pr45336-1.c: Likewise. - * gcc.target/i386/pr45336-4.c: Likewise. - -2012-02-27 Tristan Gingold - - * gnat.dg/array20.ad[sb]: New test. - -2012-02-27 Jakub Jelinek - - PR target/52375 - * gcc.target/arm/pr52375.c: New test. - * gcc.c-torture/compile/pr52375.c: New test. - -2012-02-27 Ulrich Weigand - - * gfortran.dg/typebound_operator_9.f03: Skip on SPU. - * gcc.dg/torture/builtin-complex-1.c: Skip "float" tests on SPU. - -2012-02-27 Eric Botcazou - - * gnat.dg/aggr19.adb: New test. - * gnat.dg/aggr19_pkg.ad[sb]: New helper. - -2012-02-26 Oleg Endo - - PR target/49263 - * gcc.target/sh/pr49263.c: New. - -2012-02-24 Andrew MacLeod - - * gcc.dg/simulate-thread/simulate-thread.gdb: Use return value from - simulate_thread_wrapper_other_threads - * gcc.dg/simulate-thread/atomic-load-int128.c (simulate_thread_main): - Move initialization of 'value' to main(). - (main): Initialize 'value'; - * gcc.dg/simulate-thread/speculative-store.c - (simulate_thread_step_verify): Return 0 when successful. - * gcc.dg/simulate-thread/simulate-thread.h (HOSTILE_THREAD_THRESHOLD): - Reduce threshold. - (INSN_COUNT_THRESHOLD): New. Instruction limit to terminate test. - (simulate_thread_wrapper_other_threads): Return a success/fail value - and issue an error if the instruction count threshold is exceeded. - -2012-02-24 Rainer Orth - - PR target/50580 - * gcc.target/mips/interrupt_handler-2.c: Skip on mips-sgi-irix6*. - * gcc.target/mips/interrupt_handler-3.c: Likewise. - -2012-02-24 Richard Guenther - - PR middle-end/52355 - * gcc.dg/pr52355.c: New testcase. - -2012-02-23 Kai Tietz - - * gcc.dg/pack-test-5.c: Add -mno-ms-bitfields option for mingw-targets. - * gcc.dg/Wpadded.c: Likewise. - * gcc.dg/bf-ms-layout-2.c: Adjust offsets to fit ms-bitfield - structure-layout. - * gcc.dg/di-sync-multithread.c: Replace for mingw-target the use - for sleep by Sleep and add windows.h include for this function. - * gcc.dg/format/dfp-printf-1.c: Adjust dg-skip-if rule for mingw - targets. - * gcc.dg/stack-usage-1.c (SIZE): Provide proper SIZE for x64 mingw - target. - * gcc.dg/tls/thr-cse-1.c: Provide proper pattern for x64 mingw target. - * gcc.dg/tls/opt-11.c (memset): Use __extension__ to avoid fail - on x64 mingw target. - * gcc.dg/bf-ms-attrib.c: Adjust expected size for ms_struct layout. - * gcc.dg/pr50251.c: Disable test for x64 mingw target. - * gcc.c-torture/execute/930930-1.c (long): Replace by ptr_t to avoid - failure on LLP64 target. - -2012-02-23 Uros Bizjak - - PR c/52290 - * gcc.dg/noncompile/pr52290.c: New test. - -2012-02-23 Jakub Jelinek - - PR tree-optimization/52019 - * gcc.dg/tree-ssa/ipa-split-6.c: New test. - -2012-02-22 Kai Tietz - - * g++.dg/opt/devirt2.C: Add rule for *-*-mingw* target. - * g++.dg/opt/pr48549.C (long): Replace by long by __PTRDIFF_TYPE__ - derived pdiff_t type. - * g++.dg/torture/pr49720.C: Likewise - -2012-02-22 Uros Bizjak - - PR target/52330 - * gcc.target/i386/pr52330.c: New test. - -2012-02-22 Tobias Burnus - - PR fortran/52335 - * gfortran.dg/io_constraints_10.f90: New. - -2012-02-22 Ulrich Weigand - - * lib/target-supports.exp (check_effective_target_vect_condition): - Return true for NEON. - -2012-02-21 Kai Tietz - - * gcc.dg/bf-ms-layout-3.c: Mark char typed bitfield as extension. - -2012-02-21 Richard Guenther - - PR tree-optimization/52324 - * gcc.dg/tree-ssa/ssa-lim-10.c: New testcase. - -2012-02-21 Georg-Johann Lay - - PR middle-end/51782 - * gcc.target/avr/torture/pr51782-1.c: New test. - -2012-02-21 Jakub Jelinek - - PR tree-optimization/52318 - * gcc.dg/pr52318.c: New test. - -2012-02-20 Kai Tietz - - * gcc.dg/bf-ms-layout-3.c: New testcase. - -2012-02-20 Thomas Koenig - - PR testsuite/52229 - PR fortran/32380 - * gfortran.dg/vect/pr32380.f: XFAIL on PowerPC and ia-64. - -2012-02-20 Richard Guenther - - PR tree-optimization/52298 - * gcc.dg/torture/pr52298.c: New testcase. - * gcc.dg/vect/pr52298.c: Likewise. - -2012-02-20 Georg-Johann Lay - - * gcc.dg/pr52132.c: Fix FAIL on 16-bit int platforms. - * gcc.c-torture/execute/pr52286.c: Ditto. - -2012-02-20 Jakub Jelinek - - PR tree-optimization/52286 - * gcc.c-torture/execute/pr52286.c: New test. - -2012-02-18 Tobias Burnus - - PR fortran/52295 - * gfortran.dg/interface_35.f90: Use -std=f2003. - * gfortran.dg/proc_ptr_comp_20.f90: Remove dg-warning. - * gfortran.dg/interface_assignment_4.f90: Ditto. - * gfortran.dg/bessel_1.f90: Ditto. - * gfortran.dg/func_result_6.f90: Ditto. - * gfortran.dg/hypot_1.f90: Ditto. - * gfortran.dg/proc_ptr_comp_21.f90: Ditto. - -2012-02-17 Tobias Burnus - - PR translation/52232 - PR translation/52234 - PR translation/52245 - PR translation/52246 - PR translation/52262 - PR translation/52273 - * gfortran.dg/coarray_22.f90: Update dg-error. - * gfortran.dg/allocate_alloc_opt_4.f90: Ditto. - -2012-02-17 Rainer Orth - - PR target/51753 - * lib/gcc-simulate-thread.exp: Load timeout.exp. - (simulate-thread): Use default timeout. - -2012-02-16 Jason Merrill - - PR c++/52248 - * g++.dg/ext/timevar1.C: New. - -2012-02-16 Fabien ChÁne - - PR c++/52126 - * g++.dg/template/using21.C: New. - * g++.dg/template/using22.C: Likewise. - -2012-02-16 Jason Merrill - - PR c++/51415 - * g++.dg/cpp0x/lambda/lambda-err1.C: New. - -2012-02-16 Jakub Jelinek - - PR tree-optimization/52255 - * gcc.c-torture/compile/pr52255.c: New test. - - PR debug/52260 - * g++.dg/debug/dwarf2/pr52260.C: New test. - - PR middle-end/51929 - * g++.dg/ipa/pr51929.C: New test. - -2012-02-15 Michael Meissner - - PR target/52199 - * gcc.target/powerpc/pr52199.c: New file. - -2012-02-15 Rainer Orth - - PR target/52152 - * objc.dg/stabs-1.m: xfail on mips-sgi-irix6.5. - -2012-02-15 Rainer Orth - - * gcc.dg/pr51867.c: Don't include . - (sqrtf): Declare. - -2012-02-15 Georg-Johann Lay - - * gcc.dg/lto/20091013-1_1.c: xfail for avr. - * gcc.dg/lto/20091013-1_2.c: xfail for avr. - -2012-02-15 Tobias Grosser - - PR tree-optimization/50561 - * gcc.dg/graphite/pr50561.c: New testcase. - -2012-02-15 Georg-Johann Lay - - * gcc.target/avr/torture/builtin_insert_bits-1.c: New test. - * gcc.target/avr/torture/builtin_insert_bits-2.c: New test. - -2012-02-15 Eric Botcazou - - * gnat.dg/discr35.ad[sb]: New test. - -2012-02-15 Eric Botcazou - - * gnat.dg/volatile10.adb: New test. - * gnat.dg/volatile10_pkg.ads: New helper. - -2012-02-14 Jason Merrill - - * g++.dg/ext/attrib43.C: New. - -2012-02-14 Hans-Peter Nilsson - - * lib/target-supports.exp (check_effective_target_fgnu_tm): New proc. - * gfortran.dg/trans-mem-skel.f90: Gate test on effective_target - fgnu_tm. - * gcc.dg/lto/trans-mem-1_0.c, gcc.dg/lto/trans-mem-2_0.c, - gcc.dg/lto/trans-mem-3_0.c, gcc.dg/lto/trans-mem-4_0.c: Ditto. - * gcc.dg/tm/tm.exp: Gate the whole of gcc.dg/tm on - effective_target fgnu_tm. - * g++.dg/tm/tm.exp: Ditto for g++.dg/tm. - -2012-02-14 Jakub Jelinek - - PR c++/52247 - * g++.dg/template/asmgoto1.C: New test. - -2012-02-14 Ian Lance Taylor - - PR go/48501 - * go.test/go-test.exp (go-gc-tests): Disable optimizations when - compiling generated file for 64bit and index tests. - -2012-02-14 Uros Bizjak - - * gcc.dg/lower-subreg-1.c: Fix and simplify target selector. - -2012-02-14 Richard Guenther - - PR tree-optimization/52244 - PR tree-optimization/51528 - * gcc.dg/torture/pr52244.c: New testcase. - -2012-02-14 Walter Lee - - * g++.dg/other/PR23205.C: Disable test on tile. - * g++.dg/other/pr23205-2.C: Disable test on tile. - * gcc.dg/20020312-2.c: Add a condition for __tile__. - * gcc.dg/20040813-1.c: Disable test on tile. - * gcc.dg/lower-subreg-1.c: Disable test on tilegx. - * gcc.misc-tests/linkage.exp: Handle tilegx. - -2012-02-14 Jakub Jelinek - - PR tree-optimization/52210 - * gcc.dg/pr52210.c: New test. - -2012-02-14 Jason Merrill - - PR c++/39055 - * g++.dg/overload/defarg5.C: New. - -2012-02-14 Jakub Jelinek - - PR c/52181 - * c-c++-common/pr52181.c: New test. - -2012-02-13 Jakub Jelinek - - PR c++/52215 - * g++.dg/ext/atomic-1.C: New test. - -2012-02-13 Andreas Krebbel - - * gcc.c-torture/execute/pr51933.c: Modify for s390 31 bit. - -2012-02-13 Jakub Jelinek - - PR middle-end/52209 - * gcc.c-torture/execute/pr52209.c: New test. - -2012-02-12 Mikael Morin - - PR fortran/50981 - * gfortran.dg/elemental_optional_args_5.f03: New test. - -2012-02-12 Iain Sandoe - - PR testsuite/50076 - * c-c++-common/cxxbitfields-3.c: Adjust scan assembler for nonpic - cases. - -2012-02-11 Ian Lance Taylor - - PR go/51874 - * go.test/go-test.exp (go-gc-tests): Don't run nilptr test on - SPARC Solaris. Don't run the test at all on systems where it may - not work, rather than xfailing it. - -2012-02-11 Richard Sandiford - - PR rtl-optimization/52175 - * gcc.c-torture/compile/pr52175.c: New test. - -2012-02-10 Jason Merrill - - PR c++/51910 - * g++.dg/template/repo10.C: New. - -2012-02-11 Jakub Jelinek - - PR debug/52132 - * gcc.dg/pr52132.c: New test. - -2012-02-10 Eric Botcazou - - * gnat.dg/specs/aggr4.ads: New test. - * gnat.dg/specs/aggr4_pkg.ads: New helper. - -2012-02-10 H.J. Lu - - PR target/52146 - * gcc.target/i386/pr52146.c: New. - -2012-02-10 Jakub Jelinek - - PR middle-end/52177 - * c-c++-common/pr52177.c: New test. - -2012-02-10 Jan Hubicka - - PR middle-end/48600 - * g++.dg/torture/pr48600.C: New testcase. - -2012-02-09 Peter Bergner - - PR middle-end/52140 - * gcc.dg/dfp/pr52140.c: New test. - -2012-02-09 Jakub Jelinek - - PR fortran/32380 - * gfortran.dg/vect/pr32380.f: Use dg-additional-options instead - of dg-options. - -2012-02-09 Bin Cheng - - PR middle-end/51867 - * c-c++-common/dfp/signbit-2.c: Change '-O0' to '-O1'. - * gcc.dg/pr51867.c: New test. - -2012-02-09 Ian Lance Taylor - - * go.test/go-test.exp (go-gc-tests): Don't run stack.go on systems - which don't support -fsplit-stack. Turn off optimization when - compiling select5-out.go. - -2012-02-08 Ian Lance Taylor - - * go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on - systems which don't support -fsplit-stack. - -2012-02-08 Andrew MacLeod - - * gcc.dg/simulate-thread/simulate-thread.exp: Use -O0, -O2, and -O3. - * gcc.dg/simulate-thread/simulate-thread.gdb: Don't display every - machine instuction in the log. - -2012-02-08 Jack Howarth - - * lib/gcc-simulate-thread.exp (simulate-thread): Increase timeout - to 20 seconds. - -2012-02-08 Magnus Granberg - - PR driver/48524 - * gcc.dg/pr48524.c: New test. - * gcc.dg/pr48524.spec: New spec file for test. - -2012-02-08 Thomas Koenig - - PR fortran/32380 - * gfortran.dg/vect/pr32380.f90: New test. - -2012-02-08 Tobias Burnus - - PR fortran/52151 - * gfortran.dg/realloc_on_assign_12.f90: New. - -2012-02-08 Richard Guenther - - PR rtl-optimization/52170 - * gcc.dg/torture/pr52170.c: New testcase. - -2012-02-08 Jakub Jelinek - - PR gcov-profile/52150 - * gcc.dg/tree-prof/pr52150.c: New test. - - PR rtl-optimization/52139 - * gcc.dg/pr52139.c: New test. - -2012-02-07 Jason Merrill - - PR c++/51675 - * g++.dg/cpp0x/constexpr-union3.C: New. - - PR c++/52035 - * g++.dg/lto/pr52035_0.C: New. - -2012-02-07 John David Anglin - - * gfortran.dg/guality/pr41558.f90: Use lp64 instead of hppa*64*-*-*. - * gcc.dg/special/weak-1.c: Likewise. - * gcc.dg/ucnid-12.c: Likewise. - * gcc.dg/torture/pr45678-1.c: Likewise. - * gcc.dg/torture/pr45678-2.c: Likewise. - * gcc.dg/vector-4.c: Likewise. - * gcc.dg/ipa/inline-5.c: Likewise. - * gcc.dg/ucnid-11.c: Likewise. - * gcc.misc-tests/gcov-13.c: Likewise. - * gcc.misc-tests/gcov-14.c: Likewise. - * g++.dg/ext/label13.C: Likewise. - * gcc.dg/tree-ssa/ssa-fre-31.c: Use dg-additional-options for extra - hppa*-*-hpux* options. - * gcc.dg/tree-ssa/ssa-fre-33.c: Likewise. - * gcc.dg/tree-ssa/ssa-fre-34.c: Likewise. - * gcc.dg/pr48616.c: Likewise. - * gcc.dg/pr17957.c: Likewise. - * gcc.dg/pr17055-1.c: Likewise. - * gcc.dg/pr32912-1.c: Likewise. - * gcc.dg/tm/pr51472.c: Likewise. - * c-c++-common/fold-bitand-4.c: Likewise. - * c-c++-common/Wunused-var-12.c: Use lp64 instead of hppa*64*-*-*. - Use dg-additional-options for extra options. - -2012-02-07 Joern Rennecke - - * gcc.target/epiphany/interrupt-2.c: New test. - -2012-02-07 Richard Sandiford - - PR target/52155 - * gcc.target/mips/mips.exp (mips-dg-options): Handle target. - * gcc.target/mips/loongson-shift-count-truncated-1.c: Force -mlong64 - for MIPS ELF. - -2012-02-07 Richard Sandiford - - PR target/52152 - * objc.dg/stabs-1.m: XFAIL for mips*-*-elf*. - -2012-02-07 Richard Sandiford - - PR middle-end/24306 - PR target/52154 - * lib/target-supports.exp (check_effective_target_mips_eabi): New. - * gcc.target/mips/va-arg-1.c: New test. - -2012-02-07 Michael Meissner - - * gcc.target/powerpc/no-r11-3.c (outer_func): Fix error message - for -mno-pointers-to-nested-functions. - -2012-02-07 Eric Botcazou - - * gcc.c-torture/execute/20120207-1.c: New test. - -2012-02-07 Jakub Jelinek - - PR rtl-optimization/52060 - * gcc.dg/torture/pr52060.c: New test. - - PR middle-end/52074 - * gcc.c-torture/compile/pr52074.c: New test. - -2012-02-07 Tobias Burnus - - PR fortran/51514 - * gfortran.dg/class_to_type_2.f90: New. - -2012-02-06 Thomas KÁnig - - PR fortran/32373 - * gfortran.dg/vect/vect-8.f90: Use vect_double effective target. - Remove module. - -2012-02-06 Jason Merrill - - PR c++/52088 - * g++.dg/template/conv13.C: New. - -2012-02-06 Richard Guenther - - PR tree-optimization/52115 - * gcc.c-torture/compile/pr52115.c: New testcase. - -2012-02-06 Jakub Jelinek - - PR target/52129 - * gcc.c-torture/execute/pr52129.c: New test. - -2012-02-06 Andrey Belevantsev - - * gcc.dg/pr48374.c: Actually add the test I forgot - in the 2012-01-25 commit. - -2012-02-05 Thomas KÁnig - - PR fortran/32373 - * gfortran.dg/vect/vect-8.f90: New test case. - -2012-02-05 Thomas KÁnig - - PR fortran/48847 - * gfortran.dg/warn_unused_dummy_argument_3.f90: New test. - -2012-02-05 Paul Thomas - - PR fortran/52102 - * gfortran.dg/class_48.f90 : Add test of allocate class array - component with source in subroutine test3. Remove commenting - out in subroutine test4, since branching on unitialized variable - is now fixed (no PR for this last.). - -2012-02-05 Richard Sandiford - - * gcc.dg/tree-prof/stringop-2.c (main): Add a nomips16 attribute - on MIPS targets. - * gfortran.dg/pr45636.f90: XFAIL for MIPS16 targets. - -2012-02-05 Richard Sandiford - - PR target/52125 - * lib/target-supports.exp (check_effective_target_mips_rel): New. - * gcc.dg/pr48774.c: Skip on MIPS REL targets. - -2012-02-05 Richard Sandiford - - * lib/target-supports.exp (check_effective_target_mips_llsc): New. - (check_effective_target_sync_int_long): Use it. - (check_effective_target_sync_char_short): Likewise. - * gcc.target/mips/atomic-memory-1.c: Restrict error check to mips_llsc. - -2012-02-05 Tobias Burnus - - PR fortran/51972 - * gfortran.dg/class_48.f90: Add some further checks. - -2012-02-05 Ira Rosen - - PR tree-optimization/52091 - * gcc.dg/vect/pr52091.c: New test. - -2012-02-04 Jakub Jelinek - - PR rtl-optimization/52113 - * gcc.target/avr/pr52113.c: New test. - -2012-02-03 Jakub Jelinek - - PR rtl-optimization/52092 - * gcc.c-torture/compile/pr52092.c: New test. - -2012-02-02 Mikael Morin - - PR fortran/41587 - * gfortran.dg/class_array_10.f03: New test. - - PR fortran/46356 - * gfortran.dg/class_array_11.f03: New test. - - PR fortran/51754 - * gfortran.dg/class_array_12.f03: New test. - -2012-02-02 Paul Thomas - - PR fortran/52012 - * gfortran.dg/realloc_on_assign_11.f90: New test. - -2012-02-02 Tobias Burnus - - PR fortran/52093 - * gfortran.dg/shape_7.f90: New. - -2012-02-02 Richard Sandiford - - * gcc.target/mips/mips-prepend-1.c: New test. - -2012-02-02 Jan Hubicka - Tom de Vries - - PR middle-end/51998 - * gcc.dg/alias-12.c: New testcase. - * gcc.dg/alias-13.c: New testcase. - -2012-02-02 Jakub Jelinek - - PR target/52086 - * gcc.dg/pr52086.c: New test. - - PR tree-optimization/52073 - * gcc.c-torture/compile/pr52073.c: New test. - -2012-02-01 Thomas KÁnig - - PR fortran/51958 - * gfortran.dg/function_optimize_10.f90: New test. - -2012-02-01 Uros Bizjak - - * go.test/go-test.exp (go-gc-tests): xfail test/nilptr.go runtime - test on alpha*-*-*. - -2012-02-01 Tobias Burnus - - PR fortran/52024 - * gfortran.dg/typebound_operator_14.f90: New. - -2012-02-01 Tobias Burnus - - PR fortran/52059 - * gfortran.dg/elemental_function_1.f90: New. - -2012-02-01 Georg-Johann Lay - - PR rtl-optimization/51374 - * gcc.target/avr/torture/pr51374-1.c: - Also fail if SBIS is seen. - -2012-02-01 Georg-Johann Lay - - PR rtl-optimization/51374 - * gcc.target/avr/torture/pr51374-1.c: New. - -2012-01-31 Tobias Burnus - - PR fortran/52024 - * gfortran.dg/typebound_generic_11.f90: New. - -2012-01-31 Tobias Burnus - - PR fortran/52029 - * gfortran.dg/class_49.f90: New. - -2012-01-31 Tobias Burnus - - PR fortran/52013 - * gfortran.dg/elemental_args_check_6.f90: New. - -2012-01-31 Jason Merrill - - PR c++/52043 - * g++.dg/cpp0x/variadic122.C: New. - -2012-01-31 Paul Thomas - - PR fortran/52012 - * gfortran.dg/realloc_on_assign_10.f90: New test. - -2012-01-31 Richard Guenther - - PR tree-optimization/51528 - * gcc.dg/torture/pr51528.c: New testcase. - -2012-01-30 Uros Bizjak - - PR go/48501 - * lib/go.exp (go_target_compile): Append timeout= to options. - * go.test/go-test.exp (go-gc-tests): Add dg-timeout-factor for - select5-out.go test on alpha*-*-* targets. - -2012-01-30 Richard Sandiford - - * gcc.target/mips/extend-1.c (TEST_CHAR): Use signed char. - (TEST_SHORT): Reformat in the same way. - * gcc.target/mips/octeon-exts-6.c (TEST_CHAR): Use signed char. - (TEST_SHORT): Reformat in the same way. - * gcc.target/mips/octeon2-lx-1.c (TEST): Make sign explicit. - * gcc.target/mips/pr37362.c: Skip for mips-sde-elf. - * gcc.target/mips/mmcount-ra-address-1.c (bazl): Add NOMIPS16. - * gcc.target/mips/mmcount-ra-address-2.c (bar): Likewise. - * gcc.target/mips/mmcount-ra-address-3.c (bar): Likewise. - -2012-01-30 Bin Cheng - - PR target/51835 - * gcc.target/arm/pr51835.c: New testcase. - -2012-01-30 Richard Guenther - - PR tree-optimization/52028 - * gcc.dg/torture/pr52028.c: New testcase. - * gfortran.dg/ldist-pr45199.f: Adjust. - * gcc.dg/tree-ssa/ldist-16.c: Likewise. - * gcc.dg/tree-ssa/ldist-17.c: Likewise. - * gcc.dg/tree-ssa/ldist-pr45948.c: Likewise. - -2012-01-30 Jakub Jelinek - - PR debug/52027 - * gcc.dg/tree-prof/pr52027.c: New test. - - PR tree-optimization/52046 - * gcc.dg/pr52046.c: New test. - - PR debug/52048 - * g++.dg/other/pr52048.C: New test. - -2012-01-30 Richard Guenther - - PR tree-optimization/52045 - * gcc.dg/pr52045.c: New testcase. - -2012-01-30 Greta Yorsh - - * gcc.target/arm/di-longlong64-sync-withldrexd.c: Accept - new code generated for __sync_lock_release. - -2012-01-30 Andreas Krebbel - - * gcc.dg/dfp/fe-convert-2.c: Force use of soft dfp on s390 and s390x. - -2012-01-29 John David Anglin - - PR testsuite/51875 - * gfortran.dg/guality/pr41558.f90: Skip on 32-bit hppa*-*-hpux*. - - * g++.dg/ext/visibility/template10.C: Fix typo. - - * gcc.dg/tm/pr51472.c: Add -fno-common option on hppa-*-hpux*. - -2012-01-29 Paolo Carlini - - PR c++/51327 - * g++.dg/cpp0x/constexpr-ice6.C: New. - -2012-01-29 Tobias Burnus - - PR fortran/41600 - * gfortran.dg/default_initialization_6.f90: New. - -2012-01-29 Tobias Burnus - - PR fortran/51972 - * gfortran.dg/class_allocate_12.f90: Enable disabled test. - * gfortran.dg/class_48.f90: New. - -2012-01-29 Janne Blomqvist - - PR fortran/51808 - * gfortran.dg/module_md5_1.f90: Update MD5 sum. - -2012-01-28 Tobias Burnus - - PR fortran/51972 - * gfortran.dg/class_allocate_12.f90: New. - -2012-01-28 Eric Botcazou - - * gcc.dg/torture/pr50444.c: Fix dg directives. - -2012-01-28 Jakub Jelinek - - PR target/52006 - * gcc.target/arm/pr52006.c: New test. - -2012-01-27 Aldy Hernandez - - PR testsuite/52011 - * gcc.dg/lto/trans-mem.h: New file. - * gcc.dg/lto/trans-mem-2_0.c: Include it. - * gcc.dg/lto/trans-mem-1_1.c: Same. - * gcc.dg/lto/trans-mem-4_1.c: Same. - * gcc.dg/lto/trans-mem-3_1.c: Same. - -2012-01-27 Tobias Burnus - - PR fortran/52022 - * gfortran.dg/dummy_procedure_7.f90: New. - -2012-01-27 Andreas Schwab - - * g++.dg/cpp0x/constexpr-rom.C: Don't add -G0 on *-*-darwin* - *-*-aix* alpha*-*-osf* alpha*-*-*vms*. - -2012-01-27 Jakub Jelinek - - PR c++/51852 - * g++.dg/other/gc5.C: New test. - -2012-01-27 Richard Guenther - - PR tree-optimization/50444 - * gcc.dg/torture/pr50444.c: New testcase. - -2012-01-27 Tobias Burnus - - PR fortran/51970 - PR fortran/51977 - * gfortran.dg/move_alloc_13.f90: New. - -2012-01-27 Tobias Burnus - - PR fortran/51953 - * gfortran.dg/allocate_alloc_opt_13.f90: New. - * gfortran.dg/allocate_alloc_opt_4.f90: Add -std=f2003 - and change dg-error string. - -2012-01-27 Tobias Burnus - - PR fortran/52016 - * gfortran.dg/elemental_args_check_5.f90: New. - -2012-01-27 Richard Guenther - - PR middle-end/51959 - * g++.dg/torture/pr51959.C: New testcase. - -2012-01-27 Tom de Vries - - PR tree-optimization/51990 - * gcc.dg/pr51990.c: New test. - * gcc.dg/pr51990-2.c: Same. - -2012-01-27 Paul Thomas - Tobias Burnus - - PR fortran/48705 - * gfortran.dg/class_allocate_11.f03: New. - - PR fortran/51870 - PR fortran/51943 - PR fortran/51946 - * gfortran.dg/class_allocate_7.f03: New. - * gfortran.dg/class_allocate_8.f03: New. - * gfortran.dg/class_allocate_9.f03: New. - * gfortran.dg/class_allocate_10.f03: New. - -2012-01-27 Eric Botcazou - - * gnat.dg/discr34.adb: New test. - * gnat.dg/discr34_pkg.ads: New helper. - -2012-01-27 Eric Botcazou - - * gnat.dg/discr33.adb: New test. - -2012-01-27 Eric Botcazou - - * gnat.dg/limited_with3.ad[sb): New test. - * gnat.dg/limited_with3_pkg1.ad[sb]: New helper. - * gnat.dg/limited_with3_pkg2.ads: Likewise. - * gnat.dg/limited_with3_pkg3.ads: Likewise. - -2012-01-27 Eric Botcazou - - * gnat.dg/stack_usage1.adb: New test. - * gnat.dg/stack_usage1_pkg.ad[sb]: New helper. - - * gcc.dg/pr44194-1.c: Remove superfluous include directive. - * gcc.dg/pr44194-2.c: Likewise. - -2012-01-26 Paolo Carlini - - PR c++/51370 - * g++.dg/template/crash112.C: New. - -2012-01-27 Richard Henderson - - * gcc.dg/atomic-flag.c: Adjust for __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. - -2012-01-26 Andreas Krebbel - - * gfortran.dg/reassoc_4.f: Use dg-additional-options. - -2012-01-26 Jakub Jelinek - - PR middle-end/51895 - * g++.dg/opt/pr51895.C: New test. - -2012-01-26 Michael Matz - - PR tree-optimization/48794 - * gfortran.dg/gomp/pr48794-2.f90: New testcase. - -2012-01-26 Andreas Krebbel - - * gcc.dg/ssa-dom-thread-4.c: Set -mbranch-cost=2 for s390 and s390x. - -2012-01-26 Andreas Krebbel - - * gcc.dg/pr46309.c: Set branch-cost to 2 for s390 and s390x. - * gcc.dg/pr44194-1.c: Disable since s390 returns structs always in - memory. - * gfortran.dg/reassoc_4.f: Force max-completely-peeled-insns to - the default value for s390 and s390x. - -2012-01-25 Aldy Hernandez - - PR lto/51698 - * gcc.dg/lto/trans-mem-4_0.c: New. - * gcc.dg/lto/trans-mem-4_1.c: New. - * gcc.dg/lto/trans-mem-2_0.c: Provide correct argument types for - TM builtins. - * gcc.dg/lto/trans-mem-1_0.c: Require stdint_types. - * gcc.dg/lto/trans-mem-1_1.c: Provide correct argument types for - TM builtins. - * gcc.dg/lto/trans-mem-3_0.c: Require stdint_types. - * gcc.dg/lto/trans-mem-3_1.c: Provide correct argument types for - TM builtins. - -2012-01-25 Georg-Johann Lay - - * gcc.target/avr/torture/int24-mul.c: Rename __pgm to __flash. - -2012-01-25 Ian Lance Taylor - - * go.test/go-test.exp (go-gc-tests): Handle a few more test lines. - -2012-01-25 Tobias Burnus - - PR fortran/51995 - * gfortran.dg/typebound_proc_25.f90: New. - -2012-01-25 Jason Merrill - - PR c++/51992 - * g++.dg/lto/pr51992_0.C: New. - -2012-01-25 Jakub Jelinek - - PR tree-optimization/51987 - * gcc.target/i386/pr51987.c: New test. - -2012-01-25 Greta Yorsh - - * gcc.dg/tm/lto-1.c: Require lto support in target. - -2012-01-25 Andrey Belevantsev - - PR rtl-optimization/48374 - * gcc.dg/pr48374.c: New test. - -2012-01-25 Greta Yorsh - - * gcc.dg/pr50908-2.c (dg-options): Add -fno-short-enums. - -2012-01-25 Tobias Burnus - - PR fortran/51966 - * gfortran.dg/derived_constructor_char_3.f90: New. - -2012-01-24 Ian Lance Taylor - - * go.test/go-test.exp (filecmp): New procedure. - (errchk): Handle quoted square brackets. - (go-gc-tests): Set go_compile_args. Handle various new test - lines. Skip a few new tests. - * lib/go-torture.exp (go-torture-execute): Use go_compile_args. - -2012-01-24 Richard Sandiford - - * lib/target-supports.exp (proc check_effective_target_vect_perm) - (check_effective_target_vect_extract_even_odd) - (check_effective_target_vect_interleave): Return true for MIPS - paired-single. - -2012-01-24 Richard Sandiford - - * gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable. - (main): Use it instead of argc. - -2012-01-24 Jason Merrill - - PR c++/51973 - * g++.dg/cpp0x/sfinae31.C: New. - -2012-01-24 Richard Sandiford - - * gcc.dg/memcpy-4.c: Don't expect /s on MEMs. - -2012-01-24 Jason Merrill - - PR c++/51812 - * g++.dg/inherit/covariant20.C: New. - -2012-01-24 Paolo Carlini - - PR c++/51223 - * g++.dg/parse/crash58.C: New. - -2012-01-24 Jakub Jelinek - - PR target/51957 - * gcc.dg/pr51957-1.c: New test. - * gcc.dg/pr51957-1.h: New file. - * gcc.dg/pr51957-2.c: New test. - -2012-01-23 Jason Merrill - - PR c++/51930 - * g++.dg/ext/visibility/template10.C: New. - -2012-01-23 Tobias Burnus - - PR fortran/51948 - * gfortran.dg/move_alloc_12.f90: New. - -2012-01-23 Ramana Radhakrishnan - - PR middle-end/45416 - * gcc.dg/pr45416.c: Skip for Thumb1. Handle ubfx. - -2012-01-23 Paolo Carlini - - PR c++/51398 - * g++.dg/template/crash111.C: New. - -2012-01-23 Arnaud Charlet - - * ada/acats/tests/cxh/cxh1001.a: Removed, test not suitable on all - configurations. - * ada/acats/run_all.sh: Simplify by removing cxh1001 special case. - -2012-01-23 Dodji Seketeli - - PR testsuite/51941 - * g++.dg/debug/dwarf2/nested-3.C: Accept multiple lines between - the DW_TAG_class_type and DW_AT_name: "Executor". - -2012-01-23 Ramana Radhakrishnan - - * lib/target-supports.exp - (check_effective_target_vect_extract_even_odd): Handle ARM neon. - (check_effective_target_vect_interleave): Likewise. - -2012-01-22 Jason Merrill - - PR c++/51925 - * g++.dg/template/using20.C: New. - * g++.dg/template/template-id-2.C: Adjust diagnostic. - -2012-01-23 Jason Merrill - - PR target/51934 - * g++.dg/torture/pr51344.C: Limit to x86. - -2012-01-23 Greta Yorsh - - * c-c++-common/tm/omp.c: Require target with pthread support. - -2012-01-23 Richard Guenther - - PR tree-optimization/51949 - * gcc.dg/torture/pr51949.c: New testcase. - -2012-01-23 Jakub Jelinek - - PR rtl-optimization/51933 - * gcc.c-torture/execute/pr51933.c: New test. - -2012-01-22 Douglas B Rupp - - * gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): - Do not define for Interix. - -2012-01-22 Jason Merrill - - PR c++/51832 - * g++.dg/lto/pr51832.h: New. - * g++.dg/lto/pr51832_0.C: New. - * g++.dg/lto/pr51832_1.C: New. - -2012-01-22 Eric Botcazou - - * gcc.dg/ext-elim-1.c: New test. - -2012-01-22 Richard Sandiford - - PR target/51931 - * gcc.c-torture/compile/20001226-1.c: Add nomips16 attribute. - * g++.dg/opt/longbranch1.C: Likewise. - -2012-01-22 Richard Sandiford - - * g++.old-deja/g++.pt/ptrmem6.C: xfail a test for ARM and MIPS - in C++11 mode. - -2012-01-21 Steven G. Kargl - - PR fortran/50556 - * gfortran.dg/namelist_74.f90: New test. - * gfortran.dg/namelist_59.f90: Remove SAVE attribute. - -2012-01-21 Tobias Burnus - - PR fortran/51913 - * gfortran.dg/class_47.f90: New. - -2012-01-21 Eric Botcazou - - * gnat.dg/renaming5.ad[sb]: New test. - -2012-01-20 Jason Merrill - - PR c++/51919 - * g++.dg/pch/mangle1.{C,Hs}: Remove. - -2012-01-20 Jason Merrill - - PR c++/51922 - * g++.dg/ext/attrib42.C: Require ilp32. - -2012-01-20 Jakub Jelinek - - PR target/51915 - * gcc.target/arm/pr51915.c: New test. - -2012-01-20 Cary Coutant - Dodji Seketeli - - PR debug/45682 - * g++.dg/debug/dwarf2/nested-3.C: New test. - -2012-01-20 Paolo Carlini - - PR c++/51402 - * g++.dg/template/crash110.C: New. - -2012-01-20 Rainer Orth - - * gcc.misc-tests/gcov-14.c: Skip on alpha*-dec-osf*. - Remove default options on hppa*-*-hpux*. - -2012-01-20 Rainer Orth - - * g++.dg/ext/visibility/template9.C: Add dg-require-visibility. - -2012-01-20 Andreas Krebbel - - * gcc.c-torture/compile/pr51856.c: New testcase. - -2012-01-20 Uros Bizjak - - * go.test/go-test.exp (go-gc-tests): Pass correctly formatted - options to go_target_compile. - -2012-01-20 Kai Tietz - - * g++.dg/torture/pr51344.C: Fix typo. - -2012-01-20 Richard Guenther - - PR tree-optimization/51903 - * g++.dg/torture/pr51903.C: New testcase. - -2012-01-20 Tobias Burnus - Janus Weil - - PR fortran/51056 - * gfortran.dg/use_21.f90: New. - -2012-01-20 Jakub Jelinek - - PR target/51106 - * gcc.dg/torture/pr51106-1.c: New test. - * gcc.dg/torture/pr51106-2.c: New test. - -2012-01-19 Kai Tietz - - * g++.dg/torture/pr51344.C: New test. - -2012-01-19 Tobias Burnus - - PR fortran/51904 - * gfortran.dg/intrinsic_size_2.f90: New. - -2012-01-19 Jason Merrill - - PR c++/51889 - * g++.dg/inherit/using7.C: New. - -2012-01-19 Richard Guenther - - PR tree-optimization/37997 - * gcc.dg/tree-ssa/ssa-pre-28.c: New testcase. - -2012-01-19 Andrey Belevantsev - - PR rtl-optimization/51505 - * gcc.dg/pr51505.c: New test. - -2012-01-18 Paul Thomas - - PR fortran/51634 - * gfortran.dg/typebound_operator_12.f03: New. - * gfortran.dg/typebound_operator_13.f03: New. - -2012-01-18 Paolo Carlini - - PR c++/51225 - * g++.dg/cpp0x/pr51225.C: New. - -2012-01-17 Ian Lance Taylor - - PR go/50656 - * go.test/go-test.exp (go-gc-tests): Recognize some more test lines. - -2012-01-17 Tobias Burnus - - PR fortran/51869 - * gfortran.dg/realloc_on_assign_9.f90: New. - -2012-01-17 Aldy Hernandez - - PR other/51165 - * gcc.dg/tm/memopt-3.c: Remove xfail. - * gcc.dg/tm/memopt-4.c: Remove xfail. - * gcc.dg/tm/memopt-5.c: Remove xfail. - * gcc.dg/tm/memopt-7.c: Remove xfail. - -2012-01-17 Jakub Jelinek - - PR tree-optimization/51877 - * gcc.c-torture/execute/pr51877.c: New test. - -2012-01-17 Michael Zolotukhin - - * gcc.dg/vect/no-section-anchors-vect-69.c: Change - {!vect_align_arrays} to vect_sizes_32B_16B. - * gcc.dg/vect/vect-multitypes-1.c: Ditto. - * gcc.dg/vect/vect-peel-3.c: Ditto. - -2012-01-16 Jason Merrill - - PR c++/51854 - * g++.dg/abi/mangle60.C: New. - - PR c++/51827 - * g++.dg/pch/mangle1.{C,Hs}: New. - -2012-01-16 Mikael Morin - Tobias Burnus - - PR fortran/50981 - * gfortran.dg/elemental_optional_args_3.f90: New - * gfortran.dg/elemental_optional_args_4.f90: New - -2012-01-16 Tobias Burnus - - PR fortran/51809 - * gfortran.dg/use_20.f90: New - -2012-01-16 Jason Merrill - - PR c++/51868 - * g++.dg/cpp0x/rv-bitfield.C: New. - * g++.dg/cpp0x/rv-bitfield2.C: New. - -2012-01-16 Paul Thomas - - * gfortran.dg/class_array_3.f03: Remove the explicit loop in - subroutine 'qsort' and use index array to assign the result. - -2012-01-16 Jakub Jelinek - - PR tree-optimization/51865 - * gcc.dg/pr51865.c: New test. - -2012-01-15 Richard Sandiford - - * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Expect 4 threaded edges for MIPS. - -2012-01-15 Richard Sandiford - - * gcc.target/mips/code-readable-2.c: Allow the jump table address - to be loaded from the constant pool, rather than via %hi and %lo. - -2012-01-15 Uros Bizjak - - PR rtl-optimization/51821 - * gcc.dg/pr51821.c: New test. - -2012-01-15 Andreas Schwab - - * gcc.dg/torture/pr8081.c: Fix char signedness assumption. - -2012-01-14 Andreas Schwab - - * g++.dg/cpp0x/constexpr-rom.C: Add -G0 where applicable. - -2012-01-14 Tobias Burnus - - PR fortran/51800 - * gfortran.dg/init_flag_8.f90: New. - * gfortran.dg/init_flag_9.f90: New. - -2011-01-14 Tobias Burnus - - PR fortran/51816 - * gfortran.dg/use_18.f90: New. - * gfortran.dg/use_19.f90: New. - -2012-01-13 Ian Lance Taylor - - PR c++/50012 - * g++.dg/warn/Wsign-compare-4.C: New. - -2012-01-13 Paul Thomas - - PR fortran/48351 - * gfortran.dg/alloc_comp_assign.f03: New. - * gfortran.dg/allocatable_scalar_9.f90: Reduce count of - __BUILTIN_FREE from 38 to 32. - -2012-01-13 Jason Merrill - - PR c++/20681 - * g++.dg/warn/Wreturn-type-7.C: New. - -2012-01-13 Georg-Johann Lay - - * gcc.c-torture/execute/20120111-1.c: Fix wrong int = int32_t - assumption. - * g++.dg/ipa/pr51759.C: Fix assumption sizeof(int) > 2. - * gcc.dg/cpp/warn-multichar.c: Fix to work on int=16 platforms. - * gcc.dg/cpp/warn-multichar-2.c: Ditto. - * gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target - int32plus because of big array needed. - * gcc.dg/pr50527.c: Don't FAIL if sizeof(void*) = 2 - * gcc.dg/lto/20090218-2_1.c: Fix prototype of malloc, memcpy. - -2012-01-13 Jason Merrill - - PR c++/51813 - * g++.dg/ext/visibility/template9.C: New. - - PR c++/51620 - * g++.dg/cpp0x/defaulted34.C: New. - * g++.dg/template/virtual3.C: New. - -2012-01-13 Richard Guenther - - PR middle-end/8081 - * gcc.dg/torture/pr8081.c: New testcase. - -2012-01-13 Georg-Johann Lay - - * gcc.dg/pr46309.c: Set branch cost to greater 1 for avr. - -2012-01-12 Jason Merrill - - PR c++/51714 - * g++.dg/ext/stmtexpr14.C: New. - -2012-01-13 Dodji Seketeli - - PR c++/51633 - * g++.dg/cpp0x/constexpr-diag4.C: New test. - -2012-01-12 Jason Merrill - - PR c++/48051 - * g++.dg/abi/mangle48.C: Test qualified-names, too. - * g++.dg/abi/mangle58.C: Likewise. - - PR c++/51403 - * g++.dg/template/arg8.C: New. - -2012-01-12 Ira Rosen - - PR tree-optimization/51799 - * gcc.dg/vect/pr51799.c: New test. - * gcc.dg/vect/vect-widen-shift-u8.c: Expect two widening shift - patterns. - -2012-01-12 Dominique d'Humieres - Tobias Burnus - - PR fortran/51057 - PR fortran/51616 - * lib/target-supports.exp - (check_effective_target_fortran_largest_fp_has_sqrt): New. - * gfortran.dg/quad_2.f90: Use it, add pattern for IBM's real(16). - -2012-01-11 Jason Merrill - - PR c++/51565 - * g++.dg/ext/attrib42.C: New. - -2012-01-11 Jakub Jelinek - - PR bootstrap/51796 - * gcc.dg/pr51796.c: New test. - -2012-01-11 Jason Merrill - - PR c++/51818 - * g++.dg/cpp0x/lambda/lambda-mangle3.C: New. - -2012-01-11 Eric Botcazou - - * gnat.dg/array19.ad[sb]: New test. - -2012-01-11 Eric Botcazou - - * gnat.dg/opt23.ad[sb]: New test. - * gnat.dg/opt23_pkg.ad[sb]: New helper. - * gnat.dg/opt24.ad[sb]: New test. - -2012-01-11 Bill Schmidt - - PR tree-optimization/49642 - * gcc.dg/tree-ssa/pr49642-1.c: New test. - * gcc.dg/tree-ssa/pr49642-2.c: New test. - -2012-01-11 Jason Merrill - - PR c++/51613 - * g++.dg/template/explicit-args5.C: New. - -2012-01-11 Matthew Gretton-Dann - - * gcc.c-torture/execute/20120110-1.c: New testcase. - -2012-01-10 Jason Merrill - - PR c++/51614 - * g++.dg/inherit/ambig1.C: New. - - PR c++/51433 - * g++.dg/cpp0x/constexpr-cache1.C: New. - -2012-01-10 Richard Guenther - - PR tree-optimization/51801 - * gcc.dg/torture/pr51801.c: New testcase. - -2012-01-10 Tobias Burnus - - PR fortran/51652 - * gfortran.dg/allocate_with_typespec_5.f90: New. - -2012-01-10 Tobias Burnus - - * gfortran.dg/class_39.f03: Update dg-error string. - -2012-01-10 Richard Guenther - - PR tree-optimization/50913 - * gcc.dg/graphite/interchange-16.c: New testcase. - * gcc.dg/graphite/scop-20.c: XFAIL. - * gfortran.dg/graphite/interchange-1.f: Likewise. - * gfortran.dg/graphite/block-1.f90: Likewise. - * gfortran.dg/graphite/block-2.f: Likewise. - -2012-01-10 Richard Henderson - - * lib/target-supports.exp (check_effective_target_vect_perm, - check_effective_target_vect_perm_byte, - check_effective_target_vect_perm_short): Enable for arm neon. - -2012-01-09 Tobias Burnus - - PR fortran/46328 - * gfortran.dg/typebound_operator_11.f90: New. - -2012-01-09 Eric Botcazou - - * gnat.dg/array18.adb: New test. - * gnat.dg/array18_pkg.ads: New helper. - -2012-01-09 Paul Thomas - - PR fortran/51791 - * gfortran.dg/typebound_operator_7.f03: Insert parentheses - around base object in first assignment in main program. - * gfortran.dg/typebound_operator_10.f03: New test. - -2012-01-09 Martin Jambor - - PR tree-optimization/51759 - * g++.dg/ipa/pr51759.C: New test. - -2012-01-09 Tobias Burnus - - PR fortran/51758 - * gfortran.dg/optional_absent_2.f90: New. - -2012-01-09 Tobias Burnus - - PR fortran/51578 - * gfortran.dg/use_17.f90: New. - -2012-01-09 Gary Funck - - PR preprocessor/33919 - * gcc.dg/pr33919.c: New test. - * gcc.dg/pr33919-0.h: New test header file. - * gcc.dg/pr33919-1.h: Ditto. - * gcc.dg/pr33919-2.h: Ditto. - -2012-01-07 Jan Hubicka - - PR tree-optimize/51694 - * gcc.c-torture/compile/pr51694.c: new testcase. - -2012-01-07 Jan Hubicka - - PR tree-optimization/51600 - * g++.dg/torture/pr51600.C: New testcase. - -2012-01-07 John David Anglin - - PR gcov-profile/51715 - PR gcov-profile/51717 - * gcc.misc-tests/gcov-13.c: Skip on 32-bit hppa*-*-hpux*. - * gcc.misc-tests/gcov-14.c: Likewise. - -2012-01-06 Jason Merrill - - * g++.dg/parse/new5.C: New. - -2012-01-06 Patrick Marlier - - PR testsuite/51655 - * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of - including . - -2012-01-06 Jason Merrill - - * g++.dg/abi/mangle51.C: New. - * g++.dg/abi/mangle52.C: New. - * g++.dg/abi/mangle53.C: New. - * g++.dg/abi/mangle54.C: New. - * g++.dg/abi/mangle55.C: New. - * g++.dg/abi/mangle56.C: New. - * g++.dg/abi/mangle57.C: New. - * g++.dg/abi/mangle58.C: New. - * g++.dg/abi/mangle59.C: New. - * g++.dg/cpp0x/trailing3.C: Update mangling. - * g++.dg/cpp0x/variadic111.C: Update mangling. - * g++.dg/cpp0x/variadic4.C: Update mangling. - * g++.dg/cpp0x/variadic42.C: Pass -fabi-version=5. - * g++.dg/template/nontype22.C: Works now. - * g++.dg/template/pr35240.C: Works now. - - * g++.dg/cpp0x/error7.C: New. - -2012-01-06 Tobias Burnus - - * gfortran.dg/deallocate_stat_2.f90: New. - * coarray/allocate_errgmsg.f90: New. - * gfortran.dg/coarray_lib_alloc_1.f90: New. - * gfortran.dg/coarray_lib_alloc_2.f90: New. - * coarray/subobject_1.f90: Fix for num_images > 1. - * gfortran.dg/deallocate_stat.f90: Update due to changed - stat= handling. - -2012-01-06 Andrew Stubbs - - * gcc.target/arm/headmerge-2.c: Adjust scan pattern. - -2012-01-06 Eric Botcazou - - * ada/acats/overflow.lst: Add cb20004. - -2012-01-05 Dodji Seketeli - - PR c++/51541 - * g++.dg/cpp0x/alias-decl-18.C: New test. - -2012-01-05 Eric Botcazou - - * gcc.c-torture/execute/20120104-1.c: New test. - -2012-01-05 Paul Thomas - - PR fortran/PR48946 - * gfortran.dg/typebound_operator_9.f03: This is now a copy of - the old typebound_operator_8.f03. - * gfortran.dg/typebound_operator_8.f03: New version of - typebound_operator_7.f03 with 'u' a derived type instead of a - class object. - -2012-01-05 Richard Guenther - - * g++.dg/torture/pr49309.C: Skip for -flto. - -2012-01-05 Jakub Jelinek - - PR middle-end/51761 - * gcc.c-torture/compile/pr51761.c: New test. - -2012-01-05 Richard Guenther - - PR tree-optimization/51760 - * gcc.dg/torture/pr51760.c: New testcase. - -2012-01-05 Aldy Hernandez - - PR middle-end/51472 - * gcc.dg/tm/memopt-6.c: Adjust regexp. - -2012-01-05 Richard Guenther - - PR lto/41576 - * gfortran.dg/lto/pr41576_0.f90: New testcase. - * gfortran.dg/lto/pr41576_1.f90: Likewise. - -2012-01-04 Jakub Jelinek - - PR debug/51695 - * gcc.dg/pr51695.c: New test. - -2012-01-04 Andrew Pinski - - * gcc.target/mips/mips64-dsp-ldx1.c: New test. - * gcc.target/mips/octeon2-lx-1.c: New test. - * gcc.target/mips/mips64-dsp-ldx.c: New test. - * gcc.target/mips/octeon2-lx-2.c: New test. - * gcc.target/mips/octeon2-lx-3.c: New test. - -2012-01-04 Patrick Marlier - - PR other/51163 - PR other/51164 - * gcc.dg/tm/alias-1.c: Adjust regexp. - * gcc.dg/tm/alias-2.c: Adjust regexp. - -2012-01-04 Paolo Carlini - - PR c++/51064 - * g++.dg/warn/Wparentheses-26.C: New. - -2012-01-04 Mikael Morin - - * gfortran.dg/elemental_optional_args_2.f90: New test. - -2012-01-04 Thomas Koenig - - PR fortran/49693 - * gfortran.dg/common_17.f90: New test. - -2012-01-04 Richard Guenther - - PR tree-optimization/49651 - * gcc.dg/tree-ssa/pta-ptrarith-1.c: Adjust. - * gcc.dg/tree-ssa/pta-ptrarith-2.c: Likewise. - -2012-01-03 Paolo Carlini - - PR c++/51738 - * g++.dg/cpp0x/initlist-postfix-open-square.C: New. - -2012-01-03 Andrew Pinski - - * lib/scanasm.exp (dg-function-on-line): Always use a special format - for all mips targets. Also allow an optional .cfi_startproc. - -2012-01-03 Uros Bizjak - - * gfortran.dg/typebound_operator_8.f03: Use dg-add-options ieee. - -2012-01-03 Paolo Carlini - - PR c++/29273 - * g++.dg/rtti/dyncast5.C: New. - -2012-01-03 Richard Guenther - - PR tree-optimization/51070 - * gcc.dg/torture/pr51070-2.c: New testcase. - -2012-01-03 Richard Guenther - - PR tree-optimization/51692 - * gcc.dg/torture/pr51692.c: New testcase. - -2012-01-03 Richard Guenther - - PR debug/51650 - * g++.dg/lto/pr51650-3_0.C: New testcase. - -2012-01-03 Paolo Carlini - - PR c++/15867 - * g++.dg/warn/Wredundant-decls-spec.C: New. - -2012-01-03 Jakub Jelinek - - PR tree-optimization/51719 - * g++.dg/tree-prof/pr51719.C: New test. - -2012-01-03 Richard Guenther - - PR middle-end/51730 - * gcc.dg/fold-compare-6.c: New testcase. - -2012-01-03 Jakub Jelinek - - PR c++/51669 - * g++.dg/gomp/pr51669.C: New test. - -2012-01-02 Jason Merrill - - PR c++/51675 - * g++.dg/cpp0x/constexpr-union2.C: New. - - PR c++/51666 - * g++.dg/cpp0x/nsdmi-defer5.C: New. - -2012-01-02 Dodji Seketeli - - PR c++/51462 - * g++.dg/cpp0x/constexpr-99.C: New test. - -2012-01-02 Paolo Carlini - - PR c++/20140 - * g++.dg/template/init9.C: New. - -2012-01-02 Richard Sandiford - - * gcc.dg/memcpy-4.c: Add nomips16 attribute for MIPS targets. - Increase copy to 5 bytes. Look for at least two "mem/s/u"s, - rather than a specific number. - -2012-01-02 Paul Thomas - - PR fortran/46262 - PR fortran/46328 - PR fortran/51052 - * gfortran.dg/typebound_operator_7.f03: New. - * gfortran.dg/typebound_operator_8.f03: New. - -2012-01-02 Richard Sandiford - - PR target/51729 - * gcc.target/mips/dspr2-MULT.c: Remove -ffixed-hi -ffixed-lo. - XFAIL. - * gcc.target/mips/dspr2-MULTU.c: Likewise. - -2012-01-02 Richard Sandiford - - * gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS. - -2012-01-02 Richard Sandiford - - * g++.dg/cpp0x/constexpr-rom.C: Look for .rdata rather than rodata - for MIPS. - -2012-01-02 Richard Sandiford - - * gfortran.dg/io_real_boz_3.f90: Require fortran_real_16. - * gfortran.dg/io_real_boz_4.f90: Likewise. - * gfortran.dg/io_real_boz_5.f90: Likewise. - -2012-01-02 Richard Sandiford - - * g++.dg/opt/devirt2.C: Add -mno-abicalls for MIPS. - -2012-01-02 Revital Eres - - * gcc.dg/sms-11.c: New file. - -2012-01-02 Tobias Burnus - - PR fortran/51682 - * gfortran.dg/coarray/image_index_3.f90: New. - -2012-01-01 Paolo Carlini - - PR c++/16603 - * g++.dg/parse/enum8.C: New. - -2012-01-01 Paolo Carlini - - PR c++/51379 - * g++.dg/conversion/reinterpret4.C: New. - * g++.dg/conversion/reinterpret1.C: Adjust. - -2012-01-01 Paolo Carlini - - * g++.dg/cpp0x/constexpr-delegating2.C: Add missing piece. - -2012-01-01 Fabien ChÁne - - * g++.old-deja/g++.brendan/crash25.C: Adjust. - * g++.old-deja/g++.brendan/crash56.C: Likewise. - * g++.old-deja/g++.jason/access14.C: Likewise. - * g++.old-deja/g++.jason/access8.C: Likewise. - * g++.old-deja/g++.jason/access1.C: Likewise. - * g++.old-deja/g++.other/access3.C: Likewise. - * g++.old-deja/g++.other/access5.C: Likewise. - * g++.old-deja/g++.law/unsorted1.C: Likewise. - * g++.old-deja/g++.law/visibility22.C: Likewise. - * g++.old-deja/g++.law/visibility26.C: Likewise. - * g++.old-deja/g++.mike/p2746.C: Likewise. - * g++.dg/debug/using1.C: Likewise. - * g++.dg/lookup/using51.C: Likewise. - * g++.dg/inherit/using5.C: Likewise. - * g++.dg/inherit/pr30297.C: Likewise. - * g++.dg/inherit/access8.C: Likewise. - * g++.dg/torture/pr39362.C: Likewise. - * g++.dg/template/crash13.C: Likewise. - * g++.dg/template/using10.C: Likewise. - -2012-01-01 Thomas Koenig - - PR fortran/51502 - * lib/gcc-dg.exp (scan-module-absence): Really commit last change. - -2012-01-01 Ira Rosen - - PR tree-optimization/51704 - * gfortran.dg/vect/no-fre-no-copy-prop-O3-pr51704.f90: New. - * gfortran.dg/vect/vect.exp: Run no-fre-no-copy-prop-O3-* with - corresponding flags. - -2012-01-01 Paolo Carlini - - PR c++/51723 - * g++.dg/cpp0x/constexpr-delegating2.C: New. - -2012-01-01 Jan Hubicka - - PR rtl-optimization/51069 - * gcc.c-torture/compile/pr51069.c: New testcase. - -2012-01-01 Jakub Jelinek - - PR tree-optimization/51683 - * gcc.dg/pr51683.c: New test. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/gcc/testsuite/ChangeLog-2012 b/gcc/testsuite/ChangeLog-2012 new file mode 100644 index 00000000000..6687189a22f --- /dev/null +++ b/gcc/testsuite/ChangeLog-2012 @@ -0,0 +1,11183 @@ +2012-12-31 Uros Bizjak + + * g++.dg/ipa/devirt-9.C: Cleanup inline ipa dump. + +2012-12-31 Uros Bizjak + + * gcc.target/i386/builtin_target.c (vendor_signatures): Remove. + (check_detailed): Use signature_INTEL_ebx and signature_AMD_ebx + to check vendor signature. + +2012-12-28 Janus Weil + + PR fortran/55692 + * gfortran.dg/associated_7.f90: New. + +2012-12-28 Tobias Burnus + + PR fortran/55763 + * gfortran.dg/unlimited_polymorphic_5.f90 + +2012-12-27 Jerry DeLisle + + PR fortran/48960 + * gfortran.dg/newunit_3.f90: New. + +2012-12-27 Jerry DeLisle + + PR fortran/48976 + * gfortran.dg/inquire_15.f90: New. + +2012-12-27 Sriraman Tallam + + * testsuite/g++.dg/mv1.C: Remove target options. + * testsuite/g++.dg/mv2.C: Ditto. + * testsuite/g++.dg/mv3.C: Ditto. + * testsuite/g++.dg/mv4.C: Ditto. + * testsuite/g++.dg/mv5.C: Ditto. + +2012-12-26 Janne Blomqvist + + PR fortran/55539 + * gfortran.dg/nosigned_zero_3.f90: New testcase. + +2012-12-23 Tobias Burnus + + PR fortran/54884 + * gfortran.dg/public_private_module_8.f90: New. + +2012-12-23 Richard Sandiford + + * gcc.target/mips/r10k-cache-barrier-10.c: Make a branch-likely + instruction more likely. + +2012-12-23 Richard Sandiford + + * gcc.target/mips/pr55315.c: Cast to long rather than int. + +2012-12-22 Tobias Burnus + + PR fortran/55763 + * gfortran.dg/unlimited_polymorphic_6.f90: New. + +2012-12-21 Martin Jambor + + PR tree-optimization/55355 + * g++.dg/torture/pr55355.C: New test. + +2012-12-21 Vladimir Makarov + + PR middle-end/55775 + * gcc.target/i386/pr55775.c: New test. + +2012-12-21 David Edelsohn + + * gcc.dg/pthread-init-2.c (dg-options): Define _XOPEN_SOURCE=500 + on AIX. + + * lib/target-supports.exp (add_options_for_tls): Add -pthread for + AIX as well. + (check_effective_target_powerpc_vsx_ok): Only test VSX on AIX 7.1 + and above. + + * gcc.c-torture/compile/pr44707.c: Do not try to assemble on AIX. + + * c-c++-common/pr43942.c: Remove XFAIL for AIX. + +2012-12-21 Paul Thomas + + PR fortran/55763 + * gfortran.dg/unlimited_polymorphic_4.f03: New test. + +2012-12-21 Richard Biener + + PR tree-optimization/52996 + * gcc.dg/torture/pr52996.c: New testcase. + +2012-12-20 Jakub Jelinek + + PR middle-end/55750 + * gcc.c-torture/execute/pr55750.c: New test. + +2012-12-20 Richard Biener + + PR middle-end/55740 + * g++.dg/torture/pr55740.C: New testcase. + +2012-12-20 Jakub Jelinek + + PR c++/55619 + * c-c++-common/pr55619.c: New test. + +2012-12-20 Tobias Burnus + + PR fortran/54818 + * gfortran.dg/transfer_intrinsic_4.f: New. + +2012-12-19 Paul Thomas + + * gfortran.dg/unlimited_polymorphic_1.f03: New test. + * gfortran.dg/unlimited_polymorphic_2.f03: New test. + * gfortran.dg/unlimited_polymorphic_3.f03: New test. + * gfortran.dg/same_type_as_1.f03: Correct for improved message. + +2012-12-19 Kyrylo Tkachov + + * gcc.target/arm/vmaxnmdf.c: New test. + * gcc.target/arm/vmaxnmsf.c: Likewise. + * gcc.target/arm/vminnmsf.c: Likewise. + * gcc.target/arm/vminnmdf.c: Likewise. + +2012-12-19 Tobias Burnus + + * gfortran.dg/gomp/use_intrinsic_1.f90: Moved + to libgomp/testsuite/libgomp.fortran/use_intrinsic_1.f90. + +2012-12-19 Richard Biener + + PR tree-optimization/55736 + PR tree-optimization/55703 + * gcc.dg/lto/pr55703_0.c: New testcase. + +2012-12-19 Jakub Jelinek + + PR debug/55730 + * gcc.dg/debug/pr55730.c: New test. + +2012-12-18 Jan Hubicka + + PR tree-optimization/55683 + * g++.dg/ipa/devirt-9.C: New testcase. + +2012-12-19 Terry Guo + + * gcc.target/arm/thumb-find-work-register.c: New. + +2012-12-19 Tobias Burnus + + PR fortran/55733 + * gfortran.dg/save_5.f90: New. + +2012-12-18 Jakub Jelinek + + PR c/39464 + * gcc.dg/pr39464.c: New test. + +2012-12-18 Ian Lance Taylor + + PR go/55201 + * lib/go.exp: Revert last patch. + +2012-12-18 Richard Biener + + PR middle-end/54838 + * g++.dg/torture/pr54838.C: New testcase. + +2012-12-18 Andreas Schwab + + * lib/go.exp (go_link_flags): Add libatomic location to flags and + ld_library_path. + +2012-12-18 Richard Biener + + * gcc.dg/tree-ssa/reassoc-19.c: Adjust. + +2012-12-18 Richard Biener + + PR tree-optimization/55555 + * gcc.dg/torture/pr55555.c: New testcase. + * gcc.dg/vect/vect-iv-11.c: Adjust. + +2012-12-18 Jakub Jelinek + + PR debug/55717 + * testsuite/g++.dg/opt/pr55717.C: New test. + +2012-12-17 Andrew Stubbs + Ulrich Weigand + + * gcc.target/arm/neon-extend-1.c: New file. + * gcc.target/arm/neon-extend-2.c: New file. + +2012-12-17 Kyrylo Tkachov + + * lib/target-supports.exp (add_options_for_arm_v8_neon): + Add -march=armv8-a. + +2012-12-17 James Greenhalgh + Tejas Belagod + + * lib/target-supports.exp + (check_effective_target_vect_multiple_sizes): Enable for AArch64. + +2012-12-16 Tobias Burnus + + PR fortran/55197 + * gfortran.dg/gomp/use_intrinsic_1.f90: New. + +2012-12-16 Tobias Burnus + + * gfortran.dg/move_alloc_14.f90: New. + +2012-12-16 Tobias Burnus + + PR fortran/55638 + * gfortran.dg/elemental_args_check_3.f90: Update dg-error. + * gfortran.dg/elemental_args_check_7.f90: New. + +2012-12-15 Eric Botcazou + + * lib/scanasm.exp (get_ada_spec_filename): Use procedural form. + +2012-12-15 Eric Botcazou + + PR ada/52735 + * gnat.dg/nested_generic1.adb: New test. + * gnat.dg/nested_generic1_pkg.ad[sb]: New helper. + +2012-12-15 Eric Botcazou + + PR ada/53766 + * gnat.dg/controlled7.ad[sb]: New test. + +2012-12-14 Steve Ellcey + + PR regression/55688 + * g++.dg/other/pr55650.C: Add dg-require-profiling. + +2012-12-14 Richard Biener + + PR tree-optimization/55684 + * gcc.dg/torture/pr55684.c: New testcase. + +2012-12-14 Richard Biener + + PR tree-optimization/55687 + * gcc.dg/torture/pr55687.c: New testcase. + +2012-12-13 Jakub Jelinek + + PR c++/55652 + * g++.dg/cpp0x/noexcept19.C: New test. + +2012-12-13 Richard Biener + + PR lto/55660 + * gcc.dg/lto/pr55660_0.c: New testcase. + * gcc.dg/lto/pr55660_1.c: Likewise. + +2012-12-13 Jakub Jelinek + + PR gcov-profile/55650 + * g++.dg/other/pr55650.C: New test. + * g++.dg/other/pr55650.cc: New file. + +2012-12-12 Jakub Jelinek + + PR debug/55665 + * g++.dg/guality/pr55665.C: New test. + + * lib/gcc-dg.exp (${tool}_load): Handle non-existing + set_target_env_var the same as if it is empty list. + (dg-set-target-env-var): Fix up error message. + (set-target-env-var): Record both preexisting env var values + as well as info that env wasn't set. + (restore-target-env-var): Iterate on reversed list, if second + sublist element is 1, setenv the env var to the third sublist + element, otherwise unsetenv it. + (gcc-dg-runtest): Don't initialize set_target_env_var. + (dg-test): Unset set_target_env_var if it was set. + + * g++.dg/asan/deep-tail-call-1.C: Whitespace fixes. Don't rely + on argc being one. + * g++.dg/asan/interception-malloc-test-1.C: Only run on linux. + Whitespace fixes. Avoid unnecessary * sizeof(char). + * g++.dg/asan/deep-thread-stack-1.C: Add -lasan -lpthread to + dg-options. Whitespace fixes. + * g++.dg/asan/deep-stack-uaf-1.C: Skip for -flto. Whitespace fixes. + * g++.dg/asan/interception-test-1.C: Whitespace fixes. + * g++.dg/asan/interception-failure-test-1.C: Whitespace fixes. + Avoid unnecessary * sizeof(char). Remove // CHECK: comment. + * g++.dg/asan/default-options-1.C: Whitespace fixes. + * g++.dg/asan/symbolize-callback-1.C: Whitespace fixes. Make + first __asan_symbolize argument unnamed. Avoid unnecessary + * sizeof(char). + * g++.dg/asan/large-func-test-1.C: Whitespace fixes. Don't rely + on argc being one. Allow both _Znwj and _Znwm as operator new. + Ignore everything in the backtrace above operator new. Fix up + dg-output regexps. + * c-c++-common/asan/null-deref-1.c: Add -fno-omit-frame-pointer + and for x86 -mno-omit-leaf-frame-pointer. Fix up dg-output regexps. + * c-c++-common/asan/clone-test-1.c: Whitespace fixes. Return non-zero + on failures. Avoid pointless PASS dg-output check. Remove bogus + dg-shouldfail. + * c-c++-common/asan/sanity-check-pure-c-1.c: Fix up dg-output regexps. + Avoid unnecessary * sizeof(char). + * c-c++-common/asan/heap-overflow-1.c: Fix up dg-output regexps. + Don't rely on argc being one. + * c-c++-common/asan/sleep-before-dying-1.c: Whitespace fixes. + Avoid unnecessary * sizeof(char). + * c-c++-common/asan/rlimit-mmap-test-1.c: Whitespace fixes. + * c-c++-common/asan/stack-overflow-1.c: Fix up dg-output regexps. + * c-c++-common/asan/global-overflow-1.c: Add -fno-builtin-memset. + Fix up dg-output regexps. + * c-c++-common/asan/strncpy-overflow-1.c: Fix up dg-output regexps. + * c-c++-common/asan/memcmp-1.c: Don't rely on argc being one. + * c-c++-common/asan/use-after-free-1.c: Fix up dg-output regexps. + * c-c++-common/asan/swapcontext-test-1.c: Don't rely on argc being + one. + * c-c++-common/asan/force-inline-opt0-1.c: Remove dg-skip-if. + * c-c++-common/asan/strip-path-prefix-1.c: Whitespace fixes. + Avoid unnecessary * sizeof(char). + +2012-12-12 Wei Mi + + * lib/target-supports.exp (check_effective_target_dlopen, + check_effective_target_clone, check_effective_target_setrlimit, + check_effective_target_swapcontext): New procedures. + * lib/gcc-dg.exp (${tool}_load): Handle dg-set-target-env-var. + (dg-set-target-env-var, set-target-env-var, + restore-target-env-var): New procedures. + (gcc-dg-runtest): Set set_target_env_var. + * g++.dg/asan/symbolize-callback-1.C: New test. + * g++.dg/asan/shared-lib-test-1-so.cc: New file. + * g++.dg/asan/deep-tail-call-1.C: New test. + * g++.dg/asan/default-options-1.C: New test. + * g++.dg/asan/interception-test-1.C: New test. + * g++.dg/asan/dlclose-test-1-so.cc: New file. + * g++.dg/asan/deep-thread-stack-1.C: New test. + * g++.dg/asan/interception-malloc-test-1.C: New test. + * g++.dg/asan/deep-stack-uaf-1.C: New test. + * g++.dg/asan/large-func-test-1.C: New test. + * g++.dg/asan/interception-failure-test-1.C: New test. + * c-c++-common/asan/strip-path-prefix-1.c: New test. + * c-c++-common/asan/force-inline-opt0-1.c: New test. + * c-c++-common/asan/swapcontext-test-1.c: New test. + * c-c++-common/asan/null-deref-1.c: New test. + * c-c++-common/asan/global-overflow-1.c: New test. + * c-c++-common/asan/strncpy-overflow-1.c: New test. + * c-c++-common/asan/rlimit-mmap-test-1.c: New test. + * c-c++-common/asan/stack-overflow-1.c: New test. + * c-c++-common/asan/use-after-free-1.c: New test. + * c-c++-common/asan/sanity-check-pure-c-1.c: New test. + * c-c++-common/asan/clone-test-1.c: New test. + * c-c++-common/asan/heap-overflow-1.c: New test. + * c-c++-common/asan/sleep-before-dying-1.c: New test. + +2012-12-12 Steve Ellcey + + * gcc.dg/pr55150-2.c: Add pic support check. + * gcc.dg/lto/pr54709_0.c: Ditto. + +2012-12-12 Zdenek Dvorak + + PR tree-optimization/55481 + * gcc.dg/torture/pr55481.c: New testcase. + +2012-12-12 Steven Bosscher + Jakub Jelinek + + PR middle-end/52640 + * gcc.c-torture/compile/limits-externdecl.c: New test. + +2012-12-12 Jakub Jelinek + + * gfortran.dg/vect/fast-math-pr38968.f90: Decrease n + from 2000 to 400. + + PR fortran/55633 + * gcc.dg/torture/pr55633.c: New test. + +2012-12-11 Marc Glisse + + PR c++/53094 + * g++.dg/cpp0x/constexpr-53094-1.C: New testcase. + * g++.dg/cpp0x/constexpr-53094-2.C: Likewise. + * g++.dg/cpp0x/constexpr-53094-3.C: Likewise. + +2012-12-11 Jakub Jelinek + + PR c++/55643 + * g++.dg/warn/Wunused-var-19.C: New test. + + * g++.dg/asan/asan_test.C: Link -lasan before -lpthread. + +2012-12-11 Eric Botcazou + + * gcc.dg/pr54121.c: New test. + +2012-12-11 Jakub Jelinek + + PR c++/55619 + * g++.dg/ext/asm12.C: New test. + + PR tree-optimization/54570 + * gcc.dg/builtin-object-size-8.c: Xfail. + * gcc.dg/builtin-object-size-13.c: New test. + +2012-12-11 Kyrylo Tkachov + + PR target/55642 + * gcc.target/arm/pr55642.c: New testcase. + +2012-12-11 Jakub Jelinek + + PR middle-end/43631 + PR bootstrap/55615 + * g++.dg/other/pr43631.C: New test. + +2012-12-11 Richard Biener + + PR tree-optimization/55079 + * gcc.dg/Warray-bounds-9.c: New testcase. + * gcc.dg/Warray-bounds-10.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-1.c: Adjust. + +2012-12-10 Janus Weil + + PR fortran/52909 + * gfortran.dg/proc_ptr_39.f90: New test case. + +2012-12-10 Richard Sandiford + + * gcc.target/mips/octeon-bbit-2.c: Restructure loops so that no + code duplication is required. Allow BNE to appear. + +2012-12-10 Richard Sandiford + + * gcc.target/mips/ext-2.c: Require -mlong64. + +2012-12-10 Richard Biener + + PR tree-optimization/55107 + * gcc.dg/torture/pr55107.c: New testcase. + * gcc.dg/tree-ssa/ssa-pre-5.c: Adjust. + +2012-12-10 Jakub Jelinek + + * g++.dg/asan/asan_test.cc: Sync from upstream. + * g++.dg/asan/asan_test_utils.h: Likewise. + +2012-12-10 Kyrylo Tkachov + + * gcc.target/arm/neon/vrndaf32.c: New test. + * gcc.target/arm/neon/vrndqaf32.c: Likewise. + * gcc.target/arm/neon/vrndf32.c: Likewise. + * gcc.target/arm/neon/vrndqf32.c: Likewise. + * gcc.target/arm/neon/vrndmf32.c: Likewise. + * gcc.target/arm/neon/vrndqmf32.c: Likewise. + * gcc.target/arm/neon/vrndnf32.c: Likewise. + * gcc.target/arm/neon/vrndqnf32.c: Likewise. + * gcc.target/arm/neon/vrndpf32.c: Likewise. + * gcc.target/arm/neon/vrndqpf32.c: Likewise. + +2012-12-09 John David Anglin + + * gcc.misc-tests/gcov-12.c: Fix dg order. + + PR middle-end/54470 + * gcc.dg/ipa/iinline-4.c: xfail hooray4 test on 32-bit hppa*-*-*. + + * gcc.dg/torture/pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if" + for *-*-hpux10*. + + * gcc.dg/20030711-1.c: Define MAP_FAILED if not defined. + * gcc.dg/20050826-1.c: Likewise. + +2012-12-09 Eric Botcazou + + * gnat.dg/vect9.adb: Add -w to dg-options. + * gnat.dg/vect10.adb: Likewise. + +2012-12-09 Thomas Koenig + + PR fortran/55593 + * gfortran.dg/do_check_8.f90: New test. + +2012-12-08 Eric Botcazou + + * gnat.dg/vect10.ad[sb]: New test. + +2012-12-08 Eric Botcazou + + * gnat.dg/vect9.ad[sb]: New test. + * gnat.dg/vect9_pkg.ads: New helper. + +2012-12-07 Mike Stump + + * gnat.dg/discr38.adb: Don't use ^M line endings. + gnat.dg/loop_optimization13.adb: Likewise. + gnat.dg/loop_optimization13.ads: Likewise. + gnat.dg/discr36_pkg.adb: Likewise. + gnat.dg/discr36_pkg.ads: Likewise. + gnat.dg/loop_optimization11_pkg.ads: Likewise. + gnat.dg/discr36.ads: Likewise. + gnat.dg/loop_optimization11.adb: Likewise. + +2012-12-07 Vladimir Makarov + + PR rtl-optimization/55141 + * gcc.target/i386/pr55141.c: New. + +2012-12-07 Dodji Seketeli + + PR c++/54401 + * g++.dg/cpp0x/alias-decl-28.C: New test. + * g++.dg/cpp0x/alias-decl-16.C: Update. + +2012-12-07 Martin Jambor + + PR tree-optimization/55590 + * gcc.target/i386/pr55590-1.c: New test. + * gcc.target/i386/pr55590-2.c: Likewise. + +2012-12-07 Paolo Carlini + + PR c++/54975 + * g++.dg/cpp0x/lambda/lambda-typedef.C: New. + +2012-12-06 Uros Bizjak + + PR target/55597 + * gcc.target/i386/pr55597.c: New test. + +2012-12-06 Jakub Jelinek + + PR c++/54207 + * g++.dg/cpp0x/noexcept18.C: New test. + + PR c++/55573 + * g++.dg/cpp0x/constexpr-55573.C: New test. + + PR c++/55137 + * g++.dg/opt/pr55137.C: New test. + * gcc.c-torture/execute/pr55137.c: New test. + +2012-12-06 Kyrylo Tkachov + + * lib/target-supports.exp (check_effective_target_arm_v8_neon_ok): + New procedure. + (add_options_for_arm_v8_neon): Likewise. + +2012-12-05 Steven Bosscher + + * g++.dg/pr55604.C: New test. + +2012-12-05 James Greenhalgh + + * lib/target-supports.exp + (check_effective_target_vect_perm): Allow aarch64*-*-*. + (check_effective_target_vect_perm_byte): Likewise. + (check_effective_target_vect_perm_short): Likewise. + (check_effective_target_vect_char_mult): Likewise. + (check_effective_target_vect_extract_even_odd): Likewise. + (check_effective_target_vect_interleave): Likewise. + +2012-12-05 Yufeng Zhang + + * g++.dg/abi/mangle-neon-aarch64.C: New test. + +2012-12-05 Yufeng Zhang + + * g++.dg/abi/arm_va_list.C: Also test on aarch64*-*-*. + +2012-12-05 James Greenhalgh + + * gcc.dg/vect/vect-rounding-btrunc.c: New test. + * gcc.dg/vect/vect-rounding-btruncf.c: Likewise. + * gcc.dg/vect/vect-rounding-ceil.c: Likewise. + * gcc.dg/vect/vect-rounding-ceilf.c: Likewise. + * gcc.dg/vect/vect-rounding-floor.c: Likewise. + * gcc.dg/vect/vect-rounding-floorf.c: Likewise. + * gcc.dg/vect/vect-rounding-lceil.c: Likewise. + * gcc.dg/vect/vect-rounding-lfloor.c: Likewise. + * gcc.dg/vect/vect-rounding-nearbyint.c: Likewise. + * gcc.dg/vect/vect-rounding-nearbyintf.c: Likewise. + * gcc.dg/vect/vect-rounding-round.c: Likewise. + * gcc.dg/vect/vect-rounding-roundf.c: Likewise. + * target-supports.exp + (check_effective_target_vect_call_btrunc): New. + (check_effective_target_vect_call_btruncf): Likewise. + (check_effective_target_vect_call_ceil): Likewise. + (check_effective_target_vect_call_ceilf): Likewise. + (check_effective_target_vect_call_floor): Likewise. + (check_effective_target_vect_call_floorf): Likewise. + (check_effective_target_vect_call_lceil): Likewise. + (check_effective_target_vect_call_lfloor): Likewise. + (check_effective_target_vect_call_nearbyint): Likewise. + (check_effective_target_vect_call_nearbyintf): Likewise. + (check_effective_target_vect_call_round): Likewise. + (check_effective_target_vect_call_roundf): Likewise. + +2012-12-05 Richard Biener + + PR tree-optimization/51238 + * gcc.dg/torture/pr51238.c: New testcase. + +2012-12-05 Richard Biener + + PR tree-optimization/50222 + * gcc.dg/torture/pr50222.c: New testcase. + +2012-12-05 Richard Biener + + PR lto/55525 + * gcc.dg/lto/pr55525_0.c: New testcase. + * gcc.dg/lto/pr55525_1.c: Likewise. + +2012-12-04 Tobias Burnus + + * gfortran.dg/quad_3.f90: Really fix an if condition. + +2012-12-04 Tobias Burnus + + * gfortran.dg/quad_3.f90: Fix a condition, + which wrongly required ordered/lazy evaluation. + +2012-12-04 Marcus Shawcroft + + * gcc.target/aarch64/121127.c: New test. + +2012-12-04 Jakub Jelinek + + PR testsuite/55587 + * lib/asan-dg.exp (asan_init): Return 1 if libasan has been found, + 0 if not. + * g++.dg/asan/asan.exp: Don't run gcc-dg-runtest if [asan_init] + returned 0. + * gcc.dg/asan/asan.exp: Likewise. + +2012-12-04 Richard Biener + + PR tree-optimization/55124 + * gcc.dg/torture/pr55124.c: New testcase. + +2012-12-03 Tobias Burnus + + * gfortran.dg/quad_3.f90: New. + +2012-12-03 Paolo Carlini + + PR c++/54170 + * g++.dg/cpp0x/lambda/lambda-nullptr.C: New. + +2012-12-03 Jakub Jelinek + + PR testsuite/55452 + * gfortran.dg/reassoc_4.f: Use --param max-completely-peeled-insns=400 + on all targets, not just s390*. + +2012-12-03 Marek Polacek + + PR c/55570 + * gcc.dg/pr55570.c: New test. + +2012-12-03 Jakub Jelinek + + * lib/asan-dg.exp (asan_get_gtest_test_list, + asan_get_gtest_expect_death_list, asan-gtest): New procedures. + (proc ${tool}_load): Remember [asan_get_gtest_test_list "$output"] + and [asan_get_gtest_expect_death_list "$output"] in global vars. + (asan_symbolize): Sanitize [] characters from key. + * g++.dg/asan/asan_test_config.h: New file. + * g++.dg/asan/asan_globals_test.cc: New file. + * g++.dg/asan/asan_test_utils.h: New file. + * g++.dg/asan/dejagnu-gtest.h: New file. + * g++.dg/asan/asan_test.cc: New file. + * g++.dg/asan/asan_test.C: New test. + +2012-12-03 Richard Biener + + * gcc.dg/torture/pr35634.c: Use signed char. + * g++.dg/torture/pr35634.C: Likewise. + +2012-12-02 Marek Polacek + + PR middle-end/54838 + * gcc.dg/pr54838.c: New test. + +2012-12-01 Xinliang David Li + + * gcc.target/i386/ifcvt-onecmpl-abs-1.c: Check for + cltd. + +2012-12-01 Paolo Carlini + + PR c++/55558 + * g++.dg/cpp0x/decltype46.C: New. + +2012-12-01 John David Anglin + + PR middle-end/52450 + * gcc.dg/torture/pr52402.c: Remove xfail for hppa*-*-hpux*. + +2012-12-01 Zdenek Sojka + + PR debug/53860 + * g++.dg/debug/pr53860.C: New test. + +2012-12-01 Alessandro Fanfarillo + Paul Thomas + + PR fortran/46897 + * gfortran.dg/defined_assignment_1.f90: New test. + * gfortran.dg/defined_assignment_2.f90: New test. + * gfortran.dg/defined_assignment_3.f90: New test. + * gfortran.dg/defined_assignment_4.f90: New test. + * gfortran.dg/defined_assignment_5.f90: New test. + +2012-12-01 Jakub Jelinek + + PR c++/55542 + * g++.dg/cpp0x/vt-55542.C: New test. + +2012-11-30 Eric Botcazou + + * gnat.dg/specs/pack9.ads: New test. + +2012-11-30 Martin Jambor + + PR middle-end/52890 + PR tree-optimization/55415 + PR tree-optimization/54386 + PR target/55448 + * gcc.dg/ipa/ipa-sra-7.c: New test. + * gcc.dg/ipa/ipa-sra-8.c: Likewise. + * gcc.dg/ipa/ipa-sra-9.c: Likewise. + * gcc.target/i386/pr55448.c: Likewise. + +2012-11-29 Eric Botcazou + + * loop_optimization14.ad[sb]: New test. + * loop_optimization14_pkg.ads: New helper. + +2012-11-29 Richard Earnshaw + + PR target/55073 + * gcc.target/arm/pr55073.C: New test. + +2012-11-29 Marc Glisse + + PR c++/53094 + * g++.dg/ext/vector20.C: New testcase. + +2012-11-28 Tobias Burnus + + PR fortran/52161 + * coarray/sync_3.f90: Extend test. + +2012-11-29 Jakub Jelinek + + PR rtl-optimization/55512 + * gcc.target/i386/pr55512-2.c: Remove unnecessary define. + * gcc.target/i386/pr55512-4.c: Likewise. + +2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> + + PR c++/52654 + * g++.dg/cpp0x/udlit-overflow.C: New. + * g++.dg/cpp0x/udlit-overflow-neg.C: New. + +2012-11-28 Jakub Jelinek + + PR debug/36728 + PR debug/55467 + PR middle-end/55507 + PR bootstrap/55511 + * gcc.dg/guality/pr36728-1.c: Include "../nop.h", make sure the asm + are non-empty and add dependency between the first and second asm. + * gcc.dg/guality/pr36728-2.c: Likewise. + * gcc.dg/guality/pr36728-3.c: New test. + * gcc.dg/guality/pr36728-4.c: New test. + +2012-11-28 Andrew Pinski + + PR bootstrap/54279 + * lib/g++.exp (g++_init): Search for xg++ instead of g++ in the build + directories. + * lib/obj-c++.exp (obj-c++_init): Likewise. + +2012-11-28 Tobias Burnus + + PR fortran/52161 + * coarray/sync_3.f90: New. + +2012-11-28 Uros Bizjak + + * gcc.target/i386/pr55458.c: Require ia32 target instead of ilp32. + +2012-11-28 Vladimir Makarov + + PR rtl-optimization/55512 + * gcc.target/i386/pr55512-[1234].c: New tests. + +2012-11-28 Jakub Jelinek + + PR testsuite/55505 + * gcc.c-torture/execute/921202-1.c: Increase size of dx and dy arrays. + + PR testsuite/55504 + * gcc.c-torture/execute/20071018-1.c (foo): Add noinline/noclone + attributes. Avoid clobbering memory before malloced chunk. + (main): Pass 1 instead of 0 as argument. + +2012-11-28 Eric Botcazou + + * gnat.dg/object_overflow.adb: Rename to... + * gnat.dg/object_overflow1.adb: ...this. + * gnat.dg/object_overflow2.adb: New test. + * gnat.dg/object_overflow3.adb: Likewise. + * gnat.dg/object_overflow4.adb: Likewise. + +2012-11-28 Paolo Carlini + + PR c++/55497 + * g++.dg/init/pr55497.C: New. + +2012-11-28 Richard Biener + + PR testsuite/55327 + * gcc.dg/vect/slp-perm-8.c: Mark worker as noinline. + * gcc.dg/vect/slp-perm-9.c: Likewise. + +2012-11-28 Richard Biener + + PR c/35634 + * gcc.dg/torture/pr35634.c: New testcase. + * g++.dg/torture/pr35634.C: Likewise. + * gcc.dg/vect/pr18536.c: Mark worker function noinline. + +2012-11-27 Tobias Burnus + + PR fortran/55476 + * gfortran.dg/warn_target_lifetime_3.f90: New. + +2012-11-27 Vladimir Makarov + + PR rtl-optimization/55458 + * gcc.target/i386/pr55458.c: New test. + +2012-11-27 Jakub Jelinek + + PR tree-optimization/55110 + * gcc.dg/pr55110.c: New test. + +2012-11-27 Richard Biener + + PR middle-end/55331 + * g++.dg/opt/pr55331.C: New testcase. + +2012-11-26 Steven Bosscher + + * gcc.dg/20050811-2.c: Change -dv option to -graph option. + +2012-11-26 Georg-Johann Lay + + * gcc.dg/54455.c: Require scheduling. + * gcc.dg/c1x-align-4.c: Skip avr. + * gcc.dg/pr44024.c: Skip avr in final scan. + +2012-11-26 Georg-Johann Lay + + PR testsuite/52641 + * gcc.c-torture/execute/20120919-1.x: New file (int32plus). + * gcc.dg/pr54676.c: Make work for 16-bit int. + +2012-11-26 Vladimir Makarov + + PR target/55277 + * gcc.target/i386/pr55227.c: New test. + +2012-11-26 Steven Bosscher + + * testsuite/gcc.dg/20050811-1.c: Change -dv option to -graph option + to -fdump-rtl-all. + * testsuite/gcc.dg/pr37858.c: Remove -dv option. + +2012-11-26 Kyrylo Tkachov + + * lib/target-supports.exp (check_effective_target_arm_v8_vfp_ok): + New procedure. + (add_options_for_arm_v8_vfp): New procedure. + * gcc.target/arm/vrintaf32.c: New test. + * gcc.target/arm/vrintaf64.c: Likewise. + * gcc.target/arm/vrintmf32.c: Likewise. + * gcc.target/arm/vrintmf64.c: Likewise. + * gcc.target/arm/vrintpf32.c: Likewise. + * gcc.target/arm/vrintpf64.c: Likewise. + * gcc.target/arm/vrintrf32.c: Likewise. + * gcc.target/arm/vrintrf64.c: Likewise. + * gcc.target/arm/vrintxf32.c: Likewise. + * gcc.target/arm/vrintxf64.c: Likewise. + * gcc.target/arm/vrintzf32.c: Likewise. + * gcc.target/arm/vrintzf64.c: Likewise. + +2012-11-26 Janus Weil + + PR fortran/54997 + * gfortran.dg/warn_unused_function_2.f90: New. + +2012-11-26 Janus Weil + + PR fortran/54881 + * gfortran.dg/associated_6.f90: New. + * gfortran.dg/select_type_30.f03: New. + +2012-11-26 Jakub Jelinek + + PR tree-optimization/54471 + * gcc.dg/tree-ssa/vrp86.c: New test. + * gcc.c-torture/execute/pr54471.c: New test. + +2012-11-26 Hans-Peter Nilsson + + PR middle-end/55030 + * gcc.dg/guality/pr36728-1.c, gcc.dg/guality/pr36728-2.c (foo): Don't + use volatile asms, use plain asms. Where the output value for the + asm is unused, write a global variable. + +2012-11-25 Uros Bizjak + + * gcc.target/i386/sw-1.c (dg-options): Add -mtune=generic. + +2012-11-25 Thomas Koenig + + PR fortran/30146 + * gfortran.dg/do_check_7.f90: New test. + +2012-11-24 Paolo Carlini + + PR c++/55446 + * g++.dg/init/new41.C: New. + +2012-11-24 Thomas Koenig + + PR fortran/55314 + * gfortran.dg/allocate_error_4.f90: New test. + +2012-11-24 Hans-Peter Nilsson + + * lib/gcc-gdb-test.exp (gdb-test): Pass -- as first argument + to send_log. + +2012-11-23 Jakub Jelinek + + * lib/asan-dg.exp (asan_symbolize): Remove all "BFD: " prefixed lines + from the output. + + PR c++/54046 + * g++.dg/warn/Wreturn-type-8.C: New test. + + PR middle-end/55430 + * gcc.dg/pr55430.c: New test. + +2012-11-23 Kostya Serebryany + + * c-c++-common/asan/memcmp-1.c: Update to match the new libsanitizer. + +2012-11-23 Eric Botcazou + + * gnat.dg/discr40.ad[sb]: New test. + +2012-11-23 Eric Botcazou + + * gnat.dg/discr39.adb: New test. + +2012-11-23 Georg-Johann Lay + + PR testsuite/52641 + * gcc.dg/unroll_5.c: Add dg-require-effective-target int32plus. + * gcc.dg/pr55150-1.c: Same. + * gcc.dg/torture/pr54894.c: Add size32plus. + +2012-11-23 Jakub Jelinek + + PR sanitizer/55435 + * c-c++-common/asan/attrib-1.c: New test. + +2012-11-22 Ian Bolton + + * gcc.target/aarch64/builtin-bswap-1.c: New test. + * gcc.target/aarch64/builtin-bswap-2.c: New test. + +2012-11-22 Paolo Carlini + + PR c++/55432 + * g++.dg/cpp0x/constexpr-55432.C: New. + +2012-11-21 Janus Weil + + PR fortran/55352 + * gfortran.dg/namelist_76.f90: New. + +2012-11-21 Martin Jambor + + * gcc.dg/ipa/ipcp-agg-7.c: New test. + * gcc.dg/ipa/ipcp-agg-8.c: Likewise. + +2012-11-21 Martin Jambor + + PR tree-optimization/55260 + * g++.dg/torture/pr55260-2.C: New test. + +2012-11-21 Martin Jambor + + * gcc.dg/torture/pr55238.c: Remove hidden attribute. + +2012-11-21 Bin Cheng + + * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Skip on ARM Cortex-M0. + * gcc.dg/tree-ssa/vrp47.c: Ditto. + +2012-11-20 Uros Bizjak + + PR target/19398 + * gcc.target/i386/pr19398.c: New test. + +2012-11-20 Martin Jambor + + PR tree-optimization/55260 + * g++.dg/torture/pr55260-1.C: New test. + +2012-11-20 Sofiane Naci + + * gcc.target/aarch64/atomic-comp-swap-release-acquire.c: New testcase. + * gcc.target/aarch64/atomic-op-acq_rel.c: Likewise. + * gcc.target/aarch64/atomic-op-acquire.c: Likewise. + * gcc.target/aarch64/atomic-op-char.c: Likewise. + * gcc.target/aarch64/atomic-op-consume.c: Likewise. + * gcc.target/aarch64/atomic-op-imm.c: Likewise. + * gcc.target/aarch64/atomic-op-int.c: Likewise. + * gcc.target/aarch64/atomic-op-long.c: Likewise. + * gcc.target/aarch64/atomic-op-relaxed.c: Likewise. + * gcc.target/aarch64/atomic-op-release.c: Likewise. + * gcc.target/aarch64/atomic-op-seq_cst.c: Likewise. + * gcc.target/aarch64/atomic-op-short.c: Likewise. + +2012-11-20 Jakub Jelinek + + PR middle-end/55094 + * gcc.dg/pr55094.c: New test. + + PR rtl-optimization/54921 + * gcc.dg/pr54921.c: New test. + +2012-11-19 Richard Sandiford + + * gcc.target/i386/pr55359.c: New test. + +2012-11-19 Eric Botcazou + + * g++.dg/tls/thread_local-order1.C: Add dg-require-cxa-atexit. + * g++.dg/tls/thread_local3g.C: Likewise. + * g++.dg/tls/thread_local4g.C: Likewise. + * g++.dg/tls/thread_local5g.C: Likewise. + * g++.dg/tls/thread_local6g.C: Likewise. + * g++.dg/tls/thread_local-cse.C: XFAIL on Solaris 9. + * g++.dg/tls/thread_local2.C: Likewise. + * g++.dg/tls/thread_local2g.C: Likewise. + * g++.dg/tls/thread_local6.C: Likewise. + +2012-11-19 Aldy Hernandez + + * g++.dg/tm/pr51516.C: Adjust for uninstrumented code path. + * gcc.dg/tm/clone-1.c: New test. + +2012-11-19 Paolo Carlini + + PR c++/55368 + * g++.dg/parse/struct-5.C: New. + +2012-11-19 Tom de Vries + + PR rtl-optimization/55315 + * gcc.target/mips/pr55315.c: New test. + +2012-11-17 Jakub Jelinek + + PR tree-optimization/55236 + * gcc.dg/pr55236.c: New test. + + PR testsuite/55188 + * gcc.dg/pr19105.c: Accept also optimizing + -[2, 2] and -[3, 3] and -[4, 4] range tests together. + + * lib/asan-dg.exp (asan_symbolize): Prune BFD: prefixed error messages + from addr2line_output. Increment idx if asking for more than one + address in one object. + +2012-11-16 Jakub Jelinek + + PR tree-optimization/55329 + * g++.dg/opt/pr55329.C: New test. + +2012-11-16 Janus Weil + + PR fortran/55297 + * gfortran.dg/typebound_operator_18.f90: New. + +2012-11-16 Vladimir Makarov + + PR rtl-optimization/55330 + * gfortran.dg/pr55330.f90: New test. + +2012-11-16 Uros Bizjak + + * lib/gcc-dg.exp (cleanup-saved-temps): Add .mii to suffixes. + * gcc.dg/hoist-register-pressure-1.c: Cleanup hoist rtl dump. + * gcc.dg/hoist-register-pressure-2.c: Ditto. + * gcc.dg/hoist-register-pressure-3.c: Ditto. + * gcc.dg/tree-prof/peel-1.c: Cleanup loop2_unroll rtl dump. + * gcc.dg/tree-prof/unroll-1.c: Ditto. + +2012-11-16 Dodji Seketeli + + PR c++/54875 + * g++.dg/cpp0x/alias-decl-27.C: New test. + +2012-11-16 Jakub Jelinek + + PR c++/55337 + * g++.dg/template/alignof2.C: New test. + +2012-11-16 Uros Bizjak + + * g++.dg/mv1.C (dg-options): Add -march=x86-64. + * g++.dg/mv6.C (dg-options): Ditto. + +2012-11-16 Uros Bizjak + + * lib/target_suports.exp + (check_effective_target_has_w_floating_suffix): New procedure. + (check_effective_target_has_q_floating_suffix): Ditto. + * g++.dg/cpp0x/gnu_fext-numeric-literals.C: Add dg-error directive + for unsupported non-standard suffix on floating constant. + * g++.dg/cpp0x/std_fext-numeric-literals.C: Ditto. + +2012-11-14 Jakub Jelinek + + * lib/asan-dg.exp: New file. + * gcc.dg/asan/asan.exp: New file. + * g++.dg/dg.exp: Prune also asan tests. + * g++.dg/asan/asan.exp: New file. + * c-c++-common/asan/memcmp-1.c: New test. + +2012-11-14 Paolo Carlini + + PR c++/55323 + * g++.dg/cpp0x/vt-55323.C: New. + +2012-11-13 Sriraman Tallam + + * g++.dg/mv4.C: Add require ifunc. Change error message. + * g++.dg/mv5.C: Add require ifunc. + * g++.dg/mv6.C: Add require ifunc. + +2012-11-13 Martin Jambor + + PR tree-optimization/55253 + * gcc.dg/torture/pr55253.c: New test. + * gcc.dg/torture/pr55305.c: Likewise. + +2012-11-13 H.J. Lu + + PR middle-end/55142 + * gcc.target/i386/pr55142-1.c: New file. + * gcc.target/i386/pr55142-2.c: Likewise. + +2012-11-13 Dodji Seketeli + + PR c++/54466 + * g++.dg/cpp0x/alias-decl-26.C: New test file. + +2012-11-13 H.J. Lu + + * gcc.target/i386/avx256-unaligned-load-2.c: Requre !ia32 + instead of lp64. + * gcc.target/i386/avx256-unaligned-store-2.c: Likewise. + * gcc.target/i386/pr49715-2.c: Likewise. + * gcc.target/i386/retarg.c: Likewise. Scan both %rdi and %edi. + +2012-11-13 Jakub Jelinek + + PR tree-optimization/55281 + * gcc.dg/vect/fast-math-pr55281.c: New test. + * g++.dg/opt/pr55281.C: New test. + + PR rtl-optimization/54127 + * gcc.dg/torture/pr54127.c: New test. + +2012-11-12 Steven Bosscher + Jakub Jelinek + + PR rtl-optimization/51447 + * gcc.c-torture/execute/pr51447.c: New test. + +2012-11-12 Ian Bolton + + * gcc.target/aarch64/csinc-2.c: New test. + +2012-11-12 Ian Bolton + + * gcc.target/aarch64/cmn.c: New test. + * gcc.target/aarch64/adds.c: New test. + * gcc.target/aarch64/subs.c: New test. + +2012-11-12 Tobias Burnus + + PR fortran/55272 + * gfortran.dg/coarray_29_1.f90: New. + * gfortran.dg/coarray_29_2.f90: New. + +2012-11-12 Bin Cheng + + * gcc.dg/hoist-register-pressure-3.c: New test. + +2012-11-11 Oleg Endo + + * gcc.target/sh/sh4a-fprun.c: Add test_sinf and test_cosf noinline + wrappers around sinf and cosf. + +2012-11-11 H.J. Lu + + PR middle-end/55247 + PR middle-end/55259 + * gcc.target/i386/pr55247-2.c: New file. + +2012-11-11 Steven Bosscher + + PR middle-end/55263 + * g++.dg/pr55263.C: New test. + +2012-11-11 Martin Jambor + + PR tree-optimization/55238 + * testsuite/gcc.dg/torture/pr55238.c: New test. + +2012-11-11 John David Anglin + + * gcc.dg/torture/pr54920.c: Add "-fno-common" option on hppa*-*-hpux*. + * c-c++-common/torture/vector-subscript-1.c: Likewise. + * c-c++-common/torture/vector-subscript-2.c: Likewise. + +2012-11-10 Jan Hubicka + + * gcc.dg/tree-ssa/cunroll-1.c: Fix bogus testcase. + +2012-11-10 H.J. Lu + + * gcc.target/i386/pr55247.c: Require maybe_x32 target. Add + -mno-sse -mno-mmx to dg-options. Reformat. + +2012-11-10 David Edelsohn + + * c-c++-common/scal-to-vec2.c: Ignore non-standard ABI message. + * c-c++-common/vector-compare-1.c: Same. + * c-c++-common/vector-compare-2.c: Same. + * g++.dg/other/unused1.C: Skip on AIX. + * g++.dg/other/anon5.C: Allow Undefined to be capitalized. Ignore + extra message on AIX. + +2012-11-10 Uros Bizjak + + PR target/55247 + * gcc.target/i386/pr55247.c: New test. + +2012-11-09 Andrew Pinski + + * gcc.c-torture/execute/20121108-1.c: New test. + +2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> + + PR c++/54413 + * g++.dg/cpp0x/gnu_fext-numeric-literals.C: New. + * g++.dg/cpp0x/std_fext-numeric-literals.C: New. + * g++.dg/cpp0x/gnu_fno-ext-numeric-literals.C: New. + * g++.dg/cpp0x/std_fno-ext-numeric-literals.C: New. + +2012-11-09 Siddhesh Poyarekar + + * gcc.dg/Warray-bounds-3.c (bar): Keep array access within + bounds for ABDAY, DAY, ABMON, MON, AM_PM. + * gcc.dg/vect/pr22506.c (foo): Reduce loop iterations to within + array bounds. + * gcc.dg/vect/pr34005.c (XdmcpUnwrap): Likewise. + +2012-11-09 Aldy Hernandez + + * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path. + * g++.dg/tm/pr47530.C: Same. + +2012-11-09 Jason Merrill + + PR c++/54859 + * g++.dg/cpp0x/alias-decl-25.C: New. + + * g++.dg/abi/abi-tag1.C: New. + * g++.dg/abi/abi-tag2.C: New. + +2012-11-09 Vladimir Makarov + + PR rtl-optimization/55154 + * gcc.target/i386/pr55154.c: New test. + +2012-11-09 Vladimir Makarov + + PR rtl-optimization/55151 + * gcc.dg/pr55151.c: Move ... + * gcc.target/i386/pr55151.c: ... here. + +2012-11-09 Andrey Belevantsev + + PR rtl-optimization/54472 + * gcc.dg/pr54472.c: New test. + +2012-11-09 Eric Botcazou + + * gnat.dg/stack_check3.ad[sb]: New test. + +2012-11-08 Ian Lance Taylor + + * go.test/go-test.exp (go-gc-tests): Handle runoutput test type + with arguments. Handle errorcheckoutput and rundir test types. + +2012-11-08 Steven Bosscher + + PR tree-optimization/55191 + * gcc.dg/pr55191.c: New test. + +2012-11-08 Jakub Jelinek + + PR debug/54499 + * g++.dg/debug/pr54499.C: New test. + +2012-11-08 Jan Hubicka + + PR middle-end/48636 + * gcc.dg/winline-3.c: Update. + +2012-11-08 Martin Jambor + + * gfortran.dg/ipcp-array-1.f90: New test. + +2012-11-08 Florian Weimer + + * g++.old-deja/g++.abi/cxa_vec.C: Fix typo in comment. + +2012-11-07 Vladimir Makarov + + PR rtl-optimization/55151 + * gcc.dg/pr55151.c: Use ia32 instead of x86_64. + +2012-11-07 Uros Bizjak + + * gcc.dg/tree-ssa/cunroll-1.c: Scan cunrolli dump. + +2012-11-07 Eric Botcazou + + * gcc.c-torture/compile/20121107-1.c: New test. + +2012-11-07 Vladimir Makarov + + PR rtl-optimization/55151 + * gcc.dg/pr55151.c: Compile it only for x86_64. + +2012-11-07 Vladimir Makarov + + PR rtl-optimization/55122 + * gcc.dg/pr55122.c: New test. + +2012-11-07 David Edelsohn + + * gcc.target/powerpc/pr46728-[1234578].c: Tighten regex to ignore + word powerpc. + * gcc.target/powerpc/vsx-mass-1.c: Escape [ and ] in regex. + * gcc.target/powerpc/loop_align.c: Skip on AIX. + * gcc.target/powerpc/ppc-pow.c: Allow dot symbols in branch. + * gcc.target/powerpc/tfmode_off.c: Skip on AIX. + +2012-11-07 Manuel LÁpez-IbÁÁez + + PR c/53063 + * gcc.dg/warn-nsstring.c: Use -Wformat explicitly. + +2012-11-07 Manuel LÁpez-IbÁÁez + + PR c/51294 + * c-c++-common/pr51294.c: New. + +2012-11-07 Martin Jambor + + PR tree-optimization/53787 + * gcc.dg/ipa/ipa-5.c: Adjust. + * gcc.dg/ipa/ipcp-agg-1.c: New test. + * gcc.dg/ipa/ipcp-agg-2.c: Likewise. + * gcc.dg/ipa/ipcp-agg-3.c: Likewise. + * gcc.dg/ipa/ipcp-agg-4.c: Likewise. + * gcc.dg/ipa/ipcp-agg-5.c: Likewise. + * gcc.dg/ipa/ipcp-agg-6.c: Likewise. + * gfortran.dg/pr48636.f90: Add -fno-ipa-cp. + * gfortran.dg/pr48636-2.f90: New test. + * gfortran.dg/pr53787.f90: Likewise. + +2012-11-07 Paolo Carlini + + PR c++/55226 + Revert: + 2012-10-23 Paolo Carlini + + PR c++/54922 + * g++.dg/cpp0x/constexpr-union4.C: New. + +2012-11-07 Yufeng Zhang + + * gcc.target/aarch64/dwarf-cfa-reg.c: New test. + +2012-11-07 Kaz Kojima + + PR target/49220 + * gcc.c-torture/compile/pr49220.c: New test. + +2012-11-07 Florian Weimer + + * g++.dg/init/new40.C: New. + +2012-11-07 Jakub Jelinek + + PR debug/54693 + * gcc.dg/guality/pr54693-2.c: New test. + +2012-11-06 Andrew Pinski + + * gcc.target/aarch64/vect-fmaxv-fminv-compile.c: Add + -fno-vect-cost-model. + +2012-11-06 Aldy Hernandez + + * c-c++-common/tm/trxn-expr-3.c: Adjust for uninstrumented code path. + * gcc.dg/tm/debug-1.c: Same. + * gcc.dg/tm/irrevocable-3.c: Same. + * gcc.dg/tm/irrevocable-4.c: Same. + * gcc.dg/tm/memopt-10.c: Same. + * gcc.dg/tm/memopt-11.c: Same. + * gcc.dg/tm/props-4.c: Same. + * gcc.dg/tm/wrap-3.c: Same. + * gcc.dg/tm/wrap-4.c: Same. + +2012-11-06 Andrew Pinski + + * g++.dg/abi/aarch64_guard1.C: Add -fno-section-anchors. + +2012-11-06 Jan Hubicka + + * gcc.dg/tree-ssa/loop-1.c: Make to look like a good unroling + candidate still. + * gcc.dg/tree-ssa/loop-23.c: Likewise. + * gcc.dg/tree-ssa/cunroll-1.c: Unrolling now happens early. + * gcc.dg/tree-prof/unroll-1.c: Remove confused dg-options. + +2012-11-06 David Edelsohn + + * const-uniq-1.c: Expand regex to match AIX XCOFF labels. + +2012-11-06 Uros Bizjak + + PR middle-end/41993 + * gcc.dg/torture/pr41993.c: New test. + +2012-11-06 Jan Hubicka + + * gcc.target/i386/l_fma_float_?.c: Update. + * gcc.target/i386/l_fma_double_?.c: Update. + +2012-11-06 Oleg Endo + + PR target/54089 + * gcc.target/sh/pr54089-8.c: New. + * gcc.target/sh/pr54089-9.c: New. + +2012-11-06 Vladimir Yakovlev + + PR target/47440 + * gcc.target/i386/avx-vzeroupper-5.c: Changed scan-assembler-times. + * gcc.target/i386/avx-vzeroupper-8.c: Likewise. + * gcc.target/i386/avx-vzeroupper-9.c: Likewise. + * gcc.target/i386/avx-vzeroupper-10.c: Likewise. + * gcc.target/i386/avx-vzeroupper-11.c: Likewise. + * gcc.target/i386/avx-vzeroupper-12.c: Likewise. + * gcc.target/i386/avx-vzeroupper-19.c: Likewis. + * gcc.target/i386/avx-vzeroupper-27.c: New. + +2012-11-06 Janus Weil + + PR fortran/54917 + * gfortran.dg/transfer_class_1.f90: New. + * gfortran.dg/transfer_class_2.f90: New. + +2012-11-05 Sriraman Tallam + + * testsuite/g++.dg/mv1.C: New test. + * testsuite/g++.dg/mv2.C: New test. + * testsuite/g++.dg/mv3.C: New test. + * testsuite/g++.dg/mv4.C: New test. + * testsuite/g++.dg/mv5.C: New test. + * testsuite/g++.dg/mv6.C: New test. + +2012-11-05 Hans-Peter Nilsson + + PR testsuite/55186 + * gcc.dg/const-uniq-1.c (a): Increase length four times. + +2012-11-05 Jack Howarth + + * gcc.dg/torture/pr53922.c: Use -Wl,-undefined,dynamic_lookup on + darwin. + +2012-11-05 Eric Botcazou + + * g++.dg/torture/20121105-1.C: New test. + +2012-11-05 Andreas Schwab + + * gcc.dg/torture/fp-compare.c: New testcase. + +2012-11-05 Jan Hubicka + + * gcc.dg/const-1.c: Update. + * gcc.dg/pure-1.c: Update. + +2012-11-05 Vladimir Makarov + + PR rtl-optimization/55151 + * gcc.dg/pr55151.c: New test. + +2012-11-05 Jakub Jelinek + + PR debug/54970 + PR debug/54971 + * gcc.dg/guality/pr54970.c: Use NOP instead of "NOP" in inline-asm. + +2012-11-05 Uros Bizjak + + PR testsuite/51128 + * gcc.dg/torture/pr55018.c: Skip if -fno-fat-lto-objects was passed. + +2012-11-05 Jan Hubicka + + * gcc.dg/autopar/pr49960.c: Fix testcase. + +2012-11-05 Uros Bizjak + + * gcc.dg/tree-ssa/cunroll-9.c: Dump cunrolli details. + Fix scan-tree-dump-times directive. + +2012-11-04 Janus Weil + + PR fortran/55199 + * gfortran.dg/associate_12.f90: New. + +2012-11-03 Jack Howarth + + PR target/54255 + * lib/target-supports.exp (check_effective_target_masm_intel): New + proc. + * gcc.target/i386/asm-dialect-1.c: Use dg-require-effective-target + masm_intel. + +2012-11-03 H.J. Lu + Jack Howarth + + * lib/target-supports.exp (check_effective_target_maybe_x32): New proc. + * gcc.target/i386/pr54457.c: Use dg-require-effective-target maybe_x32. + * gcc.target/i386/pr53249.c: Likewise. + +2012-11-03 Andrew Pinski + + * gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to + call abort1 so that cross jumping does not happen. + +2012-11-03 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-18.c: New. + * gcc.target/sh/pr51244-19.c: New. + +2012-11-03 Richard Sandiford + + * gcc.target/mips/octeon-exts-7.c (bar): Make sure the extraction of + b requires a 64-bit operation followed by a truncation. + +2012-11-02 Jan Hubicka + + * gcc.dg/tree-ssa/loop-38.c: Correct testcase. + +2012-11-02 Michael Meissner + + * gcc.target/powerpc/pr48258-2.c: Simplfy the acceptance + conditions to verify the reduction code is vectorized. + + * gcc.target/powerpc/pr46728-1.c: Pass -fno-ident to eliminate failures + in case 'pow', such as 'powerpc' is used in the compiler version name. + * gcc.target/powerpc/pr46728-2.c: Likewise. + * gcc.target/powerpc/pr46728-3.c: Likewise. + * gcc.target/powerpc/pr46728-4.c: Likewise. + * gcc.target/powerpc/pr46728-5.c: Likewise. + * gcc.target/powerpc/pr46728-7.c: Likewise. + * gcc.target/powerpc/pr46728-8.c: Likewise. + * gcc/testsuite/gcc.dg/pr46728-6.c: Likewise. + +2012-11-02 Jan Hubicka + + * gcc.dg/tree-ssa/loop-38.c: New testcase. + +2012-11-02 Jan Hubicka + + * gcc.dg/tree-ssa/cunroll-10.c: New testcase. + * gcc.dg/tree-ssa/cunroll-9.c: New testcase. + +2012-11-02 Vladimir Makarov + + PR middle-end/55130 + * gcc.target/i386/pr55130.c: New test. + +2012-11-02 Jakub Jelinek + + PR target/55147 + * gcc.target/i386/pr55147.c: New test. + +2012-11-01 David Edelsohn + + * gfortran.dg/default_format_1.f90: XFAIL on AIX. + * gfortran.dg/default_format_denormal_1.f90: Same. + +2012-11-01 Marc Glisse + + PR middle-end/55001 + * g++.dg/ext/vector19.C: Remove target restrictions. + * gcc.dg/fold-compare-7.c: New testcase. + +2012-11-01 Oleg Endo + + PR target/55160 + * gcc.target/sh/pr55160.c: New. + +2012-11-01 David Edelsohn + + * gcc.target/powerpc/vsx-mass-1.c: Check for dot symbols in + scan-assembler regex. + +2012-11-01 Vladimir Makarov + + PR middle-end/55150 + * gcc.dg/pr55150.c: Rename to gcc.dg/pr55150-1.c. + * gcc.dg/pr55150-2.c: New test. + +2012-11-01 Sharad Singhai + + * testsuite/gcc.dg/plugin/selfassign.c: Add opgtroup_flags initializer. + * testsuite/gcc.dg/plugin/one_time_plugin.c: Likewise. + * testsuite/g++.dg/plugin/selfassign.c: Likewise. + * testsuite/g++.dg/plugin/dumb_plugin.c: Likewise. + +2012-10-31 Dehao Chen + + * g++.dg/debug/dwarf2/block.C: New testcase. + +2012-10-31 Jan Hubicka + + * gcc.dg/pr44974.c: Add noinline. + +2012-10-31 Janus Weil + + PR fortran/53718 + * gfortran.dg/class_54.f90: New. + +2012-10-31 Steven Bosscher + Jakub Jelinek + + PR tree-optimization/55018 + * gcc.dg/torture/pr55018.c: New test. + +2012-10-31 Paolo Carlini + + PR c++/54583 + * g++.dg/ext/vla13.C: New. + +2012-10-31 Vladimir Makarov + + PR middle-end/55150 + * gcc.dg/pr55150.c: New test. + +2012-10-31 Tobias Burnus + + PR fortran/55134 + * gfortran.dg/associate_11.f90: New. + +2012-10-31 Dodji Seketeli + + PR c++/54955 + * g++.dg/cpp0x/gen-attrs-48-2.C: New test. + +2012-10-31 Jakub Jelinek + + PR tree-optimization/19105 + PR tree-optimization/21643 + PR tree-optimization/46309 + * gcc.dg/pr19105.c: New test. + * gcc.dg/pr21643.c: New test. + * gcc.dg/pr46309-2.c: New test. + * gcc.c-torture/execute/pr46309.c: New test. + +2012-10-31 Alan Modra + + * gcc.target/powerpc/dimode_off.c: New. + * gcc.target/powerpc/timode_off.c: New. + * gcc.target/powerpc/dfmode_off.c: New. + * gcc.target/powerpc/tfmode_off.c: New. + +2012-10-30 H.J. Lu + + PR rtl-optimization/55093 + * gcc.target/i386/pr55093.c: New file. + +2012-10-30 H.J. Lu + + * gcc.target/i386/pr55116.c: Renamed to ... + * gcc.target/i386/pr55116-1.c: This. + +2012-10-30 H.J. Lu + + * gcc.target/i386/pr55116-2.c: New file. + +2012-10-30 Richard Biener + + * gcc.dg/vect/slp-perm-2.c: Adjust. + +2012-10-30 Richard Biener + + PR tree-optimization/55111 + * gcc.dg/torture/pr55111.c: New testcase. + +2012-10-30 Oleg Endo + + PR target/53988 + * gcc.target/sh/pr53988.c: New. + +2012-10-30 Bin Cheng + + PR target/54989 + * gcc.dg/hoist-register-pressure-1.c: Rename from + hoist-register-pressure.c. Add nonpic condition. + * gcc.dg/hoist-register-pressure-2.c: New testcase. + +2012-10-29 Jonathan Wakely + + PR c++/54930 + * gcc.dg/Wreturn-local-addr.c: New. + * g++.dg/warn/Wno-return-local-addr.C: New. + * g++.dg/warn/Wreturn-local-addr.C: New. + +2012-10-29 H.J. Lu + + PR middle-end/55116 + * gcc.target/i386/pr55116.c: New file. + +2012-10-29 Manuel LÁpez-IbÁÁez + + PR c/53066 + * gcc.dg/Wshadow-4.c: New. + * gcc.dg/Wshadow-4.h: New. + +2012-10-29 Alexandre Oliva + + PR debug/54693 + * gcc.dg/guality/pr54693.c: New. + +2012-10-29 Marc Glisse + + PR middle-end/55027 + * gcc.dg/pr55027.c: New testcase. + +2012-10-29 Jan Hubicka + + * gcc.dg/ipa/inline-6.c: New testcase. + +2012-10-29 Vladimir Makarov + + PR rtl-optimization/55106 + * g++.dg/pr55106.C: New. + +2012-10-29 Richard Guenther + + PR middle-end/53695 + * gcc.dg/torture/pr53695.c: New testcase. + +2012-10-28 Jan Hubicka + + * gcc.dg/ipa/inlinehint-3.c: New testcase. + +2012-10-28 Tobias Burnus + + PR fortran/54958 + * gfortran.dg/do_check_6.f90: New. + +2012-10-27 Dominique Dhumieres + Jack Howarth + + PR target/54404 + * g++.dg/other/darwin-cfstring1.C: Add -ftrack-macro-expansion=0 + to dg-options. + * obj-c++.dg/strings/const-cfstring-2.mm: Likewise. + +2012-10-27 Uros Bizjak + + PR target/34283 + * gcc.target/i386/pr34283.c: New test. + +2012-10-26 Jakub Jelinek + + PR c++/55081 + * g++.dg/opt/pr55081.C: New test. + + PR debug/54970 + PR debug/54971 + * gcc.dg/guality/pr54970.c: New test. + +2012-10-26 Paolo Carlini + + PR c++/54984 + * g++.dg/template/new11.C: New. + +2012-10-26 Richard Biener + + PR middle-end/54824 + * gcc.dg/torture/pr54824.c: New testcase. + +2012-10-26 Alexander Ivchenko + + * gcc.target/i386/fxsave-1.c: New. + * gcc.target/i386/fxsave64-1.c: Ditto. + * gcc.target/i386/fxrstor-1.c: Ditto. + * gcc.target/i386/fxrstor64-1.c: Ditto. + * gcc.target/i386/xsave-1.c: Ditto. + * gcc.target/i386/xsave64-1.c: Ditto. + * gcc.target/i386/xrstor-1.c: Ditto. + * gcc.target/i386/xrstor64-1.c: Ditto. + * gcc.target/i386/xsaveopt-1.c: Ditto. + * gcc.target/i386/xsaveopt64-1.c: Ditto. + * gcc.target/i386/sse-12.c: Add -mfxsr, -mxsaveopt. + * gcc.target/i386/sse-13.c: Ditto. + * gcc.target/i386/sse-14.c: Ditto. + * gcc.target/i386/sse-22.c: Ditto. + * gcc.target/i386/sse-23.c: Ditto. + * g++.dg/other/i386-2.C: Ditto. + * g++.dg/other/i386-3.C: Ditto. + +2012-10-25 Jan Hubicka + + * gcc.dg/tree-ssa/cunroll-4.c: Update; we now remove the loop + at ivcanon time. + +2012-10-25 Paolo Carlini + + PR c++/53761 + * g++.dg/ext/transparent-union.C: New. + +2012-10-25 Marc Glisse + + PR c++/54427 + * g++.dg/ext/vector19.C: New testcase. + +2012-10-25 Richard Biener + + PR tree-optimization/54902 + * g++.dg/torture/pr54902.C: New testcase. + +2012-10-25 Paolo Carlini + + PR c++/34892 + * g++.dg/template/crash114.C: New. + +2012-10-24 H.J. Lu + + PR bootstrap/55049 + * gcc.target/i386/pr55049-1.c: New test. + +2012-10-24 Janus Weil + + PR fortran/55037 + * gfortran.dg/class_dummy_4.f03: New. + +2012-10-24 Jakub Jelinek + + PR rtl-optimization/55010 + * gcc.dg/pr55010.c: New test. + + PR debug/54828 + * g++.dg/debug/pr54828.C: New test. + +2012-10-23 Dominique d'Humieres + + * gcc.dg/vect/vect-82_64.c: Adjust the dump file. + * gcc.dg/vect/vect-83_64.c: Likewise. + +2012-10-23 Paolo Carlini + + PR c++/54922 + * g++.dg/cpp0x/constexpr-union4.C: New. + +2012-10-23 Jeff Law + + * gcc.c-torture/execute/pr54985.c: New test. + +2012-10-23 Paul Koning + + PR debug/54508 + * g++.dg/debug/dwarf2/pr54508.C: New. + +2012-10-23 Jakub Jelinek + + PR c++/54844 + * g++.dg/template/sizeof14.C: New test. + +2012-10-23 Ian Bolton + Jim MacArthur + Chris Schlumberger-Socha + Marcus Shawcroft + Nigel Stephens + Ramana Radhakrishnan + Richard Earnshaw + Sofiane Naci + Stephen Thomas + Tejas Belagod + Yufeng Zhang + + * lib/target-supports.exp + (check_profiling_available): Add AArch64. + (check_effective_target_vect_int): Likewise. + (check_effective_target_vect_shift): Likewise. + (check_effective_target_vect_float): Likewise. + (check_effective_target_vect_double): Likewise. + (check_effective_target_vect_widen_mult_qi_to_hi): Likewise. + (check_effective_target_vect_widen_mult_hi_to_si): Likewise. + (check_effective_target_vect_pack_trunc): Likewise. + (check_effective_target_vect_unpack): Likewise. + (check_effective_target_vect_hw_misalign): Likewise. + (check_effective_target_vect_short_mult): Likewise. + (check_effective_target_vect_int_mult): Likewise. + (check_effective_target_vect_stridedN): Likewise. + (check_effective_target_sync_int_long): Likewise. + (check_effective_target_sync_char_short): Likewise. + (check_vect_support_and_set_flags): Likewise. + (check_effective_target_aarch64_tiny): New. + (check_effective_target_aarch64_small): New. + (check_effective_target_aarch64_large): New. + * g++.dg/other/PR23205.C: Enable aarch64. + * g++.dg/other/pr23205-2.C: Likewise. + * g++.old-deja/g++.abi/ptrmem.C: Likewise. + * gcc.c-torture/execute/20101011-1.c: Likewise. + * gcc.dg/20020312-2.c: Likewise. + * gcc.dg/20040813-1.c: Likewise. + * gcc.dg/builtin-apply2.c: Likewise. + * gcc.dg/stack-usage-1.c: Likewise. + +2012-10-23 Ian Bolton + Jim MacArthur + Chris Schlumberger-Socha + Marcus Shawcroft + Nigel Stephens + Ramana Radhakrishnan + Richard Earnshaw + Sofiane Naci + Stephen Thomas + Tejas Belagod + Yufeng Zhang + + * gcc.target/aarch64/aapcs/aapcs64.exp: New file. + * gcc.target/aarch64/aapcs/abitest-2.h: New file. + * gcc.target/aarch64/aapcs/abitest-common.h: New file. + * gcc.target/aarch64/aapcs/abitest.S: New file. + * gcc.target/aarch64/aapcs/abitest.h: New file. + * gcc.target/aarch64/aapcs/func-ret-1.c: New file. + * gcc.target/aarch64/aapcs/func-ret-2.c: New file. + * gcc.target/aarch64/aapcs/func-ret-3.c: New file. + * gcc.target/aarch64/aapcs/func-ret-3.x: New file. + * gcc.target/aarch64/aapcs/func-ret-4.c: New file. + * gcc.target/aarch64/aapcs/func-ret-4.x: New file. + * gcc.target/aarch64/aapcs/ice_1.c: New file. + * gcc.target/aarch64/aapcs/ice_2.c: New file. + * gcc.target/aarch64/aapcs/ice_3.c: New file. + * gcc.target/aarch64/aapcs/ice_4.c: New file. + * gcc.target/aarch64/aapcs/ice_5.c: New file. + * gcc.target/aarch64/aapcs/macro-def.h: New file. + * gcc.target/aarch64/aapcs/test_1.c: New file. + * gcc.target/aarch64/aapcs/test_10.c: New file. + * gcc.target/aarch64/aapcs/test_11.c: New file. + * gcc.target/aarch64/aapcs/test_12.c: New file. + * gcc.target/aarch64/aapcs/test_13.c: New file. + * gcc.target/aarch64/aapcs/test_14.c: New file. + * gcc.target/aarch64/aapcs/test_15.c: New file. + * gcc.target/aarch64/aapcs/test_16.c: New file. + * gcc.target/aarch64/aapcs/test_17.c: New file. + * gcc.target/aarch64/aapcs/test_18.c: New file. + * gcc.target/aarch64/aapcs/test_19.c: New file. + * gcc.target/aarch64/aapcs/test_2.c: New file. + * gcc.target/aarch64/aapcs/test_20.c: New file. + * gcc.target/aarch64/aapcs/test_21.c: New file. + * gcc.target/aarch64/aapcs/test_22.c: New file. + * gcc.target/aarch64/aapcs/test_23.c: New file. + * gcc.target/aarch64/aapcs/test_24.c: New file. + * gcc.target/aarch64/aapcs/test_25.c: New file. + * gcc.target/aarch64/aapcs/test_26.c: New file. + * gcc.target/aarch64/aapcs/test_3.c: New file. + * gcc.target/aarch64/aapcs/test_4.c: New file. + * gcc.target/aarch64/aapcs/test_5.c: New file. + * gcc.target/aarch64/aapcs/test_6.c: New file. + * gcc.target/aarch64/aapcs/test_7.c: New file. + * gcc.target/aarch64/aapcs/test_8.c: New file. + * gcc.target/aarch64/aapcs/test_9.c: New file. + * gcc.target/aarch64/aapcs/test_align-1.c: New file. + * gcc.target/aarch64/aapcs/test_align-2.c: New file. + * gcc.target/aarch64/aapcs/test_align-3.c: New file. + * gcc.target/aarch64/aapcs/test_align-4.c: New file. + * gcc.target/aarch64/aapcs/test_complex.c: New file. + * gcc.target/aarch64/aapcs/test_int128.c: New file. + * gcc.target/aarch64/aapcs/test_quad_double.c: New file. + * gcc.target/aarch64/aapcs/type-def.h: New file. + * gcc.target/aarch64/aapcs/va_arg-1.c: New file. + * gcc.target/aarch64/aapcs/va_arg-10.c: New file. + * gcc.target/aarch64/aapcs/va_arg-11.c: New file. + * gcc.target/aarch64/aapcs/va_arg-12.c: New file. + * gcc.target/aarch64/aapcs/va_arg-2.c: New file. + * gcc.target/aarch64/aapcs/va_arg-3.c: New file. + * gcc.target/aarch64/aapcs/va_arg-4.c: New file. + * gcc.target/aarch64/aapcs/va_arg-5.c: New file. + * gcc.target/aarch64/aapcs/va_arg-6.c: New file. + * gcc.target/aarch64/aapcs/va_arg-7.c: New file. + * gcc.target/aarch64/aapcs/va_arg-8.c: New file. + * gcc.target/aarch64/aapcs/va_arg-9.c: New file. + * gcc.target/aarch64/aapcs/validate_memory.h: New file. + * gcc.target/aarch64/aarch64.exp: New file. + * gcc.target/aarch64/adc-1.c: New file. + * gcc.target/aarch64/adc-2.c: New file. + * gcc.target/aarch64/asm-1.c: New file. + * gcc.target/aarch64/clrsb.c: New file. + * gcc.target/aarch64/clz.c: New file. + * gcc.target/aarch64/ctz.c: New file. + * gcc.target/aarch64/csinc-1.c: New file. + * gcc.target/aarch64/csinv-1.c: New file. + * gcc.target/aarch64/csneg-1.c: New file. + * gcc.target/aarch64/extend.c: New file. + * gcc.target/aarch64/fcvt.x: New file. + * gcc.target/aarch64/fcvt_double_int.c: New file. + * gcc.target/aarch64/fcvt_double_long.c: New file. + * gcc.target/aarch64/fcvt_double_uint.c: New file. + * gcc.target/aarch64/fcvt_double_ulong.c: New file. + * gcc.target/aarch64/fcvt_float_int.c: New file. + * gcc.target/aarch64/fcvt_float_long.c: New file. + * gcc.target/aarch64/fcvt_float_uint.c: New file. + * gcc.target/aarch64/fcvt_float_ulong.c: New file. + * gcc.target/aarch64/ffs.c: New file. + * gcc.target/aarch64/fmadd.c: New file. + * gcc.target/aarch64/fnmadd-fastmath.c: New file. + * gcc.target/aarch64/frint.x: New file. + * gcc.target/aarch64/frint_double.c: New file. + * gcc.target/aarch64/frint_float.c: New file. + * gcc.target/aarch64/index.c: New file. + * gcc.target/aarch64/mneg-1.c: New file. + * gcc.target/aarch64/mneg-2.c: New file. + * gcc.target/aarch64/mneg-3.c: New file. + * gcc.target/aarch64/mnegl-1.c: New file. + * gcc.target/aarch64/mnegl-2.c: New file. + * gcc.target/aarch64/narrow_high-intrinsics.c: New file. + * gcc.target/aarch64/pic-constantpool1.c: New file. + * gcc.target/aarch64/pic-symrefplus.c: New file. + * gcc.target/aarch64/predefine_large.c: New file. + * gcc.target/aarch64/predefine_small.c: New file. + * gcc.target/aarch64/predefine_tiny.c: New file. + * gcc.target/aarch64/reload-valid-spoff.c: New file. + * gcc.target/aarch64/scalar_intrinsics.c: New file. + * gcc.target/aarch64/table-intrinsics.c: New file. + * gcc.target/aarch64/tst-1.c: New file. + * gcc.target/aarch64/vect-abs-compile.c: New file. + * gcc.target/aarch64/vect-abs.c: New file. + * gcc.target/aarch64/vect-abs.x: New file. + * gcc.target/aarch64/vect-compile.c: New file. + * gcc.target/aarch64/vect-faddv-compile.c: New file. + * gcc.target/aarch64/vect-faddv.c: New file. + * gcc.target/aarch64/vect-faddv.x: New file. + * gcc.target/aarch64/vect-fmax-fmin-compile.c: New file. + * gcc.target/aarch64/vect-fmax-fmin.c: New file. + * gcc.target/aarch64/vect-fmax-fmin.x: New file. + * gcc.target/aarch64/vect-fmaxv-fminv-compile.c: New file. + * gcc.target/aarch64/vect-fmaxv-fminv.x: New file. + * gcc.target/aarch64/vect-fp-compile.c: New file. + * gcc.target/aarch64/vect-fp.c: New file. + * gcc.target/aarch64/vect-fp.x: New file. + * gcc.target/aarch64/vect-mull-compile.c: New file. + * gcc.target/aarch64/vect-mull.c: New file. + * gcc.target/aarch64/vect-mull.x: New file. + * gcc.target/aarch64/vect.c: New file. + * gcc.target/aarch64/vect.x: New file. + * gcc.target/aarch64/vector_intrinsics.c: New file. + * gcc.target/aarch64/vfp-1.c: New file. + * gcc.target/aarch64/volatile-bitfields-1.c: New file. + * gcc.target/aarch64/volatile-bitfields-2.c: New file. + * gcc.target/aarch64/volatile-bitfields-3.c: New file. + * g++.dg/abi/aarch64_guard1.C: New file. + +2012-10-23 Jakub Jelinek + + PR c++/54988 + * c-c++-common/pr54988.c: New test. + +2012-10-23 Jan Hubicka + + * gcc.dg/tree-prof/peel-1.c: New testcase. + +2012-10-23 Dominique d'Humieres + + PR gcc/52945 + * gcc.dg/lto/pr52634_0.c: Skip the test on Darwin. + +2012-10-23 Joseph Myers + + * gcc.dg/c99-predef-1.c: New test. + * gcc.dg/cpp/cmdlne-dU-1.c, gcc.dg/cpp/cmdlne-dU-2.c, + gcc.dg/cpp/cmdlne-dU-3.c, gcc.dg/cpp/cmdlne-dU-4.c, + gcc.dg/cpp/cmdlne-dU-5.c, gcc.dg/cpp/cmdlne-dU-6.c, + gcc.dg/cpp/cmdlne-dU-7.c, gcc.dg/cpp/cmdlne-dU-8.c, + gcc.dg/cpp/cmdlne-dU-9.c, gcc.dg/cpp/cmdlne-dU-10.c, + gcc.dg/cpp/cmdlne-dU-11.c, gcc.dg/cpp/cmdlne-dU-12.c, + gcc.dg/cpp/cmdlne-dU-13.c, gcc.dg/cpp/cmdlne-dU-14.c, + gcc.dg/cpp/cmdlne-dU-15.c, gcc.dg/cpp/cmdlne-dU-16.c, + gcc.dg/cpp/cmdlne-dU-17.c, gcc.dg/cpp/cmdlne-dU-18.c, + gcc.dg/cpp/cmdlne-dU-19.c, gcc.dg/cpp/cmdlne-dU-20.c, + gcc.dg/cpp/cmdlne-dU-21.c, gcc.dg/cpp/cmdlne-dU-22.c, + gcc.dg/cpp/mi5.c, gcc.dg/cpp/multiline.c: Add -nostdinc to dg-options. + +2012-10-23 Marc Glisse + + * gcc.dg/tree-ssa/foldconst-6.c: New testcase. + +2012-10-23 Jan Hubicka + + PR middle-end/54937 + * gcc.c-torture/execute/pr54937.c: New testcase. + * gcc.dg/tree-ssa/cunroll-2.c: Update. + +2012-10-23 Jan Hubicka + + PR middle-end/54967 + * gfortran.dg/pr54967.f90: New testcase. + +2012-10-23 Terry Guo + + PR target/55019 + * gcc.dg/pr55019.c: New. + +2012-10-22 Bill Schmidt + + PR tree-optimization/55008 + * gcc.dg/tree-ssa/pr55008.c: New test. + +2012-10-22 Richard Biener + + PR tree-optimization/55011 + * gcc.dg/torture/pr55011.c: New testcase. + +2012-10-22 Greta Yorsh + + * gcc.target/arm/pr40457-1.c: Adjust expected output. + * gcc.target/arm/pr40457-2.c: Likewise. + * gcc.target/arm/pr40457-3.c: Likewise. + +2012-10-22 Eric Botcazou + + * gnat.dg/specs/limited_with4.ads: New test. + * gnat.dg/specs/limited_with4_pkg.ads: New helper. + +2012-10-22 Eric Botcazou + + * gnat.dg/modular4.adb: New test. + * gnat.dg/modular4_pkg.ads: New helper. + +2012-10-21 Eric Botcazou + + * gnat.dg/specs/atomic1.ads: XFAIL on MIPS. + * gnat.dg/specs/addr1.ads: Likewise. + +2012-10-21 Hans-Peter Nilsson + + * gcc.dg/webizer.c (main): Add missing exit call. + +2012-10-21 Thomas KÁnig + + PR fortran/54465 + * gfortran.dg/wextra_1.f: New test. + +2012-10-20 Jan Hubicka + + * gcc.dg/tree-prof/unroll-1.c: New testcase. + +2012-10-19 Janus Weil + + PR fortran/54224 + * gfortran.dg/warn_unused_function.f90: New. + +2012-10-19 Greta Yorsh + + * lib/target-supports.exp + (check_effective_target_arm_prefer_ldrd_strd): New procedure. + +2012-10-19 Richard Guenther + + PR tree-optimization/54981 + * gcc.dg/pr54981.c: New testcase. + +2012-10-19 Zhenqiang Chen + + PR target/54892 + * gcc.target/arm/pr54892.c: New. + +2012-10-19 Bin Cheng + + * testsuite/gcc.dg/hoist-register-pressure.c: New test. + +2012-10-18 Paolo Carlini + + PR c++/54501 + * g++.dg/init/array30.C: New. + * g++.dg/init/array31.C: Likewise. + +2012-10-18 Tobias Burnus + + PR fortran/54884 + * gfortran.dg/public_private_module_7.f90: New. + +2012-10-18 Paolo Carlini + + PR c++/29633 + * g++.dg/template/pr29633.C: New. + +2012-10-18 Eric Botcazou + + * gnat.dg/loop_optimization13.ad[sb]: New test. + * gnat.dg/loop_optimization13_pkg.ads: New helper. + +2012-10-18 Matthew Gretton-Dann + + * gcc.target/arm/neon/vfmaQf32.c: New testcase. + * gcc.target/arm/neon/vfmaf32.c: Likewise. + * gcc.target/arm/neon/vfmsQf32.c: Likewise. + * gcc.target/arm/neon/vfmsf32.c: Likewise. + +2012-10-18 Matthew Gretton-Dann + + * gcc.target/arm/ftest-armv8a-arm.c: New testcase. + * gcc.target/arm/ftest-armv8a-thumb.c: Likewise. + * gcc.target/arm/ftest-support-arm.h (feature_matrix): Add ARMv8-A row. + * gcc.target/arm/ftest-support-thumb.h (feature_matrix): Likewise. + * gcc.target/arm/ftest-support.h (architecture): Add ARMv8-A. + * lib/target-supports.exp: Add ARMv8-A architecture expectation. + +2012-10-16 Jan Hubicka + + * gcc.target/i386/l_fma_float_?.c: Update. + * gcc.target/i386/l_fma_double_?.c: Update. + * gfortran.dg/do_1.f90: XFAIL + * gcc.dg/tree-ssa/cunroll-1.c: New testcase. + * gcc.dg/tree-ssa/cunroll-2.c: New testcase. + * gcc.dg/tree-ssa/cunroll-3.c: New testcase. + * gcc.dg/tree-ssa/cunroll-4.c: New testcase. + * gcc.dg/tree-ssa/cunroll-5.c: New testcase. + * gcc.dg/tree-ssa/ldist-17.c: Block cunroll to make testcase still + valid. + +2012-10-16 Manuel LÁpez-IbÁÁez + + PR c/53063 + PR c/40989 + * gcc.dg/Wstrict-overflow-24.c: New. + +2012-10-16 Tobias Burnus + + PR fortran/50981 + PR fortran/54618 + * gfortran.dg/class_optional_1.f90: New. + * gfortran.dg/class_optional_2.f90: New. + +2012-10-16 Jakub Jelinek + + PR debug/54796 + * gcc.dg/guality/pr54796.c: New test. + + PR tree-optimization/54889 + * gfortran.dg/pr54889.f90: New test. + +2012-10-16 Eric Botcazou + + * g++.dg/other/dump-ada-spec-2.C: New test. + +2012-10-16 Easwaran Raman + + * gcc.dg/tree-prof/switch-case-1.c: New test case. + * gcc.dg/tree-prof/switch-case-2.c: New test case. + +2012-10-16 Hans-Peter Nilsson + + * gcc.dg/torture/stackalign/builtin-apply-2.c, + gcc.dg/builtin-apply2.c: Correct STACK_ARGUMENTS_SIZE for MMIX. + +2012-10-15 Oleg Endo + + PR target/54925 + * gcc.c-torture/compile/pr54925.c: New. + +2012-10-15 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-17.c: New. + +2012-10-15 Oleg Endo + + PR target/54760 + * gcc.target/sh/pr54760-2.c: Add long long and unsigned long long test + functions. + * gcc.target/sh/pr54760-4.c: New. + +2012-10-15 Oleg Endo + + PR target/34777 + * gcc.target/sh/torture/sh-torture.exp: New. + * gcc.target/sh/torture/pr34777.c: New. + +2012-10-15 Matthias Klose + + * lib/target-supports.exp (check_profiling_available): Match + arm*-*-linux-* for ARM Linux/GNU. + * g++.dg/torture/predcom-1.C: Match arm*-*-linux-* for ARM Linux/GNU. + * gfortran.dg/enum_10.f90: Likewise. + * gfortran.dg/enum_9.f90: Likewise. + * gcc.target/arm/synchronize.c: Likewise. + * g++.old-deja/g++.jason/enum6.C: Likewise. + * g++.old-deja/g++.other/enum4.C: Likewise. + * g++.old-deja/g++.law/enum9.C: Likewise. + +2012-10-15 Richard Sandiford + + * g++.dg/tls/thread_local-cse.C: Move dg-do line. + * g++.dg/tls/thread_local-wrap4.C: Require fpic. + +2012-10-15 Alexandre Oliva + Paolo Carlini + + PR c++/17805 + * g++.dg/overload/operator6.C: New. + +2012-10-15 Paolo Carlini + + PR c++/50080 (again) + * g++.dg/parse/tmpl-outside2.C: Tweak, error in C++98. + * g++.dg/parse/tmpl-outside1.C: Likewise. + * g++.dg/template/qualttp18.C: Likewise. + * g++.old-deja/g++.pt/memtemp87.C: Likewise. + * g++.old-deja/g++.pt/overload13.C: Likewise. + +2012-10-15 Uros Bizjak + + * gcc.target/i386/avx256-unaligned-load-1.c: Update asm scan patterns. + * gcc.target/i386/avx256-unaligned-load-2.c: Ditto. + * gcc.target/i386/avx256-unaligned-load-3.c: Ditto. + * gcc.target/i386/avx256-unaligned-load-4.c: Ditto. + * gcc.target/i386/avx256-unaligned-store-1.c: Ditto. + * gcc.target/i386/avx256-unaligned-store-2.c: Ditto. + * gcc.target/i386/avx256-unaligned-store-3.c: Ditto. + * gcc.target/i386/avx256-unaligned-store-4.c: Ditto. + +2012-10-15 Paolo Carlini + + PR c++/50080 + * g++.dg/parse/tmpl-outside2.C: New. + * g++.dg/parse/tmpl-outside1.C: Adjust. + * g++.dg/template/qualttp18.C: Likewise. + * g++.old-deja/g++.pt/memtemp87.C: Likewise. + * g++.old-deja/g++.pt/overload13.C: Likewise. + +2012-10-15 Marc Glisse + + PR tree-optimization/54915 + * gcc.dg/tree-ssa/pr54915.c: New testcase. + +2012-10-15 Richard Guenther + + PR tree-optimization/54920 + * gcc.dg/torture/pr54920.c: New testcase. + +2012-10-15 Eric Botcazou + + * gnat.dg/unchecked_convert9.ad[sb]: New test. + +2012-10-13 Jason Merrill + + * g++.dg/tls/thread_local7g.C: Require tls_native. + +2012-10-14 Jason Merrill + + * g++.dg/cpp0x/inh-ctor1.C: New. + * g++.dg/cpp0x/inh-ctor2.C: New. + * g++.dg/cpp0x/inh-ctor3.C: New. + * g++.dg/cpp0x/inh-ctor4.C: New. + * g++.dg/cpp0x/inh-ctor5.C: New. + * g++.dg/cpp0x/inh-ctor6.C: New. + * g++.dg/cpp0x/inh-ctor7.C: New. + * g++.dg/cpp0x/inh-ctor8.C: New. + * g++.dg/cpp0x/inh-ctor9.C: New. + * g++.dg/cpp0x/inh-ctor10.C: New. + * g++.dg/cpp0x/inh-ctor11.C: New. + * g++.dg/cpp0x/inh-ctor12.C: New. + * g++.dg/cpp0x/inh-ctor13.C: New. + +2012-10-14 Steven Bosscher + + PR rtl-optimization/54919 + * gcc.dg/pr54919.c: New testcase. + +2012-10-14 Paolo Carlini + + PR c++/53581 + * g++.dg/template/crash113.C: New. + +2012-10-14 Jan Hubicka + + * gcc.dg/unroll_5.c: New testcase. + +2012-10-14 Paolo Carlini + + PR c++/52643 + * g++.dg/opt/pr52643.C: New. + +2012-10-12 Oleg Endo + + PR target/54602 + * gcc.target/sh/pr54602-1.c: New. + * gcc.target/sh/pr54602-2.c: New. + * gcc.target/sh/pr54602-3.c: New. + * gcc.target/sh/pr54602-4.c: New. + +2012-10-12 Oleg Endo + + PR target/54680 + * gcc.target/sh/pr54680.c: New. + +2012-10-12 Jan Hubicka + + * gcc.dg/webizer.c: New testcase. + +2012-10-12 Janis Johnson + + * gcc.dg/vect/pr48765.c: Skip for conflicting options, don't + specify -m64. + + * gcc.target/arm/div64-unwinding.c: Skip, don't xfail, for GNU/Linux. + + * lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok): + Return 0 if already specifying -mfloat-abi other than hard. + +2012-10-12 Joe Seymour + + * gcc.dg/pr53060.c: Prune irrelevant warning. + +2012-10-12 Jakub Jelinek + + PR c/54381 + * c-c++-common/Wsizeof-pointer-memaccess1.c: New test. + * c-c++-common/Wsizeof-pointer-memaccess2.c: New test. + * gcc.dg/Wsizeof-pointer-memaccess1.c: New test. + * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Test also stpncpy. + Adjust expected wording of warnings for *cmp* builtins. + * g++.dg/torture/Wsizeof-pointer-memaccess1.C: Likewise. + * g++.dg/torture/Wsizeof-pointer-memaccess2.C: Likewise. + +2012-10-12 Paolo Carlini + + PR c++/24449 + * g++.dg/parse/friend-main.C: New. + +2012-10-12 Marc Glisse + + PR c++/53055 + * g++.dg/pr53055.C: New testcase. + +2012-10-12 Paolo Carlini + + PR c++/52744 + * g++.dg/cpp0x/pr52744.C: New. + +2012-10-12 Janus Weil + + PR fortran/40453 + * gfortran.dg/dummy_procedure_9.f90: New. + +2012-10-12 Richard Biener + + PR tree-optimization/54894 + * gcc.dg/torture/pr54894.c: New testcase. + +2012-10-12 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-13.c: New. + * gcc.target/sh/pr51244-14.c: New. + * gcc.target/sh/pr51244-15.c: New. + * gcc.target/sh/pr51244-16.c: New. + +2012-10-11 Paolo Carlini + + PR c++/51878 + * g++.dg/cpp0x/decltype45.C: New. + +2012-10-11 Janus Weil + + PR fortran/54784 + * gfortran.dg/class_allocate_13.f90: New. + +2012-10-11 Jason Merrill + + * g++.dg/ext/visibility/pragma-override1.C: Fix target markup. + * g++.dg/ext/visibility/pragma-override2.C: Fix target markup. + + * g++.dg/gomp/tls-5.C: Require tls_native. + * g++.dg/tls/thread_local7.C: Require tls_native. + * g++.dg/tls/static2.C: New. + +2012-10-11 Paolo Carlini + + PR c++/36107 + * g++.dg/ext/weak5.C: New. + +2012-10-11 Marc Glisse + + PR testsuite/54868 + * gcc.dg/tree-ssa/forwprop-22.c: Move ... + * gcc.dg/vect/nodump-forwprop-22.c: ... here. Adapt options. + +2012-10-11 Paolo Carlini + + PR c++/43765 + * g++.dg/parse/pr43765.C: New. + +2012-10-11 Uros Bizjak + + * obj-c++.dg/tls/init-2.mm: Tweak errors. + +2012-10-10 Paolo Carlini + + PR c++/43663 + * g++.dg/init/bitfield3.C: New. + +2012-10-10 Richard Sandiford + + * gcc.target/mips/mips32-dsp-accinit-2.c: Fix test description. + +2012-10-10 Jakub Jelinek + + PR tree-optimization/54877 + * gcc.dg/torture/pr54877.c: New test. + +2012-10-10 Venkataramanan Kumar + + PR testsuite/53397 + * gcc.dg/pr53397-1.c: Moved to gcc.target/i386. + * gcc.target/i386/pr53397-1.c: Add -msse2 to dg-options + and remove target info from dg-do compile. + * gcc.dg/pr53397-2.c: Moved to gcc.target/i386. + * gcc.target/i386/pr53397-2.c: Add -msse2 to dg-options + and remove target info from dg-do compile. + +2012-10-10 Greta Yorsh + + * gcc.dg/pr54782.c: Require target with pthread support. + +2012-10-10 Paolo Carlini + + PR c++/53122 + * g++.dg/cpp0x/auto35.C: New. + +2012-10-10 Dodji Seketeli + + PR c++/53540 - using fails to be equivalent to typedef + * g++.dg/cpp0x/alias-decl-24.C: New test. + +2012-10-10 Dodji Seketeli + + * g++.dg/cpp0x/gen-attrs-8.C: Update the test to reflect the fact + that c++11 attributes to types are ignored for now. + * g++.dg/cpp0x/gen-attrs-36.C: Likewise. + * g++.dg/cpp0x/gen-attrs-37.C: Likewise + +2012-10-10 Paolo Carlini + + PR c++/53741 + * g++.dg/cpp0x/lambda/lambda-ice9.C: New. + +2012-10-10 Paolo Carlini + + PR c++/50478 + * g++.dg/cpp0x/initlist67.C: New. + +2012-10-10 Dehao Chen + + * g++.dg/debug/dwarf2/deallocator.C: Cover more deallocator cases. + +2012-10-10 Oleg Endo + + PR target/52480 + * gcc.target/sh/sh4a-bitmovua.c: Compact skip-if list. + Add runtime tests. + +2012-10-10 Paolo Carlini + + PR c++/53307 + * g++.dg/cpp0x/decltype44.C: New. + +2012-10-09 Steve Ellcey + + * gcc.target/ext_ins.c: Modify f2 to aviod uninitialized data. + +2012-10-09 Paolo Carlini + + PR c++/53763 + * g++.dg/cpp0x/decltype43.C: New. + +2012-10-09 Venkataramanan Kumar + + PR middle-end/53397 + * gcc.dg/pr53397-1.c: New test case. + * gcc.dg/pr53397-2.c: New test case. + +2012-10-09 Paolo Carlini + + PR c++/54194 + * g++.dg/warn/Wparentheses-26.C: Adjust. + * g++.dg/warn/Wparentheses-27.C: New. + +2012-10-09 Marc Glisse + + PR c++/54427 + * c-c++-common/vector-scalar.c: New testcase. + * g++.dg/ext/vector18.C: New testcase. + * g++.dg/ext/vector5.C: This is not an error anymore. + * gcc.dg/init-vec-1.c: Move ... + * c-c++-common/init-vec-1.c: ... here. Adapt error message. + * gcc.c-torture/execute/vector-shift1.c: Move ... + * c-c++-common/torture/vector-shift1.c: ... here. + * gcc.dg/scal-to-vec1.c: Move ... + * c-c++-common/scal-to-vec1.c: ... here. Avoid narrowing for + C++11. Adapt error messages. + * gcc.dg/convert-vec-1.c: Move ... + * c-c++-common/convert-vec-1.c: ... here. + * gcc.dg/scal-to-vec2.c: Move ... + * c-c++-common/scal-to-vec2.c: ... here. + +2012-10-08 Marc Glisse + + PR target/54400 + * gcc.target/i386/pr54400.c: New testcase. + +2012-10-08 Jakub Jelinek + + PR c++/54858 + * g++.dg/template/pr54858.C: New test. + +2012-10-08 Marek Polacek + + PR debug/54831 + * g++.dg/debug/pr54831.C: New test. + +2012-10-08 Dehao Chen + + * g++.dg/predict-loop-exit-1.C: New. + * g++.dg/predict-loop-exit-2.C: New. + * g++.dg/predict-loop-exit-3.C: New. + +2012-10-08 Rainer Orth + + * gcc.target/i386/pr54445-1.c: Require tls_runtime, add tls options. + +2012-10-08 Jason Merrill + + * g++.dg/gomp/tls-5.C: New. + * g++.dg/gomp/tls-wrap1.C: New. + * g++.dg/gomp/tls-wrap2.C: New. + * g++.dg/gomp/tls-wrap3.C: New. + * g++.dg/gomp/tls-wrap4.C: New. + * g++.dg/gomp/tls-wrapper-cse.C: New. + * g++.dg/tls/thread_local-cse.C: New. + * g++.dg/tls/thread_local-order1.C: New. + * g++.dg/tls/thread_local-order2.C: New. + * g++.dg/tls/thread_local-wrap1.C: New. + * g++.dg/tls/thread_local-wrap2.C: New. + * g++.dg/tls/thread_local-wrap3.C: New. + * g++.dg/tls/thread_local-wrap4.C: New. + * g++.dg/tls/thread_local2g.C: New. + * g++.dg/tls/thread_local3g.C: New. + * g++.dg/tls/thread_local4g.C: New. + * g++.dg/tls/thread_local5g.C: New. + * g++.dg/tls/thread_local6g.C: New. + * g++.dg/tls/thread_local7g.C: New. + + * g++.dg/tls/thread_local3.C: New. + * g++.dg/tls/thread_local4.C: New. + * g++.dg/tls/thread_local5.C: New. + * g++.dg/tls/thread_local6.C: New. + + * g++.dg/tls/init-2.C: Tweak errors. + * g++.dg/tls/thread_local1.C: New. + * g++.dg/tls/thread_local2.C: New. + * g++.dg/tls/thread_local7.C: New. + +2012-10-09 Rainer Orth + + PR target/54866 + * gcc.target/i386/long-double-80-7.c: Add -msse2 to dg-options. + +2012-10-08 Oleg Endo + + PR target/54685 + * gcc.target/sh/pr54685.c: New. + +2012-10-08 Dodji Seketeli + + PR c++/53528 C++11 attribute support + * g++.dg/cpp0x/gen-attrs-1.C: New test. + * g++.dg/cpp0x/gen-attrs-2.C: Likewise. + * g++.dg/cpp0x/gen-attrs-2-1.C: Likewise. + * g++.dg/cpp0x/gen-attrs-3.C: Likewise. + * g++.dg/cpp0x/gen-attrs-4.C: Likewise. + * g++.dg/cpp0x/gen-attrs-5.C: Likewise. + * g++.dg/cpp0x/gen-attrs-6.C: Likewise. + * g++.dg/cpp0x/gen-attrs-7.C: Likewise. + * g++.dg/cpp0x/gen-attrs-8.C: Likewise. + * g++.dg/cpp0x/gen-attrs-9.C: Likewise. + * g++.dg/cpp0x/gen-attrs-10.C: Likewise. + * g++.dg/cpp0x/gen-attrs-11.C: Likewise. + * g++.dg/cpp0x/gen-attrs-12.C: Likewise. + * g++.dg/cpp0x/gen-attrs-13.C: Likewise. + * g++.dg/cpp0x/gen-attrs-14.C: Likewise. + * g++.dg/cpp0x/gen-attrs-15.C: Likewise. + * g++.dg/cpp0x/gen-attrs-16.C: Likewise. + * g++.dg/cpp0x/gen-attrs-17.C: Likewise. + * g++.dg/cpp0x/gen-attrs-18.C: Likewise. + * g++.dg/cpp0x/gen-attrs-19.C: Likewise. + * g++.dg/cpp0x/gen-attrs-20.C: Likewise. + * g++.dg/cpp0x/gen-attrs-21.C: Likewise. + * g++.dg/cpp0x/gen-attrs-22.C: Likewise. + * g++.dg/cpp0x/gen-attrs-23.C: Likewise. + * g++.dg/cpp0x/gen-attrs-24.C: Likewise. + * g++.dg/cpp0x/gen-attrs-25.C: Likewise. + * g++.dg/cpp0x/gen-attrs-26.C: Likewise. + * g++.dg/cpp0x/gen-attrs-27.C: Likewise. + * g++.dg/cpp0x/gen-attrs-28.C: Likewise. + * g++.dg/cpp0x/gen-attrs-29.C: Likewise. + * g++.dg/cpp0x/gen-attrs-30.C: Likewise. + * g++.dg/cpp0x/gen-attrs-31.C: Likewise. + * g++.dg/cpp0x/gen-attrs-32.C: Likewise. + * g++.dg/cpp0x/gen-attrs-33.C: Likewise. + * g++.dg/cpp0x/gen-attrs-34.C: Likewise. + * g++.dg/cpp0x/gen-attrs-35.C: Likewise. + * g++.dg/cpp0x/gen-attrs-36.C: Likewise. + * g++.dg/cpp0x/gen-attrs-36-1.C: Likewise. + * g++.dg/cpp0x/gen-attrs-37.C: Likewise. + * g++.dg/cpp0x/gen-attrs-38.C: Likewise. + * g++.dg/cpp0x/gen-attrs-39.C: Likewise. + * g++.dg/cpp0x/gen-attrs-39-1.C: Likewise. + * g++.dg/cpp0x/gen-attrs-40.C: Likewise. + * g++.dg/cpp0x/gen-attrs-41.C: Likewise. + * g++.dg/cpp0x/gen-attrs-42.C: Likewise. + * g++.dg/cpp0x/gen-attrs-43.C: Likewise. + * g++.dg/cpp0x/gen-attrs-44.C: Likewise. + * g++.dg/cpp0x/gen-attrs-45.C: Likewise. + * g++.dg/cpp0x/gen-attrs-46.C: Likewise. + * g++.dg/cpp0x/gen-attrs-47.C: Likewise. + * g++.dg/cpp0x/gen-attrs-47-1.C: Likewise. + * g++.dg/cpp0x/gen-attrs-48.C: Likewise. + * g++.dg/cpp0x/gen-attrs-49.C: Likewise. + * g++.dg/cpp0x/gen-attrs-50.C: Likewise. + * g++.dg/cpp0x/gen-attrs-51.C: Likewise. + * g++.dg/cpp0x/gen-attrs-52.C: Likewise. + * g++.dg/cpp0x/gen-attrs-53.C: Likewise. + +2012-10-08 Eric Botcazou + + * gcc.dg/tree-ssa/slsr-30.c: Use correct cleanup directive. + * gcc.dg/tree-ssa/attr-hotcold-2.c: Likewise. + * gcc.dg/tree-ssa/ldist-21.c: Add missing cleanup directive. + +2012-10-08 Oleg Endo + + PR target/54760 + * gcc.target/sh/pr54760-2.c: New. + * gcc.target/sh/pr54760-3.c: New. + +2012-10-07 Paolo Carlini + + PR c++/51422 + * g++.dg/cpp0x/lambda/lambda-ice8.C: New. + +2012-10-07 Richard Sandiford + Sandra Loosemore + + * gcc.target/mips/madd-9.c: Force code to be tuned for the 4kc + and test that the accumulator is initialized using MULT. + * gcc.target/mips/mips32-dsp-accinit-1.c: New test. + * gcc.target/mips/mips32-dsp-accinit-2.c: Likewise. + +2012-10-06 Paolo Carlini + + PR c++/52764 + * g++.dg/cpp0x/stdint.C: New. + +2012-10-06 Paolo Carlini + + PR c++/54249 + * g++.dg/cpp0x/stddef.C: New. + +2012-10-06 Janus Weil + + PR fortran/54832 + * gfortran.dg/typebound_operator_17.f90: New. + +2012-10-06 Jan Hubicka + + PR lto/53831 + PR lto/54776 + * g++.dg/lto/v1-plugin-api-not-supported.C: New testcase. + +2012-10-06 Jan Hubicka + + * gcc.dg/lto/resolutions_0.c: New testcase. + +2012-10-06 Janus Weil + + PR fortran/45521 + * gfortran.dg/generic_25.f90: New. + * gfortran.dg/generic_26.f90: New. + * gfortran.dg/generic_27.f90: New. + +2012-10-06 Oleg Endo + + PR target/54760 + * gcc.target/sh/pr54760-1.c: New. + +2012-10-05 Jakub Jelinek + + * g++.dg/torture/Wsizeof-pointer-memaccess1.C: New test. + * g++.dg/torture/Wsizeof-pointer-memaccess2.C: New test. + * g++.dg/warn/Wsign-compare-5.C: New test. + * g++.dg/warn/Wsizeof-pointer-memaccess-1.C: New test. + * g++.dg/warn/Wnull-conversion-1.C: For c++11 add dg-error. + * g++.dg/ext/builtin30.C: New test. + * g++.dg/ext/vla12.C: New test. + * gcc.dg/builtins-85.c: New test. + + PR debug/54519 + * gcc.dg/guality/pr54519-1.c: New test. + * gcc.dg/guality/pr54519-2.c: New test. + * gcc.dg/guality/pr54519-3.c: New test. + * gcc.dg/guality/pr54519-4.c: New test. + * gcc.dg/guality/pr54519-5.c: New test. + * gcc.dg/guality/pr54519-6.c: New test. + +2012-10-05 Paolo Carlini + + PR c++/50893 + * g++.dg/cpp0x/defaulted38.C: New. + +2012-10-05 Jakub Jelinek + + PR tree-optimization/33763 + * c-c++-common/pr33763.c: New test. + + PR tree-optimization/54810 + * gcc.dg/tree-ssa/vrp85.c: New test. + +2012-10-04 David Edelsohn + + * gcc.dg/ucnid-7.c: Skip on AIX. + * gcc.dg/ucnid-8.c: Same. + * gcc.dg/ucnid-10.c: Same. + * gcc.dg/ucnid-13.c: Same. + * gcc.dg/attr-alias-3.c: Same. + * gcc.dg/attr-alias-5.c: Same. + * gcc.dg/torture/pr51106-2.c: Same. + * gcc.dg/vmx/3b-13.c: Use valid splat index. + +2012-10-04 Paolo Carlini + + PR c++/52233 + * g++.dg/cpp0x/alias-decl-23.C: New. + +2012-10-04 Paolo Carlini + + PR c++/53403 + * g++.dg/template/friend53.C: New. + +2012-10-04 Eric Botcazou + + * lib/gcc-dg.exp (cleanup-ada-spec): New procedure. + * lib/scanasm.exp (get_ada_spec_filename): Likewise. + (scan-ada-spec): Likewise. + (scan-ada-spec-not): Likewise. + * gcc.dg/dump-ada-spec-1.c: New test. + * g++.dg/other/dump-ada-spec-1.C: Likewise. + +2012-10-04 Eric Botcazou + + * gcc.dg/lto/20120723_0.c: Skip on SPARC 32-bit. + +2012-10-04 Florian Weimer + + * c-c++-common/cpp/diagnostic-pragma-1.c: New testcase. + +2012-10-04 Paolo Carlini + + PR c++/54323 + * g++.dg/cpp0x/pr54323.C: New. + +2012-10-04 Richard Guenther + + PR middle-end/54735 + * g++.dg/torture/pr54735.C: New testcase. + +2012-10-04 Eric Botcazou + + PR rtl-optimization/54739 + * gcc.dg/lower-subreg-1.c: Also skip on SPARC. + +2012-10-03 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-12.c: New. + +2012-10-03 Dehao Chen + + PR middle-end/54782 + * gcc.dg/pr54782.c: New test. + +2012-10-03 Jakub Jelinek + + PR c++/54777 + * g++.dg/cpp0x/constexpr-ref4.C: New test. + +2012-10-02 Janus Weil + + PR fortran/54778 + * gfortran.dg/class_53.f90: New. + +2012-10-02 Alexandre Oliva + + PR debug/54551 + * gcc.dg/guality/pr54551.c: New. + +2012-10-02 Pat Haugen + + * gcc.target/powerpc/pr46728-1.c: Accept xssqrtdp. + * gcc.target/powerpc/pr46728-2.c: Likewise. + +2012-10-02 Sharad Singhai + + PR testsuite/54772 + * gfortran.dg/vect/vect.exp: Change verbose vectorizor dump options + to fix test failures caused by r191883. + * gcc.dg/tree-ssa/gen-vect-11.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-2.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-32.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-25.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-11a.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-26.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-11b.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-11c.c: Likewise. + * gcc.dg/tree-ssa/gen-vect-28.c: Likewise. + +2012-09-30 Sharad Singhai + + * gcc.target/i386/vect-double-1.c: Fix test. + +2012-10-01 Andrew MacLeod + + PR target/54087 + * gcc.dg/pr54087.c: New testcase for atomic_sub -> atomic_add when + atomic_sub fails. + +2012-10-01 Uros Bizjak + + PR rtl-optimization/54457 + * gcc.target/i386/pr54457.c: New test. + +2012-10-01 Ulrich Weigand + + * gcc.dg/lower-subreg-1.c: Disable on arm*-*-* targets. + +2012-10-01 Marc Glisse + + * gcc.target/i386/vect-rebuild.c: New testcase. + +2012-09-30 Uros Bizjak + + * gcc.target/i386/pad-10.c (foo2): Return x - z. + +2012-09-30 Richard Sandiford + + * gcc.target/mips/pr37362.c: Fix target selector. + +2012-09-30 John David Anglin + + PR target/54083 + * gcc.dg/torture/pr53922.c: Skip on 32-bit hppa-*-hpux*. + +2012-09-30 Andreas Schwab + + * gcc.dg/ucnid-8.c: Update line number. + * gcc.dg/torture/pr51106-2.c: Likewise. + +2012-09-30 Janus Weil + + PR fortran/54667 + * gfortran.dg/c_funloc_tests_6.f90: Modified error message. + * gfortran.dg/c_f_pointer_shape_test.f90: Ditto. + * gfortran.dg/c_f_pointer_tests_5.f90: New. + +2012-09-30 Janus Weil + + * gfortran.dg/allocate_derived_1.f90: Re-enable class array checks, + partially reverting r170092. + * gfortran.dg/class_7.f03: Ditto. + * gfortran.dg/coarray_14.f90: Ditto. + * gfortran.dg/typebound_proc_13.f03: Ditto. + +2012-09-29 Paolo Carlini + + PR c++/54738 + * g++.dg/cpp0x/sfinae42.C: New. + +2012-09-29 David Edelsohn + + * gcc.target/powerpc/405-dlmzb-strlen-1.c: Skip on AIX. + * gcc.target/powerpc/440-dlmzb-strlen-1.c: Same. + * gcc.dg/ucnid-5.c: Remove XFAIL on AIX. + * gcc.dg/pr42629.c: XFAIL on AIX. + * gcc.dg/pr47684.c: Same. + * gcc.dg/pr43670.c: Same. + * gcc.dg/pr42916.c: Same. + * gcc.dg/pr45449.c: Same. + * gcc.dg/pr50017.c: Same. + * gcc.dg/pr42728.c: Same. + * gcc.dg/pr47881.c: Same. + * gcc.dg/pr44023.c: Same. + * gcc.dg/pr41345.c: Same. + * gcc.dg/pr42630.c: Same. + * gcc.dg/pr44971.c: Same. + * gcc.dg/pr46771.c: Same. + * gcc.dg/ucnid-8.c: Same. + * gcc.dg/ucnid-10.c: Same. + * gcc.dg/ucnid-13.c: Same. + * gcc.dg/torture/pr51106-2.c: Same. + * gcc.dg/pr48768.c: Same. + * gcc.dg/pr42631.c: Same. + * gcc.dg/pr43084.c: Same. + * gcc.dg/ucnid-7.c: Same. + * gcc.dg/pr42889.c: Same. + * gcc.dg/pr41241.c: Same. + * gcc.dg/pr42719.c: Same. + * g++.dg/debug/pr46583.C: Same. + * g++.dg/debug/pr47106.C: Same. + * g++.dg/opt/pr48549.C: Same. + * g++.dg/other/pr42685.C: Same. + * c-c++-common/pr43942.c: Same. + +2012-09-29 Ian Lance Taylor + + * go.test/go-test.exp: Update for latest version of Go testsuite. + +2012-09-29 Thomas KÁnig + + PR fortran/52724 + * gfortran.dg/internal_readwrite_3.f90: New test. + +2012-09-28 Dodji Seketeli + + * g++.dg/warn/Wunused-local-typedefs-3.C: Move the c++-only test + c-c++-common/Wunused-local-typedefs-2.c to here. + + PR c++/54372 - unused attribute inactive on dependant entities + * c-c++-common/Wunused-local-typedefs-2.c: New test. + +2012-09-25 Dodji Seketeli + + PR c++/29028 - Missed unused warning on using declaration + * g++.dg/warn/Wunused-var-18.C: New test. + +2012-09-25 Dodji Seketeli + + PR c++/53551 - -Wunused-local-typedefs misses uses + * g++.dg/warn/Wunused-local-typedefs-2.C: New test. + +2012-09-28 Jakub Jelinek + + PR target/54716 + * gcc.target/i386/xorps-sse2.c: Remove xfails. + + PR tree-optimization/54713 + * gcc.c-torture/compile/pr54713-1.c: New test. + * gcc.c-torture/compile/pr54713-2.c: New test. + * gcc.c-torture/compile/pr54713-3.c: New test. + +2012-09-27 Janis Johnson + + * gcc.target/arm/unsigned-extend-1.c: Omit -march option. + +2012-09-27 Ulrich Weigand + + * gcc.dg/lower-subreg-1.c: Disable on arm-*-* targets. + +2012-09-27 Jakub Jelinek + + PR target/54703 + * gcc.target/i386/pr54703.c: New test. + +2012-09-27 Richard Guenther + + PR lto/54709 + * gcc.dg/lto/pr54709_0.c: New testcase. + * gcc.dg/lto/pr54709_1.c: Likewise. + +2012-09-26 Janis Johnson + + * gcc.target/arm/div64-unwinding.c: XFAIL for GNU/Linux. + + * gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt. + + * gcc.target/arm/combine-movs.c: Use effective target arm_thumb2. + + * gcc.target/arm/pr42879.c: Handle big-endian. + +2012-09-26 Steve Ellcey + + PR c/37303 + * gcc.dg/pr37303.c: Check for rdata or rodata. + +2012-09-26 Christophe Lyon + + * gcc.target/arm/builtin-bswap16-1.c: New testcase. + +2012-09-25 Segher Boessenkool + + PR target/51274 + PR target/53087 + * gcc.target/powerpc/ppc-ne0-1.c: New. + +2012-09-25 Oleg Endo + + PR target/54089 + * gcc.target/sh/pr54089-1.c (test_15, test_16, test_17, test_18, + test_19, test_20, test_21, test_22, test_23): New functions. + * gcc.target/sh/pr54089-4.c: New. + * gcc.target/sh/pr54089-5.c: New. + * gcc.target/sh/pr54089-6.c: New. + * gcc.target/sh/pr54089-7.c: New. + +2012-09-25 Richard Guenther + + PR lto/54625 + * gcc.dg/lto/pr54702_0.c: New testcase. + * gcc.dg/lto/pr54702_1.c: Likewise. + * gcc.dg/lto/pr54625-1_0.c: Likewise. + * gcc.dg/lto/pr54625-1_1.C: Likewise. + * gcc.dg/lto/pr54625-2_0.c: Likewise. + * gcc.dg/lto/pr54625-2_1.C: Likewise. + +2012-09-25 Paolo Carlini + + PR c++/54526 + * g++.dg/cpp0x/parse2.C: New. + * g++.dg/parse/error11.C: Adjust. + * g++.dg/parse/error12.C: Likewise. + +2012-09-25 Igor Zamyatin + + * gcc.target/i386/20030217-1.c: Added check for + large_long_double effective target. + * gcc.target/i386/387-3.c: Likewise. + * gcc.target/i386/387-4.c: Likewise. + * gcc.target/i386/pr36578-1.c: Likewise. + * gcc.target/i386/excess-precision-1.c: Added new code for the case + when long double size is equal double size. + * gcc.target/i386/excess-precision-1.c: Likewise. + * gcc.target/i386/pr36578-2.c: Likewise. + * gcc.target/i386/20030217-2.c: New testcase. + +2012-09-25 Jakub Jelinek + + PR tree-optimization/54676 + * gcc.dg/pr54676.c: New test. + +2012-09-25 Richard Guenther + + PR tree-optimization/53663 + * gcc.dg/torture/pr53663-1.c: New testcase. + * gcc.dg/torture/pr53663-2.c: Likewise. + * gcc.dg/torture/pr53663-3.c: Likewise. + +2012-09-25 Uros Bizjak + + * gcc.target/i386/pr50725.c: Change 'long' to 'long long'. + +2012-09-24 Janis Johnson + + * lib/target-supports-dg.exp (dg-require-effective-target, + dg-skip-if, dg-xfail-if, dg-xfail-run-if, dg-shouldfail): Call + dg-process-target-1 instead of dg-process-target. + (dg-process-target-1): Rename from dg-process-target. + (dg-process-target): New. + +2012-09-24 Richard Guenther + + PR tree-optimization/54684 + * g++.dg/torture/pr54684.C: New testcase. + +2012-09-24 Marc Glisse + + * gcc.dg/tree-ssa/forwprop-23.c: New testcase. + +2012-09-24 Richard Guenther + + PR middle-end/52173 + * gcc.dg/tm/pr52173-1.c: New. + * gcc.dg/tm/pr52173-2.c: New. + +2012-09-23 Eric Botcazou + + * gcc.dg/pr54669.c: New test. + +2012-09-23 Paolo Carlini + Dominique Dhumieres + + PR testsuite/54677 + * g++.dg/cpp0x/decltype32.C: Add -ftemplate-depth=10. + +2012-09-23 Tobias Burnus + + PR fortran/54618 + * gfortran.dg/class_array_14.f90: New. + +2012-09-22 Kai Tietz + + * gcc.dg/tree-ssa/scev-3.c: Add llp64 to xfail. + * gcc.dg/tree-ssa/scev-4.c: Likewise. + +2012-09-21 Dehao Chen + + PR go/54649 + PR tree-optimization/54655 + * g++.dg/pr54655.C: New testcase. + +2012-09-21 Richard Guenther + + PR tree-optimization/54647 + * g++.dg/torture/pr54647.C: New testcase. + +2012-09-21 Marc Glisse + + PR c++/54427 + * c-c++-common/torture/vector-compare-2.c: Add -w. + +2012-09-20 Eric Botcazou + + * gnat.dg/opt20.ads: Move dg directive to... + * gnat.dg/opt20.adb: ...here. + * gnat.dg/addr1.ad[sb]: Likewise. + * gnat.dg/concat2.ad[sb]: Likewise. + * gnat.dg/array16.ad[sb]: Likewise. + * gnat.dg/atomic5.ad[sb]: Likewise. + * gnat.dg/discr29.ad[sb]: Likewise. + * gnat.dg/noreturn5.ad[sb]: Likewise. + * gnat.dg/vect8.ad[sb]: Likewise. Add dg-options. + * gnat.dg/discr23.ads: Remove dg directive. + * gnat.dg/nested_float_packed.ads: Likewise. + * gnat.dg/oconst6.ads: Move to... + * gnat.dg/specs/oconst6.ads: ...here. + +2012-09-20 Paolo Carlini + + PR c++/52432 + * g++.dg/cpp0x/decltype32.C: Tweak. + +2012-09-20 Marc Glisse + + * gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1. + * gcc.dg/tree-ssa/forwprop-20.c: Check in forwprop1. + * gcc.dg/tree-ssa/forwprop-21.c: Check in copyprop1. + * gcc.dg/tree-ssa/forwprop-22.c: Check in copyprop1. + +2012-09-19 Marc Glisse + + PR c++/54581 + * g++.dg/cpp0x/decltype-54581.C: New testcase. + +2012-09-19 Steve Ellcey + + * gcc.target/mips/pr37362.c: Add mips*-mti-elf exception. + +2012-09-19 Tulio Magno Quites Machado Filho + + * gcc.target/powerpc/ppc-get-timebase.c: New file. + * gcc.target/powerpc/ppc-mftb.c: New file. + +2012-09-19 Oleg Endo + + PR target/54089 + * gcc.target/sh/pr54089-1.c (test_11, test_12, test_13, test_14): New + functions. + +2012-09-19 Oleg Endo + + PR target/54236 + * gcc.target/sh/pr54236-1.c (test_08): Add one bit left shift case. + +2012-09-19 Eric Botcazou + + * gcc.c-torture/execute/20120919-1.c: New test. + +2012-09-19 Richard Guenther + + * lib/c-torture.exp (TORTURE_OPTIONS): Add -Og -g. + +2012-09-19 Richard Guenther + + * gcc.dg/builtin-unreachable-6.c: Adjust. + +2012-09-19 Richard Guenther + + * gcc.dg/builtin-object-size-10.c: Adjust. + * gcc.dg/builtin-unreachable-5.c: Adjust. + * gcc.dg/tree-ssa/builtin-fprintf-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-fprintf-chk-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-printf-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-printf-chk-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-vfprintf-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-vfprintf-chk-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-vprintf-1.c: Adjust. + * gcc.dg/tree-ssa/builtin-vprintf-chk-1.c: Adjust. + * gcc.dg/tree-ssa/ssa-ccp-10.c: Adjust. + * gcc.dg/vect/vec-scal-opt.c: Adjust. + * gcc.dg/vect/vec-scal-opt1.c: Adjust. + * gcc.dg/vect/vec-scal-opt2.c: Adjust. + +2012-09-19 Richard Guenther + + PR tree-optimization/54132 + * gcc.dg/tree-ssa/ldist-21.c: New testcase. + * gcc.dg/torture/pr54132.c: Likewise. + +2012-09-19 Terry Guo + + * lib/gcc-dg.exp (dg_runtest_extra_prunes): New variable to define + extra prune rules that will be applied to all tests in a .exp file. + (gcc-dg-prune): Use rules defined by the above variable. + * gcc.target/arm/arm.exp (dg_runtest_extra_prunes): Skip all the + harmless warnings on architecture switch conflict. + +2012-09-19 Hans-Peter Nilsson + + * g++.dg/debug/dwarf2/nested-3.C: Match a sequence + of asm-comment characters instead of a single one. + * g++.dg/debug/dwarf2/nested-2.C: Similar. + +2012-09-18 Janis Johnson + + * gcc.dg/vect/fast-math-pr35982.c: Skip check instead of xfail. + + * gcc.dg/vect/no-vfa-vect-101.c: Skip a check for an irrelevant + target instead of xfailing it. + * gcc.dg/vect/no-vfa-vect-102.c: Likewise. + * gcc.dg/vect/no-vfa-vect-102a.c: Likewise. + * gcc.dg/vect/no-vfa-vect-37.c: Likewise. + * gcc.dg/vect/no-vfa-vect-79.c: Likewise. + * gcc.dg/vect/vect-104.c: Likewise. + * gcc.dg/vect/vect-outer-1-big-array.c: Likewise. + * gcc.dg/vect/vect-outer-1.c: Likewise. + * gcc.dg/vect/vect-outer-1a-big-array.c: Likewise. + * gcc.dg/vect/vect-outer-1a.c: Likewise. + * gcc.dg/vect/vect-outer-1b-big-array.c: Likewise. + * gcc.dg/vect/vect-outer-1b.c: Likewise. + * gcc.dg/vect/vect-outer-2b.c: Likewise. + * gcc.dg/vect/vect-outer-3a-big-array.c: Likewise. + * gcc.dg/vect/vect-outer-3a.c: Likewise. + * gcc.dg/vect/vect-outer-3b.c: Likewise. + * gcc.dg/vect/vect-reduc-dot-s8b.c: Likewise. + + * lib/target-supports.exp + (check_effective_target_vect_widen_mult_qi_to_hi, + check_effective_target_vect_widen_mult_hi_to_si, + check_effective_target_vect_widen_mult_qi_to_hi_pattern, + check_effective_target_vect_widen_mult_hi_to_si_pattern, + check_effective_target_vect_pack_trunc, + check_effective_target_vect_unpack, + check_effective_target_vect_multiple_sizes): Check arm_neon_ok + instead of arm_none. + + * gcc.dg/vect/pr52298.c: Remove "dg-do run". + +2012-09-18 Senthil Kumar Selvaraj + + * lib/target-supports-dg.exp (check-flags): Add cflags from board + config to compiler_flags. + +2012-09-18 Jakub Jelinek + + PR target/54592 + * gcc.target/i386/pr54592.c: New test. + + PR tree-optimization/54610 + * gcc.target/i386/pr54610.c: New test. + +2012-09-17 Jason Merrill + + PR c++/54575 + * g++.dg/cpp0x/alias-decl-21.C: New. + * g++.dg/cpp0x/alias-decl-22.C: New. + +2012-09-17 Tobias Burnus + + PR fortran/54608 + * gfortran.dg/scan_2.f90: New. + +2012-09-17 Jason Merrill + + PR c++/53661 + * g++.dg/init/aggr9.C: New. + +2012-09-17 Eric Botcazou + + * gnat.dg/loop_optimization12.ad[sb]: New test. + +2012-09-17 Janus Weil + + PR fortran/54285 + * gfortran.dg/proc_ptr_result_7.f90: New. + +2012-09-17 Tobias Burnus + + PR fortran/54603 + * gfortran.dg/structure_constructor_11.f90: New. + +2012-09-17 Jakub Jelinek + + PR tree-optimization/54563 + * g++.dg/torture/pr54563.C: New test. + +2012-09-16 Janus Weil + + PR fortran/54594 + * gfortran.dg/typebound_generic_14.f03: New. + +2012-09-16 Janus Weil + + PR fortran/54387 + * gfortran.dg/proc_ptr_38.f90: New. + +2012-09-16 John David Anglin + + PR debug/54460 + * g++.dg/debug/dwarf2/nested-3.C: Add hppa assembler comment character + to scary regexp. + + PR testsuite/54007 + * gnat.dg/lto15.adb: Require lto. + + * gfortran.dg/bind_c_array_params_2.f90: Adjust scan-assembler-times + "myBindC" for hppa*-*-hpux*. + +2012-09-16 Mikael Morin + + * gfortran.dg/namelist_75.f90: New test. + +2012-09-15 Tom de Vries + + * gcc.dg/tree-ssa/vrp82.c: New test. + * gcc.dg/tree-ssa/vrp83.c: Same. + * gcc.dg/tree-ssa/vrp84.c: Same. + +2012-09-15 Tom de Vries + + * gcc.dg/tree-ssa/vrp80-2.c: Rename to ... + * gcc.dg/tree-ssa/vrp81.c: ... this. + +2012-09-15 Georg-Johann Lay + + PR target/54222 + * gcc.target/avr/torture/fix-types.h: New. + * gcc.target/avr/torture/vals-hr.def: New. + * gcc.target/avr/torture/vals-r.def: New. + * gcc.target/avr/torture/vals-k.def: New. + * gcc.target/avr/torture/vals-ur.def: New. + * gcc.target/avr/torture/vals-uk.def: New. + * gcc.target/avr/torture/vals-uhr.def: New. + * gcc.target/avr/torture/vals-llk.def: New. + * gcc.target/avr/torture/vals-ullk.def: New. + * gcc.target/avr/torture/sat-hr-plus-minus.c: New. + * gcc.target/avr/torture/sat-r-plus-minus.c: New. + * gcc.target/avr/torture/sat-k-plus-minus.c: New. + * gcc.target/avr/torture/sat-ur-plus-minus.c: New. + * gcc.target/avr/torture/sat-uk-plus-minus.c: New. + * gcc.target/avr/torture/sat-uhr-plus-minus.c: New. + * gcc.target/avr/torture/sat-llk-plus-minus.c: New. + * gcc.target/avr/torture/sat-ullk-plus-minus.c: New. + +2012-09-14 Dehao Chen + + * g++.dg/debug/dwarf2/deallocator.C: New test. + +2012-09-14 Joseph Myers + + PR c/54552 + * gcc.c-torture/compile/pr54552-1.c: New test. + +2012-09-14 Marc Glisse + + PR c++/54427 + * g++.dg/other/vector-compare.C: New testcase. + * c-c++-common/vector-compare-3.c: New testcase. + * gcc.dg/vector-shift.c: Move ... + * c-c++-common/vector-shift.c: ... here. + * gcc.dg/vector-shift1.c: Move ... + * c-c++-common/vector-shift1.c: ... here. + * gcc.dg/vector-shift3.c: Move ... + * c-c++-common/vector-shift3.c: ... here. + * gcc.dg/vector-compare-1.c: Move ... + * c-c++-common/vector-compare-1.c: ... here. + * gcc.dg/vector-compare-2.c: Move ... + * c-c++-common/vector-compare-2.c: ... here. + * gcc.c-torture/execute/vector-compare-1.c: Move ... + * c-c++-common/torture/vector-compare-1.c: ... here. + * gcc.c-torture/execute/vector-compare-2.x: Delete. + * gcc.c-torture/execute/vector-compare-2.c: Move ... + * c-c++-common/torture/vector-compare-2.c: ... here. + * gcc.c-torture/execute/vector-shift.c: Move ... + * c-c++-common/torture/vector-shift.c: ... here. + * gcc.c-torture/execute/vector-shift2.c: Move ... + * c-c++-common/torture/vector-shift2.c: ... here. + * gcc.c-torture/execute/vector-subscript-1.c: Move ... + * c-c++-common/torture/vector-subscript-1.c: ... here. + * gcc.c-torture/execute/vector-subscript-2.c: Move ... + * c-c++-common/torture/vector-subscript-2.c: ... here. + * gcc.c-torture/execute/vector-subscript-3.c: Move ... + * c-c++-common/torture/vector-subscript-3.c: ... here. + +2012-09-14 Joseph Myers + + PR c/54103 + * gcc.c-torture/compile/pr54103-1.c, + gcc.c-torture/compile/pr54103-2.c, + gcc.c-torture/compile/pr54103-3.c, + gcc.c-torture/compile/pr54103-4.c, + gcc.c-torture/compile/pr54103-5.c, + gcc.c-torture/compile/pr54103-6.c: New tests. + * gcc.dg/c90-const-expr-8.c: Update expected column number. + +2012-09-14 Eric Botcazou + + * gcc.dg/pr44194-1.c: Check that there are no memory accesses left. + +2012-09-14 Richard Guenther + + PR tree-optimization/54565 + * gcc.dg/tree-ssa/ssa-ccp-17.c: Adjust. + * gcc.dg/tree-ssa/forwprop-6.c: Likewise. Remove XFAIL. + +2012-09-14 Ulrich Weigand + + * gcc.target/arm/combine-movs.c: Add missing space. + +2012-09-14 Richard Guenther + + * g++.dg/torture/builtin-location.C: New testcase. + +2012-09-13 Paolo Carlini + Manuel LÁpez-IbÁÁez + + PR c++/53210 + * g++.dg/warn/Wuninitialized-self.C: New. + +2012-09-13 Jakub Jelinek + + PR c/54559 + * gcc.c-torture/compile/pr54559.c: New test. + +2012-09-13 Jason Merrill + + PR c++/53839 + * g++.dg/cpp0x/constexpr-temp1.C: New. + + PR c++/54511 + * g++.dg/template/anonunion2.C: New. + + PR c++/53836 + * g++.dg/template/init10.C: New. + +2012-09-13 Tobias Burnus + + PR fortran/54556 + * gfortran.dg/implicit_pure_3.f90: New. + +2012-09-13 Richard Guenther + + * gcc.dg/tree-ssa/ssa-fre-37.c: New testcase. + +2012-09-13 Christophe Lyon + + * gcc.target/arm/builtin-bswap-1.c: New testcase. + +2012-09-12 Kyrylo Tkachov + + * c-c++-common/pr51712.c: Handle for short-enum targets. + +2012-09-12 Terry Guo + + * gcc.target/arm/combine-movs.c: Check movs for ARM mode + and lsrs for Thumb2 mode. + +2012-09-12 Jan Hubicka + + * gcc.dg/ipa/inlinehint-2.c: New testcase. + +2012-09-12 H.J. Lu + + PR target/54445 + * gcc.target/i386/pr54445-1.c: New file. + * gcc.target/i386/pr54445-2.c: Likewise. + +2012-09-12 Tobias Burnus + + PR fortran/54225 + PR fortran/53306 + * gfortran.dg/coarray_10.f90: Update dg-error. + * gfortran.dg/coarray_28.f90: New. + * gfortran.dg/array_section_3.f90: New. + +2012-09-11 Christophe Lyon + + * gcc.target/arm/neon-vset_lanes8.c, gcc.target/arm/pr51835.c, + gcc.target/arm/pr48252.c: Fix for big-endian support. + +2012-09-11 Marc Glisse + + * gcc.dg/tree-ssa/forwprop-22.c: New testcase. + +2012-09-11 Ramana Radhakrishnan + Matthew Gretton-Dann + + * gcc.target/arm/neon-vfma-1.c: New testcase. + * gcc.target/arm/neon-vfms-1.c: Likewise. + * gcc.target/arm/neon-vmla-1.c: Update test to use int instead + of float. + * gcc.target/arm/neon-vmls-1.c: Likewise. + * lib/target-supports.exp (add_options_for_arm_neonv2): New + function. + (check_effective_target_arm_neonv2_ok_nocache): Likewise. + (check_effective_target_arm_neonv2_ok): Likewise. + (check_effective_target_arm_neonv2_hw): Likewise. + (check_effective_target_arm_neonv2): Likewise. + +2012-09-11 Richard Guenther + + PR middle-end/54515 + * g++.dg/tree-ssa/pr54515.C: New testcase. + +2012-09-10 Andrew Pinski + + PR tree-opt/c54362 + * gcc.dg/tm/memopt-16.c: New testcase. + +2012-09-10 Paolo Carlini + + PR c++/54541 + PR c++/54542 + * g++.dg/cpp0x/sfinae40.C: New. + * g++.dg/cpp0x/sfinae41.C: Likewise. + +2012-09-10 Jason Merrill + + PR c++/54538 + * g++.dg/cpp0x/lambda/lambda-mangle4.C: New. + +2012-09-10 Oleg Endo + + PR target/54089 + * gcc.target/sh/pr54089-3.c: New. + +2012-09-10 Marc Glisse + + * gcc.dg/tree-ssa/forwprop-21.c: New testcase. + +2012-09-10 Aldy Hernandez + + * gcc.dg/tm/reg-promotion.c: Modify dump message check. + +2012-09-10 Aldy Hernandez + + * gcc.dg/pr52558-2.c: Delete. + * gcc.dg/simulate-thread/speculative-store-3.c: New. + +2012-09-10 Marc Glisse + + * gcc.dg/tree-ssa/forwprop-20.c: New testcase. + +2012-09-10 Richard Guenther + + PR tree-optimization/54520 + * gcc.dg/torture/pr54520.c: New testcase. + +2012-09-10 Jason Merrill + + PR c++/54506 + * g++.dg/cpp0x/implicit14.C: New. + +2012-09-07 Mikael Morin + + PR fortran/54208 + * gfortran.dg/bound_simplification_3.f90: New test. + +2012-09-07 Aldy Hernandez + + PR testsuite/54184 + * gcc.dg/pr52558-1.c: Delete. + * gcc.dg/simulate-thread/speculative-store-2.c: New. + +2012-09-07 Richard Earnshaw + + * gcc.target/arm/pr50318-1.c: Scan for smlal. + * gcc.target/arm/smlaltb-1.c: XFAIL test. + * gcc.target/arm/smlaltt-1.c: Likewise. + +2012-09-07 Eric Botcazou + + * gcc.dg/pr44194-1.c: Skip on Alpha and adjust regexp for SPARC64. + +2012-09-07 Tom de Vries + + PR tree-optimization/53986 + * gcc.dg/tree-ssa/vrp80.c: New test. + * gcc.dg/tree-ssa/vrp80-2.c: Same. + +2012-09-06 Jason Merrill + + PR c++/54341 + PR c++/54253 + * g++.dg/cpp0x/constexpr-virtual2.C: New. + * g++.dg/cpp0x/constexpr-virtual3.C: New. + +2012-09-06 Andrew Pinski + + PR tree-opt/54494 + * gcc.dg/tree-ssa/strlen-1.c: New testcase. + +2012-09-06 Jakub Jelinek + + PR rtl-optimization/54455 + * gcc.dg/54455.c: New test. + +2012-09-06 Tobias Burnus + + PR fortran/54463 + * gfortran.dg/promotion_2.f90: New. + +2012-09-05 Jakub Jelinek + + PR middle-end/54486 + * c-c++-common/pr54486.c: New test. + +2012-09-05 Dominique Dhumieres + + PR fortran/54474 + * gfortran.dg/coarray_poly_3.f90: Adjust error messages. + +2012-09-05 Paolo Carlini + + PR c++/54191 + * g++.dg/cpp0x/sfinae39.C: New. + +2012-09-04 Jason Merrill + + PR c++/54441 + * g++.dg/ext/flexary3.C: New. + + PR c++/54420 + * g++.dg/cpp0x/lambda/lambda-intname.C: New. + + PR c++/54198 + * g++.dg/template/defarg15.C: New. + + PR c++/54437 + * g++.dg/template/access24.C: New. + +2012-09-04 Richard Guenther + + PR tree-optimization/54458 + * gcc.dg/torture/pr54458.c: New testcase. + +2012-09-04 Christophe Lyon + + * gcc.target/arm/neon-vext.c: New test. + * gcc.target/arm/neon-vext-execute.c: Ditto. + +2012-09-04 Janus Weil + + PR fortran/54243 + PR fortran/54244 + * gfortran.dg/select_type_29.f03: New. + +2012-09-03 Marc Glisse + + * gcc.dg/fold-perm.c: Improve test. + +2012-09-03 Tobias Burnus + + PR fortran/51632 + * gfortran.dg/coarray_class_1.f90: New. + +2012-09-02 Uros Bizjak + + PR target/49206 + * gcc.c-torture/compile/pr49206.c: New test. + +2012-09-02 Dominique Dhumieres + Uros Bizjak + + PR target/36680 + * gfortran.dg/pr36680.f90: New test. + +2012-09-02 Uros Bizjak + + PR target/42295 + * g++.dg/opt/pr42295.C: New test. + +2012-09-01 Jakub Jelinek + + PR target/54436 + * gcc.dg/torture/pr54436.c: New test. + +2012-09-01 Andrew Pinski + + * gcc.target/mips/truncate-8.c: New testcase. + +2012-09-01 Uros Bizjak + + PR target/46829 + PR target/46843 + * gcc.target/i386/pr46829.c: New test. + * gcc.target/i386/pr46843.c: Ditto. + +2012-08-31 Paolo Carlini + Jason Merrill + + PR c++/18747 + * g++.dg/parse/error50.C: New. + +2012-08-31 Jakub Jelinek + + PR c/54428 + * gcc.c-torture/compile/pr54428.c: New test. + +2012-08-31 Ollie Wild + + PR c++/54197 + * g++.dg/init/lifetime3.C: New test. + +2012-08-31 Martin Jambor + + PR middle-end/54409 + * gcc.dg/torture/pr54409.c: New test. + +2012-08-31 Martin Jambor + + * gfortran.dg/pr48636.f90: Add dump scan checks. + +2012-08-29 Richard Sandiford + + * gcc.target/mips/mips.exp: Work out default -msynci setting. + +2012-08-28 Joey Ye + + * gcc.dg/tree-ssa/ssa-dom-thread-3.c: Add -fno-short-enums. + +2012-08-27 Uros Bizjak + + PR target/46254 + * gcc.target/i386/pr46254.c: New test. + +2012-08-27 Richard Sandiford + + * gcc.target/mips/ext_ins.c, gcc.target/mips/octeon-pop-2.c, + gcc.target/mips/pr54240.c, gcc.target/mips/stack-1.c, + gcc.target/mips/unaligned-1.c: Add NOMIPS16. + +2012-08-27 Richard Sandiford + + * gcc.target/mips/20020620-1.c, gcc.target/mips/atomic-memory-2.c, + gcc.target/mips/branch-2.c, gcc.target/mips/branch-3.c, + gcc.target/mips/clear-cache-1.c, gcc.target/mips/const-anchor-1.c, + gcc.target/mips/const-anchor-2.c, gcc.target/mips/dspr2-MULT.c, + gcc.target/mips/dspr2-MULTU.c, gcc.target/mips/ext-1.c, + gcc.target/mips/ext-2.c, gcc.target/mips/ext-3.c, + gcc.target/mips/ext-4.c, gcc.target/mips/ext_ins.c, + gcc.target/mips/fpcmp-1.c, gcc.target/mips/fpcmp-2.c, + gcc.target/mips/mips16e-extends.c, gcc.target/mips/mips32-dsp.c, + gcc.target/mips/mips32-dsp-type.c, gcc.target/mips/mips32r2-mxhc1.c, + gcc.target/mips/mips-ps-5.c, gcc.target/mips/mips-ps-7.c, + gcc.target/mips/mips-ps-type-2.c, gcc.target/mips/mips-ps-type.c, + gcc.target/mips/movcc-1.c, gcc.target/mips/movcc-2.c, + gcc.target/mips/movcc-3.c, gcc.target/mips/neg-abs-1.c, + gcc.target/mips/neg-abs-2.c, gcc.target/mips/nmadd-1.c, + gcc.target/mips/nmadd-2.c, gcc.target/mips/nmadd-3.c, + gcc.target/mips/octeon-exts-7.c, gcc.target/mips/octeon-seq-4.c, + gcc.target/mips/rsqrt-1.c, gcc.target/mips/rsqrt-2.c, + gcc.target/mips/rsqrt-3.c, gcc.target/mips/sb1-1.c, + gcc.target/mips/scc-4.c, gcc.target/mips/stack-1.c, + gcc.target/mips/unaligned-1.c: Tighten regexps. + +2012-08-27 Richard Sandiford + + * gcc.target/mips/mips.exp: Use gcc-dg-runtest rather than dg-runtest. + (mips_option_groups): Remove optimization. Add various -f options. + (mips-dg-options): Make -funroll-loops imply -funroll-all-loops + and -pg imply -fno-omit-frame-pointer. + * gcc.target/mips/abi-eabi32-long32.c: Remove optimization flag. + * gcc.target/mips/abi-eabi32-long64.c: Likewise. + * gcc.target/mips/abi-eabi64-long32.c: Likewise. + * gcc.target/mips/abi-eabi64-long64.c: Likewise. + * gcc.target/mips/abi-n32-long32-no-shared.c: Likewise. + * gcc.target/mips/abi-n32-long32-pic.c: Likewise. + * gcc.target/mips/abi-n32-long32.c: Likewise. + * gcc.target/mips/abi-n32-long64-no-shared.c: Likewise. + * gcc.target/mips/abi-n32-long64-pic.c: Likewise. + * gcc.target/mips/abi-n32-long64.c: Likewise. + * gcc.target/mips/abi-n64-long32-no-shared.c: Likewise. + * gcc.target/mips/abi-n64-long32-pic.c: Likewise. + * gcc.target/mips/abi-n64-long32.c: Likewise. + * gcc.target/mips/abi-n64-long64-no-shared.c: Likewise. + * gcc.target/mips/abi-n64-long64-pic.c: Likewise. + * gcc.target/mips/abi-n64-long64.c: Likewise. + * gcc.target/mips/abi-o32-long32-no-shared.c: Likewise. + * gcc.target/mips/abi-o32-long32-pic.c: Likewise. + * gcc.target/mips/abi-o32-long32.c: Likewise. + * gcc.target/mips/abi-o32-long64-no-shared.c: Likewise. + * gcc.target/mips/abi-o32-long64-pic.c: Likewise. + * gcc.target/mips/abi-o32-long64.c: Likewise. + * gcc.target/mips/abi-o64-long32-no-shared.c: Likewise. + * gcc.target/mips/abi-o64-long32-pic.c: Likewise. + * gcc.target/mips/abi-o64-long32.c: Likewise. + * gcc.target/mips/abi-o64-long64-no-shared.c: Likewise. + * gcc.target/mips/abi-o64-long64-pic.c: Likewise. + * gcc.target/mips/abi-o64-long64.c: Likewise. + * gcc.target/mips/asm-1.c: Likewise. + * gcc.target/mips/branch-1.c: Likewise. + * gcc.target/mips/call-3.c: Likewise. + * gcc.target/mips/call-saved-3.c: Likewise. + * gcc.target/mips/clear-cache-1.c: Likewise. + * gcc.target/mips/div-1.c: Likewise. + * gcc.target/mips/div-2.c: Likewise. + * gcc.target/mips/div-3.c: Likewise. + * gcc.target/mips/div-4.c: Likewise. + * gcc.target/mips/div-5.c: Likewise. + * gcc.target/mips/div-6.c: Likewise. + * gcc.target/mips/div-7.c: Likewise. + * gcc.target/mips/div-8.c: Likewise. + * gcc.target/mips/div-9.c: Likewise. + * gcc.target/mips/div-10.c: Likewise. + * gcc.target/mips/div-11.c: Likewise. + * gcc.target/mips/div-12.c: Likewise. + * gcc.target/mips/dsp-ctrl.c: Likewise. + * gcc.target/mips/dsp-no-lhx.c: Likewise. + * gcc.target/mips/ext-8.c: Likewise. + * gcc.target/mips/extend-2.c: Likewise. + * gcc.target/mips/fix-r10000-1.c: Likewise. + * gcc.target/mips/fix-r10000-2.c: Likewise. + * gcc.target/mips/fix-r10000-3.c: Likewise. + * gcc.target/mips/fix-r10000-4.c: Likewise. + * gcc.target/mips/fix-r10000-5.c: Likewise. + * gcc.target/mips/fix-r10000-6.c: Likewise. + * gcc.target/mips/fix-r10000-7.c: Likewise. + * gcc.target/mips/fix-r10000-8.c: Likewise. + * gcc.target/mips/fix-r10000-9.c: Likewise. + * gcc.target/mips/fix-r10000-10.c: Likewise. + * gcc.target/mips/fix-r10000-11.c: Likewise. + * gcc.target/mips/fix-r10000-12.c: Likewise. + * gcc.target/mips/fix-r10000-13.c: Likewise. + * gcc.target/mips/fix-r10000-14.c: Likewise. + * gcc.target/mips/fix-r10000-15.c: Likewise. + * gcc.target/mips/fpcmp-1.c: Likewise. + * gcc.target/mips/fpcmp-2.c: Likewise. + * gcc.target/mips/fpr-moves-7.c: Likewise. + * gcc.target/mips/fpr-moves-8.c: Likewise. + * gcc.target/mips/int-moves-1.c: Likewise. + * gcc.target/mips/int-moves-2.c: Likewise. + * gcc.target/mips/long-calls-pg.c: Likewise. + * gcc.target/mips/loongson-muldiv-1.c: Likewise. + * gcc.target/mips/loongson-muldiv-2.c: Likewise. + * gcc.target/mips/loongson-shift-count-truncated-1.c: Likewise. + * gcc.target/mips/loongson3a-muldiv-1.c: Likewise. + * gcc.target/mips/loongson3a-muldiv-2.c: Likewise. + * gcc.target/mips/mips-3d-1.c: Likewise. + * gcc.target/mips/mips-3d-2.c: Likewise. + * gcc.target/mips/mips-3d-3.c: Likewise. + * gcc.target/mips/mips-3d-4.c: Likewise. + * gcc.target/mips/mips-3d-5.c: Likewise. + * gcc.target/mips/mips-3d-6.c: Likewise. + * gcc.target/mips/mips-3d-7.c: Likewise. + * gcc.target/mips/mips-3d-8.c: Likewise. + * gcc.target/mips/mips-3d-9.c: Likewise. + * gcc.target/mips/mips-ps-1.c: Likewise. + * gcc.target/mips/mips-ps-2.c: Likewise. + * gcc.target/mips/mips-ps-3.c: Likewise. + * gcc.target/mips/mips-ps-4.c: Likewise. + * gcc.target/mips/mips-ps-6.c: Likewise. + * gcc.target/mips/mips32-dspr2.c: Likewise. + * gcc.target/mips/mmcount-ra-address-1.c: Likewise. + * gcc.target/mips/neg-abs-1.c: Likewise. + * gcc.target/mips/neg-abs-2.c: Likewise. + * gcc.target/mips/nmadd-3.c: Likewise. + * gcc.target/mips/no-smartmips-lwxs.c: Likewise. + * gcc.target/mips/no-smartmips-ror-1.c: Likewise. + * gcc.target/mips/octeon-pop-1.c: Likewise. + * gcc.target/mips/pr26765.c: Likewise. + * gcc.target/mips/pr33256.c: Likewise. + * gcc.target/mips/pr33635-1.c: Likewise. + * gcc.target/mips/pr33755.c: Likewise. + * gcc.target/mips/pr35802.c: Likewise. + * gcc.target/mips/pr45074.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-1.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-2.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-3.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-4.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-5.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-6.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-7.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-8.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-9.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-11.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-12.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-13.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-14.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-15.c: Likewise. + * gcc.target/mips/save-restore-1.c: Likewise. + * gcc.target/mips/save-restore-3.c: Likewise. + * gcc.target/mips/save-restore-5.c: Likewise. + * gcc.target/mips/smartmips-ror-1.c: Likewise. + * gcc.target/mips/smartmips-ror-2.c: Likewise. + * gcc.target/mips/smartmips-ror-3.c: Likewise. + * gcc.target/mips/smartmips-ror-4.c: Likewise. + * gcc.target/mips/stack-1.c: Likewise. + + * gcc.target/mips/clear-cache-2.c: Remove optimization flag. + Tighten regexps. + + * gcc.target/mips/branch-8.c: Arrange for the delay slot of the + branch under test to be filled with preceding rather than + following instructions. + * gcc.target/mips/branch-10.c: Likewise. + * gcc.target/mips/branch-11.c: Likewise. + * gcc.target/mips/branch-12.c: Likewise. + * gcc.target/mips/branch-13.c: Likewise. + * gcc.target/mips/branch-9.c: Likewise. Allow the frame pointer + to be eliminated. Tighten $28 scan-assembler-not test. + + * gcc.target/mips/call-2.c: Remove optimization flag. Move second + function to... + * gcc.target/mips/call-4.c: ...this new test. + + * gcc.target/mips/code-readable-2.c: Rework to make a jump table + more likely. + * gcc.target/mips/code-readable-3.c: Likewise. + * gcc.target/mips/code-readable-1.c: Likewise. Remove optimization + flag but skip for -O0. + * gcc.target/mips/code-readable-4.c: Likewise. + + * gcc.target/mips/mips32-dsp-run.c: Prevent compile-time reduction + of operations under test. + * gcc.target/mips/mips32-dsp.c: Likewise. Remove optimization flag. + + * gcc.target/mips/near-far-3.c: Remove optimization flag. + Don't require sibling-call optimization. + * gcc.target/mips/near-far-4.c: Likewise. + + * gcc.target/mips/no-dsp-1.c: Require -ffat-lto-objects. + Make sure that the register variable is used. + * gcc.target/mips/soft-float-1.c: Likewise. + + * gcc.target/mips/sdata-1.c: Make static data volatile. + * gcc.target/mips/sdata-2.c: Likewise. + * gcc.target/mips/sdata-3.c: Likewise. + * gcc.target/mips/sdata-4.c: Likewise. + + * gcc.target/mips/20020620-1.c: Remove optimization flag but + skip for -O0. + * gcc.target/mips/atomic-memory-2.c: Likewise. + * gcc.target/mips/branch-cost-1.c: Likewise. + * gcc.target/mips/branch-cost-2.c: Likewise. + * gcc.target/mips/cache-1.c: Likewise. + * gcc.target/mips/call-1.c: Likewise. + * gcc.target/mips/call-saved-2.c: Likewise. + * gcc.target/mips/const-anchor-1.c: Likewise. + * gcc.target/mips/const-anchor-2.c: Likewise. + * gcc.target/mips/dse-1.c: Likewise. + * gcc.target/mips/dsp-lhx.c: Likewise. + * gcc.target/mips/dspr2-MULTU.c: Likewise. + * gcc.target/mips/ext-1.c: Likewise. + * gcc.target/mips/ext-2.c: Likewise. + * gcc.target/mips/ext-3.c: Likewise. + * gcc.target/mips/ext-4.c: Likewise. + * gcc.target/mips/ext-5.c: Likewise. + * gcc.target/mips/ext-6.c: Likewise. + * gcc.target/mips/ext-7.c: Likewise. + * gcc.target/mips/extend-1.c: Likewise. + * gcc.target/mips/fix-r4000-1.c: Likewise. + * gcc.target/mips/fix-r4000-3.c: Likewise. + * gcc.target/mips/fix-r4000-5.c: Likewise. + * gcc.target/mips/fix-r4000-6.c: Likewise. + * gcc.target/mips/fix-r4000-8.c: Likewise. + * gcc.target/mips/fix-r4000-10.c: Likewise. + * gcc.target/mips/fixed-scalar-type.c: Likewise. + * gcc.target/mips/fixed-vector-type.c: Likewise. + * gcc.target/mips/fpr-moves-1.c: Likewise. + * gcc.target/mips/fpr-moves-2.c: Likewise. + * gcc.target/mips/fpr-moves-3.c: Likewise. + * gcc.target/mips/fpr-moves-4.c: Likewise. + * gcc.target/mips/fpr-moves-5.c: Likewise. + * gcc.target/mips/fpr-moves-6.c: Likewise. + * gcc.target/mips/ins-1.c: Likewise. + * gcc.target/mips/ins-2.c: Likewise. + * gcc.target/mips/interrupt_handler-2.c: Likewise. + * gcc.target/mips/interrupt_handler-3.c: Likewise. + * gcc.target/mips/lazy-binding-1.c: Likewise. + * gcc.target/mips/madd-3.c: Likewise. + * gcc.target/mips/madd-5.c: Likewise. + * gcc.target/mips/madd-6.c: Likewise. + * gcc.target/mips/madd-8.c: Likewise. + * gcc.target/mips/madd-9.c: Likewise. + * gcc.target/mips/memcpy-1.c: Likewise. + * gcc.target/mips/mips-ps-type.c: Likewise. + * gcc.target/mips/mips-ps-type-2.c: Likewise. + * gcc.target/mips/mips-sched-madd.c: Likewise. + * gcc.target/mips/mips16e-extends.c: Likewise. + * gcc.target/mips/mips32r2-mxhc1.c: Likewise. + * gcc.target/mips/mips64-dsp-ldx.c: Likewise. + * gcc.target/mips/movcc-1.c: Likewise. + * gcc.target/mips/movcc-2.c: Likewise. + * gcc.target/mips/movcc-3.c: Likewise. + * gcc.target/mips/msub-5.c: Likewise. + * gcc.target/mips/msub-6.c: Likewise. + * gcc.target/mips/msub-8.c: Likewise. + * gcc.target/mips/mult-2.c: Likewise. + * gcc.target/mips/mult-3.c: Likewise. + * gcc.target/mips/mult-5.c: Likewise. + * gcc.target/mips/mult-6.c: Likewise. + * gcc.target/mips/mult-7.c: Likewise. + * gcc.target/mips/mult-12.c: Likewise. + * gcc.target/mips/mult-13.c: Likewise. + * gcc.target/mips/mult-14.c: Likewise. + * gcc.target/mips/mult-15.c: Likewise. + * gcc.target/mips/mult-17.c: Likewise. + * gcc.target/mips/mult-18.c: Likewise. + * gcc.target/mips/mult-19.c: Likewise. + * gcc.target/mips/nmadd-1.c: Likewise. + * gcc.target/mips/nmadd-2.c: Likewise. + * gcc.target/mips/octeon-baddu-1.c: Likewise. + * gcc.target/mips/octeon-cins-1.c: Likewise. + * gcc.target/mips/octeon-cins-2.c: Likewise. + * gcc.target/mips/octeon-dmul-3.c: Likewise. + * gcc.target/mips/octeon-exts-2.c: Likewise. + * gcc.target/mips/octeon-exts-3.c: Likewise. + * gcc.target/mips/octeon-exts-4.c: Likewise. + * gcc.target/mips/octeon-exts-5.c: Likewise. + * gcc.target/mips/octeon-exts-6.c: Likewise. + * gcc.target/mips/octeon-exts-7.c: Likewise. + * gcc.target/mips/octeon-pop-2.c: Likewise. + * gcc.target/mips/octeon-seq-3.c: Likewise. + * gcc.target/mips/octeon-seq-4.c: Likewise. + * gcc.target/mips/octeon2-lx-1.c: Likewise. + * gcc.target/mips/octeon2-lx-2.c: Likewise. + * gcc.target/mips/octeon2-lx-3.c: Likewise. + * gcc.target/mips/pr54240.c: Likewise. + * gcc.target/mips/rsqrt-1.c: Likewise. + * gcc.target/mips/rsqrt-2.c: Likewise. + * gcc.target/mips/rsqrt-3.c: Likewise. + * gcc.target/mips/rsqrt-4.c: Likewise. + * gcc.target/mips/save-restore-2.c: Likewise. + * gcc.target/mips/save-restore-4.c: Likewise. + * gcc.target/mips/sb1-1.c: Likewise. + * gcc.target/mips/scc-1.c: Likewise. + * gcc.target/mips/scc-2.c: Likewise. + * gcc.target/mips/scc-3.c: Likewise. + * gcc.target/mips/scc-4.c: Likewise. + * gcc.target/mips/smartmips-lwxs.c: Likewise. + * gcc.target/mips/truncate-1.c: Likewise. + * gcc.target/mips/truncate-2.c: Likewise. + * gcc.target/mips/truncate-3.c: Likewise. + * gcc.target/mips/truncate-4.c: Likewise. + * gcc.target/mips/truncate-5.c: Likewise. + * gcc.target/mips/truncate-6.c: Likewise. + * gcc.target/mips/unaligned-1.c: Likewise. + + * gcc.target/mips/dpaq_sa_l_w.c: Remove optimization flag but + skip for -O0. Require -fexpensive-optimizations. + * gcc.target/mips/dpsq_sa_l_w.c: Likewise. + * gcc.target/mips/dspr2-MULT.c: Likewise. + * gcc.target/mips/fix-r4000-2.c: Likewise. + * gcc.target/mips/fix-r4000-4.c: Likewise. + * gcc.target/mips/fix-r4000-7.c: Likewise. + * gcc.target/mips/fix-r4000-9.c: Likewise. + * gcc.target/mips/madd-1.c: Likewise. + * gcc.target/mips/madd-2.c: Likewise. + * gcc.target/mips/madd-4.c: Likewise. + * gcc.target/mips/maddu-1.c: Likewise. + * gcc.target/mips/maddu-2.c: Likewise. + * gcc.target/mips/maddu-3.c: Likewise. + * gcc.target/mips/maddu-4.c: Likewise. + * gcc.target/mips/msub-1.c: Likewise. + * gcc.target/mips/msub-2.c: Likewise. + * gcc.target/mips/msub-3.c: Likewise. + * gcc.target/mips/msub-4.c: Likewise. + * gcc.target/mips/msubu-1.c: Likewise. + * gcc.target/mips/msubu-2.c: Likewise. + * gcc.target/mips/msubu-3.c: Likewise. + * gcc.target/mips/msubu-4.c: Likewise. + * gcc.target/mips/mult-1.c: Likewise. + * gcc.target/mips/mult-4.c: Likewise. + * gcc.target/mips/mult-8.c: Likewise. + * gcc.target/mips/mult-9.c: Likewise. + * gcc.target/mips/mult-10.c: Likewise. + * gcc.target/mips/mult-11.c: Likewise. + * gcc.target/mips/mult-16.c: Likewise. + + * gcc.target/mips/fix-r4000-11.c: Remove optimization flag but + skip for -O0 and -Os. + * gcc.target/mips/fix-r4000-12.c: Likewise. + * gcc.target/mips/madd-7.c: Likewise. + * gcc.target/mips/mips-ps-5.c: Likewise. + * gcc.target/mips/mips-ps-7.c: Likewise. + * gcc.target/mips/msub-7.c: Likewise. + + * gcc.target/mips/mmcount-ra-address-2.c: Remove optimization flag but + skip for -O0. Require -mno-abicalls. + * gcc.target/mips/mmcount-ra-address-3.c: Likewise. + + * gcc.target/mips/octeon-bbit-1.c: Remove optimization flag but + skip for -O0. Require a total number of BBIT instructions and + at least one of each kind. + + * gcc.target/mips/octeon-bbit-2.c: Remove optimization flag but + skip for -O0. Require -fno-unroll-loops. + + * gcc.target/mips/octeon-bbit-3.c: Remove optimization flag but + skip for -O0. Allow BLTZ as well as BGEZ. + + * gcc.target/mips/octeon-dmul-2.c: Skip for -Os. + + * gcc.target/mips/octeon-pipe-1.c: Remove optimization flag but + skip for -O0. Require -fschedule-insns2. + * gcc.target/mips/octeon2-pipe-1.c: Likewise. + + * gcc.target/mips/r10k-cache-barrier-10.c: Remove optimization flag + but skip for -O0. Make a branch-likely more likely. + + * gcc.target/mips/timode-2.c: Split each test into its own function. + * gcc.target/mips/timode-1.c: Likewise. Skip for -Os. + + * gcc.target/mips/vr-mult-1.c: Remove optimization flag but + skip for -O0. Require -fpeephole2. + * gcc.target/mips/vr-mult-2.c: Likewise. + +2012-05-25 Dodji Seketeli + + PR preprocessor/53469 + * gcc.dg/cpp/_Pragma7.c: New test case. + +2012-08-27 Tobias Burnus + + PR fortran/54370 + * gfortran.dg/do_5.f90: New. + +2012-08-27 Tobias Burnus + + * gfortran.dg/bessel_5.f90: Remove -Wno-compare-reals + from dg-options as -Wall no longer implies it. + +2012-08-26 Richard Sandiford + + * lib/scanasm.exp (scan-assembler-times_required_options): New proc. + +2012-08-25 Jason Merrill + + * g++.dg/cpp0x/fntmpdefarg3.C: New. + +2012-08-25 Paolo Carlini + + PR c++/51421 + * g++.dg/cpp0x/auto34.C: New. + +2012-08-24 Jakub Jelinek + + PR c/54363 + * gcc.dg/pr54363.c: New test. + + PR c/54355 + * gcc.dg/pr54355.c: New test. + +2012-08-24 H.J. Lu + + PR debug/52857 + * gcc.target/i386/pr52857-1.c: New. + * gcc.target/i386/pr52857-2.c: Likewise. + +2012-08-23 Richard Sandiford + + * gcc.target/mips/code-readable-4.c: New test. + +2012-08-23 Julian Brown + Sandra Loosemore + + * gcc.target/mips/code-readable-1.c: Add -O to options. + +2012-08-23 Paolo Carlini + + PR c++/20420 + * g++.dg/lookup/using53.C: New. + +2012-08-23 Georg-Johann Lay + + * gcc.dg/fixed-point/convert.c: Split into manageable parts: + * gcc.dg/fixed-point/convert-1.c: New. + * gcc.dg/fixed-point/convert-2.c: New. + * gcc.dg/fixed-point/convert-3.c: New. + * gcc.dg/fixed-point/convert-4.c: New. + * gcc.dg/fixed-point/convert-float-1.c: New. + * gcc.dg/fixed-point/convert-float-2.c: New. + * gcc.dg/fixed-point/convert-float-3.c: New. + * gcc.dg/fixed-point/convert-float-4.c: New. + * gcc.dg/fixed-point/convert-accum-neg.c: New. + * gcc.dg/fixed-point/convert-sat.c: New. + * gcc.dg/fixed-point/convert.h: New. + +2012-08-22 Oleg Endo + + PR target/54089 + * gcc.target/sh/pr54089-2.c: New. + +2012-08-22 H.J. Lu + + * gcc.target/i386/long-double-64-1.c: New file. + * gcc.target/i386/long-double-64-2.c: Likewise. + * gcc.target/i386/long-double-64-3.c: Likewise. + * gcc.target/i386/long-double-64-4.c: Likewise. + * gcc.target/i386/long-double-80-1.c: Likewise. + * gcc.target/i386/long-double-80-2.c: Likewise. + * gcc.target/i386/long-double-80-3.c: Likewise. + * gcc.target/i386/long-double-80-4.c: Likewise. + * gcc.target/i386/long-double-80-5.c: Likewise. + * gcc.target/i386/long-double-80-6.c: Likewise. + * gcc.target/i386/long-double-80-7.c: Likewise. + +2012-08-22 Marc Glisse + + PR tree-optimization/54317 + * gcc.dg/tree-ssa/vrp79.c: New testcase. + +2012-08-21 Oleg Endo + + PR target/39423 + * gcc.target/sh/pr39423-2.c: New. + +2012-08-21 Marc Glisse + + * gcc.dg/tree-ssa/forwprop-19.c: New testcase. + * gcc.dg/fold-perm.c: Likewise. + +2012-08-20 Jan Hubicka + + PR fortran/48636 + * gcc.dg/ipa/inlinehint-1.c: New. + +2012-08-20 Florian Weimer + + PR c++/19351 + * g++.dg/init/new38.C: New test. + * g++.dg/init/new39.C: New test. + +2012-08-20 Oleg Endo + + PR target/54089 + * gcc.target/sh/pr54089-1.c: New. + +2012-08-20 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-11.c: New. + +2012-08-20 Tobias Burnus + + PR fortran/54301 + * gfortran.dg/warn_target_lifetime_2.f90: New. + +2012-08-20 Paolo Carlini + + PR c++/10416 + * g++.dg/warn/Wunused-var-17.C: New. + +2012-08-20 Patrick Marlier + + PR middle-end/53992 + * gcc.dg/gomp/pr53992.c: New test. + +2012-08-20 Richard Earnshaw + + PR tree-ssa/54295 + * gcc.c-torture/execute/20120817-1.c: New test. + +2012-08-20 Richard Earnshaw + + * gcc.target/arm/thumb-16bit-ops.c (f): This test uses a 16-bit + add instruction. + (f2): New test that really does need adds. + +2012-08-20 Richard Guenther + + PR tree-optimization/54327 + * gcc.dg/torture/pr54327.c: New testcase. + +2012-08-20 Jakub Jelinek + + PR tree-optimization/54321 + * gcc.c-torture/compile/pr54321.c: New test. + +2012-08-20 Tobias Burnus + + PR fortran/54301 + * gfortran.dg/warn_target_lifetime_1.f90: New. + +2012-08-19 Thomas KÁnig + + PR fortran/54298 + * gfortran.dg/real_compare_1.f90: New test case. + * gfortran.dg/bessel_5.f90: Add -Wno-compare-reals to options. + +2012-08-18 Jan Hubicka + + * gcc.dg/ipa/iinline-1.c: Update testcase to test inline hints. + +2012-08-18 Mikael Morin + + PR fortran/39290 + * gfortran.dg/interface_37.f90: New test. + +2012-08-17 H.J. Lu + Gary Funck + + PR target/20020 + * gcc.target/i386/pr20020-1.c: New test. + * gcc.target/i386/pr20020-2.c: Likewise. + * gcc.target/i386/pr20020-3.c: Likewise. + +2012-08-17 Marc Glisse + + * gcc.target/i386/perm-concat.c: New test. + +2012-08-17 Julian Brown + + * gcc.target/arm/div64-unwinding.c: New test. + +2012-08-17 Jakub Jelinek + + * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: New test. + +2012-08-16 Oleg Endo + + PR target/54236 + * gcc.target/sh/pr54236-1.c: New. + +2012-08-16 Hans-Peter Nilsson + + * lib/target-supports.exp (check_effective_target_sync_int_long) + (check_effective_target_sync_char_short): Enable for crisv32-* + and cris-*. + + PR middle-end/54261 + * gcc.dg/torture/pr54261-1.c: New test. + +2012-08-15 Janus Weil + + PR fortran/54243 + PR fortran/54244 + * gfortran.dg/typebound_call_24.f03: New. + +2012-08-15 Bill Schmidt + + PR tree-optimization/54245 + * gcc.dg/tree-ssa/pr54245.c: New test. + +2012-08-15 Bill Schmidt + + PR tree-optimization/54240 + * gcc.target/powerpc/pr54240.c: New test. + * gcc.target/mips/pr54240.c: Likewise. + +2012-08-14 Oleg Endo + + PR target/52933 + * gcc.target/sh/pr52933-1.c: New. + * gcc.target/sh/pr52933-2.c: New. + +2012-08-14 Oleg Endo + + PR target/50751 + * gcc.target/sh/pr50751-8.c: New. + +2012-08-14 Mikael Morin + + PR fortran/47586 + * gfortran.dg/typebound_proc_20.f90: Enable runtime test. + * gfortran.dg/typebound_proc_27.f03: New test. + +2012-08-14 Sterling Augustine + + * g++.dg/debug/dwarf2/pubnames-2.C: Adjust. + +2012-08-14 Tobias Burnus + + PR fortran/40881 + * gfortran.dg/data_constraints_3.f90: New. + * gfortran.dg/data_constraints_1.f90: Add dg-options "" + to disable -pedantic compilation. + * gfortran.dg/pr37243.f: Ditto. + * gfortran.dg/g77/19990826-3.f: Ditto. + * gfortran.dg/g77/20020307-1.f : Ditto. + * gfortran.dg/g77/980310-3.f: Ditto. + +2012-08-14 Tobias Burnus + + PR fortran/54234 + * gfortran.dg/warn_conversion_4.f90: New. + +2012-08-14 Jakub Jelinek + + PR middle-end/53411 + PR rtl-optimization/53495 + * gcc.c-torture/compile/pr53411.c: New test. + * gcc.c-torture/compile/pr53495.c: New test. + +2012-08-13 Richard Guenther + + * gcc.dg/tree-prof/update-loopch.c: Adjust. + +2012-08-13 Richard Guenther + + PR tree-optimization/54200 + * gcc.dg/guality/pr54200.c: New testcase. + * gcc.dg/tree-ssa/slsr-8.c: Adjust. + +2012-08-12 Oleg Endo + + * gcc.target/sh/prefetch.c: Add -m3* to inclusion list. + +2012-08-12 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-7.c: New. + * gcc.target/sh/pr51244-8.c: New. + * gcc.target/sh/pr51244-9.c: New. + * gcc.target/sh/pr51244-10.c: New. + +2012-08-12 Oleg Endo + + * gcc.target/sh/pr50749-sf-postinc-1.c: Skip for -m3. Don't skip for + -m2e or -m2a. + * gcc.target/sh/pr50749-sf-postinc-3.c: Likewise. + * gcc.target/sh/pr53511-1.c: Likewise. + * gcc.target/sh/pr50749-sf-predec-1.c: Likewise. + * gcc.target/sh/pr50749-sf-predec-3.c: Likewise. + * gcc.target/sh/pr53512-1.c: Skip for -m3*. + * gcc.target/sh/pr53512-3.c: Likewise. + * gcc.target/sh/pr21255-3.c: Skip for single precision FPU targets. + +2012-08-12 Oleg Endo + + PR target/39423 + * gcc.c-torture/compile/pr39423-1.c: New. + * gcc.c-torture/compile/pr39423-2.c: New. + +2012-08-12 Tobias Burnus + + PR fortran/54221 + * vect/vect-gems.f90: Don't mark module vars as PRIVATE as + they appear uninitialized on the RHS. + * gfortran.dg/public_private_module_6.f90: New. + +2012-08-11 Martin Jambor + + PR fortran/48636 + * gfortran.dg/pr48636.f90: New test. + +2012-08-10 Jakub Jelinek + + * gcc.dg/torture/vector-shuffle1.c (f): Pass vectors indirectly + to avoid warnings. + (main): Adjust caller. + +2012-08-10 Richard Guenther + + * gcc.dg/matrix/*.c: Adjust and move ... + * gcc.dg/torture/: ... here. + * gcc.dg/matrix: Remove directory. + +2012-08-10 Richard Guenther + + PR middle-end/54219 + * gcc.dg/torture/vector-shuffle1.c: New testcase. + +2012-08-10 Bill Schmidt + + PR middle-end/54211 + * gcc.dg/tree-ssa/pr54211.c: New test. + +2012-08-10 Bill Schmidt + + * lib/target-supports.exp (check_effective_target_long_neq_int): New. + * gcc.dg/tree-ssa/slsr-30.c: Check for long_neq_int effective target. + +2012-08-10 Richard Guenther + + PR tree-optimization/54109 + * gcc.dg/torture/pr54109.c: New testcase. + * gcc.dg/tree-ssa/forwprop-1.c: Adjust. + * gcc.dg/tree-ssa/forwprop-2.c: Likewise. + +2012-08-10 Richard Guenther + + PR tree-optimization/54027 + * gcc.dg/torture/pr54027.c: New testcase. + +2012-08-10 Richard Guenther + + * g++.dg/plugin/selfassign.c: Adjust. + * gcc.dg/plugin/selfassign.c: Likewise. + * gcc.dg/strlenopt-11.c: Likewise. + * gcc.dg/strlenopt-13.c: Likewise. + * gcc.dg/no-strict-overflow-4.c: Likewise. + * gcc.dg/strict-overflow-4.c: Likewise. + * gcc.dg/tree-ssa/alias-11.c: Likewise. + * gcc.dg/tree-ssa/alias-6.c: Likewise. + * gcc.dg/tree-ssa/asm-3.c: Likewise. + * gcc.dg/tree-ssa/pr18908.c: Likewise. + * gcc.dg/tree-ssa/pr19431.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-21.c: Likewise. + * gcc.dg/tree-ssa/phi-opt-10.c: Likewise. + * gcc.dg/tree-ssa/phi-opt-7.c: Likewise. + * gcc.dg/tree-ssa/slsr-27.c: Likewise. + * gcc.dg/tree-ssa/slsr-28.c: Likewise. + * gcc.dg/tree-ssa/slsr-29.c: Likewise. + * gcc.dg/pr46309.c: Likewise. + * gcc.dg/tree-ssa/loop-5.c: Likewise. + +2012-08-09 Uros Bizjak + + * gcc.c-torture/compile/20120727-1.c (dg-options): Add -mfpmath=387 + for x86 targets. + * gcc.c-torture/compile/20120727-2.c: New test. + +2012-08-09 Martin Jambor + + * gcc.dg/ipa/iinline-4.c: New test. + * gcc.dg/ipa/iinline-5.c: Likewise. + * gcc.dg/ipa/iinline-6.c: Likewise. + * gcc.dg/ipa/iinline-7.c: Likewise. + * gcc.dg/lto/20120723_0.c: Likewise. + * gcc.dg/lto/20120723_1.c: Likewise. + +2012-08-09 Oleg Endo + + PR target/39423 + * gcc.target/sh/pr39423-1.c: New. + +2012-08-09 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-5: New. + * gcc.target/sh/pr51244-6: New. + +2012-08-09 Michael Zolotukhin + + * gcc.target/i386/adx-addxcarry32-3.c: New. + * gcc.target/i386/adx-addxcarry64-3.c: New. + +2012-08-09 Andrey Belevantsev + + PR rtl-optimization/53701 + * gcc.dg/pr53701.c: New test. + +2012-08-09 Bernd Schmidt + + * gcc.c-torture/compile/20120727-1.c: New test. + +2012-08-09 Tobias Burnus + + PR fortran/54199 + * gfortran.dg/intrinsic_shadow_4.f90: New. + +2012-08-08 H.J. Lu + + * gcc.dg/tree-ssa/slsr-30.c: Require non-ilp32. Remove dg-skip-if. + +2012-08-08 Joseph Myers + + * gcc.c-torture/execute/20120808-1.c: New test. + +2012-08-08 H.J. Lu + + PR rtl-optimization/54157 + * gcc.target/i386/pr54157.c: New file. + +2012-08-08 Michael Zolotukhin + + * gcc.target/i386/adx-addcarryx32-1.c: New. + * gcc.target/i386/adx-addcarryx32-2.c: New. + * gcc.target/i386/adx-addcarryx64-1.c: New. + * gcc.target/i386/adx-addcarryx64-2.c: New. + * gcc.target/i386/adx-check.h: New. + * gcc.target/i386/i386.exp (check_effective_target_adx): New. + * gcc.target/i386/sse-12.c: Add -madx. + * gcc.target/i386/sse-13.c: Ditto. + * gcc.target/i386/sse-14.c: Ditto. + * gcc.target/i386/sse-22.c: Ditto. + * gcc.target/i386/sse-23.c: Ditto. + * g++.dg/other/i386-2.C: Ditto. + * g++.dg/other/i386-3.C: Ditto. + +2012-08-07 Bill Schmidt + + * gcc.dg/tree-ssa/slsr-5.c: New. + * gcc.dg/tree-ssa/slsr-6.c: New. + * gcc.dg/tree-ssa/slsr-7.c: New. + * gcc.dg/tree-ssa/slsr-8.c: New. + * gcc.dg/tree-ssa/slsr-9.c: New. + * gcc.dg/tree-ssa/slsr-10.c: New. + * gcc.dg/tree-ssa/slsr-11.c: New. + * gcc.dg/tree-ssa/slsr-12.c: New. + * gcc.dg/tree-ssa/slsr-13.c: New. + * gcc.dg/tree-ssa/slsr-14.c: New. + * gcc.dg/tree-ssa/slsr-15.c: New. + * gcc.dg/tree-ssa/slsr-16.c: New. + * gcc.dg/tree-ssa/slsr-17.c: New. + * gcc.dg/tree-ssa/slsr-18.c: New. + * gcc.dg/tree-ssa/slsr-19.c: New. + * gcc.dg/tree-ssa/slsr-20.c: New. + * gcc.dg/tree-ssa/slsr-21.c: New. + * gcc.dg/tree-ssa/slsr-22.c: New. + * gcc.dg/tree-ssa/slsr-23.c: New. + * gcc.dg/tree-ssa/slsr-24.c: New. + * gcc.dg/tree-ssa/slsr-25.c: New. + * gcc.dg/tree-ssa/slsr-26.c: New. + * gcc.dg/tree-ssa/slsr-30.c: New. + * gcc.dg/tree-ssa/slsr-31.c: New. + +2012-08-07 Steven Bosscher + + * gcc.dg/tree-prof/update-loopch.c: Ask for dump with blocks info. + * gcc.dg/tree-ssa/attr-hotcold-2.c: Likewise. + * gcc.dg/tree-ssa/pr18133-1.c: Likewise. + +2012-08-06 Cary Coutant + + * g++.dg/debug/dwarf2/non-virtual-thunk.C: New test case. + +2012-08-06 Janus Weil + + PR fortran/35831 + * gfortran.dg/dummy_procedure_5.f90: Modified. + * gfortran.dg/dummy_procedure_8.f90: New. + * gfortran.dg/interface_26.f90: Modified. + * gfortran.dg/proc_ptr_11.f90: Modified. + * gfortran.dg/proc_ptr_15.f90: Modified. + * gfortran.dg/proc_ptr_result_5.f90: Modified. + * gfortran.dg/typebound_override_1.f90: Modified. + * gfortran.dg/typebound_proc_6.f03: Modified. + +2012-08-06 Marc Glisse + + PR tree-optimization/51938 + PR tree-optimization/52005 + * gcc.dg/tree-ssa/ssa-ifcombine-8.c: New testcase. + * gcc.dg/tree-ssa/ssa-ifcombine-9.c: Likewise. + * gcc.dg/tree-ssa/ssa-ifcombine-10.c: Likewise. + * gcc.dg/tree-ssa/ssa-ifcombine-11.c: Likewise. + +2012-08-06 Dodji Seketeli + + Avoid crashing on erroneous static_assert usage + * g++.dg/cpp0x/static_assert8.C: New test. + +2012-08-06 Jason Merrill + + * g++.dg/cpp0x/sfinae38.C: New. + +2012-08-06 Marc Glisse + Paolo Carlini + + PR c++/54165 + * g++.dg/conversion/void2.C: New. + +2012-08-06 Tom de Vries + + * gcc.dg/tree-ssa/vrp78.c: New test. + +2012-08-04 Sandra Loosemore + Richard Sandiford + + * g++.dg/opt/enum2.C: Require fpic target. + * g++.dg/lto/20090303_0.C: Likewise. + +2012-08-04 Sandra Loosemore + Catherine Moore + + * gcc.target/mips/clear-cache-1.c: Test for alternate cache + flush function names too. + * gcc.target/mips/clear-cache-1.c: Likewise. + +2012-08-03 Bill Schmidt + + PR target/54156 + * gcc.dg/vect/pr53773.c: Change to use optimized dump. + +2012-08-03 Mikael Morin + + PR fortran/54166 + * gfortran.dg/array_5.f90: New test. + +2012-08-03 Marc Glisse + + PR tree-optimization/30318 + * gcc.dg/tree-ssa/vrp77.c: New testcase. + +2012-08-03 Marc Glisse + + * g++.dg/ext/vector17.C: New testcase. + +2012-08-02 Richard Sandiford + + PR target/51931 + * gcc.c-torture/compile/20001226-1.c: Remove nomips16 attribute. + * g++.dg/opt/longbranch1.C: Likewise. + +2012-08-02 Marc Glisse + + PR tree-optimization/53805 + * gcc.dg/fold-notunord.c: New testcase. + +2012-08-02 Mikael Morin + + PR fortran/48820 + * gfortran.dg/assumed_rank_bounds_1.f90: New test. + * gfortran.dg/assumed_rank_bounds_2.f90: New test. + +2012-08-02 Jason Merrill + Paolo Carlini + + PR c++/51213 (again) + * g++.dg/cpp0x/sfinae37.C: Extend. + +2012-08-02 Richard Guenther + + PR tree-optimization/50672 + * g++.dg/torture/pr50672.C: New testcase. + +2012-08-02 Janus Weil + + PR fortran/54147 + * gfortran.dg/abstract_type_6.f03: Modified. + * gfortran.dg/proc_ptr_comp_3.f90: Modified. + * gfortran.dg/proc_ptr_comp_35.f90: New. + * gfortran.dg/typebound_proc_9.f03: Modified. + * gfortran.dg/typebound_proc_26.f90: New. + +2012-08-02 Richard Guenther + + * gcc.dg/torture/pta-callused-1.c: Adjust. + * gcc.dg/torture/pta-ptrarith-3.c: Likewise. + * gcc.dg/torture/ssa-pta-fn-1.c: Likewise. + * gcc.dg/tree-ssa/alias-19.c: Likewise. + * gcc.dg/tree-ssa/pta-escape-1.c: Likewise. + * gcc.dg/tree-ssa/pta-escape-2.c: Likewise. + * gcc.dg/tree-ssa/pta-escape-3.c: Likewise. + * gcc.dg/tree-ssa/pta-ptrarith-1.c: Likewise. + * gcc.dg/tree-ssa/pta-ptrarith-2.c: Likewise. + +2012-08-01 Thomas KÁnig + + PR fortran/54033 + * gfortran.dg/include_6.f90: New test case. + * gfortran.dg/include_7.f90: New test case. + * gfortran.dg/include_3.f90: Add dg-warning for missing directory. + +2012-08-01 Tom de Vries + + * gcc.dg/tree-ssa/vrp76.c: New test. + +2012-08-01 Bill Schmidt + + PR tree-optimization/46556 + * gcc.dg/tree-ssa/slsr-27.c: New. + * gcc.dg/tree-ssa/slsr-28.c: New. + * gcc.dg/tree-ssa/slsr-29.c: New. + +2012-07-31 Janus Weil + + PR fortran/42418 + * gfortran.dg/proc_decl_29.f90: New. + +2012-07-31 Dehao Chen + + * gcc.dg/predict-7.c: New test. + +2012-07-31 Janus Weil + + PR fortran/54134 + * gfortran.dg/typebound_override_3.f90: New. + +2012-07-31 Bill Schmidt + + PR tree-optimization/53773 + * gcc.dg/vect/pr53773.c: New test. + +2012-07-31 Nick Clifton + + * gcc.dg/stack-usage-1.c (SIZE): Define for FRV, + and for XStormy16. + +2012-07-31 Tobias Burnus + + * gfortran.dg/c_funloc_tests_6.f90: New. + * gfortran.dg/c_funloc_tests_7.f90: New. + * gfortran.dg/c_funloc_tests_5.f03: Compile with -std=f2003. + +2012-07-31 Paolo Carlini + + PR c++/53624 + * g++.dg/cpp0x/temp_default5.C: New. + +2012-07-30 Janus Weil + + PR fortran/51081 + * gfortran.dg/proc_ptr_37.f90: New. + +2012-07-30 Ulrich Weigand + + * lib/target-supports.exp + (check_effective_target_vect_natural_alignment): New function. + * gcc.dg/align-2.c: Only run on targets with natural alignment + of vector types. + * gcc.dg/vect/slp-25.c: Adjust tests for targets without natural + alignment of vector types. + +2012-07-30 Kirill Yukhin + Michael Zolotukhin + + * gcc.target/i386/rdseed16-1.c: New. + * gcc.target/i386/rdseed32-1.c: Ditto + * gcc.target/i386/rdseed64-1.c: Ditto + * gcc.target/i386/sse-12.c: Add -mrdseed. + * gcc.target/i386/sse-13.c: Ditto. + * gcc.target/i386/sse-14.c: Ditto. + * g++.dg/other/i386-2.C: Ditto. + * g++.dg/other/i386-3.C: Ditto. + +2012-07-30 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-4.c: New. + +2012-07-27 Uros Bizjak + + * gfortran.dg/bind_c_array_params_2.f90: Add "-mno-explicit-relocs" + for alpha*-*-* targets. Cleanup original tree dump. + +2012-07-27 Segher Boessenkool + + * gcc.target/powerpc/rs6000-power2-1.c: Delete. + * gcc.target/powerpc/rs6000-power2-2.c: Delete. + +2012-07-27 Anna Tikhonova + + * gcc.dg/20020201-1.c: Remove declarations for exit, abort, + rand, srand. Include . + +2012-07-26 Janis Johnson + + * gcc.dg/pr45259.c: Only -fpic depends on fpic support. + +2012-07-26 Richard Henderson + + * gcc.dg/attr-hotcold-1.c: New. + * gcc.dg/tree-ssa/attr-hotcold-2.c: New. + +2012-07-26 Andrew Jenner + Sandra Loosemore + + * gcc.c-torture/compile/pr50380.c: Add code to cause cycle of length 2. + +2012-07-26 Tobias Burnus + + * gfortran.dg/contiguous_1.f90: Update dg-error. + * gfortran.dg/proc_ptr_32.f90: Ditto. + +2012-07-26 Richard Guenther + + PR tree-optimization/54098 + * gcc.dg/torture/pr54098.c: New testcase. + +2012-07-26 Ramana Radhakrishnan + + * gcc.target/arm/neon/vld1Q_dupu64.c: Regenerate. + * gcc.target/arm/neon/vld1Q_dups64.c: Likewise. + +2012-07-26 Mikael Morin + + PR fortran/44354 + * gfortran.dg/array_constructor_39.f90: New test. + +2012-07-26 Mikael Morin + + PR fortran/44354 + * gfortran.dg/array_constructor_38.f90: New test. + +2012-07-25 Janis Johnson + + * g++.dg/cpp0x/nullptr21.c: Remove printfs, make self-checking. + +2012-07-25 Eric Botcazou + + * gnat.dg/noreturn5.ad[sb]: New test. + +2012-07-25 Sandra Loosemore + Paul Brook + + PR target/53633 + + * lib/target-suports.exp (check_effective_target_naked_functions): New. + * c-c++-common/pr53633.c: New test. + +2012-07-25 Siddhesh Poyarekar + + * gcc.target/i386/asm-dialect-1.c: New test case. + +2012-07-25 Kirill Yukhin + Michael Zolotukhin + + * gcc.target/i386/prefetchw-1.c: New. + * gcc.target/i386/sse-12.c: Add -mprfchw. + * gcc.target/i386/sse-13.c: Ditto. + * gcc.target/i386/sse-14.c: Ditto. + * gcc.target/i386/sse-22.c: Ditto. + * gcc.target/i386/sse-23.c: Ditto. + * g++.dg/other/i386-2.C: Ditto. + * g++.dg/other/i386-3.C: Ditto. + +2012-07-24 Janis Johnson + + * lib/gcc-dg.exp (process-message): Don't ignore errors. + +2012-07-24 Ramana Radhakrishnan + + PR target/54051 + * gcc.target/arm/pr54051.c: New. + * gcc.target/arm/vfp-1.c: Adjust test. + +2012-07-24 Julian Brown + + * lib/target-supports.exp (check_effective_target_arm_hf_eabi): New. + * gcc.dg/torture/stackalign/builtin-apply-2.c: Skip for + hard-float ARM. + +2012-07-23 Paul Brook + + * g++.dg/other/armv7m-1.c: New test. + +2012-07-23 Julian Brown + + * gcc.c-torture/execute/20101011-1.c (__aeabi_idiv0): Define for + ARM. + (DO_TEST): Define to 1 for appropriate ARM targets. + +2012-07-22 Steven Bosscher + + PR tree-optimization/53881 + * gcc.dg/pr53881.c: Renamed to ... + * gcc.dg/pr53881-1.c: ... this. + * gcc.dg/pr53881-2.c: New test. + +2012-07-22 Hans-Peter Nilsson + + Handle recent changes in default atomics for cris*-*-linux*. + * gcc.target/cris/torture/sync-mis-xchg-i-1ml.c, + gcc.target/cris/torture/sync-mis-xchg-i-2ml.c, + gcc.target/cris/torture/sync-mis-xchg-i-3ml.c, + gcc.target/cris/torture/sync-mis-xchg-s-1ml.c, + gcc.target/cris/torture/sync-mis-op-i-1ml.c, + gcc.target/cris/torture/sync-mis-op-i-2ml.c, + gcc.target/cris/torture/sync-mis-op-i-3ml.c, + gcc.target/cris/torture/sync-mis-op-s-1ml.c: New tests. + * gcc.target/cris/torture/sync-mis-op-i-2a.c: Make sure + -mno-unaligned-atomic-may-use-library is in effect for + cris*-*-linux*. + * gcc.target/cris/torture/sync-mis-xchg-i-1.c, + gcc.target/cris/torture/sync-mis-xchg-i-2.c, + gcc.target/cris/torture/sync-mis-xchg-i-3.c, + gcc.target/cris/torture/sync-mis-xchg-i-2a.c, + gcc.target/cris/torture/sync-mis-xchg-s-1.c, + gcc.target/cris/torture/sync-mis-op-i-1.c, + gcc.target/cris/torture/sync-mis-op-i-2.c, + gcc.target/cris/torture/sync-mis-op-i-1a.c, + gcc.target/cris/torture/sync-mis-op-i-3.c, + gcc.target/cris/torture/sync-mis-op-i-3a.c, + gcc.target/cris/torture/sync-mis-op-s-1a.c, + gcc.target/cris/torture/sync-mis-xchg-i-1a.c, + gcc.target/cris/torture/sync-mis-xchg-i-3a.c, + gcc.target/cris/torture/sync-mis-xchg-s-1a.c: Similar. + * gcc.target/cris/torture/sync-mis-op-s-1.c: Ditto. + (main): Remove local variable x. + [mis_ok]: Check that atomics don't fail. + +2012-07-21 Andrew Pinski + + * gcc.dg/tree-ssa/vrp72.c: New test. + * gcc.dg/tree-ssa/vrp73.c: New test. + * gcc.dg/tree-ssa/vrp74.c: New test. + * gcc.dg/tree-ssa/vrp75.c: New test. + +2012-07-21 Andrew Pinski + + * gcc.dg/tree-ssa/alias-21.c: New testcase. + * gcc.dg/tree-ssa/alias-22.c: New testcase. + +2012-07-21 Andrew Pinski + + * gcc.target/mips/octeon-pop-2.c: New testcase. + +2012-07-21 Tobias Burnus + + PR fortran/48820 + * gfortran.dg/assumed_rank_3.f90: New. + * gfortran.dg/assumed_rank_11.f90: New. + * gfortran.dg/assumed_rank_1.f90: Update dg-error. + * gfortran.dg/assumed_rank_2.f90: Update dg-error. + * gfortran.dg/assumed_rank_7.f90: Update dg-error. + +2012-07-21 Andrew Pinski + + * gcc.target/mips/unaligned-1.c: New testcase. + +2012-07-21 Hans-Peter Nilsson + + * gcc.c-torture/execute/20101011-1.c (DO_TEST): Define as 0 for CRIS. + +2012-07-20 Tobias Burnus + + * gfortran.dg/bind_c_array_params_2.f90: New. + * gfortran.dg/bind_c_array_params.f03: Add -std=f2003 + and update dg-error. + +2012-07-20 Tobias Burnus + + * gfortran.dg/assumed_rank_12.f90: Update dg-error. + +2012-07-20 Jason Merrill + + PR c++/54038 + * g++.dg/other/array7.C: New. + +2012-07-20 Steven Bosscher + + * gcc.dg/tree-prof/update-loopch.c: Look for counts on the dumps of + the basic block and check loop depth. + * gcc.dg/tree-ssa/pr18133-1.c: Dump details, not blocks. Update + matching patterns and comments. + * gcc.dg/tree-ssa/20031021-1.c: Fix check patterns. + * gcc.dg/tree-ssa/vector-2.c: Likewise. + +2012-07-20 Jakub Jelinek + + PR c++/28656 + * c-c++-common/pr28656.c: New test. + +2012-07-19 Jason Merrill + + PR c++/54026 + * g++.dg/init/mutable1.C: New. + +2012-07-20 Tobias Burnus + + PR fortran/48820 + * gfortran.dg/assumed_type_3.f90: Update dg-error. + * gfortran.dg/assumed_rank_1.f90: New. + * gfortran.dg/assumed_rank_1_c.c: New. + * gfortran.dg/assumed_rank_2.f90: New. + * gfortran.dg/assumed_rank_4.f90: New. + * gfortran.dg/assumed_rank_5.f90: New. + * gfortran.dg/assumed_rank_6.f90: New. + * gfortran.dg/assumed_rank_7.f90: New. + * gfortran.dg/assumed_rank_8.f90: New. + * gfortran.dg/assumed_rank_8_c.c: New. + * gfortran.dg/assumed_rank_9.f90: New. + * gfortran.dg/assumed_rank_10.f90: New. + * gfortran.dg/assumed_rank_12.f90: New. + +2012-07-19 Eric Botcazou + + * gnat.dg/opt25.adb: New test. + * gnat.dg/opt25_pkg1.ad[sb]: New helper. + * gnat.dg/opt25_pkg2.ad[sb]: Likewise. + +2012-07-19 Eric Botcazou + + * gnat.dg/aggr20.ad[sb]: New test. + * gnat.dg/aggr20_pkg.ads: New helper. + +2012-07-19 Eric Botcazou + + * gnat.dg/derived_type3.adb: New test. + * gnat.dg/derived_type3_pkg.ad[sb]: New helper. + +2012-07-19 Jakub Jelinek + + PR rtl-optimization/53942 + * gcc.dg/pr53942.c: New test. + +2012-07-19 Jason Merrill + + PR c++/54021 + * g++.dg/cpp0x/constexpr-builtin2.C: New. + +2012-07-19 Eric Botcazou + + * gnat.dg/discr38.adb: New test. + +2012-07-19 Jakub Jelinek + + PR middle-end/54017 + * c-c++-common/gomp/pr54017.c: New test. + +2012-07-19 Richard Guenther + Eric Botcazou + + * gnat.dg/loop_optimization11.adb: New testcase. + * gnat.dg/loop_optimization11_pkg.ads: Likewise. + +2012-07-18 Paolo Carlini + Jason Merrill + + * g++.dg/cpp0x/sfinae37.C: New. + * g++.dg/template/access23.C: New. + * g++.dg/template/access7.C: Adjust. + * g++.dg/template/sfinae10.C: Don't expect errors. + * g++.dg/template/sfinae6_neg.C: Don't expect errors. + +2012-07-18 Julian Brown + Sandra Loosemore + + * gcc.c-torture/execute/20101011-1.c: Skip on bare-metal m68k. + +2012-07-18 Eric Botcazou + + * gnat.dg/noreturn4.ad[sb]: New test. + * gnat.dg/noreturn4_pkg.ads: New helper. + +2012-07-18 Jie Zhang + Julian Brown + + * gcc.target/arm/neon-vdup-1.c: New test case. + * gcc.target/arm/neon-vdup-2.c: New test case. + * gcc.target/arm/neon-vdup-3.c: New test case. + * gcc.target/arm/neon-vdup-4.c: New test case. + * gcc.target/arm/neon-vdup-5.c: New test case. + * gcc.target/arm/neon-vdup-6.c: New test case. + * gcc.target/arm/neon-vdup-7.c: New test case. + * gcc.target/arm/neon-vdup-8.c: New test case. + * gcc.target/arm/neon-vdup-9.c: New test case. + * gcc.target/arm/neon-vdup-10.c: New test case. + * gcc.target/arm/neon-vdup-11.c: New test case. + * gcc.target/arm/neon-vdup-12.c: New test case. + * gcc.target/arm/neon-vdup-13.c: New test case. + * gcc.target/arm/neon-vdup-14.c: New test case. + * gcc.target/arm/neon-vdup-15.c: New test case. + * gcc.target/arm/neon-vdup-16.c: New test case. + * gcc.target/arm/neon-vdup-17.c: New test case. + * gcc.target/arm/neon-vdup-18.c: New test case. + * gcc.target/arm/neon-vdup-19.c: New test case. + * gcc.target/arm/neon-combine-sub-abs-into-vabd.c: Make intrinsic + arguments non-constant. + +2012-07-18 Richard Guenther + + PR tree-optimization/53970 + * g++.dg/torture/pr53970.C: New testcase. + +2012-07-18 Oleg Endo + + PR target/38621 + * gcc.c-torture/compile/pr38621.c: New. + +2012-07-18 Oleg Endo + + PR target/33135 + * gcc.target/sh/pr33135-1.c: New. + * gcc.target/sh/pr33135-2.c: New. + * gcc.target/sh/pr33135-3.c: New. + * gcc.target/sh/pr33135-4.c: New. + +2012-07-17 Jason Merrill + + PR c++/53995 + * g++.dg/parse/enum9.C: New. + +2012-07-17 Kazu Hirata + Sandra Loosemore + + * gcc.target/m68k/pr36134.c: Use dg-skip-if to skip the testcase + if there is a conflict with -mcpu=. Use -mcpu=5208. + +2012-07-17 Jason Merrill + + PR c++/53989 + * g++.dg/template/array23.C: New. + +2012-07-17 Tobias Burnus + + PR fortran/53985 + * gfortran.dg/bind_c_usage_26.f90: New. + * gfortran.dg/bind_c_procs.f03: Add dg-options "-Wc-binding-type". + * gfortran.dg/bind_c_usage_13.f03: Ditto. + * gfortran.dg/bind_c_usage_18.f90: Ditto. + * gfortran.dg/interop_params.f03: Ditto. + +2012-07-17 Jason Merrill + + * g++.dg/template/inherit8.C: Adjust. + * g++.dg/template/using21.C: Adjust. + * g++.dg/template/using22.C: Adjust. + + PR c++/53549 + * g++.dg/template/current-inst1.C: New. + * g++.dg/parse/crash35.C: Adjust. + +2012-07-17 Tobias Burnus + + PR fortran/52101 + * gfortran.dg/oldstyle_4.f90: New. + +2012-07-17 Tobias Burnus + + PR fortran/49265 + * gfortran.dg/module_procedure_double_colon_3.f90: New. + * gfortran.dg/module_procedure_double_colon_4.f90: New. + +2012-07-16 Jason Merrill + + * g++.dg/parse/access8.C: Adjust. + * g++.dg/template/sfinae6_neg.C: Adjust. + +2012-07-16 Thomas KÁnig + + PR fortran/53824 + * gfortran.dg/coarray_allocate_1.f90: New test. + +2012-07-16 Andrew Pinski + + * gcc.c-torture/execute/bswap-1.c: New testcase. + * gcc.c-torture/compile/unalign-1.c: New testcase. + * gcc.c-torture/compile/20120524-1.c: New testcase. + * gcc.c-torture/compile/20101216-1.c: New testcase. + +2012-07-16 Dehao Chen + + Revert + 2012-07-10 Dehao Chen + + * gcc.dg/debug_info_inline.c: New test. + +2012-07-16 Janus Weil + + PR fortran/53956 + * gfortran.dg/proc_decl_28.f90: New. + +2012-07-16 Andrew Pinski + + * gcc.dg/torture/builtins-1.c: New testcase. + +2012-07-16 Hans-Peter Nilsson + + * gcc.target/cris/sync-2i.c, gcc.target/cris/sync-2s.c, + gcc.target/cris/sync-3i.c, gcc.target/cris/sync-3s.c, + gcc.target/cris/sync-4i.c, gcc.target/cris/sync-4s.c, + gcc.target/cris/sync-1-v10.c, + gcc.target/cris/sync-1-v32.c: For cris*-*-linux*, also + pass -mno-unaligned-atomic-may-use-library. + * gcc.target/cris/sync-xchg-1.c: New test. + * gcc.target/cris/20011127-1.c: Adjust to %P being a + valid register operand output modifier. + +2012-07-15 Andreas Schwab + + * g++.dg/debug/dwarf2/pubnames-2.C: Support all known comment + characters. + +2012-07-13 Andrew Pinski + + * gcc.target/mips/octeon2-pipe-1.c: Use cleanup-rtl-dump + rather than cleanup-tree-dump. + * gcc.target/mips/octeon-pipe-1.c: Likewise. + +2012-07-13 Richard Guenther + + PR tree-optimization/53907 + * gcc.target/i386/pr53907.c: New testcase. + +2012-07-13 Richard Guenther + + PR tree-optimization/53922 + * gcc.dg/torture/pr53922.c: New testcase. + +2012-07-13 Hans-Peter Nilsson + + PR rtl-optimization/53908 + * gcc.dg/torture/pr53908.c: New test. + +2012-07-13 Jonathan Wakely + + PR c++/53531 + * g++.dg/cpp0x/variadic135.C: New. + +2012-07-12 Jason Merrill + + * g++.dg/template/sfinae6_neg.C: Adjust. + +2012-07-12 Tobias Burnus + + * gfortran.dg/c_f_pointer_shape_tests_5.f90: New. + * gfortran.dg/c_f_pointer_tests_3.f90: Update + scan-tree-dump-times pattern. + +2012-07-11 Rainer Orth + + * g++.dg/debug/dwarf2/pubnames-2.C: Allow for / comments. + +2012-07-11 Jason Merrill + + DR 1402 + * g++.g/cpp0x/defaulted37.C: New. + +2012-07-11 Greta Yorsh + + PR target/53859 + * gcc.target/arm/pr53859.c: New test. + +2012-07-10 Oleg Endo + + PR target/53886 + * gcc.c-torture/compile/pr53886.c: New. + +2012-07-10 Dehao Chen + + * gcc.dg/debug_info_inline.c: New test. + +2012-07-10 Jason Merrill + + PR c++/53733 + * g++.dg/cpp0x/defaulted36.C: New. + * g++.dg/cpp0x/defaulted21.C: Adjust. + + * g++.dg/cpp0x/implicit13.C: Add vbase and member tests. + +2012-07-09 Sterling Augustine + + * g++.dg/debug/dwarf2/pubnames-2.C: New. + +2012-07-09 Steven Bosscher + + PR tree-optimization/53887 + * gcc.dg/pr53887.c: New test. + +2012-07-09 Jason Merrill + + PR c++/53882 + * g++.dg/cpp0x/nullptr29.C: New. + +2012-07-09 Tom de Vries + Richard Guenther + + * gcc.dg/builtin-unreachable-6.c: New test. + * gcc.dg/builtin-unreachable-5.c: New test. + +2012-07-07 Steven Bosscher + + PR tree-optimization/53881 + * gcc.dg/pr53881.c: New test. + +2012-07-06 Jason Merrill + + PR c++/53862 + * g++.dg/cpp0x/variadic134.C: New. + + PR c++/53858 + * g++.dg/cpp0x/alias-decl-20.C: New. + +2012-07-06 Tom de Vries + + PR tree-optimization/51879 + * gcc.dg/pr51879-16.c: New test. + * gcc.dg/pr51879-17.c: Same. + +2012-07-06 Tom de Vries + + PR tree-optimization/52009 + * gcc.dg/pr51879-7.c: New test. + * gcc.dg/pr51879-18.c: New test. + +2012-07-05 Jason Merrill + + PR c++/50852 + * g++.dg/template/typedef39.C: New. + + PR c++/53039 + * g++.dg/cpp0x/variadic133.C: New. + * g++.dg/template/param1.C: Adjust. + +2012-07-05 Ramana Radhakrishnan + + PR target/48941 + PR target/51980 + * gcc.target/arm/neon/vtrnf32.c: Update. + * gcc.target/arm/neon/vtrns32.c: Update. + * gcc.target/arm/neon/vtrnu32.c: Update. + * gcc.target/arm/neon/vzipf32.c: Update. + * gcc.target/arm/neon/vzips32.c: Update. + * gcc.target/arm/neon/vzipu32.c: Update. + +2012-07-05 Mikael Morin + + PR fortran/53732 + * gfortran.dg/inline_sum_4.f90: New test. + +2012-07-05 Steven Bosscher + + * gcc.c-torture/compile/20000326-1.c: Fix to not optimize to empty. + +2012-07-05 Matthew Gretton-Dann + + * gcc.target/arm/fma-sp.c: New testcase. + * gcc.target/arm/fma.c: Likewise. + * gcc.target/arm/fma.h: Likewise. + +2012-07-04 Jason Merrill + + PR c++/53848 + * g++.dg/other/enum3.C: New. + +2012-07-04 Uros Bizjak + + PR middle-end/53321 + * g++.dg/torture/pr53321.C: New test. + +2012-07-04 Richard Guenther + + PR tree-optimization/53844 + * g++.dg/tree-ssa/pr53844.C: New testcase. + +2012-07-04 Richard Guenther + + PR tree-optimization/53849 + * gcc.dg/pr53849.c: New testcase. + +2012-07-03 Jakub Jelinek + + PR c++/53812 + * g++.dg/ext/label14.C: New test. + +2012-07-03 Uros Bizjak + + PR target/53811 + * g++.dg/other/pr53811.C: New test. + +2012-07-03 Andreas Schwab + + PR target/28896 + * gcc.target/m68k/stack-limit-1.c: New testcase. + +2012-07-03 Eric Botcazou + + * gnat.dg/recursive_call.adb: New test. + +2012-07-03 Eric Botcazou + + * gnat.dg/discr37.ad[sb]: New test. + +2012-07-03 Oleg Endo + + * g++.dg/other/packed1.C: Remove SH from xfail list. + +2012-07-02 Jason Merrill + + PR c++/53619 + * g++.dg/cpp0x/lambda/lambda-this5.C: New. + + PR c++/53783 + * g++.dg/cpp0x/lambda/lambda-template7.C: New. + + PR c++/53788 + * g++.dg/cpp0x/decltype39.C: New. + * g++.dg/diagnostic/method1.C: Adjust. + + PR c++/53816 + * g++.dg/template/ref6.C: New. + +2012-07-02 Oleg Endo + + PR target/53568 + * gcc.target/sh/pr53568-1.c: New. + +2012-07-02 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-1.c: Check that movt insn is not generated. + +2012-07-02 Jason Merrill + + PR c++/53821 + * g++.dg/cpp0x/lambda/lambda-template6.C: New. + + PR c++/53524 + * g++.dg/template/enum7.C: New. + * g++.dg/other/ptrmem10.C: Adjust. + * g++.dg/other/ptrmem11.C: Adjust. + * g++.dg/cpp0x/scoped_enum.C: Adjust. + +2012-07-02 Steven Bosscher + + * gcc.dg/tree-ssa/pr36881.c: Fix test case to not expand as bit tests. + +2012-07-01 Wei Guozhi + + PR target/53447 + * gcc.target/arm/pr53447-1.c: New testcase. + * gcc.target/arm/pr53447-2.c: New testcase. + * gcc.target/arm/pr53447-3.c: New testcase. + * gcc.target/arm/pr53447-4.c: New testcase. + +2012-06-29 Richard Guenther + + PR tree-optimization/47061 + * gcc.dg/tree-ssa/vrp71.c: New testcase. + +2012-06-29 Richard Guenther + + PR tree-optimization/37541 + * gcc.dg/tree-ssa/pr37508.c: Adjust and un-XFAIL. + +2012-06-29 Richard Guenther + + PR tree-optimization/52589 + * gcc.dg/tree-ssa/vrp70.c: New testcase. + +2012-06-28 Janis Johnson + + * g++.dg/cpp0x/nullptr19.c: Remove exta directives on same line. + + * g++.dg/template/error46.C: Add missing comment to dg-message. + * g++.dg/template/crash107.C: Likewise. + * g++.dg/template/error47.C: Likewise. + * g++.dg/template/crash108.C: Likewise. + * g++.dg/overload/operator5.C: Likewise. + + * gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax + errors in dg-message directives, add comments. + +2012-06-28 Kai Tietz + + * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of + hard-coded 'unsigned long'. + +2012-06-28 Jakub Jelinek + + PR tree-optimization/51581 + * gcc.dg/vect/pr51581-4.c: New test. + + PR tree-optimization/53645 + * gcc.c-torture/execute/pr53645-2.c: New test. + +2012-06-28 Richard Guenther + + PR middle-end/53790 + * gcc.dg/torture/pr53790.c: New testcase. + +2012-06-28 Jakub Jelinek + + PR tree-optimization/53645 + * gcc.c-torture/execute/pr53645.c: New test. + +2012-06-28 Arnaud Charlet + + * gnat.dg/deep_old.adb, gnat.dg/old_errors.adb: Removed, obsolete. + +2012-06-28 Alexandre Oliva + + PR debug/53671 + PR debug/49888 + * gcc.dg/guality/pr49888.c: Account for the possibility that + the variable is optimized out at the first test. + +2012-06-27 Jason Merrill + + * g++.dg/cpp0x/override2.C: Adjust. + * g++.dg/template/error5.C: Adjust. + * g++.dg/parse/crash28.C: Adjust. + + PR c++/53563 + * g++.dg/parse/template27.C: New. + * g++.dg/template/crash74.C: Adjust expected output. + +2012-06-27 Janus Weil + + PR fortran/41951 + PR fortran/49591 + * gfortran.dg/typebound_operator_16.f03: New. + +2012-06-27 Jakub Jelinek + + * gcc.target/i386/sse4_1-pmuldq.c (TEST): Initialize + even src1.i and src2.i fields even in the second half of the arrays. + +2012-06-27 Ramana Radhakrishnan + + PR c++/51033. + * g++.dg/torture/vshuf-16.inc: New test. + * g++.dg/torture/vshuf-2.inc: New test. + * g++.dg/torture/vshuf-4.inc: New test. + * g++.dg/torture/vshuf-8.inc: New test. + * g++.dg/torture/vshuf-main.inc: New test. + * g++.dg/torture/vshuf-v16hi.C: New test. + * g++.dg/torture/vshuf-v16qi.C: New test. + * g++.dg/torture/vshuf-v2df.C: New test. + * g++.dg/torture/vshuf-v2di.C: New test. + * g++.dg/torture/vshuf-v2sf.C: New test. + * g++.dg/torture/vshuf-v2si.C: New test. + * g++.dg/torture/vshuf-v4df.C: New test. + * g++.dg/torture/vshuf-v4di.C: New test. + * g++.dg/torture/vshuf-v4sf.C: New test. + * g++.dg/torture/vshuf-v4si.C: New test. + * g++.dg/torture/vshuf-v8hi.C: New test. + * g++.dg/torture/vshuf-v8qi.C: New test. + * g++.dg/torture/vshuf-v8si.C: New test. + +2012-06-27 Richard Guenther + + PR middle-end/53676 + * gcc.dg/tree-ssa/scev-6.c: New testcase. + +2012-06-26 Janis Johnson + + * lib/scandump.exp (scan-dump, scan-dump-not, scan-dump-dem, + scan-dump-dem-not): Use printable pattern in test name. + +2012-06-26 Sterling Augustine + Dominique Dhumieres + + * gcc.dg/pubtypes-2.c: Update expected output. + * gcc.dg/pubtypes-3.c: Likewise. + * gcc.dg/pubtypes-4.c: Likewise. + +2012-06-26 Bill Schmidt + + * gcc.dg/tree-ssa/slsr-1.c: New test. + * gcc.dg/tree-ssa/slsr-2.c: Likewise. + * gcc.dg/tree-ssa/slsr-3.c: Likewise. + * gcc.dg/tree-ssa/slsr-4.c: Likewise. + +2012-06-26 Matt Turner + + PR target/35294 + * gcc.target/arm/mmx-2.c: New. + +2012-06-26 Richard Guenther + + PR c++/53752 + * g++.dg/torture/pr53752.C: New testcase. + +2012-06-26 Jakub Jelinek + + PR tree-optimization/53748 + * gcc.c-torture/compile/pr53748.c: New test. + +2012-06-25 Jason Merrill + + PR c++/53498 + PR c++/53305 + * g++.dg/cpp0x/decltype38.C: New. + * g++.dg/cpp0x/variadic132.C: Remove dg-error. + +2012-06-25 Janis Johnson + + * lib/target-supports-dg.exp (testname-for-summary): New. + * lib/profopt.exp (profopt_execute): Define testname_with_flags. + * lib/gcc-dg.exp (cleanup-coverage-files, cleanup-repo-notes, + cleanup-stack-usage, cleanup-dump, cleanup-saved-temps, scan-module, + scan-module-absence, output-exists, output-exists-not: Use + testname-for-summary. + (dg-test): Clean up testname_with_flags. + * lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden, + scan-not-hidden, scan-file, scan-file-not, scan-stack-usage, + scan-stack-usage-not, scan-assembler-times, scan-assembler-dem, + scan-assembler-dem-not, object-size: Use testname-for-summary. + * lib/gcov.exp (run-gcov): Likewise. + * lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not, + scan-dump-dem, scan-dump-dem-note): Likewise. + + * lib/profopt.exp: Make prof_option_list local to profopt-execute. + * g++.dg/tree-prof/tree-prof.exp (PROFOPT_OPTIONS): Define after + including profopt.opt; save and restore existing value. + * g++.dg/bprob/bprob.exp: Likewise. + * gcc.dg/matrix/matrix.exp: Likewise. + * gcc.dg/tree-prof/tree-prof.exp: Likewise. + * gcc.misc-tests/bprob.exp: Likewise; also replace formerly-ignored + PROFOPT_OPTIONS. + +2012-06-25 Richard Henderson + + * gcc.dg/pr53749.c: New. + +2012-06-25 Jason Merrill + + PR c++/52988 + * g++.dg/cpp0x/nullptr28.C: New. + +2012-06-25 Christophe Lyon + + * gcc.target/arm/neon-vld1_dupQ.c: New. + +2012-06-25 Florian Weimer + + * g++.dg/init/new35.C: New. + * g++.dg/init/new36.C: New. + * g++.dg/init/new37.C: New. + * g++.dg/ext/vla5.C: New warning. + * g++.dg/ext/vla8.C: New warning. + * g++.dg/cpp0x/regress/debug-debug7.C: Update diagnostics. + +2012-06-25 Matthew Gretton-Dann + James Greenhalgh + + * gcc.target/arm/ftest-support-arm.h New testcase. + * gcc.target/arm/ftest-support-thumb.h Likewise. + * gcc.target/arm/ftest-support.h Likewise. + * gcc.target/arm/ftest-armv4-arm.c: Likewise. + * gcc.target/arm/ftest-armv4t-arm.c: Likewise. + * gcc.target/arm/ftest-armv4t-thumb.c: Likewise. + * gcc.target/arm/ftest-armv5t-arm.c Likewise. + * gcc.target/arm/ftest-armv5t-thumb.c Likewise. + * gcc.target/arm/ftest-armv5te-arm.c: Likewise. + * gcc.target/arm/ftest-armv5te-thumb.c: Likewise. + * gcc.target/arm/ftest-armv6-arm.c Likewise. + * gcc.target/arm/ftest-armv6-thumb.c Likewise. + * gcc.target/arm/ftest-armv6k-arm.c Likewise. + * gcc.target/arm/ftest-armv6k-thumb.c Likewise. + * gcc.target/arm/ftest-armv6m-thumb.c: Likewise. + * gcc.target/arm/ftest-armv6t2-arm.c: Likewise. + * gcc.target/arm/ftest-armv6t2-thumb.c: Likewise. + * gcc.target/arm/ftest-armv6z-arm.c: Likewise. + * gcc.target/arm/ftest-armv6z-thumb.c: Likewise. + * gcc.target/arm/ftest-armv7a-arm.c Likewise. + * gcc.target/arm/ftest-armv7a-thumb.c Likewise. + * gcc.target/arm/ftest-armv7m-thumb.c: Likewise. + * gcc.target/arm/ftest-armv7em-thumb.c: Likewise. + * gcc.target/arm/ftest-armv7r-arm.c Likewise. + * gcc.target/arm/ftest-armv7r-thumb.c Likewise. + * lib/target-supports.exp + (check_effective_target_arm_arch_FUNC): Add support for more + architectures. + (add_options_for_arm_arch_FUNC): Likewise. + (check_effective_target_arm_arch_FUNC_multilib): New functions. + +2012-06-25 Jason Merrill + + PR c++/53202 + * g++.dg/cpp0x/constexpr-tuple.C: New. + +2012-06-25 Jakub Jelinek + + PR target/53759 + * gcc.target/i386/pr53759.c: New test. + + PR c++/53594 + * g++.dg/cpp0x/nsdmi7.C: New test. + +2012-06-24 Kai Tietz + + * gcc.target/i386/pr23943.c (size_t): Use compatible type-definition + for LLP64 targets. + * gcc.target/i386/pr38988.c: Likewise. + +2012-06-22 Janus Weil + + PR fortran/47710 + PR fortran/53328 + * gfortran.dg/typebound_generic_12.f03: New. + * gfortran.dg/typebound_generic_13.f03: New. + +2012-06-22 Eric Botcazou + + * gnat.dg/lto15.ad[sb]: New test. + +2012-06-21 Meador Inge + + PR c/53702 + * gcc.dg/Wunused-local-typedefs.c: New testcase. + +2012-06-21 Steven Bosscher + + * gcc.dg/pch/ident-1.c: New test. + * gcc.dg/pch/ident-1.hs: Header file for new test. + +2012-06-21 Michael Matz + + PR middle-end/53688 + * gcc.c-torture/execute/pr53688.c: New test. + +2012-06-20 Richard Guenther + + PR tree-optimization/30318 + * gcc.dg/tree-ssa/vrp69.c: New testcase. + +2012-06-20 Richard Earnshaw + + * g++.dg/debug/dwarf2/nested-3.C: Add ARM comment character to regexp. + +2012-06-20 Rainer Orth + + * gcc.target/i386/clearcapv2.map: New file. + * gcc.target/i386/i386.exp: Try it first before clearcap.map. + +2012-06-19 Kaz Kojima + + * gcc.dg/stack-usage-1.c: Remove dg-options line for sh targets + and add __sh__ case. + +2012-06-19 Jason Merrill + + PR c++/52637 + * g++.dg/debug/localclass1.C: New. + +2012-06-16 Ville Voutilainen + + * g++.dg/cpp0x/override4.C: New. + +2012-06-14 Jason Merrill + + PR c++/53651 + * g++.dg/cpp0x/decltype37.C: New. + +2012-06-19 Kaz Kojima + + * gcc.dg/stack-usage-1.c: Use sh*-*-* instead of sh-*-*. + +2012-06-19 Joseph Myers + + * gcc.c-torture/compile/vector-5.c, + gcc.c-torture/compile/vector-6.c: New tests. + +2012-06-19 Richard Henderson + + * gcc.target/i386/pr33329.c: Change multiplier constant to 12345. + +2012-06-19 Richard Guenther + + * gcc.dg/tree-ssa/vrp68.c: Adjust testcase. + +2012-06-18 Uros Bizjak + + PR target/53712 + * gcc.target/i386/pr53712.c: New test. + +2012-06-18 Tobias Burnus + + PR fortran/53692 + * gfortran.dg/elemental_optional_args_6.f90: New. + +2012-06-18 Tobias Burnus + + PR fortran/53526 + * gfortran.dg/coarray_lib_move_alloc_1.f90: New. + * gfortran.dg/coarray/move_alloc_1.f90 + +2012-06-18 Tobias Burnus + + PR fortran/53526 + * gfortran.dg/coarray_27.f90: New. + +2012-06-18 Joey Ye + Greta Yorsh + + * gcc.target/arm/epilog-1.c: New test. + +2012-06-18 Richard Guenther + + PR tree-optimization/53693 + * g++.dg/torture/pr53693.C: New testcase. + +2012-06-18 Bill Schmidt + + PR tree-optimization/53703 + * gcc.dg/torture/pr53703.c: New test. + +2012-06-18 Richard Sandiford + + PR middle-end/53698 + * gcc.target/i386/pr53698.c: New test. + +2012-06-17 Uros Bizjak + + * gcc.target/i386/pr33329.c (f): Increase tabs array to 1024. + +2012-06-17 Tobias Burnus + + PR fortran/53691 + PR fortran/53685 + * gfortran.dg/transfer_check_3.f90: New. + +2012-06-17 Uros Bizjak + + * gcc.dg/tree-ssa/vrp68.c: Fix scan-tree-dump-times argument order. + +2012-06-16 Tobias Burnus + + PR fortran/53642 + PR fortran/45170 + * gfortran.dg/deferred_type_param_8.f90: New. + +2012-06-15 Janis Johnson + + * lib/gcov.exp (verify-lines, verify-branches, verify-calls): Use + testname that includes flags, passed in as new argument, in + pass/fail messages. + (run_gcov): Get testname from dg-test, use it in pass/fail messages + and pass it to verify-* procedures. + + * g++.dg/torture/stackalign/stackalign.exp: Combine stack + alignment torture options with usual torture options. + + * g++.dg/cpp0x/auto27.C: Add comments to checks for multiple + messages reported for one line of source code. + * g++.dg/cpp0x/constexpr-decl.C: Likewise. + * g++.dg/cpp0x/decltype2.C: Likewise. + * g++.dg/cpp0x/decltype3.C: Likewise. + * g++.dg/cpp0x/lambda/lambda-syntax1.C: Likewise. + * g++.dg/cpp0x/regress/error-recovery1.C: Likewise. + * g++.dg/cpp0x/static_assert3.C: Likewise. + * g++.dg/cpp0x/udlit-cpp98-neg.C: Likewise. + * g++.dg/cpp0x/udlit-shadow-neg.C: Likewise. + * g++.dg/cpp0x/union1.C: Likewise. + * g++.dg/cpp0x/variadic-ex10.C: Likewise. + * g++.dg/cpp0x/variadic-ex14.C: Likewise. + * g++.dg/cpp0x/variadic2.C: Likewise. + * g++.dg/cpp0x/variadic20.C: Likewise. + * g++.dg/cpp0x/variadic74.C: Likewise. + * g++.dg/diagnostic/bitfld2.C: Likewise. + * g++.dg/ext/attrib44.C: Likewise. + * g++.dg/ext/no-asm-1.C: Likewise. + * g++.dg/other/error34.C: Likewise. + * g++.dg/parse/crash46.C: Likewise. + * g++.dg/parse/error10.C: Likewise. + * g++.dg/parse/error2.C: Likewise. + * g++.dg/parse/error3.C: Likewise. + * g++.dg/parse/error36.C: Likewise. + * g++.dg/parse/error8.C: Likewise. + * g++.dg/parse/error9.C: Likewise. + * g++.dg/parse/parser-pr28152-2.C: Likewise. + * g++.dg/parse/parser-pr28152.C: Likewise. + * g++.dg/parse/template25.C: Likewise. + * g++.dg/parse/typename11.C: Likewise. + * g++.dg/tc1/dr147.C: Likewise. + * g++.dg/template/deduce3.C: Likewise. + * g++.dg/template/koenig9.C: Likewise. + * g++.dg/template/pr23510.C: Likewise. + * g++.dg/warn/pr12242.C: Likewise. + * g++.dg/warn/pr30551-2.C: Likewise. + * g++.dg/warn/pr30551.C: Likewise. + * g++.old-deja/g++.other/typename1.C: Likewise. + * g++.old-deja/g++.pt/niklas01a.C: Likewise. + +2012-06-15 Ramana Radhakrishnan + + PR c++/51033 + * c-c++-common/torture/vshuf-16.inc: Move from gcc.c-torture/execute/. + * c-c++-common/torture/vshuf-2.inc: Likewise. + * c-c++-common/torture/vshuf-4.inc: Likewise. + * c-c++-common/torture/vshuf-8.inc: Likewise. + * c-c++-common/torture/vshuf-main.inc: Likewise. + * c-c++-common/torture/vshuf-v16hi.c: Likewise. + * c-c++-common/torture/vshuf-v16qi.c: Likewise. + * c-c++-common/torture/vshuf-v2df.c: Likewise. + * c-c++-common/torture/vshuf-v2di.c: Likewise. + * c-c++-common/torture/vshuf-v2sf.c: Likewise. + * c-c++-common/torture/vshuf-v2si.c: Likewise. + * c-c++-common/torture/vshuf-v4df.c: Likewise. + * c-c++-common/torture/vshuf-v4di.c: Likewise. + * c-c++-common/torture/vshuf-v4hi.c: Likewise. + * c-c++-common/torture/vshuf-v4sf.c: Likewise. + * c-c++-common/torture/vshuf-v4si.c: Likewise. + * c-c++-common/torture/vshuf-v8hi.c: Likewise. + * c-c++-common/torture/vshuf-v8qi.c: Likewise. + * c-c++-common/torture/vshuf-v8si.c: Likewise. + +2012-06-15 Michael Matz + + * gcc.dg/tree-ssa/vector-4.c: New test. + +2012-06-15 Michael Matz + + * gcc.dg/debug/dwarf2/inline3.c: Adjust. + * gcc.dg/tree-ssa/foldstring-1.c: Adjust. + +2012-06-15 Ulrich Weigand + + PR tree-optimization/53636 + * gcc.target/arm/pr53636.c: New test. + +2012-06-15 Jakub Jelinek + + PR tree-optimization/51581 + * gcc.c-torture/execute/pr51581-1.c: New test. + * gcc.c-torture/execute/pr51581-2.c: New test. + * gcc.dg/vect/pr51581-1.c: New test. + * gcc.dg/vect/pr51581-2.c: New test. + * gcc.dg/vect/pr51581-3.c: New test. + * gcc.target/i386/avx-pr51581-1.c: New test. + * gcc.target/i386/avx-pr51581-2.c: New test. + * gcc.target/i386/avx2-pr51581-1.c: New test. + * gcc.target/i386/avx2-pr51581-2.c: New test. + * gcc.dg/vect/slp-26.c (main1): Divide by 0x8031 instead of 3. + +2012-06-15 Richard Guenther + + * gcc.c-torture/execute/20120615-1.c: New testcase. + +2012-06-15 Eric Botcazou + + * gnat.dg/vect8.ad[sb]: New test. + +2012-06-14 Richard Guenther + + * gcc.dg/tree-ssa/vrp.h: New testcase. + * gcc.dg/tree-ssa/vrp68.c: Likewise. + +2012-06-13 Christian Bruel + + PR target/53621 + * gcc.dg/stack-usage-1.c: Force -fomit-frame-pointer on SH. + +2012-06-14 Richard Sandiford + + * gcc.target/mips/mips.exp (mips-dg-options): Handle -msynci. + +2012-06-13 Janis Johnson + + PR testsuite/20771 + * lib/dg-pch.exp (dg-flags-pch): Add flags to make compile lines in + test summary unique. + + * lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden, + scan-not-hiddent, scan-file, scan-file-not, scan-stack-usage, + scan-stack-usage-not): Don't strip torture options from test name. + + * lib/scandump.exp (scan-dump-times): Use printable version of + regexp in test summary line. + + * gcc.dg/di-longlong64-sync-1.c: Add comments to checks for multiple + messages reported for one line of source code. + * gcc.dg/format/few-1.c: Likewise. + * gcc.dg/ia64-sync-2.c: Likewise. + * gcc.dg/sync-2.c: Likewise. + * gcc.dg/noncompile/pr44517.c: Likewise. + +2012-06-13 Alexandre Oliva + + PR debug/49888 + * gcc.dg/guality/pr49888.c: New. + +2012-06-13 Alexandre Oliva + + * g++.dg/tree-ssa/ivopts-2.C: Adjust for coalescing. + * gcc.dg/tree-ssa/forwprop-11.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-1.c: Likewise. + +2012-06-13 Tobias Burnus + + PR fortran/53643 + * gfortran.dg/intent_out_7.f90: New. + +2012-06-13 Tobias Burnus + + PR fortran/53597 + * gfortran.dg/save_4.f90: New. + +2012-06-12 Jakub Jelinek + + PR c/53532 + PR c/51034 + PR c/53196 + * gcc.dg/pr53532.c: New test. + * gcc.dg/c99-complit-2.c: Add two new dg-error directives, + adjust line numbers. + * gcc.dg/noncompile/950825-1.c: Expect incomplete type error message. + * gcc.dg/Wcxx-compat-8.c: Likewise. + * gcc.dg/pr51034.c: New test. + * gcc.dg/pr53196-1.c: New test. + * gcc.dg/pr53196-2.c: New test. + +2012-06-12 Janis Johnson + + * gcc.dg/torture/stackalign/stackalign.exp: Combine stack + alignment torture options with usual torture options. + * gcc.dg/torture/stackalign/alloca-2.c: Use dg-additional-options + instead of dg-options. + * gcc.dg/torture/stackalign/alloca-3.c: Likewise. + * gcc.dg/torture/stackalign/alloca-4.c: Likewise. + * gcc.dg/torture/stackalign/alloca-5.c: Likewise. + * gcc.dg/torture/stackalign/alloca-6.c: Likewise. + * gcc.dg/torture/stackalign/push-1.c: Likewise. + * gcc.dg/torture/stackalign/vararg-3.c: Likewise. + + * gcc.target/arm/di-longlong64-sync-withhelpers.c: Add comments + to checks for multiple messages reported for one line of source code. + * gcc.target/arm/di-longlong64-sync-withldrexd.c: Likewise. + + * gcc.c-torture/compile/sync-1.c: Add comments to checks for multiple + messages reported for one line of source code. + + * gcc.dg/20031223-1.c: Add comments to check for multiple + messages reported for one line of source code. + * gcc.dg/Wconversion-integer.c: Likewise. + * gcc.dg/Wfatal-2.c: Likewise. + * gcc.dg/Wfatal.c: Likewise. + * gcc.dg/Wobjsize-1.c: Likewise. + * gcc.dg/c99-vla-jump-1.c: Likewise. + * gcc.dg/c99-vla-jump-2.c: Likewise. + * gcc.dg/c99-vla-jump-3.c: Likewise. + * gcc.dg/c99-vla-jump-4.c: Likewise. + * gcc.dg/c99-vla-jump-5.c: Likewise. + * gcc.dg/decl-9.c: Likewise. + * gcc.dg/declspec-10.c: Likewise. + * gcc.dg/declspec-18.c: Likewise. + * gcc.dg/mtune.c: Likewise. + * gcc.dg/parser-pr28152-2.c: Likewise. + * gcc.dg/parser-pr28152.c: Likewise. + * gcc.dg/pr14475.c: Likewise. + * gcc.dg/pr27953.c: Likewise. + * gcc.dg/pr28322-3.c: Likewise. + * gcc.dg/pr30457.c: Likewise. + * gcc.dg/pr30551-2.c: Likewise. + * gcc.dg/pr30551-3.c: Likewise. + * gcc.dg/pr30551-4.c: Likewise. + * gcc.dg/pr30551-5.c: Likewise. + * gcc.dg/pr30551-6.c: Likewise. + * gcc.dg/pr30551.c: Likewise. + * gcc.dg/pr45461.c: Likewise. + * gcc.dg/pr48552-1.c: Likewise. + * gcc.dg/pr48552-2.c: Likewise. + * gcc.dg/redecl-1.c: Likewise. + * gcc.dg/transparent-union-3.c: Likewise. + * gcc.dg/utf-dflt.c: Likewise. + * gcc.dg/utf-dflt2.c: Likewise. + * gcc.dg/vla-8.c: Likewise. + * gcc.dg/vla-init-1.c: Likewise. + * gcc.dg/wtr-int-type-1.c: Likewise. + + * c-c++-common/raw-string-3.c: Add comments to checks for multiple + messages reported for for one line of source code. + * c-c++-common/raw-string-5.c: Likewise. + * c-c++-common/raw-string-4.c: Likewise. + * c-c++-common/raw-string-6.c: Likewise. + * c-c++-common/pr20000.c: Likewise. + + * gcc.dg/cpp/include2a.c: Add comments to checks for multiple + messages reported for one line of source code. + * gcc.dg/cpp/pr30786.c: Likewise. + * gcc.dg/cpp/pr28709.c: Likewise. + * gcc.dg/cpp/missing-header-MD.c: Likewise. + * gcc.dg/cpp/macspace2.c: Likewise. + * gcc.dg/cpp/missing-header-1.c: Likewise. + * gcc.dg/cpp/missing-header-MMD.c: Likewise. + * gcc.dg/cpp/missing-sysheader-MD.c: Likewise. + * gcc.dg/cpp/missing-sysheader-MMD.c: Likewise. + +2012-06-12 Jason Merrill + + PR c++/53599 + * g++.dg/template/local7.C: New. + +2012-06-12 Oleg Endo + + PR target/53511 + * gcc.target/sh/pr51340-1.c: Delete obsolete test case. + * gcc.target/sh/pr51340-2.c: Likewise. + * gcc.target/sh/pr51340-3.c: Likewise. + +2012-06-12 Michael Matz + + * gcc.dg/torture/alias-1.c: New test. + +2012-06-12 Jakub Jelinek + + PR rtl-optimization/53589 + * gcc.dg/torture/pr53589.c: New test. + +2012-06-12 Oleg Endo + + PR target/50749 + * gcc.target/sh/pr50749-sf-postinc-2.c: New. + * gcc.target/sh/pr50749-sf-postinc-4.c: New. + * gcc.target/sh/pr50749-qihisi-postinc-2.c: New. + * gcc.target/sh/pr50749-qihisi-postinc-4.c: New. + * gcc.target/sh/pr50749-sf-predec-2.c: New. + * gcc.target/sh/pr50749-sf-predec-4.c: New. + * gcc.target/sh/pr50749-qihisi-predec-1.c: New. + * gcc.target/sh/pr50749-qihisi-predec-3.c: New. + * gcc.target/sh/pr50749-sf-postinc-1.c: New. + * gcc.target/sh/pr50749-sf-postinc-3.c: New. + * gcc.target/sh/pr50749-qihisi-postinc-1.c: New. + * gcc.target/sh/pr50749-qihisi-postinc-3.c: New. + * gcc.target/sh/pr50749-sf-predec-1.c: New. + * gcc.target/sh/pr50749-sf-predec-3.c: New. + * gcc.target/sh/pr50749-qihisi-predec-2.c: New. + * gcc.target/sh/pr50749-qihisi-predec-4.c: New. + +2012-06-11 Sriraman Tallam + + * gcc.target/i386/builtin_target.c (vendor_signatures): New enum. + (check_intel_cpu_model): New function. + (check_amd_cpu_model): New function. + (check_features): New function. + (__get_cpuid_output): New function. + (check_detailed): New function. + (fn1): Rename to quick_check. + (main): Update to call quick_check and call check_detailed. + +2012-06-11 Richard Henderson + + * lib/target-supports.exp + (check_effective_target_sync_long_long_runtime): Use + check_effective_target_lp64 instead of + check_effective_target_powerpc64 for powerpc targets. + +2012-06-11 Oleg Endo + + PR target/53511 + * gcc.target/sh/pr53511-1.c: New. + +2012-06-11 Richard Guenther + + PR middle-end/53470 + * g++.dg/lto/pr53470_0.C: New testcase. + * gcc.dg/lto/pr53470_0.c: Likewise. + +2012-06-11 Richard Guenther + + PR c++/53605 + * g++.dg/ext/pr53605.C: New testcase. + +2012-06-11 Eric Botcazou + + * gnat.dg/specs/array1.ads: New test. + * gnat.dg/specs/array2.ads: Likewise. + * gnat.dg/array22.adb: Likewise. + +2012-06-11 Eric Botcazou + + * gnat.dg/constant4.adb: New test. + * gnat.dg/constant4_pkg.ads: New helper. + +2012-06-08 Janus Weil + + PR fortran/52552 + * gfortran.dg/allocate_alloc_opt_1.f90: Modified. + * gfortran.dg/allocate_class_1.f90: Modified. + * gfortran.dg/allocate_with_typespec_4.f90: Modified. + * gfortran.dg/allocate_class_2.f90: New. + +2012-06-07 Hans-Peter Nilsson + + PR middle-end/53535 + * gcc.dg/pr46647.c: xfail for cris-* and crisv32-*. + +2012-06-07 Thomas KÁnig + + PR fortran/52861 + * gfortran.dg/string_assign_2.f90: New test case. + +2012-06-07 Thomas KÁnig + + PR fortran/52861 + * gfortran.dg/string_assign_1.f90: New test case. + +2012-06-07 Jakub Jelinek + + PR middle-end/53580 + * gcc.dg/gomp/nesting-1.c: Expect errors rather than warnings. + * gcc.dg/gomp/critical-4.c: Likewise. + * gfortran.dg/gomp/appendix-a/a.35.1.f90: Likewise. + * gfortran.dg/gomp/appendix-a/a.35.3.f90: Likewise. + * gfortran.dg/gomp/appendix-a/a.35.4.f90: Likewise. + * gfortran.dg/gomp/appendix-a/a.35.6.f90: Likewise. + * c-c++-common/gomp/pr53580.c: New test. + +2012-06-07 Fabien ChÁne + + PR c++/51214 + * g++.dg/cpp0x/forw_enum11.C: New. + +2012-06-06 Paolo Carlini + + PR c++/53567 + * g++.dg/cpp0x/alias-decl-19.C: New. + +2012-06-06 Steven Bosscher + + * g++.old-deja/g++.brendan/array1.C: Remove dg-options. + +2012-06-06 Uros Bizjak + + * gcc.target/i386/avx-os-support.h (XCR_XFEATURE_ENABLED_MASK): New. + (XSTATE_FP): Ditto. + (XSTATE_SSE): Ditto. + (XSTATE_YMM): Ditto. + (avx_os_support): Use new defines. + +2012-06-06 Richard Guenther + + PR testsuite/32380 + * gfortran.dg/vect/pr32380.f: Adjust number of expected vectorized + loops. + +2012-06-06 Fabien ChÁne + + PR c++/52841 + * g++.dg/cpp0x/pr52841.C: New testcase. + +2012-06-06 Richard Guenther + + PR tree-optimization/53081 + * gcc.dg/tree-ssa/ldist-20.c: New testcase. + * gcc.dg/tree-ssa/loop-19.c: Add -fno-tree-loop-distribute-patterns. + +2012-06-05 Michael Meissner + + * gcc.target/powerpc/pr53487.c: New test. + +2012-06-05 Pat Haugen + + * gcc.target/powerpc/lhs-1.c: Use parm instead of stack space. + +2012-06-05 Edmar Wienskoski + + * gcc.dg/tree-ssa/vector-3.c: Adjust regular expression. + +2012-06-05 Richard Guenther + + PR tree-optimization/30442 + * gcc.dg/vect/bb-slp-30.c: New testcase. + +2012-06-05 Richard Guenther + + PR tree-optimization/53081 + * gcc.dg/tree-ssa/ldist-19.c: New testcase. + * gcc.c-torture/execute/builtins/builtins.exp: Always pass + -fno-tree-loop-distribute-patterns. + +2012-06-05 Alan Modra + + * gcc.target/powerpc/savres.c: Add -mdynamic-no-pic for darwin. + Check static chain in nested funcs. + +2012-06-04 Tobias Burnus + + PR fortran/50619 + * gfortran.dg/init_flag_10.f90: New. + +2012-06-04 Paolo Carlini + + PR c++/53524 + * g++.dg/warn/Wenum-compare-no-2: New. + +2012-06-04 Dodji Seketeli + + PR preprocessor/53463 + * g++.dg/cpp/limits.C: New test. + * g++.dg/parse/error19.C: Adjust. + * g++.dg/warn/Wconversion-real-integer2.C: Likewise. + * g++.dg/warn/pr35635.C: Likewise. + * g++.old-deja/g++.pt/assign1.C: Likewise. + +2012-06-04 Edmar Wienskoski + + PR target/53559 + * gcc.target/powerpc/cell_builtin_1.c: New test case. + * gcc.target/powerpc/cell_builtin_2.c: Ditto. + * gcc.target/powerpc/cell_builtin_3.c: Ditto. + * gcc.target/powerpc/cell_builtin_4.c: Ditto. + * gcc.target/powerpc/cell_builtin_5.c: Ditto. + * gcc.target/powerpc/cell_builtin_6.c: Ditto. + * gcc.target/powerpc/cell_builtin_7.c: Ditto. + * gcc.target/powerpc/cell_builtin_8.c: Ditto. + +2012-06-04 Andreas Schwab + + * g++.dg/debug/dwarf2/nested-3.C: Allow for | comments. + +2012-06-04 Jakub Jelinek + + PR tree-optimization/53550 + * gcc.dg/pr53550.c: New test. + +2012-06-04 Richard Guenther + + * gcc.dg/tree-ssa/ldist-11.c: Enable -ftree-loop-distribute-patterns. + * gcc.dg/tree-ssa/ldist-17.c: Likewise. + * gcc.dg/tree-ssa/ldist-pr45948.c: Likewise. + +2012-06-03 Alessandro Fanfarillo + + PR fortran/48831 + * gfortran.dg/parameter_array_element_2.f90: New. + +2012-06-03 Oleg Endo + + PR target/53512 + * gcc.target/sh/pr53512-1.c: New. + * gcc.target/sh/pr53512-2.c: New. + * gcc.target/sh/pr53512-3.c: New. + * gcc.target/sh/pr53512-4.c: New. + +2012-06-01 Jason Merrill + + PR c++/52973 + * g++.dg/ext/visibility/template12.C: New. + * g++.dg/ext/attrib14.C: Adjust warning line. + + PR c++/52725 + * g++.dg/parse/new6.C: New. + * g++.dg/template/sizeof-template-argument.C: Adjust error message. + +2012-06-01 Eric Botcazou + + * c-c++-common/restrict-2.c: Revert previous change. + +2012-06-01 Jason Merrill + + PR c++/53137 + * g++.dg/cpp0x/lambda/lambda-template5.C: New. + + PR c++/53484 + * g++.dg/cpp0x/auto33.C: New. + +2012-06-01 Paolo Carlini + + PR c++/26155 + * g++.dg/parse/namespace-alias-1.C: New. + +2012-06-01 Christian Bruel + + * gcc.dg/spec-options.c: New test. + * gcc.dg/foo.specs: New file. + +2012-06-01 Eric Botcazou + + PR ada/53517 + * gnat.dg/lto14.adb: Skip on Solaris. + +2012-06-01 Hans-Peter Nilsson + + * gcc.target/cris/sync-1-v10.c, + gcc.target/cris/sync-1-v32.c, gcc.target/cris/sync-1.c, + gcc.target/cris/sync-2c.c, gcc.target/cris/sync-2i.c, + gcc.target/cris/sync-2s.c, gcc.target/cris/sync-3i.c, + gcc.target/cris/sync-3s.c, gcc.target/cris/sync-4c.c, + gcc.target/cris/sync-4i.c, gcc.target/cris/sync-4s.c, + gcc.target/cris/torture/sync-mis-op-i-1.c, + gcc.target/cris/torture/sync-mis-op-i-1a.c, + gcc.target/cris/torture/sync-mis-op-i-2.c, + gcc.target/cris/torture/sync-mis-op-i-2a.c, + gcc.target/cris/torture/sync-mis-op-i-3.c, + gcc.target/cris/torture/sync-mis-op-i-3a.c, + gcc.target/cris/torture/sync-mis-op-s-1.c, + gcc.target/cris/torture/sync-mis-op-s-1a.c, + gcc.target/cris/torture/sync-mis-xchg-i-1.c, + gcc.target/cris/torture/sync-mis-xchg-i-1a.c, + gcc.target/cris/torture/sync-mis-xchg-i-2.c, + gcc.target/cris/torture/sync-mis-xchg-i-2a.c, + gcc.target/cris/torture/sync-mis-xchg-i-3.c, + gcc.target/cris/torture/sync-mis-xchg-i-3a.c, + gcc.target/cris/torture/sync-mis-xchg-s-1.c, + gcc.target/cris/torture/sync-mis-xchg-s-1a.c: New tests. + +2012-05-31 Richard Guenther + + * gcc.dg/tree-ssa/ldist-pr45948-2.c: New testcase copy of + ldist-pr45948.c with disabled SCCP. + +2012-05-31 Richard Guenther + + PR middle-end/48493 + * gcc.dg/torture/pr48493.c: New testcase. + +2012-05-31 Greta Yorsh + + * lib/target-supports.exp (check_effective_target_vect_char_mult): Add + arm32 to targets. + * gcc.dg/vect/slp-perm-8.c (main): Prevent vectorization + of the initialization loop. + (dg-final): Adjust the expected number of vectorized loops depending + on vect_char_mult target selector. + +2012-05-31 Hans-Peter Nilsson + + * gcc.target/cris/asm-v8.S, gcc.target/cris/asm-v10.S, + gcc.target/cris/asm-other.S, gcc.target/cris/inasm-v8.c, + gcc.target/cris/inasm-v10.c, gcc.target/cris/inasm-other.c: + New tests. + +2012-05-30 Jason Merrill + + PR c++/53356 + * g++.dg/init/new34.C: New. + * g++.dg/tree-ssa/stabilize1.C: New. + +2012-05-30 Jakub Jelinek + + PR c++/53356 + * g++.dg/init/new33.C: New test. + +2012-05-30 Richard Guenther + + PR middle-end/53501 + * gcc.dg/torture/pr53501.c: New testcase. + * c-c++-common/restrict-2.c: Adjust. + +2012-05-30 Alan Modra + + * gcc.target/powerpc/powerpc.exp: Load torture-options.exp, call + torture-finish. + +2012-05-30 Marc Glisse + + * gcc.target/i386/shuf-concat.c: New test. + +2012-05-30 Jakub Jelinek + + PR rtl-optimization/53519 + * gcc.c-torture/compile/pr53519.c: New test. + +2012-05-30 Ramana Radhakrishnan + + * gcc.target/arm/neon-vrev.c: New. + +2012-05-29 Oleg Endo + + PR target/51340 + * gcc.target/sh/pr51340-1.c: New. + * gcc.target/sh/pr51340-2.c: New. + * gcc.target/sh/pr51340-3.c: New. + +2012-05-29 Richard Guenther + + PR tree-optimization/53516 + * gcc.dg/torture/pr53516.c: New testcase. + +2012-05-29 Dodji Seketeli + + PR preprocessor/53229 + * gcc.dg/cpp/paste6.c: Force to run without + -ftrack-macro-expansion. + * gcc.dg/cpp/paste8.c: Likewise. + * gcc.dg/cpp/paste8-2.c: New test, like paste8.c but run with + -ftrack-macro-expansion. + * gcc.dg/cpp/paste12.c: Force to run without + -ftrack-macro-expansion. + * gcc.dg/cpp/paste12-2.c: New test, like paste12.c but run with + -ftrack-macro-expansion. + * gcc.dg/cpp/paste13.c: Likewise. + * gcc.dg/cpp/paste14.c: Likewise. + * gcc.dg/cpp/paste14-2.c: New test, like paste14.c but run with + -ftrack-macro-expansion. + * gcc.dg/cpp/paste18.c: New test. + +2012-05-29 Hans-Peter Nilsson + + * gcc.target/cris/torture/trap-1.c, + gcc.target/cris/torture/trap-2.c, + gcc.target/cris/torture/trap-3.c, + gcc.target/cris/torture/trap-v0.c, + gcc.target/cris/torture/trap-v3.c: New tests. + +2012-05-28 Paolo Carlini + + PR c++/25137 + * g++.dg/warn/Wbraces3.C: New. + * g++.dg/warn/Wbraces4.C: Likewise. + +2012-05-28 Jakub Jelinek + + PR tree-optimization/53505 + * c-c++-common/torture/pr53505.c: New test. + +2012-05-27 Nathan Sidwell + + * gcc.dg/stmt-expr-4.c: New. + +2012-05-26 Paolo Carlini + + PR c++/53491 + * g++.dg/parse/crash60.C: New. + +2012-05-26 Jason Merrill + + PR c++/53220 + * c-c++-common/array-lit.c: New. + * g++.dg/ext/complit12.C: #if 0 out decay-to-pointer test. + +2012-05-26 Eric Botcazou + + PR ada/50294 + * gnat.dg/array21.adb: New test. + +2012-05-26 Eric Botcazou + + * gnat.dg/renaming5.adb: Adjust dg-final directive. + +2012-05-25 Paolo Carlini + + PR c++/32054 + * g++.dg/other/anon-union3.C: New. + +2012-05-25 Ian Lance Taylor + + * gcc.dg/split-6.c: New test. + +2012-05-25 Eric Botcazou + + * gnat.dg/lto14.adb: New test. + +2012-05-25 Tristan Gingold + + * gcc.target/i386/large-frame.c: New. + +2012-05-24 Pat Haugen + * gcc.target/powerpc/lhs-1.c: New. + * gcc.target/powerpc/lhs-2.c: New. + * gcc.target/powerpc/lhs-3.c: New. + +2012-05-24 Dodji Seketeli + + Make unwound macro expansion trace less redundant + * gcc.dg/cpp/macro-exp-tracking-1.c: Adjust. + * gcc.dg/cpp/macro-exp-tracking-2.c: Likewise. + * gcc.dg/cpp/macro-exp-tracking-3.c: Likewise. + * gcc.dg/cpp/macro-exp-tracking-4.c: Likewise. + * gcc.dg/cpp/macro-exp-tracking-5.c: Likewise. + * gcc.dg/cpp/pragma-diagnostic-2.c: Likewise. + +2012-05-24 Paolo Carlini + + PR c++/53464 + * g++.dg/cpp0x/constexpr-default1.C: New. + +2012-05-24 Paolo Carlini + + PR c++/32080 + * g++.dg/eh/goto2.C: New. + +2012-05-24 Richard Guenther + + PR middle-end/53460 + * g++.dg/tree-prof/pr53460.C: New testcase. + +2012-05-24 Richard Guenther + + PR bootstrap/53466 + * g++.dg/debug/pr53466.C: New testcase. + +2012-05-24 Jakub Jelinek + + PR tree-optimization/53465 + * gcc.c-torture/execute/pr53465.c: New test. + +2012-05-23 Tobias Burnus + + PR fortran/51055 + PR fortran/45170 + * gfortran.dg/allocate_with_typespec_6.f90: New. + +2012-05-23 Paolo Carlini + + PR c++/29185 + * g++.dg/warn/delete-array-1.C: New. + +2012-05-23 Richard Guenther + + * gcc.dg/torture/pr39074-2.c: Adjust. + * gcc.dg/torture/pr39074.c: Likewise. + * gcc.dg/torture/pta-structcopy-1.c: Likewise. + * gcc.dg/tree-ssa/alias-19.c: Likewise. + +2012-05-22 Jan Hubicka + + PR middle-end/53161 + * g++.dg/torture/pr53161.C: New testcase. + +2012-05-22 Tobias Burnus + + PR fortran/53389 + * gfortran.dg/realloc_on_assign_15.f90: New. + +2012-05-22 Richard Guenther + + PR middle-end/51071 + * gcc.dg/torture/pr51071-2.c: New testcase. + +2012-05-22 Paolo Bonzini + + PR tree-optimization/53336 + * g++.dg/torture/pr53336.C: New testcase. + +2012-05-22 Dodji Seketeli + + PR c++/53322 + * g++.dg/warn/Wunused-local-typedefs.C: Adjust to use -Wunused + instead of -Wunused-local-typedefs. + +2012-05-21 Paolo Carlini + + PR c++/51184 + * g++.dg/other/abstract4.C: New- + +2012-05-21 Paolo Carlini + + PR c++/40821 + * g++.dg/ext/attrib46.C: New. + +2012-05-21 Joseph Myers + + PR c/53418 + * gcc.c-torture/compile/pr53418-1.c, + gcc.c-torture/compile/pr53418-2.c: New tests. + +2012-05-21 Jakub Jelinek + + PR tree-optimization/53366 + * gcc.dg/torture/pr53366-1.c: New test. + * gcc.dg/torture/pr53366-2.c: New test. + * gcc.target/i386/pr53366-1.c: New test. + * gcc.target/i386/pr53366-2.c: New test. + + PR tree-optimization/53409 + * gcc.c-torture/compile/pr53409.c: New test. + + PR tree-optimization/53410 + * gcc.c-torture/compile/pr53410-1.c: New test. + * gcc.c-torture/compile/pr53410-2.c: New test. + +2012-05-21 H.J. Lu + + PR target/53425 + * gcc.target/i386/pr53425-1.c: New file. + * gcc.target/i386/pr53425-2.c: Likewise. + +2012-05-21 Richard Guenther + + PR tree-optimization/53408 + * gcc.dg/torture/pr53408.c: New testcase. + +2012-05-21 Uros Bizjak + H.J. Lu + + PR target/53416 + * gcc.target/i386/pr53416.c: New file. + +2012-05-21 Richard Guenther + + * gfortran.dg/pr46519-2.f90: Adjust to avoid memset transform. + +2012-05-21 Richard Guenther + + * gcc.dg/torture/ldist-1.c: New testcase. + +2012-05-20 Eric Botcazou + + * gnat.dg/lto13.adb: New test. + * gnat.dg/lto13_pkg.ad[sb]: New helper. + +2012-05-18 Eric Botcazou + + * gnat.dg/specs/lto12.ads: New test. + * gnat.dg/specs/lto12_pkg.ads: New helper. + +2012-05-18 Richard Guenther + + PR tree-optimization/53346 + * gcc.dg/tree-ssa/ldist-18.c: New testcase. + * gcc.target/i386/incoming-10.c: Adjust. + * gcc.target/i386/incoming-11.c: Likewise. + * gcc.target/i386/pr46295.c: Likewise. + +2012-05-18 Richard Guenther + + * gcc.dg/pr53352.c: Return zero. + +2012-05-18 Richard Guenther + + PR tree-optimization/53390 + * gcc.dg/torture/pr53390.c: New testcase. + +2012-05-18 Meador Inge + + PR rtl-optimization/53352 + * gcc.dg/pr53352.c: New test. + +2012-05-17 David S. Miller + + * gfortran.dg/bessel_7.f90: Bump allowed precision to avoid + failure on sparc-*-linux-gnu. + +2012-05-17 Paolo Carlini + + PR c++/39681 + * g++.dg/parse/error49.C: New. + * g++.dg/cpp0x/error8.C: Likewise. + * g++.dg/ext/utf-cxx98.C: Adjust dg-error directive. + * g++.dg/ext/utf-dflt2.C: Likewise. + * g++.dg/ext/utf-gnuxx98.C: Likewise. + * g++.dg/ext/utf-dflt.C: Likewise. + * c-c++-common/raw-string-3.c: Likewise. + * c-c++-common/raw-string-4.c: Likewise. + +2012-05-17 Paolo Carlini + + PR c++/53371 + * g++.dg/cpp0x/catch1.C: New. + +2012-05-17 Paolo Carlini + + PR c++/44516 + * g++.dg/parse/error48.C: New. + * g++.dg/template/crash89.C: Adjust dg-error line numbers. + * g++.old-deja/g++.robertl/eb109.C: Add column info to dg-error string. + +2012-05-16 Patrick Marlier + + * gcc.dg/tm/indirect-2.c: New test. + +2012-05-16 Bill Schmidt + + PR tree-optimization/53217 + * gfortran.dg/pr53217.f90: New test. + +2012-05-16 Richard Guenther + + PR tree-optimization/53364 + * g++.dg/torture/pr53364.C: New testcase. + +2012-05-16 Georg-Johann Lay + + PR testsuite/52641 + * gcc.dg/pr52549.c: Fix test for long != void* + * gcc.c-torture/execute/pr52979-1.x: New file. + * gcc.c-torture/execute/pr52979-2.x: New file. + +2012-05-16 Dodji Seketeli + + PR preprocessor/7263 + * gcc.dg/binary-constants-2.c: Run without tracking locations + accross macro expansion. + * gcc.dg/binary-constants-3.c: Likewise. + * gcc.dg/cpp/sysmac2.c: Likewise. + * gcc.dg/nofixed-point-2.c: Adjust for more precise + location. + * gcc.dg/cpp/syshdr3.c: New test. + * gcc.dg/cpp/syshdr3.h: New header for the new test above. + * gcc.dg/system-binary-constants-1.c: New test. + * gcc.dg/system-binary-constants-1.h: New header for the new test + above. + * g++.dg/cpp/syshdr3.C: New test. + * g++.dg/cpp/syshdr3.h: New header the new test above. + * g++.dg/system-binary-constants-1.C: New test. + * g++.dg/system-binary-constants-1.h: New header the new test + above. + +2012-05-15 Paolo Carlini + + * g++.old-deja/g++.pt/crash10.C: Adjust post PR11586. + +2012-05-15 Jakub Jelinek + + PR target/53358 + * gcc.dg/pr53358.c: New test. + +2012-05-15 Paolo Carlini + + PR c++/11856 + * g++.dg/warn/Wtype-limits.C: Don't warn in templates. + * g++.dg/warn/Wtype-limits-Wextra.C: Likewise. + +2012-05-15 Olivier Hainque + + * g++.dg/eh/sighandle.C: New testcase. + +2012-05-15 Richard Guenther + + PR tree-optimization/53355 + * gcc.dg/tree-ssa/vrp67.c: New testcase. + +2012-05-15 Bernhard Reutner-Fischer + + * gfortran.dg/*.f90: Remove now redundant manual + cleanup-modules directive. + +2012-05-14 Uros Bizjak + + * gcc.target/i386/avx256-unaligned-load-[1234].c: Update scan strings. + * gcc.target/i386/avx256-unaligned-store-[1234].c: Ditto. + +2012-05-14 Janne Blomqvist + + PR fortran/52428 + * gfortran.dg/int_range_io_1.f90: New test. + +2012-05-14 Andi Kleen + Jakub Jelinek + + PR target/53315 + * gcc.target/i386/i386.exp (check_effective_target_rtm): New. + * gcc.target/i386/rtm-check.h: New file. + * gcc.target/i386/pr53315.c: New test. + +2012-05-14 Tobias Burnus + + PR fortran/49110 + PR fortran/51055 + PR fortran/53329 + * gfortran.dg/deferred_type_param_4.f90: New. + * gfortran.dg/deferred_type_param_6.f90: New. + +2012-05-14 Bernd Schmidt + + * gcc.target/i386/retarg.c: New test. + +2012-05-13 Alessandro Fanfarillo + + PR fortran/45170 + * gfortran.dg/deferred_type_param_3.f90: New. + * gfortran.dg/deferred_type_proc_pointer_1.f90: New. + * gfortran.dg/deferred_type_proc_pointer_2.f90: New. + +2012-05-12 Eric Botcazou + + * gnat.dg/null_pointer_deref3.adb: New test. + +2012-05-12 Tobias Burnus + + PR fortran/49110 + PR fortran/52843 + * gfortran.dg/deferred_type_param_5.f90: New. + +2012-05-12 Paolo Carlini + + * g++.dg/parse/error47.C: New. + +2012-05-11 Thomas Koenig + + PR fortran/52537 + * gfortran.dg/string_compare_4.f90: Change option + to -fdump-tree-original. Add test case for kind=4. + +2012-05-11 Thomas Koenig + + PR fortran/52537 + * gfortran.dg/string_compare_4.f90: New test. + +2012-05-11 Rainer Orth + + * g++.dg/debug/dwarf2/nested-3.C: Allow for ! comments. + +2012-05-11 Paolo Carlini + + PR c++/53305 + * g++.dg/cpp0x/variadic132.C: New. + +2012-05-10 Paolo Carlini + + PR c++/53158 + * g++.dg/cpp0x/lambda/lambda-err2.C: New. + * g++.dg/parse/error26.C: Tweak dg-error column number. + +2012-05-10 Paolo Carlini + + PR c++/53301 + * g++.dg/warn/Wzero-as-null-pointer-constant-6.C: New. + +2012-05-10 Eric Botcazou + + * gnat.dg/lto11.ad[sb]: New test. + +2012-05-09 Uros Bizjak + + PR target/52908 + * gcc.target/i386/xop-imul32widen-vector.c: Update scan-assembler + directive to Scan for vpmuldq, not vpmacsdql. + +2012-05-09 Michael Matz + + PR tree-optimization/53185 + * gcc.dg/vect/pr53185.c: New test. + +2012-05-09 H.J. Lu + + PR middle-end/53249 + * gcc.target/i386/pr53249.c: New. + +2012-05-09 Richard Guenther + + PR tree-optimization/18437 + * gfortran.dg/vect/rnflow-trs2a2.f90: Move ... + * gfortran.dg/vect/fast-math-rnflow-trs2a2.f90: ... here. + +2012-05-09 Jakub Jelinek + + PR tree-optimization/53226 + * gcc.c-torture/compile/pr53226.c: New test. + +2012-05-09 Rainer Orth + + * gcc.target/i386/hle-add-acq-1.c: Allow for ; after lock. + * gcc.target/i386/hle-add-rel-1.c: Likewise. + * gcc.target/i386/hle-and-acq-1.c: Likewise. + * gcc.target/i386/hle-and-rel-1.c: Likewise. + * gcc.target/i386/hle-cmpxchg-acq-1.c: Likewise. + * gcc.target/i386/hle-cmpxchg-rel-1.c: Likewise. + * gcc.target/i386/hle-or-acq-1.c: Likewise. + * gcc.target/i386/hle-or-rel-1.c: Likewise. + * gcc.target/i386/hle-sub-acq-1.c: Likewise. + * gcc.target/i386/hle-sub-rel-1.c: Likewise. + * gcc.target/i386/hle-xadd-acq-1.c: Likewise. + * gcc.target/i386/hle-xadd-rel-1.c: Likewise. + * gcc.target/i386/hle-xor-acq-1.c: Likewise. + * gcc.target/i386/hle-xor-rel-1.c: Likewise. + +2012-05-09 Dehao Chen + + * gcc.dg/predict-1.c: Remove the replicated text in this test. + * gcc.dg/predict-2.c: Likewise. + * gcc.dg/predict-3.c: Likewise. + * gcc.dg/predict-4.c: Likewise. + * gcc.dg/predict-5.c: Likewise. + * gcc.dg/predict-6.c: Likewise. + +2012-05-08 Hans-Peter Nilsson + + PR target/53272 + * gcc.dg/torture/pr53272-1.c, gcc.dg/torture/pr53272-2.c: New test. + +2012-05-08 Richard Guenther + + * gcc.dg/fold-bitand-4.c: New testcase. + +2012-05-08 Dehao Chen + + * gcc.dg/predict-1.c: Check if LOOP_IV_COMPARE static predict + heuristic is working properly. + * gcc.dg/predict-2.c: Likewise. + * gcc/dg/predict-3.c: Likewise. + * gcc/dg/predict-4.c: Likewise. + * gcc/dg/predict-5.c: Likewise. + * gcc/dg/predict-6.c: Likewise. + +2012-05-07 Jakub Jelinek + + PR tree-optimization/53239 + * g++.dg/opt/vrp3.C: New test. + * g++.dg/opt/vrp3-aux.cc: New file. + * g++.dg/opt/vrp3.h: New file. + +2012-05-07 Rainer Orth + + * g++.dg/debug/dwarf2/nested-3.C: Allow for / comments and missing + .uleb128 support in assembler output. + +2012-05-07 Richard Guenther + + PR lto/42987 + * g++.dg/lto/pr42987_0.C: New testcase. + * g++.dg/lto/pr42987_1.C: Likewise. + +2012-05-07 Tobias Burnus + + PR fortran/53255 + * gfortran.dg/typebound_operator_15.f90: New. + +2012-05-06 Tobias Burnus + + PR fortran/41587 + * gfortran.dg/class_array_13.f90: New. + +2012-05-06 Tristan Gingold + + * gnat.dg/warn7.adb: New test. + +2012-05-06 Eric Botcazou + + * gnat.dg/specs/renamings.ads: Rename to... + * gnat.dg/specs/renaming1.ads: ...this. + * gnat.dg/specs/renaming2.ads: New test. + * gnat.dg/specs/renaming2_pkg1.ads: New helper. + * gnat.dg/specs/renaming2_pkg2.ads: Likewise. + * gnat.dg/specs/renaming2_pkg3.ads: Likewise. + * gnat.dg/specs/renaming2_pkg4.ad[sb]: Likewise. + +2012-05-06 Eric Botcazou + + * gnat.dg/discr36.ad[sb]: New test. + * gnat.dg/discr36_pkg.ad[sb]: New helper. + +2012-05-05 Manuel LÁpez-IbÁÁez + + PR c/43772 + * c-c++-common/pr43772.c: New. + +2012-05-05 Paul Thomas + + PR fortran/41600 + * gfortran.dg/select_type_26.f03 : New test. + * gfortran.dg/select_type_27.f03 : New test. + + PR fortran/53191 + * gfortran.dg/select_type_28.f03 : New test. + +2012-05-05 Janne Blomqvist + + PR fortran/49010 + PR fortran/24518 + * gfortran.dg/mod_sign0_1.f90: New test. + * gfortran.dg/mod_large_1.f90: New test. + +2012-05-04 Tobias Burnus + + PR fortran/53175 + gfortran.dg/public_private_module_5.f90: New. + +2012-05-04 Tobias Burnus + + PR fortran/53111 + * gfortran.dg/constructor_7.f90: New. + * gfortran.dg/constructor_8.f90: New. + +2012-05-04 Paolo Carlini + + PR c++/53166 + * g++.dg/cpp0x/static_assert7.C: New. + +2012-05-04 Ulrich Weigand + + PR tree-optimization/52633 + * gcc.dg/vect/vect-over-widen-1.c: Two patterns should now be + recognized as widening shifts instead of over-widening. + * gcc.dg/vect/vect-over-widen-1-big-array.c: Likewise. + * gcc.dg/vect/vect-over-widen-4.c: Likewise. + * gcc.dg/vect/vect-over-widen-4-big-array.c: Likewise. + * gcc.target/arm/pr52633.c: New test. + +2012-05-04 Richard Guenther + + PR tree-optimization/53168 + * gcc.dg/torture/pr53168.c: New testcase. + * gcc.dg/tree-ssa/ssa-pre-30.c: Likewise. + +2012-05-04 Richard Guenther + + * gcc.dg/lto/pr53214_0.c: New testcase. + +2012-05-04 Eric Botcazou + + * gcc.target/ia64/pr48496.c: New test. + * gcc.target/ia64/pr52657.c: Likewise. + +2012-05-04 Manuel LÁpez-IbÁÁez + + PR c/51712 + * c-c++-common/pr51712.c: New. + +2012-05-03 Michael Meissner + + PR target/53199 + * gcc.target/powwerpc/pr53199.c: New file. + +2012-05-03 Jason Merrill + + * g++.dg/debug/dwarf2/nested-3.C: Adjust pattern. + + * gcc.dg/debug/dwarf2/dups-types.c: New. + * gcc.dg/debug/dwarf2/dups-types.h: New. + +2012-05-03 Jason Merrill + + * g++.dg/debug/dwarf2/namespace-2.C: New. + * g++.dg/debug/dwarf2/localclass3.C: New. + +2012-05-03 Jason Merrill + + * g++.dg/debug/dwarf2/thunk1.C: New. + +2012-05-03 Paolo Carlini + + PR c++/53186 + * g++.dg/other/final2.C: New. + +2012-05-03 Richard Guenther + + * gcc.dg/tree-ssa/ssa-pre-27.c: Remove XFAIL. + +2012-05-03 Uros Bizjak + + * gcc.target/i386/hle-cmpxchg-acq-1.c (dg-options): Add -march=x86-64. + * gcc.target/i386/hle-xadd-acq-1.c (dg-options): Ditto. + * gcc.target/i386/hle-cmpxchg-rel-1.c (dg-options): Ditto. + * gcc.target/i386/hle-xadd-rel-1.c (dg-options): Ditto. + +2012-05-03 Jakub Jelinek + + * gcc.target/i386/hle-xadd-rel-1.c: Match .byte 0xf3 instead of + .byte 0xf2. + * gcc.target/i386/hle-sub-rel-1.c: Likewise. + * gcc.target/i386/hle-xchg-rel-1.c: Likewise. + * gcc.target/i386/hle-add-rel-1.c: Likewise. + + PR debug/53174 + * gcc.dg/pr53174.c: New test. + + PR target/53187 + * gcc.target/arm/pr53187.c: New test. + * gcc.c-torture/compile/pr53187.c: New test. + +2012-05-03 Richard Guenther + + * gfortran.dg/pr52621.f90: Add -w to avoid diagnostic about + unsupported prefetching support. + +2012-05-03 Greta Yorsh + + * gcc.dg/fixed-point/composite-type.c (dg-options): Add + option -ftrack-macro-expansion=0. + * gcc.dg/fixed-point/operator-bitwise.c (dg-options): Add + option -ftrack-macro-expansion=0. + +2012-05-03 Greta Yorsh + + * gcc.dg/builtin-stringop-chk-1.c (dg-options): Replace + dg-options for target arm with dg-additional-options. + +2012-05-03 Richard Guenther + + PR tree-optimization/53144 + * gcc.dg/torture/pr53144.c: New testcase. + +2012-05-03 Tobias Burnus + + PR fortran/52864 + * gfortran.dg/pointer_intent_7.f90: New. + * gfortran.dg/pure_formal_3.f90: New. + +2012-05-02 Ulrich Weigand + + * gcc.target/s390/20030123-1.c: Add missing "volatile". + +2012-05-02 Martin Jambor + + PR lto/52605 + * g++.dg/lto/pr52605_0.C: New test. + +2012-05-02 Kirill Yukhin + + * gcc.target/i386/hle-cmpxchg-acq-1.c: New. + * gcc.target/i386/hle-cmpxchg-rel-1.c: Ditto. + * gcc.target/i386/hle-add-acq-1.c: Ditto. + * gcc.target/i386/hle-add-rel-1.c: Ditto. + * gcc.target/i386/hle-and-acq-1.c: Ditto. + * gcc.target/i386/hle-and-rel-1.c: Ditto. + * gcc.target/i386/hle-or-acq-1.c: Ditto. + * gcc.target/i386/hle-or-rel-1.c: Ditto. + * gcc.target/i386/hle-sub-acq-1.c: Ditto. + * gcc.target/i386/hle-sub-rel-1.c: Ditto. + * gcc.target/i386/hle-xadd-acq-1.c: Ditto. + * gcc.target/i386/hle-xadd-rel-1.c: Ditto. + * gcc.target/i386/hle-xchg-acq-1.c: Ditto. + * gcc.target/i386/hle-xchg-rel-1.c: Ditto. + * gcc.target/i386/hle-xor-acq-1.c: Ditto. + * gcc.target/i386/hle-xor-rel-1.c: Ditto. + +2012-05-02 Steven Bosscher + + PR middle-end/53153 + * gcc.dg/pr53153.c: New test. + +2012-05-02 Richard Guenther + + * g++.dg/tree-ssa/pr19807.C: Adjust. + +2012-05-02 Jakub Jelinek + + PR tree-optimization/53163 + * gcc.c-torture/compile/pr53163.c: New test. + + PR rtl-optimization/53160 + * gcc.c-torture/execute/pr53160.c: New test. + +2012-05-01 Ian Lance Taylor + + PR c/37303 + * gcc.dg/pr37303.c: New test. + +2012-05-01 Richard Henderson + + * lib/target-supports.exp + (check_effective_target_sync_long_long_runtime): True for + check_effective_target_powerpc64. + +2012-04-30 Marc Glisse + + PR c++/51033 + * gcc.dg/vector-1.c: Move to ... + * c-c++-common/vector-1.c: ... here. + * gcc.dg/vector-2.c: Move to ... + * c-c++-common/vector-2.c: ... here. + * gcc.dg/vector-3.c: Move to ... + * c-c++-common/vector-3.c: ... here. Adapt to C++. + * gcc.dg/vector-4.c: Move to ... + * c-c++-common/vector-4.c: ... here. + * gcc.dg/vector-init-1.c: Move to ... + * c-c++-common/vector-init-1.c: ... here. + * gcc.dg/vector-init-2.c: Move to ... + * c-c++-common/vector-init-2.c: ... here. + * gcc.dg/vector-subscript-1.c: Move to ... Adapt to C++. + * c-c++-common/vector-subscript-1.c: ... here. + * gcc.dg/vector-subscript-2.c: Move to ... + * c-c++-common/vector-subscript-2.c: ... here. + * gcc.dg/vector-subscript-3.c: Move to ... + * c-c++-common/vector-subscript-3.c: ... here. + + PR c++/51314 + * g++.dg/cpp0x/vt-51314.C: New test. + * g++.dg/cpp0x/variadic76.C: Fix. + +2012-04-30 Greta Yorsh + + * gcc.dg/pr52283.c: Add missing dg-warning and dg-options. + +2012-04-30 Dodji Seketeli + + Add -Wvarargs option + * c-c++-common/Wvarargs.c: New test case. + * c-c++-common/Wvarargs-2.c: Likewise. + +2012-04-30 Dodji Seketeli + + Adjust relevant test cases wrt -ftrack-macro-expansion=[0|2] + * objc.dg/foreach-7.m: Force the test case to run without + -ftrack-macro-expansion. + * c-c++-common/tm/attrib-1.c: Likewise. + * c-c++-common/warn-ommitted-condop.c: Likewise. + * gcc.dg/assign-warn-1.c: Likewise. + * gcc.dg/assign-warn-2.c: Likewise. + * gcc.dg/attr-alloc_size.c: Likewise. + * gcc.dg/builtin-stringop-chk-1.c: Likewise. + * gcc.dg/builtin-stringop-chk-2.c: Likewise. + * gcc.dg/builtin-strncat-chk-1.c: Likewise. + * gcc.dg/c90-const-expr-9.c: Likewise. + * gcc.dg/c99-const-expr-9.c: Likewise. + * gcc.dg/cpp/direct2.c: Likewise. Adjust. + * gcc.dg/cpp/direct2s.c: Likewise. + * gcc.dg/cpp/pr28709.c: Likewise. + * gcc.dg/cpp/pragma-diagnostic-1.c: Likewise. + * gcc.dg/dfp/composite-type.c: Likewise. + * gcc.dg/uninit-6-O0.c: Adjust the test case and force it to run + with -ftrack-macro-expansion + * g++.dg/cpp0x/constexpr-ex3.C: Likewise. + * g++.dg/cpp0x/constexpr-overflow.C: Likewise. + * g++.dg/ext/cleanup-1.C: Likewise. + * g++.dg/ext/gnu-inline-global-reject.C: Likewise. + * g++.dg/template/sfinae10.C: Likewise. + * g++.dg/tm/wrap-2.C: Likewise. + * g++.dg/warn/Wconversion-real-integer.C: Likewise. + * g++.dg/warn/Wsign-conversion.C: Likewise. + * g++.dg/warn/multiple-overflow-warn-1.C: Likewise. + * g++.old-deja/g++.mike/p10769b.C: Likewise. + * g++.dg/warn/Wdouble-promotion.C: Adjust the test case and force + it to run with -ftrack-macro-expansion. + * libstdc++-v3/scripts/testsuite_flags.in: By default, run the + test cases without -ftrack-macro-expansion. + + Fix location for static class members + * g++.dg/template/sfinae6_neg.C: Adjust. + + Make conversion warnings work on NULL with -ftrack-macro-expansion + * g++.dg/warn/Wconversion-null-2.C: Add testing for __null, + alongside the previous testing for NULL. + + Fix -Wuninitialized for -ftrack-macro-expansion + * gcc.dg/cpp/pragma-diagnostic-2.c: Fix this. + + Strip "" loc from displayed expansion context + * g++.dg/warn/Wconversion-real-integer2.C: New test. + * g++.dg/warn/Wconversion-real-integer-3.C: Likewise. + * g++.dg/warn/conversion-real-integer-3.h: New header used by the + new test above. + + Fix expansion point loc for macro-like tokens + * gcc.dg/debug/dwarf2/pr41445-5.c: Adjust. + * gcc.dg/debug/dwarf2/pr41445-6.c: Likewise. + + Fix token pasting with -ftrack-macro-expansion + * gcc.dg/cpp/paste17.c: New test case for + -ftrack-macro-expansion=2 mode only. + * gcc.dg/cpp/macro-exp-tracking-5.c: Likewise. + +2012-04-30 Eric Botcazou + + * gnat.dg/warn6.ad[sb]: New test. + +2012-04-29 Manuel LÁpez-IbÁÁez + + PR 53149 + * gcc.dg/20011021-1.c: Adjust testcase. + +2012-04-29 Thomas Koenig + + PR fortran/53148 + * gfortran.dg/function_optimize_12.f90: New test. + +2012-04-29 Hans-Peter Nilsson + + PR target/53156 + * gcc.target/cris/peep2-andu2.c: Tweak expected assembly + code to match current output and cover new peephole2 pattern. + +2012-04-27 Ollie Wild + + * g++.dg/cpp0x/Wliteral-suffix.c: New test. + +2012-04-27 Paolo Bonzini + + * gcc.c-torture/execute/20120427-2.c: New testcase. + * gcc.dg/tree-ssa/phi-opt-10.c: New testcase. + * gcc.dg/tree-ssa/ssa-pre-28.c: Bypass new optimization. + * gcc.dg/tree-ssa/ssa-ifcombine-7.c: Look into ifcombine dump. + +2012-04-27 Paolo Bonzini + + PR target/53138 + * gcc.c-torture/execute/20120427-1.c: New testcase. + +2012-04-27 Marc Glisse + + PR middle-end/27139 + * gcc.dg/tree-ssa/forwprop-18.c: New test. + +2012-04-27 Tom de Vries + + PR tree-optimization/51879 + * gcc.dg/pr51879.c: New test. + * gcc.dg/pr51879-2.c: Same. + * gcc.dg/pr51879-3.c: Same. + * gcc.dg/pr51879-4.c: Same. + * gcc.dg/pr51879-6.c: Same. + +2012-04-26 Paolo Carlini + + PR c++/53096 + * g++.dg/cpp0x/defaulted35.C: New. + * g++.dg/cpp0x/defaulted15.C: Adjust. + +2012-04-26 Janis Johnson + + * gcc.dg/bf-ms-layout.c: Adjust offsets to fit ms-bitfield + structure layout. + +2012-04-25 Sriraman Tallam + + * gcc.target/i386/builtin_target.c: Check avx2. + +2012-04-26 Alan Modra + + * gcc.target/powerpc/savres.c: New test. + * gcc.target/powerpc/powerpc.exp: Run it. + +2012-04-26 Hans-Peter Nilsson + + PR target/53120 + * gcc.dg/torture/pr53120.c: New test. + +2012-04-25 Jakub Jelinek + + PR middle-end/52979 + * gcc.c-torture/compile/pr52979-1.c: New test. + * gcc.c-torture/execute/pr52979-1.c: New test. + * gcc.c-torture/execute/pr52979-2.c: New test. + +2012-04-25 Richard Guenther + + * gcc.target/i386/l_fma_float_5.c: Adjust. + * gcc.target/i386/l_fma_double_4.c: Likewise. + * gcc.target/i386/l_fma_float_2.c: Likewise. + * gcc.target/i386/l_fma_float_6.c: Likewise. + * gcc.target/i386/l_fma_double_1.c: Likewise. + * gcc.target/i386/l_fma_double_5.c: Likewise. + * gcc.target/i386/l_fma_float_3.c: Likewise. + * gcc.target/i386/l_fma_double_2.c: Likewise. + * gcc.target/i386/l_fma_double_6.c: Likewise. + * gcc.target/i386/l_fma_float_4.c: Likewise. + * gcc.target/i386/l_fma_double_3.c: Likewise. + * gcc.target/i386/l_fma_float_1.c: Likewise. + +2012-04-25 Jakub Jelinek + + PR tree-optimization/53058 + * gcc.c-torture/compile/pr53058.c: New test. + +2012-04-25 Jan Hubicka + + PR middle-end/53088 + * gcc.target/i386/pr39082-1.c: Update warning location. + +2012-04-25 Jakub Jelinek + + PR c/52880 + * gcc.dg/pr52880.c: New test. + +2012-04-25 Manuel LÁpez-IbÁÁez + + * gcc.dg/m-un-2.c: Update. + * gcc.dg/20011021-1.c: Update. + +2012-04-25 Tobias Burnus + + PR fortran/52196 + * gfortran.dg/realloc_on_assign_14.f90: New. + +2012-04-24 Georg-Johann Lay + + PR testsuite/52641 + PR tree-optimizations/52891 + * gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int. + +2012-04-24 Paolo Carlini + + PR c++/52363 + * g++.dg/cpp0x/sfinae35.C: New. + * g++.dg/cpp0x/sfinae36.C: Likewise. + +2012-04-24 Sriraman Tallam + + * gcc.target/builtin_target.c: New testcase. + +2012-04-24 Bill Schmidt + + PR target/47197 + * gcc.target/powerpc/pr47197.c: New test. + +2012-04-24 Richard Guenther + + PR tree-optimization/53085 + * g++.dg/torture/pr53085.C: New testcase. + +2012-04-24 Andrew Pinski + + PR tree-opt/33512 + * gcc.dg/tree-ssa/andor-3.c: New testcase. + * gcc.dg/tree-ssa/andor-4.c: New testcase. + * gcc.dg/tree-ssa/andor-5.c: New testcase. + +2012-04-24 Jakub Jelinek + + PR middle-end/53084 + * gcc.c-torture/execute/pr53084.c: New test. + +2012-04-23 Paolo Carlini + + * g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes. + +2012-04-23 Andrew Pinski + + * gcc.dg/tree-ssa/forwprop-17.c: New testcase. + +2012-04-23 Bill Schmidt + + PR regression/53076 + * gcc.dg/torture/builtin-explog-1.c: Skip if -O0. + * gcc.dg/torture/builtin-power-1.c: Likewise. + +2012-04-23 Richard Guenther + + PR tree-optimization/53070 + * gcc.dg/torture/pr53070.c: New testcase. + +2012-04-23 Richard Guenther + + PR c/53060 + * gcc.dg/pr53060.c: New testcase. + +2012-04-23 Jakub Jelinek + + PR tree-optimizations/52891 + * gcc.c-torture/compile/pr52891-1.c: New test. + * gcc.c-torture/compile/pr52891-2.c: New test. + +2012-04-22 Tobias Burnus + + PR fortran/53051 + * gfortran.dg/read_float_4.f90: New. + +2012-04-21 Manuel LÁpez-IbÁÁez + + PR 35441 + * c-c++-common/pr35441.C: New. + +2012-04-20 Ian Lance Taylor + + * go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*. + (go-gc-tests): Skip nilptr.go on powerpc*-*-*. + +2012-04-20 Uros Bizjak + + * gcc.target/x86_64/abi/avx/test_passing_unions.c: Avoid undefined + array access. + * gcc.target/x86_64/abi/avx/test_passing_structs.c: Likewise. + +2012-04-20 Bill Schmidt + + PR rtl-optimization/44214 + * gcc.dg/pr44214-1.c: New test. + * gcc.dg/pr44214-2.c: Likewise. + * gcc.dg/pr44214-3.c: Likewise. + +2012-04-20 Richard Guenther + + * g++.dg/torture/20120420-1.C: New testcase. + +2012-04-19 Steven Bosscher + + * gcc.target/i386/pr45830.c: Update scan-tree-dump. + +2012-04-19 Christian Bruel + + * gcc.dg/pr52283.c: New test. + +2012-04-19 Manuel LÁpez-IbÁÁez + + * gcc.dg/pr37985.c: New test. + +2012-04-19 Richard Guenther + + PR rtl-optimization/44688 + * gcc.dg/var-expand1.c: Increase array size to make unrolling + possibly profitable. + +2012-04-18 Bill Schmidt + + PR tree-optimization/52976 + * gfortran.dg/reassoc_11.f: New test. + +2012-04-18 Bill Schmidt + + PR tree-optimization/52976 + * gfortran.dg/reassoc_7.f: New test. + * gfortran.dg/reassoc_8.f: Likewise. + * gfortran.dg/reassoc_9.f: Likewise. + * gfortran.dg/reassoc_10.f: Likewise. + +2012-04-18 Paolo Carlini + + PR c++/52422 + * g++.dg/cpp0x/sfinae33.C: New. + * g++.dg/cpp0x/sfinae34.C: Likewise. + +2012-04-18 Joey Ye + + * gcc.target/arm/thumb1-imm.c: Skip it in non-thumb1 target. + +2012-04-18 Richard Guenther + + * gcc.target/x86_64/abi/test_passing_unions.c: Avoid undefined + array access. + * gcc.target/x86_64/abi/test_passing_structs.c: Likewise. + * gcc.target/i386/avx256-unaligned-load-4.c: Fix array sizes. + +2012-04-17 Tom de Vries + + * g++.dg/pr51264-4.C: New test. + +2012-04-17 Paolo Carlini + + PR c++/52599 + * g++.dg/cpp0x/constexpr-ctor10.C: New. + +2012-04-17 Paolo Carlini + + PR c++/53003 + * g++.dg/parse/crash59.C: New. + +2012-04-17 Michael Matz + + PR tree-optimization/18437 + * gfortran.dg/vect/rnflow-trs2a2.f90: New test. + +2012-04-17 Richard Guenther + + PR middle-end/53011 + * g++.dg/torture/pr53011.C: New testcase. + +2012-04-16 Jason Merrill + + PR c++/38543 + * g++.dg/cpp0x/variadic131.C: New. + + PR c++/52008 + * g++.dg/cpp0x/variadic130.C: New. + + PR c++/50830 + * g++.dg/cpp0x/variadic129.C: New. + + PR c++/50303 + * g++.dg/cpp0x/variadic128.C: New. + +2012-04-16 Tobias Burnus + + PR fortran/52864 + * gfortran.dg/pointer_intent_6.f90: New. + +2012-04-16 Tobias Burnus + + PR fortran/52916 + * gfortran.dg/public_private_module_3.f90: Use dg-additional-sources + to include public_private_module_4.f90. + * gfortran.dg/public_private_module_4.f90: Skip this test on all + targets. + +2012-04-16 Paolo Carlini + + PR c++/49152 + * g++.dg/diagnostic/operator1.C: New. + * g++.dg/ext/label5.C: Adjust. + * g++.dg/ext/va-arg1.C: Likewise. + * g++.dg/other/error20.C: Likewise. + * g++.dg/other/error20.C: Likewise. + * g++.dg/other/error16.C: Likewise. + * g++.dg/other/error10.C: Likewise. + * g++.dg/parse/error30.C: Likewise. + * g++.dg/cpp0x/lambda/lambda-err1.C: Likewise. + +2012-04-16 Jason Merrill + + PR c++/51148 + * g++.dg/cpp0x/variadic127.C: New. + +2012-04-16 Rainer Orth + + * lib/plugin-support.exp (plugin-test-execute): Properly determine + testcase name. + Use fail, pass instead of unresolved. + Don't log $optstr. + + PR testsuite/52948 + * g++.dg/plugin/dumb_plugin.c (pass_dumb_plugin_example): Remove + TODO_dump_func. + * g++.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise. + * gcc.dg/plugin/one_time_plugin.c (one_pass): Likewise. + * gcc.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise. + +2012-04-16 Janus Weil + + PR fortran/52968 + * gfortran.dg/typebound_call_23.f03: New test case. + +2012-04-15 Jason Merrill + + PR c++/47220 + * g++.dg/cpp0x/variadic126.C: New. + + PR c++/52380 + * g++.dg/cpp0x/variadic125.C: New. + + PR c++/52292 + * g++.dg/cpp0x/variadic124.C: New. + + PR c++/52706 + * g++.dg/cpp0x/nullptr27.C: New. + + PR c++/52818 + * g++.dg/warn/format8.C: New. + +2012-04-15 Janus Weil + + PR fortran/51082 + * gfortran.dg/proc_ptr_comp_34.f90: New test case. + +2012-04-14 Tobias Burnus + + PR fortran/52916 + PR fortran/40973 + * gfortran.dg/public_private_module_3.f90: New. + * gfortran.dg/public_private_module_4.f90: New. + +2012-04-14 Tom de Vries + + * gcc.dg/superblock.c: New test. + +2012-04-14 Tom de Vries + + * gcc.dg/pr51879-12.c: New test. + +2012-04-13 Jason Merrill + + PR c++/52824 + * g++.dg/cpp0x/variadic123.C: New. + * g++.dg/cpp0x/alias-decl-15.C: Remove dg-errors. + + PR c++/52905 + * g++.dg/cpp0x/initlist-ctor1.C: New. + + PR c++/52915 + * g++.dg/other/anon-union2.C: New. + +2012-04-13 Martin Jambor + + PR middle-end/52939 + * g++.dg/ipa/pr52939.C: New test. + +2012-04-13 Tom de Vries + + * gcc.dg/pr52734.c: New test. + +2012-04-13 Richard Guenther + + PR tree-optimization/52969 + * gcc.dg/torture/pr52969.c: New testcase. + +2012-04-13 Richard Guenther + + PR c/52549 + * gcc.dg/pr52549.c: New testcase. + +2012-04-13 Richard Guenther + + PR c/52862 + * gcc.dg/pr52862.c: New testcase. + +2012-04-13 Joey Ye + + * gcc.target/arm/thumb1-imm.c: New testcase. + +2012-04-12 Uros Bizjak + + PR target/52932 + * gcc.target/i386/avx2-vpermps-1.c (avx2_test): Use __m256i type for + second function argument. + * gcc.target/i386/avx2-vpermps-2.c (init_permps): Update declaration. + (calc_permps): Update declaration. Calculate result correctly. + (avx2_test): Change src2 type to union256i_d. + * gcc.target/i386/avx2-vpermd-2.c (calc_permd): Calculate result + correctly. + +2012-04-12 Michael Meissner + + PR target/52775 + * gcc.target/powerpc/pr52775.c: New file. + +2012-04-12 Bill Schmidt + + PR tree-optimization/18589 + * gcc.dg/tree-ssa/pr18589-1.c: New test. + * gcc.dg/tree-ssa/pr18589-2.c: Likewise. + * gcc.dg/tree-ssa/pr18589-3.c: Likewise. + * gcc.dg/tree-ssa/pr18589-4.c: Likewise. + * gcc.dg/tree-ssa/pr18589-5.c: Likewise. + * gcc.dg/tree-ssa/pr18589-6.c: Likewise. + * gcc.dg/tree-ssa/pr18589-7.c: Likewise. + * gcc.dg/tree-ssa/pr18589-8.c: Likewise. + * gcc.dg/tree-ssa/pr18589-9.c: Likewise. + * gcc.dg/tree-ssa/pr18589-10.c: Likewise. + +2012-04-12 Richard Guenther + + PR tree-optimization/52943 + * gcc.dg/torture/pr52943.c: New testcase. + +2012-04-12 Oleg Endo + + PR target/50751 + * gcc/target/sh/pr50751-4.c: New. + * gcc/target/sh/pr50751-5.c: New. + * gcc/target/sh/pr50751-6.c: New. + * gcc/target/sh/pr50751-7.c: New. + +2012-04-11 Fabien ChÁne + + PR c++/52465 + * g++.dg/lookup/using52.C: New. + +2012-04-11 Manuel LÁpez-IbÁÁez + + * lib/prune.exp (TEST_ALWAYS_FLAGS): If undefined, set to empty. + +2012-04-11 H.J. Lu + + PR rtl-optimization/52876 + * gcc.target/i386/pr52876.c: New. + +2012-04-11 Bernd Schmidt + + * gcc.dg/c99-const-expr-9.c (old_offsetof): Insert a cast to + __UINTPTR_TYPE__. + * gcc.c-torture/execute/pr15296.c (intptr_t): Likewise, with + __INTPTR_TYPE__. + * gcc.dg/pr14092-1.c (intptr_t): Likewise. + * gcc.dg/tree-ssa/foldcast-1.c (ssize_t): Likewise. + * gcc.dg/c90-const-expr-6.c (intptr_t): New typedef to replace ... + (ptrdiff_t): ... this. All uses changed. + * gcc.dg/c99-const-expr-6.c (intptr_t, ptrdiff_t): Likewise. + * gcc.dg/torture/pta-escape-1.c (foo): Change arg type to + __INTPTR_TYPE__. + (main): Cast argument to __INTPTR_TYPE__. + * gcc.dg/20041106-1.c (main): Cast to __UINTPTR_TYPE__ rather than + size_t. + * gcc.dg/mallign.c (main): Likewise. + * gcc.dg/pr38700.c (foo): Likewise. + * gcc.dg/long-long-cst1.c (t): Likewise. + * gcc.dg/c99-const-expr-10.c (p, q, f, h, h2): Likewise. + * gcc.dg/array-10.c (c0, c1, c2, c3, c4, c5): Likewise. + * gcc.dg/pointer-arith-10.c (foo): Likewise. + * gcc.dg/pr25682.c (d, foo): Likewise. + * gcc.dg/format/cast-1.c (f): Likewise. + * gcc.dg/c90-const-expr-10.c + * gcc.dg/pr41551.c (uintptr_t): New typedef, replacing... + (size_t): ...this. All uses changed. + * gcc.c-torture/execute/pr22098-1.c (uintptr_t): Likewise. + * gcc.c-torture/execute/pr22098-2.c (uintptr_t): Likewise. + * gcc.c-torture/execute/pr22098-3.c (uintptr_t): Likewise. + * gcc.dg/pr34856.c (uintptr_t): Likewise. + * gcc.dg/sequence-pt-1.c: Likewise. + * gcc.dg/c90-const-expr-9.c (uintptr_t): Likewise. + * gcc.dg/max-1.c (intptr_t): Likewise, replacing ssize_t. + * gcc.dg/pr39074.c (intptr_t): Define using __INTPTR_TYPE__. + * gcc.dg/pr30744-1.c (my_intptr_t): New typedef. Replace all uses + of ptrdiff_t with it. + * gcc.dg/inline-23.c (my_intptr_t): Likewise. + * gcc.dg/pr37561.c (p): Use __INTPTR_TYPE__. + * gcc.dg/vla-11.c (foo11b): Use __UINTPTR_TYPE__. + +2012-04-11 Jason Merrill + + PR debug/45088 + * g++.dg/debug/dwarf2/self-ref-1.C: Define virtual destructor. + * g++.dg/debug/dwarf2/self-ref-1.C: Likewise. + + PR c++/52906 + * g++.dg/ext/attrib45.C: New. + + * g++.dg/eh/dtor3.C: New. + +2012-04-11 Richard Guenther + + PR middle-end/52621 + * gfortran.dg/pr52621.f90: New testcase. + +2012-04-11 Richard Guenther + + PR middle-end/52918 + * g++.dg/torture/pr52918-1.C: New testcase. + * g++.dg/torture/pr52918-2.C: Likewise. + +2012-04-11 Tobias Burnus + + PR fortran/52729 + * gfortran.dg/block_11.f90: New. + +2012-04-11 Nick Clifton + + * gcc.dg/stack-usage-1.c (SIZE): Define for the RL78. + +2012-04-11 Peter Bergner + + PR target/16458 + * gcc.target/powerpc/pr16458-1.c: New test. + * gcc.target/powerpc/pr16458-2.c: Likewise. + * gcc.target/powerpc/pr16458-3.c: Likewise. + * gcc.target/powerpc/pr16458-4.c: Likewise. + +2012-04-11 Eric Botcazou + + * gcc.dg/builtin-bswap-1.c: Test __builtin_bswap16 & __builtin_bswap64. + * gcc.dg/builtin-bswap-4.c: Test __builtin_bswap16. + * gcc.dg/builtin-bswap-5.c: Likewise. + * gcc.target/i386/builtin-bswap-4.c: New test. + +2012-04-11 Manuel LÁpez-IbÁÁez + + PR 24985 + * lib/prune.exp: Add -fno-diagnostics-show-caret. + +2012-04-11 Richard Guenther + + PR rtl-optimization/52881 + * gcc.dg/torture/pr52881.c: New testcase. + * gcc.dg/torture/pr52913.c: Likewise. + +2012-04-11 Richard Guenther + + PR tree-optimization/52912 + * gcc.dg/torture/pr52912.c: New testcase. + +2010-04-10 Michael Matz + + * gcc.dg/vect/vect-outer-1-big-array.c: Adjust. + * gcc.dg/vect/vect-outer-1.c: Adjust. + * gcc.dg/vect/vect-outer-1a-big-array.c: Adjust. + * gcc.dg/vect/vect-outer-1a.c: Adjust. + * gcc.dg/vect/vect-outer-1b-big-array.c: Adjust. + * gcc.dg/vect/vect-outer-1b.c: Adjust. + * gcc.dg/vect/vect-outer-2b.c: Adjust. + * gcc.dg/vect/vect-outer-3b.c: Adjust. + +2012-04-10 Ulrich Weigand + + PR tree-optimization/52870 + * gcc.dg/vect/pr52870.c: New test. + +2012-04-09 Mike Stump + + * g++.dg/cpp0x/udlit-raw-op.C: Don't use CRLF endings. + * gcc.dg/tree-ssa/vrp59.c: Likewise. + * gcc.dg/tree-ssa/vrp60.c: Likewise. + * gnat.dg/aggr11.adb: Likewise. + * gnat.dg/aggr11_pkg.ads: Likewise. + * gnat.dg/aggr15.adb: Likewise. + * gnat.dg/aggr15.ads: Likewise. + * gnat.dg/aggr17.adb: Likewise. + * gnat.dg/aggr18.adb: Likewise. + * gnat.dg/array14.adb: Likewise. + * gnat.dg/array14.ads: Likewise. + * gnat.dg/array14_pkg.ads: Likewise. + * gnat.dg/array19.adb: Likewise. + * gnat.dg/array19.ads: Likewise. + * gnat.dg/discr27.adb: Likewise. + * gnat.dg/discr27.ads: Likewise. + * gnat.dg/discr35.adb: Likewise. + * gnat.dg/discr35.ads: Likewise. + * gnat.dg/discr6.adb: Likewise. + * gnat.dg/discr6_pkg.ads: Likewise. + * gnat.dg/import1.adb: Likewise. + * gnat.dg/import1.ads: Likewise. + * gnat.dg/loop_address2.adb: Likewise. + * gnat.dg/opt7.adb: Likewise. + * gnat.dg/opt7.ads: Likewise. + * gnat.dg/pointer_variable_bounds.adb: Likewise. + * gnat.dg/pointer_variable_bounds.ads: Likewise. + * gnat.dg/rep_clause2.adb: Likewise. + * gnat.dg/rep_clause2.ads: Likewise. + * gnat.dg/slice2.adb: Likewise. + * gnat.dg/slice2.ads: Likewise. + * gnat.dg/slice6.adb: Likewise. + * gnat.dg/slice6_pkg.ads: Likewise. + * gnat.dg/specs/unchecked_union2.ads: Likewise. + * gnat.dg/taft_type2.adb: Likewise. + * gnat.dg/taft_type2.ads: Likewise. + * gnat.dg/taft_type2_pkg.ads: Likewise. + * gnat.dg/volatile10.adb: Likewise. + * gnat.dg/volatile10_pkg.ads: Likewise. + + * gcc.dg/dll-8.c: Remove execute permissions. + * g++.dg/ext/dllexport5.C: Likewise. + +2012-04-09 Jan Hubicka + + PR lto/52722 + PR lto/51765 + PR lto/52634 + * gcc.dg/lto/pr52634_1.c: New testcase. + * gcc.dg/lto/pr52634_0.c: New testcase. + +2012-04-09 Uros Bizjak + + PR target/52883 + * gcc.target/i386/pr52883.c: New testcase. + +2012-04-09 Eric Botcazou + + * lib/target-supports.exp (check_effective_target_sparc_v9): New. + (check_effective_target_sync_long_long): Add SPARC case. + (check_effective_target_sync_long_long_runtime): Likewise. + (check_effective_target_sync_int_long): Adjust SPARC case. + (check_effective_target_sync_char_short): Likewise. + +2012-04-08 Oleg Endo + + * gcc.target/sh/sh2a-prefetch.c: Rename to ... + * gcc.target/sh/prefetch.c: ... this. Enable test case for m4*. + +2012-04-08 Tobias Burnus + + PR fortran/40973 + PR fortran/52751 + * gfortran.dg/public_private_module_2.f90: New. + +2012-04-08 Manuel LÁpez-IbÁÁez + + * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to + directives. + +2012-04-07 Thomas Koenig + + PR fortran/52893 + * gfortran.dg/function_optimize_11.f90: New test. + +2012-04-06 Thomas Koenig + + PR fortran/52668 + * gfortran.dg/use_only_6.f90: New test. + +2012-04-06 Thomas Koenig + + PR fortran/52668 + * gfortran.dg/use_only_6.f90: New test. +2012-04-06 Mike Stump + + PR testsuite/50722 + * gcc.dg/pr49994-3.c: Use -w to squelch non-portable warnings. + +2012-04-05 Jason Merrill + + PR c++/52596 + * g++.dg/template/qualified-id5.C: New. + +2012-04-05 Uros Bizjak + + PR target/52882 + * gcc.target/i386/pr52882.c: New test. + +2012-04-05 Bill Schmidt + Dominique D'Humieures + + PR testsuite/52614 + * gcc.dg/vect/vect.exp: Use -fno-common on all targets. + * gcc.dg/vect/costmodel/ppc/ppc-costmodel-vect.exp: Likewise. + +2012-04-04 Jason Merrill + + PR c++/52845 + * g++.dg/cpp0x/lambda/lambda-warn4.C: New. + +2012-04-03 Jason Merrill + + PR c++/52796 + * g++.dg/cpp0x/variadic-value1.C: New. + +2012-04-03 Eric Botcazou + + * gnat.dg/pack18.adb: New test. + * gnat.dg/pack18_pkg.ads: New helper. + +2012-04-03 Richard Guenther + + PR tree-optimization/52808 + * gcc.dg/pr52808.c: New testcase. + +2012-04-03 Jakub Jelinek + + PR tree-optimization/52835 + * gfortran.dg/pr52835.f90: New test. + +2012-04-03 Eric Botcazou + + * gnat.dg/specs/aggr5.ads: New test. + +2012-04-02 Richard Guenther + + PR tree-optimization/52756 + * gcc.dg/torture/pr52756.c: New testcase. + +2012-04-02 Richard Guenther + + PR middle-end/52803 + * gcc.dg/pr52803.c: New testcase. + +2012-04-02 Dodji Seketeli + + PR c++/40942 + * g++.old-deja/g++.pt/spec40.C: Adjust to take the resolution of + DR 214 in account. + +2012-04-01 Paolo Carlini + + PR c++/50043 + * g++.dg/cpp0x/noexcept17.C: New. + * g++.old-deja/g++.eh/cleanup1.C: Adjust. + * g++.dg/tree-ssa/ehcleanup-1.C: Likewise. + * g++.dg/cpp0x/noexcept01.C: Likewise. + * g++.dg/eh/init-temp1.C: Likewise. + * g++.dg/eh/ctor1.C: Likwise. + +2012-03-31 Eric Botcazou + + * gnat.dg/controlled6.adb: New test. + * gnat.dg/controlled6_pkg.ads: New helper. + * gnat.dg/controlled6_pkg-iterators.ad[sb]: Likewise. + +2012-03-30 Richard Henderson + + PR debug/52727 + * g++.dg/opt/pr52727.C: New testcase. + +2012-03-30 Richard Guenther + + PR tree-optimization/52754 + * gcc.target/i386/pr52754.c: New testcase. + +2012-03-30 Richard Guenther + + PR middle-end/52772 + * g++.dg/torture/pr52772.C: New testcase. + +2012-03-29 Paolo Carlini + + PR c++/52718 + * g++.dg/warn/Wzero-as-null-pointer-constant-5.C: New. + +2012-03-29 Jason Merrill + + PR c++/52685 + * g++.dg/template/inherit8.C: New. + +2012-03-29 Jakub Jelinek + + PR c++/52759 + * g++.dg/ext/weak4.C: New test. + + PR tree-optimization/52760 + * gcc.c-torture/execute/pr52760.c: New test. + +2012-03-29 Jason Merrill + + PR c++/52743 + * g++.dg/cpp0x/initlist-array3.C: New. + +2012-03-28 Jason Merrill + + PR c++/52746 + * g++.dg/overload/virtual2.C: New. + +2012-03-28 Eric Botcazou + + * gnat.dg/vect7.ad[sb]: New test. + +2012-03-28 Paul Thomas + Tobias Burnus + + PR fortran/52652 + * gfortran.dg/allocate_class_1.f90 : Change error test. + * gfortran.dg/allocate_with_typespec_4.f90 : Change error test. + * gfortran.dg/allocate_alloc_opt_1.f90 : Change error test. + * gfortran.dg/deallocate_alloc_opt_1.f90 : Change error test. + +2012-03-28 Jakub Jelinek + + PR middle-end/52691 + * gcc.dg/pr52691.c: New test. + + PR middle-end/52750 + * gcc.c-torture/compile/pr52750.c: New test. + +2012-03-28 Georg-Johann Lay + + PR target/52692 + * gcc.target/avr/torture/builtins-2.c: New test. + +2012-03-28 Jakub Jelinek + + PR target/52736 + * gcc.target/i386/pr52736.c: New test. + +2012-03-27 Martin Jambor + + PR middle-end/52693 + * gcc.dg/torture/pr52693.c: New test. + +2012-03-27 Meador Inge + + PR c++/52672 + * g++.dg/cpp0x/constexpr-52672.C: New testcase. + +2012-03-27 Mike Stump + + PR target/52665 + * gcc.target/i386/pr28946.c: Use -fno-ident to avoid spurious + failures that match branch names. + +2012-03-27 Uros Bizjak + H.J. Lu + + PR target/52698 + * gcc.target/i386/pr52698.c: New test. + +2012-03-27 Richard Guenther + + PR middle-end/52720 + * gcc.dg/torture/pr52720.c: New testcase. + +2012-03-27 Eric Botcazou + + * gnat.dg/pack17.adb: New test. + +2012-03-27 Ramana Radhakrishnan + + * gcc.target/arm/thumb-ifcvt.c: Only run for -mthumb. + * gcc.target/arm/thumb-16bit-ops.c: Likewise. + +2012-03-26 Martin Jambor + + PR tree-optimization/50052 + * gcc.dg/ipa/ipa-sra-2.c: Also run on strict-alignment platforms. + +2012-03-26 Richard Guenther + + PR tree-optimization/52701 + * gfortran.dg/pr52701.f90: New testcase. + +2012-03-26 Ulrich Weigand + + PR tree-optimization/52686 + * gcc.target/arm/pr52686.c: New test. + +2012-03-26 Georg-Johann Lay + + * gcc.target/avr/torture/avr-torture.exp (AVR_TORTURE_OPTIONS): + Add "-Os -flto" to list. + +2012-03-25 Eric Botcazou + + * gnat.dg/concat2.ad[sb]: New test. + +2012-03-24 Jason Merrill + + * g++.dg/cpp0x/auto3.C: Compile with -pedantic-errors. + * g++.dg/cpp0x/trailing2.C: Likewise. + * g++.dg/warn/pr23075.C: Change dg-warning to dg-bogus. + * g++.dg/cpp1y/auto-fn1.C: New. + * g++.dg/cpp1y/auto-fn2.C: New. + * g++.dg/cpp1y/auto-fn3.C: New. + * g++.dg/cpp1y/auto-fn4.C: New. + * g++.dg/cpp1y/auto-fn5.C: New. + * g++.dg/cpp1y/auto-fn6.C: New. + * g++.dg/cpp1y/auto-fn7.C: New. + * g++.dg/cpp1y/auto-fn8.C: New. + * g++.dg/cpp1y/auto-fn9.C: New. + * g++.dg/cpp1y/auto-fn10.C: New. + * g++.dg/cpp1y/auto-fn11.C: New. + +2012-03-23 Richard Guenther + + PR tree-optimization/52678 + * gfortran.dg/pr52678.f: New testcase. + +2012-03-23 Richard Guenther + + PR tree-optimization/52638 + * g++.dg/torture/pr52638.C: New testcase. + +2012-03-22 Paolo Carlini + + PR c++/52487 + * g++.dg/cpp0x/lambda/lambda-ice7.C: New. + +2012-03-22 Jakub Jelinek + + PR c++/52671 + * g++.dg/ext/attrib44.C: New test. + +2012-03-22 Jan Hubicka + + PR middle-end/51737 + * g++.dg/torture/pr51737.C: New testcase + +2012-03-22 Richard Guenther + + PR tree-optimization/52548 + * gcc.dg/tree-ssa/ssa-pre-29.c: New testcase. + +2012-03-22 Bernhard Reutner-Fischer + + * lib/fortran-modules.exp (list-module-names-1): Remove + warning. + +2012-03-21 Oleg Endo + + PR target/50751 + * gcc.target/sh/pr50751-1.c: New. + * gcc.target/sh/pr50751-2.c: New. + * gcc.target/sh/pr50751-3.c: New. + +2012-03-21 Oleg Endo + + PR target/52479 + * gcc.target/sh/sh4a-cos.c: Remove. + * gcc.target/sh/sh4a-sin.c: Remove. + * gcc.target/sh/sh4a-sincos.c: Remove. + +2012-03-21 Richard Earnshaw + + * gcc.target/arm/neon/vgetQ_laneu64.c: Regenerated. + * gcc.target/arm/neon/vgetQ_lanes64.c: Likewise. + +2012-03-21 Martin Jambor + + PR testsuite/52641 + * gcc.dg/misaligned-expand-1.c (cst): Cast to int. + * gcc.dg/misaligned-expand-2.c (cst): Likewise. + +2012-03-21 Andrew Stubbs + + * gcc.target/arm/thumb-16bit-ops.c: New file. + * gcc.target/arm/thumb-ifcvt.c: New file. + +2012-03-20 Jason Merrill + + * lib/target-supports.exp: Add { target c++1y }. + + * g++.dg/cpp0x/auto32.C: New. + +2012-03-20 Georg-Johann Lay + + PR testsuite/52641 + * gcc.dg/torture/pr48124-1.c: Add dg-require-effective-target + int32plus. + * gcc.dg/torture/pr48124-4.c: Ditto: + * gcc.dg/torture/pr52530.c: Use long instead of int if int=16. + +2012-03-20 Jason Merrill + + PR c++/52510 + * g++.dg/cpp0x/initlist66.C: New. + +2012-03-20 Georg-Johann Lay + + * gcc.target/avr/progmem.h (pgm_read_char): Define depending on + __AVR_HAVE_LPMX__ + +2012-03-20 Georg-Johann Lay + + PR target/49868 + * gcc.target/avr/torture/addr-space-2.h: New file. + * gcc.target/avr/torture/addr-space-2-g.h: New test. + * gcc.target/avr/torture/addr-space-2-0.h: New test. + * gcc.target/avr/torture/addr-space-2-1.h: New test. + * gcc.target/avr/torture/addr-space-2-x.h: New test. + +2012-03-20 Richard Guenther + + * gnat.dg/pack16.adb: New testcase. + * gnat.dg/pack16_pkg.ads: Likewise. + * gnat.dg/specs/pack8.ads: Likewise. + * gnat.dg/specs/pack8_pkg.ads: Likewise. + +2012-03-19 Paolo Carlini + + * g++.dg/warn/Wuseless-cast.C: Extend. + +2012-03-19 Paolo Carlini + + PR c++/14710 + * g++.dg/warn/Wuseless-cast.C: New. + +2012-03-17 Janne Blomqvist + + PR libfortran/52608 + * gfortran.dg/pr52608.f90: New test. + +2012-03-17 Tobias Burnus + + PR fortran/52585 + * gfortran.dg/proc_ptr_36.f90: New. + +2012-03-16 Martin Jambor + + * gcc.dg/misaligned-expand-1.c: New test. + * gcc.dg/misaligned-expand-3.c: Likewise. + +2012-03-16 Richard Guenther + Kai Tietz + + PR middle-end/48814 + * gcc.c-torture/execute/pr48814-1.c: New test. + * gcc.c-torture/execute/pr48814-2.c: New test. + * gcc.dg/tree-ssa/assign-1.c: New test. + * gcc.dg/tree-ssa/assign-2.c: New test. + * gcc.dg/tree-ssa/assign-3.c: New test. + +2012-03-16 Richard Guenther + + * gnat.dg/specs/pack7.ads: New testcase. + +2012-03-15 Jakub Jelinek + + PR target/52568 + * gcc.dg/torture/vshuf-4.inc: Add two new tests. + * gcc.dg/torture/vshuf-8.inc: Likewise. + * gcc.dg/torture/vshuf-16.inc: Likewise. + * gcc.dg/torture/vshuf-32.inc: Likewise. + +2012-03-15 Jason Merrill + + * g++.dg/torture/pr52582.C: New. + +2012-03-15 Bernhard Reutner-Fischer + + * lib/fortran-modules.exp: New file which was forgotten in r185430. + +2012-03-15 Ira Rosen + Ulrich Weigand + + * gcc.dg/vect/slp-cond-3.c: New test. + * gcc.dg/vect/slp-cond-4.c: New test. + +2012-03-15 Ira Rosen + Ulrich Weigand + + * gcc.dg/vect/bb-slp-pattern-1.c: New test. + * gcc.dg/vect/bb-slp-pattern-2.c: New test. + +2012-03-15 Janne Blomqvist + + PR libfortran/52434 + PR libfortran/48878 + PR libfortran/38199 + * gfortran.dg/edit_real_1.f90: Don't assume roundTiesToAway. + * gfortran.dg/round_1.f03: Likewise. + +2012-03-15 Jakub Jelinek + Andrew Pinski + + PR middle-end/52592 + * gcc.dg/pr52592.c: New test. + +2012-03-15 Bernhard Reutner-Fischer + + * gfortran.fortran-torture/compile/compile.exp: Simplify. + * gfortran.fortran-torture/execute/execute.exp: Likewise. + * lib/gcc-dg.exp (cleanup-modules): Move to .. + * lib/fortran-modules.exp: .. this new file. Adjust users. + * lib/gfortran-dg.exp (gfortran-dg-runtest, + gfortran-dg-debug-runtest): Call cleanup-modules. + * lib/fortran-torture.exp (fortran-torture-execute, + fortran-torture): Likewise. + * gfortran.dg/coarray/caf.exp: Likewise. + * lib/lto.exp: Likewise. + * gfortran.dg/class_4a.f03: Adjust cleanup-modules and keep-modules. + * gfortran.dg/class_4b.f03: Likewise. + * gfortran.dg/class_4c.f03: Likewise. + * gfortran.dg/class_45a.f03: Likewise. + * gfortran.dg/binding_label_tests_10.f03: Likewise. + * gfortran.dg/binding_label_tests_10_main.f03: Likewise. + * gfortran.dg/binding_label_tests_11.f03: Likewise. + * gfortran.dg/binding_label_tests_11_main.f03: Likewise. + * gfortran.dg/binding_label_tests_13.f03: Likewise. + * gfortran.dg/binding_label_tests_13_main.f03: Likewise. + * gfortran.dg/test_common_binding_labels_2.f03: Likewise. + * gfortran.dg/test_common_binding_labels_2_main.f03: Likewise. + * gfortran.dg/test_common_binding_labels_3.f03: Likewise. + * gfortran.dg/test_common_binding_labels_3_main.f03: Likewise. + * gfortran.dg/whole_file_28.f90: Likewise. + * gfortran.dg/whole_file_29.f90: Likewise. + * gfortran.dg/whole_file_30.f90: Likewise. + * gfortran.dg/whole_file_31.f90: Likewise. + +2012-03-15 Jakub Jelinek + + PR tree-optimization/52267 + * gcc.dg/pr52267.c: New test. + * gcc.dg/tree-ssa/vrp65.c: New test. + * gcc.dg/tree-ssa/vrp66.c: New test. + +2012-03-15 Richard Guenther + + PR middle-end/52580 + * gfortran.dg/vect/pr52580.f: New testcase. + +2012-03-15 Oleg Endo + + * gcc.target/sh/fpul-usage-1.c: New. + +2012-03-14 Oleg Endo + + PR target/49468 + * gcc.target/sh/pr49468-si.c: Make dg-skip-if not the first directive. + * gcc.target/sh/pr49468-di.c: Likewise. + +2012-03-14 Rainer Orth + + * g++.dg/warn/miss-format-1.C: Remove *-*-solaris2.8 handling. + * gcc.dg/c99-stdint-6.c: Likewise. + * gcc.dg/lto/20090210_0.c: Likewise. + * gcc.dg/pr28796-2.c: Don't skip on sparc*-sun-solaris2.8. + * gcc.dg/pragma-init-fini.c: Don't skip on i?86-*-solaris2.8. + * gcc.dg/pragma-init-fini-2.c: Likewise. + * gcc.dg/torture/pr47917.c: Remove *-*-solaris2.8 handling. + * gcc.target/i386/pr22076.c: Remove i?86-*-solaris2.8 handling. + * gcc.target/i386/pr22152.c: Likewise. + * gcc.target/i386/vect8-ret.c: Likewise. + * lib/target-supports.exp (add_options_for_tls): Remove Solaris 8 + handling. + +2012-03-14 Rainer Orth + + * g++.dg/other/anon5.C: Don't skip on mips-sgi-irix*. + * g++.dg/tree-prof/partition1.C: Likewise. + * g++.dg/tree-prof/partition2.C: Likewise. + * g++.old-deja/g++.other/init19.C: Remove mips-sgi-irix* + handling. + * gcc.c-torture/compile/labels-3.c: Remove dg-options. + * gcc.c-torture/execute/20010724-1.c: Remove. + * gcc.c-torture/execute/20010724-1.x: Remove. + * gcc.c-torture/execute/20040208-2.c: Remove. + * gcc.c-torture/execute/20040208-2.x: Remove. + * gcc.c-torture/execute/ieee/20000320-1.c [__mips__ && __sgi__]: + Remove. + (main) [__mips__ && __sgi__]: Remove. + * gcc.c-torture/execute/ieee/copysign1.c: Remove IRIX reference. + * gcc.c-torture/execute/ieee/copysign2.c: Likewise. + * gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: Remove + mips-sgi-irix6* handling. + * gcc.dg/cpp/assert4.c [__mips__]: Remove __sgi__, sgi. + * gcc.dg/torture/20090618-1.c: Don't skip on mips-sgi-irix*. + * gcc.dg/torture/builtin-frexp-1.c: Remove mips*-*-irix6* + handling. + * gcc.dg/torture/builtin-logb-1.c: Likewise. + * gcc.dg/torture/pr47917.c: Remove mips-sgi-irix6.5 handling. + * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Don't skip on mips*-*-irix*. + * gcc.misc-tests/linkage.exp: Remove mips-sgi-irix6* handling. + * gcc.target/mips/args-1.c [!__sgi__]: Remove. + * gcc.target/mips/interrupt_handler-2.c: Don't skip on + mips-sgi-irix6*. + * gcc.target/mips/interrupt_handler-3.c: Likewise. + * gcc.target/mips/save-restore-1.c: Don't skip on mips-sgi-irix6*. + * gcc.target/mips/save-restore-3.c: Likewise. + * gcc.target/mips/save-restore-4.c: Likewise. + * gcc.target/mips/save-restore-5.c: Likewise. + * gfortran.dg/g77/cabs.f: Don't xfail on mips-sgi-irix6*. + * lib/prune.exp (prune_gcc_output): Remove pruning of IRIX 6 ld + messages. + * lib/target-libpath.exp (set_ld_library_path_env_vars): Remove + IRIX 6 handling. + (restore_ld_library_path_env_vars): Likewise. + * lib/target-supports.exp (check_profiling_available): Remove + mips*-*-irix* handling. + (check_ascii_locale_available): Remove mips-sgi-irix* handling. + (add_options_for_c99_runtime): Remove mips-sgi-irix6.5* handling. + * objc.dg/stabs-1.m: Don't xfail on mips-sgi-irix6.5. + +2012-03-14 Jakub Jelinek + + PR c++/52582 + * g++.dg/opt/pr52582.C: New test. + +2012-03-14 Richard Guenther + + PR tree-optimization/52571 + * gcc.dg/vect/vect-2.c: Initialize arrays. + * gcc.dg/vect/no-section-anchors-vect-34.c: Likewise. + * gcc.target/i386/recip-vec-divf.c: Use -fno-common. + * gcc.target/i386/recip-vec-sqrtf.c: Likewise. + +2012-03-14 Richard Guenther + + PR middle-end/52080 + PR middle-end/52097 + PR middle-end/48124 + * gcc.dg/torture/pr48124-1.c: New testcase. + * gcc.dg/torture/pr48124-2.c: Likewise. + * gcc.dg/torture/pr48124-3.c: Likewise. + * gcc.dg/torture/pr48124-4.c: Likewise. + +2012-03-14 Richard Guenther + + PR middle-end/52578 + * gcc.dg/pr52578.c: New testcase. + +2012-03-14 Jakub Jelinek + + PR c++/52521 + * g++.dg/cpp0x/udlit-args2.C: New test. + +2012-03-13 Oleg Endo + + PR target/48596 + * gcc.target/sh/pr48596.c: Move accidentally added new test case to ... + * gcc.c-torture/compile/pr48596.c: ... here. + +2012-01-30 Dodji Seketeli + + PR c++/51641 + * g++.dg/lookup/hidden-class17.C: New test. + +2012-03-13 Jakub Jelinek + + PR c/52577 + * gcc.dg/Wunused-var-3.c: New test. + +2012-03-13 Martin Jambor + + * gcc.dg/misaligned-expand-2.c: New test. + +2012-03-13 Richard Guenther + + PR middle-end/52134 + * gcc.dg/pr52134.c: New testcase. + +2012-03-13 Rainer Orth + + * ada/acats/tests/cd/cdd1001.a (CDD1001): Fix typo. + +2012-03-12 Bill Schmidt + + PR tree-optimization/46728 + * gcc.target/powerpc/pr46728-4.c: Use preferred syntax. + * gcc.target/powerpc/pr46728-5.c: Likewise. + * gcc.target/powerpc/pr46728-8.c: Likewise. + * gcc.target/powerpc/pr46728-10.c: Likewise. + * gcc.target/powerpc/pr46728-11.c: Likewise. + * gcc.target/powerpc/pr46728-13.c: Likewise. + * gcc.target/powerpc/pr46728-14.c: Likewise. + * gcc.target/powerpc/pr46728-15.c: Likewise. + +2012-03-12 Paolo Carlini + + PR c++/52299 + * g++.dg/warn/Wdiv-by-zero-bogus.C: New. + +2012-03-12 Bill Schmidt + + PR tree-optimization/46728 + * gcc.target/powerpc/pr46728-4.c: Skip for powerpc*-*-darwin*. + * gcc.target/powerpc/pr46728-5.c: Likewise. + * gcc.target/powerpc/pr46728-8.c: Likewise. + * gcc.target/powerpc/pr46728-10.c: Likewise. + * gcc.target/powerpc/pr46728-11.c: Likewise. + * gcc.target/powerpc/pr46728-13.c: Likewise. + * gcc.target/powerpc/pr46728-14.c: Likewise. + * gcc.target/powerpc/pr46728-15.c: Likewise. + +2012-03-12 Georg-Johann Lay + + PR target/49868 + * gcc.target/avr/torture/addr-space-1.h: New file. + * gcc.target/avr/torture/addr-space-1-g.h: New test. + * gcc.target/avr/torture/addr-space-1-0.h: New test. + * gcc.target/avr/torture/addr-space-1-1.h: New test. + * gcc.target/avr/torture/addr-space-1-x.h: New test. + +2012-03-12 Andrew Pinski + + * gcc.dg/tree-ssa/phi-opt-7.c: New testcase. + +2012-03-12 Rainer Orth + + * g++.dg/abi/rtti3.C: Remove alpha*-dec-osf* handling. + * g++.dg/abi/thunk4.C: Likewise. + * g++.dg/cdce3.C: Don't skip on*-dec-osf5*. + Adapt line numbers. + * g++.dg/compat/struct-layout-1_generate.c: Remove alpha*-dec-osf* + handling. + * g++.dg/cpp0x/constexpr-rom.C: Likewise. + * g++.dg/eh/spbp.C: Likewise. + * g++.dg/ext/label13.C: Likewise. + * g++.dg/guality/guality.exp: Likewise. + * g++.dg/other/anon5.C: Likewise. + * g++.dg/other/pragma-ep-1.C: Remove. + * g++.dg/warn/miss-format-1.C: Remove alpha*-dec-osf* handling. + * g++.dg/warn/pr31246.C: Likewise. + * g++.dg/warn/weak1.C: Likewise. + * g++.old-deja/g++.eh/badalloc1.C: Likewise. + * g++.old-deja/g++.ext/attrib5.C: Likewise. + * gcc.c-torture/compile/limits-declparen.c: Likewise. + * gcc.c-torture/compile/limits-pointer.c: Likewise. + * gcc.c-torture/execute/20001229-1.c: Remove __osf__ handling. + * gcc.dg/attr-weakref-1.c: Remove alpha*-dec-osf* handling. + * gcc.dg/c99-stdint-6.c: Remove alpha*-dec-osf5* handling. + * gcc.dg/c99-tgmath-1.c: Likewise. + * gcc.dg/c99-tgmath-2.c: Likewise. + * gcc.dg/c99-tgmath-3.c: Likewise. + * gcc.dg/c99-tgmath-4.c: Likewise. + * gcc.dg/compat/struct-layout-1_generate.c: Remove alpha*-dec-osf* + handling. + * gcc.dg/debug/pr49032.c: Likewise. + * gcc.dg/guality/guality.exp: Likewise. + * gcc.dg/intmax_t-1.c: Likewise. + * gcc.dg/pr48616.c: Likewise. + * gcc.dg/pragma-ep-1.c: Remove. + * gcc.dg/pragma-ep-2.c: Remove. + * gcc.dg/pragma-ep-3.c: Remove. + * gcc.dg/torture/pr47917.c: Remove alpha*-dec-osf5* handling. + * gcc.dg/tree-ssa/pr42585.c: Remove alpha*-dec-osf* handling. + * gcc.misc-tests/gcov-14.c: Likewise. + * gfortran.dg/guality/guality.exp: Likewise. + * lib/target-supports.exp (check_weak_available): Likewise. + (add_options_for_tls): Likewise. + (check_ascii_locale_available): Likewise. + * obj-c++.dg/dwarf-2.mm: Likewise. + * objc.dg/dwarf-1.m: Likewise. + * objc.dg/dwarf-2.m: Likewise. + +2012-03-12 Jakub Jelinek + + PR tree-optimization/51721 + * gcc.dg/tree-ssa/vrp64.c: New test. + + PR tree-optimization/52533 + * gcc.c-torture/compile/pr52533.c: New test. + +2012-03-12 Kirill Yukhin + + * gcc.target/i386/rtm-xabort-1.c: New. + * gcc.target/i386/rtm-xbegin-1.c: Ditto. + * gcc.target/i386/rtm-xend-1.c: Ditto. + * gcc.target/i386/rtm-xtest-1.c: Ditto. + * gcc.target/i386/sse-12.c: Test RTM intrinsics. + * gcc.target/i386/sse-13.c: Ditto. + * gcc.target/i386/sse-14.c: Ditto. + * gcc.target/i386/sse-22.c: Ditto. + * gcc.target/i386/sse-23.c: Ditto. + * g++.dg/other/i386-2.C: Ditto. + * g++.dg/other/i386-3.C: Ditto. + +2012-03-12 Tobias Burnus + + PR fortran/52542 + * gfortran.dg/proc_ptr_35.f90: New. + +2012-03-11 Uros Bizjak + + PR target/52530 + * gcc.dg/torture/pr52530.c: New test. + +2012-03-11 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-1.c: Fix thinkos. + +2012-03-10 John David Anglin + + PR target/52450 + * gcc.dg/torture/pr52402.c: Skip execution on 32-bit hppa*-*-hpux*. + + * gcc.dg/torture/pr52407.c: Add -fno-common option on hppa*-*-hpux*. + +2012-03-09 Andrew Pinski + + PR middle-end/51988 + * gcc.dg/tree-ssa/phi-opt-8.c: New testcase. + * gcc.dg/tree-ssa/phi-opt-9.c: New testcase. + +2012-03-09 Jiangning Liu + + * gcc.dg/tree-ssa/scev-3.c: New. + * gcc.dg/tree-ssa/scev-4.c: New. + +2012-03-08 Tobias Burnus + + PR fortran/52469 + * gfortran.dg/proc_ptr_34.f90 + +2012-03-07 Jason Merrill + + PR c++/52521 + * g++.dg/cpp0x/udlit-mangle.C: New. + +2012-03-06 Pat Haugen + + * gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check. + +2012-03-06 Richard Guenther + + PR middle-end/52493 + * gcc.dg/torture/pr52493.c: New testcase. + +2012-03-06 Richard Guenther + + PR lto/52097 + * gcc.dg/lto/pr52097_0.c: New testcase. + +2012-03-06 Oleg Endo + + PR target/51244 + * gcc.target/sh/pr51244-1.c: New. + * gcc.target/sh/pr51244-2.c: New. + * gcc.target/sh/pr51244-3.c: New. + +2012-03-05 Jason Merrill + + PR c++/51930 + * g++.dg/ext/visibility/template11.C: New. + + * g++.dg/cpp0x/implicit13.C: New. + +2012-03-05 Jakub Jelinek + + PR tree-optimization/51721 + * gcc.dg/tree-ssa/vrp63.c: New test. + * gcc.dg/pr51721.c: New test. + +2012-03-04 Mikael Morin + + PR fortran/50981 + * gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual + argument checks. + +2012-03-04 H.J. Lu + + PR target/52146 + * gcc.target/i386/pr52146.c: Update final-scan to allow $-18874240. + +2012-03-04 Mikael Morin + + PR fortran/50981 + * gfortran.dg/elemental_optional_args_5.f03: Add array checks. + +2012-03-04 Georg-Johann Lay + + * gcc.dg/torture/pr52402.c: Add dg-require-effective-target + int32plus. + +2012-03-03 Jason Merrill + + * g++.dg/cpp0x/nsdmi-defer6.C: New. + + Core 1270 + * g++.dg/cpp0x/initlist65.C: New. + + PR c++/36797 + * g++.dg/ext/is_empty2.C: New. + +2012-03-03 Tobias Burnus + + PR fortran/48820 + * gfortran.dg/assumed_type_3.f90: Undo previous commit. + +2012-03-03 Tobias Burnus + + * gfortran.dg/bind_c_dts_4.f03: Add dg-options -Wc-binding-type. + * gfortran.dg/bind_c_implicit_vars.f03: Ditto. + * gfortran.dg/bind_c_usage_8.f03: Ditto. + * gfortran.dg/c_kind_tests_2.f03: Ditto. + * gfortran.dg/class_30.f90: Remove dg-warning line. + * gfortran.dg/bind_c_usage_25.f90: New. + +2012-03-03 Tobias Burnus + + PR fortran/48820 + * gfortran.dg/assumed_type_1.f90: Correct dg-error. + * gfortran.dg/assumed_type_3.f90: Correct dg-error. + * gfortran.dg/assumed_type_4.f90: Correct dg-error. + +2012-03-03 Tobias Burnus + + PR fortran/48820 + * gfortran.dg/assumed_type_1.f90: New. + * gfortran.dg/assumed_type_2.f90: New. + * gfortran.dg/assumed_type_3.f90: New. + * gfortran.dg/assumed_type_4.f90: New. + +2012-03-02 Oleg Endo + + PR target/49486 + * gcc.target/sh/pr49468-si.c: Skip unsupported test for SH64. + * gcc.target/sh/pr49468-di.c: New. + +2012-03-02 Maxim Kuvyrkov + + * gcc.dg/graphite/pr50561.c: Update. + +2012-03-02 Peter Bergner + + * gcc.target/powerpc/pr52457.c: New test. + +2012-03-02 Ulrich Weigand + + * gcc.target/arm/sat-1.c: New test. + +2012-03-02 Uros Bizjak + + PR target/46716 + * gcc.target/i386/pr46716.c: New test. + +2012-03-02 Paolo Carlini + + PR c++/51989 + * g++.dg/cpp0x/sfinae32.C: New. + +2012-03-02 Richard Guenther + + PR tree-optimization/52406 + * gcc.dg/torture/pr52406.c: New testcase. + +2012-03-02 Tobias Burnus + + PR fortran/52325 + * gfortran.dg/derived_comp_array_ref_8.f90: New. + * gfortran.dg/nullify_2.f90: Update dg-error. + * gfortran.dg/nullify_4.f90: Ditto. + * gfortran.dg/pointer_init_6.f90: Ditto. + +2012-03-02 Tobias Burnus + + PR fortran/52270 + * gfortran.dg/class_51.f90: New. + +2012-03-02 Tobias Burnus + + PR fortran/52452 + * gfortran.dg/intrinsic_8.f90: New. + +2012-03-01 Kai Tietz + + * gcc.dg/torture/pr47917.c: Make test using POSIX-printf + routines on mingw targets. + * gcc.dg/vect/pr46126.c (uintptr_t): Add support for LLP64 target. + +2012-03-01 Jakub Jelinek + + PR tree-optimization/52445 + * gcc.dg/pr52445.c: New test. + +2012-02-29 Jakub Jelinek + + PR target/52437 + * gcc.c-torture/compile/pr52437.c: New test. + + PR middle-end/52419 + * gcc.dg/torture/pr52419.c: New test. + + PR tree-optimization/52429 + * gcc.dg/torture/pr52429.c: New test. + * g++.dg/opt/pr52429.C: New test. + +2012-02-29 Richard Guenther + + PR testsuite/52297 + * gcc.dg/lto/trans-mem-1_0.c: Remove. + * gcc.dg/lto/trans-mem-1_1.c: Likewise. + * gcc.dg/lto/trans-mem-2_0.c: Likewise. + * gcc.dg/lto/trans-mem-2_1.c: Likewise. + * gcc.dg/lto/trans-mem-4_0.c: Likewise. + * gcc.dg/lto/trans-mem-4_1.c: Likewise. + +2012-02-29 Jakub Jelinek + + * gcc.dg/torture/pr52402.c: Add -w -Wno-psabi to dg-options. + +2012-02-29 Paul Thomas + + PR fortran/52386 + * gfortran.dg/realloc_on_assign_13.f90 : New test. + +2012-02-28 Matthew Gretton-Dann + + PR target/51534 + * gcc.target/arm/neon/pr51534.c: New testcase. + +2012-02-28 Richard Guenther + + PR target/52407 + * gcc.dg/torture/pr52407.c: New testcase. + +2012-02-28 Ramana Radhakrishnan + + * gcc.target/arm/vfp1.c (dg_do run): Run on all eabi variants. + * gcc.target/arm/vfp2.c: Likewise. + * gcc.target/arm/vfp3.c: Likewise. + * gcc.target/arm/vfp4.c: Likewise. + * gcc.target/arm/vfp5.c: Likewise. + * gcc.target/arm/vfp6.c: Likewise. + * gcc.target/arm/vfp7.c: Likewise. + * gcc.target/arm/vfp8.c: Likewise. + * gcc.target/arm/vfp9.c: Likewise. + * gcc.target/arm/vfp10.c: Likewise. + * gcc.target/arm/vfp11.c: Likewise. + * gcc.target/arm/vfp12.c: Likewise. + * gcc.target/arm/vfp13.c: Likewise. + * gcc.target/arm/vfp14.c: Likewise. + * gcc.target/arm/vfp15.c: Likewise. + * gcc.target/arm/vfp16.c: Likewise. + * gcc.target/arm/vfp17.c: Likewise. + * gcc.target/arm/neon-constants.h: New file. + * gcc.target/arm/neon-vect1.c: New test. + * gcc.target/arm/neon-vect2.c: New test. + * gcc.target/arm/neon-vect3.c: New test. + * gcc.target/arm/neon-vect4.c: New test. + * gcc.target/arm/neon-vect5.c: New test. + * gcc.target/arm/neon-vect6.c: New test. + * gcc.target/arm/neon-vect7.c: New test. + * gcc.target/arm/neon-vect8.c: New test. + +2012-02-28 Richard Guenther + + PR tree-optimization/52402 + * gcc.dg/torture/pr52402.c: New testcase. + +2012-02-28 Richard Guenther + + PR lto/52400 + * g++.dg/lto/pr52400_0.C: New testcase. + +2012-02-28 Georg-Johann Lay + + * gcc.target/avr/torture/builtins-1.c: New test. + * gcc.target/avr/torture/builtins-error.c: New test. + +2012-02-28 Kai Tietz + + * gcc.target/i386/pr46939.c (long): Fix LP64 vs LLP64 issue. + * gcc.target/i386/pr45352-2.c: Likewise. + * gcc.target/i386/bitfield3.c: Add -mno-ms-bitfields for mingw targets. + * gcc.target/i386/xop-vshift-1.c (random): Use on mingw + targets instead rand. + * gcc.target/i386/sse4_1-blendps-2.c: Likewise. + * gcc.target/i386/sse2-mul-1.c: Likewise. + * gcc.target/i386/sse4_1-blendps.c: Likewise. + * gcc.target/i386/pad-6b.c: Adjust test for x64 mingw target. + * gcc.target/i386/pad-1.c: Likewise. + * gcc.target/i386/pad-9.c: Likewise. + * gcc.target/i386/pad-2.c: Likewise. + * gcc.target/i386/pad-5b.c: Likewise. + * gcc.target/i386/pad-8.c: Likewise. + * gcc.target/i386/pr46470.c: Skip for x64 mingw target. + * gcc.target/i386/pr44130.c: Likewise. + * gcc.target/i386/align-main-1.c: Likewise. + * gcc.target/i386/align-main-2.c: Likewise. + * gcc.target/i386/sw-1.c: Likewise. + * gcc.target/i386/avx-vzeroupper-5.c: Add -mabi=sysv + on x64 mingw target. + * gcc.target/i386/avx-vzeroupper-4.c: Likewise. + * gcc.target/i386/pr46295.c: Likewise. + * gcc.target/i386/amd64-abi-1.c: Likewise. + * gcc.target/i386/amd64-abi-2.c: Likewise. + * gcc.target/i386/pr39082-1.c: Likewise. + * gcc.target/i386/pr39162.c: Likewise. + * gcc.target/i386/pr22152.c: Likewise. + * gcc.target/i386/wrgsbase-2.c: Adjust dg-final rule. + * gcc.target/i386/wrfsbase-2.c: Likewise. + * gcc.target/i386/local.c: Likewise + * gcc.target/i386/wrgsbase-1.c: Likewise. + * gcc.target/i386/wrfsbase-1.c: Likewise. + * gcc.target/i386/pr39315-3.c: Likewise. + * gcc.target/i386/pr35767-4.c: Likewise. + * gcc.target/i386/pr45336-3.c (pextrd): Don't check for + x64 mingw target. + * gcc.target/i386/pr45336-2.c: Likewise. + * gcc.target/i386/pr45336-1.c: Likewise. + * gcc.target/i386/pr45336-4.c: Likewise. + +2012-02-27 Tristan Gingold + + * gnat.dg/array20.ad[sb]: New test. + +2012-02-27 Jakub Jelinek + + PR target/52375 + * gcc.target/arm/pr52375.c: New test. + * gcc.c-torture/compile/pr52375.c: New test. + +2012-02-27 Ulrich Weigand + + * gfortran.dg/typebound_operator_9.f03: Skip on SPU. + * gcc.dg/torture/builtin-complex-1.c: Skip "float" tests on SPU. + +2012-02-27 Eric Botcazou + + * gnat.dg/aggr19.adb: New test. + * gnat.dg/aggr19_pkg.ad[sb]: New helper. + +2012-02-26 Oleg Endo + + PR target/49263 + * gcc.target/sh/pr49263.c: New. + +2012-02-24 Andrew MacLeod + + * gcc.dg/simulate-thread/simulate-thread.gdb: Use return value from + simulate_thread_wrapper_other_threads + * gcc.dg/simulate-thread/atomic-load-int128.c (simulate_thread_main): + Move initialization of 'value' to main(). + (main): Initialize 'value'; + * gcc.dg/simulate-thread/speculative-store.c + (simulate_thread_step_verify): Return 0 when successful. + * gcc.dg/simulate-thread/simulate-thread.h (HOSTILE_THREAD_THRESHOLD): + Reduce threshold. + (INSN_COUNT_THRESHOLD): New. Instruction limit to terminate test. + (simulate_thread_wrapper_other_threads): Return a success/fail value + and issue an error if the instruction count threshold is exceeded. + +2012-02-24 Rainer Orth + + PR target/50580 + * gcc.target/mips/interrupt_handler-2.c: Skip on mips-sgi-irix6*. + * gcc.target/mips/interrupt_handler-3.c: Likewise. + +2012-02-24 Richard Guenther + + PR middle-end/52355 + * gcc.dg/pr52355.c: New testcase. + +2012-02-23 Kai Tietz + + * gcc.dg/pack-test-5.c: Add -mno-ms-bitfields option for mingw-targets. + * gcc.dg/Wpadded.c: Likewise. + * gcc.dg/bf-ms-layout-2.c: Adjust offsets to fit ms-bitfield + structure-layout. + * gcc.dg/di-sync-multithread.c: Replace for mingw-target the use + for sleep by Sleep and add windows.h include for this function. + * gcc.dg/format/dfp-printf-1.c: Adjust dg-skip-if rule for mingw + targets. + * gcc.dg/stack-usage-1.c (SIZE): Provide proper SIZE for x64 mingw + target. + * gcc.dg/tls/thr-cse-1.c: Provide proper pattern for x64 mingw target. + * gcc.dg/tls/opt-11.c (memset): Use __extension__ to avoid fail + on x64 mingw target. + * gcc.dg/bf-ms-attrib.c: Adjust expected size for ms_struct layout. + * gcc.dg/pr50251.c: Disable test for x64 mingw target. + * gcc.c-torture/execute/930930-1.c (long): Replace by ptr_t to avoid + failure on LLP64 target. + +2012-02-23 Uros Bizjak + + PR c/52290 + * gcc.dg/noncompile/pr52290.c: New test. + +2012-02-23 Jakub Jelinek + + PR tree-optimization/52019 + * gcc.dg/tree-ssa/ipa-split-6.c: New test. + +2012-02-22 Kai Tietz + + * g++.dg/opt/devirt2.C: Add rule for *-*-mingw* target. + * g++.dg/opt/pr48549.C (long): Replace by long by __PTRDIFF_TYPE__ + derived pdiff_t type. + * g++.dg/torture/pr49720.C: Likewise + +2012-02-22 Uros Bizjak + + PR target/52330 + * gcc.target/i386/pr52330.c: New test. + +2012-02-22 Tobias Burnus + + PR fortran/52335 + * gfortran.dg/io_constraints_10.f90: New. + +2012-02-22 Ulrich Weigand + + * lib/target-supports.exp (check_effective_target_vect_condition): + Return true for NEON. + +2012-02-21 Kai Tietz + + * gcc.dg/bf-ms-layout-3.c: Mark char typed bitfield as extension. + +2012-02-21 Richard Guenther + + PR tree-optimization/52324 + * gcc.dg/tree-ssa/ssa-lim-10.c: New testcase. + +2012-02-21 Georg-Johann Lay + + PR middle-end/51782 + * gcc.target/avr/torture/pr51782-1.c: New test. + +2012-02-21 Jakub Jelinek + + PR tree-optimization/52318 + * gcc.dg/pr52318.c: New test. + +2012-02-20 Kai Tietz + + * gcc.dg/bf-ms-layout-3.c: New testcase. + +2012-02-20 Thomas Koenig + + PR testsuite/52229 + PR fortran/32380 + * gfortran.dg/vect/pr32380.f: XFAIL on PowerPC and ia-64. + +2012-02-20 Richard Guenther + + PR tree-optimization/52298 + * gcc.dg/torture/pr52298.c: New testcase. + * gcc.dg/vect/pr52298.c: Likewise. + +2012-02-20 Georg-Johann Lay + + * gcc.dg/pr52132.c: Fix FAIL on 16-bit int platforms. + * gcc.c-torture/execute/pr52286.c: Ditto. + +2012-02-20 Jakub Jelinek + + PR tree-optimization/52286 + * gcc.c-torture/execute/pr52286.c: New test. + +2012-02-18 Tobias Burnus + + PR fortran/52295 + * gfortran.dg/interface_35.f90: Use -std=f2003. + * gfortran.dg/proc_ptr_comp_20.f90: Remove dg-warning. + * gfortran.dg/interface_assignment_4.f90: Ditto. + * gfortran.dg/bessel_1.f90: Ditto. + * gfortran.dg/func_result_6.f90: Ditto. + * gfortran.dg/hypot_1.f90: Ditto. + * gfortran.dg/proc_ptr_comp_21.f90: Ditto. + +2012-02-17 Tobias Burnus + + PR translation/52232 + PR translation/52234 + PR translation/52245 + PR translation/52246 + PR translation/52262 + PR translation/52273 + * gfortran.dg/coarray_22.f90: Update dg-error. + * gfortran.dg/allocate_alloc_opt_4.f90: Ditto. + +2012-02-17 Rainer Orth + + PR target/51753 + * lib/gcc-simulate-thread.exp: Load timeout.exp. + (simulate-thread): Use default timeout. + +2012-02-16 Jason Merrill + + PR c++/52248 + * g++.dg/ext/timevar1.C: New. + +2012-02-16 Fabien ChÁne + + PR c++/52126 + * g++.dg/template/using21.C: New. + * g++.dg/template/using22.C: Likewise. + +2012-02-16 Jason Merrill + + PR c++/51415 + * g++.dg/cpp0x/lambda/lambda-err1.C: New. + +2012-02-16 Jakub Jelinek + + PR tree-optimization/52255 + * gcc.c-torture/compile/pr52255.c: New test. + + PR debug/52260 + * g++.dg/debug/dwarf2/pr52260.C: New test. + + PR middle-end/51929 + * g++.dg/ipa/pr51929.C: New test. + +2012-02-15 Michael Meissner + + PR target/52199 + * gcc.target/powerpc/pr52199.c: New file. + +2012-02-15 Rainer Orth + + PR target/52152 + * objc.dg/stabs-1.m: xfail on mips-sgi-irix6.5. + +2012-02-15 Rainer Orth + + * gcc.dg/pr51867.c: Don't include . + (sqrtf): Declare. + +2012-02-15 Georg-Johann Lay + + * gcc.dg/lto/20091013-1_1.c: xfail for avr. + * gcc.dg/lto/20091013-1_2.c: xfail for avr. + +2012-02-15 Tobias Grosser + + PR tree-optimization/50561 + * gcc.dg/graphite/pr50561.c: New testcase. + +2012-02-15 Georg-Johann Lay + + * gcc.target/avr/torture/builtin_insert_bits-1.c: New test. + * gcc.target/avr/torture/builtin_insert_bits-2.c: New test. + +2012-02-15 Eric Botcazou + + * gnat.dg/discr35.ad[sb]: New test. + +2012-02-15 Eric Botcazou + + * gnat.dg/volatile10.adb: New test. + * gnat.dg/volatile10_pkg.ads: New helper. + +2012-02-14 Jason Merrill + + * g++.dg/ext/attrib43.C: New. + +2012-02-14 Hans-Peter Nilsson + + * lib/target-supports.exp (check_effective_target_fgnu_tm): New proc. + * gfortran.dg/trans-mem-skel.f90: Gate test on effective_target + fgnu_tm. + * gcc.dg/lto/trans-mem-1_0.c, gcc.dg/lto/trans-mem-2_0.c, + gcc.dg/lto/trans-mem-3_0.c, gcc.dg/lto/trans-mem-4_0.c: Ditto. + * gcc.dg/tm/tm.exp: Gate the whole of gcc.dg/tm on + effective_target fgnu_tm. + * g++.dg/tm/tm.exp: Ditto for g++.dg/tm. + +2012-02-14 Jakub Jelinek + + PR c++/52247 + * g++.dg/template/asmgoto1.C: New test. + +2012-02-14 Ian Lance Taylor + + PR go/48501 + * go.test/go-test.exp (go-gc-tests): Disable optimizations when + compiling generated file for 64bit and index tests. + +2012-02-14 Uros Bizjak + + * gcc.dg/lower-subreg-1.c: Fix and simplify target selector. + +2012-02-14 Richard Guenther + + PR tree-optimization/52244 + PR tree-optimization/51528 + * gcc.dg/torture/pr52244.c: New testcase. + +2012-02-14 Walter Lee + + * g++.dg/other/PR23205.C: Disable test on tile. + * g++.dg/other/pr23205-2.C: Disable test on tile. + * gcc.dg/20020312-2.c: Add a condition for __tile__. + * gcc.dg/20040813-1.c: Disable test on tile. + * gcc.dg/lower-subreg-1.c: Disable test on tilegx. + * gcc.misc-tests/linkage.exp: Handle tilegx. + +2012-02-14 Jakub Jelinek + + PR tree-optimization/52210 + * gcc.dg/pr52210.c: New test. + +2012-02-14 Jason Merrill + + PR c++/39055 + * g++.dg/overload/defarg5.C: New. + +2012-02-14 Jakub Jelinek + + PR c/52181 + * c-c++-common/pr52181.c: New test. + +2012-02-13 Jakub Jelinek + + PR c++/52215 + * g++.dg/ext/atomic-1.C: New test. + +2012-02-13 Andreas Krebbel + + * gcc.c-torture/execute/pr51933.c: Modify for s390 31 bit. + +2012-02-13 Jakub Jelinek + + PR middle-end/52209 + * gcc.c-torture/execute/pr52209.c: New test. + +2012-02-12 Mikael Morin + + PR fortran/50981 + * gfortran.dg/elemental_optional_args_5.f03: New test. + +2012-02-12 Iain Sandoe + + PR testsuite/50076 + * c-c++-common/cxxbitfields-3.c: Adjust scan assembler for nonpic + cases. + +2012-02-11 Ian Lance Taylor + + PR go/51874 + * go.test/go-test.exp (go-gc-tests): Don't run nilptr test on + SPARC Solaris. Don't run the test at all on systems where it may + not work, rather than xfailing it. + +2012-02-11 Richard Sandiford + + PR rtl-optimization/52175 + * gcc.c-torture/compile/pr52175.c: New test. + +2012-02-10 Jason Merrill + + PR c++/51910 + * g++.dg/template/repo10.C: New. + +2012-02-11 Jakub Jelinek + + PR debug/52132 + * gcc.dg/pr52132.c: New test. + +2012-02-10 Eric Botcazou + + * gnat.dg/specs/aggr4.ads: New test. + * gnat.dg/specs/aggr4_pkg.ads: New helper. + +2012-02-10 H.J. Lu + + PR target/52146 + * gcc.target/i386/pr52146.c: New. + +2012-02-10 Jakub Jelinek + + PR middle-end/52177 + * c-c++-common/pr52177.c: New test. + +2012-02-10 Jan Hubicka + + PR middle-end/48600 + * g++.dg/torture/pr48600.C: New testcase. + +2012-02-09 Peter Bergner + + PR middle-end/52140 + * gcc.dg/dfp/pr52140.c: New test. + +2012-02-09 Jakub Jelinek + + PR fortran/32380 + * gfortran.dg/vect/pr32380.f: Use dg-additional-options instead + of dg-options. + +2012-02-09 Bin Cheng + + PR middle-end/51867 + * c-c++-common/dfp/signbit-2.c: Change '-O0' to '-O1'. + * gcc.dg/pr51867.c: New test. + +2012-02-09 Ian Lance Taylor + + * go.test/go-test.exp (go-gc-tests): Don't run stack.go on systems + which don't support -fsplit-stack. Turn off optimization when + compiling select5-out.go. + +2012-02-08 Ian Lance Taylor + + * go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on + systems which don't support -fsplit-stack. + +2012-02-08 Andrew MacLeod + + * gcc.dg/simulate-thread/simulate-thread.exp: Use -O0, -O2, and -O3. + * gcc.dg/simulate-thread/simulate-thread.gdb: Don't display every + machine instuction in the log. + +2012-02-08 Jack Howarth + + * lib/gcc-simulate-thread.exp (simulate-thread): Increase timeout + to 20 seconds. + +2012-02-08 Magnus Granberg + + PR driver/48524 + * gcc.dg/pr48524.c: New test. + * gcc.dg/pr48524.spec: New spec file for test. + +2012-02-08 Thomas Koenig + + PR fortran/32380 + * gfortran.dg/vect/pr32380.f90: New test. + +2012-02-08 Tobias Burnus + + PR fortran/52151 + * gfortran.dg/realloc_on_assign_12.f90: New. + +2012-02-08 Richard Guenther + + PR rtl-optimization/52170 + * gcc.dg/torture/pr52170.c: New testcase. + +2012-02-08 Jakub Jelinek + + PR gcov-profile/52150 + * gcc.dg/tree-prof/pr52150.c: New test. + + PR rtl-optimization/52139 + * gcc.dg/pr52139.c: New test. + +2012-02-07 Jason Merrill + + PR c++/51675 + * g++.dg/cpp0x/constexpr-union3.C: New. + + PR c++/52035 + * g++.dg/lto/pr52035_0.C: New. + +2012-02-07 John David Anglin + + * gfortran.dg/guality/pr41558.f90: Use lp64 instead of hppa*64*-*-*. + * gcc.dg/special/weak-1.c: Likewise. + * gcc.dg/ucnid-12.c: Likewise. + * gcc.dg/torture/pr45678-1.c: Likewise. + * gcc.dg/torture/pr45678-2.c: Likewise. + * gcc.dg/vector-4.c: Likewise. + * gcc.dg/ipa/inline-5.c: Likewise. + * gcc.dg/ucnid-11.c: Likewise. + * gcc.misc-tests/gcov-13.c: Likewise. + * gcc.misc-tests/gcov-14.c: Likewise. + * g++.dg/ext/label13.C: Likewise. + * gcc.dg/tree-ssa/ssa-fre-31.c: Use dg-additional-options for extra + hppa*-*-hpux* options. + * gcc.dg/tree-ssa/ssa-fre-33.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-34.c: Likewise. + * gcc.dg/pr48616.c: Likewise. + * gcc.dg/pr17957.c: Likewise. + * gcc.dg/pr17055-1.c: Likewise. + * gcc.dg/pr32912-1.c: Likewise. + * gcc.dg/tm/pr51472.c: Likewise. + * c-c++-common/fold-bitand-4.c: Likewise. + * c-c++-common/Wunused-var-12.c: Use lp64 instead of hppa*64*-*-*. + Use dg-additional-options for extra options. + +2012-02-07 Joern Rennecke + + * gcc.target/epiphany/interrupt-2.c: New test. + +2012-02-07 Richard Sandiford + + PR target/52155 + * gcc.target/mips/mips.exp (mips-dg-options): Handle target. + * gcc.target/mips/loongson-shift-count-truncated-1.c: Force -mlong64 + for MIPS ELF. + +2012-02-07 Richard Sandiford + + PR target/52152 + * objc.dg/stabs-1.m: XFAIL for mips*-*-elf*. + +2012-02-07 Richard Sandiford + + PR middle-end/24306 + PR target/52154 + * lib/target-supports.exp (check_effective_target_mips_eabi): New. + * gcc.target/mips/va-arg-1.c: New test. + +2012-02-07 Michael Meissner + + * gcc.target/powerpc/no-r11-3.c (outer_func): Fix error message + for -mno-pointers-to-nested-functions. + +2012-02-07 Eric Botcazou + + * gcc.c-torture/execute/20120207-1.c: New test. + +2012-02-07 Jakub Jelinek + + PR rtl-optimization/52060 + * gcc.dg/torture/pr52060.c: New test. + + PR middle-end/52074 + * gcc.c-torture/compile/pr52074.c: New test. + +2012-02-07 Tobias Burnus + + PR fortran/51514 + * gfortran.dg/class_to_type_2.f90: New. + +2012-02-06 Thomas KÁnig + + PR fortran/32373 + * gfortran.dg/vect/vect-8.f90: Use vect_double effective target. + Remove module. + +2012-02-06 Jason Merrill + + PR c++/52088 + * g++.dg/template/conv13.C: New. + +2012-02-06 Richard Guenther + + PR tree-optimization/52115 + * gcc.c-torture/compile/pr52115.c: New testcase. + +2012-02-06 Jakub Jelinek + + PR target/52129 + * gcc.c-torture/execute/pr52129.c: New test. + +2012-02-06 Andrey Belevantsev + + * gcc.dg/pr48374.c: Actually add the test I forgot + in the 2012-01-25 commit. + +2012-02-05 Thomas KÁnig + + PR fortran/32373 + * gfortran.dg/vect/vect-8.f90: New test case. + +2012-02-05 Thomas KÁnig + + PR fortran/48847 + * gfortran.dg/warn_unused_dummy_argument_3.f90: New test. + +2012-02-05 Paul Thomas + + PR fortran/52102 + * gfortran.dg/class_48.f90 : Add test of allocate class array + component with source in subroutine test3. Remove commenting + out in subroutine test4, since branching on unitialized variable + is now fixed (no PR for this last.). + +2012-02-05 Richard Sandiford + + * gcc.dg/tree-prof/stringop-2.c (main): Add a nomips16 attribute + on MIPS targets. + * gfortran.dg/pr45636.f90: XFAIL for MIPS16 targets. + +2012-02-05 Richard Sandiford + + PR target/52125 + * lib/target-supports.exp (check_effective_target_mips_rel): New. + * gcc.dg/pr48774.c: Skip on MIPS REL targets. + +2012-02-05 Richard Sandiford + + * lib/target-supports.exp (check_effective_target_mips_llsc): New. + (check_effective_target_sync_int_long): Use it. + (check_effective_target_sync_char_short): Likewise. + * gcc.target/mips/atomic-memory-1.c: Restrict error check to mips_llsc. + +2012-02-05 Tobias Burnus + + PR fortran/51972 + * gfortran.dg/class_48.f90: Add some further checks. + +2012-02-05 Ira Rosen + + PR tree-optimization/52091 + * gcc.dg/vect/pr52091.c: New test. + +2012-02-04 Jakub Jelinek + + PR rtl-optimization/52113 + * gcc.target/avr/pr52113.c: New test. + +2012-02-03 Jakub Jelinek + + PR rtl-optimization/52092 + * gcc.c-torture/compile/pr52092.c: New test. + +2012-02-02 Mikael Morin + + PR fortran/41587 + * gfortran.dg/class_array_10.f03: New test. + + PR fortran/46356 + * gfortran.dg/class_array_11.f03: New test. + + PR fortran/51754 + * gfortran.dg/class_array_12.f03: New test. + +2012-02-02 Paul Thomas + + PR fortran/52012 + * gfortran.dg/realloc_on_assign_11.f90: New test. + +2012-02-02 Tobias Burnus + + PR fortran/52093 + * gfortran.dg/shape_7.f90: New. + +2012-02-02 Richard Sandiford + + * gcc.target/mips/mips-prepend-1.c: New test. + +2012-02-02 Jan Hubicka + Tom de Vries + + PR middle-end/51998 + * gcc.dg/alias-12.c: New testcase. + * gcc.dg/alias-13.c: New testcase. + +2012-02-02 Jakub Jelinek + + PR target/52086 + * gcc.dg/pr52086.c: New test. + + PR tree-optimization/52073 + * gcc.c-torture/compile/pr52073.c: New test. + +2012-02-01 Thomas KÁnig + + PR fortran/51958 + * gfortran.dg/function_optimize_10.f90: New test. + +2012-02-01 Uros Bizjak + + * go.test/go-test.exp (go-gc-tests): xfail test/nilptr.go runtime + test on alpha*-*-*. + +2012-02-01 Tobias Burnus + + PR fortran/52024 + * gfortran.dg/typebound_operator_14.f90: New. + +2012-02-01 Tobias Burnus + + PR fortran/52059 + * gfortran.dg/elemental_function_1.f90: New. + +2012-02-01 Georg-Johann Lay + + PR rtl-optimization/51374 + * gcc.target/avr/torture/pr51374-1.c: + Also fail if SBIS is seen. + +2012-02-01 Georg-Johann Lay + + PR rtl-optimization/51374 + * gcc.target/avr/torture/pr51374-1.c: New. + +2012-01-31 Tobias Burnus + + PR fortran/52024 + * gfortran.dg/typebound_generic_11.f90: New. + +2012-01-31 Tobias Burnus + + PR fortran/52029 + * gfortran.dg/class_49.f90: New. + +2012-01-31 Tobias Burnus + + PR fortran/52013 + * gfortran.dg/elemental_args_check_6.f90: New. + +2012-01-31 Jason Merrill + + PR c++/52043 + * g++.dg/cpp0x/variadic122.C: New. + +2012-01-31 Paul Thomas + + PR fortran/52012 + * gfortran.dg/realloc_on_assign_10.f90: New test. + +2012-01-31 Richard Guenther + + PR tree-optimization/51528 + * gcc.dg/torture/pr51528.c: New testcase. + +2012-01-30 Uros Bizjak + + PR go/48501 + * lib/go.exp (go_target_compile): Append timeout= to options. + * go.test/go-test.exp (go-gc-tests): Add dg-timeout-factor for + select5-out.go test on alpha*-*-* targets. + +2012-01-30 Richard Sandiford + + * gcc.target/mips/extend-1.c (TEST_CHAR): Use signed char. + (TEST_SHORT): Reformat in the same way. + * gcc.target/mips/octeon-exts-6.c (TEST_CHAR): Use signed char. + (TEST_SHORT): Reformat in the same way. + * gcc.target/mips/octeon2-lx-1.c (TEST): Make sign explicit. + * gcc.target/mips/pr37362.c: Skip for mips-sde-elf. + * gcc.target/mips/mmcount-ra-address-1.c (bazl): Add NOMIPS16. + * gcc.target/mips/mmcount-ra-address-2.c (bar): Likewise. + * gcc.target/mips/mmcount-ra-address-3.c (bar): Likewise. + +2012-01-30 Bin Cheng + + PR target/51835 + * gcc.target/arm/pr51835.c: New testcase. + +2012-01-30 Richard Guenther + + PR tree-optimization/52028 + * gcc.dg/torture/pr52028.c: New testcase. + * gfortran.dg/ldist-pr45199.f: Adjust. + * gcc.dg/tree-ssa/ldist-16.c: Likewise. + * gcc.dg/tree-ssa/ldist-17.c: Likewise. + * gcc.dg/tree-ssa/ldist-pr45948.c: Likewise. + +2012-01-30 Jakub Jelinek + + PR debug/52027 + * gcc.dg/tree-prof/pr52027.c: New test. + + PR tree-optimization/52046 + * gcc.dg/pr52046.c: New test. + + PR debug/52048 + * g++.dg/other/pr52048.C: New test. + +2012-01-30 Richard Guenther + + PR tree-optimization/52045 + * gcc.dg/pr52045.c: New testcase. + +2012-01-30 Greta Yorsh + + * gcc.target/arm/di-longlong64-sync-withldrexd.c: Accept + new code generated for __sync_lock_release. + +2012-01-30 Andreas Krebbel + + * gcc.dg/dfp/fe-convert-2.c: Force use of soft dfp on s390 and s390x. + +2012-01-29 John David Anglin + + PR testsuite/51875 + * gfortran.dg/guality/pr41558.f90: Skip on 32-bit hppa*-*-hpux*. + + * g++.dg/ext/visibility/template10.C: Fix typo. + + * gcc.dg/tm/pr51472.c: Add -fno-common option on hppa-*-hpux*. + +2012-01-29 Paolo Carlini + + PR c++/51327 + * g++.dg/cpp0x/constexpr-ice6.C: New. + +2012-01-29 Tobias Burnus + + PR fortran/41600 + * gfortran.dg/default_initialization_6.f90: New. + +2012-01-29 Tobias Burnus + + PR fortran/51972 + * gfortran.dg/class_allocate_12.f90: Enable disabled test. + * gfortran.dg/class_48.f90: New. + +2012-01-29 Janne Blomqvist + + PR fortran/51808 + * gfortran.dg/module_md5_1.f90: Update MD5 sum. + +2012-01-28 Tobias Burnus + + PR fortran/51972 + * gfortran.dg/class_allocate_12.f90: New. + +2012-01-28 Eric Botcazou + + * gcc.dg/torture/pr50444.c: Fix dg directives. + +2012-01-28 Jakub Jelinek + + PR target/52006 + * gcc.target/arm/pr52006.c: New test. + +2012-01-27 Aldy Hernandez + + PR testsuite/52011 + * gcc.dg/lto/trans-mem.h: New file. + * gcc.dg/lto/trans-mem-2_0.c: Include it. + * gcc.dg/lto/trans-mem-1_1.c: Same. + * gcc.dg/lto/trans-mem-4_1.c: Same. + * gcc.dg/lto/trans-mem-3_1.c: Same. + +2012-01-27 Tobias Burnus + + PR fortran/52022 + * gfortran.dg/dummy_procedure_7.f90: New. + +2012-01-27 Andreas Schwab + + * g++.dg/cpp0x/constexpr-rom.C: Don't add -G0 on *-*-darwin* + *-*-aix* alpha*-*-osf* alpha*-*-*vms*. + +2012-01-27 Jakub Jelinek + + PR c++/51852 + * g++.dg/other/gc5.C: New test. + +2012-01-27 Richard Guenther + + PR tree-optimization/50444 + * gcc.dg/torture/pr50444.c: New testcase. + +2012-01-27 Tobias Burnus + + PR fortran/51970 + PR fortran/51977 + * gfortran.dg/move_alloc_13.f90: New. + +2012-01-27 Tobias Burnus + + PR fortran/51953 + * gfortran.dg/allocate_alloc_opt_13.f90: New. + * gfortran.dg/allocate_alloc_opt_4.f90: Add -std=f2003 + and change dg-error string. + +2012-01-27 Tobias Burnus + + PR fortran/52016 + * gfortran.dg/elemental_args_check_5.f90: New. + +2012-01-27 Richard Guenther + + PR middle-end/51959 + * g++.dg/torture/pr51959.C: New testcase. + +2012-01-27 Tom de Vries + + PR tree-optimization/51990 + * gcc.dg/pr51990.c: New test. + * gcc.dg/pr51990-2.c: Same. + +2012-01-27 Paul Thomas + Tobias Burnus + + PR fortran/48705 + * gfortran.dg/class_allocate_11.f03: New. + + PR fortran/51870 + PR fortran/51943 + PR fortran/51946 + * gfortran.dg/class_allocate_7.f03: New. + * gfortran.dg/class_allocate_8.f03: New. + * gfortran.dg/class_allocate_9.f03: New. + * gfortran.dg/class_allocate_10.f03: New. + +2012-01-27 Eric Botcazou + + * gnat.dg/discr34.adb: New test. + * gnat.dg/discr34_pkg.ads: New helper. + +2012-01-27 Eric Botcazou + + * gnat.dg/discr33.adb: New test. + +2012-01-27 Eric Botcazou + + * gnat.dg/limited_with3.ad[sb): New test. + * gnat.dg/limited_with3_pkg1.ad[sb]: New helper. + * gnat.dg/limited_with3_pkg2.ads: Likewise. + * gnat.dg/limited_with3_pkg3.ads: Likewise. + +2012-01-27 Eric Botcazou + + * gnat.dg/stack_usage1.adb: New test. + * gnat.dg/stack_usage1_pkg.ad[sb]: New helper. + + * gcc.dg/pr44194-1.c: Remove superfluous include directive. + * gcc.dg/pr44194-2.c: Likewise. + +2012-01-26 Paolo Carlini + + PR c++/51370 + * g++.dg/template/crash112.C: New. + +2012-01-27 Richard Henderson + + * gcc.dg/atomic-flag.c: Adjust for __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. + +2012-01-26 Andreas Krebbel + + * gfortran.dg/reassoc_4.f: Use dg-additional-options. + +2012-01-26 Jakub Jelinek + + PR middle-end/51895 + * g++.dg/opt/pr51895.C: New test. + +2012-01-26 Michael Matz + + PR tree-optimization/48794 + * gfortran.dg/gomp/pr48794-2.f90: New testcase. + +2012-01-26 Andreas Krebbel + + * gcc.dg/ssa-dom-thread-4.c: Set -mbranch-cost=2 for s390 and s390x. + +2012-01-26 Andreas Krebbel + + * gcc.dg/pr46309.c: Set branch-cost to 2 for s390 and s390x. + * gcc.dg/pr44194-1.c: Disable since s390 returns structs always in + memory. + * gfortran.dg/reassoc_4.f: Force max-completely-peeled-insns to + the default value for s390 and s390x. + +2012-01-25 Aldy Hernandez + + PR lto/51698 + * gcc.dg/lto/trans-mem-4_0.c: New. + * gcc.dg/lto/trans-mem-4_1.c: New. + * gcc.dg/lto/trans-mem-2_0.c: Provide correct argument types for + TM builtins. + * gcc.dg/lto/trans-mem-1_0.c: Require stdint_types. + * gcc.dg/lto/trans-mem-1_1.c: Provide correct argument types for + TM builtins. + * gcc.dg/lto/trans-mem-3_0.c: Require stdint_types. + * gcc.dg/lto/trans-mem-3_1.c: Provide correct argument types for + TM builtins. + +2012-01-25 Georg-Johann Lay + + * gcc.target/avr/torture/int24-mul.c: Rename __pgm to __flash. + +2012-01-25 Ian Lance Taylor + + * go.test/go-test.exp (go-gc-tests): Handle a few more test lines. + +2012-01-25 Tobias Burnus + + PR fortran/51995 + * gfortran.dg/typebound_proc_25.f90: New. + +2012-01-25 Jason Merrill + + PR c++/51992 + * g++.dg/lto/pr51992_0.C: New. + +2012-01-25 Jakub Jelinek + + PR tree-optimization/51987 + * gcc.target/i386/pr51987.c: New test. + +2012-01-25 Greta Yorsh + + * gcc.dg/tm/lto-1.c: Require lto support in target. + +2012-01-25 Andrey Belevantsev + + PR rtl-optimization/48374 + * gcc.dg/pr48374.c: New test. + +2012-01-25 Greta Yorsh + + * gcc.dg/pr50908-2.c (dg-options): Add -fno-short-enums. + +2012-01-25 Tobias Burnus + + PR fortran/51966 + * gfortran.dg/derived_constructor_char_3.f90: New. + +2012-01-24 Ian Lance Taylor + + * go.test/go-test.exp (filecmp): New procedure. + (errchk): Handle quoted square brackets. + (go-gc-tests): Set go_compile_args. Handle various new test + lines. Skip a few new tests. + * lib/go-torture.exp (go-torture-execute): Use go_compile_args. + +2012-01-24 Richard Sandiford + + * lib/target-supports.exp (proc check_effective_target_vect_perm) + (check_effective_target_vect_extract_even_odd) + (check_effective_target_vect_interleave): Return true for MIPS + paired-single. + +2012-01-24 Richard Sandiford + + * gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable. + (main): Use it instead of argc. + +2012-01-24 Jason Merrill + + PR c++/51973 + * g++.dg/cpp0x/sfinae31.C: New. + +2012-01-24 Richard Sandiford + + * gcc.dg/memcpy-4.c: Don't expect /s on MEMs. + +2012-01-24 Jason Merrill + + PR c++/51812 + * g++.dg/inherit/covariant20.C: New. + +2012-01-24 Paolo Carlini + + PR c++/51223 + * g++.dg/parse/crash58.C: New. + +2012-01-24 Jakub Jelinek + + PR target/51957 + * gcc.dg/pr51957-1.c: New test. + * gcc.dg/pr51957-1.h: New file. + * gcc.dg/pr51957-2.c: New test. + +2012-01-23 Jason Merrill + + PR c++/51930 + * g++.dg/ext/visibility/template10.C: New. + +2012-01-23 Tobias Burnus + + PR fortran/51948 + * gfortran.dg/move_alloc_12.f90: New. + +2012-01-23 Ramana Radhakrishnan + + PR middle-end/45416 + * gcc.dg/pr45416.c: Skip for Thumb1. Handle ubfx. + +2012-01-23 Paolo Carlini + + PR c++/51398 + * g++.dg/template/crash111.C: New. + +2012-01-23 Arnaud Charlet + + * ada/acats/tests/cxh/cxh1001.a: Removed, test not suitable on all + configurations. + * ada/acats/run_all.sh: Simplify by removing cxh1001 special case. + +2012-01-23 Dodji Seketeli + + PR testsuite/51941 + * g++.dg/debug/dwarf2/nested-3.C: Accept multiple lines between + the DW_TAG_class_type and DW_AT_name: "Executor". + +2012-01-23 Ramana Radhakrishnan + + * lib/target-supports.exp + (check_effective_target_vect_extract_even_odd): Handle ARM neon. + (check_effective_target_vect_interleave): Likewise. + +2012-01-22 Jason Merrill + + PR c++/51925 + * g++.dg/template/using20.C: New. + * g++.dg/template/template-id-2.C: Adjust diagnostic. + +2012-01-23 Jason Merrill + + PR target/51934 + * g++.dg/torture/pr51344.C: Limit to x86. + +2012-01-23 Greta Yorsh + + * c-c++-common/tm/omp.c: Require target with pthread support. + +2012-01-23 Richard Guenther + + PR tree-optimization/51949 + * gcc.dg/torture/pr51949.c: New testcase. + +2012-01-23 Jakub Jelinek + + PR rtl-optimization/51933 + * gcc.c-torture/execute/pr51933.c: New test. + +2012-01-22 Douglas B Rupp + + * gcc.dg/builtins-config.h (HAVE_C99_RUNTIME): + Do not define for Interix. + +2012-01-22 Jason Merrill + + PR c++/51832 + * g++.dg/lto/pr51832.h: New. + * g++.dg/lto/pr51832_0.C: New. + * g++.dg/lto/pr51832_1.C: New. + +2012-01-22 Eric Botcazou + + * gcc.dg/ext-elim-1.c: New test. + +2012-01-22 Richard Sandiford + + PR target/51931 + * gcc.c-torture/compile/20001226-1.c: Add nomips16 attribute. + * g++.dg/opt/longbranch1.C: Likewise. + +2012-01-22 Richard Sandiford + + * g++.old-deja/g++.pt/ptrmem6.C: xfail a test for ARM and MIPS + in C++11 mode. + +2012-01-21 Steven G. Kargl + + PR fortran/50556 + * gfortran.dg/namelist_74.f90: New test. + * gfortran.dg/namelist_59.f90: Remove SAVE attribute. + +2012-01-21 Tobias Burnus + + PR fortran/51913 + * gfortran.dg/class_47.f90: New. + +2012-01-21 Eric Botcazou + + * gnat.dg/renaming5.ad[sb]: New test. + +2012-01-20 Jason Merrill + + PR c++/51919 + * g++.dg/pch/mangle1.{C,Hs}: Remove. + +2012-01-20 Jason Merrill + + PR c++/51922 + * g++.dg/ext/attrib42.C: Require ilp32. + +2012-01-20 Jakub Jelinek + + PR target/51915 + * gcc.target/arm/pr51915.c: New test. + +2012-01-20 Cary Coutant + Dodji Seketeli + + PR debug/45682 + * g++.dg/debug/dwarf2/nested-3.C: New test. + +2012-01-20 Paolo Carlini + + PR c++/51402 + * g++.dg/template/crash110.C: New. + +2012-01-20 Rainer Orth + + * gcc.misc-tests/gcov-14.c: Skip on alpha*-dec-osf*. + Remove default options on hppa*-*-hpux*. + +2012-01-20 Rainer Orth + + * g++.dg/ext/visibility/template9.C: Add dg-require-visibility. + +2012-01-20 Andreas Krebbel + + * gcc.c-torture/compile/pr51856.c: New testcase. + +2012-01-20 Uros Bizjak + + * go.test/go-test.exp (go-gc-tests): Pass correctly formatted + options to go_target_compile. + +2012-01-20 Kai Tietz + + * g++.dg/torture/pr51344.C: Fix typo. + +2012-01-20 Richard Guenther + + PR tree-optimization/51903 + * g++.dg/torture/pr51903.C: New testcase. + +2012-01-20 Tobias Burnus + Janus Weil + + PR fortran/51056 + * gfortran.dg/use_21.f90: New. + +2012-01-20 Jakub Jelinek + + PR target/51106 + * gcc.dg/torture/pr51106-1.c: New test. + * gcc.dg/torture/pr51106-2.c: New test. + +2012-01-19 Kai Tietz + + * g++.dg/torture/pr51344.C: New test. + +2012-01-19 Tobias Burnus + + PR fortran/51904 + * gfortran.dg/intrinsic_size_2.f90: New. + +2012-01-19 Jason Merrill + + PR c++/51889 + * g++.dg/inherit/using7.C: New. + +2012-01-19 Richard Guenther + + PR tree-optimization/37997 + * gcc.dg/tree-ssa/ssa-pre-28.c: New testcase. + +2012-01-19 Andrey Belevantsev + + PR rtl-optimization/51505 + * gcc.dg/pr51505.c: New test. + +2012-01-18 Paul Thomas + + PR fortran/51634 + * gfortran.dg/typebound_operator_12.f03: New. + * gfortran.dg/typebound_operator_13.f03: New. + +2012-01-18 Paolo Carlini + + PR c++/51225 + * g++.dg/cpp0x/pr51225.C: New. + +2012-01-17 Ian Lance Taylor + + PR go/50656 + * go.test/go-test.exp (go-gc-tests): Recognize some more test lines. + +2012-01-17 Tobias Burnus + + PR fortran/51869 + * gfortran.dg/realloc_on_assign_9.f90: New. + +2012-01-17 Aldy Hernandez + + PR other/51165 + * gcc.dg/tm/memopt-3.c: Remove xfail. + * gcc.dg/tm/memopt-4.c: Remove xfail. + * gcc.dg/tm/memopt-5.c: Remove xfail. + * gcc.dg/tm/memopt-7.c: Remove xfail. + +2012-01-17 Jakub Jelinek + + PR tree-optimization/51877 + * gcc.c-torture/execute/pr51877.c: New test. + +2012-01-17 Michael Zolotukhin + + * gcc.dg/vect/no-section-anchors-vect-69.c: Change + {!vect_align_arrays} to vect_sizes_32B_16B. + * gcc.dg/vect/vect-multitypes-1.c: Ditto. + * gcc.dg/vect/vect-peel-3.c: Ditto. + +2012-01-16 Jason Merrill + + PR c++/51854 + * g++.dg/abi/mangle60.C: New. + + PR c++/51827 + * g++.dg/pch/mangle1.{C,Hs}: New. + +2012-01-16 Mikael Morin + Tobias Burnus + + PR fortran/50981 + * gfortran.dg/elemental_optional_args_3.f90: New + * gfortran.dg/elemental_optional_args_4.f90: New + +2012-01-16 Tobias Burnus + + PR fortran/51809 + * gfortran.dg/use_20.f90: New + +2012-01-16 Jason Merrill + + PR c++/51868 + * g++.dg/cpp0x/rv-bitfield.C: New. + * g++.dg/cpp0x/rv-bitfield2.C: New. + +2012-01-16 Paul Thomas + + * gfortran.dg/class_array_3.f03: Remove the explicit loop in + subroutine 'qsort' and use index array to assign the result. + +2012-01-16 Jakub Jelinek + + PR tree-optimization/51865 + * gcc.dg/pr51865.c: New test. + +2012-01-15 Richard Sandiford + + * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Expect 4 threaded edges for MIPS. + +2012-01-15 Richard Sandiford + + * gcc.target/mips/code-readable-2.c: Allow the jump table address + to be loaded from the constant pool, rather than via %hi and %lo. + +2012-01-15 Uros Bizjak + + PR rtl-optimization/51821 + * gcc.dg/pr51821.c: New test. + +2012-01-15 Andreas Schwab + + * gcc.dg/torture/pr8081.c: Fix char signedness assumption. + +2012-01-14 Andreas Schwab + + * g++.dg/cpp0x/constexpr-rom.C: Add -G0 where applicable. + +2012-01-14 Tobias Burnus + + PR fortran/51800 + * gfortran.dg/init_flag_8.f90: New. + * gfortran.dg/init_flag_9.f90: New. + +2011-01-14 Tobias Burnus + + PR fortran/51816 + * gfortran.dg/use_18.f90: New. + * gfortran.dg/use_19.f90: New. + +2012-01-13 Ian Lance Taylor + + PR c++/50012 + * g++.dg/warn/Wsign-compare-4.C: New. + +2012-01-13 Paul Thomas + + PR fortran/48351 + * gfortran.dg/alloc_comp_assign.f03: New. + * gfortran.dg/allocatable_scalar_9.f90: Reduce count of + __BUILTIN_FREE from 38 to 32. + +2012-01-13 Jason Merrill + + PR c++/20681 + * g++.dg/warn/Wreturn-type-7.C: New. + +2012-01-13 Georg-Johann Lay + + * gcc.c-torture/execute/20120111-1.c: Fix wrong int = int32_t + assumption. + * g++.dg/ipa/pr51759.C: Fix assumption sizeof(int) > 2. + * gcc.dg/cpp/warn-multichar.c: Fix to work on int=16 platforms. + * gcc.dg/cpp/warn-multichar-2.c: Ditto. + * gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target + int32plus because of big array needed. + * gcc.dg/pr50527.c: Don't FAIL if sizeof(void*) = 2 + * gcc.dg/lto/20090218-2_1.c: Fix prototype of malloc, memcpy. + +2012-01-13 Jason Merrill + + PR c++/51813 + * g++.dg/ext/visibility/template9.C: New. + + PR c++/51620 + * g++.dg/cpp0x/defaulted34.C: New. + * g++.dg/template/virtual3.C: New. + +2012-01-13 Richard Guenther + + PR middle-end/8081 + * gcc.dg/torture/pr8081.c: New testcase. + +2012-01-13 Georg-Johann Lay + + * gcc.dg/pr46309.c: Set branch cost to greater 1 for avr. + +2012-01-12 Jason Merrill + + PR c++/51714 + * g++.dg/ext/stmtexpr14.C: New. + +2012-01-13 Dodji Seketeli + + PR c++/51633 + * g++.dg/cpp0x/constexpr-diag4.C: New test. + +2012-01-12 Jason Merrill + + PR c++/48051 + * g++.dg/abi/mangle48.C: Test qualified-names, too. + * g++.dg/abi/mangle58.C: Likewise. + + PR c++/51403 + * g++.dg/template/arg8.C: New. + +2012-01-12 Ira Rosen + + PR tree-optimization/51799 + * gcc.dg/vect/pr51799.c: New test. + * gcc.dg/vect/vect-widen-shift-u8.c: Expect two widening shift + patterns. + +2012-01-12 Dominique d'Humieres + Tobias Burnus + + PR fortran/51057 + PR fortran/51616 + * lib/target-supports.exp + (check_effective_target_fortran_largest_fp_has_sqrt): New. + * gfortran.dg/quad_2.f90: Use it, add pattern for IBM's real(16). + +2012-01-11 Jason Merrill + + PR c++/51565 + * g++.dg/ext/attrib42.C: New. + +2012-01-11 Jakub Jelinek + + PR bootstrap/51796 + * gcc.dg/pr51796.c: New test. + +2012-01-11 Jason Merrill + + PR c++/51818 + * g++.dg/cpp0x/lambda/lambda-mangle3.C: New. + +2012-01-11 Eric Botcazou + + * gnat.dg/array19.ad[sb]: New test. + +2012-01-11 Eric Botcazou + + * gnat.dg/opt23.ad[sb]: New test. + * gnat.dg/opt23_pkg.ad[sb]: New helper. + * gnat.dg/opt24.ad[sb]: New test. + +2012-01-11 Bill Schmidt + + PR tree-optimization/49642 + * gcc.dg/tree-ssa/pr49642-1.c: New test. + * gcc.dg/tree-ssa/pr49642-2.c: New test. + +2012-01-11 Jason Merrill + + PR c++/51613 + * g++.dg/template/explicit-args5.C: New. + +2012-01-11 Matthew Gretton-Dann + + * gcc.c-torture/execute/20120110-1.c: New testcase. + +2012-01-10 Jason Merrill + + PR c++/51614 + * g++.dg/inherit/ambig1.C: New. + + PR c++/51433 + * g++.dg/cpp0x/constexpr-cache1.C: New. + +2012-01-10 Richard Guenther + + PR tree-optimization/51801 + * gcc.dg/torture/pr51801.c: New testcase. + +2012-01-10 Tobias Burnus + + PR fortran/51652 + * gfortran.dg/allocate_with_typespec_5.f90: New. + +2012-01-10 Tobias Burnus + + * gfortran.dg/class_39.f03: Update dg-error string. + +2012-01-10 Richard Guenther + + PR tree-optimization/50913 + * gcc.dg/graphite/interchange-16.c: New testcase. + * gcc.dg/graphite/scop-20.c: XFAIL. + * gfortran.dg/graphite/interchange-1.f: Likewise. + * gfortran.dg/graphite/block-1.f90: Likewise. + * gfortran.dg/graphite/block-2.f: Likewise. + +2012-01-10 Richard Henderson + + * lib/target-supports.exp (check_effective_target_vect_perm, + check_effective_target_vect_perm_byte, + check_effective_target_vect_perm_short): Enable for arm neon. + +2012-01-09 Tobias Burnus + + PR fortran/46328 + * gfortran.dg/typebound_operator_11.f90: New. + +2012-01-09 Eric Botcazou + + * gnat.dg/array18.adb: New test. + * gnat.dg/array18_pkg.ads: New helper. + +2012-01-09 Paul Thomas + + PR fortran/51791 + * gfortran.dg/typebound_operator_7.f03: Insert parentheses + around base object in first assignment in main program. + * gfortran.dg/typebound_operator_10.f03: New test. + +2012-01-09 Martin Jambor + + PR tree-optimization/51759 + * g++.dg/ipa/pr51759.C: New test. + +2012-01-09 Tobias Burnus + + PR fortran/51758 + * gfortran.dg/optional_absent_2.f90: New. + +2012-01-09 Tobias Burnus + + PR fortran/51578 + * gfortran.dg/use_17.f90: New. + +2012-01-09 Gary Funck + + PR preprocessor/33919 + * gcc.dg/pr33919.c: New test. + * gcc.dg/pr33919-0.h: New test header file. + * gcc.dg/pr33919-1.h: Ditto. + * gcc.dg/pr33919-2.h: Ditto. + +2012-01-07 Jan Hubicka + + PR tree-optimize/51694 + * gcc.c-torture/compile/pr51694.c: new testcase. + +2012-01-07 Jan Hubicka + + PR tree-optimization/51600 + * g++.dg/torture/pr51600.C: New testcase. + +2012-01-07 John David Anglin + + PR gcov-profile/51715 + PR gcov-profile/51717 + * gcc.misc-tests/gcov-13.c: Skip on 32-bit hppa*-*-hpux*. + * gcc.misc-tests/gcov-14.c: Likewise. + +2012-01-06 Jason Merrill + + * g++.dg/parse/new5.C: New. + +2012-01-06 Patrick Marlier + + PR testsuite/51655 + * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of + including . + +2012-01-06 Jason Merrill + + * g++.dg/abi/mangle51.C: New. + * g++.dg/abi/mangle52.C: New. + * g++.dg/abi/mangle53.C: New. + * g++.dg/abi/mangle54.C: New. + * g++.dg/abi/mangle55.C: New. + * g++.dg/abi/mangle56.C: New. + * g++.dg/abi/mangle57.C: New. + * g++.dg/abi/mangle58.C: New. + * g++.dg/abi/mangle59.C: New. + * g++.dg/cpp0x/trailing3.C: Update mangling. + * g++.dg/cpp0x/variadic111.C: Update mangling. + * g++.dg/cpp0x/variadic4.C: Update mangling. + * g++.dg/cpp0x/variadic42.C: Pass -fabi-version=5. + * g++.dg/template/nontype22.C: Works now. + * g++.dg/template/pr35240.C: Works now. + + * g++.dg/cpp0x/error7.C: New. + +2012-01-06 Tobias Burnus + + * gfortran.dg/deallocate_stat_2.f90: New. + * coarray/allocate_errgmsg.f90: New. + * gfortran.dg/coarray_lib_alloc_1.f90: New. + * gfortran.dg/coarray_lib_alloc_2.f90: New. + * coarray/subobject_1.f90: Fix for num_images > 1. + * gfortran.dg/deallocate_stat.f90: Update due to changed + stat= handling. + +2012-01-06 Andrew Stubbs + + * gcc.target/arm/headmerge-2.c: Adjust scan pattern. + +2012-01-06 Eric Botcazou + + * ada/acats/overflow.lst: Add cb20004. + +2012-01-05 Dodji Seketeli + + PR c++/51541 + * g++.dg/cpp0x/alias-decl-18.C: New test. + +2012-01-05 Eric Botcazou + + * gcc.c-torture/execute/20120104-1.c: New test. + +2012-01-05 Paul Thomas + + PR fortran/PR48946 + * gfortran.dg/typebound_operator_9.f03: This is now a copy of + the old typebound_operator_8.f03. + * gfortran.dg/typebound_operator_8.f03: New version of + typebound_operator_7.f03 with 'u' a derived type instead of a + class object. + +2012-01-05 Richard Guenther + + * g++.dg/torture/pr49309.C: Skip for -flto. + +2012-01-05 Jakub Jelinek + + PR middle-end/51761 + * gcc.c-torture/compile/pr51761.c: New test. + +2012-01-05 Richard Guenther + + PR tree-optimization/51760 + * gcc.dg/torture/pr51760.c: New testcase. + +2012-01-05 Aldy Hernandez + + PR middle-end/51472 + * gcc.dg/tm/memopt-6.c: Adjust regexp. + +2012-01-05 Richard Guenther + + PR lto/41576 + * gfortran.dg/lto/pr41576_0.f90: New testcase. + * gfortran.dg/lto/pr41576_1.f90: Likewise. + +2012-01-04 Jakub Jelinek + + PR debug/51695 + * gcc.dg/pr51695.c: New test. + +2012-01-04 Andrew Pinski + + * gcc.target/mips/mips64-dsp-ldx1.c: New test. + * gcc.target/mips/octeon2-lx-1.c: New test. + * gcc.target/mips/mips64-dsp-ldx.c: New test. + * gcc.target/mips/octeon2-lx-2.c: New test. + * gcc.target/mips/octeon2-lx-3.c: New test. + +2012-01-04 Patrick Marlier + + PR other/51163 + PR other/51164 + * gcc.dg/tm/alias-1.c: Adjust regexp. + * gcc.dg/tm/alias-2.c: Adjust regexp. + +2012-01-04 Paolo Carlini + + PR c++/51064 + * g++.dg/warn/Wparentheses-26.C: New. + +2012-01-04 Mikael Morin + + * gfortran.dg/elemental_optional_args_2.f90: New test. + +2012-01-04 Thomas Koenig + + PR fortran/49693 + * gfortran.dg/common_17.f90: New test. + +2012-01-04 Richard Guenther + + PR tree-optimization/49651 + * gcc.dg/tree-ssa/pta-ptrarith-1.c: Adjust. + * gcc.dg/tree-ssa/pta-ptrarith-2.c: Likewise. + +2012-01-03 Paolo Carlini + + PR c++/51738 + * g++.dg/cpp0x/initlist-postfix-open-square.C: New. + +2012-01-03 Andrew Pinski + + * lib/scanasm.exp (dg-function-on-line): Always use a special format + for all mips targets. Also allow an optional .cfi_startproc. + +2012-01-03 Uros Bizjak + + * gfortran.dg/typebound_operator_8.f03: Use dg-add-options ieee. + +2012-01-03 Paolo Carlini + + PR c++/29273 + * g++.dg/rtti/dyncast5.C: New. + +2012-01-03 Richard Guenther + + PR tree-optimization/51070 + * gcc.dg/torture/pr51070-2.c: New testcase. + +2012-01-03 Richard Guenther + + PR tree-optimization/51692 + * gcc.dg/torture/pr51692.c: New testcase. + +2012-01-03 Richard Guenther + + PR debug/51650 + * g++.dg/lto/pr51650-3_0.C: New testcase. + +2012-01-03 Paolo Carlini + + PR c++/15867 + * g++.dg/warn/Wredundant-decls-spec.C: New. + +2012-01-03 Jakub Jelinek + + PR tree-optimization/51719 + * g++.dg/tree-prof/pr51719.C: New test. + +2012-01-03 Richard Guenther + + PR middle-end/51730 + * gcc.dg/fold-compare-6.c: New testcase. + +2012-01-03 Jakub Jelinek + + PR c++/51669 + * g++.dg/gomp/pr51669.C: New test. + +2012-01-02 Jason Merrill + + PR c++/51675 + * g++.dg/cpp0x/constexpr-union2.C: New. + + PR c++/51666 + * g++.dg/cpp0x/nsdmi-defer5.C: New. + +2012-01-02 Dodji Seketeli + + PR c++/51462 + * g++.dg/cpp0x/constexpr-99.C: New test. + +2012-01-02 Paolo Carlini + + PR c++/20140 + * g++.dg/template/init9.C: New. + +2012-01-02 Richard Sandiford + + * gcc.dg/memcpy-4.c: Add nomips16 attribute for MIPS targets. + Increase copy to 5 bytes. Look for at least two "mem/s/u"s, + rather than a specific number. + +2012-01-02 Paul Thomas + + PR fortran/46262 + PR fortran/46328 + PR fortran/51052 + * gfortran.dg/typebound_operator_7.f03: New. + * gfortran.dg/typebound_operator_8.f03: New. + +2012-01-02 Richard Sandiford + + PR target/51729 + * gcc.target/mips/dspr2-MULT.c: Remove -ffixed-hi -ffixed-lo. + XFAIL. + * gcc.target/mips/dspr2-MULTU.c: Likewise. + +2012-01-02 Richard Sandiford + + * gcc.dg/pr46309.c: Add -mtune=octeon2 for MIPS. + +2012-01-02 Richard Sandiford + + * g++.dg/cpp0x/constexpr-rom.C: Look for .rdata rather than rodata + for MIPS. + +2012-01-02 Richard Sandiford + + * gfortran.dg/io_real_boz_3.f90: Require fortran_real_16. + * gfortran.dg/io_real_boz_4.f90: Likewise. + * gfortran.dg/io_real_boz_5.f90: Likewise. + +2012-01-02 Richard Sandiford + + * g++.dg/opt/devirt2.C: Add -mno-abicalls for MIPS. + +2012-01-02 Revital Eres + + * gcc.dg/sms-11.c: New file. + +2012-01-02 Tobias Burnus + + PR fortran/51682 + * gfortran.dg/coarray/image_index_3.f90: New. + +2012-01-01 Paolo Carlini + + PR c++/16603 + * g++.dg/parse/enum8.C: New. + +2012-01-01 Paolo Carlini + + PR c++/51379 + * g++.dg/conversion/reinterpret4.C: New. + * g++.dg/conversion/reinterpret1.C: Adjust. + +2012-01-01 Paolo Carlini + + * g++.dg/cpp0x/constexpr-delegating2.C: Add missing piece. + +2012-01-01 Fabien ChÁne + + * g++.old-deja/g++.brendan/crash25.C: Adjust. + * g++.old-deja/g++.brendan/crash56.C: Likewise. + * g++.old-deja/g++.jason/access14.C: Likewise. + * g++.old-deja/g++.jason/access8.C: Likewise. + * g++.old-deja/g++.jason/access1.C: Likewise. + * g++.old-deja/g++.other/access3.C: Likewise. + * g++.old-deja/g++.other/access5.C: Likewise. + * g++.old-deja/g++.law/unsorted1.C: Likewise. + * g++.old-deja/g++.law/visibility22.C: Likewise. + * g++.old-deja/g++.law/visibility26.C: Likewise. + * g++.old-deja/g++.mike/p2746.C: Likewise. + * g++.dg/debug/using1.C: Likewise. + * g++.dg/lookup/using51.C: Likewise. + * g++.dg/inherit/using5.C: Likewise. + * g++.dg/inherit/pr30297.C: Likewise. + * g++.dg/inherit/access8.C: Likewise. + * g++.dg/torture/pr39362.C: Likewise. + * g++.dg/template/crash13.C: Likewise. + * g++.dg/template/using10.C: Likewise. + +2012-01-01 Thomas Koenig + + PR fortran/51502 + * lib/gcc-dg.exp (scan-module-absence): Really commit last change. + +2012-01-01 Ira Rosen + + PR tree-optimization/51704 + * gfortran.dg/vect/no-fre-no-copy-prop-O3-pr51704.f90: New. + * gfortran.dg/vect/vect.exp: Run no-fre-no-copy-prop-O3-* with + corresponding flags. + +2012-01-01 Paolo Carlini + + PR c++/51723 + * g++.dg/cpp0x/constexpr-delegating2.C: New. + +2012-01-01 Jan Hubicka + + PR rtl-optimization/51069 + * gcc.c-torture/compile/pr51069.c: New testcase. + +2012-01-01 Jakub Jelinek + + PR tree-optimization/51683 + * gcc.dg/pr51683.c: New test. + +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. diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 2c4dcbb7e46..e7142d8f354 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -7,1279 +7,8 @@ (read_logical): Likewise. (read_character): Likewise. (read_complex): Likewise. - -2012-12-27 Jerry DeLisle - - PR libfortran/48976 - * io/inquire.c (inquire_via_unit): Set user stream inquiry variable to - appropriate value based on unit access method. (inquire_via_filename): - Since filename is not associated with an open unit, set stream inquiry - to UNKNOWN. - * io/io.h: Define inquire stream parameters. - -2012-12-26 Jerry DeLisle - - PR libfortran/48960 - * io/open.c (st_parameter_open): Assign newunit number to user - variable only if the the associated open statement is successful. - -2012-12-26 Janne Blomqvist - - PR fortran/55539 - * io/write_float.def (output_float): Take into account decimal - dot. - -2012-12-21 Thomas Koenig - - PR libfortran/30162 - * io/unix.c (raw_tell): If the lseek is done on a - non-seekable file, return 0. - -2012-12-20 Janus Weil - - PR fortran/36044 - * gfortran.map: Add _gfortran_backtrace. - * libgfortran.h: Rename 'show_backtrace' and export. - * runtime/backtrace.c (show_backtrace): Rename to 'backtrace'. - Don't show message. Close file descriptor. Export. - * runtime/compile_options.c (backtrace_handler): Renamed - 'show_backtrace'. Move message outside. - * runtime/error.c (sys_abort): Ditto. - -2012-12-19 Paul Thomas - - * intrinsics/extends_type_of.c : Return correct results for - null vptrs. - -2012-12-03 Janus Weil - - PR fortran/55548 - * intrinsics/system_clock.c (gf_gettime_mono): Add argument 'tck', - which returns the clock resolution. - (system_clock_4): Get resolution from gf_gettime_mono, but limit to - 1000/s. - (system_clock_8): Get resolution from gf_gettime_mono. - -2012-10-28 Tobias Burnus - - * m4/bessel.m4: Remove useless statement. - * m4/ifunction.m4: Remove unreachable code. - * generated/bessel_r10.c: Regenerated. - * generated/bessel_r16.c: Regenerated. - * generated/bessel_r4.c: Regenerated. - * generated/bessel_r8.c: Regenerated. - * generated/iall_i1.c: Regenerated. - * generated/iall_i16.c: Regenerated. - * generated/iall_i2.c: Regenerated. - * generated/iall_i4.c: Regenerated. - * generated/iall_i8.c: Regenerated. - * generated/iany_i1.c: Regenerated. - * generated/iany_i16.c: Regenerated. - * generated/iany_i2.c: Regenerated. - * generated/iany_i4.c: Regenerated. - * generated/iany_i8.c: Regenerated. - * generated/iparity_i1.c: Regenerated. - * generated/iparity_i16.c: Regenerated. - * generated/iparity_i2.c: Regenerated. - * generated/iparity_i4.c: Regenerated. - * generated/iparity_i8.c: Regenerated. - * generated/maxloc1_16_i1.c: Regenerated. - * generated/maxloc1_16_i16.c: Regenerated. - * generated/maxloc1_16_i2.c: Regenerated. - * generated/maxloc1_16_i4.c: Regenerated. - * generated/maxloc1_16_i8.c: Regenerated. - * generated/maxloc1_16_r10.c: Regenerated. - * generated/maxloc1_16_r16.c: Regenerated. - * generated/maxloc1_16_r4.c: Regenerated. - * generated/maxloc1_16_r8.c: Regenerated. - * generated/maxloc1_4_i1.c: Regenerated. - * generated/maxloc1_4_i16.c: Regenerated. - * generated/maxloc1_4_i2.c: Regenerated. - * generated/maxloc1_4_i4.c: Regenerated. - * generated/maxloc1_4_i8.c: Regenerated. - * generated/maxloc1_4_r10.c: Regenerated. - * generated/maxloc1_4_r16.c: Regenerated. - * generated/maxloc1_4_r4.c: Regenerated. - * generated/maxloc1_4_r8.c: Regenerated. - * generated/maxloc1_8_i1.c: Regenerated. - * generated/maxloc1_8_i16.c: Regenerated. - * generated/maxloc1_8_i2.c: Regenerated. - * generated/maxloc1_8_i4.c: Regenerated. - * generated/maxloc1_8_i8.c: Regenerated. - * generated/maxloc1_8_r10.c: Regenerated. - * generated/maxloc1_8_r16.c: Regenerated. - * generated/maxloc1_8_r4.c: Regenerated. - * generated/maxloc1_8_r8.c: Regenerated. - * generated/maxval_i1.c: Regenerated. - * generated/maxval_i16.c: Regenerated. - * generated/maxval_i2.c: Regenerated. - * generated/maxval_i4.c: Regenerated. - * generated/maxval_i8.c: Regenerated. - * generated/maxval_r10.c: Regenerated. - * generated/maxval_r16.c: Regenerated. - * generated/maxval_r4.c: Regenerated. - * generated/maxval_r8.c: Regenerated. - * generated/minloc1_16_i1.c: Regenerated. - * generated/minloc1_16_i16.c: Regenerated. - * generated/minloc1_16_i2.c: Regenerated. - * generated/minloc1_16_i4.c: Regenerated. - * generated/minloc1_16_i8.c: Regenerated. - * generated/minloc1_16_r10.c: Regenerated. - * generated/minloc1_16_r16.c: Regenerated. - * generated/minloc1_16_r4.c: Regenerated. - * generated/minloc1_16_r8.c: Regenerated. - * generated/minloc1_4_i1.c: Regenerated. - * generated/minloc1_4_i16.c: Regenerated. - * generated/minloc1_4_i2.c: Regenerated. - * generated/minloc1_4_i4.c: Regenerated. - * generated/minloc1_4_i8.c: Regenerated. - * generated/minloc1_4_r10.c: Regenerated. - * generated/minloc1_4_r16.c: Regenerated. - * generated/minloc1_4_r4.c: Regenerated. - * generated/minloc1_4_r8.c: Regenerated. - * generated/minloc1_8_i1.c: Regenerated. - * generated/minloc1_8_i16.c: Regenerated. - * generated/minloc1_8_i2.c: Regenerated. - * generated/minloc1_8_i4.c: Regenerated. - * generated/minloc1_8_i8.c: Regenerated. - * generated/minloc1_8_r10.c: Regenerated. - * generated/minloc1_8_r16.c: Regenerated. - * generated/minloc1_8_r4.c: Regenerated. - * generated/minloc1_8_r8.c: Regenerated. - * generated/minval_i1.c: Regenerated. - * generated/minval_i16.c: Regenerated. - * generated/minval_i2.c: Regenerated. - * generated/minval_i4.c: Regenerated. - * generated/minval_i8.c: Regenerated. - * generated/minval_r10.c: Regenerated. - * generated/minval_r16.c: Regenerated. - * generated/minval_r4.c: Regenerated. - * generated/minval_r8.c: Regenerated. - * generated/product_c10.c: Regenerated. - * generated/product_c16.c: Regenerated. - * generated/product_c4.c: Regenerated. - * generated/product_c8.c: Regenerated. - * generated/product_i1.c: Regenerated. - * generated/product_i16.c: Regenerated. - * generated/product_i2.c: Regenerated. - * generated/product_i4.c: Regenerated. - * generated/product_i8.c: Regenerated. - * generated/product_r10.c: Regenerated. - * generated/product_r16.c: Regenerated. - * generated/product_r4.c: Regenerated. - * generated/product_r8.c: Regenerated. - * generated/sum_c10.c: Regenerated. - * generated/sum_c16.c: Regenerated. - * generated/sum_c4.c: Regenerated. - * generated/sum_c8.c: Regenerated. - * generated/sum_i1.c: Regenerated. - * generated/sum_i16.c: Regenerated. - * generated/sum_i2.c: Regenerated. - * generated/sum_i4.c: Regenerated. - * generated/sum_i8.c: Regenerated. - * generated/sum_r10.c: Regenerated. - * generated/sum_r16.c: Regenerated. - * generated/sum_r4.c: Regenerated. - * generated/sum_r8.c: Regenerated. - -2012-10-10 Tobias Burnus - - PR fortran/54878 - * io/unix.c (tempfile_open): Set umask before calling mkstemp. - -2012-10-06 Janne Blomqvist - - * configure.ac: Check for presence of secure_getenv. - * libgfortran.h: Use HAVE_SECURE_GETENV. - * Makefile.in: Regenerated. - * aclocal.m4: Regenerated. - * config.h.in: Regenerated. - * configure: Regenerated. - -2012-10-06 Thomas König - - PR libfortran/54736 - * runtime/environ.c (search_unit): Correct logic - for binary search. - (mark_single): Fix index errors. - -2012-09-29 Thomas König - - PR fortran/52724 - * list_read.c (next_char): Handle kind=4 characters. - * unix.c (open_internal4): Correct lenth of internal file. - -2012-09-14 David Edelsohn - - * configure: Regenerated. - -2012-09-05 Uros Bizjak - - * config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v. - -2012-07-25 Andreas Schwab - - * io/list_read.c (list_formatted_read_scalar): Fix copying real - value back to temporary. - -2012-06-21 Janne Blomqvist - - PR fortran/39654 - * io/intrinsics.c (ftell2): New function. - * gfortran.map (_gfortran_ftell2): Export function. - -2012-06-04 Robert Mason - Janne Blomqvist - - PR fortran/53456 - * intrinsics/time_1.h (gf_cputime): Fix typo in clock_gettime branch. - -2012-06-01 Tobias Burnus - - * intrinsics/chmod.c (chmod_func): On MinGW, don't set is_dir and - fix octal-mode handling. - * io/unit.c (get_internal_unit): Add cast. - * io/unix.c (min): Undef "min" before defining it. - * runtime/backtrace.c (show_backtrace): Move label into - ifndef __MINGW__ block. - -2012-05-31 Benjamin Kosnik - - PR libstdc++/51007 - * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument. - * configure: Regenerated. - -2012-05-31 Tobias Burnus - - Revert: - 2012-05-16 Tobias Burnus - - * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT. - -2012-05-30 Tobias Burnus - - * io/io.h: Fix comment typos. - * io/list_read.c: Ditto. - -2012-05-27 Janne Blomqvist - - * intrinsics/time_1.h (gf_cputime): Don't reevaluate HZ expression - for times fallback, clarify operation ordering for times and clock - fallbacks. - (gf_gettime): Fix comment typo. - -2012-05-24 Janne Blomqvist - - PR fortran/53456 - * intrinsics/time_1.h (gf_cputime): Fallback for clock_gettime. - -2012-05-23 Janne Blomqvist - - PR fortran/53456 - * intrinsics/time_1.h (gf_gettime): Fallback for clock_gettime. - -2012-05-23 Robert Mason - Tobias Burnus - - PR libfortran/53445 - * intrinsics/chmod.c (chmod_func): Ignore S_ISVTX on VxWorks. - -2012-05-23 Tobias Burnus - - PR libfortran/53444 - * acinclude.m4 (LIBGFOR_CHECK_STRERROR_R): Add configure checks for - two- and three-argument versions of strerror_r. - * configure.ac (LIBGFOR_CHECK_STRERROR_R): Use it. - * runtime/error.c (gf_strerror): Handle two-argument version - of strerror_r. - * config.h.in: Regenerate. - * configure: Regenerate. - -2012-05-16 H.J. Lu - - * configure: Regenerated. - -2012-05-16 Tobias Burnus - - * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT. - -2012-05-14 Janne Blomqvist - - PR fortran/52428 - * io/io.h (max_value): Rename to si_max, remove second argument. - * io/list_read.c (convert_integer): Use unsigned types when - parsing the digits, set max value depending on the sign. - * io/read.c (max_value): Rename to si_max, remove second argument, - simplify. - (read_decimal): Set max value depending on sign, always check - overflow. - (read_radix): Calculate max unsigned value directly. - * libgfortran.h (struct compile_options_t): Remove range_check - field. - * runtime/compile_options.c (set_options): Skip handling - options[7]. - (init_compile_options): Don't set removed field. - -2012-05-11 Tobias Burnus - - PR fortran/53310 - * intrinsics/eoshift2.c (eoshift2): Do not leak - memory by allocating it in the loop. - -2012-05-05 Janne Blomqvist - - * config.h.in: Regenerated. - * configure: Regenerated. - * configure.ac: Add checks for getegid and __secure_getenv. - * io/unix.c (P_tmpdir): Fallback definition for macro. - (tempfile_open): New function. - (tempfile): Use secure_getenv, call tempfile_open to try each - directory in turn. - * libgfortran.h (DEFAULT_TMPDIR): Remove macro. - (secure_getenv): New macro/prototype. - * runtime/environ.c (secure_getenv): New function. - (variable_table): Rename GFORTRAN_TMPDIR to TMPDIR. - * runtime/main.c (find_addr2line): Use secure_getenv. - -2012-04-22 Tobias Burnus - - PR fortran/53051 - * io/list_read.c (parse_real): Support "q" for the - exponential. - * io/read.c (read_f): Ditto. - -2012-04-17 Tobias Burnus - - PR libfortran/38199 - PR libfortran/50673 - * io/unit.c (get_internal_unit): Properly check for the presence - of the format string. - -2012-04-15 Thomas Koenig - - PR libfortran/38199 - PR libfortran/50673 - * intrinsics/string_intriniscs_inc.c (string_len_trim): - Remove prototypes for string_len_trim and move to... - * libgfortran.h (string_len_trim): ... here and - (string_len_trim_char4): ...here. - * io/unit.c: For non-array internal arrays where we do reading, - adjust the record length to the last non-blank character. - * io/unix.c: Fix typo. - -2012-04-10 Michael Matz - - * m4/cshift0.m4 (cshift0_'rtype_code`): Guard use of modulo. - - * generated/cshift0_c10.c: Regenerated. - * generated/cshift0_c16.c: Regenerated. - * generated/cshift0_c4.c: Regenerated. - * generated/cshift0_c8.c: Regenerated. - * generated/cshift0_i16.c: Regenerated. - * generated/cshift0_i1.c: Regenerated. - * generated/cshift0_i2.c: Regenerated. - * generated/cshift0_i4.c: Regenerated. - * generated/cshift0_i8.c: Regenerated. - * generated/cshift0_r10.c: Regenerated. - * generated/cshift0_r16.c: Regenerated. - * generated/cshift0_r4.c: Regenerated. - * generated/cshift0_r8.c: Regenerated. - -2012-04-04 Tristan Gingold - - * libgfortran.h: Include complex.h before math.h - -2012-04-02 Tristan Gingold - - * configure.ac: Use new version of GCC_CHECK_MATH_FUNC. - * configure: Regenerate - * config.h.in: Regenerate. - -2012-03-30 Uros Bizjak - - PR libgfortran/52758 - * intrinsics/chmod.c (chmod_func): Remove out-of-bounds - initialization of rwxXstugo. - -2012-03-27 Tristan Gingold - - * configure.ac: Add description to AC_DEFINE in - GCC_CHECK_MATH_FUNC. - * configure: Regenerate - * config.h.in: Regenerate. - -2012-03-26 Janne Blomqvist - - * runtime/memory.c (get_mem): Rename to xmalloc, check for zero - size. - (internal_malloc_size): Remove. - * libgfortran.h (get_mem): Rename to xmalloc. - (internal_malloc_size): Remove prototype. - * Makefile.am (i_iall_c): Fix dependency. - (i_iany_c): Likewise. - (i_iparity_c): Likewise. - (i_norm2_c): Likewise. - (i_parity_c): Likewise. - * Makefile.in: Regenerated. - * m4/parity.m4: Fix typo in comment. - * generated/all_l1.c: Regenerated. - * generated/all_l16.c: Regenerated. - * generated/all_l2.c: Regenerated. - * generated/all_l4.c: Regenerated. - * generated/all_l8.c: Regenerated. - * generated/any_l1.c: Regenerated. - * generated/any_l16.c: Regenerated. - * generated/any_l2.c: Regenerated. - * generated/any_l4.c: Regenerated. - * generated/any_l8.c: Regenerated. - * generated/bessel_r10.c: Regenerated. - * generated/bessel_r16.c: Regenerated. - * generated/bessel_r4.c: Regenerated. - * generated/bessel_r8.c: Regenerated. - * generated/count_16_l.c: Regenerated. - * generated/count_1_l.c: Regenerated. - * generated/count_2_l.c: Regenerated. - * generated/count_4_l.c: Regenerated. - * generated/count_8_l.c: Regenerated. - * generated/cshift1_16.c: Regenerated. - * generated/cshift1_4.c: Regenerated. - * generated/cshift1_8.c: Regenerated. - * generated/eoshift1_16.c: Regenerated. - * generated/eoshift1_4.c: Regenerated. - * generated/eoshift1_8.c: Regenerated. - * generated/eoshift3_16.c: Regenerated. - * generated/eoshift3_4.c: Regenerated. - * generated/eoshift3_8.c: Regenerated. - * generated/iall_i1.c: Regenerated. - * generated/iall_i16.c: Regenerated. - * generated/iall_i2.c: Regenerated. - * generated/iall_i4.c: Regenerated. - * generated/iall_i8.c: Regenerated. - * generated/iany_i1.c: Regenerated. - * generated/iany_i16.c: Regenerated. - * generated/iany_i2.c: Regenerated. - * generated/iany_i4.c: Regenerated. - * generated/iany_i8.c: Regenerated. - * generated/in_pack_c10.c: Regenerated. - * generated/in_pack_c16.c: Regenerated. - * generated/in_pack_c4.c: Regenerated. - * generated/in_pack_c8.c: Regenerated. - * generated/in_pack_i1.c: Regenerated. - * generated/in_pack_i16.c: Regenerated. - * generated/in_pack_i2.c: Regenerated. - * generated/in_pack_i4.c: Regenerated. - * generated/in_pack_i8.c: Regenerated. - * generated/in_pack_r10.c: Regenerated. - * generated/in_pack_r16.c: Regenerated. - * generated/in_pack_r4.c: Regenerated. - * generated/in_pack_r8.c: Regenerated. - * generated/iparity_i1.c: Regenerated. - * generated/iparity_i16.c: Regenerated. - * generated/iparity_i2.c: Regenerated. - * generated/iparity_i4.c: Regenerated. - * generated/iparity_i8.c: Regenerated. - * generated/matmul_c10.c: Regenerated. - * generated/matmul_c16.c: Regenerated. - * generated/matmul_c4.c: Regenerated. - * generated/matmul_c8.c: Regenerated. - * generated/matmul_i1.c: Regenerated. - * generated/matmul_i16.c: Regenerated. - * generated/matmul_i2.c: Regenerated. - * generated/matmul_i4.c: Regenerated. - * generated/matmul_i8.c: Regenerated. - * generated/matmul_l16.c: Regenerated. - * generated/matmul_l4.c: Regenerated. - * generated/matmul_l8.c: Regenerated. - * generated/matmul_r10.c: Regenerated. - * generated/matmul_r16.c: Regenerated. - * generated/matmul_r4.c: Regenerated. - * generated/matmul_r8.c: Regenerated. - * generated/maxloc0_16_i1.c: Regenerated. - * generated/maxloc0_16_i16.c: Regenerated. - * generated/maxloc0_16_i2.c: Regenerated. - * generated/maxloc0_16_i4.c: Regenerated. - * generated/maxloc0_16_i8.c: Regenerated. - * generated/maxloc0_16_r10.c: Regenerated. - * generated/maxloc0_16_r16.c: Regenerated. - * generated/maxloc0_16_r4.c: Regenerated. - * generated/maxloc0_16_r8.c: Regenerated. - * generated/maxloc0_4_i1.c: Regenerated. - * generated/maxloc0_4_i16.c: Regenerated. - * generated/maxloc0_4_i2.c: Regenerated. - * generated/maxloc0_4_i4.c: Regenerated. - * generated/maxloc0_4_i8.c: Regenerated. - * generated/maxloc0_4_r10.c: Regenerated. - * generated/maxloc0_4_r16.c: Regenerated. - * generated/maxloc0_4_r4.c: Regenerated. - * generated/maxloc0_4_r8.c: Regenerated. - * generated/maxloc0_8_i1.c: Regenerated. - * generated/maxloc0_8_i16.c: Regenerated. - * generated/maxloc0_8_i2.c: Regenerated. - * generated/maxloc0_8_i4.c: Regenerated. - * generated/maxloc0_8_i8.c: Regenerated. - * generated/maxloc0_8_r10.c: Regenerated. - * generated/maxloc0_8_r16.c: Regenerated. - * generated/maxloc0_8_r4.c: Regenerated. - * generated/maxloc0_8_r8.c: Regenerated. - * generated/maxloc1_16_i1.c: Regenerated. - * generated/maxloc1_16_i16.c: Regenerated. - * generated/maxloc1_16_i2.c: Regenerated. - * generated/maxloc1_16_i4.c: Regenerated. - * generated/maxloc1_16_i8.c: Regenerated. - * generated/maxloc1_16_r10.c: Regenerated. - * generated/maxloc1_16_r16.c: Regenerated. - * generated/maxloc1_16_r4.c: Regenerated. - * generated/maxloc1_16_r8.c: Regenerated. - * generated/maxloc1_4_i1.c: Regenerated. - * generated/maxloc1_4_i16.c: Regenerated. - * generated/maxloc1_4_i2.c: Regenerated. - * generated/maxloc1_4_i4.c: Regenerated. - * generated/maxloc1_4_i8.c: Regenerated. - * generated/maxloc1_4_r10.c: Regenerated. - * generated/maxloc1_4_r16.c: Regenerated. - * generated/maxloc1_4_r4.c: Regenerated. - * generated/maxloc1_4_r8.c: Regenerated. - * generated/maxloc1_8_i1.c: Regenerated. - * generated/maxloc1_8_i16.c: Regenerated. - * generated/maxloc1_8_i2.c: Regenerated. - * generated/maxloc1_8_i4.c: Regenerated. - * generated/maxloc1_8_i8.c: Regenerated. - * generated/maxloc1_8_r10.c: Regenerated. - * generated/maxloc1_8_r16.c: Regenerated. - * generated/maxloc1_8_r4.c: Regenerated. - * generated/maxloc1_8_r8.c: Regenerated. - * generated/maxval_i1.c: Regenerated. - * generated/maxval_i16.c: Regenerated. - * generated/maxval_i2.c: Regenerated. - * generated/maxval_i4.c: Regenerated. - * generated/maxval_i8.c: Regenerated. - * generated/maxval_r10.c: Regenerated. - * generated/maxval_r16.c: Regenerated. - * generated/maxval_r4.c: Regenerated. - * generated/maxval_r8.c: Regenerated. - * generated/minloc0_16_i1.c: Regenerated. - * generated/minloc0_16_i16.c: Regenerated. - * generated/minloc0_16_i2.c: Regenerated. - * generated/minloc0_16_i4.c: Regenerated. - * generated/minloc0_16_i8.c: Regenerated. - * generated/minloc0_16_r10.c: Regenerated. - * generated/minloc0_16_r16.c: Regenerated. - * generated/minloc0_16_r4.c: Regenerated. - * generated/minloc0_16_r8.c: Regenerated. - * generated/minloc0_4_i1.c: Regenerated. - * generated/minloc0_4_i16.c: Regenerated. - * generated/minloc0_4_i2.c: Regenerated. - * generated/minloc0_4_i4.c: Regenerated. - * generated/minloc0_4_i8.c: Regenerated. - * generated/minloc0_4_r10.c: Regenerated. - * generated/minloc0_4_r16.c: Regenerated. - * generated/minloc0_4_r4.c: Regenerated. - * generated/minloc0_4_r8.c: Regenerated. - * generated/minloc0_8_i1.c: Regenerated. - * generated/minloc0_8_i16.c: Regenerated. - * generated/minloc0_8_i2.c: Regenerated. - * generated/minloc0_8_i4.c: Regenerated. - * generated/minloc0_8_i8.c: Regenerated. - * generated/minloc0_8_r10.c: Regenerated. - * generated/minloc0_8_r16.c: Regenerated. - * generated/minloc0_8_r4.c: Regenerated. - * generated/minloc0_8_r8.c: Regenerated. - * generated/minloc1_16_i1.c: Regenerated. - * generated/minloc1_16_i16.c: Regenerated. - * generated/minloc1_16_i2.c: Regenerated. - * generated/minloc1_16_i4.c: Regenerated. - * generated/minloc1_16_i8.c: Regenerated. - * generated/minloc1_16_r10.c: Regenerated. - * generated/minloc1_16_r16.c: Regenerated. - * generated/minloc1_16_r4.c: Regenerated. - * generated/minloc1_16_r8.c: Regenerated. - * generated/minloc1_4_i1.c: Regenerated. - * generated/minloc1_4_i16.c: Regenerated. - * generated/minloc1_4_i2.c: Regenerated. - * generated/minloc1_4_i4.c: Regenerated. - * generated/minloc1_4_i8.c: Regenerated. - * generated/minloc1_4_r10.c: Regenerated. - * generated/minloc1_4_r16.c: Regenerated. - * generated/minloc1_4_r4.c: Regenerated. - * generated/minloc1_4_r8.c: Regenerated. - * generated/minloc1_8_i1.c: Regenerated. - * generated/minloc1_8_i16.c: Regenerated. - * generated/minloc1_8_i2.c: Regenerated. - * generated/minloc1_8_i4.c: Regenerated. - * generated/minloc1_8_i8.c: Regenerated. - * generated/minloc1_8_r10.c: Regenerated. - * generated/minloc1_8_r16.c: Regenerated. - * generated/minloc1_8_r4.c: Regenerated. - * generated/minloc1_8_r8.c: Regenerated. - * generated/minval_i1.c: Regenerated. - * generated/minval_i16.c: Regenerated. - * generated/minval_i2.c: Regenerated. - * generated/minval_i4.c: Regenerated. - * generated/minval_i8.c: Regenerated. - * generated/minval_r10.c: Regenerated. - * generated/minval_r16.c: Regenerated. - * generated/minval_r4.c: Regenerated. - * generated/minval_r8.c: Regenerated. - * generated/norm2_r10.c: Regenerated. - * generated/norm2_r16.c: Regenerated. - * generated/norm2_r4.c: Regenerated. - * generated/norm2_r8.c: Regenerated. - * generated/pack_c10.c: Regenerated. - * generated/pack_c16.c: Regenerated. - * generated/pack_c4.c: Regenerated. - * generated/pack_c8.c: Regenerated. - * generated/pack_i1.c: Regenerated. - * generated/pack_i16.c: Regenerated. - * generated/pack_i2.c: Regenerated. - * generated/pack_i4.c: Regenerated. - * generated/pack_i8.c: Regenerated. - * generated/pack_r10.c: Regenerated. - * generated/pack_r16.c: Regenerated. - * generated/pack_r4.c: Regenerated. - * generated/pack_r8.c: Regenerated. - * generated/parity_l1.c: Regenerated. - * generated/parity_l16.c: Regenerated. - * generated/parity_l2.c: Regenerated. - * generated/parity_l4.c: Regenerated. - * generated/parity_l8.c: Regenerated. - * generated/product_c10.c: Regenerated. - * generated/product_c16.c: Regenerated. - * generated/product_c4.c: Regenerated. - * generated/product_c8.c: Regenerated. - * generated/product_i1.c: Regenerated. - * generated/product_i16.c: Regenerated. - * generated/product_i2.c: Regenerated. - * generated/product_i4.c: Regenerated. - * generated/product_i8.c: Regenerated. - * generated/product_r10.c: Regenerated. - * generated/product_r16.c: Regenerated. - * generated/product_r4.c: Regenerated. - * generated/product_r8.c: Regenerated. - * generated/reshape_c10.c: Regenerated. - * generated/reshape_c16.c: Regenerated. - * generated/reshape_c4.c: Regenerated. - * generated/reshape_c8.c: Regenerated. - * generated/reshape_i16.c: Regenerated. - * generated/reshape_i4.c: Regenerated. - * generated/reshape_i8.c: Regenerated. - * generated/reshape_r10.c: Regenerated. - * generated/reshape_r16.c: Regenerated. - * generated/reshape_r4.c: Regenerated. - * generated/reshape_r8.c: Regenerated. - * generated/shape_i16.c: Regenerated. - * generated/shape_i4.c: Regenerated. - * generated/shape_i8.c: Regenerated. - * generated/spread_c10.c: Regenerated. - * generated/spread_c16.c: Regenerated. - * generated/spread_c4.c: Regenerated. - * generated/spread_c8.c: Regenerated. - * generated/spread_i1.c: Regenerated. - * generated/spread_i16.c: Regenerated. - * generated/spread_i2.c: Regenerated. - * generated/spread_i4.c: Regenerated. - * generated/spread_i8.c: Regenerated. - * generated/spread_r10.c: Regenerated. - * generated/spread_r16.c: Regenerated. - * generated/spread_r4.c: Regenerated. - * generated/spread_r8.c: Regenerated. - * generated/sum_c10.c: Regenerated. - * generated/sum_c16.c: Regenerated. - * generated/sum_c4.c: Regenerated. - * generated/sum_c8.c: Regenerated. - * generated/sum_i1.c: Regenerated. - * generated/sum_i16.c: Regenerated. - * generated/sum_i2.c: Regenerated. - * generated/sum_i4.c: Regenerated. - * generated/sum_i8.c: Regenerated. - * generated/sum_r10.c: Regenerated. - * generated/sum_r16.c: Regenerated. - * generated/sum_r4.c: Regenerated. - * generated/sum_r8.c: Regenerated. - * generated/transpose_c10.c: Regenerated. - * generated/transpose_c16.c: Regenerated. - * generated/transpose_c4.c: Regenerated. - * generated/transpose_c8.c: Regenerated. - * generated/transpose_i16.c: Regenerated. - * generated/transpose_i4.c: Regenerated. - * generated/transpose_i8.c: Regenerated. - * generated/transpose_r10.c: Regenerated. - * generated/transpose_r16.c: Regenerated. - * generated/transpose_r4.c: Regenerated. - * generated/transpose_r8.c: Regenerated. - * generated/unpack_c10.c: Regenerated. - * generated/unpack_c16.c: Regenerated. - * generated/unpack_c4.c: Regenerated. - * generated/unpack_c8.c: Regenerated. - * generated/unpack_i1.c: Regenerated. - * generated/unpack_i16.c: Regenerated. - * generated/unpack_i2.c: Regenerated. - * generated/unpack_i4.c: Regenerated. - * generated/unpack_i8.c: Regenerated. - * generated/unpack_r10.c: Regenerated. - * generated/unpack_r16.c: Regenerated. - * generated/unpack_r4.c: Regenerated. - * generated/unpack_r8.c: Regenerated. - * intrinsics/cshift0.c: Use xmalloc. - * intrinsics/ctime.c: Likewise. - * intrinsics/date_and_time.c: Likewise. - * intrinsics/eoshift0.c: Likewise. - * intrinsics/eoshift2.c: Likewise. - * intrinsics/getlog.c: Likewise. - * intrinsics/pack_generic.c: Likewise. - * intrinsics/reshape_generic.c: Likewise. - * intrinsics/spread_generic.c: Likewise. - * intrinsics/string_intrinsics_inc.c: Likewise. - * intrinsics/transpose_generic.c: Likewise. - * intrinsics/unpack_generic.c: Likewise. - * io/fbuf.c: Likewise. - * io/format.c: Likewise. - * io/intrinsics.c: Likewise. - * io/list_read.c: Likewise. - * io/open.c: Likewise. - * io/transfer.c: Likewise. - * io/unit.c: Likewise. - * io/unix.c: Likewise. - * io/write.c: Likewise. - * m4/bessel.m4: Likewise. - * m4/cshift1.m4: Likewise. - * m4/eoshift1.m4: Likewise. - * m4/eoshift3.m4: Likewise. - * m4/iforeach.m4: Likewise. - * m4/ifunction.m4: Likewise. - * m4/ifunction_logical.m4: Likewise. - * m4/in_pack.m4: Likewise. - * m4/matmul.m4: Likewise. - * m4/matmull.m4: Likewise. - * m4/pack.m4: Likewise. - * m4/reshape.m4: Likewise. - * m4/shape.m4: Likewise. - * m4/spread.m4: Likewise. - * m4/transpose.m4: Likewise. - * m4/unpack.m4: Likewise. - * runtime/convert_char.c: Likewise. - * runtime/environ.c: Likewise. - * runtime/in_pack_generic.c: Likewise. - -2012-03-26 Tristan Gingold - - * configure.ac: Use GCC_CHECK_MATH_FUNC for math functions. - * acinclude.m4: Include ../config/math.m4 - * configure: Regenerate. - * Makefile.in: Regenerate. - -2012-03-25 Janne Blomqvist - - * runtime/memory.c (xcalloc): New function. - * libgfortran.h (xcalloc): New prototype. - * io/list_read.c (push_char): Use xcalloc instead of get_mem and - memset. - (l_push_char): Likewise. - * io/unit.c (insert_unit): Likewise. - (get_internal_unit): Likewise. - * io/unix.c (open_internal): Likewise. - (open_internal4): Likewise. - (fd_to_stream): Likewise. - -2012-03-17 Janne Blomqvist - - PR libfortran/52608 - * io/write_float.def (output_float): Move removal of initial zeros - until after the scale factor has been applied. - -2012-03-16 Janne Blomqvist - - * io/unix.h (struct stream): Rename to stream_vtable. - (struct stream): New struct definition. - (sread): Dereference vtable pointer. - (swrite): Likewise. - (sseek): Likewise. - (struncate): Likewise. - (sflush): Likewise. - (sclose): Likewise. - * io/unix.c (raw_vtable): New variable. - (buf_vtable): Likewise. - (mem_vtable): Likewise. - (mem4_vtable): Likewise. - (raw_init): Assign vtable pointer. - (buf_init): Likewise. - (open_internal): Likewise. - (open_internal4): Likewise. - -2012-03-15 Janne Blomqvist - - PR libfortran/52434 - PR libfortran/48878 - PR libfortran/38199 - * io/unit.c (get_internal_unit): Default to ROUND_UNSPECIFIED. - (init_units): Likewise. - * io/write_float.def (determine_precision): New function. - (output_float): Take into account buffer with %f format, no need - for our own rounding if unspecified or processor specified - rounding. - (DTOA): Simplify format string, add parameters. - (FDTOA): New macros similar to DTOA, but using %f format. - (OUTPUT_FLOAT_FMT_G): Stack allocate newf, determine correct - precision and fill buffer. - (EN_PREC): New macro. - (determine_en_precision): New function. - (WRITE_FLOAT): For G format, move buffer filling into - output_float_FMT_G, use FDTOA for F format. - (write_float): Increase buffer due to F format. - -2012-03-14 Rainer Orth - - * intrinsics/c99_functions.c [__sgi__ && !HAVE_COMPLEX_H]: Remove. - -2012-03-12 Rainer Orth - - * configure.ac: Remove Tru64 reference. - * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Remove alpha*-dec-osf* - handling. - * configure: Regenerate. - * intrinsics/c99_functions.c [__osf__]: Remove. - -2012-03-10 Tobias Burnus - - * libgfortran.h (descriptor_dimension, GFC_DIMENSION_LBOUND, - GFC_DIMENSION_EXTENT, GFC_DIMENSION_SET, GFC_DESCRIPTOR_DATA, - GFC_ARRAY_DESCRIPTOR): Rename _lbound to lower_bound and - data to base_addr. - * intrinsics/cshift0.c (size0, cshift0): Handle data to - base_addr rename. - * intrinsics/date_and_time.c (date_and_time, secnds, itime_i4, - itime_i8, gmtime_i4, gmtime_i8, ltime_i4, ltime_i8): Ditto. - * intrinsics/dtime.c (dtime_sub): Ditto. - * intrinsics/eoshift0.c (eoshift0): Ditto. - * intrinsics/eoshift2.c (eoshift2): Ditto. - * intrinsics/etime.c (etime_sub): Ditto. - * intrinsics/iso_c_binding.c (c_f_pointer_u0): Ditto. - * intrinsics/move_alloc.c (move_alloc): Ditto. - * intrinsics/pack_generic.c (pack_internal, pack, - pack_s_internal): Ditto. - * intrinsics/random.c (arandom_r4, arandom_r8, arandom_r10, - arandom_r16, random_seed_i4, random_seed_i8): Ditto. - * intrinsics/reshape_generic.c (reshape_internal): Ditto. - * intrinsics/spread_generic.c (spread_internal, - spread_internal_scalar, spread, spread_scalar): Ditto. - * intrinsics/stat.c (stat_i4_sub_0, stat_i8_sub_0, fstat_i4_sub, - fstat_i8_sub): Ditto. - * intrinsics/transpose_generic.c (transpose_internal): Ditto. - * intrinsics/unpack_generic.c (unpack_bounds, unpack_internal, - unpack1, unpack0, unpack0_char4): Ditto. - * m4/bessel.m4 (bessel_jn_r'rtype_kind`, bessel_yn_r'rtype_kind`): - Ditto. - * m4/cshift0.m4 (cshift0_'rtype_code`): Ditto. - * m4/cshift1.m4 (cshift1): Ditto. - * m4/eoshift1.m4 (eoshift1): Ditto. - * m4/eoshift3.m4 (eoshift3): Ditto. - * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto. - * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto. - * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto. - * m4/in_pack.m4 (internal_pack_'rtype_ccode`): Ditto. - * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`): Ditto. - * m4/matmul.m4 (matmul_'rtype_code`): Ditto. - * m4/matmull.m4 (matmul_'rtype_code`): Ditto. - * m4/pack.m4 (pack_'rtype_code`): Ditto. - * m4/reshape.m4 (reshape_'rtype_ccode`): Ditto. - * m4/shape.m4 (shape_'rtype_kind`): Ditto. - * m4/spread.m4 (spread_'rtype_code`): Ditto. - * m4/transpose.m4 (transpose_'rtype_code`): Ditto. - * m4/unpack.m4 (unpack0_'rtype_code`, unpack1_'rtype_code`): Ditto. - * runtime/bounds.c (count_0): Ditto. - * runtime/in_pack_generic.c (internal_pack): Ditto. - * runtime/in_unpack_generic.c (internal_unpack): Ditto. - * generated/cshift0_r4.c: Regenerated. - * generated/unpack_r8.c: Regenerated. - * generated/cshift0_c10.c: Regenerated. - * generated/in_unpack_i1.c: Regenerated. - * generated/eoshift1_16.c: Regenerated. - * generated/iany_i16.c: Regenerated. - * generated/reshape_i4.c: Regenerated. - * generated/parity_l16.c: Regenerated. - * generated/in_unpack_r16.c: Regenerated. - * generated/iparity_i1.c: Regenerated. - * generated/minloc0_16_r10.c: Regenerated. - * generated/minloc1_16_i8.c: Regenerated. - * generated/bessel_r8.c: Regenerated. - * generated/maxloc0_4_i8.c: Regenerated. - * generated/maxloc1_8_i1.c: Regenerated. - * generated/sum_c10.c: Regenerated. - * generated/maxloc0_8_r10.c: Regenerated. - * generated/unpack_r16.c: Regenerated. - * generated/maxloc1_16_i1.c: Regenerated. - * generated/minloc1_4_i1.c: Regenerated. - * generated/unpack_i4.c: Regenerated. - * generated/in_pack_i1.c: Regenerated. - * generated/cshift0_i1.c: Regenerated. - * generated/minloc0_16_i4.c: Regenerated. - * generated/minloc1_8_r8.c: Regenerated. - * generated/maxval_r8.c: Regenerated. - * generated/unpack_i2.c: Regenerated. - * generated/matmul_r16.c: Regenerated. - * generated/maxloc0_16_r8.c: Regenerated. - * generated/maxloc1_8_i16.c: Regenerated. - * generated/maxloc0_4_r4.c: Regenerated. - * generated/pack_c10.c: Regenerated. - * generated/in_unpack_c8.c: Regenerated. - * generated/maxloc1_8_i8.c: Regenerated. - * generated/in_pack_c16.c: Regenerated. - * generated/parity_l1.c: Regenerated. - * generated/in_pack_i2.c: Regenerated. - * generated/maxloc0_4_r8.c: Regenerated. - * generated/pack_r4.c: Regenerated. - * generated/matmul_r8.c: Regenerated. - * generated/pack_i1.c: Regenerated. - * generated/minloc0_16_r16.c: Regenerated. - * generated/cshift0_c8.c: Regenerated. - * generated/minloc1_4_i16.c: Regenerated. - * generated/minloc0_4_r4.c: Regenerated. - * generated/product_i2.c: Regenerated. - * generated/maxval_r10.c: Regenerated. - * generated/minloc0_16_r8.c: Regenerated. - * generated/in_pack_i8.c: Regenerated. - * generated/all_l8.c: Regenerated. - * generated/minloc0_8_i16.c: Regenerated. - * generated/minloc1_8_i2.c: Regenerated. - * generated/matmul_l8.c: Regenerated. - * generated/spread_r10.c: Regenerated. - * generated/product_c4.c: Regenerated. - * generated/reshape_r16.c: Regenerated. - * generated/cshift0_i16.c: Regenerated. - * generated/minloc1_8_r10.c: Regenerated. - * generated/iparity_i8.c: Regenerated. - * generated/minloc0_16_i8.c: Regenerated. - * generated/minloc1_8_i1.c: Regenerated. - * generated/maxloc0_16_r10.c: Regenerated. - * generated/maxloc1_8_i4.c: Regenerated. - * generated/maxloc0_16_i8.c: Regenerated. - * generated/maxloc1_16_i16.c: Regenerated. - * generated/reshape_i8.c: Regenerated. - * generated/all_l16.c: Regenerated. - * generated/cshift1_8.c: Regenerated. - * generated/matmul_c10.c: Regenerated. - * generated/pack_r16.c: Regenerated. - * generated/transpose_r10.c: Regenerated. - * generated/maxloc1_16_i2.c: Regenerated. - * generated/minloc1_4_r4.c: Regenerated. - * generated/reshape_r8.c: Regenerated. - * generated/product_r10.c: Regenerated. - * generated/spread_c10.c: Regenerated. - * generated/reshape_r4.c: Regenerated. - * generated/in_unpack_i4.c: Regenerated. - * generated/minval_r4.c: Regenerated. - * generated/minloc1_16_r16.c: Regenerated. - * generated/norm2_r8.c: Regenerated. - * generated/iany_i2.c: Regenerated. - * generated/eoshift3_8.c: Regenerated. - * generated/maxloc1_16_r8.c: Regenerated. - * generated/maxloc0_16_r16.c: Regenerated. - * generated/cshift0_i8.c: Regenerated. - * generated/all_l1.c: Regenerated. - * generated/minloc1_16_r10.c: Regenerated. - * generated/spread_i16.c: Regenerated. - * generated/minloc1_8_r16.c: Regenerated. - * generated/spread_r16.c: Regenerated. - * generated/matmul_c8.c: Regenerated. - * generated/pack_r10.c: Regenerated. - * generated/reshape_r10.c: Regenerated. - * generated/sum_r10.c: Regenerated. - * generated/count_8_l.c: Regenerated. - * generated/minloc1_16_i16.c: Regenerated. - * generated/maxloc0_16_i2.c: Regenerated. - * generated/count_1_l.c: Regenerated. - * generated/unpack_c16.c: Regenerated. - * generated/any_l8.c: Regenerated. - * generated/minloc1_16_i1.c: Regenerated. - * generated/sum_r4.c: Regenerated. - * generated/in_unpack_r8.c: Regenerated. - * generated/product_r8.c: Regenerated. - * generated/in_unpack_r4.c: Regenerated. - * generated/unpack_i1.c: Regenerated. - * generated/cshift0_r8.c: Regenerated. - * generated/spread_i2.c: Regenerated. - * generated/minloc1_4_r10.c: Regenerated. - * generated/minloc1_16_i2.c: Regenerated. - * generated/minloc0_16_i2.c: Regenerated. - * generated/eoshift3_16.c: Regenerated. - * generated/maxloc0_8_i4.c: Regenerated. - * generated/maxloc1_16_r10.c: Regenerated. - * generated/maxloc1_4_i16.c: Regenerated. - * generated/maxloc1_4_r8.c: Regenerated. - * generated/parity_l2.c: Regenerated. - * generated/maxloc0_16_i16.c: Regenerated. - * generated/product_r4.c: Regenerated. - * generated/in_unpack_r10.c: Regenerated. - * generated/maxloc1_8_i2.c: Regenerated. - * generated/iparity_i2.c: Regenerated. - * generated/maxloc1_8_r4.c: Regenerated. - * generated/maxloc1_8_r8.c: Regenerated. - * generated/iall_i4.c: Regenerated. - * generated/maxloc0_4_i16.c: Regenerated. - * generated/cshift0_i4.c: Regenerated. - * generated/in_unpack_c10.c: Regenerated. - * generated/unpack_c8.c: Regenerated. - * generated/transpose_c8.c: Regenerated. - * generated/in_unpack_c16.c: Regenerated. - * generated/product_c16.c: Regenerated. - * generated/minval_r8.c: Regenerated. - * generated/minloc0_4_i1.c: Regenerated. - * generated/minloc0_8_r16.c: Regenerated. - * generated/in_unpack_i16.c: Regenerated. - * generated/reshape_c16.c: Regenerated. - * generated/pack_i4.c: Regenerated. - * generated/minval_r10.c: Regenerated. - * generated/maxloc0_4_r10.c: Regenerated. - * generated/unpack_i8.c: Regenerated. - * generated/minloc1_16_r8.c: Regenerated. - * generated/pack_c16.c: Regenerated. - * generated/maxval_r4.c: Regenerated. - * generated/spread_r8.c: Regenerated. - * generated/minloc0_16_r4.c: Regenerated. - * generated/maxval_i4.c: Regenerated. - * generated/matmul_r4.c: Regenerated. - * generated/product_c8.c: Regenerated. - * generated/maxloc1_4_i4.c: Regenerated. - * generated/any_l4.c: Regenerated. - * generated/cshift0_r16.c: Regenerated. - * generated/maxloc1_16_r4.c: Regenerated. - * generated/in_pack_r10.c: Regenerated. - * generated/iall_i1.c: Regenerated. - * generated/product_i1.c: Regenerated. - * generated/maxloc0_4_i1.c: Regenerated. - * generated/maxloc0_8_r16.c: Regenerated. - * generated/minloc1_8_i16.c: Regenerated. - * generated/reshape_c10.c: Regenerated. - * generated/matmul_l4.c: Regenerated. - * generated/cshift0_c16.c: Regenerated. - * generated/spread_r4.c: Regenerated. - * generated/sum_r16.c: Regenerated. - * generated/in_unpack_c4.c: Regenerated. - * generated/maxval_i8.c: Regenerated. - * generated/maxloc0_8_r8.c: Regenerated. - * generated/unpack_i16.c: Regenerated. - * generated/norm2_r4.c: Regenerated. - * generated/maxloc1_4_r16.c: Regenerated. - * generated/in_pack_r4.c: Regenerated. - * generated/sum_c8.c: Regenerated. - * generated/parity_l8.c: Regenerated. - * generated/minval_i2.c: Regenerated. - * generated/transpose_c10.c: Regenerated. - * generated/cshift0_r10.c: Regenerated. - * generated/cshift0_i2.c: Regenerated. - * generated/spread_c4.c: Regenerated. - * generated/maxval_r16.c: Regenerated. - * generated/unpack_c10.c: Regenerated. - * generated/bessel_r4.c: Regenerated. - * generated/minloc0_8_i1.c: Regenerated. - * generated/product_c10.c: Regenerated. - * generated/minloc1_4_i4.c: Regenerated. - * generated/minloc1_4_i2.c: Regenerated. - * generated/transpose_c4.c: Regenerated. - * generated/in_pack_c8.c: Regenerated. - * generated/minval_i8.c: Regenerated. - * generated/maxloc1_4_i2.c: Regenerated. - * generated/maxloc1_4_i1.c: Regenerated. - * generated/iall_i8.c: Regenerated. - * generated/iany_i8.c: Regenerated. - * generated/sum_c16.c: Regenerated. - * generated/spread_i8.c: Regenerated. - * generated/sum_i8.c: Regenerated. - * generated/pack_i2.c: Regenerated. - * generated/unpack_r10.c: Regenerated. - * generated/minloc0_4_i4.c: Regenerated. - * generated/iany_i4.c: Regenerated. - * generated/maxloc0_4_i4.c: Regenerated. - * generated/in_pack_r8.c: Regenerated. - * generated/spread_i1.c: Regenerated. - * generated/maxval_i16.c: Regenerated. - * generated/pack_c8.c: Regenerated. - * generated/iparity_i16.c: Regenerated. - * generated/matmul_c16.c: Regenerated. - * generated/eoshift1_8.c: Regenerated. - * generated/any_l16.c: Regenerated. - * generated/maxloc1_4_i8.c: Regenerated. - * generated/minloc0_8_r4.c: Regenerated. - * generated/transpose_c16.c: Regenerated. - * generated/reshape_c4.c: Regenerated. - * generated/minloc0_8_r8.c: Regenerated. - * generated/count_16_l.c: Regenerated. - * generated/minloc0_16_i1.c: Regenerated. - * generated/minloc1_16_r4.c: Regenerated. - * generated/maxloc0_8_i1.c: Regenerated. - * generated/matmul_i1.c: Regenerated. - * generated/sum_i2.c: Regenerated. - * generated/cshift1_4.c: Regenerated. - * generated/minloc0_4_i2.c: Regenerated. - * generated/bessel_r10.c: Regenerated. - * generated/matmul_c4.c: Regenerated. - * generated/parity_l4.c: Regenerated. - * generated/in_unpack_i2.c: Regenerated. - * generated/product_i16.c: Regenerated. - * generated/maxloc0_16_i4.c: Regenerated. - * generated/minloc0_4_r10.c: Regenerated. - * generated/transpose_i16.c: Regenerated. - * generated/matmul_l16.c: Regenerated. - * generated/any_l1.c: Regenerated. - * generated/minval_r16.c: Regenerated. - * generated/shape_i16.c: Regenerated. - * generated/in_pack_c4.c: Regenerated. - * generated/minloc1_8_r4.c: Regenerated. - * generated/iany_i1.c: Regenerated. - * generated/matmul_i16.c: Regenerated. - * generated/maxloc0_16_r4.c: Regenerated. - * generated/spread_c8.c: Regenerated. - * generated/product_i8.c: Regenerated. - * generated/minloc1_8_i4.c: Regenerated. - * generated/product_i4.c: Regenerated. - * generated/minval_i16.c: Regenerated. - * generated/pack_r8.c: Regenerated. - * generated/matmul_r10.c: Regenerated. - * generated/shape_i8.c: Regenerated. - * generated/eoshift1_4.c: Regenerated. - * generated/minloc1_16_i4.c: Regenerated. - * generated/transpose_r16.c: Regenerated. - * generated/spread_c16.c: Regenerated. - * generated/maxloc0_8_i16.c: Regenerated. - * generated/minval_i1.c: Regenerated. - * generated/sum_i4.c: Regenerated. - * generated/in_pack_r16.c: Regenerated. - * generated/iall_i16.c: Regenerated. - * generated/minloc0_8_r10.c: Regenerated. - * generated/maxloc0_8_i8.c: Regenerated. - * generated/transpose_i4.c: Regenerated. - * generated/maxloc0_4_i2.c: Regenerated. - * generated/iall_i2.c: Regenerated. - * generated/maxloc0_8_r4.c: Regenerated. - * generated/minloc0_4_r16.c: Regenerated. - * generated/minloc1_4_r8.c: Regenerated. - * generated/minloc0_4_i8.c: Regenerated. - * generated/minval_i4.c: Regenerated. - * generated/minloc1_8_i8.c: Regenerated. - * generated/in_pack_i16.c: Regenerated. - * generated/spread_i4.c: Regenerated. - * generated/cshift0_c4.c: Regenerated. - * generated/minloc0_4_i16.c: Regenerated. - * generated/sum_r8.c: Regenerated. - * generated/minloc0_16_i16.c: Regenerated. - * generated/sum_i1.c: Regenerated. - * generated/all_l2.c: Regenerated. - * generated/sum_c4.c: Regenerated. - * generated/shape_i4.c: Regenerated. - * generated/maxval_i1.c: Regenerated. - * generated/norm2_r10.c: Regenerated. - * generated/unpack_c4.c: Regenerated. - * generated/maxloc0_16_i1.c: Regenerated. - * generated/all_l4.c: Regenerated. - * generated/maxloc1_16_i8.c: Regenerated. - * generated/sum_i16.c: Regenerated. - * generated/maxloc1_8_r16.c: Regenerated. - * generated/minloc1_4_r16.c: Regenerated. - * generated/maxloc1_16_r16.c: Regenerated. - * generated/transpose_i8.c: Regenerated. - * generated/minloc0_8_i2.c: Regenerated. - * generated/product_r16.c: Regenerated. - * generated/in_pack_c10.c: Regenerated. - * generated/maxloc0_4_r16.c: Regenerated. - * generated/pack_c4.c: Regenerated. - * generated/bessel_r16.c: Regenerated. - * generated/norm2_r16.c: Regenerated. - * generated/in_unpack_i8.c: Regenerated. - * generated/maxloc1_16_i4.c: Regenerated. - * generated/minloc1_4_i8.c: Regenerated. - * generated/eoshift3_4.c: Regenerated. - * generated/maxloc1_8_r10.c: Regenerated. - * generated/matmul_i8.c: Regenerated. - * generated/matmul_i4.c: Regenerated. - * generated/reshape_i16.c: Regenerated. - * generated/matmul_i2.c: Regenerated. - * generated/transpose_r8.c: Regenerated. - * generated/transpose_r4.c: Regenerated. - * generated/cshift1_16.c: Regenerated. - * generated/maxloc1_4_r10.c: Regenerated. - * generated/iparity_i4.c: Regenerated. - * generated/in_pack_i4.c: Regenerated. - * generated/maxloc0_8_i2.c: Regenerated. - * generated/unpack_r4.c: Regenerated. - * generated/count_4_l.c: Regenerated. - * generated/maxloc1_4_r4.c: Regenerated. - * generated/minloc0_8_i8.c: Regenerated. - * generated/any_l2.c: Regenerated. - * generated/minloc0_8_i4.c: Regenerated. - * generated/pack_i8.c: Regenerated. - * generated/count_2_l.c: Regenerated. - * generated/reshape_c8.c: Regenerated. - * generated/maxval_i2.c: Regenerated. - * generated/minloc0_4_r8.c: Regenerated. - -2012-01-20 Tobias Burnus - - PR libgfortran/51899 - * configure.ac: Check whether umask is available. - * intrinsics/chmod.c (chmod_func): Make compile with MinGW. - * configure: Regenerate. - * config.h.in: Regenerate. - -2012-01-12 Tobias Burnus - - PR fortran/36755 - * intrinsics/chmod.c (chmod_func): Replace call to /bin/chmod - -2012-01-12 Janne Blomqvist - - * configure.ac: Remove check for fdopen. - * runtime/backtrace.c (CAN_PIPE): Fix comment, remove check for - fdopen. - * configure: Regenerated. - * config.h.in: Regenerated. - -2012-01-12 Janne Blomqvist - Tobias Burnus - - PR libfortran/51803 - * runtime/main.c (store_exe_path): Avoid malloc if getcwd fails or - is not available. - -2012-01-11 Tobias Burnus - - * runtime/main.c (store_exe_path): Fix absolute path - detection for Windows. - -2012-01-11 Janne Blomqvist - Mike Stump - - PR libfortran/51803 - * runtime/main.c (store_exe_path): Handle getcwd failure and lack - of the function better. - -2012-01-10 Tobias Burnus - - PR fortran/51197 - * runtime/compile_options.c (show_signal): List - more signals. - -2012-01-09 Harald Anlauf - Tobias Burnus - - PR fortran/51197 - * runtime/backtrace.c (show_backtrace): Modify wording written - before the backtrace. - * runtime/compile_options.c (show_signal): New function. - (backtrace_handler): Use it. - -2012-01-09 Rainer Orth - - * Makefile.am (libgfortran_la_LDFLAGS): Add -Wc,-shared-libgcc. - * Makefile.in: Regenerate. - -2012-01-06 Tobias Burnus - - * caf/single.c (_gfortran_caf_register, _gfortran_caf_deregister): - Fix token handling. - * caf/mpi.c (_gfortran_caf_register, _gfortran_caf_deregister): Ditto. - * caf/libcaf.h (STAT_STOPPED_IMAGE): Sync with libgfortran.h. - (_gfortran_caf_register, _gfortran_caf_deregister): Update prototype. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/libgfortran/ChangeLog-2012 b/libgfortran/ChangeLog-2012 new file mode 100644 index 00000000000..fa651f9264c --- /dev/null +++ b/libgfortran/ChangeLog-2012 @@ -0,0 +1,1276 @@ +2012-12-27 Jerry DeLisle + + PR libfortran/48976 + * io/inquire.c (inquire_via_unit): Set user stream inquiry variable to + appropriate value based on unit access method. (inquire_via_filename): + Since filename is not associated with an open unit, set stream inquiry + to UNKNOWN. + * io/io.h: Define inquire stream parameters. + +2012-12-26 Jerry DeLisle + + PR libfortran/48960 + * io/open.c (st_parameter_open): Assign newunit number to user + variable only if the the associated open statement is successful. + +2012-12-26 Janne Blomqvist + + PR fortran/55539 + * io/write_float.def (output_float): Take into account decimal + dot. + +2012-12-21 Thomas Koenig + + PR libfortran/30162 + * io/unix.c (raw_tell): If the lseek is done on a + non-seekable file, return 0. + +2012-12-20 Janus Weil + + PR fortran/36044 + * gfortran.map: Add _gfortran_backtrace. + * libgfortran.h: Rename 'show_backtrace' and export. + * runtime/backtrace.c (show_backtrace): Rename to 'backtrace'. + Don't show message. Close file descriptor. Export. + * runtime/compile_options.c (backtrace_handler): Renamed + 'show_backtrace'. Move message outside. + * runtime/error.c (sys_abort): Ditto. + +2012-12-19 Paul Thomas + + * intrinsics/extends_type_of.c : Return correct results for + null vptrs. + +2012-12-03 Janus Weil + + PR fortran/55548 + * intrinsics/system_clock.c (gf_gettime_mono): Add argument 'tck', + which returns the clock resolution. + (system_clock_4): Get resolution from gf_gettime_mono, but limit to + 1000/s. + (system_clock_8): Get resolution from gf_gettime_mono. + +2012-10-28 Tobias Burnus + + * m4/bessel.m4: Remove useless statement. + * m4/ifunction.m4: Remove unreachable code. + * generated/bessel_r10.c: Regenerated. + * generated/bessel_r16.c: Regenerated. + * generated/bessel_r4.c: Regenerated. + * generated/bessel_r8.c: Regenerated. + * generated/iall_i1.c: Regenerated. + * generated/iall_i16.c: Regenerated. + * generated/iall_i2.c: Regenerated. + * generated/iall_i4.c: Regenerated. + * generated/iall_i8.c: Regenerated. + * generated/iany_i1.c: Regenerated. + * generated/iany_i16.c: Regenerated. + * generated/iany_i2.c: Regenerated. + * generated/iany_i4.c: Regenerated. + * generated/iany_i8.c: Regenerated. + * generated/iparity_i1.c: Regenerated. + * generated/iparity_i16.c: Regenerated. + * generated/iparity_i2.c: Regenerated. + * generated/iparity_i4.c: Regenerated. + * generated/iparity_i8.c: Regenerated. + * generated/maxloc1_16_i1.c: Regenerated. + * generated/maxloc1_16_i16.c: Regenerated. + * generated/maxloc1_16_i2.c: Regenerated. + * generated/maxloc1_16_i4.c: Regenerated. + * generated/maxloc1_16_i8.c: Regenerated. + * generated/maxloc1_16_r10.c: Regenerated. + * generated/maxloc1_16_r16.c: Regenerated. + * generated/maxloc1_16_r4.c: Regenerated. + * generated/maxloc1_16_r8.c: Regenerated. + * generated/maxloc1_4_i1.c: Regenerated. + * generated/maxloc1_4_i16.c: Regenerated. + * generated/maxloc1_4_i2.c: Regenerated. + * generated/maxloc1_4_i4.c: Regenerated. + * generated/maxloc1_4_i8.c: Regenerated. + * generated/maxloc1_4_r10.c: Regenerated. + * generated/maxloc1_4_r16.c: Regenerated. + * generated/maxloc1_4_r4.c: Regenerated. + * generated/maxloc1_4_r8.c: Regenerated. + * generated/maxloc1_8_i1.c: Regenerated. + * generated/maxloc1_8_i16.c: Regenerated. + * generated/maxloc1_8_i2.c: Regenerated. + * generated/maxloc1_8_i4.c: Regenerated. + * generated/maxloc1_8_i8.c: Regenerated. + * generated/maxloc1_8_r10.c: Regenerated. + * generated/maxloc1_8_r16.c: Regenerated. + * generated/maxloc1_8_r4.c: Regenerated. + * generated/maxloc1_8_r8.c: Regenerated. + * generated/maxval_i1.c: Regenerated. + * generated/maxval_i16.c: Regenerated. + * generated/maxval_i2.c: Regenerated. + * generated/maxval_i4.c: Regenerated. + * generated/maxval_i8.c: Regenerated. + * generated/maxval_r10.c: Regenerated. + * generated/maxval_r16.c: Regenerated. + * generated/maxval_r4.c: Regenerated. + * generated/maxval_r8.c: Regenerated. + * generated/minloc1_16_i1.c: Regenerated. + * generated/minloc1_16_i16.c: Regenerated. + * generated/minloc1_16_i2.c: Regenerated. + * generated/minloc1_16_i4.c: Regenerated. + * generated/minloc1_16_i8.c: Regenerated. + * generated/minloc1_16_r10.c: Regenerated. + * generated/minloc1_16_r16.c: Regenerated. + * generated/minloc1_16_r4.c: Regenerated. + * generated/minloc1_16_r8.c: Regenerated. + * generated/minloc1_4_i1.c: Regenerated. + * generated/minloc1_4_i16.c: Regenerated. + * generated/minloc1_4_i2.c: Regenerated. + * generated/minloc1_4_i4.c: Regenerated. + * generated/minloc1_4_i8.c: Regenerated. + * generated/minloc1_4_r10.c: Regenerated. + * generated/minloc1_4_r16.c: Regenerated. + * generated/minloc1_4_r4.c: Regenerated. + * generated/minloc1_4_r8.c: Regenerated. + * generated/minloc1_8_i1.c: Regenerated. + * generated/minloc1_8_i16.c: Regenerated. + * generated/minloc1_8_i2.c: Regenerated. + * generated/minloc1_8_i4.c: Regenerated. + * generated/minloc1_8_i8.c: Regenerated. + * generated/minloc1_8_r10.c: Regenerated. + * generated/minloc1_8_r16.c: Regenerated. + * generated/minloc1_8_r4.c: Regenerated. + * generated/minloc1_8_r8.c: Regenerated. + * generated/minval_i1.c: Regenerated. + * generated/minval_i16.c: Regenerated. + * generated/minval_i2.c: Regenerated. + * generated/minval_i4.c: Regenerated. + * generated/minval_i8.c: Regenerated. + * generated/minval_r10.c: Regenerated. + * generated/minval_r16.c: Regenerated. + * generated/minval_r4.c: Regenerated. + * generated/minval_r8.c: Regenerated. + * generated/product_c10.c: Regenerated. + * generated/product_c16.c: Regenerated. + * generated/product_c4.c: Regenerated. + * generated/product_c8.c: Regenerated. + * generated/product_i1.c: Regenerated. + * generated/product_i16.c: Regenerated. + * generated/product_i2.c: Regenerated. + * generated/product_i4.c: Regenerated. + * generated/product_i8.c: Regenerated. + * generated/product_r10.c: Regenerated. + * generated/product_r16.c: Regenerated. + * generated/product_r4.c: Regenerated. + * generated/product_r8.c: Regenerated. + * generated/sum_c10.c: Regenerated. + * generated/sum_c16.c: Regenerated. + * generated/sum_c4.c: Regenerated. + * generated/sum_c8.c: Regenerated. + * generated/sum_i1.c: Regenerated. + * generated/sum_i16.c: Regenerated. + * generated/sum_i2.c: Regenerated. + * generated/sum_i4.c: Regenerated. + * generated/sum_i8.c: Regenerated. + * generated/sum_r10.c: Regenerated. + * generated/sum_r16.c: Regenerated. + * generated/sum_r4.c: Regenerated. + * generated/sum_r8.c: Regenerated. + +2012-10-10 Tobias Burnus + + PR fortran/54878 + * io/unix.c (tempfile_open): Set umask before calling mkstemp. + +2012-10-06 Janne Blomqvist + + * configure.ac: Check for presence of secure_getenv. + * libgfortran.h: Use HAVE_SECURE_GETENV. + * Makefile.in: Regenerated. + * aclocal.m4: Regenerated. + * config.h.in: Regenerated. + * configure: Regenerated. + +2012-10-06 Thomas König + + PR libfortran/54736 + * runtime/environ.c (search_unit): Correct logic + for binary search. + (mark_single): Fix index errors. + +2012-09-29 Thomas König + + PR fortran/52724 + * list_read.c (next_char): Handle kind=4 characters. + * unix.c (open_internal4): Correct lenth of internal file. + +2012-09-14 David Edelsohn + + * configure: Regenerated. + +2012-09-05 Uros Bizjak + + * config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v. + +2012-07-25 Andreas Schwab + + * io/list_read.c (list_formatted_read_scalar): Fix copying real + value back to temporary. + +2012-06-21 Janne Blomqvist + + PR fortran/39654 + * io/intrinsics.c (ftell2): New function. + * gfortran.map (_gfortran_ftell2): Export function. + +2012-06-04 Robert Mason + Janne Blomqvist + + PR fortran/53456 + * intrinsics/time_1.h (gf_cputime): Fix typo in clock_gettime branch. + +2012-06-01 Tobias Burnus + + * intrinsics/chmod.c (chmod_func): On MinGW, don't set is_dir and + fix octal-mode handling. + * io/unit.c (get_internal_unit): Add cast. + * io/unix.c (min): Undef "min" before defining it. + * runtime/backtrace.c (show_backtrace): Move label into + ifndef __MINGW__ block. + +2012-05-31 Benjamin Kosnik + + PR libstdc++/51007 + * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument. + * configure: Regenerated. + +2012-05-31 Tobias Burnus + + Revert: + 2012-05-16 Tobias Burnus + + * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT. + +2012-05-30 Tobias Burnus + + * io/io.h: Fix comment typos. + * io/list_read.c: Ditto. + +2012-05-27 Janne Blomqvist + + * intrinsics/time_1.h (gf_cputime): Don't reevaluate HZ expression + for times fallback, clarify operation ordering for times and clock + fallbacks. + (gf_gettime): Fix comment typo. + +2012-05-24 Janne Blomqvist + + PR fortran/53456 + * intrinsics/time_1.h (gf_cputime): Fallback for clock_gettime. + +2012-05-23 Janne Blomqvist + + PR fortran/53456 + * intrinsics/time_1.h (gf_gettime): Fallback for clock_gettime. + +2012-05-23 Robert Mason + Tobias Burnus + + PR libfortran/53445 + * intrinsics/chmod.c (chmod_func): Ignore S_ISVTX on VxWorks. + +2012-05-23 Tobias Burnus + + PR libfortran/53444 + * acinclude.m4 (LIBGFOR_CHECK_STRERROR_R): Add configure checks for + two- and three-argument versions of strerror_r. + * configure.ac (LIBGFOR_CHECK_STRERROR_R): Use it. + * runtime/error.c (gf_strerror): Handle two-argument version + of strerror_r. + * config.h.in: Regenerate. + * configure: Regenerate. + +2012-05-16 H.J. Lu + + * configure: Regenerated. + +2012-05-16 Tobias Burnus + + * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT. + +2012-05-14 Janne Blomqvist + + PR fortran/52428 + * io/io.h (max_value): Rename to si_max, remove second argument. + * io/list_read.c (convert_integer): Use unsigned types when + parsing the digits, set max value depending on the sign. + * io/read.c (max_value): Rename to si_max, remove second argument, + simplify. + (read_decimal): Set max value depending on sign, always check + overflow. + (read_radix): Calculate max unsigned value directly. + * libgfortran.h (struct compile_options_t): Remove range_check + field. + * runtime/compile_options.c (set_options): Skip handling + options[7]. + (init_compile_options): Don't set removed field. + +2012-05-11 Tobias Burnus + + PR fortran/53310 + * intrinsics/eoshift2.c (eoshift2): Do not leak + memory by allocating it in the loop. + +2012-05-05 Janne Blomqvist + + * config.h.in: Regenerated. + * configure: Regenerated. + * configure.ac: Add checks for getegid and __secure_getenv. + * io/unix.c (P_tmpdir): Fallback definition for macro. + (tempfile_open): New function. + (tempfile): Use secure_getenv, call tempfile_open to try each + directory in turn. + * libgfortran.h (DEFAULT_TMPDIR): Remove macro. + (secure_getenv): New macro/prototype. + * runtime/environ.c (secure_getenv): New function. + (variable_table): Rename GFORTRAN_TMPDIR to TMPDIR. + * runtime/main.c (find_addr2line): Use secure_getenv. + +2012-04-22 Tobias Burnus + + PR fortran/53051 + * io/list_read.c (parse_real): Support "q" for the + exponential. + * io/read.c (read_f): Ditto. + +2012-04-17 Tobias Burnus + + PR libfortran/38199 + PR libfortran/50673 + * io/unit.c (get_internal_unit): Properly check for the presence + of the format string. + +2012-04-15 Thomas Koenig + + PR libfortran/38199 + PR libfortran/50673 + * intrinsics/string_intriniscs_inc.c (string_len_trim): + Remove prototypes for string_len_trim and move to... + * libgfortran.h (string_len_trim): ... here and + (string_len_trim_char4): ...here. + * io/unit.c: For non-array internal arrays where we do reading, + adjust the record length to the last non-blank character. + * io/unix.c: Fix typo. + +2012-04-10 Michael Matz + + * m4/cshift0.m4 (cshift0_'rtype_code`): Guard use of modulo. + + * generated/cshift0_c10.c: Regenerated. + * generated/cshift0_c16.c: Regenerated. + * generated/cshift0_c4.c: Regenerated. + * generated/cshift0_c8.c: Regenerated. + * generated/cshift0_i16.c: Regenerated. + * generated/cshift0_i1.c: Regenerated. + * generated/cshift0_i2.c: Regenerated. + * generated/cshift0_i4.c: Regenerated. + * generated/cshift0_i8.c: Regenerated. + * generated/cshift0_r10.c: Regenerated. + * generated/cshift0_r16.c: Regenerated. + * generated/cshift0_r4.c: Regenerated. + * generated/cshift0_r8.c: Regenerated. + +2012-04-04 Tristan Gingold + + * libgfortran.h: Include complex.h before math.h + +2012-04-02 Tristan Gingold + + * configure.ac: Use new version of GCC_CHECK_MATH_FUNC. + * configure: Regenerate + * config.h.in: Regenerate. + +2012-03-30 Uros Bizjak + + PR libgfortran/52758 + * intrinsics/chmod.c (chmod_func): Remove out-of-bounds + initialization of rwxXstugo. + +2012-03-27 Tristan Gingold + + * configure.ac: Add description to AC_DEFINE in + GCC_CHECK_MATH_FUNC. + * configure: Regenerate + * config.h.in: Regenerate. + +2012-03-26 Janne Blomqvist + + * runtime/memory.c (get_mem): Rename to xmalloc, check for zero + size. + (internal_malloc_size): Remove. + * libgfortran.h (get_mem): Rename to xmalloc. + (internal_malloc_size): Remove prototype. + * Makefile.am (i_iall_c): Fix dependency. + (i_iany_c): Likewise. + (i_iparity_c): Likewise. + (i_norm2_c): Likewise. + (i_parity_c): Likewise. + * Makefile.in: Regenerated. + * m4/parity.m4: Fix typo in comment. + * generated/all_l1.c: Regenerated. + * generated/all_l16.c: Regenerated. + * generated/all_l2.c: Regenerated. + * generated/all_l4.c: Regenerated. + * generated/all_l8.c: Regenerated. + * generated/any_l1.c: Regenerated. + * generated/any_l16.c: Regenerated. + * generated/any_l2.c: Regenerated. + * generated/any_l4.c: Regenerated. + * generated/any_l8.c: Regenerated. + * generated/bessel_r10.c: Regenerated. + * generated/bessel_r16.c: Regenerated. + * generated/bessel_r4.c: Regenerated. + * generated/bessel_r8.c: Regenerated. + * generated/count_16_l.c: Regenerated. + * generated/count_1_l.c: Regenerated. + * generated/count_2_l.c: Regenerated. + * generated/count_4_l.c: Regenerated. + * generated/count_8_l.c: Regenerated. + * generated/cshift1_16.c: Regenerated. + * generated/cshift1_4.c: Regenerated. + * generated/cshift1_8.c: Regenerated. + * generated/eoshift1_16.c: Regenerated. + * generated/eoshift1_4.c: Regenerated. + * generated/eoshift1_8.c: Regenerated. + * generated/eoshift3_16.c: Regenerated. + * generated/eoshift3_4.c: Regenerated. + * generated/eoshift3_8.c: Regenerated. + * generated/iall_i1.c: Regenerated. + * generated/iall_i16.c: Regenerated. + * generated/iall_i2.c: Regenerated. + * generated/iall_i4.c: Regenerated. + * generated/iall_i8.c: Regenerated. + * generated/iany_i1.c: Regenerated. + * generated/iany_i16.c: Regenerated. + * generated/iany_i2.c: Regenerated. + * generated/iany_i4.c: Regenerated. + * generated/iany_i8.c: Regenerated. + * generated/in_pack_c10.c: Regenerated. + * generated/in_pack_c16.c: Regenerated. + * generated/in_pack_c4.c: Regenerated. + * generated/in_pack_c8.c: Regenerated. + * generated/in_pack_i1.c: Regenerated. + * generated/in_pack_i16.c: Regenerated. + * generated/in_pack_i2.c: Regenerated. + * generated/in_pack_i4.c: Regenerated. + * generated/in_pack_i8.c: Regenerated. + * generated/in_pack_r10.c: Regenerated. + * generated/in_pack_r16.c: Regenerated. + * generated/in_pack_r4.c: Regenerated. + * generated/in_pack_r8.c: Regenerated. + * generated/iparity_i1.c: Regenerated. + * generated/iparity_i16.c: Regenerated. + * generated/iparity_i2.c: Regenerated. + * generated/iparity_i4.c: Regenerated. + * generated/iparity_i8.c: Regenerated. + * generated/matmul_c10.c: Regenerated. + * generated/matmul_c16.c: Regenerated. + * generated/matmul_c4.c: Regenerated. + * generated/matmul_c8.c: Regenerated. + * generated/matmul_i1.c: Regenerated. + * generated/matmul_i16.c: Regenerated. + * generated/matmul_i2.c: Regenerated. + * generated/matmul_i4.c: Regenerated. + * generated/matmul_i8.c: Regenerated. + * generated/matmul_l16.c: Regenerated. + * generated/matmul_l4.c: Regenerated. + * generated/matmul_l8.c: Regenerated. + * generated/matmul_r10.c: Regenerated. + * generated/matmul_r16.c: Regenerated. + * generated/matmul_r4.c: Regenerated. + * generated/matmul_r8.c: Regenerated. + * generated/maxloc0_16_i1.c: Regenerated. + * generated/maxloc0_16_i16.c: Regenerated. + * generated/maxloc0_16_i2.c: Regenerated. + * generated/maxloc0_16_i4.c: Regenerated. + * generated/maxloc0_16_i8.c: Regenerated. + * generated/maxloc0_16_r10.c: Regenerated. + * generated/maxloc0_16_r16.c: Regenerated. + * generated/maxloc0_16_r4.c: Regenerated. + * generated/maxloc0_16_r8.c: Regenerated. + * generated/maxloc0_4_i1.c: Regenerated. + * generated/maxloc0_4_i16.c: Regenerated. + * generated/maxloc0_4_i2.c: Regenerated. + * generated/maxloc0_4_i4.c: Regenerated. + * generated/maxloc0_4_i8.c: Regenerated. + * generated/maxloc0_4_r10.c: Regenerated. + * generated/maxloc0_4_r16.c: Regenerated. + * generated/maxloc0_4_r4.c: Regenerated. + * generated/maxloc0_4_r8.c: Regenerated. + * generated/maxloc0_8_i1.c: Regenerated. + * generated/maxloc0_8_i16.c: Regenerated. + * generated/maxloc0_8_i2.c: Regenerated. + * generated/maxloc0_8_i4.c: Regenerated. + * generated/maxloc0_8_i8.c: Regenerated. + * generated/maxloc0_8_r10.c: Regenerated. + * generated/maxloc0_8_r16.c: Regenerated. + * generated/maxloc0_8_r4.c: Regenerated. + * generated/maxloc0_8_r8.c: Regenerated. + * generated/maxloc1_16_i1.c: Regenerated. + * generated/maxloc1_16_i16.c: Regenerated. + * generated/maxloc1_16_i2.c: Regenerated. + * generated/maxloc1_16_i4.c: Regenerated. + * generated/maxloc1_16_i8.c: Regenerated. + * generated/maxloc1_16_r10.c: Regenerated. + * generated/maxloc1_16_r16.c: Regenerated. + * generated/maxloc1_16_r4.c: Regenerated. + * generated/maxloc1_16_r8.c: Regenerated. + * generated/maxloc1_4_i1.c: Regenerated. + * generated/maxloc1_4_i16.c: Regenerated. + * generated/maxloc1_4_i2.c: Regenerated. + * generated/maxloc1_4_i4.c: Regenerated. + * generated/maxloc1_4_i8.c: Regenerated. + * generated/maxloc1_4_r10.c: Regenerated. + * generated/maxloc1_4_r16.c: Regenerated. + * generated/maxloc1_4_r4.c: Regenerated. + * generated/maxloc1_4_r8.c: Regenerated. + * generated/maxloc1_8_i1.c: Regenerated. + * generated/maxloc1_8_i16.c: Regenerated. + * generated/maxloc1_8_i2.c: Regenerated. + * generated/maxloc1_8_i4.c: Regenerated. + * generated/maxloc1_8_i8.c: Regenerated. + * generated/maxloc1_8_r10.c: Regenerated. + * generated/maxloc1_8_r16.c: Regenerated. + * generated/maxloc1_8_r4.c: Regenerated. + * generated/maxloc1_8_r8.c: Regenerated. + * generated/maxval_i1.c: Regenerated. + * generated/maxval_i16.c: Regenerated. + * generated/maxval_i2.c: Regenerated. + * generated/maxval_i4.c: Regenerated. + * generated/maxval_i8.c: Regenerated. + * generated/maxval_r10.c: Regenerated. + * generated/maxval_r16.c: Regenerated. + * generated/maxval_r4.c: Regenerated. + * generated/maxval_r8.c: Regenerated. + * generated/minloc0_16_i1.c: Regenerated. + * generated/minloc0_16_i16.c: Regenerated. + * generated/minloc0_16_i2.c: Regenerated. + * generated/minloc0_16_i4.c: Regenerated. + * generated/minloc0_16_i8.c: Regenerated. + * generated/minloc0_16_r10.c: Regenerated. + * generated/minloc0_16_r16.c: Regenerated. + * generated/minloc0_16_r4.c: Regenerated. + * generated/minloc0_16_r8.c: Regenerated. + * generated/minloc0_4_i1.c: Regenerated. + * generated/minloc0_4_i16.c: Regenerated. + * generated/minloc0_4_i2.c: Regenerated. + * generated/minloc0_4_i4.c: Regenerated. + * generated/minloc0_4_i8.c: Regenerated. + * generated/minloc0_4_r10.c: Regenerated. + * generated/minloc0_4_r16.c: Regenerated. + * generated/minloc0_4_r4.c: Regenerated. + * generated/minloc0_4_r8.c: Regenerated. + * generated/minloc0_8_i1.c: Regenerated. + * generated/minloc0_8_i16.c: Regenerated. + * generated/minloc0_8_i2.c: Regenerated. + * generated/minloc0_8_i4.c: Regenerated. + * generated/minloc0_8_i8.c: Regenerated. + * generated/minloc0_8_r10.c: Regenerated. + * generated/minloc0_8_r16.c: Regenerated. + * generated/minloc0_8_r4.c: Regenerated. + * generated/minloc0_8_r8.c: Regenerated. + * generated/minloc1_16_i1.c: Regenerated. + * generated/minloc1_16_i16.c: Regenerated. + * generated/minloc1_16_i2.c: Regenerated. + * generated/minloc1_16_i4.c: Regenerated. + * generated/minloc1_16_i8.c: Regenerated. + * generated/minloc1_16_r10.c: Regenerated. + * generated/minloc1_16_r16.c: Regenerated. + * generated/minloc1_16_r4.c: Regenerated. + * generated/minloc1_16_r8.c: Regenerated. + * generated/minloc1_4_i1.c: Regenerated. + * generated/minloc1_4_i16.c: Regenerated. + * generated/minloc1_4_i2.c: Regenerated. + * generated/minloc1_4_i4.c: Regenerated. + * generated/minloc1_4_i8.c: Regenerated. + * generated/minloc1_4_r10.c: Regenerated. + * generated/minloc1_4_r16.c: Regenerated. + * generated/minloc1_4_r4.c: Regenerated. + * generated/minloc1_4_r8.c: Regenerated. + * generated/minloc1_8_i1.c: Regenerated. + * generated/minloc1_8_i16.c: Regenerated. + * generated/minloc1_8_i2.c: Regenerated. + * generated/minloc1_8_i4.c: Regenerated. + * generated/minloc1_8_i8.c: Regenerated. + * generated/minloc1_8_r10.c: Regenerated. + * generated/minloc1_8_r16.c: Regenerated. + * generated/minloc1_8_r4.c: Regenerated. + * generated/minloc1_8_r8.c: Regenerated. + * generated/minval_i1.c: Regenerated. + * generated/minval_i16.c: Regenerated. + * generated/minval_i2.c: Regenerated. + * generated/minval_i4.c: Regenerated. + * generated/minval_i8.c: Regenerated. + * generated/minval_r10.c: Regenerated. + * generated/minval_r16.c: Regenerated. + * generated/minval_r4.c: Regenerated. + * generated/minval_r8.c: Regenerated. + * generated/norm2_r10.c: Regenerated. + * generated/norm2_r16.c: Regenerated. + * generated/norm2_r4.c: Regenerated. + * generated/norm2_r8.c: Regenerated. + * generated/pack_c10.c: Regenerated. + * generated/pack_c16.c: Regenerated. + * generated/pack_c4.c: Regenerated. + * generated/pack_c8.c: Regenerated. + * generated/pack_i1.c: Regenerated. + * generated/pack_i16.c: Regenerated. + * generated/pack_i2.c: Regenerated. + * generated/pack_i4.c: Regenerated. + * generated/pack_i8.c: Regenerated. + * generated/pack_r10.c: Regenerated. + * generated/pack_r16.c: Regenerated. + * generated/pack_r4.c: Regenerated. + * generated/pack_r8.c: Regenerated. + * generated/parity_l1.c: Regenerated. + * generated/parity_l16.c: Regenerated. + * generated/parity_l2.c: Regenerated. + * generated/parity_l4.c: Regenerated. + * generated/parity_l8.c: Regenerated. + * generated/product_c10.c: Regenerated. + * generated/product_c16.c: Regenerated. + * generated/product_c4.c: Regenerated. + * generated/product_c8.c: Regenerated. + * generated/product_i1.c: Regenerated. + * generated/product_i16.c: Regenerated. + * generated/product_i2.c: Regenerated. + * generated/product_i4.c: Regenerated. + * generated/product_i8.c: Regenerated. + * generated/product_r10.c: Regenerated. + * generated/product_r16.c: Regenerated. + * generated/product_r4.c: Regenerated. + * generated/product_r8.c: Regenerated. + * generated/reshape_c10.c: Regenerated. + * generated/reshape_c16.c: Regenerated. + * generated/reshape_c4.c: Regenerated. + * generated/reshape_c8.c: Regenerated. + * generated/reshape_i16.c: Regenerated. + * generated/reshape_i4.c: Regenerated. + * generated/reshape_i8.c: Regenerated. + * generated/reshape_r10.c: Regenerated. + * generated/reshape_r16.c: Regenerated. + * generated/reshape_r4.c: Regenerated. + * generated/reshape_r8.c: Regenerated. + * generated/shape_i16.c: Regenerated. + * generated/shape_i4.c: Regenerated. + * generated/shape_i8.c: Regenerated. + * generated/spread_c10.c: Regenerated. + * generated/spread_c16.c: Regenerated. + * generated/spread_c4.c: Regenerated. + * generated/spread_c8.c: Regenerated. + * generated/spread_i1.c: Regenerated. + * generated/spread_i16.c: Regenerated. + * generated/spread_i2.c: Regenerated. + * generated/spread_i4.c: Regenerated. + * generated/spread_i8.c: Regenerated. + * generated/spread_r10.c: Regenerated. + * generated/spread_r16.c: Regenerated. + * generated/spread_r4.c: Regenerated. + * generated/spread_r8.c: Regenerated. + * generated/sum_c10.c: Regenerated. + * generated/sum_c16.c: Regenerated. + * generated/sum_c4.c: Regenerated. + * generated/sum_c8.c: Regenerated. + * generated/sum_i1.c: Regenerated. + * generated/sum_i16.c: Regenerated. + * generated/sum_i2.c: Regenerated. + * generated/sum_i4.c: Regenerated. + * generated/sum_i8.c: Regenerated. + * generated/sum_r10.c: Regenerated. + * generated/sum_r16.c: Regenerated. + * generated/sum_r4.c: Regenerated. + * generated/sum_r8.c: Regenerated. + * generated/transpose_c10.c: Regenerated. + * generated/transpose_c16.c: Regenerated. + * generated/transpose_c4.c: Regenerated. + * generated/transpose_c8.c: Regenerated. + * generated/transpose_i16.c: Regenerated. + * generated/transpose_i4.c: Regenerated. + * generated/transpose_i8.c: Regenerated. + * generated/transpose_r10.c: Regenerated. + * generated/transpose_r16.c: Regenerated. + * generated/transpose_r4.c: Regenerated. + * generated/transpose_r8.c: Regenerated. + * generated/unpack_c10.c: Regenerated. + * generated/unpack_c16.c: Regenerated. + * generated/unpack_c4.c: Regenerated. + * generated/unpack_c8.c: Regenerated. + * generated/unpack_i1.c: Regenerated. + * generated/unpack_i16.c: Regenerated. + * generated/unpack_i2.c: Regenerated. + * generated/unpack_i4.c: Regenerated. + * generated/unpack_i8.c: Regenerated. + * generated/unpack_r10.c: Regenerated. + * generated/unpack_r16.c: Regenerated. + * generated/unpack_r4.c: Regenerated. + * generated/unpack_r8.c: Regenerated. + * intrinsics/cshift0.c: Use xmalloc. + * intrinsics/ctime.c: Likewise. + * intrinsics/date_and_time.c: Likewise. + * intrinsics/eoshift0.c: Likewise. + * intrinsics/eoshift2.c: Likewise. + * intrinsics/getlog.c: Likewise. + * intrinsics/pack_generic.c: Likewise. + * intrinsics/reshape_generic.c: Likewise. + * intrinsics/spread_generic.c: Likewise. + * intrinsics/string_intrinsics_inc.c: Likewise. + * intrinsics/transpose_generic.c: Likewise. + * intrinsics/unpack_generic.c: Likewise. + * io/fbuf.c: Likewise. + * io/format.c: Likewise. + * io/intrinsics.c: Likewise. + * io/list_read.c: Likewise. + * io/open.c: Likewise. + * io/transfer.c: Likewise. + * io/unit.c: Likewise. + * io/unix.c: Likewise. + * io/write.c: Likewise. + * m4/bessel.m4: Likewise. + * m4/cshift1.m4: Likewise. + * m4/eoshift1.m4: Likewise. + * m4/eoshift3.m4: Likewise. + * m4/iforeach.m4: Likewise. + * m4/ifunction.m4: Likewise. + * m4/ifunction_logical.m4: Likewise. + * m4/in_pack.m4: Likewise. + * m4/matmul.m4: Likewise. + * m4/matmull.m4: Likewise. + * m4/pack.m4: Likewise. + * m4/reshape.m4: Likewise. + * m4/shape.m4: Likewise. + * m4/spread.m4: Likewise. + * m4/transpose.m4: Likewise. + * m4/unpack.m4: Likewise. + * runtime/convert_char.c: Likewise. + * runtime/environ.c: Likewise. + * runtime/in_pack_generic.c: Likewise. + +2012-03-26 Tristan Gingold + + * configure.ac: Use GCC_CHECK_MATH_FUNC for math functions. + * acinclude.m4: Include ../config/math.m4 + * configure: Regenerate. + * Makefile.in: Regenerate. + +2012-03-25 Janne Blomqvist + + * runtime/memory.c (xcalloc): New function. + * libgfortran.h (xcalloc): New prototype. + * io/list_read.c (push_char): Use xcalloc instead of get_mem and + memset. + (l_push_char): Likewise. + * io/unit.c (insert_unit): Likewise. + (get_internal_unit): Likewise. + * io/unix.c (open_internal): Likewise. + (open_internal4): Likewise. + (fd_to_stream): Likewise. + +2012-03-17 Janne Blomqvist + + PR libfortran/52608 + * io/write_float.def (output_float): Move removal of initial zeros + until after the scale factor has been applied. + +2012-03-16 Janne Blomqvist + + * io/unix.h (struct stream): Rename to stream_vtable. + (struct stream): New struct definition. + (sread): Dereference vtable pointer. + (swrite): Likewise. + (sseek): Likewise. + (struncate): Likewise. + (sflush): Likewise. + (sclose): Likewise. + * io/unix.c (raw_vtable): New variable. + (buf_vtable): Likewise. + (mem_vtable): Likewise. + (mem4_vtable): Likewise. + (raw_init): Assign vtable pointer. + (buf_init): Likewise. + (open_internal): Likewise. + (open_internal4): Likewise. + +2012-03-15 Janne Blomqvist + + PR libfortran/52434 + PR libfortran/48878 + PR libfortran/38199 + * io/unit.c (get_internal_unit): Default to ROUND_UNSPECIFIED. + (init_units): Likewise. + * io/write_float.def (determine_precision): New function. + (output_float): Take into account buffer with %f format, no need + for our own rounding if unspecified or processor specified + rounding. + (DTOA): Simplify format string, add parameters. + (FDTOA): New macros similar to DTOA, but using %f format. + (OUTPUT_FLOAT_FMT_G): Stack allocate newf, determine correct + precision and fill buffer. + (EN_PREC): New macro. + (determine_en_precision): New function. + (WRITE_FLOAT): For G format, move buffer filling into + output_float_FMT_G, use FDTOA for F format. + (write_float): Increase buffer due to F format. + +2012-03-14 Rainer Orth + + * intrinsics/c99_functions.c [__sgi__ && !HAVE_COMPLEX_H]: Remove. + +2012-03-12 Rainer Orth + + * configure.ac: Remove Tru64 reference. + * acinclude.m4 (LIBGFOR_GTHREAD_WEAK): Remove alpha*-dec-osf* + handling. + * configure: Regenerate. + * intrinsics/c99_functions.c [__osf__]: Remove. + +2012-03-10 Tobias Burnus + + * libgfortran.h (descriptor_dimension, GFC_DIMENSION_LBOUND, + GFC_DIMENSION_EXTENT, GFC_DIMENSION_SET, GFC_DESCRIPTOR_DATA, + GFC_ARRAY_DESCRIPTOR): Rename _lbound to lower_bound and + data to base_addr. + * intrinsics/cshift0.c (size0, cshift0): Handle data to + base_addr rename. + * intrinsics/date_and_time.c (date_and_time, secnds, itime_i4, + itime_i8, gmtime_i4, gmtime_i8, ltime_i4, ltime_i8): Ditto. + * intrinsics/dtime.c (dtime_sub): Ditto. + * intrinsics/eoshift0.c (eoshift0): Ditto. + * intrinsics/eoshift2.c (eoshift2): Ditto. + * intrinsics/etime.c (etime_sub): Ditto. + * intrinsics/iso_c_binding.c (c_f_pointer_u0): Ditto. + * intrinsics/move_alloc.c (move_alloc): Ditto. + * intrinsics/pack_generic.c (pack_internal, pack, + pack_s_internal): Ditto. + * intrinsics/random.c (arandom_r4, arandom_r8, arandom_r10, + arandom_r16, random_seed_i4, random_seed_i8): Ditto. + * intrinsics/reshape_generic.c (reshape_internal): Ditto. + * intrinsics/spread_generic.c (spread_internal, + spread_internal_scalar, spread, spread_scalar): Ditto. + * intrinsics/stat.c (stat_i4_sub_0, stat_i8_sub_0, fstat_i4_sub, + fstat_i8_sub): Ditto. + * intrinsics/transpose_generic.c (transpose_internal): Ditto. + * intrinsics/unpack_generic.c (unpack_bounds, unpack_internal, + unpack1, unpack0, unpack0_char4): Ditto. + * m4/bessel.m4 (bessel_jn_r'rtype_kind`, bessel_yn_r'rtype_kind`): + Ditto. + * m4/cshift0.m4 (cshift0_'rtype_code`): Ditto. + * m4/cshift1.m4 (cshift1): Ditto. + * m4/eoshift1.m4 (eoshift1): Ditto. + * m4/eoshift3.m4 (eoshift3): Ditto. + * m4/iforeach.m4 (name`'rtype_qual`_'atype_code): Ditto. + * m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Ditto. + * m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Ditto. + * m4/in_pack.m4 (internal_pack_'rtype_ccode`): Ditto. + * m4/in_unpack.m4 (internal_unpack_'rtype_ccode`): Ditto. + * m4/matmul.m4 (matmul_'rtype_code`): Ditto. + * m4/matmull.m4 (matmul_'rtype_code`): Ditto. + * m4/pack.m4 (pack_'rtype_code`): Ditto. + * m4/reshape.m4 (reshape_'rtype_ccode`): Ditto. + * m4/shape.m4 (shape_'rtype_kind`): Ditto. + * m4/spread.m4 (spread_'rtype_code`): Ditto. + * m4/transpose.m4 (transpose_'rtype_code`): Ditto. + * m4/unpack.m4 (unpack0_'rtype_code`, unpack1_'rtype_code`): Ditto. + * runtime/bounds.c (count_0): Ditto. + * runtime/in_pack_generic.c (internal_pack): Ditto. + * runtime/in_unpack_generic.c (internal_unpack): Ditto. + * generated/cshift0_r4.c: Regenerated. + * generated/unpack_r8.c: Regenerated. + * generated/cshift0_c10.c: Regenerated. + * generated/in_unpack_i1.c: Regenerated. + * generated/eoshift1_16.c: Regenerated. + * generated/iany_i16.c: Regenerated. + * generated/reshape_i4.c: Regenerated. + * generated/parity_l16.c: Regenerated. + * generated/in_unpack_r16.c: Regenerated. + * generated/iparity_i1.c: Regenerated. + * generated/minloc0_16_r10.c: Regenerated. + * generated/minloc1_16_i8.c: Regenerated. + * generated/bessel_r8.c: Regenerated. + * generated/maxloc0_4_i8.c: Regenerated. + * generated/maxloc1_8_i1.c: Regenerated. + * generated/sum_c10.c: Regenerated. + * generated/maxloc0_8_r10.c: Regenerated. + * generated/unpack_r16.c: Regenerated. + * generated/maxloc1_16_i1.c: Regenerated. + * generated/minloc1_4_i1.c: Regenerated. + * generated/unpack_i4.c: Regenerated. + * generated/in_pack_i1.c: Regenerated. + * generated/cshift0_i1.c: Regenerated. + * generated/minloc0_16_i4.c: Regenerated. + * generated/minloc1_8_r8.c: Regenerated. + * generated/maxval_r8.c: Regenerated. + * generated/unpack_i2.c: Regenerated. + * generated/matmul_r16.c: Regenerated. + * generated/maxloc0_16_r8.c: Regenerated. + * generated/maxloc1_8_i16.c: Regenerated. + * generated/maxloc0_4_r4.c: Regenerated. + * generated/pack_c10.c: Regenerated. + * generated/in_unpack_c8.c: Regenerated. + * generated/maxloc1_8_i8.c: Regenerated. + * generated/in_pack_c16.c: Regenerated. + * generated/parity_l1.c: Regenerated. + * generated/in_pack_i2.c: Regenerated. + * generated/maxloc0_4_r8.c: Regenerated. + * generated/pack_r4.c: Regenerated. + * generated/matmul_r8.c: Regenerated. + * generated/pack_i1.c: Regenerated. + * generated/minloc0_16_r16.c: Regenerated. + * generated/cshift0_c8.c: Regenerated. + * generated/minloc1_4_i16.c: Regenerated. + * generated/minloc0_4_r4.c: Regenerated. + * generated/product_i2.c: Regenerated. + * generated/maxval_r10.c: Regenerated. + * generated/minloc0_16_r8.c: Regenerated. + * generated/in_pack_i8.c: Regenerated. + * generated/all_l8.c: Regenerated. + * generated/minloc0_8_i16.c: Regenerated. + * generated/minloc1_8_i2.c: Regenerated. + * generated/matmul_l8.c: Regenerated. + * generated/spread_r10.c: Regenerated. + * generated/product_c4.c: Regenerated. + * generated/reshape_r16.c: Regenerated. + * generated/cshift0_i16.c: Regenerated. + * generated/minloc1_8_r10.c: Regenerated. + * generated/iparity_i8.c: Regenerated. + * generated/minloc0_16_i8.c: Regenerated. + * generated/minloc1_8_i1.c: Regenerated. + * generated/maxloc0_16_r10.c: Regenerated. + * generated/maxloc1_8_i4.c: Regenerated. + * generated/maxloc0_16_i8.c: Regenerated. + * generated/maxloc1_16_i16.c: Regenerated. + * generated/reshape_i8.c: Regenerated. + * generated/all_l16.c: Regenerated. + * generated/cshift1_8.c: Regenerated. + * generated/matmul_c10.c: Regenerated. + * generated/pack_r16.c: Regenerated. + * generated/transpose_r10.c: Regenerated. + * generated/maxloc1_16_i2.c: Regenerated. + * generated/minloc1_4_r4.c: Regenerated. + * generated/reshape_r8.c: Regenerated. + * generated/product_r10.c: Regenerated. + * generated/spread_c10.c: Regenerated. + * generated/reshape_r4.c: Regenerated. + * generated/in_unpack_i4.c: Regenerated. + * generated/minval_r4.c: Regenerated. + * generated/minloc1_16_r16.c: Regenerated. + * generated/norm2_r8.c: Regenerated. + * generated/iany_i2.c: Regenerated. + * generated/eoshift3_8.c: Regenerated. + * generated/maxloc1_16_r8.c: Regenerated. + * generated/maxloc0_16_r16.c: Regenerated. + * generated/cshift0_i8.c: Regenerated. + * generated/all_l1.c: Regenerated. + * generated/minloc1_16_r10.c: Regenerated. + * generated/spread_i16.c: Regenerated. + * generated/minloc1_8_r16.c: Regenerated. + * generated/spread_r16.c: Regenerated. + * generated/matmul_c8.c: Regenerated. + * generated/pack_r10.c: Regenerated. + * generated/reshape_r10.c: Regenerated. + * generated/sum_r10.c: Regenerated. + * generated/count_8_l.c: Regenerated. + * generated/minloc1_16_i16.c: Regenerated. + * generated/maxloc0_16_i2.c: Regenerated. + * generated/count_1_l.c: Regenerated. + * generated/unpack_c16.c: Regenerated. + * generated/any_l8.c: Regenerated. + * generated/minloc1_16_i1.c: Regenerated. + * generated/sum_r4.c: Regenerated. + * generated/in_unpack_r8.c: Regenerated. + * generated/product_r8.c: Regenerated. + * generated/in_unpack_r4.c: Regenerated. + * generated/unpack_i1.c: Regenerated. + * generated/cshift0_r8.c: Regenerated. + * generated/spread_i2.c: Regenerated. + * generated/minloc1_4_r10.c: Regenerated. + * generated/minloc1_16_i2.c: Regenerated. + * generated/minloc0_16_i2.c: Regenerated. + * generated/eoshift3_16.c: Regenerated. + * generated/maxloc0_8_i4.c: Regenerated. + * generated/maxloc1_16_r10.c: Regenerated. + * generated/maxloc1_4_i16.c: Regenerated. + * generated/maxloc1_4_r8.c: Regenerated. + * generated/parity_l2.c: Regenerated. + * generated/maxloc0_16_i16.c: Regenerated. + * generated/product_r4.c: Regenerated. + * generated/in_unpack_r10.c: Regenerated. + * generated/maxloc1_8_i2.c: Regenerated. + * generated/iparity_i2.c: Regenerated. + * generated/maxloc1_8_r4.c: Regenerated. + * generated/maxloc1_8_r8.c: Regenerated. + * generated/iall_i4.c: Regenerated. + * generated/maxloc0_4_i16.c: Regenerated. + * generated/cshift0_i4.c: Regenerated. + * generated/in_unpack_c10.c: Regenerated. + * generated/unpack_c8.c: Regenerated. + * generated/transpose_c8.c: Regenerated. + * generated/in_unpack_c16.c: Regenerated. + * generated/product_c16.c: Regenerated. + * generated/minval_r8.c: Regenerated. + * generated/minloc0_4_i1.c: Regenerated. + * generated/minloc0_8_r16.c: Regenerated. + * generated/in_unpack_i16.c: Regenerated. + * generated/reshape_c16.c: Regenerated. + * generated/pack_i4.c: Regenerated. + * generated/minval_r10.c: Regenerated. + * generated/maxloc0_4_r10.c: Regenerated. + * generated/unpack_i8.c: Regenerated. + * generated/minloc1_16_r8.c: Regenerated. + * generated/pack_c16.c: Regenerated. + * generated/maxval_r4.c: Regenerated. + * generated/spread_r8.c: Regenerated. + * generated/minloc0_16_r4.c: Regenerated. + * generated/maxval_i4.c: Regenerated. + * generated/matmul_r4.c: Regenerated. + * generated/product_c8.c: Regenerated. + * generated/maxloc1_4_i4.c: Regenerated. + * generated/any_l4.c: Regenerated. + * generated/cshift0_r16.c: Regenerated. + * generated/maxloc1_16_r4.c: Regenerated. + * generated/in_pack_r10.c: Regenerated. + * generated/iall_i1.c: Regenerated. + * generated/product_i1.c: Regenerated. + * generated/maxloc0_4_i1.c: Regenerated. + * generated/maxloc0_8_r16.c: Regenerated. + * generated/minloc1_8_i16.c: Regenerated. + * generated/reshape_c10.c: Regenerated. + * generated/matmul_l4.c: Regenerated. + * generated/cshift0_c16.c: Regenerated. + * generated/spread_r4.c: Regenerated. + * generated/sum_r16.c: Regenerated. + * generated/in_unpack_c4.c: Regenerated. + * generated/maxval_i8.c: Regenerated. + * generated/maxloc0_8_r8.c: Regenerated. + * generated/unpack_i16.c: Regenerated. + * generated/norm2_r4.c: Regenerated. + * generated/maxloc1_4_r16.c: Regenerated. + * generated/in_pack_r4.c: Regenerated. + * generated/sum_c8.c: Regenerated. + * generated/parity_l8.c: Regenerated. + * generated/minval_i2.c: Regenerated. + * generated/transpose_c10.c: Regenerated. + * generated/cshift0_r10.c: Regenerated. + * generated/cshift0_i2.c: Regenerated. + * generated/spread_c4.c: Regenerated. + * generated/maxval_r16.c: Regenerated. + * generated/unpack_c10.c: Regenerated. + * generated/bessel_r4.c: Regenerated. + * generated/minloc0_8_i1.c: Regenerated. + * generated/product_c10.c: Regenerated. + * generated/minloc1_4_i4.c: Regenerated. + * generated/minloc1_4_i2.c: Regenerated. + * generated/transpose_c4.c: Regenerated. + * generated/in_pack_c8.c: Regenerated. + * generated/minval_i8.c: Regenerated. + * generated/maxloc1_4_i2.c: Regenerated. + * generated/maxloc1_4_i1.c: Regenerated. + * generated/iall_i8.c: Regenerated. + * generated/iany_i8.c: Regenerated. + * generated/sum_c16.c: Regenerated. + * generated/spread_i8.c: Regenerated. + * generated/sum_i8.c: Regenerated. + * generated/pack_i2.c: Regenerated. + * generated/unpack_r10.c: Regenerated. + * generated/minloc0_4_i4.c: Regenerated. + * generated/iany_i4.c: Regenerated. + * generated/maxloc0_4_i4.c: Regenerated. + * generated/in_pack_r8.c: Regenerated. + * generated/spread_i1.c: Regenerated. + * generated/maxval_i16.c: Regenerated. + * generated/pack_c8.c: Regenerated. + * generated/iparity_i16.c: Regenerated. + * generated/matmul_c16.c: Regenerated. + * generated/eoshift1_8.c: Regenerated. + * generated/any_l16.c: Regenerated. + * generated/maxloc1_4_i8.c: Regenerated. + * generated/minloc0_8_r4.c: Regenerated. + * generated/transpose_c16.c: Regenerated. + * generated/reshape_c4.c: Regenerated. + * generated/minloc0_8_r8.c: Regenerated. + * generated/count_16_l.c: Regenerated. + * generated/minloc0_16_i1.c: Regenerated. + * generated/minloc1_16_r4.c: Regenerated. + * generated/maxloc0_8_i1.c: Regenerated. + * generated/matmul_i1.c: Regenerated. + * generated/sum_i2.c: Regenerated. + * generated/cshift1_4.c: Regenerated. + * generated/minloc0_4_i2.c: Regenerated. + * generated/bessel_r10.c: Regenerated. + * generated/matmul_c4.c: Regenerated. + * generated/parity_l4.c: Regenerated. + * generated/in_unpack_i2.c: Regenerated. + * generated/product_i16.c: Regenerated. + * generated/maxloc0_16_i4.c: Regenerated. + * generated/minloc0_4_r10.c: Regenerated. + * generated/transpose_i16.c: Regenerated. + * generated/matmul_l16.c: Regenerated. + * generated/any_l1.c: Regenerated. + * generated/minval_r16.c: Regenerated. + * generated/shape_i16.c: Regenerated. + * generated/in_pack_c4.c: Regenerated. + * generated/minloc1_8_r4.c: Regenerated. + * generated/iany_i1.c: Regenerated. + * generated/matmul_i16.c: Regenerated. + * generated/maxloc0_16_r4.c: Regenerated. + * generated/spread_c8.c: Regenerated. + * generated/product_i8.c: Regenerated. + * generated/minloc1_8_i4.c: Regenerated. + * generated/product_i4.c: Regenerated. + * generated/minval_i16.c: Regenerated. + * generated/pack_r8.c: Regenerated. + * generated/matmul_r10.c: Regenerated. + * generated/shape_i8.c: Regenerated. + * generated/eoshift1_4.c: Regenerated. + * generated/minloc1_16_i4.c: Regenerated. + * generated/transpose_r16.c: Regenerated. + * generated/spread_c16.c: Regenerated. + * generated/maxloc0_8_i16.c: Regenerated. + * generated/minval_i1.c: Regenerated. + * generated/sum_i4.c: Regenerated. + * generated/in_pack_r16.c: Regenerated. + * generated/iall_i16.c: Regenerated. + * generated/minloc0_8_r10.c: Regenerated. + * generated/maxloc0_8_i8.c: Regenerated. + * generated/transpose_i4.c: Regenerated. + * generated/maxloc0_4_i2.c: Regenerated. + * generated/iall_i2.c: Regenerated. + * generated/maxloc0_8_r4.c: Regenerated. + * generated/minloc0_4_r16.c: Regenerated. + * generated/minloc1_4_r8.c: Regenerated. + * generated/minloc0_4_i8.c: Regenerated. + * generated/minval_i4.c: Regenerated. + * generated/minloc1_8_i8.c: Regenerated. + * generated/in_pack_i16.c: Regenerated. + * generated/spread_i4.c: Regenerated. + * generated/cshift0_c4.c: Regenerated. + * generated/minloc0_4_i16.c: Regenerated. + * generated/sum_r8.c: Regenerated. + * generated/minloc0_16_i16.c: Regenerated. + * generated/sum_i1.c: Regenerated. + * generated/all_l2.c: Regenerated. + * generated/sum_c4.c: Regenerated. + * generated/shape_i4.c: Regenerated. + * generated/maxval_i1.c: Regenerated. + * generated/norm2_r10.c: Regenerated. + * generated/unpack_c4.c: Regenerated. + * generated/maxloc0_16_i1.c: Regenerated. + * generated/all_l4.c: Regenerated. + * generated/maxloc1_16_i8.c: Regenerated. + * generated/sum_i16.c: Regenerated. + * generated/maxloc1_8_r16.c: Regenerated. + * generated/minloc1_4_r16.c: Regenerated. + * generated/maxloc1_16_r16.c: Regenerated. + * generated/transpose_i8.c: Regenerated. + * generated/minloc0_8_i2.c: Regenerated. + * generated/product_r16.c: Regenerated. + * generated/in_pack_c10.c: Regenerated. + * generated/maxloc0_4_r16.c: Regenerated. + * generated/pack_c4.c: Regenerated. + * generated/bessel_r16.c: Regenerated. + * generated/norm2_r16.c: Regenerated. + * generated/in_unpack_i8.c: Regenerated. + * generated/maxloc1_16_i4.c: Regenerated. + * generated/minloc1_4_i8.c: Regenerated. + * generated/eoshift3_4.c: Regenerated. + * generated/maxloc1_8_r10.c: Regenerated. + * generated/matmul_i8.c: Regenerated. + * generated/matmul_i4.c: Regenerated. + * generated/reshape_i16.c: Regenerated. + * generated/matmul_i2.c: Regenerated. + * generated/transpose_r8.c: Regenerated. + * generated/transpose_r4.c: Regenerated. + * generated/cshift1_16.c: Regenerated. + * generated/maxloc1_4_r10.c: Regenerated. + * generated/iparity_i4.c: Regenerated. + * generated/in_pack_i4.c: Regenerated. + * generated/maxloc0_8_i2.c: Regenerated. + * generated/unpack_r4.c: Regenerated. + * generated/count_4_l.c: Regenerated. + * generated/maxloc1_4_r4.c: Regenerated. + * generated/minloc0_8_i8.c: Regenerated. + * generated/any_l2.c: Regenerated. + * generated/minloc0_8_i4.c: Regenerated. + * generated/pack_i8.c: Regenerated. + * generated/count_2_l.c: Regenerated. + * generated/reshape_c8.c: Regenerated. + * generated/maxval_i2.c: Regenerated. + * generated/minloc0_4_r8.c: Regenerated. + +2012-01-20 Tobias Burnus + + PR libgfortran/51899 + * configure.ac: Check whether umask is available. + * intrinsics/chmod.c (chmod_func): Make compile with MinGW. + * configure: Regenerate. + * config.h.in: Regenerate. + +2012-01-12 Tobias Burnus + + PR fortran/36755 + * intrinsics/chmod.c (chmod_func): Replace call to /bin/chmod + +2012-01-12 Janne Blomqvist + + * configure.ac: Remove check for fdopen. + * runtime/backtrace.c (CAN_PIPE): Fix comment, remove check for + fdopen. + * configure: Regenerated. + * config.h.in: Regenerated. + +2012-01-12 Janne Blomqvist + Tobias Burnus + + PR libfortran/51803 + * runtime/main.c (store_exe_path): Avoid malloc if getcwd fails or + is not available. + +2012-01-11 Tobias Burnus + + * runtime/main.c (store_exe_path): Fix absolute path + detection for Windows. + +2012-01-11 Janne Blomqvist + Mike Stump + + PR libfortran/51803 + * runtime/main.c (store_exe_path): Handle getcwd failure and lack + of the function better. + +2012-01-10 Tobias Burnus + + PR fortran/51197 + * runtime/compile_options.c (show_signal): List + more signals. + +2012-01-09 Harald Anlauf + Tobias Burnus + + PR fortran/51197 + * runtime/backtrace.c (show_backtrace): Modify wording written + before the backtrace. + * runtime/compile_options.c (show_signal): New function. + (backtrace_handler): Use it. + +2012-01-09 Rainer Orth + + * Makefile.am (libgfortran_la_LDFLAGS): Add -Wc,-shared-libgcc. + * Makefile.in: Regenerate. + +2012-01-06 Tobias Burnus + + * caf/single.c (_gfortran_caf_register, _gfortran_caf_deregister): + Fix token handling. + * caf/mpi.c (_gfortran_caf_register, _gfortran_caf_deregister): Ditto. + * caf/libcaf.h (STAT_STOPPED_IMAGE): Sync with libgfortran.h. + (_gfortran_caf_register, _gfortran_caf_deregister): Update prototype. + +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. diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0b28e1fb775..412ccd94828 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -3,243 +3,8 @@ * gnu/gcj/convert/Convert.java (version): Update copyright notice dates. * gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise. - -2012-12-19 Matthias Klose - - Import GNU Classpath (20121202). - - * Regenerate class and header files. - * Regenerate auto* files. - * sources.am, gcj/javaprims.h: Regenerate. - * gnu/java/nio/FileLockImpl.java (close): New override. - -2012-12-12 H.J. Lu - - * Makefile.am (lib_gnu_awt_xlib_la_CPPFLAGS): Use - $(LIBSTDCXX_RAW_CXX_CXXLAGS). - (lib_gnu_awt_xlib_la_LDFLAGS): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). - * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New. - * aclocal.m4: Regenerated. - * Makefile.in:Likewise. - * configure: Likewise. - -2012-11-19 Matthias Klose - - * libtool-version: Bump soversion. - -2012-10-15 Matthias Klose - - * configure.ac: Match arm*-*-linux-* for ARM Linux/GNU. - * configure: Regenerate. - -2012-09-14 Dehao Chen - - * testsuite/libjava.lang/sourcelocation.java: New cases. - * testsuite/libjava.lang/sourcelocation.out: New cases. - -2012-09-14 David Edelsohn - - * configure: Regenerated. - -2012-07-19 Tristan Gingold - Richard Henderson - - * libgcj.ver: Add __gcj_personality_seh0. - * exception.cc (__gcj_personality_seh0): New function. - Adjust for SEH. - -2012-07-18 H.J. Lu - - PR libjava/53973 - * include/x86_64-signal.h (CHECK_67H_PREFIX): Removed. - (HANDLE_DIVIDE_OVERFLOW): Skip 67h address size prefix - unconditionally. - -2012-07-18 H.J. Lu - - PR libjava/53973 - * include/x86_64-signal.h (CHECK_67H_PREFIX): New. - (HANDLE_DIVIDE_OVERFLOW): Check and and skip 67h address size - prefix if CHECK_67H_PREFIX is 1. Use ULL suffix for 64-bit - integer. - -2012-06-20 David Edelsohn - Alan Modra - - * sysdep/powerpc/locks.h (compare_and_swap): Use GCC atomic - intrinsics. - (release_set): Same. - (compare_and_swap_release): Same. - (read_barrier): Same. - (write_barrier): Same. - -2012-06-15 Andreas Schwab - - * sysdep/m68k/locks.h (compare_and_swap): Use - __sync_bool_compare_and_swap. - (release_set): Use write_barrier instead of inlining it. - -2012-06-15 Andreas Krebbel - - * sysdep/s390/locks.h (compare_and_swap, release_set) - (read_barrier, write_barrier): Use the GCC atomic builtins. - -2012-06-14 Kaz Kojima - - * sysdep/sh/locks.h (__cas_lock): Remove. - (__cas_start_atomic, __cas_end_atomic): Likewise. - (compare_and_swap): Call __sync_bool_compare_and_swap. - -2012-05-21 Benjamin Kosnik - - PR libstdc++/52700 - * configure.ac: Allow gnu, gnu-versioned-namespace for - --enable-symvers arguments. - * configure: Regenerate. - -2012-05-16 H.J. Lu - - * configure: Regenerated. - -2012-04-23 Andrew Haley - - * defineclass.cc (MAJOR_1_7, MINOR_1_7): New. - (parse): Allow MAJOR_1_7 classfile version. - -2012-04-05 Rainer Orth - - PR libgcj/52645 - * gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption): - Restore HAVE_INET6 check. - * gnu/java/net/natPlainDatagramSocketImplWin32.cc (setOption): - Likewise. - -2012-03-25 Gerald Pfeifer - - PR libgcj/52694 - * java/io/natVMConsole.cc (IUCLC): Define, if undefined. - -2012-03-16 Andrew John Hughes - - * Makefile.am: Add natVMConsole.cc. - * Makefile.in: Regenerated. - * gcj/Makefile.in: Likewise. - * gcj/javaprims.h: Classes updated. - * gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.h, - * gnu/javax/net/ssl/provider/CipherSuite.h, - * gnu/javax/net/ssl/provider/OutputSecurityParameters.h, - * include/Makefile.in: - Regenerated. - * java/io/Console.h, - * java/io/IOError.h, - * java/io/ObjectOutputStream$2.h: - Initial generation. - * java/io/ObjectOutputStream.h: Regenerated. - * java/io/VMConsole.h: Initial generation. - * java/io/VMConsole.java: Copied from classpath/vm/reference. - * java/io/natVMConsole.cc: Implemented readPassword. - * java/nio/channels/spi/SelectorProvider$1.h, - * java/security/KeyStore$1.h: - Initial generation. - * java/security/ProtectionDomain.h, - * java/text/DateFormatSymbols.h, - * java/util/HashMap.h, - * java/util/regex/Matcher.h, - * java/util/regex/Pattern.h: - Regenerated. - * javax/xml/stream/util/ReaderDelegate.h: - Removed. - * sources.am, - * testsuite/Makefile.in: - Regenerated. - -2012-03-14 Rainer Orth - - * configure.ac (THREADLIBS): Remove *-*-solaris2.8 handling. - * configure: Regenerate. - -2012-03-14 Rainer Orth - - * configure.ac (libgcj_cv_exidx): Remove IRIX 6 ld workaround. - (mips-sgi-irix6*): Remove. - (mips-sgi-irix*): Remove. - (AC_CHECK_HEADERS): Remove bstring.h. - * configure: Regenerate. - * include/config.h.in: Regenerate. - * configure.host (mips-sgi-irix6*): Remove. - - * include/posix-signal.h [__sgi__]: Remove. - - * gnu/java/net/natPlainDatagramSocketImplPosix.cc - [HAVE_BSTRING_H]: Remove. - * gnu/java/net/natPlainDatagramSocketImplWin32.cc: Likewise. - * gnu/java/net/natPlainSocketImplPosix.cc: Likewise. - -2012-03-12 Rainer Orth - - * configure.ac (alpha*-dec-osf*): Remove. - * configure: Regenerate. - * configure.host (alpha*-dec-osf*): Remove. - - * gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption): Use - IPV6_MULTICAST_IF unconditionally. - * gnu/java/net/natPlainDatagramSocketImplWin32.cc (setOption): - Likewise. - * gnu/java/net/natPlainSocketImplPosix.cc - (gnu::java::net::PlainSocketImpl::accept): Use ::accept instead of - _Jv_accept. - * include/posix-signal.h [__alpha__ && __osf__]: Remove. - * include/posix.h (_POSIX_PII_SOCKET): Don't define. - (_Jv_accept): Remove. - - * java/io/File.java (File._access): Rename to access. - Change callers. - (File._stat): Likewise. - * java/io/File.h: Regenerate. - * classpath/lib/java/io/File.class: Regenerate. - * java/io/natFilePosix.cc (java::io::File::_access): Rename to - access. - (java::io::File::_stat): Rename to stat. - * java/io/natFileWin32.cc: Likewise. - - * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): - Remove alpha*-dec-osf* handling. - * testsuite/libjava.jvmti/jvmti-interp.exp - (gcj_jni_compile_c_to_so): Likewise. - * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): - Likewise. - -2012-02-23 Patrick Marlier - Jack Howarth - - PR target/49461 - * configure.ac (SYSTEMSPEC): No longer pass -no_pie for darwin11. - * configure: Regenerate. - -2012-02-02 Kai Tietz - - PR libjava/48512 - * configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for - w64 windows targets. - * configure: Regenerated. - -2012-02-01 Kai Tietz - - PR target/51500 - * interpret.cc (_Jv_init_cif): Handle thiscall - convention for 32-bit Windows. - * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): - Likewise. - * java/lang/reflect/natVMProxy.cc (invoke_t): Add - thiscall-attribute for 32-bit Windows. - -2012-01-01 Jakub Jelinek - - * gnu/gcj/convert/Convert.java (version): Update copyright notice - dates. - * gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise. -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff --git a/libjava/ChangeLog-2012 b/libjava/ChangeLog-2012 new file mode 100644 index 00000000000..ff22755dbe1 --- /dev/null +++ b/libjava/ChangeLog-2012 @@ -0,0 +1,240 @@ +2012-12-19 Matthias Klose + + Import GNU Classpath (20121202). + + * Regenerate class and header files. + * Regenerate auto* files. + * sources.am, gcj/javaprims.h: Regenerate. + * gnu/java/nio/FileLockImpl.java (close): New override. + +2012-12-12 H.J. Lu + + * Makefile.am (lib_gnu_awt_xlib_la_CPPFLAGS): Use + $(LIBSTDCXX_RAW_CXX_CXXLAGS). + (lib_gnu_awt_xlib_la_LDFLAGS): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). + * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New. + * aclocal.m4: Regenerated. + * Makefile.in:Likewise. + * configure: Likewise. + +2012-11-19 Matthias Klose + + * libtool-version: Bump soversion. + +2012-10-15 Matthias Klose + + * configure.ac: Match arm*-*-linux-* for ARM Linux/GNU. + * configure: Regenerate. + +2012-09-14 Dehao Chen + + * testsuite/libjava.lang/sourcelocation.java: New cases. + * testsuite/libjava.lang/sourcelocation.out: New cases. + +2012-09-14 David Edelsohn + + * configure: Regenerated. + +2012-07-19 Tristan Gingold + Richard Henderson + + * libgcj.ver: Add __gcj_personality_seh0. + * exception.cc (__gcj_personality_seh0): New function. + Adjust for SEH. + +2012-07-18 H.J. Lu + + PR libjava/53973 + * include/x86_64-signal.h (CHECK_67H_PREFIX): Removed. + (HANDLE_DIVIDE_OVERFLOW): Skip 67h address size prefix + unconditionally. + +2012-07-18 H.J. Lu + + PR libjava/53973 + * include/x86_64-signal.h (CHECK_67H_PREFIX): New. + (HANDLE_DIVIDE_OVERFLOW): Check and and skip 67h address size + prefix if CHECK_67H_PREFIX is 1. Use ULL suffix for 64-bit + integer. + +2012-06-20 David Edelsohn + Alan Modra + + * sysdep/powerpc/locks.h (compare_and_swap): Use GCC atomic + intrinsics. + (release_set): Same. + (compare_and_swap_release): Same. + (read_barrier): Same. + (write_barrier): Same. + +2012-06-15 Andreas Schwab + + * sysdep/m68k/locks.h (compare_and_swap): Use + __sync_bool_compare_and_swap. + (release_set): Use write_barrier instead of inlining it. + +2012-06-15 Andreas Krebbel + + * sysdep/s390/locks.h (compare_and_swap, release_set) + (read_barrier, write_barrier): Use the GCC atomic builtins. + +2012-06-14 Kaz Kojima + + * sysdep/sh/locks.h (__cas_lock): Remove. + (__cas_start_atomic, __cas_end_atomic): Likewise. + (compare_and_swap): Call __sync_bool_compare_and_swap. + +2012-05-21 Benjamin Kosnik + + PR libstdc++/52700 + * configure.ac: Allow gnu, gnu-versioned-namespace for + --enable-symvers arguments. + * configure: Regenerate. + +2012-05-16 H.J. Lu + + * configure: Regenerated. + +2012-04-23 Andrew Haley + + * defineclass.cc (MAJOR_1_7, MINOR_1_7): New. + (parse): Allow MAJOR_1_7 classfile version. + +2012-04-05 Rainer Orth + + PR libgcj/52645 + * gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption): + Restore HAVE_INET6 check. + * gnu/java/net/natPlainDatagramSocketImplWin32.cc (setOption): + Likewise. + +2012-03-25 Gerald Pfeifer + + PR libgcj/52694 + * java/io/natVMConsole.cc (IUCLC): Define, if undefined. + +2012-03-16 Andrew John Hughes + + * Makefile.am: Add natVMConsole.cc. + * Makefile.in: Regenerated. + * gcj/Makefile.in: Likewise. + * gcj/javaprims.h: Classes updated. + * gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.h, + * gnu/javax/net/ssl/provider/CipherSuite.h, + * gnu/javax/net/ssl/provider/OutputSecurityParameters.h, + * include/Makefile.in: + Regenerated. + * java/io/Console.h, + * java/io/IOError.h, + * java/io/ObjectOutputStream$2.h: + Initial generation. + * java/io/ObjectOutputStream.h: Regenerated. + * java/io/VMConsole.h: Initial generation. + * java/io/VMConsole.java: Copied from classpath/vm/reference. + * java/io/natVMConsole.cc: Implemented readPassword. + * java/nio/channels/spi/SelectorProvider$1.h, + * java/security/KeyStore$1.h: + Initial generation. + * java/security/ProtectionDomain.h, + * java/text/DateFormatSymbols.h, + * java/util/HashMap.h, + * java/util/regex/Matcher.h, + * java/util/regex/Pattern.h: + Regenerated. + * javax/xml/stream/util/ReaderDelegate.h: + Removed. + * sources.am, + * testsuite/Makefile.in: + Regenerated. + +2012-03-14 Rainer Orth + + * configure.ac (THREADLIBS): Remove *-*-solaris2.8 handling. + * configure: Regenerate. + +2012-03-14 Rainer Orth + + * configure.ac (libgcj_cv_exidx): Remove IRIX 6 ld workaround. + (mips-sgi-irix6*): Remove. + (mips-sgi-irix*): Remove. + (AC_CHECK_HEADERS): Remove bstring.h. + * configure: Regenerate. + * include/config.h.in: Regenerate. + * configure.host (mips-sgi-irix6*): Remove. + + * include/posix-signal.h [__sgi__]: Remove. + + * gnu/java/net/natPlainDatagramSocketImplPosix.cc + [HAVE_BSTRING_H]: Remove. + * gnu/java/net/natPlainDatagramSocketImplWin32.cc: Likewise. + * gnu/java/net/natPlainSocketImplPosix.cc: Likewise. + +2012-03-12 Rainer Orth + + * configure.ac (alpha*-dec-osf*): Remove. + * configure: Regenerate. + * configure.host (alpha*-dec-osf*): Remove. + + * gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption): Use + IPV6_MULTICAST_IF unconditionally. + * gnu/java/net/natPlainDatagramSocketImplWin32.cc (setOption): + Likewise. + * gnu/java/net/natPlainSocketImplPosix.cc + (gnu::java::net::PlainSocketImpl::accept): Use ::accept instead of + _Jv_accept. + * include/posix-signal.h [__alpha__ && __osf__]: Remove. + * include/posix.h (_POSIX_PII_SOCKET): Don't define. + (_Jv_accept): Remove. + + * java/io/File.java (File._access): Rename to access. + Change callers. + (File._stat): Likewise. + * java/io/File.h: Regenerate. + * classpath/lib/java/io/File.class: Regenerate. + * java/io/natFilePosix.cc (java::io::File::_access): Rename to + access. + (java::io::File::_stat): Rename to stat. + * java/io/natFileWin32.cc: Likewise. + + * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): + Remove alpha*-dec-osf* handling. + * testsuite/libjava.jvmti/jvmti-interp.exp + (gcj_jni_compile_c_to_so): Likewise. + * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): + Likewise. + +2012-02-23 Patrick Marlier + Jack Howarth + + PR target/49461 + * configure.ac (SYSTEMSPEC): No longer pass -no_pie for darwin11. + * configure: Regenerate. + +2012-02-02 Kai Tietz + + PR libjava/48512 + * configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for + w64 windows targets. + * configure: Regenerated. + +2012-02-01 Kai Tietz + + PR target/51500 + * interpret.cc (_Jv_init_cif): Handle thiscall + convention for 32-bit Windows. + * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): + Likewise. + * java/lang/reflect/natVMProxy.cc (invoke_t): Add + thiscall-attribute for 32-bit Windows. + +2012-01-01 Jakub Jelinek + + * gnu/gcj/convert/Convert.java (version): Update copyright notice + dates. + * gnu/gcj/tools/gcj_dbtool/Main.java (main): 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. diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7b3973f5456..e340a0232fd 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4687 +1,6 @@ -2012-12-21 Kai Tietz + +Copyright (C) 2013 Free Software Foundation, Inc. - * config/os/mingw32/os_defines.h (_GLIBCXX_LLP64): Define if llp64 - abi is used. - * config/os/mingw32-w64/os_defines.h: Likewise. - * libsupc++/cxxabi.h (__base_class_type_info): Adjust - type of __offset_flags for llp64. - * libsupc++/eh_alloc.cc (EMERGENCY_OBJ_SIZE): Define proper - for llp64 abi. - (EMERGENCY_OBJ_COUNT): Likewise. - (bitmask_type): Likewise. - * libsupc++/hash_bytes.cc (_Hash_bytes): Handle llp64. - -2012-12-20 Jonathan Wakely - - * include/std/functional (_Require): Move to ... - * include/std/type_traits (_Require): ... here. - * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up): - Handle unique_ptr for arrays or with custom pointer types. - (__shared_ptr::__shared_ptr(unique_ptr<_Tp1, _Del>&&): Likewise. - * include/bits/unique_ptr.h (unique_ptr<_Tp[], _Dp>): Use - _Dp::pointer if defined. Implement proposed resolution of LWG 2118. - * testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc: New. - * testsuite/20_util/unique_ptr/assign/cv_qual.cc: New. - * testsuite/20_util/unique_ptr/cons/array_convertible_neg.cc: New. - * testsuite/20_util/unique_ptr/cons/convertible_neg.cc: New. - * testsuite/20_util/unique_ptr/cons/cv_qual.cc: New. - * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: New. - * testsuite/20_util/unique_ptr/requirements/pointer_type_array.cc: New. - * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: Adjust comments. - * testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc: - Likewise. - * testsuite/20_util/unique_ptr/requirements/pointer_type.cc: Likewise. - * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line number. - * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. - * testsuite/20_util/default_delete/48631_neg.cc: Likewise. - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. - * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise. - * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust - dg-error text. - * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Use - different instantiations so static_assert fails for each. - -2012-12-20 Jonathan Wakely - - PR libstdc++/55741 - * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for Sleep. - * config.h.in: Regenerate. - * configure: Regenerate. - * src/c++11/thread.cc (__sleep_for): Use Sleep if available. - -2012-12-18 Jonathan Wakely - - * doc/xml/manual/abi.xml: Update URLs for C++ ABI. - * doc/xml/manual/policy_data_structures_biblio.xml: Add xmlns - attribute. - * doc/xml/manual/debug_mode.xml: Give filenames to chunks. - * doc/xml/manual/diagnostics.xml: Likewise. - * doc/xml/manual/extensions.xml: Likewise. - * doc/xml/manual/bitmap_allocator.xml: Likewise. - * doc/xml/manual/mt_allocator.xml: Likewise. - * doc/xml/manual/policy_data_structures.xml: Likewise. - * doc/xml/manual/parallel_mode.xml: Likewise. - * doc/xml/manual/profile_mode.xml: Likewise. - * doc/xml/manual/spine.xml: Likewise. Update copyright years. - * doc/html/*: Regenerate. - -2012-12-17 Jonathan Wakely - - * include/std/future (__async_sfinae_helper): Remove. - -2012-12-16 Jonathan Wakely - - * src/c++11/thread.cc (execute_native_thread_routine): Do not swallow - __forced_unwind exceptions. - * testsuite/30_threads/thread/native_handle/cancel.cc: New. - -2012-12-14 Steve Ellcey - - * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Shrink - memory usage under simulator. - * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: Ditto. - * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc: - Ditto. - * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc: - Ditto. - -2012-12-13 Steve Ellcey - - * testsuite/21_strings/basic_string/capacity/char/18654.cc: Shrink - memory usage under simulator. - * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Ditto. - * testsuite/22_locale/collate/transform/char/28277.cc: Ditto. - * testsuite/22_locale/collate/transform/wchar_t/28277.cc: Ditto. - -2012-12-12 Benjamin Kosnik - - * doc/xml/manual/documentation_hacking.xml: Fix validation issue. - -2012-12-11 Jonathan Wakely - - PR libstdc++/55631 - * include/ext/alloc_traits.h: Include missing header. - * include/ext/pointer.h: Likewise. - * include/ext/string_conversions.h: Require C++11. - * libsupc++/initializer_list: Reindent. - -2012-12-10 Benjamin Kosnik - - * doc/Makefile.am (xml_sources_manual): Add - policy_data_structures_biblio.xml. - (${docbook_outdir}/latex): Add. - (doc-xml-validate-docbook): Split into.. - (doc-xml-validate-dtd-db):... this for DTD. - (doc-xml-validate-rng-db):... this for Relax NG. - (doc-pdf-docbook-dirs): Add. - (doc-pdf-docbook-pre): Add. - * doc/xml/manual/build_hacking.xml: Add literal markup. - * doc/xml/manual/documentation_hacking.xml: Clean whitespace in - markup. Add notes about debugging the generation process. - * doc/xml/manual/policy_data_structures.xml: Split biblio into... - * doc/xml/manual/policy_data_structures_biblio.xml: ... this. New. - * doc/xml/manual/test_policy_data_structures.xml: Fixup - markup. - -2012-12-10 Matthias Klose - - * src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER. - * src/Makefile.in: Regenerate. - -2012-12-09 Andreas Schwab - - * testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags - after running the test. - -2012-12-04 Andreas Schwab - - * include/Makefile.am (${host_builddir}/c++config.h): Replace - [] by []. - * include/Makefile.in: Regenerate. - -2012-12-04 Steven Bosscher - - * include/Makefile.am: Fix regexp broken by previous commit. - * include/Makefile.in: Likewise. - -2012-12-03 Benjamin Kosnik - - * include/ext/pb_ds/detail/cc_hash_table_map_/standard_policies.hpp: - Remove. - * include/ext/pb_ds/detail/gp_hash_table_map_/standard_policies.hpp: - Remove. - * include/Makefile.am (pb_headers): Remove include files. - * include/Makefile.in: Regenerated. - -2012-12-01 John David Anglin - - PR libstdc++/55503 - * testsuite/30_threads/condition_variable/members/53841.cc: Add - hppa*-hp-hpux11* to -pthread dg-options. - -2012-11-29 Kai Tietz - - PR target/55445 - * libsupc++/eh_personaltity.cc (__SEH__): Additional check - for not being SjLj. - -2012-11-28 Andrew Pinski - - PR bootstrap/54279 - * scripts/testsuite_flags.in (--build-cxx): Use xg++ instead of g++. - * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise. - -2012-11-28 Jonathan Wakely - - * include/std/functional (_Mem_fn): Constrain function call operators - to avoid ambiguities. Use perfect forwarding. - * testsuite/20_util/function_objects/mem_fn/55463.cc: Additional - tests. - * testsuite/20_util/function_objects/mem_fn/forward.cc: New. - * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. - -2012-11-27 Ollie Wild - - * include/bits/stl_tree.h (@headername): Fix incorrect Doxygen macro - invocation. - -2012-11-26 Jonathan Wakely - - * include/std/functional (__is_socketlike): Change from class - template to alias template. - -2012-11-26 Jonathan Wakely - - PR libstdc++/55463 - * include/std/functional (_Mem_fn): Handle rvalue objects. Add - noexcept-specifications. - * testsuite/20_util/function_objects/mem_fn/55463.cc: New. - * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. - -2012-11-23 Jonathan Wakely - - PR libstdc++/52680 - * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for usleep and - sleep if nanosleep is not available. Bump libtool revision. - * config.h.in: Regenerate. - * configure: Likewise. - * config/abi/pre/gnu.ver (GLIBCXX_3.4.18): Add __sleep_for. - * include/std/thread (this_thread::__sleep_for): Add. - (this_thread::yield, this_thread::sleep_until, this_thread::sleep_for): - Declare unconditionally. - * src/c++11/thread.cc (this_thread::__sleep_for): Define. - * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Rename to - check_v3_target_sleep. - * testsuite/lib/dg-options.exp (dg-require-nanosleep): Rename to - dg-require-sleep. - * testsuite/30_threads/condition_variable_any/53830.cc: Update. - * testsuite/30_threads/this_thread/2.cc: Likewise. - * testsuite/30_threads/this_thread/3.cc: Likewise. - * testsuite/30_threads/this_thread/4.cc: Likewise. - * testsuite/30_threads/async/54297.cc: Likewise. - -2012-11-20 Paolo Carlini - - PR libstdc++/55413 - * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Initialize - __bbegin_bkt and __prev_bkt to avoid uninitialized warnings. - * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust - dg-error line number. - -2012-11-20 Matthias Klose - - * doc/doxygen/user.cfg.in (ALIASES). Escape sharp braces. - * include/bits/allocator.h: Escape sharp braces in comment. - * include/profile/impl/profiler_algos.h: Likewise. - -2012-11-20 Jonathan Wakely - - * include/ext/array_allocator.h: Replace uses of - __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus. - -2012-11-19 Jonathan Wakely - - * testsuite/20_util/allocator/requirements/typedefs.cc: Check rebind - and improve propagate_on_container_move_assignment check. - -2012-11-19 Jonathan Wakely - - * include/bits/stl_algo.h (reverse_copy): Update comment per DR 2074. - * include/bits/unordered_map.h: Apply DR 2005 resolution. - * doc/xml/manual/status_cxx2011.xml: Update per DR 2048. - * include/bits/allocator.h (allocator): Apply DR 2103 resolution. - * include/ext/array_allocator.h: Likewise. - * include/ext/bitmap_allocator.h: Likewise. - * include/ext/malloc_allocator.h: Likewise. - * include/ext/mt_allocator.h: Likewise. - * include/ext/new_allocator.h: Likewise. - * include/ext/pool_allocator.h: Likewise. - * include/ext/throw_allocator.h: Likewise. - * include/ext/alloc_traits.h (__allocator_always_compares_equal): Add - additional specializations. - * include/std/functional: Add comment about DR resolution. - * include/std/future: Likewise. - * include/std/scoped_allocator: Likewise. - * include/std/thread: Likewise. - * testsuite/20_util/allocator/requirements/typedefs.cc: New. - * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. - -2012-11-19 Jonathan Wakely - - * include/bits/hashtable.h: Improve comments. - * include/bits/hashtable_policy.h: Likewise. - -2012-11-17 Paolo Carlini - - PR libstdc++/55363 - * include/std/array (tuple_size, tuple_element): Move out - NAMESPACE_CONTAINER. - * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust - dg-error line numbers. - * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: - Likewise. - -2012-11-16 François Dumont - - * include/bits/hashtable_policy.h (_Prime_rehash_policy): Remove - automatic shrink. - (_Prime_rehash_policy::_M_bkt_for_elements): Do not call - _M_next_bkt anymore. - (_Prime_rehash_policy::_M_next_bkt): Move usage of - _S_growth_factor ... - (_Prime_rehash_policy::_M_need_rehash): ... here. - * include/bits/hashtable.h (_Hashtable<>): Adapt. - * testsuite/performance/23_containers/insert_erase/41975.cc: Add - _USE_TR1 to force build using std::tr1 container. - * testsuite/performance/23_containers/insert/unordered_set.cc: - Likewise. - * testsuite/performance/23_containers/insert/54075.cc: New. - -2012-11-16 Tom Tromey - - * testsuite/libstdc++-prettyprinters/whatis.cc: New file. - * testsuite/lib/gdb-test.exp (whatis-test): New proc. - (gdb-test): Handle 'whatis' tests. - (gdb_batch_check): New proc. - (gdb_version_check): Rewrite to use gdb_batch_check. - * python/libstdcxx/v6/printers.py: Import gdb.types. - (FilteringTypePrinter): New class. - (add_one_type_printer, register_type_printers): New functions. - (register_libstdcxx_printers): Call register_type_printers. - -2012-11-15 Jonathan Wakely - - PR libstdc++/53841 - * include/std/condition_variable (condition_variable::wait_until): - Handle clocks with higher resolution than __clock_t. - (condition_variable::__wait_until_impl): Remove unnecessary _Clock - parameter. - * testsuite/30_threads/condition_variable/members/53841.cc: New. - -2012-11-14 Jonathan Wakely - - PR libstdc++/55320 - * include/std/functional (function::function(F)): Set _M_manager after - operations that could throw. - (_Function_base::_Ref_manager::_M_init_functor): Use addressof. - * include/tr1/functional - (_Function_base::_Ref_manager::_M_init_functor): Use addressof. - (_Function_base::_Base_manager::_M_get_pointer): Likewise. - * testsuite/20_util/function/cons/55320.cc: New. - * testsuite/20_util/function/cons/addressof.cc: New. - * testsuite/20_util/function/cons/callable.cc: Remove header. - * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. - * testsuite/tr1/3_function_objects/function/10.cc: New. - -2012-11-14 Uros Bizjak - - * testsuite/26_numerics/complex/abi_tag.cc: Adjust expected - demangling for 128bit long-double targets. - -2012-11-12 Jonathan Wakely - - * include/std/future (atomic_future): Remove declaration of - non-standard name. - -2012-11-11 Jason Merrill - - * include/std/complex (real, imag): Add ABI tag in C++11 mode. - -2012-11-11 Andreas Schwab - - * doc/xml/chapter.txml: Remove whitespace inside . - * doc/xml/class.txml: Likewise. - * doc/xml/manual/abi.xml: Likewise. - * doc/xml/manual/algorithms.xml: Likewise. - * doc/xml/manual/allocator.xml: Likewise. - * doc/xml/manual/appendix_contributing.xml: Likewise. - * doc/xml/manual/appendix_free.xml: Likewise. - * doc/xml/manual/appendix_porting.xml: Likewise. - * doc/xml/manual/atomics.xml: Likewise. - * doc/xml/manual/auto_ptr.xml: Likewise. - * doc/xml/manual/backwards_compatibility.xml: Likewise. - * doc/xml/manual/bitmap_allocator.xml: Likewise. - * doc/xml/manual/build_hacking.xml: Likewise. - * doc/xml/manual/codecvt.xml: Likewise. - * doc/xml/manual/concurrency.xml: Likewise. - * doc/xml/manual/concurrency_extensions.xml: Likewise. - * doc/xml/manual/configure.xml: Likewise. - * doc/xml/manual/containers.xml: Likewise. - * doc/xml/manual/ctype.xml: Likewise. - * doc/xml/manual/debug.xml: Likewise. - * doc/xml/manual/debug_mode.xml: Likewise. - * doc/xml/manual/diagnostics.xml: Likewise. - * doc/xml/manual/extensions.xml: Likewise. - * doc/xml/manual/internals.xml: Likewise. - * doc/xml/manual/intro.xml: Likewise. - * doc/xml/manual/io.xml: Likewise. - * doc/xml/manual/iterators.xml: Likewise. - * doc/xml/manual/locale.xml: Likewise. - * doc/xml/manual/localization.xml: Likewise. - * doc/xml/manual/messages.xml: Likewise. - * doc/xml/manual/mt_allocator.xml: Likewise. - * doc/xml/manual/numerics.xml: Likewise. - * doc/xml/manual/parallel_mode.xml: Likewise. - * doc/xml/manual/policy_data_structures.xml: Likewise. - * doc/xml/manual/prerequisites.xml: Likewise. - * doc/xml/manual/profile_mode.xml: Likewise. - * doc/xml/manual/shared_ptr.xml: Likewise. - * doc/xml/manual/status_cxx1998.xml: Likewise. - * doc/xml/manual/status_cxx2011.xml: Likewise. - * doc/xml/manual/status_cxxtr1.xml: Likewise. - * doc/xml/manual/status_cxxtr24733.xml: Likewise. - * doc/xml/manual/strings.xml: Likewise. - * doc/xml/manual/support.xml: Likewise. - * doc/xml/manual/test.xml: Likewise. - * doc/xml/manual/using_exceptions.xml: Likewise. - * doc/xml/manual/utilities.xml: Likewise. - * doc/xml/spine.xml: Likewise. - - * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Also check for - /usr/share/xml/docbook/stylesheet/nwalsh5/current. - * configure: Regenerate. - -2012-11-11 Gerald Pfeifer - - * doc/xml/manual/policy_data_structures.xml: Update reference - for select. - -2012-11-10 Jason Merrill - - * many: Replace uses of __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus. - -2012-11-08 François Dumont - - PR libstdc++/54075 - * include/bits/hashtable.h (_Hashtable<>::rehash): Reset hash - policy state if no rehash. - * testsuite/23_containers/unordered_set/modifiers/reserve.cc - (test02): New. - -2012-11-08 Paolo Carlini - - * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: - Don't pass -D_GLIBCXX_DEBUG by hand (check-debug does). - -2012-11-08 Florian Weimer - - * testsuite/18_support/cxa_vec.cc: Fix typo in comment. - -2012-11-08 Jonathan Wakely - - * include/profile/iterator_tracker.h (operator++): Fix returning - dangling reference. - (operator--): Likewise. - -2012-11-07 Paolo Carlini - - * include/debug/array (_GLIBCXX_THROW_OR_ABORT): Move... - * include/bits/c++config: ... here. - * include/bits/shared_ptr_base.h (__throw_bad_weak_ptr): Use it. - * include/ext/pb_ds/exception.hpp: Likewise. - * include/ext/throw_allocator.h (__throw_forced_error): Likewise. - * include/ext/concurrence.h (__throw_concurrence_lock_error, - __throw_concurrence_unlock_error, __throw_concurrence_broadcast_error, - __throw_concurrence_wait_error): Likewise. - * include/tr1/shared_ptr.h (__throw_bad_weak_ptr): Likewise. - * include/tr1/functional (function<_Res(_ArgTypes...)>::operator() - (_ArgTypes...)): Likewise. - * libsupc++/eh_aux_runtime.cc (__cxxabiv1::__cxa_bad_cast, - __cxxabiv1::__cxa_bad_typeid): Likewise. - * libsupc++/vec.cc (compute_size): Likewise. - * libsupc++/new_op.cc (operator new (std::size_t)): Likewise. - * src/c++11/functexcept.cc: Likewise. - * testsuite/util/io/illegal_input_error.hpp - (__throw_illegal_input_error): Likewise. - * libsupc++/eh_personality.cc: Avoid warning with -fno-exceptions. - * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line - numbers. - * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: - Likewise. - * testsuite/23_containers/array/tuple_interface/ - tuple_element_debug_neg.cc: Likewise. - * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: - Likewise. - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. - -2012-11-07 Jonathan Wakely - - * include/bits/stl_vector.h (vector(size_type)): Add missing allocator - parameter. - * include/bits/stl_bvector.h: Likewise. - * include/debug/vector (vector(size_type)): Likewise. - * include/profile/vector (vector(size_type)): Likewise. Pass allocator - to base constructor. - * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: - Adjust dg-error line numbers. - * testsuite/23_containers/vector/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/ - constructor_2_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: - Likewise. - -2012-11-06 Paolo Carlini - - PR libstdc++/51850 - * include/debug/array: New, debug-mode implementation. - * include/profile/array: New. - * include/std/array: Adjust. - * include/std/tuple: Just include . - * include/Makefile.am: Add. - * include/Makefile.in: Regenerate. - * testsuite/23_containers/array/debug/front1_neg.cc: New. - * testsuite/23_containers/array/debug/ - square_brackets_operator1_neg.cc: Likewise. - * testsuite/23_containers/array/debug/front2_neg.cc: Likewise. - * testsuite/23_containers/array/debug/ - square_brackets_operator2_neg.cc: Likewise. - * testsuite/23_containers/array/debug/back1_neg.cc: Likewise. - * testsuite/23_containers/array/debug/back2_neg.cc: Likewise. - * testsuite/23_containers/array/tuple_interface/get_neg.cc: Tweak - to run only in normal-mode. - * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: - Likewise. - * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: New. - * testsuite/23_containers/array/tuple_interface/ - tuple_element_debug_neg.cc: Likewise. - -2012-11-06 Jonathan Wakely - - * testsuite/20_util/shared_ptr/cons/55123.cc: Remove duplicate - include. - -2012-11-06 Paolo Carlini - - * include/bits/atomic_base.h: Don't include , use nullptr. - * include/std/atomic: Likewise. - * include/tr2/dynamic_bitset: Likewise. - - * libsupc++/vec.cc (compute_size(std::size_t, std::size_t, - std::size_t)): Fix for -fno-exceptions. - -2012-11-06 Jonathan Wakely - - * include/profile/map.h (map::emplace_hint): Add missing return. - -2012-11-05 Jonathan Wakely - - * include/profile/deque: Constrain InputIterator parameters. - * include/profile/forward_list: Likewise. - * include/profile/list: Likewise. - * include/profile/map.h: Likewise. - * include/profile/multimap.h: Likewise. - * include/profile/set.h: Likewise. - * include/profile/multiset.h: Likewise. - * include/profile/vector: Likewise. - -2012-11-05 Jonathan Wakely - - * include/profile/forward_list: Update to meet allocator-aware - requirements. - * include/debug/forward_list: Likewise. - * include/debug/vector: Verify allocators are swapped or equal. - * include/debug/macros.h (__glibcxx_check_equal_allocs): Define. - * include/debug/formatter.h: Add new debug message. - * src/c++11/debug.cc: Likewise. - * testsuite/23_containers/forward_list/allocator/swap.cc: Do not - swap containers with non-propagating, non-equal allocators. - * testsuite/23_containers/vector/allocator/swap.cc: Likewise. - -2012-11-05 Benjamin Kosnik - Oleg Smolsky - - PR libstdc++/55028 - * config/abi/pre/gnu-versioned-namespace.ver: Add symbols. - * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New. - -2012-10-05 François Dumont - - * include/ext/throw_allocator.h (__throw_value_base): Add move - semantic, not throwing. - (__throw_value_limit): Likewise. - (__throw_value_random): Likewise. - * testsuite/util/exception/safety.h: Add validation of C++11 - methods emplace/emplace_front/emplace_back/emplace_hint. - * testsuite/util/testsuite_container_traits.h: Signal emplace - support on deque, forward_list, list and vector. - * testsuite/23_containers/deque/requirements/exception/ - propagation_consistent.cc: Remove dg-do run fail. - -2012-11-05 Paolo Carlini - - PR libstdc++/55215 - * include/bits/random.tcc (mersenne_twister_engine<>::seed(_Sseq&)): - Assign state_size to _M_p. - * testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc: - New. - * testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc: - Likewise. - * testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc: - Likewise. - * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ - 55215.cc: Likewise. - * testsuite/26_numerics/random/discard_block_engine/cons/55215.cc: - Likewise. - * testsuite/26_numerics/random/linear_congruential_engine/cons/ - 55215.cc: Likewise. - -2012-11-03 Florian Weimer - - * libsupc++/vec.cc (compute_size): New. - (__cxa_vec_new2, __cxa_vec_new3): Use it. - * testsuite/18_support/cxa_vec.cc: New. - -2012-11-03 Robert Mason - - * config/os/vxworks/os_defines.h: - Keep vxWorks from defining min()/max() as macros - -2012-11-03 Jonathan Wakely - - * doc/html/*: Regenerate. - -2012-11-02 Gerald Pfeifer - - * doc/xml/manual/configure.xml: Adjust GNU libc link. - - * doc/xml/manual/debug.xml: Adjust GDB documentation link. - Use GCC instead of gcc. - - * doc/xml/manual/prerequisites.xml: Remove detailed reference - to binutils downloads. - -2012-11-02 Paolo Carlini - - PR libstdc++/55169 - * include/bits/random.h: Remove all uses of param(). - (chi_squared_distribution<>::__generate_impl(_ForwardIterator, - _ForwardIterator, _UniformRandomNumberGenerator&)): Declare - * include/bits/random.tcc: ... define. - * include/ext/random: Remove all uses of param(). - -2012-11-02 Gerald Pfeifer - - * doc/xml/manual/allocator.xml: Update reference to Hoard. - Update reference to Berger's OOPSLA 2002 paper. - -2012-11-02 Jonathan Wakely - - * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update. - (StdForwardListPrinter): Likewise. - -2012-11-02 Jonathan Wakely - - * include/bits/forward_list.h (forward_list(size_type)): Add missing - allocator parameter. - (_Fwd_list_node_base): Use NSDMI and define constructor as defaulted. - (_Fwd_list_node::_M_value): Replace with uninitialized storage. - (_Fwd_list_node::_M_valptr()): Define functions to access storage. - (_Fwd_list_iterator, _Fwd_list_const_iterator): Use _M_valptr. - (_Fwd_list_base::_M_create_node): Only use allocator to construct the - element not the node. - * include/bits/forward_list.tcc (_Fwd_list_base::_M_erase_after): Only - use allocator to destroy the element not the node. - * testsuite/23_containers/forward_list/cons/11.cc: Remove unused - headers. - * testsuite/23_containers/forward_list/cons/12.cc: Likewise. - * testsuite/23_containers/forward_list/cons/13.cc: New. - * testsuite/23_containers/forward_list/cons/14.cc: New. - -2012-11-02 Gerald Pfeifer - - * doc/xml/manual/codecvt.xml: Fix reference to Austin Common - Standards Revision Group. - * doc/xml/manual/messages.xml: Ditto. - * doc/xml/manual/using_exceptions.xml: Ditto. - - * doc/xml/manual/messages.xml: Fix reference to GNU gettext. - - * doc/xml/manual/policy_data_structures.xml: Fix reference to - STL at SGI. - Update reference to COM at Microsoft. - Update reference to Worst-case efficient priority queues at ACM. - -2012-11-01 Jonathan Wakely - - * testsuite/18_support/initializer_list/range_access.cc: Fix copying - permission statement. - * testsuite/20_util/specialized_algorithms/uninitialized_copy/ - 808590.cc: Likewise. - * testsuite/20_util/specialized_algorithms/uninitialized_copy/ - move_iterators/1.cc: Likewise. - * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/ - move_iterators/1.cc: Likewise. - * testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc: - Likewise. - * testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc: - Likewise. - * testsuite/21_strings/basic_string/range_access/char/1.cc: Likewise. - * testsuite/21_strings/basic_string/range_access/wchar_t/1.cc: - Likewise. - * testsuite/23_containers/array/element_access/at_neg.cc: Likewise. - * testsuite/23_containers/array/range_access.cc: Likewise. - * testsuite/23_containers/deque/capacity/29134-2.cc: Likewise. - * testsuite/23_containers/deque/capacity/29134.cc: Likewise. - * testsuite/23_containers/deque/capacity/shrink_to_fit.cc: Likewise. - * testsuite/23_containers/deque/range_access.cc: Likewise. - * testsuite/23_containers/deque/requirements/do_the_right_thing.cc: - Likewise. - * testsuite/23_containers/forward_list/capacity/1.cc: Likewise. - * testsuite/23_containers/forward_list/cons/1.cc: Likewise. - * testsuite/23_containers/forward_list/cons/10.cc: Likewise. - * testsuite/23_containers/forward_list/cons/11.cc: Likewise. - * testsuite/23_containers/forward_list/cons/12.cc: Likewise. - * testsuite/23_containers/forward_list/cons/2.cc: Likewise. - * testsuite/23_containers/forward_list/cons/3.cc: Likewise. - * testsuite/23_containers/forward_list/cons/4.cc: Likewise. - * testsuite/23_containers/forward_list/cons/5.cc: Likewise. - * testsuite/23_containers/forward_list/cons/6.cc: Likewise. - * testsuite/23_containers/forward_list/cons/7.cc: Likewise. - * testsuite/23_containers/forward_list/cons/8.cc: Likewise. - * testsuite/23_containers/forward_list/cons/9.cc: Likewise. - * testsuite/23_containers/forward_list/debug/clear.cc: Likewise. - * testsuite/23_containers/forward_list/debug/erase_after1_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after2_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after3_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after4_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after5_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after6_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after7_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after8_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/erase_after9_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/insert_after1_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/insert_after2_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/insert_after3_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/move_constructor.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after.cc: Likewise. - * testsuite/23_containers/forward_list/debug/splice_after1_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after2_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after3_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after4_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after5_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after6_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after7_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/swap.cc: Likewise. - * testsuite/23_containers/forward_list/modifiers/1.cc: Likewise. - * testsuite/23_containers/forward_list/modifiers/2.cc: Likewise. - * testsuite/23_containers/forward_list/modifiers/3.cc: Likewise. - * testsuite/23_containers/forward_list/modifiers/4.cc: Likewise. - * testsuite/23_containers/forward_list/modifiers/5.cc: Likewise. - * testsuite/23_containers/forward_list/modifiers/6.cc: Likewise. - * testsuite/23_containers/forward_list/operations/1.cc: Likewise. - * testsuite/23_containers/forward_list/operations/2.cc: Likewise. - * testsuite/23_containers/forward_list/operations/3.cc: Likewise. - * testsuite/23_containers/forward_list/operations/4.cc: Likewise. - * testsuite/23_containers/forward_list/operations/5.cc: Likewise. - * testsuite/23_containers/forward_list/operations/6.cc: Likewise. - * testsuite/23_containers/forward_list/operations/7.cc: Likewise. - * testsuite/23_containers/forward_list/range_access.cc: Likewise. - * testsuite/23_containers/forward_list/requirements/ - do_the_right_thing.cc: Likewise. - * testsuite/23_containers/list/capacity/1.cc: Likewise. - * testsuite/23_containers/list/capacity/1.h: Likewise. - * testsuite/23_containers/list/capacity/29134.cc: Likewise. - * testsuite/23_containers/list/modifiers/1.cc: Likewise. - * testsuite/23_containers/list/modifiers/1.h: Likewise. - * testsuite/23_containers/list/modifiers/1_c++0x.cc: Likewise. - * testsuite/23_containers/list/modifiers/2.cc: Likewise. - * testsuite/23_containers/list/modifiers/2.h: Likewise. - * testsuite/23_containers/list/modifiers/3.cc: Likewise. - * testsuite/23_containers/list/modifiers/3.h: Likewise. - * testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise. - * testsuite/23_containers/list/modifiers/insert/25288.h: Likewise. - * testsuite/23_containers/list/operations/1.cc: Likewise. - * testsuite/23_containers/list/operations/1.h: Likewise. - * testsuite/23_containers/list/operations/2.cc: Likewise. - * testsuite/23_containers/list/operations/2.h: Likewise. - * testsuite/23_containers/list/operations/2_c++0x.cc: Likewise. - * testsuite/23_containers/list/operations/3.cc: Likewise. - * testsuite/23_containers/list/operations/3.h: Likewise. - * testsuite/23_containers/list/operations/3_c++0x.cc: Likewise. - * testsuite/23_containers/list/operations/4.cc: Likewise. - * testsuite/23_containers/list/operations/4.h: Likewise. - * testsuite/23_containers/list/operations/42352.cc: Likewise. - * testsuite/23_containers/list/operations/5.cc: Likewise. - * testsuite/23_containers/list/operations/5.h: Likewise. - * testsuite/23_containers/list/range_access.cc: Likewise. - * testsuite/23_containers/list/requirements/do_the_right_thing.cc: - Likewise. - * testsuite/23_containers/map/capacity/29134.cc: Likewise. - * testsuite/23_containers/map/range_access.cc: Likewise. - * testsuite/23_containers/multimap/capacity/29134.cc: Likewise. - * testsuite/23_containers/multimap/range_access.cc: Likewise. - * testsuite/23_containers/multiset/capacity/29134.cc: Likewise. - * testsuite/23_containers/multiset/range_access.cc: Likewise. - * testsuite/23_containers/set/capacity/29134.cc: Likewise. - * testsuite/23_containers/set/range_access.cc: Likewise. - * testsuite/23_containers/unordered_map/final_hash.cc: Likewise. - * testsuite/23_containers/unordered_map/observers.cc: Likewise. - * testsuite/23_containers/unordered_map/range_access.cc: Likewise. - * testsuite/23_containers/unordered_map/requirements/52942.cc: - Likewise. - * testsuite/23_containers/unordered_map/requirements/53067.cc: - Likewise. - * testsuite/23_containers/unordered_map/requirements/53339.cc: - Likewise. - * testsuite/23_containers/unordered_multimap/final_hash.cc: Likewise. - * testsuite/23_containers/unordered_multimap/observers.cc: Likewise. - * testsuite/23_containers/unordered_multimap/range_access.cc: Likewise. - * testsuite/23_containers/unordered_multimap/requirements/53339.cc: - Likewise. - * testsuite/23_containers/unordered_multiset/final_hash.cc: Likewise. - * testsuite/23_containers/unordered_multiset/observers.cc: Likewise. - * testsuite/23_containers/unordered_multiset/range_access.cc: Likewise. - * testsuite/23_containers/unordered_set/final_hash.cc: Likewise. - * testsuite/23_containers/unordered_set/instantiation_neg.cc: Likewise. - * testsuite/23_containers/unordered_set/observers.cc: Likewise. - * testsuite/23_containers/unordered_set/range_access.cc: Likewise. - * testsuite/23_containers/unordered_set/requirements/52942.cc: - Likewise. - * testsuite/23_containers/unordered_set/requirements/53067.cc: - Likewise. - * testsuite/23_containers/vector/bool/capacity/29134.cc: Likewise. - * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: - Likewise. - * testsuite/23_containers/vector/capacity/29134-2.cc: Likewise. - * testsuite/23_containers/vector/capacity/29134.cc: Likewise. - * testsuite/23_containers/vector/capacity/shrink_to_fit.cc: Likewise. - * testsuite/23_containers/vector/capacity/shrink_to_fit2.cc: Likewise. - * testsuite/23_containers/vector/range_access.cc: Likewise. - * testsuite/23_containers/vector/requirements/do_the_right_thing.cc: - Likewise. - * testsuite/24_iterators/range_access.cc: Likewise. - * testsuite/25_algorithms/copy/1.cc: Likewise. - * testsuite/25_algorithms/copy/2.cc: Likewise. - * testsuite/25_algorithms/copy/3.cc: Likewise. - * testsuite/25_algorithms/copy/34595.cc: Likewise. - * testsuite/25_algorithms/copy/4.cc: Likewise. - * testsuite/25_algorithms/copy/deque_iterators/1.cc: Likewise. - * testsuite/25_algorithms/copy/move_iterators/1.cc: Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/char/1.cc: Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/char/3.cc: Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/1.cc: - Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/2.cc: - Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/3.cc: - Likewise. - * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc: - Likewise. - * testsuite/25_algorithms/copy_backward/deque_iterators/1.cc: Likewise. - * testsuite/25_algorithms/copy_backward/move_iterators/1.cc: Likewise. - * testsuite/25_algorithms/copy_n/1.cc: Likewise. - * testsuite/25_algorithms/copy_n/2.cc: Likewise. - * testsuite/25_algorithms/copy_n/3.cc: Likewise. - * testsuite/25_algorithms/copy_n/4.cc: Likewise. - * testsuite/25_algorithms/copy_n/50119.cc: Likewise. - * testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise. - * testsuite/25_algorithms/fill/4.cc: Likewise. - * testsuite/25_algorithms/fill_n/1.cc: Likewise. - * testsuite/25_algorithms/find/istreambuf_iterators/char/1.cc: - Likewise. - * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: - Likewise. - * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/1.cc: - Likewise. - * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc: - Likewise. - * testsuite/25_algorithms/heap/1.cc: Likewise. - * testsuite/25_algorithms/heap/moveable.cc: Likewise. - * testsuite/25_algorithms/heap/moveable2.cc: Likewise. - * testsuite/25_algorithms/is_heap/1.cc: Likewise. - * testsuite/25_algorithms/is_heap_until/1.cc: Likewise. - * testsuite/25_algorithms/is_sorted/1.cc: Likewise. - * testsuite/25_algorithms/is_sorted_until/1.cc: Likewise. - * testsuite/25_algorithms/move/1.cc: Likewise. - * testsuite/25_algorithms/move/deque_iterators/1.cc: Likewise. - * testsuite/25_algorithms/move_backward/1.cc: Likewise. - * testsuite/25_algorithms/move_backward/deque_iterators/1.cc: Likewise. - * testsuite/25_algorithms/partition/1.cc: Likewise. - * testsuite/25_algorithms/partition/moveable.cc: Likewise. - * testsuite/25_algorithms/pop_heap/empty2_neg.cc: Likewise. - * testsuite/25_algorithms/pop_heap/empty_neg.cc: Likewise. - * testsuite/25_algorithms/stable_partition/1.cc: Likewise. - * testsuite/25_algorithms/stable_partition/moveable.cc: Likewise. - * testsuite/25_algorithms/stable_partition/pr52822.cc: Likewise. - * testsuite/26_numerics/valarray/range_access.cc: Likewise. - * testsuite/28_regex/range_access.cc: Likewise. - * testsuite/ext/vstring/capacity/29134.cc: Likewise. - * testsuite/ext/vstring/capacity/shrink_to_fit.cc: Likewise. - * testsuite/ext/vstring/hash/char/1.cc: Likewise. - * testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise. - * testsuite/ext/vstring/range_access.cc: Likewise. - * testsuite/ext/vstring/requirements/do_the_right_thing.cc: Likewise. - * testsuite/performance/25_algorithms/copy_backward_deque_iterators.cc: - Likewise. - * testsuite/performance/25_algorithms/copy_deque_iterators.cc: - Likewise. - * testsuite/tr1/6_containers/unordered_map/capacity/29134-map.cc: - Likewise. - * testsuite/tr1/6_containers/unordered_multimap/capacity/ - 29134-multimap.cc: Likewise. - * testsuite/tr1/6_containers/unordered_multiset/capacity/ - 29134-multiset.cc: Likewise. - * testsuite/tr1/6_containers/unordered_set/capacity/29134-set.cc: - Likewise. - -2012-11-01 François Dumont - - * include/bits/hashtable_policy.h (__details::_Before_begin<>): - New, combine a base node instance and an allocator. - * include/bits/hashtable.h (_Hashtable<>::_M_node_allocator): Remove. - (_Hashtable<>::_M_before_begin): Rename into _M_bbegin and type - modified to __detail::_Before_begin<>. - (_Hashtable<>::_M_node_allocator()): New, get the node allocator - part of _M_bbegin. - (_Hashtable<>::_M_before_begin()): New, get the before begin node - part of _M_bbegin. - (_Hashtable<>): Adapt to use latter. - -2012-11-01 Jonathan Wakely - - * include/bits/forward_list.h (forward_list::assign): Dispatch to new - functions based on assignability of elements. - (forward_list::_M_assign): Add overloaded functions for assigning - via assignment or via clearing and insertion. - (forward_list::_M_assign_val): Likewise. - (forward_list::_M_move_assign(forward_list&&, false_type)): Do not - erase elements that are not moved. - * include/bits/forward_list.tcc (forward_list::operator=): Call - assign() to copy elements. - * testsuite/23_containers/forward_list/cons/10.cc: New. - * testsuite/23_containers/forward_list/cons/11.cc: New. - * testsuite/23_containers/forward_list/cons/12.cc: New. - -2012-10-31 Jonathan Yong - - * config/os/mingw32-w64/os_defines.h: Do not define anymore - _GLIBCXX_HAVE_BROKEN_VSWPRINTF. - -2012-10-31 Jonathan Wakely - - * include/bits/forward_list.h (forward_list): Adjust comments. - (forward_list(const forward_list&, const _Alloc&)): Use - _M_range_initialize to copy elements. - (forward_list(forward_list&&, const _Alloc&)): Add exception - specification. - (_Fwd_list_base(const _Fwd_list_base&, const _Node_alloc_type&)): - Remove. - * include/bits/forward_list.tcc (_Fwd_list_base(const _Fwd_list_base&, - const _Node_alloc_type&)): Remove. - (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Fix - memory leak when allocators are not equal. - -2012-10-29 Jonathan Wakely - - PR libstdc++/55123 - * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up): - Do not instantiate allocator with element_type. - * testsuite/20_util/shared_ptr/cons/55123.cc: New. - -2012-10-28 Jonathan Wakely - - PR libstdc++/55041 - * python/libstdcxx/v6/printers.py (Tr1UnorderedMapPrinter): Update - to handle hashtable as member of unordered_map not base class. - (Tr1UnorderedSetPrinter): Likewise. - -2012-10-27 François Dumont - - * include/bits/unordered_map.h (unordered_map<>): Prefer - aggregation to inheritance with _Hashtable. - (unordered_multimap<>): Likewise. - * include/bits/unordered_set.h - (unordered_set<>(const unordered_set&)): Use default - implementation. - (unordered_set<>(unordered_set&&)): Likewise. - (unordered_set<>::operator=(const unordered_set&)): Likewise. - (unordered_set<>::operator=(unordered_set&&)): Likewise. - (unordered_multiset<>(const unordered_multiset&)): Likewise. - (unordered_multiset<>(unordered_multiset&&)): Likewise. - (unordered_multiset<>::operator=(const unordered_multiset&)): - Likewise. - (unordered_multiset<>::operator=(unordered_multiset&&)): Likewise. - * include/debug/unordered_map (operator==): Adapt. - * include/profile/unordered_map (operator==): Adapt. - -2012-10-24 Daniel Krugler - - * include/std/type_traits (common_type): Implement LWG 2141. - * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: - Update. - * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. - * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: - Likewise. - * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: - Likewise. - * testsuite/20_util/common_type/requirements/typedefs-2.cc: Likewise. - -2012-10-24 Haakan Younes - Paolo Carlini - - PR libstdc++/55047 - * include/bits/random.h (exponential_distribution<>::operator): - Fix formula to std::log(result_type(1) - __aurng()). - * include/bits/random.tcc: Likewise, everywhere. - -2012-10-23 Yufeng Zhang - - * config/cpu/aarch64/cxxabi_tweaks.h: New file. - * configure.host: Enable aarch64. - -2012-10-22 François Dumont - - * include/bits/unordered_set.h (unordered_set<>): Prefer - aggregation to inheritance with _Hashtable. - (unordered_multiset<>): Likewise. - * include/debug/unordered_set (operator==): Adapt. - * include/profile/unordered_set (operator==): Adapt. - -2012-10-22 Yufeng Zhang - Jonathan Wakely - - * doc/xml/manual/configure.xml (--enable-clocale): Document the - 'newlib' and 'darwin' options. Minor stylistic improvements. - -2012-10-21 François Dumont - - * include/profile/map.h (map::emplace_hint): Remove invalid - parenthesis. - -2012-10-21 Hans-Peter Nilsson - - * testsuite/23_containers/bitset/45713.cc: Skip for mmix-*-*. - Tweak sizetype-related comment. - -2012-10-20 Jonathan Wakely - - * include/std/scoped_allocator: Avoid badname. - -2012-10-19 Jonathan Wakely - - * doc/xml/manual/status_cxx2011.xml: Update. - -2012-10-19 Jonathan Wakely - - * include/std/scoped_allocator (__outermost_alloc_traits): Define. - (scoped_allocator_adaptor::destroy): Use it. - (scoped_allocator_adaptor::construct): Likewise. Overload for - piecewise construction of std::pair objects. - * testsuite/20_util/scoped_allocator/2.cc: New. - * doc/xml/manual/status_cxx2011.xml: Update. - -2012-10-18 Jonathan Wakely - - * include/bits/forward_list.h: Add C++11 allocator support. - * include/bits/forward_list.tcc: Likewise. - * doc/xml/manual/status_cxx2011.xml: Update. - * testsuite/23_containers/forward_list/allocator/copy.cc: New. - * testsuite/23_containers/forward_list/allocator/copy_assign.cc: New. - * testsuite/23_containers/forward_list/allocator/minimal.cc: New. - * testsuite/23_containers/forward_list/allocator/move_assign.cc: New. - * testsuite/23_containers/forward_list/allocator/noexcept.cc: New. - * testsuite/23_containers/forward_list/allocator/swap.cc: New. - -2012-10-18 François Dumont - - * include/debug/formatter.h (_Debug_msg_id): Add - __msg_valid_load_factor. - * include/debug/macros.h (__glibcxx_check_max_load_factor): New. - * include/debug/unordered_set - (unordered_set<>::max_load_factor(float)): Check max load factor - is positive. - (unordered_multiset<>::max_load_factor(float)): Likewise. - * include/debug/unordered_map - (unordered_map<>::max_load_factor(float)): Likewise. - (unordered_multimap<>::max_load_factor(float)): Likewise. - * testsuite/23_containers/unordered_map/debug/max_load_factor_neg.cc: - New. - * testsuite/23_containers/unordered_multimap/debug/ - max_load_factor_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/max_load_factor_neg.cc: - New. - * testsuite/23_containers/unordered_multiset/debug/ - max_load_factor_neg.cc: New. - -2012-10-17 Benjamin Kosnik - - * include/bits/move.h (move_if_noexcept): Mark constexpr. - * include/std/array (front, back): Same. - * include/std/chrono: Add comment. - * include/std/tuple (__tuple_compare): Mark __eq, __less constexpr. - (operator ==, <, >, !=, <=, >=): Same. - * testsuite/20_util/forward/c_neg.cc: Adjust line numbers. - * testsuite/20_util/forward/f_neg.cc: Same. - * testsuite/20_util/move_if_noexcept/constexpr.cc: New. - * testsuite/20_util/tuple/comparison_operators/constexpr.cc: New. - * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add. - * testsuite/23_containers/array/element_access/ - constexpr_element_access.cc: Same. - * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust - line numbers. - * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: - Same. - - * testsuite/20_util/tuple/comparison_operators/35480_neg.cc: - Temporarily add dg-excess-errors. - -2012-10-16 François Dumont - - * include/debug/formatter.h (_Debug_msg_id): Add - __msg_bucket_index_oob. - * include/debug/macros.h (__glibcxx_check_bucket_index): New. - * include/debug/unordered_set (unordered_set<>::begin(size_type)): - Add check on bucket index. - (unordered_set<>::begin(size_type) const): Likewise. - (unordered_set<>::cbegin(size_type) const): Likewise. - (unordered_set<>::end(size_type)): Likewise. - (unordered_set<>::end(size_type) const): Likewise. - (unordered_set<>::cend(size_type) const): Likewise. - (unordered_set<>::bucket_size(size_type)): Likewise. - (unordered_multiset<>::begin(size_type)): Likewise. - (unordered_multiset<>::begin(size_type) const): Likewise. - (unordered_multiset<>::cbegin(size_type) const): Likewise. - (unordered_multiset<>::end(size_type)): Likewise. - (unordered_multiset<>::end(size_type) const): Likewise. - (unordered_multiset<>::cend(size_type) const): Likewise. - (unordered_multiset<>::bucket_size(size_type)): Likewise. - * include/debug/unordered_map (unordered_map<>::begin(size_type)): - Likewise. - (unordered_map<>::begin(size_type) const): Likewise. - (unordered_map<>::cbegin(size_type) const): Likewise. - (unordered_map<>::end(size_type)): Likewise. - (unordered_map<>::end(size_type) const): Likewise. - (unordered_map<>::cend(size_type) const): Likewise. - (unordered_map<>::bucket_size(size_type)): Likewise. - (unordered_multimap<>::begin(size_type)): Likewise. - (unordered_multimap<>::begin(size_type) const): Likewise. - (unordered_multimap<>::cbegin(size_type) const): Likewise. - (unordered_multimap<>::end(size_type)): Likewise. - (unordered_multimap<>::end(size_type) const): Likewise. - (unordered_multimap<>::cend(size_type) const): Likewise. - (unordered_multimap<>::bucket_size(size_type)): Likewise. - * testsuite/23_containers/unordered_map/debug/bucket_size_neg.cc: - New. - * testsuite/23_containers/unordered_map/debug/begin1_neg.cc: New. - * testsuite/23_containers/unordered_map/debug/begin2_neg.cc: New. - * testsuite/23_containers/unordered_map/debug/cbegin_neg.cc: New. - * testsuite/23_containers/unordered_map/debug/end1_neg.cc: New. - * testsuite/23_containers/unordered_map/debug/end2_neg.cc: New. - * testsuite/23_containers/unordered_map/debug/cend_neg.cc: New. - * testsuite/23_containers/unordered_multimap/debug/bucket_size_neg.cc: - New. - * testsuite/23_containers/unordered_multimap/debug/begin1_neg.cc: New. - * testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc: New. - * testsuite/23_containers/unordered_multimap/debug/cbegin_neg.cc: New. - * testsuite/23_containers/unordered_multimap/debug/end1_neg.cc: New. - * testsuite/23_containers/unordered_multimap/debug/end2_neg.cc: New. - * testsuite/23_containers/unordered_multimap/debug/cend_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/bucket_size_neg.cc: - New. - * testsuite/23_containers/unordered_set/debug/begin1_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/begin2_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/cbegin_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/end1_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/end2_neg.cc: New. - * testsuite/23_containers/unordered_set/debug/cend_neg.cc: New. - * testsuite/23_containers/unordered_multiset/debug/bucket_size_neg.cc: - New. - * testsuite/23_containers/unordered_multiset/debug/begin1_neg.cc: New. - * testsuite/23_containers/unordered_multiset/debug/begin2_neg.cc: New. - * testsuite/23_containers/unordered_multiset/debug/cbegin_neg.cc: New. - * testsuite/23_containers/unordered_multiset/debug/end1_neg.cc: New. - * testsuite/23_containers/unordered_multiset/debug/end2_neg.cc: New. - * testsuite/23_containers/unordered_multiset/debug/cend_neg.cc: New. - -2012-10-15 Matthias Klose - - * configure.host: Match arm*-*-linux-* for ARM Linux/GNU. - * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise. - * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise. - -2012-10-15 Pavel Chupin - - * Makefile.in: Regenerate. - * acinclude.m4: Replace code with GCC_AC_THREAD_HEADER use. - * configure: Regenerate. - * doc/Makefile.in: Regenerate. - * include/Makefile.am: Regenerate. - * include/Makefile.in: Rename variable. - * libsupc++/Makefile.in: Regenerate. - * po/Makefile.in: Regenerate. - * python/Makefile.in: Regenerate. - * src/Makefile.in: Regenerate. - * src/c++11/Makefile.in: Regenerate. - * src/c++98/Makefile.in: Regenerate. - * testsuite/Makefile.in: Regenerate. - -2012-10-14 Jason Merrill - - PR target/54908 - * libsupc++/atexit_thread.cc: Rewrite to keep the cleanup list - with get/setspecific. Destroy the key on dlclose. - -2012-10-12 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/ext/random: Add __gnu_cxx::arcsine_distribution<> - and __gnu_cxx::hoyt_distribution<> classes. - * include/ext/random.tcc: Add out-of-line functions for - __gnu_cxx::arcsine_distribution<> and __gnu_cxx::hoyt_distribution<>. - * testsuite/ext/random/hoyt_distribution/cons/parms.cc: New file. - * testsuite/ext/random/hoyt_distribution/cons/default.cc: New file. - * testsuite/ext/random/hoyt_distribution/requirements/ - explicit_instantiation/1.cc: New file. - * testsuite/ext/random/hoyt_distribution/requirements/typedefs.cc: - New file. - * testsuite/ext/random/hoyt_distribution/operators/inequal.cc: New file. - * testsuite/ext/random/hoyt_distribution/operators/equal.cc: New file. - * testsuite/ext/random/hoyt_distribution/operators/serialize.cc: - New file. - * testsuite/ext/random/arcsine_distribution/cons/parms.cc: New file. - * testsuite/ext/random/arcsine_distribution/cons/default.cc: New file. - * testsuite/ext/random/arcsine_distribution/requirements/ - explicit_instantiation/1.cc: New file. - * testsuite/ext/random/arcsine_distribution/requirements/typedefs.cc: - New file. - * testsuite/ext/random/arcsine_distribution/operators/inequal.cc: - New file. - * testsuite/ext/random/arcsine_distribution/operators/equal.cc: - New file. - * testsuite/ext/random/arcsine_distribution/operators/serialize.cc: - New file. - -2012-10-12 Paolo Carlini - - * include/bits/hashtable_policy.h: Revert libstdc++/53067 quick - hacks thanks to the resolution of c++/51213. - -2012-10-11 Paolo Carlini - - * testsuite/23_containers/bitset/45713.cc: Tweak. - -2012-10-11 Hans-Peter Nilsson - - PR testsuite/54897 - * testsuite/23_containers/bitset/45713.cc: Skip for avr*-*-* - cris*-*-* h8300*-*-* mcore*-*-* moxie*-*-*. - -2012-10-11 Daniel Krugler - - * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: - Update / extend. - * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: - Likewise. - * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: - Likewise. - -2012-10-11 Rainer Orth - - PR libstdc++/54872 - * config/abi/pre/gnu.ver (GLIBCXX_3.4.11) [!__sun__ && !__svr4__]: - Don't export _ZNSt12system_errorC*. - -2012-10-10 Jack Howarth - Jonathan Wakely - - PR libstdc++/54847 - * config/os/bsd/darwin/os_defines.h: Define _GLIBCXX_USE_NANOSLEEP - and _GLIBCXX_USE_SCHED_YIELD. - * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add comment. - -2012-10-10 Mark Kettenis - - * configure.host (*-*-openbsd*) Set cpu_include_dir. - * config/os/bsd/openbsd/ctype_base.h: New file. - * config/os/bsd/openbsd/ctype_configure_char.cc: New file. - * config/os/bsd/openbsd/ctype_inline.h: New file. - * config/os/bsd/openbsd/os_defines.h: New file. - * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Use newlib locale model - for OpenBSD. - * configure: Regenerated. - -2012-10-10 Paolo Carlini - - * include/std/type_traits (__do_common_type_impl): Revert for now - LWG 2141-related change. - * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. - * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: - Adjust. - -2012-10-09 Daniel Krugler - - * include/std/type_traits (common_type): Provide "SFINAE-friendly" - implementation. - (__success_type, __failure_type): Fix. - * include/std/chrono (common_type): Likewise for the chrono::time_point - specialization. - * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: New. - * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: - Likewise. - * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: - Likewise. - * testsuite/20_util/common_type/requirements/typedefs-1.cc: Adjust wrt - LWG 2141. - * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust - dg-error line numbers. - * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. - * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. - * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise. - * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: - Likewise. - * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. - - * testsuite/20_util/result_of/sfinae_friendly_1.cc: Trivial stylistic - tweaks. - * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. - -2012-10-09 Andrew MacLeod - - PR libstdc++/54861 - * include/bits/atomic_base.h (atomic_signal_fence): Call - __atomic_signal_fence instead of __atomic_thread_fence. - -2012-10-09 Benjamin Kosnik - - * testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc: - Fix constant value. - -2012-10-09 Paolo Carlini - - PR libstdc++/54869 - * include/ext/random (simd_fast_mersenne_twister_engine): Provide - only for little endian targets. - * include/ext/random.tcc: Likewise. - * config/cpu/i486/opt/ext/opt_random.h: Likewise. - * testsuite/lib/libstdc++.exp (check_v3_target_little_endian): Add. - * testsuite/lib/dg-options.exp (dg-require-little-endian): Add. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - operators/equal.cc: Use the latter. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - operators/serialize.cc: Likewise. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - operators/inequal.cc: Likewise. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - cons/copy.cc: Likewise. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - cons/seed1.cc: Likewise. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - cons/seed2.cc: Likewise. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - cons/default.cc: Likewise. - * testsuite/ext/random/simd_fast_mersenne_twister_engine/ - cons/seed_seq.cc: Likewise. - -2012-10-09 Jonathan Wakely - - PR libstdc++/54754 - * include/parallel/compatibility.h: Use atomic built-ins when they are - lock-free. - -2012-10-09 Uros Bizjak - - * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.7. - -2012-10-08 Jason Merrill - - * libsupc++/cxxabi.h: Declare __cxa_thread_atexit. - * libsupc++/atexit_thread.cc: New. - * libsupc++/Makefile.am (nested_exception.lo): Add it. - * config/abi/pre/gnu.ver: Add __cxa_thread_atexit. - -2012-10-07 Matthias Klose - - * testsuite/28_regex/algorithms/match/basic: Remove empty directory. - * testsuite/28_regex/algorithms/match/extended: Likewise. - * testsuite/28_regex/algorithms/match: Likewise. - -2012-10-06 Paolo Carlini - - PR c++/52764 - * include/c_global/cstdint: Remove __STDC_LIMIT_MACROS and - __STDC_CONSTANT_MACROS related macros. - -2012-10-06 Joe Seymour - - * include/tr2/dynamic_bitset: Fix cxxabi_forced.h include path. - -2012-10-05 Benjamin Kosnik - - * testsuite/28_regex/algorithms/match: Rename to... - * testsuite/28_regex/algorithms/regex_match: ...this. - * testsuite/28_regex/basic_regex/regex.cc: Rename to... - * testsuite/28_regex/basic_regex/ctors/basic/default.cc: ...this. - * testsuite/util/testsuite_regex.h: New. - * testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: New. - -2012-10-05 Jakub Jelinek - - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line - numbers. - -2012-10-05 Marc Glisse - - PR libstdc++/54686 - * include/c_global/cstdlib (abs(long long)): Define with - __builtin_llabs when we have long long. - (abs(long)): Use __builtin_labs. - (abs(__int128)): Define when we have __int128. - -2012-10-05 Paolo Carlini - - * include/c_global/cstdlib: Remove redundant pasto code protected - by __GXX_EXPERIMENTAL_CXX0X__. - * include/c_global/cwctype: Likewise. - * include/c_global/ccomplex: Remove uses of obsolete macro - _GLIBCXX_INCLUDE_AS_TR1. - * include/c_global/cfloat: Likewise. - -2012-10-05 Marc Glisse - - PR libstdc++/54686 - * include/c_std/cstdlib (abs(long long)): Define with - __builtin_llabs when we have long long. - (abs(long)): Use __builtin_labs. - (abs(__int128)): Define when we have __int128. - * testsuite/26_numerics/headers/cstdlib/54686.c: New file. - -2012-10-03 Paolo Carlini - - PR libstdc++/53248 - * include/std/array (__array_traits<>): Add. - (array<>): Allow for zero-size arrays of non default-constructible - elements. - * testsuite/23_containers/array/requirements/ - non_default_constructible.cc: New. - * testsuite/23_containers/array/requirements/zero_sized_arrays.cc: - Adjust. - * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust - dg-error line numbers. - * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: - Likewise. - -2012-10-02 Jonathan Wakely - - PR other/53889 - * include/std/mutex (__recursive_mutex_base::~__recursive_mutex_base): - Use __gthread_recursive_mutex_destroy. - (__recursive_mutex_base::_S_destroy): Remove. - (__recursive_mutex_base::_S_destroy_win32): Likewise. - * include/ext/concurrence.h (__recursive_mutex::~__recursive_mutex): - Use __gthread_recursive_mutex_destroy. - (__recursive_mutex::_S_destroy): Remove. - (__recursive_mutex::_S_destroy_win32): Likewise. - -2012-10-01 Benjamin Kosnik - - * config/abi/pre/gnu-versioned-namespace.ver: Add more - typeinfo/vtable exports. - -2012-10-01 Paolo Carlini - - PR libstdc++/54757 - * include/ext/random (rice_distribution<>::operator()): Use std::hypot - only if _GLIBCXX_USE_C99_MATH_TR1. - * include/ext/random.tcc (rice_distribution<>::__generate_impl): - Likewise. - -2012-10-01 Daniel Krugler - - * include/std/type_traits (result_of): Provide "SFINAE-friendly" - (see N3436) implementation. - * testsuite/20_util/result_of/sfinae_friendly_1.cc: New. - * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. - * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Tweak - dg-error line numbers. - * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: - Likewise. - * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. - -2012-09-30 Benjamin Kosnik - - * doc/doxygen/user.cfg.in: Update to doxygen 1.8.2. - -2012-09-30 Jonathan Wakely - - * include/ext/ropeimpl.h (__uninitialized_fill_n_a): Fix using - declaration. - * testsuite/ext/rope/5.cc: New. - -2012-09-30 Jonathan Wakely - - PR libstdc++/54577 - * doc/xml/manual/status_cxx2011.xml: N2350 changes are missing from - sequence containers. - * doc/html/*: Regenerate. - -2012-09-29 Jonathan Wakely - - PR libstdc++/34106 - * include/parallel/compatibility.h: Remove non-GCC code. - -2012-09-28 Benjamin Kosnik - - * fragment.am (CONFIG_CXXFLAGS): Remove EXTRA_CXX_FLAGS. - * libsupc++/Makefile.am (LTCXXCOMPILE): Add EXTRA_CXX_FLAGS here. - * src/Makefile.am: Same. - * src/c++98/Makefile.am: Same. - * src/c++11/Makefile.am: Same. - * Makefile.in: Regenerated. - * src/Makefile.am: Same. - * src/c++11/Makefile.in: Same. - * src/c++98/Makefile.in: Same. - * include/Makefile.in: Same. - * po/Makefile.in: Same. - * python/Makefile.in: Same. - * testsuite/Makefile.in: Same. - -2012-09-28 Benjamin Kosnik - - * src/c++98/Makefile.am: Fixup PARALLEL_FLAGS. - -2012-09-28 Benjamin Kosnik - - * acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Remove ENABLE_PARALLEL. - * include/Makefile.am: Same. - * src/c++98/Makefile.am: Same. - * src/Makefile.am: Same. - * Makefile.in: Regenerated. - * aclocal.m4: Same. - * configure: Same. - * doc/Makefile.in: Same. - * include/Makefile.in: Same. - * libsupc++/Makefile.in: Same. - * po/Makefile.in: Same. - * python/Makefile.in: Same. - * src/Makefile.in: Same. - * testsuite/Makefile.in: Same. - * src/c++11/Makefile.in: Same. - * src/c++98/Makefile.in: Same. - - * src/c++98/compatibility-debug_list-2.cc: Update comments. - * src/c++98/compatibility-debug_list.cc: Same. - * src/c++98/compatibility-list-2.cc: Renamed to src/c++98/list-aux-2.cc - * src/c++98/compatibility-list.cc: Renamed to src/c++98/list-aux.cc - * src/c++98/compatibility-parallel_list-2.cc: Renamed to - src/c++98/list_associated-2.cc. - * src/c++98/compatibility-parallel_list.cc: Renamed to - src/c++98/list_associated.cc. - -2012-09-27 Paolo Carlini - - PR libstdc++/54727 - * config/cpu/i486/opt/bits/opt_random.h: Avoid UINT64_C. - -2012-09-26 Paolo Carlini - - * include/ext/random: Add include checks for c++11 and . - -2012-09-26 Benjamin Kosnik - - PR libstdc++/54314 - * config/abi/pre/gnu.ver: Add vtable exports. - * config/abi/pre/gnu-versioned-namespace.ver: Same. - -2012-09-26 Akira Takahashi - - PR libstdc++/53515 - * include/bits/stl_iterator_base_funcs.h (__advance(_InputIterator&, - _Distance, input_iterator_tag)): Add _GLIBCXX_DEBUG_ASSERT(__n >= 0). - -2012-09-26 Ulrich Drepper - - Optimize bulk mode for normal_distribution for SSE3. - * configure.host: Define cpu_opt_bits_random. - * configure.ac: Substitute CPU_OPT_BITS_RANDOM. - * include/Makefile.am (bits_headers): Add ${bits_host_headers}. - (bits_host_headers): Define. - * include/bits/random.tcc: Move __details::_Power_of_2 to... - * include/bits/random.h: ...here. - * include/std/random: Include . - * config/cpu/i486/opt/bits/opt_random.h: New file. - * config/cpu/generic/opt/bits/opt_random.h: New file. - * configure: Regenerated. - * Makefile.in: Regenerated. - * aclocal.m4: Regenerated. - * doc/Makefile.in: Regenerated. - * include/Makefile.in: Regenerated. - * libsupc++/Makefile.in: Regenerated. - * po/Makefile.in: Regenerated. - * python/Makefile.in: Regenerated. - * src/Makefile.in: Regenerated. - * src/c++11/Makefile.in: Regenerated. - * src/c++98/Makefile.in: Regenerated. - * testsuite/Makefile.in: Regenerated. - - * config/cpu/generic/opt/ext/opt_random.h: Fix comment. - -2012-09-25 Paolo Carlini - - * doc/xml/manual/status_cxx2011.xml: Update vs PR 44436. - -2012-09-24 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/ext/random: Add __gnu_cxx::k_distribution<> class. - * include/ext/random.tcc: Add out-of-line functions for - __gnu_cxx::k_distribution<>. - * testsuite/ext/random/k_distribution/operators/equal.cc: New file. - * testsuite/ext/random/k_distribution/operators/serialize.cc: New file. - * testsuite/ext/random/k_distribution/operators/inequal.cc: New file. - * testsuite/ext/random/k_distribution/cons/parms.cc: New file. - * testsuite/ext/random/k_distribution/cons/default.cc: New file. - * testsuite/ext/random/k_distribution/requirements/typedefs.cc: - New file. - * testsuite/ext/random/k_distribution/requirements/ - explicit_instantiation/1.cc: New file. - -2012-09-24 François Dumont - - PR libstdc++/44436 - * include/bits/stl_tree.h - (_Rb_tree<>::_M_insert_): Take _Base_ptr rather than - _Const_Base_ptr. - (_Rb_tree<>::_M_insert_node): New. - (_Rb_tree<>::_M_get_insert_unique_pos): New, search code of - _M_insert_unique method. - (_Rb_tree<>::_M_insert_unique): Use latter. - (_Rb_tree<>::_M_emplace_unique): New, likewise. - (_Rb_tree<>::_M_get_insert_equal_pos): New, search code of - _M_insert_equal method. - (_Rb_tree<>::_M_insert_equal): Use latter. - (_Rb_tree<>::_M_emplace_equal): New, likewise. - (_Rb_tree<>::_M_get_insert_hint_unique_pos): New, search code of - _M_insert_unique_ method. - (_Rb_tree<>::_M_insert_unique_): Use latter. - (_Rb_tree<>::_M_emplace_hint_unique): New, likewise. - (_Rb_tree<>::_M_get_insert_hint_equal_pos): New, search code of - _M_insert_equal_ method. - (_Rb_tree<>::_M_insert_equal_): Use latter. - (_Rb_tree<>::_M_emplace_hint_equal): New, likewise. - (_Rb_tree<>::_M_insert_lower): Remove first _Base_ptr parameter, - useless as always null. - * include/bits/stl_map.h: Include in C++11. - (map<>::operator[](const key_type&)): Use - _Rb_tree<>::_M_emplace_hint_unique in C++11. - (map<>::operator[](key_type&&)): Likewise. - (map<>::emplace): New. - (map<>::emplace_hint): New. - * include/bits/stl_multimap.h (multimap<>::emplace): New. - (multimap<>::emplace_hint): New. - * include/bits/stl_set.h (set<>::emplace): New. - (set<>::emplace_hint): New. - * include/bits/stl_multiset.h (multiset<>::emplace): New. - (multiset<>::emplace_hint): New. - * include/debug/map.h (std::__debug::map<>::emplace): New. - (std::__debug::map<>::emplace_hint): New. - * include/debug/multimap.h (std::__debug::multimap<>::emplace): - New. - (std::__debug::multimap<>::emplace_hint): New. - * include/debug/set.h (std::__debug::set<>::emplace): New. - (std::__debug::set<>::emplace_hint): New. - * include/debug/multiset.h (std::__debug::multiset<>::emplace): - New. - (std::__debug::multiset<>::emplace_hint): New. - * include/profile/map.h (std::__profile::map<>::emplace): New. - (std::__profile::map<>::emplace_hint): New. - * include/profile/multimap.h (std::__profile::multimap<>::emplace): - New. - (std::__profile::multimap<>::emplace_hint): New. - * include/profile/set.h (std::__profile::set<>::emplace): New. - (std::__profile::set<>::emplace_hint): New. - * include/profile/multiset.h (std::__profile::multiset<>::emplace): - New. - (std::__profile::multiset<>::emplace_hint): New. - * testsuite/util/testsuite_container_traits.h: Signal that emplace - and emplace_hint are available on std::map, std::multimap, - std::set and std::multiset in C++11. - * testsuite/23_containers/map/operators/2.cc: New. - * testsuite/23_containers/map/modifiers/emplace/1.cc: New. - * testsuite/23_containers/multimap/modifiers/emplace/1.cc: New. - * testsuite/23_containers/set/modifiers/emplace/1.cc: New. - * testsuite/23_containers/multiset/modifiers/emplace/1.cc: New. - -2012-09-24 François Dumont - - * testsuite/performance/23_containers/insert_erase/41975.cc: Use - __uset_hashtable rather than removed __unordered_set. - -2012-09-23 Paolo Carlini - - Revert: - 2012-09-21 Paolo Carlini - - * include/bits/stl_algobase.h (max, min): Use conditional operator. - -2012-09-23 Uros Bizjak - - PR libstdc++/54675 - * include/ext/random: Avoid the badname __alpha (and, for - consistency, __mu, __nu, __sigma and __omega too). - * include/bits/random.tcc: Likewise. - -2012-09-21 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/ext/random: Add __gnu_cxx::pareto_distribution<> class. - * include/ext/random.tcc: Add out-of-line functions for - __gnu_cxx::pareto_distribution<>. - * testsuite/ext/random/pareto_distribution/operators/equal.cc: New file. - * testsuite/ext/random/pareto_distribution/operators/serialize.cc: - New file. - * testsuite/ext/random/pareto_distribution/operators/inequal.cc: - New file. - * testsuite/ext/random/pareto_distribution/cons/parms.cc: New file. - * testsuite/ext/random/pareto_distribution/cons/default.cc: New file. - * testsuite/ext/random/pareto_distribution/requirements/typedefs.cc: - New file. - * testsuite/ext/random/pareto_distribution/requirements/ - explicit_instantiation/1.cc: New file. - -2012-09-21 Paolo Carlini - - * include/bits/stl_algobase.h (max, min): Use conditional operator. - -2012-09-18 Benjamin Kosnik - - PR libstdc++/28811 - PR libstdc++/54482 - * configure.ac (glibcxx_lt_pic_flag, - glibcxx_compiler_pic_flag, - glibcxx_compiler_shared_flag): New. Use them. - (lt_prog_compiler_pic_CXX): Set via glibcxx_*_flag(s) above. - (pic_mode): Set to default. - (PIC_CXXFLAGS): Remove. - * Makefile.am (PICFLAG, PICFLAG_FOR_TARGET): Remove. Comment. - * libsupc++/Makefile.am: Use glibcxx_ld_pic_flag and - glibcxx_compiler_shared_flag. Comment. - * src/c++11/Makefile.am: Same. - * src/c++98/Makefile.am: Same. - * src/Makefile.am: Use glibcxx_compiler_pic_flag. - - * Makefile.in: Regenerated. - * aclocal.m4: Same. - * configure: Same. - * doc/Makefile.in: Same. - * include/Makefile.in: Same. - * libsupc++/Makefile.in: Same. - * po/Makefile.in: Same. - * python/Makefile.in: Same. - * src/Makefile.in: Same. - * src/c++11/Makefile.in: Same. - * src/c++98/Makefile.in: Same. - * testsuite/Makefile.in: Same. - - * src/c++11/compatibility-atomic-c++0x.cc: Use - _GLIBCXX_SHARED instead of PIC to designate shared-only - code blocks. - * src/c++11/compatibility-c++0x.cc: Same. - * src/c++11/compatibility-thread-c++0x.cc: Same. - * src/c++98/compatibility-list-2.cc: Same. - * src/c++98/compatibility.cc: : Same. - - * testsuite/17_intro/shared_with_static_deps.cc: New. - - * doc/xml/manual/build_hacking.xml: Separate configure from - make/build issues, add build details. - -2012-09-18 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/ext/random: Add __gnu_cxx::nakagami_distribution<> class. - * include/ext/random.tcc: Add out-of-line functions for - __gnu_cxx::nakagami_distribution<>. - * testsuite/ext/random/nakagami_distribution/operators/equal.cc: - New file. - * testsuite/ext/random/nakagami_distribution/operators/serialize.cc: - New file. - * testsuite/ext/random/nakagami_distribution/operators/inequal.cc: - New file. - * testsuite/ext/random/nakagami_distribution/cons/parms.cc: New file. - * testsuite/ext/random/nakagami_distribution/cons/default.cc: New file. - * testsuite/ext/random/nakagami_distribution/requirements/typedefs.cc: - New file. - * testsuite/ext/random/nakagami_distribution/requirements/ - explicit_instantiation/1.cc: New file. - -2012-09-18 Paolo Carlini - - PR libstdc++/54612 - * include/ext/random.tcc (operator== - (const __gnu_cxx::simd_fast_mersenne_twister_engine<>&, - const __gnu_cxx::simd_fast_mersenne_twister_engine<>&)): Fix - state_size use. - * config/cpu/i486/opt/ext/opt_random.h: Guard with __SSE2__. - -2012-09-17 Ulrich Drepper - - * configure.ac: Substitute CPU_OPT_EXT_RANDOM. - * configure.host: Define cpu_opt_ext_random to location of the - optimized version of . - * include/Makefile.am (ext_headers): Add ${ext_host_headers}. - (ext_host_headers): Define. - * include/ext/random (simd_fast_mersenne_twister_engine<> - ::operator==): Don't define function here. - * include/ext/random.tcc (simd_fast_mersenne_twister_engine): Don't - define code using SSE2 here. Define generic code only if - _GLIBCXX_OPT_HAVE_RANDOM_SFMT_GEN_READ is not defined. - (simd_fast_mersenne_twister_engine<> - ::operator==): Define here if - _GLIBCXX_OPT_HAVE_RANDOM_SFMT_OPERATOREQUAL is not defined. - * config/cpu/generic/opt/ext/opt_random.h: New file. - * config/cpu/i486/opt/ext/opt_random.h: New file. - * libsupc++/Makefile.in: Regenerated. - * testsuite/Makefile.in: Regenerated. - * po/Makefile.in: Regenerated. - * configure: Regenerated. - * Makefile.in: Regenerated. - * doc/Makefile.in: Regenerated. - * aclocal.m4: Regenerated. - * python/Makefile.in: Regenerated. - * include/Makefile.in: Regenerated. - * src/c++98/Makefile.in: Regenerated. - * src/c++11/Makefile.in: Regenerated. - * src/Makefile.in: Regenerated. - -2012-09-16 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/ext/random.tcc (__gnu_cxx::rice_distribution<> - ::__generate_impl): Remove bogus _Adaptor usage. - -2012-09-16 Paolo Carlini - - * include/ext/random (rice_distribution<>::operator==): Change - inline friend definition to non-template. - * testsuite/ext/random/rice_distribution/requirements/ - explicit_instantiation/1.cc: New. - - * testsuite/26_numerics/random/normal_mv_distribution: Move... - * testsuite/ext/random/normal_mv_distribution: ... here. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine: - Move... - * testsuite/ext/random/simd_fast_mersenne_twister_engine: ... here. - * testsuite/26_numerics/random/beta_distribution: Move... - * testsuite/ext/random/beta_distribution: ... here. - * testsuite/26_numerics/random/rice_distribution: Move... - * testsuite/ext/random/rice_distribution: ... here. - -2012-09-14 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/ext/random: Add __gnu_cxx::rice_distribution<> class. - * include/ext/random.tcc: Add out-of-line functions for - __gnu_cxx::rice_distribution<>. - * testsuite/26_numerics/random/rice_distribution/ - operators/equal.cc: New file. - * testsuite/26_numerics/random/rice_distribution/ - operators/serialize.cc: New file. - * testsuite/26_numerics/random/rice_distribution/ - operators/inequal.cc: New file. - * testsuite/26_numerics/random/rice_distribution/ - cons/parms.cc: New file. - * testsuite/26_numerics/random/rice_distribution/ - cons/default.cc: New file. - * testsuite/26_numerics/random/rice_distribution/ - requirements/typedefs.cc: New file. - -2012-09-14 David Edelsohn - - * configure: Regenerated. - -2012-09-14 Jonathan Wakely - H.J. Lu - - PR libstdc++/54576 - * src/c++11/random.cc: Check if _GLIBCXX_USE_C99_STDINT_TR1 is defined. - -2012-09-12 Rainer Orth - - * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Define. - * configure.ac: Call GLIBCXX_CHECK_ASSEMBLER_HWCAP. - * fragment.am (CONFIG_CXXFLAGS): Add $(HWCAP_FLAGS). - * configure: Regenerate. - * Makefile.in: Regenerate. - * doc/Makefile.in: Regenerate. - * include/Makefile.in: Regenerate. - * libsupc++/Makefile.in: Regenerate. - * po/Makefile.in: Regenerate. - * python/Makefile.in: Regenerate. - * src/Makefile.in: Regenerate. - * src/c++11/Makefile.in: Regenerate. - * src/c++98/Makefile.in: Regenerate. - * testsuite/Makefile.in: Regenerate. - -2012-09-11 Jakub Jelinek - - PR libstdc++/54172 - * libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last - argument of the first __atomic_compare_exchange_n. - -2012-09-10 Sebastian Huber - Jonathan Wakely - - PR libstdc++/43852 - * acinclude.m4 (GLIBCXX_ENABLE_VERBOSE): Define. - * configure.ac (GLIBCXX_ENABLE_VERBOSE): Use it. - * config.h.in: Regenerate. - * configure: Likewise. - * libsupc++/eh_term_handler.cc (_GLIBCXX_VERBOSE): Check new macro. - * libsupc++/pure.cc (_GLIBCXX_VERBOSE): Likewise. - * doc/xml/manual/configure.xml (--disable-libstdcxx-verbose): Document. - * doc/html/manual/configure.html: Regenerate. - -2012-09-09 Jonathan Wakely - - PR bootstrap/54419 - * acinclude.m4 (GLIBCXX_CHECK_X86_RDRAND): Remove stray character. - * configure: Regenerated. - -2012-09-09 Jonathan Wakely - - PR libstdc++/54388 - * include/std/array (array::at() const): Ensure lvalue result. - * testsuite/23_containers/array/element_access/54388.cc: New. - * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust - dg-error line numbers. - * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: - Likewise. - -2012-09-09 Ulrich Drepper - Dominique d'Humieres - Jack Howarth - - PR bootstrap/54419 - * acinclude.m4: Define GLIBCXX_CHECK_X86_RDRAND. - * configure.ac: Use GLIBCXX_CHECK_X86_RDRAND to test for rdrand - support in assembler. - * src/c++11/random.cc (__x86_rdrand): Depend on _GLIBCXX_X86_RDRAND. - (random_device::_M_init): Likewise. - (random_device::_M_getval): Likewise. - * configure: Regenerated. - * config.h.in: Regenerated. - -2012-09-09 Ulrich Drepper - - * src/c++11/random.cc (random_device::_M_init): Use new macro - signature_INTEL_ebx to check for Intel processors. - -2012-09-06 Thiago Macieira - - PR libstdc++/54172 - * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if - we detect that another thread has had success. Don't compare_exchange - from a finished state back to a waiting state. Comment. - -2012-09-05 François Dumont - - PR libstdc++/54296 - * include/bits/hashtable.h (_M_erase(size_type, __node_base*, - __node_type*)): New. - (erase(const_iterator)): Use latter. - (_M_erase(std::true_type, const key_type&)): New, likewise. - (_M_erase(std::false_type, const key_type&)): New. Find all nodes - matching the key before deallocating them so that the key doesn't - get invalidated. - (erase(const key_type&)): Use the new member functions. - * testsuite/23_containers/unordered_map/erase/54296.cc: New. - * testsuite/23_containers/unordered_multimap/erase/54296.cc: New. - -2012-09-05 Ulrich Drepper - - * src/c++11/random.cc (random_device::_M_init): Check whether cpuid - instruction is available by using __get_cpuid_max. - - * include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>) - (operator()): Use __generate() function of _M_nd. - - * include/ext/random: Add __gnu_cxx:normal_mv_distribution<> class. - * include/ext/random.tccAdd out-of-line functions for - __gnu_cxx::normal_mv_distribution<>. - * testsuite/26_numerics/random/normal_mv_distribution/ - operators/equal.cc: New file. - * testsuite/26_numerics/random/normal_mv_distribution/ - operators/serialize.cc: New file. - * testsuite/26_numerics/random/normal_mv_distribution/ - operators/inequal.cc: New file. - * testsuite/26_numerics/random/normal_mv_distribution/ - cons/default.cc: New file. - * testsuite/26_numerics/random/normal_mv_distribution/ - cons/parms.cc: New file. - * testsuite/26_numerics/random/normal_mv_distribution/ - requirements/explicit_instantiation/1.cc: New file. - * testsuite/26_numerics/random/normal_mv_distribution/ - requirements/typedefs.cc: New file. - -2012-09-04 Ulrich Drepper - - * include/ext/random: Add __gnu_cxx::beta_distribution<> class. - * include/ext/random.tcc: Add out-of-line functions for - __gnu_cxx::beta_distribution<>. - * testsuite/26_numerics/random/beta_distribution/ - operators/equal.cc: New file. - * testsuite/26_numerics/random/beta_distribution/ - operators/serialize.cc: New file. - * testsuite/26_numerics/random/beta_distribution/ - operators/inequal.cc: New file. - * testsuite/26_numerics/random/beta_distribution/ - cons/parms.cc: New file. - * testsuite/26_numerics/random/beta_distribution/ - cons/default.cc: New file. - * testsuite/26_numerics/random/beta_distribution/ - requirements/typedefs.cc: New file. - * testsuite/26_numerics/random/beta_distribution/ - requirements/explicit_instantiation/1.cc: New file. - -2012-09-04 Steven Bosscher - - PR bootstrap/54453 - * include/Makefile.am: Fix regex. - * include/Makefile.in: Regenerate. - -2012-08-30 Benjamin Kosnik - - PR libstdc++/54005 continued - * include/std/atomic: Use __atomic_lock_free with NULL. - * include/bits/atomic_base.h: Same. - -2012-08-30 Ulrich Drepper - - * include/bits/random.h (random_device) [GLIBCXX_USE_RANDOM_TR1]: - Remove 'return' from constructor. - -2012-08-30 Benjamin Kosnik - - * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.18. - -2012-08-29 Ulrich Drepper - - * include/bits/random.h (random_device): Move implementation to... - * src/c++11/random.cc: ...here. New file. - * config/abi/pre/gnu.ver: Add new version GLIBCXX_3.4.18. Export - std::random_device::* symbols. - * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Generated. - * src/c++11/Makefile.am (sources): Add random.cc. - * src/c++11/Makefile.in: Regenerated. - - Add simd_fast_mersenne_twister_engine class. - * include/ext/random: New file. - * include/ext/random.tcc: New file. - * include/Makefile.am (ext_headers): Add random and random.tcc. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - operators/inequal.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - operators/equal.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - operators/serialize.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - cons/seed2.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - cons/default.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - cons/seed_seq.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - cons/copy.cc: New file. - * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ - cons/seed1.cc: New file. - -2012-08-28 Benjamin Kosnik - - PR libstdc++/54102, part 2 - * doc/Makefile.am (XSL_HTML_STYLE): use xhtml, not html. - * doc/Makefile.in: Regenerate. - * doc/html/*: Same. - -2012-08-28 Benjamin Kosnik - - * doc/html/*: Regenerate. - -2012-08-28 Benjamin Kosnik - - PR libstdc++/54102 - * doc/xsl/customization.xsl.in: New. - * configure.ac: Output local copy of customization xsl. - * doc/Makefile.am (stamp-html-single-docbook): Use XSL_LOCAL_STYLE. - (stamp-html-docbook): Set stringparam to UTF-8. - * Makefile.in: Regenerated. - * configure: Same. - * doc/Makefile.in: Same. - -2012-08-27 Ulrich Drepper - - Add interfaces to retrieve random numbers in bulk. - * include/bits/random.h (uniform_int_distribution<>): Add __generate - and __generate_impl functions. - (uniform_real_distribution<>): Likewise. - (bernoulli_distribution): Likewise. - (geometric_distribution<>): Likewise. - (negative_binomial_distribution<>): Likewise. - (poisson_distribution<>): Likewise. - (exponential_distribution<>): Likewise. - (normal_distribution<>): Likewise. - (lognormal_distribution<>): Likewise. - (chi_squared_distribution<>): Likewise. - (cauchy_distribution<>): Likewise. - (fisher_f_distribution<>): Likewise. - (student_t_distribution<>): Likewise. - (gamma_distribution<>): Likewise. - (weibull_distribution<>): Likewise. - (extreme_value_distribution<>): Likewise. - (discrete_distribution<>): Likewise. - (piecewise_constant_distribution<>): Likewise. - (piecewise_linear_distribution<>): Likewise. - * include/bits/random.tcc (__detail::_Power_of_2): New function. - (uniform_int_distribution<>::__generate_impl): New function. - (uniform_real_distribution<>::__generate_impl): New function. - (bernoulli_distribution::__generate_impl): New function. - (geometric_distribution<>::__generate_impl): New function. - (negative_binomial_distribution<>::__generate_impl): New function. - (poisson_distribution<>::__generate_impl): New function. - (exponential_distribution<>::__generate_impl): New function. - (normal_distribution<>::__generate_impl): New function. - (lognormal_distribution<>::__generate_impl): New function. - (chi_squared_distribution<>::__generate_impl): New function. - (cauchy_distribution<>::__generate_impl): New function. - (fisher_f_distribution<>::__generate_impl): New function. - (student_t_distribution<>::__generate_impl): New function. - (gamma_distribution<>::__generate_impl): New function. - (weibull_distribution<>::__generate_impl): New function. - (extreme_value_distribution<>::__generate_impl): New function. - (discrete_distribution<>::__generate_impl): New function. - (piecewise_constant_distribution<>::__generate_impl): New function. - (piecewise_linear_distribution<>::__generate_impl): New function. - -2012-08-22 Ulrich Drepper - - * include/bits/random.h (mersenne_twister_engine): Don't inline - discard here. New member function _M_gen_rand. - * include/bits/random.tcc (mersenne_twister_engine<>::_M_gen_rand): - New function. Extracted from operator(). - (mersenne_twister_engine<>::discard): New implementation which - skips in large steps. - (mersenne_twister_engine<>::operator()): Use _M_gen_rand. - -2012-08-26 Marc Glisse - Paolo Carlini - - PR libstdc++/54376 - * include/bits/random.h (lognormal_distribution<>::operator==, - gamma_distribution<>::operator==, - chi_squared_distribution<>::operator==, - fisher_f_distribution<>::operator==, - student_t_distribution<>::operator==, - binomial_distribution<>::operator==, - negative_binomial_distribution<>::operator==, - poisson_distribution<>::operator==): Change inline friend definition - to non-template. - * testsuite/26_numerics/random/binomial_distribution/requirements/ - explicit_instantiation/1.cc: New. - * testsuite/26_numerics/random/cauchy_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/chi_squared_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/discrete_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/exponential_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/extreme_value_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/fisher_f_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/gamma_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/geometric_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/lognormal_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/negative_binomial_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/normal_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/piecewise_constant_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/piecewise_linear_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/poisson_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/student_t_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/uniform_int_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/uniform_real_distribution/ - requirements/explicit_instantiation/1.cc: Likewise. - * testsuite/26_numerics/random/weibull_distribution/requirements/ - explicit_instantiation/1.cc: Likewise. - -2012-08-26 Jonathan Wakely - - * testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep. - -2012-08-26 Jonathan Wakely - - PR libstdc++/54297 - * src/c++11/future.cc (~_Async_state_common): Move to... - * src/c++11/compatibility-thread-c++0x.cc (~_Async_state_common): - Here. - (_GLIBCXX_ABI_COMPAT_ASYNC): Rename to _GLIBCXX_ASYNC_ABI_COMPAT. - * include/std/future (_GLIBCXX_ABI_COMPAT_ASYNC): Likewise. - -2012-08-26 Jonathan Wakely - Geoff Romer - - PR libstdc++/54351 - * include/bits/unique_ptr.h (unique_ptr::~unique_ptr): Do not use - reset(). - (unique_ptr::~unique_ptr()): Likewise. - * testsuite/20_util/unique_ptr/54351.cc: New. - * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error - line numbers. - -2012-08-25 Jonathan Wakely - - PR libstdc++/54297 - * include/std/future (~_Async_state_impl): Join thread before - derived class members are destroyed. - (~_Async_state_common): Only define non-trivial destructor when - included from future.cc for ABI compatibility reasons. - * src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define. - * testsuite/30_threads/async/54297.cc: New. - -2012-08-25 Jonathan Wakely - - PR libstdc++/54248 - * include/bits/concept_check.h: Replace references to boost - namespace. - -2012-08-23 Jonathan Wakely - - PR libstdc++/54354 - * doc/xml/manual/status_cxx2011.xml: Note missing manipulators. - * doc/html/*: Regenerate. - -2012-08-15 Tom Tromey - - * testsuite/libstdc++-prettyprinters/cxx11.cc (struct datum): - New. - (global): New global. - (main): Add test for unique_ptr. - * python/libstdcxx/v6/printers.py - (UniquePointerPrinter.to_string): Extract the pointer and also - print its type. - -2012-08-13 David Adler - - PR libstdc++/54185 - * src/c++11/condition_variable.cc (condition_variable): Always - destroy native type in destructor. - * testsuite/30_threads/condition_variable/54185.cc: New. - -2012-08-13 François Dumont - Ollie Wild - - * include/bits/hashtable.h - (_Hashtable<>_M_insert_multi_node(hash_code, node_type*)): New. - (_Hashtable<>_M_insert(_Args&&, false_type)): Use latter. - (_Hashtable<>::_M_emplace(false_type, _Args&&...)): Likewise. - (_Hashtable<>::_M_insert_bucket): Replace by ... - (_Hashtable<>::_M_insert_unique_node(size_type, hash_code, node_type*)): - ... this, new. - (_Hashtable<>::_M_insert(_Args&&, true_type)): Use latter. - (_Hashtable<>::_M_emplace(true_type, _Args&&...)): Likewise. - * include/bits/hashtable_policy.h (_Map_base<>::operator[]): Use - latter, emplace the value_type rather than insert. - * include/std/unordered_map: Include tuple. - * include/std/unordered_set: Likewise. - * testsuite/util/testsuite_counter_type.h: New. - * testsuite/23_containers/unordered_map/operators/2.cc: New. - -2012-08-13 Marc Glisse - - PR libstdc++/54112 - * include/c_compatibility/complex.h: Undefine complex, always - include system's complex.h if present. - * testsuite/26_numerics/complex/c99.cc: New testcase. - * testsuite/17_intro/headers/c++1998/complex.cc: Likewise. - * doc/xml/manual/numerics.xml: Document it. - -2012-08-12 Jonathan Wakely - - PR libstdc++/52681 - * src/c++11/thread.cc (thread::_M_start_thread): Improve error text - when threads are not enabled. - -2012-08-09 Jonathan Wakely - - * acinclude.m4: Update references to final C++11 standard. - * include/bits/shared_ptr.h: Likewise. - * include/bits/shared_ptr_base.h: Likewise. - * include/bits/unique_ptr.h: Likewise. - * include/std/chrono: Likewise. - * include/std/thread: Likewise. - -2012-08-07 Benjamin Kosnik - - PR libstdc++/54005 - * include/std/atomic: Use __atomic_always_lock_free. - * include/bits/atomic_base.h: Same. - -2012-08-06 Paolo Carlini - - * testsuite/decimal/mixed-mode-cmp_neg.cc: Add test variable; minor - tweaks. - * testsuite/decimal/unary-arith.cc: Likewise. - * testsuite/decimal/ctor.cc: Likewise. - * testsuite/decimal/conversion-to-integral.cc: Likewise. - * testsuite/decimal/make-decimal.cc: Likewise. - * testsuite/decimal/comparison.cc: Likewise. - * testsuite/decimal/incdec-memfunc.cc: Likewise. - * testsuite/decimal/conversion-to-generic-float.cc: Likewise. - * testsuite/decimal/compound-assignment-memfunc.cc: Likewise. - * testsuite/decimal/cast_neg.cc: Likewise. - * testsuite/decimal/incdec.cc: Likewise. - * testsuite/decimal/mixed-mode-arith_neg.cc: Likewise. - * testsuite/decimal/binary-arith.cc: Likewise. - * testsuite/decimal/conversion-from-float.cc: Likewise. - * testsuite/decimal/conversion-from-integral.cc: Likewise. - * testsuite/decimal/compound-assignment.cc: Likewise. - -2012-08-06 Peter Bergner - - PR libstdc++/54036 - * include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as - a unary operator. - * testsuite/decimal/pr54036-1.cc: New test. - * testsuite/decimal/pr54036-2.cc: Likewise. - * testsuite/decimal/pr54036-3.cc: Likewise. - -2012-08-04 Paolo Carlini - - Revert: - 2012-08-03 Ollie Wild - Richard Smith - - * include/bits/stl_map.h (operator[](key_type&&)): Replace - std::make_pair with value_type. - * testsuite/23_containers/map/operators/2.cc: New test. - -2012-08-03 François Dumont - - * include/debug/functions.h (__check_partition_lower_aux): Remove - redundant comparison with pivot value. - (__check_partition_upper_aux): Likewise. - -2012-08-03 Ollie Wild - Richard Smith - - * include/bits/stl_map.h (operator[](key_type&&)): Replace - std::make_pair with value_type. - * testsuite/23_containers/map/operators/2.cc: New test. - -2012-08-03 Jonathan Wakely - - * include/std/memory: Include auto_ptr.h later. - * include/bits/shared_ptr.h (shared_ptr(auto_ptr<_Up>&&): Remove - definition. - * include/bits/shared_ptr_base.h (__shared_ptr(auto_ptr<_Up>&&): - Likewise. - * include/bits/unique_ptr.h (unique_ptr(auto_ptr<_Up>&&): Likewise. - * include/backward/auto_ptr.h (unique_ptr(auto_ptr<_Up>&&): Define. - (shared_ptr(auto_ptr<_Up>&&, __shared_ptr(auto_ptr<_Up>&&): Likewise. - * include/std/future: Reduce header dependencies. - * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line - numbers. - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. - * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise. - -2012-07-30 François Dumont - - * include/bits/c++config (_GLIBCXX_END_NAMESPACE_CONTAINER): Fix - order of closures. - (_GLIBCXX_END_NAMESPACE_ALGO): Likewise. - -2012-07-29 François Dumont - - PR libstdc++/54075 - * include/bits/hashtable_policy.h - (_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2 - to boost growth in the number of buckets. - * testsuite/performance/23_containers/insert/unordered_set.cc: New. - -2012-07-25 François Dumont - - PR libstdc++/54075 - * include/bits/hashtable.h - (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, - size_type, ...): Remove std::max usage to guarantee that hashtable - state is consistent with hash policy state. - (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid - the hashtable shrinking on next insertion. - * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New. - * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New. - * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New. - * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New. - -2012-07-20 Chip Salzenberg - Jonathan Wakely - - PR libstdc++/54025 - * include/std/chrono (duration<>::duration): Fix per C++11. - * testsuite/20_util/duration/cons/54025.cc: New. - * testsuite/20_util/duration/cons/constexpr.cc: Adjust. - -2012-07-20 Paolo Carlini - - * testsuite/30_threads/thread/adl.cc: Add missing dg-requires. - -2012-07-19 Tristan Gingold - Richard Henderson - - * libsupc++/eh_personality.cc (__gxx_personality_seh0): New function. - Adjust for SEH. - * config/abi/pre/gnu.ver: Add __gxx_personality_seh0. - -2012-07-18 Paolo Carlini - - PR c++/51213 - * testsuite/20_util/pair/noncopyable.cc: New. - -2012-07-16 Jonathan Wakely - - PR libstdc++/53270 - * include/ext/concurrence.h (__mutex, __recursive_mutex, __cond): Use - NSDMI in C++98 mode too. - * include/ext/rope: Add system_header pragma. - (_Refcount_Base, _Rope_RopeRep): Use NSDMI. - (_Rope_RopeRep::~_Rope_RopeRep): Destroy mutex. - -2012-07-16 Jonathan Wakely - - PR libstdc++/53978 - * include/bits/alloc_traits.h (allocator_traits): Define static - constants. - * include/bits/ptr_traits.h (pointer_traits): Likewise. - * include/ext/alloc_traits.h (__allocator_always_compares_equal): - Likewise. - -2012-07-13 Paolo Carlini - - PR libstdc++/53657 - * include/bits/stl_pair.h (pair<>::pair(pair&&)): Declare defaulted, - per C++11. - * include/bits/stl_map.h (map<>::insert(_Pair&&), map<>::insert - (const_iterator, _Pair&&)): Constrain with std::is_constructible, - per LWG2005. - * include/bits/stl_multimap.h (multimap<>::insert(_Pair&&), - multimap<>::insert(const_iterator, _Pair&&)): Likewise. - * include/bits/hashtable_policy.h (_Insert<>::insert(_Pair&&), - _Insert<>::insert(const_iterator, _Pair&&)): Likewise. - * include/debug/unordered_map: Adjust. - * include/debug/map.h: Likewise. - * include/debug/multimap.h: Likewise. - * include/profile/unordered_map: Likewise. - * include/profile/map.h: Likewise. - * include/profile/multimap.h: Likewise. - -2012-07-06 Paolo Carlini - - PR libstdc++/53872 - * include/std/thread (thread::_M_make_routine): Qualify make_shared - to prevent ADL. - * testsuite/30_threads/thread/adl.cc: New. - -2012-07-05 Jonathan Wakely - - * include/std/condition_variable: Update copyright years. - -2012-07-04 Jonathan Wakely - - PR libstdc++/53830 - * include/std/condition_variable (condition_variable_any::wait): - Move _Unlock type to class scope. - (condition_variable_any::wait_until): Reuse it. - * testsuite/30_threads/condition_variable_any/53830.cc: New. - -2012-07-04 Matthias Klose - - * testsuite/28_regex/headers/04_header: Remove empty directory. - * testsuite/28_regex/algorithms/02_match: Likewise. - -2012-07-03 Paolo Carlini - - PR libstdc++/53840 - * include/std/ratio (ratio_multiply, ratio_divide, ratio_add, - ratio_subtract): Use template aliases. - * include/std/chrono (duration<>::duration(const duration<>&), - duration_cast): Adjust. - * testsuite/20_util/ratio/operations/53840.cc: New. - * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust. - * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. - * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. - * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise. - -2012-07-02 Paolo Carlini - - Revert: - 2011-10-04 Paolo Carlini - - PR libstdc++/49561 - * include/bits/stl_list.h (_List_base<>::_List_impl::_M_size): - Add in C++0x mode. - (_List_base<>::_List_impl, _List_base<>::_M_get_node, - _List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&), - list<>::size, list<>::swap, list<>::splice): Use it. - (operator==(const list<>&, const list<>&)): Rewrite in C++0x mode. - * include/bits/list.tcc (list<>::erase): Likewise. - (list<>::merge): Adjust in C++0x mode. - * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: - Adjust dg-error line number. - * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: - Likewise. - * testsuite/23_containers/list/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/ - constructor_2_neg.cc: Likewise. - -2012-06-27 Benjamin Kosnik - - * include/bits/c++config: Remove __regex nested namespace. - * include/bits/regex_compiler.h: Change __regex to - __detail. Adjust doxygen markup, add regex-details group. - * include/bits/regex_constants.h: Same. - * include/bits/regex_cursor.h: Same. - * include/bits/regex_error.h: Same. - * include/bits/regex_grep_matcher.h: Same. - * include/bits/regex_grep_matcher.tcc: Same. - * include/bits/regex_nfa.h: Same. - * include/bits/regex_nfa.tcc: Same. - * include/bits/regex.h: Same. Remove static from global constants. - - * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line numbers. - - * include/bits/locale_classes.tcc: Add use_facet, has_facet to - locales group. - -2012-06-25 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/tr2/bool_set (count, size, num_blocks, empty, max_size): - Add noexcept. - -2012-06-25 Edward Smith-Rowland <3dw4rd@verizon.net> - - * include/tr2/dynamic_bitset (count, size, num_blocks, empty, max_size): - Add noexcept. - -2012-06-25 Benjamin Kosnik - - * doc/doxygen/user.cfg.in: Change COMPACT_LATEX to NO. - -2012-06-24 Benjamin Kosnik - - * testsuite/28_regex/algorithms/02_match: To... - * testsuite/28_regex/algorithms/match: ...this. - * testsuite/28_regex/headers/04_header/regex/std_c++0x_neg.cc: Remove - duplicate. - -2012-06-18 Jörg Sonnenberger - Jonathan Wakely - - PR libstdc++/53678 - * config/os/bsd/netbsd/ctype_base.h: Check for _CTYPE_U. - * testsuite/22_locale/ctype_base/53678.cc: New. - -2012-06-15 Jonathan Wakely - - PR libstdc++/53578 - * include/ext/concurrence.h (__recursive_mutex::_S_destroy): Fix - narrowing conversion. - * include/std/mutex (__recursive_mutex_base::_S_destroy): Likewise. - -2012-06-14 Jonathan Wakely - - PR libstdc++/53270 - * include/ext/concurrence.h (__mutex, __recursive_mutex, __cond): Use - NSDMI in C++11 mode. - * include/ext/rope (_Refcount_Base): Likewise. Destroy mutex in - destructor when initialized by function. - -2012-06-14 Jonathan Wakely - - PR libstdc++/53648 - * include/std/tuple (__empty_not_final): Do not use EBO for tuples. - * testsuite/20_util/tuple/53648.cc: New. - * testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error line - number. - -2012-06-14 Jonathan Wakely - - * doc/xml/manual/status_cxx2011.xml: Correct C++11 status table. - -2012-06-01 Jonathan Wakely - - * doc/xml/manual/status_cxx2011.xml: Correct C++11 status table. - -2012-05-31 Benjamin Kosnik - - PR libstdc++/53543 - * include/bits/hashtable_policy.h (_Insert::__is_convertible): - Rename to __is_conv to avoid clash with clang built-in. - -2012-05-29 François Dumont - - * include/bits/stl_tempbuf.h (__uninitialized_construct_buf) - (__uninitialized_construct_buf_dispatch<>::__ucr): Fix to work - with iterator returning rvalue. - * testsuite/25_algorithms/stable_sort/3.cc: New. - -2012-05-28 Paolo Carlini - - PR c++/53503 - * testsuite/26_numerics/headers/cmath/53503.cc: New. - -2012-05-22 Dodji Seketeli - - PR c++/53322 - * include/bits/stl_algobase.h (lower_bound) - (lexicographical_compare): Do not declare unused local typedefs - here when Concepts are turned off. - -2012-05-21 Paolo Carlini - - * testsuite/22_locale/num_put/put/char/9780-2.cc: Avoid -Wall warnings. - * testsuite/29_atomics/atomic/cons/49445.cc: Likewise. - * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: - * Likewise. - * testsuite/23_containers/unordered_map/observers.cc: Likewise. - * testsuite/23_containers/unordered_map/erase/1.cc: Likewise. - * testsuite/23_containers/unordered_multimap/erase/1.cc: Likewise. - * testsuite/23_containers/unordered_multimap/erase/2.cc: Likewise. - * testsuite/23_containers/unordered_multimap/insert/53115.cc: Likewise. - * testsuite/23_containers/unordered_multimap/observers.cc: Likewise. - * testsuite/23_containers/vector/debug/alloc_prop.cc: Likewise. - * testsuite/23_containers/unordered_set/observers.cc: Likewise. - * testsuite/23_containers/unordered_set/erase/1.cc: Likewise. - * testsuite/23_containers/unordered_multiset/erase/1.cc: Likewise. - * testsuite/23_containers/unordered_multiset/erase/2.cc: Likewise. - * testsuite/23_containers/unordered_multiset/insert/53115.cc: Likewise. - * testsuite/23_containers/unordered_multiset/insert/multiset_range.cc: - * Likewise. - * testsuite/23_containers/unordered_multiset/observers.cc: Likewise. - -2012-05-21 Paolo Carlini - - PR c++/53361 - * testsuite/23_containers/array/cons/53361.cc: New. - -2012-05-17 Paolo Carlini - - PR c++/44516 - * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust - dg-error line number. - -2012-05-16 H.J. Lu - - * configure: Regenerated. - -2012-05-15 Paolo Carlini - - PR libstdc++/53339 - * include/bits/hashtable_policy.h (__detail::_Identity, - __detail::_Select1st): Add. - (_Map_base, _Hashtable_base): Use the latter, adjust parameters. - * include/bits/hashtable.h (_Hashtable::__key_extract): Adjust. - * include/bits/unordered_set.h (__uset_hashtable, __umset_hashtable): - Likewise. - * include/bits/unordered_map.h (__umap_hashtable, __ummap_hashtable): - Likewise. - * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd) - Unconditionally derive from unary_function. - * include/ext/functional (identity, select1st, select2nd): Remove - #ifdef __GXX_EXPERIMENTAL_CXX0X__ bits. - * testsuite/23_containers/unordered_map/requirements/53339.cc: New. - * testsuite/23_containers/unordered_multimap/requirements/ - 53339.cc: Likewise. - -2012-05-11 François Dumont - - PR libstdc++/53263 - * include/debug/safe_iterator.h (__gnu_debug::__base): Move... - * include/debug/functions.h: ... Here. - (__check_sorted_aux): Add overload for random access safe - iterators. - (__check_partition_lower_aux): New. - (__check_partition_lower): Use latter. - (__check_partition_upper_aux): New. - (__check_partition_upper): Use latter. - * include/debug/macros.h (__glibcxx_check_heap) - (__glibcxx_check_heap_pred): Use __gnu_debug::__base on iterator range. - -2012-05-10 DJ Delorie - - * include/bits/random.tcc (seed_seq::generate): Cast max() - operands to size_t to ensure a template match. - * include/std/bitset (_M_copy_from_ptr): Cast min() operands to - size_t to ensure a template match. - -2012-05-03 Benjamin Kosnik - - * scripts/testsuite_flags.in (cxxflags): Remove - -ftrack-macro-expansion=0. - -2012-05-03 Jonathan Wakely - - * doc/xml/faq.xml: Update outdated allocator documentation. - * doc/xml/manual/allocator.xml: Likewise. - * doc/xml/manual/debug.xml: Likewise. - * doc/xml/manual/evolution.xml: Likewise. - * doc/xml/manual/using.xml: Likewise. - -2012-05-02 Benjamin Kosnik - - PR libstdc++/44015 - * include/bits/basic_ios.h: Add tparam markup for - * doxygen. include/bits/basic_string.h: Same. - * include/bits/forward_list.h: Same. - * include/bits/stl_bvector.h: Same. - * include/bits/stl_deque.h: Same. - * include/bits/stl_list.h: Same. include/bits/stl_map.h: - * Same. include/bits/stl_multimap.h: Same. - * include/bits/stl_multiset.h: Same. - * include/bits/stl_pair.h: Same. - * include/bits/stl_queue.h: Same. - * include/bits/stl_set.h: Same. - * include/bits/stl_stack.h: Same. - * include/bits/stl_vector.h: Same. - * include/bits/unordered_map.h: Same. - * include/bits/unordered_set.h: Same. include/std/array: - * Same. include/std/atomic: Same. include/std/fstream: - * Same. include/std/istream: Same. include/std/ostream: - * Same. include/std/sstream: Same. - * include/std/streambuf: Same. - * testsuite/23_containers/deque/requirements/dr438/*: - Adjust line numbers. - * testsuite/23_containers/list/requirements/dr438/*: Same. - * testsuite/23_containers/vector/requirements/dr438/*: Same. - -2012-05-02 DJ Delorie - - * crossconfig.m4: Since we know that all TPF builds are cross- - builds and cannot run configuration-time link tests, do not - allow it; just go with known supported linker options. - * configure: Regenerate (called as GLIBCXX_CROSSCONFIG). - -2012-05-02 Benjamin Kosnik - - * include/bits/hashtable_policy.h: Correct namepace nesting for - _Hashtable forward declaration. - -2012-05-01 François Dumont - - PR libstdc++/53115 - * include/bits/hashtable.h - (_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets - after insertion of several equivalent elements. - * testsuite/23_containers/unordered_multiset/insert/53115.cc: New. - * testsuite/23_containers/unordered_multimap/insert/53115.cc: New. - -2012-04-29 Marc Glisse - Paolo Carlini - - PR libstdc++/51795 - * include/bits/stl_algobase.h (__lg<>(_Size)): Remove. - (__lg(int), __lg(unsigned), __lg(long), __lg(unsigned long), - __lg(long long), __lg(unsigned long long)): Define constexpr. - * include/bits/random.h (_Mod<>): Overcome Schrage's algorithm - limitations. - (__mod): Adjust. - (linear_congruential): Remove FIXME static_assert. - * include/bits/random.tcc (_Mod<>): Adjust. - * testsuite/26_numerics/random/linear_congruential_engine/operators/ - 51795.cc: New. - -2012-04-29 Jonathan Wakely - - * include/std/functional (function::function(F)): LWG 2132: Disable - constructor if argument isn't callable. - * testsuite/20_util/function/cons/callable.cc: New. - -2012-04-29 Marc Glisse - - PR libstdc++/22200 - * include/std/limits (numeric_limits<>::is_modulo): False for - signed types. - -2012-04-25 Benjamin Kosnik - - * include/bits/hashtable.h: Adjust doxygen markup for base - classes. - * include/bits/hashtable_policy.h: Same. - -2012-04-25 Benjamin Kosnik - - PR libstdc++/52689 - * testsuite/17_intro/static.cc: Fix. - * testsuite/lib/dg-options.exp (dg-require-static-libstdcxx): New. - * testsuite/lib/libstdc++.exp (check_v3_target_static_libstdcxx): New. - -2012-04-25 Jonathan Wakely - - * include/std/scoped_allocator (scoped_allocator::__outermost): Do - not pass non-POD to varargs function. - * testsuite/20_util/scoped_allocator/1.cc: Fix test. - -2012-04-24 Benjamin Kosnik - - PR libstdc++/52689 - * testsuite/17_intro/static.cc: New. - -2012-04-23 Daniel Krugler - - * include/std/type_traits (is_nothrow_destructible): Implement. - (is_destructible): Implement LWG 2049. - * testsuite/util/testsuite_tr1.h: Add tests. - * testsuite/20_util/is_nothrow_destructible/value.cc: New. - * testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc: - * testsuite/20_util/is_nothrow_destructible/requirements/ - explicit_instantiation.cc: Likewise. - * testsuite/20_util/is_destructible/value.cc: Adjust and extend. - * testsuite/20_util/is_default_constructible/value.cc: Tweak. - * testsuite/20_util/is_constructible/value-2.cc: Likewise. - * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust - dg-error line numbers. - * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: - Likewise. - * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. - -2012-04-23 Paolo Carlini - - PR libstdc++/53080 - * include/std/array (tuple_element, get): static_assert I < N. - * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: - New. - * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise. - * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Fix. - -2012-04-23 Chris Jefferson - - PR testsuite/53046 - * testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size - of array A. - * testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise. - -2012-04-22 Paolo Carlini - - PR libstdc++/53067 - * include/bits/hashtable_policy.h: Change inheritances to public. - * testsuite/23_containers/unordered_map/requirements/53067.cc: New. - * testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise. - -2012-04-22 Jonathan Wakely - - * include/ext/alloc_traits.h (__alloc_traits::difference_type): - Define. - -2012-04-22 Jonathan Wakely - - PR libstdc++/53027 - * include/bits/ptr_traits.h (pointer_traits::rebind): Make public. - * testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check - rebind works. - -2012-04-22 Jonathan Wakely - - * include/debug/forward_list (forward_list::splice_after): Check - allocators are equal. - * src/c++11/debug.cc: Fix spelling. - * testsuite/23_containers/forward_list/debug/splice_after5_neg.cc: - New. - * testsuite/23_containers/forward_list/debug/splice_after6_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/splice_after7_neg.cc: - Likewise. - -2012-04-20 Paolo Carlini - - PR libstdc++/53052 - * include/std/type_traits (is_explicitly_convertible): Remove. - * testsuite/20_util/is_explicitly_convertible: Likewise. - * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: - Adjust dg-error line numbers. - * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: - Likewise. - * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. - -2012-04-17 Benjamin Kosnik - - * testsuite/20_util/specialized_algorithms/uninitialized_copy/ - 808590.cc: New. - -2012-04-17 Rainer Orth - - * testsuite/util/testsuite_abi.cc (compare_symbols): Change - summary header to avoid confusion with DejaGnu header. - -2012-04-15 Paolo Carlini - - PR libstdc++/52702 - * include/std/type_traits (is_trivially_destructible): Add. - (has_trivial_destructor): Remove. - * testsuite/util/testsuite_common_types.h: Adjust. - * testsuite/20_util/tuple/requirements/dr801.cc: Likewise. - * testsuite/20_util/pair/requirements/dr801.cc: Likewise. - * testsuite/20_util/is_trivially_destructible/value.cc: New. - * testsuite/20_util/is_trivially_destructible/requirements/ - typedefs.cc: Likewise. - * testsuite/20_util/is_trivially_destructible/requirements/ - explicit_instantiation.cc: Likewise. - * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: - Adjust dg-error line numbers. - * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: - Likewise. - * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. - -2012-04-14 Paolo Carlini - - PR libstdc++/52699 - * include/bits/random.tcc (independent_bits_engine<>::operator()()) - Avoid various overflows; use common_type on result_type and - _RandomNumberEngine::result_type; avoid floating point computations; - other smaller tweaks. - - * include/bits/random.tcc (uniform_int_distribution<>::operator()) - Use common_type; assume _UniformRandomNumberGenerator::result_type - unsigned; tidy. - - * include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long), - __lg(unsigned long long)): Add. - -2012-04-14 Alan Modra - - PR libstdc++/52839 - * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on - glibcxx_cv_atomic_long_long. - * configure: Regenerate. - -2012-04-13 Paolo Carlini - - * testsuite/26_numerics/cmath/51083.cc: Move... - * testsuite/26_numerics/headers/cmath/51083.cc: ... here. - -2012-04-13 Laurent Alfonsi - - PR libstdc++/52604 - * src/c++98/mt_allocator.cc: (__freelist::~__freelist): Reset pointer. - -2012-04-13 Paolo Carlini - - * include/debug/safe_iterator.h (_BeforeBeginHelper<>:: - _S_Is_Beginnest): Add. - * include/debug/forward_list (_BeforeBeginHelper<>:: - _S_Is_Beginnest): Likewise. - (_Safe_iterator<>::_M_is_beginnest): Add. - * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range): - Use the latter. - * testsuite/23_containers/forward_list/debug/splice_after.cc: - Add test. - -2012-04-12 Benjamin Kosnik - - * include/bits/unordered_map.h (__unordered_map): Remove. - (__unordered_multimap): Remove. - Add aliases for __umap_traits, __umap_hashtable, __ummap_traits, - __ummap_hashtable. - (unordered_map): Derive from __umap_hashtable. - (unordered_multimap): Derive from __ummap_hashtable. - * include/bits/unordered_set.h (__unordered_set): Remove. - (__unordered_multiset): Remove. - Add aliases for __uset_traits, __uset_hashtable, __umset_traits, - __umset_hashtable. - (unordered_set): Derive from __uset_hashtable. - (unordered_multiset): Derive from __umset_hashtable. - * include/bits/hashtable.h (__cache_default): New, consolidated - cache defaults for _Hashtable. Adjust comments for doxygen. - (_Hashtable): Consolidate bool template parameters into new, - _Traits class. Inherited base classes synthesize _Hashtable in - CRTP via original 10 parameters. Prefer using declarations to - typedefs, add __node_type, __bucket_type, etc. Push many nested - types down hierarchy to _Hashtable_base. Add constructors - necessary for top-level unordered_containers. Consolidate insert - member functions and logic in new base class, __detail::_Insert - and __detail::_Insert_base. - (_Hashtable::operator=(initializer_list)): Add. - * include/bits/hashtable_policy.h: Convert to doxygen markup. - (_Hashtable_traits) New. Consolidate bool template parameters here. - (_Insert, _Insert_base): New, consolidated insert member functions. - (_Map_base, _Equality, _Rehash_base): Adjust template parameters, - use base types. - (_Hashtable_base): Move type declarations useful to other base - classes into this class. - * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update. - * testsuite/23_containers/unordered_set/instantiation_neg.cc: - Adjust traits, line numbers. - -2012-04-12 Jeffrey Yasskin - - PR libstdc++/52822 - * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode. - (__find_if_not_n): Like __find_if_not, but works on and updates a - counted range instead of a bounded range. - (stable_partition): Guarantee !__pred(*__first) in call to - __stable_partition_adaptive() or __inplace_stable_partition(). - (__stable_partition_adaptive): Use new precondition to avoid - moving/copying objects onto themselves. Guarantee new - precondition to recursive calls. - (__inplace_stable_partition): Use new precondition to simplify - base case, remove __last parameter. Guarantee new precondition to - recursive calls. - * testsuite/25_algorithms/stable_partition/moveable.cc (test02): - Test a sequence that starts with a value matching the predicate. - * testsuite/25_algorithms/stable_partition/pr52822.cc: Test - vectors, which have a destructive self-move-assignment. - -2012-04-12 Andreas Schwab - - * testsuite/Makefile.am (check_DEJAGNUnormal0): Run - prettyprinters.exp. - * testsuite/Makefile.in: Regenerated. - -2012-04-12 Paolo Carlini - - PR libstdc++/52942 - * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd): - In C++11 mode do not derive from std::unary_function. - * include/ext/functional (identity, select1st, select2nd): Adjust. - * testsuite/23_containers/unordered_map/requirements/52942.cc: New. - * testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise. - -2012-04-11 Jonathan Wakely - - PR libstdc++/52924 - * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add - user-defined destructor. - (_Sp_counted_inplace): Likewise. - * testsuite/20_util/shared_ptr/cons/52924.cc: New. - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error - line numbers. - -2012-04-11 Jonathan Wakely - - * doc/xml/manual/debug.xml (Debug Versions of Library Binary Files): - Re-arrange text slightly. - -2012-04-11 Jonathan Wakely - - * testsuite/performance/30_threads/future/polling.cc: Adjust. - -2012-04-11 Paolo Carlini - - * include/bits/forward_list.h (splice_after(const_iterator, - forward_list&), splice_after(const_iterator, forward_list&, - const_iterator), splice_after(const_iterator, forward_list&, - const_iterator, const_iterator), merge(forward_list&), - merge(forward_list&, _Comp)): Add per C++11 as published (and - LWG 1310). - * include/debug/forward_list: Adjust. - - * include/bits/forward_list.h (splice_after(const_iterator, - forward_list&&, const_iterator)): Only declare. - (_M_transfer_after): Remove. - (_M_splice_after(const_iterator, forward_list&&)): Change signature. - (splice_after(const_iterator, forward_list&&, const_iterator, - const_iterator)): Use the latter. - * include/bits/forward_list.tcc (splice_after(const_iterator, - forward_list&&, const_iterator)): Define here. - (_M_splice_after): Define, use throughout. - - * include/bits/forward_list.h (insert_after(const_iterator, - std::initializer_list<_Tp>)): Forward to insert_after(const_iterator, - _InputIterator, _InputIterator). - * include/bits/forward_list.tcc: Remove definition. - - * testsuite/23_containers/forward_list/modifiers/6.cc: New. - * testsuite/23_containers/forward_list/operations/1.cc: Adjust. - -2012-04-11 Paolo Carlini - - PR libstdc++/52931 - * include/bits/functional_hash.h (struct hash): Remove definition. - * testsuite/20_util/hash/52931.cc: New. - -2012-04-11 Manuel López-Ibáñez - - PR 24985 - * testsuite/lib/prune.exp: Handle caret. - -2012-04-05 Rainer Orth - - Partially revert: - 2012-03-28 Benjamin Kosnik - - PR libstdc++/52689 - * src/c++98/compatibility-list.cc: Same. - -2012-04-05 Bernhard Reutner-Fischer - - PR bootstrap/52840 - * src/Makefile.am (build-debug): Do not adjust vpath dir, remove - Makefile.tmp - * src/Makefile.in: Adjust as per above. - -2012-04-04 Uros Bizjak - - Partially revert: - 2012-03-28 Benjamin Kosnik - - PR libstdc++/52689 - * src/c++98/compatibility-ldbl.cc: Guard with PIC - -2012-04-02 Tristan Gingold - - * crossconfig.m4 (*-*-*vms*): Add. - * configure: Regenerate. - -2012-04-01 Jonathan Wakely - - PR libstdc++/52591 - * include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch - to _M_move_assign depending on whether allocator is moved. - (vector::_M_move_assign): Add overloaded functions. - * testsuite/23_containers/vector/52591.cc: New. - * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: - Adjust dg-error line number. - * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: - Likewise. - * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: - Likewise. - * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: - Likewise. - -2012-04-01 Jonathan Wakely - - * include/std/functional (__callable_functor): Overload for - volatile-qualified pointers. - * testsuite/20_util/function/10.cc: New. - -2012-03-30 Jeffrey Yasskin - Paolo Carlini - - PR libstdc++/52799 - * include/bits/deque.tcc (emplace): Fix thinko, replace push_front - -> emplace_front, and likewise for *_back. - * testsuite/23_containers/deque/modifiers/emplace/52799.cc: New. - * testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise. - * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise. - -2012-03-28 Benjamin Kosnik - - PR libstdc++/52689 - * libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. - * libsupc++/Makefile.in: Regenerated. - * src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. - (libstdc___la_SOURCES): Add in compatiblity files, with content - that varies with -DPIC. - * src/Makefile.in: Regenerated. - * src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. - * src/c++11/Makefile.in: Regenerated. - * src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC. - * src/c++11/compatibility-c++0x.cc: Same. - * src/c++11/future.cc: Consolidate compatibility bits into.. - * src/c++11/mutex.cc: Consolidate compatibility bits into.. - * src/c++11/compatibility-thread-cxx0x.cc: ...here. New. - * src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. - * src/c++98/Makefile.in: Regenerated. - * src/c++98/compatibility-ldbl.cc: Guard with PIC - * src/c++98/compatibility-list-2.cc: Same. - * src/c++98/compatibility-list.cc: Same. - * src/c++98/compatibility.cc: Tweak comments. - -2012-03-28 Terry Guo - - * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New. - * testsuite/Makefile.in: Regenerated. - -2012-03-27 Jonathan Wakely - - * include/std/functional (mem_fn): Qualify to prevent ADL. - * testsuite/20_util/function_objects/mem_fn/adl.cc: New. - -2012-03-27 Jonathan Wakely - - * include/std/type_traits (result_of): Fix handling of cv-quals. - * testsuite/20_util/result_of/1.cc: New. - * testsuite/20_util/result_of/2.cc: New. - * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error - line numbers. - * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: - Likewise. - * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: - Likewise. - -2012-03-23 David S. Miller - - * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update. - -2012-03-23 Benjamin Kosnik - - * scripts/testsuite_flags.in (--cxxflags): Let CXXFLAGS set -g -O2. - * testsuite/lib/libstdc++.exp: Same. - -2012-03-23 Paolo Carlini - - * include/bits/forward_list.h: Slightly tweak two comments. - -2012-03-22 Benjamin Kosnik - - * doc/Makefile.am: XML output names have only .xml suffix. - * doc/Makefile.in: Regenerate. - -2012-03-22 Paolo Carlini - - * include/std/array (array<>::at(size_type) const): Fix version - for undefined __EXCEPTIONS. - -2013-03-21 Andreas Tobler - - * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: - Skip this test on powerpc64-*-freebsd*. - -2012-03-20 Jonathan Wakely - - * include/bits/stl_list.h (list::_M_size): Use NSDMI. - * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: - Adjust line numbers. - * testsuite/23_containers/list/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/ - constructor_2_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: - Likewise. - -2012-03-19 Paweł Sikora - - PR libstdc++/52540 - * include/Makefile.am (c++config.h): Fix sed rule to not break - the _GLIBCXX_EXTERN_TEMPLATE redefinition. - * include/Makefile.in: Regenerate. - -2012-03-19 Paolo Carlini - - * testsuite/Makefile.in: Regenerate. - -2012-03-19 Benjamin Kosnik - - * include/bits/allocator.h (std::allocator): Base class is - __allocator_base. - (uses_allocator): Add to sub-grouping. - * include/ext/new_allocator.h: Doxygen markup for tparm. - - * config/allocator/bitmap_allocator_base.h: Use __allocator_base - template alias in C++11. - * config/allocator/malloc_allocator_base.h: Same. - * config/allocator/mt_allocator_base.h: Same. - * config/allocator/new_allocator_base.h: Same. - * config/allocator/pool_allocator_base.h: Same. - -2012-03-19 Benjamin Kosnik - - * include/ext/pb_ds/detail/pat_trie_/ - constructors_destructor_fn_imps.hpp: Increment after recursion. - * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert - node_type markup from brief. - -2012-03-16 François Dumont - - PR libstdc++/52476 - * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add. - (_Hashtable<>::_M_rehash): Use the latter. - * testsuite/23_containers/unordered_multimap/insert/52476.cc: New. - * testsuite/23_containers/unordered_multiset/insert/52476.cc: New. - -2012-03-14 Rainer Orth - - * config/os/solaris/solaris2.8: Rename to ... - * config/os/solaris/solaris2.9: ... this. - * config/abi/post/solaris2.8: Rename to ... - * config/abi/post/solaris2.9: ... this. - * configure.host (os_include_dir): Remove solaris2.8. - Reflect renaming. - (abi_baseline_pair): Remove *-*-solaris2.8. - Reflect renaming. - - * configure.ac (GLIBCXX_CHECK_MATH_PROTO): Remove - (GLIBCXX_CHECK_STDLIB_PROTO): Remove. - * acinclude.m4 (GLIBCXX_CHECK_MATH_PROTO): Remove - (GLIBCXX_CHECK_STDLIB_PROTO): Remove. - (GLIBCXX_CHECK_GTHREADS): Remove Solaris 8 handling. - * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Remove *-solaris2.8 - handling. - * configure: Regenerate. - * config.h.in: Regenerate. - - * config/os/solaris/solaris2.9/os_defines.h - (__CORRECT_ISO_CPP_MATH_H_PROTO): Define. - (__CORRECT_ISO_CPP_STDLIB_H_PROTO): Define. - * include/c_global/cmath: Rename __CORRECT_ISO_CPP_MATH_H_PROTO1 - to __CORRECT_ISO_CPP_MATH_H_PROTO. - [!__CORRECT_ISO_CPP_MATH_H_PROTO2]: Remove. - * include/tr1/cmath: Rename __CORRECT_ISO_CPP_MATH_H_PROTO1 to - __CORRECT_ISO_CPP_MATH_H_PROTO. - - * doc/xml/manual/configure.xml (Configure, --enable-libstdcxx-threads): - Remove Solaris 8 reference. - - * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc: - Don't xfail on *-*-solaris2.8. - * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc: - Likewise. - * testsuite/ext/enc_filebuf/char/13598.cc: Don't xfail on - *-*-solaris2.8. - -2012-03-14 Rainer Orth - - * configure.host (irix6.5*): Remove. - * config/os/irix: Remove. - * config/io/basic_file_stdio.cc (__basic_file::showmanyc()) - [_GLIBCXX_FIONREAD_TAKES_OFF_T]: Remove. - - * doc/xml/faq.xml: Remove IRIX reference. - * doc/xml/manual/using.xml (Finding Dynamic or Shared Libraries): - Remove IRIX example. - - * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: - Remove mips-sgi-irix6* handling. - * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. - * testsuite/21_strings/basic_string/pthread18185.cc: Likewise. - * testsuite/21_strings/basic_string/pthread4.cc: Likewise. - * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise. - * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise. - * testsuite/23_containers/list/pthread1.cc: Likewise. - * testsuite/23_containers/list/pthread5.cc: Likewise. - * testsuite/23_containers/map/pthread6.cc: Likewise. - * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise. - * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise. - * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise. - * testsuite/30_threads/async/42819.cc: Likewise. - * testsuite/30_threads/async/49668.cc: Likewise. - * testsuite/30_threads/async/any.cc: Likewise. - * testsuite/30_threads/async/async.cc: Likewise. - * testsuite/30_threads/async/launch.cc: Likewise. - * testsuite/30_threads/async/sync.cc: Likewise. - * testsuite/30_threads/call_once/39909.cc: Likewise. - * testsuite/30_threads/call_once/49668.cc: Likewise. - * testsuite/30_threads/call_once/call_once1.cc: Likewise. - * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. - * testsuite/30_threads/condition_variable/members/1.cc: Likewise. - * testsuite/30_threads/condition_variable/members/2.cc: Likewise. - * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: - Likewise. - * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. - * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. - * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. - * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. - * testsuite/30_threads/future/cons/move.cc: Likewise. - * testsuite/30_threads/future/members/45133.cc: Likewise. - * testsuite/30_threads/future/members/get.cc: Likewise. - * testsuite/30_threads/future/members/get2.cc: Likewise. - * testsuite/30_threads/future/members/share.cc: Likewise. - * testsuite/30_threads/future/members/valid.cc: Likewise. - * testsuite/30_threads/future/members/wait.cc: Likewise. - * testsuite/30_threads/future/members/wait_for.cc: Likewise. - * testsuite/30_threads/future/members/wait_until.cc: Likewise. - * testsuite/30_threads/lock/1.cc: Likewise. - * testsuite/30_threads/lock/2.cc: Likewise. - * testsuite/30_threads/lock/3.cc: Likewise. - * testsuite/30_threads/lock/4.cc: Likewise. - * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. - * testsuite/30_threads/mutex/cons/1.cc: Likewise. - * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. - * testsuite/30_threads/mutex/lock/1.cc: Likewise. - * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. - * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/packaged_task/49668.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. - * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. - * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. - * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. - * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. - * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. - * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. - * testsuite/30_threads/promise/cons/1.cc: Likewise. - * testsuite/30_threads/promise/cons/alloc.cc: Likewise. - * testsuite/30_threads/promise/cons/move.cc: Likewise. - * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. - * testsuite/30_threads/promise/members/get_future.cc: Likewise. - * testsuite/30_threads/promise/members/get_future2.cc: Likewise. - * testsuite/30_threads/promise/members/set_exception.cc: Likewise. - * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. - * testsuite/30_threads/promise/members/set_value.cc: Likewise. - * testsuite/30_threads/promise/members/set_value2.cc: Likewise. - * testsuite/30_threads/promise/members/set_value3.cc: Likewise. - * testsuite/30_threads/promise/members/swap.cc: Likewise. - * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: - Likewise. - * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: - Likewise. - * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/shared_future/cons/move.cc: Likewise. - * testsuite/30_threads/shared_future/members/45133.cc: Likewise. - * testsuite/30_threads/shared_future/members/get.cc: Likewise. - * testsuite/30_threads/shared_future/members/get2.cc: Likewise. - * testsuite/30_threads/shared_future/members/valid.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. - * testsuite/30_threads/this_thread/1.cc: Likewise. - * testsuite/30_threads/this_thread/2.cc: Likewise. - * testsuite/30_threads/this_thread/3.cc: Likewise. - * testsuite/30_threads/this_thread/4.cc: Likewise. - * testsuite/30_threads/thread/cons/1.cc: Likewise. - * testsuite/30_threads/thread/cons/2.cc: Likewise. - * testsuite/30_threads/thread/cons/3.cc: Likewise. - * testsuite/30_threads/thread/cons/4.cc: Likewise. - * testsuite/30_threads/thread/cons/49668.cc: Likewise. - * testsuite/30_threads/thread/cons/5.cc: Likewise. - * testsuite/30_threads/thread/cons/6.cc: Likewise. - * testsuite/30_threads/thread/cons/7.cc: Likewise. - * testsuite/30_threads/thread/cons/8.cc: Likewise. - * testsuite/30_threads/thread/cons/9.cc: Likewise. - * testsuite/30_threads/thread/cons/moveable.cc: Likewise. - * testsuite/30_threads/thread/members/1.cc: Likewise. - * testsuite/30_threads/thread/members/2.cc: Likewise. - * testsuite/30_threads/thread/members/3.cc: Likewise. - * testsuite/30_threads/thread/members/4.cc: Likewise. - * testsuite/30_threads/thread/members/5.cc: Likewise. - * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise. - * testsuite/30_threads/thread/native_handle/typesizes.cc: Likewise. - * testsuite/30_threads/thread/swap/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. - * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. - * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/try_lock/1.cc: Likewise. - * testsuite/30_threads/try_lock/2.cc: Likewise. - * testsuite/30_threads/try_lock/3.cc: Likewise. - * testsuite/30_threads/try_lock/4.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. - * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. - * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. - * testsuite/ext/rope/pthread7-rope.cc: Likewise. - * testsuite/tr1/2_general_utilities/shared_ptr/thread/ - default_weaktoshared.cc: Likewise. - * testsuite/tr1/2_general_utilities/shared_ptr/thread/ - mutex_weaktoshared.cc: Likewise. - - * testsuite/23_containers/vector/capacity/resize/1.cc: Remove - dg-options for mips*-*-irix6*. - - * testsuite/27_io/ios_base/storage/1.cc: Likewise. - * testsuite/27_io/ios_base/storage/2.cc: Likewise. - * testsuite/27_io/ios_base/storage/3.cc: Likewise. - - * testsuite/lib/libstdc++.exp (v3-build_support): Remove IRIX 6 - workaround. - -2012-03-14 Paolo Carlini - - * include/bits/forward_list.h: Fix comments. - -2012-03-13 Terry Guo - - * testsuite/Makefile.in (TEST_GCC_EXEC_PREFIX): New. - -2012-03-12 Rainer Orth - - * configure.host: Remove osf* handling. - * config/os/osf: Remove. - * doc/xml/manual/using.xml: Remove OSF reference. - - * testsuite/18_support/pthread_guard.cc: Remove alpha*-*-osf* handling. - * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise. - * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. - * testsuite/21_strings/basic_string/pthread18185.cc: Likewise. - * testsuite/21_strings/basic_string/pthread4.cc: Likewise. - * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise. - * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise. - * testsuite/23_containers/list/pthread1.cc: Likewise. - * testsuite/23_containers/list/pthread5.cc: Likewise. - * testsuite/23_containers/map/pthread6.cc: Likewise. - * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise. - * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise. - * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise. - * testsuite/30_threads/async/42819.cc: Likewise. - * testsuite/30_threads/async/49668.cc: Likewise. - * testsuite/30_threads/async/any.cc: Likewise. - * testsuite/30_threads/async/async.cc: Likewise. - * testsuite/30_threads/async/launch.cc: Likewise. - * testsuite/30_threads/async/sync.cc: Likewise. - * testsuite/30_threads/call_once/39909.cc: Likewise. - * testsuite/30_threads/call_once/49668.cc: Likewise. - * testsuite/30_threads/call_once/call_once1.cc: Likewise. - * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. - * testsuite/30_threads/condition_variable/members/1.cc: Likewise. - * testsuite/30_threads/condition_variable/members/2.cc: Likewise. - * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: - Likewise. - * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. - * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. - * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. - * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. - * testsuite/30_threads/future/cons/move.cc: Likewise. - * testsuite/30_threads/future/members/45133.cc: Likewise. - * testsuite/30_threads/future/members/get.cc: Likewise. - * testsuite/30_threads/future/members/get2.cc: Likewise. - * testsuite/30_threads/future/members/share.cc: Likewise. - * testsuite/30_threads/future/members/valid.cc: Likewise. - * testsuite/30_threads/future/members/wait.cc: Likewise. - * testsuite/30_threads/future/members/wait_for.cc: Likewise. - * testsuite/30_threads/future/members/wait_until.cc: Likewise. - * testsuite/30_threads/lock/1.cc: Likewise. - * testsuite/30_threads/lock/2.cc: Likewise. - * testsuite/30_threads/lock/3.cc: Likewise. - * testsuite/30_threads/lock/4.cc: Likewise. - * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. - * testsuite/30_threads/mutex/cons/1.cc: Likewise. - * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. - * testsuite/30_threads/mutex/lock/1.cc: Likewise. - * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. - * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/packaged_task/49668.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. - * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. - * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. - * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. - * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. - * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. - * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. - * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. - * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. - * testsuite/30_threads/promise/cons/1.cc: Likewise. - * testsuite/30_threads/promise/cons/alloc.cc: Likewise. - * testsuite/30_threads/promise/cons/move.cc: Likewise. - * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. - * testsuite/30_threads/promise/members/get_future.cc: Likewise. - * testsuite/30_threads/promise/members/get_future2.cc: Likewise. - * testsuite/30_threads/promise/members/set_exception.cc: Likewise. - * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. - * testsuite/30_threads/promise/members/set_value.cc: Likewise. - * testsuite/30_threads/promise/members/set_value2.cc: Likewise. - * testsuite/30_threads/promise/members/set_value3.cc: Likewise. - * testsuite/30_threads/promise/members/swap.cc: Likewise. - * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: - Likewise. - * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: - Likewise. - * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: - Likewise. - * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/shared_future/cons/move.cc: Likewise. - * testsuite/30_threads/shared_future/members/45133.cc: Likewise. - * testsuite/30_threads/shared_future/members/get.cc: Likewise. - * testsuite/30_threads/shared_future/members/get2.cc: Likewise. - * testsuite/30_threads/shared_future/members/valid.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. - * testsuite/30_threads/this_thread/1.cc: Likewise. - * testsuite/30_threads/this_thread/2.cc: Likewise. - * testsuite/30_threads/this_thread/3.cc: Likewise. - * testsuite/30_threads/this_thread/4.cc: Likewise. - * testsuite/30_threads/thread/cons/1.cc: Likewise. - * testsuite/30_threads/thread/cons/2.cc: Likewise. - * testsuite/30_threads/thread/cons/3.cc: Likewise. - * testsuite/30_threads/thread/cons/4.cc: Likewise. - * testsuite/30_threads/thread/cons/49668.cc: Likewise. - * testsuite/30_threads/thread/cons/5.cc: Likewise. - * testsuite/30_threads/thread/cons/6.cc: Likewise. - * testsuite/30_threads/thread/cons/7.cc: Likewise. - * testsuite/30_threads/thread/cons/8.cc: Likewise. - * testsuite/30_threads/thread/cons/9.cc: Likewise. - * testsuite/30_threads/thread/cons/moveable.cc: Likewise. - * testsuite/30_threads/thread/members/1.cc: Likewise. - * testsuite/30_threads/thread/members/2.cc: Likewise. - * testsuite/30_threads/thread/members/3.cc: Likewise. - * testsuite/30_threads/thread/members/4.cc: Likewise. - * testsuite/30_threads/thread/members/5.cc: Likewise. - * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise. - * testsuite/30_threads/thread/swap/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. - * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. - * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. - * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/try_lock/1.cc: Likewise. - * testsuite/30_threads/try_lock/2.cc: Likewise. - * testsuite/30_threads/try_lock/3.cc: Likewise. - * testsuite/30_threads/try_lock/4.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. - * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. - * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. - * testsuite/ext/rope/pthread7-rope.cc: Likewise. - * testsuite/tr1/2_general_utilities/shared_ptr/thread/ - default_weaktoshared.cc: Likewise. - * testsuite/tr1/2_general_utilities/shared_ptr/thread/ - mutex_weaktoshared.cc: Likewise. - -2012-03-12 Paolo Carlini - - PR libstdc++/52562 - * libsupc++/typeinfo (type_info::name, before, operator==, - operator!=): Mark noexcept in C++11 mode. - * libsupc++/tinfo.cc (type_info::operator==): Adjust. - * libsupc++/tinfo2.cc (type_info::before): Likewise. - * testsuite/18_support/type_info/52562.cc: New. - -2012-03-10 John David Anglin - - * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Remove TLS - symbols added in last change. - - PR libstdc++/52456 - * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update. - -2012-03-09 Andreas Schwab - - * config/locale/gnu/monetary_members.cc - (moneypunct::_M_initialize_moneypunct): Throw caught - exception again. - (moneypunct::_M_initialize_moneypunct): Likewise. - * testsuite/22_locale/locale/cons/12352.cc: Also test en_US - locale. - -2012-03-09 Paolo Carlini - - * include/debug/formatter.h (enum _Debug_msg_id): Add - __msg_self_move_assign. - * include/debug/macros.h (__glibcxx_check_self_move_assign): Add. - * src/c++11/debug.cc (_S_debug_messages): Update. - * include/debug/safe_iterator.h (_Safe_iterator<>::operator= - (_Safe_iterator&&)): Add check for self move assignment. - * include/debug/set.h: Likewise. - * include/debug/unordered_map: Likewise. - * include/debug/multiset.h: Likewise. - * include/debug/forward_list: Likewise. - * include/debug/unordered_set: Likewise. - * include/debug/vector: Likewise. - * include/debug/map.h: Likewise. - * include/debug/deque: Likewise. - * include/debug/string: Likewise. - * include/debug/list: Likewise. - * include/debug/multimap.h: Likewise. - * testsuite/21_strings/debug/self_move_assign_neg.cc: New. - * testsuite/21_strings/debug/iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/unordered_map/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/unordered_map/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/multimap/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/multimap/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/set/debug/self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/set/debug/iterator_self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/unordered_multimap/debug/ - self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/unordered_multimap/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/forward_list/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/forward_list/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/unordered_set/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/unordered_set/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/vector/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/vector/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/deque/debug/self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/deque/debug/iterator_self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/multiset/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/multiset/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/list/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/list/debug/iterator_self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/unordered_multiset/debug/ - self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/unordered_multiset/debug/ - iterator_self_move_assign_neg.cc: Likewise. - * testsuite/23_containers/map/debug/self_move_assign_neg.cc: - Likewise. - * testsuite/23_containers/map/debug/iterator_self_move_assign_neg.cc: - Likewise. - -2012-03-08 Benjamin Kosnik - - * doc/doxygen/user.cfg.in: Update to Doxygen 1.8.0. - * include/bits/locale_facets.h: Adjust markup to avoid warnings. - * include/ext/pb_ds/assoc_container.hpp: Same. - * include/ext/pb_ds/priority_queue.hpp: Same. - * include/std/fstream: Same. - * include/std/ratio: Same. - * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust line - numbers. - * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Same. - -2012-03-08 Jonathan Wakely - - PR libstdc++/52433 - * include/debug/safe_iterator.h (_Safe_iterator): Add debug checks - to move constructor and move assignment operator. - -2012-03-05 Paolo Carlini - - * include/bits/stl_algobase.h (iter_swap): In C++11 mode simply - call swap. - * include/bits/stl_bvector.h (swap(_Bit_reference, - _Bit_reference), swap(_Bit_reference, bool&), - swap(bool&, _Bit_reference)): Add. - * testsuite/23_containers/vector/bool/swap.cc: New. - -2012-03-04 Paolo Carlini - Jonathan Wakely - - PR libstdc++/43813 - * include/bits/stl_iterator_base_types.h (_RequireInputIter): New. - * include/ext/vstring.h (__versa_string<>::__versa_string - (_InputIterator, _InputIterator, const _Alloc&), - __versa_string<>::append(_InputIterator, _InputIterator), - __versa_string<>::assign(_InputIterator, _InputIterator), - __versa_string<>::insert(iterator, _InputIterator, - _InputIterator), __versa_string<>::replace(iterator, iterator, - _InputIterator, _InputIterator)): Use it. - * include/bits/stl_list.h (list<>::list(_InputIterator, - _InputIterator, const allocator_type&), list<>::assign(_InputIterator, - _InputIterator), list<>::insert(iterator, _InputIterator, - _InputIterator)): Likewise. - * include/bits/stl_vector.h (vector<>::vector(_InputIterator, - _InputIterator, const allocator_type&), vector<>::assign(_InputIterator, - _InputIterator), vectort<>::insert(iterator, _InputIterator, - _InputIterator)): Likewise. - * include/bits/stl_deque.h (deque<>::deque(_InputIterator, - _InputIterator, const allocator_type&), deque<>::deque(_InputIterator, - _InputIterator), deque<>::insert(iterator, _InputIterator, - _InputIterator)): Likewise. - * include/bits/stl_bvector.h (vector<>::vector(_InputIterator, - _InputIterator, const allocator_type&), vector<>::deque(_InputIterator, - _InputIterator), vector<>::insert(iterator, _InputIterator, - _InputIterator)): Likewise. - * include/bits/forward_list.h (forward_list<>::forward_list - (_InputIterator, _InputIterator, const allocator_type&), - forward_list<>::assign(_InputIterator, _InputIterator), - forward_list<>::insert_after(const_iterator, _InputIterator, - _InputIterator)): Likewise. - (forward_list<>::_M_initialize_dispatch(,, __true_type): Remove. - (forward_list<>::_M_range_initialize): Add, adjust everywhere. - * include/bits/forward_list.tcc: Adjust. - * include/debug/forward_list: Adjust. - * include/debug/vector: Likewise. - * include/debug/deque: Likewise. - * include/debug/list: Likewise. - * testsuite/ext/vstring/requirements/do_the_right_thing.cc: New. - * testsuite/23_containers/forward_list/requirements/ - do_the_right_thing.cc: Likewise. - * testsuite/23_containers/vector/requirements/ - do_the_right_thing.cc: Likewise. - * testsuite/23_containers/deque/requirements/ - do_the_right_thing.cc: Likewise. - * testsuite/23_containers/list/requirements/ - do_the_right_thing.cc: Likewise. - * testsuite/23_containers/forward_list/requirements/dr438/ - assign_neg.cc: Adjust dg-error line number. - * testsuite/23_containers/forward_list/requirements/dr438/ - insert_neg.cc: Likewise. - * testsuite/23_containers/forward_list/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/forward_list/requirements/dr438/ - constructor_2_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/ - assign_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/ - insert_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/vector/requirements/dr438/ - constructor_2_neg.cc: Likewise. - * testsuite/23_containers/deque/requirements/dr438/ - assign_neg.cc: Likewise. - * testsuite/23_containers/deque/requirements/dr438/ - insert_neg.cc: Likewise. - * testsuite/23_containers/deque/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/deque/requirements/dr438/ - constructor_2_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/ - assign_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/ - insert_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/ - constructor_1_neg.cc: Likewise. - * testsuite/23_containers/list/requirements/dr438/ - constructor_2_neg.cc: Likewise. - -2012-03-04 Jonathan Wakely - - PR libstdc++/52433 - * include/debug/safe_iterator.h (_Safe_iterator): Add move - constructor and move assignment operator. - * testsuite/23_containers/vector/debug/52433.cc: New. - -2012-03-02 Paolo Carlini - - * include/std/limits (numeric_limits): Fix returns per C++11. - * testsuite/18_support/numeric_limits/primary.cc: New. - -2012-03-02 Benjamin Kosnik - - * include/c_global/cstdio: Remove extraneous extern. - * include/c_std/cstdio: Same. - -2012-03-02 Rainer Orth - - * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate. - * config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise. - * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise. - * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise. - * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise. - -2012-03-01 Benjamin Kosnik - Ramana Radhakrishnan - - PR libstdc++/51785 - * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New. - * configure.ac: Call it. - * configure: Regenerate. - * config.h.in: Same. - * config/os/gnu-linux/os_defines.h: Conditionally undefine - _GLIBCXX_HAVE_GETS. - * include/c_global/cstdio: Conditionally declare deprecated gets. - * include/c_std/cstdio: Same. - -2012-03-01 Michael Spertus - - * include/tr2/type_traits (typelist): To __reflection_typelist. - (first, rest, empty): Remove. - -2012-03-01 Benjamin Kosnik - - * testsuite/Makefile.am (CLEANFILES): Add *.gdb. - * testsuite/Makefile.in: Regenerate. - -2012-02-29 H.J. Lu - - * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update. - -2012-02-28 Benjamin Kosnik - - PR libstdc++/52191 - * testsuite/util/testsuite_abi.cc (compare_symbols): Check new - symbols added into the latest version. Mark tls entities as - undesignated. - -2012-02-28 Jakub Jelinek - - PR bootstrap/52414 - * src/Makefile.am (libstdc++-symbols.ver): Only remove comment lines - if they are at the beginning of lines (with optional whitespace before - #). - * src/Makefile.in: Regenerated. - -2012-02-27 Jakub Jelinek - - * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. - * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: - Likewise. - * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise. - * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise. - -2012-02-27 Rainer Orth - - PR libstdc++/52188 - * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming. - Remove ENABLE_SYMVERS_SOL2. - * configure: Regenerate. - * src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver): - Postprocess mapfile. - [ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling. - * src/Makefile.in: Regenerate. - - * config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]: - Don't export - _ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv. - -2012-02-25 John David Anglin - - PR testsuite/52201 - * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: - Require atomic builtins. - * testsuite/29_atomics/atomic/operators/51811.cc: Likewise. - -2012-02-23 Jason Merrill - - * include/bits/locale_facets.h (class num_get): Undo reordering of - do_get virtual functions. - -2012-02-14 Edward Smith-Rowland <3dw4rd@verizon.net> - - * testsuite/26_numerics/random/ - uniform_real_distribution/requirements/typedefs.cc: Check param_type. - * testsuite/26_numerics/random/ - piecewise_constant_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - chi_squared_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - normal_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - uniform_int_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - poisson_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - bernoulli_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - discrete_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - weibull_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - cauchy_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - negative_binomial_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - gamma_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - fisher_f_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - exponential_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - binomial_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - lognormal_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - extreme_value_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - piecewise_linear_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - student_t_distribution/requirements/typedefs.cc: Ditto. - * testsuite/26_numerics/random/ - geometric_distribution/requirements/typedefs.cc: Ditto. - -2012-02-21 Benjamin Kosnik - - PR libstdc++/50349 - * config/abi/pre/gnu.ver: Only one local. - * config/abi/pre/gnu-versioned-namespace.ver: Same. - -2012-02-21 Paolo Carlini - - PR libstdc++/52317 (cont) - * include/profile/unordered_map: Ad Library Exception comment. - * include/profile/set: Likewise. - * include/profile/base.h: Likewise. - * include/profile/impl/profiler_list_to_slist.h: Likewise. - * include/profile/impl/profiler_container_size.h: Likewise. - * include/profile/impl/profiler_vector_size.h: Likewise. - * include/profile/impl/profiler_hash_func.h: Likewise. - * include/profile/impl/profiler_trace.h: Likewise. - * include/profile/impl/profiler_list_to_vector.h: Likewise. - * include/profile/impl/profiler_vector_to_list.h: Likewise. - * include/profile/impl/profiler.h: Likewise. - * include/profile/impl/profiler_state.h: Likewise. - * include/profile/impl/profiler_map_to_unordered_map.h: Likewise. - * include/profile/impl/profiler_algos.h: Likewise. - * include/profile/impl/profiler_hashtable_size.h: Likewise. - * include/profile/impl/profiler_node.h: Likewise. - * include/profile/vector: Likewise. - * include/profile/unordered_set: Likewise. - * include/profile/map.h: Likewise. - * include/profile/map: Likewise. - -2012-02-21 Paolo Carlini - - PR libstdc++/52317 - * python/Makefile.am: Update boilerplate license text to GPLv3. - * include/profile/unordered_map: Likewise. - * include/profile/set: Likewise. - * include/profile/base.h: Likewise. - * include/profile/impl/profiler_list_to_slist.h: Likewise. - * include/profile/impl/profiler_container_size.h: Likewise. - * include/profile/impl/profiler_vector_size.h: Likewise. - * include/profile/impl/profiler_hash_func.h: Likewise. - * include/profile/impl/profiler_trace.h: Likewise. - * include/profile/impl/profiler_list_to_vector.h: Likewise. - * include/profile/impl/profiler_vector_to_list.h: Likewise. - * include/profile/impl/profiler.h: Likewise. - * include/profile/impl/profiler_state.h: Likewise. - * include/profile/impl/profiler_map_to_unordered_map.h: Likewise. - * include/profile/impl/profiler_algos.h: Likewise. - * include/profile/impl/profiler_hashtable_size.h: Likewise. - * include/profile/impl/profiler_node.h: Likewise. - * include/profile/vector: Likewise. - * include/profile/unordered_set: Likewise. - * include/profile/map.h: Likewise. - * include/profile/map: Likewise. - * testsuite/21_strings/basic_string/numeric_conversions/ - wchar_t/dr1261.cc: Likewise. - * testsuite/21_strings/basic_string/numeric_conversions/ - char/dr1261.cc: Likewise. - * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise. - -2012-02-20 Paolo Carlini - - PR libstdc++/52241 - * src/c++98/tree.cc (local_Rb_tree_increment, - local_Rb_tree_decrement): Add. - (_Rb_tree_increment(const _Rb_tree_node_base*), - _Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter. - (_Rb_tree_increment(_Rb_tree_node_base*), - _Rb_tree_decrement(_Rb_tree_node_base*)): New. - -2012-02-20 Paolo Carlini - - PR libstdc++/52309 - * include/bits/hashtable_policy.h (_Equality_base<, true,>:: - _M_equal(const _Hashtable&)): Compare values with operator==. - * testsuite/23_containers/unordered_set/operators/52309.cc: New. - -2012-02-17 Benjamin Kosnik - - PR libstdc++/51798 continued. - * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for - __atomic_, not __sync. - * configure: Regenerated. - -2012-02-17 Benjamin Kosnik - - PR libstdc++/47058 - * acinclude.m4 (GLIBCXX_ENABLE_WERROR): New. - (GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS - * configure.ac: Use it. - * fragment.am: Set WERROR_FLAG conditionally on --disable-werror. - * configure: Regenerate. - * python/Makefile.in: Same. - * Makefile.in: Same. - * doc/Makefile.in: Same. - * include/Makefile.in: Same. - * po/Makefile.in: Same. - * python/Makefile.in: Same. - * src/Makefile.in: Same. - * src/c++11/Makefile.in: Same. - * src/c++98/Makefile.in: Same. - * testsuite/Makefile.in: Same. - -2012-02-17 Rainer Orth - - PR libstdc++/52189 - * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle - --enable-libstdcxx-threads. - Disable on Solaris 8/9 with symbol versioning. - * configure.ac (GLIBCXX_CHECK_GTHREADS): Move after - GLIBCXX_ENABLE_SYMVERS. - * configure: Regenerate. - * doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain. - -2012-02-15 DJ Delorie - - * src/c++98/locale.cc (locale::facet::_S_get_c_locale): Fix typo. - -2012-02-15 Benjamin Kosnik - - PR libstdc++/51368 - * acinclude.m4 (GLIBCXX_ENABLE_PYTHON): New. - * configure.ac: Use it. - * python/Makefile.am: Same. - * configure: Regenerate. - * python/Makefile.in: Regenerate. - * Makefile.in: Same. - * doc/Makefile.in: Same. - * include/Makefile.in: Same. - * po/Makefile.in: Same. - * src/Makefile.in: Same. - * src/c++11/Makefile.in: Same. - * src/c++98/Makefile.in: Same. - * testsuite/Makefile.in: Same. - -2012-02-14 Jonathan Wakely - - * 30_threads/thread/native_handle/typesizes.cc: Do not run on cygwin. - -2012-02-14 Tom Tromey - - * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add new - tests. - * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__): - Rewrite. - (Tr1HashtableIterator.update): Remove. - (Tr1HashtableIterator.next): Rewrite. - -2012-02-13 Benjamin Kosnik - - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers. - * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same. - -2012-02-13 Richard Henderson - - PR libstdc++/51798 continued. - * include/bits/shared_ptr_base.h - (_Sp_counted_base<_S_atomic>::_M_add_ref_lock): Hoist initial load - outside compare_exchange loop. - * include/tr1/shared_ptr.h: Same. - * include/parallel/compatibility.h (__compare_and_swap_32): Use strong - version of compare_exchange. - (__compare_and_swap_64): Same. - * include/profile/impl/profiler_state.h (__gnu_profile::__turn): Same. - * libsupc++/guard.cc (__cxa_guard_acquire): Same. - -2012-02-10 Benjamin Kosnik - Jonathan Wakely - - PR libstdc++/51798 continued. - * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Use __atomic_* - builtins instead of __sync_* builtins for atomic functionality. - * include/bits/shared_ptr_base.h: Same. - * include/parallel/compatibility.h: Same. - * include/profile/impl/profiler_state.h: Same. - * include/tr1/shared_ptr.h: Same. - * libsupc++/eh_ptr.cc: Same. - * libsupc++/eh_throw.cc: Same. - * libsupc++/eh_tm.cc: Same. - * libsupc++/guard.cc: Same. - * configure: Regenerated. - * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers. - * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same. - -2012-02-10 Rainer Orth - - PR libstdc++/51296 - * config/os/osf/ctype_base.h, - config/os/osf/ctype_configure_char.cc, - config/os/osf/ctype_inline.h, config/os/osf/error_constants.h: - Copy from config/os/generic. - * config/os/osf/os_defines.h: Likewise. - (_GTHREAD_USE_MUTEX_INIT_FUNC, _GTHREAD_USE_COND_INIT_FUNC): - Define. - * configure.host : Use os/osf for os_include_dir. - -2012-02-10 Uros Bizjak - - * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Regenerated. - -2012-02-09 Jonathan Wakely - - * doc/xml/manual/documentation_hacking.xml: Fix invalid attribute. - -2012-02-08 Jonathan Wakely - - * doc/xml/manual/status_cxx2011.xml: Update C++11 status table. - -2012-02-07 Benjamin Kosnik - - * doc/doxygen/user.cfg.in: Update to doxygen 1.7.6.1. - * doc/xml/manual/documentation_hacking.xml: Update. - -2012-02-07 Jonathan Wakely - - * testsuite/30_threads/call_once/39909.cc: Remove duplicate target - selector. - * testsuite/30_threads/call_once/49668.cc: Likewise. - * testsuite/30_threads/call_once/call_once1.cc: Likewise. - * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. - * testsuite/30_threads/mutex/cons/1.cc: Likewise. - * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. - * testsuite/30_threads/mutex/lock/1.cc: Likewise. - * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. - * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. - * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. - * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. - * testsuite/30_threads/mutex/unlock/1.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. - * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. - * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. - * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. - * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. - -2012-02-07 Jonathan Wakely - - PR libstdc++/51296 - * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept. - * src/c++11/condition_variable.cc (condition_variable): Use macro for - initializer function. - - PR libstdc++/51906 - * config/os/bsd/darwin/os_defines.h: Disable static initializer for - recursive mutexes. - -2012-02-06 Jonathan Wakely - - PR libstdc++/52128 - * src/c++11/future.cc: Add explicit instantiation. - -2012-02-06 François Dumont - - * include/debug/safe_iterator.h - (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive - creation of a _Safe_iterator instance to do the check. - -2012-02-05 Jonathan Wakely - - PR libstdc++/52104 - * include/std/future (__future_base::_Async_state_common): Define - destructor inline for targets without TLS. - * src/c++11/future.cc (__future_base::_Async_state_common): Only - define destructor for TLS targets. - -2012-02-05 Jonathan Wakely - - PR libstdc++/51956 - * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to... - (SharedPointerPrinter): This. Also show weak count. - * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New. - -2012-02-05 Jonathan Wakely - - * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to - PASS instead of XFAIL. - -2012-02-05 Jeffrey Yasskin - Paolo Carlini - - PR libstdc++/52119 - * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior. - -2012-02-03 Benjamin Kosnik - - PR libstdc++/49445 - * testsuite/29_atomics/atomic/cons/49445.cc: Add. - -2012-02-03 Benjamin Kosnik - - PR libstdc++/51811 - * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets. - * testsuite/29_atomics/atomic/operators/51811.cc: New. - * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New. - -2012-02-03 Jakub Jelinek - - * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. - * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: - Likewise. - * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise. - * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise. - * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise. - -2012-02-02 Benjamin Kosnik - - PR libstdc++/52068 - * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES, - libc__11_la_SOURCES): Remove. - * src/c++11/Makefile.in: Regenerate. - * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES, - libc__98_la_SOURCES): Remove. - * src/c++98/Makefile.in: Regenerate. - -2012-02-01 Jonathan Wakely - - PR libstdc++/49204 - * include/std/future (__future_base::_State_base::wait()): Use lambda - expression for predicate and remove redundant test. - (__future_base::_State_base::wait_for()): Return future_status and - use lambda expression for predicate. - (__future_base::_State_base::wait_until()): Likewise. - (__basic_future::wait_for(), __basic_future::wait_until()): Likewise. - (__future_base::_Async_state): Replace with _Async_state_common - class for non-dependent functionality and _Async_state_impl class - template for dependent functionality. - (__future_base::_Async_state_common::_M_join): Serialize attempts to - join thread. - (__future_base::_Async_state_common::_M_run_deferred): Join. - (__future_base::_Async_state::_M_do_run): Replace with lambda. - * src/c++11/future.cc (__future_base::_Async_state_common): Define - destructor, so key function is in the library. - * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common. - * testsuite/30_threads/packaged_task/members/get_future.cc: Expect - future_status return instead of bool. - * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. - * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. - * testsuite/30_threads/future/members/wait_until.cc: Likewise. - * testsuite/30_threads/future/members/wait_for.cc: Likewise. - * testsuite/30_threads/promise/members/set_value2.cc: Likewise. - * testsuite/30_threads/promise/members/set_value3.cc: Likewise. - * testsuite/30_threads/promise/members/swap.cc: Likewise. - -2012-01-30 Tom Tromey - - PR libstdc++/51649: - * testsuite/libstdc++-prettyprinters/debug.cc: New file. - * testsuite/lib/gdb-test.exp (regexp-test): New proc. - (note-test): Update. - (gdb-test): Handle regexp tests. Add some logging. - * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0. - (placeholder, use): Remove. - (main): Add tests for deque, list, map, and set iterators. Add - tests for slist and slist iterator. - * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7 - namespace. - * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use - the type's _Node typedef. - (StdListIteratorPrinter.to_string): Change how node type is - computed. - (StdSlistPrinter.children): Use the type's _Node typedef. - (StdSlistIteratorPrinter.to_string): Likewise. - (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type - typedef. - (StdMapPrinter.children): Change how the node's type is computed. - (StdSetPrinter.children): Likewise. - (StdForwardListPrinter.children): Use the type's _Node typedef. - (Printer.add_version): New method. - (Printer.add_container): New method. - (build_libstdcxx_dictionary): Handle __7 and __cxx1998 - namespaces. - (find_type): New function. - -2012-01-27 Paolo Carlini - - PR libstdc++/51795 - * include/bits/random.h (linear_congruential_generator): Add - static_assert preventing instantiation for values of 'a' and 'm' - currently handled incorrectly by _Mod::__calc. - * include/bits/random.tcc (seed_seq::generate): Avoid unsafe - uses of _Mod::__calc. - -2012-01-27 Jakub Jelinek - - PR libstdc++/51798 - * config/cpu/generic/atomicity_builtins/atomicity.h - (__exchange_and_add, __atomic_add): Use __atomic_fetch_add - with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add. - * include/ext/atomicity.h (__exchange_and_add, __atomic_add): - Likewise. - -2011-01-27 Rafael Avila de Espindola - - * libsupc++/typeinfo: Correctly match #pragma GCC visibility - pop with #pragma GCC visibility push. - -2012-01-27 Benjamin Kosnik - Matthias Klose - - * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0. - * configure.in: Regenerated. - * src/Makefile.am (all-once, install-data-once): New rules. - (all-local, install-data-local): Use them. - (build-debug, install-debug): Tweak. - * src/Makefile.in: Regenerate. - -2012-01-27 Richard Henderson - - * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i - based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. - (ATOMIC_FLAG_INIT): Initialize with 0, not false. - (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. - -2012-01-26 Jakub Jelinek - - PR bootstrap/51985 - * src/c++98/Makefile.am (libc__98_la_SOURCES, - libc__98convenience_la_SOURCES): Remove $(inst_sources). - * src/c++98/Makefile.in: Regenerated. - -2012-01-25 Richard Sandiford - - * testsuite/20_util/system_clock/1.cc: Add dg-require-time. - * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise. - * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise. - * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise. - * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add - dg-require-fileio. - * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise. - * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise. - * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise. - * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc: - Likewise. - * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise. - -2012-01-25 Matthias Klose - - * testsuite/30_threads/condition_variable_any/requirements: Remove - empty directory. - -2012-01-23 Benjamin Kosnik - - * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy. - * src/Makefile.in: Regenerate. - -2012-01-23 Benjamin Kosnik - - PR libstdc++/49829 - Add libc++98convenience.la, libc++11convenience.la. - * src/c++98: New directory. - * src/c++11: New directory. - * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11. - * configure: Regenerated. - * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS. - * Makefile.in: Regenerate. - * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for - -fno-implicit-templates. - * libsupc++/Makefile.in: Regenerate. - * src/Makefile.am (inst_sources): Move... C++11 files into - separate directory for libstdc++11convenience.la. Files are: - fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc). - (sources): Move C++11 files. Files are: compatibility-c++0x.cc, - compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc, - functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc, - system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc, - mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc. - (libstdc++convenience.la): Add new target. - (SUBDIRS): Add c++11, c++98. - * src/Makefile.in: Regenerate. - * src/c++11/Makefile.am: New. - * src/c++11/Makefile.in: Generate. - * src/c++98/Makefile.am: New, C++98 files. - * src/c++98/Makefile.in: Generate. - -2012-01-23 Rainer Orth - - libstdc++-v3: - * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on - 32-bit Solaris 10/x86. - * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise. - -2012-01-21 Jonathan Wakely - - PR libstdc++/50982 - * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors. - -2012-01-19 Jakub Jelinek - - PR libstdc++/51845 - * include/bits/hashtable.h - (_Hashtable<>::erase(const_iterator, const_iterator)): Also update - _M_buckets[__n_bkt] if __is_bucket_begin. - * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc: - New test. - -2012-01-18 Benjamin Kosnik - - * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting. - -2012-01-18 Benjamin Kosnik - - * configure.ac: Move epub checks... - * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use - test -f instead of AC_CHECK_FILES. - -2012-01-18 François Dumont - Roman Kononov - - PR libstdc++/51866 - * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)): - Do not keep a reference to a potentially moved instance. - * testsuite/23_containers/unordered_multiset/insert/51866.cc: New. - * testsuite/23_containers/unordered_multimap/insert/51866.cc: New. - -2012-01-17 Benjamin Kosnik - - * doc/html/*: Regenerate. - -2012-01-17 Benjamin Kosnik - - * configure.ac (BUILD_EPUB): Adjust for epub3. - * configure: Regenerate. - * Makefile.in: Same. - * doc/Makefile.am (stamp-epub-docbook): Update for epub3. - * doc/Makefile.in: Regenerate. - * include/Makefile.in: Same. - * libsupc++/Makefile.in: Same. - * po/Makefile.in: Same. - * python/Makefile.in: Same. - * src/Makefile.in: Same. - * testsuite/Makefile.in: Same. - - * doc/xml/manual/documentation_hacking.xml: Update. - -2012-01-17 Rainer Orth - - PR target/47852 - * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS. - -2012-01-14 Jonathan Wakely - - * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments. - -2012-01-13 François Dumont - - * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as - base class of ... - (_Hash_node, _Hash_node): ... those. - * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index - by _M_before_begin. Review implementation so that we do not need to - look for previous non-empty bucket when inserting nodes. - -2012-01-09 Kai Tietz - - PR libstc++/51673 part 2 - * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete - operators signature for LLP64 size_t, and adjusted signatures for - mt-allocator using size_t. - -2012-01-09 Benjamin Kosnik - - PR libstc++/51673 part 1 - * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols - with gnu.ver. - -2012-01-09 Benjamin Kosnik - - * fragment.am (WARN_CXXFLAGS): Add -Wabi. - * Makefile.in: Regenerate. - * doc/Makefile.in: Same. - * include/Makefile.in: Same. - * libsupc++/Makefile.in: Same. - * src/Makefile.in: Same. - * testsuite/Makefile.in: Same. - * po/Makefile.in: Same. - * python/Makefile.in: Same. - -2012-01-08 Jonathan Wakely - - * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add. - * testsuite/libstdc++-prettyprinters/cxx11.cc: New. - -2012-01-06 Jason Merrill - - * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust - expected demangling. - -2012-01-06 Jonathan Wakely - - PR libstdc++/51504 - * doc/xml/manual/debug.xml: Suggest using symbol interposition - to override symbols using annotation macros. - -2012-01-05 François Dumont - - * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()): - protected rather than private, use it... - * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here. - * testsuite/23_containers/unordered_set/observers.cc: New. - * testsuite/23_containers/unordered_multiset/observers.cc: New. - * testsuite/23_containers/unordered_map/observers.cc: New. - * testsuite/23_containers/unordered_multimap/observers.cc: New. - -2012-01-03 François Dumont - - * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more - specific _Hashtable_ebo_helper. Hide this implementation detail thanks - to private inheritance. - -2012-01-03 Paolo Carlini - - PR c++/51738 - * testsuite/23_containers/map/element_access/39901.cc: New. +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. diff --git a/libstdc++-v3/ChangeLog-1998 b/libstdc++-v3/ChangeLog-1998 index 2549db48483..ed443df32f2 100644 --- a/libstdc++-v3/ChangeLog-1998 +++ b/libstdc++-v3/ChangeLog-1998 @@ -939,4 +939,9 @@ * iterator (class reverse_iterator): Do some tweaks to be in sync w/ the FDIS. + +Copyright (C) 1998 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. diff --git a/libstdc++-v3/ChangeLog-1999 b/libstdc++-v3/ChangeLog-1999 index 29a506317cf..846535bf966 100644 --- a/libstdc++-v3/ChangeLog-1999 +++ b/libstdc++-v3/ChangeLog-1999 @@ -3541,4 +3541,9 @@ * bits/std_fstream.h: Set _M_buf_size based on cstdio's BUFSIZ. Re-implement virtual functions. * bits/fstream.tcc: Delete unused mf's. + +Copyright (C) 1999 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. diff --git a/libstdc++-v3/ChangeLog-2000 b/libstdc++-v3/ChangeLog-2000 index 274f223b362..d81a03d9f51 100644 --- a/libstdc++-v3/ChangeLog-2000 +++ b/libstdc++-v3/ChangeLog-2000 @@ -5641,4 +5641,9 @@ Thu Nov 2 10:11:45 2000 Mark P Mitchell * docs/index.html, docs/links.html, docs/mail.html, docs/status.html, docs/thanks.html, docs/faq/index.txt: Ditto. * docs/how.html: Ditto. (This file should go away soon.) + +Copyright (C) 2000 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. diff --git a/libstdc++-v3/ChangeLog-2001 b/libstdc++-v3/ChangeLog-2001 index e7d658febc0..27012af4a39 100644 --- a/libstdc++-v3/ChangeLog-2001 +++ b/libstdc++-v3/ChangeLog-2001 @@ -6065,3 +6065,9 @@ * tests_flags.in: Fix typo in usage. * tests_flags.in: Set target specific LIBS for cygwin. + +Copyright (C) 2001 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. diff --git a/libstdc++-v3/ChangeLog-2002 b/libstdc++-v3/ChangeLog-2002 index 3448363ee08..a7da86da75b 100644 --- a/libstdc++-v3/ChangeLog-2002 +++ b/libstdc++-v3/ChangeLog-2002 @@ -5588,3 +5588,9 @@ * configure.in: Add support for NetBSD cross compiles. * configure: Regenerate. + +Copyright (C) 2002 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. diff --git a/libstdc++-v3/ChangeLog-2003 b/libstdc++-v3/ChangeLog-2003 index b01638cd7a5..3def08eef8b 100644 --- a/libstdc++-v3/ChangeLog-2003 +++ b/libstdc++-v3/ChangeLog-2003 @@ -8617,3 +8617,9 @@ * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add): *__mem is also an output. * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise. + +Copyright (C) 2003 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. diff --git a/libstdc++-v3/ChangeLog-2004 b/libstdc++-v3/ChangeLog-2004 index 71642834917..5481e252799 100644 --- a/libstdc++-v3/ChangeLog-2004 +++ b/libstdc++-v3/ChangeLog-2004 @@ -6707,3 +6707,9 @@ Dimension _M_atoms_out and _M_atoms_in one position smaller. (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out and _M_atoms_in. + +Copyright (C) 2004 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. diff --git a/libstdc++-v3/ChangeLog-2005 b/libstdc++-v3/ChangeLog-2005 index 48ae4c1f54f..a71ba23e39f 100644 --- a/libstdc++-v3/ChangeLog-2005 +++ b/libstdc++-v3/ChangeLog-2005 @@ -5466,3 +5466,9 @@ null-terminate array1 at the outset. * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc: Likewise. + +Copyright (C) 2005 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. diff --git a/libstdc++-v3/ChangeLog-2006 b/libstdc++-v3/ChangeLog-2006 index 4f91c8e56e4..abfca29c20d 100644 --- a/libstdc++-v3/ChangeLog-2006 +++ b/libstdc++-v3/ChangeLog-2006 @@ -5849,3 +5849,9 @@ detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put, money_put, etc., symbols to avoid exporting _M_insert symbols @GLIBCXX_3.4. + +Copyright (C) 2006 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. diff --git a/libstdc++-v3/ChangeLog-2007 b/libstdc++-v3/ChangeLog-2007 index d3a1407a91e..8c5fcd1056d 100644 --- a/libstdc++-v3/ChangeLog-2007 +++ b/libstdc++-v3/ChangeLog-2007 @@ -8241,3 +8241,9 @@ * include/tr1/random (gamma_distribution): Fix typo in formula. * docs/doxygen/user.cfg.in: Use package amsmath. + +Copyright (C) 2007 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. diff --git a/libstdc++-v3/ChangeLog-2008 b/libstdc++-v3/ChangeLog-2008 index b1ba0aadc9b..056ae6c84e1 100644 --- a/libstdc++-v3/ChangeLog-2008 +++ b/libstdc++-v3/ChangeLog-2008 @@ -4799,3 +4799,9 @@ random_access_iterator_tag, random_access_iterator_tag)): Careful with undereferenceable iterators. * testsuite/25_algorithms/sort/34636.cc: New. + +Copyright (C) 2008 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. diff --git a/libstdc++-v3/ChangeLog-2009 b/libstdc++-v3/ChangeLog-2009 index e5064a33dc9..acfb058c8bb 100644 --- a/libstdc++-v3/ChangeLog-2009 +++ b/libstdc++-v3/ChangeLog-2009 @@ -12425,3 +12425,9 @@ * testsuite/27_io/basic_istream/read/wchar_t/38678.cc: Likewise. * testsuite/27_io/basic_ostream/write/char/38678.cc: Likewise. * testsuite/27_io/basic_ostream/write/wchar_t/38678.cc: Likewise. + +Copyright (C) 2009 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. diff --git a/libstdc++-v3/ChangeLog-2010 b/libstdc++-v3/ChangeLog-2010 index 82831e77ec4..c4691625d2f 100644 --- a/libstdc++-v3/ChangeLog-2010 +++ b/libstdc++-v3/ChangeLog-2010 @@ -7186,3 +7186,9 @@ Likewise. * testsuite/ext/vstring/requirements/exception/ generation_prohibited.cc: Likewise. + +Copyright (C) 2010 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. diff --git a/libstdc++-v3/ChangeLog-2011 b/libstdc++-v3/ChangeLog-2011 index 6d1ab92f88c..37ab4df2759 100644 --- a/libstdc++-v3/ChangeLog-2011 +++ b/libstdc++-v3/ChangeLog-2011 @@ -6356,7 +6356,6 @@ PR libstdc++/46922 * config/abi/pre/gnu.ver: Export std::bad_function_call symbols. - Copyright (C) 2011 Free Software Foundation, Inc. diff --git a/libstdc++-v3/ChangeLog-2012 b/libstdc++-v3/ChangeLog-2012 new file mode 100644 index 00000000000..3b53aece35a --- /dev/null +++ b/libstdc++-v3/ChangeLog-2012 @@ -0,0 +1,4693 @@ +2012-12-21 Kai Tietz + + * config/os/mingw32/os_defines.h (_GLIBCXX_LLP64): Define if llp64 + abi is used. + * config/os/mingw32-w64/os_defines.h: Likewise. + * libsupc++/cxxabi.h (__base_class_type_info): Adjust + type of __offset_flags for llp64. + * libsupc++/eh_alloc.cc (EMERGENCY_OBJ_SIZE): Define proper + for llp64 abi. + (EMERGENCY_OBJ_COUNT): Likewise. + (bitmask_type): Likewise. + * libsupc++/hash_bytes.cc (_Hash_bytes): Handle llp64. + +2012-12-20 Jonathan Wakely + + * include/std/functional (_Require): Move to ... + * include/std/type_traits (_Require): ... here. + * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up): + Handle unique_ptr for arrays or with custom pointer types. + (__shared_ptr::__shared_ptr(unique_ptr<_Tp1, _Del>&&): Likewise. + * include/bits/unique_ptr.h (unique_ptr<_Tp[], _Dp>): Use + _Dp::pointer if defined. Implement proposed resolution of LWG 2118. + * testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc: New. + * testsuite/20_util/unique_ptr/assign/cv_qual.cc: New. + * testsuite/20_util/unique_ptr/cons/array_convertible_neg.cc: New. + * testsuite/20_util/unique_ptr/cons/convertible_neg.cc: New. + * testsuite/20_util/unique_ptr/cons/cv_qual.cc: New. + * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: New. + * testsuite/20_util/unique_ptr/requirements/pointer_type_array.cc: New. + * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: Adjust comments. + * testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc: + Likewise. + * testsuite/20_util/unique_ptr/requirements/pointer_type.cc: Likewise. + * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line number. + * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. + * testsuite/20_util/default_delete/48631_neg.cc: Likewise. + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. + * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise. + * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust + dg-error text. + * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Use + different instantiations so static_assert fails for each. + +2012-12-20 Jonathan Wakely + + PR libstdc++/55741 + * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for Sleep. + * config.h.in: Regenerate. + * configure: Regenerate. + * src/c++11/thread.cc (__sleep_for): Use Sleep if available. + +2012-12-18 Jonathan Wakely + + * doc/xml/manual/abi.xml: Update URLs for C++ ABI. + * doc/xml/manual/policy_data_structures_biblio.xml: Add xmlns + attribute. + * doc/xml/manual/debug_mode.xml: Give filenames to chunks. + * doc/xml/manual/diagnostics.xml: Likewise. + * doc/xml/manual/extensions.xml: Likewise. + * doc/xml/manual/bitmap_allocator.xml: Likewise. + * doc/xml/manual/mt_allocator.xml: Likewise. + * doc/xml/manual/policy_data_structures.xml: Likewise. + * doc/xml/manual/parallel_mode.xml: Likewise. + * doc/xml/manual/profile_mode.xml: Likewise. + * doc/xml/manual/spine.xml: Likewise. Update copyright years. + * doc/html/*: Regenerate. + +2012-12-17 Jonathan Wakely + + * include/std/future (__async_sfinae_helper): Remove. + +2012-12-16 Jonathan Wakely + + * src/c++11/thread.cc (execute_native_thread_routine): Do not swallow + __forced_unwind exceptions. + * testsuite/30_threads/thread/native_handle/cancel.cc: New. + +2012-12-14 Steve Ellcey + + * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Shrink + memory usage under simulator. + * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: Ditto. + * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc: + Ditto. + * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc: + Ditto. + +2012-12-13 Steve Ellcey + + * testsuite/21_strings/basic_string/capacity/char/18654.cc: Shrink + memory usage under simulator. + * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Ditto. + * testsuite/22_locale/collate/transform/char/28277.cc: Ditto. + * testsuite/22_locale/collate/transform/wchar_t/28277.cc: Ditto. + +2012-12-12 Benjamin Kosnik + + * doc/xml/manual/documentation_hacking.xml: Fix validation issue. + +2012-12-11 Jonathan Wakely + + PR libstdc++/55631 + * include/ext/alloc_traits.h: Include missing header. + * include/ext/pointer.h: Likewise. + * include/ext/string_conversions.h: Require C++11. + * libsupc++/initializer_list: Reindent. + +2012-12-10 Benjamin Kosnik + + * doc/Makefile.am (xml_sources_manual): Add + policy_data_structures_biblio.xml. + (${docbook_outdir}/latex): Add. + (doc-xml-validate-docbook): Split into.. + (doc-xml-validate-dtd-db):... this for DTD. + (doc-xml-validate-rng-db):... this for Relax NG. + (doc-pdf-docbook-dirs): Add. + (doc-pdf-docbook-pre): Add. + * doc/xml/manual/build_hacking.xml: Add literal markup. + * doc/xml/manual/documentation_hacking.xml: Clean whitespace in + markup. Add notes about debugging the generation process. + * doc/xml/manual/policy_data_structures.xml: Split biblio into... + * doc/xml/manual/policy_data_structures_biblio.xml: ... this. New. + * doc/xml/manual/test_policy_data_structures.xml: Fixup + markup. + +2012-12-10 Matthias Klose + + * src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER. + * src/Makefile.in: Regenerate. + +2012-12-09 Andreas Schwab + + * testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags + after running the test. + +2012-12-04 Andreas Schwab + + * include/Makefile.am (${host_builddir}/c++config.h): Replace + [] by []. + * include/Makefile.in: Regenerate. + +2012-12-04 Steven Bosscher + + * include/Makefile.am: Fix regexp broken by previous commit. + * include/Makefile.in: Likewise. + +2012-12-03 Benjamin Kosnik + + * include/ext/pb_ds/detail/cc_hash_table_map_/standard_policies.hpp: + Remove. + * include/ext/pb_ds/detail/gp_hash_table_map_/standard_policies.hpp: + Remove. + * include/Makefile.am (pb_headers): Remove include files. + * include/Makefile.in: Regenerated. + +2012-12-01 John David Anglin + + PR libstdc++/55503 + * testsuite/30_threads/condition_variable/members/53841.cc: Add + hppa*-hp-hpux11* to -pthread dg-options. + +2012-11-29 Kai Tietz + + PR target/55445 + * libsupc++/eh_personaltity.cc (__SEH__): Additional check + for not being SjLj. + +2012-11-28 Andrew Pinski + + PR bootstrap/54279 + * scripts/testsuite_flags.in (--build-cxx): Use xg++ instead of g++. + * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise. + +2012-11-28 Jonathan Wakely + + * include/std/functional (_Mem_fn): Constrain function call operators + to avoid ambiguities. Use perfect forwarding. + * testsuite/20_util/function_objects/mem_fn/55463.cc: Additional + tests. + * testsuite/20_util/function_objects/mem_fn/forward.cc: New. + * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. + +2012-11-27 Ollie Wild + + * include/bits/stl_tree.h (@headername): Fix incorrect Doxygen macro + invocation. + +2012-11-26 Jonathan Wakely + + * include/std/functional (__is_socketlike): Change from class + template to alias template. + +2012-11-26 Jonathan Wakely + + PR libstdc++/55463 + * include/std/functional (_Mem_fn): Handle rvalue objects. Add + noexcept-specifications. + * testsuite/20_util/function_objects/mem_fn/55463.cc: New. + * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. + +2012-11-23 Jonathan Wakely + + PR libstdc++/52680 + * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for usleep and + sleep if nanosleep is not available. Bump libtool revision. + * config.h.in: Regenerate. + * configure: Likewise. + * config/abi/pre/gnu.ver (GLIBCXX_3.4.18): Add __sleep_for. + * include/std/thread (this_thread::__sleep_for): Add. + (this_thread::yield, this_thread::sleep_until, this_thread::sleep_for): + Declare unconditionally. + * src/c++11/thread.cc (this_thread::__sleep_for): Define. + * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Rename to + check_v3_target_sleep. + * testsuite/lib/dg-options.exp (dg-require-nanosleep): Rename to + dg-require-sleep. + * testsuite/30_threads/condition_variable_any/53830.cc: Update. + * testsuite/30_threads/this_thread/2.cc: Likewise. + * testsuite/30_threads/this_thread/3.cc: Likewise. + * testsuite/30_threads/this_thread/4.cc: Likewise. + * testsuite/30_threads/async/54297.cc: Likewise. + +2012-11-20 Paolo Carlini + + PR libstdc++/55413 + * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Initialize + __bbegin_bkt and __prev_bkt to avoid uninitialized warnings. + * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust + dg-error line number. + +2012-11-20 Matthias Klose + + * doc/doxygen/user.cfg.in (ALIASES). Escape sharp braces. + * include/bits/allocator.h: Escape sharp braces in comment. + * include/profile/impl/profiler_algos.h: Likewise. + +2012-11-20 Jonathan Wakely + + * include/ext/array_allocator.h: Replace uses of + __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus. + +2012-11-19 Jonathan Wakely + + * testsuite/20_util/allocator/requirements/typedefs.cc: Check rebind + and improve propagate_on_container_move_assignment check. + +2012-11-19 Jonathan Wakely + + * include/bits/stl_algo.h (reverse_copy): Update comment per DR 2074. + * include/bits/unordered_map.h: Apply DR 2005 resolution. + * doc/xml/manual/status_cxx2011.xml: Update per DR 2048. + * include/bits/allocator.h (allocator): Apply DR 2103 resolution. + * include/ext/array_allocator.h: Likewise. + * include/ext/bitmap_allocator.h: Likewise. + * include/ext/malloc_allocator.h: Likewise. + * include/ext/mt_allocator.h: Likewise. + * include/ext/new_allocator.h: Likewise. + * include/ext/pool_allocator.h: Likewise. + * include/ext/throw_allocator.h: Likewise. + * include/ext/alloc_traits.h (__allocator_always_compares_equal): Add + additional specializations. + * include/std/functional: Add comment about DR resolution. + * include/std/future: Likewise. + * include/std/scoped_allocator: Likewise. + * include/std/thread: Likewise. + * testsuite/20_util/allocator/requirements/typedefs.cc: New. + * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. + +2012-11-19 Jonathan Wakely + + * include/bits/hashtable.h: Improve comments. + * include/bits/hashtable_policy.h: Likewise. + +2012-11-17 Paolo Carlini + + PR libstdc++/55363 + * include/std/array (tuple_size, tuple_element): Move out + NAMESPACE_CONTAINER. + * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust + dg-error line numbers. + * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: + Likewise. + +2012-11-16 François Dumont + + * include/bits/hashtable_policy.h (_Prime_rehash_policy): Remove + automatic shrink. + (_Prime_rehash_policy::_M_bkt_for_elements): Do not call + _M_next_bkt anymore. + (_Prime_rehash_policy::_M_next_bkt): Move usage of + _S_growth_factor ... + (_Prime_rehash_policy::_M_need_rehash): ... here. + * include/bits/hashtable.h (_Hashtable<>): Adapt. + * testsuite/performance/23_containers/insert_erase/41975.cc: Add + _USE_TR1 to force build using std::tr1 container. + * testsuite/performance/23_containers/insert/unordered_set.cc: + Likewise. + * testsuite/performance/23_containers/insert/54075.cc: New. + +2012-11-16 Tom Tromey + + * testsuite/libstdc++-prettyprinters/whatis.cc: New file. + * testsuite/lib/gdb-test.exp (whatis-test): New proc. + (gdb-test): Handle 'whatis' tests. + (gdb_batch_check): New proc. + (gdb_version_check): Rewrite to use gdb_batch_check. + * python/libstdcxx/v6/printers.py: Import gdb.types. + (FilteringTypePrinter): New class. + (add_one_type_printer, register_type_printers): New functions. + (register_libstdcxx_printers): Call register_type_printers. + +2012-11-15 Jonathan Wakely + + PR libstdc++/53841 + * include/std/condition_variable (condition_variable::wait_until): + Handle clocks with higher resolution than __clock_t. + (condition_variable::__wait_until_impl): Remove unnecessary _Clock + parameter. + * testsuite/30_threads/condition_variable/members/53841.cc: New. + +2012-11-14 Jonathan Wakely + + PR libstdc++/55320 + * include/std/functional (function::function(F)): Set _M_manager after + operations that could throw. + (_Function_base::_Ref_manager::_M_init_functor): Use addressof. + * include/tr1/functional + (_Function_base::_Ref_manager::_M_init_functor): Use addressof. + (_Function_base::_Base_manager::_M_get_pointer): Likewise. + * testsuite/20_util/function/cons/55320.cc: New. + * testsuite/20_util/function/cons/addressof.cc: New. + * testsuite/20_util/function/cons/callable.cc: Remove header. + * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. + * testsuite/tr1/3_function_objects/function/10.cc: New. + +2012-11-14 Uros Bizjak + + * testsuite/26_numerics/complex/abi_tag.cc: Adjust expected + demangling for 128bit long-double targets. + +2012-11-12 Jonathan Wakely + + * include/std/future (atomic_future): Remove declaration of + non-standard name. + +2012-11-11 Jason Merrill + + * include/std/complex (real, imag): Add ABI tag in C++11 mode. + +2012-11-11 Andreas Schwab + + * doc/xml/chapter.txml: Remove whitespace inside . + * doc/xml/class.txml: Likewise. + * doc/xml/manual/abi.xml: Likewise. + * doc/xml/manual/algorithms.xml: Likewise. + * doc/xml/manual/allocator.xml: Likewise. + * doc/xml/manual/appendix_contributing.xml: Likewise. + * doc/xml/manual/appendix_free.xml: Likewise. + * doc/xml/manual/appendix_porting.xml: Likewise. + * doc/xml/manual/atomics.xml: Likewise. + * doc/xml/manual/auto_ptr.xml: Likewise. + * doc/xml/manual/backwards_compatibility.xml: Likewise. + * doc/xml/manual/bitmap_allocator.xml: Likewise. + * doc/xml/manual/build_hacking.xml: Likewise. + * doc/xml/manual/codecvt.xml: Likewise. + * doc/xml/manual/concurrency.xml: Likewise. + * doc/xml/manual/concurrency_extensions.xml: Likewise. + * doc/xml/manual/configure.xml: Likewise. + * doc/xml/manual/containers.xml: Likewise. + * doc/xml/manual/ctype.xml: Likewise. + * doc/xml/manual/debug.xml: Likewise. + * doc/xml/manual/debug_mode.xml: Likewise. + * doc/xml/manual/diagnostics.xml: Likewise. + * doc/xml/manual/extensions.xml: Likewise. + * doc/xml/manual/internals.xml: Likewise. + * doc/xml/manual/intro.xml: Likewise. + * doc/xml/manual/io.xml: Likewise. + * doc/xml/manual/iterators.xml: Likewise. + * doc/xml/manual/locale.xml: Likewise. + * doc/xml/manual/localization.xml: Likewise. + * doc/xml/manual/messages.xml: Likewise. + * doc/xml/manual/mt_allocator.xml: Likewise. + * doc/xml/manual/numerics.xml: Likewise. + * doc/xml/manual/parallel_mode.xml: Likewise. + * doc/xml/manual/policy_data_structures.xml: Likewise. + * doc/xml/manual/prerequisites.xml: Likewise. + * doc/xml/manual/profile_mode.xml: Likewise. + * doc/xml/manual/shared_ptr.xml: Likewise. + * doc/xml/manual/status_cxx1998.xml: Likewise. + * doc/xml/manual/status_cxx2011.xml: Likewise. + * doc/xml/manual/status_cxxtr1.xml: Likewise. + * doc/xml/manual/status_cxxtr24733.xml: Likewise. + * doc/xml/manual/strings.xml: Likewise. + * doc/xml/manual/support.xml: Likewise. + * doc/xml/manual/test.xml: Likewise. + * doc/xml/manual/using_exceptions.xml: Likewise. + * doc/xml/manual/utilities.xml: Likewise. + * doc/xml/spine.xml: Likewise. + + * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Also check for + /usr/share/xml/docbook/stylesheet/nwalsh5/current. + * configure: Regenerate. + +2012-11-11 Gerald Pfeifer + + * doc/xml/manual/policy_data_structures.xml: Update reference + for select. + +2012-11-10 Jason Merrill + + * many: Replace uses of __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus. + +2012-11-08 François Dumont + + PR libstdc++/54075 + * include/bits/hashtable.h (_Hashtable<>::rehash): Reset hash + policy state if no rehash. + * testsuite/23_containers/unordered_set/modifiers/reserve.cc + (test02): New. + +2012-11-08 Paolo Carlini + + * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: + Don't pass -D_GLIBCXX_DEBUG by hand (check-debug does). + +2012-11-08 Florian Weimer + + * testsuite/18_support/cxa_vec.cc: Fix typo in comment. + +2012-11-08 Jonathan Wakely + + * include/profile/iterator_tracker.h (operator++): Fix returning + dangling reference. + (operator--): Likewise. + +2012-11-07 Paolo Carlini + + * include/debug/array (_GLIBCXX_THROW_OR_ABORT): Move... + * include/bits/c++config: ... here. + * include/bits/shared_ptr_base.h (__throw_bad_weak_ptr): Use it. + * include/ext/pb_ds/exception.hpp: Likewise. + * include/ext/throw_allocator.h (__throw_forced_error): Likewise. + * include/ext/concurrence.h (__throw_concurrence_lock_error, + __throw_concurrence_unlock_error, __throw_concurrence_broadcast_error, + __throw_concurrence_wait_error): Likewise. + * include/tr1/shared_ptr.h (__throw_bad_weak_ptr): Likewise. + * include/tr1/functional (function<_Res(_ArgTypes...)>::operator() + (_ArgTypes...)): Likewise. + * libsupc++/eh_aux_runtime.cc (__cxxabiv1::__cxa_bad_cast, + __cxxabiv1::__cxa_bad_typeid): Likewise. + * libsupc++/vec.cc (compute_size): Likewise. + * libsupc++/new_op.cc (operator new (std::size_t)): Likewise. + * src/c++11/functexcept.cc: Likewise. + * testsuite/util/io/illegal_input_error.hpp + (__throw_illegal_input_error): Likewise. + * libsupc++/eh_personality.cc: Avoid warning with -fno-exceptions. + * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line + numbers. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: + Likewise. + * testsuite/23_containers/array/tuple_interface/ + tuple_element_debug_neg.cc: Likewise. + * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: + Likewise. + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. + +2012-11-07 Jonathan Wakely + + * include/bits/stl_vector.h (vector(size_type)): Add missing allocator + parameter. + * include/bits/stl_bvector.h: Likewise. + * include/debug/vector (vector(size_type)): Likewise. + * include/profile/vector (vector(size_type)): Likewise. Pass allocator + to base constructor. + * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: + Adjust dg-error line numbers. + * testsuite/23_containers/vector/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: + Likewise. + +2012-11-06 Paolo Carlini + + PR libstdc++/51850 + * include/debug/array: New, debug-mode implementation. + * include/profile/array: New. + * include/std/array: Adjust. + * include/std/tuple: Just include . + * include/Makefile.am: Add. + * include/Makefile.in: Regenerate. + * testsuite/23_containers/array/debug/front1_neg.cc: New. + * testsuite/23_containers/array/debug/ + square_brackets_operator1_neg.cc: Likewise. + * testsuite/23_containers/array/debug/front2_neg.cc: Likewise. + * testsuite/23_containers/array/debug/ + square_brackets_operator2_neg.cc: Likewise. + * testsuite/23_containers/array/debug/back1_neg.cc: Likewise. + * testsuite/23_containers/array/debug/back2_neg.cc: Likewise. + * testsuite/23_containers/array/tuple_interface/get_neg.cc: Tweak + to run only in normal-mode. + * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: + Likewise. + * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: New. + * testsuite/23_containers/array/tuple_interface/ + tuple_element_debug_neg.cc: Likewise. + +2012-11-06 Jonathan Wakely + + * testsuite/20_util/shared_ptr/cons/55123.cc: Remove duplicate + include. + +2012-11-06 Paolo Carlini + + * include/bits/atomic_base.h: Don't include , use nullptr. + * include/std/atomic: Likewise. + * include/tr2/dynamic_bitset: Likewise. + + * libsupc++/vec.cc (compute_size(std::size_t, std::size_t, + std::size_t)): Fix for -fno-exceptions. + +2012-11-06 Jonathan Wakely + + * include/profile/map.h (map::emplace_hint): Add missing return. + +2012-11-05 Jonathan Wakely + + * include/profile/deque: Constrain InputIterator parameters. + * include/profile/forward_list: Likewise. + * include/profile/list: Likewise. + * include/profile/map.h: Likewise. + * include/profile/multimap.h: Likewise. + * include/profile/set.h: Likewise. + * include/profile/multiset.h: Likewise. + * include/profile/vector: Likewise. + +2012-11-05 Jonathan Wakely + + * include/profile/forward_list: Update to meet allocator-aware + requirements. + * include/debug/forward_list: Likewise. + * include/debug/vector: Verify allocators are swapped or equal. + * include/debug/macros.h (__glibcxx_check_equal_allocs): Define. + * include/debug/formatter.h: Add new debug message. + * src/c++11/debug.cc: Likewise. + * testsuite/23_containers/forward_list/allocator/swap.cc: Do not + swap containers with non-propagating, non-equal allocators. + * testsuite/23_containers/vector/allocator/swap.cc: Likewise. + +2012-11-05 Benjamin Kosnik + Oleg Smolsky + + PR libstdc++/55028 + * config/abi/pre/gnu-versioned-namespace.ver: Add symbols. + * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New. + +2012-10-05 François Dumont + + * include/ext/throw_allocator.h (__throw_value_base): Add move + semantic, not throwing. + (__throw_value_limit): Likewise. + (__throw_value_random): Likewise. + * testsuite/util/exception/safety.h: Add validation of C++11 + methods emplace/emplace_front/emplace_back/emplace_hint. + * testsuite/util/testsuite_container_traits.h: Signal emplace + support on deque, forward_list, list and vector. + * testsuite/23_containers/deque/requirements/exception/ + propagation_consistent.cc: Remove dg-do run fail. + +2012-11-05 Paolo Carlini + + PR libstdc++/55215 + * include/bits/random.tcc (mersenne_twister_engine<>::seed(_Sseq&)): + Assign state_size to _M_p. + * testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc: + New. + * testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ + 55215.cc: Likewise. + * testsuite/26_numerics/random/discard_block_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/cons/ + 55215.cc: Likewise. + +2012-11-03 Florian Weimer + + * libsupc++/vec.cc (compute_size): New. + (__cxa_vec_new2, __cxa_vec_new3): Use it. + * testsuite/18_support/cxa_vec.cc: New. + +2012-11-03 Robert Mason + + * config/os/vxworks/os_defines.h: + Keep vxWorks from defining min()/max() as macros + +2012-11-03 Jonathan Wakely + + * doc/html/*: Regenerate. + +2012-11-02 Gerald Pfeifer + + * doc/xml/manual/configure.xml: Adjust GNU libc link. + + * doc/xml/manual/debug.xml: Adjust GDB documentation link. + Use GCC instead of gcc. + + * doc/xml/manual/prerequisites.xml: Remove detailed reference + to binutils downloads. + +2012-11-02 Paolo Carlini + + PR libstdc++/55169 + * include/bits/random.h: Remove all uses of param(). + (chi_squared_distribution<>::__generate_impl(_ForwardIterator, + _ForwardIterator, _UniformRandomNumberGenerator&)): Declare + * include/bits/random.tcc: ... define. + * include/ext/random: Remove all uses of param(). + +2012-11-02 Gerald Pfeifer + + * doc/xml/manual/allocator.xml: Update reference to Hoard. + Update reference to Berger's OOPSLA 2002 paper. + +2012-11-02 Jonathan Wakely + + * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update. + (StdForwardListPrinter): Likewise. + +2012-11-02 Jonathan Wakely + + * include/bits/forward_list.h (forward_list(size_type)): Add missing + allocator parameter. + (_Fwd_list_node_base): Use NSDMI and define constructor as defaulted. + (_Fwd_list_node::_M_value): Replace with uninitialized storage. + (_Fwd_list_node::_M_valptr()): Define functions to access storage. + (_Fwd_list_iterator, _Fwd_list_const_iterator): Use _M_valptr. + (_Fwd_list_base::_M_create_node): Only use allocator to construct the + element not the node. + * include/bits/forward_list.tcc (_Fwd_list_base::_M_erase_after): Only + use allocator to destroy the element not the node. + * testsuite/23_containers/forward_list/cons/11.cc: Remove unused + headers. + * testsuite/23_containers/forward_list/cons/12.cc: Likewise. + * testsuite/23_containers/forward_list/cons/13.cc: New. + * testsuite/23_containers/forward_list/cons/14.cc: New. + +2012-11-02 Gerald Pfeifer + + * doc/xml/manual/codecvt.xml: Fix reference to Austin Common + Standards Revision Group. + * doc/xml/manual/messages.xml: Ditto. + * doc/xml/manual/using_exceptions.xml: Ditto. + + * doc/xml/manual/messages.xml: Fix reference to GNU gettext. + + * doc/xml/manual/policy_data_structures.xml: Fix reference to + STL at SGI. + Update reference to COM at Microsoft. + Update reference to Worst-case efficient priority queues at ACM. + +2012-11-01 Jonathan Wakely + + * testsuite/18_support/initializer_list/range_access.cc: Fix copying + permission statement. + * testsuite/20_util/specialized_algorithms/uninitialized_copy/ + 808590.cc: Likewise. + * testsuite/20_util/specialized_algorithms/uninitialized_copy/ + move_iterators/1.cc: Likewise. + * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/ + move_iterators/1.cc: Likewise. + * testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc: + Likewise. + * testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc: + Likewise. + * testsuite/21_strings/basic_string/range_access/char/1.cc: Likewise. + * testsuite/21_strings/basic_string/range_access/wchar_t/1.cc: + Likewise. + * testsuite/23_containers/array/element_access/at_neg.cc: Likewise. + * testsuite/23_containers/array/range_access.cc: Likewise. + * testsuite/23_containers/deque/capacity/29134-2.cc: Likewise. + * testsuite/23_containers/deque/capacity/29134.cc: Likewise. + * testsuite/23_containers/deque/capacity/shrink_to_fit.cc: Likewise. + * testsuite/23_containers/deque/range_access.cc: Likewise. + * testsuite/23_containers/deque/requirements/do_the_right_thing.cc: + Likewise. + * testsuite/23_containers/forward_list/capacity/1.cc: Likewise. + * testsuite/23_containers/forward_list/cons/1.cc: Likewise. + * testsuite/23_containers/forward_list/cons/10.cc: Likewise. + * testsuite/23_containers/forward_list/cons/11.cc: Likewise. + * testsuite/23_containers/forward_list/cons/12.cc: Likewise. + * testsuite/23_containers/forward_list/cons/2.cc: Likewise. + * testsuite/23_containers/forward_list/cons/3.cc: Likewise. + * testsuite/23_containers/forward_list/cons/4.cc: Likewise. + * testsuite/23_containers/forward_list/cons/5.cc: Likewise. + * testsuite/23_containers/forward_list/cons/6.cc: Likewise. + * testsuite/23_containers/forward_list/cons/7.cc: Likewise. + * testsuite/23_containers/forward_list/cons/8.cc: Likewise. + * testsuite/23_containers/forward_list/cons/9.cc: Likewise. + * testsuite/23_containers/forward_list/debug/clear.cc: Likewise. + * testsuite/23_containers/forward_list/debug/erase_after1_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after2_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after3_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after4_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after5_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after6_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after7_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after8_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/erase_after9_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/insert_after1_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/insert_after2_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/insert_after3_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/move_constructor.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after.cc: Likewise. + * testsuite/23_containers/forward_list/debug/splice_after1_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after2_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after3_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after4_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after5_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after6_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after7_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/swap.cc: Likewise. + * testsuite/23_containers/forward_list/modifiers/1.cc: Likewise. + * testsuite/23_containers/forward_list/modifiers/2.cc: Likewise. + * testsuite/23_containers/forward_list/modifiers/3.cc: Likewise. + * testsuite/23_containers/forward_list/modifiers/4.cc: Likewise. + * testsuite/23_containers/forward_list/modifiers/5.cc: Likewise. + * testsuite/23_containers/forward_list/modifiers/6.cc: Likewise. + * testsuite/23_containers/forward_list/operations/1.cc: Likewise. + * testsuite/23_containers/forward_list/operations/2.cc: Likewise. + * testsuite/23_containers/forward_list/operations/3.cc: Likewise. + * testsuite/23_containers/forward_list/operations/4.cc: Likewise. + * testsuite/23_containers/forward_list/operations/5.cc: Likewise. + * testsuite/23_containers/forward_list/operations/6.cc: Likewise. + * testsuite/23_containers/forward_list/operations/7.cc: Likewise. + * testsuite/23_containers/forward_list/range_access.cc: Likewise. + * testsuite/23_containers/forward_list/requirements/ + do_the_right_thing.cc: Likewise. + * testsuite/23_containers/list/capacity/1.cc: Likewise. + * testsuite/23_containers/list/capacity/1.h: Likewise. + * testsuite/23_containers/list/capacity/29134.cc: Likewise. + * testsuite/23_containers/list/modifiers/1.cc: Likewise. + * testsuite/23_containers/list/modifiers/1.h: Likewise. + * testsuite/23_containers/list/modifiers/1_c++0x.cc: Likewise. + * testsuite/23_containers/list/modifiers/2.cc: Likewise. + * testsuite/23_containers/list/modifiers/2.h: Likewise. + * testsuite/23_containers/list/modifiers/3.cc: Likewise. + * testsuite/23_containers/list/modifiers/3.h: Likewise. + * testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise. + * testsuite/23_containers/list/modifiers/insert/25288.h: Likewise. + * testsuite/23_containers/list/operations/1.cc: Likewise. + * testsuite/23_containers/list/operations/1.h: Likewise. + * testsuite/23_containers/list/operations/2.cc: Likewise. + * testsuite/23_containers/list/operations/2.h: Likewise. + * testsuite/23_containers/list/operations/2_c++0x.cc: Likewise. + * testsuite/23_containers/list/operations/3.cc: Likewise. + * testsuite/23_containers/list/operations/3.h: Likewise. + * testsuite/23_containers/list/operations/3_c++0x.cc: Likewise. + * testsuite/23_containers/list/operations/4.cc: Likewise. + * testsuite/23_containers/list/operations/4.h: Likewise. + * testsuite/23_containers/list/operations/42352.cc: Likewise. + * testsuite/23_containers/list/operations/5.cc: Likewise. + * testsuite/23_containers/list/operations/5.h: Likewise. + * testsuite/23_containers/list/range_access.cc: Likewise. + * testsuite/23_containers/list/requirements/do_the_right_thing.cc: + Likewise. + * testsuite/23_containers/map/capacity/29134.cc: Likewise. + * testsuite/23_containers/map/range_access.cc: Likewise. + * testsuite/23_containers/multimap/capacity/29134.cc: Likewise. + * testsuite/23_containers/multimap/range_access.cc: Likewise. + * testsuite/23_containers/multiset/capacity/29134.cc: Likewise. + * testsuite/23_containers/multiset/range_access.cc: Likewise. + * testsuite/23_containers/set/capacity/29134.cc: Likewise. + * testsuite/23_containers/set/range_access.cc: Likewise. + * testsuite/23_containers/unordered_map/final_hash.cc: Likewise. + * testsuite/23_containers/unordered_map/observers.cc: Likewise. + * testsuite/23_containers/unordered_map/range_access.cc: Likewise. + * testsuite/23_containers/unordered_map/requirements/52942.cc: + Likewise. + * testsuite/23_containers/unordered_map/requirements/53067.cc: + Likewise. + * testsuite/23_containers/unordered_map/requirements/53339.cc: + Likewise. + * testsuite/23_containers/unordered_multimap/final_hash.cc: Likewise. + * testsuite/23_containers/unordered_multimap/observers.cc: Likewise. + * testsuite/23_containers/unordered_multimap/range_access.cc: Likewise. + * testsuite/23_containers/unordered_multimap/requirements/53339.cc: + Likewise. + * testsuite/23_containers/unordered_multiset/final_hash.cc: Likewise. + * testsuite/23_containers/unordered_multiset/observers.cc: Likewise. + * testsuite/23_containers/unordered_multiset/range_access.cc: Likewise. + * testsuite/23_containers/unordered_set/final_hash.cc: Likewise. + * testsuite/23_containers/unordered_set/instantiation_neg.cc: Likewise. + * testsuite/23_containers/unordered_set/observers.cc: Likewise. + * testsuite/23_containers/unordered_set/range_access.cc: Likewise. + * testsuite/23_containers/unordered_set/requirements/52942.cc: + Likewise. + * testsuite/23_containers/unordered_set/requirements/53067.cc: + Likewise. + * testsuite/23_containers/vector/bool/capacity/29134.cc: Likewise. + * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: + Likewise. + * testsuite/23_containers/vector/capacity/29134-2.cc: Likewise. + * testsuite/23_containers/vector/capacity/29134.cc: Likewise. + * testsuite/23_containers/vector/capacity/shrink_to_fit.cc: Likewise. + * testsuite/23_containers/vector/capacity/shrink_to_fit2.cc: Likewise. + * testsuite/23_containers/vector/range_access.cc: Likewise. + * testsuite/23_containers/vector/requirements/do_the_right_thing.cc: + Likewise. + * testsuite/24_iterators/range_access.cc: Likewise. + * testsuite/25_algorithms/copy/1.cc: Likewise. + * testsuite/25_algorithms/copy/2.cc: Likewise. + * testsuite/25_algorithms/copy/3.cc: Likewise. + * testsuite/25_algorithms/copy/34595.cc: Likewise. + * testsuite/25_algorithms/copy/4.cc: Likewise. + * testsuite/25_algorithms/copy/deque_iterators/1.cc: Likewise. + * testsuite/25_algorithms/copy/move_iterators/1.cc: Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/char/1.cc: Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/char/3.cc: Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/1.cc: + Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/2.cc: + Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/3.cc: + Likewise. + * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc: + Likewise. + * testsuite/25_algorithms/copy_backward/deque_iterators/1.cc: Likewise. + * testsuite/25_algorithms/copy_backward/move_iterators/1.cc: Likewise. + * testsuite/25_algorithms/copy_n/1.cc: Likewise. + * testsuite/25_algorithms/copy_n/2.cc: Likewise. + * testsuite/25_algorithms/copy_n/3.cc: Likewise. + * testsuite/25_algorithms/copy_n/4.cc: Likewise. + * testsuite/25_algorithms/copy_n/50119.cc: Likewise. + * testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise. + * testsuite/25_algorithms/fill/4.cc: Likewise. + * testsuite/25_algorithms/fill_n/1.cc: Likewise. + * testsuite/25_algorithms/find/istreambuf_iterators/char/1.cc: + Likewise. + * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: + Likewise. + * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/1.cc: + Likewise. + * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc: + Likewise. + * testsuite/25_algorithms/heap/1.cc: Likewise. + * testsuite/25_algorithms/heap/moveable.cc: Likewise. + * testsuite/25_algorithms/heap/moveable2.cc: Likewise. + * testsuite/25_algorithms/is_heap/1.cc: Likewise. + * testsuite/25_algorithms/is_heap_until/1.cc: Likewise. + * testsuite/25_algorithms/is_sorted/1.cc: Likewise. + * testsuite/25_algorithms/is_sorted_until/1.cc: Likewise. + * testsuite/25_algorithms/move/1.cc: Likewise. + * testsuite/25_algorithms/move/deque_iterators/1.cc: Likewise. + * testsuite/25_algorithms/move_backward/1.cc: Likewise. + * testsuite/25_algorithms/move_backward/deque_iterators/1.cc: Likewise. + * testsuite/25_algorithms/partition/1.cc: Likewise. + * testsuite/25_algorithms/partition/moveable.cc: Likewise. + * testsuite/25_algorithms/pop_heap/empty2_neg.cc: Likewise. + * testsuite/25_algorithms/pop_heap/empty_neg.cc: Likewise. + * testsuite/25_algorithms/stable_partition/1.cc: Likewise. + * testsuite/25_algorithms/stable_partition/moveable.cc: Likewise. + * testsuite/25_algorithms/stable_partition/pr52822.cc: Likewise. + * testsuite/26_numerics/valarray/range_access.cc: Likewise. + * testsuite/28_regex/range_access.cc: Likewise. + * testsuite/ext/vstring/capacity/29134.cc: Likewise. + * testsuite/ext/vstring/capacity/shrink_to_fit.cc: Likewise. + * testsuite/ext/vstring/hash/char/1.cc: Likewise. + * testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise. + * testsuite/ext/vstring/range_access.cc: Likewise. + * testsuite/ext/vstring/requirements/do_the_right_thing.cc: Likewise. + * testsuite/performance/25_algorithms/copy_backward_deque_iterators.cc: + Likewise. + * testsuite/performance/25_algorithms/copy_deque_iterators.cc: + Likewise. + * testsuite/tr1/6_containers/unordered_map/capacity/29134-map.cc: + Likewise. + * testsuite/tr1/6_containers/unordered_multimap/capacity/ + 29134-multimap.cc: Likewise. + * testsuite/tr1/6_containers/unordered_multiset/capacity/ + 29134-multiset.cc: Likewise. + * testsuite/tr1/6_containers/unordered_set/capacity/29134-set.cc: + Likewise. + +2012-11-01 François Dumont + + * include/bits/hashtable_policy.h (__details::_Before_begin<>): + New, combine a base node instance and an allocator. + * include/bits/hashtable.h (_Hashtable<>::_M_node_allocator): Remove. + (_Hashtable<>::_M_before_begin): Rename into _M_bbegin and type + modified to __detail::_Before_begin<>. + (_Hashtable<>::_M_node_allocator()): New, get the node allocator + part of _M_bbegin. + (_Hashtable<>::_M_before_begin()): New, get the before begin node + part of _M_bbegin. + (_Hashtable<>): Adapt to use latter. + +2012-11-01 Jonathan Wakely + + * include/bits/forward_list.h (forward_list::assign): Dispatch to new + functions based on assignability of elements. + (forward_list::_M_assign): Add overloaded functions for assigning + via assignment or via clearing and insertion. + (forward_list::_M_assign_val): Likewise. + (forward_list::_M_move_assign(forward_list&&, false_type)): Do not + erase elements that are not moved. + * include/bits/forward_list.tcc (forward_list::operator=): Call + assign() to copy elements. + * testsuite/23_containers/forward_list/cons/10.cc: New. + * testsuite/23_containers/forward_list/cons/11.cc: New. + * testsuite/23_containers/forward_list/cons/12.cc: New. + +2012-10-31 Jonathan Yong + + * config/os/mingw32-w64/os_defines.h: Do not define anymore + _GLIBCXX_HAVE_BROKEN_VSWPRINTF. + +2012-10-31 Jonathan Wakely + + * include/bits/forward_list.h (forward_list): Adjust comments. + (forward_list(const forward_list&, const _Alloc&)): Use + _M_range_initialize to copy elements. + (forward_list(forward_list&&, const _Alloc&)): Add exception + specification. + (_Fwd_list_base(const _Fwd_list_base&, const _Node_alloc_type&)): + Remove. + * include/bits/forward_list.tcc (_Fwd_list_base(const _Fwd_list_base&, + const _Node_alloc_type&)): Remove. + (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Fix + memory leak when allocators are not equal. + +2012-10-29 Jonathan Wakely + + PR libstdc++/55123 + * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up): + Do not instantiate allocator with element_type. + * testsuite/20_util/shared_ptr/cons/55123.cc: New. + +2012-10-28 Jonathan Wakely + + PR libstdc++/55041 + * python/libstdcxx/v6/printers.py (Tr1UnorderedMapPrinter): Update + to handle hashtable as member of unordered_map not base class. + (Tr1UnorderedSetPrinter): Likewise. + +2012-10-27 François Dumont + + * include/bits/unordered_map.h (unordered_map<>): Prefer + aggregation to inheritance with _Hashtable. + (unordered_multimap<>): Likewise. + * include/bits/unordered_set.h + (unordered_set<>(const unordered_set&)): Use default + implementation. + (unordered_set<>(unordered_set&&)): Likewise. + (unordered_set<>::operator=(const unordered_set&)): Likewise. + (unordered_set<>::operator=(unordered_set&&)): Likewise. + (unordered_multiset<>(const unordered_multiset&)): Likewise. + (unordered_multiset<>(unordered_multiset&&)): Likewise. + (unordered_multiset<>::operator=(const unordered_multiset&)): + Likewise. + (unordered_multiset<>::operator=(unordered_multiset&&)): Likewise. + * include/debug/unordered_map (operator==): Adapt. + * include/profile/unordered_map (operator==): Adapt. + +2012-10-24 Daniel Krugler + + * include/std/type_traits (common_type): Implement LWG 2141. + * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: + Update. + * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. + * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: + Likewise. + * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: + Likewise. + * testsuite/20_util/common_type/requirements/typedefs-2.cc: Likewise. + +2012-10-24 Haakan Younes + Paolo Carlini + + PR libstdc++/55047 + * include/bits/random.h (exponential_distribution<>::operator): + Fix formula to std::log(result_type(1) - __aurng()). + * include/bits/random.tcc: Likewise, everywhere. + +2012-10-23 Yufeng Zhang + + * config/cpu/aarch64/cxxabi_tweaks.h: New file. + * configure.host: Enable aarch64. + +2012-10-22 François Dumont + + * include/bits/unordered_set.h (unordered_set<>): Prefer + aggregation to inheritance with _Hashtable. + (unordered_multiset<>): Likewise. + * include/debug/unordered_set (operator==): Adapt. + * include/profile/unordered_set (operator==): Adapt. + +2012-10-22 Yufeng Zhang + Jonathan Wakely + + * doc/xml/manual/configure.xml (--enable-clocale): Document the + 'newlib' and 'darwin' options. Minor stylistic improvements. + +2012-10-21 François Dumont + + * include/profile/map.h (map::emplace_hint): Remove invalid + parenthesis. + +2012-10-21 Hans-Peter Nilsson + + * testsuite/23_containers/bitset/45713.cc: Skip for mmix-*-*. + Tweak sizetype-related comment. + +2012-10-20 Jonathan Wakely + + * include/std/scoped_allocator: Avoid badname. + +2012-10-19 Jonathan Wakely + + * doc/xml/manual/status_cxx2011.xml: Update. + +2012-10-19 Jonathan Wakely + + * include/std/scoped_allocator (__outermost_alloc_traits): Define. + (scoped_allocator_adaptor::destroy): Use it. + (scoped_allocator_adaptor::construct): Likewise. Overload for + piecewise construction of std::pair objects. + * testsuite/20_util/scoped_allocator/2.cc: New. + * doc/xml/manual/status_cxx2011.xml: Update. + +2012-10-18 Jonathan Wakely + + * include/bits/forward_list.h: Add C++11 allocator support. + * include/bits/forward_list.tcc: Likewise. + * doc/xml/manual/status_cxx2011.xml: Update. + * testsuite/23_containers/forward_list/allocator/copy.cc: New. + * testsuite/23_containers/forward_list/allocator/copy_assign.cc: New. + * testsuite/23_containers/forward_list/allocator/minimal.cc: New. + * testsuite/23_containers/forward_list/allocator/move_assign.cc: New. + * testsuite/23_containers/forward_list/allocator/noexcept.cc: New. + * testsuite/23_containers/forward_list/allocator/swap.cc: New. + +2012-10-18 François Dumont + + * include/debug/formatter.h (_Debug_msg_id): Add + __msg_valid_load_factor. + * include/debug/macros.h (__glibcxx_check_max_load_factor): New. + * include/debug/unordered_set + (unordered_set<>::max_load_factor(float)): Check max load factor + is positive. + (unordered_multiset<>::max_load_factor(float)): Likewise. + * include/debug/unordered_map + (unordered_map<>::max_load_factor(float)): Likewise. + (unordered_multimap<>::max_load_factor(float)): Likewise. + * testsuite/23_containers/unordered_map/debug/max_load_factor_neg.cc: + New. + * testsuite/23_containers/unordered_multimap/debug/ + max_load_factor_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/max_load_factor_neg.cc: + New. + * testsuite/23_containers/unordered_multiset/debug/ + max_load_factor_neg.cc: New. + +2012-10-17 Benjamin Kosnik + + * include/bits/move.h (move_if_noexcept): Mark constexpr. + * include/std/array (front, back): Same. + * include/std/chrono: Add comment. + * include/std/tuple (__tuple_compare): Mark __eq, __less constexpr. + (operator ==, <, >, !=, <=, >=): Same. + * testsuite/20_util/forward/c_neg.cc: Adjust line numbers. + * testsuite/20_util/forward/f_neg.cc: Same. + * testsuite/20_util/move_if_noexcept/constexpr.cc: New. + * testsuite/20_util/tuple/comparison_operators/constexpr.cc: New. + * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add. + * testsuite/23_containers/array/element_access/ + constexpr_element_access.cc: Same. + * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust + line numbers. + * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: + Same. + + * testsuite/20_util/tuple/comparison_operators/35480_neg.cc: + Temporarily add dg-excess-errors. + +2012-10-16 François Dumont + + * include/debug/formatter.h (_Debug_msg_id): Add + __msg_bucket_index_oob. + * include/debug/macros.h (__glibcxx_check_bucket_index): New. + * include/debug/unordered_set (unordered_set<>::begin(size_type)): + Add check on bucket index. + (unordered_set<>::begin(size_type) const): Likewise. + (unordered_set<>::cbegin(size_type) const): Likewise. + (unordered_set<>::end(size_type)): Likewise. + (unordered_set<>::end(size_type) const): Likewise. + (unordered_set<>::cend(size_type) const): Likewise. + (unordered_set<>::bucket_size(size_type)): Likewise. + (unordered_multiset<>::begin(size_type)): Likewise. + (unordered_multiset<>::begin(size_type) const): Likewise. + (unordered_multiset<>::cbegin(size_type) const): Likewise. + (unordered_multiset<>::end(size_type)): Likewise. + (unordered_multiset<>::end(size_type) const): Likewise. + (unordered_multiset<>::cend(size_type) const): Likewise. + (unordered_multiset<>::bucket_size(size_type)): Likewise. + * include/debug/unordered_map (unordered_map<>::begin(size_type)): + Likewise. + (unordered_map<>::begin(size_type) const): Likewise. + (unordered_map<>::cbegin(size_type) const): Likewise. + (unordered_map<>::end(size_type)): Likewise. + (unordered_map<>::end(size_type) const): Likewise. + (unordered_map<>::cend(size_type) const): Likewise. + (unordered_map<>::bucket_size(size_type)): Likewise. + (unordered_multimap<>::begin(size_type)): Likewise. + (unordered_multimap<>::begin(size_type) const): Likewise. + (unordered_multimap<>::cbegin(size_type) const): Likewise. + (unordered_multimap<>::end(size_type)): Likewise. + (unordered_multimap<>::end(size_type) const): Likewise. + (unordered_multimap<>::cend(size_type) const): Likewise. + (unordered_multimap<>::bucket_size(size_type)): Likewise. + * testsuite/23_containers/unordered_map/debug/bucket_size_neg.cc: + New. + * testsuite/23_containers/unordered_map/debug/begin1_neg.cc: New. + * testsuite/23_containers/unordered_map/debug/begin2_neg.cc: New. + * testsuite/23_containers/unordered_map/debug/cbegin_neg.cc: New. + * testsuite/23_containers/unordered_map/debug/end1_neg.cc: New. + * testsuite/23_containers/unordered_map/debug/end2_neg.cc: New. + * testsuite/23_containers/unordered_map/debug/cend_neg.cc: New. + * testsuite/23_containers/unordered_multimap/debug/bucket_size_neg.cc: + New. + * testsuite/23_containers/unordered_multimap/debug/begin1_neg.cc: New. + * testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc: New. + * testsuite/23_containers/unordered_multimap/debug/cbegin_neg.cc: New. + * testsuite/23_containers/unordered_multimap/debug/end1_neg.cc: New. + * testsuite/23_containers/unordered_multimap/debug/end2_neg.cc: New. + * testsuite/23_containers/unordered_multimap/debug/cend_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/bucket_size_neg.cc: + New. + * testsuite/23_containers/unordered_set/debug/begin1_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/begin2_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/cbegin_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/end1_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/end2_neg.cc: New. + * testsuite/23_containers/unordered_set/debug/cend_neg.cc: New. + * testsuite/23_containers/unordered_multiset/debug/bucket_size_neg.cc: + New. + * testsuite/23_containers/unordered_multiset/debug/begin1_neg.cc: New. + * testsuite/23_containers/unordered_multiset/debug/begin2_neg.cc: New. + * testsuite/23_containers/unordered_multiset/debug/cbegin_neg.cc: New. + * testsuite/23_containers/unordered_multiset/debug/end1_neg.cc: New. + * testsuite/23_containers/unordered_multiset/debug/end2_neg.cc: New. + * testsuite/23_containers/unordered_multiset/debug/cend_neg.cc: New. + +2012-10-15 Matthias Klose + + * configure.host: Match arm*-*-linux-* for ARM Linux/GNU. + * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise. + * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise. + +2012-10-15 Pavel Chupin + + * Makefile.in: Regenerate. + * acinclude.m4: Replace code with GCC_AC_THREAD_HEADER use. + * configure: Regenerate. + * doc/Makefile.in: Regenerate. + * include/Makefile.am: Regenerate. + * include/Makefile.in: Rename variable. + * libsupc++/Makefile.in: Regenerate. + * po/Makefile.in: Regenerate. + * python/Makefile.in: Regenerate. + * src/Makefile.in: Regenerate. + * src/c++11/Makefile.in: Regenerate. + * src/c++98/Makefile.in: Regenerate. + * testsuite/Makefile.in: Regenerate. + +2012-10-14 Jason Merrill + + PR target/54908 + * libsupc++/atexit_thread.cc: Rewrite to keep the cleanup list + with get/setspecific. Destroy the key on dlclose. + +2012-10-12 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/ext/random: Add __gnu_cxx::arcsine_distribution<> + and __gnu_cxx::hoyt_distribution<> classes. + * include/ext/random.tcc: Add out-of-line functions for + __gnu_cxx::arcsine_distribution<> and __gnu_cxx::hoyt_distribution<>. + * testsuite/ext/random/hoyt_distribution/cons/parms.cc: New file. + * testsuite/ext/random/hoyt_distribution/cons/default.cc: New file. + * testsuite/ext/random/hoyt_distribution/requirements/ + explicit_instantiation/1.cc: New file. + * testsuite/ext/random/hoyt_distribution/requirements/typedefs.cc: + New file. + * testsuite/ext/random/hoyt_distribution/operators/inequal.cc: New file. + * testsuite/ext/random/hoyt_distribution/operators/equal.cc: New file. + * testsuite/ext/random/hoyt_distribution/operators/serialize.cc: + New file. + * testsuite/ext/random/arcsine_distribution/cons/parms.cc: New file. + * testsuite/ext/random/arcsine_distribution/cons/default.cc: New file. + * testsuite/ext/random/arcsine_distribution/requirements/ + explicit_instantiation/1.cc: New file. + * testsuite/ext/random/arcsine_distribution/requirements/typedefs.cc: + New file. + * testsuite/ext/random/arcsine_distribution/operators/inequal.cc: + New file. + * testsuite/ext/random/arcsine_distribution/operators/equal.cc: + New file. + * testsuite/ext/random/arcsine_distribution/operators/serialize.cc: + New file. + +2012-10-12 Paolo Carlini + + * include/bits/hashtable_policy.h: Revert libstdc++/53067 quick + hacks thanks to the resolution of c++/51213. + +2012-10-11 Paolo Carlini + + * testsuite/23_containers/bitset/45713.cc: Tweak. + +2012-10-11 Hans-Peter Nilsson + + PR testsuite/54897 + * testsuite/23_containers/bitset/45713.cc: Skip for avr*-*-* + cris*-*-* h8300*-*-* mcore*-*-* moxie*-*-*. + +2012-10-11 Daniel Krugler + + * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: + Update / extend. + * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: + Likewise. + * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: + Likewise. + +2012-10-11 Rainer Orth + + PR libstdc++/54872 + * config/abi/pre/gnu.ver (GLIBCXX_3.4.11) [!__sun__ && !__svr4__]: + Don't export _ZNSt12system_errorC*. + +2012-10-10 Jack Howarth + Jonathan Wakely + + PR libstdc++/54847 + * config/os/bsd/darwin/os_defines.h: Define _GLIBCXX_USE_NANOSLEEP + and _GLIBCXX_USE_SCHED_YIELD. + * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add comment. + +2012-10-10 Mark Kettenis + + * configure.host (*-*-openbsd*) Set cpu_include_dir. + * config/os/bsd/openbsd/ctype_base.h: New file. + * config/os/bsd/openbsd/ctype_configure_char.cc: New file. + * config/os/bsd/openbsd/ctype_inline.h: New file. + * config/os/bsd/openbsd/os_defines.h: New file. + * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Use newlib locale model + for OpenBSD. + * configure: Regenerated. + +2012-10-10 Paolo Carlini + + * include/std/type_traits (__do_common_type_impl): Revert for now + LWG 2141-related change. + * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. + * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: + Adjust. + +2012-10-09 Daniel Krugler + + * include/std/type_traits (common_type): Provide "SFINAE-friendly" + implementation. + (__success_type, __failure_type): Fix. + * include/std/chrono (common_type): Likewise for the chrono::time_point + specialization. + * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: New. + * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: + Likewise. + * testsuite/20_util/duration/requirements/sfinae_friendly_1.cc: + Likewise. + * testsuite/20_util/common_type/requirements/typedefs-1.cc: Adjust wrt + LWG 2141. + * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust + dg-error line numbers. + * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. + * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. + * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise. + * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: + Likewise. + * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. + + * testsuite/20_util/result_of/sfinae_friendly_1.cc: Trivial stylistic + tweaks. + * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. + +2012-10-09 Andrew MacLeod + + PR libstdc++/54861 + * include/bits/atomic_base.h (atomic_signal_fence): Call + __atomic_signal_fence instead of __atomic_thread_fence. + +2012-10-09 Benjamin Kosnik + + * testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc: + Fix constant value. + +2012-10-09 Paolo Carlini + + PR libstdc++/54869 + * include/ext/random (simd_fast_mersenne_twister_engine): Provide + only for little endian targets. + * include/ext/random.tcc: Likewise. + * config/cpu/i486/opt/ext/opt_random.h: Likewise. + * testsuite/lib/libstdc++.exp (check_v3_target_little_endian): Add. + * testsuite/lib/dg-options.exp (dg-require-little-endian): Add. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + operators/equal.cc: Use the latter. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + operators/serialize.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + operators/inequal.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + cons/copy.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + cons/seed1.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + cons/seed2.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + cons/default.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/ + cons/seed_seq.cc: Likewise. + +2012-10-09 Jonathan Wakely + + PR libstdc++/54754 + * include/parallel/compatibility.h: Use atomic built-ins when they are + lock-free. + +2012-10-09 Uros Bizjak + + * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.7. + +2012-10-08 Jason Merrill + + * libsupc++/cxxabi.h: Declare __cxa_thread_atexit. + * libsupc++/atexit_thread.cc: New. + * libsupc++/Makefile.am (nested_exception.lo): Add it. + * config/abi/pre/gnu.ver: Add __cxa_thread_atexit. + +2012-10-07 Matthias Klose + + * testsuite/28_regex/algorithms/match/basic: Remove empty directory. + * testsuite/28_regex/algorithms/match/extended: Likewise. + * testsuite/28_regex/algorithms/match: Likewise. + +2012-10-06 Paolo Carlini + + PR c++/52764 + * include/c_global/cstdint: Remove __STDC_LIMIT_MACROS and + __STDC_CONSTANT_MACROS related macros. + +2012-10-06 Joe Seymour + + * include/tr2/dynamic_bitset: Fix cxxabi_forced.h include path. + +2012-10-05 Benjamin Kosnik + + * testsuite/28_regex/algorithms/match: Rename to... + * testsuite/28_regex/algorithms/regex_match: ...this. + * testsuite/28_regex/basic_regex/regex.cc: Rename to... + * testsuite/28_regex/basic_regex/ctors/basic/default.cc: ...this. + * testsuite/util/testsuite_regex.h: New. + * testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: New. + +2012-10-05 Jakub Jelinek + + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line + numbers. + +2012-10-05 Marc Glisse + + PR libstdc++/54686 + * include/c_global/cstdlib (abs(long long)): Define with + __builtin_llabs when we have long long. + (abs(long)): Use __builtin_labs. + (abs(__int128)): Define when we have __int128. + +2012-10-05 Paolo Carlini + + * include/c_global/cstdlib: Remove redundant pasto code protected + by __GXX_EXPERIMENTAL_CXX0X__. + * include/c_global/cwctype: Likewise. + * include/c_global/ccomplex: Remove uses of obsolete macro + _GLIBCXX_INCLUDE_AS_TR1. + * include/c_global/cfloat: Likewise. + +2012-10-05 Marc Glisse + + PR libstdc++/54686 + * include/c_std/cstdlib (abs(long long)): Define with + __builtin_llabs when we have long long. + (abs(long)): Use __builtin_labs. + (abs(__int128)): Define when we have __int128. + * testsuite/26_numerics/headers/cstdlib/54686.c: New file. + +2012-10-03 Paolo Carlini + + PR libstdc++/53248 + * include/std/array (__array_traits<>): Add. + (array<>): Allow for zero-size arrays of non default-constructible + elements. + * testsuite/23_containers/array/requirements/ + non_default_constructible.cc: New. + * testsuite/23_containers/array/requirements/zero_sized_arrays.cc: + Adjust. + * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust + dg-error line numbers. + * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: + Likewise. + +2012-10-02 Jonathan Wakely + + PR other/53889 + * include/std/mutex (__recursive_mutex_base::~__recursive_mutex_base): + Use __gthread_recursive_mutex_destroy. + (__recursive_mutex_base::_S_destroy): Remove. + (__recursive_mutex_base::_S_destroy_win32): Likewise. + * include/ext/concurrence.h (__recursive_mutex::~__recursive_mutex): + Use __gthread_recursive_mutex_destroy. + (__recursive_mutex::_S_destroy): Remove. + (__recursive_mutex::_S_destroy_win32): Likewise. + +2012-10-01 Benjamin Kosnik + + * config/abi/pre/gnu-versioned-namespace.ver: Add more + typeinfo/vtable exports. + +2012-10-01 Paolo Carlini + + PR libstdc++/54757 + * include/ext/random (rice_distribution<>::operator()): Use std::hypot + only if _GLIBCXX_USE_C99_MATH_TR1. + * include/ext/random.tcc (rice_distribution<>::__generate_impl): + Likewise. + +2012-10-01 Daniel Krugler + + * include/std/type_traits (result_of): Provide "SFINAE-friendly" + (see N3436) implementation. + * testsuite/20_util/result_of/sfinae_friendly_1.cc: New. + * testsuite/20_util/result_of/sfinae_friendly_2.cc: Likewise. + * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Tweak + dg-error line numbers. + * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: + Likewise. + * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. + +2012-09-30 Benjamin Kosnik + + * doc/doxygen/user.cfg.in: Update to doxygen 1.8.2. + +2012-09-30 Jonathan Wakely + + * include/ext/ropeimpl.h (__uninitialized_fill_n_a): Fix using + declaration. + * testsuite/ext/rope/5.cc: New. + +2012-09-30 Jonathan Wakely + + PR libstdc++/54577 + * doc/xml/manual/status_cxx2011.xml: N2350 changes are missing from + sequence containers. + * doc/html/*: Regenerate. + +2012-09-29 Jonathan Wakely + + PR libstdc++/34106 + * include/parallel/compatibility.h: Remove non-GCC code. + +2012-09-28 Benjamin Kosnik + + * fragment.am (CONFIG_CXXFLAGS): Remove EXTRA_CXX_FLAGS. + * libsupc++/Makefile.am (LTCXXCOMPILE): Add EXTRA_CXX_FLAGS here. + * src/Makefile.am: Same. + * src/c++98/Makefile.am: Same. + * src/c++11/Makefile.am: Same. + * Makefile.in: Regenerated. + * src/Makefile.am: Same. + * src/c++11/Makefile.in: Same. + * src/c++98/Makefile.in: Same. + * include/Makefile.in: Same. + * po/Makefile.in: Same. + * python/Makefile.in: Same. + * testsuite/Makefile.in: Same. + +2012-09-28 Benjamin Kosnik + + * src/c++98/Makefile.am: Fixup PARALLEL_FLAGS. + +2012-09-28 Benjamin Kosnik + + * acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Remove ENABLE_PARALLEL. + * include/Makefile.am: Same. + * src/c++98/Makefile.am: Same. + * src/Makefile.am: Same. + * Makefile.in: Regenerated. + * aclocal.m4: Same. + * configure: Same. + * doc/Makefile.in: Same. + * include/Makefile.in: Same. + * libsupc++/Makefile.in: Same. + * po/Makefile.in: Same. + * python/Makefile.in: Same. + * src/Makefile.in: Same. + * testsuite/Makefile.in: Same. + * src/c++11/Makefile.in: Same. + * src/c++98/Makefile.in: Same. + + * src/c++98/compatibility-debug_list-2.cc: Update comments. + * src/c++98/compatibility-debug_list.cc: Same. + * src/c++98/compatibility-list-2.cc: Renamed to src/c++98/list-aux-2.cc + * src/c++98/compatibility-list.cc: Renamed to src/c++98/list-aux.cc + * src/c++98/compatibility-parallel_list-2.cc: Renamed to + src/c++98/list_associated-2.cc. + * src/c++98/compatibility-parallel_list.cc: Renamed to + src/c++98/list_associated.cc. + +2012-09-27 Paolo Carlini + + PR libstdc++/54727 + * config/cpu/i486/opt/bits/opt_random.h: Avoid UINT64_C. + +2012-09-26 Paolo Carlini + + * include/ext/random: Add include checks for c++11 and . + +2012-09-26 Benjamin Kosnik + + PR libstdc++/54314 + * config/abi/pre/gnu.ver: Add vtable exports. + * config/abi/pre/gnu-versioned-namespace.ver: Same. + +2012-09-26 Akira Takahashi + + PR libstdc++/53515 + * include/bits/stl_iterator_base_funcs.h (__advance(_InputIterator&, + _Distance, input_iterator_tag)): Add _GLIBCXX_DEBUG_ASSERT(__n >= 0). + +2012-09-26 Ulrich Drepper + + Optimize bulk mode for normal_distribution for SSE3. + * configure.host: Define cpu_opt_bits_random. + * configure.ac: Substitute CPU_OPT_BITS_RANDOM. + * include/Makefile.am (bits_headers): Add ${bits_host_headers}. + (bits_host_headers): Define. + * include/bits/random.tcc: Move __details::_Power_of_2 to... + * include/bits/random.h: ...here. + * include/std/random: Include . + * config/cpu/i486/opt/bits/opt_random.h: New file. + * config/cpu/generic/opt/bits/opt_random.h: New file. + * configure: Regenerated. + * Makefile.in: Regenerated. + * aclocal.m4: Regenerated. + * doc/Makefile.in: Regenerated. + * include/Makefile.in: Regenerated. + * libsupc++/Makefile.in: Regenerated. + * po/Makefile.in: Regenerated. + * python/Makefile.in: Regenerated. + * src/Makefile.in: Regenerated. + * src/c++11/Makefile.in: Regenerated. + * src/c++98/Makefile.in: Regenerated. + * testsuite/Makefile.in: Regenerated. + + * config/cpu/generic/opt/ext/opt_random.h: Fix comment. + +2012-09-25 Paolo Carlini + + * doc/xml/manual/status_cxx2011.xml: Update vs PR 44436. + +2012-09-24 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/ext/random: Add __gnu_cxx::k_distribution<> class. + * include/ext/random.tcc: Add out-of-line functions for + __gnu_cxx::k_distribution<>. + * testsuite/ext/random/k_distribution/operators/equal.cc: New file. + * testsuite/ext/random/k_distribution/operators/serialize.cc: New file. + * testsuite/ext/random/k_distribution/operators/inequal.cc: New file. + * testsuite/ext/random/k_distribution/cons/parms.cc: New file. + * testsuite/ext/random/k_distribution/cons/default.cc: New file. + * testsuite/ext/random/k_distribution/requirements/typedefs.cc: + New file. + * testsuite/ext/random/k_distribution/requirements/ + explicit_instantiation/1.cc: New file. + +2012-09-24 François Dumont + + PR libstdc++/44436 + * include/bits/stl_tree.h + (_Rb_tree<>::_M_insert_): Take _Base_ptr rather than + _Const_Base_ptr. + (_Rb_tree<>::_M_insert_node): New. + (_Rb_tree<>::_M_get_insert_unique_pos): New, search code of + _M_insert_unique method. + (_Rb_tree<>::_M_insert_unique): Use latter. + (_Rb_tree<>::_M_emplace_unique): New, likewise. + (_Rb_tree<>::_M_get_insert_equal_pos): New, search code of + _M_insert_equal method. + (_Rb_tree<>::_M_insert_equal): Use latter. + (_Rb_tree<>::_M_emplace_equal): New, likewise. + (_Rb_tree<>::_M_get_insert_hint_unique_pos): New, search code of + _M_insert_unique_ method. + (_Rb_tree<>::_M_insert_unique_): Use latter. + (_Rb_tree<>::_M_emplace_hint_unique): New, likewise. + (_Rb_tree<>::_M_get_insert_hint_equal_pos): New, search code of + _M_insert_equal_ method. + (_Rb_tree<>::_M_insert_equal_): Use latter. + (_Rb_tree<>::_M_emplace_hint_equal): New, likewise. + (_Rb_tree<>::_M_insert_lower): Remove first _Base_ptr parameter, + useless as always null. + * include/bits/stl_map.h: Include in C++11. + (map<>::operator[](const key_type&)): Use + _Rb_tree<>::_M_emplace_hint_unique in C++11. + (map<>::operator[](key_type&&)): Likewise. + (map<>::emplace): New. + (map<>::emplace_hint): New. + * include/bits/stl_multimap.h (multimap<>::emplace): New. + (multimap<>::emplace_hint): New. + * include/bits/stl_set.h (set<>::emplace): New. + (set<>::emplace_hint): New. + * include/bits/stl_multiset.h (multiset<>::emplace): New. + (multiset<>::emplace_hint): New. + * include/debug/map.h (std::__debug::map<>::emplace): New. + (std::__debug::map<>::emplace_hint): New. + * include/debug/multimap.h (std::__debug::multimap<>::emplace): + New. + (std::__debug::multimap<>::emplace_hint): New. + * include/debug/set.h (std::__debug::set<>::emplace): New. + (std::__debug::set<>::emplace_hint): New. + * include/debug/multiset.h (std::__debug::multiset<>::emplace): + New. + (std::__debug::multiset<>::emplace_hint): New. + * include/profile/map.h (std::__profile::map<>::emplace): New. + (std::__profile::map<>::emplace_hint): New. + * include/profile/multimap.h (std::__profile::multimap<>::emplace): + New. + (std::__profile::multimap<>::emplace_hint): New. + * include/profile/set.h (std::__profile::set<>::emplace): New. + (std::__profile::set<>::emplace_hint): New. + * include/profile/multiset.h (std::__profile::multiset<>::emplace): + New. + (std::__profile::multiset<>::emplace_hint): New. + * testsuite/util/testsuite_container_traits.h: Signal that emplace + and emplace_hint are available on std::map, std::multimap, + std::set and std::multiset in C++11. + * testsuite/23_containers/map/operators/2.cc: New. + * testsuite/23_containers/map/modifiers/emplace/1.cc: New. + * testsuite/23_containers/multimap/modifiers/emplace/1.cc: New. + * testsuite/23_containers/set/modifiers/emplace/1.cc: New. + * testsuite/23_containers/multiset/modifiers/emplace/1.cc: New. + +2012-09-24 François Dumont + + * testsuite/performance/23_containers/insert_erase/41975.cc: Use + __uset_hashtable rather than removed __unordered_set. + +2012-09-23 Paolo Carlini + + Revert: + 2012-09-21 Paolo Carlini + + * include/bits/stl_algobase.h (max, min): Use conditional operator. + +2012-09-23 Uros Bizjak + + PR libstdc++/54675 + * include/ext/random: Avoid the badname __alpha (and, for + consistency, __mu, __nu, __sigma and __omega too). + * include/bits/random.tcc: Likewise. + +2012-09-21 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/ext/random: Add __gnu_cxx::pareto_distribution<> class. + * include/ext/random.tcc: Add out-of-line functions for + __gnu_cxx::pareto_distribution<>. + * testsuite/ext/random/pareto_distribution/operators/equal.cc: New file. + * testsuite/ext/random/pareto_distribution/operators/serialize.cc: + New file. + * testsuite/ext/random/pareto_distribution/operators/inequal.cc: + New file. + * testsuite/ext/random/pareto_distribution/cons/parms.cc: New file. + * testsuite/ext/random/pareto_distribution/cons/default.cc: New file. + * testsuite/ext/random/pareto_distribution/requirements/typedefs.cc: + New file. + * testsuite/ext/random/pareto_distribution/requirements/ + explicit_instantiation/1.cc: New file. + +2012-09-21 Paolo Carlini + + * include/bits/stl_algobase.h (max, min): Use conditional operator. + +2012-09-18 Benjamin Kosnik + + PR libstdc++/28811 + PR libstdc++/54482 + * configure.ac (glibcxx_lt_pic_flag, + glibcxx_compiler_pic_flag, + glibcxx_compiler_shared_flag): New. Use them. + (lt_prog_compiler_pic_CXX): Set via glibcxx_*_flag(s) above. + (pic_mode): Set to default. + (PIC_CXXFLAGS): Remove. + * Makefile.am (PICFLAG, PICFLAG_FOR_TARGET): Remove. Comment. + * libsupc++/Makefile.am: Use glibcxx_ld_pic_flag and + glibcxx_compiler_shared_flag. Comment. + * src/c++11/Makefile.am: Same. + * src/c++98/Makefile.am: Same. + * src/Makefile.am: Use glibcxx_compiler_pic_flag. + + * Makefile.in: Regenerated. + * aclocal.m4: Same. + * configure: Same. + * doc/Makefile.in: Same. + * include/Makefile.in: Same. + * libsupc++/Makefile.in: Same. + * po/Makefile.in: Same. + * python/Makefile.in: Same. + * src/Makefile.in: Same. + * src/c++11/Makefile.in: Same. + * src/c++98/Makefile.in: Same. + * testsuite/Makefile.in: Same. + + * src/c++11/compatibility-atomic-c++0x.cc: Use + _GLIBCXX_SHARED instead of PIC to designate shared-only + code blocks. + * src/c++11/compatibility-c++0x.cc: Same. + * src/c++11/compatibility-thread-c++0x.cc: Same. + * src/c++98/compatibility-list-2.cc: Same. + * src/c++98/compatibility.cc: : Same. + + * testsuite/17_intro/shared_with_static_deps.cc: New. + + * doc/xml/manual/build_hacking.xml: Separate configure from + make/build issues, add build details. + +2012-09-18 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/ext/random: Add __gnu_cxx::nakagami_distribution<> class. + * include/ext/random.tcc: Add out-of-line functions for + __gnu_cxx::nakagami_distribution<>. + * testsuite/ext/random/nakagami_distribution/operators/equal.cc: + New file. + * testsuite/ext/random/nakagami_distribution/operators/serialize.cc: + New file. + * testsuite/ext/random/nakagami_distribution/operators/inequal.cc: + New file. + * testsuite/ext/random/nakagami_distribution/cons/parms.cc: New file. + * testsuite/ext/random/nakagami_distribution/cons/default.cc: New file. + * testsuite/ext/random/nakagami_distribution/requirements/typedefs.cc: + New file. + * testsuite/ext/random/nakagami_distribution/requirements/ + explicit_instantiation/1.cc: New file. + +2012-09-18 Paolo Carlini + + PR libstdc++/54612 + * include/ext/random.tcc (operator== + (const __gnu_cxx::simd_fast_mersenne_twister_engine<>&, + const __gnu_cxx::simd_fast_mersenne_twister_engine<>&)): Fix + state_size use. + * config/cpu/i486/opt/ext/opt_random.h: Guard with __SSE2__. + +2012-09-17 Ulrich Drepper + + * configure.ac: Substitute CPU_OPT_EXT_RANDOM. + * configure.host: Define cpu_opt_ext_random to location of the + optimized version of . + * include/Makefile.am (ext_headers): Add ${ext_host_headers}. + (ext_host_headers): Define. + * include/ext/random (simd_fast_mersenne_twister_engine<> + ::operator==): Don't define function here. + * include/ext/random.tcc (simd_fast_mersenne_twister_engine): Don't + define code using SSE2 here. Define generic code only if + _GLIBCXX_OPT_HAVE_RANDOM_SFMT_GEN_READ is not defined. + (simd_fast_mersenne_twister_engine<> + ::operator==): Define here if + _GLIBCXX_OPT_HAVE_RANDOM_SFMT_OPERATOREQUAL is not defined. + * config/cpu/generic/opt/ext/opt_random.h: New file. + * config/cpu/i486/opt/ext/opt_random.h: New file. + * libsupc++/Makefile.in: Regenerated. + * testsuite/Makefile.in: Regenerated. + * po/Makefile.in: Regenerated. + * configure: Regenerated. + * Makefile.in: Regenerated. + * doc/Makefile.in: Regenerated. + * aclocal.m4: Regenerated. + * python/Makefile.in: Regenerated. + * include/Makefile.in: Regenerated. + * src/c++98/Makefile.in: Regenerated. + * src/c++11/Makefile.in: Regenerated. + * src/Makefile.in: Regenerated. + +2012-09-16 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/ext/random.tcc (__gnu_cxx::rice_distribution<> + ::__generate_impl): Remove bogus _Adaptor usage. + +2012-09-16 Paolo Carlini + + * include/ext/random (rice_distribution<>::operator==): Change + inline friend definition to non-template. + * testsuite/ext/random/rice_distribution/requirements/ + explicit_instantiation/1.cc: New. + + * testsuite/26_numerics/random/normal_mv_distribution: Move... + * testsuite/ext/random/normal_mv_distribution: ... here. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine: + Move... + * testsuite/ext/random/simd_fast_mersenne_twister_engine: ... here. + * testsuite/26_numerics/random/beta_distribution: Move... + * testsuite/ext/random/beta_distribution: ... here. + * testsuite/26_numerics/random/rice_distribution: Move... + * testsuite/ext/random/rice_distribution: ... here. + +2012-09-14 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/ext/random: Add __gnu_cxx::rice_distribution<> class. + * include/ext/random.tcc: Add out-of-line functions for + __gnu_cxx::rice_distribution<>. + * testsuite/26_numerics/random/rice_distribution/ + operators/equal.cc: New file. + * testsuite/26_numerics/random/rice_distribution/ + operators/serialize.cc: New file. + * testsuite/26_numerics/random/rice_distribution/ + operators/inequal.cc: New file. + * testsuite/26_numerics/random/rice_distribution/ + cons/parms.cc: New file. + * testsuite/26_numerics/random/rice_distribution/ + cons/default.cc: New file. + * testsuite/26_numerics/random/rice_distribution/ + requirements/typedefs.cc: New file. + +2012-09-14 David Edelsohn + + * configure: Regenerated. + +2012-09-14 Jonathan Wakely + H.J. Lu + + PR libstdc++/54576 + * src/c++11/random.cc: Check if _GLIBCXX_USE_C99_STDINT_TR1 is defined. + +2012-09-12 Rainer Orth + + * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Define. + * configure.ac: Call GLIBCXX_CHECK_ASSEMBLER_HWCAP. + * fragment.am (CONFIG_CXXFLAGS): Add $(HWCAP_FLAGS). + * configure: Regenerate. + * Makefile.in: Regenerate. + * doc/Makefile.in: Regenerate. + * include/Makefile.in: Regenerate. + * libsupc++/Makefile.in: Regenerate. + * po/Makefile.in: Regenerate. + * python/Makefile.in: Regenerate. + * src/Makefile.in: Regenerate. + * src/c++11/Makefile.in: Regenerate. + * src/c++98/Makefile.in: Regenerate. + * testsuite/Makefile.in: Regenerate. + +2012-09-11 Jakub Jelinek + + PR libstdc++/54172 + * libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last + argument of the first __atomic_compare_exchange_n. + +2012-09-10 Sebastian Huber + Jonathan Wakely + + PR libstdc++/43852 + * acinclude.m4 (GLIBCXX_ENABLE_VERBOSE): Define. + * configure.ac (GLIBCXX_ENABLE_VERBOSE): Use it. + * config.h.in: Regenerate. + * configure: Likewise. + * libsupc++/eh_term_handler.cc (_GLIBCXX_VERBOSE): Check new macro. + * libsupc++/pure.cc (_GLIBCXX_VERBOSE): Likewise. + * doc/xml/manual/configure.xml (--disable-libstdcxx-verbose): Document. + * doc/html/manual/configure.html: Regenerate. + +2012-09-09 Jonathan Wakely + + PR bootstrap/54419 + * acinclude.m4 (GLIBCXX_CHECK_X86_RDRAND): Remove stray character. + * configure: Regenerated. + +2012-09-09 Jonathan Wakely + + PR libstdc++/54388 + * include/std/array (array::at() const): Ensure lvalue result. + * testsuite/23_containers/array/element_access/54388.cc: New. + * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust + dg-error line numbers. + * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: + Likewise. + +2012-09-09 Ulrich Drepper + Dominique d'Humieres + Jack Howarth + + PR bootstrap/54419 + * acinclude.m4: Define GLIBCXX_CHECK_X86_RDRAND. + * configure.ac: Use GLIBCXX_CHECK_X86_RDRAND to test for rdrand + support in assembler. + * src/c++11/random.cc (__x86_rdrand): Depend on _GLIBCXX_X86_RDRAND. + (random_device::_M_init): Likewise. + (random_device::_M_getval): Likewise. + * configure: Regenerated. + * config.h.in: Regenerated. + +2012-09-09 Ulrich Drepper + + * src/c++11/random.cc (random_device::_M_init): Use new macro + signature_INTEL_ebx to check for Intel processors. + +2012-09-06 Thiago Macieira + + PR libstdc++/54172 + * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if + we detect that another thread has had success. Don't compare_exchange + from a finished state back to a waiting state. Comment. + +2012-09-05 François Dumont + + PR libstdc++/54296 + * include/bits/hashtable.h (_M_erase(size_type, __node_base*, + __node_type*)): New. + (erase(const_iterator)): Use latter. + (_M_erase(std::true_type, const key_type&)): New, likewise. + (_M_erase(std::false_type, const key_type&)): New. Find all nodes + matching the key before deallocating them so that the key doesn't + get invalidated. + (erase(const key_type&)): Use the new member functions. + * testsuite/23_containers/unordered_map/erase/54296.cc: New. + * testsuite/23_containers/unordered_multimap/erase/54296.cc: New. + +2012-09-05 Ulrich Drepper + + * src/c++11/random.cc (random_device::_M_init): Check whether cpuid + instruction is available by using __get_cpuid_max. + + * include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>) + (operator()): Use __generate() function of _M_nd. + + * include/ext/random: Add __gnu_cxx:normal_mv_distribution<> class. + * include/ext/random.tccAdd out-of-line functions for + __gnu_cxx::normal_mv_distribution<>. + * testsuite/26_numerics/random/normal_mv_distribution/ + operators/equal.cc: New file. + * testsuite/26_numerics/random/normal_mv_distribution/ + operators/serialize.cc: New file. + * testsuite/26_numerics/random/normal_mv_distribution/ + operators/inequal.cc: New file. + * testsuite/26_numerics/random/normal_mv_distribution/ + cons/default.cc: New file. + * testsuite/26_numerics/random/normal_mv_distribution/ + cons/parms.cc: New file. + * testsuite/26_numerics/random/normal_mv_distribution/ + requirements/explicit_instantiation/1.cc: New file. + * testsuite/26_numerics/random/normal_mv_distribution/ + requirements/typedefs.cc: New file. + +2012-09-04 Ulrich Drepper + + * include/ext/random: Add __gnu_cxx::beta_distribution<> class. + * include/ext/random.tcc: Add out-of-line functions for + __gnu_cxx::beta_distribution<>. + * testsuite/26_numerics/random/beta_distribution/ + operators/equal.cc: New file. + * testsuite/26_numerics/random/beta_distribution/ + operators/serialize.cc: New file. + * testsuite/26_numerics/random/beta_distribution/ + operators/inequal.cc: New file. + * testsuite/26_numerics/random/beta_distribution/ + cons/parms.cc: New file. + * testsuite/26_numerics/random/beta_distribution/ + cons/default.cc: New file. + * testsuite/26_numerics/random/beta_distribution/ + requirements/typedefs.cc: New file. + * testsuite/26_numerics/random/beta_distribution/ + requirements/explicit_instantiation/1.cc: New file. + +2012-09-04 Steven Bosscher + + PR bootstrap/54453 + * include/Makefile.am: Fix regex. + * include/Makefile.in: Regenerate. + +2012-08-30 Benjamin Kosnik + + PR libstdc++/54005 continued + * include/std/atomic: Use __atomic_lock_free with NULL. + * include/bits/atomic_base.h: Same. + +2012-08-30 Ulrich Drepper + + * include/bits/random.h (random_device) [GLIBCXX_USE_RANDOM_TR1]: + Remove 'return' from constructor. + +2012-08-30 Benjamin Kosnik + + * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.18. + +2012-08-29 Ulrich Drepper + + * include/bits/random.h (random_device): Move implementation to... + * src/c++11/random.cc: ...here. New file. + * config/abi/pre/gnu.ver: Add new version GLIBCXX_3.4.18. Export + std::random_device::* symbols. + * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Generated. + * src/c++11/Makefile.am (sources): Add random.cc. + * src/c++11/Makefile.in: Regenerated. + + Add simd_fast_mersenne_twister_engine class. + * include/ext/random: New file. + * include/ext/random.tcc: New file. + * include/Makefile.am (ext_headers): Add random and random.tcc. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + operators/inequal.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + operators/equal.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + operators/serialize.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + cons/seed2.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + cons/default.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + cons/seed_seq.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + cons/copy.cc: New file. + * testsuite/26_numerics/random/simd_fast_mersenne_twister_engine/ + cons/seed1.cc: New file. + +2012-08-28 Benjamin Kosnik + + PR libstdc++/54102, part 2 + * doc/Makefile.am (XSL_HTML_STYLE): use xhtml, not html. + * doc/Makefile.in: Regenerate. + * doc/html/*: Same. + +2012-08-28 Benjamin Kosnik + + * doc/html/*: Regenerate. + +2012-08-28 Benjamin Kosnik + + PR libstdc++/54102 + * doc/xsl/customization.xsl.in: New. + * configure.ac: Output local copy of customization xsl. + * doc/Makefile.am (stamp-html-single-docbook): Use XSL_LOCAL_STYLE. + (stamp-html-docbook): Set stringparam to UTF-8. + * Makefile.in: Regenerated. + * configure: Same. + * doc/Makefile.in: Same. + +2012-08-27 Ulrich Drepper + + Add interfaces to retrieve random numbers in bulk. + * include/bits/random.h (uniform_int_distribution<>): Add __generate + and __generate_impl functions. + (uniform_real_distribution<>): Likewise. + (bernoulli_distribution): Likewise. + (geometric_distribution<>): Likewise. + (negative_binomial_distribution<>): Likewise. + (poisson_distribution<>): Likewise. + (exponential_distribution<>): Likewise. + (normal_distribution<>): Likewise. + (lognormal_distribution<>): Likewise. + (chi_squared_distribution<>): Likewise. + (cauchy_distribution<>): Likewise. + (fisher_f_distribution<>): Likewise. + (student_t_distribution<>): Likewise. + (gamma_distribution<>): Likewise. + (weibull_distribution<>): Likewise. + (extreme_value_distribution<>): Likewise. + (discrete_distribution<>): Likewise. + (piecewise_constant_distribution<>): Likewise. + (piecewise_linear_distribution<>): Likewise. + * include/bits/random.tcc (__detail::_Power_of_2): New function. + (uniform_int_distribution<>::__generate_impl): New function. + (uniform_real_distribution<>::__generate_impl): New function. + (bernoulli_distribution::__generate_impl): New function. + (geometric_distribution<>::__generate_impl): New function. + (negative_binomial_distribution<>::__generate_impl): New function. + (poisson_distribution<>::__generate_impl): New function. + (exponential_distribution<>::__generate_impl): New function. + (normal_distribution<>::__generate_impl): New function. + (lognormal_distribution<>::__generate_impl): New function. + (chi_squared_distribution<>::__generate_impl): New function. + (cauchy_distribution<>::__generate_impl): New function. + (fisher_f_distribution<>::__generate_impl): New function. + (student_t_distribution<>::__generate_impl): New function. + (gamma_distribution<>::__generate_impl): New function. + (weibull_distribution<>::__generate_impl): New function. + (extreme_value_distribution<>::__generate_impl): New function. + (discrete_distribution<>::__generate_impl): New function. + (piecewise_constant_distribution<>::__generate_impl): New function. + (piecewise_linear_distribution<>::__generate_impl): New function. + +2012-08-22 Ulrich Drepper + + * include/bits/random.h (mersenne_twister_engine): Don't inline + discard here. New member function _M_gen_rand. + * include/bits/random.tcc (mersenne_twister_engine<>::_M_gen_rand): + New function. Extracted from operator(). + (mersenne_twister_engine<>::discard): New implementation which + skips in large steps. + (mersenne_twister_engine<>::operator()): Use _M_gen_rand. + +2012-08-26 Marc Glisse + Paolo Carlini + + PR libstdc++/54376 + * include/bits/random.h (lognormal_distribution<>::operator==, + gamma_distribution<>::operator==, + chi_squared_distribution<>::operator==, + fisher_f_distribution<>::operator==, + student_t_distribution<>::operator==, + binomial_distribution<>::operator==, + negative_binomial_distribution<>::operator==, + poisson_distribution<>::operator==): Change inline friend definition + to non-template. + * testsuite/26_numerics/random/binomial_distribution/requirements/ + explicit_instantiation/1.cc: New. + * testsuite/26_numerics/random/cauchy_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/chi_squared_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/discrete_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/exponential_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/extreme_value_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/fisher_f_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/gamma_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/geometric_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/lognormal_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/negative_binomial_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/normal_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/poisson_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/student_t_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/uniform_int_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/uniform_real_distribution/ + requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/26_numerics/random/weibull_distribution/requirements/ + explicit_instantiation/1.cc: Likewise. + +2012-08-26 Jonathan Wakely + + * testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep. + +2012-08-26 Jonathan Wakely + + PR libstdc++/54297 + * src/c++11/future.cc (~_Async_state_common): Move to... + * src/c++11/compatibility-thread-c++0x.cc (~_Async_state_common): + Here. + (_GLIBCXX_ABI_COMPAT_ASYNC): Rename to _GLIBCXX_ASYNC_ABI_COMPAT. + * include/std/future (_GLIBCXX_ABI_COMPAT_ASYNC): Likewise. + +2012-08-26 Jonathan Wakely + Geoff Romer + + PR libstdc++/54351 + * include/bits/unique_ptr.h (unique_ptr::~unique_ptr): Do not use + reset(). + (unique_ptr::~unique_ptr()): Likewise. + * testsuite/20_util/unique_ptr/54351.cc: New. + * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error + line numbers. + +2012-08-25 Jonathan Wakely + + PR libstdc++/54297 + * include/std/future (~_Async_state_impl): Join thread before + derived class members are destroyed. + (~_Async_state_common): Only define non-trivial destructor when + included from future.cc for ABI compatibility reasons. + * src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define. + * testsuite/30_threads/async/54297.cc: New. + +2012-08-25 Jonathan Wakely + + PR libstdc++/54248 + * include/bits/concept_check.h: Replace references to boost + namespace. + +2012-08-23 Jonathan Wakely + + PR libstdc++/54354 + * doc/xml/manual/status_cxx2011.xml: Note missing manipulators. + * doc/html/*: Regenerate. + +2012-08-15 Tom Tromey + + * testsuite/libstdc++-prettyprinters/cxx11.cc (struct datum): + New. + (global): New global. + (main): Add test for unique_ptr. + * python/libstdcxx/v6/printers.py + (UniquePointerPrinter.to_string): Extract the pointer and also + print its type. + +2012-08-13 David Adler + + PR libstdc++/54185 + * src/c++11/condition_variable.cc (condition_variable): Always + destroy native type in destructor. + * testsuite/30_threads/condition_variable/54185.cc: New. + +2012-08-13 François Dumont + Ollie Wild + + * include/bits/hashtable.h + (_Hashtable<>_M_insert_multi_node(hash_code, node_type*)): New. + (_Hashtable<>_M_insert(_Args&&, false_type)): Use latter. + (_Hashtable<>::_M_emplace(false_type, _Args&&...)): Likewise. + (_Hashtable<>::_M_insert_bucket): Replace by ... + (_Hashtable<>::_M_insert_unique_node(size_type, hash_code, node_type*)): + ... this, new. + (_Hashtable<>::_M_insert(_Args&&, true_type)): Use latter. + (_Hashtable<>::_M_emplace(true_type, _Args&&...)): Likewise. + * include/bits/hashtable_policy.h (_Map_base<>::operator[]): Use + latter, emplace the value_type rather than insert. + * include/std/unordered_map: Include tuple. + * include/std/unordered_set: Likewise. + * testsuite/util/testsuite_counter_type.h: New. + * testsuite/23_containers/unordered_map/operators/2.cc: New. + +2012-08-13 Marc Glisse + + PR libstdc++/54112 + * include/c_compatibility/complex.h: Undefine complex, always + include system's complex.h if present. + * testsuite/26_numerics/complex/c99.cc: New testcase. + * testsuite/17_intro/headers/c++1998/complex.cc: Likewise. + * doc/xml/manual/numerics.xml: Document it. + +2012-08-12 Jonathan Wakely + + PR libstdc++/52681 + * src/c++11/thread.cc (thread::_M_start_thread): Improve error text + when threads are not enabled. + +2012-08-09 Jonathan Wakely + + * acinclude.m4: Update references to final C++11 standard. + * include/bits/shared_ptr.h: Likewise. + * include/bits/shared_ptr_base.h: Likewise. + * include/bits/unique_ptr.h: Likewise. + * include/std/chrono: Likewise. + * include/std/thread: Likewise. + +2012-08-07 Benjamin Kosnik + + PR libstdc++/54005 + * include/std/atomic: Use __atomic_always_lock_free. + * include/bits/atomic_base.h: Same. + +2012-08-06 Paolo Carlini + + * testsuite/decimal/mixed-mode-cmp_neg.cc: Add test variable; minor + tweaks. + * testsuite/decimal/unary-arith.cc: Likewise. + * testsuite/decimal/ctor.cc: Likewise. + * testsuite/decimal/conversion-to-integral.cc: Likewise. + * testsuite/decimal/make-decimal.cc: Likewise. + * testsuite/decimal/comparison.cc: Likewise. + * testsuite/decimal/incdec-memfunc.cc: Likewise. + * testsuite/decimal/conversion-to-generic-float.cc: Likewise. + * testsuite/decimal/compound-assignment-memfunc.cc: Likewise. + * testsuite/decimal/cast_neg.cc: Likewise. + * testsuite/decimal/incdec.cc: Likewise. + * testsuite/decimal/mixed-mode-arith_neg.cc: Likewise. + * testsuite/decimal/binary-arith.cc: Likewise. + * testsuite/decimal/conversion-from-float.cc: Likewise. + * testsuite/decimal/conversion-from-integral.cc: Likewise. + * testsuite/decimal/compound-assignment.cc: Likewise. + +2012-08-06 Peter Bergner + + PR libstdc++/54036 + * include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as + a unary operator. + * testsuite/decimal/pr54036-1.cc: New test. + * testsuite/decimal/pr54036-2.cc: Likewise. + * testsuite/decimal/pr54036-3.cc: Likewise. + +2012-08-04 Paolo Carlini + + Revert: + 2012-08-03 Ollie Wild + Richard Smith + + * include/bits/stl_map.h (operator[](key_type&&)): Replace + std::make_pair with value_type. + * testsuite/23_containers/map/operators/2.cc: New test. + +2012-08-03 François Dumont + + * include/debug/functions.h (__check_partition_lower_aux): Remove + redundant comparison with pivot value. + (__check_partition_upper_aux): Likewise. + +2012-08-03 Ollie Wild + Richard Smith + + * include/bits/stl_map.h (operator[](key_type&&)): Replace + std::make_pair with value_type. + * testsuite/23_containers/map/operators/2.cc: New test. + +2012-08-03 Jonathan Wakely + + * include/std/memory: Include auto_ptr.h later. + * include/bits/shared_ptr.h (shared_ptr(auto_ptr<_Up>&&): Remove + definition. + * include/bits/shared_ptr_base.h (__shared_ptr(auto_ptr<_Up>&&): + Likewise. + * include/bits/unique_ptr.h (unique_ptr(auto_ptr<_Up>&&): Likewise. + * include/backward/auto_ptr.h (unique_ptr(auto_ptr<_Up>&&): Define. + (shared_ptr(auto_ptr<_Up>&&, __shared_ptr(auto_ptr<_Up>&&): Likewise. + * include/std/future: Reduce header dependencies. + * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line + numbers. + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. + * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise. + +2012-07-30 François Dumont + + * include/bits/c++config (_GLIBCXX_END_NAMESPACE_CONTAINER): Fix + order of closures. + (_GLIBCXX_END_NAMESPACE_ALGO): Likewise. + +2012-07-29 François Dumont + + PR libstdc++/54075 + * include/bits/hashtable_policy.h + (_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2 + to boost growth in the number of buckets. + * testsuite/performance/23_containers/insert/unordered_set.cc: New. + +2012-07-25 François Dumont + + PR libstdc++/54075 + * include/bits/hashtable.h + (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, + size_type, ...): Remove std::max usage to guarantee that hashtable + state is consistent with hash policy state. + (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid + the hashtable shrinking on next insertion. + * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New. + * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New. + * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New. + * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New. + +2012-07-20 Chip Salzenberg + Jonathan Wakely + + PR libstdc++/54025 + * include/std/chrono (duration<>::duration): Fix per C++11. + * testsuite/20_util/duration/cons/54025.cc: New. + * testsuite/20_util/duration/cons/constexpr.cc: Adjust. + +2012-07-20 Paolo Carlini + + * testsuite/30_threads/thread/adl.cc: Add missing dg-requires. + +2012-07-19 Tristan Gingold + Richard Henderson + + * libsupc++/eh_personality.cc (__gxx_personality_seh0): New function. + Adjust for SEH. + * config/abi/pre/gnu.ver: Add __gxx_personality_seh0. + +2012-07-18 Paolo Carlini + + PR c++/51213 + * testsuite/20_util/pair/noncopyable.cc: New. + +2012-07-16 Jonathan Wakely + + PR libstdc++/53270 + * include/ext/concurrence.h (__mutex, __recursive_mutex, __cond): Use + NSDMI in C++98 mode too. + * include/ext/rope: Add system_header pragma. + (_Refcount_Base, _Rope_RopeRep): Use NSDMI. + (_Rope_RopeRep::~_Rope_RopeRep): Destroy mutex. + +2012-07-16 Jonathan Wakely + + PR libstdc++/53978 + * include/bits/alloc_traits.h (allocator_traits): Define static + constants. + * include/bits/ptr_traits.h (pointer_traits): Likewise. + * include/ext/alloc_traits.h (__allocator_always_compares_equal): + Likewise. + +2012-07-13 Paolo Carlini + + PR libstdc++/53657 + * include/bits/stl_pair.h (pair<>::pair(pair&&)): Declare defaulted, + per C++11. + * include/bits/stl_map.h (map<>::insert(_Pair&&), map<>::insert + (const_iterator, _Pair&&)): Constrain with std::is_constructible, + per LWG2005. + * include/bits/stl_multimap.h (multimap<>::insert(_Pair&&), + multimap<>::insert(const_iterator, _Pair&&)): Likewise. + * include/bits/hashtable_policy.h (_Insert<>::insert(_Pair&&), + _Insert<>::insert(const_iterator, _Pair&&)): Likewise. + * include/debug/unordered_map: Adjust. + * include/debug/map.h: Likewise. + * include/debug/multimap.h: Likewise. + * include/profile/unordered_map: Likewise. + * include/profile/map.h: Likewise. + * include/profile/multimap.h: Likewise. + +2012-07-06 Paolo Carlini + + PR libstdc++/53872 + * include/std/thread (thread::_M_make_routine): Qualify make_shared + to prevent ADL. + * testsuite/30_threads/thread/adl.cc: New. + +2012-07-05 Jonathan Wakely + + * include/std/condition_variable: Update copyright years. + +2012-07-04 Jonathan Wakely + + PR libstdc++/53830 + * include/std/condition_variable (condition_variable_any::wait): + Move _Unlock type to class scope. + (condition_variable_any::wait_until): Reuse it. + * testsuite/30_threads/condition_variable_any/53830.cc: New. + +2012-07-04 Matthias Klose + + * testsuite/28_regex/headers/04_header: Remove empty directory. + * testsuite/28_regex/algorithms/02_match: Likewise. + +2012-07-03 Paolo Carlini + + PR libstdc++/53840 + * include/std/ratio (ratio_multiply, ratio_divide, ratio_add, + ratio_subtract): Use template aliases. + * include/std/chrono (duration<>::duration(const duration<>&), + duration_cast): Adjust. + * testsuite/20_util/ratio/operations/53840.cc: New. + * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust. + * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. + * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. + * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise. + +2012-07-02 Paolo Carlini + + Revert: + 2011-10-04 Paolo Carlini + + PR libstdc++/49561 + * include/bits/stl_list.h (_List_base<>::_List_impl::_M_size): + Add in C++0x mode. + (_List_base<>::_List_impl, _List_base<>::_M_get_node, + _List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&), + list<>::size, list<>::swap, list<>::splice): Use it. + (operator==(const list<>&, const list<>&)): Rewrite in C++0x mode. + * include/bits/list.tcc (list<>::erase): Likewise. + (list<>::merge): Adjust in C++0x mode. + * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: + Adjust dg-error line number. + * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_2_neg.cc: Likewise. + +2012-06-27 Benjamin Kosnik + + * include/bits/c++config: Remove __regex nested namespace. + * include/bits/regex_compiler.h: Change __regex to + __detail. Adjust doxygen markup, add regex-details group. + * include/bits/regex_constants.h: Same. + * include/bits/regex_cursor.h: Same. + * include/bits/regex_error.h: Same. + * include/bits/regex_grep_matcher.h: Same. + * include/bits/regex_grep_matcher.tcc: Same. + * include/bits/regex_nfa.h: Same. + * include/bits/regex_nfa.tcc: Same. + * include/bits/regex.h: Same. Remove static from global constants. + + * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line numbers. + + * include/bits/locale_classes.tcc: Add use_facet, has_facet to + locales group. + +2012-06-25 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/tr2/bool_set (count, size, num_blocks, empty, max_size): + Add noexcept. + +2012-06-25 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/tr2/dynamic_bitset (count, size, num_blocks, empty, max_size): + Add noexcept. + +2012-06-25 Benjamin Kosnik + + * doc/doxygen/user.cfg.in: Change COMPACT_LATEX to NO. + +2012-06-24 Benjamin Kosnik + + * testsuite/28_regex/algorithms/02_match: To... + * testsuite/28_regex/algorithms/match: ...this. + * testsuite/28_regex/headers/04_header/regex/std_c++0x_neg.cc: Remove + duplicate. + +2012-06-18 Jörg Sonnenberger + Jonathan Wakely + + PR libstdc++/53678 + * config/os/bsd/netbsd/ctype_base.h: Check for _CTYPE_U. + * testsuite/22_locale/ctype_base/53678.cc: New. + +2012-06-15 Jonathan Wakely + + PR libstdc++/53578 + * include/ext/concurrence.h (__recursive_mutex::_S_destroy): Fix + narrowing conversion. + * include/std/mutex (__recursive_mutex_base::_S_destroy): Likewise. + +2012-06-14 Jonathan Wakely + + PR libstdc++/53270 + * include/ext/concurrence.h (__mutex, __recursive_mutex, __cond): Use + NSDMI in C++11 mode. + * include/ext/rope (_Refcount_Base): Likewise. Destroy mutex in + destructor when initialized by function. + +2012-06-14 Jonathan Wakely + + PR libstdc++/53648 + * include/std/tuple (__empty_not_final): Do not use EBO for tuples. + * testsuite/20_util/tuple/53648.cc: New. + * testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error line + number. + +2012-06-14 Jonathan Wakely + + * doc/xml/manual/status_cxx2011.xml: Correct C++11 status table. + +2012-06-01 Jonathan Wakely + + * doc/xml/manual/status_cxx2011.xml: Correct C++11 status table. + +2012-05-31 Benjamin Kosnik + + PR libstdc++/53543 + * include/bits/hashtable_policy.h (_Insert::__is_convertible): + Rename to __is_conv to avoid clash with clang built-in. + +2012-05-29 François Dumont + + * include/bits/stl_tempbuf.h (__uninitialized_construct_buf) + (__uninitialized_construct_buf_dispatch<>::__ucr): Fix to work + with iterator returning rvalue. + * testsuite/25_algorithms/stable_sort/3.cc: New. + +2012-05-28 Paolo Carlini + + PR c++/53503 + * testsuite/26_numerics/headers/cmath/53503.cc: New. + +2012-05-22 Dodji Seketeli + + PR c++/53322 + * include/bits/stl_algobase.h (lower_bound) + (lexicographical_compare): Do not declare unused local typedefs + here when Concepts are turned off. + +2012-05-21 Paolo Carlini + + * testsuite/22_locale/num_put/put/char/9780-2.cc: Avoid -Wall warnings. + * testsuite/29_atomics/atomic/cons/49445.cc: Likewise. + * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: + * Likewise. + * testsuite/23_containers/unordered_map/observers.cc: Likewise. + * testsuite/23_containers/unordered_map/erase/1.cc: Likewise. + * testsuite/23_containers/unordered_multimap/erase/1.cc: Likewise. + * testsuite/23_containers/unordered_multimap/erase/2.cc: Likewise. + * testsuite/23_containers/unordered_multimap/insert/53115.cc: Likewise. + * testsuite/23_containers/unordered_multimap/observers.cc: Likewise. + * testsuite/23_containers/vector/debug/alloc_prop.cc: Likewise. + * testsuite/23_containers/unordered_set/observers.cc: Likewise. + * testsuite/23_containers/unordered_set/erase/1.cc: Likewise. + * testsuite/23_containers/unordered_multiset/erase/1.cc: Likewise. + * testsuite/23_containers/unordered_multiset/erase/2.cc: Likewise. + * testsuite/23_containers/unordered_multiset/insert/53115.cc: Likewise. + * testsuite/23_containers/unordered_multiset/insert/multiset_range.cc: + * Likewise. + * testsuite/23_containers/unordered_multiset/observers.cc: Likewise. + +2012-05-21 Paolo Carlini + + PR c++/53361 + * testsuite/23_containers/array/cons/53361.cc: New. + +2012-05-17 Paolo Carlini + + PR c++/44516 + * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust + dg-error line number. + +2012-05-16 H.J. Lu + + * configure: Regenerated. + +2012-05-15 Paolo Carlini + + PR libstdc++/53339 + * include/bits/hashtable_policy.h (__detail::_Identity, + __detail::_Select1st): Add. + (_Map_base, _Hashtable_base): Use the latter, adjust parameters. + * include/bits/hashtable.h (_Hashtable::__key_extract): Adjust. + * include/bits/unordered_set.h (__uset_hashtable, __umset_hashtable): + Likewise. + * include/bits/unordered_map.h (__umap_hashtable, __ummap_hashtable): + Likewise. + * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd) + Unconditionally derive from unary_function. + * include/ext/functional (identity, select1st, select2nd): Remove + #ifdef __GXX_EXPERIMENTAL_CXX0X__ bits. + * testsuite/23_containers/unordered_map/requirements/53339.cc: New. + * testsuite/23_containers/unordered_multimap/requirements/ + 53339.cc: Likewise. + +2012-05-11 François Dumont + + PR libstdc++/53263 + * include/debug/safe_iterator.h (__gnu_debug::__base): Move... + * include/debug/functions.h: ... Here. + (__check_sorted_aux): Add overload for random access safe + iterators. + (__check_partition_lower_aux): New. + (__check_partition_lower): Use latter. + (__check_partition_upper_aux): New. + (__check_partition_upper): Use latter. + * include/debug/macros.h (__glibcxx_check_heap) + (__glibcxx_check_heap_pred): Use __gnu_debug::__base on iterator range. + +2012-05-10 DJ Delorie + + * include/bits/random.tcc (seed_seq::generate): Cast max() + operands to size_t to ensure a template match. + * include/std/bitset (_M_copy_from_ptr): Cast min() operands to + size_t to ensure a template match. + +2012-05-03 Benjamin Kosnik + + * scripts/testsuite_flags.in (cxxflags): Remove + -ftrack-macro-expansion=0. + +2012-05-03 Jonathan Wakely + + * doc/xml/faq.xml: Update outdated allocator documentation. + * doc/xml/manual/allocator.xml: Likewise. + * doc/xml/manual/debug.xml: Likewise. + * doc/xml/manual/evolution.xml: Likewise. + * doc/xml/manual/using.xml: Likewise. + +2012-05-02 Benjamin Kosnik + + PR libstdc++/44015 + * include/bits/basic_ios.h: Add tparam markup for + * doxygen. include/bits/basic_string.h: Same. + * include/bits/forward_list.h: Same. + * include/bits/stl_bvector.h: Same. + * include/bits/stl_deque.h: Same. + * include/bits/stl_list.h: Same. include/bits/stl_map.h: + * Same. include/bits/stl_multimap.h: Same. + * include/bits/stl_multiset.h: Same. + * include/bits/stl_pair.h: Same. + * include/bits/stl_queue.h: Same. + * include/bits/stl_set.h: Same. + * include/bits/stl_stack.h: Same. + * include/bits/stl_vector.h: Same. + * include/bits/unordered_map.h: Same. + * include/bits/unordered_set.h: Same. include/std/array: + * Same. include/std/atomic: Same. include/std/fstream: + * Same. include/std/istream: Same. include/std/ostream: + * Same. include/std/sstream: Same. + * include/std/streambuf: Same. + * testsuite/23_containers/deque/requirements/dr438/*: + Adjust line numbers. + * testsuite/23_containers/list/requirements/dr438/*: Same. + * testsuite/23_containers/vector/requirements/dr438/*: Same. + +2012-05-02 DJ Delorie + + * crossconfig.m4: Since we know that all TPF builds are cross- + builds and cannot run configuration-time link tests, do not + allow it; just go with known supported linker options. + * configure: Regenerate (called as GLIBCXX_CROSSCONFIG). + +2012-05-02 Benjamin Kosnik + + * include/bits/hashtable_policy.h: Correct namepace nesting for + _Hashtable forward declaration. + +2012-05-01 François Dumont + + PR libstdc++/53115 + * include/bits/hashtable.h + (_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets + after insertion of several equivalent elements. + * testsuite/23_containers/unordered_multiset/insert/53115.cc: New. + * testsuite/23_containers/unordered_multimap/insert/53115.cc: New. + +2012-04-29 Marc Glisse + Paolo Carlini + + PR libstdc++/51795 + * include/bits/stl_algobase.h (__lg<>(_Size)): Remove. + (__lg(int), __lg(unsigned), __lg(long), __lg(unsigned long), + __lg(long long), __lg(unsigned long long)): Define constexpr. + * include/bits/random.h (_Mod<>): Overcome Schrage's algorithm + limitations. + (__mod): Adjust. + (linear_congruential): Remove FIXME static_assert. + * include/bits/random.tcc (_Mod<>): Adjust. + * testsuite/26_numerics/random/linear_congruential_engine/operators/ + 51795.cc: New. + +2012-04-29 Jonathan Wakely + + * include/std/functional (function::function(F)): LWG 2132: Disable + constructor if argument isn't callable. + * testsuite/20_util/function/cons/callable.cc: New. + +2012-04-29 Marc Glisse + + PR libstdc++/22200 + * include/std/limits (numeric_limits<>::is_modulo): False for + signed types. + +2012-04-25 Benjamin Kosnik + + * include/bits/hashtable.h: Adjust doxygen markup for base + classes. + * include/bits/hashtable_policy.h: Same. + +2012-04-25 Benjamin Kosnik + + PR libstdc++/52689 + * testsuite/17_intro/static.cc: Fix. + * testsuite/lib/dg-options.exp (dg-require-static-libstdcxx): New. + * testsuite/lib/libstdc++.exp (check_v3_target_static_libstdcxx): New. + +2012-04-25 Jonathan Wakely + + * include/std/scoped_allocator (scoped_allocator::__outermost): Do + not pass non-POD to varargs function. + * testsuite/20_util/scoped_allocator/1.cc: Fix test. + +2012-04-24 Benjamin Kosnik + + PR libstdc++/52689 + * testsuite/17_intro/static.cc: New. + +2012-04-23 Daniel Krugler + + * include/std/type_traits (is_nothrow_destructible): Implement. + (is_destructible): Implement LWG 2049. + * testsuite/util/testsuite_tr1.h: Add tests. + * testsuite/20_util/is_nothrow_destructible/value.cc: New. + * testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc: + * testsuite/20_util/is_nothrow_destructible/requirements/ + explicit_instantiation.cc: Likewise. + * testsuite/20_util/is_destructible/value.cc: Adjust and extend. + * testsuite/20_util/is_default_constructible/value.cc: Tweak. + * testsuite/20_util/is_constructible/value-2.cc: Likewise. + * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust + dg-error line numbers. + * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: + Likewise. + * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. + +2012-04-23 Paolo Carlini + + PR libstdc++/53080 + * include/std/array (tuple_element, get): static_assert I < N. + * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: + New. + * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise. + * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Fix. + +2012-04-23 Chris Jefferson + + PR testsuite/53046 + * testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size + of array A. + * testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise. + +2012-04-22 Paolo Carlini + + PR libstdc++/53067 + * include/bits/hashtable_policy.h: Change inheritances to public. + * testsuite/23_containers/unordered_map/requirements/53067.cc: New. + * testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise. + +2012-04-22 Jonathan Wakely + + * include/ext/alloc_traits.h (__alloc_traits::difference_type): + Define. + +2012-04-22 Jonathan Wakely + + PR libstdc++/53027 + * include/bits/ptr_traits.h (pointer_traits::rebind): Make public. + * testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check + rebind works. + +2012-04-22 Jonathan Wakely + + * include/debug/forward_list (forward_list::splice_after): Check + allocators are equal. + * src/c++11/debug.cc: Fix spelling. + * testsuite/23_containers/forward_list/debug/splice_after5_neg.cc: + New. + * testsuite/23_containers/forward_list/debug/splice_after6_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/splice_after7_neg.cc: + Likewise. + +2012-04-20 Paolo Carlini + + PR libstdc++/53052 + * include/std/type_traits (is_explicitly_convertible): Remove. + * testsuite/20_util/is_explicitly_convertible: Likewise. + * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: + Adjust dg-error line numbers. + * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: + Likewise. + * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. + +2012-04-17 Benjamin Kosnik + + * testsuite/20_util/specialized_algorithms/uninitialized_copy/ + 808590.cc: New. + +2012-04-17 Rainer Orth + + * testsuite/util/testsuite_abi.cc (compare_symbols): Change + summary header to avoid confusion with DejaGnu header. + +2012-04-15 Paolo Carlini + + PR libstdc++/52702 + * include/std/type_traits (is_trivially_destructible): Add. + (has_trivial_destructor): Remove. + * testsuite/util/testsuite_common_types.h: Adjust. + * testsuite/20_util/tuple/requirements/dr801.cc: Likewise. + * testsuite/20_util/pair/requirements/dr801.cc: Likewise. + * testsuite/20_util/is_trivially_destructible/value.cc: New. + * testsuite/20_util/is_trivially_destructible/requirements/ + typedefs.cc: Likewise. + * testsuite/20_util/is_trivially_destructible/requirements/ + explicit_instantiation.cc: Likewise. + * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: + Adjust dg-error line numbers. + * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: + Likewise. + * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. + +2012-04-14 Paolo Carlini + + PR libstdc++/52699 + * include/bits/random.tcc (independent_bits_engine<>::operator()()) + Avoid various overflows; use common_type on result_type and + _RandomNumberEngine::result_type; avoid floating point computations; + other smaller tweaks. + + * include/bits/random.tcc (uniform_int_distribution<>::operator()) + Use common_type; assume _UniformRandomNumberGenerator::result_type + unsigned; tidy. + + * include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long), + __lg(unsigned long long)): Add. + +2012-04-14 Alan Modra + + PR libstdc++/52839 + * acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on + glibcxx_cv_atomic_long_long. + * configure: Regenerate. + +2012-04-13 Paolo Carlini + + * testsuite/26_numerics/cmath/51083.cc: Move... + * testsuite/26_numerics/headers/cmath/51083.cc: ... here. + +2012-04-13 Laurent Alfonsi + + PR libstdc++/52604 + * src/c++98/mt_allocator.cc: (__freelist::~__freelist): Reset pointer. + +2012-04-13 Paolo Carlini + + * include/debug/safe_iterator.h (_BeforeBeginHelper<>:: + _S_Is_Beginnest): Add. + * include/debug/forward_list (_BeforeBeginHelper<>:: + _S_Is_Beginnest): Likewise. + (_Safe_iterator<>::_M_is_beginnest): Add. + * include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range): + Use the latter. + * testsuite/23_containers/forward_list/debug/splice_after.cc: + Add test. + +2012-04-12 Benjamin Kosnik + + * include/bits/unordered_map.h (__unordered_map): Remove. + (__unordered_multimap): Remove. + Add aliases for __umap_traits, __umap_hashtable, __ummap_traits, + __ummap_hashtable. + (unordered_map): Derive from __umap_hashtable. + (unordered_multimap): Derive from __ummap_hashtable. + * include/bits/unordered_set.h (__unordered_set): Remove. + (__unordered_multiset): Remove. + Add aliases for __uset_traits, __uset_hashtable, __umset_traits, + __umset_hashtable. + (unordered_set): Derive from __uset_hashtable. + (unordered_multiset): Derive from __umset_hashtable. + * include/bits/hashtable.h (__cache_default): New, consolidated + cache defaults for _Hashtable. Adjust comments for doxygen. + (_Hashtable): Consolidate bool template parameters into new, + _Traits class. Inherited base classes synthesize _Hashtable in + CRTP via original 10 parameters. Prefer using declarations to + typedefs, add __node_type, __bucket_type, etc. Push many nested + types down hierarchy to _Hashtable_base. Add constructors + necessary for top-level unordered_containers. Consolidate insert + member functions and logic in new base class, __detail::_Insert + and __detail::_Insert_base. + (_Hashtable::operator=(initializer_list)): Add. + * include/bits/hashtable_policy.h: Convert to doxygen markup. + (_Hashtable_traits) New. Consolidate bool template parameters here. + (_Insert, _Insert_base): New, consolidated insert member functions. + (_Map_base, _Equality, _Rehash_base): Adjust template parameters, + use base types. + (_Hashtable_base): Move type declarations useful to other base + classes into this class. + * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Update. + * testsuite/23_containers/unordered_set/instantiation_neg.cc: + Adjust traits, line numbers. + +2012-04-12 Jeffrey Yasskin + + PR libstdc++/52822 + * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode. + (__find_if_not_n): Like __find_if_not, but works on and updates a + counted range instead of a bounded range. + (stable_partition): Guarantee !__pred(*__first) in call to + __stable_partition_adaptive() or __inplace_stable_partition(). + (__stable_partition_adaptive): Use new precondition to avoid + moving/copying objects onto themselves. Guarantee new + precondition to recursive calls. + (__inplace_stable_partition): Use new precondition to simplify + base case, remove __last parameter. Guarantee new precondition to + recursive calls. + * testsuite/25_algorithms/stable_partition/moveable.cc (test02): + Test a sequence that starts with a value matching the predicate. + * testsuite/25_algorithms/stable_partition/pr52822.cc: Test + vectors, which have a destructive self-move-assignment. + +2012-04-12 Andreas Schwab + + * testsuite/Makefile.am (check_DEJAGNUnormal0): Run + prettyprinters.exp. + * testsuite/Makefile.in: Regenerated. + +2012-04-12 Paolo Carlini + + PR libstdc++/52942 + * include/bits/stl_function.h (_Identity, _Select1st, _Select2nd): + In C++11 mode do not derive from std::unary_function. + * include/ext/functional (identity, select1st, select2nd): Adjust. + * testsuite/23_containers/unordered_map/requirements/52942.cc: New. + * testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise. + +2012-04-11 Jonathan Wakely + + PR libstdc++/52924 + * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add + user-defined destructor. + (_Sp_counted_inplace): Likewise. + * testsuite/20_util/shared_ptr/cons/52924.cc: New. + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error + line numbers. + +2012-04-11 Jonathan Wakely + + * doc/xml/manual/debug.xml (Debug Versions of Library Binary Files): + Re-arrange text slightly. + +2012-04-11 Jonathan Wakely + + * testsuite/performance/30_threads/future/polling.cc: Adjust. + +2012-04-11 Paolo Carlini + + * include/bits/forward_list.h (splice_after(const_iterator, + forward_list&), splice_after(const_iterator, forward_list&, + const_iterator), splice_after(const_iterator, forward_list&, + const_iterator, const_iterator), merge(forward_list&), + merge(forward_list&, _Comp)): Add per C++11 as published (and + LWG 1310). + * include/debug/forward_list: Adjust. + + * include/bits/forward_list.h (splice_after(const_iterator, + forward_list&&, const_iterator)): Only declare. + (_M_transfer_after): Remove. + (_M_splice_after(const_iterator, forward_list&&)): Change signature. + (splice_after(const_iterator, forward_list&&, const_iterator, + const_iterator)): Use the latter. + * include/bits/forward_list.tcc (splice_after(const_iterator, + forward_list&&, const_iterator)): Define here. + (_M_splice_after): Define, use throughout. + + * include/bits/forward_list.h (insert_after(const_iterator, + std::initializer_list<_Tp>)): Forward to insert_after(const_iterator, + _InputIterator, _InputIterator). + * include/bits/forward_list.tcc: Remove definition. + + * testsuite/23_containers/forward_list/modifiers/6.cc: New. + * testsuite/23_containers/forward_list/operations/1.cc: Adjust. + +2012-04-11 Paolo Carlini + + PR libstdc++/52931 + * include/bits/functional_hash.h (struct hash): Remove definition. + * testsuite/20_util/hash/52931.cc: New. + +2012-04-11 Manuel López-Ibáñez + + PR 24985 + * testsuite/lib/prune.exp: Handle caret. + +2012-04-05 Rainer Orth + + Partially revert: + 2012-03-28 Benjamin Kosnik + + PR libstdc++/52689 + * src/c++98/compatibility-list.cc: Same. + +2012-04-05 Bernhard Reutner-Fischer + + PR bootstrap/52840 + * src/Makefile.am (build-debug): Do not adjust vpath dir, remove + Makefile.tmp + * src/Makefile.in: Adjust as per above. + +2012-04-04 Uros Bizjak + + Partially revert: + 2012-03-28 Benjamin Kosnik + + PR libstdc++/52689 + * src/c++98/compatibility-ldbl.cc: Guard with PIC + +2012-04-02 Tristan Gingold + + * crossconfig.m4 (*-*-*vms*): Add. + * configure: Regenerate. + +2012-04-01 Jonathan Wakely + + PR libstdc++/52591 + * include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch + to _M_move_assign depending on whether allocator is moved. + (vector::_M_move_assign): Add overloaded functions. + * testsuite/23_containers/vector/52591.cc: New. + * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: + Adjust dg-error line number. + * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: + Likewise. + * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: + Likewise. + * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: + Likewise. + +2012-04-01 Jonathan Wakely + + * include/std/functional (__callable_functor): Overload for + volatile-qualified pointers. + * testsuite/20_util/function/10.cc: New. + +2012-03-30 Jeffrey Yasskin + Paolo Carlini + + PR libstdc++/52799 + * include/bits/deque.tcc (emplace): Fix thinko, replace push_front + -> emplace_front, and likewise for *_back. + * testsuite/23_containers/deque/modifiers/emplace/52799.cc: New. + * testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise. + * testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise. + +2012-03-28 Benjamin Kosnik + + PR libstdc++/52689 + * libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. + * libsupc++/Makefile.in: Regenerated. + * src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. + (libstdc___la_SOURCES): Add in compatiblity files, with content + that varies with -DPIC. + * src/Makefile.in: Regenerated. + * src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. + * src/c++11/Makefile.in: Regenerated. + * src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC. + * src/c++11/compatibility-c++0x.cc: Same. + * src/c++11/future.cc: Consolidate compatibility bits into.. + * src/c++11/mutex.cc: Consolidate compatibility bits into.. + * src/c++11/compatibility-thread-cxx0x.cc: ...here. New. + * src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak. + * src/c++98/Makefile.in: Regenerated. + * src/c++98/compatibility-ldbl.cc: Guard with PIC + * src/c++98/compatibility-list-2.cc: Same. + * src/c++98/compatibility-list.cc: Same. + * src/c++98/compatibility.cc: Tweak comments. + +2012-03-28 Terry Guo + + * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New. + * testsuite/Makefile.in: Regenerated. + +2012-03-27 Jonathan Wakely + + * include/std/functional (mem_fn): Qualify to prevent ADL. + * testsuite/20_util/function_objects/mem_fn/adl.cc: New. + +2012-03-27 Jonathan Wakely + + * include/std/type_traits (result_of): Fix handling of cv-quals. + * testsuite/20_util/result_of/1.cc: New. + * testsuite/20_util/result_of/2.cc: New. + * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error + line numbers. + * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: + Likewise. + * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: + Likewise. + +2012-03-23 David S. Miller + + * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update. + +2012-03-23 Benjamin Kosnik + + * scripts/testsuite_flags.in (--cxxflags): Let CXXFLAGS set -g -O2. + * testsuite/lib/libstdc++.exp: Same. + +2012-03-23 Paolo Carlini + + * include/bits/forward_list.h: Slightly tweak two comments. + +2012-03-22 Benjamin Kosnik + + * doc/Makefile.am: XML output names have only .xml suffix. + * doc/Makefile.in: Regenerate. + +2012-03-22 Paolo Carlini + + * include/std/array (array<>::at(size_type) const): Fix version + for undefined __EXCEPTIONS. + +2013-03-21 Andreas Tobler + + * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: + Skip this test on powerpc64-*-freebsd*. + +2012-03-20 Jonathan Wakely + + * include/bits/stl_list.h (list::_M_size): Use NSDMI. + * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: + Adjust line numbers. + * testsuite/23_containers/list/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: + Likewise. + +2012-03-19 Paweł Sikora + + PR libstdc++/52540 + * include/Makefile.am (c++config.h): Fix sed rule to not break + the _GLIBCXX_EXTERN_TEMPLATE redefinition. + * include/Makefile.in: Regenerate. + +2012-03-19 Paolo Carlini + + * testsuite/Makefile.in: Regenerate. + +2012-03-19 Benjamin Kosnik + + * include/bits/allocator.h (std::allocator): Base class is + __allocator_base. + (uses_allocator): Add to sub-grouping. + * include/ext/new_allocator.h: Doxygen markup for tparm. + + * config/allocator/bitmap_allocator_base.h: Use __allocator_base + template alias in C++11. + * config/allocator/malloc_allocator_base.h: Same. + * config/allocator/mt_allocator_base.h: Same. + * config/allocator/new_allocator_base.h: Same. + * config/allocator/pool_allocator_base.h: Same. + +2012-03-19 Benjamin Kosnik + + * include/ext/pb_ds/detail/pat_trie_/ + constructors_destructor_fn_imps.hpp: Increment after recursion. + * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert + node_type markup from brief. + +2012-03-16 François Dumont + + PR libstdc++/52476 + * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add. + (_Hashtable<>::_M_rehash): Use the latter. + * testsuite/23_containers/unordered_multimap/insert/52476.cc: New. + * testsuite/23_containers/unordered_multiset/insert/52476.cc: New. + +2012-03-14 Rainer Orth + + * config/os/solaris/solaris2.8: Rename to ... + * config/os/solaris/solaris2.9: ... this. + * config/abi/post/solaris2.8: Rename to ... + * config/abi/post/solaris2.9: ... this. + * configure.host (os_include_dir): Remove solaris2.8. + Reflect renaming. + (abi_baseline_pair): Remove *-*-solaris2.8. + Reflect renaming. + + * configure.ac (GLIBCXX_CHECK_MATH_PROTO): Remove + (GLIBCXX_CHECK_STDLIB_PROTO): Remove. + * acinclude.m4 (GLIBCXX_CHECK_MATH_PROTO): Remove + (GLIBCXX_CHECK_STDLIB_PROTO): Remove. + (GLIBCXX_CHECK_GTHREADS): Remove Solaris 8 handling. + * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Remove *-solaris2.8 + handling. + * configure: Regenerate. + * config.h.in: Regenerate. + + * config/os/solaris/solaris2.9/os_defines.h + (__CORRECT_ISO_CPP_MATH_H_PROTO): Define. + (__CORRECT_ISO_CPP_STDLIB_H_PROTO): Define. + * include/c_global/cmath: Rename __CORRECT_ISO_CPP_MATH_H_PROTO1 + to __CORRECT_ISO_CPP_MATH_H_PROTO. + [!__CORRECT_ISO_CPP_MATH_H_PROTO2]: Remove. + * include/tr1/cmath: Rename __CORRECT_ISO_CPP_MATH_H_PROTO1 to + __CORRECT_ISO_CPP_MATH_H_PROTO. + + * doc/xml/manual/configure.xml (Configure, --enable-libstdcxx-threads): + Remove Solaris 8 reference. + + * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc: + Don't xfail on *-*-solaris2.8. + * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc: + Likewise. + * testsuite/ext/enc_filebuf/char/13598.cc: Don't xfail on + *-*-solaris2.8. + +2012-03-14 Rainer Orth + + * configure.host (irix6.5*): Remove. + * config/os/irix: Remove. + * config/io/basic_file_stdio.cc (__basic_file::showmanyc()) + [_GLIBCXX_FIONREAD_TAKES_OFF_T]: Remove. + + * doc/xml/faq.xml: Remove IRIX reference. + * doc/xml/manual/using.xml (Finding Dynamic or Shared Libraries): + Remove IRIX example. + + * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: + Remove mips-sgi-irix6* handling. + * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. + * testsuite/21_strings/basic_string/pthread18185.cc: Likewise. + * testsuite/21_strings/basic_string/pthread4.cc: Likewise. + * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise. + * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise. + * testsuite/23_containers/list/pthread1.cc: Likewise. + * testsuite/23_containers/list/pthread5.cc: Likewise. + * testsuite/23_containers/map/pthread6.cc: Likewise. + * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise. + * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise. + * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise. + * testsuite/30_threads/async/42819.cc: Likewise. + * testsuite/30_threads/async/49668.cc: Likewise. + * testsuite/30_threads/async/any.cc: Likewise. + * testsuite/30_threads/async/async.cc: Likewise. + * testsuite/30_threads/async/launch.cc: Likewise. + * testsuite/30_threads/async/sync.cc: Likewise. + * testsuite/30_threads/call_once/39909.cc: Likewise. + * testsuite/30_threads/call_once/49668.cc: Likewise. + * testsuite/30_threads/call_once/call_once1.cc: Likewise. + * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. + * testsuite/30_threads/condition_variable/members/1.cc: Likewise. + * testsuite/30_threads/condition_variable/members/2.cc: Likewise. + * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: + Likewise. + * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. + * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. + * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. + * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. + * testsuite/30_threads/future/cons/move.cc: Likewise. + * testsuite/30_threads/future/members/45133.cc: Likewise. + * testsuite/30_threads/future/members/get.cc: Likewise. + * testsuite/30_threads/future/members/get2.cc: Likewise. + * testsuite/30_threads/future/members/share.cc: Likewise. + * testsuite/30_threads/future/members/valid.cc: Likewise. + * testsuite/30_threads/future/members/wait.cc: Likewise. + * testsuite/30_threads/future/members/wait_for.cc: Likewise. + * testsuite/30_threads/future/members/wait_until.cc: Likewise. + * testsuite/30_threads/lock/1.cc: Likewise. + * testsuite/30_threads/lock/2.cc: Likewise. + * testsuite/30_threads/lock/3.cc: Likewise. + * testsuite/30_threads/lock/4.cc: Likewise. + * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. + * testsuite/30_threads/mutex/cons/1.cc: Likewise. + * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. + * testsuite/30_threads/mutex/lock/1.cc: Likewise. + * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. + * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/packaged_task/49668.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. + * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. + * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. + * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. + * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. + * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. + * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. + * testsuite/30_threads/promise/cons/1.cc: Likewise. + * testsuite/30_threads/promise/cons/alloc.cc: Likewise. + * testsuite/30_threads/promise/cons/move.cc: Likewise. + * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. + * testsuite/30_threads/promise/members/get_future.cc: Likewise. + * testsuite/30_threads/promise/members/get_future2.cc: Likewise. + * testsuite/30_threads/promise/members/set_exception.cc: Likewise. + * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. + * testsuite/30_threads/promise/members/set_value.cc: Likewise. + * testsuite/30_threads/promise/members/set_value2.cc: Likewise. + * testsuite/30_threads/promise/members/set_value3.cc: Likewise. + * testsuite/30_threads/promise/members/swap.cc: Likewise. + * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: + Likewise. + * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: + Likewise. + * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/shared_future/cons/move.cc: Likewise. + * testsuite/30_threads/shared_future/members/45133.cc: Likewise. + * testsuite/30_threads/shared_future/members/get.cc: Likewise. + * testsuite/30_threads/shared_future/members/get2.cc: Likewise. + * testsuite/30_threads/shared_future/members/valid.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. + * testsuite/30_threads/this_thread/1.cc: Likewise. + * testsuite/30_threads/this_thread/2.cc: Likewise. + * testsuite/30_threads/this_thread/3.cc: Likewise. + * testsuite/30_threads/this_thread/4.cc: Likewise. + * testsuite/30_threads/thread/cons/1.cc: Likewise. + * testsuite/30_threads/thread/cons/2.cc: Likewise. + * testsuite/30_threads/thread/cons/3.cc: Likewise. + * testsuite/30_threads/thread/cons/4.cc: Likewise. + * testsuite/30_threads/thread/cons/49668.cc: Likewise. + * testsuite/30_threads/thread/cons/5.cc: Likewise. + * testsuite/30_threads/thread/cons/6.cc: Likewise. + * testsuite/30_threads/thread/cons/7.cc: Likewise. + * testsuite/30_threads/thread/cons/8.cc: Likewise. + * testsuite/30_threads/thread/cons/9.cc: Likewise. + * testsuite/30_threads/thread/cons/moveable.cc: Likewise. + * testsuite/30_threads/thread/members/1.cc: Likewise. + * testsuite/30_threads/thread/members/2.cc: Likewise. + * testsuite/30_threads/thread/members/3.cc: Likewise. + * testsuite/30_threads/thread/members/4.cc: Likewise. + * testsuite/30_threads/thread/members/5.cc: Likewise. + * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise. + * testsuite/30_threads/thread/native_handle/typesizes.cc: Likewise. + * testsuite/30_threads/thread/swap/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. + * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. + * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/try_lock/1.cc: Likewise. + * testsuite/30_threads/try_lock/2.cc: Likewise. + * testsuite/30_threads/try_lock/3.cc: Likewise. + * testsuite/30_threads/try_lock/4.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. + * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. + * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. + * testsuite/ext/rope/pthread7-rope.cc: Likewise. + * testsuite/tr1/2_general_utilities/shared_ptr/thread/ + default_weaktoshared.cc: Likewise. + * testsuite/tr1/2_general_utilities/shared_ptr/thread/ + mutex_weaktoshared.cc: Likewise. + + * testsuite/23_containers/vector/capacity/resize/1.cc: Remove + dg-options for mips*-*-irix6*. + + * testsuite/27_io/ios_base/storage/1.cc: Likewise. + * testsuite/27_io/ios_base/storage/2.cc: Likewise. + * testsuite/27_io/ios_base/storage/3.cc: Likewise. + + * testsuite/lib/libstdc++.exp (v3-build_support): Remove IRIX 6 + workaround. + +2012-03-14 Paolo Carlini + + * include/bits/forward_list.h: Fix comments. + +2012-03-13 Terry Guo + + * testsuite/Makefile.in (TEST_GCC_EXEC_PREFIX): New. + +2012-03-12 Rainer Orth + + * configure.host: Remove osf* handling. + * config/os/osf: Remove. + * doc/xml/manual/using.xml: Remove OSF reference. + + * testsuite/18_support/pthread_guard.cc: Remove alpha*-*-osf* handling. + * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise. + * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. + * testsuite/21_strings/basic_string/pthread18185.cc: Likewise. + * testsuite/21_strings/basic_string/pthread4.cc: Likewise. + * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise. + * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise. + * testsuite/23_containers/list/pthread1.cc: Likewise. + * testsuite/23_containers/list/pthread5.cc: Likewise. + * testsuite/23_containers/map/pthread6.cc: Likewise. + * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise. + * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise. + * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise. + * testsuite/30_threads/async/42819.cc: Likewise. + * testsuite/30_threads/async/49668.cc: Likewise. + * testsuite/30_threads/async/any.cc: Likewise. + * testsuite/30_threads/async/async.cc: Likewise. + * testsuite/30_threads/async/launch.cc: Likewise. + * testsuite/30_threads/async/sync.cc: Likewise. + * testsuite/30_threads/call_once/39909.cc: Likewise. + * testsuite/30_threads/call_once/49668.cc: Likewise. + * testsuite/30_threads/call_once/call_once1.cc: Likewise. + * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. + * testsuite/30_threads/condition_variable/members/1.cc: Likewise. + * testsuite/30_threads/condition_variable/members/2.cc: Likewise. + * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: + Likewise. + * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. + * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. + * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. + * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. + * testsuite/30_threads/future/cons/move.cc: Likewise. + * testsuite/30_threads/future/members/45133.cc: Likewise. + * testsuite/30_threads/future/members/get.cc: Likewise. + * testsuite/30_threads/future/members/get2.cc: Likewise. + * testsuite/30_threads/future/members/share.cc: Likewise. + * testsuite/30_threads/future/members/valid.cc: Likewise. + * testsuite/30_threads/future/members/wait.cc: Likewise. + * testsuite/30_threads/future/members/wait_for.cc: Likewise. + * testsuite/30_threads/future/members/wait_until.cc: Likewise. + * testsuite/30_threads/lock/1.cc: Likewise. + * testsuite/30_threads/lock/2.cc: Likewise. + * testsuite/30_threads/lock/3.cc: Likewise. + * testsuite/30_threads/lock/4.cc: Likewise. + * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. + * testsuite/30_threads/mutex/cons/1.cc: Likewise. + * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. + * testsuite/30_threads/mutex/lock/1.cc: Likewise. + * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. + * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/packaged_task/49668.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. + * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. + * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. + * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. + * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. + * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. + * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. + * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. + * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. + * testsuite/30_threads/promise/cons/1.cc: Likewise. + * testsuite/30_threads/promise/cons/alloc.cc: Likewise. + * testsuite/30_threads/promise/cons/move.cc: Likewise. + * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. + * testsuite/30_threads/promise/members/get_future.cc: Likewise. + * testsuite/30_threads/promise/members/get_future2.cc: Likewise. + * testsuite/30_threads/promise/members/set_exception.cc: Likewise. + * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. + * testsuite/30_threads/promise/members/set_value.cc: Likewise. + * testsuite/30_threads/promise/members/set_value2.cc: Likewise. + * testsuite/30_threads/promise/members/set_value3.cc: Likewise. + * testsuite/30_threads/promise/members/swap.cc: Likewise. + * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: + Likewise. + * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: + Likewise. + * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: + Likewise. + * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/shared_future/cons/move.cc: Likewise. + * testsuite/30_threads/shared_future/members/45133.cc: Likewise. + * testsuite/30_threads/shared_future/members/get.cc: Likewise. + * testsuite/30_threads/shared_future/members/get2.cc: Likewise. + * testsuite/30_threads/shared_future/members/valid.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. + * testsuite/30_threads/this_thread/1.cc: Likewise. + * testsuite/30_threads/this_thread/2.cc: Likewise. + * testsuite/30_threads/this_thread/3.cc: Likewise. + * testsuite/30_threads/this_thread/4.cc: Likewise. + * testsuite/30_threads/thread/cons/1.cc: Likewise. + * testsuite/30_threads/thread/cons/2.cc: Likewise. + * testsuite/30_threads/thread/cons/3.cc: Likewise. + * testsuite/30_threads/thread/cons/4.cc: Likewise. + * testsuite/30_threads/thread/cons/49668.cc: Likewise. + * testsuite/30_threads/thread/cons/5.cc: Likewise. + * testsuite/30_threads/thread/cons/6.cc: Likewise. + * testsuite/30_threads/thread/cons/7.cc: Likewise. + * testsuite/30_threads/thread/cons/8.cc: Likewise. + * testsuite/30_threads/thread/cons/9.cc: Likewise. + * testsuite/30_threads/thread/cons/moveable.cc: Likewise. + * testsuite/30_threads/thread/members/1.cc: Likewise. + * testsuite/30_threads/thread/members/2.cc: Likewise. + * testsuite/30_threads/thread/members/3.cc: Likewise. + * testsuite/30_threads/thread/members/4.cc: Likewise. + * testsuite/30_threads/thread/members/5.cc: Likewise. + * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise. + * testsuite/30_threads/thread/swap/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. + * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. + * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. + * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/try_lock/1.cc: Likewise. + * testsuite/30_threads/try_lock/2.cc: Likewise. + * testsuite/30_threads/try_lock/3.cc: Likewise. + * testsuite/30_threads/try_lock/4.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. + * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. + * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. + * testsuite/ext/rope/pthread7-rope.cc: Likewise. + * testsuite/tr1/2_general_utilities/shared_ptr/thread/ + default_weaktoshared.cc: Likewise. + * testsuite/tr1/2_general_utilities/shared_ptr/thread/ + mutex_weaktoshared.cc: Likewise. + +2012-03-12 Paolo Carlini + + PR libstdc++/52562 + * libsupc++/typeinfo (type_info::name, before, operator==, + operator!=): Mark noexcept in C++11 mode. + * libsupc++/tinfo.cc (type_info::operator==): Adjust. + * libsupc++/tinfo2.cc (type_info::before): Likewise. + * testsuite/18_support/type_info/52562.cc: New. + +2012-03-10 John David Anglin + + * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Remove TLS + symbols added in last change. + + PR libstdc++/52456 + * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update. + +2012-03-09 Andreas Schwab + + * config/locale/gnu/monetary_members.cc + (moneypunct::_M_initialize_moneypunct): Throw caught + exception again. + (moneypunct::_M_initialize_moneypunct): Likewise. + * testsuite/22_locale/locale/cons/12352.cc: Also test en_US + locale. + +2012-03-09 Paolo Carlini + + * include/debug/formatter.h (enum _Debug_msg_id): Add + __msg_self_move_assign. + * include/debug/macros.h (__glibcxx_check_self_move_assign): Add. + * src/c++11/debug.cc (_S_debug_messages): Update. + * include/debug/safe_iterator.h (_Safe_iterator<>::operator= + (_Safe_iterator&&)): Add check for self move assignment. + * include/debug/set.h: Likewise. + * include/debug/unordered_map: Likewise. + * include/debug/multiset.h: Likewise. + * include/debug/forward_list: Likewise. + * include/debug/unordered_set: Likewise. + * include/debug/vector: Likewise. + * include/debug/map.h: Likewise. + * include/debug/deque: Likewise. + * include/debug/string: Likewise. + * include/debug/list: Likewise. + * include/debug/multimap.h: Likewise. + * testsuite/21_strings/debug/self_move_assign_neg.cc: New. + * testsuite/21_strings/debug/iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/unordered_map/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/unordered_map/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/multimap/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/multimap/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/set/debug/self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/set/debug/iterator_self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/unordered_multimap/debug/ + self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/unordered_multimap/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/forward_list/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/forward_list/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/unordered_set/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/unordered_set/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/vector/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/vector/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/deque/debug/self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/deque/debug/iterator_self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/multiset/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/multiset/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/list/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/list/debug/iterator_self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/unordered_multiset/debug/ + self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/unordered_multiset/debug/ + iterator_self_move_assign_neg.cc: Likewise. + * testsuite/23_containers/map/debug/self_move_assign_neg.cc: + Likewise. + * testsuite/23_containers/map/debug/iterator_self_move_assign_neg.cc: + Likewise. + +2012-03-08 Benjamin Kosnik + + * doc/doxygen/user.cfg.in: Update to Doxygen 1.8.0. + * include/bits/locale_facets.h: Adjust markup to avoid warnings. + * include/ext/pb_ds/assoc_container.hpp: Same. + * include/ext/pb_ds/priority_queue.hpp: Same. + * include/std/fstream: Same. + * include/std/ratio: Same. + * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust line + numbers. + * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Same. + +2012-03-08 Jonathan Wakely + + PR libstdc++/52433 + * include/debug/safe_iterator.h (_Safe_iterator): Add debug checks + to move constructor and move assignment operator. + +2012-03-05 Paolo Carlini + + * include/bits/stl_algobase.h (iter_swap): In C++11 mode simply + call swap. + * include/bits/stl_bvector.h (swap(_Bit_reference, + _Bit_reference), swap(_Bit_reference, bool&), + swap(bool&, _Bit_reference)): Add. + * testsuite/23_containers/vector/bool/swap.cc: New. + +2012-03-04 Paolo Carlini + Jonathan Wakely + + PR libstdc++/43813 + * include/bits/stl_iterator_base_types.h (_RequireInputIter): New. + * include/ext/vstring.h (__versa_string<>::__versa_string + (_InputIterator, _InputIterator, const _Alloc&), + __versa_string<>::append(_InputIterator, _InputIterator), + __versa_string<>::assign(_InputIterator, _InputIterator), + __versa_string<>::insert(iterator, _InputIterator, + _InputIterator), __versa_string<>::replace(iterator, iterator, + _InputIterator, _InputIterator)): Use it. + * include/bits/stl_list.h (list<>::list(_InputIterator, + _InputIterator, const allocator_type&), list<>::assign(_InputIterator, + _InputIterator), list<>::insert(iterator, _InputIterator, + _InputIterator)): Likewise. + * include/bits/stl_vector.h (vector<>::vector(_InputIterator, + _InputIterator, const allocator_type&), vector<>::assign(_InputIterator, + _InputIterator), vectort<>::insert(iterator, _InputIterator, + _InputIterator)): Likewise. + * include/bits/stl_deque.h (deque<>::deque(_InputIterator, + _InputIterator, const allocator_type&), deque<>::deque(_InputIterator, + _InputIterator), deque<>::insert(iterator, _InputIterator, + _InputIterator)): Likewise. + * include/bits/stl_bvector.h (vector<>::vector(_InputIterator, + _InputIterator, const allocator_type&), vector<>::deque(_InputIterator, + _InputIterator), vector<>::insert(iterator, _InputIterator, + _InputIterator)): Likewise. + * include/bits/forward_list.h (forward_list<>::forward_list + (_InputIterator, _InputIterator, const allocator_type&), + forward_list<>::assign(_InputIterator, _InputIterator), + forward_list<>::insert_after(const_iterator, _InputIterator, + _InputIterator)): Likewise. + (forward_list<>::_M_initialize_dispatch(,, __true_type): Remove. + (forward_list<>::_M_range_initialize): Add, adjust everywhere. + * include/bits/forward_list.tcc: Adjust. + * include/debug/forward_list: Adjust. + * include/debug/vector: Likewise. + * include/debug/deque: Likewise. + * include/debug/list: Likewise. + * testsuite/ext/vstring/requirements/do_the_right_thing.cc: New. + * testsuite/23_containers/forward_list/requirements/ + do_the_right_thing.cc: Likewise. + * testsuite/23_containers/vector/requirements/ + do_the_right_thing.cc: Likewise. + * testsuite/23_containers/deque/requirements/ + do_the_right_thing.cc: Likewise. + * testsuite/23_containers/list/requirements/ + do_the_right_thing.cc: Likewise. + * testsuite/23_containers/forward_list/requirements/dr438/ + assign_neg.cc: Adjust dg-error line number. + * testsuite/23_containers/forward_list/requirements/dr438/ + insert_neg.cc: Likewise. + * testsuite/23_containers/forward_list/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/forward_list/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + assign_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + insert_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/ + assign_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/ + insert_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + assign_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + insert_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_2_neg.cc: Likewise. + +2012-03-04 Jonathan Wakely + + PR libstdc++/52433 + * include/debug/safe_iterator.h (_Safe_iterator): Add move + constructor and move assignment operator. + * testsuite/23_containers/vector/debug/52433.cc: New. + +2012-03-02 Paolo Carlini + + * include/std/limits (numeric_limits): Fix returns per C++11. + * testsuite/18_support/numeric_limits/primary.cc: New. + +2012-03-02 Benjamin Kosnik + + * include/c_global/cstdio: Remove extraneous extern. + * include/c_std/cstdio: Same. + +2012-03-02 Rainer Orth + + * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate. + * config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise. + * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise. + * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise. + * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise. + +2012-03-01 Benjamin Kosnik + Ramana Radhakrishnan + + PR libstdc++/51785 + * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New. + * configure.ac: Call it. + * configure: Regenerate. + * config.h.in: Same. + * config/os/gnu-linux/os_defines.h: Conditionally undefine + _GLIBCXX_HAVE_GETS. + * include/c_global/cstdio: Conditionally declare deprecated gets. + * include/c_std/cstdio: Same. + +2012-03-01 Michael Spertus + + * include/tr2/type_traits (typelist): To __reflection_typelist. + (first, rest, empty): Remove. + +2012-03-01 Benjamin Kosnik + + * testsuite/Makefile.am (CLEANFILES): Add *.gdb. + * testsuite/Makefile.in: Regenerate. + +2012-02-29 H.J. Lu + + * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update. + +2012-02-28 Benjamin Kosnik + + PR libstdc++/52191 + * testsuite/util/testsuite_abi.cc (compare_symbols): Check new + symbols added into the latest version. Mark tls entities as + undesignated. + +2012-02-28 Jakub Jelinek + + PR bootstrap/52414 + * src/Makefile.am (libstdc++-symbols.ver): Only remove comment lines + if they are at the beginning of lines (with optional whitespace before + #). + * src/Makefile.in: Regenerated. + +2012-02-27 Jakub Jelinek + + * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. + * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: + Likewise. + * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise. + * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise. + +2012-02-27 Rainer Orth + + PR libstdc++/52188 + * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Remove symvers_renaming. + Remove ENABLE_SYMVERS_SOL2. + * configure: Regenerate. + * src/Makefile.am [ENABLE_SYMVERS] (libstdc++-symbols.ver): + Postprocess mapfile. + [ENABLE_SYMVERS_GNU]: Remove ENABLE_SYMVERS_SOL2 handling. + * src/Makefile.in: Regenerate. + + * config/abi/pre/gnu.ver (GLIBCXX_3.4.5) [!__sun__ && !__svr4__]: + Don't export + _ZNSt19istreambuf_iteratorI[cw]St11char_traitsI[cw]EEppEv. + +2012-02-25 John David Anglin + + PR testsuite/52201 + * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: + Require atomic builtins. + * testsuite/29_atomics/atomic/operators/51811.cc: Likewise. + +2012-02-23 Jason Merrill + + * include/bits/locale_facets.h (class num_get): Undo reordering of + do_get virtual functions. + +2012-02-14 Edward Smith-Rowland <3dw4rd@verizon.net> + + * testsuite/26_numerics/random/ + uniform_real_distribution/requirements/typedefs.cc: Check param_type. + * testsuite/26_numerics/random/ + piecewise_constant_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + chi_squared_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + normal_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + uniform_int_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + poisson_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + bernoulli_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + discrete_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + weibull_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + cauchy_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + negative_binomial_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + gamma_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + fisher_f_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + exponential_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + binomial_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + lognormal_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + extreme_value_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + piecewise_linear_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + student_t_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + geometric_distribution/requirements/typedefs.cc: Ditto. + +2012-02-21 Benjamin Kosnik + + PR libstdc++/50349 + * config/abi/pre/gnu.ver: Only one local. + * config/abi/pre/gnu-versioned-namespace.ver: Same. + +2012-02-21 Paolo Carlini + + PR libstdc++/52317 (cont) + * include/profile/unordered_map: Ad Library Exception comment. + * include/profile/set: Likewise. + * include/profile/base.h: Likewise. + * include/profile/impl/profiler_list_to_slist.h: Likewise. + * include/profile/impl/profiler_container_size.h: Likewise. + * include/profile/impl/profiler_vector_size.h: Likewise. + * include/profile/impl/profiler_hash_func.h: Likewise. + * include/profile/impl/profiler_trace.h: Likewise. + * include/profile/impl/profiler_list_to_vector.h: Likewise. + * include/profile/impl/profiler_vector_to_list.h: Likewise. + * include/profile/impl/profiler.h: Likewise. + * include/profile/impl/profiler_state.h: Likewise. + * include/profile/impl/profiler_map_to_unordered_map.h: Likewise. + * include/profile/impl/profiler_algos.h: Likewise. + * include/profile/impl/profiler_hashtable_size.h: Likewise. + * include/profile/impl/profiler_node.h: Likewise. + * include/profile/vector: Likewise. + * include/profile/unordered_set: Likewise. + * include/profile/map.h: Likewise. + * include/profile/map: Likewise. + +2012-02-21 Paolo Carlini + + PR libstdc++/52317 + * python/Makefile.am: Update boilerplate license text to GPLv3. + * include/profile/unordered_map: Likewise. + * include/profile/set: Likewise. + * include/profile/base.h: Likewise. + * include/profile/impl/profiler_list_to_slist.h: Likewise. + * include/profile/impl/profiler_container_size.h: Likewise. + * include/profile/impl/profiler_vector_size.h: Likewise. + * include/profile/impl/profiler_hash_func.h: Likewise. + * include/profile/impl/profiler_trace.h: Likewise. + * include/profile/impl/profiler_list_to_vector.h: Likewise. + * include/profile/impl/profiler_vector_to_list.h: Likewise. + * include/profile/impl/profiler.h: Likewise. + * include/profile/impl/profiler_state.h: Likewise. + * include/profile/impl/profiler_map_to_unordered_map.h: Likewise. + * include/profile/impl/profiler_algos.h: Likewise. + * include/profile/impl/profiler_hashtable_size.h: Likewise. + * include/profile/impl/profiler_node.h: Likewise. + * include/profile/vector: Likewise. + * include/profile/unordered_set: Likewise. + * include/profile/map.h: Likewise. + * include/profile/map: Likewise. + * testsuite/21_strings/basic_string/numeric_conversions/ + wchar_t/dr1261.cc: Likewise. + * testsuite/21_strings/basic_string/numeric_conversions/ + char/dr1261.cc: Likewise. + * testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise. + +2012-02-20 Paolo Carlini + + PR libstdc++/52241 + * src/c++98/tree.cc (local_Rb_tree_increment, + local_Rb_tree_decrement): Add. + (_Rb_tree_increment(const _Rb_tree_node_base*), + _Rb_tree_decrement(const _Rb_tree_node_base*)): Use the latter. + (_Rb_tree_increment(_Rb_tree_node_base*), + _Rb_tree_decrement(_Rb_tree_node_base*)): New. + +2012-02-20 Paolo Carlini + + PR libstdc++/52309 + * include/bits/hashtable_policy.h (_Equality_base<, true,>:: + _M_equal(const _Hashtable&)): Compare values with operator==. + * testsuite/23_containers/unordered_set/operators/52309.cc: New. + +2012-02-17 Benjamin Kosnik + + PR libstdc++/51798 continued. + * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Grep for + __atomic_, not __sync. + * configure: Regenerated. + +2012-02-17 Benjamin Kosnik + + PR libstdc++/47058 + * acinclude.m4 (GLIBCXX_ENABLE_WERROR): New. + (GLIBCXX_EXPORT_FLAGS): Add -Wabi to WARN_FLAGS + * configure.ac: Use it. + * fragment.am: Set WERROR_FLAG conditionally on --disable-werror. + * configure: Regenerate. + * python/Makefile.in: Same. + * Makefile.in: Same. + * doc/Makefile.in: Same. + * include/Makefile.in: Same. + * po/Makefile.in: Same. + * python/Makefile.in: Same. + * src/Makefile.in: Same. + * src/c++11/Makefile.in: Same. + * src/c++98/Makefile.in: Same. + * testsuite/Makefile.in: Same. + +2012-02-17 Rainer Orth + + PR libstdc++/52189 + * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Handle + --enable-libstdcxx-threads. + Disable on Solaris 8/9 with symbol versioning. + * configure.ac (GLIBCXX_CHECK_GTHREADS): Move after + GLIBCXX_ENABLE_SYMVERS. + * configure: Regenerate. + * doc/xml/manual/configure.xml (--enable-libstdcxx-threads): Explain. + +2012-02-15 DJ Delorie + + * src/c++98/locale.cc (locale::facet::_S_get_c_locale): Fix typo. + +2012-02-15 Benjamin Kosnik + + PR libstdc++/51368 + * acinclude.m4 (GLIBCXX_ENABLE_PYTHON): New. + * configure.ac: Use it. + * python/Makefile.am: Same. + * configure: Regenerate. + * python/Makefile.in: Regenerate. + * Makefile.in: Same. + * doc/Makefile.in: Same. + * include/Makefile.in: Same. + * po/Makefile.in: Same. + * src/Makefile.in: Same. + * src/c++11/Makefile.in: Same. + * src/c++98/Makefile.in: Same. + * testsuite/Makefile.in: Same. + +2012-02-14 Jonathan Wakely + + * 30_threads/thread/native_handle/typesizes.cc: Do not run on cygwin. + +2012-02-14 Tom Tromey + + * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add new + tests. + * python/libstdcxx/v6/printers.py (Tr1HashtableIterator.__init__): + Rewrite. + (Tr1HashtableIterator.update): Remove. + (Tr1HashtableIterator.next): Rewrite. + +2012-02-13 Benjamin Kosnik + + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same. + +2012-02-13 Richard Henderson + + PR libstdc++/51798 continued. + * include/bits/shared_ptr_base.h + (_Sp_counted_base<_S_atomic>::_M_add_ref_lock): Hoist initial load + outside compare_exchange loop. + * include/tr1/shared_ptr.h: Same. + * include/parallel/compatibility.h (__compare_and_swap_32): Use strong + version of compare_exchange. + (__compare_and_swap_64): Same. + * include/profile/impl/profiler_state.h (__gnu_profile::__turn): Same. + * libsupc++/guard.cc (__cxa_guard_acquire): Same. + +2012-02-10 Benjamin Kosnik + Jonathan Wakely + + PR libstdc++/51798 continued. + * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Use __atomic_* + builtins instead of __sync_* builtins for atomic functionality. + * include/bits/shared_ptr_base.h: Same. + * include/parallel/compatibility.h: Same. + * include/profile/impl/profiler_state.h: Same. + * include/tr1/shared_ptr.h: Same. + * libsupc++/eh_ptr.cc: Same. + * libsupc++/eh_throw.cc: Same. + * libsupc++/eh_tm.cc: Same. + * libsupc++/guard.cc: Same. + * configure: Regenerated. + * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same. + +2012-02-10 Rainer Orth + + PR libstdc++/51296 + * config/os/osf/ctype_base.h, + config/os/osf/ctype_configure_char.cc, + config/os/osf/ctype_inline.h, config/os/osf/error_constants.h: + Copy from config/os/generic. + * config/os/osf/os_defines.h: Likewise. + (_GTHREAD_USE_MUTEX_INIT_FUNC, _GTHREAD_USE_COND_INIT_FUNC): + Define. + * configure.host : Use os/osf for os_include_dir. + +2012-02-10 Uros Bizjak + + * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Regenerated. + +2012-02-09 Jonathan Wakely + + * doc/xml/manual/documentation_hacking.xml: Fix invalid attribute. + +2012-02-08 Jonathan Wakely + + * doc/xml/manual/status_cxx2011.xml: Update C++11 status table. + +2012-02-07 Benjamin Kosnik + + * doc/doxygen/user.cfg.in: Update to doxygen 1.7.6.1. + * doc/xml/manual/documentation_hacking.xml: Update. + +2012-02-07 Jonathan Wakely + + * testsuite/30_threads/call_once/39909.cc: Remove duplicate target + selector. + * testsuite/30_threads/call_once/49668.cc: Likewise. + * testsuite/30_threads/call_once/call_once1.cc: Likewise. + * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. + * testsuite/30_threads/mutex/cons/1.cc: Likewise. + * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. + * testsuite/30_threads/mutex/lock/1.cc: Likewise. + * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. + * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. + * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. + * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. + * testsuite/30_threads/mutex/unlock/1.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. + * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. + * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. + * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. + * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. + +2012-02-07 Jonathan Wakely + + PR libstdc++/51296 + * include/std/mutex (__mutex_base::~__mutex_base): Declare noexcept. + * src/c++11/condition_variable.cc (condition_variable): Use macro for + initializer function. + + PR libstdc++/51906 + * config/os/bsd/darwin/os_defines.h: Disable static initializer for + recursive mutexes. + +2012-02-06 Jonathan Wakely + + PR libstdc++/52128 + * src/c++11/future.cc: Add explicit instantiation. + +2012-02-06 François Dumont + + * include/debug/safe_iterator.h + (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive + creation of a _Safe_iterator instance to do the check. + +2012-02-05 Jonathan Wakely + + PR libstdc++/52104 + * include/std/future (__future_base::_Async_state_common): Define + destructor inline for targets without TLS. + * src/c++11/future.cc (__future_base::_Async_state_common): Only + define destructor for TLS targets. + +2012-02-05 Jonathan Wakely + + PR libstdc++/51956 + * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to... + (SharedPointerPrinter): This. Also show weak count. + * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New. + +2012-02-05 Jonathan Wakely + + * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to + PASS instead of XFAIL. + +2012-02-05 Jeffrey Yasskin + Paolo Carlini + + PR libstdc++/52119 + * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior. + +2012-02-03 Benjamin Kosnik + + PR libstdc++/49445 + * testsuite/29_atomics/atomic/cons/49445.cc: Add. + +2012-02-03 Benjamin Kosnik + + PR libstdc++/51811 + * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets. + * testsuite/29_atomics/atomic/operators/51811.cc: New. + * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New. + +2012-02-03 Jakub Jelinek + + * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. + * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: + Likewise. + * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise. + * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise. + * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise. + +2012-02-02 Benjamin Kosnik + + PR libstdc++/52068 + * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES, + libc__11_la_SOURCES): Remove. + * src/c++11/Makefile.in: Regenerate. + * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES, + libc__98_la_SOURCES): Remove. + * src/c++98/Makefile.in: Regenerate. + +2012-02-01 Jonathan Wakely + + PR libstdc++/49204 + * include/std/future (__future_base::_State_base::wait()): Use lambda + expression for predicate and remove redundant test. + (__future_base::_State_base::wait_for()): Return future_status and + use lambda expression for predicate. + (__future_base::_State_base::wait_until()): Likewise. + (__basic_future::wait_for(), __basic_future::wait_until()): Likewise. + (__future_base::_Async_state): Replace with _Async_state_common + class for non-dependent functionality and _Async_state_impl class + template for dependent functionality. + (__future_base::_Async_state_common::_M_join): Serialize attempts to + join thread. + (__future_base::_Async_state_common::_M_run_deferred): Join. + (__future_base::_Async_state::_M_do_run): Replace with lambda. + * src/c++11/future.cc (__future_base::_Async_state_common): Define + destructor, so key function is in the library. + * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common. + * testsuite/30_threads/packaged_task/members/get_future.cc: Expect + future_status return instead of bool. + * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. + * testsuite/30_threads/future/members/wait_until.cc: Likewise. + * testsuite/30_threads/future/members/wait_for.cc: Likewise. + * testsuite/30_threads/promise/members/set_value2.cc: Likewise. + * testsuite/30_threads/promise/members/set_value3.cc: Likewise. + * testsuite/30_threads/promise/members/swap.cc: Likewise. + +2012-01-30 Tom Tromey + + PR libstdc++/51649: + * testsuite/libstdc++-prettyprinters/debug.cc: New file. + * testsuite/lib/gdb-test.exp (regexp-test): New proc. + (note-test): Update. + (gdb-test): Handle regexp tests. Add some logging. + * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0. + (placeholder, use): Remove. + (main): Add tests for deque, list, map, and set iterators. Add + tests for slist and slist iterator. + * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7 + namespace. + * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use + the type's _Node typedef. + (StdListIteratorPrinter.to_string): Change how node type is + computed. + (StdSlistPrinter.children): Use the type's _Node typedef. + (StdSlistIteratorPrinter.to_string): Likewise. + (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type + typedef. + (StdMapPrinter.children): Change how the node's type is computed. + (StdSetPrinter.children): Likewise. + (StdForwardListPrinter.children): Use the type's _Node typedef. + (Printer.add_version): New method. + (Printer.add_container): New method. + (build_libstdcxx_dictionary): Handle __7 and __cxx1998 + namespaces. + (find_type): New function. + +2012-01-27 Paolo Carlini + + PR libstdc++/51795 + * include/bits/random.h (linear_congruential_generator): Add + static_assert preventing instantiation for values of 'a' and 'm' + currently handled incorrectly by _Mod::__calc. + * include/bits/random.tcc (seed_seq::generate): Avoid unsafe + uses of _Mod::__calc. + +2012-01-27 Jakub Jelinek + + PR libstdc++/51798 + * config/cpu/generic/atomicity_builtins/atomicity.h + (__exchange_and_add, __atomic_add): Use __atomic_fetch_add + with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add. + * include/ext/atomicity.h (__exchange_and_add, __atomic_add): + Likewise. + +2011-01-27 Rafael Avila de Espindola + + * libsupc++/typeinfo: Correctly match #pragma GCC visibility + pop with #pragma GCC visibility push. + +2012-01-27 Benjamin Kosnik + Matthias Klose + + * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0. + * configure.in: Regenerated. + * src/Makefile.am (all-once, install-data-once): New rules. + (all-local, install-data-local): Use them. + (build-debug, install-debug): Tweak. + * src/Makefile.in: Regenerate. + +2012-01-27 Richard Henderson + + * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i + based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. + (ATOMIC_FLAG_INIT): Initialize with 0, not false. + (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL. + +2012-01-26 Jakub Jelinek + + PR bootstrap/51985 + * src/c++98/Makefile.am (libc__98_la_SOURCES, + libc__98convenience_la_SOURCES): Remove $(inst_sources). + * src/c++98/Makefile.in: Regenerated. + +2012-01-25 Richard Sandiford + + * testsuite/20_util/system_clock/1.cc: Add dg-require-time. + * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise. + * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise. + * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise. + * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add + dg-require-fileio. + * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise. + * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise. + * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise. + * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc: + Likewise. + * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise. + +2012-01-25 Matthias Klose + + * testsuite/30_threads/condition_variable_any/requirements: Remove + empty directory. + +2012-01-23 Benjamin Kosnik + + * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy. + * src/Makefile.in: Regenerate. + +2012-01-23 Benjamin Kosnik + + PR libstdc++/49829 + Add libc++98convenience.la, libc++11convenience.la. + * src/c++98: New directory. + * src/c++11: New directory. + * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11. + * configure: Regenerated. + * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS. + * Makefile.in: Regenerate. + * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for + -fno-implicit-templates. + * libsupc++/Makefile.in: Regenerate. + * src/Makefile.am (inst_sources): Move... C++11 files into + separate directory for libstdc++11convenience.la. Files are: + fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc). + (sources): Move C++11 files. Files are: compatibility-c++0x.cc, + compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc, + functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc, + system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc, + mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc. + (libstdc++convenience.la): Add new target. + (SUBDIRS): Add c++11, c++98. + * src/Makefile.in: Regenerate. + * src/c++11/Makefile.am: New. + * src/c++11/Makefile.in: Generate. + * src/c++98/Makefile.am: New, C++98 files. + * src/c++98/Makefile.in: Generate. + +2012-01-23 Rainer Orth + + libstdc++-v3: + * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on + 32-bit Solaris 10/x86. + * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise. + +2012-01-21 Jonathan Wakely + + PR libstdc++/50982 + * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors. + +2012-01-19 Jakub Jelinek + + PR libstdc++/51845 + * include/bits/hashtable.h + (_Hashtable<>::erase(const_iterator, const_iterator)): Also update + _M_buckets[__n_bkt] if __is_bucket_begin. + * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc: + New test. + +2012-01-18 Benjamin Kosnik + + * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting. + +2012-01-18 Benjamin Kosnik + + * configure.ac: Move epub checks... + * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use + test -f instead of AC_CHECK_FILES. + +2012-01-18 François Dumont + Roman Kononov + + PR libstdc++/51866 + * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)): + Do not keep a reference to a potentially moved instance. + * testsuite/23_containers/unordered_multiset/insert/51866.cc: New. + * testsuite/23_containers/unordered_multimap/insert/51866.cc: New. + +2012-01-17 Benjamin Kosnik + + * doc/html/*: Regenerate. + +2012-01-17 Benjamin Kosnik + + * configure.ac (BUILD_EPUB): Adjust for epub3. + * configure: Regenerate. + * Makefile.in: Same. + * doc/Makefile.am (stamp-epub-docbook): Update for epub3. + * doc/Makefile.in: Regenerate. + * include/Makefile.in: Same. + * libsupc++/Makefile.in: Same. + * po/Makefile.in: Same. + * python/Makefile.in: Same. + * src/Makefile.in: Same. + * testsuite/Makefile.in: Same. + + * doc/xml/manual/documentation_hacking.xml: Update. + +2012-01-17 Rainer Orth + + PR target/47852 + * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS. + +2012-01-14 Jonathan Wakely + + * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments. + +2012-01-13 François Dumont + + * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as + base class of ... + (_Hash_node, _Hash_node): ... those. + * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index + by _M_before_begin. Review implementation so that we do not need to + look for previous non-empty bucket when inserting nodes. + +2012-01-09 Kai Tietz + + PR libstc++/51673 part 2 + * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete + operators signature for LLP64 size_t, and adjusted signatures for + mt-allocator using size_t. + +2012-01-09 Benjamin Kosnik + + PR libstc++/51673 part 1 + * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols + with gnu.ver. + +2012-01-09 Benjamin Kosnik + + * fragment.am (WARN_CXXFLAGS): Add -Wabi. + * Makefile.in: Regenerate. + * doc/Makefile.in: Same. + * include/Makefile.in: Same. + * libsupc++/Makefile.in: Same. + * src/Makefile.in: Same. + * testsuite/Makefile.in: Same. + * po/Makefile.in: Same. + * python/Makefile.in: Same. + +2012-01-08 Jonathan Wakely + + * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add. + * testsuite/libstdc++-prettyprinters/cxx11.cc: New. + +2012-01-06 Jason Merrill + + * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust + expected demangling. + +2012-01-06 Jonathan Wakely + + PR libstdc++/51504 + * doc/xml/manual/debug.xml: Suggest using symbol interposition + to override symbols using annotation macros. + +2012-01-05 François Dumont + + * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()): + protected rather than private, use it... + * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here. + * testsuite/23_containers/unordered_set/observers.cc: New. + * testsuite/23_containers/unordered_multiset/observers.cc: New. + * testsuite/23_containers/unordered_map/observers.cc: New. + * testsuite/23_containers/unordered_multimap/observers.cc: New. + +2012-01-03 François Dumont + + * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more + specific _Hashtable_ebo_helper. Hide this implementation detail thanks + to private inheritance. + +2012-01-03 Paolo Carlini + + PR c++/51738 + * testsuite/23_containers/map/element_access/39901.cc: New. + +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.