2001-05-23 15:53:00 -04:00
|
|
|
# Copyright (C) 1988, 90-96, 1997, 2000, 2001 Free Software Foundation, Inc.
|
2000-06-28 23:10:01 -04:00
|
|
|
|
|
|
|
# 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
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
freebsd.h, [...]: Update FSF address.
* config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
config/i386/i386elf.h, config/i386/netbsd-elf.h,
config/i386/netware.h, config/mcore/gfloat.h,
config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
config/netware.h, gccbug.in: Update FSF address.
ada:
* 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
FSF address.
testsuite:
* consistency.vlad/vlad.exp, g++.old-deja/g++.mike/p784.C,
g++.old-deja/old-deja.exp, g77.f-torture/compile/compile.exp,
g77.f-torture/execute/execute.exp,
g77.f-torture/noncompile/noncompile.exp,
gcc.c-torture/compile/compile.exp,
gcc.c-torture/execute/execute.exp,
gcc.c-torture/execute/ieee/ieee.exp,
gcc.c-torture/execute/memcheck/memcheck.exp,
gcc.c-torture/unsorted/unsorted.exp, gcc.misc-tests/linkage.exp,
objc/execute/execute.exp: Update FSF address.
From-SVN: r46118
2001-10-09 06:16:27 -04:00
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2000-06-28 23:10:01 -04:00
|
|
|
|
|
|
|
# This file used to be gcc.c-torture/special/special.exp, which
|
|
|
|
# was written by Rob Savoye. (rob@cygnus.com)
|
|
|
|
# All the other tests driven by that file have since been moved elsewhere.
|
|
|
|
|
|
|
|
if [isnative] then {
|
|
|
|
set lines [gcc_target_compile "$srcdir/$subdir/linkage-x.c" "linkage-x.o" object {additional_flags="-w"}]
|
|
|
|
if ![string match "" $lines] then {
|
|
|
|
fail "linkage.c"
|
|
|
|
} else {
|
|
|
|
# This is a completely bogus test. Sorry.
|
2001-05-23 15:53:00 -04:00
|
|
|
|
|
|
|
# Need to ensure ABI for native compiler matches gcc
|
|
|
|
set native_cflags ""
|
|
|
|
if [istarget "mips-sgi-irix6*"] {
|
2001-05-30 16:32:33 -04:00
|
|
|
set file_string [exec file "linkage-x.o"]
|
|
|
|
if [ string match "*64*" $file_string ] {
|
2001-05-23 15:53:00 -04:00
|
|
|
set native_cflags "-64"
|
|
|
|
}
|
2001-06-02 16:35:08 -04:00
|
|
|
if [ string match "*N32*" $file_string ] {
|
2001-05-30 16:32:33 -04:00
|
|
|
set native_cflags "-n32"
|
|
|
|
}
|
2001-05-23 15:53:00 -04:00
|
|
|
}
|
|
|
|
|
2000-06-28 23:10:01 -04:00
|
|
|
catch { exec rm -f linkage-y.o }
|
2001-06-02 16:35:08 -04:00
|
|
|
send_log "cc -c $native_cflags $srcdir/$subdir/linkage-y.c >&/dev/null\n"
|
2001-05-23 15:53:00 -04:00
|
|
|
catch { exec cc -c $native_cflags "$srcdir/$subdir/linkage-y.c" >&/dev/null }
|
2000-06-28 23:10:01 -04:00
|
|
|
if ![file exists "linkage-y.o"] then {
|
2001-06-02 16:35:08 -04:00
|
|
|
send_log "c89 -c $native_cflags $srcdir/$subdir/linkage-y.c >&/dev/null\n"
|
2001-05-23 15:53:00 -04:00
|
|
|
catch { exec c89 -c $native_cflags "$srcdir/$subdir/linkage-y.c" >&/dev/null }
|
2000-06-28 23:10:01 -04:00
|
|
|
}
|
|
|
|
if [file exists "linkage-y.o"] then {
|
|
|
|
set lines [gcc_target_compile "linkage-y.o linkage-x.o" "x" executable ""]
|
|
|
|
if [string match "" $lines] then {
|
|
|
|
pass "linkage.c"
|
|
|
|
} else {
|
|
|
|
fail "linkage.c"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|