The following warning is emitted gazillion times.

Fixes:

In file included from ./tm.h:23,
                 from gcc/genconfig.c:25:
gcc/config/elfos.h:209: warning: "READONLY_DATA_SECTION_ASM_OP" redefined
  209 | #define READONLY_DATA_SECTION_ASM_OP    "\t.section\t.rodata"
      |
In file included from ./tm.h:21,
                 from gcc/genconfig.c:25:
gcc/config/epiphany/epiphany.h:671: note: this is the location of the previous 
definition
  671 | #define READONLY_DATA_SECTION_ASM_OP    "\t.section .rodata"

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

        * config/elfos.h (READONLY_DATA_SECTION_ASM_OP): Define only if
        not defined.
---
 gcc/config/elfos.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index 2e0c709e585..add949ec940 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -206,7 +206,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  
If not, see
 #define ASCII_DATA_ASM_OP      "\t.ascii\t"
/* Support a read-only data section. */
+#ifndef READONLY_DATA_SECTION_ASM_OP
 #define READONLY_DATA_SECTION_ASM_OP   "\t.section\t.rodata"
+#endif
/* On svr4, we *do* have support for the .init and .fini sections, and we
    can put stuff in there to be executed before and after `main'.  We let
--
2.34.1

Reply via email to