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 | |
parent | 525d6a611f1677a6a2703be97b70cddf377920a7 (diff) | |
download | gdb-4f2a7c9e31ca14296ae02476d5361e2b4946c8df.zip gdb-4f2a7c9e31ca14296ae02476d5361e2b4946c8df.tar.gz gdb-4f2a7c9e31ca14296ae02476d5361e2b4946c8df.tar.bz2 |
Handle situation where architecture has not yet been selected.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-m68k.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 7c9871a..c9a9cd7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. 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; |