Apply patch from Scott Bambrough <scottb@corelcomputer.com> Modified arm*-*-linux...
authorScott Bambrough <scottb@corelcomputer.com>
Fri, 26 Mar 1999 15:30:20 +0000 (15:30 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Fri, 26 Mar 1999 15:30:20 +0000 (15:30 +0000)
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

gcc/ChangeLog
gcc/config/arm/t-linux
gcc/configure
gcc/configure.in

index 00d112eed6cdac031726a29383d29be9928fd9ff..807ba0ece5e20a37c4ed27f594bd49056174bb01 100644 (file)
@@ -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
index 9fdeae93c7a18b70513912230300231426bcf3a4..9b7c3e38f4e257c260ec9f62dbcf1481c8a77021 100644 (file)
@@ -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
index cac883ebfb92ce4911a4be605e4e92dd73771d05..d923cc9b01e50090e9cebca64e5d78beb21d6eb8 100755 (executable)
@@ -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
index 4ab49ff74acdf0cc42ec65af86fbe504812fb11d..f1c99de4f183f778194690be7464c090768e3d92 100644 (file)
@@ -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