From c53bb876f4ca0c7a622f0909772f5b6f23ff5de4 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 13 Aug 2019 17:21:51 +0100 Subject: [PATCH] Improve documentation of target hooks for libc functions * target.def (libc_has_function, libc_has_fast_function): Improve documentation strings. * doc/tm.texi: Regenerate. From-SVN: r274387 --- gcc/ChangeLog | 6 ++++++ gcc/doc/tm.texi | 4 ++-- gcc/target.def | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 573c7794130..5e699b10569 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-08-13 Jonathan Wakely + + * target.def (libc_has_function, libc_has_fast_function): Improve + documentation strings. + * doc/tm.texi: Regenerate. + 2019-08-13 Caroline Tice PR other/91396 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 8e5b01c9383..89990cbc871 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5591,12 +5591,12 @@ macro, a reasonable default is used. @deftypefn {Target Hook} bool TARGET_LIBC_HAS_FUNCTION (enum function_class @var{fn_class}) This hook determines whether a function from a class of functions -@var{fn_class} is present at the runtime. +@var{fn_class} is present in the target C library. @end deftypefn @deftypefn {Target Hook} bool TARGET_LIBC_HAS_FAST_FUNCTION (int @var{fcode}) This hook determines whether a function from a class of functions -@var{fn_class} has a fast implementation. +@code{(enum function_class)}@var{fcode} has a fast implementation. @end deftypefn @defmac NEXT_OBJC_RUNTIME diff --git a/gcc/target.def b/gcc/target.def index 7cc0f37a0d1..73334e0e8fc 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -2545,14 +2545,14 @@ set via @code{__attribute__}.", DEFHOOK (libc_has_function, "This hook determines whether a function from a class of functions\n\ -@var{fn_class} is present at the runtime.", +@var{fn_class} is present in the target C library.", bool, (enum function_class fn_class), default_libc_has_function) DEFHOOK (libc_has_fast_function, "This hook determines whether a function from a class of functions\n\ -@var{fn_class} has a fast implementation.", +@code{(enum function_class)}@var{fcode} has a fast implementation.", bool, (int fcode), default_libc_has_fast_function) -- 2.30.2