aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2020-06-08 08:38:54 +0200
committerJan Beulich <jbeulich@suse.com>2020-06-08 08:38:54 +0200
commitaf32b7220966364b083ce771ba45f35491293d55 (patch)
treec5fdea2de131791e24bfd08c2389201633333f9c /gas/config
parent8a6fb3f9bb5105e58f6800de9089a4bdb0cc0cd6 (diff)
downloadfsf-binutils-gdb-af32b7220966364b083ce771ba45f35491293d55.zip
fsf-binutils-gdb-af32b7220966364b083ce771ba45f35491293d55.tar.gz
fsf-binutils-gdb-af32b7220966364b083ce771ba45f35491293d55.tar.bz2
x86: also allow %st(N) in CFI directives
In 0e0eea782025 ("x86: x87-related adjustments") I screwed up CFI directives with FPU support disabled, by moving the conditional there across a check of "allow_pseudo_reg". Add the missing check.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index e34ff85..6b94798 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -12452,7 +12452,8 @@ parse_real_register (char *reg_string, char **end_op)
{
if (!cpu_arch_flags.bitfield.cpu8087
&& !cpu_arch_flags.bitfield.cpu287
- && !cpu_arch_flags.bitfield.cpu387)
+ && !cpu_arch_flags.bitfield.cpu387
+ && !allow_pseudo_reg)
return (const reg_entry *) NULL;
if (is_space_char (*s))