]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: Define comment_chars for non-ELF PowerPC targets
authorNick Clifton <nickc@redhat.com>
Tue, 16 Sep 2025 13:46:01 +0000 (14:46 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Sep 2025 13:46:01 +0000 (14:46 +0100)
gas/config/tc-ppc.c
gas/config/tc-ppc.h

index a92a46446f0d1333a74f324b8d5046ff73cc3884..3b2b218bcf34068001389e2332fa498ef2c501b5 100644 (file)
@@ -123,6 +123,10 @@ static void ppc_weak (int);
 static void ppc_GNU_visibility (int);
 #endif
 
+/* This string holds the chars that always start a comment.  If the
+   pre-processor is disabled, these aren't very useful.  */
+const char ppc_comment_chars[] = "#";
+
 #ifdef OBJ_ELF
 static void ppc_elf_rdata (int);
 static void ppc_elf_lcomm (int);
@@ -134,10 +138,6 @@ static void ppc_elf_gnu_attribute (int);
 /* Generic assembler global variables which must be defined by all
    targets.  */
 
-/* This string holds the chars that always start a comment.  If the
-   pre-processor is disabled, these aren't very useful.  */
-const char ppc_comment_chars[] = "#";
-
 /* Characters which start a comment at the beginning of a line.  */
 const char line_comment_chars[] = "#";
 
index ea520b67842b1fd2859efe5df0b97ea3a5b0715f..3bbeafc172ce84fb042a98d8a60bc7ff0d8bee1e 100644 (file)
@@ -216,6 +216,9 @@ extern void ppc_new_dot_label (symbolS *);
 extern const char       ppc_symbol_chars[];
 #define tc_symbol_chars ppc_symbol_chars
 
+#define tc_comment_chars ppc_comment_chars
+extern const char ppc_comment_chars[];
+
 #ifdef OBJ_ELF
 
 /* Support for SHT_ORDERED */
@@ -225,9 +228,6 @@ extern int ppc_section_flags (flagword, bfd_vma, int);
 #define md_elf_section_type(STR, LEN)          ppc_section_type (STR, LEN)
 #define md_elf_section_flags(FLAGS, ATTR, TYPE)        ppc_section_flags (FLAGS, ATTR, TYPE)
 
-#define tc_comment_chars ppc_comment_chars
-extern const char ppc_comment_chars[];
-
 #define md_elf_section_letter          ppc_elf_section_letter
 extern bfd_vma ppc_elf_section_letter (int, const char **);