[PATCH] x86: don't open-code REG_{SP,FP}

Jan Beulich jbeulich@suse.com
Fri Mar 1 12:40:55 GMT 2024


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


More information about the Binutils mailing list