diff options
author | Nick Clifton <nickc@redhat.com> | 2002-09-19 14:52:15 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-09-19 14:52:15 +0000 |
commit | 4f2a7c9e31ca14296ae02476d5361e2b4946c8df (patch) | |
tree | c146efc2b7c60830f63001d0ea660ac2f02665a3 /gas/config | |
parent | 525d6a611f1677a6a2703be97b70cddf377920a7 (diff) | |
download | gdb-4f2a7c9e31ca14296ae02476d5361e2b4946c8df.zip gdb-4f2a7c9e31ca14296ae02476d5361e2b4946c8df.tar.gz gdb-4f2a7c9e31ca14296ae02476d5361e2b4946c8df.tar.bz2 |
Handle situation where architecture has not yet been selected.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m68k.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index d381ee3..4e23ced 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -3950,6 +3950,11 @@ select_control_regs () /* Note which set of "movec" control registers is available. */ switch (cpu_of_arch (current_architecture)) { + case 0: + as_warn (_("architecture not yet selected: defaulting to 68020")); + control_regs = m68020_control_regs; + break; + case m68000: control_regs = m68000_control_regs; break; |