< prev index next >

make/hotspot/lib/CompileJvm.gmk

Print this page




  47     $(EXTRA_LDFLAGS) \
  48     #
  49 
  50 JVM_LIBS += \
  51     $(JVM_LIBS_FEATURES) \
  52     #
  53 
  54 # These files and directories are always excluded
  55 JVM_EXCLUDE_FILES += args.cc
  56 JVM_EXCLUDES += adlc
  57 
  58 # Needed by vm_version.cpp
  59 ifeq ($(call isTargetCpu, x86_64), true)
  60   OPENJDK_TARGET_CPU_VM_VERSION := amd64
  61 else ifeq ($(call isTargetCpu, sparcv9), true)
  62   OPENJDK_TARGET_CPU_VM_VERSION := sparc
  63 else
  64   OPENJDK_TARGET_CPU_VM_VERSION := $(OPENJDK_TARGET_CPU)
  65 endif
  66 




  67 CFLAGS_VM_VERSION := \
  68     $(VERSION_CFLAGS) \
  69     -DHOTSPOT_VERSION_STRING='"$(VERSION_STRING)"' \
  70     -DDEBUG_LEVEL='"$(DEBUG_LEVEL)"' \
  71     -DHOTSPOT_BUILD_USER='"$(USERNAME)"' \
  72     -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \
  73     -DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \

  74     #
  75 
  76 ################################################################################
  77 # Disabled warnings
  78 
  79 DISABLED_WARNINGS_gcc := extra parentheses comment unknown-pragmas address \
  80     delete-non-virtual-dtor char-subscripts array-bounds int-in-bool-context \
  81     ignored-qualifiers  missing-field-initializers implicit-fallthrough \
  82     empty-body strict-overflow sequence-point maybe-uninitialized \
  83     misleading-indentation
  84 
  85 ifeq ($(call check-jvm-feature, zero), true)
  86   DISABLED_WARNINGS_gcc += return-type switch
  87 endif
  88 
  89 DISABLED_WARNINGS_clang := tautological-compare \
  90     undefined-var-template sometimes-uninitialized unknown-pragmas \
  91     delete-non-virtual-dtor missing-braces char-subscripts \
  92     ignored-qualifiers missing-field-initializers mismatched-tags
  93 




  47     $(EXTRA_LDFLAGS) \
  48     #
  49 
  50 JVM_LIBS += \
  51     $(JVM_LIBS_FEATURES) \
  52     #
  53 
  54 # These files and directories are always excluded
  55 JVM_EXCLUDE_FILES += args.cc
  56 JVM_EXCLUDES += adlc
  57 
  58 # Needed by vm_version.cpp
  59 ifeq ($(call isTargetCpu, x86_64), true)
  60   OPENJDK_TARGET_CPU_VM_VERSION := amd64
  61 else ifeq ($(call isTargetCpu, sparcv9), true)
  62   OPENJDK_TARGET_CPU_VM_VERSION := sparc
  63 else
  64   OPENJDK_TARGET_CPU_VM_VERSION := $(OPENJDK_TARGET_CPU)
  65 endif
  66 
  67 ifneq ($(HOTSPOT_TARGET_LIBC),)
  68   LIBC_DEFINE := -DHOTSPOT_LIBC='"$(HOTSPOT_TARGET_LIBC)"'
  69 endif
  70 
  71 CFLAGS_VM_VERSION := \
  72     $(VERSION_CFLAGS) \
  73     -DHOTSPOT_VERSION_STRING='"$(VERSION_STRING)"' \
  74     -DDEBUG_LEVEL='"$(DEBUG_LEVEL)"' \
  75     -DHOTSPOT_BUILD_USER='"$(USERNAME)"' \
  76     -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \
  77     -DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \
  78     $(LIBC_DEFINE) \
  79     #
  80 
  81 ################################################################################
  82 # Disabled warnings
  83 
  84 DISABLED_WARNINGS_gcc := extra parentheses comment unknown-pragmas address \
  85     delete-non-virtual-dtor char-subscripts array-bounds int-in-bool-context \
  86     ignored-qualifiers  missing-field-initializers implicit-fallthrough \
  87     empty-body strict-overflow sequence-point maybe-uninitialized \
  88     misleading-indentation
  89 
  90 ifeq ($(call check-jvm-feature, zero), true)
  91   DISABLED_WARNINGS_gcc += return-type switch
  92 endif
  93 
  94 DISABLED_WARNINGS_clang := tautological-compare \
  95     undefined-var-template sometimes-uninitialized unknown-pragmas \
  96     delete-non-virtual-dtor missing-braces char-subscripts \
  97     ignored-qualifiers missing-field-initializers mismatched-tags
  98 


< prev index next >