From patchwork Fri Jan 28 00:06:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add GNU -bsd option from specs to new gnu.opt Date: Thu, 27 Jan 2011 14:06:48 -0000 From: Joseph S. Myers X-Patchwork-Id: 80757 Message-Id: To: gcc-patches@gcc.gnu.org Cc: tschwinge@gnu.org 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 -bsd option accepted by specs in gnu.h to a new gnu.opt file. (Other options are not added to this file because adds them to gnu-user.opt, but this patch does not depend on that one; the two patches could go in in either order.) Tested building cc1 and xgcc for cross to i686-gnu. OK to commit? 2011-01-27 Joseph Myers * config/gnu.opt: New. * config.gcc (*-*-gnu*): Use gnu.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169317) +++ gcc/config.gcc (working copy) @@ -561,6 +561,9 @@ case ${target} in case $target in *linux*) extra_options="$extra_options linux.opt";; + *-*-gnu*) + tm_defines="$tm_defines SINGLE_LIBC" + extra_options="$extra_options gnu.opt";; *) tm_defines="$tm_defines SINGLE_LIBC";; esac Index: gcc/config/gnu.opt =================================================================== --- gcc/config/gnu.opt (revision 0) +++ gcc/config/gnu.opt (revision 0) @@ -0,0 +1,30 @@ +; GNU options, other than general GNU-userspace ones. + +; 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. + +bsd +Driver + +; This comment is to ensure we retain the blank line above.