Re: [PATCH] OpenACC "present" subarrays: runtime API return value and unmapping fixes

2019-12-09 Thread Thomas Schwinge
e in their > current form they no longer make much sense, as far as I can tell: > > For example, 'libgomp.oacc-c-c++-common/lib-22.c': > > acc_copyin (h, N); > > ... followed by: > > acc_copyout (h + 1, N - 1); > > ... is now meant to no longer abort wit

Re: [PATCH] OpenACC reference count overhaul

2019-12-09 Thread Thomas Schwinge
'? Am I missing something there? It will be OK to clean that up later, but I'd like to understand this now. Well, or, stating that you just blindly copied that from the existing 'gomp_unmap_vars_async' is fine, too! ;-P Grüße Thomas > --- a/libgomp/target.c >

Re: [patch, fortran] Introduce -finline-pack

2019-12-09 Thread Thomas Koenig
al packing that happens for arguments. Maybe -finline-repack would be a better name? -finline-internal-pack? Regards Thomas

[PR92840] [OpenACC] Refuse 'acc_unmap_data' unless mapped by 'acc_map_data'

2019-12-09 Thread Thomas Schwinge
Hi! See attached "[PR92840] [OpenACC] Refuse 'acc_unmap_data' unless mapped by 'acc_map_data'", committed to trunk in r279145. As mentioned in the patch, some further checking can be applied, later, incrementally. Grüße Thomas From bea573cb7ea13cece9c51ca9eb1

[PR92503] [OpenACC] Don't silently 'acc_unmap_data' in 'acc_free'

2019-12-09 Thread Thomas Schwinge
sibly "we might actually keep such additional/expensive sanity-checking, but guard it by an environment variable". Grüße Thomas From 03383a93c7318009ddd0e8d77b1a950c4b2b8f5a Mon Sep 17 00:00:00 2001 From: tschwinge Date: Mon, 9 Dec 2019 22:52:47 + Subject: [PATCH] [PR92503]

[PR92116, PR92877] [OpenACC] Replace 'openacc.data_environ' by standard libgomp mechanics (was: [PATCH] OpenACC reference count overhaul)

2019-12-09 Thread Thomas Schwinge
Hi! \o/ Yay for the first split-out piece of the big "OpenACC reference count overhaul" going in: On 2019-10-29T12:15:01+, Julian Brown wrote: > On Mon, 21 Oct 2019 16:14:11 +0200 > Thomas Schwinge wrote: >> Remeber to look into <https://gcc.gnu.org/PR92116>

PR92881 "[OpenACC] In async context, need to use 'gomp_remove_var_async' instead of 'gomp_remove_var'" (was: [PATCH] OpenACC reference count overhaul)

2019-12-10 Thread Thomas Schwinge
Hi Julian! On 2019-12-09T15:04:15+, Julian Brown wrote: > On Mon, 9 Dec 2019 15:44:25 +0100 > Thomas Schwinge wrote: >> On 2019-10-03T09:35:04-0700, Julian Brown >> wrote: >> > --- a/libgomp/oacc-mem.c >> > +++ b/libgomp/oacc-mem.c >> >>

Re: [PATCH 0/2] Add tests to verify OpenACC clause locations

2019-12-10 Thread Thomas Schwinge
-low.c. > > here are patches adding the promised test for Fortran and a corresponding > test for C. > > Is it ok to include them in trunk? Thanks, yes, with my following remarks considered, and acted on per your preference. To record the review effort, please include "Re

[patch, fortran, committed] Fix PR 92863, 'ICE in gfc_typename

2019-12-10 Thread Thomas Koenig
ough to cure the ICE. Regards Thomas 2019-12-10 Thomas Koenig PR fortran/92863 * misc.c (gfc_typename): If derived component is NULL for derived or class, return "invalid type" or "invalid class", respectively. 2019-12-10 T

Re: [patch, fortran] Introduce -finline-pack

2019-12-10 Thread Thomas Koenig
Am 09.12.19 um 17:30 schrieb Thomas Koenig: Maybe -finline-repack would be a better name? -finline-internal-pack? Steve made an excellent suggestion: -finline-arg-packing . So, OK with that change? Regards Thomas

[patch, fortran, committed] Fix PR 91643, repacking of assumed rank argument

2019-12-10 Thread Thomas Koenig
Hello world, this fixes a regression introduced by my inline repacking patch. With the test case, it is simple and obvious enough - do not repack an assumed rank argument (which makes no sense). Committed as obvious and simple as r279203 after regression-testing. 2019-12-10 Thomas Koenig

Re: [Patch, Fortran] PR92898 - [9/10 Regression] ICE in gfc_check_is_contiguous, at fortran/check.c:7157

2019-12-10 Thread Thomas Koenig
this is not the case, it is better to add new tests to new test cases - this makes regression hunting much easier. Regards Thomas

Re: [PATCH] Restore enable_if lost during original import of pstl

2019-12-10 Thread Thomas Rodgers
Tested x86_64-pc-linux-gnu, committed to trunk, backported to gcc-9-branch. Jonathan Wakely writes: > On 18/11/19 20:54 -0800, Thomas Rodgers wrote: >> >> * include/pstl/glue_numeric_defs.h: Restore enable_if lost during >> original >> import of p

[PATCH] Rename condition_variable_any::wait_on_* methods

2019-12-10 Thread Thomas Rodgers
User-agent: mu4e 1.3.4; emacs 26.2 * include/std/condition_variable (condition_variable_any::wait_on(_Lock&, stop_token, _Predicate): Rename to match current draft standard. (condition_variable_any::wait_on_until(_Lock&, stop_token, const chrono::time_point<>

Re: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior - runtime

2019-12-11 Thread Thomas Schwinge
dynamic_refcount' whenever we initialize 'refcount'" for 'Cases missed in r261813 "Update OpenACC data clause semantics to the 2.5 behavior"'; committed to trunk in r279230, and backported to gcc-9-branch in r279238. Grüße Thomas From 20d0998b970ba693b2

[PR92854] Add 'libgomp.oacc-c-c++-common/acc_map_data-device_already-*.c', 'libgomp.oacc-c-c++-common/acc_map_data-host_already-*.c'

2019-12-11 Thread Thomas Schwinge
the OpenACC 2.6 semantics. The TODO in 'libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c' is being tracked in PR92888 "[OpenACC] Failure to resolve back via 'acc_hostptr' an 'acc_deviceptr' retrieved for a '#pragma acc declare'd variable". G

[OpenACC] Consolidate 'async'/'wait' code in 'libgomp/oacc-async.c'

2019-12-11 Thread Thomas Schwinge
Hi! As a preparational patch/general refactoring, see attached "[OpenACC] Consolidate 'async'/'wait' code in 'libgomp/oacc-async.c'"; committed to trunk in r279232. Grüße Thomas From 2b04bb7b4c9a13b6eadc7d9723245dd58f0f4f04 Mon Sep 17 00:00:00 2001 Fr

Re: [PATCH] OpenACC reference count overhaul

2019-12-11 Thread Thomas Schwinge
Hi! On 2019-10-29T12:15:01+, Julian Brown wrote: > On Mon, 21 Oct 2019 16:14:11 +0200 > Thomas Schwinge wrote: >> On 2019-10-03T09:35:04-0700, Julian Brown >> wrote: >> > void >> > -gomp_acc_remove_pointer (void *h, size_t s,

[PR92843] [OpenACC] Fix dynamic reference counting for structured 'REFCOUNT_INFINITY'

2019-12-11 Thread Thomas Schwinge
Hi! See attached "[PR92843] [OpenACC] Fix dynamic reference counting for structured 'REFCOUNT_INFINITY'"; committed to trunk in r279234. Grüße Thomas From 7c8ffaf54af2c8acb77f82349aac4dd68d47ad9d Mon Sep 17 00:00:00 2001 From: tschwinge Date: Wed, 11 Dec 2019 16:49:27 +

[OpenACC] Elaborate/simplify 'exit data' 'finalize' handling (was: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior)

2019-12-13 Thread Thomas Schwinge
ort will be recorded in the commit log, see <https://gcc.gnu.org/wiki/Reviewed-by>. (It will be a separate discussion to change the 'GOMP_MAP_POINTER', 'GOMP_MAP_TO_PSET' stuff later on -- thinking about the changes from Julian's big "OpenACC reference count overh

Re: [PATCH, OpenACC] Fix potential race condition in OpenACC "exit data" operations

2019-12-13 Thread Thomas Schwinge
ed = false; > - [...] > + > + struct target_mem_desc *tgt = (struct target_mem_desc *) ptr; > + > + assert (tgt->refcount != REFCOUNT_INFINITY); Please leave out this 'assert': we don't have any of these yet for 'tgt->refcount' (as far as I remember), and fixing that is a separate change, to generally deal that issue; <87r22an29u.fsf@euler.schwinge.homeip.net">http://mid.mail-archive.com/87r22an29u.fsf@euler.schwinge.homeip.net>. Grüße Thomas signature.asc Description: PGP signature

'find_group_last' (was: [PATCH] OpenACC reference count overhaul)

2019-12-13 Thread Thomas Schwinge
Hi Julian! On 2019-10-29T12:15:01+, Julian Brown wrote: > On Mon, 21 Oct 2019 16:14:11 +0200 > Thomas Schwinge wrote: > >> On 2019-10-03T09:35:04-0700, Julian Brown >> wrote: >> > --- a/libgomp/oacc-parallel.c >> > +++ b/libgomp/oacc-parallel.c >

*Ping* Introduce -finline-arg-packing

2019-12-15 Thread Thomas Koenig
Am 10.12.19 um 22:22 schrieb Thomas Koenig: Steve made an excellent suggestion: -finline-arg-packing . So, OK with that change? In other words, is https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00485.html OK with renaming the option to -finline-arg-packing ? Regards Thomas

Re: [patch] libgomp/openacc.f90 – clean-up public/private attributes

2019-12-16 Thread Thomas Schwinge
Some vertical space before the "From openacc_kinds" comment, and before the 'acc_async_*' ones? >public :: openacc_version > >public :: acc_get_num_devices, acc_set_device_type, acc_get_device_type > @@ -730,6 +731,7 @@ module openacc >public :: acc_update_device, acc_update_self, acc_is_present >public :: acc_copyin_async, acc_create_async, acc_copyout_async >public :: acc_delete_async, acc_update_device_async, acc_update_self_async > + public :: acc_copyout_finalize, acc_delete_finalize Put these into the place where they really belong, after 'acc_copyout, and 'acc_delete', respectively? Grüße Thomas signature.asc Description: PGP signature

Re: [Patch, fortran] PR92753 - [9/10 Regression] ICE in gfc_trans_call, at fortran/trans-stmt.c:392

2019-12-16 Thread Thomas Koenig
Hi Paul, Regtested on FC31/x86_64 - OK for 9- and 10- branches? OK. Thanks for the patch! Regards Thomas

Re: [PATCH 4/7 libgomp,amdgcn] GCN libgomp port

2019-12-16 Thread Thomas Schwinge
that as an alternative to the Fortran 'openacc' module, there also exists 'openacc_lib.h', which you didn't update here. As of OpenACC 2.5, 'openacc_lib.h' has been deprecated ("no longer supported"), but so far, we continued to support it, and it'

Re: [PATCH] Add OpenACC 2.6 `acc_get_property' support

2019-12-16 Thread Thomas Schwinge
ossible. (Especially different Fortran interfaces.) I see 'libgomp/oacc-host.c:host_get_property', 'libgomp/plugin/plugin-hsa.c:GOMP_OFFLOAD_get_property', 'liboffloadmic/plugin/libgomp-plugin-intelmic.cpp:GOMP_OFFLOAD_get_property' do have a 'default:

Re: [PATCH] OpenACC 2.6 manual deep copy support (attach/detach)

2019-12-17 Thread Thomas Schwinge
y-3.c', 'libgomp.oacc-c-c++-common/deep-copy-5.c' test cases work? Grüße Thomas signature.asc Description: PGP signature

In 'libgomp/target.c', 'struct splay_tree_key_s', use 'struct splay_tree_aux' for infrequently-used or API-specific data (was: [PATCH] OpenACC 2.6 manual deep copy support (attach/detach))

2019-12-17 Thread Thomas Schwinge
ommon > case no aux pointer at all, so no growth in the base struct size. That was in response to: > On Fri, 18 Oct 2019 18:47:08 +0200 > Thomas Schwinge wrote: >> While reviewing >> <http://mid.mail-archive.com/20191003163505.49997-2-julian@codesourcery.com> >&g

[WIP] OpenACC 'acc_attach*', 'acc_detach*' runtime library routines (was: [PATCH] OpenACC 2.6 manual deep copy support (attach/detach))

2019-12-17 Thread Thomas Schwinge
Hi! On 2019-12-17T12:28:32+0100, Thomas Schwinge wrote: > As a first step, can you please split out just the code required to make > the OpenACC 'acc_attach*', 'acc_detach*' runtime library routines work? I've now simply done this myself (that is, code extracti

Re: 'find_group_last' (was: [PATCH] OpenACC reference count overhaul)

2019-12-18 Thread Thomas Schwinge
Hi Julian! Thanks for walking me through this. On 2019-12-14T00:19:04+, Julian Brown wrote: > On Fri, 13 Dec 2019 16:25:25 +0100 > Thomas Schwinge wrote: >> On 2019-10-29T12:15:01+, Julian Brown >> wrote: >> > static int >> > -find_pointer (in

Re: [PATCH, OpenACC, libgomp, v6, stage1] Async-rework update

2019-12-18 Thread Thomas Schwinge
Hi! On 2019-05-13T21:33:20+0800, Chung-Lin Tang wrote: > committed (... in r271128.) As obvious, see attached "Make 'libgomp/target.c:gomp_unmap_tgt' 'static' again"; committed to trunk in r279529. Grüße Thomas From 60272bbbd67100b5fd864bfa8a9495b249778

[PR92848] [OpenACC] Use 'GOMP_MAP_VARS_ENTER_DATA' for dynamic data lifetimes

2019-12-18 Thread Thomas Schwinge
Hi! I haven't researched when this broke, but to fix PR92848 "[OpenACC] Memory leak for simple 'acc_create', 'acc_delete' sequence", see attached "[PR92848] [OpenACC] Use 'GOMP_MAP_VARS_ENTER_DATA' for dynamic data lifetimes"

Re: [OpenACC] Elaborate/simplify 'exit data' 'finalize' handling (was: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior)

2019-12-18 Thread Thomas Schwinge
Hi! On 2019-12-13T23:34:15+, Julian Brown wrote: > On Fri, 13 Dec 2019 15:13:53 +0100 > Thomas Schwinge wrote: >> Julian, Tobias, regarding the following OpenACC 'exit data' 'finalize' >> handling: >> >> On 2018-05-25T13:01:58-0700, Cesar

Re: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior

2019-12-18 Thread Thomas Schwinge
_delete' etc. for 'NULL'-in, non-present data, or size zero"; committed to trunk in r279532. More C/C++ and also Fortran test cases (that exercises all the different code paths that we have in 'libgomp/oacc-mem.c:GOACC_enter_exit_data', related to 'find_poi

Re: [RFC PATCH] Coalesce host to device transfers in libgomp

2019-12-18 Thread Thomas Schwinge
return false; > +default: > + return true; > +} > +} Poor 'GOMP_MAP_FORCE_FROM'... ;'-| See attached "[OpenACC] In 'libgomp/target.c:gomp_to_device_kind_p', handle 'GOMP_MAP_FORCE_FROM' like 'GOMP_MAP_FROM'"; co

Re: [RFC] Offloading Support in libgomp

2019-12-18 Thread Thomas Schwinge
Hi! On 2019-12-07T15:22:33+0100, I wrote: > [...] propose the attached patch > adding a safeguard [...] See attached "Assert in 'libgomp/target.c:gomp_unmap_vars_internal' that we're not unmapping 'tgt' while it's still in use"; committ

Re: [PATCH] OpenACC reference count overhaul

2019-12-18 Thread Thomas Schwinge
;, "[OpenACC] Refactor 'goacc_remove_pointer' interface", "[OpenACC] Refactor 'goacc_enter_data' so that it can be called from 'goacc_insert_pointer', "not present" case", "[OpenACC] Refactor 'goacc_enter_data' so that it can be

Re: [PATCH 00/13] OpenACC 2.6 manual deep copy support

2019-12-18 Thread Thomas Schwinge
patches for 'libgomp.oacc-c-c++-common/', and then 'libgomp.oacc-fortran/'), but instead per self-contained functional change, incrementally. Grüße Thomas signature.asc Description: PGP signature

Re: [Patch] Add OpenACC 2.6's no_create

2019-12-18 Thread Thomas Schwinge
at present.) > Otherwise, except for added acc_is_present calls to no_create-3.c to > check that no_create does not cause mapping and applying your/Thomas's > patches, it matches my previous version, which was OK'ed. — Hence, I > intent to commit it tomorrow, unless

[patch, fortran] Fix PR 91541, ICE on valid for INDEX

2019-12-18 Thread Thomas Koenig
, but for this bug fix, I left the functionality as is). Regression-tested. OK for trunk? Regards Thomas 2019-12-19 Thomas Koenig PR fortran/91541 * intrinsic.c (add_sym_4ind): New function. (add_functions): Use it for INDEX. (resolve_intrinsic): Also

Re: [Patch, Fortran] PR 92996 – fix rank resolution EXPR_ARRAY

2019-12-20 Thread Thomas Koenig
t this patch in. So, OK for trunk, and thanks for the patch! Regards Thomas

[pach, fortran] Fix PR 92961, ICE on division by zero error in array bounds

2019-12-20 Thread Thomas Koenig
patch. Rather than try to transport state across I do not know how many levels of calls, I chose a global variable. Regression-tested. OK for all affected branches? Regards Thomas 2019-12-20 Thomas Koenig PR fortran/92961 * gfortran.h (gfc_seen_div0): Add declaration

OpenACC regression and development pace

2019-12-20 Thread Thomas Koenig
too many regressions occurring. It might be better to slow this down somewhat, and to conduct a more throrough review process before committing. Regards Thomas

Re: [pach, fortran] Fix PR 92961, ICE on division by zero error in array bounds

2019-12-20 Thread Thomas Koenig
the attached patch fixes an ICE in an array declaration where the specified size came from 0/0. This is an 8/9/10 regression. Actually, it does not fix all testcases in the PR, so some more tweaking is still needed. Regards Thomas

Re: *Ping* Introduce -finline-arg-packing

2019-12-21 Thread Thomas Koenig
hanks, and sorry for the breakage. Note to self: Try not to forget that dot. This was not caught with "make check-fortran" from the gcc build directory. Maybe it would be a good idea to add that test to check-fortran too. Does anybody have an idea how to do that? Regards Thomas

Re: [Patch] PR92990 - fix error message for invalid argument of NULLIFY

2019-12-21 Thread Thomas Koenig
Am 20.12.19 um 22:33 schrieb Harald Anlauf: The fix for PR70853 changed an ICE-on-invalid for NULLIFY into a misleading error message. The patch below rectifies that. OK for trunk? OK. Thanks for the patch! Regards Thomas

Re: [PATCH 08/13] OpenACC 2.6 deep copy: middle-end parts

2019-12-21 Thread Thomas Schwinge
attached "[PR93026, PR92929] Adjust 'gfortran.dg/goacc/finalize-1.f' for r279626 changes"; committed to trunk in r279700. Grüße Thomas > ChangeLog > > gcc/ > * gimplify.c (gimplify_omp_var_data): Add GOVD_MAP_HAS_ATTACHMENTS. > (insert_struct_

Re: [PATCH] Add OpenACC 2.6 `acc_get_property' support

2019-12-21 Thread Thomas Schwinge
ink that 'GOMP_DEVICE_CURENT' should get value '-1' (and probably be rename 'GOACC_DEVICE_CURRENT' to make more obvious that it's not related to the 'GOMP_DEVICE_*' ones), but we shall have a look at that later (before GCC 10 release); that's libgomp/OpenACC-internal, doesn't affect anything else. >> Maybe this stuff should move from 'include/gomp-constants.h' to >> 'libgomp/oacc-int.h'. I'll think about that again, when I'm awake again >> tomorrow. ;-) > > Have you made up your mind yet? :-) Still sleepy. ;-) > Is it ok to commit the patch to trunk? OK, thanks. And then some follow-up/clean-up next year, also including some of the open questions that I've snipped off here. Grüße Thomas signature.asc Description: PGP signature

Re: [PATCH 07/13] OpenACC 2.6 deep copy: libgomp parts

2019-12-21 Thread Thomas Schwinge
equently-used/API-specific data" commit, <80e0dba326a4414fd2dbe8401dbd8d8f08445129.1576648001.git.julian@codesourcery.com">http://mid.mail-archive.com/80e0dba326a4414fd2dbe8401dbd8d8f08445129.1576648001.git.julian@codesourcery.com>, so curious why it now appears here -- ho

[patch, fortran] Updated fix PR 92961, ICE on division by zero error in array bounds

2019-12-22 Thread Thomas Koenig
information several calls deep, I chose to use a global variable. Regression-tested. OK for trunk? (Only a few bugs to fix to be at least below 900 bugs at the end of the year, by the way - we are at 389 submitted bugs vs. 461 closed, which is not bad). Regards Thomas 2019-12-22 Thomas

Re: [PATCH 09/13] OpenACC 2.6 deep copy: C and C++ front-end parts

2019-12-23 Thread Thomas Schwinge
-bit pointers, such as x86_64 GNU/Linux's '-m32' multilib. This will need further tweaking to enable tree dump scanning for all configurations, but for now, see attached "Restrict 'c-c++-common/goacc/mdc-1.c' to LP64, LLP64"; committed to trunk in r279720. Grü

Re: [Patch] OpenACC – support "if" + "if_present" clauses with "host_data"

2019-12-28 Thread Thomas Koenig
Hi Tobias, Build on x86-64-gnu-linux without offloading and with nvptx offloading. OK for the trunk? I can't really say a lot about OpenACC, but the changes do look reasonable. So, OK for trunk. Regards Thomas

*ping* [patch, fortran] Updated fix PR 92961, ICE on division by zero error in array bounds

2019-12-29 Thread Thomas Koenig
Am 22.12.19 um 16:28 schrieb Thomas Koenig: here is an update for the fix for PR 92961, which also takes care of the second test case in the PR (included in the first one). The patch itself should be clear enough - make sure that there is a MATCH_ERROR on matching an array spec which contains

*ping*[patch, fortran] Fix PR 91541, ICE on valid for INDEX

2019-12-29 Thread Thomas Koenig
Am 19.12.19 um 08:23 schrieb Thomas Koenig: Regression-tested. OK for trunk? Ping?

Re: [patch, libfortran] Fortran 2018: Support d0.d, e0.d, es0.d, en0.d, g0.d and ew.d e0 edit descriptors

2019-12-31 Thread Thomas Koenig
Hi Jerry, OK for trunk? Looks good. I also think that your approach that DEC stuff should be checked later is good. If it passes the testsuite, that's good enough for a commit. Thanks for the patch! Regards Thomas

[patch, fortran, committed] Fix dependency for %re and %im

2020-01-01 Thread Thomas Koenig
Hello world, New year, new bug, new patch :-) I have just committed as obvious and simple the attached patch as r279821, where we failed to account for %re and %im in dependency checking. This is a 10 regression, gcc 9 works. Regards Thomas Handle REF_INQUIRY for dependency checking

[patch, fortran] Fix PR 65428, ICE on nested empty array constructors

2020-01-02 Thread Thomas Koenig
, and the type has not been set some other way. Regression-tested. OK for trunk? Regards Thomas Save typespec for empty array constructor. 2020-01-02 Thomas Koenig PR fortran/65428 * array.c (empty_constructor): New variable. (empty_ts): New var

Re: [Patch, Fortran] PR 92994 – add more ASSOCIATE checks

2020-01-02 Thread Thomas Koenig
Hi Tobias, Build on x86-64-gnu-linux. OK for the trunk? Looks good. Thanks for the patch! Regards Thomas

Re: [Patch, Fortran] PR91640 – Fix call to contiguous dummy

2020-01-03 Thread Thomas König
xample counting while statements in the *.original dump) that the copyback does not happen. Generally, if we are passing an expression, the call to gfc_conv_subref_array_arg is not needed - we will generate an array temporary for the expression anyway, and this will always be contiguous. Regards Thomas

Fortran patches to be reviewed (was: [Patch, Fortran] PR91640 – Fix call to contiguous dummy)

2020-01-03 Thread Thomas Koenig
Hi Tobias, PS: I lost a bit the overview. Is there any patch pending review or otherwise pending? From my side, there is the patch for PR 65428, https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00040.html Apart from that, I don't see any outstanding patches. Regards Thomas

Re: [Patch, Fortran] PR91640 – Fix call to contiguous dummy

2020-01-03 Thread Thomas König
patch! Regards Thomas

Re: [committed] Fix UB in gfc_trans_omp_clauses (PR fortran/93162)

2020-01-07 Thread Thomas Schwinge
add test cases etc. (... but need not be done right now.) Grüße Thomas > 2020-01-07 Jakub Jelinek > > PR fortran/93162 > * trans-openmp.c (gfc_trans_omp_clauses): Check for REF_ARRAY type > before testing u.ar.type == AR_FULL. > > --- gcc/fortran/trans-o

Re: [PATCH] Rename condition_variable_any::wait_on_* methods

2020-01-07 Thread Thomas Rodgers
Tested x86_64-pc-linux-gnu, committed to trunk. Jonathan Wakely writes: > On 10/12/19 22:38 -0800, Thomas Rodgers wrote: >>User-agent: mu4e 1.3.4; emacs 26.2 >> * include/std/condition_variable >> (condition_variable_any::wait_on(_Lock&, stop_token, _Pred

*ping* [patch, fortran] Fix PR 65428, ICE on nested empty array constructors

2020-01-07 Thread Thomas Koenig
Am 02.01.20 um 23:35 schrieb Thomas Koenig: Hello world, the attached patch fixes an ICE where an array constructor containing an empty array constructor with a type didn't get the type from the inner constructor. The solution is to stash the type away in yet another variable and only u

Re: [Patch, Fortran] OpenMP/OpenACC – fix more issues with OPTIONAL

2020-01-08 Thread Thomas Schwinge
ors) UNRESOLVED: libgomp.fortran/use_device_ptr-optional-3.f90 -Os compilation failed to produce executable ... due to: /tmp/cciVc43I.o:(.gnu.offload_vars+0x10): undefined reference to `A.12.4064' [...] ..., which may be something like PR90779, PR85063, PR84592, PR90779, PR80411,

Re: [PATCH] libstdc++: Clear padding bits in atomic compare_exchange

2021-11-02 Thread Thomas Rodgers
Jelinek wrote: > On Mon, Nov 01, 2021 at 06:25:45PM -0700, Thomas Rodgers via Gcc-patches > wrote: > > +template > > + constexpr bool > > + __maybe_has_padding() > > + { > > +#if __has_builtin(__has_unique_object_representations) > > + r

[ping^3] Make sure that we get unique test names if several DejaGnu directives refer to the same line [PR102735]

2021-11-08 Thread Thomas Schwinge
Hi! Ping, once more. Grüße Thomas On 2021-10-14T12:12:41+0200, I wrote: > Hi! > > Ping, again. > > Commit log updated for <https://gcc.gnu.org/PR102735> > "privatization-1-compute.c results in both XFAIL and PASS". > > > Grüße > Thomas >

Get rid of infinite recursion for 'typedef' used with GTY-marked 'gcc/diagnostic-spec.h:nowarn_map' [PR101204] (was: [PATCH 1/13] v2 [PATCH 1/13] Add support for per-location warning groups (PR 74765)

2021-11-09 Thread Thomas Schwinge
Hi! On 2021-09-01T18:14:46-0600, Martin Sebor wrote: > On 9/1/21 1:35 PM, Thomas Schwinge wrote: >> On 2021-06-23T13:47:08-0600, Martin Sebor via Gcc-patches >> wrote: >>> --- /dev/null >>> +++ b/gcc/diagnostic-spec.h >> >>> +typedef location_

Get rid of infinite recursion for 'typedef' used with GTY-marked 'gcc/diagnostic-spec.h:nowarn_map' [PR101204, PR103157]

2021-11-09 Thread Thomas Schwinge
Hi! On 2021-11-09T11:54:04+0100, Richard Biener wrote: > On Tue, Nov 9, 2021 at 11:28 AM Thomas Schwinge > wrote: >> On 2021-09-01T18:14:46-0600, Martin Sebor wrote: >> > On 9/1/21 1:35 PM, Thomas Schwinge wrote: >> >> On 2021-06-23T13:47:08-0600, Martin Se

Re: [PING^3] Generalize 'gcc/input.h:struct location_hash' (was: [Committed] [PATCH 2/4] (v4) On-demand locations within string-literals)

2021-11-09 Thread Thomas Schwinge
Hi! On 2021-10-17T16:33:03-0600, Jeff Law via Gcc-patches wrote: > On 9/30/2021 12:47 AM, Thomas Schwinge wrote: >> On 2021-09-17T13:16:14+0200, I wrote: >>> On 2021-09-10T09:48:56+0200, I wrote: >>>> On 2021-09-03T18:33:37+0200, I wrote: >>>>> On

Use 'location_hash' for 'gcc/diagnostic-spec.h:nowarn_map' (was: [PATCH 1/13] v2 [PATCH 1/13] Add support for per-location warning groups (PR 74765))

2021-11-09 Thread Thomas Schwinge
Hi! On 2021-09-03T21:16:46+0200, I wrote: > On 2021-09-01T18:14:46-0600, Martin Sebor wrote: >> On 9/1/21 1:35 PM, Thomas Schwinge wrote: >>> On 2021-06-23T13:47:08-0600, Martin Sebor via Gcc-patches >>> wrote: >>>> --- /dev/null >>>> +++ b

Use 'location_hash' for 'seen_locations' in 'gcc/profile.c:branch_prob' (was: [PATCH] Fix GCOV CFG related issues)

2021-11-09 Thread Thomas Schwinge
>FOR_EACH_BB_FN (bb, cfun) > { > gimple_stmt_iterator gsi; Given my recent commit 088199e5d0fc0d54f48af0783a2630a773bbb387 "Generalize 'gcc/input.h:struct location_hash'", OK to push the attached "Use 'location_hash' for 'see

Re: [committed] openmp: Fix up strtoul and strtoull uses in libgomp

2021-11-09 Thread Thomas Schwinge
ptr == pos', like everywhere else. (That there are no diagnostics for malformed 'GOMP_OPENACC_DIM', is a different topic, of course.) > >goacc_default_dims[i] = (int)val; > - pos = eptr; > + pos = (const char *) eptr; > } > } Pushed to maste

Re: [committed] openmp: Fix handling of numa_domains(1)

2021-11-11 Thread Thomas Schwinge
contains '0-1', I get a FAIL: [...] OPENMP DISPLAY ENVIRONMENT BEGIN _OPENMP = '201511' OMP_DYNAMIC = 'FALSE' OMP_NESTED = 'FALSE' OMP_NUM_THREADS = '8' OMP_SCHEDULE = 'DYNAMIC' OMP_PROC_BIND = 'TRUE

Re: [ping^4] Make sure that we get unique test names if several DejaGnu directives refer to the same line [PR102735]

2021-11-15 Thread Thomas Schwinge
Hi! ..., and here is another ping. Grüße Thomas On 2021-11-08T11:45:12+0100, I wrote: > Hi! > > Ping, once more. > > > Grüße > Thomas > > > On 2021-10-14T12:12:41+0200, I wrote: >> Hi! >> >> Ping, again. >> >> Commit log up

[ping] Use 'location_hash' for 'gcc/diagnostic-spec.h:nowarn_map'

2021-11-15 Thread Thomas Schwinge
Hi! Ping. Grüße Thomas On 2021-11-09T15:18:44+0100, I wrote: > Hi! > > On 2021-09-03T21:16:46+0200, I wrote: >> On 2021-09-01T18:14:46-0600, Martin Sebor wrote: >>> On 9/1/21 1:35 PM, Thomas Schwinge wrote: >>>> On 2021-06-23T13:47:08-0600, Marti

Add 'libgomp.oacc-c-c++-common/loop-gwv-2.c' (was: [PATCH, OpenACC] Add support for gang local storage allocation in shared memory)

2021-05-19 Thread Thomas Schwinge
be it was for some earlier revision of these code changes? Anyway, as it's all-PASS for all systems that I've tested on, I've now pushed "Add 'libgomp.oacc-c-c++-common/loop-gwv-2.c'" to master branch in commit 5a16fb19e7c4274f8dd9bbdd30d7d06fe2ef

Add 'libgomp.oacc-c-c++-common/private-atomic-1.c' [PR83812] (was: [PATCH][testsuite, nvptx] Add effective target sync_int_long_stack)

2021-05-19 Thread Thomas Schwinge
and I've filed <https://gcc.gnu.org/PR100678> "[OpenACC/nvptx] 'libgomp.oacc-c-c++-common/private-atomic-1.c' FAILs (differently) in certain configurations"... :-\ As it's not clear yet what the conditions are, I cannot come up with a selector to (differently) XFAI

Re: [PATCH][libgomp, nvptx] Fix hang in gomp_team_barrier_wait_end

2021-05-20 Thread Thomas Schwinge
ture use (given that they've been tested to work) or remove (as now unused, danger of bit-rot)? Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf

Add 'libgomp.oacc-fortran/privatized-ref-2.f90'

2021-05-21 Thread Thomas Schwinge
] | ^ [...]/libgomp.oacc-fortran/privatized-ref-2.f90:27:30: note: ‘a’ declared here 27 | integer, allocatable :: A(:) | ^ I haven't looked into these. Grüße Thomas - Mentor Graphics

Re: [PATCH 1/3] openacc: Add support for gang local storage allocation in shared memory

2021-05-21 Thread Thomas Schwinge
Hi! On 2021-04-19T12:23:56+0100, Julian Brown wrote: > On Thu, 15 Apr 2021 19:26:54 +0200 > Thomas Schwinge wrote: >> This has iterated through several conceptually different designs and >> implementations, by several people, over the past several years. > > I hope thi

Re: [PATCH 3/3] nvptx: NVPTX parts for OpenACC private variables patch

2021-05-21 Thread Thomas Schwinge
e aspects [PR90115]" to master branch in commit f6f45309d9fc140006886456b291e4ac24812cea, see attached. Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf >F

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

2021-05-21 Thread Thomas Schwinge
tmt), ctx); > >block = make_node (BLOCK); So, yes -- but then, apparently, that again got lost in a later version of the patch. ;-) I've pushed "[OpenACC privatization] Don't evaluate OpenMP 'for' clauses [PR90115]" to master branch in commit 3a285ebd0cf5

Re: [PATCH 1/3] openacc: Add support for gang local storage allocation in shared memory

2021-05-21 Thread Thomas Schwinge
s is a separate bug to be fixed. I've pushed "[OpenACC privatization] Don't let unhandled 'IFN_UNIQUE_OACC_PRIVATE' linger [PR90115]" to master branch in commit ff451ea723deb3fe8471eb96ac9381c063ec6533, see attached. Grüße Thomas - Mentor Graphics (Deutsc

Re: [PATCH 1/3] openacc: Add support for gang local storage allocation in shared memory

2021-05-21 Thread Thomas Schwinge
Hi! On 2021-04-19T12:23:56+0100, Julian Brown wrote: > On Thu, 15 Apr 2021 19:26:54 +0200 > Thomas Schwinge wrote: >> On 2021-02-26T04:34:50-0800, Julian Brown >> wrote: >> > Two new target hooks are introduced: >> > TARGET_GOACC_ADJUST_PRIVATE_DECL and TA

Re: [PATCH 1/3] openacc: Add support for gang local storage allocation in shared memory

2021-05-21 Thread Thomas Schwinge
Hi! On 2021-04-19T12:23:56+0100, Julian Brown wrote: > On Thu, 15 Apr 2021 19:26:54 +0200 > Thomas Schwinge wrote: >> As that may not be obvious to the reader, I'd like to have the >> 'TREE_ADDRESSABLE' conditionalization be documented in the code. You

[OpenACC privatization] Reject 'static', 'external' in blocks [PR90115] (was: [Patch][OG10] omp-low.c: Avoid offload-target lto1 is-missing error by not-privatizing TREE_READONLY vars)

2021-05-21 Thread Thomas Schwinge
extern int e; static int s; [...] #pragma acc parallel { #pragma acc loop gang private(e, s) for ([...]) [...] } Is the idea that these are to be "properly privatized"? The gang-private instances of 'e', 's' lose

Re: [r12-989 Regression] FAIL: libgomp.oacc-fortran/privatized-ref-2.f90 -DACC_DEVICE_TYPE_host=1 -DACC_MEM_SHARED=1 -foffload=disable -Os (test for warnings, line 98) on Linux/x86_64

2021-05-22 Thread Thomas Schwinge
927876c315d1fa706d9881 > Author: Thomas Schwinge > Date: Fri May 21 08:51:47 2021 +0200 > > [OpenACC privatization] Reject 'static', 'external' in blocks [PR90115] Actually not that one, but instead one commit before is the culprit: commit 11b8286a83289f

[PATCH] [libstdc++] Remove unused hasher instance.

2021-06-04 Thread Thomas Rodgers
This is a remnant of poorly executed refactoring. libstdc++-v3/ChangeLog: * include/std/barrier (__tree_barrier::_M_arrive): Remove unnecessary hasher instantiation. --- libstdc++-v3/include/std/barrier | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/std/b

[PATCH] [libstdc++] Cleanup atomic timed wait implementation

2021-06-04 Thread Thomas Rodgers
This cleans up the implementation of atomic_timed_wait.h and fixes the accidental pessimization of spinning after waiting in __timed_waiter_pool::_M_do_wait_until. libstdc++-v3/ChangeLog: * include/bits/atomic_timed_wait.h (__wait_clock_t): Define conditionally. (__cond_wa

[PATCH] PR libstdc++/100889: Fix wrong param type in atomic_ref<_Tp*>::wait

2021-06-04 Thread Thomas Rodgers
Fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100889 libstdc++-v3/ChangeLog: * include/bits/atomic_base.h (atomic_ref<_Tp*>::wait): Change parameter type from _Tp to _Tp*. * testsuite/29_atomics/atomic_ref/deduction.cc: Add reproducer case from PR. --- libstd

[PATCH] [libstdc++] Fix Wrong param type in :atomic_ref<_Tp*>::wait [PR100889]

2021-06-04 Thread Thomas Rodgers
Fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100889 libstdc++-v3/ChangeLog: * include/bits/atomic_base.h (atomic_ref<_Tp*>::wait): Change parameter type from _Tp to _Tp*. * testsuite/29_atomics/atomic_ref/100889.cc: New test. --- libstdc++-v3/include/bits/atomic_bas

Re: [PATCH, OpenMP 5.0] Implement relaxation of implicit map vs. existing device mappings (for mainline trunk)

2021-06-07 Thread Thomas Schwinge
zero on map clauses added implicitly for reduction clauses on combined or composite constructs. They shall be removed if there is an explicit map clause. */ #define OMP_CLAUSE_MAP_IMPLICIT(NODE) \ (OMP_CLAUSE_SUBCODE_CHECK (NODE, OMP_CLAUSE_MAP)->base.default_

[PATCH] libstdc++: Fix Wrong param type in :atomic_ref<_Tp*>::wait [PR100889] [PR100889]

2021-06-07 Thread Thomas Rodgers
Fixes libstdc++/100889 libstdc++-v3/ChangeLog: * include/bits/atomic_base.h (atomic_ref<_Tp*>::wait): Change parameter type from _Tp to _Tp*. * testsuite/29_atomics/atomic_ref/wait_notify.cc: Extend coverage of types tested. --- libstdc++-v3/include/bits/atomic_ba

[PATCH] libstdc++: Fix Wrong param type in :atomic_ref<_Tp*>::wait [PR100889]

2021-06-07 Thread Thomas Rodgers
This time without the repeatred [PR] in the subject line. Fixes libstdc++/100889 libstdc++-v3/ChangeLog: * include/bits/atomic_base.h (atomic_ref<_Tp*>::wait): Change parameter type from _Tp to _Tp*. * testsuite/29_atomics/atomic_ref/wait_notify.cc: Extend cov

Re: [PATCH 1/9] [nvptx] Enable large vectors

2021-06-08 Thread Thomas Schwinge
t (); As obvious, pushed "[nvptx] Update comment in 'libgomp.oacc-c-c++-common/parallel-dims.c'" to master branch in commit e64d62c7008e6a4b0227fd25e071db8f0b3f1820, see attached. Grüße Thomas ----- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München

Re: [committed][nvptx] Handle assignment to gang-level reduction variable

2021-06-08 Thread Thomas Schwinge
s.c'" to master branch in commit 0886426f5f543e813c1a61e18da6616caf377dfc, see attached. Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf >From 088642

Re: [patch, libgomp] Enable OpenACC GCN testing

2021-06-08 Thread Thomas Schwinge
[string match "amdgcn*" $offload_target] } { > +return 1; > +} > +return 0; > +} Pushed "[GCN] Streamline 'libgomp/testsuite/lib/libgomp.exp:check_effective_target_openacc_radeon_accel_selected'" to master branch in commit f9da798ba6348feaa

Re: [openacc, testsuite, committed] Enable libgomp.oacc-*/declare-*.{c,f90} for non-nvidia devices

2021-06-08 Thread Thomas Schwinge
#x27;" to master branch in commit 77f41a5c4e60a88533c90f0948b4dd24c9bb88b2, see attached. Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf >From 77f41a5c4e60a88533c90f0948b4dd24c9bb8

<    2   3   4   5   6   7   8   9   10   11   >