From: Jan Beulich <jbeulich@suse.com>
To: Binutils <binutils@sourceware.org>
Cc: "H.J. Lu" <hjl.tools@gmail.com>, Indu Bhagat <indu.bhagat@oracle.com>
Subject: [PATCH] x86: don't open-code REG_{SP,FP}
Date: Fri, 1 Mar 2024 13:40:55 +0100 [thread overview]
Message-ID: <13aa7720-cbd6-4470-888a-3ee514c0eb1c@suse.com> (raw)
Since we have the #define-s, we should also use them.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -3285,8 +3285,8 @@ md_begin (void)
#endif
x86_cie_data_alignment = -8;
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
- x86_sframe_cfa_sp_reg = 7;
- x86_sframe_cfa_fp_reg = 6;
+ x86_sframe_cfa_sp_reg = REG_SP;
+ x86_sframe_cfa_fp_reg = REG_FP;
#endif
}
else
reply other threads:[~2024-03-01 12:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13aa7720-cbd6-4470-888a-3ee514c0eb1c@suse.com \
--to=jbeulich@suse.com \
--cc=binutils@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=indu.bhagat@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).