[Darwin,committed,opts] Add RejectNegative for cases with explict inverses.

Message ID 5ABD9A8D-4ED9-4B2C-851E-AA94FC903CF6@sandoe.co.uk
State New
Headers show
Series
  • [Darwin,committed,opts] Add RejectNegative for cases with explict inverses.
Related show

Commit Message

Iain Sandoe June 16, 2019, 6:24 p.m.
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  <iain@sandoe.co.uk>
    
	* config/darwin.opt (prebind, noprebind, seglinkedit,
	noseglinkedit): Add RejectNegative.

Patch

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