aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2008-07-08 06:33:41 +0000
committerNathan Sidwell <nathan@codesourcery.com>2008-07-08 06:33:41 +0000
commitbfbba8e4eef2c9b7bffabda7064532ecdc0ef27f (patch)
treea2f186e04ef05ca019b582d518b8c6df527d5f69 /gas/config
parent63f22691bbbb020eb88ae6a17499838d5f457612 (diff)
downloadgdb-bfbba8e4eef2c9b7bffabda7064532ecdc0ef27f.zip
gdb-bfbba8e4eef2c9b7bffabda7064532ecdc0ef27f.tar.gz
gdb-bfbba8e4eef2c9b7bffabda7064532ecdc0ef27f.tar.bz2
* config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
about overriding an earlier setting.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-m68k.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 81e4cc7..9e969c3 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -7229,7 +7229,7 @@ m68k_lookup_cpu (const char *arg, const struct m68k_cpu *table,
return 0;
}
-/* Set the cpu, issuing errors if it is unrecognized, or invalid */
+/* Set the cpu, issuing errors if it is unrecognized. */
static int
m68k_set_cpu (char const *name, int allow_m, int silent)
@@ -7244,18 +7244,11 @@ m68k_set_cpu (char const *name, int allow_m, int silent)
as_bad (_("cpu `%s' unrecognized"), name);
return 0;
}
-
- if (selected_cpu && selected_cpu != cpu)
- {
- as_bad (_("already selected `%s' processor"),
- selected_cpu->name);
- return 0;
- }
selected_cpu = cpu;
return 1;
}
-/* Set the architecture, issuing errors if it is unrecognized, or invalid */
+/* Set the architecture, issuing errors if it is unrecognized. */
static int
m68k_set_arch (char const *name, int allow_m, int silent)
@@ -7270,14 +7263,6 @@ m68k_set_arch (char const *name, int allow_m, int silent)
as_bad (_("architecture `%s' unrecognized"), name);
return 0;
}
-
- if (selected_arch && selected_arch != arch)
- {
- as_bad (_("already selected `%s' architecture"),
- selected_arch->name);
- return 0;
- }
-
selected_arch = arch;
return 1;
}