From: Rainer Orth Date: Mon, 8 Nov 2010 15:58:23 +0000 (+0000) Subject: backport: i386.exp (FLAGS): Remove. X-Git-Tag: releases/gcc-4.4.6~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6508f6634f805f450316a66397554bbb20eae019;p=thirdparty%2Fgcc.git backport: i386.exp (FLAGS): Remove. Backport from mainline: 2010-11-05 Rainer Orth * gcc.target/i386/i386.exp (FLAGS): Remove. Wrap gcc_target_compile with $clearcap_ldflags added to options. From-SVN: r166437 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f30ea4480ba6..9aa5983c5562 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2010-11-08 Rainer Orth + + Backport from mainline: + 2010-11-05 Rainer Orth + + * gcc.target/i386/i386.exp (FLAGS): Remove. + Wrap gcc_target_compile with $clearcap_ldflags added to options. + 2010-11-03 Jerry DeLisle Backport from mainline: diff --git a/gcc/testsuite/gcc.target/i386/i386.exp b/gcc/testsuite/gcc.target/i386/i386.exp index 30bb376c1a2f..22e26dbc741e 100644 --- a/gcc/testsuite/gcc.target/i386/i386.exp +++ b/gcc/testsuite/gcc.target/i386/i386.exp @@ -161,13 +161,24 @@ proc check_effective_target_sse5 { } { # If the linker used understands -M , pass it to clear hardware # capabilities set by the Sun assembler. -set FLAGS "" set clearcap_ldflags "-Wl,-M,$srcdir/$subdir/clearcap.map" if [check_no_compiler_messages mapfile executable { int main (void) { return 0; } } $clearcap_ldflags ] { - set FLAGS $clearcap_ldflags + + if { [info procs gcc_target_compile] != [list] \ + && [info procs saved_gcc_target_compile] == [list] } { + rename gcc_target_compile saved_gcc_target_compile + + proc gcc_target_compile { source dest type options } { + global clearcap_ldflags + # Always pass -Wl,-M,, but don't let it show up in gcc.sum. + lappend options "additional_flags=$clearcap_ldflags" + + return [saved_gcc_target_compile $source $dest $type $options] + } + } } # If a testcase doesn't have special options, use these. @@ -194,7 +205,7 @@ set tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] set tests [prune $tests $srcdir/$subdir/vect-args.c] # Main loop. -dg-runtest $tests $FLAGS $DEFAULT_CFLAGS +dg-runtest $tests "" $DEFAULT_CFLAGS # All done. dg-finish