public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/101484] [12 Regression] trunk 20210717 ftbfs for amdgcn-amdhsa (gcn offload)
Date: Tue, 20 Jul 2021 07:20:45 +0000	[thread overview]
Message-ID: <bug-101484-4-1EGSHeUWtz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101484-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101484

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:

https://gcc.gnu.org/g:8168338684fc2bed576bb09202c63b3e9e678d92

commit r12-2408-g8168338684fc2bed576bb09202c63b3e9e678d92
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Mon Jul 19 23:11:38 2021 +0200

    [gcn] Work-around libgomp 'error: array subscript 0 is outside array bounds
of â__lds struct gomp_thread * __lds[0]â [-Werror=array-bounds]' some more
[PR101484]

    With yesterday's commit 9f2bc5077debef2b046b6c10d38591ac324ad8b5 "[gcn]
    Work-around libgomp 'error: array subscript 0 is outside array bounds of
    â__lds struct gomp_thread * __lds[0]â [-Werror=array-bounds]'
[PR101484]",
    I did defuse the "unexpected" '-Werror=array-bounds' diagnostics that we
see
    as of commit a110855667782dac7b674d3e328b253b3b3c919b "Correct handling of
    variable offset minus constant in -Warray-bounds [PR100137]".  However,
these
    '#pragma GCC diagnostic [...]' directives cause some code generation
changes
    (that seems unexpected, problematic!), which results in a lot (ten
thousands)
    of 'GCN team arena exhausted' run-time diagnostics, also leading to a few
    FAILs:

        PASS: libgomp.c/../libgomp.c-c++-common/for-11.c (test for excess
errors)
        [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/for-11.c execution
test

        PASS: libgomp.c/../libgomp.c-c++-common/for-12.c (test for excess
errors)
        [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/for-12.c execution
test

        PASS: libgomp.c/../libgomp.c-c++-common/for-3.c (test for excess
errors)
        [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/for-3.c execution
test

        PASS: libgomp.c/../libgomp.c-c++-common/for-5.c (test for excess
errors)
        [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/for-5.c execution
test

        PASS: libgomp.c/../libgomp.c-c++-common/for-6.c (test for excess
errors)
        [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/for-6.c execution
test

        PASS: libgomp.c/../libgomp.c-c++-common/for-9.c (test for excess
errors)
        [-PASS:-]{+FAIL:+} libgomp.c/../libgomp.c-c++-common/for-9.c execution
test

    Same for 'libgomp.c++'.

    It remains to be analyzed how '#pragma GCC diagnostic [...]' directives can
    cause code generation changes; for now I'm working around the "unexpected"
    '-Werror=array-bounds' diagnostics differently.

    Overall, still awaiting a different solution, of course.

            libgomp/
            PR target/101484
            * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
            '-Wno-error=array-bounds'.
            * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
            * libgomp.h [__AMDGCN__]: Likewise.

  parent reply	other threads:[~2021-07-20  7:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-17  9:58 [Bug target/101484] New: " doko at debian dot org
2021-07-17 22:30 ` [Bug target/101484] " ams at gcc dot gnu.org
2021-07-19  6:30 ` rguenth at gcc dot gnu.org
2021-07-19  8:27 ` cvs-commit at gcc dot gnu.org
2021-07-20  7:20 ` cvs-commit at gcc dot gnu.org [this message]
2022-01-26 13:46 ` marxin at gcc dot gnu.org
2022-01-26 13:57 ` doko at debian dot org
2022-03-21 15:54 ` tschwinge at gcc dot gnu.org
2022-03-21 16:32 ` jakub at gcc dot gnu.org

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=bug-101484-4-1EGSHeUWtz@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).