1. 10 Jun, 2016 10 commits
    • targhooks.c (default_builtin_vectorization_cost): Adjust vec_construct cost. · fcea0bbb
      2016-06-10  Richard Biener  <rguenther@suse.de>
      
      	* targhooks.c (default_builtin_vectorization_cost): Adjust
      	vec_construct cost.
      
      From-SVN: r237302
      Richard Biener committed
    • gimple-fold.c (gimple_fold_builtin_memory_op): Make sure to fold the RHS to a constant if possible. · 921b13d0
      2016-06-10  Richard Biener  <rguenther@suse.de>
      
      	* gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
      	to fold the RHS to a constant if possible.
      
      From-SVN: r237301
      Richard Biener committed
    • mpx_wrappers.c (move_bounds): Fix overflow bug. · 2cfab6c0
      libmpx/
      
      2016-06-10  Ilya Enkovich  <ilya.enkovich@intel.com>
      
      	* mpxwrap/mpx_wrappers.c (move_bounds): Fix overflow bug.
      
      From-SVN: r237292
      Ilya Enkovich committed
    • [PR middle-end/71373] Handle more OMP_CLAUSE_* in nested function decomposition · 27d6ba88
      	gcc/
      	* gimplify.c (gimplify_adjust_omp_clauses): Discard
      	OMP_CLAUSE_TILE.
      	* omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
      	gcc/testsuite/
      	* c-c++-common/goacc/combined-directives.c: XFAIL tree scanning
      	for OpenACC tile clauses.
      	* gfortran.dg/goacc/combined-directives.f90: Likewise.
      
      	gcc/
      	PR middle-end/71373
      	* tree-nested.c (convert_nonlocal_omp_clauses)
      	(convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
      	OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
      	OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
      	gcc/testsuite/
      	PR middle-end/71373
      	* gcc.dg/goacc/nested-function-1.c: New file.
      	* gcc.dg/goacc/nested-function-2.c: Likewise.
      	* gcc.dg/goacc/pr71373.c: Likewise.
      	* gfortran.dg/goacc/cray-2.f95: Likewise.
      	* gfortran.dg/goacc/loop-1-2.f95: Likewise.
      	* gfortran.dg/goacc/loop-3-2.f95: Likewise.
      	* gfortran.dg/goacc/cray.f95: Update.
      	* gfortran.dg/goacc/loop-1.f95: Likewise.
      	* gfortran.dg/goacc/loop-3.f95: Likewise.
      	* gfortran.dg/goacc/subroutines.f90: Update, and rename to...
      	* gfortran.dg/goacc/nested-function-1.f90: ... this new file.
      	libgomp/testsuite/
      	PR middle-end/71373
      	* libgomp.oacc-c/nested-function-1.c: New file.
      	* libgomp.oacc-c/nested-function-2.c: Likewise.
      	* libgomp.oacc-fortran/nested-function-1.f90: Likewise.
      	* libgomp.oacc-fortran/nested-function-2.f90: Likewise.
      	* libgomp.oacc-fortran/nested-function-3.f90: Likewise.
      
      Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
      
      From-SVN: r237291
      Thomas Schwinge committed
    • [PR c/71381] C/C++ OpenACC cache directive rejects valid syntax · 4b1ffdb1
      	gcc/c/
      	PR c/71381
      	* c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
      	Loosen checking.
      	gcc/cp/
      	PR c/71381
      	* parser.c (cp_parser_omp_var_list_no_open) <OMP_CLAUSE__CACHE_>:
      	Loosen checking.
      	gcc/fortran/
      	PR c/71381
      	* openmp.c (gfc_match_oacc_cache): Add comment.
      	gcc/testsuite/
      	PR c/71381
      	* c-c++-common/goacc/cache-1.c: Update.  Move invalid usage tests
      	to...
      	* c-c++-common/goacc/cache-2.c: ... this new file.
      	* gfortran.dg/goacc/cache-1.f95: Move invalid usage tests to...
      	* gfortran.dg/goacc/cache-2.f95: ... this new file.
      	* gfortran.dg/goacc/coarray.f95: Update OpenACC cache directive
      	usage.
      	* gfortran.dg/goacc/cray.f95: Likewise.
      	* gfortran.dg/goacc/loop-1.f95: Likewise.
      	libgomp/
      	PR c/71381
      	* testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
      	"../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
      	* testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
      
      	gcc/
      	* omp-low.c (scan_sharing_clauses): Don't expect
      	OMP_CLAUSE__CACHE_.
      
      From-SVN: r237290
      Thomas Schwinge committed
    • check_GNU_style.sh: Fix paste args for BSD · 22d222d2
      2016-06-10  Alan Hayward  <alan.hayward@arm.com>
      
      	* check_GNU_style.sh: Fix paste args for BSD
      
      From-SVN: r237289
      Alan Hayward committed
    • re PR tree-optimization/71407 (ICE at -O3 in 32-bit and 64-bit modes on… · 89851e4c
      re PR tree-optimization/71407 (ICE at -O3 in 32-bit and 64-bit modes on x86_64-linux-gnu (verify_gimple: integral result type precision does not match field size of BIT_FIELD_REF))
      
      2016-06-10  Alan Hayward  <alan.hayward@arm.com>
      
      gcc/
      	PR tree-optimization/71407
      	PR tree-optimization/71416
      	* tree-vect-loop.c (vectorizable_live_operation): Use vectype for
      	BIT_FIELD_REF type.
      
      testsuite/
      	PR tree-optimization/71407
      	PR tree-optimization/71416
      	* gcc.dg/vect/pr71407.c: New
      	* gcc.dg/vect/pr71416-1.c: New
      	* gcc.dg/vect/pr71416-2.c: New
      
      From-SVN: r237288
      Alan Hayward committed
    • re PR tree-optimization/71477 (gcc ICE at -O3 on valid code on x86_64-linux-gnu with “seg fault”) · 200eafbf
      2016-06-10  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/71477
      	* cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
      
      	* gcc.dg/torture/pr71477.c: New testcase.
      
      From-SVN: r237287
      Richard Biener committed
    • compiler: fix quoting in error message · 5eeb039f
          
          Reviewed-on: https://go-review.googlesource.com/23966
      
      From-SVN: r237286
      Ian Lance Taylor committed
    • Daily bump. · 9b805400
      From-SVN: r237285
      GCC Administrator committed
  2. 09 Jun, 2016 22 commits
  3. 08 Jun, 2016 8 commits
    • decl.c (maybe_deduce_size_from_array_init): Use DECL_SOURCE_LOCATION in error_at. · c8a71589
      /cp
      2016-06-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* decl.c (maybe_deduce_size_from_array_init): Use
      	DECL_SOURCE_LOCATION in error_at.
      	(layout_var_decl): Likewise.
      	(check_array_initializer): Likewise.
      	(check_initializer): Likewise.
      	(duplicate_decls, check_elaborated_type_specifier): Tidy.
      
      /testsuite
      2016-06-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* g++.dg/init/array42.C: New.
      	* g++.dg/init/array43.C: Likewise.
      	* g++.dg/init/array44.C: Likewise.
      	* g++.dg/init/array45.C: Likewise.
      	* g++.dg/cpp0x/constexpr-ice10.C: Test column number too.
      	* g++.dg/cpp0x/constexpr-incomplete1.C: Likewise.
      	* g++.dg/cpp1y/auto-fn27.C: Likewise.
      	* g++.dg/gomp/pr35751.C: Likewise.
      	* g++.dg/init/array23.C: Likewise.
      	* g++.dg/init/brace2.C: Likewise.
      	* g++.dg/init/brace6.C: Likewise.
      
      From-SVN: r237240
      Paolo Carlini committed
    • re PR c++/70507 (integer overflow builtins not constant expressions) · 44a845ca
      	PR c++/70507
      	PR c/68120
      	* builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
      	BUILT_IN_MUL_OVERFLOW_P): New builtins.
      	* builtins.c: Include gimple-fold.h.
      	(fold_builtin_arith_overflow): Handle
      	BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
      	(fold_builtin_3): Likewise.
      	* doc/extend.texi (Integer Overflow Builtins): Document
      	__builtin_{add,sub,mul}_overflow_p.
      gcc/c/
      	* c-typeck.c (convert_arguments): Don't promote last argument
      	of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
      gcc/cp/
      	* constexpr.c: Include gimple-fold.h.
      	(cxx_eval_internal_function): New function.
      	(cxx_eval_call_expression): Call it.
      	(potential_constant_expression_1): Handle integer arithmetic
      	overflow built-ins.
      	* tree.c (builtin_valid_in_constant_expr_p): Handle
      	BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
      gcc/c-family/
      	* c-common.c (check_builtin_function_arguments): Handle
      	BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
      gcc/testsuite/
      	* c-c++-common/builtin-arith-overflow-1.c: Add test cases.
      	* c-c++-common/builtin-arith-overflow-2.c: New test.
      	* g++.dg/ext/builtin-arith-overflow-1.C: New test.
      	* g++.dg/cpp0x/constexpr-arith-overflow.C: New test.
      	* g++.dg/cpp1y/constexpr-arith-overflow.C: New test.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r237238
      Martin Sebor committed
    • driver-sparc.c (cpu_names): Fix the entry for the SPARC-M7 and add an entry for… · 379aea72
      driver-sparc.c (cpu_names): Fix the entry for the SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
      
      2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
      
      	* config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
      	SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
      
      From-SVN: r237237
      Jose E. Marchesi committed
    • pt.c (tsubst, [...]): Don't delay checking the return value of tsubst_aggr_type… · f07063cc
      pt.c (tsubst, [...]): Don't delay checking the return value of	tsubst_aggr_type for error_mark_node.
      
      2016-06-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* pt.c (tsubst, case TYPENAME_TYPE): Don't delay checking the
      	return value of	tsubst_aggr_type for error_mark_node.
      
      From-SVN: r237236
      Paolo Carlini committed
    • re PR c++/71442 (r232569 breaks -Wunused-*) · 2ef16b6e
      	PR c++/71442
      	* pt.c (tsubst_copy): Only set TREE_USED on DECLs.
      
      	* g++.dg/cpp0x/Wunused-variable-1.C: New test.
      
      From-SVN: r237232
      Jakub Jelinek committed
    • [PATCH 2/2][AArch64] Tests of AAPCS64 updates for alignment attribute · 5e3ee346
      gcc/testsuite/
      
      	* gcc.target/aarch64/aapcs64/aapcs64.exp: Also execute rec_*.c
      	* gcc.target/aarch64/aapcs64/rec_align-5.c: New.
      	* gcc.target/aarch64/aapcs64/rec_align-6.c: New.
      	* gcc.target/aarch64/aapcs64/rec_align-7.c: New.
      	* gcc.target/aarch64/aapcs64/rec_align-8.c: New.
      	* gcc.target/aarch64/aapcs64/rec_align-9.c: New.
      	* gcc.target/aarch64/aapcs64/test_align-5.c: New.
      	* gcc.target/aarch64/aapcs64/test_align-6.c: New.
      	* gcc.target/aarch64/aapcs64/test_align-7.c: New.
      	* gcc.target/aarch64/aapcs64/test_align-8.c: New.
      	* gcc.target/aarch64/aapcs64/test_align-9.c: New.
      	* gcc.target/aarch64/aapcs64/rec_vaarg-1.c: New.
      	* gcc.target/aarch64/aapcs64/rec_vaarg-2.c: New.
      
      From-SVN: r237225
      Alan Lawrence committed
    • [PATCH 1/2][AArch64] Implement AAPCS64 updates for alignment attribute · 75d6cc81
      gcc/ChangeLog:
      
      	* config/aarch64/aarch64.c (aarch64_function_arg_alignment):
      	Rewrite, looking one level down for records and arrays.
      
      From-SVN: r237224
      Alan Lawrence committed
    • Add selftest for pretty-print.c · 4ccab56d
      gcc/ChangeLog:
      	* pretty-print.c: Include "selftest.h".
      	(pp_format): Fix comment.
      	(identifier_to_locale): Likewise.
      	(selftest::test_basic_printing): New function.
      	(selftest::assert_pp_format): New function.
      	(selftest::test_pp_format): New function.
      	(selftest::pretty_print_c_tests): New function.
      	* selftest-run-tests.c (selftest::run_tests): Call
      	selftest::pretty_print_c_tests.
      	* selftest.h (pretty_print_c_tests): New declaration.
      
      From-SVN: r237221
      David Malcolm committed