gthr-gnat.c: Remove.

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
This commit is contained in:
Rainer Orth 2011-05-23 11:12:25 +00:00 committed by Rainer Orth
parent 15882fe97c
commit c80286502f
15 changed files with 32 additions and 152 deletions

View 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>

View 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

View 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')

View 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

View 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

View 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

2
gcc/configure vendored
View file

@ -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}
;;

View 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}
;;

View 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

View file

@ -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

View file

@ -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 */

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

View 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

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

View 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