public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tobias Burnus <burnus@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc/devel/omp/gcc-12] Merge branch 'releases/gcc-12' into devel/omp/gcc-12
Date: Thu, 29 Sep 2022 14:45:03 +0000 (GMT)	[thread overview]
Message-ID: <20220929144503.459CB385782F@sourceware.org> (raw)

https://gcc.gnu.org/g:c455181c13a7b00ee09777287bcf0c8b9de9d1fe

commit c455181c13a7b00ee09777287bcf0c8b9de9d1fe
Merge: d21bfef9867 85adc2ec2b0
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Thu Sep 29 16:37:52 2022 +0200

    Merge branch 'releases/gcc-12' into devel/omp/gcc-12
    
    Merged up to r12-8794-g85adc2ec2b0736d07c0df35ad9a450f97ff59a7c (29th Sept 2022)
    
    This includes r12-8793-gafea1ae84f0 (cherry-picked from r13-2868-gd3df98807b5)
    "OpenACC: Fix reduction tree-sharing issue [PR106982]".  However, due to
    omp-low.cc changes, it neither applies cleanly nor it required to make the
    testcases pass. This merge adds the testcases - but due to conflicts under a
    different filename: gcc/testsuite/c-c++-common/goacc/reduction-7.c added as
    ...-9.c and ...-8.c added as ...-10.c.

Diff:

 gcc/ChangeLog                                      | 24 +++++++++++++
 gcc/DATESTAMP                                      |  2 +-
 gcc/config/aarch64/aarch64-cores.def               |  3 +-
 gcc/config/aarch64/aarch64-tune.md                 |  2 +-
 gcc/config/aarch64/aarch64.cc                      | 40 +++++++++++-----------
 gcc/doc/invoke.texi                                |  2 +-
 gcc/omp-low.cc                                     |  3 +-
 gcc/testsuite/c-c++-common/goacc/reduction-10.c    | 12 +++++++
 gcc/testsuite/c-c++-common/goacc/reduction-9.c     | 22 ++++++++++++
 libstdc++-v3/doc/html/index.html                   |  2 +-
 libstdc++-v3/doc/html/manual/api.html              |  5 +++
 libstdc++-v3/doc/html/manual/appendix.html         |  2 +-
 libstdc++-v3/doc/html/manual/appendix_porting.html |  2 +-
 libstdc++-v3/doc/html/manual/bugs.html             |  6 ++++
 libstdc++-v3/doc/html/manual/index.html            |  2 +-
 libstdc++-v3/doc/html/manual/using_macros.html     |  5 +--
 libstdc++-v3/doc/xml/manual/evolution.xml          | 13 +++++++
 libstdc++-v3/doc/xml/manual/intro.xml              |  9 +++++
 libstdc++-v3/doc/xml/manual/using.xml              |  5 +--
 libstdc++-v3/include/std/functional                | 32 ++++++++++++-----
 libstdc++-v3/testsuite/20_util/bind/cv_quals.cc    | 25 +++++++-------
 libstdc++-v3/testsuite/20_util/bind/cv_quals_2.cc  | 12 ++++---
 22 files changed, 172 insertions(+), 58 deletions(-)

diff --cc gcc/testsuite/c-c++-common/goacc/reduction-10.c
index 00000000000,00000000000..2c3ed499d5b
new file mode 100644
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/goacc/reduction-10.c
@@@ -1,0 -1,0 +1,12 @@@
++/* { dg-do compile } */
++
++/* PR middle-end/106982 */
++
++void test1(double *c)
++{
++    double reduced[5];
++#pragma acc parallel loop gang private(reduced)
++    for (int x = 0; x < 5; ++x)
++#pragma acc loop worker reduction(*:reduced)
++      for (int y = 0; y < 5; ++y) { }
++}
diff --cc gcc/testsuite/c-c++-common/goacc/reduction-9.c
index 00000000000,00000000000..482b0ab1984
new file mode 100644
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/goacc/reduction-9.c
@@@ -1,0 -1,0 +1,22 @@@
++/* { dg-do compile } */
++
++/* PR middle-end/106982 */
++
++long long n = 100;
++int multiplicitive_n = 128;
++
++void test1(double *rand, double *a, double *b, double *c)
++{
++#pragma acc data copyin(a[0:10*multiplicitive_n], b[0:10*multiplicitive_n]) copyout(c[0:10])
++    {
++#pragma acc parallel loop
++        for (int i = 0; i < 10; ++i)
++        {
++        double temp = 1.0;
++#pragma acc loop vector reduction(*:temp)
++        for (int j = 0; j < multiplicitive_n; ++j)
++          temp *= a[(i * multiplicitive_n) + j] + b[(i * multiplicitive_n) + j];
++        c[i] = temp;
++        }
++    }
++}

             reply	other threads:[~2022-09-29 14:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-29 14:45 Tobias Burnus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-19 20:24 Tobias Burnus
2023-01-09  9:21 Tobias Burnus
2022-12-27 10:54 Tobias Burnus
2022-12-21 18:21 Tobias Burnus
2022-12-19 17:32 Tobias Burnus
2022-11-25 10:37 Tobias Burnus
2022-11-18  9:48 Tobias Burnus
2022-11-14 15:41 Tobias Burnus
2022-10-24 10:21 Tobias Burnus
2022-10-11  8:26 Tobias Burnus
2022-09-23  8:48 Tobias Burnus
2022-09-09 13:39 Tobias Burnus
2022-08-31  6:14 Tobias Burnus
2022-07-28 13:29 Tobias Burnus
2022-07-28 13:29 Tobias Burnus
2022-07-01 18:13 Kwok Yeung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220929144503.459CB385782F@sourceware.org \
    --to=burnus@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).