1 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
3 * decl.cc (get_symbol_decl): Do not implicitly set
4 DECL_DECLARED_INLINE_P on member functions.
6 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
8 * d-lang.cc (d_gimplify_expr_p): Make static.
9 (d_parse_file): Likewise.
10 (d_signed_or_unsigned_type): Move to types.cc.
11 (d_unsigned_type): Likewise.
12 (d_signed_type): Likewise.
13 * d-tree.h (d_unsigned_type): Change the location in file.
14 (d_signed_type): Likewise.
15 * types.cc (d_signed_or_unsigned_type): Moved from d-lang.cc.
16 (d_unsigned_type): Likewise.
17 (d_signed_type): Likewise.
19 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
22 * dmd/MERGE: Merge upstream dmd 4be011355.
24 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
27 * dmd/MERGE: Merge upstream dmd 90450f3ef.
29 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
31 * d-lang.cc (d_parse_file): Replace OutBuffer with obstack.
33 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
35 * dmd/MERGE: Merge upstream dmd 5fc1806cd.
36 * d-lang.cc (d_parse_file): Use peekChars to get string representation
39 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
42 * d-attribs.cc (uda_attribute_p): Don't search target attribute table
45 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
47 * decl.cc (DeclVisitor::visit (VarDeclaration *)): Don't set
48 DECL_INITIAL if initializer is 'void'.
50 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
52 * d-lang.cc (d_init_options): Turn on deprecation warnings by default.
54 2020-06-25 Iain Buclaw <ibuclaw@gdcproject.org>
56 * dmd/MERGE: Merge upstream dmd 4f1046222.
57 * toir.cc (IRVisitor::visit (OnScopeGuardStatement *)): Rename to ...
58 (IRVisitor::visit (ScopeGuardStatement *)): ... this.
60 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
62 * d-attribs.cc (handle_noreturn_attribute): Remove names of unused
64 (handle_leaf_attribute): Likewise.
65 (handle_const_attribute): Likewise.
66 (handle_malloc_attribute): Likewise.
67 (handle_pure_attribute): Likewise.
68 (handle_novops_attribute): Likewise.
69 (handle_nonnull_attribute): Likewise.
70 (handle_nothrow_attribute): Likewise.
71 (handle_type_generic_attribute): Likewise.
72 (handle_transaction_pure_attribute): Likewise.
73 (handle_returns_twice_attribute): Likewise.
74 (handle_fnspec_attribute): Likewise.
75 (handle_always_inline_attribute): Likewise.
76 (d_handle_noinline_attribute): Likewise.
77 (d_handle_forceinline_attribute): Likewise.
78 (d_handle_flatten_attribute): Likewise.
79 (d_handle_noclone_attribute): Likewise.
80 (d_handle_section_attribute): Likewise.
81 (d_handle_alias_attribute): Likewise.
82 (d_handle_weak_attribute): Likewise.
84 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
86 * d-attribs.cc: Update code formatting in a consistant style.
87 * d-builtins.cc: Likewise.
88 * d-codegen.cc: Likewise.
89 * d-compiler.cc: Likewise.
90 * d-convert.cc: Likewise.
91 * d-diagnostic.cc: Likewise.
92 * d-frontend.cc: Likewise.
93 * d-lang.cc: Likewise.
94 * d-longdouble.cc: Likewise.
95 * d-port.cc: Likewise.
96 * d-spec.cc: Likewise.
100 * longdouble.h: Likewise.
101 * modules.cc: Likewise.
103 * typeinfo.cc: Likewise.
105 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
107 * d-builtins.cc: Update quotation formatting of comments.
108 * d-codegen.cc: Likewise.
109 * d-lang.cc: Likewise.
112 * imports.cc: Likewise.
113 * runtime.cc: Likewise.
115 * typeinfo.cc: Likewise.
116 * types.cc: Likewise.
118 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
120 * d-diagnostic.cc (expand_d_format): Replace OutBuffer with obstack.
121 (d_diagnostic_report_diagnostic): Don't free xformat.
122 * d-lang.cc (struct d_option_data): Change deps_target type from
123 OutBuffer to vec <const char *>.
124 (deps_add_target): Update to push each target to deps_target.
125 (deps_write_string): New function.
126 (deps_write): Change buffer type to obstack* and remove colmax.
127 (d_init_options): Update initialization of deps_target.
128 (d_parse_file): Replace OutBuffer with obstack.
130 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
132 * d-lang.cc (d_parse_file): Replace uses of File with FILE.
134 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
136 * d-codegen.cc (build_array_bounds_call): New function.
137 (build_bounds_condition): Use build_array_bounds_call.
138 * d-lang.cc (d_init_options): Explicitly set default check action to
140 (d_post_options): Set check action to CHECKACTION_C if the flag
141 -fno-druntime was seen.
142 * d-tree.h (build_array_bounds_call): Declare.
143 * expr.cc (ExprVisitor::visit (AssertExp *)): Use
144 build_array_bounds_call.
146 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
148 * d-attribs.cc (build_attributes): Use toStringExp instead of cast.
149 * toir.cc (IRVisitor::visit): Likewise.
151 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
153 * d-attribs.cc (build_attributes): Use isXxxxExp helpers instead of
155 * d-codegen.cc (d_build_call): Likewise.
156 * d-compiler.cc (Compiler::paintAsType): Likewise.
157 * decl.cc (ExprVisitor::visit): Likewise.
158 (layout_class_initializer): Likewise.
159 * expr.cc (ExprVisitor::lvalue_p): Likewise
160 (ExprVisitor::visit): Likewise.
161 * types.cc (layout_aggregate_members): Likewise.
163 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
165 * d-frontend.cc (eval_builtin): Use toTypeFunction instead of cast.
166 * decl.cc (DeclVisitor::visit): Likewise.
167 * toir.cc (IRVisitor::visit): Likewise.
168 * typeinfo.cc (TypeInfoVisitor::visit): Likewise.
170 2020-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
172 * d-builtins.cc (d_eval_constant_expression): Use isTypeXxxx helpers
173 instead of explicit casts.
174 (d_build_builtins_module): Likewise.
175 * d-codegen.cc (get_array_length): Likewise.
176 (identity_compare_p): Likewise.
177 (lower_struct_comparison): Likewise.
178 (build_array_from_val): Likewise.
179 (array_bounds_check): Likewise.
180 (get_function_type): Likewise.
181 (d_build_call): Likewise.
182 * d-compiler.cc (Compiler::paintAsType): Likewise.
183 * d-convert.cc (convert_expr): Likewise.
184 (convert_for_assignment): Likewise.
185 * d-lang.cc (d_classify_record): Likewise.
186 (d_build_eh_runtime_type): Likewise.
187 * decl.cc (DeclVisitor::visit): Likewise.
188 * expr.cc (ExprVisitor::needs_postblit): Likewise.
189 (ExprVisitor::needs_dtor): Likewise.
190 (ExprVisitor::visit): Likewise.
191 * imports.cc (ImportVisitor::visit): Likewise.
192 * typeinfo.cc (get_typeinfo_kind): Likewise.
193 (TypeInfoVisitor::visit): Likewise.
194 (TypeDeclInfoVisitor::visit): Likewise.
195 * types.cc (merge_aggregate_types): Likewise.
196 (TypeVisitor::visit): Likewise.
198 2020-06-14 Iain Buclaw <ibuclaw@gdcproject.org>
200 * expr.cc (ExprVisitor::visit (AssocArrayLiteralExp *)): Fix line
201 lengths, no functional change.
202 * typeinfo.cc (TypeInfoVisitor::layout_interfaces): Likewise.
203 (layout_classinfo_interfaces): Likewise.
205 2020-06-09 Iain Buclaw <ibuclaw@gdcproject.org>
207 * dmd/MERGE: Merge upstream dmd 13d67c575.
208 * d-builtins.cc (build_frontend_type): Update call to
210 * d-frontend.cc (Global::_init): Move setting of errorLimit to ...
211 * d-lang.cc (d_init_options): ... here. Update for new field
212 location of errorLimit.
213 (d_post_options): Likewise.
214 * d-port.cc (Port::readwordLE): Update signature.
215 (Port::readwordBE): Likewise.
216 (Port::readlongLE): Likewise.
217 (Port::readlongBE): Likewise.
218 * decl.cc (get_symbol_decl): Update for new field types.
220 2020-06-08 Iain Buclaw <ibuclaw@gdcproject.org>
223 * dmd/MERGE: Merge upstream dmd 5041e56f1.
225 2020-06-08 Iain Buclaw <ibuclaw@gdcproject.org>
227 * dmd/MERGE: Merge upstream dmd 955b8b36f.
228 * expr.cc (ExprVisitor::visit (AndAndExp *)): Rename type to ...
229 (ExprVisitor::visit (LogicalExp *)): ... this. Handle both 'and if'
230 and 'or if' expression nodes.
231 (ExprVisitor::visit (OrOrExp *)): Remove.
233 2020-06-07 Iain Buclaw <ibuclaw@gdcproject.org>
235 * dmd/MERGE: Merge upstream dmd 73d8e2fec.
236 * decl.cc (get_symbol_decl): Use new Prot::Kind enum.
237 * modules.cc (get_internal_fn): Likewise.
239 2020-06-07 Iain Buclaw <ibuclaw@gdcproject.org>
241 * dmd/MERGE: Merge upstream dmd 108ca1bcd.
242 * d-diagnostic.cc (expand_d_format): Adjust to use extractChars().
243 * d-frontend.cc (Loc::toChars): Likewise.
244 * d-lang.cc (deps_write): Likewise.
245 (d_parse_file): Likewise.
246 * decl.cc (d_mangle_decl): Likewise.
247 * intrinsics.cc (maybe_set_intrinsic): Likewise.
249 2020-06-07 Iain Buclaw <ibuclaw@gdcproject.org>
251 * dmd/MERGE: Merge upstream dmd b0df0e982.
252 * d-builtins.cc (build_frontend_type): Use VarArg for varargs_p.
253 * d-codegen.cc (declaration_type): Call TypeFunction::create with
255 (parameter_type): Likewise.
256 (d_build_call): Use new field names and member functions.
257 * d-target.cc (Target::cppParameterType): Call TypeFunction::create
258 with argument VARARGnone.
259 * types.cc (TypeVisitor::visit (TypeFunction *): Use new field names
260 and member functions.
262 2020-06-07 Iain Buclaw <ibuclaw@gdcproject.org>
264 * dmd/MERGE: Merge upstream dmd 1831b24ff.
265 * d-lang.cc (d_init_options): Remove initialization of updated fields.
266 (d_handle_option): Adjust for new field types.
268 2020-06-07 Iain Buclaw <ibuclaw@gdcproject.org>
270 * dmd/MERGE: Merge upstream dmd cef1e7991.
271 * d-lang.cc (d_parse_file): Adjust for new field types.
273 2020-06-05 Iain Buclaw <ibuclaw@gdcproject.org>
275 * dmd/MERGE: Merge upstream dmd 740f3d1ea.
276 * d-lang.cc (d_handle_option): Use new fields to save debug and
277 version levels passed over command-line.
278 (d_post_options): Add them to front-end here.
280 2020-06-05 Iain Buclaw <ibuclaw@gdcproject.org>
282 * dmd/MERGE: Merge upstream dmd f5638c7b8.
283 * d-builtins.cc (d_init_versions): Use new CHECKENABLE enum.
284 * d-codegen.cc (array_bounds_check): Likewise.
285 (build_frame_type): Likewise.
286 (get_frameinfo): Likewise.
287 * d-lang.cc (d_init_options): Likewise.
288 (d_init_options_struct): Don't initialize x_flag_bounds_check.
289 (d_handle_option): Use new CHECKENABLE enum.
290 (d_post_options): Likewise. Set flag_bounds_check here.
291 * expr.cc (ExprVisitor::visit(AssertExp *)): Use new CHECKENABLE enum.
293 2020-06-05 Iain Buclaw <ibuclaw@gdcproject.org>
295 * dmd/MERGE: Merge upstream dmd 56f0a65c4.
296 * d-builtins.cc (build_frontend_type): Remove static.
297 (d_build_builtins_module): Use target.va_listType() to get front-end
299 (d_init_builtins): Move creation of va_list to Target::va_listType.
300 * d-codegen.cc (build_interface_binfo): Use new target global.
301 (build_vindex_ref): Likewise.
302 (identity_compare_p): Likewise.
303 * d-ctfloat.cc (CTFloat::parse): Likewise.
304 * d-lang.cc (d_init): Likewise.
305 * d-port.cc (Port::isFloat32LiteralOutOfRange): Likewise.
306 (Port::isFloat64LiteralOutOfRange): Likewise.
307 * d-target.cc (define_float_constants): Initialize constants through a
308 reference, instead of setting globals.
309 (Target::_init): Initialize new fields instead of setting globals.
310 (Target::va_listType): Build front-end type from va_list_type_node.
311 (Target::toCppMangle): Renamed to ...
312 (TargetCPP::toMangle): ... this.
313 (Target::cppTypeInfoMangle): Renamed to ...
314 (TargetCPP::typeInfoMangle): ... this.
315 (Target::cppTypeMangle): Renamed to ...
316 (TargetCPP::typeMangle): this.
317 (Target::cppParameterType): Renamed to ...
318 (TargetCPP::parameterType): ... this. Use target.va_listType() to get
319 front-end type for va_list.
320 (Target::cppFundamentalType): Renamed to ...
321 (TargetCPP::fundamentalType): ... this.
322 * d-tree.h (build_frontend_type): Declare.
323 * decl.cc (base_vtable_offset): Use new target global.
324 * typeinfo.cc (layout_classinfo_interfaces): Likewise.
325 (layout_cpp_typeinfo): Likewise.
326 * types.cc (valist_array_p): Use target.va_listType() to get front-end
328 (layout_aggregate_type): Use new target global.
330 2020-06-05 Iain Buclaw <ibuclaw@gdcproject.org>
332 * dmd/MERGE: Merge upstream dmd 6d5bffa54.
333 * d-builtins.cc (maybe_set_builtin_1): Update call to
334 Condition::include().
335 * decl.cc (DeclVisitor::visit(AttribDeclaration *)): Likewise.
336 * types.cc (layout_aggregate_members): Likewise.
338 2020-06-04 Iain Buclaw <ibuclaw@gdcproject.org>
340 * dmd/MERGE: Merge upstream dmd 48d704f08.
341 * d-attribs.cc (build_attributes): Use new field name.
342 * d-builtins.cc (build_frontend_type): Likewise.
343 (maybe_set_builtin_1): Likewise.
344 (d_maybe_set_builtin): Likewise.
345 * d-codegen.cc (build_interface_binfo): Likewise.
346 (identity_compare_p): Likewise.
347 (lower_struct_comparison): Likewise.
348 (build_struct_comparison): Likewise.
349 (d_build_call): Likewise.
350 (build_frame_type): Likewise.
351 (build_closure): Likewise.
352 * d-compiler.cc (Compiler::paintAsType): Likewise.
353 (Compiler::loadModule): Likewise.
354 * d-incpath.cc (add_globalpaths): Likewise.
355 (add_filepaths): Likewise.
356 (add_import_paths): Likewise.
357 * d-lang.cc (deps_write): Likewise.
358 (d_parse_file): Likewise.
359 * decl.cc (gcc_attribute_p): Likewise.
360 (base_vtable_offset): Likewise.
361 (get_vtable_decl): Likewise.
362 (build_class_instance): Likewise.
363 * expr.cc (class ExprVisitor): Likewise.
364 * modules.cc (layout_moduleinfo_fields): Likewise.
365 (layout_moduleinfo): Likewise.
366 (build_module_tree): Likewise.
367 * toir.cc (class IRVisitor): Likewise.
368 * typeinfo.cc (class TypeInfoVisitor): Likewise.
369 (layout_classinfo_interfaces): Likewise.
370 * types.cc (layout_aggregate_members): Likewise.
371 (layout_aggregate_type): Likewise.
373 2020-06-04 Iain Buclaw <ibuclaw@gdcproject.org>
375 * dmd/MERGE: Merge upstream dmd 47ed0330f.
377 2020-06-04 Iain Buclaw <ibuclaw@gdcproject.org>
379 * Make-lang.in (D_OBJS): Add d-compiler.o, d-ctfloat.o, d-port.o.
380 * d-frontend.cc (Port::memicmp): Move to d-port.cc.
381 (Port::strupr): Likewise.
382 (Port::isFloat32LiteralOutOfRange): Likewise.
383 (Port::isFloat64LiteralOutOfRange): Likewise.
384 (Port::readwordLE): Likewise.
385 (Port::readwordBE): Likewise.
386 (Port::readlongLE): Likewise.
387 (Port::readlongBE): Likewise.
388 (Port::valcpy): Likewise.
389 (CTFloat::fabs): Move to d-ctfloat.cc.
390 (CTFloat::ldexp): Likewise.
391 (CTFloat::isIdentical): Likewise.
392 (CTFloat::isNaN): Likewise.
393 (CTFloat::isSNaN): Likewise.
394 (CTFloat::isInfinity): Likewise.
395 (CTFloat::parse): Likewise.
396 (CTFloat::sprint): Likewise.
397 (CTFloat::hash): Likewise.
398 (Compiler::genCmain): Move to d-compiler.cc.
399 (Compiler::paintAsType): Likewise.
400 (Compiler::loadModule): Likewise.
401 * d-compiler.cc: New file.
402 * d-ctfloat.cc: New file.
403 * d-port.cc: New file.
405 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
407 * decl.cc (DeclVisitor::build_dsymbol): New function.
408 (DeclVisitor::visit (TupleDeclaration *)): Use build_dsymbol to
409 traverse AST instead of accept.
410 (DeclVisitor::visit (AttribDeclaration *)): Likewise.
411 (DeclVisitor::visit (Nspace *)): Likewise.
412 (DeclVisitor::visit (TemplateDeclaration *)): Likewise.
413 (DeclVisitor::visit (TemplateInstance *)): Likewise.
414 (DeclVisitor::visit (TemplateMixin *)): Likewise.
415 (DeclVisitor::visit (StructDeclaration *)): Likewise.
416 (DeclVisitor::visit (ClassDeclaration *)): Likewise.
417 (DeclVisitor::visit (InterfaceDeclaration *)): Likewise.
418 (DeclVisitor::visit (VarDeclaration *)): Likewise.
419 (build_decl_tree): Likewise.
421 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
423 * d-builtins.cc (build_frontend_type): Handle struct fields with NULL
424 DECL_NAME. Use byte_position to get the real field offset.
426 2020-05-06 Iain Buclaw <ibuclaw@gdcproject.org>
429 * d-codegen.cc (force_target_expr): Move create_temporary_var
430 implementation inline here.
431 (create_temporary_var): Remove.
432 (maybe_temporary_var): Remove.
434 * d-convert.cc (d_array_convert): Use build_local_temp to generate
435 temporaries, and generate its assignment.
436 * d-tree.h (create_temporary_var): Remove.
437 (maybe_temporary_var): Remove.
438 (d_array_convert): Remove vars argument.
439 * expr.cc (ExprVisitor::visit (CatExp *)): Use build_local_temp to
440 generate temporaries, don't wrap them in a BIND_EXPR.
441 (ExprVisitor::visit (NewExp *)): Likewise.
443 2020-04-30 Iain Buclaw <ibuclaw@gdcproject.org>
445 * gdc.texi (Options for Linking): Clarify usage of -defaultlib= and
448 2020-04-29 Iain Buclaw <ibuclaw@gdcproject.org>
450 * d-codegen.cc (d_decl_context): Don't include module in the name of
451 class and struct types that aren't extern(D).
453 2020-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
456 * d-builtins.cc (build_frontend_type): Set parent for generated
457 fields of built-in types.
458 * d-codegen.cc (argument_reference_p): Rename to ...
459 (parameter_reference_p): ... this.
460 (type_passed_as): Rename to ...
461 (parameter_type): ... this. Make TREE_ADDRESSABLE types restrict.
462 (d_build_call): Move handling of non-POD types here from ...
463 * d-convert.cc (convert_for_argument): ... here.
464 * d-tree.h (argument_reference_p): Rename declaration to ...
465 (parameter_reference_p): ... this.
466 (type_passed_as): Rename declaration to ...
467 (parameter_type): ... this.
468 * types.cc (TypeVisitor::visit (TypeFunction *)): Update caller.
470 2020-04-26 Iain Buclaw <ibuclaw@gdcproject.org>
472 * decl.cc (get_symbol_decl): Set DECL_DECLARED_INLINE_P or
473 DECL_UNINLINABLE for declarations with pragma(inline).
474 * toir.cc (IRVisitor::visit (GccAsmStatement *)): Set ASM_INLINE_P if
475 in function decorated with pragma(inline).
477 2020-04-25 Iain Buclaw <ibuclaw@gdcproject.org>
479 * intrinsics.cc (expand_intrinsic_toprec): New function.
480 (maybe_expand_intrinsic): Handle toPrec intrinsics.
481 * intrinsics.def (TOPRECF, TOPREC, TOPRECL): Add toPrec intrinsics.
483 2020-04-24 Iain Buclaw <ibuclaw@gdcproject.org>
485 * d-spec.cc (need_phobos): Remove.
486 (lang_specific_driver): Replace need_phobos with phobos_library.
487 Reorder -debuglib and -defaultlib to have precedence over libphobos.
488 (lang_specific_pre_link): Remove test for need_phobos.
490 2020-04-19 Iain Buclaw <ibuclaw@gdcproject.org>
493 * d-codegen.cc (argument_reference_p): Don't check TREE_ADDRESSABLE.
494 (type_passed_as): Build reference type if TREE_ADDRESSABLE.
495 * d-convert.cc (convert_for_argument): Build explicit TARGET_EXPR if
496 needed for arguments passed by invisible reference.
497 * types.cc (TypeVisitor::visit (TypeStruct *)): Mark all structs that
498 are not POD as TREE_ADDRESSABLE.
500 2020-04-13 Iain Buclaw <ibuclaw@gdcproject.org>
502 * Make-lang.in (D_FRONTEND_OBJS): Remove d/argtypes.o.
503 * d-target.cc (Target::toArgTypes): New function.
505 2020-04-10 Iain Buclaw <ibuclaw@gdcproject.org>
507 * d-spec.cc (LIBDRUNTIME): Remove.
508 (LIBDRUNTIME_PROFILE): Remove.
509 (lang_specific_driver): Don't link in libgdruntime.
511 2020-04-07 Iain Buclaw <ibuclaw@gdcproject.org>
514 * toir.cc (IRVisitor::visit (GccAsmStatement *)): Set ASM_VOLATILE_P
515 on all asm statements.
517 2020-04-01 Iain Buclaw <ibuclaw@gdcproject.org>
520 * d-attribs.cc: Include dmd/attrib.h.
521 (build_attributes): Redeclare as static.
522 (apply_user_attributes): New function.
523 * d-tree.h (class UserAttributeDeclaration): Remove.
524 (build_attributes): Remove.
525 (apply_user_attributes): Declare.
526 (finish_aggregate_type): Remove attrs argument.
527 * decl.cc (get_symbol_decl): Merge declaration prototypes with
528 definitions. Use apply_user_attributes.
529 * modules.cc (layout_moduleinfo_fields): Remove last argument to
530 finish_aggregate_type.
531 * typeinfo.cc (layout_classinfo_interfaces): Likewise.
532 * types.cc (layout_aggregate_members): Likewise.
533 (finish_aggregate_type): Remove attrs argument.
534 (TypeVisitor::visit (TypeEnum *)): Use apply_user_attributes.
535 (TypeVisitor::visit (TypeStruct *)): Remove last argument to
536 finish_aggregate_type. Use apply_user_attributes.
537 (TypeVisitor::visit (TypeClass *)): Likewise.
539 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
541 * d-attribs.cc (d_langhook_common_attribute_table): Add always_inline.
542 (handle_always_inline_attribute): New function.
544 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
547 * d-codegen.cc (build_alignment_field): Remove.
548 (build_struct_literal): Don't insert alignment padding.
549 * expr.cc (ExprVisitor::visit (AssignExp *)): Call memset before
550 assigning struct literals.
552 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
554 * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
555 d_comdat_linkage on generated decl.
557 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
560 * d-lang.cc (deps_write): Generate phony targets for content imported
563 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
566 * d-lang.cc (deps_write): Add content imported files to the make
569 2020-03-21 Iain Buclaw <ibuclaw@gdcproject.org>
572 * typeinfo.cc (class TypeInfoVisitor): Replace type_ field with decl_.
573 (TypeInfoVisitor::TypeInfoVisitor): Set decl_.
574 (TypeInfoVisitor::result): Update.
575 (TypeInfoVisitor::internal_reference): New function.
576 (TypeInfoVisitor::layout_string): Use internal_reference.
577 (TypeInfoVisitor::visit (TypeInfoTupleDeclaration *)): Likewise.
578 (layout_typeinfo): Construct TypeInfoVisitor with typeinfo decl.
579 (layout_classinfo): Likewise.
581 2020-03-20 Iain Buclaw <ibuclaw@gdcproject.org>
584 * d-tree.h (struct GTY): Add daggregate field.
585 (IDENTIFIER_DAGGREGATE): Define.
586 (d_mangle_decl): Add declaration.
587 * decl.cc (mangle_decl): Remove static linkage, rename to...
588 (d_mangle_decl): ...this, update all callers.
589 * types.cc (merge_aggregate_types): New function.
590 (TypeVisitor::visit (TypeStruct *)): Call merge_aggregate_types, set
591 IDENTIFIER_DAGGREGATE and TYPE_CXX_ODR_P.
592 (TypeVisitor::visit (TypeClass *)): Likewise.
594 2020-03-18 Jakub Jelinek <jakub@redhat.com>
596 * expr.cc (ExprVisitor::visit (CatAssignExp *)): Fix up duplicated
597 word issue in a comment.
598 * d-target.cc (Target::FPTypeProperties<T>::max): Likewise.
600 2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
603 * types.cc (fixup_anonymous_offset): Don't set DECL_FIELD_OFFSET on
606 2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
609 * decl.cc (make_thunk): Don't set TREE_PUBLIC on thunks if the target
610 function is external to the current compilation.
612 2020-01-01 Jakub Jelinek <jakub@redhat.com>
614 Update copyright years.
616 * gdc.texi: Bump @copyrights-d year.
618 Copyright (C) 2020 Free Software Foundation, Inc.
620 Copying and distribution of this file, with or without modification,
621 are permitted in any medium without royalty provided the copyright
622 notice and this notice are preserved.