Commit Graph

145208 Commits

Author SHA1 Message Date
Thomas Schwinge 27f9add31b Improve libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c
libgomp/
	* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
	Make failure observable.

From-SVN: r234897
2016-04-12 12:40:22 +02:00
Tom de Vries b7a120d7a8 Fix typo in copy_cond_phi_args
2016-04-12  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/68756
	* graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
	instead of new_name.

	* gcc.dg/graphite/pr68756.c: New test.

From-SVN: r234896
2016-04-12 10:08:48 +00:00
Jakub Jelinek 4e0eea7560 re PR tree-optimization/70602 (wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode (and at -Os only in 64-bit mode))
PR tree-optimization/70602
	* tree-sra.c (generate_subtree_copies): Don't write anything into
	constant pool decls.

	* gcc.c-torture/execute/pr70602.c: New test.

From-SVN: r234895
2016-04-12 11:08:43 +02:00
Jakub Jelinek 21f3a2369b omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT regardless whether there are depend clauses or not.
* omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
	regardless whether there are depend clauses or not.

	* libgomp.h (struct gomp_target_task): Remove firstprivate_copies
	field.
	* target.c (gomp_target_fallback_firstprivate,
	gomp_target_unshare_firstprivate): Removed.
	(GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
	before waiting for dependencies.
	(gomp_target_task_fn): Don't copy firstprivate vars here.
	* task.c (GOMP_PLUGIN_target_task_completion): Don't free
	firstprivate_copies here.
	(gomp_create_target_task): Don't initialize firstprivate_copies field.
	* testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
	explicit/implicit firstprivate.

From-SVN: r234894
2016-04-12 09:05:29 +02:00
GCC Administrator a3f90b8c03 Daily bump.
From-SVN: r234892
2016-04-12 00:16:19 +00:00
Michael Meissner 35fbda430d re PR target/70381 (On powerpc, -mfloat128 is on by default for all VSX systems)
[gcc]
2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/70381
	* config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
	target attribute and pragma from changing the -mfloat128
	and -mfloat128-hardware options.

	* doc/extend.texi (Additional Floating Types): Document PowerPC
	__float128 restrictions.

[libgcc]
2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/70381
	* configure.ac (powerpc*-*-linux*): Rework tests to build
	__float128 emulation routines to not depend on using #pragma GCC
	target to enable -mfloat128.
	* configure: Regnerate.

[gcc/testsuite]
2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/70381
	* gcc.target/powerpc/float128-1.c: New tests to make sure the
	__float128 emulator is built and runs.
	* gcc.target/powerpc/float128-1.c: Likewise.

	* lib/target-supports.exp (check_ppc_float128_sw_available):
	Rework tests for __float128 software and hardware
	availability. Fix exit condition to return 0 on success.

From-SVN: r234884
2016-04-11 19:45:35 +00:00
Jason Merrill a9c2f3d9af mangle.c (decl_is_template_id): The template itself counts as a template-id.
* mangle.c (decl_is_template_id): The template itself counts as a
	template-id.

From-SVN: r234879
2016-04-11 09:38:34 -04:00
James Greenhalgh 8433cb91f4 [Patch AArch64 3/3] Fix up for pr70133
gcc/

	PR target/70133
	* config/aarch64/driver-aarch64.c
	(aarch64_get_extension_string_for_isa_flags): New.
	(arch_extension): Rename to...
	(aarch64_arch_extension): ...This.
	(ext_to_feat_string): Rename to...
	(aarch64_extensions): ...This.
	(aarch64_core_data): Keep track of architecture extension flags.
	(cpu_data): Rename to...
	(aarch64_cpu_data): ...This.
	(aarch64_arch_driver_info): Keep track of architecture extension
	flags.
	(get_arch_name_from_id): Rename to...
	(get_arch_from_id): ...This, change return type.
	(host_detect_local_cpu): Update and reformat for renames, handle
	extensions through common infrastructure.

From-SVN: r234877
2016-04-11 10:16:26 +00:00
James Greenhalgh 04a99ebece [Patch AArch64 2/3] Rework the code to print extension strings (pr70133)
gcc/

	PR target/70133
	* config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
	track of a canonical flag name.
	(all_extensions): Likewise.
	(arch_to_arch_name): Also track extension flags enabled by the arch.
	(all_architectures): Likewise.
	(aarch64_parse_extension): Move to here.
	(aarch64_get_extension_string_for_isa_flags): Take a new argument,
	rework.
	(aarch64_rewrite_selected_cpu): Update for above change.
	* config/aarch64/aarch64-option-extensions.def: Rework the way flags
	are handled, such that the single explicit value enabled by an
	extension is kept seperate from the implicit values it also enables.
	* config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
	to here.
	(aarch64_parse_extension): New.
	* config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
	here to config/aarch64/aarch64-protos.h.
	(aarch64_parse_extension): Move from here to
	common/config/aarch64/aarch64-common.c.
	(aarch64_option_print): Update.
	(aarch64_declare_function_name): Likewise.
	(aarch64_start_file): Likewise.
	* config/aarch64/driver-aarch64.c (arch_extension): Keep track of
	the canonical flag for extensions.
	* config.gcc (aarch64*-*-*): Extend regex for capturing extension
	flags.

gcc/testsuite/

	PR target/70133
	* gcc.target/aarch64/mgeneral-regs_4.c: Fix expected output.
	* gcc.target/aarch64/target_attr_15.c: Likewise.

From-SVN: r234876
2016-04-11 10:14:59 +00:00
James Greenhalgh a60fd657ad [Patch AArch64 1/3] Enable CRC by default for armv8.1-a
gcc/

	* config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
	AARCH64_FL_CRC.

From-SVN: r234875
2016-04-11 10:11:59 +00:00
Segher Boessenkool fa246aa37a libcc1: Clean compiler-name.h (PR70173)
Since the file is generated from a Makefile fragment, it needs to be
added to MOSTLYCLEANFILES.  The directory itself is still not deleted
(just like the gnattools and gotools directories).


2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>

libcc1/
	PR bootstrap/70173
	* Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
	(compiler-name.h): Shorten recipe so that it fits the line.
	* Makefile.in: Regenerate.

From-SVN: r234874
2016-04-11 09:26:36 +02:00
GCC Administrator 890e48b460 Daily bump.
From-SVN: r234872
2016-04-11 00:16:15 +00:00
Paolo Carlini 47cd5a8505 re PR c++/69066 (SFINAE compilation error on lambda with trailing return type)
2016-04-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/69066
	* g++.dg/cpp1y/pr69066.C: New.

From-SVN: r234869
2016-04-10 09:32:46 +00:00
Steven G. Kargl c27e432ed8 MAINTAINERS (Fortran maintainer): Remove myself.
2016-04-09  Steven G. Kargl  <kargl@gcc.gnu.org>

        * MAINTAINERS (Fortran maintainer): Remove myself.

From-SVN: r234868
2016-04-10 05:53:06 +00:00
GCC Administrator bb5d0ab225 Daily bump.
From-SVN: r234867
2016-04-10 00:16:19 +00:00
Jerry DeLisle a5edb32e6b re PR fortran/68566 (ICE on using unusable array in reshape (double free or corruption))
2016-04-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/68566
	* array.c (match_array_element_spec): Add check for non-integer.
	* simplify.c (gfc_simplify_reshape): If source shape is NULL return.

	PR fortran/68566
	* gfortran.dg/pr36192.f90: Update test.
	* gfortran.dg/pr36192_1.f90: Update test.
	* gfortran.dg/real_dimension_1.f: Update test.
	* gfortran.dg/parameter_array_init_7.f90: New test.

From-SVN: r234864
2016-04-09 19:09:02 +00:00
John David Anglin c532c87139 re PR testsuite/64039 (FAIL: gcc.dg/tree-ssa/ssa-dom-cse-2.c scan-tree-dump optimized "return 28;")
PR testsuite/64039
	* gcc.dg/tree-ssa/ssa-dom-cse-2.c: xfail scan-tree-dump on hppa*64*-*-*.

From-SVN: r234863
2016-04-09 17:36:24 +00:00
John David Anglin d34f706fc8 pr70317.c: Add -fno-common on hppa*-*-hpux*.
* gcc.dg/pr70317.c: Add -fno-common on hppa*-*-hpux*.

From-SVN: r234862
2016-04-09 17:21:50 +00:00
John David Anglin 75e1dd9ed0 re PR rtl-optimization/66669 (FAIL: gcc.dg/loop-8.c)
PR rtl-optimization/66669
	* gcc.dg/loop-8.c: Skip on hppa*-*-*.

From-SVN: r234861
2016-04-09 17:15:15 +00:00
John David Anglin 8a976f5fb6 prod-options.c: Adjust scan for hppa*64*-*-*.
* gcc.dg/debug/dwarf2/prod-options.c: Adjust scan for hppa*64*-*-*.

From-SVN: r234860
2016-04-09 17:09:43 +00:00
John David Anglin da04822ac8 pic-1.c: Skip on hppa*-*-*.
* gcc.dg/pic-1.c: Skip on hppa*-*-*.
	* gcc.dg/pie-1.c: Likewise.
	* gcc.dg/pic-3.c: Skip on hppa*64*-*-*.
	* gcc.dg/pic-4.c: Likewise.
	* gcc.dg/pie-3.c: Likewise.
	* gcc.dg/pie-4.c: Likewise.

From-SVN: r234859
2016-04-09 16:45:31 +00:00
John David Anglin adfabcf941 uninit-19.c: Fix warning line for hppa*64*-*-*.
* gcc.dg/uninit-19.c: Fix warning line for hppa*64*-*-*.

From-SVN: r234856
2016-04-09 16:04:36 +00:00
John David Anglin 4a020adfc5 re PR tree-optimization/68644 (FAIL: gcc.dg/tree-ssa/ivopts-lt-2.c scan-tree-dump-times ivopts "PHI <p_" 1)
PR tree-optimization/68644
	* gcc.dg/tree-ssa/ivopts-lt-2.c: Skip on hppa*-*-*.

From-SVN: r234854
2016-04-09 15:54:29 +00:00
John David Anglin 8ef378f8d7 re PR testsuite/64886 (FAIL: gcc.dg/pr64434.c scan-rtl-dump-times expand "Swap operands" 1)
PR rtl-optimization/64886
	* gcc.dg/pr64434.c: Skip on hppa*-*-hpux*.

From-SVN: r234852
2016-04-09 15:43:05 +00:00
Tom de Vries 09bf990eb8 Fix pdr accesses order
2016-04-09  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/68953
	* graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
	first to last subscript.

	* gcc.dg/graphite/pr68953.c: New test.

From-SVN: r234851
2016-04-09 15:28:24 +00:00
Dominique d'Humieres 138c3c1a78 re PR fortran/70592 (Addressing error in dynamically-allocated character array)
2016-04-09  Dominique d'Humieres  <dominiq@lps.ens.fr>

	PR fortran/70592
	* gfortran.dg/deferred_character_16.f90: New test.

From-SVN: r234850
2016-04-09 15:29:32 +02:00
Jakub Jelinek f55460af16 re PR tree-optimization/70586 (wrong code at -O2 and -O3 on x86_64-linux-gnu in 32-bit and 64-bit modes)
PR tree-optimization/70586
	* tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
	for any calls.

	* gcc.c-torture/execute/pr70586.c: New test.

From-SVN: r234849
2016-04-09 13:23:51 +02:00
Dominique d'Humieres 0b77bbf392 re PR sanitizer/70573 (FAIL: c-c++-common/asan/halt_on_error-1.c -O* execution test x86_64-apple-darwin15)
2016-04-09  Dominique d'Humieres  <dominiq@lps.ens.fr>

	PR sanitizer/70573
	* c-c++-common/asan/halt_on_error-1.c: Replace memset
	with __builtin_memset
	* c-c++-common/asan/halt_on_error-2.c: Likewise.

From-SVN: r234848
2016-04-09 11:24:45 +02:00
GCC Administrator 3f1f2c5256 Daily bump.
From-SVN: r234846
2016-04-09 00:16:15 +00:00
Cesar Philippidis c42cfb5ca3 re PR lto/70289 ([openacc] ICE in input_varpool_node)
gcc/
	PR lto/70289
	PR ipa/70348
	PR tree-optimization/70373
	PR middle-end/70533
	PR middle-end/70534
	PR middle-end/70535
	* gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
	clauses for acc parallel reductions as necessary.  Error on those
	that are private.
	* omp-low.c (scan_sharing_clauses): Don't install variables which
	are used in acc parallel reductions.
	(lower_rec_input_clauses): Remove dead code.
	(lower_oacc_reductions): Add support for reference reductions.
	(lower_reduction_clauses): Remove dead code.
	(lower_omp_target): Don't remap variables appearing in acc parallel
	reductions.
	* tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.

	gcc/testsuite/
	* c-c++-common/goacc/reduction-5.c: New test.
	* c-c++-common/goacc/reduction-promotions.c: New test.
	* gfortran.dg/goacc/reduction-3.f95: New test.
	* gfortran.dg/goacc/reduction-promotions.f90: New test.

	libgomp/
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
	test.
	* testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
	coverage.
	* testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
	coverage.
	* testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
	* testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
	* testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
	* testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
	* testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
	* testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.

From-SVN: r234840
2016-04-08 14:09:47 -07:00
Joseph Myers 51a4b0f187 Regenerate .pot files.
gcc/po:
	* gcc.pot: Regenerate.

libcpp/po:
	* cpplib.pot: Regenerate.

From-SVN: r234839
2016-04-08 21:57:02 +01:00
Patrick Palka 56cfb59670 Fix PR c++/70590 (error: location references block not in block tree)
gcc/cp/ChangeLog:

	PR c++/70590
	PR c++/70452
	* constexpr.c (cxx_eval_outermost_expression): Call unshare_expr
	on the result if it's not a CONSTRUCTOR.

gcc/testsuite/ChangeLog:

	PR c++/70590
	PR c++/70452
	* g++.dg/pr70590.C: New test.
	* g++.dg/pr70590-2.C: New test.

From-SVN: r234837
2016-04-08 20:17:10 +00:00
Jakub Jelinek abc0647a4d re PR middle-end/70593 (Miscompilation of xen starting with r226901)
PR middle-end/70593
	* tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
	with multiple SSA_NAME defs, force the outputs other than first
	to be live before calling live_track_process_def on each output.

	* gcc.target/i386/pr70593.c: New test.

From-SVN: r234834
2016-04-08 19:28:20 +02:00
Jakub Jelinek 1a13c0a284 re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable)
PR rtl-optimization/70574
	* fwprop.c (forward_propagate_and_simplify): Don't add
	REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
	(try_fwprop_subst): Don't add REG_EQUAL note if there are any
	paradoxical subregs within *loc.

	* gcc.target/i386/avx2-pr70574.c: New test.

From-SVN: r234833
2016-04-08 19:21:17 +02:00
Thomas Schwinge 9dbe3d77fd Complete changes to "Ignore -ftree-parallelize-loops={0,1} using gt"
Apply the r225764 and r233573 changes to all relevant spec strings.

	gcc/
	* config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
	-ftree-parallelize-loops={0,1}.
	* config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
	* config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
	* config/ia64/hpux.h (LIB_SPEC): Likewise.
	* config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
	* config/pa/pa64-hpux.h (LIB_SPEC): Likewise.

From-SVN: r234831
2016-04-08 15:47:37 +02:00
Bernd Schmidt cb2763b5c4 Fix PR number in ChangeLog
From-SVN: r234830
2016-04-08 12:17:03 +00:00
Marcel Böhme bdf66f7734 Fix memory allocation size overflows (PR69687, patch by Marcel Böhme)
PR c++/69687
	* cplus-dem.c: Include <limits.h> if available.
	(INT_MAX): Define if necessary.
	(remember_type, remember_Ktype, register_Btype, string_need):
	Abort if we detect cases where we the size of the allocation would
	overflow.

From-SVN: r234829
2016-04-08 12:10:21 +00:00
Marcel Böhme 59dad006fa Handle an overflow case (PR70498, patch by Marcel Böhme).
PR c++/70498
	* cplus-dem.c (gnu_special): Handle case where consume_count returns
	-1.

From-SVN: r234828
2016-04-08 12:06:59 +00:00
Maxim Ostapenko c3da495616 re PR sanitizer/70541 (unnoticed invalid dereference when using address sanitizer)
2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>

	PR sanitizer/70541
	* asan.c (instrument_derefs): If we get unknown location, extract it
	with EXPR_LOCATION.
	(maybe_instrument_call): Instrument gimple_call's arguments if needed.

	* c-c++-common/asan/pr70541.c: New test.

From-SVN: r234827
2016-04-08 13:46:13 +03:00
Tom de Vries 9f1b833bc3 Remove incorrect warning for parallel implicit firstprivate clause
2016-04-08  Tom de Vries  <tom@codesourcery.com>

	* omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
	implicit firstprivate clause.

	* c-c++-common/goacc/uninit-firstprivate-clause.c: New test.
	* gfortran.dg/goacc/uninit-firstprivate-clause.f95: New test.

From-SVN: r234826
2016-04-08 09:41:16 +00:00
Kyrylo Tkachov bae7adda10 [ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm Thumb2 peepholes
PR target/70566
	* config/arm/thumb2.md (tst + branch-> lsls + branch
	peephole below *orsi_not_shiftsi_si): Require that condition
	register is dead after the peephole.
	(second peephole after the above): Likewise.

	* gcc.c-torture/execute/pr70566.c: New test.

From-SVN: r234825
2016-04-08 09:39:44 +00:00
Tom de Vries 211f3d57b1 Add goacc/uninit-copy-clause.{c,f95} testcases
2016-04-08  Tom de Vries  <tom@codesourcery.com>

	* c-c++-common/goacc/uninit-copy-clause.c: New test.
	* gfortran.dg/goacc/uninit-copy-clause.f95: New test.

From-SVN: r234824
2016-04-08 08:48:12 +00:00
Alan Modra 02cf2861fc PR70117, ppc long double isinf
gcc/
	PR target/70117
	* builtins.c (fold_builtin_classify): For IBM extended precision,
	look at just the high-order double to test for NaN.
	(fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
	test just the high double for Inf but both doubles for subnormal
	limit.
gcc/testsuite/
	* gcc.target/powerpc/pr70117.c: New.

From-SVN: r234821
2016-04-08 11:41:52 +09:30
GCC Administrator 1f3955796c Daily bump.
From-SVN: r234820
2016-04-08 00:16:17 +00:00
Jakub Jelinek 56e9b7108a re PR testsuite/70581 (gcc.dg/lto/simd-function FAILs)
PR testsuite/70581
	* gcc.dg/lto/simd-function_0.c: New test.

From-SVN: r234817
2016-04-07 23:45:26 +02:00
Jakub Jelinek 5f490f9f7a cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
* cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
	* omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
	node->simdclone->mask_mode != VOIDmode masks.
	(simd_clone_adjust_argument_types): Likewise.  Move sc var definition
	earlier, use it instead of node->simdclone.
	* config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
	Set clonei->mask_mode.

	* c-c++-common/attr-simd.c: Add scan-assembler* directives for AVX512F
	clones.
	* c-c++-common/attr-simd-2.c: Likewise.
	* c-c++-common/attr-simd-4.c: Likewise.
	* gcc.dg/gomp/simd-clones-2.c: Likewise.
	* gcc.dg/gomp/simd-clones-3.c: Likewise.

From-SVN: r234816
2016-04-07 23:32:05 +02:00
Thomas Preud'homme e4ebc74d8c re PR testsuite/70553 (pr70496.c should exclude Thumb only targets)
2016-04-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/testsuite/

    PR testsuite/70553
    * gcc.target/arm/pr70496.c: Also require arm_arm_ok effective target.

From-SVN: r234811
2016-04-07 16:19:20 +00:00
Patrick Palka 0146e25f90 Avoid needless unsharing during constexpr evaluation (PR c++/70452)
gcc/cp/ChangeLog:

	PR c++/70452
	* constexpr.c (find_constructor): New function.
	(unshare_constructor): New function.
	(cxx_eval_call_expression): Use unshare_constructor instead of
	unshare_expr.
	(find_array_ctor_elt): Likewise.
	(cxx_eval_vec_init_1): Likewise.
	(cxx_eval_store_expression): Likewise.
	(cxx_eval_constant_expression): Likewise.

From-SVN: r234810
2016-04-07 16:12:05 +00:00
Thomas Schwinge 9817ae350c Scan for parallelization of the oacc kernels test-cases in gfortran.dg/goacc
gcc/testsuite/
	* gfortran.dg/goacc/kernels-loop-2.f95: Scan for parallelization.
	* gfortran.dg/goacc/kernels-loop-data-2.f95: Likewise.
	* gfortran.dg/goacc/kernels-loop-data-enter-exit-2.f95: Likewise.
	* gfortran.dg/goacc/kernels-loop-data-enter-exit.f95: Likewise.
	* gfortran.dg/goacc/kernels-loop-data-update.f95: Likewise.
	* gfortran.dg/goacc/kernels-loop-data.f95: Likewise.
	* gfortran.dg/goacc/kernels-loop.f95: Likewise.
	* gfortran.dg/goacc/kernels-loop-n.f95: Likewise, XFAILed.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>

From-SVN: r234809
2016-04-07 17:21:37 +02:00
Jonathan Wakely 6da8b93163 * testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
From-SVN: r234808
2016-04-07 15:26:24 +01:00