Handle situation where architecture has not yet been selected.
This commit is contained in:
parent
525d6a611f
commit
4f2a7c9e31
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-09-19 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* config/tc-m68k.c (select_control_regs): Handle situation where
|
||||
architecture has not yet been selected.
|
||||
|
||||
2002-09-18 Chris Demetriou <cgd@broadcom.com>
|
||||
|
||||
* config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue