aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2016-06-21 21:57:49 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2016-06-21 21:57:49 +0000
commit0609abdad81e26678eecdfcaaeb785b6343f51ca (patch)
tree0c9292bb770aa9fda40588a7c1377186e8ce377c /libgcc
parent3e326935011594f55f1739ec3de3dd94d9d54380 (diff)
downloadgcc-0609abdad81e26678eecdfcaaeb785b6343f51ca.zip
gcc-0609abdad81e26678eecdfcaaeb785b6343f51ca.tar.gz
gcc-0609abdad81e26678eecdfcaaeb785b6343f51ca.tar.bz2
remove mep-* support
libgcc/ChangeLog: 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * config.host: Remove support for mep-*. * config/mep/lib1funcs.S: Remove. * config/mep/lib2funcs.c: Remove. * config/mep/t-mep: Remove. * config/mep/tramp.c: Remove. gcc/ChangeLog: 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * common/config/mep/mep-common.c: Remove. * config.gcc: Remove mep-* support. * config/mep/constraints.md: Remove. * config/mep/default.h: Remove. * config/mep/intrinsics.h: Remove. * config/mep/intrinsics.md: Remove. * config/mep/ivc2-template.h: Remove. * config/mep/mep-c5.cpu: Remove. * config/mep/mep-core.cpu: Remove. * config/mep/mep-default.cpu: Remove. * config/mep/mep-ext-cop.cpu: Remove. * config/mep/mep-intrin.h: Remove. * config/mep/mep-ivc2.cpu: Remove. * config/mep/mep-pragma.c: Remove. * config/mep/mep-protos.h: Remove. * config/mep/mep.c: Remove. * config/mep/mep.cpu: Remove. * config/mep/mep.h: Remove. * config/mep/mep.md: Remove. * config/mep/mep.opt: Remove. * config/mep/predicates.md: Remove. * config/mep/t-mep: Remove. * doc/install.texi: Remove mep-* documentation. * doc/md.texi: Likewise. gcc/testsuite/ChangeLog: 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * gcc.dg/tree-ssa/forwprop-28.c: Remove mep-* support. * gcc.dg/tree-ssa/reassoc-32.c: Likewise. * gcc.dg/tree-ssa/reassoc-33.c: Likewise. * gcc.dg/tree-ssa/reassoc-34.c: Likewise. * gcc.dg/tree-ssa/reassoc-35.c: Likewise. * gcc.dg/tree-ssa/reassoc-36.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-2.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-3.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c: Likewise. * gcc.dg/tree-ssa/ssa-thread-11.c: Likewise. * gcc.dg/tree-ssa/vrp87.c: Likewise. * lib/target-supports.exp: Likewise. contrib/ChangeLog: 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * config-list.mk: Stop testing mep-elf. libstdc++-v3/ChangeLog: 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * configure.host: Remove mep-* support. From-SVN: r237666
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog8
-rw-r--r--libgcc/config.host6
-rw-r--r--libgcc/config/mep/lib1funcs.S125
-rw-r--r--libgcc/config/mep/lib2funcs.c139
-rw-r--r--libgcc/config/mep/t-mep16
-rw-r--r--libgcc/config/mep/tramp.c103
6 files changed, 8 insertions, 389 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 87fdaef..ed342be 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,5 +1,13 @@
2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+ * config.host: Remove support for mep-*.
+ * config/mep/lib1funcs.S: Remove.
+ * config/mep/lib2funcs.c: Remove.
+ * config/mep/t-mep: Remove.
+ * config/mep/tramp.c: Remove.
+
+2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
* config.host: Remove support for avr-rtems.
* config/avr/t-rtems: Remove.
diff --git a/libgcc/config.host b/libgcc/config.host
index 80b81d2..47df62b 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -136,8 +136,6 @@ m32r*-*-*)
;;
m68k-*-*)
;;
-mep*-*-*)
- ;;
microblaze*-*-*)
cpu_type=microblaze
;;
@@ -1296,10 +1294,6 @@ am33_2.0-*-linux*)
m32c-*-elf*|m32c-*-rtems*)
tmake_file="$tmake_file m32c/t-m32c"
;;
-mep*-*-*)
- tmake_file="mep/t-mep t-fdpbit"
- extra_parts="crtbegin.o crtend.o"
- ;;
nvptx-*)
tmake_file="$tmake_file nvptx/t-nvptx"
extra_parts="crt0.o"
diff --git a/libgcc/config/mep/lib1funcs.S b/libgcc/config/mep/lib1funcs.S
deleted file mode 100644
index 4ab0d00..0000000
--- a/libgcc/config/mep/lib1funcs.S
+++ /dev/null
@@ -1,125 +0,0 @@
-/* libgcc routines for Toshiba Media Processor.
- Copyright (C) 2001-2016 Free Software Foundation, Inc.
-
-This file 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 of the License, or (at your
-option) any later version.
-
-This file 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.
-
-Under Section 7 of GPL version 3, you are granted additional
-permissions described in the GCC Runtime Library Exception, version
-3.1, as published by the Free Software Foundation.
-
-You should have received a copy of the GNU General Public License and
-a copy of the GCC Runtime Library Exception along with this program;
-see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-<http://www.gnu.org/licenses/>. */
-
-#define SAVEALL \
- add3 $sp, $sp, -16*4 ; \
- sw $0, ($sp) ; \
- sw $1, 4($sp) ; \
- sw $2, 8($sp) ; \
- sw $3, 12($sp) ; \
- sw $4, 16($sp) ; \
- sw $5, 20($sp) ; \
- sw $6, 24($sp) ; \
- sw $7, 28($sp) ; \
- sw $8, 32($sp) ; \
- sw $9, 36($sp) ; \
- sw $10, 40($sp) ; \
- sw $11, 44($sp) ; \
- sw $12, 48($sp) ; \
- sw $13, 52($sp) ; \
- sw $14, 56($sp) ; \
- ldc $5, $lp ; \
- add $5, 3 ; \
- mov $6, -4 ; \
- and $5, $6
-
-#define RESTOREALL \
- stc $5, $lp ; \
- lw $14, 56($sp) ; \
- lw $13, 52($sp) ; \
- lw $12, 48($sp) ; \
- lw $11, 44($sp) ; \
- lw $10, 40($sp) ; \
- lw $9, 36($sp) ; \
- lw $8, 32($sp) ; \
- lw $7, 28($sp) ; \
- lw $6, 24($sp) ; \
- lw $5, 20($sp) ; \
- lw $4, 16($sp) ; \
- lw $3, 12($sp) ; \
- lw $2, 8($sp) ; \
- lw $1, 4($sp) ; \
- lw $0, ($sp) ; \
- add3 $sp, $sp, 16*4 ; \
- ret
-
-#ifdef L_mep_profile
- .text
- .global __mep_mcount
-__mep_mcount:
- SAVEALL
- ldc $1, $lp
- mov $2, $0
- bsr __mep_mcount_2
- RESTOREALL
-#endif
-
-#ifdef L_mep_bb_init_trace
- .text
- .global __mep_bb_init_trace_func
-__mep_bb_init_trace_func:
- SAVEALL
- lw $1, ($5)
- lw $2, 4($5)
- add $5, 8
- bsr __bb_init_trace_func
- RESTOREALL
-#endif
-
-#ifdef L_mep_bb_init
- .text
- .global __mep_bb_init_func
-__mep_bb_init_func:
- SAVEALL
- lw $1, ($5)
- add $5, 4
- bsr __bb_init_func
- RESTOREALL
-#endif
-
-#ifdef L_mep_bb_trace
- .text
- .global __mep_bb_trace_func
-__mep_bb_trace_func:
- SAVEALL
- movu $3, __bb
- lw $1, ($5)
- sw $1, ($3)
- lw $2, 4($5)
- sw $2, 4($3)
- add $5, 8
- bsr __bb_trace_func
- RESTOREALL
-#endif
-
-#ifdef L_mep_bb_increment
- .text
- .global __mep_bb_increment_func
-__mep_bb_increment_func:
- SAVEALL
- lw $1, ($5)
- lw $0, ($1)
- add $0, 1
- sw $0, ($1)
- add $5, 4
- RESTOREALL
-#endif
diff --git a/libgcc/config/mep/lib2funcs.c b/libgcc/config/mep/lib2funcs.c
deleted file mode 100644
index f5d536a..0000000
--- a/libgcc/config/mep/lib2funcs.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/* libgcc routines for MeP.
- Copyright (C) 2001-2016 Free Software Foundation, Inc.
-
-This file 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 of the License, or (at your
-option) any later version.
-
-This file 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.
-
-Under Section 7 of GPL version 3, you are granted additional
-permissions described in the GCC Runtime Library Exception, version
-3.1, as published by the Free Software Foundation.
-
-You should have received a copy of the GNU General Public License and
-a copy of the GCC Runtime Library Exception along with this program;
-see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-<http://www.gnu.org/licenses/>. */
-
-typedef int SItype __attribute__ ((mode (SI)));
-typedef unsigned int USItype __attribute__ ((mode (SI)));
-
-typedef int word_type __attribute__ ((mode (__word__)));
-
-USItype
-__mulsi3 (USItype a, USItype b)
-{
- USItype c = 0;
-
- while (a != 0)
- {
- if (a & 1)
- c += b;
- a >>= 1;
- b <<= 1;
- }
-
- return c;
-}
-
-
-
-USItype
-udivmodsi4(USItype num, USItype den, word_type modwanted)
-{
- USItype bit = 1;
- USItype res = 0;
-
- while (den < num && bit && !(den & (1L<<31)))
- {
- den <<=1;
- bit <<=1;
- }
- while (bit)
- {
- if (num >= den)
- {
- num -= den;
- res |= bit;
- }
- bit >>=1;
- den >>=1;
- }
- if (modwanted) return num;
- return res;
-}
-
-
-
-SItype
-__divsi3 (SItype a, SItype b)
-{
- word_type neg = 0;
- SItype res;
-
- if (a < 0)
- {
- a = -a;
- neg = !neg;
- }
-
- if (b < 0)
- {
- b = -b;
- neg = !neg;
- }
-
- res = udivmodsi4 (a, b, 0);
-
- if (neg)
- res = -res;
-
- return res;
-}
-
-
-
-SItype
-__modsi3 (SItype a, SItype b)
-{
- word_type neg = 0;
- SItype res;
-
- if (a < 0)
- {
- a = -a;
- neg = 1;
- }
-
- if (b < 0)
- b = -b;
-
- res = udivmodsi4 (a, b, 1);
-
- if (neg)
- res = -res;
-
- return res;
-}
-
-
-
-
-SItype
-__udivsi3 (SItype a, SItype b)
-{
- return udivmodsi4 (a, b, 0);
-}
-
-
-
-SItype
-__umodsi3 (SItype a, SItype b)
-{
- return udivmodsi4 (a, b, 1);
-}
diff --git a/libgcc/config/mep/t-mep b/libgcc/config/mep/t-mep
deleted file mode 100644
index fb3a0d6..0000000
--- a/libgcc/config/mep/t-mep
+++ /dev/null
@@ -1,16 +0,0 @@
-# profiling support
-LIB1ASMSRC = mep/lib1funcs.S
-
-LIB1ASMFUNCS = _mep_profile \
- _mep_bb_init_trace \
- _mep_bb_init \
- _mep_bb_trace \
- _mep_bb_increment
-
-# multiply and divide routines
-LIB2ADD = \
- $(srcdir)/config/mep/lib2funcs.c \
- $(srcdir)/config/mep/tramp.c
-
-# Use -O0 instead of -O2 so we don't get complex relocations
-CRTSTUFF_CFLAGS += -O0
diff --git a/libgcc/config/mep/tramp.c b/libgcc/config/mep/tramp.c
deleted file mode 100644
index d30efe4..0000000
--- a/libgcc/config/mep/tramp.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* Trampoline support for MeP
- Copyright (C) 2004-2016 Free Software Foundation, Inc.
- Contributed by Red Hat Inc.
-
-This file 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 of the License, or (at your
-option) any later version.
-
-This file 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.
-
-Under Section 7 of GPL version 3, you are granted additional
-permissions described in the GCC Runtime Library Exception, version
-3.1, as published by the Free Software Foundation.
-
-You should have received a copy of the GNU General Public License and
-a copy of the GCC Runtime Library Exception along with this program;
-see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-<http://www.gnu.org/licenses/>. */
-
-/*
- 7a0a ldc $10,$pc
- c0ae000a lw $0,10($10)
- caae000e lw $10,14($10)
- 10ae jmp $10
- 00000000 static chain
- 00000000 function address
-*/
-
-static inline int
-cache_config_register(void) {
- int rv;
- asm ("ldc\t%0, $ccfg" : "=r" (rv));
- return rv;
-}
-
-#define ICACHE_SIZE ((cache_config_register() >> 16) & 0x7f)
-#define DCACHE_SIZE (cache_config_register() & 0x7f)
-
-#define ICACHE_DATA_BASE 0x00300000
-#define ICACHE_TAG_BASE 0x00310000
-#define DCACHE_DATA_BASE 0x00320000
-#define DCACHE_TAG_BASE 0x00330000
-
-static inline void
-flush_dcache (int addr)
-{
- asm volatile ("cache\t0, (%0)" : : "r" (addr));
-}
-
-void
-__mep_trampoline_helper (unsigned long *tramp,
- int function_address,
- int static_chain);
-
-void
-__mep_trampoline_helper (unsigned long *tramp,
- int function_address,
- int static_chain)
-{
- int dsize, isize;
-
-#ifdef __LITTLE_ENDIAN__
- tramp[0] = 0xc0ae7a0a;
- tramp[1] = 0xcaae000a;
- tramp[2] = 0x10ae000e;
-#else
- tramp[0] = 0x7a0ac0ae;
- tramp[1] = 0x000acaae;
- tramp[2] = 0x000e10ae;
-#endif
- tramp[3] = static_chain;
- tramp[4] = function_address;
-
- dsize = DCACHE_SIZE;
- isize = ICACHE_SIZE;
-
- if (dsize)
- {
- flush_dcache ((int)tramp);
- flush_dcache ((int)tramp+16);
- }
-
- if (isize)
- {
- int imask = (isize * 1024) - 1;
- int tmask = ~imask;
- unsigned int i;
- volatile unsigned int *tags;
-
- imask &= 0xffe0;
-
- for (i=(unsigned int)tramp; i<(unsigned int)tramp+20; i+=16)
- {
- tags = (unsigned int *)(ICACHE_TAG_BASE + (i & imask));
- if ((*tags & tmask) == (i & tmask))
- *tags &= ~1;
- }
- }
-}