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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [testsuite/] [lib/] [libgo.exp] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
# Copyright (C) 2010 Free Software Foundation, Inc.
2
 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 3 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with GCC; see the file COPYING3.  If not see
15
# .
16
 
17
set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
18
if {$gccdir != ""} {
19
    set gccdir [file dirname $gccdir]
20
}
21
set GOC_UNDER_TEST "$gccdir/gccgo -B$gccdir/"
22
set TESTING_IN_BUILD_TREE 1
23
 
24
if [info exists GOTEST_TMPDIR] {
25
    set tmpdir $GOTEST_TMPDIR
26
}
27
 
28
proc go_maybe_build_wrapper { args } {
29
    libgo_maybe_build_wrapper $args
30
}
31
 
32
# DejaGnu does not have proper library search paths for load_lib.
33
# We have to explicitly load everything that go.exp wants to load.
34
 
35
proc load_gcc_lib { filename } {
36
    global srcdir loaded_libs
37
 
38
    load_file $srcdir/../../gcc/testsuite/lib/$filename
39
    set loaded_libs($filename) ""
40
}
41
 
42
load_gcc_lib prune.exp
43
load_gcc_lib target-libpath.exp
44
load_gcc_lib wrapper.exp
45
load_gcc_lib gcc-defs.exp
46
load_gcc_lib go.exp
47
 
48
proc libgo_init { args } {
49
    go_init $args
50
}

powered by: WebSVN 2.1.0

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