From 2efd3e3d10e6cccafb41b78ed3da991e57fcf735 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 18 Jul 2022 22:13:26 +0000 Subject: [PATCH] Revert "Revert "Use the ieee128 format for long double on ppc64le" until rhbz#2100546 is fixed" This reverts commit e26357988c0eae9922c31977596ded1f19c90eb4. --- clang.spec | 9 ++++++++- tests/ppc64le-long-double/main.fmf | 2 -- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/clang.spec b/clang.spec index 3c5737f..04a2161 100644 --- a/clang.spec +++ b/clang.spec @@ -39,7 +39,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} -Release: 4%{?dist} +Release: 5%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -310,6 +310,7 @@ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" # -DLLVM_ENABLE_NEW_PASS_MANAGER=ON can be removed once this patch is committed: # https://reviews.llvm.org/D107628 +# -DPPC_LINUX_DEFAULT_IEEELONGDOUBLE=ON to match gcc. %cmake -G Ninja \ -DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ @@ -359,6 +360,9 @@ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" -DCLANG_BUILD_EXAMPLES:BOOL=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCLANG_REPOSITORY_STRING="%{?dist_vendor} %{version}-%{release}" \ +%if 0%{?fedora} + -DPPC_LINUX_DEFAULT_IEEELONGDOUBLE=ON \ +%endif %ifarch %{arm} -DCLANG_DEFAULT_LINKER=lld \ %endif @@ -591,6 +595,9 @@ false %endif %changelog +* Mon Jul 18 2022 Tom Stellard - 14.0.5-5 +- Re-enable ieee128 as the default long double format on ppc64le + * Thu Jul 28 2022 Amit Shah - 14.0.5-4 - Use the dist_vendor macro to identify the distribution diff --git a/tests/ppc64le-long-double/main.fmf b/tests/ppc64le-long-double/main.fmf index 70cb665..c341e3c 100644 --- a/tests/ppc64le-long-double/main.fmf +++ b/tests/ppc64le-long-double/main.fmf @@ -1,8 +1,6 @@ summary: Test that gcc and clang use the same long double format on ppc64le test: $WITH_SCL ./runtest.sh duration: 1h -# see https://bugzilla.redhat.com/show_bug.cgi?id=2100546 -enabled: false adjust: # Common requirements when LLVM is not SCL-ized - require+: