]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/d/ChangeLog
Add changelog entry for previous commit
[thirdparty/gcc.git] / gcc / d / ChangeLog
1 2020-04-26 Iain Buclaw <ibuclaw@gdcproject.org>
2
3 * decl.cc (get_symbol_decl): Set DECL_DECLARED_INLINE_P or
4 DECL_UNINLINABLE for declarations with pragma(inline).
5 * toir.cc (IRVisitor::visit (GccAsmStatement *)): Set ASM_INLINE_P if
6 in function decorated with pragma(inline).
7
8 2020-04-25 Iain Buclaw <ibuclaw@gdcproject.org>
9
10 * intrinsics.cc (expand_intrinsic_toprec): New function.
11 (maybe_expand_intrinsic): Handle toPrec intrinsics.
12 * intrinsics.def (TOPRECF, TOPREC, TOPRECL): Add toPrec intrinsics.
13
14 2020-04-24 Iain Buclaw <ibuclaw@gdcproject.org>
15
16 * d-spec.cc (need_phobos): Remove.
17 (lang_specific_driver): Replace need_phobos with phobos_library.
18 Reorder -debuglib and -defaultlib to have precedence over libphobos.
19 (lang_specific_pre_link): Remove test for need_phobos.
20
21 2020-04-19 Iain Buclaw <ibuclaw@gdcproject.org>
22
23 PR d/94609
24 * d-codegen.cc (argument_reference_p): Don't check TREE_ADDRESSABLE.
25 (type_passed_as): Build reference type if TREE_ADDRESSABLE.
26 * d-convert.cc (convert_for_argument): Build explicit TARGET_EXPR if
27 needed for arguments passed by invisible reference.
28 * types.cc (TypeVisitor::visit (TypeStruct *)): Mark all structs that
29 are not POD as TREE_ADDRESSABLE.
30
31 2020-04-13 Iain Buclaw <ibuclaw@gdcproject.org>
32
33 * Make-lang.in (D_FRONTEND_OBJS): Remove d/argtypes.o.
34 * d-target.cc (Target::toArgTypes): New function.
35
36 2020-04-10 Iain Buclaw <ibuclaw@gdcproject.org>
37
38 * d-spec.cc (LIBDRUNTIME): Remove.
39 (LIBDRUNTIME_PROFILE): Remove.
40 (lang_specific_driver): Don't link in libgdruntime.
41
42 2020-04-07 Iain Buclaw <ibuclaw@gdcproject.org>
43
44 PR d/94425
45 * toir.cc (IRVisitor::visit (GccAsmStatement *)): Set ASM_VOLATILE_P
46 on all asm statements.
47
48 2020-04-01 Iain Buclaw <ibuclaw@gdcproject.org>
49
50 PR d/90136
51 * d-attribs.cc: Include dmd/attrib.h.
52 (build_attributes): Redeclare as static.
53 (apply_user_attributes): New function.
54 * d-tree.h (class UserAttributeDeclaration): Remove.
55 (build_attributes): Remove.
56 (apply_user_attributes): Declare.
57 (finish_aggregate_type): Remove attrs argument.
58 * decl.cc (get_symbol_decl): Merge declaration prototypes with
59 definitions. Use apply_user_attributes.
60 * modules.cc (layout_moduleinfo_fields): Remove last argument to
61 finish_aggregate_type.
62 * typeinfo.cc (layout_classinfo_interfaces): Likewise.
63 * types.cc (layout_aggregate_members): Likewise.
64 (finish_aggregate_type): Remove attrs argument.
65 (TypeVisitor::visit (TypeEnum *)): Use apply_user_attributes.
66 (TypeVisitor::visit (TypeStruct *)): Remove last argument to
67 finish_aggregate_type. Use apply_user_attributes.
68 (TypeVisitor::visit (TypeClass *)): Likewise.
69
70 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
71
72 * d-attribs.cc (d_langhook_common_attribute_table): Add always_inline.
73 (handle_always_inline_attribute): New function.
74
75 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
76
77 PR d/94424
78 * d-codegen.cc (build_alignment_field): Remove.
79 (build_struct_literal): Don't insert alignment padding.
80 * expr.cc (ExprVisitor::visit (AssignExp *)): Call memset before
81 assigning struct literals.
82
83 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
84
85 * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
86 d_comdat_linkage on generated decl.
87
88 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
89
90 PR d/93038
91 * d-lang.cc (deps_write): Generate phony targets for content imported
92 files.
93
94 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
95
96 PR d/93038
97 * d-lang.cc (deps_write): Add content imported files to the make
98 dependency list.
99
100 2020-03-21 Iain Buclaw <ibuclaw@gdcproject.org>
101
102 PR d/94240
103 * typeinfo.cc (class TypeInfoVisitor): Replace type_ field with decl_.
104 (TypeInfoVisitor::TypeInfoVisitor): Set decl_.
105 (TypeInfoVisitor::result): Update.
106 (TypeInfoVisitor::internal_reference): New function.
107 (TypeInfoVisitor::layout_string): Use internal_reference.
108 (TypeInfoVisitor::visit (TypeInfoTupleDeclaration *)): Likewise.
109 (layout_typeinfo): Construct TypeInfoVisitor with typeinfo decl.
110 (layout_classinfo): Likewise.
111
112 2020-03-20 Iain Buclaw <ibuclaw@gdcproject.org>
113
114 PR lto/91027
115 * d-tree.h (struct GTY): Add daggregate field.
116 (IDENTIFIER_DAGGREGATE): Define.
117 (d_mangle_decl): Add declaration.
118 * decl.cc (mangle_decl): Remove static linkage, rename to...
119 (d_mangle_decl): ...this, update all callers.
120 * types.cc (merge_aggregate_types): New function.
121 (TypeVisitor::visit (TypeStruct *)): Call merge_aggregate_types, set
122 IDENTIFIER_DAGGREGATE and TYPE_CXX_ODR_P.
123 (TypeVisitor::visit (TypeClass *)): Likewise.
124
125 2020-03-18 Jakub Jelinek <jakub@redhat.com>
126
127 * expr.cc (ExprVisitor::visit (CatAssignExp *)): Fix up duplicated
128 word issue in a comment.
129 * d-target.cc (Target::FPTypeProperties<T>::max): Likewise.
130
131 2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
132
133 PR d/92309
134 * types.cc (fixup_anonymous_offset): Don't set DECL_FIELD_OFFSET on
135 anonymous fields.
136
137 2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
138
139 PR d/92216
140 * decl.cc (make_thunk): Don't set TREE_PUBLIC on thunks if the target
141 function is external to the current compilation.
142
143 2020-01-01 Jakub Jelinek <jakub@redhat.com>
144
145 Update copyright years.
146
147 * gdc.texi: Bump @copyrights-d year.
148 \f
149 Copyright (C) 2020 Free Software Foundation, Inc.
150
151 Copying and distribution of this file, with or without modification,
152 are permitted in any medium without royalty provided the copyright
153 notice and this notice are preserved.