This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/69610] New: [5/6 Regression] ICE: SIGSEGV in arm_reload_in_hi (arm.c:15446) with -march=armv3 -ftree-ter (-O0)
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Feb 2016 21:55:46 +0000
- Subject: [Bug target/69610] New: [5/6 Regression] ICE: SIGSEGV in arm_reload_in_hi (arm.c:15446) with -march=armv3 -ftree-ter (-O0)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69610
Bug ID: 69610
Summary: [5/6 Regression] ICE: SIGSEGV in arm_reload_in_hi
(arm.c:15446) with -march=armv3 -ftree-ter (-O0)
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: armv3-*-linux-gnueabi
Created attachment 37546
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37546&action=edit
reduced testcase
$ armv7a-hardfloat-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-233030-checking-yes-rtl-df-nographite-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/6.0.0/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl
--with-float=hard --with-arch=armv7-a --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as
--with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-233030-checking-yes-rtl-df-nographite-armv7a-hardfloat
Thread model: posix
gcc version 6.0.0 20160201 (experimental) (GCC)
$ armv7a-hardfloat-linux-gnueabi-gcc -march=armv3 -ftree-ter testcase.c
...
==11530== Invalid read of size 2
==11530== at 0xEBB91D: arm_reload_in_hi(rtx_def**) (arm.c:15446)
==11530== by 0x1042574: gen_reload_inhi(rtx_def*, rtx_def*, rtx_def*)
(arm.md:6422)
==11530== by 0x9CA5C2: operator() (recog.h:302)
==11530== by 0x9CA5C2: check_and_process_move (lra-constraints.c:1186)
==11530== by 0x9CA5C2: curr_insn_transform(bool) (lra-constraints.c:3453)
==11530== by 0x9CB446: lra_constraints(bool) (lra-constraints.c:4421)
==11530== by 0x9B729C: lra(_IO_FILE*) (lra.c:2277)
==11530== by 0x95EF39: do_reload (ira.c:5394)
==11530== by 0x95EF39: (anonymous
namespace)::pass_reload::execute(function*) (ira.c:5565)
==11530== by 0xA70D27: execute_one_pass(opt_pass*) (passes.c:2336)
==11530== by 0xA712D7: execute_pass_list_1(opt_pass*) (passes.c:2410)
==11530== by 0xA712E9: execute_pass_list_1(opt_pass*) (passes.c:2411)
==11530== by 0xA71334: execute_pass_list(function*, opt_pass*)
(passes.c:2421)
==11530== by 0x70D023: cgraph_node::expand() (cgraphunit.c:1975)
==11530== by 0x70DF67: output_in_order(bool) (cgraphunit.c:2213)
==11530== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==11530==
testcase.c: In function 'foo':
testcase.c:9:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
This happens only at -O0.
Tested revisions:
trunk r233030 - ICE
5-branch r233025 - ICE
4_9-branch r233024 - OK
4_[876]-branch - OK