summaryrefslogtreecommitdiff
path: root/gcc/config/rx/rx.opt
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-05 12:28:41 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-05 12:28:41 +0000
commit8cb00d70d36966a59fdcbb76439fc2cd9e965276 (patch)
tree912285a69e7c732c6efe87efbd2432dd41d8de5e /gcc/config/rx/rx.opt
parent52fd37831a15c845d0d0f693e54ff471fc836ca1 (diff)
downloadgcc-8cb00d70d36966a59fdcbb76439fc2cd9e965276.tar.gz
* config/rx/rx-opts.h: New.
* config/rx/rx.c (rx_cpu_type): Remove. (rx_handle_option): Don't assert that global structures are in use. Access variables via opts pointer. Defer most handling of OPT_mint_register_. Use error_at. (rx_option_override): Handle deferred OPT_mint_register_ here. * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h. * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude. (mcpu=): Use Enum and specifiy rx_cpu_type with Var. (rx_cpu_types): New Enum and EnumValue entries. (mint-register=): Use Defer and use Var accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171984 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rx/rx.opt')
-rw-r--r--gcc/config/rx/rx.opt19
1 files changed, 17 insertions, 2 deletions
diff --git a/gcc/config/rx/rx.opt b/gcc/config/rx/rx.opt
index 99f262c0773..b51ca3f677c 100644
--- a/gcc/config/rx/rx.opt
+++ b/gcc/config/rx/rx.opt
@@ -19,6 +19,9 @@
; <http://www.gnu.org/licenses/>.
;---------------------------------------------------
+HeaderInclude
+config/rx/rx-opts.h
+
; The default is -fpu -m32bit-doubles.
m64bit-doubles
@@ -43,9 +46,21 @@ Enable the use of RX FPU instructions. This is the default.
;---------------------------------------------------
mcpu=
-Target RejectNegative Joined Var(rx_cpu_name) Report ToLower
+Target RejectNegative Joined Var(rx_cpu_type) Report ToLower Enum(rx_cpu_types) Init(RX600)
Specify the target RX cpu type.
+Enum
+Name(rx_cpu_types) Type(enum rx_cpu_types)
+
+EnumValue
+Name(rx_cpu_types) String(rx610) Value(RX610)
+
+EnumValue
+Name(rx_cpu_types) String(rx200) Value(RX200)
+
+EnumValue
+Name(rx_cpu_types) String(rx600) Value(RX600)
+
;---------------------------------------------------
mbig-endian-data
@@ -89,7 +104,7 @@ Maximum size in bytes of constant values allowed as operands.
;---------------------------------------------------
mint-register=
-Target RejectNegative Joined UInteger Var(rx_interrupt_registers) Init(0)
+Target RejectNegative Joined UInteger Var(rx_deferred_options) Defer
Specifies the number of registers to reserve for interrupt handlers.
;---------------------------------------------------