On 5/20/19 11:05 AM, Martin Liška wrote: > Hi. > > This is a missing piece of the libc_has_fast_function hook. > I'm going to install that as obvious as it breaks current trunk > for all except x86 target. > > Martin > > gcc/ChangeLog: > > 2019-05-20 Martin Liska <mli...@suse.cz> > > * targhooks.c (default_libc_has_fast_function): New function. > * targhooks.h (default_libc_has_fast_function): Likewise. > --- > gcc/targhooks.c | 8 ++++++++ > gcc/targhooks.h | 1 + > 2 files changed, 9 insertions(+) > >
One more missing piece for Darwin target. I'm going to install it. Martin
>From c22cec29e2595caa21035cf825123381d73eade4 Mon Sep 17 00:00:00 2001 From: Martin Liska <mli...@suse.cz> Date: Mon, 20 May 2019 12:46:22 +0200 Subject: [PATCH] Add missing ATTRIBUTE_UNUSED for ix86_libc_has_fast_function. gcc/ChangeLog: 2019-05-20 Martin Liska <mli...@suse.cz> * config/i386/i386.c (ix86_libc_has_fast_function): Add ATTRIBUTE_UNUSED for the argument. --- gcc/config/i386/i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 696a4745303..647d17d0a68 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -23074,7 +23074,7 @@ ix86_run_selftests (void) #define TARGET_GET_MULTILIB_ABI_NAME \ ix86_get_multilib_abi_name -static bool ix86_libc_has_fast_function (int fcode) +static bool ix86_libc_has_fast_function (int fcode ATTRIBUTE_UNUSED) { #ifdef OPTION_GLIBC if (OPTION_GLIBC) -- 2.21.0