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

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 37547
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37547&action=edit
another testcase, fails at -O2

$ armv7a-hardfloat-linux-gnueabi-gcc -O2 -march=armv3 -fno-forward-propagate
testcase.c
...
==19259== Invalid read of size 2
==19259==    at 0xEBB91D: arm_reload_in_hi(rtx_def**) (arm.c:15446)
==19259==    by 0x1042574: gen_reload_inhi(rtx_def*, rtx_def*, rtx_def*)
(arm.md:6422)
==19259==    by 0x9CA5C2: operator() (recog.h:302)
==19259==    by 0x9CA5C2: check_and_process_move (lra-constraints.c:1186)
==19259==    by 0x9CA5C2: curr_insn_transform(bool) (lra-constraints.c:3453)
==19259==    by 0x9CB446: lra_constraints(bool) (lra-constraints.c:4421)
==19259==    by 0x9B729C: lra(_IO_FILE*) (lra.c:2277)
==19259==    by 0x95EF39: do_reload (ira.c:5394)
==19259==    by 0x95EF39: (anonymous
namespace)::pass_reload::execute(function*) (ira.c:5565)
==19259==    by 0xA70D27: execute_one_pass(opt_pass*) (passes.c:2336)
==19259==    by 0xA712D7: execute_pass_list_1(opt_pass*) (passes.c:2410)
==19259==    by 0xA712E9: execute_pass_list_1(opt_pass*) (passes.c:2411)
==19259==    by 0xA71334: execute_pass_list(function*, opt_pass*)
(passes.c:2421)
==19259==    by 0x70D023: cgraph_node::expand() (cgraphunit.c:1975)
==19259==    by 0x70E925: expand_all_functions (cgraphunit.c:2111)
==19259==    by 0x70E925: symbol_table::compile() (cgraphunit.c:2467)
==19259==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19259== 
testcase.c: In function 'foo':
testcase.c:28: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.

Reply via email to