https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87010
Bug ID: 87010
Summary: FAIL: gcc.dg/torture/20180712-1.c -O1 (test for
excess errors)
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
Target Milestone: ---
Host: hppa*-*-*
Target: hppa*-*-*
Build: hppa*-*-*
Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c
-fno-diagnostics-show-
caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O1
-fPIC
-lm -o ./20180712-1.exe (timeout = 300)
spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/test/gnu/gcc/gc
c/gcc/testsuite/gcc.dg/torture/20180712-1.c -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O1 -fPIC -lm -o
./20180712-1.exe
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c: In function 'foo':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: can't
find a register in class 'R1_REGS' while reloading 'asm'
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: 'asm'
operand has impossible constraints
compiler exited with status 1
output is:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c: In function 'foo':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: can't
find a register in class 'R1_REGS' while reloading 'asm'
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/20180712-1.c:13:3: error: 'asm'
operand has impossible constraints
FAIL: gcc.dg/torture/20180712-1.c -O1 (test for excess errors)
Similar fails:
FAIL: gcc.dg/torture/20180712-1.c -O2 (test for excess errors)
UNRESOLVED: gcc.dg/torture/20180712-1.c -O2 compilation failed to produce
executable
FAIL: gcc.dg/torture/20180712-1.c -O2 -flto -fno-use-linker-plugin
-flto-partition=none (test for excess errors)
UNRESOLVED: gcc.dg/torture/20180712-1.c -O2 -flto -fno-use-linker-plugin
-flto-partition=none compilation failed to produce executable
FAIL: gcc.dg/torture/20180712-1.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects (test for excess errors)
UNRESOLVED: gcc.dg/torture/20180712-1.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects compilation failed to produce executable
FAIL: gcc.dg/torture/20180712-1.c -O3 -g (test for excess errors)
UNRESOLVED: gcc.dg/torture/20180712-1.c -O3 -g compilation failed to produce
executable
FAIL: gcc.dg/torture/20180712-1.c -Os (test for excess errors)
UNRESOLVED: gcc.dg/torture/20180712-1.c -Os compilation failed to produce
executable
Test passes at -O0.
I tend to think this test needs to be skipped on hppa because it generally
isn't possible for reload to handle the addresses of two or more symbols in
asm.