public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96991] New: [nvptx] internal compiler error: in write_fn_proto, at config/nvptx/nvptx.c:913
@ 2020-09-09  7:41 vries at gcc dot gnu.org
  2020-09-09  7:44 ` [Bug target/96991] " vries at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2020-09-09  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96991
           Summary: [nvptx] internal compiler error: in write_fn_proto, at
                    config/nvptx/nvptx.c:913
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

When running this libgomp testsuite test-case on x86_64 with nvptx accelerator:
...
$ cat src/libgomp/testsuite/libgomp.c/atomic.c
/* { dg-do run } */

#include <stdbool.h>

__uint128_t v;
#pragma omp declare target (v)

int
main ()
{
  #pragma omp target
  {
    __atomic_add_fetch (&v, 1, __ATOMIC_RELAXED);
    __atomic_fetch_add (&v, 1, __ATOMIC_RELAXED);
    __uint128_t exp = 2;
    __atomic_compare_exchange_n (&v, &exp, 7, false, __ATOMIC_RELEASE,
__ATOMIC_ACQUIRE);
  }
} 
...
we run into an assert:
...
/home/vries/oacc/trunk/source-gcc/libgomp/testsuite/libgomp.c/atomic.c: In
function ‘main._omp_fn.0’:
/home/vries/oacc/trunk/source-gcc/libgomp/testsuite/libgomp.c/atomic.c:11:9:
internal compiler error: in write_fn_proto, at config/nvptx/nvptx.c:913
0x15ffdef write_fn_proto
        /home/vries/oacc/trunk/source-gcc/gcc/config/nvptx/nvptx.c:913
0x160039c nvptx_record_fndecl
        /home/vries/oacc/trunk/source-gcc/gcc/config/nvptx/nvptx.c:989
0x160676d nvptx_output_call_insn(rtx_insn*, rtx_def*, rtx_def*)
        /home/vries/oacc/trunk/source-gcc/gcc/config/nvptx/nvptx.c:2417
0x1a91699 output_150
        /home/vries/oacc/trunk/source-gcc/gcc/config/nvptx/nvptx.md:887
0xbae099 get_insn_template(int, rtx_insn*)
        /home/vries/oacc/trunk/source-gcc/gcc/final.c:2070
0xbb0af9 final_scan_insn_1
        /home/vries/oacc/trunk/source-gcc/gcc/final.c:3039
0xbb125f final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /home/vries/oacc/trunk/source-gcc/gcc/final.c:3152
0xbade27 final_1
        /home/vries/oacc/trunk/source-gcc/gcc/final.c:2020
0xbb636e rest_of_handle_final
        /home/vries/oacc/trunk/source-gcc/gcc/final.c:4658
0xbb683e execute
        /home/vries/oacc/trunk/source-gcc/gcc/final.c:4736
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
...

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-09 12:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09  7:41 [Bug target/96991] New: [nvptx] internal compiler error: in write_fn_proto, at config/nvptx/nvptx.c:913 vries at gcc dot gnu.org
2020-09-09  7:44 ` [Bug target/96991] " vries at gcc dot gnu.org
2020-09-09  7:49 ` vries at gcc dot gnu.org
2020-09-09  8:22 ` jakub at gcc dot gnu.org
2020-09-09 10:03 ` vries at gcc dot gnu.org
2020-09-09 12:34 ` cvs-commit at gcc dot gnu.org
2020-09-09 12:36 ` vries at gcc dot gnu.org

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).