This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/62102] New: [4.10 Regression]: gcc.dg/torture/pr48953.c -O2 -flto
- From: "hp at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Aug 2014 02:01:02 +0000
- Subject: [Bug regression/62102] New: [4.10 Regression]: gcc.dg/torture/pr48953.c -O2 -flto
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62102
Bug ID: 62102
Summary: [4.10 Regression]: gcc.dg/torture/pr48953.c -O2 -flto
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: regression
Assignee: unassigned at gcc dot gnu.org
Reporter: hp at gcc dot gnu.org
CC: hubicka at ucw dot cz
Host: x86_64-unknown-linux-gnu
Target: cris-axis-elf
These tests previously passed, now they fail.
A patch in the revision range (last_known_working:first_known_failing)
212108:212117 exposed or caused these regressions. Yes, I know this is more
than a month ago, sorry for the delay. Since then they fail as follows:
Running /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/dg-torture.exp
...
FAIL: gcc.dg/torture/pr48953.c -O2 -flto -fno-use-linker-plugin
-flto-partition=none (internal compiler error)
FAIL: gcc.dg/torture/pr48953.c -O2 -flto -fno-use-linker-plugin
-flto-partition=none (test for excess errors)
FAIL: gcc.dg/torture/pr48953.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects (internal compiler error)
FAIL: gcc.dg/torture/pr48953.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects (test for excess errors)
WARNING: gcc.dg/torture/pr48953.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects compilation failed to produce executable
Messages in gcc.log (from r213837):
Executing on host: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/xgcc
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/pr48953.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto
-fno-use-linker-plugin -flto-partition=none -fno-tree-dce -isystem
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./newlib/targ-include -isystem
/tmp/hpautotest-gcc1/gcc/newlib/libc/include
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./libgloss/cris/
-L/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./libgloss/cris
-L/tmp/hpautotest-gcc1/gcc/libgloss/cris
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./newlib/
-L/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./newlib -sim3 -lm -o
./pr48953.exe (timeout = 300)
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/pr48953.c: In function
'main':
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/pr48953.c:14:5: error:
type mismatch in array reference
struct S
struct S
# .MEM_5 = VDEF <.MEM_4>
MEM[(struct S[2] *)&D.1358][0]{lb: 0 sz: 12}.value = 0;
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/pr48953.c:14:5: internal
compiler error: verify_gimple failed
0x8a872c verify_gimple_in_cfg(function*, bool)
/tmp/hpautotest-gcc1/gcc/gcc/tree-cfg.c:4994
0x7dc2c1 execute_function_todo
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:1749
0x7dd783 execute_todo
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:1806
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/xgcc
returned 1 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.
compiler exited with status 1
Author of suspect patches in revision range CC:ed.
The test passes on the 4.9 branch.
Unfortunately, the failure is appearently LTO-specific and only exposed on this
target, from a quick browse of gcc-testresults archives.