aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm')
-rw-r--r--asm/nasm.c9
-rw-r--r--asm/preproc.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index 5c5c55d7..6af92754 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -941,7 +941,8 @@ enum text_options {
OPT_LIMIT,
OPT_KEEP_ALL,
OPT_NO_LINE,
- OPT_DEBUG
+ OPT_DEBUG,
+ OPT_REPRODUCIBLE
};
enum need_arg {
ARG_NO,
@@ -973,6 +974,7 @@ static const struct textargs textopts[] = {
{"keep-all", OPT_KEEP_ALL, ARG_NO, 0},
{"no-line", OPT_NO_LINE, ARG_NO, 0},
{"debug", OPT_DEBUG, ARG_MAYBE, 0},
+ {"reproducible", OPT_REPRODUCIBLE, ARG_NO, 0},
{NULL, OPT_BOGUS, ARG_NO, 0}
};
@@ -1333,6 +1335,9 @@ static bool process_arg(char *p, char *q, int pass)
case OPT_DEBUG:
debug_nasm = param ? strtoul(param, NULL, 10) : debug_nasm+1;
break;
+ case OPT_REPRODUCIBLE:
+ reproducible = true;
+ break;
case OPT_HELP:
help(stdout);
exit(0);
@@ -2290,6 +2295,8 @@ static void help(FILE *out)
" --lprefix str prepend the given string to local symbols\n"
" --lpostfix str append the given string to local symbols\n"
"\n"
+ " --reproducible attempt to produce run-to-run identical output\n"
+ "\n"
" -w+x enable warning x (also -Wx)\n"
" -w-x disable warning x (also -Wno-x)\n"
" -w[+-]error promote all warnings to errors (also -Werror)\n"
diff --git a/asm/preproc.c b/asm/preproc.c
index 28c27060..aeb73ff9 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -4872,7 +4872,7 @@ static inline bool pp_concat_match(const Token *t, enum concat_flags mask)
switch (t->type) {
case TOKEN_ID:
- ctype = CONCAT_ID; /* Should this include $ and $$? */
+ ctype = CONCAT_ID; /* Ought this include $ and $$? */
break;
case TOKEN_LOCAL_MACRO:
ctype = CONCAT_LOCAL_MACRO;