[PATCH] Fix typo in docs

Marek Polacek polacek@redhat.com
Fri Jan 3 12:03:00 GMT 2014


__builtin_{FILE,FUNCTION} had wrong return types, thus fixed.
Tested by make html and links -g.  Ok for trunk?

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

	Marek



More information about the Gcc-patches mailing list