From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85462 invoked by alias); 26 Jun 2015 16:09:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 85449 invoked by uid 89); 26 Jun 2015 16:09:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f42.google.com Received: from mail-oi0-f42.google.com (HELO mail-oi0-f42.google.com) (209.85.218.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 26 Jun 2015 16:09:28 +0000 Received: by oiax193 with SMTP id x193so78715391oia.2 for ; Fri, 26 Jun 2015 09:09:26 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.47.113 with SMTP id c17mr2130817oen.64.1435334966388; Fri, 26 Jun 2015 09:09:26 -0700 (PDT) Received: by 10.76.40.101 with HTTP; Fri, 26 Jun 2015 09:09:26 -0700 (PDT) Date: Fri, 26 Jun 2015 16:15:00 -0000 Message-ID: Subject: [PATCH][Revised] Fix PR66509 From: Jack Howarth To: GCC Patches , Mike Stump , Iain Sandoe , "H.J. Lu" , Uros Bizjak Content-Type: multipart/mixed; boundary=001a11c1e5d0ce8cdf05196df69c X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg01971.txt.bz2 --001a11c1e5d0ce8cdf05196df69c Content-Type: text/plain; charset=UTF-8 Content-length: 918 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. --001a11c1e5d0ce8cdf05196df69c Content-Type: application/octet-stream; name="PR66509_v2.patch" Content-Disposition: attachment; filename="PR66509_v2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ibdrpfs00 Content-length: 1237 MjAxNS0wNi0yNiAgSmFjayBIb3dhcnRoICA8aG93YXJ0aC5hdC5nY2NAZ21h aWwuY29tPgoKCVBSIHRhcmdldC82NjUwOQoJKiBjb25maWd1cmUuYWM6IEZp eCBmaWxkcyBhbmQgZmlsZHEgdGVzdCBmb3IgNjQtYml0LgoJKiBjb25maWd1 cmU6IFJlZ2VuZXJhdGVkLgoKIApJbmRleDogZ2NjL2NvbmZpZ3VyZS5hYwo9 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09Ci0tLSBnY2MvY29uZmlndXJlLmFjCShy ZXZpc2lvbiAyMjUwMTEpCisrKyBnY2MvY29uZmlndXJlLmFjCSh3b3JraW5n IGNvcHkpCkBAIC0zODg1LDEzICszODg1LDEzIEBAIGZvbzoJbm9wCiAKICAg ICBnY2NfR0FTX0NIRUNLX0ZFQVRVUkUoW2ZpbGRzIGFuZCBmaXN0cyBtbmVt b25pY3NdLAogICAgICAgIGdjY19jdl9hc19peDg2X2ZpbGRzLCwsCi0gICAg ICAgW2ZpbGRzIG1lbTsgZmlzdHMgbWVtXSwsCisgICAgICAgW2ZpbGRzICgl ZWJwKTsgZmlzdHMgKCVlYnApXSwsCiAgICAgICAgW0FDX0RFRklORShIQVZF X0FTX0lYODZfR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