public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: middle-end/9725: Invalid dependency determination
Date: Thu, 20 Feb 2003 07:46:00 -0000	[thread overview]
Message-ID: <20030220074601.27931.qmail@sources.redhat.com> (raw)

The following reply was made to PR middle-end/9725; it has been noted by GNATS.

From: "Jan Beulich" <JBeulich@novell.com>
To: <velco@fadata.bg>
Cc: <gcc-bugs@gcc.gnu.org>,<gcc-gnats@gcc.gnu.org>
Subject: Re: middle-end/9725: Invalid dependency determination
Date: Thu, 20 Feb 2003 08:39:50 +0100

 Which doesn't work (and possibly doesn't have to as outlined in the
 other mail, depending on how you interpret the wording of the standard)
 when used as
 
   (&u.s)->f1 = x;
   (&u.s)->f2 = y;
 
 which is (supposedly) equivalent to the use of the . operator...
 
 Jan
 
 >>> Momchil Velikov <velco@fadata.bg> 19.02.03 22:10:36 >>>
 >>>>> "Jan" == Jan Beulich <JBeulich@novell.com> writes:
 
     Jan> But why is the structure incompatible?
     Jan> "... an aggregate or union type that includes one of the
 aforementioned
     Jan> types among its
     Jan> members (including, recursively, a member of a subaggregate
 or
     Jan> contained union), ..."
 
 which means that you example should be coded as
 
 struct s
 {
   unsigned f1:16;
   unsigned f2:16;
 };
 
 void
 test (unsigned *pf, unsigned x, unsigned y)
 {
   union
   {
     unsigned f;
     struct s s;
   } u;
 
   u.s.f1 = x;
   u.s.f2 = y;
   
   *pf = u.f;
 }
 
 
 ~velco


             reply	other threads:[~2003-02-20  7:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-20  7:46 Jan Beulich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-20  9:06 Momchil Velikov
2003-02-20  8:16 Joseph S. Myers
2003-02-20  8:06 Jan Beulich
2003-02-19 21:16 Momchil Velikov
2003-02-19 17:16 Jan Beulich
2003-02-19 17:16 Wolfgang Bangerth
2003-02-19 17:06 Wolfgang Bangerth
2003-02-17 16:56 Wolfgang Bangerth
2003-02-17 15:48 bangerth
2003-02-17 15:36 jbeulich

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=20030220074601.27931.qmail@sources.redhat.com \
    --to=jbeulich@novell.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).