Patchwork Add CRIS -sim* option from specs to cris/elf.opt

login
register
mail settings
Submitter Joseph S. Myers
Date Feb. 8, 2011, 11:42 p.m.
Message ID <Pine.LNX.4.64.1102082341080.23870@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/82416/
State New
Headers show

Comments

Joseph S. Myers - Feb. 8, 2011, 11:42 p.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 the -sim* option from specs in cris/cris.h to
cris/elf.opt (the targets for which those specs are active are exactly
those using cris/elf.opt; cris-linux does not use these specs).

Tested building cc1 and xgcc for cross to cris-elf.  Committed.  Note
that while the option description here matches that in the specs, I
don't know if it accurately describes the set of options intended to
be accepted.  There is one spec matching -sim2, and others matching
-sim*, meaning that all -sim* options are accepted, but the only
distinction is between -sim2 and other -sim* options.  So CRIS
maintainers may wish to refine the option description in the .opt file
to reflect the actual intended set of options.

2011-02-08  Joseph Myers  <joseph@codesourcery.com>

	* config/cris/elf.opt (sim): New Driver option.

Patch

Index: gcc/config/cris/elf.opt
===================================================================
--- gcc/config/cris/elf.opt	(revision 169949)
+++ gcc/config/cris/elf.opt	(working copy)
@@ -1,6 +1,6 @@ 
 ; ELF-specific options for the CRIS port of the compiler.
 
-; Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+; Copyright (C) 2005, 2007, 2011 Free Software Foundation, Inc.
 ;
 ; This file is part of GCC.
 ;
@@ -20,3 +20,6 @@ 
 
 melf
 Target Report RejectNegative Undocumented
+
+sim
+Driver JoinedOrMissing