diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-22 20:35:51 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-22 20:35:51 +0000 |
commit | 50516bc34e63978c5f92d31390aebefd79cbc4b5 (patch) | |
tree | d5c4c88db432b79ac6a1569295a4c72df2098e33 /libmudflap/testsuite/libmudflap.c/externs.exp | |
parent | 8aa776bebd9a4d6e485c99e5e8ca9d5ddedc3f2c (diff) | |
download | gcc-50516bc34e63978c5f92d31390aebefd79cbc4b5.tar.gz |
* testsuite/lib/libmudflap.exp (libmudflap-init): Remove -static from
MUDFLAP_FLAGS if static library not supported.
* testsuite/libmudflap.c/cfrags.exp (MUDFLAP_FLAGS): new.
* testsuite/libmudflap.c/externs.exp: Ditto.
* testsuite/libmudflap.c++/ctors.exp: Ditto.
* testsuite/libmudflap.c++/c++frags.exp: Ditto.
* testsuite/libmudflap.cth/cthfrags.exp: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107371 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/testsuite/libmudflap.c/externs.exp')
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/externs.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmudflap/testsuite/libmudflap.c/externs.exp b/libmudflap/testsuite/libmudflap.c/externs.exp index e97e0b684e4..773f80cc12a 100644 --- a/libmudflap/testsuite/libmudflap.c/externs.exp +++ b/libmudflap/testsuite/libmudflap.c/externs.exp @@ -1,9 +1,12 @@ +global MUDFLAP_FLAGS +set MUDFLAP_FLAGS [list {} {-static} {-O2} {-O3}] + libmudflap-init c dg-init global srcdir subdir -foreach flags [list {} {-static} {-O2} {-O3}] { +foreach flags $MUDFLAP_FLAGS { set l1 [libmudflap_target_compile "$srcdir/$subdir/externs-1.c" "externs-1.o" object {additional_flags=-fmudflap}] set test "externs-1 compilation ${flags}" if [string match "*mudflap cannot track unknown size extern *d*" $l1] { pass $test } { fail $test } |