]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/d30v: make use of tc_symbol_chars[]
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Dec 2025 13:59:20 +0000 (14:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Dec 2025 13:59:20 +0000 (14:59 +0100)
... instead of having arch-specific code in app.c.

gas/app.c
gas/config/tc-d30v.c
gas/config/tc-d30v.h

index b9df9daba569a16cde1c546d7b2d6ec21ccb06fa..00ceab825b1ea8f72b0802df9acbaa70eaa439db 100644 (file)
--- 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)
index bfa4adf9ce2e3f0f369b4f9c5ac6cf373e0a9469..8ba3a260f05a4194440dd177ce3f2d1742f149a1 100644 (file)
@@ -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";
index 198d9949d2967c55d6c912f434f72b82694b090d..700a750fc183746331e4a343296db91470dba3bf 100644 (file)
@@ -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);