diff options
author | Mahesh Bodapati <mahesh.bodapati@ibm.com> | 2023-05-12 05:22:59 -0500 |
---|---|---|
committer | Rajalakshmi Srinivasaraghavan <rajis@linux.ibm.com> | 2023-05-19 17:35:01 -0500 |
commit | 36cc908ed549389713955093bbfeaa35fdaf3e2e (patch) | |
tree | 33d697093dc2fe99ec270326a423178f42ef470f /sysdeps/powerpc | |
parent | b44c1e12524bb5de0f93294a7c24c8e41c06bb75 (diff) | |
download | glibc-36cc908ed549389713955093bbfeaa35fdaf3e2e.tar.gz glibc-36cc908ed549389713955093bbfeaa35fdaf3e2e.tar.xz glibc-36cc908ed549389713955093bbfeaa35fdaf3e2e.zip |
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’
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 |