From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91638 invoked by alias); 14 Oct 2015 15:08:27 -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 91557 invoked by uid 89); 14 Oct 2015 15:08:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f46.google.com Received: from mail-qg0-f46.google.com (HELO mail-qg0-f46.google.com) (209.85.192.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 14 Oct 2015 15:08:25 +0000 Received: by qgx61 with SMTP id 61so45193380qgx.3 for ; Wed, 14 Oct 2015 08:08:21 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.38.167 with SMTP id t36mr4661428qgt.66.1444835301722; Wed, 14 Oct 2015 08:08:21 -0700 (PDT) Received: by 10.55.91.6 with HTTP; Wed, 14 Oct 2015 08:08:21 -0700 (PDT) Date: Wed, 14 Oct 2015 15:08:00 -0000 Message-ID: Subject: [PATCH] Fix pr67963 From: Yulia Koval To: GCC Patches , "H.J. Lu" , Uros Bizjak Content-Type: multipart/mixed; boundary=001a11c12ce4eb4361052211eec1 X-SW-Source: 2015-10/txt/msg01369.txt.bz2 --001a11c12ce4eb4361052211eec1 Content-Type: text/plain; charset=UTF-8 Content-length: 733 Hi, This patch fixes the issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67963 gcc/config/i386/i386.c (ix86_option_override_internal) Disable 80387 mask if lakemont target is set. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 4c25c9e..db722aa 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4943,6 +4943,12 @@ ix86_option_override_internal (bool main_args_p, break; } + if (!strcmp (opts->x_ix86_arch_string, "lakemont")) + { + opts->x_target_flags &= ~MASK_80387; + opts_set->x_target_flags |= MASK_80387; + } + if (TARGET_X32 && (opts->x_ix86_isa_flags & OPTION_MASK_ISA_MPX)) error ("Intel MPX does not support x32"); Ok for trunk? Yulia --001a11c12ce4eb4361052211eec1 Content-Type: application/octet-stream; name=patch Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_ifqxmfhm0 Content-length: 708 ZGlmZiAtLWdpdCBhL2djYy9jb25maWcvaTM4Ni9pMzg2LmMgYi9nY2MvY29u ZmlnL2kzODYvaTM4Ni5jCmluZGV4IDRjMjVjOWUuLmRiNzIyYWEgMTAwNjQ0 Ci0tLSBhL2djYy9jb25maWcvaTM4Ni9pMzg2LmMKKysrIGIvZ2NjL2NvbmZp Zy9pMzg2L2kzODYuYwpAQCAtNDk0Myw2ICs0OTQzLDEyIEBAIGl4ODZfb3B0 aW9uX292ZXJyaWRlX2ludGVybmFsIChib29sIG1haW5fYXJnc19wLAogCWJy ZWFrOwogICAgICAgfQogCisgIGlmICghc3RyY21wIChvcHRzLT54X2l4ODZf YXJjaF9zdHJpbmcsICJsYWtlbW9udCIpKQorICAgIHsKKyAgICAgIG9wdHMt PnhfdGFyZ2V0X2ZsYWdzICY9IH5NQVNLXzgwMzg3OworICAgICAgb3B0c19z ZXQtPnhfdGFyZ2V0X2ZsYWdzIHw9IE1BU0tfODAzODc7CisgICAgfQorCiAg IGlmIChUQVJHRVRfWDMyICYmIChvcHRzLT54X2l4ODZfaXNhX2ZsYWdzICYg T1BUSU9OX01BU0tfSVNBX01QWCkpCiAgICAgZXJyb3IgKCJJbnRlbCBNUFgg ZG9lcyBub3Qgc3VwcG9ydCB4MzIiKTsKIAo= --001a11c12ce4eb4361052211eec1--