From patchwork Fri Jul 19 20:16:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1134272 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-505352-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Sq8mOTcM"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b="dunGQkBU"; dkim-atps=neutral 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 45r2NC2V4Xz9sNF for ; Sat, 20 Jul 2019 06:16:57 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; q=dns; s=default; b=SVL7WGnQzMP17XRIngDJ gAjpl+y/LBj7hUFcstOm20Dq5XsgWAMTILdeVvs5OMqCpSQJa3uRf+qA1/Jhz4JL iAHH1H/VFHenDnQdpVlmXsh7jdJydpNWzUDDTxK3A3/h3vObYMVOuLvorU/HIM9D AOGbOXOxGXWQNh3A5bdQUM8= 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:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; s=default; bh=EgPp/H/uZ4Yn0Y8xmVAmtFkqI7 o=; b=Sq8mOTcMYVz0yvvrn1dQ5zFFPo2MjB5RKnkuE54lleOjDUQOTpyEhRXFXr N6R+3F3qVTNFh/ir5TLtU6VuKZrlQki2pwxbMWMDfzrobcKzYuJdDz5WtvXUpCXw xrWHlq+UsROy9cwH5D3cVnyUkwldgMKX4JiwKi3v0NF4oqf5E= Received: (qmail 40049 invoked by alias); 19 Jul 2019 20:16:49 -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 40041 invoked by uid 89); 19 Jul 2019 20:16:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=iain, Iain, majority, UD:darwin.h X-HELO: mail-wr1-f48.google.com Received: from mail-wr1-f48.google.com (HELO mail-wr1-f48.google.com) (209.85.221.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jul 2019 20:16:47 +0000 Received: by mail-wr1-f48.google.com with SMTP id y4so33401025wrm.2 for ; Fri, 19 Jul 2019 13:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :cc:to; bh=uhhJLxVfi96sWM/y39H8kEy59UsfN5t4SBUU0TL+Ouo=; b=dunGQkBUqD99Fd9C3lxAFVSS+r2He4oONw14IorKBSvPoj0F7jlPrSQAPLJHd1ihkC cLMQR30I/mm775U3BIAFQWNyfYwmh5RptJPdbf2nwcjaqBuUidRxUi3VYYwQv4BpshY4 DJtbIeKG1poZMxQosy7RLXFcIsgbchkm6/1+lDG4TS0tnUv60evf12T6Hv2S/RnxJiig mlXDl08E70K48Y/ABrGW834OfdUeSJVlY/HNpeZ9yKVyBx8wl6dzTQ5JTuUz/2BsX9EA TnVkfTpV99Vvd6PHyyzHg67dAJtu6rFxA/DJk6EI1k4nDbEWP0C7cMBn03WAtinrmwhu /diA== Received: from [10.0.7.248] ([62.153.214.124]) by smtp.googlemail.com with ESMTPSA id z25sm36119554wmf.38.2019.07.19.13.16.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jul 2019 13:16:44 -0700 (PDT) From: Iain Sandoe Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, committed] More specs TLC. Message-Id: <2E1022D9-46FD-4A82-B290-59A98B11DEE8@googlemail.com> Date: Fri, 19 Jul 2019 22:16:43 +0200 Cc: Mike Stump To: GCC Patches This strips out (%< wise) a few driver specs that are only specifying a default state. Also warn on an option now ignored, and add some comments to the driver specs section. Update the comments to explain why we can’t process all the driver specs here. Tested on x86-64-darwin, applied to mainline thanks Iain 2019-07-19 Iain Sandoe * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which refer to default conditions. Warn for the 'y' spec which is ignored by current linkers. diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index e17bc64..ed87984 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -118,13 +118,23 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* True if pragma ms_struct is in effect. */ extern GTY(()) int darwin_ms_struct; -#define DRIVER_SELF_SPECS \ - "%{gfull:-g -fno-eliminate-unused-debug-symbols} %