[committed][PR65107] Add missing cleanup in gfortran.dg/read_eof_8.f90

2015-02-18 Thread Tom de Vries
the test directories. Committed as trivial. Thanks, - Tom 2015-02-18 Tom de Vries PR testsuite/65107 * gfortran.dg/read_eof_8.f90: Add missing close. gcc/testsuite/gfortran.dg/read_eof_8.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gfortran.dg/read_eof_8.f90 b

[committed] Add missing cleanup in gfortran.dg/fmt_cache_1.f

2015-02-18 Thread Tom de Vries
directory. Committed as obvious. Thanks, - Tom 2015-02-18 Tom de Vries * gfortran.dg/fmt_cache_1.f: Add missing close. --- gcc/testsuite/gfortran.dg/fmt_cache_1.f | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gfortran.dg/fmt_cache_1.f b/gcc/testsuite/gfortran.dg/fmt_cache_1.f ind

[committed] Add missing cleanup in gfortran.dg/finalize_28.f90

2015-02-18 Thread Tom de Vries
Hi, I found finalize_28.f90.003t.original in a gfortran test directory. This patch adds the missing cleanup-tree-dump. Tested by running the test-case and checking that the file does not occur anymore in the test directory. Committed as obvious. Thanks, - Tom 2015-02-18 Tom de Vries

[committed] Add missing cleanup in gfortran.dg/pr37287-1.f90

2015-02-18 Thread Tom de Vries
Tom de Vries * gfortran.dg/pr37287-1.f90: Add missing cleanup-modules. --- gcc/testsuite/gfortran.dg/pr37287-1.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gfortran.dg/pr37287-1.f90 b/gcc/testsuite/gfortran.dg/pr37287-1.f90 index c2d42e6..ca8b879 100644 --- a/gcc

[committed] Add missing cleanup in gfortran.dg/coarray_35a.f90

2015-02-18 Thread Tom de Vries
2015-02-18 Tom de Vries * gfortran.dg/coarray_35a.f90: Add missing cleanup-modules. --- gcc/testsuite/gfortran.dg/coarray_35a.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gfortran.dg/coarray_35a.f90 b/gcc/testsuite/gfortran.dg/coarray_35a.f90 index eeeb289..1b954a9

Re: [Patch] Add option ftree-stdarg-opt

2015-02-18 Thread Tom de Vries
On 17-02-15 13:26, Richard Biener wrote: On Tue, Feb 17, 2015 at 1:12 PM, Tom de Vries wrote: Hi, this patch adds option ftree-stdarg-opt, which switches pass_stdarg on or off. Pass_stdarg does an optimization on cfun->va_list_gpr/fpr_size, and since it's an optimization, it's

[stage1] Postpone expanding va_arg until pass_stdarg

2015-02-19 Thread Tom de Vries
Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va_list_gpr_fpr_size-out-of-pass_std.patch - 0004-Handle-internal_fn-in-operand_equal_p.patch - 0005-Postpone-expanding-va_arg-

[PATCH][1/5] Disable lang_hooks.gimplify_expr in free_lang_data

2015-02-19 Thread Tom de Vries
On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va_list_gpr_fpr_size-out-of-pass_std.patch - 0004-Handle-internal_

[PATCH][2/5] Add gimple_find_sub_bbs

2015-02-19 Thread Tom de Vries
On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va_list_gpr_fpr_size-out-of-pass_std.patch - 0004-Handle-internal_

[PATCH][3/5] Factor optimize_va_list_gpr_fpr_size out of pass_stdarg::execute

2015-02-19 Thread Tom de Vries
On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va_list_gpr_fpr_size-out-of-pass_std.patch - 0004-Handle-internal_

[PATCH][4/5] Handle internal_fn in operand_equal_p

2015-02-19 Thread Tom de Vries
On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va_list_gpr_fpr_size-out-of-pass_std.patch - 0004-Handle-internal_

[PATCH][5/5] Postpone expanding va_arg until pass_stdarg

2015-02-19 Thread Tom de Vries
On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va_list_gpr_fpr_size-out-of-pass_std.patch - 0004-Handle-internal_

Re: [PATCH][4/5] Handle internal_fn in operand_equal_p

2015-02-19 Thread Tom de Vries
On 19-02-15 14:07, Richard Biener wrote: On Thu, 19 Feb 2015, Jakub Jelinek wrote: On Thu, Feb 19, 2015 at 01:44:46PM +0100, Richard Biener wrote: I'd call it a bug though, and we do have internal fns in generic already thus the issue is latent (with ubsan at least). Which means ok for trunk

[PATCH][testsuite] Abort on failure in gcc.dg/pr30957-1.c

2015-02-20 Thread Tom de Vries
Hi, this patch reverses the abort logic in pr30957-1.c, such that it aborts on failure rather than on success. OK for stage4? Thanks, - Tom 2015-02-20 Tom de Vries * gcc.dg/pr30957-1.c (main): Abort on failure. --- gcc/testsuite/gcc.dg/pr30957-1.c | 6 +++--- 1 file changed, 3

Re: [PATCH][testsuite] Abort on failure in gcc.dg/pr30957-1.c

2015-02-20 Thread Tom de Vries
On 20-02-15 10:42, Jakub Jelinek wrote: On Fri, Feb 20, 2015 at 10:25:54AM +0100, Tom de Vries wrote: this patch reverses the abort logic in pr30957-1.c, such that it aborts on failure rather than on success. That sounds really weird. From the description it looks like it is a known bug that

Re: [PATCH][testsuite] Abort on failure in gcc.dg/pr30957-1.c

2015-02-22 Thread Tom de Vries
On 20-02-15 20:18, Mike Stump wrote: On Feb 20, 2015, at 4:36 AM, Tom de Vries wrote: On 20-02-15 10:42, Jakub Jelinek wrote: On Fri, Feb 20, 2015 at 10:25:54AM +0100, Tom de Vries wrote: this patch reverses the abort logic in pr30957-1.c, such that it aborts on failure rather than on

Re: [PATCH][2/5] Add gimple_find_sub_bbs

2015-02-22 Thread Tom de Vries
On 19-02-15 13:41, Richard Biener wrote: On Thu, 19 Feb 2015, Tom de Vries wrote: On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-F

Re: [PATCH][4/5] Handle internal_fn in operand_equal_p

2015-02-22 Thread Tom de Vries
On 20-02-15 12:54, Richard Biener wrote: On Thu, 19 Feb 2015, Tom de Vries wrote: On 19-02-15 14:07, Richard Biener wrote: On Thu, 19 Feb 2015, Jakub Jelinek wrote: On Thu, Feb 19, 2015 at 01:44:46PM +0100, Richard Biener wrote: I'd call it a bug though, and we do have internal f

Re: [PATCH][5/5] Postpone expanding va_arg until pass_stdarg

2015-02-22 Thread Tom de Vries
On 19-02-15 14:03, Richard Biener wrote: On Thu, 19 Feb 2015, Tom de Vries wrote: On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-F

[committed][ada] Fix warning in 'Loop Statements' in gnat-style.texi

2015-02-22 Thread Tom de Vries
Hi, Committed this warning fix as obvious. Thanks, - Tom 2015-02-22 Tom de Vries * gnat-style.texi (@subsection Loop Statements): Replace @noindent by @item, and fix warning '@itemize has text but no @item'. --- gcc/ada/gnat-style.texi | 2 +- 1 file changed, 1 insertion(+),

[PATCH] Fix warnings from including fdl.texi into gnat-style.texi

2015-02-22 Thread Tom de Vries
ion License' in menu but not in sectioning ... Attached patch fixes these. Ok for stage4? Thanks, - Tom 2015-02-22 Tom de Vries PR ada/65102 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode ifdef to allow disabling default @node GNU Free Documentation License. *

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Tom de Vries
On 20-02-15 10:17, Arnaud Charlet wrote: Tested on x86_64-pc-linux-gnu, committed on trunk. 2015-02-20 Arnaud Charlet * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from sphinx in the doc directory. * doc: New directory containing sphinx versions of gn

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Tom de Vries
On 22-02-15 19:04, Arnaud Charlet wrote: 2015-02-20 Arnaud Charlet * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from sphinx in the doc directory. * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn Hi, I'm obser

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Tom de Vries
On 22-02-15 20:15, Arnaud Charlet wrote: Well OK but these are automatically generated now, and this doesn't really answer my question about the documentation of @dircategory. I didn't see a question here: ... As for the @dircategory I do not know, I couldn't find a proper documentation for thi

[PATCH, PR65126, testsuite] Add additional_sources_used

2015-02-22 Thread Tom de Vries
this patch, after running test I no longer find the leftover files in the test directories. Build and reg-tested on x86_64. OK for stage4? Thanks, - Tom 2015-02-22 Tom de Vries * lib/gcc-defs.exp (additional_sources_used): Add new var. (dg-additional-files-options): Copy additional_sources

Re: [Ada] convert GNAT doc to sphinx

2015-02-23 Thread Tom de Vries
On 22-02-15 21:48, Arnaud Charlet wrote: I didn't see a question here: ... As for the @dircategory I do not know, I couldn't find a proper documentation for this node other than: http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Installing-Dir-Entries.html#index-dircategory which is in

Re: [PATCH][5/5] Postpone expanding va_arg until pass_stdarg

2015-02-23 Thread Tom de Vries
On 23-02-15 09:26, Michael Matz wrote: Hi, On Sun, 22 Feb 2015, Tom de Vries wrote: Btw, I'm wondering if as run-time optimization we can tentatively set PROP_gimple_lva at the start of the gimple pass, and unset it in gimplify_va_arg_expr. That way we would avoid the lo

[PATCH] Use DO_PRAGMA in libgomp.oacc-c-c++-common/reduction-1.c

2015-02-23 Thread Tom de Vries
ons_int (); test_reductions_minmax (); test_reductions_bool (); return 0; } 2015-02-23 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA, check_reduction, apply_bin_int_op, check_reduction_int) (apply_max_op, apply_min_op, check_reduction_minm

Re: [PATCH] Use DO_PRAGMA in libgomp.oacc-c-c++-common/reduction-1.c

2015-02-23 Thread Tom de Vries
On 23-02-15 17:08, Jakub Jelinek wrote: On Mon, Feb 23, 2015 at 04:52:56PM +0100, Tom de Vries wrote: The only thing I'm not sure about is the two-level pragma expansion using the apply pragmas. It maximizes factoring out common parts, but it makes things less readable. Tested on x86_64

[gomp4] Mark fopenacc as LTO option

2014-11-03 Thread Tom de Vries
Thomas, This patch marks fopenacc as LTO option. This allows fopenacc to be passed to lto, which means the openacc builtins are recognized when reading in the LTO stream. This fixes a number of testcases in the libgomp testsuite. ok for gomp-4_0-branch? Thanks, - Tom 2014-11-03 Tom de

[gomp4] Set default LIBGOMP_PLUGIN_PATH

2014-11-04 Thread Tom de Vries
Tom de Vries * testsuite/libgomp.oacc-c++/c++.exp: Set default LIBGOMP_PLUGIN_PATH. Print used LIBGOMP_PLUGIN_PATH. * testsuite/libgomp.oacc-c/c.exp: Same. * testsuite/libgomp.oacc-fortran/fortran.exp: Same. diff --git a/libgomp/testsuite/libgomp.oacc-c++/c++.exp b/libgomp/testsuite

[gomp4] Fix libgomp-oacc.c/lib-66.c testcase

2014-11-04 Thread Tom de Vries
Thomas, This patch fixes the libgomp-oacc.c/lib-66.c testcase. It allows the test to run for non-shared mem accelerators, and skips the test otherwise. ok for gomp-4_0-branch? Thanks, - Tom 2014-11-03 Tom de Vries * testsuite/libgomp.oacc-c/lib-66.c: Skip for shared memory

[gomp4] Skip nvidia accelerator if not present

2014-11-04 Thread Tom de Vries
Thomas, this patch skips the nvidia accelerator in testing libgomp, if the nvidia accelerator is not present. OK for gomp-4_0-branch? Thanks, - Tom 2014-11-03 Tom de Vries * testsuite/libgomp.oacc-c++/c++.exp: Only use nvidia accelerator if present. * testsuite/libgomp.oacc-c/c.exp

Re: [gomp4] Set default LIBGOMP_PLUGIN_PATH

2014-11-07 Thread Tom de Vries
On 04-11-14 23:34, Tom de Vries wrote: Thomas, this patch sets LIBGOMP_PLUGIN_PATH to the .libs dir in the build area, if LIBGOMP_PLUGIN_PATH has not been defined. This allows f.i. a gcc build without an accelerator configured, to automatically pick up the host_nonshm plugin. Updated for

Re: [gomp4] Fix libgomp-oacc.c/lib-66.c testcase

2014-11-07 Thread Tom de Vries
On 04-11-14 23:46, Tom de Vries wrote: Thomas, This patch fixes the libgomp-oacc.c/lib-66.c testcase. It allows the test to run for non-shared mem accelerators, and skips the test otherwise. Fixed path in log message (testsuite/libgomp.oacc-c/lib-66.c -> testsuite/libgomp.oacc-c-c++-com

Fix gcc_assert in expand_omp_for_static_chunk

2014-11-12 Thread Tom de Vries
ntly in my patch series, so I'd prefer to fix it rather than remove it. Bootstrapped and reg-tested on x86_64, on top of trunk, gomp-4_0-branch and internal oacc dev branch. OK for trunk? Thanks, - Tom 2014-11-12 Tom de Vries * omp-low.c (expand_omp_for_static_chunk): Fix assert. --- gc

Run pass_expand_omp_ssa after pass_paralellize_loops

2014-11-12 Thread Tom de Vries
[ moved from gcc@ to gcc-patches@ ] [ subject was: Re: [gomp4] openacc kernels directive support ] On 30-09-14 15:37, Tom de Vries wrote: I would be happily accepting splitting the current autopar pass that way, that is, do NEXT_PASS (pass_parallelize_loops) PUSH_INSERT_PASSES_WITHIN

Re: Run pass_expand_omp_ssa after pass_paralellize_loops

2014-11-12 Thread Tom de Vries
On 12-11-14 15:17, Richard Biener wrote: On Wed, 12 Nov 2014, Tom de Vries wrote: [ moved from gcc@ to gcc-patches@ ] [ subject was: Re: [gomp4] openacc kernels directive support ] On 30-09-14 15:37, Tom de Vries wrote: I would be happily accepting splitting the current autopar pass that way

Re: libbacktrace tests for AIX

2019-05-24 Thread Tom de Vries
[ Add CC gcc-patches ] On 23-05-19 15:22, CHIGOT, CLEMENT wrote: > Hi Ian, Tom,  > > I've some problems with gccgo and libbacktrace so I've tried to run > libbacktrace tests on AIX, to see if everything looks good.  > However, I can't build them...  > > Looking at the code, test_elf is trying to

Re: [PATCH] libbacktrace: split test_elf into 32 and 64 bits version

2019-05-24 Thread Tom de Vries
On 24-05-19 13:10, CHIGOT, CLEMENT wrote: > Description: > * This patch splits libbacktrace's test_elf into two new tests: test_elf_32 > and test_elf_64. > > Tests: > * AIX 7.2: Configure/Build: SUCCESS > > Changelog: > * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 a

Re: [PATCH] Fix nvptx_output_softstack_switch (PR target/90811)

2019-06-11 Thread Tom de Vries
On 10-06-19 23:46, Jakub Jelinek wrote: > Hi! > > In PTX, and accepts only .pred, .b16, .b32 and .b64 types, not .u64 etc. > Fixed thusly, bootstrapped/regtested on x86_64-linux with nvptx-none > offloading, ok for trunk and 9.2/8.4? > LGTM [and to Alexander as mentioned in PR90811 comment 3].

Re: [PATCH, OpenACC] Add support for gang local storage allocation in shared memory

2019-06-12 Thread Tom de Vries
On 12-06-19 12:22, Jakub Jelinek wrote: > On Fri, Jun 07, 2019 at 03:08:37PM +0100, Julian Brown wrote: >> diff --git a/gcc/omp-low.c b/gcc/omp-low.c >> index a7f35ffe416..67e1e82ec00 100644 >> --- a/gcc/omp-low.c >> +++ b/gcc/omp-low.c >> @@ -9794,6 +9882,8 @@ lower_omp_target (gimple_stmt_iterato

[committed][nvptx] Assert fork has at most one join in nvptx_find_par

2019-06-12 Thread Tom de Vries
x86_64 with nvptx accelerator enabled. Committed to trunk. Thanks, - Tom [nvptx] Assert fork has at most one join in nvptx_find_par 2019-06-12 Tom de Vries PR tree-optimization/90009 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join. --- gcc/config/nvptx/n

[PATCH][openacc] Disable pass_thread_jumps for IFN_UNIQUE

2019-06-12 Thread Tom de Vries
an IFN_UNIQUE in thread_jumps::profitable_jump_thread_path. Bootstrapped and reg-tested on x86_64. Build and reg-tested libgomp on x86_64 with nvptx accelerator. OK for trunk? Thanks, - Tom [openacc] Disable pass_thread_jumps for IFN_UNIQUE 2019-06-12 Tom de Vries PR tree

Re: [PATCH] Fix 3 warnings in nvptx.c

2019-06-13 Thread Tom de Vries
On 12-06-19 09:30, Jakub Jelinek wrote: > Hi! > > While testing the second PR90811 patch with nvptx offloading, I've noticed 3 > warnings in nvptx.c. > The first two hunks are obvious, the last warning is about unused mode_label > variable. > Either we can do what the patch does, or another option

Re: [PATCH] Make static vars inside of target regions or declare target routines implicitly declare target to (PR middle-end/90779)

2019-06-15 Thread Tom de Vries
On 13-06-19 10:34, Jakub Jelinek wrote: > Hi! > > The OpenMP specification isn't clear on this, I'll work on getting that > clarified for 5.1, but the agreement on omp-lang has been that it should > work the way the patch implements it, static block scope variables inside of > #pragma omp target o

[committed][nvptx, libgomp] Update pr85381-{2,4}.c test-cases

2019-06-15 Thread Tom de Vries
itted patch to update nvptx test-cases. Thanks, - Tom [nvptx, libgomp] Update pr85381-{2,4}.c test-cases After the fix for "PR tree-optimization/89713 - Assume loop with an exit is finite" ( r272234 ) empty oacc loops are removed before expand. Update pr85381-{2,4}.c accordingly.

[committed][openacc] Fix SIGSEGV in oacc_entry_exit_ok_1

2019-06-16 Thread Tom de Vries
= PHI_RESULT (red->keep_res); ... Fix this by handling ref == NULL. Bootstrapped and reg-tested on x86_64. Build and reg-tested on x86_64 with nvptx accelerator. Committed to trunk. Thanks, - Tom [openacc] Fix SIGSEGV in oacc_entry_exit_ok_1 2019-06-16 Tom de Vries PR tree-optimization/89

[committed][nvptx] Fix some missing mode warnings in nvptx.md

2019-06-16 Thread Tom de Vries
to trunk. Thanks, - Tom [nvptx] Fix some missing mode warnings in nvptx.md 2019-06-17 Tom de Vries * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ... (define_insn "call_insn_"): ... this. Use P iterator on match_operand 0.

[nvptx] Fix missing mode warnings in nvptx.md, omp part

2019-06-16 Thread Tom de Vries
: warning: operand 1 missing mode? gcc/config/nvptx/nvptx.md:1240:1: warning: operand 2 missing mode? gcc/config/nvptx/nvptx.md:1268:1: warning: operand 0 missing mode? ... Build and reg-tested on x86_64 with nvptx accelerator. 2019-06-17 Tom de Vries * config/nvptx/nvptx-protos.h

Re: [nvptx] Fix missing mode warnings in nvptx.md, omp part

2019-06-17 Thread Tom de Vries
On 17-06-19 14:35, Alexander Monakov wrote: > On Mon, 17 Jun 2019, Tom de Vries wrote: > >> Hi Alexander, >> >> any comments? > > A couple suggestions (see below), but no serious concerns from my side. > >> --- a/gcc/config/nvptx/nvptx.c >> +++ b/

[committed][nvptx] Fix __main missing prototype warning in crt0.c

2019-06-18 Thread Tom de Vries
] Fix __main missing prototype warning in crt0.c 2019-06-18 Tom de Vries * config/nvptx/crt0.c (__main): Declare. --- libgcc/config/nvptx/crt0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libgcc/config/nvptx/crt0.c b/libgcc/config/nvptx/crt0.c index 097193c708e

[nvptx, committed] Use define_insn parametrization

2019-06-18 Thread Tom de Vries
[ was: Re: [nvptx] Fix missing mode warnings in nvptx.md, omp part ] On 17-06-19 17:09, Jakub Jelinek wrote: > On Mon, Jun 17, 2019 at 04:53:24PM +0200, Tom de Vries wrote: >> Updated accordingly, and committed as attached. > > Note, current trunk allows one to define expanders th

[committed][testsuite] Add missing dg-require-effective-target alloca

2019-06-20 Thread Tom de Vries
Hi, Add missing dg-require-effective-target alloca. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Add missing dg-require-effective-target alloca 2019-06-20 Tom de Vries * gcc.c-torture/compile/pr77754-1.c: Require alloca. * gcc.c-torture/compile/pr77754-2

[committed][testsuite] Add missing dg-require-effective-target label_values

2019-06-20 Thread Tom de Vries
Hi, Add missing dg-require-effective-target label_values. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Add missing dg-require-effective-target label_values 2019-06-20 Tom de Vries * gcc.c-torture/compile/pr89280.c: Require label_values. * gcc.dg/pr89737

[committed][testsuite] Add missing dg-require-effective-target indirect_jumps

2019-06-20 Thread Tom de Vries
Hi, Add missing dg-require-effective-target indirect_jumps. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Add missing dg-require-effective-target indirect_jumps 2019-06-20 Tom de Vries * gcc.dg/pr89737.c: Require indirect_jumps. * gcc.dg/torture/pr87693.c

[committed][testsuite] Add missing dg-require-effective-target global_constructor

2019-06-20 Thread Tom de Vries
Hi, Add missing dg-require-effective-target global_constructor. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Add missing dg-require-effective-target global_constructor 2019-06-20 Tom de Vries * gcc.dg/pr90866-2.c: Require global_constructor. --- gcc/testsuite

[committed][testsuite] Add missing dg-require-effective-target nonlocal_goto

2019-06-20 Thread Tom de Vries
Hi, Add missing dg-require-effective-target nonlocal_goto. Tested on nvptx. Committed to trunk. Thanks, - Tom [testsuite] Add missing dg-require-effective-target nonlocal_goto 2019-06-20 Tom de Vries * gcc.c-torture/compile/pr89280.c: Require nonlocal_goto. * gcc.dg

Re: [patch] various OpenACC reduction enhancements - ME and nvptx changes

2018-12-04 Thread Tom de Vries
On 04-12-18 13:29, Jakub Jelinek wrote: > On Fri, Jun 29, 2018 at 11:19:53AM -0700, Cesar Philippidis wrote: >> The attached patch includes the nvptx and GCC ME reductions enhancements. >> >> Is this patch OK for trunk? It bootstrapped / regression tested cleanly >> for x86_64 with nvptx offloading

[PATCH 3/9] [libbacktrace] Handle alt FORMS without .gnu_debugaltlink

2018-12-11 Thread Tom de Vries
Handle DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt references robustly in presence of missing .gnu_debugaltlink file. 2018-11-11 Tom de Vries * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE. (read_attribute): Add altlink parameter. Handle missing altlink for

[PATCH 0/9] [libbacktrace] Handle .gnu_debugaltlink

2018-12-11 Thread Tom de Vries
86_64. OK for trunk? Thanks, - Tom Tom de Vries (9): [libbacktrace] Read .gnu_debugaltlink [libbacktrace] Add altlink field to struct dwarf_data [libbacktrace] Handle alt FORMS without .gnu_debugaltlink [libbacktrace] Handle DW_FORM_GNU_strp_alt [libbacktrace] Unify function name

[PATCH 2/9] [libbacktrace] Add altlink field to struct dwarf_data

2018-12-11 Thread Tom de Vries
Add an altlink field to struct dwarf_data, and initialize it with the pointer to the struct dwarf_data for the .gnu_debugaltlink. 2018-11-11 Tom de Vries * dwarf.c (struct dwarf_data): Add altlink field. (backtrace_dwarf_add): Add and handle fileline_entry and

[PATCH 4/9] [libbacktrace] Handle DW_FORM_GNU_strp_alt

2018-12-11 Thread Tom de Vries
Handle DW_FORM_GNU_strp_alt which references the .debug_str section in the .gnu_debugaltlink file. 2018-11-11 Tom de Vries * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt using altlink. --- libbacktrace/dwarf.c | 25 + 1 file changed, 17

[PATCH 1/9] [libbacktrace] Read .gnu_debugaltlink

2018-12-11 Thread Tom de Vries
Read the elf file pointed at by the .gnu_debugaltlink section, and verify that the build id matches. 2018-11-11 Tom de Vries * elf.c (elf_add): Add and handle with_buildid_data and with_buildid_size parameters. Handle .gnu_debugaltlink section. (phdr_callback

[PATCH 6/9] [libbacktrace] Factor out read_referenced_name_1

2018-12-11 Thread Tom de Vries
Factor out the common handling of DW_AT_abstract_origin and DW_AT_specification from read_function_entry and read_referenced_name. 2018-12-10 Tom de Vries * dwarf.c (read_referenced_name_1): New function. Factor out of ... (read_referenced_name): ... here, and

[PATCH 7/9] [libbacktrace] Handle DW_FORM_GNU_ref_alt

2018-12-11 Thread Tom de Vries
2018-12-10 Tom de Vries * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO. (struct unit): Add low and high fields. (struct unit_vector): New type. (struct dwarf_data): Add units and units_counts fields. (read_attribute): Handle

[PATCH 5/9] [libbacktrace] Unify function name preference handling

2018-12-11 Thread Tom de Vries
Both read_function_entry and read_referenced_name implement a priority scheme for names. The priorities are: - 1st: DW_AT_linkage_name - 2nd: Name from DW_AT_abstract_origin or DW_AT_specification - 3rd: DW_AT_name. Ensure both functions fully adhere to it. 2018-11-21 Tom de Vries

[PATCH 9/9] [libbacktrace] Add printdwarftest_dwz_cmp.sh test-case

2018-12-11 Thread Tom de Vries
2018-12-10 Tom de Vries * Makefile.am (TESTS): Add printdwarftest_dwz_cmp.sh. * Makefile.in: Regenerate. * printdwarftest.c: New file. * printdwarftest_dwz_cmp.sh: New file. --- libbacktrace/Makefile.am | 11 ++ libbacktrace/Makefile.in

[PATCH 8/9] [libbacktrace] Add btest_dwz test-case

2018-12-11 Thread Tom de Vries
2018-11-11 Tom de Vries * configure.ac (DWZ): Set with AC_CHECK_PROG. (HAVE_DWZ): Set with AM_CONDITIONAL. * configure: Regenerate. * Makefile.am (TESTS): Add btest_dwz. * Makefile.in: Regenerate. --- libbacktrace/Makefile.am | 12

Re: [PATCH][libbacktrace] Add allocfail.sh test-case

2018-12-11 Thread Tom de Vries
On 11-12-18 18:59, Ian Lance Taylor wrote: > On Wed, Nov 28, 2018 at 4:50 AM Tom de Vries wrote: >> >> Add test-case that forces alloc.c functions to fail, and check whether fail >> handling is robust. >> >> This is the test-case for "[libbacktrace] F

Re: [PATCH][libbacktrace] Add allocfail.sh test-case

2018-12-11 Thread Tom de Vries
[ Fixed ENOPATCH ] On 12-12-18 08:03, Tom de Vries wrote: > On 11-12-18 18:59, Ian Lance Taylor wrote: >> On Wed, Nov 28, 2018 at 4:50 AM Tom de Vries wrote: >>> >>> Add test-case that forces alloc.c functions to fail, and check whether fail >>> handling is r

[openmp] Fix openmp 5.0 builtin function types

2018-12-12 Thread Tom de Vries
e openmp 5.0 builtin functions to match the type used in the implementation of those functions. This fixes some libgomp testsuite failures for x86_64 with nvptx accelerator. Build on x86_64 with nvptx accelerator, tested libgomp. 2018-12-12 Tom de Vries * omp-builti

[libgomp, nvptx] Disable OMP_{DISPLAY_AFFINITY,AFFINITY_FORMAT} support

2018-12-12 Thread Tom de Vries
ble OMP_{DISPLAY_AFFINITY,AFFINITY_FORMAT} support Disable compilation of support for OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT for nvptx. This fixes some libgomp testsuite failures for x86_64 with nvptx accelerator. Build on x86_64 with nvptx accelerator, tested libgomp. 2018-12-12 Tom de V

Re: [openmp] Fix openmp 5.0 builtin function types

2018-12-12 Thread Tom de Vries
On 12-12-18 10:27, Jakub Jelinek wrote: > On Wed, Dec 12, 2018 at 09:25:06AM +0100, Tom de Vries wrote: >> [openmp] Fix openmp 5.0 builtin function types >> >> Fix some openmp 5.0 builtin functions to match the type used in the >> implementation of those functions. &g

Re: [libgomp, nvptx] Disable OMP_{DISPLAY_AFFINITY,AFFINITY_FORMAT} support

2018-12-12 Thread Tom de Vries
On 12-12-18 10:36, Jakub Jelinek wrote: > On Wed, Dec 12, 2018 at 09:29:36AM +0100, Tom de Vries wrote: >>> This is the libgomp/ except libgomp/testsuite/ part of the gomp-5_0-branch >>> merge to trunk I've just committed. >>> >>> 2018-11-

Re: [libgomp, nvptx] Disable OMP_{DISPLAY_AFFINITY,AFFINITY_FORMAT} support

2018-12-12 Thread Tom de Vries
On 12-12-18 11:48, Tom de Vries wrote: > On 12-12-18 10:36, Jakub Jelinek wrote: >> On Wed, Dec 12, 2018 at 09:29:36AM +0100, Tom de Vries wrote: >>>> This is the libgomp/ except libgomp/testsuite/ part of the gomp-5_0-branch >>>> merge to trunk I've just

[libgomp, nvptx] Fix libgomp.c/target-5.c compilation

2018-12-13 Thread Tom de Vries
[ was: Re: [libgomp, nvptx] Disable OMP_{DISPLAY_AFFINITY,AFFINITY_FORMAT} support ] On 12-12-18 14:15, Jakub Jelinek wrote: > On Wed, Dec 12, 2018 at 02:02:20PM +0100, Tom de Vries wrote: >> This RFC patch implements that approach for getpid and gethostname (I >> wonder though w

Re: [PATCH] error on missing LTO symbols

2018-12-13 Thread Tom de Vries
[ adding gcc-patches ] On 13-12-18 14:30, Tom de Vries wrote: > [ Patch copy-pasted from here ( > https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02076.html ). Patch was > resubmitted here ( > https://gcc.gnu.org/ml/gcc-patches/2016-07/msg00043.html ). ] > > Hi, > > t

Re: [PATCH] error on missing LTO symbols

2018-12-14 Thread Tom de Vries
On 13-12-18 14:44, Jakub Jelinek wrote: > On Thu, Dec 13, 2018 at 02:31:45PM +0100, Tom de Vries wrote: >>> 2015-07-24 Cesar Philippidis > > Please use current date ;) > >>> >>> gcc/ >>> * lto-cgraph.c (input_overwrite_node): E

[committed][testsuite] Remove bashism from libbacktrace/allocfail.sh

2018-12-14 Thread Tom de Vries
runk. Thanks, - Tom [testsuite] Remove bashism from libbacktrace/allocfail.sh 2018-12-14 Tom de Vries PR testsuite/88491 * allocfail.sh: Remove "set -o pipefail". --- libbacktrace/allocfail.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/libbacktrace/allocfail.

Re: [PATCH] error on missing LTO symbols

2018-12-14 Thread Tom de Vries
[ cc-ing HSAIL maintainer ] On 14-12-18 10:54, Jakub Jelinek wrote: > On Fri, Dec 14, 2018 at 10:21:35AM +0100, Tom de Vries wrote: >> Build and reg-tested on x86_64 with nvptx accelerator. >> >> 2018-12-13 Tom de Vries >> >> * lto-cgraph.c (ver

Re: [PATCH] error on missing LTO symbols

2018-12-14 Thread Tom de Vries
On 14-12-18 14:08, Jakub Jelinek wrote: > On Fri, Dec 14, 2018 at 02:07:18PM +0100, Tom de Vries wrote: >> Done, using offload_device_nonshared_as for >> libgomp.c-c++-common/variable-not-offloaded.c and >> openacc_nvidia_accel_configured for >> libgomp.oacc-c-c++-comm

Re: [nvptx] vector length patch series

2018-12-14 Thread Tom de Vries
On 29-10-18 20:28, Cesar Philippidis wrote: > On 10/5/18 23:22, Tom de Vries wrote: >> On 9/18/18 10:04 PM, Cesar Philippidis wrote: >>> 591973d3c3a [nvptx] use user-defined vectors when possible >> >> If I drop this patch, I get the same test results. Can you fin

Re: [PATCH] error on missing LTO symbols

2018-12-17 Thread Tom de Vries
On 17-12-18 13:46, Martin Jambor wrote: > Hi, > > On Fri, Dec 14 2018, Jakub Jelinek wrote: >> On Fri, Dec 14, 2018 at 10:21:35AM +0100, Tom de Vries wrote: >>> --- /dev/null >>> +++ b/libgomp/testsuite/libgomp.c-c++-common/variable-not-offloaded.c >>

[nvptx, committed] Rewrite nvptx_goacc_validate_dims to use predicate vars

2018-12-17 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0023-nvptx-Force-vl32-if-calling-vector-partitionable-rou.patch I've factored out this cleanup patch from here. Committed to trunk. Thanks, - Tom [nvptx] Rewrite nvptx_goacc_validate_dims to use p

[nvptx, committed] Unify C/Fortran routine handling in nvptx_goacc_validate_dims

2018-12-17 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: >> 0004-openacc-Make-GFC-default-to-1-for-OpenACC-routine-di.patch > If I remove this, I run into ICEs in the compiler, but I think that > means we need to understand and fix that ICE, instead o

Re: [nvptx] vector length patch series

2018-12-17 Thread Tom de Vries
On 14-12-18 20:58, Tom de Vries wrote: > 0009-nvptx-Fix-whitespace-in-nvptx_single-and-nvptx_neute.patch Committed (Could have been committed as obvious). Thanks, - Tom [nvptx] Fix whitespace in nvptx_single and nvptx_neuter_pars Fix whitespace in nvptx_single and nvptx_neuter_pars. Build

[nvptx, committed] Add PTX_WARP_SIZE

2018-12-17 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0005-nvptx-update-openacc-dim-macros.patch Factored out this patch. Committed. Thanks, - Tom [nvptx] Add PTX_WARP_SIZE Add PTX_WARP_SIZE constant and use it in nvptx_simt_vf. The function nvptx_simt

[nvptx, committed] Move macro defs to top of nvptx.c

2018-12-17 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0005-nvptx-update-openacc-dim-macros.patch Factored out this patch. Committed. Thanks, - Tom [nvptx] Move macro defs to top of nvptx.c Move macro definition to the top of the file, allowing them to

[nvptx] vector length patch series -- openacc parts

2018-12-17 Thread Tom de Vries
On 14-12-18 20:58, Tom de Vries wrote: > 0003-openacc-Add-target-hook-TARGET_GOACC_ADJUST_PARALLEL.patch > 0017-nvptx-Enable-large-vectors.patch > 0023-nvptx-Force-vl32-if-calling-vector-partitionable-rou.patch Thomas, these patches are openacc (0003) or have openacc components (0

[nvptx, committed] Use TARGET_SET_CURRENT_FUNCTION

2018-12-19 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0013-nvptx-Use-TARGET_SET_CURRENT_FUNCTION.patch Committed. Thanks, - Tom [nvptx] Use TARGET_SET_CURRENT_FUNCTION Implement TARGET_SET_CURRENT_FUNCTION for nvptx. This gives us a place to

[nvptx, committed] Only use one logical barrier resource

2018-12-19 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0010-nvptx-only-use-one-bar.sync-barriers-in-OpenACC-offl.patch Committed. Thanks, - Tom [nvptx] Only use one logical barrier resource For openacc loops, we generate this style of code: ... @%

[nvptx, committed] Generalize bar.sync instruction

2018-12-19 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0011-nvptx-Add-thread-count-parm-to-bar.sync.patch Factored out this patch, committed. Thanks, - Tom [nvptx] Generalize bar.sync instruction Allow the logical barrier operand of nvptx_barsync to b

[nvptx, committed] Rename worker_bcast variables to oacc_bcast

2018-12-19 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0006-nvptx-Rename-worker_bcast-variables-oacc_bcast.patch Committed. Thanks, - Tom [nvptx] Rename worker_bcast variables to oacc_bcast Rename worker_bcast variables to oacc_bcast, avoiding wor

[nvptx, committed] Make nvptx state propagation function names more generic

2018-12-19 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0008-nvptx-make-nvptx-state-propagation-function-names-mo.patch Committed. Thanks, - Tom [nvptx] Make nvptx state propagation function names more generic Rename state propagation functions to avoid wor

[nvptx, committed] Use MAX, MIN, ROUND_UP macros

2018-12-19 Thread Tom de Vries
[ was: Re: [nvptx] vector length patch series ] On 14-12-18 20:58, Tom de Vries wrote: > 0014-nvptx-Use-MAX-MIN-ROUND_UP-macros.patch Committed. Thanks, - Tom [nvptx] Use MAX, MIN, ROUND_UP macros Use MAX, MIN, and ROUND_UP macros to simplify code. Build and reg-tested on x86_64 with nv

[committed][testsuite] Add scan-offload-rtl-dump

2018-12-19 Thread Tom de Vries
-03-28 Tom de Vries * lib/scanoffloadrtl.exp: New file. * gcc.dg-selftests/dg-final.exp (dg_final_directive_check_num_args): Add offload-rtl. * doc/sourcebuild.texi (Commands for use in dg-final, Scan optimization dump files): Add offload-rtl. --- gcc/doc

[committed][nvptx, libgomp] Move rtl-dump test-cases to libgomp

2018-12-19 Thread Tom de Vries
to libgomp 2018-12-19 Tom de Vries * gcc.dg/goacc/nvptx-merged-loop.c: Move to libgomp/testsuite/libgomp.oacc-c-c++-common. * gcc.dg/goacc/nvptx-sese-1.c: Same. * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp. * testsuite/libgomp.oacc-c-c

[committed][nvptx] Commit passing pr85381-*.c test-cases

2018-12-19 Thread Tom de Vries
Hi, Add pr85381*.c test-cases that are already passing without the fix for PR85381. Build and reg-tested on x86_64 with nvptx accelerator. Committed to trunk. Thanks, - Tom [nvptx] Commit passing pr85381-*.c test-cases 2018-12-19 Tom de Vries * testsuite/libgomp.oacc-c-c++-common

Fwd: [openacc, committed] Add oacc_get_default_dim

2018-12-19 Thread Tom de Vries
[ Adding gcc-patches ] Forwarded Message Subject: [openacc, committed] Add oacc_get_default_dim Date: Wed, 19 Dec 2018 16:24:25 +0100 From: Tom de Vries To: Thomas Schwinge [ was: Re: [nvptx] vector length patch series -- openacc parts ] On 19-12-18 11:40, Thomas Schwinge

<    9   10   11   12   13   14   15   16   17   18   >