public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7588] RTEMS: Fix -Werror builds
@ 2021-03-09 18:44 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2021-03-09 18:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0455cd76b687621f28488393c81d0854200a220a

commit r11-7588-g0455cd76b687621f28488393c81d0854200a220a
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Tue Mar 9 19:32:26 2021 +0100

    RTEMS: Fix -Werror builds
    
    Fix build errors due to warnings such as:
    
    gcc/config/v850/rtems.h:43: error: "RTEMS_STARTFILE_SPEC" redefined [-Werror]
       43 | #define RTEMS_STARTFILE_SPEC ""
    
    The problem was that "gcc/config/rtems.h" was included before the
    architecture-specific "gcc/config/*/rtems.h" header file on some
    architectures.
    
    gcc/
    
            * config.gcc (aarch64-*-rtems*): Include general rtems.h after
            the architecture-specific rtems.h.
            (aarch64-*-rtems*): Likewise.
            (arm*-*-rtems*): Likewise.
            (epiphany-*-rtems*): Likewise.
            (riscv*-*-rtems*): Likewise.

Diff:
---
 gcc/config.gcc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 966cbc888cb..3ec7582f5dd 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1094,7 +1094,7 @@ aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)
                 tm_file="${tm_file} fuchsia.h"
                 ;;
 	aarch64-*-rtems*)
-	  	tm_file="${tm_file} rtems.h aarch64/rtems.h"
+		tm_file="${tm_file} aarch64/rtems.h rtems.h"
 		;;
 	esac
 	case $target in
@@ -1368,7 +1368,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems* | arm*-*-fuchsia*)
 	  target_cpu_cname="generic-armv7-a"
 	  ;;
 	arm*-*-rtems*)
-	  tm_file="${tm_file} rtems.h arm/rtems.h newlib-stdint.h"
+	  tm_file="${tm_file} arm/rtems.h rtems.h newlib-stdint.h"
 	  tmake_file="${tmake_file} arm/t-bpabi arm/t-rtems"
 	  ;;
 	arm*-*-symbianelf*)
@@ -1630,7 +1630,7 @@ epiphany-*-elf | epiphany-*-rtems*)
 	tmake_file="${tmake_file} epiphany/t-epiphany"
 	case ${target} in
 	epiphany-*-rtems*)
-	  tm_file="${tm_file} rtems.h epiphany/rtems.h newlib-stdint.h"
+	  tm_file="${tm_file} epiphany/rtems.h rtems.h newlib-stdint.h"
 	  ;;
 	*)
 	  tm_file="${tm_file} newlib-stdint.h"
@@ -2476,7 +2476,7 @@ riscv*-*-elf* | riscv*-*-rtems*)
 	tm_file="elfos.h newlib-stdint.h ${tm_file} riscv/elf.h"
 	case ${target} in
 	*-*-rtems*)
-	  tm_file="${tm_file} rtems.h riscv/rtems.h"
+	  tm_file="${tm_file} riscv/rtems.h rtems.h"
 	  tmake_file="${tmake_file} riscv/t-rtems"
 	  ;;
 	*)
@@ -3476,7 +3476,7 @@ tilepro*-*-linux*)
 v850-*-rtems*)
 	target_cpu_default="TARGET_CPU_generic"
 	tm_file="dbxelf.h elfos.h v850/v850.h"
-	tm_file="${tm_file} rtems.h v850/rtems.h newlib-stdint.h"
+	tm_file="${tm_file} v850/rtems.h rtems.h newlib-stdint.h"
 	tmake_file="${tmake_file} v850/t-v850"
 	tmake_file="${tmake_file} v850/t-rtems"
 	use_collect2=no


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-09 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 18:44 [gcc r11-7588] RTEMS: Fix -Werror builds Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).