From patchwork Sun Jun 16 18:24:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1116616 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-503030-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Q2vhJXbm"; 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 45RjS94bJVz9s5c for ; Mon, 17 Jun 2019 04:24:53 +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:to; q=dns; s=default; b=dmllU9LlxnG//pvq5PWBWBf +P9G2EI36L2b4cOQ2SNzUrVOuRixupySUZgxCvRU6AivtvviI/42Yn0OEYL9rH0z 4aIUeePiOxpVUY7HyO9Rau/riWrp/+ZWTj0mCXXvH/yM9zWpxa/0gC/qcStmbyzP jDpalh624QZVzDZ0fQBU= 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:to; s=default; bh=3jfI5FYWL7wQDe4aPBCtERa8GYU=; b= Q2vhJXbmQI71+uhevgIwd2X8Iaqho0kIeDB1eg9EaOSB986WHvpm2u8me5dm0xXb ijGFQzRVL8yc6VkXekpz6e/zviSLzHIL5fEMPr7vQ59ibkMh+2IJJ8C9virEyAW8 GjF12ZYbxGlqwn0ziOzb1s1rbcBLC2X3gyN8ub/szzE= Received: (qmail 107058 invoked by alias); 16 Jun 2019 18:24:42 -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 106973 invoked by uid 89); 16 Jun 2019 18:24:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_COUK autolearn=ham version=3.3.1 spammy=2527, HX-Spam-Relays-External:ESMTPA X-HELO: smtp1.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp1.wavenetuk.net) (195.26.36.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Jun 2019 18:24:22 +0000 Received: from euterpe-sie.home (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp1.wavenetuk.net (Postfix) with ESMTPA id 68E4012008E7 for ; Sun, 16 Jun 2019 19:24:16 +0100 (BST) From: Iain Sandoe Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, committed, opts] Add RejectNegative for cases with explict inverses. Message-Id: <5ABD9A8D-4ED9-4B2C-851E-AA94FC903CF6@sandoe.co.uk> Date: Sun, 16 Jun 2019 19:24:11 +0100 To: GCC Patches These cases specify the negative option specifically, so we should not accept a regular -no-xxxx for them. tested on x86_64-darwin16, applied to mainline, thanks Iain 2019-06-16 Iain Sandoe * config/darwin.opt (prebind, noprebind, seglinkedit, noseglinkedit): Add RejectNegative. diff --git a/gcc/config/darwin.opt b/gcc/config/darwin.opt index 0b16b03..3f04375 100644 --- a/gcc/config/darwin.opt +++ b/gcc/config/darwin.opt @@ -237,11 +237,11 @@ Driver RejectNegative (Obsolete after 10.4) Set MH_NOMULTIDEFS in an umbrella framework. noprebind -Driver Negative(prebind) +Driver RejectNegative Negative(prebind) (Obsolete) LD_PREBIND is no longer supported. noseglinkedit -Driver Negative(seglinkedit) +Driver RejectNegative Negative(seglinkedit) (Obsolete) This is the default. object @@ -252,7 +252,7 @@ Driver RejectNegative Separate -pagezero_size size Allows setting the page 0 size to 4kb for certain special cases. prebind -Driver Negative(noprebind) +Driver RejectNegative Negative(noprebind) (Obsolete) LD_PREBIND is no longer supported. prebind_all_twolevel_modules @@ -317,7 +317,7 @@ Driver RejectNegative Separate Args(3) (Obsolete, ld_classic only) -sectcreate segname sectname file seglinkedit -Driver Negative(noseglinkedit) +Driver RejectNegative Negative(noseglinkedit) (Obsolete) Object files with LINKEDIT sections are no longer supported. segprot