OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libmudflap/] [testsuite/] [libmudflap.cth/] [cthfrags.exp] - Blame information for rev 738

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 738 jeremybenn
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
            if [check_effective_target_gld] {
15
                # --noinhibit-exec works around a ld problem that causes
16
                # "Dwarf Error: Invalid or unhandled FORM value: 14"
17
                # to fail builds unnecessarily.
18
                set noie_option " -Wl,--noinhibit-exec"
19
            } else {
20
                set noie_option ""
21
            }
22
            dg-runtest $srcfile $flags "-fmudflapth -lmudflapth -lpthread $noie_option"
23
        } else {
24
            if {$flags != ""} {set f " ($flags)"} {set f ""}
25
            untested "libmudflap.cth/$bsrc$f"
26
        }
27
    }
28
}
29
 
30
dg-finish

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.