aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-03-11 08:22:35 +0100
committerJan Beulich <jbeulich@suse.com>2024-03-11 08:22:35 +0100
commit788b11d9c664ecee5bd9a511a8317045e806a075 (patch)
tree8e2306d079dd99731cb82d1d6766c8ee257a33b5 /gas/config/tc-i386.c
parent64e215c15bc316f673161c76db93a50bda45666a (diff)
downloadbinutils-788b11d9c664ecee5bd9a511a8317045e806a075.zip
binutils-788b11d9c664ecee5bd9a511a8317045e806a075.tar.gz
binutils-788b11d9c664ecee5bd9a511a8317045e806a075.tar.bz2
x86: don't open-code REG_{SP,FP}
Since we have the #define-s, we should also use them.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r--gas/config/tc-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 532f8f5..4961c2a 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