|
|
ecab97 |
# HG changeset patch
|
|
|
ecab97 |
# User sgehwolf
|
|
|
ecab97 |
# Date 1525714161 -3600
|
|
|
ecab97 |
# Mon May 07 18:29:21 2018 +0100
|
|
|
ecab97 |
# Node ID afb31413c73cbc06420fdb447aa90a7a38258904
|
|
|
ecab97 |
# Parent bcbc64dfb629c5f188bbf59b8f986ad95963ed60
|
|
|
ecab97 |
8143245, PR3548: Zero build requires disabled warnings
|
|
|
ecab97 |
Reviewed-by: dholmes, coleenp
|
|
|
ecab97 |
|
|
|
ecab97 |
diff --git openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make openjdk/hotspot/make/linux/makefiles/zeroshark.make
|
|
|
ecab97 |
--- openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make
|
|
|
ecab97 |
+++ openjdk/hotspot/make/linux/makefiles/zeroshark.make
|
|
|
ecab97 |
@@ -1,5 +1,5 @@
|
|
|
ecab97 |
#
|
|
|
ecab97 |
-# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
+# Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
# Copyright 2007, 2008 Red Hat, Inc.
|
|
|
ecab97 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
ecab97 |
#
|
|
|
ecab97 |
@@ -29,12 +29,7 @@
|
|
|
ecab97 |
ifeq ($(JVM_VARIANT_ZEROSHARK), true)
|
|
|
ecab97 |
WARNING_FLAGS += -Wno-undef
|
|
|
ecab97 |
endif
|
|
|
ecab97 |
-# Suppress some warning flags that are normally turned on for hotspot,
|
|
|
ecab97 |
-# because some of the zero code has not been updated accordingly.
|
|
|
ecab97 |
-WARNING_FLAGS += -Wno-return-type \
|
|
|
ecab97 |
- -Wno-format-nonliteral -Wno-format-security \
|
|
|
ecab97 |
- -Wno-maybe-uninitialized
|
|
|
ecab97 |
-
|
|
|
ecab97 |
+
|
|
|
ecab97 |
|
|
|
ecab97 |
# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
|
|
|
ecab97 |
# the compiler so as to be able to produce optimized objects
|
|
|
ecab97 |
diff --git openjdk.orig/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
|
|
|
ecab97 |
--- openjdk.orig/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
|
|
|
ecab97 |
+++ openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
|
|
|
ecab97 |
@@ -100,7 +100,7 @@
|
|
|
ecab97 |
case T_DOUBLE:
|
|
|
ecab97 |
case T_VOID:
|
|
|
ecab97 |
return result;
|
|
|
ecab97 |
- default : ShouldNotReachHere();
|
|
|
ecab97 |
+ default : ShouldNotReachHere(); return NULL_WORD;
|
|
|
ecab97 |
}
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
diff --git openjdk.orig/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp openjdk/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
|
|
|
ecab97 |
--- openjdk.orig/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
|
|
|
ecab97 |
+++ openjdk/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
|
|
|
ecab97 |
@@ -1,5 +1,5 @@
|
|
|
ecab97 |
/*
|
|
|
ecab97 |
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
+ * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
* Copyright 2007, 2008, 2010 Red Hat, Inc.
|
|
|
ecab97 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
ecab97 |
*
|
|
|
ecab97 |
@@ -62,7 +62,7 @@
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
void InterpreterRuntime::SignatureHandlerGeneratorBase::push(BasicType type) {
|
|
|
ecab97 |
- ffi_type *ftype;
|
|
|
ecab97 |
+ ffi_type *ftype = NULL;
|
|
|
ecab97 |
switch (type) {
|
|
|
ecab97 |
case T_VOID:
|
|
|
ecab97 |
ftype = &ffi_type_void;
|
|
|
ecab97 |
diff --git openjdk.orig/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
|
|
|
ecab97 |
--- openjdk.orig/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
|
|
|
ecab97 |
+++ openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
|
|
|
ecab97 |
@@ -1,6 +1,6 @@
|
|
|
ecab97 |
/*
|
|
|
ecab97 |
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
- * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
|
|
|
ecab97 |
+ * Copyright 2016 Red Hat, Inc.
|
|
|
ecab97 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
ecab97 |
*
|
|
|
ecab97 |
* This code is free software; you can redistribute it and/or modify it
|
|
|
ecab97 |
@@ -61,6 +61,7 @@
|
|
|
ecab97 |
|
|
|
ecab97 |
frame os::get_sender_for_C_frame(frame* fr) {
|
|
|
ecab97 |
ShouldNotCallThis();
|
|
|
ecab97 |
+ return frame(NULL, NULL); // silence compile warning.
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
frame os::current_frame() {
|
|
|
ecab97 |
@@ -98,16 +99,19 @@
|
|
|
ecab97 |
|
|
|
ecab97 |
address os::Linux::ucontext_get_pc(ucontext_t* uc) {
|
|
|
ecab97 |
ShouldNotCallThis();
|
|
|
ecab97 |
+ return NULL; // silence compile warnings
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
ExtendedPC os::fetch_frame_from_context(void* ucVoid,
|
|
|
ecab97 |
intptr_t** ret_sp,
|
|
|
ecab97 |
intptr_t** ret_fp) {
|
|
|
ecab97 |
ShouldNotCallThis();
|
|
|
ecab97 |
+ return NULL; // silence compile warnings
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
frame os::fetch_frame_from_context(void* ucVoid) {
|
|
|
ecab97 |
ShouldNotCallThis();
|
|
|
ecab97 |
+ return frame(NULL, NULL); // silence compile warnings
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
extern "C" JNIEXPORT int
|
|
|
ecab97 |
@@ -247,11 +251,16 @@
|
|
|
ecab97 |
}
|
|
|
ecab97 |
#endif // !PRODUCT
|
|
|
ecab97 |
|
|
|
ecab97 |
- const char *fmt = "caught unhandled signal %d";
|
|
|
ecab97 |
char buf[64];
|
|
|
ecab97 |
|
|
|
ecab97 |
- sprintf(buf, fmt, sig);
|
|
|
ecab97 |
+ sprintf(buf, "caught unhandled signal %d", sig);
|
|
|
ecab97 |
+
|
|
|
ecab97 |
+// Silence -Wformat-security warning for fatal()
|
|
|
ecab97 |
+PRAGMA_DIAG_PUSH
|
|
|
ecab97 |
+PRAGMA_FORMAT_NONLITERAL_IGNORED
|
|
|
ecab97 |
fatal(buf);
|
|
|
ecab97 |
+PRAGMA_DIAG_POP
|
|
|
ecab97 |
+ return true; // silence compiler warnings
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
void os::Linux::init_thread_fpu_state(void) {
|
|
|
ecab97 |
@@ -260,6 +269,7 @@
|
|
|
ecab97 |
|
|
|
ecab97 |
int os::Linux::get_fpu_control_word() {
|
|
|
ecab97 |
ShouldNotCallThis();
|
|
|
ecab97 |
+ return -1; // silence compile warnings
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
ecab97 |
void os::Linux::set_fpu_control_word(int fpu) {
|
|
|
ecab97 |
diff --git openjdk.orig/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp openjdk/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
|
|
|
ecab97 |
--- openjdk.orig/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
|
|
|
ecab97 |
+++ openjdk/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
|
|
|
ecab97 |
@@ -1,5 +1,5 @@
|
|
|
ecab97 |
/*
|
|
|
ecab97 |
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
|
|
ecab97 |
* Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
|
|
|
ecab97 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
ecab97 |
*
|
|
|
ecab97 |
@@ -110,6 +110,7 @@
|
|
|
ecab97 |
void* ucontext,
|
|
|
ecab97 |
bool isInJava) {
|
|
|
ecab97 |
ShouldNotCallThis();
|
|
|
ecab97 |
+ return false; // silence compile warning
|
|
|
ecab97 |
}
|
|
|
ecab97 |
|
|
|
0de6e9 |
bool pd_get_top_frame_for_profiling(frame* fr_addr,
|