From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1969) id 405C93858C41; Fri, 19 May 2023 22:35:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 405C93858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684535720; bh=vOScDTRsFzxu9NsDTFdNX4TbPfmQBIIwlo1i9hmBeF4=; h=From:To:Subject:Date:From; b=qpxAL2EUJMQGSSEAIuygiXbYR+Sef7txV65n1Rj7ZgDq3iv7BlKLCOsedzhtmZrek TD/atlzFFwaqqpCLf8Q2ySI/0Y3ONq8ZE4G3k+173Sj1um0h/p5i/hqgbVX9u2gXzm Wubftt1Q3uktNtiIDYESH9ndzcA45sl1dY5/wgb8= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Rajalakshmi Srinivasaraghavan To: glibc-cvs@sourceware.org Subject: [glibc] powerpc:GCC(<10) doesn't allow -mlong-double-64 after -mabi=ieeelongdouble X-Act-Checkin: glibc X-Git-Author: Mahesh Bodapati X-Git-Refname: refs/heads/master X-Git-Oldrev: b44c1e12524bb5de0f93294a7c24c8e41c06bb75 X-Git-Newrev: 36cc908ed549389713955093bbfeaa35fdaf3e2e Message-Id: <20230519223520.405C93858C41@sourceware.org> Date: Fri, 19 May 2023 22:35:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=36cc908ed549389713955093bbfeaa35fdaf3e2e commit 36cc908ed549389713955093bbfeaa35fdaf3e2e Author: Mahesh Bodapati Date: Fri May 12 05:22:59 2023 -0500 powerpc:GCC(<10) doesn't allow -mlong-double-64 after -mabi=ieeelongdouble Removed -mabi=ieeelongdouble on failing tests. It resolves the error. error: ‘-mabi=ieeelongdouble’ requires ‘-mlong-double-128’ Diff: --- sysdeps/powerpc/powerpc64/le/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sysdeps/powerpc/powerpc64/le/Makefile b/sysdeps/powerpc/powerpc64/le/Makefile index 53644d50cc..5214eb40ad 100644 --- a/sysdeps/powerpc/powerpc64/le/Makefile +++ b/sysdeps/powerpc/powerpc64/le/Makefile @@ -158,6 +158,23 @@ ifeq ($(subdir),stdio-common) CFLAGS-printf_fp.c = $(type-float128-CFLAGS) CFLAGS-printf_fphex.c = $(type-float128-CFLAGS) CFLAGS-printf_size.c = $(type-float128-CFLAGS) +#Older GCC (<10) doesn't like -mabi=ieeelongdouble and -mlong-double-64. +$(foreach suf,$(all-object-suffixes),\ + $(objpfx)tst-nldbl-scanf-binary-c11$(suf) \ + $(objpfx)tst-nldbl-scanf-binary-c2x$(suf) \ + $(objpfx)tst-nldbl-scanf-binary-gnu11$(suf) \ + $(objpfx)tst-nldbl-scanf-binary-gnu89$(suf) \ + ): sysdep-CFLAGS := $(filter-out -mabi=ieeelongdouble,$(sysdep-CFLAGS)) +endif + +#Older GCC (<10) doesn't like -mabi=ieeelongdouble and -mlong-double-64. +ifeq ($(subdir), wcsmbs) +$(foreach suf,$(all-object-suffixes),\ + $(objpfx)tst-nldbl-wscanf-binary-c11$(suf) \ + $(objpfx)tst-nldbl-wscanf-binary-c2x$(suf) \ + $(objpfx)tst-nldbl-wscanf-binary-gnu11$(suf) \ + $(objpfx)tst-nldbl-wscanf-binary-gnu89$(suf) \ + ): sysdep-CFLAGS := $(filter-out -mabi=ieeelongdouble,$(sysdep-CFLAGS)) endif # Disable linker noise on files using ieee128 long double internally