From: Francois-Xavier Coudert Date: Tue, 31 Aug 2010 14:26:47 +0000 (+0000) Subject: extend.texi: Fix documentation of the return value of __builtin_choose_expr. X-Git-Tag: releases/gcc-4.6.0~4761 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cea734df595b4e9bf7d6a0b497d88af932a5290;p=thirdparty%2Fgcc.git extend.texi: Fix documentation of the return value of __builtin_choose_expr. * doc/extend.texi: Fix documentation of the return value of __builtin_choose_expr. From-SVN: r163675 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f92137d31f9..4d1737a67ffc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-31 Francois-Xavier Coudert + + * doc/extend.texi: Fix documentation of the return value of + __builtin_choose_expr. + 2010-08-31 Nathan Froyd * config/v850/v850-protos.h (function_arg): Delete. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index a12d21b8e8c4..de6a30dd6927 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7137,7 +7137,7 @@ depending on the arguments' types. For example: 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