gcc/libgcc/config/arm
Richard Earnshaw 0204dcf930 arm: libgcc: make -spec=sync-*.specs compatible with LTO [PR118642]
The arm-none-eabi port provides some alternative implementations of
__sync_synchronize for different implementations of the architecture.
These can be selected using one of -specs=sync-{none,dmb,cp15dmb}.specs.

These specs fragments fail, however, when LTO is used because they
unconditionally add a --defsym=__sync_synchronize=<implementation> to
the linker arguments and that fails if libgcc is not added to the list
of libraries.

Fix this by only adding the defsym if libgcc will be passed to the
linker.

libgcc/

	PR target/118642
	* config/arm/sync-none.specs (link): Only add the defsym if
	libgcc will be used.
	* config/arm/sync-dmb.specs: Likewise.
	* config/arm/sync-cp15dmb.specs: Likewise.
2025-01-28 16:23:06 +00:00
..
bpabi-lib.h Update copyright years. 2025-01-02 11:59:57 +01:00
bpabi-v6m.S Update copyright years. 2025-01-02 11:59:57 +01:00
bpabi.c Update copyright years. 2025-01-02 11:59:57 +01:00
bpabi.S Update copyright years. 2025-01-02 11:59:57 +01:00
cmse.c Update copyright years. 2025-01-02 11:59:57 +01:00
cmse_nonsecure_call.S Update copyright years. 2025-01-02 11:59:57 +01:00
crtfastmath.c Update copyright years. 2025-01-02 11:59:57 +01:00
crti.S Update copyright years. 2025-01-02 11:59:57 +01:00
crtn.S Update copyright years. 2025-01-02 11:59:57 +01:00
fp16.c Update copyright years. 2025-01-02 11:59:57 +01:00
freebsd-atomic.c Update copyright years. 2025-01-02 11:59:57 +01:00
ieee754-df.S Update copyright years. 2025-01-02 11:59:57 +01:00
ieee754-sf.S Update copyright years. 2025-01-02 11:59:57 +01:00
lib1funcs.S Update copyright years. 2025-01-02 11:59:57 +01:00
libgcc-bpabi.ver Update copyright years. 2025-01-02 11:59:57 +01:00
libunwind.S Update copyright years. 2025-01-02 11:59:57 +01:00
linux-atomic-64bit.c Update copyright years. 2025-01-02 11:59:57 +01:00
linux-atomic.c Update copyright years. 2025-01-02 11:59:57 +01:00
pr-support.c Update copyright years. 2025-01-02 11:59:57 +01:00
sfp-machine.h
symbian-lib.h Update copyright years. 2025-01-02 11:59:57 +01:00
sync-cp15dmb.specs arm: libgcc: make -spec=sync-*.specs compatible with LTO [PR118642] 2025-01-28 16:23:06 +00:00
sync-dmb.specs arm: libgcc: make -spec=sync-*.specs compatible with LTO [PR118642] 2025-01-28 16:23:06 +00:00
sync-none.specs arm: libgcc: make -spec=sync-*.specs compatible with LTO [PR118642] 2025-01-28 16:23:06 +00:00
t-arm
t-bpabi
t-elf
t-freebsd
t-linux
t-linux-eabi
t-netbsd
t-netbsd-eabi
t-softfp
t-strongarm-elf
t-symbian
t-sync arm: libgcc: provide implementations of __sync_synchronize 2023-11-24 14:15:26 +00:00
t-vxworks7
t-wince-pe
unaligned-funcs.c Update copyright years. 2025-01-02 11:59:57 +01:00
unwind-arm-vxworks.c Update copyright years. 2025-01-02 11:59:57 +01:00
unwind-arm.c Update copyright years. 2025-01-02 11:59:57 +01:00
unwind-arm.h Update copyright years. 2025-01-02 11:59:57 +01:00