OSDN Git Service

* desc-cpu.scm (gen-maybe-multi-ifld): Remove superfluous parens.
authoramodra <amodra>
Mon, 2 Dec 2002 21:53:52 +0000 (21:53 +0000)
committeramodra <amodra>
Mon, 2 Dec 2002 21:53:52 +0000 (21:53 +0000)
commit425b929711d8a6d7814836fd5081e0d00722c3eb
treecd38d3bf184f3cd439e26314c6f8b62655b9fd6b
parent7b227603a8e146b5abae75fd24e65ccae6527250
* desc-cpu.scm (gen-maybe-multi-ifld): Remove superfluous parens.
Add braces and cast for union field.
(gen-multi-ifield-nodes): Add braces and cast for union field.
(cgen_operand_table): Similarly fix sentinel.
(cgen_cpu_close): Constify "insns".  Formatting.
(cgen-desc.c): Include xregex.h.
* cpu/ip2k.opc (ip2k_cgen_insn_supported): Move to opc.c section.
Prototype.
<opc.c>: Include safe-ctype.h.
(ip2k_asm_hash): Use ISSPACE and TOLOWER.
(PARSE_FUNC_DECL): Declare.  Use to prototype parse_fr, parse_addr16,
parse_addr16_p, parse_addr16_cjp, parse_lit8 and parse_bit3.
(parse_fr): Constify "old_strp".  Correct type of "tempvalue".
Don't test it for >= 0.  Use ISSPACE rather than isspace.  Formatting.
(parse_addr16): Correct type of "value".  Formatting.
(parse_addr16_p): Likewise.
(parse_addr16_cjp): Likewise.
(parse_lit8): Likewise.
(parse_bit3): Formatting.
(PRINT_FUNC_DECL): Define.  Use to prototype print_fr, print_dollarhex,
print_dollarhex8, print_dollarhex16, print_dollarhex_addr16h,
print_dollarhex_addr16l, print_dollarhex_p, print_dollarhex_cj and
print_decimal.
(print_fr): Add ATTRIBUTE_UNUSED on unused args.  Formatting.
(print_dollarhex): Add ATTRIBUTE_UNUSED on unused args.
(print_dollarhex8): Likewise.
(print_dollarhex16): Likewise.
(print_dollarhex_addr16h): Likewise.
(print_dollarhex_addr16l): Likewise.
(print_dollarhex_p): Likewise.
(print_dollarhex_cj): Likewise.
(print_decimal): Likewise.
* cpu/xstormy16.opc (parse_mem8): Use ISALNUM rather than isalnum.
cgen/ChangeLog
cgen/cpu/ip2k.opc
cgen/cpu/xstormy16.opc
cgen/desc-cpu.scm