This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/70302] New: crash on valid code at -O2 and -O3 in 32-bit mode on x86_64-linux-gnu (in convert_op, at config/i386/i386.c:3414)
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2016 22:56:57 +0000
- Subject: [Bug c/70302] New: crash on valid code at -O2 and -O3 in 32-bit mode on x86_64-linux-gnu (in convert_op, at config/i386/i386.c:3414)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70302
Bug ID: 70302
Summary: crash on valid code at -O2 and -O3 in 32-bit mode on
x86_64-linux-gnu (in convert_op, at
config/i386/i386.c:3414)
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at -O2 and -O3 in 32-bit mode (not 64-bit)
on x86_64-linux-gnu.
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 6.0.0 20160318 (experimental) [trunk revision 234330] (GCC)
$:
$: gcc-trunk -c -w -m32 -O2 small.c
small.c: In function âfn1â:
small.c:14:1: internal compiler error: in convert_op, at
config/i386/i386.c:3414
}
^
0xe815c0 scalar_chain::convert_op(rtx_def**, rtx_insn*)
../../gcc-source-trunk/gcc/config/i386/i386.c:3414
0xe817ae scalar_chain::convert_insn(rtx_insn*)
../../gcc-source-trunk/gcc/config/i386/i386.c:3445
0xea3c92 scalar_chain::convert()
../../gcc-source-trunk/gcc/config/i386/i386.c:3521
0xea44d5 convert_scalars_to_vector
../../gcc-source-trunk/gcc/config/i386/i386.c:3582
0xea44d5 execute
../../gcc-source-trunk/gcc/config/i386/i386.c:3674
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.
$:
$: gcc-trunk -c -w -m32 -O1 small.c
$:
$: cat small.c
long a, c, e;
int b, d;
unsigned long long f;
void fn1(long long p1) {
unsigned long long g;
int i;
for (; i;)
if (e)
g = c;
if (a)
f = p1;
if (!f && !g)
printf("", b, d, d);
}
$: