diff options
author | DJ Delorie <dj@redhat.com> | 2008-08-06 15:42:15 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2008-08-06 15:42:15 +0000 |
commit | 6fd4f6ccfe07f579d41541091ebed1be7e29a82e (patch) | |
tree | abe0e5e4bf26f7b95729d3c5e1ec1ab9b5b34a6d /gas/config/tc-h8300.c | |
parent | 353cfe88aeecf469c40215069bd79f8352002d49 (diff) | |
download | gdb-6fd4f6ccfe07f579d41541091ebed1be7e29a82e.zip gdb-6fd4f6ccfe07f579d41541091ebed1be7e29a82e.tar.gz gdb-6fd4f6ccfe07f579d41541091ebed1be7e29a82e.tar.bz2 |
* NEWS: Mention these changes.
* config/tc-h8300.h (H_TICK_HEX): Define.
* config/tc-h8300.c (OPTION_H_TICK_HEX): New.
(md_longopts): Add "-h-tick-hex".
(md_parse_option): Support it.
* doc/c-h8300.texi (H8/300 Options): Document it.
* doc/as.texinfo (Overview): Likewise.
* config/tc-sh.h (H_TICK_HEX): Define.
* config/tc-sh.c (OPTION_H_TICK_HEX): New.
(md_longopts): Add "-h-tick-hex".
(md_parse_option): Support it.
* doc/c-sh.texi (SH Options): Document it.
* doc/c-sh64.texi (SH64 Options): Document it.
* doc/as.texinfo (Overview): Likewise.
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r-- | gas/config/tc-h8300.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 95864f3..86b2450 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -2018,8 +2018,11 @@ md_atof (int type, char *litP, int *sizeP) return ieee_md_atof (type, litP, sizeP, TRUE); } +#define OPTION_H_TICK_HEX (OPTION_MD_BASE) + const char *md_shortopts = ""; struct option md_longopts[] = { + { "h-tick-hex", no_argument, NULL, OPTION_H_TICK_HEX }, {NULL, no_argument, NULL, 0} }; @@ -2028,7 +2031,16 @@ size_t md_longopts_size = sizeof (md_longopts); int md_parse_option (int c ATTRIBUTE_UNUSED, char *arg ATTRIBUTE_UNUSED) { - return 0; + switch (c) + { + case OPTION_H_TICK_HEX: + enable_h_tick_hex = 1; + break; + + default: + return 0; + } + return 1; } void |