Add VAX ELF option from specs to new vax/elf.opt

Message ID
State New
Headers show

Commit Message

Joseph Myers Feb. 8, 2011, 9:54 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 -mno-asm-pic option from specs in vax/elf.h to a
new vax/elf.opt.

Tested building cc1 and xgcc for crosses to: vax-linux-gnu
vax-netbsdelf.  Committed.

2011-02-08  Joseph Myers  <>

	* config/vax/elf.opt: New.
	* config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.


Index: gcc/config.gcc
--- gcc/config.gcc	(revision 169945)
+++ gcc/config.gcc	(working copy)
@@ -2704,11 +2704,12 @@  v850-*-*)
 	tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h"
+	extra_options="${extra_options} vax/elf.opt"
 	tmake_file="${tmake_file} vax/t-linux"
 	tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
-	extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
+	extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt"
 	tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
Index: gcc/config/vax/elf.opt
--- gcc/config/vax/elf.opt	(revision 0)
+++ gcc/config/vax/elf.opt	(revision 0)
@@ -0,0 +1,30 @@ 
+; VAX ELF options.
+; Copyright (C) 2011
+; Free Software Foundation, Inc.
+; This file is part of GCC.
+; GCC is free software; you can redistribute it and/or modify it under
+; the terms of the GNU General Public License as published by the Free
+; Software Foundation; either version 3, or (at your option) any later
+; version.
+; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+; WARRANTY; without even the implied warranty of MERCHANTABILITY or
+; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+; for more details.
+; You should have received a copy of the GNU General Public License
+; along with GCC; see the file COPYING3.  If not see
+; <>.
+; See the GCC internals manual (options.texi) for a description of
+; this file's format.
+; Please try to keep this file in ASCII collating order.
+Driver RejectNegative
+; This comment is to ensure we retain the blank line above.