9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] 'non-interruptable temporary' warning
Date: Mon,  4 Apr 2005 14:10:20 -0400	[thread overview]
Message-ID: <ee9e417a0504041110596cc301@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.60.0504041250180.17506@athena>

the compiler is warning you against its own laziness.
in this case it is using a global temporary to hold the
intermediate value of (lba = f->lba) while converting
it to uchar.  if you had another thread running through
this code it would use the same temporary.

use 

lba = f->lba;
ah->lba0 = lba;

russ


      reply	other threads:[~2005-04-04 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04 17:58 Sam
2005-04-04 18:10 ` Russ Cox [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=ee9e417a0504041110596cc301@mail.gmail.com \
    --to=russcox@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).