Patchwork [doc] Fix error in __builtin_choose_expr documentation

login
register
mail settings
Submitter FX
Date Aug. 31, 2010, 1:08 p.m.
Message ID <42EA1743-F56D-4C63-9D33-E4B3EF1C5CDB@gmail.com>
Download mbox | patch
Permalink /patch/63244/
State New
Headers show

Comments

FX - Aug. 31, 2010, 1:08 p.m.
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
Joseph S. Myers - Aug. 31, 2010, 2:19 p.m.
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 - Aug. 31, 2010, 2:26 p.m.
> 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 - Aug. 31, 2010, 2:40 p.m.
> 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

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