From patchwork Wed Oct 14 15:08:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yulia Koval X-Patchwork-Id: 530223 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47938140FDA for ; Thu, 15 Oct 2015 02:08:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=QEUPDwV7; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=H6PIdFxe/M+Q/4jxkt69GnecouewCvNAA5gVu/BaFphmvn aTw7qnihvZD6SKn+jxBHtKgPQlwcdowkqjdAXH0+d/xf9lGN+QM4CRRWzlTR3SXz Qn5lR7HgKgbcQs9aWJ9H/dU/BsF5P6zAloVoxotJRE8UpKDAMPzSi3WR+nH7Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=DqRvm4/L6bgH7BPz88XWfENbkIc=; b=QEUPDwV7Hyr0RcA4B4XB l4LhmqCfe87Sv+k4cmZMN161htNkz3OhLfCoOKzS1mbHtmAvgjAHZ8dluAZbQ4Wb mXkNvrN9yDcmEkwXVnAYS+WJ/A511tqE5LZMQmB/AYTua7jVhP13aPW0yuYYlbSH sh4COv4vZjuWMGm6kV35BQA= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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 18:08:21 +0300 Message-ID: Subject: [PATCH] Fix pr67963 From: Yulia Koval To: GCC Patches , "H.J. Lu" , Uros Bizjak 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. Ok for trunk? Yulia 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");