public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Mark Mitchell <mark@codesourcery.com>
Cc: "Martin v. Loewis" <martin@v.loewis.de>,
	Richard Henderson <rth@twiddle.net>,
	"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: [PATCH] Default to --enable-threads=posix on Linux (was Re: libgcc_s, Linux, and PT_GNU_EH_FRAME, and binutils)
Date: Tue, 06 Aug 2002 02:32:00 -0000	[thread overview]
Message-ID: <20020806113155.Q20867@sunsite.ms.mff.cuni.cz> (raw)
In-Reply-To: <4220000.1028584720@warlock.codesourcery.com>; from mark@codesourcery.com on Mon, Aug 05, 2002 at 02:58:40PM -0700

On Mon, Aug 05, 2002 at 02:58:40PM -0700, Mark Mitchell wrote:
> Do it quickly, send me a patch, and we can obviate the debate by having
> the change in.  I just can't see holding up the release for that.

Here is the proposed minimum patch to default to --enable-threads=posix
unless either some other --enable-threads option or --disable-threads
is given on Linux. I don't see why somebody might want not to build thread
aware gcc/libstdc++ by default.

I've verified that configure with --disable-threads gives the configuration
which used to be, ie. no thread support and that no --*threads option given
to configure causes posix threads to be used.

Ok to commit to mainline/3.2 branch?

2002-08-06  Jakub Jelinek  <jakub@redhat.com>

	* config.gcc (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
	x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
	powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
	s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*): Default
	to --enable-threads=posix if no --{enable,disable}-threads is given
	to configure.

--- gcc/config.gcc.jj	2002-06-10 23:25:16.000000000 +0200
+++ gcc/config.gcc	2002-08-06 11:35:53.000000000 +0200
@@ -558,9 +558,10 @@ alpha*-*-linux*)
 	tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
 	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
 	gas=yes gnu_ld=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 alpha*-*-freebsd*)
 	tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
@@ -871,9 +872,10 @@ hppa*-*-linux* | parisc*-*-linux*)
 	tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
 	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
 	gas=yes gnu_ld=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 hppa*-*-openbsd*)
 	target_cpu_default="MASK_PA_11"
@@ -1316,9 +1318,10 @@ i[34567]86-*-linux*)	# Intel 80386's run
 	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
 	gnu_ld=yes
 	float_format=i386
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 x86_64-*-linux*)
 	tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h \
@@ -1327,9 +1330,10 @@ x86_64-*-linux*)
 	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
 	gnu_ld=yes
 	float_format=i386
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 i[34567]86-*-gnu*)
 	float_format=i386
@@ -1705,9 +1709,10 @@ ia64*-*-linux*)
 	tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
 	tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
 	target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	float_format=i386
 	;;
 ia64*-*-hpux*)
@@ -2098,9 +2103,10 @@ m68k-*-linux*)		# Motorola m68k's runnin
 	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 	float_format=m68k
 	gnu_ld=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 m68k-*-psos*)
 	tmake_file=m68k/t-m68kbare
@@ -2397,9 +2403,10 @@ mips*-*-linux*)				# Linux MIPS, either 
 	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
 	gnu_ld=yes
 	gas=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 mips*el-*-openbsd*)	# mips little endian
 	target_cpu_default="MASK_GAS|MASK_ABICALLS"
@@ -2867,17 +2874,19 @@ powerpc-*-linux-gnualtivec*)
 	tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
 	out_file=rs6000/rs6000.c
 	tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 powerpc-*-linux*)
 	tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
 	out_file=rs6000/rs6000.c
 	tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 powerpc-*-gnu-gnualtivec*)
 	tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
@@ -2993,9 +3002,10 @@ s390-*-linux*)
 	tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
 	tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
 	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 s390x-*-linux*)
 	tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
@@ -3004,9 +3014,10 @@ s390x-*-linux*)
 	out_file=s390/s390.c
 	tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64"
 	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	;;
 sh-*-elf*)
 	tmake_file="sh/t-sh sh/t-elf"
@@ -3045,9 +3056,10 @@ sh-*-linux*)
 	tm_file="${tm_file} sh/elf.h sh/linux.h"
 	tmake_file="sh/t-sh sh/t-elf sh/t-linux"
 	gas=yes gnu_ld=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	float_format=sh
 	;;
 sh-*-*)
@@ -3131,9 +3143,10 @@ sparc-*-linux*)		# Sparc's running GNU/L
 	tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
 	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
 	gnu_ld=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	float_format=sparc
 	;;
 sparc-*-lynxos*)
@@ -3332,9 +3345,10 @@ sparc64-*-linux*)		# 64-bit Sparc's runn
 	tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
 	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
 	gnu_ld=yes
-	if test x$enable_threads = xyes; then
-		thread_file='posix'
-	fi
+	case x${enable_threads} in
+		x | xyes) thread_file='posix'
+		;;
+	esac
 	float_format=sparc
 	;;
 sparc64-*-netbsd*)


	Jakub

  parent reply	other threads:[~2002-08-06  9:32 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-04 21:44 libgcc_s, Linux, and PT_GNU_EH_FRAME, and binutils Martin v. Loewis
2002-08-04 23:11 ` Jakub Jelinek
2002-08-05  1:05   ` Martin v. Loewis
2002-08-05  1:12     ` Jakub Jelinek
2002-08-05  1:51       ` Martin v. Loewis
2002-08-05  2:57       ` Richard Henderson
2002-08-05  5:45         ` Daniel Jacobowitz
2002-08-05  7:25           ` Richard Henderson
2002-08-05  7:33             ` Mark Mitchell
2002-08-05  7:57               ` Daniel Jacobowitz
2002-08-05  8:04                 ` Mark Mitchell
2002-08-05  8:14                 ` Jakub Jelinek
2002-08-05  8:22                   ` Daniel Jacobowitz
2002-08-05  8:34                     ` Jakub Jelinek
2002-08-05  8:51                       ` Daniel Jacobowitz
2002-08-05 13:15                 ` Martin v. Loewis
2002-08-05  7:05         ` Mark Mitchell
2002-08-05 13:17           ` Martin v. Loewis
2002-08-05 13:45             ` Mark Mitchell
2002-08-05 13:48               ` Jakub Jelinek
2002-08-05 13:51                 ` Mark Mitchell
2002-08-05 15:03                   ` Martin v. Loewis
2002-08-05 22:21                   ` Andreas Jaeger
2002-08-06  8:46                     ` Mark Mitchell
2002-08-06  4:04                   ` Gerald Pfeifer
2002-08-06  8:51                     ` Mark Mitchell
2002-08-05 14:21               ` Martin v. Loewis
2002-08-05 15:00                 ` Mark Mitchell
2002-08-05 15:12                   ` Franz Sirl
2002-08-05 18:40                     ` Mark Mitchell
2002-08-05 15:29                   ` Jakub Jelinek
2002-08-05 16:48                     ` Richard Henderson
2002-08-05 23:36                       ` Jakub Jelinek
2002-08-06  0:00                         ` Neil Booth
2002-08-06  3:11                         ` Richard Henderson
2002-08-06  9:16                           ` Mark Mitchell
2002-08-06  9:45                             ` Jakub Jelinek
2002-08-06 10:05                               ` Mark Mitchell
2002-08-06 10:56                                 ` Jakub Jelinek
2002-08-06 11:20                                   ` Mark Mitchell
2002-08-06 13:17                                     ` Richard Henderson
2002-08-06 13:35                                       ` Mark Mitchell
2002-08-06 15:12                                         ` Geoff Keating
2002-08-07  4:38                                         ` Michael Matz
2002-08-05 18:42                     ` Mark Mitchell
2002-08-06  2:32                   ` Jakub Jelinek [this message]
2002-08-06  2:47                     ` [PATCH] Default to --enable-threads=posix on Linux (was Re: libgcc_s, Linux, and PT_GNU_EH_FRAME, and binutils) Christoph Hellwig
2002-08-06  2:54                     ` Franz Sirl
2002-08-06  3:20                       ` Jakub Jelinek
2002-08-06  5:21                         ` Franz Sirl
2002-08-06  6:00                           ` Daniel Jacobowitz
2002-08-06  8:15                           ` [PATCH] Default to --enable-threads=posix on Linux (was " Mark Mitchell
2002-08-06  8:12                     ` Mark Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020806113155.Q20867@sunsite.ms.mff.cuni.cz \
    --to=jakub@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=mark@codesourcery.com \
    --cc=martin@v.loewis.de \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).