https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65647
Bug ID: 65647
Summary: [5 Regression] GCC won't stop when compile for armv6-m
with -Os
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: terry.guo at arm dot com
Created attachment 35199
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35199&action=edit
gcc won't stop when compile this file
When use below command to compile the attached case for armv6-m, seems the gcc
won't stop:
arm-none-eabi-gcc -march=armv6-m -mthumb -O3 gcc-no-stop.c -S
With -da option, the file gcc-no-stop.c.234r.reload becomes larger an larger. I
have to use contrl+c to terminate the gcc. Here are some lines extracted from
the bottom of the file:
Spill r17277(hr=0, freq=328) for r17822
Assign 0 to reload r17822 (freq=328)
Assigning to 17823 (cl=LO_REGS, orig=17823, freq=328, tfirst=17823,
tfreq=328)...
Assign 0 to reload r17823 (freq=328)
Assigning to 17825 (cl=LO_REGS, orig=17825, freq=328, tfirst=17825,
tfreq=328)...
The gcc version is "gcc version 5.0.0 20150401 (experimental) (GCC)".
The issue happens after this commit:
commit e0d2c8640c504ecd83291c4e008cb91d17df3e0d
Author: rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri May 30 07:35:47 2014 +0000
gcc/
ira.c (ira_get_dup_out_num): Check for output operands at