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

Subversion Repositories or1k

[/] [or1k/] [tags/] [tn_m001/] [newlib/] [libgloss/] [testsuite/] [lib/] [libgloss.exp] - Diff between revs 861 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 861 Rev 1765
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# This file was written by Rob Savoye. (rob@cygnus.com)
# This file was written by Rob Savoye. (rob@cygnus.com)
# The default option list can be overridden by
# The default option list can be overridden by
# TORTURE_OPTIONS="{ { list1 } ... { listN } }"
# TORTURE_OPTIONS="{ { list1 } ... { listN } }"
if ![info exists TORTURE_OPTIONS] {
if ![info exists TORTURE_OPTIONS] {
    # FIXME: We should test -g at least once.
    # FIXME: We should test -g at least once.
    set TORTURE_OPTIONS [list \
    set TORTURE_OPTIONS [list \
        { -O0 } { -O1 } { -O2 } \
        { -O0 } { -O1 } { -O2 } \
        { -O2 -fomit-frame-pointer -finline-functions } \
        { -O2 -fomit-frame-pointer -finline-functions } \
        { -O2 -fomit-frame-pointer -finline-functions -funroll-all-loops }]
        { -O2 -fomit-frame-pointer -finline-functions -funroll-all-loops }]
}
}
# These globals are used if no compiler arguments are provided.
# These globals are used if no compiler arguments are provided.
# They are also used by the various testsuites to define the environment:
# They are also used by the various testsuites to define the environment:
# where to find stdio.h, libc.a, etc.
# where to find stdio.h, libc.a, etc.
global CC
global CC
if ![info exists CC] then {
if ![info exists CC] then {
    set CC [findfile $base_dir/xgcc "$base_dir/xgcc -B$base_dir/" [transform gcc
    set CC [findfile $base_dir/xgcc "$base_dir/xgcc -B$base_dir/" [transform gcc
]]
]]
}
}
if { [which $CC] == 0 } then {
if { [which $CC] == 0 } then {
    perror "$CC does not exist"
    perror "$CC does not exist"
    exit 1
    exit 1
}
}
global CFLAGS
global CFLAGS
if ![info exists CFLAGS] then {
if ![info exists CFLAGS] then {
    set CFLAGS ""
    set CFLAGS ""
}
}
global LIBS
global LIBS
if ![info exists LIBS] then {
if ![info exists LIBS] then {
    set LIBS ""
    set LIBS ""
}
}
# It is difficult to come up with a situation where one has to use LDFLAGS
# It is difficult to come up with a situation where one has to use LDFLAGS
# and not LIBS (why two?).  Both are useful in makefiles, so maybe it's better
# and not LIBS (why two?).  Both are useful in makefiles, so maybe it's better
# to just continue existing practice.  However, there is still a lot of
# to just continue existing practice.  However, there is still a lot of
# confusion about when to use one or the other.
# confusion about when to use one or the other.
global LDFLAGS
global LDFLAGS
if ![info exists LDFLAGS] then {
if ![info exists LDFLAGS] then {
    set LDFLAGS ""
    set LDFLAGS ""
}
}
proc just_compile { file } {
proc just_compile { file } {
    global CFLAGS
    global CFLAGS
    set output "$tmpdir/[file tail [file rootname $src]].o"
    set output "$tmpdir/[file tail [file rootname $src]].o"
    append CFLAGS " -w -c -o $output $option"
    append CFLAGS " -w -c -o $output $option"
}
}
proc just_link { file } {
proc just_link { file } {
}
}
proc just_execute { file } {
proc just_execute { file } {
}
}
proc run_test { file } {
proc run_test { file } {
}
}
 
 

powered by: WebSVN 2.1.0

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