https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92152
Bug ID: 92152
Summary: [10 Regression] Wring code (Resurrection of PR53663)
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
Target: avr
The following test case from GCC testsuite runs into abort.
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/gcc.dg/torture/pr53663-2.c?view=markup
== compile ==
$ avr-gcc pr53663-2.c -Os -dp -S
the generated asm code for main is:
main:
sts v+1,__zero_reg__ ; 5 [c=4 l=4] *movhi/3
sts v,__zero_reg__
rcall abort ; 6 [c=0 l=1] call_insn/1
i.e. it always calls abort.