public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] x86: don't open-code REG_{SP,FP}
@ 2024-03-01 12:40 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2024-03-01 12:40 UTC (permalink / raw)
  To: Binutils; +Cc: H.J. Lu, Indu Bhagat

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-01 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01 12:40 [PATCH] x86: don't open-code REG_{SP,FP} Jan Beulich

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).