OSDN Git Service

* configure.ac (BACKTRACESPEC): Remove definition, but continue to
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jun 2005 22:55:07 +0000 (22:55 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jun 2005 22:55:07 +0000 (22:55 +0000)
AC_SUBST definition from configure.host.
* configure.host: Don't use -fno-omit-frame-pointer. Set BACKTRACESPEC
to -fomit-frame-pointer on 32-bit x86 targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100469 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/configure.ac
libjava/configure.host

index e5e709f..4c37583 100644 (file)
@@ -1,3 +1,10 @@
+2005-06-01  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * configure.ac (BACKTRACESPEC): Remove definition, but continue to
+       AC_SUBST definition from configure.host.
+       * configure.host: Don't use -fno-omit-frame-pointer. Set BACKTRACESPEC
+       to -fomit-frame-pointer on 32-bit x86 targets.
+
 2005-06-01  Tom Tromey  <tromey@redhat.com>
 
        * java/io/ObjectInputStream.java (currentLoader): Fixed typo.
 2005-06-01  Tom Tromey  <tromey@redhat.com>
 
        * java/io/ObjectInputStream.java (currentLoader): Fixed typo.
index b28d1e3..a7d9d20 100644 (file)
@@ -1148,6 +1148,7 @@ AC_SUBST(ZINCS)
 AC_SUBST(DIVIDESPEC)
 AC_SUBST(CHECKREFSPEC)
 AC_SUBST(EXCEPTIONSPEC)
 AC_SUBST(DIVIDESPEC)
 AC_SUBST(CHECKREFSPEC)
 AC_SUBST(EXCEPTIONSPEC)
+AC_SUBST(BACKTRACESPEC)
 AC_SUBST(IEEESPEC)
 
 AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes)
 AC_SUBST(IEEESPEC)
 
 AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes)
@@ -1345,15 +1346,6 @@ if test "$enable_sjlj_exceptions" = yes; then
    SIGNAL_HANDLER_AUX=
 fi
 
    SIGNAL_HANDLER_AUX=
 fi
 
-# Define here any compiler flags that you need in order to make backtrace() work.
-BACKTRACESPEC=
-case "${host}" in
- x86_64*-*-linux*|i?86-*)
-    BACKTRACESPEC=-fno-omit-frame-pointer
-    ;;
-esac
-AC_SUBST(BACKTRACESPEC)
-
 AC_SUBST(SYSDEP_SOURCES)
 
 if test -z "$SIGNAL_HANDLER_AUX"; then
 AC_SUBST(SYSDEP_SOURCES)
 
 if test -z "$SIGNAL_HANDLER_AUX"; then
index aec0304..5f32bfb 100644 (file)
@@ -69,6 +69,7 @@ echo "$target"
 DIVIDESPEC=-fuse-divide-subroutine
 EXCEPTIONSPEC=-fnon-call-exceptions
 CHECKREFSPEC=
 DIVIDESPEC=-fuse-divide-subroutine
 EXCEPTIONSPEC=-fnon-call-exceptions
 CHECKREFSPEC=
+BACKTRACESPEC=
 
 # This case statement supports per-CPU defaults.
 case "${host}" in
 
 # This case statement supports per-CPU defaults.
 case "${host}" in
@@ -94,17 +95,18 @@ case "${host}" in
        ;;
   i686-*|i586-*|i486-*|i386-*)
        sysdeps_dir=i386
        ;;
   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
        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
        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
        libgcj_cxxflags=
        libgcj_cflags=
        DIVIDESPEC=-f%{m32:no-}use-divide-subroutine
@@ -266,6 +268,8 @@ esac
 case "${host}" in
   *-cygwin* | *-mingw*)
        fallback_backtrace_h=sysdep/i386/backtrace.h  
 case "${host}" in
   *-cygwin* | *-mingw*)
        fallback_backtrace_h=sysdep/i386/backtrace.h  
+       # We need a frame pointer on Windows, so override BACKTRACESPEC
+       BACKTRACESPEC=
   ;;
 esac
 
   ;;
 esac