Add -momit_lock_prefix=[no|yes] option
authorIlya Tocar <ilya.tocar@intel.com>
Fri, 1 Aug 2014 13:58:32 +0000 (17:58 +0400)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 6 Aug 2014 15:32:01 +0000 (08:32 -0700)
commitd022bddd4fd93428a7fa3cc7ad404c912ed20dbf
tree03fca1a622763ceb73b02e5c514be06f46f20681
parentad9fe6c108abf73f47219655ff19a5ec68b68124
Add -momit_lock_prefix=[no|yes] option

This option serves as a workaround for processors, which fail on lock
prefix.

gas/
* config/tc-i386.c (omit_lock_prefix): New.
(output_insn): Omit lock prefix if omit_lock_prefix is true.
(OPTION_omit_lock_prefix): New.
(md_longopts): Add momit-lock-prefix.
(md_parse_option): Handle momit-lock-prefix.
(md_show_usage): Add momit-lock-prefix=[no|yes].
* doc/c-i386.texi (momit-lock-prefix): Document.

gas/testsuite/

* gas/i386/i386.exp: Run new tests.
* gas/i386/omit-lock-no.d: New.
* gas/i386/omit-lock-yes.d: Ditto.
* gas/i386/omit-lock.s: Ditto.
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/omit-lock-no.d [new file with mode: 0644]
gas/testsuite/gas/i386/omit-lock-yes.d [new file with mode: 0644]
gas/testsuite/gas/i386/omit-lock.s [new file with mode: 0644]