This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mark some -m options as Target not Driver


In the course of adding options from specs to .opt files I added
various -m options, marked as Driver options, that would previously
only have worked on commands (generally link commands) that didn't
actually call the compilers proper (cc1 etc.).

Because -m and -f options are passed down to cc1, in fact they need to
be marked as Target options; otherwise cc1 rejects them as
Driver-only.  This patch marks them accordingly.  (All relevant target
option handlers do accept options with no specific handler code, so no
changes to the option handlers are needed.  Also, no changes are
needed for -m and -f options that are marked with Alias in the .opt
file, or that have %< specs ensuring they are removed before the cc1
command line is generated.)

Tested building cc1 and xgcc for crosses to: ia64-hp-hpux11.23
microblaze-elf powerpc-xilinx-eabi vax-linux-gnu ia64-hp-vms
alpha-dec-osf5.1.  Committed.

2011-02-21  Joseph Myers  <joseph@codesourcery.com>

	* config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
	than Driver option.
	* config/hpux11.opt (mt): Likewise.
	* config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
	* config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
	* config/vax/elf.opt (mno-asm-pic): Likewise.
	* config/vms/vms.opt (map, mvms-return-codes): Likewise.

Index: gcc/config/alpha/osf5.opt
===================================================================
--- gcc/config/alpha/osf5.opt	(revision 170359)
+++ gcc/config/alpha/osf5.opt	(working copy)
@@ -28,7 +28,7 @@ K
 Driver
 
 mno-mips-tfile
-Driver RejectNegative
+Target RejectNegative
 
 pthread
 Driver
Index: gcc/config/hpux11.opt
===================================================================
--- gcc/config/hpux11.opt	(revision 170359)
+++ gcc/config/hpux11.opt	(working copy)
@@ -25,7 +25,7 @@
 ; Please try to keep this file in ASCII collating order.
 
 mt
-Driver RejectNegative
+Target RejectNegative
 
 pthread
 Driver
Index: gcc/config/microblaze/microblaze.opt
===================================================================
--- gcc/config/microblaze/microblaze.opt	(revision 170359)
+++ gcc/config/microblaze/microblaze.opt	(working copy)
@@ -112,4 +112,4 @@ Target Mask(XL_MODE_NOVECTORS)
 Description for mxl-mode-novectors
 
 mxl-mode-xilkernel
-Driver
+Target
Index: gcc/config/vms/vms.opt
===================================================================
--- gcc/config/vms/vms.opt	(revision 170359)
+++ gcc/config/vms/vms.opt	(working copy)
@@ -17,7 +17,7 @@
 ; <http://www.gnu.org/licenses/>.
 
 map
-Driver RejectNegative
+Target RejectNegative
 
 mmalloc64
 Target Report Mask(MALLOC64)
@@ -28,4 +28,4 @@ Target RejectNegative Joined Var(vms_deb
 Set name of main routine for the debugger
 
 mvms-return-codes
-Driver RejectNegative
+Target RejectNegative
Index: gcc/config/rs6000/xilinx.opt
===================================================================
--- gcc/config/rs6000/xilinx.opt	(revision 170359)
+++ gcc/config/rs6000/xilinx.opt	(working copy)
@@ -25,9 +25,9 @@
 ; Please try to keep this file in ASCII collating order.
 
 mno-clearbss
-Driver RejectNegative
+Target RejectNegative
 
 mppcperflib
-Driver RejectNegative
+Target RejectNegative
 
 ; This comment is to ensure we retain the blank line above.
Index: gcc/config/vax/elf.opt
===================================================================
--- gcc/config/vax/elf.opt	(revision 170359)
+++ gcc/config/vax/elf.opt	(working copy)
@@ -25,6 +25,6 @@
 ; Please try to keep this file in ASCII collating order.
 
 mno-asm-pic
-Driver RejectNegative
+Target RejectNegative
 
 ; This comment is to ensure we retain the blank line above.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]