https://sourceware.org/bugzilla/show_bug.cgi?id=21874

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <h...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4d36230d59903b92fbe2b53b31ed64a884860f0e

commit 4d36230d59903b92fbe2b53b31ed64a884860f0e
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Tue Aug 1 05:53:27 2017 -0700

    x86: Update segment register check in Intel syntax

    https://sourceware.org/ml/binutils/2009-04/msg00223.html

    introduced a new Intel syntax parser which accepts

        mov     eax, fs:gs:[eax]

    It ignores anything between ':'s after fs and treats

        mov     eax, DWORD PTR fs:foobar:16
        mov     eax, DWORD PTR fs:foobar:barfoo:16
        mov     eax, DWORD PTR fs:ds:16
        mov     eax, DWORD PTR fs:ds:cs:16

    as

        mov     eax, DWORD PTR fs:16

    This patch updates segment register check and only allows a single ':'.

        PR gas/21874
        * config/tc-i386-intel.c (i386_intel_operand): Update segment
        register check.
        * testsuite/gas/i386/intelok.s: Replace "fs:gs:[eax]" with
        "fs:[eax]".
        * testsuite/gas/i386/inval-seg.s: Add tests for invalid segment
        register.
        * testsuite/gas/i386/x86-64-inval-seg.s: Likewise.
        * testsuite/gas/i386/inval-seg.l: Updated.
        * testsuite/gas/i386/x86-64-inval-seg.l: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to