]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gthr-gnat.c: Remove.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 23 May 2011 11:12:25 +0000 (11:12 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 23 May 2011 11:12:25 +0000 (11:12 +0000)
gcc:
* gthr-gnat.c: Remove.
* gthr-gnat.h: Remove.
* Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
* config/t-freebsd (LIB2ADDEH): Likewise.
* config/t-linux (LIB2ADDEH): Likewise.
* config/t-sol2 (LIB2ADDEH): Likewise.
* config/ia64/t-vms (LIB2ADDEH): Likewise.
* configure.ac (target_thread_file): Remove gnat handling.
* configure: Regenerate.
* doc/install.texi (Configuration, --enable-threads): Remove gnat.

gcc/po:
* EXCLUDES: Remove gthr-gnat.c, gthr-gnat.h.

libgcc:
* config/s390/t-tpf (LIB2ADDEH): Remove $(gcc_srcdir)/gthr-gnat.c.

From-SVN: r174064

15 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/config/ia64/t-vms
gcc/config/t-freebsd
gcc/config/t-linux
gcc/config/t-sol2
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
gcc/gthr-gnat.c [deleted file]
gcc/gthr-gnat.h [deleted file]
gcc/po/ChangeLog
gcc/po/EXCLUDES
libgcc/ChangeLog
libgcc/config/s390/t-tpf

index 70c97e03f8dae4fdb36f380c8e50dd3ebd5b6957..253ce2ac7eeb2810bfbc91ceec9da08256f9d2b8 100644 (file)
@@ -1,3 +1,16 @@
+2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * gthr-gnat.c: Remove.
+       * gthr-gnat.h: Remove.
+       * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
+       * config/t-freebsd (LIB2ADDEH): Likewise.
+       * config/t-linux (LIB2ADDEH): Likewise.
+       * config/t-sol2 (LIB2ADDEH): Likewise.
+       * config/ia64/t-vms (LIB2ADDEH): Likewise.
+       * configure.ac (target_thread_file): Remove gnat handling.
+       * configure: Regenerate.
+       * doc/install.texi (Configuration, --enable-threads): Remove gnat.
+
 2011-05-23  Tristan Gingold  <gingold@adacore.com>
            Eric Botcazou  <ebotcazou@adacore.com>
 
index a9d20c5a21a5d9352218f673be098cd59c3810f7..1c65a5bf00c744b8cad997450e77e2b10be27425 100644 (file)
@@ -680,7 +680,7 @@ CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
 
 # Additional sources to handle exceptions; overridden by targets as needed.
 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
-   $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
+   $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
 LIB2ADDEHSTATIC = $(LIB2ADDEH)
 LIB2ADDEHSHARED = $(LIB2ADDEH)
 LIB2ADDEHDEP = $(UNWIND_H) unwind-pe.h unwind.inc unwind-dw2-fde.h unwind-dw2.h
index d77a2cf37968fa1407266206f7fd0cd011fb2d79..bcd753401f1d6ce205349a196a1b44f9429092fa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009
+# Copyright (C) 2009, 2011
 # Free Software Foundation, Inc.
 #
 # This file is part of GCC.
@@ -32,7 +32,7 @@ $(T)crtinitS.o: $(srcdir)/config/ia64/vms-crtinit.asm $(GCC_PASSES)
        $(GCC_FOR_TARGET) -I. -c -o $(T)crtinitS.o -x assembler-with-cpp \
                $(srcdir)/config/ia64/vms-crtinit.asm
 
-LIB2ADDEH += $(srcdir)/config/ia64/fde-vms.c $(srcdir)/gthr-gnat.c
+LIB2ADDEH += $(srcdir)/config/ia64/fde-vms.c
 
 # Shared library macros
 shlib_version:=$(shell echo $(BASEVER_c) | sed -e 's/\./,/' -e 's/\.//g')
index c1b086ea116443c44c8f786d0cc6d019f2bd2095..276e2d7a5ad7a23185808b3098bc7894aba5e3d3 100644 (file)
@@ -6,5 +6,5 @@ TARGET_LIBGCC2_CFLAGS += -fPIC
 
 # Use unwind-dw2-fde-glibc
 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
-  $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
+  $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
 LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
index 1a7d79e211aca51194d086b505c3a1e681807b1a..38b3b58d9f4db10667610c8cf40a4bfbf86898a6 100644 (file)
@@ -1,5 +1,5 @@
 # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003,
-# 2004 Free Software Foundation, Inc.
+# 2004, 2011 Free Software Foundation, Inc.
 #
 # This file is part of GCC.
 #
@@ -28,5 +28,5 @@ SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
 
 # Use unwind-dw2-fde-glibc
 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
-  $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
+  $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
 LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
index 1604b9e499fffd2c34e5fa5be2c7190ef7ec69fc..9e06665a34a659eb0e76193dafb3d7ae4d3f1595 100644 (file)
@@ -32,5 +32,5 @@ sol2.o: $(srcdir)/config/sol2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
 # Use unwind-dw2-fde-glibc.c.  Unless linker support and dl_iterate_phdr
 # are present, automatically falls back to unwind-dw2-fde.c.
 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
-  $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
+  $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
 LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
index 4672f49f92e30852f0616857fd349dc989f26437..274af3eccd7e30aa02e5cf5e341a0697efa6811c 100755 (executable)
@@ -10794,7 +10794,7 @@ case ${enable_threads} in
     # default
     target_thread_file='single'
     ;;
-  aix | dce | gnat | lynx | mipssde | nks | posix | posix95 | rtems | \
+  aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
   single | tpf | vxworks | win32)
     target_thread_file=${enable_threads}
     ;;
index fefee49d8587b83f90164e855300c45153f81a83..9ace66db9cb45df8ca5807b058ada186713d142f 100644 (file)
@@ -1340,7 +1340,7 @@ case ${enable_threads} in
     # default
     target_thread_file='single'
     ;;
-  aix | dce | gnat | lynx | mipssde | nks | posix | posix95 | rtems | \
+  aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
   single | tpf | vxworks | win32)
     target_thread_file=${enable_threads}
     ;;
index 904b805dc6182f591a5531bd479d0840344a1ba4..418fa48fcce62f9bd71945a74d53d320f232cee9 100644 (file)
@@ -1106,12 +1106,6 @@ like C++ and Java.  The possibilities for @var{lib} are:
 AIX thread support.
 @item dce
 DCE thread support.
-@item gnat
-Ada tasking support.  For non-Ada programs, this setting is equivalent
-to @samp{single}.  When used in conjunction with the Ada run time, it
-causes GCC to use the same thread primitives as Ada uses.  This option
-is necessary when using both Ada and the back end exception handling,
-which is the default for most Ada targets.
 @item lynx
 LynxOS thread support.
 @item mipssde
diff --git a/gcc/gthr-gnat.c b/gcc/gthr-gnat.c
deleted file mode 100644 (file)
index 4730bd3..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/* Threads compatibility routines for libgcc2.  */
-/* Compile this one with gcc.  */
-/* Copyright (C) 2003, 2004, 2009 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.
-
-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/>.  */
-
-#include "gthr-gnat.h"
-
-#ifndef HIDE_EXPORTS
-#pragma GCC visibility push(default)
-#endif
-
-#ifdef __cplusplus
-#define UNUSED(x)
-#else
-#define UNUSED(x) x __attribute__((unused))
-#endif
-
-void __gnat_default_lock (void);
-void __gnat_default_unlock (void);
-
-void
-__gnat_default_lock (void)
-{
-  return;
-}
-
-void
-__gnat_default_unlock (void)
-{
-  return;
-}
-
-static void (*__gnat_task_lock) (void) = *__gnat_default_lock;
-static void (*__gnat_task_unlock) (void) = *__gnat_default_unlock;
-
- void
-__gnat_install_locks (void (*lock) (void), void (*unlock) (void))
-{
-  __gnat_task_lock = lock;
-  __gnat_task_unlock = unlock;
-}
-
-int
-__gthread_active_p (void)
-{
-  return 0;
-}
-
-int
-__gthread_mutex_lock (__gthread_mutex_t * UNUSED (mutex))
-{
-  __gnat_task_lock ();
-  return 0;
-}
-
-int
-__gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex))
-{
-  __gnat_task_unlock ();
-  return 0;
-}
-
-#ifndef HIDE_EXPORTS
-#pragma GCC visibility pop
-#endif
diff --git a/gcc/gthr-gnat.h b/gcc/gthr-gnat.h
deleted file mode 100644 (file)
index a10aa80..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Threads compatibility routines for libgcc2.  */
-/* Compile this one with gcc.  */
-/* Copyright (C) 2003, 2004, 2008, 2009 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.
-
-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/>.  */
-
-#ifndef GCC_GTHR_GNAT_H
-#define GCC_GTHR_GNAT_H
-
-#ifndef HIDE_EXPORTS
-#pragma GCC visibility push(default)
-#endif
-
-/* Just provide compatibility for mutex handling.  */
-
-typedef int __gthread_mutex_t;
-
-#define __GTHREAD_MUTEX_INIT 0
-
-extern void __gnat_install_locks (void (*) (void), void (*) (void));
-extern int __gthread_active_p (void);
-extern int __gthread_mutex_lock (__gthread_mutex_t *);
-extern int __gthread_mutex_unlock (__gthread_mutex_t *);
-
-#ifndef HIDE_EXPORTS
-#pragma GCC visibility pop
-#endif
-
-#endif /* ! GCC_GTHR_GNAT_H */
-
index 7ebc82a56b4b2d90d0b6eef555a26adb4bce77c4..cb258afea9be0214e3085d82bb9d6a38a644aa13 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * EXCLUDES: Remove gthr-gnat.c, gthr-gnat.h.
+
 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
 
        * zh_CN.po: Update.
index f53f845c34b0c722f54cecd526888eb05e8146b3..7eb38b5801273fb3f858eb3108a5ded9904d268c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2001, 2004, 2009, 2010 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2009, 2010, 2011 Free Software Foundation, Inc.
 #
 # This file is part of GCC.
 #
@@ -32,8 +32,6 @@ gcov-io.h
 gcov-iov.c
 gthr-aix.h
 gthr-dce.h
-gthr-gnat.c
-gthr-gnat.h
 gthr-posix.c
 gthr-posix.h
 gthr-rtems.h
index eb7e46c63c3fdfbfb50c3366f5b2d68c5b07d6b0..c0bf9551ae34cbbe34df3f25fc9ca8b14a0dfbc2 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config/s390/t-tpf (LIB2ADDEH): Remove $(gcc_srcdir)/gthr-gnat.c.
+
 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
 
        * config/i386/darwin-lib.h: New file.
index b1e8f6910da15826e53846decbc07199594fd75f..7890d27297ea529139702ede87a1ec6e92cc9eaf 100644 (file)
@@ -3,6 +3,6 @@ HOST_LIBGCC2_CFLAGS += -fPIC
 
 # Use unwind-dw2-fde-glibc.
 LIB2ADDEH = $(gcc_srcdir)/unwind-dw2.c $(gcc_srcdir)/unwind-dw2-fde-glibc.c \
-  $(gcc_srcdir)/unwind-sjlj.c $(gcc_srcdir)/gthr-gnat.c $(gcc_srcdir)/unwind-c.c \
+  $(gcc_srcdir)/unwind-sjlj.c $(gcc_srcdir)/unwind-c.c \
   $(gcc_srcdir)/emutls.c
 LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h