1. 04 Aug, 2015 1 commit
    • plugin-nvptx.c: Don't include dlfcn.h. · 9ebddeb0
      	* plugin/plugin-nvptx.c: Don't include dlfcn.h.
      	(cuda_errlist): Constify.
      	(errmsg):  Move into ...
      	(cuda_error): ... here.  Make smaller.
      	(_XSTR, _STR): Delete.
      	(cuda_synames): Delete.
      	(verify_device_library): Delete.
      	(nvptx_init): Don't call it.
      
      From-SVN: r226539
      Nathan Sidwell committed
  2. 28 Jul, 2015 1 commit
    • Handle double reduction in parloops · 12efb1d7
      2015-07-28  Tom de Vries  <tom@codesourcery.com>
      
      	* tree-parloops.c (reduc_stmt_res): New function.
      	(initialize_reductions, add_field_for_reduction)
      	(create_phi_for_local_result, create_loads_for_reductions)
      	(create_stores_for_reduction, build_new_reduction): Handle case that
      	reduc_stmt is a phi.
      	(gather_scalar_reductions): Allow double_reduc reductions.
      
      	* gcc.dg/autopar/uns-outer-4.c: Remove xfail on scan for parallelizing
      	outer loop.
      
      	* testsuite/libgomp.c/uns-outer-4.c: New test.
      
      From-SVN: r226300
      Tom de Vries committed
  3. 24 Jul, 2015 1 commit
  4. 22 Jul, 2015 1 commit
    • re PR libgomp/66950 (FAIL: libgomp.fortran/examples-4/simd-7.f90 -O0 execution test) · 27c4ac7d
      2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
      
      	PR libgomp/66950
      	* testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
      	(fib_ref): New function.
      	(fib): Correct corner cases in the recursion.
      	(main): Replace the non-simd loop with fib_ref call.
      	* testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
      	subroutine.
      	(fibonacci): Lower the parameter N to 30.  Correct accordingly check
      	for the last array element value.  Replace the non-simd loop with
      	fib_ref call.  Remove redundant b_ref array.  Remove the comparison
      	of the last array element with according Fibonacci sequence element.
      	(fib): Correct corner cases in the recursion.
      
      From-SVN: r226080
      Maxim Blumenthal committed
  5. 21 Jul, 2015 1 commit
    • target.c (gomp_offload_image_to_device): Rename to ... · 22be2349
      	libgomp/
      	* target.c (gomp_offload_image_to_device): Rename to ...
      	(gomp_load_image_to_device): ... here.
      	(GOMP_offload_register): Adjust call.
      	(gomp_init_device): Likewise.
      	(gomp_unload_image_from_device): New.  Broken out of ...
      	(GOMP_offload_unregister): ... here.  Call it.
      	(gomp_unload_device): New.
      	* libgomp.h (gomp_unload_device): Declare.
      	* oacc-init.c (acc_shutdown_1): Unload from device before deleting
      	mem maps.
      
      	gcc/
      	* config/nvptx/mkoffload.c (process): Add static destructor call.
      
      From-SVN: r226039
      Nathan Sidwell committed
  6. 20 Jul, 2015 3 commits
  7. 17 Jul, 2015 3 commits
    • target.c (GOMP_offload_register): Use int for device type arg. · 896c28a7
      	* target.c (GOMP_offload_register): Use int for device type arg.
      	(GOMP_offload_unregister): Likewise.
      
      From-SVN: r225944
      Nathan Sidwell committed
    • mkoffload.c (process): Constify host data. · ebe4a560
      	gcc/
      	* config/nvptx/mkoffload.c (process): Constify host data.
      	* config/i386/intelmic-mkoffload.c (generate_target_descr_file):
      	Constify host data.
      	(generate_host_descr_file): Likewise.
      
      	libgomp/
      	* target.c (struct_offload_image_descr): Constify host_table.
      	(gomp_offload_image_to_device): Likewise.
      	(GOMP_offload_register, GOMP_offload_unregister): Likewise.
      
      	libgcc/
      	* offloadstuff.c: Constify host data.
      
      From-SVN: r225943
      Nathan Sidwell committed
    • mkoffload.c (process): Constify target data. · afb2d80b
      	gcc/
      	* config/nvptx/mkoffload.c (process): Constify target data.
      	* config/i386/intelmic-mkoffload.c (generate_target_descr_file):
      	Constify target data.
      	(generate_target_offloadend_file): Likewise.
      
      	libgomp/
      	* libgomp.h (gomp_device_descr): Constify target data arguments.
      	* target.c (struct offload_image_descr): Constify target_data.
      	(gomp_offload_image_to_device): Likewise.
      	(GOMP_offload_register): Likewise.
      	(GOMP_offload_unrefister): Likewise.
      	* plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
      	GOMP_OFFLOAD_unload_image): Constify target data.
      	* plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
      	(GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
      
      	liboffloadmic/
      	* plugin/libgomp-plugin-intelmic.cpp (ImgDevAddrMap): Constify.
      	(offload_image, GOMP_OFFLOAD_load_image,
      	OMP_OFFLOAD_unload_image): Constify target data.
      
      From-SVN: r225936
      Nathan Sidwell committed
  8. 16 Jul, 2015 1 commit
    • plugin-nvptx.c (link_ptx): Constify string argument. · a4cb876d
      	libgomp/
      	* plugin/plugin-nvptx.c (link_ptx): Constify string argument.
      	Workaround driver library const error.
      	(struct nvptx_tdata, nvptx_tdata_t): New.
      	(GOMP_OFFLOAD_load_image): Use struct for target_data's real
      	type.
      
      	gcc/
      	* config/nvptx/mkoffload.c (process): Constify mapping variables.
      	Define target data struct and initialize it.
      
      From-SVN: r225897
      Nathan Sidwell committed
  9. 15 Jul, 2015 2 commits
    • Fix libgomp tests. · 28ef6a27
      2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
      
      libgomp/
      	* testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
      	of EPS parameter from integer to real.
      	* testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
      	type of EPS parameter from integer to real.
      
      From-SVN: r225827
      Maxim Blumenthal committed
    • [gomp] Recycle last non-nested team if possible · 6dba0113
      libgomp/ChangeLog
      2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
      
      	* team.c (get_last_team): New.
      	(gomp_new_team): Recycle last non-nested team if possible.
      	(gomp_team_end): Move team work share list free lock destruction
      	to ...
      	(free_team): ... here.
      
      From-SVN: r225811
      Sebastian Huber committed
  10. 14 Jul, 2015 1 commit
    • simd-3.c: (main): Change type of res and ref from int to double. · 4c1cb4da
      2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
      
      libgomp/
      	* testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
      	and ref from int to double.  Replaced their comparison with
      	an inequality of their difference and EPS.
      	* testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
      	comparison of pri and a reference number with an inequality of their
      	difference and EPS.
      	* testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
      	the comparison of sum and sum_ref with an inequality of their
      	difference and EPS.
      	* testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
      	the comparison of pri and a reference number with an inequality of
      	their difference and EPS.
      
      From-SVN: r225786
      Maxim Blumenthal committed
  11. 13 Jul, 2015 1 commit
    • Update libgomp/testsuite/*/examples-4/* according to latest version (4.0.2) · 343587dc
      2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
      
      	* testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
      	* testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
      	* testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
      	* testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
      	* testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
      	(vec_mult_ref): Remove v1 and v2 arguments, turn them into local
      	variables.
      	(vec_mult): Likewise.  Add #pragma omp taskwait.
      	(main): Adjust caller.
      	* testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/device-1.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/device-2.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/device-3.c: ...this.
      	* testsuite/libgomp.c/examples-4/simd-1.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-2.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-3.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-4.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-5.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-6.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-7.c: New file.
      	* testsuite/libgomp.c/examples-4/simd-8.c: New file.
      	* testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target-1.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target-2.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target-3.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target-4.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target-5.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
      	* testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
      	* testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
      	* testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
      	* testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
      	* testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
      	* testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/teams-2.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/teams-3.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/teams-4.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/teams-5.c: ...this.
      	* testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
      	* testsuite/libgomp.c/examples-4/teams-6.c: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
      	(vec_mult): Add !$omp taskwait.
      	* testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
      	* testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
      	* testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
      	* testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
      
      From-SVN: r225735
      Maxim Blumenthal committed
  12. 10 Jul, 2015 1 commit
    • Insert new bound in try_transform_to_exit_first_loop_alt · 9f620bf1
      2015-07-10  Tom de Vries  <tom@codesourcery.com>
      
      	* tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
      	insert nit + 1 bound.
      
      	* testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
      	* testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
      
      	* gfortran.dg/parloops-exit-first-loop-alt-2.f95: New test.
      	* gfortran.dg/parloops-exit-first-loop-alt.f95: New test.
      
      From-SVN: r225655
      Tom de Vries committed
  13. 08 Jul, 2015 2 commits
  14. 07 Jul, 2015 1 commit
    • Add empty loop exit block in transform_to_exit_first_loop_alt · 712cb0bb
      2015-07-07  Tom de Vries  <tom@codesourcery.com>
      
      	PR tree-optimization/66642
      	* tree-parloops.c (transform_to_exit_first_loop_alt): Update function
      	header comment.  Rename split_edge variable to edge_at_split.  Split
      	exit edge to create new loop exit bb.  Insert loop exit phis in new loop
      	exit bb.
      
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
      	iteration count case.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
      	function, factor out of ...
      	(main): ... here.  Test low iteration count case.
      
      From-SVN: r225521
      Tom de Vries committed
  15. 06 Jul, 2015 1 commit
  16. 02 Jul, 2015 1 commit
  17. 30 Jun, 2015 5 commits
    • Run testsuite/libgomp.oacc-c++/c++.exp at -O2 by default · b451c271
      2015-06-30  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
      	already set.  Use DEFAULT_CFLAGS in dg-runtest.
      	* testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
      	"-O2".
      
      From-SVN: r225194
      Tom de Vries committed
    • Run testsuite/libgomp.c++/c++.exp at -O2 by default · f8e89d9f
      2015-06-30  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
      	already set.  Use DEFAULT_CFLAGS in dg-runtest.
      	* testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
      	* testsuite/libgomp.c++/pr64824.C: Same.
      	* testsuite/libgomp.c++/pr64868.C: Same.
      	* testsuite/libgomp.c++/pr66199-1.C: Same.
      	* testsuite/libgomp.c++/pr66199-2.C: Same.
      	* testsuite/libgomp.c++/target-2.C: Same.
      	* testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
      	-std=<standard> option.
      	* testsuite/libgomp.c++/udr-11.C: Same.
      	* testsuite/libgomp.c++/udr-12.C: Same.
      	* testsuite/libgomp.c++/udr-13.C: Same.
      	* testsuite/libgomp.c++/udr-14.C: Same.
      	* testsuite/libgomp.c++/udr-15.C: Same.
      	* testsuite/libgomp.c++/udr-16.C: Same.
      	* testsuite/libgomp.c++/udr-17.C: Same.
      	* testsuite/libgomp.c++/udr-18.C: Same.
      	* testsuite/libgomp.c++/udr-19.C: Same.
      	* testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
      	* testsuite/libgomp.c++/simd-1.C: Same.
      	* testsuite/libgomp.c++/simd-2.C: Same.
      	* testsuite/libgomp.c++/simd-3.C: Same.
      	* testsuite/libgomp.c++/simd-4.C: Same.
      	* testsuite/libgomp.c++/simd-5.C: Same.
      	* testsuite/libgomp.c++/simd-6.C: Same.
      	* testsuite/libgomp.c++/simd-7.C: Same.
      	* testsuite/libgomp.c++/simd-8.C: Same.
      	* testsuite/libgomp.c++/simd-9.C: Same.
      	* testsuite/libgomp.c++/simd10.C: Same.
      	* testsuite/libgomp.c++/simd11.C: Same.
      	* testsuite/libgomp.c++/simd12.C: Same.
      	* testsuite/libgomp.c++/simd13.C: Same.
      
      From-SVN: r225181
      Tom de Vries committed
    • re PR middle-end/66702 (#pragma omp declare simd uniform and linear issues) · 3446fe48
      	PR middle-end/66702
      	* omp-low.c (simd_clone_adjust): Handle addressable linear
      	or uniform parameters or non-gimple type uniform parameters.
      
      	* testsuite/libgomp.c++/pr66702-1.C: New test.
      	* testsuite/libgomp.c++/pr66702-2.C: New test.
      
      From-SVN: r225179
      Jakub Jelinek committed
    • Add parloops-exit-first-loop-alt-{5,6,7}.c · 8a36714a
      2015-06-30  Tom de Vries  <tom@codesourcery.com>
      
      	* gcc.dg/parloops-exit-first-loop-alt-5.c: New test.
      	* gcc.dg/parloops-exit-first-loop-alt-6.c: New test.
      	* gcc.dg/parloops-exit-first-loop-alt-7.c: New test.
      	* gcc.dg/parloops-exit-first-loop-alt.c: Update comment.
      
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
      
      From-SVN: r225172
      Tom de Vries committed
    • Use max_loop_iterations in transform_to_exit_first_loop_alt · 4f75d608
      2015-06-30  Tom de Vries  <tom@codesourcery.com>
      
      	PR tree-optimization/66652
      	* tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
      	max_loop_iterations to determine if nit + 1 overflows.
      
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
      	using restrict pointers.
      	(main): Add arguments to calls to f.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
      
      	* gcc.dg/parloops-exit-first-loop-alt-pr66652.c: New test.
      	* gcc.dg/parloops-exit-first-loop-alt-3.c (f):  Rewrite using restrict
      	pointers.
      	* gcc.dg/parloops-exit-first-loop-alt.c: Same.
      
      From-SVN: r225162
      Tom de Vries committed
  18. 23 Jun, 2015 2 commits
  19. 19 Jun, 2015 2 commits
  20. 15 Jun, 2015 4 commits
    • Remove dg-options -O2 in libgomp.c · d7bfc710
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
      	dg-additional-options for any remaining options.
      	* testsuite/libgomp.c/atomic-2.c: Same.
      	* testsuite/libgomp.c/atomic-4.c: Same.
      	* testsuite/libgomp.c/atomic-5.c: Same.
      	* testsuite/libgomp.c/atomic-6.c: Same.
      	* testsuite/libgomp.c/autopar-1.c: Same.
      	* testsuite/libgomp.c/copyin-1.c: Same.
      	* testsuite/libgomp.c/copyin-2.c: Same.
      	* testsuite/libgomp.c/copyin-3.c: Same.
      	* testsuite/libgomp.c/examples-4/e.53.5.c: Same.
      	* testsuite/libgomp.c/nestedfn-5.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
      	* testsuite/libgomp.c/pr32362-1.c: Same.
      	* testsuite/libgomp.c/pr32362-2.c: Same.
      	* testsuite/libgomp.c/pr32362-3.c: Same.
      	* testsuite/libgomp.c/pr39591-1.c: Same.
      	* testsuite/libgomp.c/pr39591-2.c: Same.
      	* testsuite/libgomp.c/pr39591-3.c: Same.
      	* testsuite/libgomp.c/pr58392.c: Same.
      	* testsuite/libgomp.c/pr58756.c: Same.
      	* testsuite/libgomp.c/simd-1.c: Same.
      	* testsuite/libgomp.c/simd-10.c: Same.
      	* testsuite/libgomp.c/simd-11.c: Same.
      	* testsuite/libgomp.c/simd-12.c: Same.
      	* testsuite/libgomp.c/simd-13.c: Same.
      	* testsuite/libgomp.c/simd-14.c: Same.
      	* testsuite/libgomp.c/simd-15.c: Same.
      	* testsuite/libgomp.c/simd-2.c: Same.
      	* testsuite/libgomp.c/simd-3.c: Same.
      	* testsuite/libgomp.c/simd-4.c: Same.
      	* testsuite/libgomp.c/simd-5.c: Same.
      	* testsuite/libgomp.c/simd-6.c: Same.
      	* testsuite/libgomp.c/simd-7.c: Same.
      	* testsuite/libgomp.c/simd-8.c: Same.
      	* testsuite/libgomp.c/simd-9.c: Same.
      
      From-SVN: r224489
      Tom de Vries committed
    • Fix typo in libgomp/testsuite/libgomp.c/pr35625.c · fb5b5352
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/pr35625.c: Fix typo.
      
      From-SVN: r224483
      Tom de Vries committed
    • Remove -fopenmp in dg-options in libgomp.c · ca431bef
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
      	in dg-options.
      	* testsuite/libgomp.c/atomic-3.c: Same.
      	* testsuite/libgomp.c/debug-1.c: Same.
      	* testsuite/libgomp.c/nqueens-1.c: Same.
      	* testsuite/libgomp.c/pr26171.c: Same.
      	* testsuite/libgomp.c/pr48591.c: Same.
      	* testsuite/libgomp.c/pr64824.c: Same.
      	* testsuite/libgomp.c/pr64868.c: Same.
      	* testsuite/libgomp.c/pr66133.c: Same.
      	* testsuite/libgomp.c/pr66199-1.c: Same.
      	* testsuite/libgomp.c/pr66199-2.c: Same.
      	* testsuite/libgomp.c/target-8.c: Same.
      
      From-SVN: r224480
      Tom de Vries committed
    • Use dg-additional-options for -std={gnu99,c99} · 0d8a9e20
      2015-06-15  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
      	-std={gnu99,c99}.
      	* testsuite/libgomp.c/for-1.c: Same.
      	* testsuite/libgomp.c/for-2.c: Same.
      	* testsuite/libgomp.c/for-3.c: Same.
      	* testsuite/libgomp.c/pr35625.c: Same.
      	* testsuite/libgomp.c/pr39154.c: Same.
      	* testsuite/libgomp.c/simd-16.c: Same.
      	* testsuite/libgomp.c/simd-17.c: Same.
      
      From-SVN: r224479
      Tom de Vries committed
  21. 13 Jun, 2015 2 commits
    • Add gcc.dg/parloops-exit-first-loop-alt-4.c · a6860be9
      2015-06-13  Tom de Vries  <tom@codesourcery.com>
      
      	* gcc.dg/parloops-exit-first-loop-alt-4.c: New test.
      
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
      
      From-SVN: r224453
      Tom de Vries committed
    • Update parloops-exit-first-loop-alt{,-2,-3}.c · ab3306d2
      2015-06-13  Tom de Vries  <tom@codesourcery.com>
      
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
      	(N): Define.
      	(main): Use N instead of hardcoded constants.
      
      	* gcc.dg/parloops-exit-first-loop-alt-2.c: Add comment.
      	(main): Remove superfluous attributes.
      	* gcc.dg/parloops-exit-first-loop-alt-3.c: Same.
      	* gcc.dg/parloops-exit-first-loop-alt.c: Same.
      
      From-SVN: r224452
      Tom de Vries committed
  22. 05 Jun, 2015 2 commits
    • Add transform_to_exit_first_loop_alt · 7c82d827
      2015-06-05  Tom de Vries  <tom@codesourcery.com>
      
      	merge from gomp4 branch:
      	2015-05-28  Tom de Vries  <tom@codesourcery.com>
      
      	PR tree-optimization/65443
      	* tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
      	(replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
      	(try_transform_to_exit_first_loop_alt): New function.
      	(transform_to_exit_first_loop): Use
      	try_transform_to_exit_first_loop_alt.
      
      	* gcc.dg/parloops-exit-first-loop-alt-2.c: New test.
      	* gcc.dg/parloops-exit-first-loop-alt-3.c: New test.
      	* gcc.dg/parloops-exit-first-loop-alt.c: New test.
      
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
      	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
      
      From-SVN: r224154
      Tom de Vries committed
    • futex.h (futex_wait): Remove doouble initialization. · 6aa54a8b
      	* config/linux/x86/futex.h (futex_wait) [__x86_64__]:
      	Remove doouble initialization.
      
      From-SVN: r224150
      Uros Bizjak committed
  23. 29 May, 2015 1 commit
    • testsuite: auto-wipe dump files · c469078d
      gcc/testsuite/ChangeLog
      
      2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
      
      	* lib/gcc-dg.exp (cleanup-ipa-dump, cleanup-rtl-dump,
      	cleanup-tree-dump, cleanup-dump, cleanup-saved-temps): Remove.
      	Adjust all callers.
      	(schedule-cleanups, dg-keep-saved-temps): New proc.
      	(gcc-dg-test-1): Schedule cleanups.
      	* lib/profopt.exp (profopt-execute): Likewise.
      	* g++.dg/cdce3.C: Adjust expected line numbers.
      	* gcc.dg/cdce1.c: Likewise.
      	* gcc.dg/cdce2.c: Likewise.
      	* gcc.dg/strlenopt-22.c: Fix comment delimiter.
      	* gcc.dg/strlenopt-24.c: Likewise.
      	* gcc.dg/tree-ssa/vrp26.c: Likewise.
      	* gcc.dg/tree-ssa/vrp28.c: Likewise.
      	* obj-c++.dg/encode-2.mm: Likewise.
      
      libgomp/ChangeLog
      
      2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
      
      	* testsuite/libgomp.graphite/bounds.c: Adjust for
      	cleanup-tree-dump removal.
      	* testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
      	* testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
      	* testsuite/libgomp.graphite/pr41118.c: Likewise.
      
      
      gcc/ChangeLog
      
      2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
      
      	* config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
      	to cleanup-saved-temps.
      	* doc/sourcebuild.texi (Clean up generated test files): Expand
      	introduction.
      	(dg-keep-saved-temps): Document new proc.
      	(cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
      	cleanup-saved-temps): Remove.
      
      From-SVN: r223858
      Bernhard Reutner-Fischer committed