diff options
author | Tomer Levi <Tomer.Levi@nsc.com> | 2004-11-08 13:51:55 +0000 |
---|---|---|
committer | Tomer Levi <Tomer.Levi@nsc.com> | 2004-11-08 13:51:55 +0000 |
commit | aea44f629082dce28d0330e7eb496133426bdff6 (patch) | |
tree | 5629a55172930b17154772ca1f5abd103ce12b5b /gas/config/tc-crx.h | |
parent | 7499d566bb9495cac23109f01ded20f8849d08ae (diff) | |
download | gdb-aea44f629082dce28d0330e7eb496133426bdff6.zip gdb-aea44f629082dce28d0330e7eb496133426bdff6.tar.gz gdb-aea44f629082dce28d0330e7eb496133426bdff6.tar.bz2 |
2004-11-08 Tomer Levi <Tomer.Levi@nsc.com>
* config/tc-crx.c (print_insn): Check and set insn_addr.
* config/tc-crx.h (md_frag_check): Define.
Diffstat (limited to 'gas/config/tc-crx.h')
-rw-r--r-- | gas/config/tc-crx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-crx.h b/gas/config/tc-crx.h index 29e59fe..b387651 100644 --- a/gas/config/tc-crx.h +++ b/gas/config/tc-crx.h @@ -69,4 +69,12 @@ extern int crx_force_relocation (struct fix *); : LEN == 4 ? BFD_RELOC_CRX_NUM32 \ : BFD_RELOC_NONE); +/* Give an error if a frag containing code is not aligned to a 2-byte + boundary. */ +#define md_frag_check(FRAGP) \ + if ((FRAGP)->has_code \ + && (((FRAGP)->fr_address + (FRAGP)->insn_addr) & 1) != 0) \ + as_bad_where ((FRAGP)->fr_file, (FRAGP)->fr_line, \ + _("instruction address is not a multiple of 2")); + #endif /* TC_CRX_H */ |