提交 b356ca45 编写于 作者: D dcubed

7188168: 7071904 broke the DEBUG_BINARIES option on Linux

Summary: Change DEBUG_BINARIES option logic to be more clear.
Reviewed-by: fparain, andrew
上级 0342985d
# #
# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# This code is free software; you can redistribute it and/or modify it # This code is free software; you can redistribute it and/or modify it
...@@ -133,8 +133,10 @@ $(GENERATEDFILES): refresh_adfiles ...@@ -133,8 +133,10 @@ $(GENERATEDFILES): refresh_adfiles
# Note that product files are updated via "mv", which is atomic. # Note that product files are updated via "mv", which is atomic.
TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$) TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$)
# Debuggable by default ifneq ($(DEBUG_BINARIES), true)
CFLAGS += -g # Debuggable by default (unless already done by DEBUG_BINARIES)
CFLAGS += -g
endif
# Pass -D flags into ADLC. # Pass -D flags into ADLC.
ADLCFLAGS += $(SYSDEFS) ADLCFLAGS += $(SYSDEFS)
......
...@@ -215,47 +215,46 @@ AOUT_FLAGS += -Xlinker -export-dynamic ...@@ -215,47 +215,46 @@ AOUT_FLAGS += -Xlinker -export-dynamic
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# Debug flags # Debug flags
# Use the stabs format for debugging information (this is the default # DEBUG_BINARIES uses full -g debug information for all configs
# on gcc-2.91). It's good enough, has all the information about line ifeq ($(DEBUG_BINARIES), true)
# numbers and local variables, and libjvm_g.so is only about 16M. CFLAGS += -g
# Change this back to "-g" if you want the most expressive format. else
# (warning: that could easily inflate libjvm_g.so to 150M!) # Use the stabs format for debugging information (this is the default
# Note: The Itanium gcc compiler crashes when using -gstabs. # on gcc-2.91). It's good enough, has all the information about line
DEBUG_CFLAGS/ia64 = -g # numbers and local variables, and libjvm_g.so is only about 16M.
DEBUG_CFLAGS/amd64 = -g # Change this back to "-g" if you want the most expressive format.
DEBUG_CFLAGS/arm = -g # (warning: that could easily inflate libjvm_g.so to 150M!)
DEBUG_CFLAGS/ppc = -g # Note: The Itanium gcc compiler crashes when using -gstabs.
DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) DEBUG_CFLAGS/ia64 = -g
ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) DEBUG_CFLAGS/amd64 = -g
DEBUG_CFLAGS += -gstabs DEBUG_CFLAGS/arm = -g
endif DEBUG_CFLAGS/ppc = -g
DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
FASTDEBUG_CFLAGS/ia64 = -g DEBUG_CFLAGS += -gstabs
FASTDEBUG_CFLAGS/amd64 = -g
FASTDEBUG_CFLAGS/arm = -g
FASTDEBUG_CFLAGS/ppc = -g
FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
FASTDEBUG_CFLAGS += -gstabs
endif endif
OPT_CFLAGS/ia64 = -g ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
OPT_CFLAGS/amd64 = -g FASTDEBUG_CFLAGS/ia64 = -g
OPT_CFLAGS/arm = -g FASTDEBUG_CFLAGS/amd64 = -g
OPT_CFLAGS/ppc = -g FASTDEBUG_CFLAGS/arm = -g
OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) FASTDEBUG_CFLAGS/ppc = -g
ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
OPT_CFLAGS += -gstabs ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
FASTDEBUG_CFLAGS += -gstabs
endif
OPT_CFLAGS/ia64 = -g
OPT_CFLAGS/amd64 = -g
OPT_CFLAGS/arm = -g
OPT_CFLAGS/ppc = -g
OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
OPT_CFLAGS += -gstabs
endif
endif endif
endif endif
# DEBUG_BINARIES overrides everything, use full -g debug information
ifeq ($(DEBUG_BINARIES), true)
DEBUG_CFLAGS = -g
CFLAGS += $(DEBUG_CFLAGS)
endif
# If we are building HEADLESS, pass on to VM # If we are building HEADLESS, pass on to VM
# so it can set the java.awt.headless property # so it can set the java.awt.headless property
ifdef HEADLESS ifdef HEADLESS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册