From d8c9d98687e0b49bde2898da7e195cbc49bb4ce6 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 6 Nov 2018 12:36:21 +0100 Subject: [PATCH] * tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag. From-SVN: r265838 --- gcc/ChangeLog | 6 +++++- gcc/tree.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11a6b4745129..644c0f71f9a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-06 Jan Hubicka + + * tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag. + 2018-11-06 Rainer Orth PR sanitizer/80953 @@ -17,7 +21,7 @@ * config/sparc/sol2.h (CC1_SPEC): Append ASAN_CC1_SPEC. (ASAN_REJECT_SPEC): Define. -018-11-06 Jan Hubicka +2018-11-06 Jan Hubicka * tree.c (fld_type_variant): Copy canonical type. (fld_incomplete_type_of): Check that canonical types looks sane; diff --git a/gcc/tree.c b/gcc/tree.c index f3fce961bedf..564782490347 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5173,6 +5173,7 @@ fld_incomplete_type_of (tree t, struct free_lang_data_d *fld) SET_TYPE_ALIGN (copy, BITS_PER_UNIT); TYPE_SIZE_UNIT (copy) = NULL; TYPE_CANONICAL (copy) = TYPE_CANONICAL (t); + TYPE_TYPELESS_STORAGE (copy) = 0; if (AGGREGATE_TYPE_P (t)) { TYPE_FIELDS (copy) = NULL; -- 2.47.2