Mercurial > hg > CbC > CbC_gcc
comparison libmudflap/testsuite/libmudflap.cth/cthfrags.exp @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 global MUDFLAP_FLAGS | |
2 set MUDFLAP_FLAGS [list {} {-static -DSTATIC} {-O2} {-O3}] | |
3 | |
4 libmudflap-init c | |
5 | |
6 dg-init | |
7 | |
8 global srcdir | |
9 foreach flags $MUDFLAP_FLAGS { | |
10 foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.cth/*.c]] { | |
11 set bsrc [file tail $srcfile] | |
12 setenv MUDFLAP_OPTIONS "-viol-segv" | |
13 if {$libmudflapth} then { | |
14 # --noinhibit-exec works around a ld problem that causes | |
15 # "Dwarf Error: Invalid or unhandled FORM value: 14" | |
16 # to fail builds unnecessarily. | |
17 dg-runtest $srcfile $flags "-fmudflapth -lmudflapth -lpthread -Wl,--noinhibit-exec" | |
18 } else { | |
19 if {$flags != ""} {set f " ($flags)"} {set f ""} | |
20 untested "libmudflap.cth/$bsrc$f" | |
21 } | |
22 } | |
23 } | |
24 | |
25 dg-finish |