diff mbox

[6/7] remove avr-rtems support

Message ID 1466401666-8365-7-git-send-email-tbsaunde+gcc@tbsaunde.org
State New
Headers show

Commit Message

tbsaunde+gcc@tbsaunde.org June 20, 2016, 5:47 a.m. UTC
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

contrib/ChangeLog:

2016-06-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* config-list.mk: Stop testing avr-rtems.

libgcc/ChangeLog:

2016-06-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* config.host: Remove support for avr-rtems.
	* config/avr/t-rtems: Remove.

ChangeLog:

2016-06-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* configure: Regenerate.
	* configure.ac: Remove support for avr-rtems.

gcc/ChangeLog:

2016-06-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* config.gcc: Remove support for avr-rtems.
	* config/avr/gen-avr-mmcu-specs.c: Likewise.
	* config/avr/rtems.h: Remove.
	* config/avr/t-rtems: Remove.

contrib/header-tools/ChangeLog:

2016-06-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* README: Remove references to avr-rtems.
	* reduce-headers: Likewise.
---
 configure                           |  4 +---
 configure.ac                        |  2 --
 contrib/config-list.mk              |  2 +-
 contrib/header-tools/README         |  2 +-
 contrib/header-tools/reduce-headers |  1 -
 gcc/config.gcc                      | 10 +---------
 gcc/config/avr/gen-avr-mmcu-specs.c | 12 +-----------
 gcc/config/avr/rtems.h              | 27 ---------------------------
 gcc/config/avr/t-rtems              |  3 ---
 libgcc/config.host                  |  6 ------
 libgcc/config/avr/t-rtems           |  2 --
 11 files changed, 5 insertions(+), 66 deletions(-)
 delete mode 100644 gcc/config/avr/rtems.h
 delete mode 100644 gcc/config/avr/t-rtems
 delete mode 100644 libgcc/config/avr/t-rtems
diff mbox

Patch

diff --git a/configure b/configure
index ea63784..04cb999 100755
--- a/configure
+++ b/configure
@@ -3762,8 +3762,6 @@  case "${target}" in
   arm-*-riscix*)
     noconfigdirs="$noconfigdirs ld target-libgloss"
     ;;
-  avr-*-rtems*)
-    ;;
   avr-*-*)
     if test x${with_avrlibc} != xno; then
       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
@@ -6128,7 +6126,7 @@  target_elf=no
 case $target in
   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
-  alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
+  alpha*-dec-osf* | hppa[12]*-*-hpux* | \
   nvptx-*-none)
     target_elf=no
     ;;
diff --git a/configure.ac b/configure.ac
index 54558df..4031ac6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1098,8 +1098,6 @@  case "${target}" in
   arm-*-riscix*)
     noconfigdirs="$noconfigdirs ld target-libgloss"
     ;;
-  avr-*-rtems*)
-    ;;
   avr-*-*)
     if test x${with_avrlibc} != xno; then
       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index ca20c98..dfebcee 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -37,7 +37,7 @@  LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   arc-linux-uclibcOPT-with-cpu=arc700 arceb-linux-uclibcOPT-with-cpu=arc700 \
   arm-wrs-vxworks arm-netbsdelf \
   arm-linux-androideabi arm-uclinux_eabi arm-eabi arm-rtems \
-  arm-symbianelf avr-rtemsOPT-enable-obsolete avr-elf \
+  arm-symbianelf avr-elf \
   bfin-elf bfin-uclinux bfin-linux-uclibc bfin-rtems bfin-openbsd \
   c6x-elf c6x-uclinux cr16-elf cris-elf cris-linux crisv32-elf crisv32-linux \
   epiphany-elf epiphany-elfOPT-with-stack-offset=16 fido-elf \
diff --git a/contrib/header-tools/README b/contrib/header-tools/README
index 05d3b97..3b20e51 100644
--- a/contrib/header-tools/README
+++ b/contrib/header-tools/README
@@ -203,7 +203,7 @@  reduce-headers
   these targets.  They are also known to the tool.  When building targets it
   will check those targets before the rest.  
   This coverage can be achieved by building config-list.mk with :
-  LIST="aarch64-linux-gnu arm-netbsdelf avr-rtems c6x-elf epiphany-elf hppa2.0-hpux10.1 i686-mingw32crt i686-pc-msdosdjgpp mipsel-elf powerpc-eabisimaltivec rs6000-ibm-aix5.1.0 sh-superh-elf sparc64-elf spu-elf"
+  LIST="aarch64-linux-gnu arm-netbsdelf c6x-elf epiphany-elf hppa2.0-hpux10.1 i686-mingw32crt i686-pc-msdosdjgpp mipsel-elf powerpc-eabisimaltivec rs6000-ibm-aix5.1.0 sh-superh-elf sparc64-elf spu-elf"
 
   -b specifies the native bootstrapped build root directory
   -t specifies a target build root directory that config-list.mk was run from
diff --git a/contrib/header-tools/reduce-headers b/contrib/header-tools/reduce-headers
index e4f4d7b..26a7df9 100755
--- a/contrib/header-tools/reduce-headers
+++ b/contrib/header-tools/reduce-headers
@@ -23,7 +23,6 @@  no_remove = [ "system.h", "coretypes.h", "config.h" , "bconfig.h", "backend.h" ]
 target_priority = [
     "aarch64-linux-gnu",
     "arm-netbsdelf",
-    "avr-rtems",
     "c6x-elf",
     "epiphany-elf",
     "hppa2.0-hpux10.1",
diff --git a/gcc/config.gcc b/gcc/config.gcc
index c189f59..612a333 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -236,8 +236,7 @@  md_file=
 
 # Obsolete configurations.
 case ${target} in
- avr-*rtems*				\
- | mep-*				\
+ mep-*				\
  )
     if test "x$enable_obsolete" != xyes; then
       echo "*** Configuration ${target} is obsolete." >&2
@@ -1114,13 +1113,6 @@  arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
 	esac
 	tm_file="${tm_file} arm/aout.h vxworks-dummy.h arm/arm.h"
 	;;
-avr-*-rtems*)
-	tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h avr/specs.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
-	tm_defines="${tm_defines} WITH_RTEMS"
-	tmake_file="${tmake_file} avr/t-avr avr/t-multilib avr/t-rtems"
-	extra_gcc_objs="driver-avr.o avr-devices.o"
-	extra_objs="avr-devices.o avr-log.o"
-	;;
 avr-*-*)
 	tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h avr/specs.h dbxelf.h avr/avr-stdint.h"
 	if test x${with_avrlibc} != xno; then
diff --git a/gcc/config/avr/gen-avr-mmcu-specs.c b/gcc/config/avr/gen-avr-mmcu-specs.c
index de8680a..56a509f 100644
--- a/gcc/config/avr/gen-avr-mmcu-specs.c
+++ b/gcc/config/avr/gen-avr-mmcu-specs.c
@@ -27,8 +27,7 @@ 
 
 #include "avr-devices.c"
 
-// Get rid of "defaults.h".  We just need tm.h for `WITH_AVRLIBS' and
-// and `WITH_RTEMS'.  */
+// Get rid of "defaults.h".  We just need tm.h for `WITH_AVRLIBS'.
 #define GCC_DEFAULTS_H
 
 #include "tm.h"
@@ -41,11 +40,6 @@ 
 #include "avrlibc.h"
 #endif
 
-#if defined (WITH_RTEMS)
-#include "../rtems.h"
-#include "rtems.h"
-#endif
-
 
 #define SPECFILE_DOC_URL                                \
   "https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html"
@@ -67,10 +61,6 @@  static const char header[] =
   "# Generated by   : ./gcc/config/avr/gen-avr-mmcu-specs.c\n"
   "# Generated from : ./gcc/config/gcc.c\n"
   "#                  ./gcc/config/avr/specs.h\n"
-#if defined (WITH_RTEMS)
-  "#                  ./gcc/config/rtems.h\n"
-  "#                  ./gcc/config/avr/rtems.h\n"
-#endif
 #if defined (WITH_AVRLIBC)
   "#                  ./gcc/config/avr/avrlibc.h\n"
 #endif
diff --git a/gcc/config/avr/rtems.h b/gcc/config/avr/rtems.h
deleted file mode 100644
index 73cdfd0..0000000
--- a/gcc/config/avr/rtems.h
+++ /dev/null
@@ -1,27 +0,0 @@ 
-/* Definitions for rtems targeting a AVR using ELF.
-   Copyright (C) 2004-2016 Free Software Foundation, Inc.
-   Contributed by Ralf Corsepius (ralf.corsepius@rtems.org).
-
-This file is part of GCC.
-
-GCC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-GCC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING3.  If not see
-<http://www.gnu.org/licenses/>.  */
-
-/* Specify predefined symbols in preprocessor.  */
-
-#define TARGET_OS_CPP_BUILTINS()	\
-do {					\
-  builtin_define ("__rtems__");		\
-  builtin_assert ("system=rtems");	\
-} while (0)
diff --git a/gcc/config/avr/t-rtems b/gcc/config/avr/t-rtems
deleted file mode 100644
index a3ef8bd..0000000
--- a/gcc/config/avr/t-rtems
+++ /dev/null
@@ -1,3 +0,0 @@ 
-# Multilibs for avr RTEMS targets.
-
-# ATM, this is just a stub
diff --git a/libgcc/config.host b/libgcc/config.host
index 3f8d0a8..80b81d2 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -422,12 +422,6 @@  arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
 	extra_parts="$extra_parts crtfastmath.o"
 	unwind_header=config/arm/unwind-arm.h
 	;;
-avr-*-rtems*)
-	tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
-	tm_file="$tm_file avr/avr-lib.h"
-	# Don't use default.
-	extra_parts=
-	;;
 avr-*-*)
 	# Make HImode functions for AVR
 	tmake_file="${cpu_type}/t-avr t-fpbit"
diff --git a/libgcc/config/avr/t-rtems b/libgcc/config/avr/t-rtems
deleted file mode 100644
index 43b57ee..0000000
--- a/libgcc/config/avr/t-rtems
+++ /dev/null
@@ -1,2 +0,0 @@ 
-# RTEMS uses _exit from newlib
-LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS))