From a5e03353aeeb71c17d72dc53351c79cc9e5bb188 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 21 Aug 1995 21:18:57 +0000 Subject: [PATCH] * as.c (parse_args): Accept --defsym SYM=VALUE. * doc/as.texinfo, doc/as.1: Document --defsym. --- gas/ChangeLog | 24 +++++++++++++++++++++++- gas/doc/as.1 | 6 ++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 780d2a3351..678a671ccd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,27 @@ Mon Aug 21 13:57:20 1995 Ian Lance Taylor + * as.c (parse_args): Accept --defsym SYM=VALUE. + * doc/as.texinfo, doc/as.1: Document --defsym. + + * read.c (read_a_source_file): In MRI mode, don't end the + statement inside a quotation. + (s_space): Don't warn about a zero repeat count in MRI mode. + * config/tc-m68k.c (crack_operand): In MRI mode, don't count + parentheses inside quotes. + (md_assemble): In MRI mode, anything after the operands field is a + comment. + (parse_mri_control_operand): Adjust start and stop to remove + spaces. + (s_mri_for): Likewise. + + * cond.c (s_ifdef): Restore the character after the symbol name, + in case it is a newline. + (s_if): If ignoring the current tree, don't try to parse the + expression. + + * app.c (do_scrub_next_char): If LEX_IS_STRINGQUOTE or + LEX_IS_ONECHAR_QUOTE is seen in state 10, preserve one space. + * doc/as.texinfo: Document irp, irpc, macro, and rept. MRI mode now supports macros, ifc, ifnc, irp, irpc, rept, and endr, without using gasp. @@ -14,7 +36,7 @@ Mon Aug 21 13:57:20 1995 Ian Lance Taylor uses. (potable): Add exitm, irp, irpc, macro, mexit, rept. (read_a_source_file): Always clear line_label at the start of a - line, not just when flag_mri or LABELS_WITHOUT_COLONS. Fixup + line, not just when flag_mri or LABELS_WITHOUT_COLONS. Fix MRI/LABELS_WITHOUT_COLONS handling. In MRI mode, permit label: equ val. Set line_label when calling colon. In MRI mode, a leading '.' does not imply a pseudo-op. Check for macro expansion diff --git a/gas/doc/as.1 b/gas/doc/as.1 index 6b977fe790..451ce5b4c0 100644 --- a/gas/doc/as.1 +++ b/gas/doc/as.1 @@ -13,6 +13,7 @@ GNU as\-\-the portable GNU assembler. .I file\c \&\|]\|] .RB "[\|" \-D "\|]" +.RB "[\|" \-\-defsym\ SYM=VAL "\|]" .RB "[\|" \-f "\|]" .RB "[\|" \-I .I path\c @@ -147,6 +148,11 @@ other assemblers; it has no effect on \c .B as\c \&. .TP +.B \-\-defsym SYM=VALUE +Define the symbol SYM to be VALUE before assembling the input file. +VALUE must be an integer constant. As in C, a leading 0x indicates a +hexadecimal value, and a leading 0 indicates an octal value. +.TP .B \-f ``fast''--skip preprocessing (assume source is compiler output). .TP