Message ID | 42EA1743-F56D-4C63-9D33-E4B3EF1C5CDB@gmail.com |
---|---|
State | New |
Headers | show |
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.
> 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
> 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
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