Commit a55da563 by H.J. Lu Committed by H.J. Lu

Check and export LT_RCU_$id instead of LT_RCU.

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
parent 98cf223c
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> 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
PR tree-optimization/46675 PR tree-optimization/46675
...@@ -28,6 +28,7 @@ fast_install=@enable_fast_install@ ...@@ -28,6 +28,7 @@ fast_install=@enable_fast_install@
objdir=@objdir@ objdir=@objdir@
invoked=`basename "$0"` invoked=`basename "$0"`
id=$invoked
case "$invoked" in case "$invoked" in
as) as)
original=$ORIGINAL_AS_FOR_TARGET original=$ORIGINAL_AS_FOR_TARGET
...@@ -44,6 +45,7 @@ case "$invoked" in ...@@ -44,6 +45,7 @@ case "$invoked" in
fi fi
prog=ld-new$exeext prog=ld-new$exeext
dir=ld dir=ld
id=ld
;; ;;
nm) nm)
original=$ORIGINAL_NM_FOR_TARGET original=$ORIGINAL_NM_FOR_TARGET
...@@ -68,9 +70,11 @@ case "$original" in ...@@ -68,9 +70,11 @@ case "$original" in
# libtool has not relinked ld-new yet, but we cannot just use the # libtool has not relinked ld-new yet, but we cannot just use the
# previous stage (because then the relinking would just never happen!). # previous stage (because then the relinking would just never happen!).
# So we take extra care to use prev-ld/ld-new *on recursive calls*. # 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+"$@"} 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+"$@"} $scriptdir/../$dir/$prog ${1+"$@"}
result=$? result=$?
exit $result exit $result
...@@ -83,5 +87,3 @@ case "$original" in ...@@ -83,5 +87,3 @@ case "$original" in
exec $original ${1+"$@"} exec $original ${1+"$@"}
;; ;;
esac esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment