arc: Update stack size computation when accumulator registers are available.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 25 Nov 2021 13:38:03 +0000 (15:38 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Fri, 14 Jan 2022 10:24:51 +0000 (12:24 +0200)
commitb3989a7b1069ef9ed56911d96e1ad153e506aabb
treea4d6028de414d5c047279e61e7ab80c69703ec23
parent9a0b518a82db68c5cbd9ea8ccc47c2ff45182519
arc: Update stack size computation when accumulator registers are available.

When accumulator registers are available in a processor, they need to
be save onto stack durring interrupts.  We were already doing so, but
the stack size was wrongly computed in the case other than ARC600.

gcc/

* config/arc/arc.c (arc_compute_frame_size): Remove condition when
computin checking accumulator regs.
(arc_expand_prologue): Update comments.
(arc_expand_epilogue): Likewise.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
gcc/config/arc/arc.c