[Bug middle-end/58970] [4.7/4.8/4.9 Regression] internal compiler error: in get_bit_range, at expr.c:4562

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 4 16:02:00 GMT 2013


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

--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If expansion has issues with that, then supposedly the
+  if (*bitpos < 0)
+    {
+      gcc_assert (*offset == NULL_TREE);
+      *offset = size_int (*bitpos >> (BITS_PER_UNIT == 8
+                                     ? 3 : exact_log2 (BITS_PER_UNIT)));
+      *bitpos &= BITS_PER_UNIT - 1;
+    }
hunk with s/\*//g could be moved to the get_bit_range caller, right above the
call.  But, do we have testcases that fail now?



More information about the Gcc-bugs mailing list