1 # |
1 # |
2 # Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. |
3 # Copyright 2007, 2008 Red Hat, Inc. |
3 # Copyright 2007, 2008 Red Hat, Inc. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 # |
5 # |
6 # This code is free software; you can redistribute it and/or modify it |
6 # This code is free software; you can redistribute it and/or modify it |
7 # under the terms of the GNU General Public License version 2 only, as |
7 # under the terms of the GNU General Public License version 2 only, as |
23 # |
23 # |
24 # |
24 # |
25 |
25 |
26 # Setup common to Zero (non-Shark) and Shark versions of VM |
26 # Setup common to Zero (non-Shark) and Shark versions of VM |
27 |
27 |
28 # override this from the main file because some version of llvm do not like -Wundef |
28 # Some versions of llvm do not like -Wundef |
29 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value |
29 ifeq ($(JVM_VARIANT_ZEROSHARK), true) |
|
30 WARNING_FLAGS += -Wno-undef |
|
31 endif |
|
32 # Suppress some warning flags that are normally turned on for hotspot, |
|
33 # because some of the zero code has not been updated accordingly. |
|
34 WARNING_FLAGS += -Wno-return-type \ |
|
35 -Wno-format-nonliteral -Wno-format-security \ |
|
36 -Wno-maybe-uninitialized |
|
37 |
30 |
38 |
31 # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to |
39 # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to |
32 # the compiler so as to be able to produce optimized objects |
40 # the compiler so as to be able to produce optimized objects |
33 # without losing precision. |
41 # without losing precision. |
34 ifneq ($(FDLIBM_CFLAGS),) |
42 ifneq ($(FDLIBM_CFLAGS),) |