From: Jan Beulich Date: Fri, 12 Dec 2025 13:59:20 +0000 (+0100) Subject: gas/d30v: make use of tc_symbol_chars[] X-Git-Tag: binutils-2_46~618 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25ac69ecbd2e66be4e840b19f0de9c26040f4893;p=thirdparty%2Fbinutils-gdb.git gas/d30v: make use of tc_symbol_chars[] ... instead of having arch-specific code in app.c. --- diff --git a/gas/app.c b/gas/app.c index b9df9daba56..00ceab825b1 100644 --- a/gas/app.c +++ b/gas/app.c @@ -259,10 +259,6 @@ do_scrub_begin (int m68k_mri ATTRIBUTE_UNUSED) #ifdef DOUBLEBAR_PARALLEL lex['|'] = LEX_IS_DOUBLEBAR_1ST; #endif -#ifdef TC_D30V - /* Must do this is we want VLIW instruction with "->" or "<-". */ - lex['-'] = LEX_IS_SYMBOL_COMPONENT; -#endif #ifdef H_TICK_HEX if (enable_h_tick_hex) diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c index bfa4adf9ce2..8ba3a260f05 100644 --- a/gas/config/tc-d30v.c +++ b/gas/config/tc-d30v.c @@ -27,6 +27,8 @@ const char comment_chars[] = ";"; const char line_comment_chars[] = "#"; const char line_separator_chars[] = ""; +/* Must do this if we want VLIW instruction with "->" or "<-". */ +const char d30v_symbol_chars[] = "-"; const char md_shortopts[] = "OnNcC"; const char EXP_CHARS[] = "eE"; const char FLT_CHARS[] = "dD"; diff --git a/gas/config/tc-d30v.h b/gas/config/tc-d30v.h index 198d9949d29..700a750fc18 100644 --- a/gas/config/tc-d30v.h +++ b/gas/config/tc-d30v.h @@ -40,6 +40,9 @@ /* We don't need to handle .word strangely. */ #define WORKING_DOT_WORD +extern const char d30v_symbol_chars[]; +#define tc_symbol_chars d30v_symbol_chars + #define md_number_to_chars number_to_chars_bigendian int d30v_cleanup (int);