[AArch64] Simplify frame pointer logic
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 23 May 2018 12:28:43 +0000 (12:28 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Wed, 23 May 2018 12:28:43 +0000 (12:28 +0000)
commitd6cb6d6a1c2279deebb45e658cde66f1f91cae05
treea9528dadde928e8289c84df482ee2af0c713cd29
parent675d044c852044111c656f86c273a0c5f11ad3d5
[AArch64] Simplify frame pointer logic

Simplify frame pointer logic.  Add aarch64_needs_frame_chain to
decide when to emit the frame chain using clearer logic.
Introduce aarch64_use_frame_pointer which contains the value of
-fno-omit-frame-pointer (flag_omit_frame_pointer is set to a magic
value so that the mid-end won't force the frame pointer in all
cases, and leaf frame pointer emission can't be supported).

    gcc/
* config/aarch64/aarch64.c (aarch64_use_frame_pointer):
Add new boolean.
(aarch64_needs_frame_chain): New function.
(aarch64_parse_override_string): Set aarch64_use_frame_pointer.

From-SVN: r260606
gcc/ChangeLog
gcc/config/aarch64/aarch64.c