From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29184 invoked by alias); 22 Nov 2004 14:44:23 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 28683 invoked from network); 22 Nov 2004 14:44:15 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 22 Nov 2004 14:44:15 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id DA0B8114F38B; Mon, 22 Nov 2004 15:44:14 +0100 (CET) To: Jamie Lokier Cc: gcc@gcc.gnu.org Subject: Re: Documentation bug for __builtin_choose_expr References: <20041122042652.GA26998@mail.shareable.org> <20041122131946.GA2893@mail.shareable.org> From: Andreas Schwab X-Yow: Hiccuping & trembling into the WASTE DUMPS of New Jersey like some drunken CABBAGE PATCH DOLL, coughing in line at FIORUCCI'S!! Date: Mon, 22 Nov 2004 15:02:00 -0000 In-Reply-To: <20041122131946.GA2893@mail.shareable.org> (Jamie Lokier's message of "Mon, 22 Nov 2004 13:19:46 +0000") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-11/txt/msg00746.txt.bz2 Jamie Lokier writes: > This built-in function is analogous to the `? :' operator in C, > except that the expression returned has its type unaltered by > promotion rules. Unlike most built-in functions, but like the > `? :' operator, this built-in function does not evaluate the > expression that was not chosen. For example, if CONST_EXP > evaluates to true, EXP2 is not evaluated even if it has > side-effects. IMHO, "but like the `? :' operator" could be removed without any negative impact (anyone who doesn't know how the ?: operator should not look at builtins either :-) ). Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."