Patchwork Add Netware options from specs to new i386/netware.opt

login
register
mail settings
Submitter Joseph S. Myers
Date Feb. 1, 2011, 11:08 p.m.
Message ID <Pine.LNX.4.64.1102012308220.31600@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/81400/
State New
Headers show

Comments

Joseph S. Myers - Feb. 1, 2011, 11:08 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 -posix and -pthread options from i386/netware.h
(-posix also in i386/nwld.h) to a new i386/netware.opt.

Tested building cc1 and xgcc for cross to i686-netware.  Committed as
a preapproved fix to an unmaintained target.

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

	* config/i386/netware.opt: New.
	* config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.

Patch

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 169317)
+++ gcc/config.gcc	(working copy)
@@ -1295,6 +1295,7 @@  i[3456x]86-*-netware*)
 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h tm-dwarf2.h i386/netware.h"
  	tmake_file="${tmake_file} i386/t-netware"
 	extra_objs=netware.o
+	extra_options="${extra_options} i386/netware.opt"
 	case /${with_ld} in
 	*/nwld)
 		extra_objs="$extra_objs nwld.o"
Index: gcc/config/i386/netware.opt
===================================================================
--- gcc/config/i386/netware.opt	(revision 0)
+++ gcc/config/i386/netware.opt	(revision 0)
@@ -0,0 +1,33 @@ 
+; Netware 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
+; <http://www.gnu.org/licenses/>.
+
+; 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.
+
+posix
+Driver
+
+pthread
+Driver
+
+; This comment is to ensure we retain the blank line above.