aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2003-10-07 17:30:02 +0000
committerDave Anglin <dave.anglin@nrc.ca>2003-10-07 17:30:02 +0000
commitc0d48c0b487a3d7f926a2fef24e9b2fd401b3bc4 (patch)
tree3dfa01e5eedd125afe5a5080e65a3e2a5ddb3522 /ld/testsuite
parentaec24853b5d0ec94dd440c674d0c869c24b53e0b (diff)
downloadgdb-c0d48c0b487a3d7f926a2fef24e9b2fd401b3bc4.zip
gdb-c0d48c0b487a3d7f926a2fef24e9b2fd401b3bc4.tar.gz
gdb-c0d48c0b487a3d7f926a2fef24e9b2fd401b3bc4.tar.bz2
* configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
* ld-elfvsb/elfvsb.exp: xfail non-pic shared library tests for non 64-bit hppa*-*-linux* targets. * ld-elfvsb/main.c (main_visibility_check): Cast value returned by visibility_funptr () to a function pointer. * ld-shared/shared.exp: xfail shared (non PIC), shared (non PIC, load offset), and shared (PIC main, non PIC so) tests for non 64-bit hppa*-*-linux* targets.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog10
-rw-r--r--ld/testsuite/ld-elfvsb/elfvsb.exp11
-rw-r--r--ld/testsuite/ld-elfvsb/main.c4
-rw-r--r--ld/testsuite/ld-shared/shared.exp9
4 files changed, 32 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 4035f39..ab46874 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,13 @@
+2003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * ld-elfvsb/elfvsb.exp: xfail non-pic shared library tests for
+ non 64-bit hppa*-*-linux* targets.
+ * ld-elfvsb/main.c (main_visibility_check): Cast value returned by
+ visibility_funptr () to a function pointer.
+ * ld-shared/shared.exp: xfail shared (non PIC), shared (non PIC, load
+ offset), and shared (PIC main, non PIC so) tests for non 64-bit
+ hppa*-*-linux* targets.
+
2003-09-30 H.J. Lu <hongjiu.lu@intel.com>
* ld-checks/checks.exp (section_check): Remove ia64-*-elf*.
diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp
index 9f0073a..f1f3f1f 100644
--- a/ld/testsuite/ld-elfvsb/elfvsb.exp
+++ b/ld/testsuite/ld-elfvsb/elfvsb.exp
@@ -263,6 +263,9 @@ proc visibility_run {visibility} {
setup_xfail "s390x-*-linux*"
}
setup_xfail "x86_64-*-linux*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+ }
visibility_test $visibility vnp "visibility ($visibility) (non PIC)" mainnp.o sh1np.o sh2np.o elfvsb
@@ -294,6 +297,10 @@ proc visibility_run {visibility} {
setup_xfail "mips*-*-linux*"
}
setup_xfail "x86_64-*-linux*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+ }
+
visibility_test $visibility vnp "visibility ($visibility) (non PIC, load offset)" \
mainnp.o sh1np.o sh2np.o elfvsb \
"-T $srcdir/$subdir/elf-offset.ld"
@@ -353,6 +360,10 @@ proc visibility_run {visibility} {
setup_xfail "s390x-*-linux*"
}
setup_xfail "x86_64-*-linux*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+ }
+
visibility_test $visibility vmpnp "visibility ($visibility) (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o elfvsb
}
} else {
diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c
index 1ce2e3e..f071260 100644
--- a/ld/testsuite/ld-elfvsb/main.c
+++ b/ld/testsuite/ld-elfvsb/main.c
@@ -82,7 +82,7 @@ visibility ()
static int
main_visibility_check ()
{
- return visibility_funptr () != visibility;
+ return ((int (*) (void)) visibility_funptr ()) != visibility;
}
int visibility_var = 1;
@@ -117,7 +117,7 @@ main_visibility_check ()
#ifdef WEAK_TEST
return visibility_funptr () == NULL;
#else
- return visibility_funptr () == visibility;
+ return ((int (*) (void)) visibility_funptr ()) == visibility;
#endif
}
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 251f25d..339d3a3 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -200,6 +200,9 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
setup_xfail "*-*-sunos4*"
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+ }
setup_xfail "x86_64-*-linux*"
setup_xfail "s390x-*-linux*"
shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
@@ -214,6 +217,9 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o]
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
setup_xfail "mips*-*-linux*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+ }
setup_xfail "x86_64-*-linux*"
shared_test shnp "shared (non PIC, load offset)" \
mainnp.o sh1np.o sh2np.o shared \
@@ -256,6 +262,9 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m
setup_xfail "*-*-sunos4*"
setup_xfail "ia64-*-linux*"
setup_xfail "alpha*-*-linux*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+ }
setup_xfail "x86_64-*-linux*"
setup_xfail "s390x-*-linux*"
shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared