From patchwork Thu Jan 14 21:04:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1426681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=OaopDlqu; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DGxdt676kz9sVn for ; Fri, 15 Jan 2021 08:04:50 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9938439524A9; Thu, 14 Jan 2021 21:04:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9938439524A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1610658281; bh=iTj6fmIHWD+CCy5I+mha7swDEz4MOwDMIbfPHV1x1gc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=OaopDlqur/f7iqB+fnYr+gcc33UWur3kiJGkyyzIVFC4GqLG4bLf7ujm9C466bYdW VxnEe2FxnYJL94jJDoSQmQkHryXbA9zZnffIo0ZAuom9egyib+XCdTBsCSSa+9taE1 oallpUFDX4kGOVFxrlQCFnaZxJJUVkBaj4ZOpcjU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 5135439518BE for ; Thu, 14 Jan 2021 21:04:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5135439518BE Received: by mail-pf1-x42f.google.com with SMTP id h10so4099774pfo.9 for ; Thu, 14 Jan 2021 13:04:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iTj6fmIHWD+CCy5I+mha7swDEz4MOwDMIbfPHV1x1gc=; b=ByVIkcjKKQdi/0k2wcCvwJpNqGYI6SR6nzxKAjd4V0ZxRwrdKoWOo3/m2OgyXV0tMH r6+4zw0gqNb41wPNpf0Bd9KUU88LJ2pGitzQzZl0bPIC+5+WeEkhdvW3ZmGBuTLiHzYP mkoMXrUXmWd5GkH6ntJrYLLX6HzYwJM7a8i2Epyd3qnxU7QsiRgBRVJlueEQPAWQNyjC S0YjgiBV/Ht3oB1ePm3yONFq5ZHSKTdqdRjdK6Wobxes91J4fTa1I4cgvfQfs8Kqlcos eIFbNRzGRAJVSH3kGRppruhMRn7XVBKIw/gQ0AdwXbTUFiYZ22/xE11WDAvXl9FGfGIe cnzg== X-Gm-Message-State: AOAM531wUqyI0RH5eQQPPTPXgtaNF5B5W5COz+ugfS0QENcXpzEM4Z7r /4743k62c6lih9PKxl1zX+EbQCeiIHM= X-Google-Smtp-Source: ABdhPJwW15nkBhnzcD3zZco6xAmnAKJvjlucvWK3QDLf38BCY94H+ncCZWY5smunweORqreCWXgxFw== X-Received: by 2002:a63:6344:: with SMTP id x65mr9324476pgb.172.1610658277111; Thu, 14 Jan 2021 13:04:37 -0800 (PST) Received: from gnu-cfl-2.localdomain (c-69-181-90-243.hsd1.ca.comcast.net. [69.181.90.243]) by smtp.gmail.com with ESMTPSA id f64sm5883430pfb.146.2021.01.14.13.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 13:04:35 -0800 (PST) Received: from gnu-cfl-2.localdomain (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id 22E3D1A041E; Thu, 14 Jan 2021 13:04:34 -0800 (PST) To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/3] Build x86 libitm/libgomp/libatomic with -march=i486 or better Date: Thu, 14 Jan 2021 13:04:28 -0800 Message-Id: <20210114210431.463242-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Spam-Status: No, score=-3033.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "H.J. Lu via Gcc-patches" From: "H.J. Lu" Reply-To: "H.J. Lu" Cc: Jakub Jelinek , Uros Bizjak Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Starting from commit 77d372abec0fbf2cfe922e3140ee3410248f979e Author: H.J. Lu Date: Thu Jan 14 05:56:46 2021 -0800 x86: Error on -fcf-protection with incompatible target GCC issues an error on -fcf-protection with incompatible target. CET is enabled in run-time libraries on x86 when GCC is configured with --with-arch=XXX where XXX enables SSE2. But libitm/libgomp/libatomic are hardcoded to compile with -march=i486 which is incompatible with CET. We should compile libitm/libgomp/libatomic -march=i486 only if the default -march= is lower than i486. H.J. Lu (3): Build x86 libitm with -march=i486 or better Build x86 libgomp with -march=i486 or better Build x86 libatomic with -march=i486 or better libatomic/configure.tgt | 73 ++++++++++++++++++++++++++++------------- libgomp/configure.tgt | 36 +++++++++----------- libitm/configure.tgt | 39 +++++++++++----------- 3 files changed, 85 insertions(+), 63 deletions(-)