am d807b9a1: Merge "Use gcc to build and test x86_64 long double code."

* commit 'd807b9a12d3e49132b095df3d883618452033b51':
  Use gcc to build and test x86_64 long double code.
This commit is contained in:
Chih-Hung Hsieh 2015-06-24 00:40:16 +00:00 committed by Android Git Automerger
commit 4ab0edac1a
3 changed files with 20 additions and 2 deletions

View File

@ -580,6 +580,13 @@ libc_common_cflags += -DTARGET_USES_LOGD
endif endif
use_clang := $(USE_CLANG_PLATFORM_BUILD) use_clang := $(USE_CLANG_PLATFORM_BUILD)
# Clang/llvm has incompatible long double (fp128) for x86_64.
# https://llvm.org/bugs/show_bug.cgi?id=23897
ifeq ($(TARGET_ARCH),x86_64)
use_clang := false
endif
ifeq ($(use_clang),) ifeq ($(use_clang),)
use_clang := false use_clang := false
endif endif

View File

@ -3,6 +3,12 @@ LOCAL_PATH:= $(call my-dir)
bionic_coverage := false bionic_coverage := false
# Clang/llvm has incompatible long double (fp128) for x86_64.
# https://llvm.org/bugs/show_bug.cgi?id=23897
ifeq ($(TARGET_ARCH),x86_64)
libm_clang := false
endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# libm.a # libm.a
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -473,7 +479,7 @@ LOCAL_C_INCLUDES_x86 += $(LOCAL_PATH)/i387
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/ LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/
LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/ LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/
LOCAL_CLANG := true LOCAL_CLANG := $(libm_clang)
LOCAL_ARM_MODE := arm LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := \ LOCAL_CFLAGS := \
-DFLT_EVAL_METHOD=0 \ -DFLT_EVAL_METHOD=0 \
@ -514,7 +520,7 @@ LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/libm.map LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/libm.map
LOCAL_MODULE := libm LOCAL_MODULE := libm
LOCAL_CLANG := true LOCAL_CLANG := $(libm_clang)
LOCAL_SYSTEM_SHARED_LIBRARIES := libc LOCAL_SYSTEM_SHARED_LIBRARIES := libc
LOCAL_WHOLE_STATIC_LIBRARIES := libm LOCAL_WHOLE_STATIC_LIBRARIES := libm

View File

@ -137,6 +137,11 @@ libBionicStandardTests_static_libraries := \
libBionicStandardTests_ldlibs_host := \ libBionicStandardTests_ldlibs_host := \
-lrt \ -lrt \
# Clang/llvm has incompatible long double (fp128) for x86_64.
# https://llvm.org/bugs/show_bug.cgi?id=23897
# This affects most of math_test.cpp.
libBionicStandardTests_clang_target := false
module := libBionicStandardTests module := libBionicStandardTests
module_tag := optional module_tag := optional
build_type := target build_type := target