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

            Bug ID: 96566
           Summary: [nvptx] Timeout in gcc.dg/builtin-object-size-21.c
           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 test-case gcc.dg/builtin-object-size-21.c, we have:
...
spawn -ignore SIGHUP /home/vries/nvptx/mainkernel-2/build-gcc/gcc/xgcc
-B/home/vries/nvptx/mainkernel-2/build-gcc/gcc/
/home/vries/nvptx/mainkernel-2/source-gcc/gcc/testsuite/gcc.dg/builtin-object-size-21.c
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -fdiagnostics-urls=never
--sysroot=/home/vries/nvptx/mainkernel-2/install/nvptx-none -Wall
-fdump-tree-optimized -S -isystem
/home/vries/nvptx/mainkernel-2/build-gcc/nvptx-none/./newlib/targ-include
-isystem /home/vries/nvptx/mainkernel-2/source-gcc/newlib/libc/include -o
builtin-object-size-21.s^M
/home/vries/nvptx/mainkernel-2/source-gcc/gcc/testsuite/gcc.dg/builtin-object-size-21.c:43:14:
error: size of variable 'xmx_1' is too large^M
/home/vries/nvptx/mainkernel-2/source-gcc/gcc/testsuite/gcc.dg/builtin-object-size-21.c:29:14:
error: size of variable 'xm3_4' is too large^M
WARNING: program timed out
compiler exited with status 1
PASS: gcc.dg/builtin-object-size-21.c  (test for errors, line 29)
PASS: gcc.dg/builtin-object-size-21.c  (test for errors, line 43)
PASS: gcc.dg/builtin-object-size-21.c (test for excess errors)
...

If we run the command by hand, and tail the .s file, we get an endless
repetition of 0, 0, 0, ... , which starts off like this:
...
// BEGIN GLOBAL VAR DEF: xm3_3
        .visible .global .align 1 .u32 xm3_3[-2305843009213693951]
          = { 0, 0, 0,
...

The negative length doesn't look good.

Reply via email to