aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-05-19 10:18:02 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-05-19 10:18:02 +0000
commit377260ba3af89e31f1051de370ace5d3b3892446 (patch)
tree3c7cd38342d1acf440d9da14979f81bae819566b /gas/config
parentc6f90868f62fd8872d2b2052092214d8d59a70d6 (diff)
downloadgdb-377260ba3af89e31f1051de370ace5d3b3892446.zip
gdb-377260ba3af89e31f1051de370ace5d3b3892446.tar.gz
gdb-377260ba3af89e31f1051de370ace5d3b3892446.tar.bz2
* gas/config/tc-m68k.c (m68k_init_arch): Move checking of
cfloat/m68881 to correct architecture before using it.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-m68k.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index f370e6c..6cf85d7 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -7233,6 +7233,15 @@ m68k_init_arch (void)
current_architecture &= ~not_current_architecture;
+ if ((current_architecture & (cfloat | m68881)) == (cfloat | m68881))
+ {
+ /* Determine which float is really meant. */
+ if (current_architecture & (m68k_mask & ~m68881))
+ current_architecture ^= cfloat;
+ else
+ current_architecture ^= m68881;
+ }
+
if (selected_cpu)
{
control_regs = selected_cpu->control_regs;
@@ -7244,15 +7253,6 @@ m68k_init_arch (void)
}
}
- if ((current_architecture & (cfloat | m68881)) == (cfloat | m68881))
- {
- /* Determine which float is really meant. */
- if (current_architecture & (m68k_mask & ~m68881))
- current_architecture ^= cfloat;
- else
- current_architecture ^= m68881;
- }
-
if ((current_architecture & m68k_mask)
&& (current_architecture & ~m68k_mask))
{