aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2018-11-06 12:36:21 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2018-11-06 11:36:21 +0000
commitd8c9d98687e0b49bde2898da7e195cbc49bb4ce6 (patch)
tree89b8a8007ca1b65920fe6e47f2a3418588ea8253
parentaaabfd71e3992dfeef69ef8954d60a5f66e1bc39 (diff)
downloadgcc-d8c9d98687e0b49bde2898da7e195cbc49bb4ce6.zip
gcc-d8c9d98687e0b49bde2898da7e195cbc49bb4ce6.tar.gz
gcc-d8c9d98687e0b49bde2898da7e195cbc49bb4ce6.tar.bz2
* tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag.
From-SVN: r265838
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 11a6b47..644c0f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-06 Jan Hubicka <jh@suse.cz>
+
+ * tree.c (fld_simplified_type_of): Clear TYPELESS_STORAGE flag.
+
2018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
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 <jh@suse.cz>
+2018-11-06 Jan Hubicka <jh@suse.cz>
* 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 f3fce96..5647824 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;