2005-11-22 21:35:51 +01:00
|
|
|
global MUDFLAP_FLAGS
|
2012-07-13 15:25:13 +02:00
|
|
|
set MUDFLAP_FLAGS [list {-O0} {-static} { -O} {-O2} {-O3}]
|
2004-05-13 08:41:07 +02:00
|
|
|
|
2004-05-17 22:34:19 +02:00
|
|
|
libmudflap-init c++
|
2005-06-14 20:37:20 +02:00
|
|
|
if {$cxx == "g++"} then {
|
|
|
|
unsupported "g++ not found"
|
|
|
|
return
|
|
|
|
}
|
2004-05-13 08:41:07 +02:00
|
|
|
|
|
|
|
dg-init
|
|
|
|
|
|
|
|
global srcdir
|
|
|
|
|
2005-11-22 21:35:51 +01:00
|
|
|
foreach flags $MUDFLAP_FLAGS {
|
2004-07-09 21:51:51 +02:00
|
|
|
foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.c++/*frag.cxx]] {
|
2004-05-13 08:41:07 +02:00
|
|
|
set bsrc [file tail $srcfile]
|
2004-07-09 21:51:51 +02:00
|
|
|
setenv MUDFLAP_OPTIONS "-viol-segv"
|
2004-06-04 22:12:01 +02:00
|
|
|
dg-runtest $srcfile $flags "-fmudflap -lmudflap"
|
2004-05-13 08:41:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dg-finish
|