68d67107ef
* 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. From-SVN: r107371
22 lines
575 B
Plaintext
22 lines
575 B
Plaintext
global MUDFLAP_FLAGS
|
|
set MUDFLAP_FLAGS [list {} {-static} {-O2} {-O3}]
|
|
|
|
libmudflap-init c
|
|
|
|
dg-init
|
|
|
|
global srcdir
|
|
foreach flags $MUDFLAP_FLAGS {
|
|
foreach srcfile [lsort [glob -nocomplain \
|
|
${srcdir}/libmudflap.c/*frag.c \
|
|
${srcdir}/libmudflap.c/heap*.c \
|
|
${srcdir}/libmudflap.c/hook*.c \
|
|
${srcdir}/libmudflap.c/pass*.c]] {
|
|
set bsrc [file tail $srcfile]
|
|
setenv MUDFLAP_OPTIONS "-viol-segv"
|
|
dg-runtest $srcfile $flags "-fmudflap -lmudflap"
|
|
}
|
|
}
|
|
|
|
dg-finish
|