From: Jan Beulich Date: Mon, 11 Mar 2024 07:22:35 +0000 (+0100) Subject: x86: don't open-code REG_{SP,FP} X-Git-Tag: gdb-15-branchpoint~760 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=788b11d9c664ecee5bd9a511a8317045e806a075;p=thirdparty%2Fbinutils-gdb.git x86: don't open-code REG_{SP,FP} Since we have the #define-s, we should also use them. --- diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 532f8f58b0a..4961c2aa544 100644 --- 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