]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: don't open-code REG_{SP,FP}
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Mar 2024 07:22:35 +0000 (08:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Mar 2024 07:22:35 +0000 (08:22 +0100)
Since we have the #define-s, we should also use them.

gas/config/tc-i386.c

index 532f8f58b0a55098740fb58a63016d1a5b6eaaa6..4961c2aa5443bbf1cf83bdeec7ba45db6bf0b81d 100644 (file)
@@ -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