From patchwork Thu Jan 27 16:45:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 80715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8FD1DB7123 for ; Fri, 28 Jan 2011 03:45:29 +1100 (EST) Received: (qmail 20549 invoked by alias); 27 Jan 2011 16:45:26 -0000 Received: (qmail 20531 invoked by uid 22791); 27 Jan 2011 16:45:22 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Jan 2011 16:45:15 +0000 Received: (qmail 17337 invoked from network); 27 Jan 2011 16:45:13 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Jan 2011 16:45:13 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PiUy7-0001Sv-PP for gcc-patches@gcc.gnu.org; Thu, 27 Jan 2011 16:45:11 +0000 Date: Thu, 27 Jan 2011 16:45:11 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: Add GNU userspace options from specs to new gnu-user.opt Message-ID: MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.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 options generally accepted by specs for GNU-userspace targets to a new gnu-user.opt file. Note that even where these targets do not use gnu-user.h, the subdirectory specs generally accept these options, and where the specs do not accept the options that can reasonably be considered a bug in those specs (except for some uClinux targets where some of the options may be inapplicable - however, if the options are inapplicable and not in specs the driver will continue to reject them as before by the logic for rejecting options not matched by a spec; that logic is intended to stay, with only the converse logic of accepting an otherwise unknown option matched by some spec intended to go). Bootstrapped with no regressions on x86_64-unknown-linux-gnu. OK to commit? 2011-01-27 Joseph Myers * config/gnu-user.opt: New. * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu, *-*-uclinux*): Use gnu-user.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169317) +++ gcc/config.gcc (working copy) @@ -543,6 +543,7 @@ case ${target} in use_gcc_stdint=wrap ;; *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) + extra_options="$extra_options gnu-user.opt" extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gas=yes gnu_ld=yes @@ -657,6 +658,7 @@ case ${target} in use_gcc_stdint=wrap ;; *-*-uclinux*) + extra_options="$extra_options gnu-user.opt" use_gcc_stdint=wrap tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC" ;; Index: gcc/config/gnu-user.opt =================================================================== --- gcc/config/gnu-user.opt (revision 0) +++ gcc/config/gnu-user.opt (revision 0) @@ -0,0 +1,39 @@ +; Options for systems using gnu-user.h. + +; 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. + +posix +Driver + +profile +Driver + +pthread +Driver + +rdynamic +Driver + +; This comment is to ensure we retain the blank line above.