diff options
author | Dave Brolley <brolley@redhat.com> | 2005-10-28 19:37:14 +0000 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2005-10-28 19:37:14 +0000 |
commit | 4fb1e3d3e1969453d0e0b69dc1e288f498f57935 (patch) | |
tree | 5fbe2701c17bdf77e1d30e8d4f69388f34caeae8 /gas/config | |
parent | 95b965212b3172ac5dbf9a4d6afbf40eb0b9ab68 (diff) | |
download | gdb-4fb1e3d3e1969453d0e0b69dc1e288f498f57935.zip gdb-4fb1e3d3e1969453d0e0b69dc1e288f498f57935.tar.gz gdb-4fb1e3d3e1969453d0e0b69dc1e288f498f57935.tar.bz2 |
2005-10-28 Dave Brolley <brolley@redhat.com>
Contribute the following change:
2005-09-19 Dave Brolley <brolley@redhat.com>
* config/tc-m32c.c (default_isa): New static variable.
(m32c_isa): Now of type CGEN_BITSET.
(md_begin): Pass &m32c_isa to m32c_cgen_cpu_open.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m32c.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/tc-m32c.c b/gas/config/tc-m32c.c index 9a9b825..8dca248 100644 --- a/gas/config/tc-m32c.c +++ b/gas/config/tc-m32c.c @@ -87,12 +87,13 @@ static int insn_size; /* Flags to set in the elf header */ static flagword m32c_flags = DEFAULT_FLAGS; -static unsigned int m32c_isa = (1 << ISA_M16C); +static char default_isa = 1 << (7 - ISA_M16C); +static CGEN_BITSET m32c_isa = {1, & default_isa}; static void set_isa (enum isa_attr isa_num) { - m32c_isa = (1 << isa_num); + cgen_bitset_set (& m32c_isa, isa_num); } static void s_bss (int); @@ -156,7 +157,7 @@ md_begin (void) gas_cgen_cpu_desc = m32c_cgen_cpu_open (CGEN_CPU_OPEN_MACHS, cpu_mach, CGEN_CPU_OPEN_ENDIAN, CGEN_ENDIAN_BIG, - CGEN_CPU_OPEN_ISAS, m32c_isa, + CGEN_CPU_OPEN_ISAS, & m32c_isa, CGEN_CPU_OPEN_END); m32c_cgen_init_asm (gas_cgen_cpu_desc); |