diff mbox

[doc] Fix error in __builtin_choose_expr documentation

Message ID 42EA1743-F56D-4C63-9D33-E4B3EF1C5CDB@gmail.com
State New
Headers show

Commit Message

FX Coudert Aug. 31, 2010, 1:08 p.m. UTC
Tested with "make info pdf html", OK to commit?

FX



2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

	PR fortran/38282
	* doc/extend.texi: Fix documentation of the return value of
	__builtin_choose_expr

Comments

Joseph Myers Aug. 31, 2010, 2:19 p.m. UTC | #1
On Tue, 31 Aug 2010, FX wrote:

> 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
> 
> 	PR fortran/38282
> 	* doc/extend.texi: Fix documentation of the return value of
> 	__builtin_choose_expr

OK, but I don't see how that PR is relevant to this correction; this is 
documenting a C-only extension.
FX Coudert Aug. 31, 2010, 2:26 p.m. UTC | #2
> OK, but I don't see how that PR is relevant to this correction; this is 
> documenting a C-only extension.

No relevance, ended up there by mistake.

Committed with amended ChangedLog entry as rev. 163675.

Thanks,
FX
FX Coudert Aug. 31, 2010, 2:40 p.m. UTC | #3
> OK, but I don't see how that PR is relevant to this correction; this is 
> documenting a C-only extension.

No relevance, ended up there by mistake.

Committed with amended ChangedLog entry as rev. 163675.

Thanks,
FX
diff mbox

Patch

Index: extend.texi
===================================================================
--- extend.texi	(revision 163667)
+++ extend.texi	(working copy)
@@ -7137,7 +7137,7 @@  depending on the arguments' types.  For 
 You can use the built-in function @code{__builtin_choose_expr} to
 evaluate code depending on the value of a constant expression.  This
 built-in function returns @var{exp1} if @var{const_exp}, which is an
-integer constant expression, is nonzero.  Otherwise it returns 0.
+integer constant expression, is nonzero.  Otherwise it returns @var{exp2}.
 
 This built-in function is analogous to the @samp{? :} operator in C,
 except that the expression returned has its type unaltered by promotion