bfin-opts.h: New.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 22 Mar 2011 22:30:46 +0000 (22:30 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 22 Mar 2011 22:30:46 +0000 (22:30 +0000)
commitbbd399cf9190106e0f71566741f907bc33e00bb4
tree9890456b6691f31d9c0a5005b4950c789dbcc476
parent5e1b4d5a046cbe6626f9142db5fb2aa169045213
bfin-opts.h: New.

* config/bfin/bfin-opts.h: New.
* config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
bfin_si_revision, bfin_workarounds): Remove.
(bfin_cpus): Make static const.
(bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
not bfin_lib_id_given.
(bfin_handle_option): Don't set bfin_lib_id_given.  Access
bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
pointer. Use error_at.  Don't assert that global structures are in
use.
* config/bfin/bfin.h: Include bfin-opts.h.
(enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
(bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
* bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
(bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
entries.

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