* configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
authorDave Anglin <dave.anglin@nrc.ca>
Tue, 7 Oct 2003 17:30:02 +0000 (17:30 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Tue, 7 Oct 2003 17:30:02 +0000 (17:30 +0000)
* 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.

ld/ChangeLog
ld/configure.host
ld/testsuite/ChangeLog
ld/testsuite/ld-elfvsb/elfvsb.exp
ld/testsuite/ld-elfvsb/main.c
ld/testsuite/ld-shared/shared.exp

index 6ee3b334935dc556514aeb1d9328fe08ea47ae83..d69c89e87bdedb289fd0e54c3917a3a5771c9285 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
+
 2003-10-07  Nathan Sidwell  <nathan@codesourcery.com>
 
        * ldwrite.c (unsplittable_name): New.
index c1e99698938c0e21c672ed280533b28686633cfe..544114e0825f10f98193b287cd37ea9ad4c5e166 100644 (file)
@@ -95,6 +95,14 @@ hppa*64*-*-hpux11*)
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else if test "$GCC" = yes; then ${CC} --print-libgcc-file-name; else gcc --print-libgcc-file-name; fi fi` -lc /usr/lib/pa20_64/milli.a'
   ;;
 
+hppa*64*-*-linux*)
+  ;;
+
+hppa*-*-linux*)
+  # Need libgcc for $$dyncall.
+  HOSTING_LIBS='-L`dirname \`${CC} --print-file-name=libc.so\`` '"$HOSTING_LIBS"' `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} --print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'
+  ;;
+
 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[12] | i[3-7]86-*-freebsd[12]\.* | i[3-7]86-*-freebsd*aout*)
   HOSTING_CRT0=/usr/lib/crt0.o
   ;;
index 4035f39a5b0c6171b842a8dec54560f454538efd..ab46874b40d02e8008c3255a3cbb537c935f5de6 100644 (file)
@@ -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*.
index 9f0073a77c0efa6521c316568bab65b0a0cc4836..f1f3f1fdf39531b12fefa87a96d469dee3985045 100644 (file)
@@ -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 {
index 1ce2e3eb3751aba14da3f0f983f90ffaa1c3086b..f071260d47a222bf4f415f6dc4fc6ef42fd68a8e 100644 (file)
@@ -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
 }
 
index 251f25df64b482e5037a7a832bce996f2dc17573..339d3a3abe91ce50273fcb84053d136d37d8cba5 100644 (file)
@@ -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