aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2004-01-09 02:34:04 +0000
committerIan Lance Taylor <ian@airs.com>2004-01-09 02:34:04 +0000
commit78849248c05bbfd4aec63ab945195eac6e4224b0 (patch)
treefd8e93095ef0e1c76a2b5c765164267a37fb7782 /gas/config
parent29ccc66bdb32142230615e07f376720597c6b472 (diff)
downloadgdb-78849248c05bbfd4aec63ab945195eac6e4224b0.zip
gdb-78849248c05bbfd4aec63ab945195eac6e4224b0.tar.gz
gdb-78849248c05bbfd4aec63ab945195eac6e4224b0.tar.bz2
* config/tc-mips.c (warn_nops): Remove static variable.
(macro): Remove test of warn_nops. (md_shortops): Remove 'n'. (md_parse_option): Remove 'n' case. (md_show_usage): Remove -n. * doc/as.texinfo (Overview): Remove MIPS -n option. * doc/c-mips.texi (MIPS Opts): Remove mention -n. * NEWS: Mention removal of MIPS -n option.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 0142453..da0ea76 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -379,9 +379,6 @@ static int mips_32bitmode = 0;
enum mips_pic_level mips_pic;
-/* Warn about all NOPS that the assembler generates. */
-static int warn_nops = 0;
-
/* 1 if we should generate 32 bit offsets from the $gp register in
SVR4_PIC mode. Currently has no meaning in other modes. */
static int mips_big_got = 0;
@@ -4196,19 +4193,9 @@ macro (struct mips_cl_insn *ip)
do_false:
/* result is always false */
if (! likely)
- {
- if (warn_nops)
- as_warn (_("Branch %s is always false (nop)"),
- ip->insn_mo->name);
- macro_build (NULL, &icnt, NULL, "nop", "", 0);
- }
+ macro_build (NULL, &icnt, NULL, "nop", "", 0);
else
- {
- if (warn_nops)
- as_warn (_("Branch likely %s is always false"),
- ip->insn_mo->name);
- macro_build (NULL, &icnt, &offset_expr, "bnel", "s,t,p", 0, 0);
- }
+ macro_build (NULL, &icnt, &offset_expr, "bnel", "s,t,p", 0, 0);
return;
}
if (imm_expr.X_op != O_constant)
@@ -10428,7 +10415,7 @@ static int support_64bit_objects(void)
}
#endif /* OBJ_ELF */
-const char *md_shortopts = "nO::g::G:";
+const char *md_shortopts = "O::g::G:";
struct option md_longopts[] =
{
@@ -10613,10 +10600,6 @@ md_parse_option (int c, char *arg)
target_big_endian = 0;
break;
- case 'n':
- warn_nops = 1;
- break;
-
case 'O':
if (arg && arg[1] == '0')
mips_optimize = 1;
@@ -14705,7 +14688,6 @@ MIPS options:\n\
-mfp32 use 32-bit FPRs, regardless of the chosen ISA\n\
-O0 remove unneeded NOPs, do not swap branches\n\
-O remove unneeded NOPs and swap branches\n\
--n warn about NOPs generated from macros\n\
--[no-]construct-floats [dis]allow floating point values to be constructed\n\
--trap, --no-break trap exception on div by 0 and mult overflow\n\
--break, --no-trap break exception on div by 0 and mult overflow\n"));