* [binutils-gdb] x86/Intel: reduce ELF/PE conditional scope in x86_cons()
@ 2023-04-28 6:20 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-04-28 6:20 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b50f5f4cb8e36e5ecdbba5caf70c7f4ffaa03ad
commit 6b50f5f4cb8e36e5ecdbba5caf70c7f4ffaa03ad
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Apr 28 08:20:15 2023 +0200
x86/Intel: reduce ELF/PE conditional scope in x86_cons()
All the Intel syntax related state adjustments apply independent of
target or object format.
Diff:
---
gas/config/tc-i386.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 7fdd71b490d..29b7734b1ac 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -10506,12 +10506,12 @@ x86_cons (expressionS *exp, int size)
{
bfd_reloc_code_real_type got_reloc = NO_RELOC;
+ intel_syntax = -intel_syntax;
+ exp->X_md = 0;
+
#if ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
&& !defined (LEX_AT)) \
|| defined (TE_PE)
- intel_syntax = -intel_syntax;
-
- exp->X_md = 0;
if (size == 4 || (object_64bit && size == 8))
{
/* Handle @GOTOFF and the like in an expression. */
@@ -10558,15 +10558,13 @@ x86_cons (expressionS *exp, int size)
}
}
else
+#endif
expression (exp);
intel_syntax = -intel_syntax;
if (intel_syntax)
i386_intel_simplify (exp);
-#else
- expression (exp);
-#endif
/* If not 64bit, massage value, to account for wraparound when !BFD64. */
if (size == 4 && exp->X_op == O_constant && !object_64bit)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-28 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28 6:20 [binutils-gdb] x86/Intel: reduce ELF/PE conditional scope in x86_cons() Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).