X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libjava%2Fconfigure.host;h=79ce4d68d954490ec74cc18aa79ae4ad853bb9eb;hb=e49af22bc7fe288677ea5649fa35eef6ce3e03c4;hp=cbecf04106e46764b2656f47d48772686ff7ce53;hpb=7469aed1a109553a8a319fdc7cec5dcc7cddb311;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libjava/configure.host b/libjava/configure.host index cbecf04106e..79ce4d68d95 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,10 +68,11 @@ echo "$target" DIVIDESPEC=-fuse-divide-subroutine EXCEPTIONSPEC=-fnon-call-exceptions CHECKREFSPEC= +BACKTRACESPEC= # This case statement supports per-CPU defaults. case "${host}" in - arm*-elf | strongarm*-elf | xscale*-elf) + arm*-elf) with_libffi_default=no PROCESS=Ecos FILE=Posix @@ -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 ;; + mips*-*) + libgcj_interpreter=yes + ;; i686-*|i586-*|i486-*|i386-*) sysdeps_dir=i386 - libgcj_flags="${libgcj_flags} -ffloat-store -fno-omit-frame-pointer" + # 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,10 +141,14 @@ case "${host}" in enable_hash_synchronization_default=yes IEEESPEC=-mieee ;; - hppa-*) + hppa*-*) sysdeps_dir=pa libgcj_interpreter=yes - enable_hash_synchronization_default=yes + enable_hash_synchronization_default=no + ;; + m68k-*) + sysdeps_dir=m68k + libgcj_interpreter=yes ;; powerpc64*-*) sysdeps_dir=powerpc @@ -142,6 +172,10 @@ case "${host}" in 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-*) @@ -155,6 +189,7 @@ case "${host}" in libgcj_flags="${libgcj_flags} -mieee" libgcj_interpreter=yes enable_hash_synchronization_default=yes + IEEESPEC=-mieee ;; esac @@ -171,8 +206,10 @@ case "${host}" in ia64-* | \ x86_64*-linux* | \ hppa*-linux* | \ + m68k*-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 <