public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 5/7] remove m32-rtems support
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 3/7] remove knetbsd support tbsaunde+gcc
@ 2016-06-20  8:10 ` tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 1/7] remove support for the interix target tbsaunde+gcc
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

libgcc/ChangeLog:

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

	* config.host: Remove m32r-rtems support.

gcc/ChangeLog:

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

	* config.gcc: Remove m32r-rtems support.
	* config/m32r/rtems.h: Remove.

contrib/ChangeLog:

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

	* config-list.mk: Stop testing m32r-rtems.
---
 contrib/config-list.mk  |  1 -
 gcc/config.gcc          |  5 -----
 gcc/config/m32r/rtems.h | 33 ---------------------------------
 libgcc/config.host      |  4 ----
 4 files changed, 43 deletions(-)
 delete mode 100644 gcc/config/m32r/rtems.h

diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index 5ea6d6c..ca20c98 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -55,7 +55,6 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   i686-cygwinOPT-enable-threads=yes i686-mingw32crt ia64-elf \
   ia64-freebsd6 ia64-linux ia64-hpux ia64-hp-vms iq2000-elf lm32-elf \
   lm32-rtems lm32-uclinux m32c-rtems m32c-elf m32r-elf m32rle-elf \
-  m32r-rtemsOPT-enable-obsolete \
   m32r-linux m32rle-linux m68k-elf m68k-netbsdelf \
   m68k-openbsd m68k-uclinux m68k-linux m68k-rtems \
   mcore-elf mep-elfOPT-enable-obsolete microblaze-linux microblaze-elf \
diff --git a/gcc/config.gcc b/gcc/config.gcc
index cb2923e..c189f59 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -237,7 +237,6 @@ md_file=
 # Obsolete configurations.
 case ${target} in
  avr-*rtems*				\
- | m32r-*rtems*			\
  | mep-*				\
  )
     if test "x$enable_obsolete" != xyes; then
@@ -1829,10 +1828,6 @@ m32r-*-elf*)
 m32rle-*-elf*)
 	tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}"
 	;;
-m32r-*-rtems*)
-	tm_file="dbxelf.h elfos.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h"
-	tmake_file="${tmake_file} m32r/t-m32r"
- 	;;
 m32r-*-linux*)
 	tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
 	tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
diff --git a/gcc/config/m32r/rtems.h b/gcc/config/m32r/rtems.h
deleted file mode 100644
index 839b4e0..0000000
--- a/gcc/config/m32r/rtems.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Definitions for rtems targeting a M32R using ELF.
-   Copyright (C) 2009-2016 Free Software Foundation, Inc.
-   Contributed by Joel Sherrill (joel@OARcorp.com).
-
-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/>.  */
-
-/* Target OS builtins.  */
-#undef TARGET_OS_CPP_BUILTINS
-#define TARGET_OS_CPP_BUILTINS()		\
-  do						\
-    {						\
-	builtin_define ("__rtems__");		\
-	builtin_define ("__USE_INIT_FINI__");	\
-	builtin_assert ("system=rtems");	\
-    }						\
-  while (0)
-
-/* Use the default */
-#undef LINK_GCC_C_SEQUENCE_SPEC
diff --git a/libgcc/config.host b/libgcc/config.host
index 319810f..3f8d0a8 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -790,10 +790,6 @@ lm32-*-uclinux*)
 m32r-*-elf*)
 	tmake_file=t-fdpbit
  	;;
-m32r-*-rtems*)
-	tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
-	extra_parts="$extra_parts crtinit.o crtfini.o"
-	;;
 m32rle-*-elf*)
 	tmake_file=t-fdpbit
 	;;
-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 4/7] remove h8300-rtems support
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
                   ` (4 preceding siblings ...)
  2016-06-20  8:10 ` [PATCH 6/7] remove avr-rtems support tbsaunde+gcc
@ 2016-06-20  8:10 ` tbsaunde+gcc
       [not found] ` <5767A86D.9080108@foss.arm.com>
  2016-06-20 19:38 ` Jeff Law
  7 siblings, 0 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

contrib/ChangeLog:

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

	* config-list.mk: Remove h8300-rtems support.

libgcc/ChangeLog:

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

	* config.host: Remove h8300-rtems support.

gcc/ChangeLog:

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

	* config.gcc: Remove h8300-rtems support.
	* config/h8300/rtems.h: Remove.
	* config/h8300/t-rtems: Remove.
---
 contrib/config-list.mk   |  3 +--
 gcc/config.gcc           |  5 -----
 gcc/config/h8300/rtems.h | 29 -----------------------------
 gcc/config/h8300/t-rtems |  7 -------
 libgcc/config.host       |  5 -----
 5 files changed, 1 insertion(+), 48 deletions(-)
 delete mode 100644 gcc/config/h8300/rtems.h
 delete mode 100644 gcc/config/h8300/t-rtems

diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index 2fe90bb..5ea6d6c 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -41,8 +41,7 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   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 \
-  fr30-elf frv-elf frv-linux ft32-elf h8300-elf \
-  h8300-rtemsOPT-enable-obsolete hppa-linux-gnu \
+  fr30-elf frv-elf frv-linux ft32-elf h8300-elf hppa-linux-gnu \
   hppa-linux-gnuOPT-enable-sjlj-exceptions=yes hppa64-linux-gnu \
   hppa2.0-hpux10.1 hppa64-hpux11.3 \
   hppa64-hpux11.0OPT-enable-sjlj-exceptions=yes hppa2.0-hpux11.9 \
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 669cb9f..cb2923e 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -237,7 +237,6 @@ md_file=
 # Obsolete configurations.
 case ${target} in
  avr-*rtems*				\
- | h8300-*rtems*			\
  | m32r-*rtems*			\
  | mep-*				\
  )
@@ -1239,10 +1238,6 @@ moxie-*-moxiebox*)
 	tm_file="${tm_file} dbxelf.h elfos.h moxie/moxiebox.h newlib-stdint.h"
 	tmake_file="${tmake_file} moxie/t-moxiebox"
 	;;
-h8300-*-rtems*)
-	tmake_file="${tmake_file} h8300/t-h8300 h8300/t-rtems"
-	tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h"
-	;;
 h8300-*-elf*)
 	tmake_file="h8300/t-h8300"
 	tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h"
diff --git a/gcc/config/h8300/rtems.h b/gcc/config/h8300/rtems.h
deleted file mode 100644
index eb16f1d..0000000
--- a/gcc/config/h8300/rtems.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Definitions for rtems targeting a H8
-   Copyright (C) 1996-2016 Free Software Foundation, Inc.
-   Contributed by Joel Sherrill (joel@OARcorp.com).
-
-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/>.  */
-
-/* Target OS preprocessor built-ins.  */
-#define TARGET_OS_CPP_BUILTINS()		\
-  do						\
-    {						\
-      builtin_define_std ("h8300");		\
-      builtin_define ("__rtems__");		\
-      builtin_assert ("system=rtems");		\
-    }						\
-  while (0)
diff --git a/gcc/config/h8300/t-rtems b/gcc/config/h8300/t-rtems
deleted file mode 100644
index 0d76437..0000000
--- a/gcc/config/h8300/t-rtems
+++ /dev/null
@@ -1,7 +0,0 @@
-# Custom multilibs for RTEMS
-
-# -mn is not applicable to RTEMS (-mn implies 16bit void*)
-
-MULTILIB_OPTIONS = mh/ms/msx mint32
-MULTILIB_DIRNAMES = h8300h h8300s h8sx int32
-MULTILIB_EXCEPTIONS = mint32
diff --git a/libgcc/config.host b/libgcc/config.host
index 12b69cf..319810f 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -495,11 +495,6 @@ ft32-*-elf)
 	tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
 	extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
 	;;
-h8300-*-rtems*)
-	tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
-	tm_file="$tm_file h8300/h8300-lib.h"
-	extra_parts="$extra_parts crti.o crtn.o"
-	;;
 h8300-*-elf*)
 	tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
 	tm_file="$tm_file h8300/h8300-lib.h"
-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/7] remove support for the interix target
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 3/7] remove knetbsd support tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 5/7] remove m32-rtems support tbsaunde+gcc
@ 2016-06-20  8:10 ` tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 2/7] remove support for targeting openbsd 2 or 3 tbsaunde+gcc
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

contrib/ChangeLog:

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

	* config-list.mk: Remove interix target.

libgcc/ChangeLog:

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

	* config.host: Remove interix support.
	* config/i386/t-interix: Remove.

config/ChangeLog:

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

	* elf.m4: Remove interix support.
	* picflag.m4: Likewise.

fixincludes/ChangeLog:

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

	* mkfixinc.sh: Remove interix support.

gcc/ChangeLog:

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

	* config.gcc: Remove interix support.
	* config/i386/i386-interix.h: Remove.
	* config/i386/interix.opt: Remove.
	* config/i386/t-interix: Remove.
	* configure: Regenerate.
	* configure.ac: Remove interix support.
	* doc/install.texi: Remove interix documentation.

gcc/testsuite/ChangeLog:

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

	* gcc.dg/attr-ms_struct-1.c: Stop testing interix.
	* gcc.dg/attr-ms_struct-2.c: Likewise.
	* gcc.dg/attr-ms_struct-packed1.c: Likewise.
	* gcc.dg/bf-ms-attrib.c: Likewise.
	* gcc.dg/bf-ms-layout-2.c: Likewise.
	* gcc.dg/bf-ms-layout-3.c: Likewise.
	* gcc.dg/bf-ms-layout.c: Likewise.
	* gcc.dg/bf-no-ms-layout.c: Likewise.
	* gcc.target/i386/bitfield1.c: Likewise.
	* gcc.target/i386/bitfield2.c: Likewise.
	* gcc.target/i386/bitfield3.c: Likewise.
---
 config/elf.m4                                 |   2 +-
 config/picflag.m4                             |   4 -
 contrib/config-list.mk                        |   3 +-
 fixincludes/mkfixinc.sh                       |   1 -
 gcc/config.gcc                                |  16 +-
 gcc/config/i386/i386-interix.h                | 345 --------------------------
 gcc/config/i386/interix.opt                   |  34 ---
 gcc/config/i386/t-interix                     |  30 ---
 gcc/configure                                 |   2 +-
 gcc/configure.ac                              |   2 +-
 gcc/doc/install.texi                          |  14 --
 gcc/testsuite/gcc.dg/attr-ms_struct-1.c       |   2 +-
 gcc/testsuite/gcc.dg/attr-ms_struct-2.c       |   2 +-
 gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c |   2 +-
 gcc/testsuite/gcc.dg/bf-ms-attrib.c           |   2 +-
 gcc/testsuite/gcc.dg/bf-ms-layout-2.c         |   2 +-
 gcc/testsuite/gcc.dg/bf-ms-layout-3.c         |   2 +-
 gcc/testsuite/gcc.dg/bf-ms-layout.c           |   2 +-
 gcc/testsuite/gcc.dg/bf-no-ms-layout.c        |   2 +-
 gcc/testsuite/gcc.target/i386/bitfield1.c     |   2 +-
 gcc/testsuite/gcc.target/i386/bitfield2.c     |   2 +-
 gcc/testsuite/gcc.target/i386/bitfield3.c     |   1 -
 libgcc/config.host                            |   3 -
 libgcc/config/i386/t-interix                  |   3 -
 24 files changed, 15 insertions(+), 465 deletions(-)
 delete mode 100644 gcc/config/i386/i386-interix.h
 delete mode 100644 gcc/config/i386/interix.opt
 delete mode 100644 gcc/config/i386/t-interix
 delete mode 100644 libgcc/config/i386/t-interix

diff --git a/config/elf.m4 b/config/elf.m4
index 1772a44..5f5cd88 100644
--- a/config/elf.m4
+++ b/config/elf.m4
@@ -17,7 +17,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/config/picflag.m4 b/config/picflag.m4
index e0fa343..614421d 100644
--- a/config/picflag.m4
+++ b/config/picflag.m4
@@ -27,10 +27,6 @@ case "${$2}" in
 	;;
     i[[34567]]86-*-mingw* | x86_64-*-mingw*)
 	;;
-    i[[34567]]86-*-interix[[3-9]]*)
-	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
-	# Instead, we relocate shared libraries at runtime.
-	;;
     i[[34567]]86-*-nto-qnx*)
 	# QNX uses GNU C++, but need to define -shared option too, otherwise
 	# it will coredump.
diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index be41d3c..832403a 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -99,8 +99,7 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   x86_64-knetbsd-gnuOPT-enable-obsolete x86_64-w64-mingw32 \
   x86_64-mingw32OPT-enable-sjlj-exceptions=yes x86_64-rtems \
   xstormy16-elf xtensa-elf \
-  xtensa-linux \
-  i686-interix3OPT-enable-obsolete
+  xtensa-linux
 
 LOGFILES = $(patsubst %,log/%-make.out,$(LIST))
 all: $(LOGFILES)
diff --git a/fixincludes/mkfixinc.sh b/fixincludes/mkfixinc.sh
index 0d96c8c..0f96486 100755
--- a/fixincludes/mkfixinc.sh
+++ b/fixincludes/mkfixinc.sh
@@ -14,7 +14,6 @@ case $machine in
     i?86-*-cygwin* | \
     i?86-*-mingw32* | \
     x86_64-*-mingw32* | \
-    i?86-*-interix* | \
     powerpc-*-eabisim* | \
     powerpc-*-eabi*    | \
     powerpc-*-rtems*   | \
diff --git a/gcc/config.gcc b/gcc/config.gcc
index e47535b..34da23e 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -236,8 +236,7 @@ md_file=
 
 # Obsolete configurations.
 case ${target} in
- *-interix*				\
- | *-knetbsd-*				\
+ *-knetbsd-*				\
  | *-openbsd2*				\
  | *-openbsd3*				\
  | avr-*rtems*				\
@@ -1778,19 +1777,6 @@ i[34567]86-*-mingw* | x86_64-*-mingw*)
 			;;
 	esac
 	;;
-i[34567]86-*-interix[3-9]*)
-	tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h"
-	tmake_file="${tmake_file} i386/t-interix"
-	extra_options="${extra_options} rpath.opt i386/interix.opt"
-	extra_objs="winnt.o winnt-stubs.o"
-	target_gtfiles="\$(srcdir)/config/i386/winnt.c"
-	if test x$enable_threads = xyes ; then
-		thread_file='posix'
-	fi
-	if test x$stabs = xyes ; then
-		tm_file="${tm_file} dbxcoff.h"
-	fi
-	;;
 ia64*-*-elf*)
 	tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h"
 	tmake_file="ia64/t-ia64"
diff --git a/gcc/config/i386/i386-interix.h b/gcc/config/i386/i386-interix.h
deleted file mode 100644
index ad18fc7..0000000
--- a/gcc/config/i386/i386-interix.h
+++ /dev/null
@@ -1,345 +0,0 @@
-/* Target definitions for GCC for Intel 80386 running Interix
-   Parts Copyright (C) 1991-2016 Free Software Foundation, Inc.
-
-   Parts:
-     by Douglas B. Rupp (drupp@cs.washington.edu).
-     by Ron Guilmette (rfg@netcom.com).
-     by Donn Terry (donn@softway.com).
-     by Mumit Khan (khan@xraylith.wisc.edu).
-
-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/>.  */
-
-/* Note: Interix doesn't support user-written DLLs (use conventional
-   shared libs (.so) instead).  Thus a lot of the stuff that might apply
-   about dllimport/dllexport and the like does not apply here. */
-
-#include <stdio.h>
-
-/* Names to predefine in the preprocessor for this target machine.  */
-
-#define DBX_DEBUGGING_INFO 1
-#define SDB_DEBUGGING_INFO 1
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-
-/* Our strategy for finding global constructors is a bit different, although
-   not a lot.  */
-#define DO_GLOBAL_CTORS_BODY						\
-do {									\
-  int i;								\
-  unsigned long nptrs;							\
-  func_ptr *p;								\
-  asm(									\
-       "     .section .ctor_head, \"rw\"\n"				\
-       "1:\n"								\
-       "     .text \n"							\
-       ASM_LOAD_ADDR(1b,%0)						\
-       : "=r" (p) : : "cc");						\
-  for (nptrs = 0; p[nptrs] != 0; nptrs++);				\
-  for (i = nptrs-1; i >= 0; i--)					\
-    p[i] ();								\
-} while (0)
-
-#define DO_GLOBAL_DTORS_BODY						\
-do {									\
-  func_ptr *p;								\
-  asm(									\
-       "     .section .dtor_head, \"rw\"\n"				\
-       "1:\n"								\
-       "     .text \n"							\
-       ASM_LOAD_ADDR(1b,%0)						\
-       : "=r" (p) : : "cc");						\
-  while (*p)								\
-    {									\
-      p++;								\
-      (*(p-1)) ();							\
-    }									\
-} while (0)
-
-/* We don't use the "usual" push-an-address solution. */
-#undef TARGET_ASM_CONSTRUCTOR
-
-#undef  SUBTARGET_SWITCHES
-#define SUBTARGET_SWITCHES \
-{ "ms-bitfields", MASK_MS_BITFIELD_LAYOUT, N_("Use native (MS) bitfield layout") }, \
-{ "no-ms-bitfields", -MASK_MS_BITFIELD_LAYOUT, N_("Use gcc default bitfield layout") },
-
-#undef LIB_SPEC
-#define LIB_SPEC "\
- %{!shared:%{!dynamic:-lc -lpsxdll \
- }} \
- %{!G:%{!dynamic:-lc -lpsxdll \
- }} \
- %{dynamic:-lc -lpsxdll \
- } \
- %{v}"
-
-#undef LINK_SPEC
-#define LINK_SPEC "%{!shared:-stack 0x4000000,0x10000} \
-		   %{g} \
-		   %{dynamic:-Bdynamic} \
-		   %{static:-Bstatic} \
-		   %{shared:--shared -Bdynamic} \
-		   %{G:--shared -Bdynamic} \
-		   %{symbolic:--shared -Bsymbolic -Bdynamic} \
-   		   %{rpath*:--rpath %*} \
-		   "
-
-#undef STARTFILE_SPEC
-#define STARTFILE_SPEC  \
-  "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}} %{shared:crti%O%s}"
-
-#define TARGET_DECLSPEC 1
-
-/* cpp handles __STDC__ */
-#define TARGET_OS_CPP_BUILTINS()					\
-  do									\
-    {									\
-	builtin_define ("__INTERIX");					\
-	builtin_define ("_M_IX86=300");					\
-	builtin_define ("_X86_=1");					\
-	builtin_define ("__stdcall=__attribute__((__stdcall__))");	\
-	builtin_define ("__cdecl=__attribute__((__cdecl__))");		\
-	builtin_define ("__declspec(x)=__attribute__((x))");		\
-	builtin_assert ("system=unix");					\
-	builtin_assert ("system=interix");				\
-	if (preprocessing_asm_p ())					\
-	  builtin_define_std ("LANGUAGE_ASSEMBLY");			\
-	else								\
-	  {								\
-	     builtin_define_std ("LANGUAGE_C");				\
-	     if (c_dialect_cxx ())					\
-	       builtin_define_std ("LANGUAGE_C_PLUS_PLUS");		\
-	     if (c_dialect_objc ())					\
-	       builtin_define_std ("LANGUAGE_OBJECTIVE_C");		\
-	  } 								\
-    }									\
-  while (0)
-
-#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
-
-#define SIZE_TYPE "unsigned int"
-#define PTRDIFF_TYPE "int"
-#define WCHAR_TYPE "short unsigned int"
-#define WCHAR_TYPE_SIZE 16
-
-/* Turn off long double being 96 bits.  */
-#undef LONG_DOUBLE_TYPE_SIZE
-#define LONG_DOUBLE_TYPE_SIZE 64
-
-#define IX86_NO_LIBGCC_TFMODE
-
-#undef TARGET_LIBC_HAS_FUNCTION
-#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
-
-/* The following are needed for us to be able to use winnt.c, but are not
-   otherwise meaningful to Interix.  (The functions that use these are
-   never called because we don't do DLLs.) */
-#define TARGET_NOP_FUN_DLLIMPORT 1
-#define drectve_section()  /* nothing */
-
-
-#define READONLY_DATA_SECTION_ASM_OP	"\t.section\t.rdata,\"r\""
-
-/* Define this macro if references to a symbol must be treated
-   differently depending on something about the variale or
-   function named by the symbol (such as what section it is in).  */
-
-#undef TARGET_ENCODE_SECTION_INFO
-#define TARGET_ENCODE_SECTION_INFO i386_pe_encode_section_info
-#undef  TARGET_STRIP_NAME_ENCODING
-#define TARGET_STRIP_NAME_ENCODING  i386_pe_strip_name_encoding_full
-
-/* Emit code to check the stack when allocating more that 4000
-   bytes in one go.  */
-
-#define CHECK_STACK_LIMIT 4000
-
-/* By default, target has a 80387, uses IEEE compatible arithmetic,
-   and returns float values in the 387 and needs stack probes
-   We also align doubles to 64-bits forMSVC default compatibility
-   Ditto for bitfields. */
-#undef TARGET_SUBTARGET_DEFAULT
-#define TARGET_SUBTARGET_DEFAULT \
-   (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_STACK_PROBE | \
-    MASK_ALIGN_DOUBLE | MASK_MS_BITFIELD_LAYOUT)
-
-/* The MS compilers take alignment as a number of bytes, so we do as well */
-#undef ASM_OUTPUT_ALIGN
-#define ASM_OUTPUT_ALIGN(FILE,LOG) \
-  if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG))
-
-
-/* Define this macro if in some cases global symbols from one translation
-   unit may not be bound to undefined symbols in another translation unit
-   without user intervention.  For instance, under Microsoft Windows
-   symbols must be explicitly imported from shared libraries (DLLs).  */
-/*
- * Old gcc(3.3) did not have 1 here
- */
-#define MULTIPLE_SYMBOL_SPACES	1
-
-extern void i386_pe_unique_section (tree, int);
-#define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section
-
-/* Switch into a generic section.  */
-#define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
-
-/* Select attributes for named sections.  */
-#define TARGET_SECTION_TYPE_FLAGS  i386_pe_section_type_flags
-
-/* Write the extra assembler code needed to declare a function
-   properly.  If we are generating SDB debugging information, this
-   will happen automatically, so we only need to handle other cases.  */
-#undef ASM_DECLARE_FUNCTION_NAME
-#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)			\
-  do									\
-    {									\
-      if (write_symbols != SDB_DEBUG)					\
-       i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL));	\
-      ASM_OUTPUT_LABEL (FILE, NAME);       				\
-    }									\
-  while (0)
-
-/* Add an external function to the list of functions to be declared at
-   the end of the file.  */
-#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)				\
-  do									\
-    {									\
-      if (TREE_CODE (DECL) == FUNCTION_DECL)				\
-        i386_pe_record_external_function (DECL, NAME);			\
-    }									\
-  while (0)
-
-/* Declare the type properly for any external libcall.  */
-#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
-  i386_pe_declare_function_type (FILE, XSTR (FUN, 0), 1)
-
-/* This says out to put a global symbol in the BSS section.  */
-#undef ASM_OUTPUT_ALIGNED_BSS
-#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
-  asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
-
-/* Don't assume anything about the header files.  */
-#define NO_IMPLICIT_EXTERN_C
-
-/* External function declarations.  */
-extern void i386_pe_record_external_function (tree, const char *);
-extern void i386_pe_declare_function_type (FILE *, const char *, int);
-extern void i386_pe_record_exported_symbol (const char *, int);
-extern void i386_pe_asm_file_end (FILE *);
-
-/* For Win32 ABI compatibility */
-#undef DEFAULT_PCC_STRUCT_RETURN
-#define DEFAULT_PCC_STRUCT_RETURN 0
-
-/* A bitfield declared as `int' forces `int' alignment for the struct.  */
-#undef PCC_BITFIELD_TYPE_MATTERS
-#define PCC_BITFIELD_TYPE_MATTERS 1
-
-/* Enable alias attribute support.  */
-#ifndef SET_ASM_OP
-#define SET_ASM_OP "\t.set\t"
-#endif
-
-/* Note that there appears to be two different ways to support const
-   sections at the moment.  You can either #define the symbol
-   READONLY_DATA_SECTION (giving it some code which switches to the
-   readonly data section) or else you can #define the symbols
-   EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and
-   SELECT_RTX_SECTION.  We do both here just to be on the safe side.  */
-
-#define USE_CONST_SECTION 1
-
-/* The linker will take care of this, and having them causes problems with
-   ld -r (specifically -rU).  */
-#define CTOR_LISTS_DEFINED_EXTERNALLY 1
-
-/* Output a definition (implements alias) */
-#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2)				\
-do									\
-{									\
-    fputs (SET_ASM_OP, (FILE));						\
-    assemble_name (FILE, LABEL1);					\
-    fputc (',', (FILE));						\
-    assemble_name (FILE, LABEL2);					\
-    fputc ('\n', (FILE));						\
-    }									\
-while (0)
-
-#define HOST_PTR_AS_INT unsigned long
-
-/* The following two flags are usually "off" for i386, because some non-gnu
-   tools (for the i386) don't handle them.  However, we don't have that
-   problem, so....  */
-
-/* Forward references to tags are allowed.  */
-#define SDB_ALLOW_FORWARD_REFERENCES
-/* Unknown tags are also allowed.  */
-#define SDB_ALLOW_UNKNOWN_REFERENCES
-/* DWARF2 Unwinding doesn't work with exception handling yet.  */
-#define DWARF2_UNWIND_INFO 0
-/* MSVC returns structs of up to 8 bytes via registers. */
-
-#undef SUBTARGET_RETURN_IN_MEMORY
-#define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
-  (TYPE_MODE (TYPE) == BLKmode || \
-     (AGGREGATE_TYPE_P (TYPE) && int_size_in_bytes(TYPE) > 8 ))
-
-#define ASM_LOAD_ADDR(loc, reg)   "     leal " #loc "," #reg "\n"
-
-/* The integer half of this list needs to be constant.  However, there's
-   a lot of disagreement about what the floating point adjustments should
-   be.  We pick one that works with gdb.  (The underlying problem is
-   what to do about the segment registers.  Since we have access to them
-   from /proc, we'll allow them to be accessed in gdb, even tho the
-   gcc compiler can't generate them.  (There's some evidence that
-   MSVC does, but possibly only for certain special "canned" sequences.)  */
-
-#undef DBX_REGISTER_NUMBER
-#define DBX_REGISTER_NUMBER(n) \
-(TARGET_64BIT ? dbx64_register_map[n] \
- : (n) == 0 ? (int) 0 \
- : (n) == 1 ? (int) 2 \
- : (n) == 2 ? (int) 1 \
- : (n) == 3 ? (int) 3 \
- : (n) == 4 ? (int) 6 \
- : (n) == 5 ? (int) 7 \
- : (n) == 6 ? (int) 5 \
- : (n) == 7 ? (int) 4 \
- : stack_regno_p (n) ? (int) (n)+8 \
- : (int) (-1))
-
-#define EH_FRAME_THROUGH_COLLECT2
-#define EH_TABLES_CAN_BE_READ_ONLY 0
-
-/* the following are OSF linker (not gld) specific... we don't want them */
-#undef HAS_INIT_SECTION
-#undef LD_INIT_SWITCH
-#undef LD_FINI_SWITCH
-
-/* The following are needed for us to be able to use winnt.c, but are not
-   otherwise meaningful to Interix.  (The functions that use these are
-   never called because we don't do DLLs.) */
-#define TARGET_NOP_FUN_DLLIMPORT 1
-#define I386_PE_STRIP_ENCODING(SYM_NAME) \
-  ((SYM_NAME) + ((SYM_NAME)[0] == '@' \
-                 ? ((SYM_NAME)[3] == '*' ? 4 : 3) : 0) \
-             + ((SYM_NAME)[0] == '*' ? 1 : 0))
-
-#define drectve_section()  /* nothing */
-
diff --git a/gcc/config/i386/interix.opt b/gcc/config/i386/interix.opt
deleted file mode 100644
index bd65432..0000000
--- a/gcc/config/i386/interix.opt
+++ /dev/null
@@ -1,34 +0,0 @@
-; Interix-specific options.
-
-; Copyright (C) 2005-2016 Free Software Foundation, Inc.
-;
-; 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/>.
-
-dynamic
-Driver
-
-G
-Driver
-
-posix
-Driver
-
-mpe-aligned-commons
-Target Var(use_pe_aligned_common) Init(HAVE_GAS_ALIGNED_COMM)
-Use the GNU extension to the PE format for aligned common data.
-
-; This comment is to ensure we retain the blank line above.
diff --git a/gcc/config/i386/t-interix b/gcc/config/i386/t-interix
deleted file mode 100644
index 39edbe5..0000000
--- a/gcc/config/i386/t-interix
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (C) 2011-2016 Free Software Foundation, Inc.
-#
-# 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/>.
-
-winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-  $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
-  $(TM_P_H) $(HASH_TABLE_H) $(GGC_H)
-	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-		$(srcdir)/config/i386/winnt.c
-
-winnt-stubs.o: $(srcdir)/config/i386/winnt-stubs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-  $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
-  $(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
-	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-	$(srcdir)/config/i386/winnt-stubs.c
-
diff --git a/gcc/configure b/gcc/configure
index bce9ea0..5648eca 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -25226,7 +25226,7 @@ _ACEOF
 
     esac
     case $target_os in
-      cygwin* | pe | mingw32* | interix*)
+      cygwin* | pe | mingw32*)
 	# Recent binutils allows the three-operand form of ".comm" on PE.  This
 	# definition is used unconditionally to initialise the default state of
 	# the target option variable that governs usage of the feature.
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 6607e76..af40895 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3977,7 +3977,7 @@ changequote([,])dnl
 	   Cygwin DLL exports wrappers to support libstdc++ function replacement.])
     esac
     case $target_os in
-      cygwin* | pe | mingw32* | interix*)
+      cygwin* | pe | mingw32*)
 	# Recent binutils allows the three-operand form of ".comm" on PE.  This
 	# definition is used unconditionally to initialise the default state of
 	# the target option variable that governs usage of the feature.
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index e4c7535..a74b3d6 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -3418,8 +3418,6 @@ information have to.
 @item
 @uref{#x-x-cygwin,,*-*-cygwin}
 @item
-@uref{#x-x-interix,,*-*-interix}
-@item
 @uref{#x-x-mingw32,,*-*-mingw32}
 @item
 @uref{#os2,,OS/2}
@@ -4841,8 +4839,6 @@ and which C libraries are used.
 @itemize
 @item Cygwin @uref{#x-x-cygwin,,*-*-cygwin}: Cygwin provides a user-space
 Linux API emulation layer in the Win32 subsystem.
-@item Interix @uref{#x-x-interix,,*-*-interix}: The Interix subsystem
-provides native support for POSIX.
 @item MinGW @uref{#x-x-mingw32,,*-*-mingw32}: MinGW is a native GCC port for
 the Win32 subsystem that provides a subset of POSIX.
 @item MKS i386-pc-mks: NuTCracker from MKS.  See
@@ -4893,16 +4889,6 @@ or version 2.20 or above if building your own.
 @html
 <hr />
 @end html
-@anchor{x-x-interix}
-@heading *-*-interix
-The Interix target is used by OpenNT, Interix, Services For UNIX (SFU),
-and Subsystem for UNIX-based Applications (SUA).  Applications compiled
-with this target run in the Interix subsystem, which is separate from
-the Win32 subsystem.  This target was last known to work in GCC 3.3.
-
-@html
-<hr />
-@end html
 @anchor{x-x-mingw32}
 @heading *-*-mingw32
 GCC will build with and support only MinGW runtime 3.12 and later.
diff --git a/gcc/testsuite/gcc.dg/attr-ms_struct-1.c b/gcc/testsuite/gcc.dg/attr-ms_struct-1.c
index 4cbff01..0b1d040 100644
--- a/gcc/testsuite/gcc.dg/attr-ms_struct-1.c
+++ b/gcc/testsuite/gcc.dg/attr-ms_struct-1.c
@@ -1,5 +1,5 @@
 /* Test for MS structure sizes.  */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
 /* { dg-require-effective-target ilp32 } */
 /* { dg-options "-std=gnu99" } */
 
diff --git a/gcc/testsuite/gcc.dg/attr-ms_struct-2.c b/gcc/testsuite/gcc.dg/attr-ms_struct-2.c
index 5880452..f2534b5 100644
--- a/gcc/testsuite/gcc.dg/attr-ms_struct-2.c
+++ b/gcc/testsuite/gcc.dg/attr-ms_struct-2.c
@@ -1,5 +1,5 @@
 /* Test for MS structure sizes.  */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
 /* { dg-require-effective-target ilp32 } */
 /* { dg-options "-std=gnu99" } */
 
diff --git a/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c b/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c
index d885c6f..25388d2 100644
--- a/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c
+++ b/gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c
@@ -1,5 +1,5 @@
 /* Test for MS structure with packed attribute.  */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } }
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } }
 /* { dg-options "-std=gnu99" } */
 
 extern void abort ();
diff --git a/gcc/testsuite/gcc.dg/bf-ms-attrib.c b/gcc/testsuite/gcc.dg/bf-ms-attrib.c
index d62da2a..2da4f03 100644
--- a/gcc/testsuite/gcc.dg/bf-ms-attrib.c
+++ b/gcc/testsuite/gcc.dg/bf-ms-attrib.c
@@ -3,7 +3,7 @@
    posted to GCC-patches
    http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */ 
 
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* } } */
 
 /* We don't want the default "pedantic-errors" in this case, since we're
    testing nonstandard stuff to begin with. */
diff --git a/gcc/testsuite/gcc.dg/bf-ms-layout-2.c b/gcc/testsuite/gcc.dg/bf-ms-layout-2.c
index 408ddbe..53a55e6 100644
--- a/gcc/testsuite/gcc.dg/bf-ms-layout-2.c
+++ b/gcc/testsuite/gcc.dg/bf-ms-layout-2.c
@@ -5,7 +5,7 @@
    posted to GCC-patches
    http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
 
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
 /* { dg-options "-D_TEST_MS_LAYOUT" } */
 /* This test uses the attribute instead of the command line option.  */
 
diff --git a/gcc/testsuite/gcc.dg/bf-ms-layout-3.c b/gcc/testsuite/gcc.dg/bf-ms-layout-3.c
index a4e9ab3..668a036 100644
--- a/gcc/testsuite/gcc.dg/bf-ms-layout-3.c
+++ b/gcc/testsuite/gcc.dg/bf-ms-layout-3.c
@@ -1,5 +1,5 @@
 /* Test for MS bitfield layout */
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-* x86_64-*-* } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-* x86_64-*-* } } */
 
 extern void abort();
 
diff --git a/gcc/testsuite/gcc.dg/bf-ms-layout.c b/gcc/testsuite/gcc.dg/bf-ms-layout.c
index 109a01b..54909d8 100644
--- a/gcc/testsuite/gcc.dg/bf-ms-layout.c
+++ b/gcc/testsuite/gcc.dg/bf-ms-layout.c
@@ -5,7 +5,7 @@
    posted to GCC-patches
    http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
 
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */
 /* { dg-options "-mms-bitfields -D_TEST_MS_LAYOUT" } */
 
 #include <stddef.h>
diff --git a/gcc/testsuite/gcc.dg/bf-no-ms-layout.c b/gcc/testsuite/gcc.dg/bf-no-ms-layout.c
index 7e55321..80f7f98 100644
--- a/gcc/testsuite/gcc.dg/bf-no-ms-layout.c
+++ b/gcc/testsuite/gcc.dg/bf-no-ms-layout.c
@@ -5,7 +5,7 @@
    posted to GCC-patches
    http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00577.html */
 
-/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin } } */
+/* { dg-do run { target *-*-mingw* *-*-cygwin* i?86-*-darwin } } */
 /* { dg-options "-mno-ms-bitfields" } */
 
 #include <stddef.h>
diff --git a/gcc/testsuite/gcc.target/i386/bitfield1.c b/gcc/testsuite/gcc.target/i386/bitfield1.c
index 00b7bfd..e4e06cb 100644
--- a/gcc/testsuite/gcc.target/i386/bitfield1.c
+++ b/gcc/testsuite/gcc.target/i386/bitfield1.c
@@ -2,7 +2,7 @@
 // { dg-do run }
 // { dg-require-effective-target ia32 }
 // { dg-options "-O2" }
-// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw*} }
+// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-mingw*} }
 
 extern void abort (void);
 extern void exit (int);
diff --git a/gcc/testsuite/gcc.target/i386/bitfield2.c b/gcc/testsuite/gcc.target/i386/bitfield2.c
index e400598..db9d284 100644
--- a/gcc/testsuite/gcc.target/i386/bitfield2.c
+++ b/gcc/testsuite/gcc.target/i386/bitfield2.c
@@ -2,7 +2,7 @@
 // { dg-do run }
 // { dg-require-effective-target ia32 }
 // { dg-options "-O2" }
-// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-interix* i?86-*-cygwin* i?86-*-mingw* } }
+// { dg-options "-mno-align-double -mno-ms-bitfields" { target i?86-*-cygwin* i?86-*-mingw* } }
 
 extern void abort (void);
 extern void exit (int);
diff --git a/gcc/testsuite/gcc.target/i386/bitfield3.c b/gcc/testsuite/gcc.target/i386/bitfield3.c
index 1a16159..3bee7cd 100644
--- a/gcc/testsuite/gcc.target/i386/bitfield3.c
+++ b/gcc/testsuite/gcc.target/i386/bitfield3.c
@@ -1,7 +1,6 @@
 // Test for bitfield alignment in structs on IA-32
 // { dg-do run }
 // { dg-options "-O2" }
-// { dg-additional-options "-mno-align-double -mno-ms-bitfields" { target *-*-interix* } }
 // { dg-additional-options "-mno-ms-bitfields" { target *-*-mingw* } }
 
 extern void abort (void);
diff --git a/libgcc/config.host b/libgcc/config.host
index 7899216..2f55fbd 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -752,9 +752,6 @@ x86_64-*-mingw*)
 		extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
 	fi
 	;;
-i[34567]86-*-interix[3-9]*)
-	tmake_file="$tmake_file i386/t-interix i386/t-chkstk"
-	;;
 ia64*-*-elf*)
 	extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
 	tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm"
diff --git a/libgcc/config/i386/t-interix b/libgcc/config/i386/t-interix
deleted file mode 100644
index 8889e7c..0000000
--- a/libgcc/config/i386/t-interix
+++ /dev/null
@@ -1,3 +0,0 @@
-# We need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
-# built without debugging information
-LIBGCC2_DEBUG_CFLAGS =
-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 0/7] remove targets obsoleted in gcc 6
@ 2016-06-20  8:10 tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 3/7] remove knetbsd support tbsaunde+gcc
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

Hi,

later than I hoped, but here's the series to remove the targets obsoleted
during gcc 6.

I built and regtested the series as one patch on x86_64-linux-gnu without
regressions, ok?

Trev


Trevor Saunders (7):
  remove support for the interix target
  remove support for targeting openbsd 2 or 3
  remove knetbsd support
  remove h8300-rtems support
  remove m32-rtems support
  remove avr-rtems support
  remove mep-* support

 config/elf.m4                                      |     2 +-
 config/picflag.m4                                  |     4 -
 configure                                          |     4 +-
 configure.ac                                       |     2 -
 contrib/config-list.mk                             |    20 +-
 contrib/header-tools/README                        |     2 +-
 contrib/header-tools/reduce-headers                |     1 -
 fixincludes/mkfixinc.sh                            |     1 -
 gcc/common/config/mep/mep-common.c                 |    89 -
 gcc/config.gcc                                     |    74 +-
 gcc/config/avr/gen-avr-mmcu-specs.c                |    12 +-
 gcc/config/avr/rtems.h                             |    27 -
 gcc/config/avr/t-rtems                             |     3 -
 gcc/config/h8300/rtems.h                           |    29 -
 gcc/config/h8300/t-rtems                           |     7 -
 gcc/config/i386/i386-interix.h                     |   345 -
 gcc/config/i386/interix.opt                        |    34 -
 gcc/config/i386/knetbsd-gnu.h                      |    21 -
 gcc/config/i386/knetbsd-gnu64.h                    |    26 -
 gcc/config/i386/t-interix                          |    30 -
 gcc/config/knetbsd-gnu.h                           |    35 -
 gcc/config/m32r/rtems.h                            |    33 -
 gcc/config/mep/constraints.md                      |   162 -
 gcc/config/mep/default.h                           |    10 -
 gcc/config/mep/intrinsics.h                        |   620 -
 gcc/config/mep/intrinsics.md                       | 21568 -------------------
 gcc/config/mep/ivc2-template.h                     |     9 -
 gcc/config/mep/mep-c5.cpu                          |   277 -
 gcc/config/mep/mep-core.cpu                        |  3080 ---
 gcc/config/mep/mep-default.cpu                     |    25 -
 gcc/config/mep/mep-ext-cop.cpu                     |    23 -
 gcc/config/mep/mep-intrin.h                        |  8933 --------
 gcc/config/mep/mep-ivc2.cpu                        |  9775 ---------
 gcc/config/mep/mep-pragma.c                        |   398 -
 gcc/config/mep/mep-protos.h                        |   128 -
 gcc/config/mep/mep.c                               |  7263 -------
 gcc/config/mep/mep.cpu                             |    21 -
 gcc/config/mep/mep.h                               |   790 -
 gcc/config/mep/mep.md                              |  2254 --
 gcc/config/mep/mep.opt                             |   164 -
 gcc/config/mep/predicates.md                       |   184 -
 gcc/config/mep/t-mep                               |    68 -
 gcc/config/openbsd-oldgas.h                        |    26 -
 gcc/configure                                      |    12 +-
 gcc/configure.ac                                   |     4 +-
 gcc/doc/install.texi                               |    24 -
 gcc/doc/md.texi                                    |   101 -
 gcc/testsuite/gcc.dg/attr-ms_struct-1.c            |     2 +-
 gcc/testsuite/gcc.dg/attr-ms_struct-2.c            |     2 +-
 gcc/testsuite/gcc.dg/attr-ms_struct-packed1.c      |     2 +-
 gcc/testsuite/gcc.dg/bf-ms-attrib.c                |     2 +-
 gcc/testsuite/gcc.dg/bf-ms-layout-2.c              |     2 +-
 gcc/testsuite/gcc.dg/bf-ms-layout-3.c              |     2 +-
 gcc/testsuite/gcc.dg/bf-ms-layout.c                |     2 +-
 gcc/testsuite/gcc.dg/bf-no-ms-layout.c             |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/forwprop-28.c        |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/reassoc-32.c         |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/reassoc-33.c         |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/reassoc-34.c         |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/reassoc-35.c         |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/reassoc-36.c         |     2 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c         |     2 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-ccmp-2.c         |     2 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-ccmp-3.c         |     2 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c         |     2 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c         |     2 +-
 .../gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c         |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-11.c      |     2 +-
 gcc/testsuite/gcc.dg/tree-ssa/vrp87.c              |     2 +-
 gcc/testsuite/gcc.target/i386/bitfield1.c          |     2 +-
 gcc/testsuite/gcc.target/i386/bitfield2.c          |     2 +-
 gcc/testsuite/gcc.target/i386/bitfield3.c          |     1 -
 gcc/testsuite/lib/target-supports.exp              |     1 -
 libgcc/config.host                                 |    33 +-
 libgcc/config/avr/t-rtems                          |     2 -
 libgcc/config/i386/t-interix                       |     3 -
 libgcc/config/mep/lib1funcs.S                      |   125 -
 libgcc/config/mep/lib2funcs.c                      |   139 -
 libgcc/config/mep/t-mep                            |    16 -
 libgcc/config/mep/tramp.c                          |   103 -
 libstdc++-v3/configure                             |     2 +-
 libstdc++-v3/configure.host                        |     6 +-
 libstdc++-v3/crossconfig.m4                        |     2 +-
 83 files changed, 53 insertions(+), 57148 deletions(-)
 delete mode 100644 gcc/common/config/mep/mep-common.c
 delete mode 100644 gcc/config/avr/rtems.h
 delete mode 100644 gcc/config/avr/t-rtems
 delete mode 100644 gcc/config/h8300/rtems.h
 delete mode 100644 gcc/config/h8300/t-rtems
 delete mode 100644 gcc/config/i386/i386-interix.h
 delete mode 100644 gcc/config/i386/interix.opt
 delete mode 100644 gcc/config/i386/knetbsd-gnu.h
 delete mode 100644 gcc/config/i386/knetbsd-gnu64.h
 delete mode 100644 gcc/config/i386/t-interix
 delete mode 100644 gcc/config/knetbsd-gnu.h
 delete mode 100644 gcc/config/m32r/rtems.h
 delete mode 100644 gcc/config/mep/constraints.md
 delete mode 100644 gcc/config/mep/default.h
 delete mode 100644 gcc/config/mep/intrinsics.h
 delete mode 100644 gcc/config/mep/intrinsics.md
 delete mode 100644 gcc/config/mep/ivc2-template.h
 delete mode 100644 gcc/config/mep/mep-c5.cpu
 delete mode 100644 gcc/config/mep/mep-core.cpu
 delete mode 100644 gcc/config/mep/mep-default.cpu
 delete mode 100644 gcc/config/mep/mep-ext-cop.cpu
 delete mode 100644 gcc/config/mep/mep-intrin.h
 delete mode 100644 gcc/config/mep/mep-ivc2.cpu
 delete mode 100644 gcc/config/mep/mep-pragma.c
 delete mode 100644 gcc/config/mep/mep-protos.h
 delete mode 100644 gcc/config/mep/mep.c
 delete mode 100644 gcc/config/mep/mep.cpu
 delete mode 100644 gcc/config/mep/mep.h
 delete mode 100644 gcc/config/mep/mep.md
 delete mode 100644 gcc/config/mep/mep.opt
 delete mode 100644 gcc/config/mep/predicates.md
 delete mode 100644 gcc/config/mep/t-mep
 delete mode 100644 gcc/config/openbsd-oldgas.h
 delete mode 100644 libgcc/config/avr/t-rtems
 delete mode 100644 libgcc/config/i386/t-interix
 delete mode 100644 libgcc/config/mep/lib1funcs.S
 delete mode 100644 libgcc/config/mep/lib2funcs.c
 delete mode 100644 libgcc/config/mep/t-mep
 delete mode 100644 libgcc/config/mep/tramp.c

-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 2/7] remove support for targeting openbsd 2 or 3
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
                   ` (2 preceding siblings ...)
  2016-06-20  8:10 ` [PATCH 1/7] remove support for the interix target tbsaunde+gcc
@ 2016-06-20  8:10 ` tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 6/7] remove avr-rtems support tbsaunde+gcc
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

contrib/ChangeLog:

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

	* config-list.mk: Stop testing openbsd3.0.

libgcc/ChangeLog:

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

	* config.host: Remove support for openbsd 2 and 3.

gcc/ChangeLog:

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

	* config.gcc: Remove support for openbsd 2 and 3.
	* config/openbsd-oldgas.h: Remove.
---
 contrib/config-list.mk      |  5 ++---
 gcc/config.gcc              | 14 --------------
 gcc/config/openbsd-oldgas.h | 26 --------------------------
 libgcc/config.host          |  2 --
 4 files changed, 2 insertions(+), 45 deletions(-)
 delete mode 100644 gcc/config/openbsd-oldgas.h

diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index 832403a..a437ece 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -49,9 +49,8 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   i686-pc-linux-gnu i686-apple-darwin i686-apple-darwin9 i686-apple-darwin10 \
   i486-freebsd4 i686-freebsd6 i686-kfreebsd-gnu \
   i686-netbsdelf9 i686-knetbsd-gnuOPT-enable-obsolete \
-  i686-openbsd i686-openbsd3.0OPT-enable-obsolete \
-  i686-elf i686-kopensolaris-gnu i686-symbolics-gnu i686-pc-msdosdjgpp \
-  i686-lynxos i686-nto-qnx \
+  i686-openbsd i686-elf i686-kopensolaris-gnu i686-symbolics-gnu \
+  i686-pc-msdosdjgpp i686-lynxos i686-nto-qnx \
   i686-rtems i686-solaris2.10 i686-wrs-vxworks \
   i686-wrs-vxworksae \
   i686-cygwinOPT-enable-threads=yes i686-mingw32crt ia64-elf \
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 34da23e..7b091fb 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -237,8 +237,6 @@ md_file=
 # Obsolete configurations.
 case ${target} in
  *-knetbsd-*				\
- | *-openbsd2*				\
- | *-openbsd3*				\
  | avr-*rtems*				\
  | h8300-*rtems*			\
  | m32r-*rtems*			\
@@ -805,10 +803,6 @@ case ${target} in
       ;;
   esac
   case ${target} in
-    *-*-openbsd2.*|*-*-openbsd3.[012])
-      tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
-  esac
-  case ${target} in
     *-*-openbsd4.[3-9]|*-*-openbsd[5-9]*)
       default_use_cxa_atexit=yes
       ;;
@@ -1451,14 +1445,6 @@ x86_64-*-netbsd*)
 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
 	extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
 	;;
-i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
-	tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
-	extra_options="${extra_options} openbsd.opt"
-	# needed to unconfuse gdb
-	tmake_file="${tmake_file} t-openbsd i386/t-openbsd"
-	# we need collect2 until our bug is fixed...
-	use_collect2=yes
-	;;
 i[34567]86-*-openbsd*)
 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
 	tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h"
diff --git a/gcc/config/openbsd-oldgas.h b/gcc/config/openbsd-oldgas.h
deleted file mode 100644
index 34e88bf..0000000
--- a/gcc/config/openbsd-oldgas.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Generic settings for a.out OpenBSD systems.
-   Copyright (C) 2002-2016 Free Software Foundation, Inc.
-   Contributed by David E. O'Brien <obrien@FreeBSD.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/>.  */
-
-
-#define OBSD_OLD_GAS
-
-/* OpenBSD3.0 had no libpthread, pthreads lived in -lc_r */
-#define OBSD_LIB_SPEC "%{!shared:-lc%{pthread:_r}}"
-
diff --git a/libgcc/config.host b/libgcc/config.host
index 2f55fbd..0d9bb0d 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -603,8 +603,6 @@ i[34567]86-*-netbsdelf*)
 x86_64-*-netbsd*)
 	tmake_file="${tmake_file} i386/t-crtstuff"
 	;;
-i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
-	;;
 i[34567]86-*-openbsd*)
 	;;
 x86_64-*-openbsd*)
-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 6/7] remove avr-rtems support
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
                   ` (3 preceding siblings ...)
  2016-06-20  8:10 ` [PATCH 2/7] remove support for targeting openbsd 2 or 3 tbsaunde+gcc
@ 2016-06-20  8:10 ` tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 4/7] remove h8300-rtems support tbsaunde+gcc
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

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 --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))
-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 3/7] remove knetbsd support
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
@ 2016-06-20  8:10 ` tbsaunde+gcc
  2016-06-20  8:10 ` [PATCH 5/7] remove m32-rtems support tbsaunde+gcc
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: tbsaunde+gcc @ 2016-06-20  8:10 UTC (permalink / raw)
  To: gcc-patches

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

gcc/ChangeLog:

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

	* config.gcc: Remove support for knetbsd.
	* configure.ac: Likewise.
	* config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
	* config/knetbsd-gnu.h: Remove.
	* configure: Regenerate.

libgcc/ChangeLog:

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

	* config.host: Remove support for knetbsd.

libstdc++-v3/ChangeLog:

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

	* configure: Regenerate.
	* configure.host: Remove support for knetbsd.
	* crossconfig.m4: Likewise.

contrib/ChangeLog:

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

	* config-list.mk: stop testing knetbsd.
---
 contrib/config-list.mk          |  4 ++--
 gcc/config.gcc                  | 17 +++++------------
 gcc/config/i386/knetbsd-gnu.h   | 21 ---------------------
 gcc/config/i386/knetbsd-gnu64.h | 26 --------------------------
 gcc/config/knetbsd-gnu.h        | 35 -----------------------------------
 gcc/configure                   | 10 +++-------
 gcc/configure.ac                |  2 +-
 libgcc/config.host              |  7 +++----
 libstdc++-v3/configure          |  2 +-
 libstdc++-v3/configure.host     |  2 +-
 libstdc++-v3/crossconfig.m4     |  2 +-
 11 files changed, 17 insertions(+), 111 deletions(-)
 delete mode 100644 gcc/config/i386/knetbsd-gnu.h
 delete mode 100644 gcc/config/i386/knetbsd-gnu64.h
 delete mode 100644 gcc/config/knetbsd-gnu.h

diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index a437ece..2fe90bb 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -48,7 +48,7 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   hppa64-hpux11.0OPT-enable-sjlj-exceptions=yes hppa2.0-hpux11.9 \
   i686-pc-linux-gnu i686-apple-darwin i686-apple-darwin9 i686-apple-darwin10 \
   i486-freebsd4 i686-freebsd6 i686-kfreebsd-gnu \
-  i686-netbsdelf9 i686-knetbsd-gnuOPT-enable-obsolete \
+  i686-netbsdelf9 \
   i686-openbsd i686-elf i686-kopensolaris-gnu i686-symbolics-gnu \
   i686-pc-msdosdjgpp i686-lynxos i686-nto-qnx \
   i686-rtems i686-solaris2.10 i686-wrs-vxworks \
@@ -95,7 +95,7 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
   vax-netbsdelf vax-openbsd visium-elf x86_64-apple-darwin \
   x86_64-pc-linux-gnuOPT-with-fpmath=avx \
   x86_64-elfOPT-with-fpmath=sse x86_64-freebsd6 x86_64-netbsd \
-  x86_64-knetbsd-gnuOPT-enable-obsolete x86_64-w64-mingw32 \
+  x86_64-w64-mingw32 \
   x86_64-mingw32OPT-enable-sjlj-exceptions=yes x86_64-rtems \
   xstormy16-elf xtensa-elf \
   xtensa-linux
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 7b091fb..669cb9f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -236,8 +236,7 @@ md_file=
 
 # Obsolete configurations.
 case ${target} in
- *-knetbsd-*				\
- | avr-*rtems*				\
+ avr-*rtems*				\
  | h8300-*rtems*			\
  | m32r-*rtems*			\
  | mep-*				\
@@ -707,7 +706,7 @@ case ${target} in
   esac
   use_gcc_stdint=wrap
   ;;
-*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
+*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
   extra_options="$extra_options gnu-user.opt"
   gas=yes
   gnu_ld=yes
@@ -716,7 +715,7 @@ case ${target} in
   esac
   tmake_file="t-slibgcc"
   case $target in
-    *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu)
+    *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-kopensolaris*-gnu)
       :;;
     *-*-gnu*)
       native_system_header_dir=/include
@@ -1459,7 +1458,7 @@ x86_64-*-openbsd*)
 	gas=yes
 	gnu_ld=yes
 	;;
-i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
+i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
 			# Intel 80386's running GNU/*
 			# with ELF format using glibc 2
 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h"
@@ -1515,9 +1514,6 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i
 			tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h i386/linux-common.h i386/linux.h"
 		fi
 		;;
-	i[34567]86-*-knetbsd*-gnu)
-		tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h knetbsd-gnu.h i386/knetbsd-gnu.h"
-		;;
 	i[34567]86-*-kfreebsd*-gnu)
 		tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kfreebsd-gnu.h i386/kfreebsd-gnu.h"
 		;;
@@ -1529,7 +1525,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i
 		;;
 	esac
 	;;
-x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
+x86_64-*-linux* | x86_64-*-kfreebsd*-gnu)
 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \
 		 i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h"
 	case ${target} in
@@ -1548,9 +1544,6 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
 	x86_64-*-kfreebsd*-gnu)
 		tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h"
 		;;
-	x86_64-*-knetbsd*-gnu)
-		tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu64.h"
-		;;
 	esac
 	tmake_file="${tmake_file} i386/t-linux64"
 	x86_multilibs="${with_multilib_list}"
diff --git a/gcc/config/i386/knetbsd-gnu.h b/gcc/config/i386/knetbsd-gnu.h
deleted file mode 100644
index 51f8a0c..0000000
--- a/gcc/config/i386/knetbsd-gnu.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Definitions for Intel 386 running kNetBSD-based GNU systems with ELF format
-   Copyright (C) 2004-2016 Free Software Foundation, Inc.
-   Contributed by Robert Millan.
-
-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/>.  */
-
-#define GNU_USER_LINK_EMULATION "elf_i386"
diff --git a/gcc/config/i386/knetbsd-gnu64.h b/gcc/config/i386/knetbsd-gnu64.h
deleted file mode 100644
index fb9e2c0..0000000
--- a/gcc/config/i386/knetbsd-gnu64.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Definitions for AMD x86-64 running kNetBSD-based GNU systems with ELF format
-   Copyright (C) 2012-2016 Free Software Foundation, Inc.
-
-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/>.  */
-
-#define GNU_USER_LINK_EMULATION32 "elf_i386"
-#define GNU_USER_LINK_EMULATION64 "elf_x86_64"
-#define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
-
-#define GNU_USER_DYNAMIC_LINKER32 "/lib/ld.so.1"
-#define GNU_USER_DYNAMIC_LINKER64 "/lib/ld-knetbsd-x86-64.so.1"
-#define GNU_USER_DYNAMIC_LINKERX32 "/lib/ld-knetbsd-x32.so.1"
diff --git a/gcc/config/knetbsd-gnu.h b/gcc/config/knetbsd-gnu.h
deleted file mode 100644
index 02b7488..0000000
--- a/gcc/config/knetbsd-gnu.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Definitions for kNetBSD-based GNU systems with ELF format
-   Copyright (C) 2004-2016 Free Software Foundation, Inc.
-   Contributed by Robert Millan.
-
-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/>.  */
-
-#undef GNU_USER_TARGET_OS_CPP_BUILTINS    
-#define GNU_USER_TARGET_OS_CPP_BUILTINS()		\
-  do						\
-    {						\
-	builtin_define ("__NetBSD_kernel__");	\
-	builtin_define ("__GLIBC__");		\
-	builtin_define_std ("unix");		\
-	builtin_assert ("system=unix");		\
-	builtin_assert ("system=posix");	\
-    }						\
-  while (0)
-
-
-#undef GNU_USER_DYNAMIC_LINKER
-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
diff --git a/gcc/configure b/gcc/configure
index 5648eca..9b1a404 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -5033,10 +5033,6 @@ case "${target}" in
 	;;
     i[34567]86-*-mingw* | x86_64-*-mingw*)
 	;;
-    i[34567]86-*-interix[3-9]*)
-	# Interix 3.x gcc -fpic/-fPIC options generate broken code.
-	# Instead, we relocate shared libraries at runtime.
-	;;
     i[34567]86-*-nto-qnx*)
 	# QNX uses GNU C++, but need to define -shared option too, otherwise
 	# it will coredump.
@@ -18479,7 +18475,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18482 "configure"
+#line 18478 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -18585,7 +18581,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18588 "configure"
+#line 18584 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -28517,7 +28513,7 @@ else
        *-*-musl*)
 	 # All versions of musl provide stack protector
 	 gcc_cv_libc_provides_ssp=yes;;
-       *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
+       *-*-linux* | *-*-kfreebsd*-gnu)
       # glibc 2.4 and later provides __stack_chk_fail and
       # either __stack_chk_guard, or TLS access to stack guard canary.
 
diff --git a/gcc/configure.ac b/gcc/configure.ac
index af40895..1bcb6f53 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -5495,7 +5495,7 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library,
        *-*-musl*)
 	 # All versions of musl provide stack protector
 	 gcc_cv_libc_provides_ssp=yes;;
-       *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
+       *-*-linux* | *-*-kfreebsd*-gnu)
       # glibc 2.4 and later provides __stack_chk_fail and
       # either __stack_chk_guard, or TLS access to stack guard canary.
       GCC_GLIBC_VERSION_GTE_IFELSE([2], [4], [gcc_cv_libc_provides_ssp=yes], [
diff --git a/libgcc/config.host b/libgcc/config.host
index 0d9bb0d..12b69cf 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -230,7 +230,7 @@ case ${host} in
       ;;
   esac
   ;;
-*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
+*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
   if test x$enable_vtable_verify = xyes; then
@@ -613,7 +613,7 @@ i[34567]86-*-linux*)
 	tm_file="${tm_file} i386/elf-lib.h"
 	md_unwind_header=i386/linux-unwind.h
 	;;
-i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
+i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
 	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 	tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
 	tm_file="${tm_file} i386/elf-lib.h"
@@ -624,7 +624,7 @@ x86_64-*-linux*)
 	tm_file="${tm_file} i386/elf-lib.h"
 	md_unwind_header=i386/linux-unwind.h
 	;;
-x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
+x86_64-*-kfreebsd*-gnu)
 	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 	tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
 	tm_file="${tm_file} i386/elf-lib.h"
@@ -1334,7 +1334,6 @@ esac
 case ${host} in
 i[34567]86-*-linux* | x86_64-*-linux* | \
   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
-  i[34567]86-*-knetbsd*-gnu | \
   i[34567]86-*-gnu*)
 	tmake_file="${tmake_file} t-tls i386/t-linux t-slibgcc-libgcc"
 	if test "$libgcc_cv_cfi" = "yes"; then
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 4e81166..fcbf402 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -53544,7 +53544,7 @@ $as_echo "#define HAVE_TLS 1" >>confdefs.h
 	;;
     esac
     ;;
-  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*)
+  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin*)
 
   # All these tests are for C++; save the language and the compiler flags.
   # The CXXFLAGS thing is suspicious, but based on similar bits previously
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 0b366ea..451c209 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -265,7 +265,7 @@ case "${host_os}" in
   linux-musl*)
     os_include_dir="os/generic"
     ;;
-  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
+  gnu* | linux* | kfreebsd*-gnu)
     if [ "$uclibc" = "yes" ]; then
       os_include_dir="os/uclibc"
     elif [ "$bionic" = "yes" ]; then
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index ece1256..6abc84f 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -149,7 +149,7 @@ case "${host}" in
 	;;
     esac
     ;;
-  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*)
+  *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin*)
     GLIBCXX_CHECK_COMPILER_FEATURES
     GLIBCXX_CHECK_LINKER_FEATURES
     GLIBCXX_CHECK_MATH_SUPPORT
-- 
2.7.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] remove targets obsoleted in gcc 6
       [not found] ` <5767A86D.9080108@foss.arm.com>
@ 2016-06-20 10:52   ` Trevor Saunders
  2016-07-07 16:10     ` Matthias Klose
  0 siblings, 1 reply; 11+ messages in thread
From: Trevor Saunders @ 2016-06-20 10:52 UTC (permalink / raw)
  To: Kyrill Tkachov; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

On Mon, Jun 20, 2016 at 09:25:17AM +0100, Kyrill Tkachov wrote:
> Hi Trev,
> 
> On 20/06/16 06:47, tbsaunde+gcc@tbsaunde.org wrote:
> > From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
> > 
> > Hi,
> > 
> > later than I hoped, but here's the series to remove the targets obsoleted
> > during gcc 6.
> > 
> > I built and regtested the series as one patch on x86_64-linux-gnu without
> > regressions, ok?
> 
> Looks like 7/7 removing mep-* didn't go through.
> Perhaps it's too large for the mailing list and needs to be compressed?

yes it was, gziped patch is attached.

Trev

[-- Attachment #2: patch.gz --]
[-- Type: application/gzip, Size: 168751 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] remove targets obsoleted in gcc 6
  2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
                   ` (6 preceding siblings ...)
       [not found] ` <5767A86D.9080108@foss.arm.com>
@ 2016-06-20 19:38 ` Jeff Law
  7 siblings, 0 replies; 11+ messages in thread
From: Jeff Law @ 2016-06-20 19:38 UTC (permalink / raw)
  To: tbsaunde+gcc, gcc-patches

On 06/19/2016 11:47 PM, tbsaunde+gcc@tbsaunde.org wrote:
> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> Hi,
>
> later than I hoped, but here's the series to remove the targets obsoleted
> during gcc 6.
>
> I built and regtested the series as one patch on x86_64-linux-gnu without
> regressions, ok?
>
> Trev
>
>
> Trevor Saunders (7):
>   remove support for the interix target
>   remove support for targeting openbsd 2 or 3
>   remove knetbsd support
>   remove h8300-rtems support
>   remove m32-rtems support
>   remove avr-rtems support
>   remove mep-* support
OK for the whole series.

hpux10.* as a host & target would seem ripe for obsoleting as well. 
Though you might check with John first.

Another "special" system we might consider obsoleting would be lynxos. 
I think those have been dead a decade or longer.  I'm not even sure who 
to ask about them anymore.

Jeff

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] remove targets obsoleted in gcc 6
  2016-06-20 10:52   ` [PATCH 0/7] remove targets obsoleted in gcc 6 Trevor Saunders
@ 2016-07-07 16:10     ` Matthias Klose
  2016-07-08  7:36       ` Eric Botcazou
  0 siblings, 1 reply; 11+ messages in thread
From: Matthias Klose @ 2016-07-07 16:10 UTC (permalink / raw)
  To: Trevor Saunders, Kyrill Tkachov; +Cc: gcc-patches

On 20.06.2016 10:30, Trevor Saunders wrote:
> On Mon, Jun 20, 2016 at 09:25:17AM +0100, Kyrill Tkachov wrote:
>> Hi Trev,
>>
>> On 20/06/16 06:47, tbsaunde+gcc@tbsaunde.org wrote:
>>> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>>>
>>> Hi,
>>>
>>> later than I hoped, but here's the series to remove the targets obsoleted
>>> during gcc 6.

I removed the empty directories

       gcc/common/config/mep
       gcc/config/mep
       libgcc/config/mep

Committed as obvious.

Matthias

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] remove targets obsoleted in gcc 6
  2016-07-07 16:10     ` Matthias Klose
@ 2016-07-08  7:36       ` Eric Botcazou
  0 siblings, 0 replies; 11+ messages in thread
From: Eric Botcazou @ 2016-07-08  7:36 UTC (permalink / raw)
  To: Matthias Klose; +Cc: gcc-patches, Trevor Saunders, Kyrill Tkachov

> I removed the empty directories
> 
>        gcc/common/config/mep
>        gcc/config/mep
>        libgcc/config/mep

https://gcc.gnu.org/backends.html needs to be updated accordingly.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-07-08  7:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20  8:10 [PATCH 0/7] remove targets obsoleted in gcc 6 tbsaunde+gcc
2016-06-20  8:10 ` [PATCH 3/7] remove knetbsd support tbsaunde+gcc
2016-06-20  8:10 ` [PATCH 5/7] remove m32-rtems support tbsaunde+gcc
2016-06-20  8:10 ` [PATCH 1/7] remove support for the interix target tbsaunde+gcc
2016-06-20  8:10 ` [PATCH 2/7] remove support for targeting openbsd 2 or 3 tbsaunde+gcc
2016-06-20  8:10 ` [PATCH 6/7] remove avr-rtems support tbsaunde+gcc
2016-06-20  8:10 ` [PATCH 4/7] remove h8300-rtems support tbsaunde+gcc
     [not found] ` <5767A86D.9080108@foss.arm.com>
2016-06-20 10:52   ` [PATCH 0/7] remove targets obsoleted in gcc 6 Trevor Saunders
2016-07-07 16:10     ` Matthias Klose
2016-07-08  7:36       ` Eric Botcazou
2016-06-20 19:38 ` Jeff Law

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).