1 Star 0 Fork 81

hust_yangjing/openjdk-1.8.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dismiss-warnings-in-GCC-8.X.patch 598 Bytes
一键复制 编辑 原始数据 按行查看 历史
diff --git a/hotspot/make/linux/makefiles/adlc.make b/hotspot/make/linux/makefiles/adlc.make
index 92b8b9b3..a24f9184 100644
--- a/hotspot/make/linux/makefiles/adlc.make
+++ b/hotspot/make/linux/makefiles/adlc.make
@@ -64,6 +64,11 @@ CXXFLAGS = $(SYSDEFS) $(INCLUDES)
# Force assertions on.
CXXFLAGS += -DASSERT
+# Introduced in GCC 8.X
+ifneq "$(shell expr \( $(CC_VER_MAJOR) \>= 8 \))" "0"
+ CXXFLAGS += -Wno-error=stringop-overflow=
+endif
+
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
# Compiler warnings are treated as errors
CFLAGS_WARN = $(WARNINGS_ARE_ERRORS)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hust-yangjing/openjdk-1.8.0.git
git@gitee.com:hust-yangjing/openjdk-1.8.0.git
hust-yangjing
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助