Improve documentation of target hooks for libc functions
diff mbox series

Message ID 20190813132453.GF9487@redhat.com
State New
Headers show
Series
  • Improve documentation of target hooks for libc functions
Related show

Commit Message

Jonathan Wakely Aug. 13, 2019, 1:24 p.m. UTC
* target.def (libc_has_function, libc_has_fast_function): Improve
	documentation strings.
	* doc/tm.texi: Regenerate.

Bootstrapped x86_64-linux.

OK for trunk?
commit c3645cae6c78896218c60135349056a5bf943b8a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Aug 13 14:01:01 2019 +0100

    Improve documentation of target hooks for libc functions
    
            * target.def (libc_has_function, libc_has_fast_function): Improve
            documentation strings.
            * doc/tm.texi: Regenerate.

Comments

Jeff Law Aug. 13, 2019, 3:06 p.m. UTC | #1
On 8/13/19 7:24 AM, Jonathan Wakely wrote:
>     * target.def (libc_has_function, libc_has_fast_function): Improve
>     documentation strings.
>     * doc/tm.texi: Regenerate.
> 
> Bootstrapped x86_64-linux.
> 
> OK for trunk?
> 
> 
OK
jeff

Patch
diff mbox series

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)