提交 321e8299 编写于 作者: B bae

6980281: SWAT: SwingSet2 got core dumped in Solaris-AMD64 using b107 swat build

Reviewed-by: prr, ohair
上级 65e6bcf7
...@@ -466,12 +466,14 @@ else ...@@ -466,12 +466,14 @@ else
# On X86, make sure tail call optimization is off # On X86, make sure tail call optimization is off
# The z and y are the tail call optimizations. # The z and y are the tail call optimizations.
ifeq ($(ARCH_FAMILY), i586) ifeq ($(ARCH_FAMILY), i586)
ifeq ($(shell $(EXPR) $(CC_VER) \> 5.8), 1) ifeq ($(shell $(EXPR) $(CC_MAJORVER) \>= 5), 1)
# Somehow, tail call optimization is creeping in. ifeq ($(shell $(EXPR) $(CC_MINORVER) \> 8), 1)
# Make sure it is off. # Somehow, tail call optimization is creeping in.
# WARNING: These may cause compiler warnings about duplicate -O options # Make sure it is off.
CC_XKEEPFRAME_OPTIONS += -Wu,-O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz # WARNING: These may cause compiler warnings about duplicate -O options
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz CC_XKEEPFRAME_OPTIONS += -Wu,-O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -O$(OPT_LEVEL/$(OPTIMIZATION_LEVEL))~yz
endif
endif endif
endif endif
...@@ -487,12 +489,15 @@ else ...@@ -487,12 +489,15 @@ else
CC_XKEEPFRAME_OPTIONS += -Wu,-Z~B CC_XKEEPFRAME_OPTIONS += -Wu,-Z~B
CXX_XKEEPFRAME_OPTIONS += -Qoption ube -Z~B CXX_XKEEPFRAME_OPTIONS += -Qoption ube -Z~B
endif endif
ifeq ($(shell $(EXPR) $(CC_VER) \> 5.6), 1)
# Do NOT use frame pointer register as a general purpose opt register ifeq ($(shell $(EXPR) $(CC_MAJORVER) \>= 5), 1)
CC_OPT/NONE += -xregs=no%frameptr ifeq ($(shell $(EXPR) $(CC_MINORVER) \> 6), 1)
CXX_OPT/NONE += -xregs=no%frameptr # Do NOT use frame pointer register as a general purpose opt register
CC_XKEEPFRAME_OPTIONS += -xregs=no%frameptr CC_OPT/NONE += -xregs=no%frameptr
CXX_XKEEPFRAME_OPTIONS += -xregs=no%frameptr CXX_OPT/NONE += -xregs=no%frameptr
CC_XKEEPFRAME_OPTIONS += -xregs=no%frameptr
CXX_XKEEPFRAME_OPTIONS += -xregs=no%frameptr
endif
endif endif
endif endif
......
...@@ -61,6 +61,7 @@ endif ...@@ -61,6 +61,7 @@ endif
# Get compiler version # Get compiler version
_CC_VER :=$(shell $(CC) -V 2>&1 | $(HEAD) -n 1) _CC_VER :=$(shell $(CC) -V 2>&1 | $(HEAD) -n 1)
CC_VER :=$(call GetVersion,"$(_CC_VER)") CC_VER :=$(call GetVersion,"$(_CC_VER)")
CC_MAJORVER :=$(call MajorVersion,$(CC_VER))
CC_MINORVER :=$(call MinorVersion,$(CC_VER)) CC_MINORVER :=$(call MinorVersion,$(CC_VER))
# Name of compilers being used # Name of compilers being used
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册