Index...
authorRichard Guenther <rguenther@suse.de>
Wed, 23 May 2012 15:53:59 +0000 (15:53 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Wed, 23 May 2012 15:53:59 +0000 (15:53 +0000)
commite8257960f082cebe7ae514a11e13d9ea4c47233f
tree71cf1899abd1b29b659202698f5a3b27015be6b7
parentb49eb0fff1839aaaf4d552e1081271d98ca5db64
Index...

Index: gcc/tree-sra.c
===================================================================
--- gcc/tree-sra.c (revision 187800)
+++ gcc/tree-sra.c (working copy)
@@ -2096,9 +2096,12 @@ analyze_access_subtree (struct access *root, struc
    && (TREE_CODE (root->type) != INTEGER_TYPE
        || TYPE_PRECISION (root->type) != root->size)
    /* But leave bitfield accesses alone.  */
-   && (root->offset % BITS_PER_UNIT) == 0)
+   && (TREE_CODE (root->expr) != COMPONENT_REF
+       || !DECL_BIT_FIELD (TREE_OPERAND (root->expr, 1))))
  {
    tree rt = root->type;
+   gcc_assert ((root->offset % BITS_PER_UNIT) == 0
+       && (root->size % BITS_PER_UNIT) == 0);
    root->type = build_nonstandard_integer_type (root->size,
         TYPE_UNSIGNED (rt));
    root->expr = build_ref_for_offset (UNKNOWN_LOCATION,

From-SVN: r187805
gcc/ChangeLog
gcc/tree-sra.c