diff options
author | DJ Delorie <dj@redhat.com> | 2008-07-18 22:25:07 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2008-07-18 22:25:07 +0000 |
commit | c54b5932c549afd2a2b2343ff57f365796237a40 (patch) | |
tree | 7881491c1fb579ddc1d7523b8984cad02ea7aa24 /gas/config | |
parent | d7d9f01ea18f14a9a1574042bd65dd73f9b6b2b8 (diff) | |
download | gdb-c54b5932c549afd2a2b2343ff57f365796237a40.zip gdb-c54b5932c549afd2a2b2343ff57f365796237a40.tar.gz gdb-c54b5932c549afd2a2b2343ff57f365796237a40.tar.bz2 |
* config/tc-m32c.h (H_TICK_HEX): Define.
* config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
(md_longopts): Add support for it.
(md_parse_option): Likewise.
* doc/as.texinfo (Overview): Add new m32c options.
* doc/c-m32c.texi (M32C-Modifiers): Likewise
* as.h: (enable_h_tick_hex): New.
* app.c (enable_h_tick_hex): New.
(LEX_IS_H): New.
(do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
(do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
style hex constants and convert the input stream to 0x00 style.
(do_scrub_chars): If a 'X style character constant is found after
a symbol character (like you're or X'00), warn the user.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m32c.c | 6 | ||||
-rw-r--r-- | gas/config/tc-m32c.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-m32c.c b/gas/config/tc-m32c.c index 2d13a66..615bcc5 100644 --- a/gas/config/tc-m32c.c +++ b/gas/config/tc-m32c.c @@ -68,12 +68,14 @@ const char * md_shortopts = M32C_SHORTOPTS; #define OPTION_CPU_M16C (OPTION_MD_BASE) #define OPTION_CPU_M32C (OPTION_MD_BASE + 1) #define OPTION_LINKRELAX (OPTION_MD_BASE + 2) +#define OPTION_H_TICK_HEX (OPTION_MD_BASE + 3) struct option md_longopts[] = { { "m16c", no_argument, NULL, OPTION_CPU_M16C }, { "m32c", no_argument, NULL, OPTION_CPU_M32C }, { "relax", no_argument, NULL, OPTION_LINKRELAX }, + { "h-tick-hex", no_argument, NULL, OPTION_H_TICK_HEX }, {NULL, no_argument, NULL, 0} }; size_t md_longopts_size = sizeof (md_longopts); @@ -125,6 +127,10 @@ md_parse_option (int c, char * arg ATTRIBUTE_UNUSED) m32c_relax = 1; break; + case OPTION_H_TICK_HEX: + enable_h_tick_hex = 1; + break; + default: return 0; } diff --git a/gas/config/tc-m32c.h b/gas/config/tc-m32c.h index 42e0a27..8fb0355 100644 --- a/gas/config/tc-m32c.h +++ b/gas/config/tc-m32c.h @@ -86,3 +86,5 @@ extern long md_pcrel_from_section PARAMS ((struct fix *, segT)); #define TC_START_LABEL(character, i_l_p) \ ((character) != ':' ? 0 : (character = m32c_is_colon_insn (s)) ? 0 : ((character = ':'), 1)) extern char m32c_is_colon_insn PARAMS ((char *)); + +#define H_TICK_HEX 1 |