am 87a25ea7: am bce52ca5: Merge "Remove arm64 clang build warning"

* commit '87a25ea72f41b77898e62ad09e48e0b0de1dc84f':
  Remove arm64 clang build warning
This commit is contained in:
Ying Wang 2014-03-18 23:07:49 +00:00 committed by Android Git Automerger
commit e36870862e
3 changed files with 2 additions and 12 deletions

View File

@ -50,5 +50,4 @@ CLANG_TARGET_GLOBAL_LDFLAGS := \
$(call convert-to-clang-flags,$(TARGET_GLOBAL_LDFLAGS)) \ $(call convert-to-clang-flags,$(TARGET_GLOBAL_LDFLAGS)) \
$(CLANG_CONFIG_arm64_TARGET_EXTRA_LDFLAGS) $(CLANG_CONFIG_arm64_TARGET_EXTRA_LDFLAGS)
$(warning Incorrect arm64 RS_TRIPLE, fix me!)
RS_TRIPLE := aarch64-linux-android RS_TRIPLE := aarch64-linux-android

View File

@ -1,7 +1,5 @@
# Clang flags for arm64 arch, target or host. # Clang flags for arm64 arch, target or host.
$(warning Untested arm64 clang flags, fix me!)
CLANG_CONFIG_arm64_EXTRA_ASFLAGS := CLANG_CONFIG_arm64_EXTRA_ASFLAGS :=
CLANG_CONFIG_arm64_EXTRA_CFLAGS := \ CLANG_CONFIG_arm64_EXTRA_CFLAGS := \
@ -12,18 +10,14 @@ CLANG_CONFIG_arm64_EXTRA_LDFLAGS :=
# Include common unknown flags # Include common unknown flags
CLANG_CONFIG_arm64_UNKNOWN_CFLAGS := \ CLANG_CONFIG_arm64_UNKNOWN_CFLAGS := \
$(CLANG_CONFIG_UNKNOWN_CFLAGS) \ $(CLANG_CONFIG_UNKNOWN_CFLAGS) \
-mthumb-interwork \
-fgcse-after-reload \ -fgcse-after-reload \
-frerun-cse-after-loop \ -frerun-cse-after-loop \
-frename-registers \ -frename-registers \
-fno-builtin-sin \
-fno-strict-volatile-bitfields \ -fno-strict-volatile-bitfields \
-fno-align-jumps \ -fno-align-jumps \
-Wa,--noexecstack -Wa,--noexecstack
# We don't have any arm64 flags to substitute yet.
define subst-clang-incompatible-arm64-flags define subst-clang-incompatible-arm64-flags
$(subst -march=armv5te,-march=armv5t,\ $(1)
$(subst -march=armv5e,-march=armv5,\
$(subst -mcpu=cortex-a15,-march=armv7-a,\
$(1))))
endef endef

View File

@ -47,9 +47,6 @@ ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
$(error Unknown ARM architecture version: $(TARGET_ARCH_VARIANT)) $(error Unknown ARM architecture version: $(TARGET_ARCH_VARIANT))
endif endif
# TODO: Enable Clang when aarch64 prebuilt is added
# WITHOUT_TARGET_CLANG := true
include $(TARGET_ARCH_SPECIFIC_MAKEFILE) include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
# You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else # You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else