[Bug tree-optimization/43528] ICE: in tree_low_cst, at tree.c:6198 with -mms-bitfields at x86_64-linux
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Mar 26 09:27:00 GMT 2010
------- Comment #2 from ubizjak at gmail dot com 2010-03-26 09:27 -------
There is a mismatch in a guard expression. Following patch fixes ICE for me
(I'm not sure if it makes any sense, though):
Index: stor-layout.c
===================================================================
--- stor-layout.c (revision 157742)
+++ stor-layout.c (working copy)
@@ -1346,8 +1346,8 @@ place_field (record_layout_info rli, tre
until we see a bitfield (and come by here again) we just skip
calculating it. */
if (DECL_SIZE (field) != NULL
- && host_integerp (TYPE_SIZE (TREE_TYPE (field)), 0)
- && host_integerp (DECL_SIZE (field), 0))
+ && host_integerp (TYPE_SIZE (TREE_TYPE (field)), 1)
+ && host_integerp (DECL_SIZE (field), 1))
{
HOST_WIDE_INT bitsize = tree_low_cst (DECL_SIZE (field), 1);
HOST_WIDE_INT typesize
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |tree-optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43528
More information about the Gcc-bugs
mailing list