libgcc, X86: Exclude rules for libgcc2 __{div,mul}hc3.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 18 Sep 2021 18:55:19 +0000 (19:55 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 19 Sep 2021 18:38:04 +0000 (19:38 +0100)
We want to override the libgcc2 generic version of these functions
for X86.  First exclude the original and the add in the replacements.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libgcc/ChangeLog:

* config/i386/t-softfp: Exclude libgcc2 versions of __divhc3
and __mulhc3.

libgcc/config/i386/t-softfp

index 7620cc0..fe2ad8a 100644 (file)
@@ -2,6 +2,7 @@ LIB2ADD += $(srcdir)/config/i386/sfp-exceptions.c
 
 # Replace _divhc3 and _mulhc3.
 libgcc2-hf-functions = _divhc3 _mulhc3
+LIB2FUNCS_EXCLUDE += $(libgcc2-hf-functions)
 libgcc2-hf-extras = $(addsuffix .c, $(libgcc2-hf-functions))
 LIB2ADD += $(addprefix $(srcdir)/config/i386/, $(libgcc2-hf-extras))