From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Bronson Newsgroups: gmane.emacs.devel Subject: Re: "as-is" rule Date: Wed, 30 Nov 2011 13:44:09 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322678671 27286 80.91.229.12 (30 Nov 2011 18:44:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 18:44:31 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 30 19:44:25 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVp8r-0006n2-56 for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2011 19:44:25 +0100 Original-Received: from localhost ([::1]:51221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVp8q-0007tB-Jd for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2011 13:44:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVp8l-0007t3-U2 for emacs-devel@gnu.org; Wed, 30 Nov 2011 13:44:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVp8l-0006Xs-1K for emacs-devel@gnu.org; Wed, 30 Nov 2011 13:44:19 -0500 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:34655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVp8d-0006XH-Kw; Wed, 30 Nov 2011 13:44:11 -0500 Original-Received: by eekc14 with SMTP id c14so695218eek.0 for ; Wed, 30 Nov 2011 10:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ht2PBSmfqp6o8JT1ouEDj8O208LcjFis/O9WLm5a3Gc=; b=WeOz3jC6/UQyCey8uN3qVBogGqUd1l8GzCpCVJyqrjKRVJXhJSLbv9Ed+IJYUQNs2V XdporKRNeQHx1gd1dGuviOIXGBRUHB4pnPLZ7PW5trgZyNTTVX3o/I060JrUNuVKRXVr pne16XWdLf6fQDB1muVh85IFYwbK1mZCGyKyM= Original-Received: by 10.216.134.135 with SMTP id s7mr333120wei.112.1322678649687; Wed, 30 Nov 2011 10:44:09 -0800 (PST) Original-Received: by 10.180.103.228 with HTTP; Wed, 30 Nov 2011 10:44:09 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146369 Archived-At: On Wed, Nov 30, 2011 at 9:20 AM, Stefan Monnier wrote: >> See bug #10164: I've been hit by code re-ordering under the "as-is" rule= . >> I asked before, but no one replied: is there a place where I can read >> the description of conditions that _disallow_ such reordering? > > I think you've hit a bug in gcc in this case: "e1 || e2" should not > evaluate e2 if e1 evaluates to non-0. =C2=A0The as-is rule allows gcc to = run > any part of e2 (or any other code for that matter) at any time it feels > like, but only if you can't tell the difference, and in this case we can > definitely tell the difference. Not to nitpick, but ... (oh, who am I kidding -- yes, to nitpick!) ... isn't that called the "as-if" rule?