From patchwork Fri Feb 4 01:11:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 81789 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 880D5B7102 for ; Fri, 4 Feb 2011 12:11:26 +1100 (EST) Received: (qmail 21773 invoked by alias); 4 Feb 2011 01:11:25 -0000 Received: (qmail 21764 invoked by uid 22791); 4 Feb 2011 01:11:24 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, TW_FP, TW_PC, 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; Fri, 04 Feb 2011 01:11:20 +0000 Received: (qmail 5848 invoked from network); 4 Feb 2011 01:11:18 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Feb 2011 01:11:18 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PlACj-0006Rv-8V; Fri, 04 Feb 2011 01:11:17 +0000 Date: Fri, 4 Feb 2011 01:11:17 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: geoffk@geoffk.org, dje.gcc@gmail.com Subject: Add Xilinx options from specs to new rs6000/xilinx.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 from specs in rs6000/xilinx.h to a new rs6000/xilinx.opt. Tested building cc1 and xgcc for cross to powerpc-xilinx-eabi. OK to commit? 2011-02-03 Joseph Myers * config/rs6000/xilinx.opt: New. * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 169769) +++ gcc/config.gcc (working copy) @@ -2092,7 +2092,7 @@ powerpc-*-eabialtivec*) ;; powerpc-xilinx-eabi*) tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h" - extra_options="${extra_options} rs6000/sysv4.opt" + extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt" tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx" use_gcc_stdint=wrap ;; Index: gcc/config/rs6000/xilinx.opt =================================================================== --- gcc/config/rs6000/xilinx.opt (revision 0) +++ gcc/config/rs6000/xilinx.opt (revision 0) @@ -0,0 +1,33 @@ +; Xilinx embedded PowerPC 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. + +mno-clearbss +Driver RejectNegative + +mppcperflib +Driver RejectNegative + +; This comment is to ensure we retain the blank line above.