X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libjava%2Fconfigure.host;h=bd81450c9e84c5aa2406984ca464f6bdfa257c42;hb=dfa01d1ac0918d4e00fe5c139008def6c8c913ad;hp=6e19f0cbd17aa354469fef435f1c7854ee9d79b5;hpb=a4fe931d8b248eb47f31807c0b0e3d37ca9d8c15;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libjava/configure.host b/libjava/configure.host index 6e19f0cbd17..bd81450c9e8 100644 --- a/libjava/configure.host +++ b/libjava/configure.host @@ -28,8 +28,11 @@ # pthread_self calls by caching thread IDs in a hashtable # can_unwind_signal Set to "yes" if the EH unwinder supports throwing # 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 +# use_libgcj_bc Whether to build a "libgcj-bc" library for BC-ABI +# binaries to link against. libgcj_flags= libgcj_cflags= @@ -41,7 +44,7 @@ enable_hash_synchronization_default=no 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 +68,7 @@ echo "$target" DIVIDESPEC=-fuse-divide-subroutine EXCEPTIONSPEC=-fnon-call-exceptions CHECKREFSPEC= +BACKTRACESPEC= # This case statement supports per-CPU defaults. case "${host}" in @@ -77,6 +81,12 @@ case "${host}" in enable_java_net_default=no enable_getenv_properties_default=no enable_main_args_default=no + sysdeps_dir=arm + ;; + arm*-linux*) + libgcj_interpreter=yes + sysdeps_dir=arm + fallback_backtrace_h=sysdep/arm/backtrace.h ;; mips-tx39-*|mipstx39-unknown-*) libgcj_flags="${libgcj_flags} -G 0" @@ -88,9 +98,18 @@ case "${host}" in enable_java_net_default=no enable_getenv_properties_default=no ;; + mipsel-*|mips-*) + libgcj_interpreter=yes + ;; i686-*|i586-*|i486-*|i386-*) sysdeps_dir=i386 - libgcj_flags="${libgcj_flags} -ffloat-store" + # With -fomit-frame-pointer -maccumulate-outgoing-args (implied), + # the .text section of libgcj.so is 30k larger, and the .eh_frame + # section is 1.4M smaller. + libgcj_flags="${libgcj_flags} -ffloat-store -fomit-frame-pointer" + # On Solaris we have defined 'sun' which later conflicts with + # namespace usage. So to work this away we use the below undefine. + libgcj_flags="${libgcj_flags} -Usun" libgcj_interpreter=yes libgcj_cxxflags= libgcj_cflags= @@ -100,10 +119,17 @@ case "${host}" in ;; x86_64-*) sysdeps_dir=x86-64 - libgcj_flags="${libgcj_flags} -ffloat-store -fno-omit-frame-pointer" + # For 64-bit we always use SSE registers for arithmetic, + # which doesn't have the extra precision problems of the fpu. + # But be careful about 32-bit multilibs. + case " $CC " in + *" -m32 "*) + libgcj_flags="${libgcj_flags} -ffloat-store" ;; + esac + libgcj_flags="${libgcj_flags} -fomit-frame-pointer" libgcj_cxxflags= libgcj_cflags= - DIVIDESPEC=-f%{m32:no-}use-divide-subroutine + DIVIDESPEC=-fno-use-divide-subroutine enable_hash_synchronization_default=yes slow_pthread_self=yes libgcj_interpreter=yes @@ -115,6 +141,11 @@ case "${host}" in enable_hash_synchronization_default=yes IEEESPEC=-mieee ;; + hppa*-*) + sysdeps_dir=pa + libgcj_interpreter=yes + enable_hash_synchronization_default=no + ;; powerpc64*-*) sysdeps_dir=powerpc libgcj_interpreter=yes @@ -133,9 +164,14 @@ case "${host}" in s390*-*) sysdeps_dir=s390 libgcj_interpreter=yes + DIVIDESPEC=-fno-use-divide-subroutine enable_hash_synchronization_default=yes ;; sparc*-*) + sysdeps_dir=sparc + # On Solaris we have defined 'sun' which later conflicts with + # namespace usage. So to work this away we use the below undefine. + libgcj_flags="${libgcj_flags} -Usun" libgcj_interpreter=yes ;; ia64-*) @@ -149,6 +185,7 @@ case "${host}" in libgcj_flags="${libgcj_flags} -mieee" libgcj_interpreter=yes enable_hash_synchronization_default=yes + IEEESPEC=-mieee ;; esac @@ -164,8 +201,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 <