public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [build, ada, doc] Remove --enable-threads=gnat support
@ 2011-05-23 11:01 Rainer Orth
  2011-05-23 11:27 ` Arnaud Charlet
  2011-05-23 13:07 ` Tristan Gingold
  0 siblings, 2 replies; 6+ messages in thread
From: Rainer Orth @ 2011-05-23 11:01 UTC (permalink / raw)
  To: gcc-patches; +Cc: Arnaud Charlet, Paolo Bonzini, Ralf Wildenhues

As Arnaud suggested with one of my --enable-threads cleanup patches,
--enable-threads=gnat is unused and can go.  The following patch
implements this.

Bootstrapped without regressions on i386-pc-solaris2.11.

While I didn't test the other affected configurations, I hope the
changes are sufficiently obvious that this is isn't necessary.  There
are no references to gthr-gnat left in the tree (outside of ChangeLog
files).

Ok for mainline?

	Rainer


2011-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	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.

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -741,7 +741,7 @@ CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(IN
 
 # 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
diff --git a/gcc/config/ia64/t-vms b/gcc/config/ia64/t-vms
--- a/gcc/config/ia64/t-vms
+++ b/gcc/config/ia64/t-vms
@@ -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 @@ CRTSTUFF_T_CFLAGS_S = -O0
 	$(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')
diff --git a/gcc/config/t-freebsd b/gcc/config/t-freebsd
--- a/gcc/config/t-freebsd
+++ b/gcc/config/t-freebsd
@@ -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
diff --git a/gcc/config/t-linux b/gcc/config/t-linux
--- a/gcc/config/t-linux
+++ b/gcc/config/t-linux
@@ -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/libgc
 
 # 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
diff --git a/gcc/config/t-sol2 b/gcc/config/t-sol2
--- a/gcc/config/t-sol2
+++ b/gcc/config/t-sol2
@@ -32,5 +32,5 @@ sol2.o: $(srcdir)/config/sol2.c $(CONFIG
 # 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
diff --git a/gcc/configure.ac b/gcc/configure.ac
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -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}
     ;;
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -1106,12 +1106,6 @@ like C++ and Java.  The possibilities fo
 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
diff --git a/gcc/gthr-gnat.h b/gcc/gthr-gnat.h
deleted file mode 100644
diff --git a/gcc/po/EXCLUDES b/gcc/po/EXCLUDES
--- a/gcc/po/EXCLUDES
+++ b/gcc/po/EXCLUDES
@@ -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
diff --git a/libgcc/config/s390/t-tpf b/libgcc/config/s390/t-tpf
--- a/libgcc/config/s390/t-tpf
+++ b/libgcc/config/s390/t-tpf
@@ -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

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [build, ada, doc] Remove --enable-threads=gnat support
  2011-05-23 11:01 [build, ada, doc] Remove --enable-threads=gnat support Rainer Orth
@ 2011-05-23 11:27 ` Arnaud Charlet
  2011-05-23 13:21   ` Rainer Orth
  2011-05-23 13:07 ` Tristan Gingold
  1 sibling, 1 reply; 6+ messages in thread
From: Arnaud Charlet @ 2011-05-23 11:27 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches, Paolo Bonzini, Ralf Wildenhues

> As Arnaud suggested with one of my --enable-threads cleanup patches,
> --enable-threads=gnat is unused and can go.  The following patch
> implements this.
> 
> Bootstrapped without regressions on i386-pc-solaris2.11.
> 
> While I didn't test the other affected configurations, I hope the
> changes are sufficiently obvious that this is isn't necessary.  There
> are no references to gthr-gnat left in the tree (outside of ChangeLog
> files).
> 
> Ok for mainline?

Certainly looks good to me, although I probably can't officially approve it.

Thanks for working on that!

Arno

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [build, ada, doc] Remove --enable-threads=gnat support
  2011-05-23 11:01 [build, ada, doc] Remove --enable-threads=gnat support Rainer Orth
  2011-05-23 11:27 ` Arnaud Charlet
@ 2011-05-23 13:07 ` Tristan Gingold
  1 sibling, 0 replies; 6+ messages in thread
From: Tristan Gingold @ 2011-05-23 13:07 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches, Arnaud Charlet, Paolo Bonzini, Ralf Wildenhues


On May 23, 2011, at 12:06 PM, Rainer Orth wrote:

> As Arnaud suggested with one of my --enable-threads cleanup patches,
> --enable-threads=gnat is unused and can go.  The following patch
> implements this.
> 
> Bootstrapped without regressions on i386-pc-solaris2.11.
> 
> While I didn't test the other affected configurations, I hope the
> changes are sufficiently obvious that this is isn't necessary.  There
> are no references to gthr-gnat left in the tree (outside of ChangeLog
> files).
> 
> Ok for mainline?

VMS part is (obviously) correct.

Tristan.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [build, ada, doc] Remove --enable-threads=gnat support
  2011-05-23 11:27 ` Arnaud Charlet
@ 2011-05-23 13:21   ` Rainer Orth
  2011-05-23 13:39     ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Rainer Orth @ 2011-05-23 13:21 UTC (permalink / raw)
  To: Arnaud Charlet; +Cc: gcc-patches, Paolo Bonzini, Ralf Wildenhues

Arnaud Charlet <charlet@adacore.com> writes:

> Certainly looks good to me, although I probably can't officially approve it.

I think you can since this only affects Ada.  I'll wait a day or two if
anyone objects, then install the patch.

Thanks.
	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [build, ada, doc] Remove --enable-threads=gnat support
  2011-05-23 13:21   ` Rainer Orth
@ 2011-05-23 13:39     ` Paolo Bonzini
  2011-05-23 14:13       ` Rainer Orth
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2011-05-23 13:39 UTC (permalink / raw)
  To: Rainer Orth; +Cc: Arnaud Charlet, gcc-patches, Ralf Wildenhues

On 05/23/2011 12:33 PM, Rainer Orth wrote:
>> >  Certainly looks good to me, although I probably can't officially approve it.
> I think you can since this only affects Ada.  I'll wait a day or two if
> anyone objects, then install the patch.

It's okay for me too.

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [build, ada, doc] Remove --enable-threads=gnat support
  2011-05-23 13:39     ` Paolo Bonzini
@ 2011-05-23 14:13       ` Rainer Orth
  0 siblings, 0 replies; 6+ messages in thread
From: Rainer Orth @ 2011-05-23 14:13 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Arnaud Charlet, gcc-patches, Ralf Wildenhues

Paolo Bonzini <bonzini@gnu.org> writes:

> On 05/23/2011 12:33 PM, Rainer Orth wrote:
>>> >  Certainly looks good to me, although I probably can't officially approve it.
>> I think you can since this only affects Ada.  I'll wait a day or two if
>> anyone objects, then install the patch.
>
> It's okay for me too.

Fine, I've installed the patch now.

Thanks.
	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-23 11:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 11:01 [build, ada, doc] Remove --enable-threads=gnat support Rainer Orth
2011-05-23 11:27 ` Arnaud Charlet
2011-05-23 13:21   ` Rainer Orth
2011-05-23 13:39     ` Paolo Bonzini
2011-05-23 14:13       ` Rainer Orth
2011-05-23 13:07 ` Tristan Gingold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).