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

2020-11-03 Thread Thomas Schwinge
OpenACC] Use proper location to 'inform' of enclosing parent compute construct" to master branch in commit fab72592d86d11b89a01f0f3c2c9c329d43466c1, and backported to releases/gcc-10 branch in commit a32d089dcf3edaa625e4871e78150b7d297cda5b, see attached. Grüße Thomas - Mentor G

[PATCH] libstdc++: Add support for C++20 barriers

2020-11-04 Thread Thomas Rodgers
From: Thomas Rodgers Adds libstdc++/ChangeLog: * include/Makefile.am (std_headers): Add new header. * include/Makefile.in: Regenerate. * include/std/barrier: New file. * testsuite/30_thread/barrier/1.cc: New test. * testsuite/30_thread/barrier/2.cc

[PATCH] libstdc++: Add support for C++20 barriers

2020-11-04 Thread Thomas Rodgers
From: Thomas Rodgers IGNORE the previous version of this patch please. Adds libstdc++/ChangeLog: * include/Makefile.am (std_headers): Add new header. * include/Makefile.in: Regenerate. * include/std/barrier: New file. * testsuite/30_thread/barrier/1.cc: New

Re: [PATCH] libstdc++: Add support for C++20 barriers

2020-11-04 Thread Thomas Rodgers
> On Nov 4, 2020, at 10:52 AM, Jonathan Wakely wrote: > > On 04/11/20 10:41 -0800, Thomas Rodgers wrote: >> From: Thomas Rodgers >> >> IGNORE the previous version of this patch please. > > OK, but all my comments seem to apply to this one too. >

Re: [PATCH] libstdc++: Add support for C++20 barriers

2020-11-04 Thread Thomas Rodgers
> On Nov 4, 2020, at 10:50 AM, Jonathan Wakely wrote: > > On 04/11/20 09:29 -0800, Thomas Rodgers wrote: >> From: Thomas Rodgers >> >> Adds >> >> libstdc++/ChangeLog: >> >> * include/Makefile.am (std_headers): Add ne

Re: [PATCH] libstdc++: Implement C++20 features for

2020-11-04 Thread Thomas Rodgers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97719 > On Nov 4, 2020, at 11:54 AM, Stephan Bergmann wrote: > > On 07/10/2020 18:55, Thomas Rodgers wrote: >> From: Thomas Rodgers >> New ctors and ::view() accessor for - >> * basic_stingbuf >> * basic_istring

Re: [PATCH] dumpfile.c: use prefixes other that 'note: ' for MSG_{OPTIMIZED_LOCATIONS|MISSED_OPTIMIZATION}

2020-11-06 Thread Thomas Schwinge
ite] Enable column location checking for 'dg-optimized', 'dg-missed'" -- with or without the demonstrator 'gcc.dg/vect/nodump-vect-opt-info-1.c', 'gcc.dg/vect/nodump-vect-opt-info-2.c' changes, your call? (I still have to run this through regression testin

Re: [PATCH] dumpfile.c: use prefixes other that 'note: ' for MSG_{OPTIMIZED_LOCATIONS|MISSED_OPTIMIZATION}

2020-11-06 Thread Thomas Schwinge
pilation to fail). Thus, same as 'dg-message', these should use 'saved-dg-warning' instead of 'saved-dg-error', which will print: "(test for *warnings*, line [...])". OK to change that after regression testing? Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter

Add 'dg-note' next to 'dg-optimized', 'dg-missed' (was: [PATCH] dumpfile.c: use prefixes other that 'note: ' for MSG_{OPTIMIZED_LOCATIONS|MISSED_OPTIMIZATION})

2020-11-06 Thread Thomas Schwinge
ially interested if *additional* notes appear over time, as GCC evolves. It seemed somewhat useful, but I'm not insisting on coupling the disabling of notes pruning on 'dg-note' usage, so if anyone feels strongly about that, please speak up. TODO document (also 'dg-optimized'

Re: Split up "gfortran.dg/goacc/loop-2.f95"

2020-11-06 Thread Thomas Schwinge
.dg/goacc/loop-6.f95'" to master branch in commit 4dfa1789ab6560a69de22afe7982f372f598c5b8 and commit 52b74462176e4741ce1248c055e6bb1cb902c025, and backported to releases/gcc-10 branch in commit 1288da82c0f239e81cc8474d320edb517a5754d1 and commit 594672c89dd4279fcf3b5a824d69b206ebf4b700, see attached. Grüße Thomas

Re: Use existing middle end checking for Fortran OpenACC loop clauses

2020-11-06 Thread Thomas Schwinge
ove OpenACC 'loop' inside 'parallel' special-case code" to master branch in commit 4c27f900950ed0ecb2897a8931c5cc348b1980be, and backported to releases/gcc-10 in commit f41ca73aa11f28ad7d847ac5bf7e07f8bc763721, see attached. Grüße Thomas - Mento

Re: RFC: Monitoring old PRs, new dg directives [v2]

2020-11-10 Thread Thomas Schwinge
es should automatically be demoted into '{ dg-do compile }', but that would be wrong for link-time ICEs. But can we "expect" the UNRESOLVED, and turn that into another XFAIL? Aha, actually I see that for '{ dg-do link }', this seems to behave as expected (no UNRESOLV

Re: [committed] gfortran.dg/gomp/workshare-reduction-*.f90: Fix dumps for -m32 (was: Re: [Patch] Fortran: OpenMP 5.0 (in_, task_)reduction clause extensions)

2020-11-11 Thread Thomas Schwinge
ed – I assume that's because the C > testcase uses 'unsigned' which does not exist with Fortran. > > Committed as r11-4903-g1644ab9917ca6b96e9e683c422f1793258b9a3db I'm confirming this fixes things for '-m32' -- but it also broke '-m64'. ;-) Grüße

Re: [Patch] Fortran: improve location data for OpenACC/OpenMP directives [PR97782]

2020-11-12 Thread Thomas Schwinge
milar testsuite coverage with other pending patches of mine. > In principle, it should also have an effect on warnings (if there are > any) and it unsurprisingly affects --fdump-tree-*-lineno. > > Comments, remarks, does it look good to you? I have not verified all the details,

Re: [Patch] Fortran: improve location data for OpenACC/OpenMP directives [PR97782]

2020-11-12 Thread Thomas Schwinge
evant for releases/gcc-10 branch; the commit introducing that testcase isn't there yet -- that's to be discussed in a different thread.) Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Gesch

Add 'libgomp.oacc-fortran/pr94358-1.f90' [PR94358] (was: [PATCH, OpenACC] Rework OpenACC Fortran DO loop initialization)

2020-11-13 Thread Thomas Schwinge
ba078d9bcc3457d36ba12695cfef29eb3ca942, see attached. Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter >From d1ba078d9bcc3457d36ba12695cfef29eb3ca

Attach an attribute to all outlined OpenACC compute regions

2020-11-13 Thread Thomas Schwinge
Hi! I've pushed "Attach an attribute to all outlined OpenACC compute regions" to master branch in commit 703e4f86496214e4915db898397fcd0ae1d955e0, and backported to releases/gcc-10 branch in commit 40bf92be5b621318a43347236508696cc387f3a6, see attached. Grüße Thomas -

More explicit checking of which OMP constructs we're expecting

2020-11-13 Thread Thomas Schwinge
Hi! I've pushed "More explicit checking of which OMP constructs we're expecting" to master branch in commit bd7885755405bc9947ebe805a53d6100c78c8e82, and backported to releases/gcc-10 branch in commit 00d4aa2128fd73b49e28c8a8c5fcb81150b640fe, see attac

Decompose OpenACC 'kernels' constructs into parts, a sequence of compute constructs (was: [og8] OpenACC 'kernels' construct changes: splitting of the construct into several regions)

2020-11-13 Thread Thomas Schwinge
t; items, but nevertheless: it's a good first step. That's still the case... :-) Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter &

In 'gcc/omp-oacc-kernels-decompose.cc', use langhook instead of accessing language-specific decl information (was: [PATCH 04/10, OpenACC] Turn OpenACC kernels regions into a sequence of, parallel regi

2020-11-13 Thread Thomas Schwinge
(lang_hooks.decls.get_generic_function_decl (current_function_decl) != NULL) ..., so thanks, Kwok, that you've figured that out. :-) I've just pushed to master branch commit ccd56db89806a5f6eb3be99fc3b4fe364cf35e98 "In 'gcc/omp-oacc-kernels-decompose.cc', use langhook i

Re: OpenACC 'kernels' testsuite failures

2020-11-16 Thread Thomas Schwinge
ese tests be skipped or adjusted to not fail on other > systems? They are expected to work fine on all systems; they're not specific to actual code offloading. So if something FAILs, we shall resolve it. Grüße Thomas - Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter

Re: OpenACC 'kernels' testsuite failures

2020-11-16 Thread Thomas Schwinge
Hi David! While you were writing your email, I've also been busy: On 2020-11-16T11:32:46-0500, David Edelsohn wrote: > On Mon, Nov 16, 2020 at 9:16 AM Thomas Schwinge > wrote: >> On 2020-11-15T15:47:15-0500, David Edelsohn wrote: >> > I am seeing a number of new

Re: [PATCH] libstdc++: Enable without gthreads

2020-11-16 Thread Thomas Rodgers
This patch looks good to me. It would be great to find a way to do a similar refactoring of condition_variable. > On Nov 12, 2020, at 9:07 AM, Jonathan Wakely via Libstdc++ > wrote: > > On 11/11/20 17:31 +, Jonathan Wakely wrote: >> On 11/11/20 16:13 +, Jonathan Wakely wrote: >>> This

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

2020-01-09 Thread Thomas Koenig
you might consider to add them as well. (I would exclude the error item, however.) I have also added this as a test case. Committed as r280063 (without the spaces at the end of the lines that you pointed out in a separate mail). Thanks for the review! Regards Thomas

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

2020-01-09 Thread Thomas Schwinge
omp.oacc-c-c++-common/host_data-7.c > --- /dev/null > +++ b/libgomp/testsuite/libgomp.oacc-fortran/host_data-5.F90 If I understand correctly that these two are testing the same things, then please cross-reference them: "C/C++ variant of 'libgomp.oacc-fortran/host_data-5.F90'", "Fortran variant of 'libgomp.oacc-c-c++-common/host_data-7.c'. If that makes sense to consider (now or later), as I see there's some overlap in the 'gcc/omp-low.c:lower_omp_target' code paths: do we need test cases to verify 'if_present' in combination with Fortran optional arguments? Grüße Thomas

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

2020-01-10 Thread Thomas Schwinge
SET_INLINED' already, to avoid again processing this in the second loop. > If that makes sense to consider (now or later), as I see there's some > overlap in the 'gcc/omp-low.c:lower_omp_target' code paths: do we need > test cases to verify 'if_present' in combi

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

2020-01-10 Thread Thomas Schwinge
the libgomp plugins that don't implement OpenACC support. >>> Maybe [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. ;-) >> &

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

2020-01-16 Thread Thomas Schwinge
t char *driver = acc_get_property_string (dev_num, dev_type, > + acc_property_driver); > + if (strcmp (expected_driver, driver)) > +{ > + fprintf (stderr, "Expected acc_property_driver to equal %s, " > +"but was %s.\n", expected_driver, driver); > + abort (); > +} > + > + int unknown_property = 16058; > + int v = acc_get_property (dev_num, dev_type, > (acc_device_property_t)unknown_property); > + if (v != 0) > +{ > + fprintf (stderr, "Expected value of unknown numeric property to equal > 0, " > +"but was %d.\n", v); > + abort (); > +} > + > + int unknown_property2 = -16058; > + const char *s = acc_get_property_string (dev_num, dev_type, > (acc_device_property_t)unknown_property2); > + if (s != NULL) > +{ > + fprintf (stderr, "Expected value of unknown string property to be > NULL, " > +"but was %d.\n", s); > + abort (); > +} > + > + > +} Grüße Thomas signature.asc Description: PGP signature

[patch, fortran] Fix PR 44960, accepts invalid reference on function

2020-01-16 Thread Thomas Koenig
issue the error during resolution. Regression-tested. OK for trunk? Regards Thomas 2020-01-16 Thomas König PR fortran/44960 * resolve.c (resolve_function): Issue error when a function call contains a reference. 2020-01-16 Thomas König PR fortran/

Re: [patch, fortran] Fix PR 44960, accepts invalid reference on function

2020-01-17 Thread Thomas Koenig
rmation for the reference (which we do not collect), I think this is the best I can do. So, OK for trunk (with the old ChangeLog)? Regards Thomas diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 6f2a4c4d65a..a846677b770 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/reso

Re: [patch, fortran] Fix PR 44960, accepts invalid reference on function

2020-01-18 Thread Thomas Koenig
n see if I can also replace this with something more useful (have to find the place where this is issued first, though). Regards Thomas

Re: [patch, fortran] Fix PR 44960, accepts invalid reference on function

2020-01-18 Thread Thomas Koenig
for trunk? Regards Thomas 2020-01-18 Thomas König PR fortran/44960 * primary.c (gfc_match_rvalue): Break after setting MATCH_ERROR. * resolve.c (resolve_function): Issue error when a function call contains a reference. 2020-01-18 Thomas König

[patch, fortran] Fix PR 85781, ICE on valid

2020-01-19 Thread Thomas König
Regression-tested. OK for trunk? Regards Thomas 2020-01-19 Thomas König PR fortran/85781 * resolve.c (resolve_substring): If the substring is empty, set it to (1:0) explicitly. 2020-01-19 Thomas König PR fortran/85781 * gfortran.dg/substr_

Re: [patch, fortran] Fix PR 85781, ICE on valid

2020-01-21 Thread Thomas König
? Regards Thomas

Re: Fix false -Wodr warnings

2020-01-23 Thread Thomas Schwinge
... that one. As obvious, pushed Dominique's trunk r270390/commit ef9387d8fe79219a106c3f9d6c6a87b0a9065d54 to releases/gcc-8 in 8e55f241ab8c754a2ab8ec2fe39afd9173589401 "pr89358_0.C: Replace dg-* with dg-lto-*.", see attached. Grüße Thomas >> PR lto/89358 >> * g++.dg/lto/pr89358_0

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

2020-01-23 Thread Thomas Schwinge
Hi Frederik! On 2020-01-20T15:01:01+0100, "Harwath, Frederik" wrote: > I have attached a patch containing the changes that you suggested. > On 16.01.20 17:00, Thomas Schwinge wrote: >> On 2019-12-20T17:46:57+0100, "Harwath, Frederik" >> wrote: > Ok

[PATCH] Suppress deprecation warnings in tbb effective target check

2020-01-23 Thread Thomas Rodgers
From cfd3c2e2a49dd3e29b42baa0f22feffd4b346231 Mon Sep 17 00:00:00 2001 From: Thomas Rodgers Date: Thu, 23 Jan 2020 21:54:44 -0800 Subject: [PATCH] Suppress deprecation warnings in tbb effective target check TBB 2020 added deprecation warnings which produced output not expected by

Re: [patch, fortran] Fix PR 85781, ICE on valid

2020-01-25 Thread Thomas König
Hi Tobias, I hope my patch covers all issues. – OK for the trunk? Yep. Thanks a lot for the patch! Regards Thomas

Fortran 'acc_get_property' return type (was: [PATCH] Add OpenACC 2.6 `acc_get_property' support)

2020-01-27 Thread Thomas Schwinge
er(acc_device_property) :: acc_get_property`, | whereas in C/C++, it is `size_t`. For avoidance of doubt: it's correct | to map the C/C++ `acc_device_property_t property` formal parameter to | Fortran `integer(acc_device_property), value :: property`, but it's not | clear w

[PR93488] [OpenACC] ICE in type-cast 'async', 'wait' clauses (was: [patch, openacc] Fix ICE verifying gimple)

2020-01-29 Thread Thomas Schwinge
#x27;gsi_insert_before'. Include a test case that covers all relevant code paths; I've attached a test case to the PR, but I've not verified whether "that covers *all* relevant code paths". This should then be backported to all GCC release branches; I can easily test the backp

Re: [PATCH][OpenACC] Add acc_device_radeon to name_of_acc_device_t function

2020-01-29 Thread Thomas Schwinge
trunk commit of the AMD GCN offloading support, given that we did have it on the development branch.) > Ok to commit this patch to master? Thanks, OK. Reviewed-by: Thomas Schwinge This also supersedes Tobias' earlier patch, <http://mid.mail-archive.com/a1ae248c-ce70-f501-d421

Re: [PATCH] Add OpenACC acc_get_property support for AMD GCN

2020-01-29 Thread Thomas Schwinge
0 > +++ b/libgomp/testsuite/libgomp.oacc-fortran/acc_get_property.f90 > @@ -3,8 +3,6 @@ > ! of all device types mentioned in the OpenACC standard. > ! > ! See also acc_get_property.c > -! { dg-do run { target { { ! { openacc_host_selected } } && { ! { > openacc_amdgcn_

Re: [PATCH] libstdc++: Fix conformance issues in (PR92895)

2020-01-29 Thread Thomas Rodgers
Looks good to me, ok for trunk. Thanks. Jonathan Wakely writes: > Fix synchronization issues in . Replace shared_ptr with > _Stop_state_ref and a reference count embedded in the shared state. > Replace std::mutex with spinlock using one bit of a std::atomic<> that > also tracks whether a stop re

Re: [PATCH] OpenACC reference count consistency checking

2020-01-30 Thread Thomas Schwinge
gma acc exit data delete ([data]) // no-op; S: 1, D: 0 } // copyout; S: 0, D: 0 assert (!acc_is_present ([data])); (Haven't compiled but I'm reasonably sure that the nesting and my manual "[action]; [S], [D]" annotations are correct. But please verify, if cou

Make OpenACC 'acc_get_property' with 'acc_device_current' work (was: [PATCH] Add OpenACC 2.6 `acc_get_property' support)

2020-01-30 Thread Thomas Schwinge
s out of that. (That's still pending, but) notwithstanding the specific value we'll use eventually, the 'acc_device_current' interface should work already now. ..., but I noticed that we don't have any test cases for that (so by that definition, it must be broken). The curio

Re: [PATCH] Add OpenACC acc_get_property support for AMD GCN

2020-01-30 Thread Thomas Schwinge
YPE_GPU > + || (support_cpu_devices && device_type == HSA_DEVICE_TYPE_CPU))) > + return HSA_STATUS_SUCCESS; > + > + AGENT_GET_INFO (HSA_AGENT_INFO_NAME, name) > + AGENT_GET_INFO (HSA_AGENT_INFO_VENDOR_NAME, vendor_name) > + > + SYSTEM_GET_INFO (HSA_SYSTEM_INFO_VERSION_MINOR, minor) > + SYSTEM_GET_INFO (HSA_SYSTEM_INFO_VERSION_MAJOR, major) > + > + snprintf (driver, sizeof driver, "HSA Runtime %hu.%hu", > + (unsigned short int)major, (unsigned short int)minor); > + > + expect_device_string_properties(acc_device_radeon, *dev_num, > + vendor_name, name, driver); > + > + (*dev_num)++; > + > + return status; > +} > + > +int main () > +{ > + int dev_num = 0; > + test_setup (); > + > + hsa_status_t status = > +hsa_iterate_agents_fn (&check_agent_properties, &dev_num); > + > + return status; > +} Grüße Thomas signature.asc Description: PGP signature

Re: [PATCH] Add OpenACC acc_get_property support for AMD GCN

2020-01-31 Thread Thomas Schwinge
Hi! On 2020-01-30T16:45:39+, Andrew Stubbs wrote: > On 30/01/2020 16:08, Thomas Schwinge wrote: >> Andrew and Frederik, thanks for your emails reminding/educating me about >> 'snprintf' as well as this HSA fixed-size buffer API. There doesn't >> happen

Re: [PATCH] Add OpenACC acc_get_property support for AMD GCN

2020-01-31 Thread Thomas Schwinge
Hi Frederik! On 2020-01-31T13:17:52+0100, "Harwath, Frederik" wrote: > On 30.01.20 17:08, Thomas Schwinge wrote: > >> I understand correctly that the only reason for: >> >> On 2020-01-29T10:52:57+0100, "Harwath, Frederik" >> wr

Re: [PATCH] libgfortran: Fix and simplify IO locking [PR92836]

2020-02-01 Thread Thomas Koenig
nning to use as a test case? You can put multighreading programs into libgomp/testsuite/libgomp.fortran where they will be executed. Regards Thomas

Re: [Patch] [OpenMP] Add missing parameters to omp_lib documentation (PR fortran/93541)

2020-02-02 Thread Thomas Koenig
Hi Tobias, OK? – And for which branches? OK for all branches (assuming you checked with "make pdf" and "make dvi"). Thanks for doing this - our documentation is not always quite up to date... Regards Thomas

Re: [PATCH 1/13] v2 [PATCH 1/13] Add support for per-location warning groups (PR 74765)

2021-09-01 Thread Thomas Schwinge
-- patch in testing. Plus some more cleanup that fell out during analysis/development -- patches in testing. Oh, and one of these actually (unintentially so) happens to resolve <https://gcc.gnu.org/PR101204> "[12 Regression] infinite recursion in gtype-desc.c since r12-1801-g7036e9ef462

Re: [Committed] [PATCH 2/4] (v4) On-demand locations within string-literals

2021-09-02 Thread Thomas Schwinge
gt; + > +class GTY(()) string_concat_db > +{ > +[...] > + hash_map *m_table; > +}; OK to push the attached "Generalize 'gcc/input.h:struct location_hash'"? Grüße Thomas - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634

Re: [Committed] [PATCH 2/4] (v4) On-demand locations within string-literals

2021-09-02 Thread Thomas Schwinge
g/plugin/diagnostic-test-string-literals-1.c': for these, we do see 'BUILTINS_LOCATION' (via 'string_concat_db::record_string_concatenation'). Unless someone tell me that's unexpected (I'm completely lost in this code...), I shall change/generalize my changes to prov

Re: [Committed] [PATCH 2/4] (v4) On-demand locations within string-literals

2021-09-03 Thread Thomas Schwinge
for 'Deleted'. ... I didn't do this, but instead would like to push the attached "Don't record string concatenation data for 'RESERVED_LOCATION_P'" (replacing "Harden 'gcc/input.c:string_concat_db::get_key_loc'" as originally proposed).

Re: [PATCH 1/13] v2 [PATCH 1/13] Add support for per-location warning groups (PR 74765)

2021-09-03 Thread Thomas Schwinge
Hi! Martin, thanks for your review. Now need someone to formally approve the third patch. 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: >>> On 6/22/2

Re: [committed] openmp: Improve expand_omp_atomic_pipeline

2021-09-06 Thread Thomas Schwinge
762cd, see attached. And, I've filed <https://gcc.gnu.org/PR102215> "[GCN offloading] Missing '__atomic_compare_exchange_1' etc.". Grüße Thomas > 2021-09-03 Jakub Jelinek > > * omp-expand.c (expand_omp_atomic_pipeline): Use > IFN_ATOM

[PING] Don't maintain a warning spec for 'UNKNOWN_LOCATION'/'BUILTINS_LOCATION' [PR101574] (was: [PATCH 1/13] v2 [PATCH 1/13] Add support for per-location warning groups (PR 74765))

2021-09-10 Thread Thomas Schwinge
Hi! Ping. On 2021-09-03T21:16:46+0200, Thomas Schwinge wrote: > Martin, thanks for your review. Now need someone to formally approve the > third patch. Again attached for easy reference. Grüße Thomas > On 2021-09-01T18:14:46-0600, Martin Sebor wrote: >> On 9/1/21

[PING] Re: [Committed] [PATCH 2/4] (v4) On-demand locations within string-literals

2021-09-10 Thread Thomas Schwinge
Hi! Ping. My patches again attached, for easy reference. Grüße Thomas On 2021-09-03T18:33:37+0200, I wrote: > Hi! > > On 2021-09-02T21:09:54+0200, I wrote: >> On 2021-09-02T15:59:14+0200, I wrote: >>> On 2016-08-05T14:16:58-0400, David Malcolm wrote: >>>>

[PING] Re: Fix 'hash_table::expand' to destruct stale Value objects

2021-09-10 Thread Thomas Schwinge
Hi! On 2021-09-01T19:31:19-0600, Martin Sebor via Gcc-patches wrote: > On 8/30/21 4:46 AM, Thomas Schwinge wrote: >> Ping -- we still need to plug the memory leak; see patch attached, and/or >> long discussion here: > > Thanks for answering my questions. I have no concerns

Re: Host and offload targets have no common meaning of address spaces

2021-09-10 Thread Thomas Schwinge
Hi! Ping. Patch again attached for easy reference. Plus, incrementally, the two "should we" questions cited below? Grüße Thomas On 2021-08-24T12:23:07+0200, I wrote: > Hi! > > On 2021-08-19T22:13:56+0200, I wrote: >> On 2021-08-16T10:21:04+0200, Jakub Jelinek

Re: [COMMITTED][patch][version 9]add -ftrivial-auto-var-init and variable attribute "uninitialized" to gcc

2021-09-10 Thread Thomas Schwinge
e following bug: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269 No, not ICEs, but just "regular 'scan-tree-dump' FAILs". I suppose these are all data-type mismatches: for example, 'long' or 'int *' not mapping to the expected '8'

Re: [committed] Fortran: Add missing ST_OMP_END_SCOPE handling [PR102313]

2021-09-15 Thread Thomas Schwinge
DATA" } > + > +!$acc end HOST DATA ! { dg-error "Unclassifiable OpenACC directive" } Pushed to master branch commit 8b69c481fc86e04c6c83f3a49eef2760c175a8f2 "Add OpenACC 'host_data' testing to 'gfortran.dg/goacc/unexpected-end.f90'", s

Re: GNU Tools @ LPC 2021: Program is published

2021-09-15 Thread Thomas Schwinge
e on our front page to the Internet ;-) -- OK to push to wwwdocs master branch the attached "GNU Tools @ Linux Plumbers Conference 2021"? Grüße Thomas > A total of 25 talks, lightning talks and BoFs plus our regular Q&A > session with the GCC steering committee and Glibc, GDB

Re: GNU Tools @ LPC 2021: Program is published

2021-09-16 Thread Thomas Schwinge
Hi! On 2021-09-16T05:58:22+0200, Gerald Pfeifer wrote: > On Wed, 15 Sep 2021, Thomas Schwinge wrote: >>> The program for the GNU Tools Track at Linux Plumbers Conference is >>> published: >>> >>> https://linuxplumbersconf.org/event/11/sessions/109/

[PATCH] libstdc++: Fix UB in atomic_ref/wait_notify.cc [PR101761]

2021-09-16 Thread Thomas Rodgers
From: Thomas Rodgers Remove UB in atomic_ref/wait_notify test. Signed-off-by: Thomas Rodgers libstdc++-v3/ChangeLog: PR libstdc++/101761 * testsuite/29_atomics/atomic_ref/wait_notify.cc (test): Use va and vb as arguments to wait/notify, remove unused bb local. Tested

Re: [PATCH] Fix PR 67102: Add libstdc++ dependancy to libffi

2021-09-17 Thread Thomas Schwinge
we have a patch in the opposite direction: get rid of this dependency via removing 'lang_env_dependencies = { module=libffi; cxx=true; };' from 'Makefile.def'. See <http://mid.mail-archive.com/alpine.DEB.2.21..1812201344250.99920@build7-trusty-cs.sje.mentorg.com&g

[PING^2] Re: [Committed] [PATCH 2/4] (v4) On-demand locations within string-literals

2021-09-17 Thread Thomas Schwinge
Hi! On 2021-09-10T09:48:56+0200, I wrote: > Ping. My patches again attached, for easy reference. Ping once again. Grüße Thomas > On 2021-09-03T18:33:37+0200, I wrote: >> Hi! >> >> On 2021-09-02T21:09:54+0200, I wrote: >>> On 2021-09-02T15:59:14+0200, I w

[PING^2] Re: Fix 'hash_table::expand' to destruct stale Value objects

2021-09-17 Thread Thomas Schwinge
Hi! On 2021-09-10T10:00:25+0200, I wrote: > On 2021-09-01T19:31:19-0600, Martin Sebor via Gcc-patches > wrote: >> On 8/30/21 4:46 AM, Thomas Schwinge wrote: >>> Ping -- we still need to plug the memory leak; see patch attached, and/or >>> long discussion here:

Re: [PATCH] [og10] OpenACC: Shared memory layout optimisation

2021-09-17 Thread Thomas Schwinge
t; 32; i++) > + { > + int u = USES2(h,+); > + w += u; > + } > + > +printf ("w=%d\n", w); > +/* { dg-output "w=2048(\n|\r\n|\r)" } */ Is there a reason for device-side 'printf' plus 'dg-output' matching inste

Re: [PING^2] Re: Fix 'hash_table::expand' to destruct stale Value objects

2021-09-17 Thread Thomas Schwinge
Hi! On 2021-09-17T15:03:18+0200, Richard Biener wrote: > On Fri, Sep 17, 2021 at 2:39 PM Jonathan Wakely wrote: >> On Fri, 17 Sept 2021 at 13:08, Richard Biener >> wrote: >> > On Fri, Sep 17, 2021 at 1:17 PM Thomas Schwinge >> > wrote: >> > > On 2

[PATCH] libstdc++: Implement C++20 atomic and atomic

2021-09-17 Thread Thomas Rodgers
From: Thomas Rodgers Signed-off-by: Thomas Rodgers libstdc++-v3/ChangeLog: * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Do not match new _Sp_locker constructor. (GLIBCXX_3.4.30): Export _Sp_locker::_M_wait/_M_notify and new constructor. * include/bits

Re: [PATCH] [og10] OpenACC: Shared memory layout optimisation

2021-09-17 Thread Thomas Schwinge
4" } */ ... just without that directive, obviously. Pushed to master branch commit 8251f90e87f67e09f5203e8edd77bfe73b68a54d "Add 'libgomp.oacc-c-c++-common/broadcast-many.c'", see attached. Grüße Thomas - Siemens Electronic Design Automation GmbH; A

Re: [PATCH] [og10] OpenACC: Turn off worker partitioning if num_workers==1

2021-09-17 Thread Thomas Schwinge
RKER); > + > +/* No worker partitioning if we know the number of workers is 1. */ > +return worker_dim != 1; >}; Pushed to master branch commit 82792cc407d7a7ab99f37e8501d19be2e6164e50 "openacc: Turn off worker partitioning if num_workers==1", see attached. Grüße T

Re: [PATCH] [og10] OpenACC: Shared memory layout optimisation

2021-09-17 Thread Thomas Schwinge
deon_accel_selected } } +*/ (Would be good to have test cases testing for the error conditions handled in these changes here.) The the clean-up items from my earlier email remain to be done still. Pushed to master branch commit 2a3f9f6532bb21d8ab6f16fbe9ee603f6b1405f2 "openacc: Shared memor

Re: [PATCH] [og10] OpenACC: Remove unnecessary barriers (gimple worker partitioning/broadcast)

2021-09-17 Thread Thomas Schwinge
shed to master branch commit 2961ac45b9e19523958757e607d11c5893d6368b "openacc: Remove unnecessary barriers (gimple worker partitioning/broadcast)", see attached. Grüße Thomas - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München;

[PATCH] libstdc++: Implement C++20 atomic and atomic

2021-09-17 Thread Thomas Rodgers
From: Thomas Rodgers Let's try this one instead. Signed-off-by: Thomas Rodgers libstdc++-v3/ChangeLog: * acinclude.m4: Update ABI version. * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Do not match new _Sp_locker constructor. (GLIBCXX_3.4.30): Export _Sp_l

Re: [PATCH] [og10] OpenACC: Shared memory layout optimisation

2021-09-21 Thread Thomas Schwinge
Hi! On 2021-09-20T13:46:03+0100, Julian Brown wrote: > On Fri, 17 Sep 2021 16:26:50 +0200 > Thomas Schwinge wrote: > >> > @@ -1449,8 +1634,120 @@ oacc_do_neutering (void) >> >> > + addr_range ar >> > + = first_fit_range (

Re: [Patch] Fortran: Improve -Wmissing-include-dirs warnings [PR55534]

2021-09-22 Thread Thomas Schwinge
issing-include-dirs to the test config, I now only warn for > -I and -J by default (similar to previous state) and only do a full > warnings when the user requested passes the -Wmissing-include-dirs > explicitly. The Fortran behavior is now also properly documented > in the manual.

Re: [committed] Make test names unique for a couple of goacc tests

2021-09-22 Thread Thomas Schwinge
y has improper > OpenACC privatization level: 'parm_decl'} "TODO4" { xfail *-*-* } > l_compute$c_compute } ... etc. (also similarly in a handful of earlier commits, if I remember correctly), why don't we do that programmatically, like in the attached "Make

Re: [PATCH] top-level configure: setup target_configdirs based on repository

2021-09-23 Thread Thomas Schwinge
s to 'noconfigdirs' for '! test -d "$srcdir"/gcc/' (because that would also disable them for host usage), I wonder if it'd make sense to turn all existing 'target_libraries=[...]' and 'target_tools=[...]' assignments and later amendments

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

2021-09-23 Thread Thomas Rodgers
From: Thomas Rodgers This change implements P0528 which requires that padding bits not participate in atomic compare exchange operations. All arguments to the generic template are 'sanitized' by the __builtin_clear_padding intrinsic before they are used in atomic compare_exch

Re: [PATCHv2] top-level configure: setup target_configdirs based on repository

2021-09-27 Thread Thomas Schwinge
; target_configdirs if we're not also building gcc. Thanks, that looks better in line with how that script generally appears to work (... per my not-in-depth understanding). (But I can't formally approve.) Reviewed-by: Thomas Schwinge Grüße Thomas > commit 84c8b7f160

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

2021-09-27 Thread Thomas Rodgers
From: Thomas Rodgers Now with checks for __has_builtin(__builtin_clear_padding) This change implements P0528 which requires that padding bits not participate in atomic compare exchange operations. All arguments to the generic template are 'sanitized' by the __builtin_clearpaddin

Re: [committed] libgomp.oacc-fortran/privatized-ref-2.f90: Fix dg-note (was: [Patch] Fortran: Fix assumed-size to assumed-rank passing [PR94070])

2021-09-28 Thread Thomas Schwinge
27;ve pushed to master branch commit a43ae03a053faad871e6f48099d21e64b8e316cf 'Further test case adjustment re "Fortran: Fix assumed-size to assumed-rank passing"', see attached. Grüße Thomas - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesell

Re: [Patch] Fortran: Fix assumed-size to assumed-rank passing [PR94070]

2021-09-28 Thread Thomas Schwinge
; > + else > + __builtin_printf ("ERROR: c_assumed num=%d: " > + "x->dim[2].extent = %d != 0\n", > + num, x->dim[2].extent); > +} > + else > +assert (0); ... the 'ERROR:' prefixes printed do co

[ping] Make sure that we get unique test names if several DejaGnu directives refer to the same line (was: [committed] Make test names unique for a couple of goacc tests)

2021-09-29 Thread Thomas Schwinge
XFAIL: gfortran.dg/goacc/privatization-1-compute.f90 -O TODO4 {+at line 52+} (test for warnings, line 29) PASS: gfortran.dg/goacc/privatization-1-compute.f90 -O TODO {+at line 53+} (test for warnings, line 29) PASS: gfortran.dg/goacc/privatization-1-compute.f90 -O {+at lin

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

2021-09-29 Thread Thomas Schwinge
e quoted >>>>> below), which will be useful elsewhere, so: >>>>>> --- a/gcc/input.h >>>>>> +++ b/gcc/input.h >>>>> >>>>>> +struct location_hash : int_hash { }; >>>>>> + >>>>>> +clas

Re: [Ada] Gigi support for OpenACC pragmas

2019-12-04 Thread Thomas Schwinge
/19 10:29 AM, Thomas Schwinge wrote: >> On 2018-12-03T10:50:44-0500, Pierre-Marie de Rodat >> wrote: >>> Matching front-end bits to support Acc_Kernels, Acc_Parallel, >>> Acc_Loop and Acc_Data. See here: <https://gcc.gnu.org/ml/gcc-patches/2018-12/>. Grüße Thomas signature.asc Description: PGP signature

[RFC] Characters per line: from punch card (80) to line printer (132) (was: [Patch][OpenMP/OpenACC/Fortran] Fix mapping of optional (present|absent) arguments)

2019-12-05 Thread Thomas Schwinge
make a decision (by means still to be determined). - Put suitable Emacs/Vim configuration files into the source tree? - Update coding style guidelines. Grüße Thomas signature.asc Description: PGP signature

Re: [PATCH] [libgomp, amdgcn] Fix Fortran linker errors on AMD GCN

2019-12-06 Thread Thomas Schwinge
clear description. I suppose this hasn't been a problem for nvptx, as we're not supporting/using the symbol aliasing machinery there. > Tested on an x86_64 host with both NVPTX and GCN offloading. Okay to > commit to trunk? Yes, thanks. To record the review effort, please inc

[patch, fortran] Introduce -finline-pack

2019-12-07 Thread Thomas Koenig
it off on a by-file basis if they don't want it. OK for trunk? Regards Thomas Introduce -finline-pack. 2019-12-07 Thomas Koenig PR middle-end/91512 PR fortran/92738 * invoke.texi: Document -finline-pack. * lang.opt: Add -finline

Re: [RFC] Offloading Support in libgomp

2019-12-07 Thread Thomas Schwinge
target.c:gomp_unmap_vars_internal' that we're not unmapping 'tgt' while it's still in use": the following 'tgt->list_count' iterations as well as the following 'gomp_unref_tgt' would read 'free'd memory. OK to commit? If approving this p

Re: [Patch][OpenMP/OpenACC/Fortran] Fix mapping of optional (present|absent) arguments

2019-12-07 Thread Thomas Schwinge
e a ticket at <https://github.com/OpenACC/openacc-spec/issues> so this gets clarified. > --- /dev/null > +++ b/libgomp/testsuite/libgomp.oacc-fortran/optional-reduction.f90 > +! { dg-additional-options "-w" } Why that? Grüße Thomas signature.asc Description: PGP signature

[patch, fortran] Fix PR 92755

2019-12-08 Thread Thomas Koenig
Hello world, In the fix for PR 91783, I had not considered the case that the _data ref could also be somewhere inside. The solution was obvious and simple: Move the check into the loop over the refs. Committed as r279086 after regression-testing. Regards Thomas 2019-12-08 Thomas

[patch, fortran] Add NULL check before checking interfaces

2019-12-08 Thread Thomas Koenig
Hello world, the attached patch fixes an ICE where a NULL check was missing. Committed as obvious and simple after regression-testing as r279087. Since this is an ICE after an error has already been emitted, I don't see any particular need to backport. Regards Thomas 2018-

[patch, fortran, committed] Error on Associate with a program

2019-12-08 Thread Thomas König
Hello world, yet another obvious and simple fix: You cannot really associate the main program with a variable. Committed as r279088 after regression-testing. Regards Thomas 2018-12-08 Thomas Koenig PR fortran/92780 * resolve.c (resolve_assoc_var): Issue error if

In 'libgomp/target.c:gomp_exit_data', remove open-coded 'gomp_remove_var' (was: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior - runtime)

2019-12-09 Thread Thomas Schwinge
> 1) > - n->tgt->refcount--; > - else > - { > - is_tgt_unmapped = true; > - gomp_unmap_tgt (n->tgt); > - } > - } > + is_tgt_unmapped = gomp_remove_var (devicep, n); >

Add 'libgomp.oacc-c-c++-common/host_data-6.c'

2019-12-09 Thread Thomas Schwinge
Hi! See attached "Add 'libgomp.oacc-c-c++-common/host_data-6.c'", committed to trunk in r279119. Grüße Thomas From e5247d4a6930ca12fef2d38922cf6dbd9812da22 Mon Sep 17 00:00:00 2001 From: tschwinge Date: Mon, 9 Dec 2019 11:40:08 + Subject: [PATCH] Add 'libgomp.oa

[PR92854] Add 'libgomp.oacc-c-c++-common/pr92854-1.c'

2019-12-09 Thread Thomas Schwinge
Hi! See attached "[PR92854] Add 'libgomp.oacc-c-c++-common/pr92854-1.c'", committed to trunk in r279120, "to document the status quo", which does match my understanding of the OpenACC 2.6 semantics. Grüße Thomas From e14bd9d202bc4140d825a396ddaf64a5930ee3d1

Add 'libgomp.oacc-c-c++-common/map-data-1.c'

2019-12-09 Thread Thomas Schwinge
Hi! See attached "Add 'libgomp.oacc-c-c++-common/map-data-1.c'", committed to trunk in r279121. Grüße Thomas From 524aec42ea4d0a98fd6a0815e7573bf94fa70ee3 Mon Sep 17 00:00:00 2001 From: tschwinge Date: Mon, 9 Dec 2019 11:40:27 + Subject: [PATCH] Add 'libgomp.oac

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