[ARC] Test against frame_pointer_needed in arc_can_eliminate.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 1 Jun 2017 09:42:59 +0000 (11:42 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 1 Jun 2017 09:42:59 +0000 (11:42 +0200)
commit19dc47524f9bd79cf5c8bc0dcb4a1c381b88391d
tree6e22ae6a976ee90ce1c641320a827a25ff402953
parent2daad50b025d4db0492cf14390ba76272f2df015
[ARC] Test against frame_pointer_needed in arc_can_eliminate.

arc_can_eliminate is using arc_frmae_pointer_required() which is wrong
as the frame_pointer_needed can be set on different conditions. Fix it
by calling arc_frame_pointer_needed().

gcc/
2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_can_eliminate): Test against
arc_frame_pointer_needed.

From-SVN: r248782
gcc/ChangeLog
gcc/config/arc/arc.c