OSDN Git Service

arm64: lse: Pass -fomit-frame-pointer to out-of-line ll/sc atomics
authorWill Deacon <will.deacon@arm.com>
Fri, 9 Feb 2018 13:19:47 +0000 (13:19 +0000)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 13:45:16 +0000 (21:45 +0800)
commitab9330b982c87888abdcb85ab55d7fdc60b07156
tree48a61f8b596d5bc68b1d9151f00e66b3c6d4a1e8
parent0e8ae0d25bcafba93697919c30b6e1601404bb9f
arm64: lse: Pass -fomit-frame-pointer to out-of-line ll/sc atomics

In cases where x30 is used as a temporary in the out-of-line ll/sc atomics
(e.g. atomic_fetch_add), the compiler tends to put out a full stackframe,
which included pointing the x29 at the new frame.

Since these things aren't traceable anyway, we can pass -fomit-frame-pointer
to reduce the work when spilling. Since this is incompatible with -pg, we
also remove that from the CFLAGS for this file.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/lib/Makefile