9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <charles.forsyth@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] compiler bug?
Date: Wed, 27 Nov 2013 21:29:19 +0000	[thread overview]
Message-ID: <CAOw7k5jFUC0ZngWyupfOd74OZ2oQVor6o9-ZS23zeVhh7Aj5FA@mail.gmail.com> (raw)
In-Reply-To: <fee6c634b41ad61c2fe98968830a6562@coraid.com>

[-- Attachment #1: Type: text/plain, Size: 538 bytes --]

On 27 November 2013 21:18, erik quanstrom <quanstro@labs.coraid.com> wrote:

> the union itself explicitly declares aliasing, not which
> member you use.
>

actually, even a union won't help you here:
"When a value is stored in a member of an object of union type, the bytes
of the object
representation that do not correspond to that member but do correspond to
other members
take unspecified values."

Really, the way to do this particular operation portably is to write it
portably, and extract and rearrange the bytes.

[-- Attachment #2: Type: text/html, Size: 1137 bytes --]

  reply	other threads:[~2013-11-27 21:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 16:03 Steve Simon
2013-11-27 16:31 ` erik quanstrom
2013-11-27 18:07   ` Skip Tavakkolian
2013-11-27 18:38     ` erik quanstrom
2013-11-27 19:24       ` Skip Tavakkolian
2013-11-27 20:34   ` Bakul Shah
2013-11-27 21:18     ` erik quanstrom
2013-11-27 21:29       ` Charles Forsyth [this message]
2013-11-27 21:35         ` erik quanstrom
2013-11-27 21:42           ` Charles Forsyth
2013-11-27 20:41   ` Steve Simon

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=CAOw7k5jFUC0ZngWyupfOd74OZ2oQVor6o9-ZS23zeVhh7Aj5FA@mail.gmail.com \
    --to=charles.forsyth@gmail.com \
    --cc=9fans@9fans.net \
    /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).