Patchwork Add Xilinx options from specs to new rs6000/xilinx.opt

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

Comments

Joseph S. Myers - Feb. 4, 2011, 1:11 a.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 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  <joseph@codesourcery.com>

	* config/rs6000/xilinx.opt: New.
	* config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
David Edelsohn - Feb. 4, 2011, 1:17 a.m.
On Thu, Feb 3, 2011 at 8:11 PM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> 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  <joseph@codesourcery.com>
>
>        * config/rs6000/xilinx.opt: New.
>        * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.

This is okay with me, if Michael doesn't have any objection.

Maybe we need to clarify in MAINTAINERS that Microblaze is Xilinx.

- David

Patch

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
+; <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.
+
+mno-clearbss
+Driver RejectNegative
+
+mppcperflib
+Driver RejectNegative
+
+; This comment is to ensure we retain the blank line above.