wrapper.exp (${tool}_maybe_build_wrapper): Set up GCC_EXEC_PREFIX before building the wrapper.

* lib/wrapper.exp (${tool}_maybe_build_wrapper): Set up
GCC_EXEC_PREFIX before building the wrapper.

From-SVN: r150889
This commit is contained in:
DJ Delorie 2009-08-18 14:36:58 -04:00 committed by DJ Delorie
parent e72cee90d5
commit 488b329c8f
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-08-18 DJ Delorie <dj@redhat.com>
* lib/wrapper.exp (${tool}_maybe_build_wrapper): Set up
GCC_EXEC_PREFIX before building the wrapper.
2009-08-18 Nathan Froyd <froydnj@codesourcery.com>
* gcc.dg/vect/vect.exp: Add new stanza for aligned-section-anchors-*

View file

@ -16,6 +16,8 @@
# This file contains GCC-specifics for status wrappers for test programs.
load_lib target-libpath.exp
# ${tool}_maybe_build_wrapper -- Build wrapper object if the target
# needs it. FILENAME is the path to the wrapper file. If there are
# additional arguments, they are command-line options to provide to
@ -27,6 +29,7 @@ proc ${tool}_maybe_build_wrapper { filename args } {
if { [target_info needs_status_wrapper] != "" \
&& [target_info needs_status_wrapper] != "0" \
&& ![info exists gluefile] } {
set_ld_library_path_env_vars
set saved_wrap_compile_flags [target_info wrap_compile_flags]
set flags [join $args " "]
# The wrapper code may contain code that gcc objects on. This