This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix typo in docs
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 3 Jan 2014 13:09:38 +0100
- Subject: Re: [PATCH] Fix typo in docs
- Authentication-results: sourceware.org; auth=none
- References: <20140103120324 dot GA29237 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jan 03, 2014 at 01:03:24PM +0100, Marek Polacek wrote:
> __builtin_{FILE,FUNCTION} had wrong return types, thus fixed.
> Tested by make html and links -g. Ok for trunk?
Ok, thanks.
> 2014-01-03 Marek Polacek <polacek@redhat.com>
>
> PR other/59661
> * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
> __builtin_FILE.
>
> --- gcc/doc/extend.texi.mp 2014-01-03 12:32:13.366420582 +0100
> +++ gcc/doc/extend.texi 2014-01-03 13:02:03.723889259 +0100
> @@ -8728,12 +8728,12 @@ This function is the equivalent to the p
> macro and returns the line number of the invocation of the built-in.
> @end deftypefn
>
> -@deftypefn {Built-in Function} int __builtin_FUNCTION ()
> +@deftypefn {Built-in Function} {const char *} __builtin_FUNCTION ()
> This function is the equivalent to the preprocessor @code{__FUNCTION__}
> macro and returns the function name the invocation of the built-in is in.
> @end deftypefn
>
> -@deftypefn {Built-in Function} int __builtin_FILE ()
> +@deftypefn {Built-in Function} {const char *} __builtin_FILE ()
> This function is the equivalent to the preprocessor @code{__FILE__}
> macro and returns the file name the invocation of the built-in is in.
> @end deftypefn
Jakub