From: Nick Clifton Date: Thu, 19 Sep 2002 14:52:15 +0000 (+0000) Subject: Handle situation where architecture has not yet been selected. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f2a7c9e31ca14296ae02476d5361e2b4946c8df;p=binutils-gdb.git Handle situation where architecture has not yet been selected. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 7c9871a7e97..c9a9cd7894e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-09-19 Nick Clifton + + * config/tc-m68k.c (select_control_regs): Handle situation where + architecture has not yet been selected. + 2002-09-18 Chris Demetriou * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file. diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index d381ee38bc2..4e23ced7825 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;