struct-layout-1.exp (orig_gcc_exec_prefix_saved): Always initialize.

* gcc.dg/compat/struct-layout-1.exp (orig_gcc_exec_prefix_saved):
	Always initialize.
	* g++.dg/compat/struct-layout-1.exp (orig_gcc_exec_prefix_saved):
	Always initialize.

From-SVN: r136704
This commit is contained in:
Joseph Myers 2008-06-12 13:19:02 +01:00 committed by Joseph Myers
parent b896f9fd47
commit fcd2a5d4d6
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-06-12 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/compat/struct-layout-1.exp (orig_gcc_exec_prefix_saved):
Always initialize.
* g++.dg/compat/struct-layout-1.exp (orig_gcc_exec_prefix_saved):
Always initialize.
2008-06-12 Jakub Jelinek <jakub@redhat.com>
PR testsuite/36443

View File

@ -130,6 +130,7 @@ set generator_cmd "-o $generator $generator_src"
# Temporarily unset GCC_EXEC_PREFIX from environment, as that might
# confuse the $HOSTCC.
set orig_gcc_exec_prefix_saved 0
if [info exists env(GCC_EXEC_PREFIX)] {
set orig_gcc_exec_prefix "$env(GCC_EXEC_PREFIX)"
set orig_gcc_exec_prefix_saved 1

View File

@ -92,6 +92,7 @@ set generator_cmd "-o $generator $skip_dfp $generator_src"
# Temporarily unset GCC_EXEC_PREFIX from environment, as that might
# confuse the $HOSTCC.
set orig_gcc_exec_prefix_saved 0
if [info exists env(GCC_EXEC_PREFIX)] {
set orig_gcc_exec_prefix "$env(GCC_EXEC_PREFIX)"
set orig_gcc_exec_prefix_saved 1