From patchwork Tue Aug 31 13:08:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FX Coudert X-Patchwork-Id: 63244 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 636E6B713C for ; Tue, 31 Aug 2010 23:08:36 +1000 (EST) Received: (qmail 8034 invoked by alias); 31 Aug 2010 13:08:34 -0000 Received: (qmail 7977 invoked by uid 22791); 31 Aug 2010 13:08:32 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Aug 2010 13:08:21 +0000 Received: by wwb39 with SMTP id 39so218750wwb.8 for ; Tue, 31 Aug 2010 06:08:19 -0700 (PDT) Received: by 10.227.141.138 with SMTP id m10mr6428257wbu.20.1283260099216; Tue, 31 Aug 2010 06:08:19 -0700 (PDT) Received: from [192.168.0.4] (chp150.enscp.fr [193.51.253.150]) by mx.google.com with ESMTPS id b23sm7632497wbb.10.2010.08.31.06.08.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 06:08:18 -0700 (PDT) From: FX Subject: [doc, patch] Fix error in __builtin_choose_expr documentation Date: Tue, 31 Aug 2010 15:08:14 +0200 Message-Id: <42EA1743-F56D-4C63-9D33-E4B3EF1C5CDB@gmail.com> To: gcc-patches@gcc.gnu.org Mime-Version: 1.0 (Apple Message framework v1081) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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