glibc/sysdeps/powerpc/powerpc64
Paul E. Murphy 50545f5aa0 powerpc64le: raise GCC requirement to 7.4 for long double transition
Add compiler feature tests to ensure we can build ieee128 long double.
These test for -mabi=ieeelongdouble, -mno-gnu-attribute, and -Wno-psabi.

Likewise, verify some compiler bugs have been addressed.  These aren't
helpful for building glibc, but may cause test failures when testing
the new long double.  See notes below from Raji.

On powerpc64le, some older compiler versions give error for the function
signbit() for 128-bit floating point types.  This is fixed by PR83862
in gcc 8.0 and backported to gcc6 and gcc7.  This patch adds a test
to check compiler version to avoid compiler errors during make check.

Likewise, test for -mno-gnu-attribute support which was

On powerpc64le, a few files are built on IEEE long double mode
(-mabi=ieeelongdouble), whereas most are built on IBM long double mode
(-mabi=ibmlongdouble, the default for -mlong-double-128).  Since binutils
2.31, linking object files with different long double modes causes
errors similar to:

  ld: libc_pic.a(s_isinfl.os) uses IBM long double,
      libc_pic.a(ieee128-qefgcvt.os) uses IEEE long double.
  collect2: error: ld returned 1 exit status
  make[2]: *** [../Makerules:649: libc_pic.os] Error 1

The warnings are fair and correct, but in order for glibc to have
support for both long double modes on powerpc64le, they have to be
ignored.  This can be accomplished with the use of -mno-gnu-attribute
option when building the few files that require IEEE long double mode.

However, -mno-gnu-attribute is not available in GCC 6, the minimum
version required to build glibc, so this patch adds a test for this
feature in powerpc64le builds, and fails early if it's not available.

Co-Authored-By: Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
Co-Authored-By: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2020-04-30 08:52:08 -05:00
..
a2 powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
be Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bits Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
cell Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fpu Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
le powerpc64le: raise GCC requirement to 7.4 for long double transition 2020-04-30 08:52:08 -05:00
multiarch Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
power4 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
power6 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
power7 powerpc64: apply -mabi=ibmlongdouble to special files 2020-03-25 14:34:23 -05:00
power8 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
__longjmp-common.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
addmul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
backtrace.c Fix array overflow in backtrace on PowerPC (bug 25423) 2020-01-21 15:26:57 +01:00
bsd-_setjmp.S
bsd-setjmp.S
bzero.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
configure powerpc64 configure message 2015-03-25 15:45:36 +10:30
configure.ac powerpc64 configure message 2015-03-25 15:45:36 +10:30
crti.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
crtn.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-dtprocnum.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-irel.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-machine.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-trampoline.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
entry.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ffsll.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hp-timing.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies
lshift.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile powerpc64: apply -mabi=ibmlongdouble to special files 2020-03-25 14:34:23 -05:00
memcpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
memset.S powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
mul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ppc-mcount.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
register-dump.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rtld-memset.c
setjmp-bug21895.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setjmp-common.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stackguard-macros.h
start.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strchr.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strcmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strlen.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strncmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
submul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysdep.h powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
tls-macros.h tst-tlsopt-powerpc as a shared lib 2017-08-03 15:39:21 +09:30
tst-audit.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setjmp-bug21895-static.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-ucontext-ppc64-vscr.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00