From fcd2a5d4d6600edbd2937830c60b5e5696ab1593 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 12 Jun 2008 13:19:02 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/compat/struct-layout-1.exp | 1 + gcc/testsuite/gcc.dg/compat/struct-layout-1.exp | 1 + 3 files changed, 9 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 55555f770e5..68e98fc48f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-06-12 Joseph Myers + + * 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 PR testsuite/36443 diff --git a/gcc/testsuite/g++.dg/compat/struct-layout-1.exp b/gcc/testsuite/g++.dg/compat/struct-layout-1.exp index edaf1fa34f5..14473486aeb 100644 --- a/gcc/testsuite/g++.dg/compat/struct-layout-1.exp +++ b/gcc/testsuite/g++.dg/compat/struct-layout-1.exp @@ -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 diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp b/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp index 47588c9fe1e..5de2c1e2618 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp +++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp @@ -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 -- 2.30.2