This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to suppress frame pointer usage by default?
- From: Konstantin Vladimirov <konstantin dot vladimirov at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 21 Feb 2012 17:36:46 +0400
- Subject: How to suppress frame pointer usage by default?
- Authentication-results: mr.google.com; spf=pass (google.com: domain of konstantin.vladimirov@gmail.com designates 10.112.85.70 as permitted sender) smtp.mail=konstantin.vladimirov@gmail.com; dkim=pass header.i=konstantin.vladimirov@gmail.com
Hi,
What one must use in custom backend to suppress frame pointer usage by default?
Frame pointer is mentioned in ELIMINABLE_REGS:
#define ELIMINABLE_REGS \
{ \
{ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
{ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
{FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
}
TARGET_CAN_ELIMINATE is defined to be always true,
TARGET_FRAME_POINTER_REQUIRED is defined to be always false
Instead of this, gcc generates code with frame pointer usage, and I
need manually specify -fomit-frame-pointer to suppress this behavior.
What else may influence this?
I feel, I missed something in the GCC internals.
Thanks in advance for any suggestions.
---
With best regards, Konstantin