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

            Bug ID: 104129
           Summary: FAIL: gcc.dg/torture/pr57147-2.c   -O2 -flto
                    -fno-use-linker-plugin -flto-partition=none  (test for
                    excess errors)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa*-*-linux*
            Target: hppa*-*-linux*
             Build: hppa*-*-linux*

Executing on host: /home/dave/gnu/gcc/objdir/gcc/xgcc
-B/home/dave/gnu/gcc/objdi
r/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c   
-fdiag
nostics-plain-output    -O2 -flto -fno-use-linker-plugin -flto-partition=none 
-
fdump-tree-optimized -S -o pr57147-2.s    (timeout = 300)
spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/xgcc
-B/home/dave/gnu/gcc/obj
dir/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c
-fdiagn
ostics-plain-output -O2 -flto -fno-use-linker-plugin -flto-partition=none
-fdump
-tree-optimized -S -o pr57147-2.s
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c: In function
'TestSyscall':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c:20:3: warning:
'_setjmp' accessing 1 byte in a region of size 0 [-Wstringop-overflow=]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c:20:3: note:
referencing argument 1 of type 'struct __jmp_buf_tag[1]'
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c:9:12: note: in
a call to function '_setjmp'
FAIL: gcc.dg/torture/pr57147-2.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  (test for excess errors)
Excess errors:
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr57147-2.c:20:3: warning:
'_setjmp' accessing 1 byte in a region of size 0 [-Wstringop-overflow=]

PASS: gcc.dg/torture/pr57147-2.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none   scan-tree-dump-not optimized "setjmp"
UNSUPPORTED: gcc.dg/torture/pr57147-2.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects

Reply via email to