This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Revised] Fix PR66509
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jack Howarth <howarth dot at dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Mike Stump <mikestump at comcast dot net>, Iain Sandoe <iain at codesourcery dot com>, Uros Bizjak <ubizjak at gmail dot com>
- Date: Fri, 26 Jun 2015 09:17:30 -0700
- Subject: Re: [PATCH][Revised] Fix PR66509
- Authentication-results: sourceware.org; auth=none
- References: <CAJMcOU-zFx6PcPbLBgdHWxi4swqvM+Ko2FtxXFQFmt=XxcGbuQ at mail dot gmail dot com>
On Fri, Jun 26, 2015 at 9:09 AM, Jack Howarth <howarth.at.gcc@gmail.com> wrote:
> The attached revised patch adjusts the tests for the filds and fists
> mnemonics to use the assembly...
>
> filds (%ebp); fists (%ebp)
>
> and the test for the fildq and fistq mnemonics to use the assembly...
>
> fildq (%ebp); fistpq (%ebp)
>
> which will assemble for both 64-bit and 32-bit mode. This is required
> to avoid "ambiguous instructions require an explicit suffix" errors
> from the clang-based assembler in Xcode 7. The change also has the
> side-benefit of allowing the legacy GNU assembler from Xcode 6.3 or
> earlier to properly detect that the filds, fists, fildq and fistq
> mnemonics are available on x86_64-apple-darwin. Bootstrapped tested on
> x86_64-apple-darwin14 against the Apple Inc version cctools-870, GNU
> assembler version 1.38 and on x86_64-apple-darwin15 against the new
> clang-based assembler.
> Okay for gcc trunk?
> Jack
> ps Also confirmed with 'as -32' and 'as -64' on x86_64 Fedora.
fildq (%ebp); fistpq (%ebp) are valid for GNU assembler.
--
H.J.