aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-h8300.c14
-rw-r--r--gas/config/tc-h8300.h2
-rw-r--r--gas/config/tc-sh.c6
-rw-r--r--gas/config/tc-sh.h2
4 files changed, 23 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
diff --git a/gas/config/tc-h8300.h b/gas/config/tc-h8300.h
index 58849a2..4a2427c 100644
--- a/gas/config/tc-h8300.h
+++ b/gas/config/tc-h8300.h
@@ -89,3 +89,5 @@ extern int SXmode;
/* This target is buggy, and sets fix size too large. */
#define TC_FX_SIZE_SLACK(FIX) 1
+
+#define H_TICK_HEX 1
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index ac6e17f..2ed1b8e 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -3096,6 +3096,7 @@ enum options
OPTION_NO_EXPAND,
OPTION_PT32,
#endif
+ OPTION_H_TICK_HEX,
OPTION_DUMMY /* Not used. This is just here to make it easy to add and subtract options from this enum. */
};
@@ -3122,6 +3123,7 @@ struct option md_longopts[] =
{"no-expand", no_argument, NULL, OPTION_NO_EXPAND},
{"expand-pt32", no_argument, NULL, OPTION_PT32},
#endif /* HAVE_SH64 */
+ { "h-tick-hex", no_argument, NULL, OPTION_H_TICK_HEX },
{NULL, no_argument, NULL, 0}
};
@@ -3252,6 +3254,10 @@ md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
break;
#endif /* HAVE_SH64 */
+ case OPTION_H_TICK_HEX:
+ enable_h_tick_hex = 1;
+ break;
+
default:
return 0;
}
diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h
index 8f2af48..dfdabd4 100644
--- a/gas/config/tc-sh.h
+++ b/gas/config/tc-sh.h
@@ -247,3 +247,5 @@ extern int sh_regname_to_dw2regnum (char *regname);
#define DWARF2_CIE_DATA_ALIGNMENT (-4)
#endif /* OBJ_ELF */
+
+#define H_TICK_HEX 1