X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Flib%2Flto.exp;h=8c2db3334491f1bf7489ac81a6089848f2db7d45;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=4e5d4437dbe78c58be510adc9f9b123dfbd9da58;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/gcc/testsuite/lib/lto.exp b/gcc/testsuite/lib/lto.exp index 4e5d443..8c2db33 100644 --- a/gcc/testsuite/lib/lto.exp +++ b/gcc/testsuite/lib/lto.exp @@ -1,4 +1,4 @@ -# Copyright (C) 2009, 2010 Free Software Foundation, Inc. +# Copyright (C) 2009-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -499,7 +499,10 @@ proc lto-execute { src1 sid } { verbose "$testcase not supported on this target, skipping it" 3 return } - + # Should be safe for non-fortran too but be paranoid.. + if {$sid eq "f_lto"} { + list-module-names $src_list + } regsub "_0.*" $testcase "" testcase # Set up the base name of executable files so they'll be unique. @@ -578,6 +581,10 @@ proc lto-execute { src1 sid } { || ![string compare "link" $compile_type] } { file_on_host delete $execname } + # Should be safe for non-fortran too but be paranoid.. + if {$sid eq "f_lto"} { + cleanup-modules "" + } } }