all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Bronson <naesten@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: "as-is" rule
Date: Wed, 30 Nov 2011 13:44:09 -0500	[thread overview]
Message-ID: <CAJYzjmf=AX_q_jnbbzxJWYxonz1Ct-=5UjTZRN0X9rKDuT8mWQ@mail.gmail.com> (raw)
In-Reply-To: <jwv7h2h7l9f.fsf-monnier+emacs@gnu.org>

On Wed, Nov 30, 2011 at 9:20 AM, Stefan Monnier
<monnier@iro.umontreal.ca> 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.  The 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?



      parent reply	other threads:[~2011-11-30 18:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 12:35 "as-is" rule Eli Zaretskii
2011-11-30 13:57 ` Andreas Schwab
2011-11-30 14:20 ` Stefan Monnier
2011-11-30 17:02   ` Eli Zaretskii
2011-11-30 19:09     ` Stefan Monnier
2011-11-30 18:44   ` Samuel Bronson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJYzjmf=AX_q_jnbbzxJWYxonz1Ct-=5UjTZRN0X9rKDuT8mWQ@mail.gmail.com' \
    --to=naesten@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.