aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/as.c b/gas/as.c
index 4261308..9395966 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -356,7 +356,9 @@ parse_args (pargc, pargv)
#define OPTION_GSTABS (OPTION_STD_BASE + 14)
{"gstabs", no_argument, NULL, OPTION_GSTABS},
#define OPTION_STRIP_LOCAL_ABSOLUTE (OPTION_STD_BASE + 15)
- {"strip-local-absolute", no_argument, NULL, OPTION_STRIP_LOCAL_ABSOLUTE}
+ {"strip-local-absolute", no_argument, NULL, OPTION_STRIP_LOCAL_ABSOLUTE},
+#define OPTION_NOWARNSWAP (OPTION_STD_BASE + 16)
+ {"nowarnswap", no_argument, NULL, OPTION_NOWARNSWAP}
};
/* Construct the option lists from the standard list and the
@@ -532,6 +534,10 @@ the GNU General Public License. This program has absolutely no warranty.\n");
case OPTION_GSTABS:
debug_type = DEBUG_STABS;
break;
+
+ case OPTION_NOWARNSWAP:
+ flag_warn_instructionswap = 0;
+ break;
case 'J':
flag_signed_overflow_ok = 1;
@@ -702,6 +708,7 @@ main (argc, argv)
#endif
out_file_name = OBJ_DEFAULT_OUTPUT_FILE_NAME;
+ flag_warn_instructionswap = 1;
hex_init ();
#ifdef BFD_ASSEMBLER