d: Use memset to fill alignment holes with zeroes.
[platform/upstream/gcc.git] / gcc / d / ChangeLog
1 2020-03-31  Iain Buclaw  <ibuclaw@gdcproject.org>
2
3         PR d/94424
4         * d-codegen.cc (build_alignment_field): Remove.
5         (build_struct_literal): Don't insert alignment padding.
6         * expr.cc (ExprVisitor::visit (AssignExp *)): Call memset before
7         assigning struct literals.
8
9 2020-03-31  Iain Buclaw  <ibuclaw@gdcproject.org>
10
11         * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
12         d_comdat_linkage on generated decl.
13
14 2020-03-22  Iain Buclaw  <ibuclaw@gdcproject.org>
15
16         PR d/93038
17         * d-lang.cc (deps_write): Generate phony targets for content imported
18         files.
19
20 2020-03-22  Iain Buclaw  <ibuclaw@gdcproject.org>
21
22         PR d/93038
23         * d-lang.cc (deps_write): Add content imported files to the make
24         dependency list.
25
26 2020-03-21  Iain Buclaw  <ibuclaw@gdcproject.org>
27
28         PR d/94240
29         * typeinfo.cc (class TypeInfoVisitor): Replace type_ field with decl_.
30         (TypeInfoVisitor::TypeInfoVisitor): Set decl_.
31         (TypeInfoVisitor::result): Update.
32         (TypeInfoVisitor::internal_reference): New function.
33         (TypeInfoVisitor::layout_string): Use internal_reference.
34         (TypeInfoVisitor::visit (TypeInfoTupleDeclaration *)): Likewise.
35         (layout_typeinfo): Construct TypeInfoVisitor with typeinfo decl.
36         (layout_classinfo): Likewise.
37
38 2020-03-20  Iain Buclaw  <ibuclaw@gdcproject.org>
39
40         PR lto/91027
41         * d-tree.h (struct GTY): Add daggregate field.
42         (IDENTIFIER_DAGGREGATE): Define.
43         (d_mangle_decl): Add declaration.
44         * decl.cc (mangle_decl): Remove static linkage, rename to...
45         (d_mangle_decl): ...this, update all callers.
46         * types.cc (merge_aggregate_types): New function.
47         (TypeVisitor::visit (TypeStruct *)): Call merge_aggregate_types, set
48         IDENTIFIER_DAGGREGATE and TYPE_CXX_ODR_P.
49         (TypeVisitor::visit (TypeClass *)): Likewise.
50
51 2020-03-18  Jakub Jelinek  <jakub@redhat.com>
52
53         * expr.cc (ExprVisitor::visit (CatAssignExp *)): Fix up duplicated
54         word issue in a comment.
55         * d-target.cc (Target::FPTypeProperties<T>::max): Likewise.
56
57 2020-03-16  Iain Buclaw  <ibuclaw@gdcproject.org>
58
59         PR d/92309
60         * types.cc (fixup_anonymous_offset): Don't set DECL_FIELD_OFFSET on
61         anonymous fields.
62
63 2020-03-16  Iain Buclaw  <ibuclaw@gdcproject.org>
64
65         PR d/92216
66         * decl.cc (make_thunk): Don't set TREE_PUBLIC on thunks if the target
67         function is external to the current compilation.
68
69 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
70
71         Update copyright years.
72
73         * gdc.texi: Bump @copyrights-d year.
74 \f
75 Copyright (C) 2020 Free Software Foundation, Inc.
76
77 Copying and distribution of this file, with or without modification,
78 are permitted in any medium without royalty provided the copyright
79 notice and this notice are preserved.