aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-08-21 21:18:57 +0000
committerIan Lance Taylor <ian@airs.com>1995-08-21 21:18:57 +0000
commita5e03353aeeb71c17d72dc53351c79cc9e5bb188 (patch)
tree3b813ebefec69972f4c22d30c54e1f096f523921
parent4026c1222f74d1a3be4c1e7a8c6d18fbf798a912 (diff)
downloadgdb-a5e03353aeeb71c17d72dc53351c79cc9e5bb188.zip
gdb-a5e03353aeeb71c17d72dc53351c79cc9e5bb188.tar.gz
gdb-a5e03353aeeb71c17d72dc53351c79cc9e5bb188.tar.bz2
* as.c (parse_args): Accept --defsym SYM=VALUE.
* doc/as.texinfo, doc/as.1: Document --defsym.
-rw-r--r--gas/ChangeLog24
-rw-r--r--gas/doc/as.16
2 files changed, 29 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 780d2a3..678a671 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,27 @@
Mon Aug 21 13:57:20 1995 Ian Lance Taylor <ian@cygnus.com>
+ * 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 <ian@cygnus.com>
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 6b977fe..451ce5b 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