diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2012-01-07 20:32:29 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2012-01-07 20:32:29 +0000 |
| commit | 5155e70cbe179919d3d10a7b8d91ba9ee775c9fc (patch) | |
| tree | b013e78638660bfe4bf02fe85f703168a5107b5d | |
| parent | 4706886146a93c13efe6fccd0538cdaef31d5508 (diff) | |
| download | glibc-5155e70cbe179919d3d10a7b8d91ba9ee775c9fc.tar.xz glibc-5155e70cbe179919d3d10a7b8d91ba9ee775c9fc.zip | |
Remove ARM old-ABI support (straightforward parts).
41 files changed, 46 insertions, 2053 deletions
diff --git a/ChangeLog.arm b/ChangeLog.arm index 0d0b6ff584..70bc5404b9 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,47 @@ +2012-01-07 Joseph Myers <joseph@codesourcery.com> + + * sysdeps/arm/preconfigure: Give error for old-ABI ARM. + * sysdeps/unix/sysv/linux/arm/eabi/Makefile (arm-using-eabi): + Don't define. + * sysdeps/arm/__longjmp.S: Remove. + * sysdeps/arm/bits/atomic.h: Remove. + * sysdeps/arm/bits/huge_val.h: Remove. + * sysdeps/arm/bits/setjmp.h: Remove. + * sysdeps/arm/fpu/__longjmp.S: Remove. + * sysdeps/arm/fpu/bits/fenv.h: Remove. + * sysdeps/arm/fpu/bits/setjmp.h: Remove. + * sysdeps/arm/fpu/fclrexcpt.c: Remove. + * sysdeps/arm/fpu/fedisblxcpt.c: Remove. + * sysdeps/arm/fpu/feenablxcpt.c: Remove. + * sysdeps/arm/fpu/fegetenv.c: Remove. + * sysdeps/arm/fpu/fegetexcept.c: Remove. + * sysdeps/arm/fpu/fegetround.c: Remove. + * sysdeps/arm/fpu/feholdexcpt.c: Remove. + * sysdeps/arm/fpu/fesetenv.c: Remove. + * sysdeps/arm/fpu/fesetround.c: Remove. + * sysdeps/arm/fpu/fpu_control.h: Remove. + * sysdeps/arm/fpu/fraiseexcpt.c: Remove. + * sysdeps/arm/fpu/fsetexcptflg.c: Remove. + * sysdeps/arm/fpu/ftestexcept.c: Remove. + * sysdeps/arm/fpu/jmpbuf-offsets.h: Remove. + * sysdeps/arm/fpu/setjmp.S: Remove. + * sysdeps/arm/jmpbuf-offsets.h: Remove. + * sysdeps/arm/machine-gmon.h: Remove. + * sysdeps/arm/setjmp.S: Remove. + * sysdeps/unix/sysv/linux/arm/____longjmp_chk.S: Remove. + * sysdeps/unix/sysv/linux/arm/check_pf.c: Remove. + * sysdeps/unix/sysv/linux/arm/eabi/check_pf.c: Remove. + * sysdeps/unix/sysv/linux/arm/mmap64.S: Remove. + * sysdeps/unix/sysv/linux/arm/msgctl.c: Remove. + * sysdeps/unix/sysv/linux/arm/nptl/Makefile: Remove. + * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Remove. + * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Remove. + * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Remove. + * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: Remove. + * sysdeps/unix/sysv/linux/arm/semctl.c: Remove. + * sysdeps/unix/sysv/linux/arm/shmctl.c: Remove. + * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Remove. + 2012-01-05 Nathan Sidwell <nathan@codesourcery.com> Tom de Vries <tom@codesourcery.com> diff --git a/sysdeps/arm/__longjmp.S b/sysdeps/arm/__longjmp.S deleted file mode 100644 index 09e6386417..0000000000 --- a/sysdeps/arm/__longjmp.S +++ /dev/null @@ -1,37 +0,0 @@ -/* longjmp for ARM. - Copyright (C) 1997, 1998, 2009 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#include <sysdep.h> -#define _SETJMP_H -#define _ASM -#include <bits/setjmp.h> - -/* __longjmp(jmpbuf, val) */ - -ENTRY (__longjmp) - mov ip, r0 - movs r0, r1 /* get the return value in place */ - moveq r0, #1 /* can't let setjmp() return zero! */ - -#ifdef CHECK_SP - ldr r4, [ip, #32] - CHECK_SP (r4) -#endif - LOADREGS(ia, ip, {v1-v6, sl, fp, sp, pc}) -END (__longjmp) diff --git a/sysdeps/arm/bits/atomic.h b/sysdeps/arm/bits/atomic.h deleted file mode 100644 index 14d2dbe0e9..0000000000 --- a/sysdeps/arm/bits/atomic.h +++ /dev/null @@ -1,101 +0,0 @@ -/* Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#include <stdint.h> -#include <sysdep.h> - - -typedef int8_t atomic8_t; -typedef uint8_t uatomic8_t; -typedef int_fast8_t atomic_fast8_t; -typedef uint_fast8_t uatomic_fast8_t; - -typedef int32_t atomic32_t; -typedef uint32_t uatomic32_t; -typedef int_fast32_t atomic_fast32_t; -typedef uint_fast32_t uatomic_fast32_t; - -typedef intptr_t atomicptr_t; -typedef uintptr_t uatomicptr_t; -typedef intmax_t atomic_max_t; -typedef uintmax_t uatomic_max_t; - -void __arm_link_error (void); - -#define atomic_exchange_acq(mem, newvalue) \ - ({ __typeof (*mem) result; \ - if (sizeof (*mem) == 1) \ - __asm__ __volatile__ ("swpb %0, %1, [%2]" \ - : "=&r,&r" (result) \ - : "r,0" (newvalue), "r,r" (mem) : "memory"); \ - else if (sizeof (*mem) == 4) \ - __asm__ __volatile__ ("swp %0, %1, [%2]" \ - : "=&r,&r" (result) \ - : "r,0" (newvalue), "r,r" (mem) : "memory"); \ - else \ - { \ - result = 0; \ - abort (); \ - } \ - result; }) - -/* Atomic compare and exchange. These sequences are not actually atomic; - there is a race if *MEM != OLDVAL and we are preempted between the two - swaps. However, they are very close to atomic, and are the best that a - pre-ARMv6 implementation can do without operating system support. - LinuxThreads has been using these sequences for many years. */ - -#define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ - ({ __typeof (oldval) result, tmp; \ - __asm__ ("\n" \ - "0:\tldr\t%1,[%2]\n\t" \ - "cmp\t%1,%4\n\t" \ - "movne\t%0,%1\n\t" \ - "bne\t1f\n\t" \ - "swpb\t%0,%3,[%2]\n\t" \ - "cmp\t%1,%0\n\t" \ - "swpbne\t%1,%0,[%2]\n\t" \ - "bne\t0b\n\t" \ - "1:" \ - : "=&r" (result), "=&r" (tmp) \ - : "r" (mem), "r" (newval), "r" (oldval) \ - : "cc", "memory"); \ - result; }) - -#define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \ - ({ __arm_link_error (); oldval; }) - -#define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ - ({ __typeof (oldval) result, tmp; \ - __asm__ ("\n" \ - "0:\tldr\t%1,[%2]\n\t" \ - "cmp\t%1,%4\n\t" \ - "movne\t%0,%1\n\t" \ - "bne\t1f\n\t" \ - "swp\t%0,%3,[%2]\n\t" \ - "cmp\t%1,%0\n\t" \ - "swpne\t%1,%0,[%2]\n\t" \ - "bne\t0b\n\t" \ - "1:" \ - : "=&r" (result), "=&r" (tmp) \ - : "r" (mem), "r" (newval), "r" (oldval) \ - : "cc", "memory"); \ - result; }) - -#define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ - ({ __arm_link_error (); oldval; }) diff --git a/sysdeps/arm/bits/huge_val.h b/sysdeps/arm/bits/huge_val.h deleted file mode 100644 index 3339a0d01c..0000000000 --- a/sysdeps/arm/bits/huge_val.h +++ /dev/null @@ -1,56 +0,0 @@ -/* `HUGE_VAL' constant for IEEE 754 machines (where it is infinity). - Used by <stdlib.h> and <math.h> functions for overflow. - ARM version. - Copyright (C) 1992, 95, 96, 97, 98, 99, 2000, 2004 - Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#ifndef _MATH_H -# error "Never use <bits/huge_val.h> directly; include <math.h> instead." -#endif - -/* IEEE positive infinity (-HUGE_VAL is negative infinity). */ - -#if __GNUC_PREREQ(3,3) -# define HUGE_VAL (__builtin_huge_val()) -#elif __GNUC_PREREQ(2,96) -# define HUGE_VAL (__extension__ 0x1.0p2047) -#elif defined __GNUC__ - -# define HUGE_VAL \ - (__extension__ \ - ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) \ - { __l: 0x000000007ff00000ULL }).__d) - -#else /* not GCC */ - -# include <endian.h> - -typedef union { unsigned char __c[8]; double __d; } __huge_val_t; - -# if __BYTE_ORDER == __BIG_ENDIAN -# define __HUGE_VAL_bytes { 0, 0, 0, 0, 0x7f, 0xf0, 0, 0 } -# endif -# if __BYTE_ORDER == __LITTLE_ENDIAN -# define __HUGE_VAL_bytes { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0 } -# endif - -static __huge_val_t __huge_val = { __HUGE_VAL_bytes }; -# define HUGE_VAL (__huge_val.__d) - -#endif /* GCC. */ diff --git a/sysdeps/arm/bits/setjmp.h b/sysdeps/arm/bits/setjmp.h deleted file mode 100644 index 2792350f8b..0000000000 --- a/sysdeps/arm/bits/setjmp.h +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1997,1998,2005,2006 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -/* Define the machine-dependent type `jmp_buf'. ARM version. */ - -#ifndef _BITS_SETJMP_H -#define _BITS_SETJMP_H 1 - -#if !defined _SETJMP_H && !defined _PTHREAD_H -# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead." -#endif - -#ifndef _ASM -/* Jump buffer contains v1-v6, sl, fp, sp and pc. Other registers are not - saved. */ -typedef int __jmp_buf[10]; -#endif - -#endif diff --git a/sysdeps/arm/fpu/__longjmp.S b/sysdeps/arm/fpu/__longjmp.S deleted file mode 100644 index 90efeec1eb..0000000000 --- a/sysdeps/arm/fpu/__longjmp.S +++ /dev/null @@ -1,36 +0,0 @@ -/* longjmp for ARM. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#include <sysdep.h> -#define _SETJMP_H -#define _ASM -#include <bits/setjmp.h> - -/* __longjmp(jmpbuf, val) */ - -ENTRY (__longjmp) - mov ip, r0 /* save jmp_buf pointer */ - - movs r0, r1 /* get the return value in place */ - moveq r0, #1 /* can't let setjmp() return zero! */ - - lfmfd f4, 4, [ip] ! /* load the floating point regs */ - - LOADREGS(ia, ip, {v1-v6, sl, fp, sp, pc}) -END (__longjmp) diff --git a/sysdeps/arm/fpu/bits/fenv.h b/sysdeps/arm/fpu/bits/fenv.h deleted file mode 100644 index 7bd242385f..0000000000 --- a/sysdeps/arm/fpu/bits/fenv.h +++ /dev/null @@ -1,58 +0,0 @@ -/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Tem |
