aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2017-11-30 11:44:27 +0100
committerJan Beulich <jbeulich@suse.com>2017-11-30 11:44:27 +0100
commite21440ba622e17a2f12a858a87a6a75ef90654ca (patch)
treeaf4d2f57150658a818ceb7b0dd9f136625f92684 /gas/config
parentf425ec6600b69e39eb605f3128806ff688137ea8 (diff)
downloadgdb-e21440ba622e17a2f12a858a87a6a75ef90654ca.zip
gdb-e21440ba622e17a2f12a858a87a6a75ef90654ca.tar.gz
gdb-e21440ba622e17a2f12a858a87a6a75ef90654ca.tar.bz2
Revert "x86: Update segment register check in Intel syntax"
This reverts commit 4d36230d59903b92fbe2b53b31ed64a884860f0e. I was committed without maintainer ack and regresses intended functionality. A replacement will be committed shortly.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386-intel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index 79fe0b4..74aae24 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -956,7 +956,13 @@ i386_intel_operand (char *operand_string, int got_a_float)
if (intel_state.seg)
{
- expP = symbol_get_value_expression (intel_state.seg);
+ for (;;)
+ {
+ expP = symbol_get_value_expression (intel_state.seg);
+ if (expP->X_op != O_full_ptr)
+ break;
+ intel_state.seg = expP->X_add_symbol;
+ }
if (expP->X_op != O_register)
{
as_bad (_("segment register name expected"));