OSDN Git Service

* arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
[pf3gnuchains/gcc-fork.git] / libjava / configure.host
index d008df1..5f32bfb 100644 (file)
@@ -30,6 +30,9 @@
 #                      from a signal handler.
 #   disable_dladdr      Set to "yes" if dladdr should not be used
 #                       (i.e it is broken).
+#   fallback_backtrace_h  Header to use for fallback backtrace implementation
+#                        (only for targets that don't support DWARF2 unwind)
+#   descriptor_h       Header to use for looking past function descriptors
 
 libgcj_flags=
 libgcj_cflags=
@@ -42,6 +45,7 @@ sysdeps_dir=generic
 slow_pthread_self=
 can_unwind_signal=no
 disable_dladdr=
+fallback_backtrace_h=sysdep/generic/backtrace.h
 
 case "${target_optspace}:${host}" in
   yes:*)
@@ -65,6 +69,7 @@ echo "$target"
 DIVIDESPEC=-fuse-divide-subroutine
 EXCEPTIONSPEC=-fnon-call-exceptions
 CHECKREFSPEC=
+BACKTRACESPEC=
 
 # This case statement supports per-CPU defaults.
 case "${host}" in
@@ -90,17 +95,18 @@ case "${host}" in
        ;;
   i686-*|i586-*|i486-*|i386-*)
        sysdeps_dir=i386
-       libgcj_flags="${libgcj_flags} -ffloat-store -fno-omit-frame-pointer"
+       libgcj_flags="${libgcj_flags} -ffloat-store"
        libgcj_interpreter=yes
        libgcj_cxxflags=
        libgcj_cflags=
        DIVIDESPEC=-fno-use-divide-subroutine
+       BACKTRACESPEC=-fomit-frame-pointer
        enable_hash_synchronization_default=yes
        slow_pthread_self=yes
        ;;
   x86_64-*)
        sysdeps_dir=x86-64
-       libgcj_flags="${libgcj_flags} -ffloat-store -fno-omit-frame-pointer"
+       libgcj_flags="${libgcj_flags} -ffloat-store"
        libgcj_cxxflags=
        libgcj_cflags=
        DIVIDESPEC=-f%{m32:no-}use-divide-subroutine
@@ -138,6 +144,7 @@ case "${host}" in
   s390*-*)
        sysdeps_dir=s390
        libgcj_interpreter=yes
+       DIVIDESPEC=-fno-use-divide-subroutine
        enable_hash_synchronization_default=yes
        ;;
   sparc*-*)
@@ -154,6 +161,7 @@ case "${host}" in
        libgcj_flags="${libgcj_flags} -mieee"
        libgcj_interpreter=yes
        enable_hash_synchronization_default=yes
+       IEEESPEC=-mieee
        ;;
 esac
 
@@ -169,8 +177,10 @@ case "${host}" in
   sparc*-linux* | \
   ia64-* | \
   x86_64*-linux* | \
+  hppa*-linux* | \
   sh-linux* | sh[34]*-linux*)
        can_unwind_signal=yes
+       libgcj_ld_symbolic='-Wl,-Bsymbolic'
        if test x$slow_pthread_self = xyes \
           && test x$cross_compiling != xyes; then
          cat > conftest.c <<EOF
@@ -224,7 +234,7 @@ EOF
   mips*-*-linux* )
        sysdeps_dir=mips
        can_unwind_signal=yes
-       libgcj_flags="${libgcj_flags} -mxgot"
+       DIVIDESPEC=-fno-use-divide-subroutine
        case "${host}" in
            mipsel*-linux* | mipsisa32el*-linux*)
                enable_hash_synchronization_default=yes
@@ -233,7 +243,7 @@ EOF
        esac
        ;;
   powerpc*-*-darwin*)
-       enable_hash_synchronization_default=no
+       enable_hash_synchronization_default=yes
        slow_pthread_self=
        can_unwind_signal=yes
        ;;
@@ -255,6 +265,28 @@ EOF
        ;;
 esac
 
+case "${host}" in
+  *-cygwin* | *-mingw*)
+       fallback_backtrace_h=sysdep/i386/backtrace.h  
+       # We need a frame pointer on Windows, so override BACKTRACESPEC
+       BACKTRACESPEC=
+  ;;
+esac
+
+case "${host}" in
+  ia64-* | hppa*-*)
+       descriptor_h=sysdep/descriptor-y.h
+       ;;
+
+  rs6000-* | powerpc*-*)
+       descriptor_h=sysdep/powerpc/descriptor.h
+       ;;
+
+  *)
+       descriptor_h=sysdep/descriptor-n.h
+       ;;
+esac
+
 libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
 libgcj_cxxflags="${libgcj_cxxflags} ${libgcj_flags}"
 libgcj_javaflags="${libgcj_javaflags} ${libgcj_flags}"