This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Add CRIS -sim* option from specs to cris/elf.opt
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: hp at axis dot com
- Date: Tue, 8 Feb 2011 23:42:03 +0000 (UTC)
- Subject: Add CRIS -sim* option from specs to cris/elf.opt
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.
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
--
Joseph S. Myers
joseph@codesourcery.com