public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "seongbae dot park at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/28161] Wrong bit field layout with -mms-bitfields
Date: Mon, 26 Jun 2006 21:21:00 -0000	[thread overview]
Message-ID: <20060626211042.17860.qmail@sourceware.org> (raw)
In-Reply-To: <bug-28161-5208@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from seongbae dot park at gmail dot com  2006-06-26 21:10 -------
More specifically:

   1048               if (rli->remaining_in_alignment < bitsize)
   1049                 {
   1050                   /* out of bits; bump up to next 'word'.  */
   1051                   rli->offset = DECL_FIELD_OFFSET (rli->prev_field);
   1052                   rli->bitpos
   1053                     = size_binop (PLUS_EXPR, TYPE_SIZE (type),
   1054                                   DECL_FIELD_BIT_OFFSET
(rli->prev_field));
   1055                   rli->prev_field = field;
   1056                   rli->remaining_in_alignment
   1057                     = tree_low_cst (TYPE_SIZE (type), 1);
   1058                 }

The third operand of size_binop() of size_binop() at line 1053-1054 
should be rli->bitpos.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28161


  parent reply	other threads:[~2006-06-26 21:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-25  8:47 [Bug middle-end/28161] New: " kkojima at gcc dot gnu dot org
2006-06-26 20:57 ` [Bug middle-end/28161] " seongbae dot park at gmail dot com
2006-06-26 21:21 ` seongbae dot park at gmail dot com [this message]
2006-06-26 23:28 ` kkojima at gcc dot gnu dot org
2006-06-26 23:45 ` seongbae dot park at gmail dot com
2006-06-27  1:34 ` kkojima at gcc dot gnu dot org
2006-06-29 21:58 ` patchapp at dberlin dot org
2006-07-15  6:59 ` kkojima at gcc dot gnu dot org
2006-07-15 23:13 ` kkojima at gcc dot gnu dot org

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=20060626211042.17860.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).