Message ID | 3126527.eqxgnlxT6s@polaris |
---|---|
State | New |
Headers | show |
Series | [Ada] Properly set TYPE_SIZES_GIMPLIFIED | expand |
Index: gcc-interface/trans.c =================================================================== --- gcc-interface/trans.c (revision 272633) +++ gcc-interface/trans.c (working copy) @@ -9042,8 +9042,9 @@ mark_visited_r (tree *tp, int *walk_subt else if (!TYPE_IS_DUMMY_P (t)) TREE_VISITED (t) = 1; + /* The test in gimplify_type_sizes is on the main variant. */ if (TYPE_P (t)) - TYPE_SIZES_GIMPLIFIED (t) = 1; + TYPE_SIZES_GIMPLIFIED (TYPE_MAIN_VARIANT (t)) = 1; return NULL_TREE; }