1 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
3 * d-target.cc (Target::_init): Call new targetdm hook to register OS
4 specific target info keys.
5 * d-target.def (d_register_os_target_info): New hook.
7 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
9 * d-builtins.cc (d_add_builtin_version): Remove all setting of
10 target-specific global.params.
11 * typeinfo.cc (create_typeinfo): Don't add argType fields to
14 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
17 * decl.cc (DeclVisitor::visit (StructDeclaration *)): Don't set
18 DECL_INSTANTIATED on static initializer declarations.
19 (DeclVisitor::visit (ClassDeclaration *)): Likewise.
20 (DeclVisitor::visit (EnumDeclaration *)): Likewise.
21 (d_finish_decl): Move call to set_linkage_for_decl to...
22 (declare_extern_var): ...here.
24 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
26 * d-target.cc (Target::_init): Call new targetdm hook to register CPU
27 specific target info keys.
28 * d-target.def (d_register_cpu_target_info): New hook.
30 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
32 * d-target.cc (Target::systemLinkage): Return LINKwindows if
33 d_has_stdcall_convention applies to LINKsystem.
34 * d-target.def (d_has_stdcall_convention): New hook.
35 * types.cc (TypeVisitor::visit (TypeFunction *)): Insert "stdcall"
36 function attribute if d_has_stdcall_convention applies to LINKwindows.
38 2021-04-10 Iain Buclaw <ibuclaw@gdcproject.org>
40 * dmd/MERGE: Merge upstream dmd 0450061c8.
42 2021-04-08 Iain Buclaw <ibuclaw@gdcproject.org>
44 * d-attribs.cc: Include fold-const.h and opts.h.
45 (attr_noreturn_exclusions): Add alloc_size.
46 (attr_const_pure_exclusions): Likewise.
47 (attr_inline_exclusions): Add target_clones.
48 (attr_noinline_exclusions): Rename forceinline to always_inline.
49 (attr_target_exclusions): New array.
50 (attr_target_clones_exclusions): New array.
51 (attr_alloc_exclusions): New array.
52 (attr_cold_hot_exclusions): New array.
53 (d_langhook_common_attribute_table): Add new D attribute handlers.
54 (build_attributes): Update to look for gcc.attributes. Issue warning
55 if not given a struct literal. Handle void initialized arguments.
56 (handle_always_inline_attribute): Remove function.
57 (d_handle_noinline_attribute): Don't extract TYPE_LANG_FRONTEND.
58 (d_handle_forceinline_attribute): Rename to...
59 (d_handle_always_inline_attribute): ...this. Remove special handling.
60 (d_handle_flatten_attribute): Don't extract TYPE_LANG_FRONTEND.
61 (d_handle_target_attribute): Likewise. Warn about empty arguments.
62 (d_handle_target_clones_attribute): New function.
63 (optimize_args): New static variable.
64 (parse_optimize_options): New function.
65 (d_handle_optimize_attribute): New function.
66 (d_handle_noclone_attribute): Don't extract TYPE_LANG_FRONTEND.
67 (d_handle_alias_attribute): Remove function.
68 (d_handle_noicf_attribute): New function.
69 (d_handle_noipa_attribute): New function.
70 (d_handle_section_attribute): Call the handle_generic_attribute target
71 hook after performing target independent processing.
72 (d_handle_symver_attribute): New function.
73 (d_handle_noplt_attribute): New function.
74 (positional_argument): New function.
75 (d_handle_alloc_size_attribute): New function.
76 (d_handle_cold_attribute): New function.
77 (d_handle_restrict_attribute): New function.
78 (d_handle_used_attribute): New function.
79 * decl.cc (gcc_attribute_p): Update to look for gcc.attributes.
80 (get_symbol_decl): Update decl source location of old prototypes to
81 the new declaration being merged.
82 * types.cc (layout_aggregate_members): Apply user defined attributes
85 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
88 * dmd/MERGE: Merge upstream dmd d16195406.
90 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
92 * d-codegen.cc (build_frame_type): Use Array::find to get index of
95 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
97 * d-diagnostic.cc (vwarning): Increment gaggedWarnings if warning
98 message was suppressed.
99 (vdeprecation): Likewise for deprecation messages.
101 2021-04-06 Iain Buclaw <ibuclaw@gdcproject.org>
103 * dmd/MERGE: Merge upstream dmd 5cc71ff83.
105 2021-04-05 Iain Buclaw <ibuclaw@gdcproject.org>
108 * d-lang.cc (d_init): Disable flag_weak_templates if no support for
109 weak or one-only symbols.
110 * d-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
111 (DECL_INSTANTIATED): New macro.
112 (d_comdat_linkage): Remove declaration.
113 (d_linkonce_linkage): Remove declaration.
114 (set_linkage_for_decl): New declaration.
115 * decl.cc (DeclVisitor::visit (StructDeclaration *)): Replace call to
116 d_linkonce_linkage with setting DECL_INSTANTIATED.
117 (DeclVisitor::visit (ClassDeclaration *)): Likewise.
118 (DeclVisitor::visit (EnumDeclaration *)): Likewise.
119 (DeclVisitor::visit (InterfaceDeclaration *)): Remove call to
121 (get_symbol_decl): Call set_linkage_for_decl instead of
123 (d_finish_decl): Call set_linkage_for_decl.
124 (d_comdat_linkage): Made function static. Only set DECL_COMDAT for
125 DECL_INSTANTIATED decls.
126 (d_linkonce_linkage): Remove function.
127 (d_weak_linkage): New function.
128 (set_linkage_for_decl): New function.
129 * gdc.texi (Runtime Options): Rename -fno-weak to -fno-weak-templates,
130 update documentation of option.
131 * lang.opt (fweak): Rename option to ...
132 (fweak-templates): ... this. Update help string.
133 * modules.cc (get_internal_fn): Add Prot parameter. Set generated
135 (build_internal_fn): Update call to get_internal_fn.
136 (build_dso_cdtor_fn): Likewise.
137 (register_moduleinfo): Call d_finish_decl on dso_slot_node and
138 dso_initialized_node.
139 * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
140 set_linkage_for_decl instead of d_comdat_linkage.
141 (TypeInfoDeclVisitor::visit (TypeInfoDeclaration *)): Remove calls to
142 d_linkonce_linkage and d_comdat_linkage.
143 (get_cpp_typeinfo_decl): Likewise.
145 2021-04-03 Iain Buclaw <ibuclaw@gdcproject.org>
147 * dmd/MERGE: Merge upstream dmd 3b808e838.
148 * Make-lang.in (D_FRONTEND_OBJS): Add d/chkformat.o.
149 * d-codegen.cc (build_struct_literal): Handle special enums.
150 * d-convert.cc (convert_expr): Handle noreturn type.
151 (convert_for_condition): Likewise.
152 * d-target.cc (Target::_init): Set type for wchar_t.
153 (TargetCPP::derivedClassOffset): New method.
154 (Target::libraryObjectMonitors): New method.
155 * decl.cc (get_symbol_decl): Set TREE_THIS_VOLATILE for functions of
157 * toir.cc (IRVisitor::visit (ReturnStatement *)): Handle returning
159 * types.cc (TypeVisitor::visit (TypeNoreturn *)): New method.
160 (TypeVisitor::visit (TypeEnum *)): Handle special enums.
162 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
164 * d-builtins.cc (d_init_versions): Predefine D_PIE if flag_pie is set.
166 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
168 * d-lang.cc (d_enum_underlying_base_type): New function.
169 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Set as
170 d_enum_underlying_base_type.
172 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
174 * Make-lang.in (DMDGEN_COMPILE): Remove.
175 (d/%.dmdgen.o): Use COMPILER_FOR_BUILD and BUILD_COMPILERFLAGS to
176 build all D generator programs.
177 (D_SYSTEM_H): New macro.
178 (d/idgen.dmdgen.o): Add dependencies to build.
179 (d/impcnvgen.dmdgen.o): Likewise.
180 * d-system.h: Include bconfig.h if GENERATOR_FILE is defined.
182 2021-03-28 Iain Buclaw <ibuclaw@gdcproject.org>
184 * config-lang.in (gtfiles): Remove modules.cc.
185 * modules.cc (struct module_info): Remove GTY marker.
186 (static_ctor_list): Remove variable.
187 (static_dtor_list): Remove variable.
188 (register_moduleinfo): Directly set DECL_STATIC_CONSTRUCTOR on
189 dso_ctor, and DECL_STATIC_DESTRUCTOR on dso_dtor.
190 (d_finish_compilation): Remove static ctor/dtor handling.
192 2021-03-06 Iain Buclaw <ibuclaw@gdcproject.org>
194 * d-lang.cc (d_init_options_struct): Don't set default
197 2021-03-03 Iain Buclaw <ibuclaw@gdcproject.org>
200 * dmd/MERGE: Merge upstream dmd a3c9bf422.
202 2021-02-13 Iain Buclaw <ibuclaw@gdcproject.org>
204 * dmd/MERGE: Merge upstream dmd 7132b3537.
205 * Make-lang.in (D_FRONTEND_OBJS): Add d/dsymbolsem.o, d/semantic2.o,
206 d/semantic3.o, and d/templateparamsem.o.
207 * d-compiler.cc (Compiler::genCmain): Update calls to semantic
208 entrypoint functions.
209 * d-lang.cc (d_parse_file): Likewise.
210 * typeinfo.cc (make_frontend_typeinfo): Likewise.
212 2021-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
214 * d-tree.h (DEF_D_INTRINSIC): Don't insert INTRINSIC_ into the
216 * intrinsics.cc (DEF_D_INTRINSIC): Don't insert INTRISIC_ and
217 BUILT_IN_ into the intrinsic and built-in code names.
218 * intrinsics.def: Explicitly use full intrinsic and built-in
219 codes in all definitions.
221 2021-02-04 Iain Buclaw <ibuclaw@gdcproject.org>
223 * dmd/MERGE: Merge upstream dmd 46133f761.
224 * d-builtins.cc (d_build_builtins_module): Set builtins as BUILTINgcc.
225 (maybe_set_builtin_1): Likewise.
226 * d-frontend.cc (eval_builtin): Adjust condition for early return.
227 * intrinsics.cc (maybe_set_intrinsic): Set intrinsics as BUILTINgcc.
228 (maybe_expand_intrinsic): Add case for INTRINSIC_BSWAP16.
229 * intrinsics.def (INTRINSIC_BT): Update signature.
230 (INTRINSIC_BT64): Likewise.
231 (INTRINSIC_BSWAP16): New intrinsic.
232 (INTRINSIC_VLOAD8): Update module.
233 (INTRINSIC_VLOAD16): Likewise.
234 (INTRINSIC_VLOAD32): Likewise.
235 (INTRINSIC_VLOAD64): Likewise.
236 (INTRINSIC_VSTORE8): Likewise.
237 (INTRINSIC_VSTORE16): Likewise.
238 (INTRINSIC_VSTORE32): Likewise.
239 (INTRINSIC_VSTORE64): Likewise.
240 (INTRINSIC_ADDS): Update signature.
241 (INTRINSIC_ADDSL): Likewise.
242 (INTRINSIC_ADDU): Likewise.
243 (INTRINSIC_ADDUL): Likewise.
244 (INTRINSIC_SUBS): Likewise.
245 (INTRINSIC_SUBSL): Likewise.
246 (INTRINSIC_SUBU): Likewise.
247 (INTRINSIC_SUBUL): Likewise.
248 (INTRINSIC_MULS): Likewise.
249 (INTRINSIC_MULSL): Likewise.
250 (INTRINSIC_MULU): Likewise.
251 (INTRINSIC_MULUI): Likewise.
252 (INTRINSIC_MULUL): Likewise.
253 (INTRINSIC_NEGS): Likewise.
254 (INTRINSIC_NEGSL): Likewise.
256 2021-02-02 Iain Buclaw <ibuclaw@gdcproject.org>
259 * dmd/MERGE: Merge upstream dmd 5e2a81d9c.
261 2021-01-30 Iain Buclaw <ibuclaw@gdcproject.org>
263 * typeinfo.cc (TypeInfoVisitor::visit (TypeInfoDeclaration *)): Don't
264 layout m_arg1 and m_arg2 fields.
266 2021-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
268 * dmd/MERGE: Merge upstream dmd 609c3ce2d.
269 * d-compiler.cc (Compiler::loadModule): Rename to ...
270 (Compiler::onParseModule): ... this.
271 (Compiler::onImport): New function.
272 * d-lang.cc (d_parse_file): Remove call to Compiler::loadModule.
274 2021-01-21 Iain Buclaw <ibuclaw@gdcproject.org>
276 * dmd/MERGE: Merge upstream dmd 3a7ebef73.
278 2021-01-11 Iain Buclaw <ibuclaw@gdcproject.org>
280 * dmd/MERGE: Merge upstream dmd 2d3d13748.
281 * d-lang.cc (d_handle_option): Remove OPT_ftransition_checkimports and
282 OPT_ftransition_import.
283 * gdc.texi (Warnings): Remove documentation for -ftransition=import
284 and -ftransition=checkimports.
285 * lang.opt (ftransition=checkimports): Remove.
286 (ftransition=import): Remove.
288 2021-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
290 * dmd/MERGE: Merge upstream dmd cb1106ad5.
292 2021-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
294 * dmd/MERGE: Merge upstream dmd 9bba772fa.
296 2021-01-09 Iain Buclaw <ibuclaw@gdcproject.org>
298 * dmd/MERGE: Merge upstream dmd e598f69c0.
300 2021-01-07 Iain Buclaw <ibuclaw@gdcproject.org>
302 * dmd/MERGE: Merge upstream dmd 9038e64c5.
303 * d-builtins.cc (build_frontend_type): Update call to
306 2021-01-05 Iain Buclaw <ibuclaw@gdcproject.org>
308 * dmd/MERGE: Merge upstream dmd a5c86f5b9.
309 * d-builtins.cc (d_eval_constant_expression): Handle ADDR_EXPR trees
310 created by build_string_literal.
311 * d-frontend.cc (retStyle): Remove function.
312 * d-target.cc (d_language_target_info): New variable.
313 (d_target_info_table): Likewise.
314 (Target::_init): Initialize d_target_info_table.
315 (Target::isReturnOnStack): New function.
316 (d_add_target_info_handlers): Likewise.
317 (d_handle_target_cpp_std): Likewise.
318 (d_handle_target_cpp_runtime_library): Likewise.
319 (Target::getTargetInfo): Likewise.
320 * d-target.h (struct d_target_info_spec): New type.
321 (d_add_target_info_handlers): Declare.
323 2021-01-01 Jakub Jelinek <jakub@redhat.com>
325 * gdc.texi: Bump @copyrights-d year.
327 2021-01-01 Jakub Jelinek <jakub@redhat.com>
329 * ChangeLog-2020: Rotate ChangeLog. New file.
332 Copyright (C) 2021 Free Software Foundation, Inc.
334 Copying and distribution of this file, with or without modification,
335 are permitted in any medium without royalty provided the copyright
336 notice and this notice are preserved.