+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>
# 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
-# Copyright (C) 2009
+# Copyright (C) 2009, 2011
# Free Software Foundation, Inc.
#
# This file is part of GCC.
$(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')
# 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
# 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.
#
# 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
# 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
# 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}
;;
# 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}
;;
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
+++ /dev/null
-/* 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
+++ /dev/null
-/* 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 */
-
+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.
-# 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.
#
gcov-iov.c
gthr-aix.h
gthr-dce.h
-gthr-gnat.c
-gthr-gnat.h
gthr-posix.c
gthr-posix.h
gthr-rtems.h
+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.
# 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