gcc/libgcc/config
Michael Meissner 9f1a650199 PowerPC: PR libgcc/97543 and libgcc/97643, fix long double issues
If you use a compiler with long double defaulting to 64-bit instead of 128-bit
with IBM extended double, you get linker warnings about mis-matches in the gnu
attributes for long double (PR libgcc/97543).  Even if the compiler is
configured to have long double be 64 bit as the default with the configuration
option '--without-long-double-128' you get the warnings.

You also get the same issues if you use a compiler with long double defaulting
to IEEE 128-bit instead of IBM extended double (PR libgcc/97643).

The issue is the way libgcc.a/libgcc.so is built.  Right now when building
libgcc under Linux, the long double size is set to 128-bits when building
libgcc.  However, the gnu attributes are set, leading to the warnings.

One feature of the current GNU attribute implementation is if you have a shared
library (such as libgcc_s.so), the GNU attributes for the shared library is an
inclusive OR of all of the objects within the library.  This means if any
object file that uses the -mlong-double-128 option and uses long double, the GNU
attributes for the library will indicate that it uses 128-bit IBM long
doubles.  If you have a static library, you will get the warning only if you
actually reference an object file  with the attribute set.

This patch does two things:

    1)	All of the object files that support IBM 128-bit long doubles
	explicitly set the ABI to IBM extended double.

    2)	I turned off GNU attributes for building the shared library or for
        building the IBM 128-bit long double support.

libgcc/
2020-12-03  Michael Meissner  <meissner@linux.ibm.com>

	PR libgcc/97543
	PR libgcc/97643
	* config/rs6000/t-linux (IBM128_STATIC_OBJS): New make variable.
	(IBM128_SHARED_OBJS): New make variable.
	(IBM128_OBJS): New make variable.  Set all objects to use the
	explicit IBM format, and disable gnu attributes.
	(IBM128_CFLAGS): New make variable.
	(gcc_s_compile): Add -mno-gnu-attribute to all shared library
	modules.
2020-12-03 14:50:26 -05:00
..
aarch64 aarch64: Add HF routines to libgcc_s.so 2020-09-28 11:26:53 +01:00
alpha
arc
arm libgcc/config/arm/fp16.c: Make _internal functions static inline 2020-09-17 12:23:36 +00:00
avr Fix typo in ChangeLog 2020-06-24 10:10:56 -04:00
bfin
bpf
c6x
cr16
cris
csky
epiphany
fr30
frv
ft32
gcn
h8300
i386 x86: Add <x86gprintrin.h> 2020-10-09 05:08:41 -07:00
ia64
iq2000
libbid Daily bump. 2020-10-24 00:16:29 +00:00
lm32
m32c
m32r
m68k
mcore
microblaze
mips
mmix
moxie
msp430 MSP430: Add 64-bit hardware multiply support 2020-11-18 11:05:27 +00:00
nds32
nios2
nvptx [nvptx, libgcc] Fix Wbuiltin-declaration-mismatch in atomic.c 2020-09-09 19:22:07 +02:00
or1k
pa
pdp11
pru
riscv RISC-V/libgcc: Use `-fasynchronous-unwind-tables' for LIB2_DIVMOD_FUNCS 2020-09-29 01:20:01 +01:00
rl78
rs6000 PowerPC: PR libgcc/97543 and libgcc/97643, fix long double issues 2020-12-03 14:50:26 -05:00
rx
s390
score
sh
sol2
sparc
stormy16
tilegx
tilepro
v850
vax
visium
vms
xtensa
darwin10-unwind-find-enc-func.c
darwin-64.c
darwin-crt3.c
darwin-crt-tm.c
gthr-lynx.h
gthr-rtems.h
gthr-vxworks-cond.c Fix overzealous gthread support inhibition for vxworks 2020-10-23 15:23:33 +00:00
gthr-vxworks-thread.c Fix conditional inclusion guard in gthr-vxworks-thread.c 2020-10-29 10:59:11 +00:00
gthr-vxworks-tls.c Fix the logic conditioning VX_ENTER/LEAVE_TLS_DTOR 2020-10-29 10:59:11 +00:00
gthr-vxworks.c Add missing #include <taskLib.h> in gthr-vxworks.c 2020-10-16 16:14:52 +00:00
gthr-vxworks.h Inhibit support for C++0x threads on VxWorks < 6 2020-10-16 16:16:17 +00:00
hardfp.c
libgcc-glibc.ver
libgcc-libsystem.ver
no-sfp-machine.h
no-unwind.h
t-crtfm
t-crtstuff-pic
t-darwin
t-dfprules
t-eh-dw2-dip
t-fdpbit
t-fixedpoint-gnu-prefix
t-fpbit
t-freebsd-thread
t-gnu-prefix
t-gthr-noweak
t-gthr-vxworks
t-gthr-vxworksae
t-hardfp
t-hardfp-sfdf
t-libgcc-pic
t-libunwind
t-libunwind-elf
t-linux
t-openbsd-thread
t-rtems
t-slibgcc
t-slibgcc-darwin
t-slibgcc-elf-ver
t-slibgcc-fuchsia
t-slibgcc-gld
t-slibgcc-gld-nover
t-slibgcc-hpux
t-slibgcc-libgcc
t-slibgcc-nolc-override
t-slibgcc-sld
t-slibgcc-vms
t-softfp
t-softfp-compat
t-softfp-excl
t-softfp-sfdf
t-softfp-sfdftf
t-softfp-tf
t-stack
t-tls
t-vxcrtstuff Fix the vxworks crtstuff handling of kernel/rtp variations 2020-10-16 15:33:35 +00:00
t-vxworks introduce overridable clear_cache emitter 2020-12-02 22:10:32 -03:00
t-vxworks7 introduce overridable clear_cache emitter 2020-12-02 22:10:32 -03:00
t-vxworksae
unwind-dw2-fde-darwin.c
vxcrtstuff.c