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

Message ID
State New
Headers show

Commit Message

Joseph 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  <>

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


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 @@ 
 Target Report RejectNegative Undocumented
+Driver JoinedOrMissing