]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Include elfos.h before ${tm_file}.
authorMartin Liska <mliska@suse.cz>
Wed, 12 Jan 2022 10:09:20 +0000 (11:09 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 12 Jan 2022 11:53:22 +0000 (12:53 +0100)
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"

gcc/ChangeLog:

* config.gcc: Include elfos.h before ${tm_file}.

gcc/config.gcc

index 89e0992fda5c1c221d67d7c7e38b89e3bd300c57..f1b8d832c6f8c63f7343f2a797d41f423d09adc4 100644 (file)
@@ -1620,7 +1620,7 @@ csky-*-*)
        esac
        ;;
 epiphany-*-elf | epiphany-*-rtems*)
-       tm_file="${tm_file} dbxelf.h elfos.h"
+       tm_file="dbxelf.h elfos.h ${tm_file}"
        tmake_file="${tmake_file} epiphany/t-epiphany"
        case ${target} in
        epiphany-*-rtems*)