1. 16 Oct, 2015 11 commits
    • tree.c (recompute_tree_invariant_for_addr_expr): Assert that the argument is an ADDR_EXPR. · f7bad97d
      	* tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
      	argument is an ADDR_EXPR.
      
      From-SVN: r228870
      Eric Botcazou committed
    • [multiple changes] · 872dae48
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* debug.adb: Document -gnatdQ switch.
      
      2015-10-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Analyze_Formal_Subprogram): Implement rule that
      	a formal abstract subprogram cannot have a null default: RM 12.6
      	(4 1.2).
      
      From-SVN: r228869
      Arnaud Charlet committed
    • sem_util.ads, [...]: Minor comment fixes. · 1bc619ef
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* sem_util.ads, sinput.ads, bcheck.adb: Minor comment fixes.
      
      From-SVN: r228868
      Bob Duff committed
    • [multiple changes] · 11352209
      2015-10-16  Javier Miranda  <miranda@adacore.com>
      
      	* inline.adb (Add_Inlined_Body): Ensure that
      	Analyze_Inlined_Bodies will be invoked after completing the
      	analysis of the current unit.
      
      2015-10-16  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Fix error
      	message for bad last bit position.
      	* sem_ch3.adb, sem_util.adb, sem_util.ads: Minor reformatting.
      
      2015-10-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb (Expand_N_Case_Statement): If expression is
      	compile-time known but does not obey a static predicate on
      	its type, replace the case statement with a raise statement,
      	as with other statically detected constraint violations.
      
      2015-10-16  Bob Duff  <duff@adacore.com>
      
      	* s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
      	Reinstate code.
      	* opt.ads: Minor typo.
      
      From-SVN: r228866
      Arnaud Charlet committed
    • sem_util.adb (Gather_Components): When gathering components of a nested variant... · 251b6a47
      2015-10-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Gather_Components): When gathering components
      	of a nested variant, the record type used in legality checks is
      	the enclosing record type.
      
      From-SVN: r228865
      Ed Schonberg committed
    • gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of… · 74e3c262
      gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build and get rid of force_gimple_operand_gsi.
      
      2015-10-16  Richard Biener  <rguenther@suse.de>
      
      	* gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
      	and get rid of force_gimple_operand_gsi.
      	(gimple_fold_builtin_memory_chk): Likewise.
      	(gimple_fold_builtin_stxcpy_chk): Likewise.
      	(rewrite_to_defined_overflow): Likewise.
      	(gimple_convert_to_ptrofftype): New function.
      	* gimple-fold.h (gimple_convert_to_ptrofftype): New overload,
      	declare.
      
      From-SVN: r228863
      Richard Biener committed
    • tree-nested.h (build_addr): Adjust prototype. · aa00059c
      2015-10-16  Richard Biener  <rguenther@suse.de>
      
      	* tree-nested.h (build_addr): Adjust prototype.
      	* tree-nested.c (build_addr): Remove context argument and use
      	mark_addressable.
      	(get_static_chain): Adjust calls to build_addr.
      	(convert_nl_goto_reference): Likewise.
      	(convert_tramp_reference_op): Likewise.
      	(finalize_nesting_tree_1): Likewise.
      	* value-prof.c (gimple_ic): Likewise.
      	* gimple-low.c (lower_builtin_setjmp): Likewise.
      	* tree-parloops.c (take_address_of): Likewise.
      	(create_call_for_reduction_1): Likewise.
      	* tree-profile.c (gimple_gen_interval_profiler): Likewise.
      	(gimple_gen_ic_func_profiler): Likewise.
      
      	fortran/
      	* trans-intrinsic.c (gfc_conv_intrinsic_lib_function): Adjust
      	calls to build_addr.
      	(gfc_conv_intrinsic_mod): Likewise.
      	(gfc_conv_intrinsic_ctime): Likewise.
      	(gfc_conv_intrinsic_fdate): Likewise.
      	(gfc_conv_intrinsic_ttynam): Likewise.
      	(gfc_conv_intrinsic_minmax_char): Likewise.
      	(gfc_conv_intrinsic_index_scan_verify): Likewise.
      	(gfc_conv_intrinsic_trim): Likewise.
      
      From-SVN: r228862
      Richard Biener committed
    • re PR c++/67926 (Using folding expressions in a constexpr context ice's) · 4856a1f0
      /cp
      2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/67926
      	* constexpr.c (potential_constant_expression_1): Handle
      	UNARY_LEFT_FOLD_EXPR, UNARY_RIGHT_FOLD_EXPR, BINARY_LEFT_FOLD_EXPR,
      	BINARY_RIGHT_FOLD_EXPR.
      
      /testsuite
      2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/67926
      	* g++.dg/cpp1z/fold-ice1.C: New.
      
      From-SVN: r228861
      Paolo Carlini committed
    • ipa-icf-gimple.c (func_checker::compare_operand): Compare only empty constructors. · 08a7f38f
      	* ipa-icf-gimple.c (func_checker::compare_operand): Compare only
      	empty constructors.
      
      From-SVN: r228860
      Jan Hubicka committed
    • Daily bump. · 498a904f
      From-SVN: r228858
      GCC Administrator committed
  2. 15 Oct, 2015 12 commits
  3. 14 Oct, 2015 17 commits
    • mips.h (MIPS_STACK_ALIGN): Implement using ROUND_UP macro. · 3a1d601a
      	* config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
      	ROUND_UP macro.
      	* config/mips/mips.c (mips_setup_incoming_varargs): Use
      	ROUND_DOWN to calculate off.
      	(mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
      	(mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
      	rounded_size.
      
      From-SVN: r228829
      Uros Bizjak committed
    • * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case. · 903eccd1
      From-SVN: r228828
      Eric Botcazou committed
    • htm.md (UNSPEC_HTM_FENCE): New. · 4c1f41e1
      	* config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
      	(tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
      	trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
      	(*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
      	*trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
      	(tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
      	trechkpt, treclaim, tsr, ttest): New define_expands.
      	* config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
      	__TM_FENCE__ for htm.
      	* doc/extend.texi: Update documentation for htm builtins.
      
      Co-Authored-By: Torvald Riegel <triegel@redhat.com>
      
      From-SVN: r228827
      Peter Bergner committed
    • re PR target/67967 (ICE in i386_pe_seh_unwind_emit) · a409ca75
      	PR target/67967
      	* config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
      	REG_CFA_EXPRESSION to aligned SSE stores.
      
      From-SVN: r228826
      Uros Bizjak committed
    • target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end to 0 when mapnum is 0. · 3837c6d6
      libgomp/
      	* target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
      	to 0 when mapnum is 0.
      
      Co-Authored-By: Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
      
      From-SVN: r228825
      Ilya Verbin committed
    • [PATCH] Fix accounting for num_threaded_edges · 41fd0dc6
      	* tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
      	num_threaded_edges for successful FSM threads too.
      
      From-SVN: r228822
      Jeff Law committed
    • [PATCH] Split ssa-dom-thread-2.c into separate files/tests · bb1125df
      	* gcc.dg/tree-ssa/ssa-dom-thread-2.c: Deleted.  The six functions
      	contained within have their own file/test now.
      	* gcc.dg/tree-ssa/ssa-dom-thread-2a.c: New test extracted from
      	ssa-dom-thread-2.c.  Tighten expected output slightly and comment
      	expectations a bit more.
      	* gcc.dg/tree-ssa/ssa-dom-thread-2b.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-dom-thread-2c.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-dom-thread-2d.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-dom-thread-2e.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-dom-thread-2f.c: Likewise.
      
      From-SVN: r228821
      Jeff Law committed
    • [PATCH] [PR testsuite/67959]Minor cleanup for ssa-thread-13.c · cb62081c
              PR testsuite/67959
              * gcc.dg/tree-ssa/ssa-thread-13.c: Avoid bitfield assumptions.
      
      From-SVN: r228819
      Jeff Law committed
    • reassoc-39.c: Use -g. · 0796dee8
      	* gcc.dg/tree-ssa/reassoc-39.c: Use -g.  Adjust dg-final.
      	(f6): New.
      	(f7): New.
      	(f8): New.
      	(f9): New.
      	(f10): New.
      	(f11): New.
      	(f12): New.
      	(f13): New.
      
      From-SVN: r228812
      Marek Polacek committed
    • tree-vectorizer.h (vect_is_simple_use): Remove unused parameters. · 81c40241
      2015-10-14  Richard Biener  <rguenther@suse.de>
      
      	* tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
      	(vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
      	(vect_get_vec_def_for_operand): Remove unused parameter.
      	* tree-vect-loop.c (get_initial_def_for_induction): Adjust.
      	(vect_create_epilog_for_reduction): Likewise.
      	(vectorizable_reduction): Likewise.
      	(vectorizable_live_operation): Likewise.
      	* tree-vect-patterns.c (type_conversion_p): Likewise.
      	(vect_recog_vector_vector_shift_pattern): Likewise.
      	(check_bool_pattern): Likewise.
      	* tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
      	(vect_analyze_slp_cost_1): Likewise.
      	* tree-vect-stmts.c (process_use): Likewise.
      	(vect_get_vec_def_for_operand): Do not handle reductions.
      	(vect_get_vec_defs): Adjust.
      	(vectorizable_mask_load_store): Likewise.
      	(vectorizable_call): Likewise.
      	(vectorizable_simd_clone_call): Likewise.
      	(vect_get_loop_based_defs): Likewise.
      	(vectorizable_conversion): Likewise.
      	(vectorizable_assignment): Likewise.
      	(vectorizable_shift): Likewise.
      	(vectorizable_operation): Likewise.
      	(vectorizable_store): Likewise.
      	(vectorizable_load): Likewise.
      	(vect_is_simple_cond): Likewise.
      	(vectorizable_condition): Likewise.
      	(vect_is_simple_use): Remove unused parameters.
      	(vect_is_simple_use_1): Adjust and rename.
      
      From-SVN: r228811
      Richard Biener committed
    • re PR tree-optimization/67915 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu) · c3bea076
      2015-10-14  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/67915
      	* match.pd: Handle comparisons of addresses of STRING_CSTs.
      	* gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
      	* tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
      	stmt folding in favor of GIMPLE one.
      
      	* gcc.dg/torture/pr67915.c: New testcase.
      
      From-SVN: r228810
      Richard Biener committed
    • re PR tree-optimization/67815 (Optimize const1 * copysign (const2, y) into… · 0155ad40
      re PR tree-optimization/67815 (Optimize const1 * copysign (const2, y) into copysign (const1 * const2, y) if const1 > 0 or -copysign (const1 * const2, y) if const1 < 0)
      
      	PR tree-optimization/67815
      	* tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
      	(reassociate_bb): Call it.
      
      	* gcc.dg/tree-ssa/reassoc-39.c: New test.
      	* gcc.dg/tree-ssa/reassoc-40.c: New test.
      	* gcc.dg/tree-ssa/reassoc-41.c: New test.
      
      From-SVN: r228809
      Marek Polacek committed
    • parse.c (decode_statement): Initialize M to MATCH_NO. · d5efd449
      2015-10-14  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
      
      	* parse.c (decode_statement): Initialize M to MATCH_NO.
      
      From-SVN: r228807
      Max Ostapenko committed
    • tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reset info at start. · ddf56386
      2015-10-14  Richard Biener  <rguenther@suse.de>
      
      	* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
      	Reset info at start.
      	(vect_analyze_group_access_1): Add debug print.
      	* tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
      	(vect_compute_single_scalar_iteration_cost): ... to this.
      	(vect_analyze_loop_2): Adjust.
      	* tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
      	* tree-vectorizer.h: ... here.
      	(add_stmt_info_to_vec): Remove.
      	* tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
      
      From-SVN: r228806
      Richard Biener committed
    • [gomp] Fix build for 32-bit targets with int != int32_t · ac8a1965
      libgomp/
      2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
      
      	* fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
      	Cast to int from int32_t.
      
      From-SVN: r228805
      Sebastian Huber committed
    • Fix "#pragma GCC pop_options" · 1aa5ba4e
      gcc/ChangeLog
      
      	* targhooks.c (default_target_option_pragma_parse): Do not warn if
      	called on behalf of "#pragma GCC pop_options".
      
      gcc/testsuite/ChangeLog
      
      	* gcc.dg/pragma-pop_options-1.c: New test.
      
      From-SVN: r228794
      Dominik Vogt committed
    • Daily bump. · 168d732e
      From-SVN: r228793
      GCC Administrator committed