This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33535] bitpos_of_field() returns false result base of hard coded multiplication by 8
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2007 11:04:09 -0000
- Subject: [Bug tree-optimization/33535] bitpos_of_field() returns false result base of hard coded multiplication by 8
- References: <bug-33535-15138@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-09-23 11:04 -------
If so (did you look how DECL_FIELD_OFFSET is set?) then the documentation in
tree.h needs adjustment as well:
/* In a FIELD_DECL, this is the field position, counting in bytes, of the
DECL_OFFSET_ALIGN-bit-sized word containing the bit closest to the beginning
of the structure. */
#define DECL_FIELD_OFFSET(NODE) (FIELD_DECL_CHECK (NODE)->field_decl.offset)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33535