Avoid global state in rx_handle_option

Message ID Pine.LNX.4.64.1104072148000.11415@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers April 7, 2011, 9:48 p.m.
There was a bug in how the conversion to Enum was done in this patch; I've 
applied this followup patch to fix it.


Index: ChangeLog
--- ChangeLog	(revision 172137)
+++ ChangeLog	(working copy)
@@ -1,5 +1,10 @@ 
 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
+	* config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
+	EnumValue lines.
+2011-04-07  Joseph Myers  <joseph@codesourcery.com>
 	* config/m68k/m68k.c (m68k_handle_option): Don't handle
 	OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
 	OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
Index: config/rx/rx.opt
--- config/rx/rx.opt	(revision 172137)
+++ config/rx/rx.opt	(working copy)
@@ -53,13 +53,13 @@ 
 Name(rx_cpu_types) Type(enum rx_cpu_types)
-Name(rx_cpu_types) String(rx610) Value(RX610)
+Enum(rx_cpu_types) String(rx610) Value(RX610)
-Name(rx_cpu_types) String(rx200) Value(RX200)
+Enum(rx_cpu_types) String(rx200) Value(RX200)
-Name(rx_cpu_types) String(rx600) Value(RX600)
+Enum(rx_cpu_types) String(rx600) Value(RX600)