1. 03 Jul, 2017 1 commit
  2. 27 Jun, 2017 2 commits
    • Show value of GOMP_OPENACC_DIM in libgomp nvptx plugin · dfb15f6b
      2017-06-27  Tom de Vries  <tom@codesourcery.com>
      
      	* plugin/plugin-nvptx.c (notify_var): New function.
      	(nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
      
      From-SVN: r249695
      Tom de Vries committed
    • Use secure_getenv for GOMP_DEBUG · 22f1a037
      2017-06-27  Tom de Vries  <tom@codesourcery.com>
      
      	* env.c (parse_unsigned_long_1): Factor out of ...
      	(parse_unsigned_long): ... here.
      	(parse_int_1): Factor out of ...
      	(parse_int): ... here.
      	(parse_int_secure): New function.
      	(initialize_env): Use parse_int_secure for GOMP_DEBUG.
      	* secure_getenv.h: Factor out of ...
      	* plugin/plugin-hsa.c: ... here.
      	* testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
      
      From-SVN: r249694
      Tom de Vries committed
  3. 21 Jun, 2017 1 commit
  4. 17 Jun, 2017 1 commit
    • Get rid of dg-skip-if etc. default args · 4f4b0ab8
      	libstdc++-v3:
      	* testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
      	default args.
      
      	libgomp:
      	* testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
      	default args.
      	* testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
      	dg-xfail-run-if default args.
      
      	gcc/testsuite:
      	Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if default args.
      
      From-SVN: r249339
      Rainer Orth committed
  5. 02 Jun, 2017 1 commit
    • invoke.texi: Document the -Wsizeof-pointer-div warning. · 40ffd95f
      gcc:
      2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
      
      gcc/c-family:
      2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c.opt (Wsizeof-pointer-div): New warning option.
      
      gcc/c:
      2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c-parser.c (c_parser_binary_expression): Implement the
              -Wsizeof_pointer_div warning.
              (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
              from a parenthesized expression.
              (c_parser_expr_list): Use c_last_sizeof_loc.
              * c-tree.h (c_last_sizeof_loc): New external.
              * c-typeck.c (c_last_sizeof_loc): New variable.
              (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
      
      gcc/cp:
      2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * typeck.c (cp_build_binary_op): Implement the -Wsizeof_pointer_div
              warning.
      
      gcc/testsuite:
      2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              * c-c++-common/Wsizeof-pointer-div.c: New test. 
              * gcc.dg/Wsizeof-pointer-memaccess1.c: Add test cases with parens.
              * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Likewise.
              * gcc.target/i386/sse-init-v4hi-1.c: Fix test case.
              * gcc.target/i386/sse-init-v4sf-1.c: Likewise.
              * gcc.target/i386/sse-set-ps-1.c: Likewise.
              * gcc.target/i386/sse2-init-v16qi-1.c: Likewise.
              * gcc.target/i386/sse2-init-v2di-1.c: Likewise.
              * gcc.target/i386/sse2-init-v4si-1.c: Likewise.
              * gcc.target/i386/sse2-init-v8hi-1.c: Likewise.
              * gcc.target/i386/sse2-set-epi32-1.c: Likewise.
              * gcc.target/i386/sse2-set-epi64x-1.c: Likewise.
              * gcc.target/i386/sse4_1-init-v16qi-1.c: Likewise.
              * gcc.target/i386/sse4_1-init-v2di-1.c: Likewise.
              * gcc.target/i386/sse4_1-init-v4sf-1.c: Likewise.
              * gcc.target/i386/sse4_1-init-v4si-1.c: Likewise.
              * gcc.target/i386/sse4_1-set-epi32-1.c: Likewise.
              * gcc.target/i386/sse4_1-set-epi64x-1.c: Likewise.
              * gcc.target/i386/sse4_1-set-ps-1.c: Likewise.
              * libgomp.c/pr39591-2.c: Likewise.
              * libgomp.c/pr39591-3.c: Likewise.
      
      From-SVN: r248811
      Bernd Edlinger committed
  6. 30 May, 2017 1 commit
  7. 24 May, 2017 5 commits
    • OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all · 7ce64403
      	libgomp/
      	* openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
      	* libgomp.map (OACC_2.0.1): Add these.
      	* oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
      	for "acc_wait", and "acc_wait_all", respectively.
      	* openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
      	for "acc_wait", and "acc_wait_all", respectively.
      	* openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
      	* libgomp.texi (acc_wait, acc_wait_all): Update.
      	* testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
      	* testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
      	* testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
      
      From-SVN: r248413
      Thomas Schwinge committed
    • Fortran OpenACC "openacc_lib.h": acc_pcopyin, acc_pcreate · 318686c2
      	libgomp/
      	* openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
      	acc_present_or_copyin and acc_present_or_create procedures,
      	respectively.
      	* testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
      	generally different variants of OpenACC Runtime Library functions.
      	* testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
      
      From-SVN: r248412
      Thomas Schwinge committed
    • Translate libgomp.oacc-c-c++-common/lib-32.c into Fortran · a6745534
      	libgomp/
      	* testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
      	* testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
      
      From-SVN: r248411
      Thomas Schwinge committed
    • C/C++ OpenACC: acc_pcopyin, acc_pcreate · 9b94fbc7
      	libgomp/
      	* openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
      	of preprocessor definitions.
      	* libgomp.h (strong_alias): Guard by "#ifdef
      	HAVE_ATTRIBUTE_ALIAS".
      	* oacc-mem.c: Provide "acc_pcreate" as alias for
      	"acc_present_or_create", and "acc_pcopyin" as alias for
      	"acc_present_or_copyin".
      	* libgomp.map: New version "OACC_2.0.1".
      	(OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
      	* testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
      	its content into...
      	* testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
      	Extend testing.
      
      From-SVN: r248410
      Thomas Schwinge committed
    • libgomp nvptx plugin: Debugging output when disabling nvptx offloading · 78672bd8
      	libgomp/
      	* plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
      	when disabling nvptx offloading.
      
      From-SVN: r248400
      Thomas Schwinge committed
  8. 23 May, 2017 2 commits
    • OpenACC 2.5 kernels construct: num_gangs, num_workers, vector_length clauses · fd71a9a2
      	gcc/c/
      	* c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
      	"PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
      	"VECTOR_LENGTH".
      	gcc/cp/
      	* parser.c (OACC_KERNELS_CLAUSE_MASK): Add
      	"PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
      	"VECTOR_LENGTH".
      	gcc/fortran/
      	* openmp.c (OACC_KERNELS_CLAUSES): Add "OMP_CLAUSE_NUM_GANGS",
      	"OMP_CLAUSE_NUM_WORKERS", "OMP_CLAUSE_VECTOR_LENGTH".
      	gcc/
      	* omp-offload.c (execute_oacc_device_lower): Remove the
      	parallelism dimensions function attributes for unparallelized
      	OpenACC kernels constructs.
      	gcc/testsuite/
      	* c-c++-common/goacc/parallel-dims-1.c: Update.
      	* c-c++-common/goacc/parallel-dims-2.c: Likewise.
      	* c-c++-common/goacc/routine-1.c: Likewise.
      	* c-c++-common/goacc/uninit-dim-clause.c: Likewise.
      	* g++.dg/goacc/template.C: Likewise.
      	* gfortran.dg/goacc/kernels-tree.f95: Likewise.
      	* gfortran.dg/goacc/routine-3.f90: Likewise.
      	* gfortran.dg/goacc/sie.f95: Likewise.
      	* gfortran.dg/goacc/uninit-dim-clause.f95: Likewise.
      	libgomp/
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
      	* testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
      	* testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
      
      From-SVN: r248370
      Thomas Schwinge committed
    • Runtime checking of OpenACC parallelism dimensions clauses · 0c36d0d5
      	libgomp/
      	* testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
      	* testsuite/lib/libgomp.exp
      	(check_effective_target_openacc_nvidia_accel_configured): New
      	proc.
      	* testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
      	(check_effective_target_c++): New procs.
      	* testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
      	(check_effective_target_c++): Likewise.
      
      From-SVN: r248358
      Thomas Schwinge committed
  9. 22 May, 2017 3 commits
  10. 19 May, 2017 2 commits
    • OpenACC 2.5 default (present) clause · 7fd549d2
      	gcc/c/
      	* c-parser.c (c_parser_omp_clause_default): Handle
      	"OMP_CLAUSE_DEFAULT_PRESENT".
      	gcc/cp/
      	* parser.c (cp_parser_omp_clause_default): Handle
      	"OMP_CLAUSE_DEFAULT_PRESENT".
      	gcc/fortran/
      	* gfortran.h (enum gfc_omp_default_sharing): Add
      	"OMP_DEFAULT_PRESENT".
      	* dump-parse-tree.c (show_omp_clauses): Handle it.
      	* openmp.c (gfc_match_omp_clauses): Likewise.
      	* trans-openmp.c (gfc_trans_omp_clauses): Likewise.
      	gcc/
      	* tree-core.h (enum omp_clause_default_kind): Add
      	"OMP_CLAUSE_DEFAULT_PRESENT".
      	* tree-pretty-print.c (dump_omp_clause): Handle it.
      	* gimplify.c (enum gimplify_omp_var_data): Add
      	"GOVD_MAP_FORCE_PRESENT".
      	(gimplify_adjust_omp_clauses_1): Map it to
      	"GOMP_MAP_FORCE_PRESENT".
      	(oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
      	gcc/testsuite/
      	* c-c++-common/goacc/default-1.c: Update.
      	* c-c++-common/goacc/default-2.c: Likewise.
      	* c-c++-common/goacc/default-4.c: Likewise.
      	* gfortran.dg/goacc/default-1.f95: Likewise.
      	* gfortran.dg/goacc/default-4.f: Likewise.
      	* c-c++-common/goacc/default-5.c: New file.
      	* gfortran.dg/goacc/default-5.f: Likewise.
      	libgomp/
      	* testsuite/libgomp.oacc-c++/template-reduction.C: Update.
      	* testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
      	* testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
      	* testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
      	* testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
      
      From-SVN: r248280
      Thomas Schwinge committed
    • libgomp hsa plugin: debug output for HSA runtime library loading failure · 0da2f96a
      	libgomp/
      	* plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
      	Debug output for failure.
      
      From-SVN: r248277
      Thomas Schwinge committed
  11. 12 May, 2017 1 commit
    • Load new scanlang.exp · 62ffe920
      	libitm:
      	* testsuite/lib/libitm.exp: Load scanlang.exp.
      
      	libgomp:
      	* testsuite/lib/libgomp.exp: Load scanlang.exp.
      
      	libatomic:
      	* testsuite/lib/libatomic.exp: Load scanlang.exp.
      
      From-SVN: r247959
      Rainer Orth committed
  12. 27 Apr, 2017 1 commit
  13. 20 Apr, 2017 1 commit
  14. 13 Apr, 2017 1 commit
  15. 11 Apr, 2017 1 commit
  16. 04 Apr, 2017 1 commit
    • re PR libgomp/79876 (FAIL: libgomp.fortran/strassen.f90 -O execution test on… · c4060df4
      re PR libgomp/79876 (FAIL: libgomp.fortran/strassen.f90   -O  execution test on x86_64-apple-darwin16)
      
      	PR libgomp/79876
      	* config/posix/thread-stacksize.h: New file.
      	* config/darwin/thread-stacksize.h: New file.
      	* config/nvptx/thread-stacksize.h: New file.
      	* env.c: Include thread-stacksize.h.
      	(initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
      	instead of 0.  Call pthread_attr_setstacksize even if
      	GOMP_DEFAULT_STACKSIZE is non-zero.
      
      From-SVN: r246675
      Jakub Jelinek committed
  17. 30 Mar, 2017 1 commit
  18. 22 Mar, 2017 1 commit
  19. 08 Mar, 2017 1 commit
  20. 15 Feb, 2017 1 commit
  21. 11 Feb, 2017 1 commit
  22. 09 Feb, 2017 3 commits
    • loop-dim-default.c: Move dg-skip-if directive into a comment. · 1bbe0d8f
      	* testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
      	dg-skip-if directive into a comment.
      
      From-SVN: r245301
      Jakub Jelinek committed
    • gimplify.c (gimplify_scan_omp_clauses): No special handling for OMP_CLAUSE_TILE. · 02889d23
      2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
      	    Cesar Philippidis  <cesar@codesourcery.com>
      	    Joseph Myers  <joseph@codesourcery.com>
      	    Chung-Lin Tang  <cltang@codesourcery.com>
      
      	gcc/
      	* gimplify.c (gimplify_scan_omp_clauses): No special handling for
      	OMP_CLAUSE_TILE.
      	(gimplify_adjust_omp_clauses): Don't delete TILE.
      	(gimplify_omp_for): Deal with TILE.
      	* internal-fn.c (expand_GOACC_TILE): New function.
      	* internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
      	(GOACC_TILE): New.
      	* omp-expand.c (struct oacc_collapse): Add tile and outer fields.
      	(expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
      	element fields.
      	(expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
      	avoid DIV for outermost collapse var.
      	(expand_oacc_for): Insert tile element loop as needed.  Adjust.
      	Remove out of date comments, fix whitespace.
      	* omp-general.c (omp_extract_for_data): Deal with tiling.
      	* omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
      	adjust OLF_DIM_BASE value.
      	(struct omp_for_data): Add tiling field.
      	* omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
      	(lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
      	for auto loops.  Remove default auto determining, moved to
      	oacc_loop_fixed_partitions.
      	* omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
      	stmts, add e_mask field.
      	(oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
      	(oacc_thread_numbers): Use oacc_dim_call.
      	(oacc_xform_tile): New.
      	(new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
      	(finish_oacc_loop): Adjust for ifns vector.
      	(oacc_loop_discover_walk): Append loop abstraction sites to list,
      	add case for GOACC_TILE fns.
      	(oacc_loop_xform_loop): Delete.
      	(oacc_loop_process): Iterate over call list directly, and add
      	handling for GOACC_TILE fns.
      	(oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
      	dump partitioning.
      	(oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
      	vector partitioning to outer loops.  Assign 2 partitions to loops
      	when available. Add TILE handling.
      	(oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
      	(execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
      	* tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
      	* tree.c (omp_clause_num_ops): Adjust TILE ops.
      	* tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
      
      	gcc/c/
      	* c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
      	(c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
      	semantic checking.
      	* c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
      
      	gcc/cp/
      	* parser.c (cp_parser_oacc_clause_tile): Disallow collapse.  Fix
      	parsing.  Parse constant expression. Remove semantic checking.
      	(cp_parser_omp_clause_collapse): Disallow tile.
      	(cp_parser_omp_for_loop): Deal with tile clause.  Don't emit a parse
      	error about missing for after already emitting one.  Use more
      	conventional for idiom for unbounded loop.
      	* pt.c (tsubst_omp_clauses): Handle OMP_CLAUSE_TILE.
      	* semantics.c (finish_omp_clauses): Correct TILE semantic check.
      	(finish_omp_for): Deal with tile clause.
      
      	gcc/fortran/
      	* openmp.c (resolve_omp_clauses): Error on directives
      	containing both tile and collapse clauses.
      	(resolve_oacc_loop_blocks): Represent '*' tile arguments as zero.
      	* trans-openmp.c (gfc_trans_omp_do): Lower tiled loops like
      	collapsed loops.
      
      	gcc/testsuite/
      	* c-c++-common/goacc/combined-directives.c: Remove xfail.
      	* c-c++-common/goacc/loop-auto-1.c: Adjust and add additional case.
      	* c-c++-common/goacc/loop-auto-2.c: New.
      	* c-c++-common/goacc/tile.c: Include stdbool, fix expected errors.
      	* c-c++-common/goacc/tile-2.c: New.
      	* g++.dg/goacc/template.C: Test tile subst.  Adjust erroneous uses.
      	* g++.dg/goacc/tile-1.C: New, check tile subst.
      	* gcc.dg/goacc/loop-processing-1.c: Adjust dg-final pattern.
      	* gfortran.dg/goacc/combined-directives.f90: Remove xfail.
      	* gfortran.dg/goacc/tile-1.f90: New test.
      	* gfortran.dg/goacc/tile-2.f90: New test.
      	* gfortran.dg/goacc/tile-lowering.f95: New test.
      
      	libgomp/
      	* testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
      	* testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
      	add additional case.
      	* testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
      	"openacc_nvidia_accel_selected".
      	* libgomp.oacc-fortran/nested-function-1.f90 (test2):
      	Add num_workers(8) clause.
      
      From-SVN: r245300
      Chung-Lin Tang committed
    • loop-dim-default.c: Skip on hppa*-*-*. · 5896a41d
      	* testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
      	hppa*-*-*.
      	* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
      	include complex.h on hppa*-*-hpux*.
      	* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
      
      From-SVN: r245292
      John David Anglin committed
  23. 02 Feb, 2017 2 commits
  24. 31 Jan, 2017 1 commit
    • libgomp: Provide prototypes for functions implemented by libgomp plugins · dced339c
      	libgomp/
      	* libgomp-plugin.h: #include <stdbool.h>.
      	(GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
      	(GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
      	(GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
      	(GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
      	(GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
      	(GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
      	(GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
      	(GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
      	(GOMP_OFFLOAD_openacc_register_async_cleanup)
      	(GOMP_OFFLOAD_openacc_async_test)
      	(GOMP_OFFLOAD_openacc_async_test_all)
      	(GOMP_OFFLOAD_openacc_async_wait)
      	(GOMP_OFFLOAD_openacc_async_wait_async)
      	(GOMP_OFFLOAD_openacc_async_wait_all)
      	(GOMP_OFFLOAD_openacc_async_wait_all_async)
      	(GOMP_OFFLOAD_openacc_async_set_async)
      	(GOMP_OFFLOAD_openacc_create_thread_data)
      	(GOMP_OFFLOAD_openacc_destroy_thread_data)
      	(GOMP_OFFLOAD_openacc_get_current_cuda_device)
      	(GOMP_OFFLOAD_openacc_get_current_cuda_context)
      	(GOMP_OFFLOAD_openacc_get_cuda_stream)
      	(GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
      	* libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
      	these.
      	* plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
      	(GOMP_OFFLOAD_unload_image): Fix argument types.
      	liboffloadmic/
      	* plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_type): Fix
      	return type.
      	(GOMP_OFFLOAD_load_image): Fix argument types.
      
      From-SVN: r245062
      Thomas Schwinge committed
  25. 26 Jan, 2017 2 commits
  26. 24 Jan, 2017 1 commit
    • Brig front-end · 5fd1486c
      2017-01-24  Pekka Jääskeläinen <pekka@parmance.com>
      	    Martin Jambor  <mjambor@suse.cz>
      
      	* Makefile.def (target_modules): Added libhsail-rt.
      	(languages): Added language brig.
      	* Makefile.in: Regenerated.
      	* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Added
      	tgarget-libhsail-rt.  Make brig unsupported on untested architectures.
      	* configure: Regenerated.
      
      gcc/
      	* brig-builtins.def: New file.
      	* builtins.def (DEF_HSAIL_BUILTIN): New macro.
      	(DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
      	(DEF_HSAIL_SAT_BUILTIN): Likewise.
      	(DEF_HSAIL_INTR_BUILTIN): Likewise.
      	(DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
      	* builtin-types.def (BT_INT8): New.
      	(BT_INT16): Likewise.
      	(BT_UINT8): Likewise.
      	(BT_UINT16): Likewise.
      	(BT_FN_ULONG): Likewise.
      	(BT_FN_UINT_INT): Likewise.
      	(BT_FN_UINT_ULONG): Likewise.
      	(BT_FN_UINT_LONG): Likewise.
      	(BT_FN_UINT_PTR): Likewise.
      	(BT_FN_ULONG_PTR): Likewise.
      	(BT_FN_INT8_FLOAT): Likewise.
      	(BT_FN_INT16_FLOAT): Likewise.
      	(BT_FN_UINT32_FLOAT): Likewise.
      	(BT_FN_UINT16_FLOAT): Likewise.
      	(BT_FN_UINT8_FLOAT): Likewise.
      	(BT_FN_UINT64_FLOAT): Likewise.
      	(BT_FN_UINT16_UINT32): Likewise.
      	(BT_FN_UINT32_UINT16): Likewise.
      	(BT_FN_UINT16_UINT16_UINT16): Likewise.
      	(BT_FN_INT_PTR_INT): Likewise.
      	(BT_FN_UINT_PTR_UINT): Likewise.
      	(BT_FN_LONG_PTR_LONG): Likewise.
      	(BT_FN_ULONG_PTR_ULONG): Likewise.
      	(BT_FN_VOID_UINT64_UINT64): Likewise.
      	(BT_FN_UINT8_UINT8_UINT8): Likewise.
      	(BT_FN_INT8_INT8_INT8): Likewise.
      	(BT_FN_INT16_INT16_INT16): Likewise.
      	(BT_FN_INT_INT_INT): Likewise.
      	(BT_FN_UINT_FLOAT_UINT): Likewise.
      	(BT_FN_FLOAT_UINT_UINT): Likewise.
      	(BT_FN_ULONG_UINT_UINT): Likewise.
      	(BT_FN_ULONG_UINT_PTR): Likewise.
      	(BT_FN_ULONG_ULONG_ULONG): Likewise.
      	(BT_FN_UINT_UINT_UINT): Likewise.
      	(BT_FN_VOID_UINT_PTR): Likewise.
      	(BT_FN_UINT_UINT_PTR: Likewise.
      	(BT_FN_UINT32_UINT64_PTR): Likewise.
      	(BT_FN_INT_INT_UINT_UINT): Likewise.
      	(BT_FN_UINT_UINT_UINT_UINT): Likewise.
      	(BT_FN_UINT_UINT_UINT_PTR): Likewise.
      	(BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
      	(BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
      	(BT_FN_LONG_LONG_UINT_UINT): Likewise.
      	(BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
      	(BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
      	(BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
      	(BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
      	(BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
      	(BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
      	* doc/frontends.texi: List BRIG FE.
      	* doc/install.texi (Testing): Add BRIG tesring requirements.
      	* doc/invoke.texi (Overall Options): Mention BRIG.
      	* doc/standards.texi (Standards): Doucment BRIG HSA version.
      
      gcc/brig/
      
      	* Make-lang.in: New file.
      	* brig-builtins.h: Likewise.
      	* brig-c.h: Likewise.
      	* brig-lang.c: Likewise.
      	* brigspec.c: Likewise.
      	* config-lang.in: Likewise.
      	* lang-specs.h: Likewise.
      	* lang.opt: Likewise.
      	* brigfrontend/brig-arg-block-handler.cc: Likewise.
      	* brigfrontend/brig-atomic-inst-handler.cc: Likewise.
      	* brigfrontend/brig-basic-inst-handler.cc: Likewise.
      	* brigfrontend/brig-branch-inst-handler.cc: Likewise.
      	* brigfrontend/brig-cmp-inst-handler.cc: Likewise.
      	* brigfrontend/brig-code-entry-handler.cc: Likewise.
      	* brigfrontend/brig-code-entry-handler.h: Likewise.
      	* brigfrontend/brig-comment-handler.cc: Likewise.
      	* brigfrontend/brig-control-handler.cc: Likewise.
      	* brigfrontend/brig-copy-move-inst-handler.cc: Likewise.
      	* brigfrontend/brig-cvt-inst-handler.cc: Likewise.
      	* brigfrontend/brig-fbarrier-handler.cc: Likewise.
      	* brigfrontend/brig-function-handler.cc: Likewise.
      	* brigfrontend/brig-function.cc: Likewise.
      	* brigfrontend/brig-function.h: Likewise.
      	* brigfrontend/brig-inst-mod-handler.cc: Likewise.
      	* brigfrontend/brig-label-handler.cc: Likewise.
      	* brigfrontend/brig-lane-inst-handler.cc: Likewise.
      	* brigfrontend/brig-machine.c: Likewise.
      	* brigfrontend/brig-machine.h: Likewise.
      	* brigfrontend/brig-mem-inst-handler.cc: Likewise.
      	* brigfrontend/brig-module-handler.cc: Likewise.
      	* brigfrontend/brig-queue-inst-handler.cc: Likewise.
      	* brigfrontend/brig-seg-inst-handler.cc: Likewise.
      	* brigfrontend/brig-signal-inst-handler.cc: Likewise.
      	* brigfrontend/brig-to-generic.cc: Likewise.
      	* brigfrontend/brig-to-generic.h: Likewise.
      	* brigfrontend/brig-util.cc: Likewise.
      	* brigfrontend/brig-util.h: Likewise.
      	* brigfrontend/brig-variable-handler.cc: Likewise.
      	* brigfrontend/phsa.h: Likewise.
      
      
      gcc/testsuite/
      
      	* lib/brig-dg.exp: New file.
      	* lib/brig.exp: Likewise.
      	* brig.dg/README: Likewise.
      	* brig.dg/dg.exp: Likewise.
      	* brig.dg/test/gimple/alloca.hsail: Likewise.
      	* brig.dg/test/gimple/atomics.hsail: Likewise.
      	* brig.dg/test/gimple/branches.hsail: Likewise.
      	* brig.dg/test/gimple/fbarrier.hsail: Likewise.
      	* brig.dg/test/gimple/function_calls.hsail: Likewise.
      	* brig.dg/test/gimple/kernarg.hsail: Likewise.
      	* brig.dg/test/gimple/mem.hsail: Likewise.
      	* brig.dg/test/gimple/mulhi.hsail: Likewise.
      	* brig.dg/test/gimple/packed.hsail: Likewise.
      	* brig.dg/test/gimple/smoke_test.hsail: Likewise.
      	* brig.dg/test/gimple/variables.hsail: Likewise.
      	* brig.dg/test/gimple/vector.hsail: Likewise.
      
      include/
      
      	* hsa.h: Moved here from libgomp/plugin/hsa.h.
      
      libgomp/
      
      	* plugin/hsa.h: Moved to top level include.
      	* plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
      
      libhsail-rt/
      
      	* Makefile.am: New file.
      	* target-config.h.in: Likewise.
      	* configure.ac: Likewise.
      	* configure: Likewise.
      	* config.h.in: Likewise.
      	* aclocal.m4: Likewise.
      	* README: Likewise.
      	* Makefile.in: Likewise.
      	* include/internal/fibers.h: Likewise.
      	* include/internal/phsa-queue-interface.h: Likewise.
      	* include/internal/phsa-rt.h: Likewise.
      	* include/internal/workitems.h: Likewise.
      	* rt/arithmetic.c: Likewise.
      	* rt/atomics.c: Likewise.
      	* rt/bitstring.c: Likewise.
      	* rt/fbarrier.c: Likewise.
      	* rt/fibers.c: Likewise.
      	* rt/fp16.c: Likewise.
      	* rt/misc.c: Likewise.
      	* rt/multimedia.c: Likewise.
      	* rt/queue.c: Likewise.
      	* rt/sat_arithmetic.c: Likewise.
      	* rt/segment.c: Likewise.
      	* rt/workitems.c: Likewise.
      
      
      Co-Authored-By: Martin Jambor <mjambor@suse.cz>
      
      From-SVN: r244867
      Pekka Jääskeläinen committed
  27. 21 Jan, 2017 1 commit
    • re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · 73aa401e
      	PR other/79046
      libatomic/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libffi/
      	* configure.ac: Add GCC_BASE_VER.
      	* include/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* configure: Regenerated.
      	* testsuite/Makefile.in: Regenerated.
      	* include/Makefile.in: Regenerated.
      	* Makefile.in: Regenerated.
      	* man/Makefile.in: Regenerated.
      libgomp/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libitm/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libmpx/
      	* mpxrt/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* mpxwrap/Makefile.am (gcc_version): Likewise.
      	* mpxrt/Makefile.in: Regenerated.
      	* mpxwrap/Makefile.in: Regenerated.
      liboffloadmic/
      	* plugin/configure.ac: Add GCC_BASE_VER.
      	* plugin/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* plugin/configure: Regenerated.
      	* plugin/aclocal.m4: Regenerated.
      	* plugin/Makefile.in: Regenerated.
      libsanitizer/
      	* interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
      	instead of cat to get version from BASE-VER file.
      	* asan/Makefile.am (gcc_version): Likewise.
      	* ubsan/Makefile.am (gcc_version): Likewise.
      	* sanitizer_common/Makefile.am (gcc_version): Likewise.
      	* lsan/Makefile.am (gcc_version): Likewise.
      	* tsan/Makefile.am (gcc_version): Likewise.
      	* interception/Makefile.in: Regenerated.
      	* asan/Makefile.in: Regenerated.
      	* ubsan/Makefile.in: Regenerated.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* lsan/Makefile.in: Regenerated.
      	* tsan/Makefile.in: Regenerated.
      libvtv/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r244742
      Jakub Jelinek committed