1. 24 May, 2016 8 commits
    • Fix GROUP_GAP for single-element interleaving · 836dbb1a
      vectorizable_load had a curious "force_peeling" variable, with no
      comment explaining why we need it for single-element interleaving
      but not for other cases.  I think it's simply because we weren't
      initialising the GROUP_GAP correctly for single loads.
      
      Tested on aarch64-linux-gnu and x86_64-linux-gnu.
      
      gcc/
      	* tree-vect-data-refs.c (vect_analyze_group_access_1): Set
      	GROUP_GAP for single-element interleaving.
      	* tree-vect-stmts.c (vectorizable_load): Remove force_peeling
      	variable.
      
      From-SVN: r236631
      Richard Sandiford committed
    • re PR middle-end/70434 (adding an extraneous cast to vector type results in inferior code) · f17a223d
      2016-05-24  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/70434
      	PR c/69504
      	c-family/
      	* c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
      	(convert_vector_to_array_for_subscript): ... this.
      	* c-common.c (convert_vector_to_pointer_for_subscript): Use a
      	VIEW_CONVERT_EXPR to an array type.  Rename to ...
      	(convert_vector_to_array_for_subscript): ... this.
      
      	cp/
      	* expr.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
      	* constexpr.c (cxx_eval_array_reference): Handle indexed
      	vectors.
      	* typeck.c (cp_build_array_ref): Adjust.
      
      	c/
      	* c-typeck.c (build_array_ref): Do not complain about indexing
      	non-lvalue vectors.  Adjust for function name change.
      
      	* tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
      	bases which are accessed with non-invariant indices.
      	* gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
      	constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
      
      	* c-c++-common/vector-subscript-4.c: New testcase.
      	* c-c++-common/vector-subscript-5.c: Likewise.
      
      From-SVN: r236630
      Richard Biener committed
    • re PR libfortran/71123 (Namelist read failure on Windows) · 64fc0cd9
      2016-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/71123
      	* io/list_read (eat_spaces): Eat '\r' as part of spaces.
              fix change log
      
      From-SVN: r236629
      Jerry DeLisle committed
    • re PR libfortran/70684 (incorrect reading of values from file on Windows) · e3f36534
      2016-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/70684
      	* io/list_read (eat_spaces): Eat '\r' as part of spaces.
      
      	* gfortran.dg/namelist_90.f: New test
      
      From-SVN: r236628
      Jerry DeLisle committed
    • re PR fortran/66461 (ICE on missing end program in fixed source) · 85d5c27d
      2016-05-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/66461
      	* scanner.c (gfc_next_char_literal): Clear end_flag when adjusting
      	current locus back to old_locus.
      
      	* gfortran.dg/unexpected_eof.f: New test
      
      From-SVN: r236627
      Jerry DeLisle committed
    • PR c++/70344 - ICE with recursive constexpr · 4ddcdbf9
      	* constexpr.c (cxx_eval_call_expression): Check for
      	fun == current_function_decl again.
      
      From-SVN: r236625
      Jason Merrill committed
    • Daily bump. · 40e61ad8
      From-SVN: r236623
      GCC Administrator committed
    • re PR tree-optimization/71170 (ICE in rewrite_expr_tree, at tree-ssa-reassoc.c:3898) · d2db36dd
      gcc/ChangeLog:
      
      2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR middle-end/71170
      	* tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
      	(add_to_ops_vec): Add stmt_to_insert.
      	(add_repeat_to_ops_vec): Init stmt_to_insert.
      	(insert_stmt_before_use): New.
      	(transform_add_to_multiply): Remove mult_stmt insertion and add it to ops vector.
      	(get_ops): Init stmt_to_insert.
      	(maybe_optimize_range_tests): Likewise.
      	(rewrite_expr_tree): Insert stmt_to_insert before use stmt.
      	(rewrite_expr_tree_parallel): Likewise.
      	(reassociate_bb): Likewise.
      
      From-SVN: r236619
      Kugan Vivekanandarajah committed
  2. 23 May, 2016 24 commits
  3. 22 May, 2016 8 commits