]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: drop unnecessary use of tc_comment_chars
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Aug 2024 07:44:53 +0000 (09:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Aug 2024 07:44:53 +0000 (09:44 +0200)
The override is necessary only when a target needs other than an array
of const char.

For cris drop redundant sibling declarations at the same time.

gas/config/tc-cris.c
gas/config/tc-cris.h
gas/config/tc-mmix.c
gas/config/tc-mmix.h
gas/config/tc-or1k.c
gas/config/tc-or1k.h
gas/config/tc-visium.c
gas/config/tc-visium.h

index 6a916fdd9c71d834cc21fe73e8cdc928485333d0..86ec1f701ec9d7759afbbecc5289aae4340abc26 100644 (file)
@@ -211,7 +211,7 @@ static int warn_for_branch_expansion = 0;
 static int err_for_dangerous_mul_placement
  = (XCONCAT2 (arch_,DEFAULT_CRIS_ARCH) != arch_crisv32);
 
-const char cris_comment_chars[] = ";";
+const char comment_chars[] = ";";
 
 /* This array holds the chars that only start a comment at the beginning of
    a line.  If the line seems to have the form '# 123 filename'
index 398f8193e868f9c18c2de3bff50bed9edab32357..4dab3adba365746b33b6d235a287d39542088848 100644 (file)
@@ -50,11 +50,6 @@ extern size_t md_longopts_size;
 
 extern const pseudo_typeS md_pseudo_table[];
 
-#define tc_comment_chars cris_comment_chars
-extern const char cris_comment_chars[];
-extern const char line_comment_chars[];
-extern const char line_separator_chars[];
-
 /* This should be optional, since it is ignored as an escape (assumed to
    be itself) if it is not recognized.  */
 #define ONLY_STANDARD_ESCAPES
index 2ae98b34b4eb888dbf97c6370897ddfc30a33408..4d0f94eda48eb669abacfa89738cf72cef6355b9 100644 (file)
@@ -382,7 +382,7 @@ const pseudo_typeS md_pseudo_table[] =
    {NULL, 0, 0}
  };
 
-const char mmix_comment_chars[] = "%!";
+const char comment_chars[] = "%!";
 
 /* A ':' is a valid symbol character in mmixal.  It's the prefix
    delimiter, but other than that, it works like a symbol character,
index b07f0047539274d097a56890f3db6dc51f8b8f6d..08061b8c123a9a3f613ef1766ad1d483274f90e0 100644 (file)
@@ -26,9 +26,6 @@
 #define TARGET_ARCH bfd_arch_mmix
 #define TARGET_BYTES_BIG_ENDIAN 1
 
-extern const char mmix_comment_chars[];
-#define tc_comment_chars mmix_comment_chars
-
 extern const char mmix_symbol_chars[];
 #define tc_symbol_chars mmix_symbol_chars
 
index 0dcb6ea7d56d53e95017c4adb7db33388b6ad4f6..14b09c9c3e6dff14fbfb61b20e986c4a3c23d76f 100644 (file)
@@ -49,7 +49,7 @@ typedef struct
 }
 or1k_insn;
 
-const char comment_chars[]        = "#";
+const char comment_chars[]        = ";#";
 const char line_comment_chars[]   = "#";
 const char line_separator_chars[] = ";";
 const char EXP_CHARS[]            = "eE";
@@ -90,8 +90,6 @@ s_nodelay (int val ATTRIBUTE_UNUSED)
   nodelay = true;
 }
 
-const char or1k_comment_chars [] = ";#";
-
 /* The target specific pseudo-ops which we support.  */
 const pseudo_typeS md_pseudo_table[] =
 {
index 8277272af3a2744de1373daa97c09690b5c99a09..5b323f2e6d844cf0d8c85d98998410fea91386dc 100644 (file)
@@ -29,9 +29,6 @@ extern unsigned long or1k_machine;
 #define TARGET_FORMAT           "elf32-or1k"
 #define TARGET_BYTES_BIG_ENDIAN 1
 
-extern const char or1k_comment_chars [];
-#define tc_comment_chars or1k_comment_chars
-
 /* Permit temporary numeric labels.  */
 #define LOCAL_LABELS_FB 1
 
index ee20be405da94e03f5739133f601eb38bea82db7..fcb128a1abbcc93babc03b71e11098c723e1cc39 100644 (file)
@@ -53,9 +53,8 @@
 
 
 /* This string holds the chars that always start a comment. If the
-   pre-processor is disabled, these aren't very useful. The macro
-   tc_comment_chars points to this.  */
-const char *visium_comment_chars = "!;";
+   pre-processor is disabled, these aren't very useful.  */
+const char comment_chars[] = "!;";
 
 /* This array holds the chars that only start a comment at the beginning
    of a line.  If the line seems to have the form '# 123 filename' .line
index c94f27e705dff6d99d9e26dcac6c25c5398003e1..b85357a30510d9ebb03b2104497dd28957ad3f95 100644 (file)
@@ -63,9 +63,6 @@ extern long visium_pcrel_from_section (struct fix *, segT);
 
 #define md_operand(x)
 
-#define tc_comment_chars visium_comment_chars
-extern const char *visium_comment_chars;
-
 #define TARGET_USE_CFIPOP 1
 
 #define tc_cfi_frame_initial_instructions visium_cfi_frame_initial_instructions