PIC patches for libio, libiberty, libstdc++

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Sun Feb 28 18:15:00 GMT 1999


Am Thu, 18 Feb 1999 schrieb Jeffrey A Law:
>In message < 4.1.19990218125519.03656150@mail.lauterbach.com >you write:
>  > At 12:13 18.02.99 , Richard Earnshaw wrote:
>  > >
>  > >philb@gnu.org said:
>  > >>  if [ "${shared}" = "yes" ]; then
>  > >>    case "${target}" in
>  > >> +    arm*-*) frags="${frags} ../../config/mh-armpic" ;;
>  > >>      hppa*-*-*)		frags=../../config/mh-papic ;; 
>  > >
>  > >This isn't a proper canonical triplet.  It should either be arm-*-* or 
>  > >arm*-*-*.  I suspect the latter.
>  > 
>  > Hmm, before these tables get extended even more, would someone look at my
>  > patch http://www.cygnus.com/ml/egcs-patches/1999-Jan/0635.html ?
>  > It is meant to unify/simplify the fragment handling, it just needs some
>  > testing. In the meantime I found one minor bug in my patch, in
>  > libiberty/config.table it should be:
>  >   frags="${frags} ../mh-frag"
>  > instead of:
>  >   frags="${frags} $r/mh-frag"
>I looked at it, but it didn't seem right to me, particularly in the presense of
>multiple fragment files.  But I couldn't convince myself either way.  SO I
>tabled it until I could look at it more closely.

Ok, I did the simple version as requested. I cleaned up all the files so they
look similar. Is this version fine for all of you? I wonder a little bit about
why cygwin32 is only special cased in the toplevel configure.in
and libiberty/config.table?

Franz.


	* configure.in: cleanup, add mh-*pic handling for arm, special
	case powerpc*-*-aix*

============================================================
Index: configure.in
--- configure.in	1999/02/09 21:01:13	1.33
+++ configure.in	1999/02/24 20:13:56
@@ -283,25 +283,31 @@ esac
 
 if [ x${shared} = xyes ]; then
   case "${host}" in
-    hppa*)
+    alpha*-*-linux*)
+      host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
+      ;;
+    arm*-*-*)
+      host_makefile_frag="${host_makefile_frag} config/mh-armpic"
+      ;;
+    hppa*-*-*)
       host_makefile_frag="${host_makefile_frag} config/mh-papic"
       ;;
     i[3456]86-*-cygwin32*)
       # We don't want -fPIC on cygwin32.
       ;;
-    i[3456]86-*)
+    i[3456]86-*-*)
       host_makefile_frag="${host_makefile_frag} config/mh-x86pic"
       ;;
-    sparc64-*)
+    sparc64-*-*)
       host_makefile_frag="${host_makefile_frag} config/mh-sparcpic"
       ;;
-    powerpc*-*)
-      host_makefile_frag="${host_makefile_frag} config/mh-ppcpic"
+    powerpc*-*-aix*)
+      # We don't want -fPIC on AIX.
       ;;
-    alpha*-*-linux*)
-      host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
+    powerpc*-*-*)
+      host_makefile_frag="${host_makefile_frag} config/mh-ppcpic"
       ;;
-    *)
+    *-*-*)
       if test -f ${srcdir}/config/mh-${host_cpu}pic; then
         host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
       fi

	* config.table: cleanup and add mh-*pic handling for alpha, arm, powerpc

============================================================
Index: libiberty/config.table
--- libiberty/config.table	1998/10/08 22:48:50	1.10
+++ libiberty/config.table	1999/02/24 20:14:25
@@ -18,10 +18,14 @@ case "${enable_shared}" in
 esac
 if [ "${shared}" = "yes" ]; then
   case "${host}" in
-    *-*-cygwin32*) ;;
-    hppa*-*-*)	   frags="${frags} ../../config/mh-papic" ;;
-    i[3456]86-*-*) frags="${frags} ../../config/mh-x86pic" ;;
-    *-*-*)	   frags="${frags} ../../config/mh-${host_cpu}pic" ;;
+    *-*-cygwin32*)	;;
+    alpha*-*-linux*)	frags="${frags} ../../config/mh-elfalphapic" ;;
+    arm*-*-*)		frags="${frags} ../../config/mh-armpic" ;;
+    hppa*-*-*)		frags="${frags} ../../config/mh-papic" ;;
+    i[3456]86-*-*)	frags="${frags} ../../config/mh-x86pic" ;;
+    powerpc*-*-aix*)	;;
+    powerpc*-*-*)	frags="${frags} ../../config/mh-ppcpic" ;;
+    *-*-*)		frags="${frags} ../../config/mh-${host_cpu}pic" ;;
   esac
 fi
 

	* configure.in: cleanup and add mh-*pic handling for arm, powerpc

============================================================
Index: libio/configure.in
--- libio/configure.in	1998/11/26 01:48:29	1.15
+++ libio/configure.in	1999/02/24 20:14:26
@@ -67,11 +67,13 @@ esac
 
 if [ "${shared}" = "yes" ]; then
   case "${target}" in
-    hppa*-*)	 frags="${frags} ../../config/mh-papic" ;;
-    i[3456]86-*) frags="${frags} ../../config/mh-x86pic" ;;
-    alpha*-*-linux*)
-		 frags="${frags} ../../config/mh-elfalphapic" ;;
-    *)	         frags="${frags} ../../config/mh-${target_cpu}pic" ;;
+    alpha*-*-linux*)	frags="${frags} ../../config/mh-elfalphapic" ;;
+    arm*-*-*)		frags="${frags} ../../config/mh-armpic" ;;
+    hppa*-*-*)		frags="${frags} ../../config/mh-papic" ;;
+    i[3456]86-*-*)	frags="${frags} ../../config/mh-x86pic" ;;
+    powerpc*-*-aix*)	;;
+    powerpc*-*-*)	frags="${frags} ../../config/mh-ppcpic" ;;
+    *-*-*)		frags="${frags} ../../config/mh-${target_cpu}pic" ;;
   esac
 fi
 

	* configure.in: add mh-*pic handling for alpha, arm, powerpc

============================================================
Index: libstdc++/configure.in
--- libstdc++/configure.in	1999/02/18 18:57:53	1.18
+++ libstdc++/configure.in	1999/02/24 20:14:27
@@ -53,8 +53,12 @@ esac
 
 if [ "${shared}" = "yes" ]; then
   case "${target}" in
+    alpha*-*-linux*)	frags=../../config/mh-elfalphapic ;;
+    arm*-*-*)		frags=../../config/mh-armpic ;;
     hppa*-*-*)		frags=../../config/mh-papic ;;
     i[3456]86-*-*)	frags=../../config/mh-x86pic ;;
+    powerpc*-*-aix*)	;;
+    powerpc*-*-*)	frags=../../config/mh-ppcpic ;;
     *-*-*) 		frags=../../config/mh-${target_cpu}pic ;;
   esac
   case "${target}" in


More information about the Gcc-patches mailing list