From patchwork Wed Feb 9 00:23:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 82421 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 2DAEAB70FF for ; Wed, 9 Feb 2011 11:23:59 +1100 (EST) Received: (qmail 14204 invoked by alias); 9 Feb 2011 00:23:56 -0000 Received: (qmail 14195 invoked by uid 22791); 9 Feb 2011 00:23:54 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_XG, 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; Wed, 09 Feb 2011 00:23:50 +0000 Received: (qmail 32368 invoked from network); 9 Feb 2011 00:23:48 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Feb 2011 00:23:48 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PmxqU-0000Sg-SF for gcc-patches@gcc.gnu.org; Wed, 09 Feb 2011 00:23:46 +0000 Date: Wed, 9 Feb 2011 00:23:46 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: Add m68k uClinux options from specs to new m68k/uclinux.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 the -elf2flt* options from specs in m68k/uclinux.h to a new m68k/uclinux.opt. It appears that the options accepted by elf2flt's ld wrapper are actually -elf2flt and -elf2flt=*, so those are what go in the .opt file. Tested building cc1 and xgcc for cross to m68k-uclinux. Committed. This concludes the series of patches adding options found in my first pass over all specs in GCC to .opt files. I'll make another pass over all specs to look for options missed in the first pass, as this check is rather error-prone (and in the first pass I largely ignored -f and -m options on the basis that they would not have worked in commands that actually ran cc1 if they weren't in the .opt files - but some may in practice have been used only when linking). The actual driver changes to stop accepting unknown options are planned for 4.7 (or, before then, a development branch for those and other options/multilibs changes unsuitable for trunk at this point). 2011-02-08 Joseph Myers * config/m68k/uclinux.opt: New. * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169953) +++ gcc/config.gcc (working copy) @@ -1768,6 +1768,7 @@ m68k-*-uclinux*) # Motorola m68k/ColdFi default_m68k_cpu=68020 default_cf_cpu=5206 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h" + extra_options="${extra_options} m68k/uclinux.opt" tm_defines="${tm_defines} MOTOROLA=1" tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs" ;; Index: gcc/config/m68k/uclinux.opt =================================================================== --- gcc/config/m68k/uclinux.opt (revision 0) +++ gcc/config/m68k/uclinux.opt (revision 0) @@ -0,0 +1,33 @@ +; m68k/ColdFire uClinux 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. + +elf2flt +Driver + +elf2flt= +Driver JoinedOrMissing + +; This comment is to ensure we retain the blank line above.