提交 a9621b21 编写于 作者: E erikj

8014404: Debug flag not added to jdk native compile when --enable-debug is set

Reviewed-by: tbell
上级 30ea6f40
...@@ -3782,7 +3782,7 @@ fi ...@@ -3782,7 +3782,7 @@ fi
#CUSTOM_AUTOCONF_INCLUDE #CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks: # Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1370949244 DATE_WHEN_GENERATED=1371547755
############################################################################### ###############################################################################
# #
...@@ -29144,7 +29144,6 @@ CXX_FLAG_DEPS="-MMD -MF" ...@@ -29144,7 +29144,6 @@ CXX_FLAG_DEPS="-MMD -MF"
case $COMPILER_TYPE in case $COMPILER_TYPE in
CC ) CC )
D_FLAG="-g"
case $COMPILER_NAME in case $COMPILER_NAME in
gcc ) gcc )
case $OPENJDK_TARGET_OS in case $OPENJDK_TARGET_OS in
...@@ -29159,6 +29158,11 @@ case $COMPILER_TYPE in ...@@ -29159,6 +29158,11 @@ case $COMPILER_TYPE in
C_O_FLAG_HI="-O3" C_O_FLAG_HI="-O3"
C_O_FLAG_NORM="-O2" C_O_FLAG_NORM="-O2"
C_O_FLAG_NONE="-O0" C_O_FLAG_NONE="-O0"
;;
esac
CXX_O_FLAG_HI="$C_O_FLAG_HI"
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
CFLAGS_DEBUG_SYMBOLS="-g" CFLAGS_DEBUG_SYMBOLS="-g"
CXXFLAGS_DEBUG_SYMBOLS="-g" CXXFLAGS_DEBUG_SYMBOLS="-g"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
...@@ -29166,11 +29170,6 @@ case $COMPILER_TYPE in ...@@ -29166,11 +29170,6 @@ case $COMPILER_TYPE in
CXXFLAGS_DEBUG_SYMBOLS="-g1" CXXFLAGS_DEBUG_SYMBOLS="-g1"
fi fi
;; ;;
esac
CXX_O_FLAG_HI="$C_O_FLAG_HI"
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
;;
ossc ) ossc )
# #
# Forte has different names for this with their C++ compiler... # Forte has different names for this with their C++ compiler...
...@@ -29250,7 +29249,6 @@ case $COMPILER_TYPE in ...@@ -29250,7 +29249,6 @@ case $COMPILER_TYPE in
esac esac
;; ;;
CL ) CL )
D_FLAG=
C_O_FLAG_HIGHEST="-O2" C_O_FLAG_HIGHEST="-O2"
C_O_FLAG_HI="-O1" C_O_FLAG_HI="-O1"
C_O_FLAG_NORM="-O1" C_O_FLAG_NORM="-O1"
...@@ -29389,6 +29387,28 @@ esac ...@@ -29389,6 +29387,28 @@ esac
############################################################################### ###############################################################################
# Adjust flags according to debug level.
case $DEBUG_LEVEL in
fastdebug )
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
C_O_FLAG_HI="$C_O_FLAG_NORM"
C_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
slowdebug )
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
C_O_FLAG_HI="$C_O_FLAG_NONE"
C_O_FLAG_NORM="$C_O_FLAG_NONE"
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
esac
CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
# The package path is used only on macosx? # The package path is used only on macosx?
...@@ -29532,23 +29552,6 @@ else ...@@ -29532,23 +29552,6 @@ else
fi fi
fi fi
# Adjust flags according to debug level.
case $DEBUG_LEVEL in
fastdebug )
CFLAGS="$CFLAGS $D_FLAG"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
slowdebug )
CFLAGS="$CFLAGS $D_FLAG"
C_O_FLAG_HI="$C_O_FLAG_NONE"
C_O_FLAG_NORM="$C_O_FLAG_NONE"
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
esac
...@@ -629,7 +629,6 @@ CXX_FLAG_DEPS="-MMD -MF" ...@@ -629,7 +629,6 @@ CXX_FLAG_DEPS="-MMD -MF"
case $COMPILER_TYPE in case $COMPILER_TYPE in
CC ) CC )
D_FLAG="-g"
case $COMPILER_NAME in case $COMPILER_NAME in
gcc ) gcc )
case $OPENJDK_TARGET_OS in case $OPENJDK_TARGET_OS in
...@@ -644,6 +643,11 @@ case $COMPILER_TYPE in ...@@ -644,6 +643,11 @@ case $COMPILER_TYPE in
C_O_FLAG_HI="-O3" C_O_FLAG_HI="-O3"
C_O_FLAG_NORM="-O2" C_O_FLAG_NORM="-O2"
C_O_FLAG_NONE="-O0" C_O_FLAG_NONE="-O0"
;;
esac
CXX_O_FLAG_HI="$C_O_FLAG_HI"
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
CFLAGS_DEBUG_SYMBOLS="-g" CFLAGS_DEBUG_SYMBOLS="-g"
CXXFLAGS_DEBUG_SYMBOLS="-g" CXXFLAGS_DEBUG_SYMBOLS="-g"
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
...@@ -651,11 +655,6 @@ case $COMPILER_TYPE in ...@@ -651,11 +655,6 @@ case $COMPILER_TYPE in
CXXFLAGS_DEBUG_SYMBOLS="-g1" CXXFLAGS_DEBUG_SYMBOLS="-g1"
fi fi
;; ;;
esac
CXX_O_FLAG_HI="$C_O_FLAG_HI"
CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
;;
ossc ) ossc )
# #
# Forte has different names for this with their C++ compiler... # Forte has different names for this with their C++ compiler...
...@@ -735,7 +734,6 @@ case $COMPILER_TYPE in ...@@ -735,7 +734,6 @@ case $COMPILER_TYPE in
esac esac
;; ;;
CL ) CL )
D_FLAG=
C_O_FLAG_HIGHEST="-O2" C_O_FLAG_HIGHEST="-O2"
C_O_FLAG_HI="-O1" C_O_FLAG_HI="-O1"
C_O_FLAG_NORM="-O1" C_O_FLAG_NORM="-O1"
...@@ -861,6 +859,28 @@ esac ...@@ -861,6 +859,28 @@ esac
############################################################################### ###############################################################################
# Adjust flags according to debug level.
case $DEBUG_LEVEL in
fastdebug )
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
C_O_FLAG_HI="$C_O_FLAG_NORM"
C_O_FLAG_NORM="$C_O_FLAG_NORM"
CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
slowdebug )
CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
C_O_FLAG_HI="$C_O_FLAG_NONE"
C_O_FLAG_NORM="$C_O_FLAG_NONE"
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
esac
CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
# The package path is used only on macosx? # The package path is used only on macosx?
...@@ -1004,23 +1024,6 @@ else ...@@ -1004,23 +1024,6 @@ else
fi fi
fi fi
# Adjust flags according to debug level.
case $DEBUG_LEVEL in
fastdebug )
CFLAGS="$CFLAGS $D_FLAG"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
slowdebug )
CFLAGS="$CFLAGS $D_FLAG"
C_O_FLAG_HI="$C_O_FLAG_NONE"
C_O_FLAG_NORM="$C_O_FLAG_NONE"
CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
JAVAC_FLAGS="$JAVAC_FLAGS -g"
;;
esac
AC_SUBST(CFLAGS_JDKLIB) AC_SUBST(CFLAGS_JDKLIB)
AC_SUBST(CFLAGS_JDKEXE) AC_SUBST(CFLAGS_JDKEXE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册