From patchwork Tue Aug 31 13:08:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [doc] Fix error in __builtin_choose_expr documentation Date: Tue, 31 Aug 2010 03:08:14 -0000 From: FX X-Patchwork-Id: 63244 Message-Id: <42EA1743-F56D-4C63-9D33-E4B3EF1C5CDB@gmail.com> To: gcc-patches@gcc.gnu.org Tested with "make info pdf html", OK to commit? FX 2010-08-31 Francois-Xavier Coudert PR fortran/38282 * doc/extend.texi: Fix documentation of the return value of __builtin_choose_expr 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