diff options
Diffstat (limited to 'gas/config/tc-sh64.c')
-rw-r--r-- | gas/config/tc-sh64.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c index 54f704f..a7a61fb 100644 --- a/gas/config/tc-sh64.c +++ b/gas/config/tc-sh64.c @@ -3513,3 +3513,18 @@ sh64_vtable_inherit (int ignore ATTRIBUTE_UNUSED) input_line_pointer = eol; } +int +sh64_fake_label (const char *name) +{ + size_t len; + + if (strcmp (name, FAKE_LABEL_NAME) == 0) + return 1; + + len = strlen (name); + if (len >= (sizeof (DATALABEL_SUFFIX) - 1)) + return strcmp (&name [len - sizeof (DATALABEL_SUFFIX) + 1], + DATALABEL_SUFFIX) == 0; + + return 0; +} |