diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-07-21 17:19:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-07-21 17:19:33 +0000 |
commit | 8ff6f40e74bd92388e27618c402a73d350e727c2 (patch) | |
tree | 6f63a1f423e251770b454e9f0fd52404dc020927 /gas/read.c | |
parent | 94eebcc5721347bcfdc8319a89663f741d2f9895 (diff) | |
download | gdb-8ff6f40e74bd92388e27618c402a73d350e727c2.zip gdb-8ff6f40e74bd92388e27618c402a73d350e727c2.tar.gz gdb-8ff6f40e74bd92388e27618c402a73d350e727c2.tar.bz2 |
* read.c (read_a_source_file): If NO_PSEUDO_DOT is defined, look
up opcodes as pseudo-ops even if they don't start with '.'.
* config/tc-m88k.h (NO_PSEUDO_DOT): Define.
* config/tc-m88k.c (md_assemble): Removed special pseudo-op
handling.
(md_apply_fix): Set fx_offset to the upper 16 bits of the reloc.
Output the low 16 bits for RELOC_HI16, not the high 16 bits.
* config/obj-coffbfd.c (do_relocs_for): If TC_M88K, set the
r_offset field of the reloc to the fixup offset.
(fixup_segments): If TC_M88K, don't warn about fixup overflows.
* doc/as.texinfo: Minor updates.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -445,7 +445,15 @@ read_a_source_file (name) if (!done_pseudo (s)) #else - if (*s == '.') + + pop = NULL; + +#ifdef NO_PSEUDO_DOT + /* The m88k uses pseudo-ops without a period. */ + pop = (pseudo_typeS *) hash_find (po_hash, s); +#endif + + if (pop != NULL || *s == '.') { /* * PSEUDO - OP. @@ -455,10 +463,11 @@ read_a_source_file (name) * already know that the pseudo-op begins with a '.'. */ - pop = (pseudo_typeS *) hash_find (po_hash, s + 1); + if (pop == NULL) + pop = (pseudo_typeS *) hash_find (po_hash, s + 1); /* Print the error msg now, while we still can */ - if (!pop) + if (pop == NULL) { as_bad ("Unknown pseudo-op: `%s'", s); *input_line_pointer = c; |