Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
8c82fe4f
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8c82fe4f
编写于
9月 28, 2013
作者:
T
twisti
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8025613: clang: remove -Wno-unused-value
Reviewed-by: iveresov
上级
5877beba
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
13 addition
and
10 deletion
+13
-10
agent/src/os/linux/LinuxDebuggerLocal.c
agent/src/os/linux/LinuxDebuggerLocal.c
+2
-1
agent/src/os/linux/ps_proc.c
agent/src/os/linux/ps_proc.c
+2
-0
agent/src/os/linux/salibelf.c
agent/src/os/linux/salibelf.c
+1
-0
agent/src/os/linux/symtab.c
agent/src/os/linux/symtab.c
+1
-1
make/bsd/makefiles/gcc.make
make/bsd/makefiles/gcc.make
+2
-2
make/linux/makefiles/gcc.make
make/linux/makefiles/gcc.make
+1
-1
src/cpu/x86/vm/assembler_x86.cpp
src/cpu/x86/vm/assembler_x86.cpp
+2
-2
src/share/vm/classfile/defaultMethods.cpp
src/share/vm/classfile/defaultMethods.cpp
+2
-3
未找到文件。
agent/src/os/linux/LinuxDebuggerLocal.c
浏览文件 @
8c82fe4f
...
...
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
...
...
@@ -80,7 +81,7 @@ JNIEXPORT void JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_in
(
JNIEnv
*
env
,
jclass
cls
)
{
jclass
listClass
;
if
(
init_libproc
(
getenv
(
"LIBSAPROC_DEBUG"
))
!=
true
)
{
if
(
init_libproc
(
getenv
(
"LIBSAPROC_DEBUG"
)
!=
NULL
)
!=
true
)
{
THROW_NEW_DEBUGGER_EXCEPTION
(
"can't initialize libproc"
);
}
...
...
agent/src/os/linux/ps_proc.c
浏览文件 @
8c82fe4f
...
...
@@ -27,6 +27,8 @@
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ptrace.h>
#include "libproc_impl.h"
...
...
agent/src/os/linux/salibelf.c
浏览文件 @
8c82fe4f
...
...
@@ -25,6 +25,7 @@
#include "salibelf.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
extern
void
print_debug
(
const
char
*
,...);
...
...
agent/src/os/linux/symtab.c
浏览文件 @
8c82fe4f
...
...
@@ -305,7 +305,7 @@ static struct symtab* build_symtab_from_build_id(Elf64_Nhdr *note)
unsigned
char
*
bytes
=
(
unsigned
char
*
)(
note
+
1
)
+
note
->
n_namesz
;
unsigned
char
*
filename
char
*
filename
=
(
build_id_to_debug_filename
(
note
->
n_descsz
,
bytes
));
fd
=
pathmap_open
(
filename
);
...
...
make/bsd/makefiles/gcc.make
浏览文件 @
8c82fe4f
...
...
@@ -247,7 +247,7 @@ endif
ifeq
($(USE_CLANG), true)
# However we need to clean the code up before we can unrestrictedly enable this option with Clang
WARNINGS_ARE_ERRORS
+=
-Wno-
unused-value
-Wno-
logical-op-parentheses
-Wno-parentheses-equality
-Wno-parentheses
WARNINGS_ARE_ERRORS
+=
-Wno-logical-op-parentheses
-Wno-parentheses-equality
-Wno-parentheses
WARNINGS_ARE_ERRORS
+=
-Wno-switch
-Wno-tautological-compare
# Not yet supported by clang in Xcode 4.6.2
# WARNINGS_ARE_ERRORS += -Wno-tautological-constant-out-of-range-compare
...
...
@@ -262,7 +262,7 @@ ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \&
# conversions which might affect the values. Only enable it in earlier versions.
WARNING_FLAGS
=
-Wunused-function
ifeq
($(USE_CLANG),)
WARNING
S
_FLAGS
+=
-Wconversion
WARNING_FLAGS
+=
-Wconversion
endif
endif
...
...
make/linux/makefiles/gcc.make
浏览文件 @
8c82fe4f
...
...
@@ -208,7 +208,7 @@ WARNINGS_ARE_ERRORS = -Werror
ifeq
($(USE_CLANG), true)
# However we need to clean the code up before we can unrestrictedly enable this option with Clang
WARNINGS_ARE_ERRORS
+=
-Wno-
unused-value
-Wno-
logical-op-parentheses
-Wno-parentheses-equality
-Wno-parentheses
WARNINGS_ARE_ERRORS
+=
-Wno-logical-op-parentheses
-Wno-parentheses-equality
-Wno-parentheses
WARNINGS_ARE_ERRORS
+=
-Wno-switch
-Wno-tautological-constant-out-of-range-compare
-Wno-tautological-compare
WARNINGS_ARE_ERRORS
+=
-Wno-delete-non-virtual-dtor
-Wno-deprecated
-Wno-format
-Wno-dynamic-class-memaccess
WARNINGS_ARE_ERRORS
+=
-Wno-return-type
-Wno-empty-body
...
...
src/cpu/x86/vm/assembler_x86.cpp
浏览文件 @
8c82fe4f
...
...
@@ -4769,7 +4769,7 @@ void Assembler::adcq(Register dst, Address src) {
}
void
Assembler
::
adcq
(
Register
dst
,
Register
src
)
{
(
int
)
prefixq_and_encode
(
dst
->
encoding
(),
src
->
encoding
());
(
void
)
prefixq_and_encode
(
dst
->
encoding
(),
src
->
encoding
());
emit_arith
(
0x13
,
0xC0
,
dst
,
src
);
}
...
...
@@ -4824,7 +4824,7 @@ void Assembler::andq(Register dst, Address src) {
}
void
Assembler
::
andq
(
Register
dst
,
Register
src
)
{
(
int
)
prefixq_and_encode
(
dst
->
encoding
(),
src
->
encoding
());
(
void
)
prefixq_and_encode
(
dst
->
encoding
(),
src
->
encoding
());
emit_arith
(
0x23
,
0xC0
,
dst
,
src
);
}
...
...
src/share/vm/classfile/defaultMethods.cpp
浏览文件 @
8c82fe4f
...
...
@@ -977,7 +977,7 @@ Method* DefaultMethods::find_super_default(
return
target
;
}
#if
ndef PRODUC
T
#if
def ASSER
T
// Return true is broad type is a covariant return of narrow type
static
bool
covariant_return_type
(
BasicType
narrow
,
BasicType
broad
)
{
if
(
narrow
==
broad
)
{
...
...
@@ -988,7 +988,7 @@ static bool covariant_return_type(BasicType narrow, BasicType broad) {
}
return
false
;
}
#endif
// ndef PRODUCT
#endif
static
int
assemble_redirect
(
BytecodeConstantPool
*
cp
,
BytecodeBuffer
*
buffer
,
...
...
@@ -1281,4 +1281,3 @@ static void merge_in_new_methods(InstanceKlass* klass,
MetadataFactory
::
free_array
(
cld
,
original_ordering
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录