* [Ada] Properly set TYPE_SIZES_GIMPLIFIED
@ 2019-06-29 7:39 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2019-06-29 7:39 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
Another example in the series "how can this have worked for so long?"...
Tested on x86-64/Linux, applied on all active branches.
2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on
the main variant of a type, if any.
--
Eric Botcazou
[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 511 bytes --]
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-29 7:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-29 7:39 [Ada] Properly set TYPE_SIZES_GIMPLIFIED Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).