m32r-opts.h: New.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 22 Mar 2011 22:39:54 +0000 (22:39 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 22 Mar 2011 22:39:54 +0000 (22:39 +0000)
commit8a784afb456e612326d285a9f5bc5d2a1687fa29
treed20d6a85fe62458ab93ac7e82137cd4f7f90cb4a
parentbbfc9a8c88c1d941cde0fef79ad51cabff9e741d
m32r-opts.h: New.

* config/m32r/m32r-opts.h: New.
* config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
(m32r_handle_option): Don't assert that global structures are in
use.  Access target_flags and m32r_cache_flush_func via opts
pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
OPT_mno_flush_trap here.
* config/m32r/m32r.h (Code Models, Small Data Area): Replace by
include of m32r-opts.h.
* config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
HeaderInclude entry.
(m32r_model_selected, m32r_sdata_selected): New Variable entries.
(mmodel=): Use Enum and Var.
(m32r_model): New Enum and EnumValue entries.
(mno-flush-trap): Use Var.
(msdata=): Use Enum and Var.
(m32r_sdata): New Enum and EnumValue entries.

From-SVN: r171321
gcc/ChangeLog
gcc/config/m32r/m32r-opts.h [new file with mode: 0644]
gcc/config/m32r/m32r.c
gcc/config/m32r/m32r.h
gcc/config/m32r/m32r.opt