AArch64 always omit leaf frame pointer

Hi Devs,

By default AArch64 omit the frame pointer for leaf function.
But surprisingly, even after passing option -mno-omit-leaf-frame-pointer behavior remain same.

it is handled at

Here is a testcase

Before going for fix,
Like to know community thought on this wether this is a bug or not?


X86 and Mips respect -mno-omit-leaf-frame-pointer. gcc aarch64
defaults to -mno-omit-leaf-frame-pointer. So it seems we should
probably fix AArch64. PowerPC has a similar problem.

We need a clang driver patch to make AArch64 similar to PS4, which
defaults to -mno-omit-leaf-frame-pointer: