Date: Thu, 31 Jan 2019 09:32:11 -0700 From: Warner Losh <imp@bsdimp.com> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: FreeBSD Standards <freebsd-standards@freebsd.org>, "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org> Subject: Re: Is libc C99 compliant? Message-ID: <CANCZdfppuxhuStH%2BMQ%2Be3EBPk1VahK7HGze-_i%2Bpj7gFTm_UNg@mail.gmail.com> In-Reply-To: <20190130212904.GA66299@troutmask.apl.washington.edu> References: <20190130212904.GA66299@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 30, 2019 at 11:33 PM Steve Kargl < sgk@troutmask.apl.washington.edu> wrote: > When building gcc file gcc/config/freebsd.c contains > > #define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function > > In targhook.c, one finds > > /* By default we assume that c99 functions are present at the runtime, > but sincos is not. */ > bool > default_libc_has_function (enum function_class fn_class) > { > if (fn_class == function_c94 > || fn_class == function_c99_misc > || fn_class == function_c99_math_complex) > return true; > > return false; > } > > bool > no_c99_libc_has_function (enum function_class fn_class ATTRIBUTE_UNUSED) > { > return false; > } > > Shouldi/can TARGET_LIBC_HAS_FUNCTION be updated to at least > default_libc_has_function? More importantly now that libm > contains sincos[fl], should FreeBSD gcc config file be updated > to use > > bool > bsd_libc_has_function (enum function_class fn_class) > { > if (fn_class == function_c94 > || fn_class == function_c99_misc > || fn_class == function_c99_math_complex > || fn_class == function_sincos) > return true; > > return false; > } On its surface, this seems sane to me. what does this control? And is this for our ancient 4.2 or current gcc... Warner > > -- > Steve > _______________________________________________ > freebsd-toolchain@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain > To unsubscribe, send any mail to " > freebsd-toolchain-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfppuxhuStH%2BMQ%2Be3EBPk1VahK7HGze-_i%2Bpj7gFTm_UNg>