]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Check and export LT_RCU_$id instead of LT_RCU.
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 29 Nov 2010 22:18:35 +0000 (22:18 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 29 Nov 2010 22:18:35 +0000 (14:18 -0800)
2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>

PR driver/46712
* exec-tool.in (id): New.
Check and export LT_RCU_$id instead of LT_RCU.

From-SVN: r167275

gcc/ChangeLog
gcc/exec-tool.in

index ca686329cb466453f572b993e0f74a671251d8b3..5706ef8063e6df4c743c11ccfe1e031167fdfc7a 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR driver/46712
+       * exec-tool.in (id): New.
+       Check and export LT_RCU_$id instead of LT_RCU.
+
 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
 
        PR tree-optimization/46675
index 0ae8f2aa73ae19d7d41a285a304f39da59234a88..dff73a6ca41889b62cee9f1741ec4c14aaa5213f 100644 (file)
@@ -28,6 +28,7 @@ fast_install=@enable_fast_install@
 objdir=@objdir@
 
 invoked=`basename "$0"`
+id=$invoked
 case "$invoked" in
   as)
     original=$ORIGINAL_AS_FOR_TARGET
@@ -44,6 +45,7 @@ case "$invoked" in
     fi
     prog=ld-new$exeext
     dir=ld
+    id=ld
     ;;
   nm)
     original=$ORIGINAL_NM_FOR_TARGET
@@ -68,9 +70,11 @@ case "$original" in
       # libtool has not relinked ld-new yet, but we cannot just use the
       # previous stage (because then the relinking would just never happen!).
       # So we take extra care to use prev-ld/ld-new *on recursive calls*.
+      eval LT_RCU="\${LT_RCU_$id}"
       test x"$LT_RCU" = x"1" && exec $scriptdir/../prev-$dir/$prog ${1+"$@"}
 
-      LT_RCU=1; export LT_RCU
+      eval LT_RCU_$id=1
+      export LT_RCU_$id
       $scriptdir/../$dir/$prog ${1+"$@"}
       result=$?
       exit $result
@@ -83,5 +87,3 @@ case "$original" in
     exec $original ${1+"$@"}
     ;;
 esac
-
-