aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorScott Bambrough <scottb@corelcomputer.com>1999-03-26 15:30:20 +0000
committerNick Clifton <nickc@gcc.gnu.org>1999-03-26 15:30:20 +0000
commit65120c403e5b5ac19467ec61b9708e48b0abc18d (patch)
treec5b57f5d0f0547ab8eebd7b846bd76bb6ceea45f /gcc
parenta276c69fa9b11429d69f53b08f1d374893083643 (diff)
downloadgcc-65120c403e5b5ac19467ec61b9708e48b0abc18d.zip
gcc-65120c403e5b5ac19467ec61b9708e48b0abc18d.tar.gz
gcc-65120c403e5b5ac19467ec61b9708e48b0abc18d.tar.bz2
Apply patch from Scott Bambrough <scottb@corelcomputer.com> Modified arm*-*-linux-gnu* target to set thread_file to 'posix' if --enable-threads...
Apply patch from Scott Bambrough <scottb@corelcomputer.com> Modified arm*-*-linux-gnu* target to set thread_file to 'posix' if --enable-threads, --enable-threads=[yes,pthreads,posix] is passed as a command line parameter to configure. Modified TARGET_LIBGCC2_CFLAGS to include -fPIC. If not included libgcc2 is not compiled with PIC flag, as it should be. From-SVN: r26000
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/arm/t-linux2
-rwxr-xr-xgcc/configure5
-rw-r--r--gcc/configure.in5
4 files changed, 21 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 00d112e..807ba0e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+1999-02-16 Scott Bambrough <scottb@corelcomputer.com>
+
+ * configure.in (arm*-*-linux-gnu*): Set thread_file to 'posix' if
+ --enable-threads[={yes,pthreads,posix}] is passed as a command
+ line parameter to configure.
+
+ * configure: Regenerate.
+
+ * gcc/config/arm/t-linux (TARGET_LIBGCC2_CFLAGS): Include -fPIC.
+
Fri Mar 26 19:42:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (combine_givs): Fix index into can_combine when doing
diff --git a/gcc/config/arm/t-linux b/gcc/config/arm/t-linux
index 9fdeae9..9b7c3e3 100644
--- a/gcc/config/arm/t-linux
+++ b/gcc/config/arm/t-linux
@@ -1,6 +1,6 @@
# Just for these, we omit the frame pointer since it makes such a big
# difference. It is then pointless adding debugging.
-TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer
+TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC
LIBGCC2_DEBUG_CFLAGS = -g0
# Don't build enquire
diff --git a/gcc/configure b/gcc/configure
index cac883e..d923cc9 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -3088,6 +3088,11 @@ for machine in $build $host $target; do
tmake_file="t-linux arm/t-linux"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
+ case x${enable_threads} in
+ x | xyes | xpthreads | xposix)
+ thread_file='posix'
+ ;;
+ esac
;;
arm*-*-aout)
tm_file=arm/aout.h
diff --git a/gcc/configure.in b/gcc/configure.in
index 4ab49ff..f1c99de 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -720,6 +720,11 @@ changequote([,])dnl
tmake_file="t-linux arm/t-linux"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
+ case x${enable_threads} in
+ x | xyes | xpthreads | xposix)
+ thread_file='posix'
+ ;;
+ esac
;;
arm*-*-aout)
tm_file=arm/aout.h