public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] doc: add return type for functions in gimple.texi
@ 2020-08-17  2:44 Hu Jiangping
  2020-08-18 16:48 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Hu Jiangping @ 2020-08-17  2:44 UTC (permalink / raw)
  To: gcc-patches

This patch add the return type for some functions in gimple.texi,
to make the context unified. OK for trunk?

Tested on x86_64.

Regards!
Hujp

---
 gcc/doc/gimple.texi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/doc/gimple.texi b/gcc/doc/gimple.texi
index 5e0fc2e0dc5..f01c3083835 100644
--- a/gcc/doc/gimple.texi
+++ b/gcc/doc/gimple.texi
@@ -831,17 +831,17 @@ expression to a variable.
 Return true if g is any of the OpenMP codes.
 @end deftypefn
 
-@deftypefn {GIMPLE function} gimple_debug_begin_stmt_p (gimple g)
+@deftypefn {GIMPLE function} bool gimple_debug_begin_stmt_p (gimple g)
 Return true if g is a @code{GIMPLE_DEBUG} that marks the beginning of
 a source statement.
 @end deftypefn
 
-@deftypefn {GIMPLE function} gimple_debug_inline_entry_p (gimple g)
+@deftypefn {GIMPLE function} bool gimple_debug_inline_entry_p (gimple g)
 Return true if g is a @code{GIMPLE_DEBUG} that marks the entry
 point of an inlined function.
 @end deftypefn
 
-@deftypefn {GIMPLE function} gimple_debug_nonbind_marker_p (gimple g)
+@deftypefn {GIMPLE function} bool gimple_debug_nonbind_marker_p (gimple g)
 Return true if g is a @code{GIMPLE_DEBUG} that marks a program location,
 without any variable binding.
 @end deftypefn
-- 
2.17.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] doc: add return type for functions in gimple.texi
  2020-08-17  2:44 [PATCH] doc: add return type for functions in gimple.texi Hu Jiangping
@ 2020-08-18 16:48 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2020-08-18 16:48 UTC (permalink / raw)
  To: Hu Jiangping; +Cc: gcc-patches

Hu Jiangping <hujiangping@cn.fujitsu.com> writes:
> This patch add the return type for some functions in gimple.texi,
> to make the context unified. OK for trunk?

LGTM, thanks.  Pushed to master.

Richard

>
> Tested on x86_64.
>
> Regards!
> Hujp
>
> ---
>  gcc/doc/gimple.texi | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/gcc/doc/gimple.texi b/gcc/doc/gimple.texi
> index 5e0fc2e0dc5..f01c3083835 100644
> --- a/gcc/doc/gimple.texi
> +++ b/gcc/doc/gimple.texi
> @@ -831,17 +831,17 @@ expression to a variable.
>  Return true if g is any of the OpenMP codes.
>  @end deftypefn
>  
> -@deftypefn {GIMPLE function} gimple_debug_begin_stmt_p (gimple g)
> +@deftypefn {GIMPLE function} bool gimple_debug_begin_stmt_p (gimple g)
>  Return true if g is a @code{GIMPLE_DEBUG} that marks the beginning of
>  a source statement.
>  @end deftypefn
>  
> -@deftypefn {GIMPLE function} gimple_debug_inline_entry_p (gimple g)
> +@deftypefn {GIMPLE function} bool gimple_debug_inline_entry_p (gimple g)
>  Return true if g is a @code{GIMPLE_DEBUG} that marks the entry
>  point of an inlined function.
>  @end deftypefn
>  
> -@deftypefn {GIMPLE function} gimple_debug_nonbind_marker_p (gimple g)
> +@deftypefn {GIMPLE function} bool gimple_debug_nonbind_marker_p (gimple g)
>  Return true if g is a @code{GIMPLE_DEBUG} that marks a program location,
>  without any variable binding.
>  @end deftypefn

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-18 16:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17  2:44 [PATCH] doc: add return type for functions in gimple.texi Hu Jiangping
2020-08-18 16:48 ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).