Patchwork Add VMS options from specs to vms.opt

login
register
mail settings
Submitter Joseph S. Myers
Date Jan. 30, 2011, 8:12 p.m.
Message ID <Pine.LNX.4.64.1101302010000.22161@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/81042/
State New
Headers show

Comments

Joseph S. Myers - Jan. 30, 2011, 8:12 p.m.
In preparation for the driver only accepting options listed in .opt
files, and not other options that simply happen to match some spec,
this patch adds the -map and -mvms-return-codes options from VMS specs
to config/vms/vms.opt.  (These options would only have worked
previously for driver commands not running cc1, because of all -m*
options being passed down to cc1 automatically.)

Tested building cc1 and xgcc for crosses to: alpha64-dec-vms
alpha-dec-vms ia64-hp-vms.  OK to commit?

2011-01-30  Joseph Myers  <joseph@codesourcery.com>

	* config/vms/vms.opt (map, mvms-return-codes): New Driver options.
Tristan Gingold - Jan. 31, 2011, 9:16 a.m.
On Jan 30, 2011, at 9:12 PM, Joseph S. Myers wrote:

> In preparation for the driver only accepting options listed in .opt
> files, and not other options that simply happen to match some spec,
> this patch adds the -map and -mvms-return-codes options from VMS specs
> to config/vms/vms.opt.  (These options would only have worked
> previously for driver commands not running cc1, because of all -m*
> options being passed down to cc1 automatically.)
> 
> Tested building cc1 and xgcc for crosses to: alpha64-dec-vms
> alpha-dec-vms ia64-hp-vms.  OK to commit?
> 
> 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* config/vms/vms.opt (map, mvms-return-codes): New Driver options.

Ok.  And thanks for doing this large work.

Patch

Index: gcc/config/vms/vms.opt
===================================================================
--- gcc/config/vms/vms.opt	(revision 169317)
+++ gcc/config/vms/vms.opt	(working copy)
@@ -1,4 +1,4 @@ 
-; Copyright (C) 2009 Free Software Foundation, Inc.
+; Copyright (C) 2009, 2011 Free Software Foundation, Inc.
 ;
 ; This file is part of GCC.
 ;
@@ -16,6 +16,9 @@ 
 ; along with GCC; see the file COPYING3.  If not see
 ; <http://www.gnu.org/licenses/>.
 
+map
+Driver RejectNegative
+
 mmalloc64
 Target Report Mask(MALLOC64)
 Malloc data into P2 space
@@ -23,3 +26,6 @@  Malloc data into P2 space
 mdebug-main=
 Target RejectNegative Joined Var(vms_debug_main)
 Set name of main routine for the debugger
+
+mvms-return-codes
+Driver RejectNegative