1 2021-04-10 Iain Buclaw <ibuclaw@gdcproject.org>
3 * dmd/MERGE: Merge upstream dmd 0450061c8.
5 2021-04-08 Iain Buclaw <ibuclaw@gdcproject.org>
7 * d-attribs.cc: Include fold-const.h and opts.h.
8 (attr_noreturn_exclusions): Add alloc_size.
9 (attr_const_pure_exclusions): Likewise.
10 (attr_inline_exclusions): Add target_clones.
11 (attr_noinline_exclusions): Rename forceinline to always_inline.
12 (attr_target_exclusions): New array.
13 (attr_target_clones_exclusions): New array.
14 (attr_alloc_exclusions): New array.
15 (attr_cold_hot_exclusions): New array.
16 (d_langhook_common_attribute_table): Add new D attribute handlers.
17 (build_attributes): Update to look for gcc.attributes. Issue warning
18 if not given a struct literal. Handle void initialized arguments.
19 (handle_always_inline_attribute): Remove function.
20 (d_handle_noinline_attribute): Don't extract TYPE_LANG_FRONTEND.
21 (d_handle_forceinline_attribute): Rename to...
22 (d_handle_always_inline_attribute): ...this. Remove special handling.
23 (d_handle_flatten_attribute): Don't extract TYPE_LANG_FRONTEND.
24 (d_handle_target_attribute): Likewise. Warn about empty arguments.
25 (d_handle_target_clones_attribute): New function.
26 (optimize_args): New static variable.
27 (parse_optimize_options): New function.
28 (d_handle_optimize_attribute): New function.
29 (d_handle_noclone_attribute): Don't extract TYPE_LANG_FRONTEND.
30 (d_handle_alias_attribute): Remove function.
31 (d_handle_noicf_attribute): New function.
32 (d_handle_noipa_attribute): New function.
33 (d_handle_section_attribute): Call the handle_generic_attribute target
34 hook after performing target independent processing.
35 (d_handle_symver_attribute): New function.
36 (d_handle_noplt_attribute): New function.
37 (positional_argument): New function.
38 (d_handle_alloc_size_attribute): New function.
39 (d_handle_cold_attribute): New function.
40 (d_handle_restrict_attribute): New function.
41 (d_handle_used_attribute): New function.
42 * decl.cc (gcc_attribute_p): Update to look for gcc.attributes.
43 (get_symbol_decl): Update decl source location of old prototypes to
44 the new declaration being merged.
45 * types.cc (layout_aggregate_members): Apply user defined attributes
48 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
51 * dmd/MERGE: Merge upstream dmd d16195406.
53 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
55 * d-codegen.cc (build_frame_type): Use Array::find to get index of
58 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
60 * d-diagnostic.cc (vwarning): Increment gaggedWarnings if warning
61 message was suppressed.
62 (vdeprecation): Likewise for deprecation messages.
64 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
66 * dmd/MERGE: Merge upstream dmd 5cc71ff83.
68 2021-04-05 Iain Buclaw <ibuclaw@gdcproject.org>
71 * d-lang.cc (d_init): Disable flag_weak_templates if no support for
72 weak or one-only symbols.
73 * d-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
74 (DECL_INSTANTIATED): New macro.
75 (d_comdat_linkage): Remove declaration.
76 (d_linkonce_linkage): Remove declaration.
77 (set_linkage_for_decl): New declaration.
78 * decl.cc (DeclVisitor::visit (StructDeclaration *)): Replace call to
79 d_linkonce_linkage with setting DECL_INSTANTIATED.
80 (DeclVisitor::visit (ClassDeclaration *)): Likewise.
81 (DeclVisitor::visit (EnumDeclaration *)): Likewise.
82 (DeclVisitor::visit (InterfaceDeclaration *)): Remove call to
84 (get_symbol_decl): Call set_linkage_for_decl instead of
86 (d_finish_decl): Call set_linkage_for_decl.
87 (d_comdat_linkage): Made function static. Only set DECL_COMDAT for
88 DECL_INSTANTIATED decls.
89 (d_linkonce_linkage): Remove function.
90 (d_weak_linkage): New function.
91 (set_linkage_for_decl): New function.
92 * gdc.texi (Runtime Options): Rename -fno-weak to -fno-weak-templates,
93 update documentation of option.
94 * lang.opt (fweak): Rename option to ...
95 (fweak-templates): ... this. Update help string.
96 * modules.cc (get_internal_fn): Add Prot parameter. Set generated
98 (build_internal_fn): Update call to get_internal_fn.
99 (build_dso_cdtor_fn): Likewise.
100 (register_moduleinfo): Call d_finish_decl on dso_slot_node and
101 dso_initialized_node.
102 * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
103 set_linkage_for_decl instead of d_comdat_linkage.
104 (TypeInfoDeclVisitor::visit (TypeInfoDeclaration *)): Remove calls to
105 d_linkonce_linkage and d_comdat_linkage.
106 (get_cpp_typeinfo_decl): Likewise.
108 2021-04-03 Iain Buclaw <ibuclaw@gdcproject.org>
110 * dmd/MERGE: Merge upstream dmd 3b808e838.
111 * Make-lang.in (D_FRONTEND_OBJS): Add d/chkformat.o.
112 * d-codegen.cc (build_struct_literal): Handle special enums.
113 * d-convert.cc (convert_expr): Handle noreturn type.
114 (convert_for_condition): Likewise.
115 * d-target.cc (Target::_init): Set type for wchar_t.
116 (TargetCPP::derivedClassOffset): New method.
117 (Target::libraryObjectMonitors): New method.
118 * decl.cc (get_symbol_decl): Set TREE_THIS_VOLATILE for functions of
120 * toir.cc (IRVisitor::visit (ReturnStatement *)): Handle returning
122 * types.cc (TypeVisitor::visit (TypeNoreturn *)): New method.
123 (TypeVisitor::visit (TypeEnum *)): Handle special enums.
125 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
127 * d-builtins.cc (d_init_versions): Predefine D_PIE if flag_pie is set.
129 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
131 * d-lang.cc (d_enum_underlying_base_type): New function.
132 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Set as
133 d_enum_underlying_base_type.
135 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
137 * Make-lang.in (DMDGEN_COMPILE): Remove.
138 (d/%.dmdgen.o): Use COMPILER_FOR_BUILD and BUILD_COMPILERFLAGS to
139 build all D generator programs.
140 (D_SYSTEM_H): New macro.
141 (d/idgen.dmdgen.o): Add dependencies to build.
142 (d/impcnvgen.dmdgen.o): Likewise.
143 * d-system.h: Include bconfig.h if GENERATOR_FILE is defined.
145 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
147 * config-lang.in (gtfiles): Remove modules.cc.
148 * modules.cc (struct module_info): Remove GTY marker.
149 (static_ctor_list): Remove variable.
150 (static_dtor_list): Remove variable.
151 (register_moduleinfo): Directly set DECL_STATIC_CONSTRUCTOR on
152 dso_ctor, and DECL_STATIC_DESTRUCTOR on dso_dtor.
153 (d_finish_compilation): Remove static ctor/dtor handling.
155 2021-03-06 Iain Buclaw <ibuclaw@gdcproject.org>
157 * d-lang.cc (d_init_options_struct): Don't set default
160 2021-03-03 Iain Buclaw <ibuclaw@gdcproject.org>
163 * dmd/MERGE: Merge upstream dmd a3c9bf422.
165 2021-02-13 Iain Buclaw <ibuclaw@gdcproject.org>
167 * dmd/MERGE: Merge upstream dmd 7132b3537.
168 * Make-lang.in (D_FRONTEND_OBJS): Add d/dsymbolsem.o, d/semantic2.o,
169 d/semantic3.o, and d/templateparamsem.o.
170 * d-compiler.cc (Compiler::genCmain): Update calls to semantic
171 entrypoint functions.
172 * d-lang.cc (d_parse_file): Likewise.
173 * typeinfo.cc (make_frontend_typeinfo): Likewise.
175 2021-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
177 * d-tree.h (DEF_D_INTRINSIC): Don't insert INTRINSIC_ into the
179 * intrinsics.cc (DEF_D_INTRINSIC): Don't insert INTRISIC_ and
180 BUILT_IN_ into the intrinsic and built-in code names.
181 * intrinsics.def: Explicitly use full intrinsic and built-in
182 codes in all definitions.
184 2021-02-04 Iain Buclaw <ibuclaw@gdcproject.org>
186 * dmd/MERGE: Merge upstream dmd 46133f761.
187 * d-builtins.cc (d_build_builtins_module): Set builtins as BUILTINgcc.
188 (maybe_set_builtin_1): Likewise.
189 * d-frontend.cc (eval_builtin): Adjust condition for early return.
190 * intrinsics.cc (maybe_set_intrinsic): Set intrinsics as BUILTINgcc.
191 (maybe_expand_intrinsic): Add case for INTRINSIC_BSWAP16.
192 * intrinsics.def (INTRINSIC_BT): Update signature.
193 (INTRINSIC_BT64): Likewise.
194 (INTRINSIC_BSWAP16): New intrinsic.
195 (INTRINSIC_VLOAD8): Update module.
196 (INTRINSIC_VLOAD16): Likewise.
197 (INTRINSIC_VLOAD32): Likewise.
198 (INTRINSIC_VLOAD64): Likewise.
199 (INTRINSIC_VSTORE8): Likewise.
200 (INTRINSIC_VSTORE16): Likewise.
201 (INTRINSIC_VSTORE32): Likewise.
202 (INTRINSIC_VSTORE64): Likewise.
203 (INTRINSIC_ADDS): Update signature.
204 (INTRINSIC_ADDSL): Likewise.
205 (INTRINSIC_ADDU): Likewise.
206 (INTRINSIC_ADDUL): Likewise.
207 (INTRINSIC_SUBS): Likewise.
208 (INTRINSIC_SUBSL): Likewise.
209 (INTRINSIC_SUBU): Likewise.
210 (INTRINSIC_SUBUL): Likewise.
211 (INTRINSIC_MULS): Likewise.
212 (INTRINSIC_MULSL): Likewise.
213 (INTRINSIC_MULU): Likewise.
214 (INTRINSIC_MULUI): Likewise.
215 (INTRINSIC_MULUL): Likewise.
216 (INTRINSIC_NEGS): Likewise.
217 (INTRINSIC_NEGSL): Likewise.
219 2021-02-02 Iain Buclaw <ibuclaw@gdcproject.org>
222 * dmd/MERGE: Merge upstream dmd 5e2a81d9c.
224 2021-01-30 Iain Buclaw <ibuclaw@gdcproject.org>
226 * typeinfo.cc (TypeInfoVisitor::visit (TypeInfoDeclaration *)): Don't
227 layout m_arg1 and m_arg2 fields.
229 2021-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
231 * dmd/MERGE: Merge upstream dmd 609c3ce2d.
232 * d-compiler.cc (Compiler::loadModule): Rename to ...
233 (Compiler::onParseModule): ... this.
234 (Compiler::onImport): New function.
235 * d-lang.cc (d_parse_file): Remove call to Compiler::loadModule.
237 2021-01-21 Iain Buclaw <ibuclaw@gdcproject.org>
239 * dmd/MERGE: Merge upstream dmd 3a7ebef73.
241 2021-01-11 Iain Buclaw <ibuclaw@gdcproject.org>
243 * dmd/MERGE: Merge upstream dmd 2d3d13748.
244 * d-lang.cc (d_handle_option): Remove OPT_ftransition_checkimports and
245 OPT_ftransition_import.
246 * gdc.texi (Warnings): Remove documentation for -ftransition=import
247 and -ftransition=checkimports.
248 * lang.opt (ftransition=checkimports): Remove.
249 (ftransition=import): Remove.
251 2021-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
253 * dmd/MERGE: Merge upstream dmd cb1106ad5.
255 2021-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
257 * dmd/MERGE: Merge upstream dmd 9bba772fa.
259 2021-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
261 * dmd/MERGE: Merge upstream dmd e598f69c0.
263 2021-01-07 Iain Buclaw <ibuclaw@gdcproject.org>
265 * dmd/MERGE: Merge upstream dmd 9038e64c5.
266 * d-builtins.cc (build_frontend_type): Update call to
269 2021-01-05 Iain Buclaw <ibuclaw@gdcproject.org>
271 * dmd/MERGE: Merge upstream dmd a5c86f5b9.
272 * d-builtins.cc (d_eval_constant_expression): Handle ADDR_EXPR trees
273 created by build_string_literal.
274 * d-frontend.cc (retStyle): Remove function.
275 * d-target.cc (d_language_target_info): New variable.
276 (d_target_info_table): Likewise.
277 (Target::_init): Initialize d_target_info_table.
278 (Target::isReturnOnStack): New function.
279 (d_add_target_info_handlers): Likewise.
280 (d_handle_target_cpp_std): Likewise.
281 (d_handle_target_cpp_runtime_library): Likewise.
282 (Target::getTargetInfo): Likewise.
283 * d-target.h (struct d_target_info_spec): New type.
284 (d_add_target_info_handlers): Declare.
286 2021-01-01 Jakub Jelinek <jakub@redhat.com>
288 * gdc.texi: Bump @copyrights-d year.
290 2021-01-01 Jakub Jelinek <jakub@redhat.com>
292 * ChangeLog-2020: Rotate ChangeLog. New file.
295 Copyright (C) 2021 Free Software Foundation, Inc.
297 Copying and distribution of this file, with or without modification,
298 are permitted in any medium without royalty provided the copyright
299 notice and this notice are preserved.