1 2020-04-26 Iain Buclaw <ibuclaw@gdcproject.org>
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).
8 2020-04-25 Iain Buclaw <ibuclaw@gdcproject.org>
10 * intrinsics.cc (expand_intrinsic_toprec): New function.
11 (maybe_expand_intrinsic): Handle toPrec intrinsics.
12 * intrinsics.def (TOPRECF, TOPREC, TOPRECL): Add toPrec intrinsics.
14 2020-04-24 Iain Buclaw <ibuclaw@gdcproject.org>
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.
21 2020-04-19 Iain Buclaw <ibuclaw@gdcproject.org>
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.
31 2020-04-13 Iain Buclaw <ibuclaw@gdcproject.org>
33 * Make-lang.in (D_FRONTEND_OBJS): Remove d/argtypes.o.
34 * d-target.cc (Target::toArgTypes): New function.
36 2020-04-10 Iain Buclaw <ibuclaw@gdcproject.org>
38 * d-spec.cc (LIBDRUNTIME): Remove.
39 (LIBDRUNTIME_PROFILE): Remove.
40 (lang_specific_driver): Don't link in libgdruntime.
42 2020-04-07 Iain Buclaw <ibuclaw@gdcproject.org>
45 * toir.cc (IRVisitor::visit (GccAsmStatement *)): Set ASM_VOLATILE_P
46 on all asm statements.
48 2020-04-01 Iain Buclaw <ibuclaw@gdcproject.org>
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.
70 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
72 * d-attribs.cc (d_langhook_common_attribute_table): Add always_inline.
73 (handle_always_inline_attribute): New function.
75 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
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.
83 2020-03-31 Iain Buclaw <ibuclaw@gdcproject.org>
85 * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
86 d_comdat_linkage on generated decl.
88 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
91 * d-lang.cc (deps_write): Generate phony targets for content imported
94 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
97 * d-lang.cc (deps_write): Add content imported files to the make
100 2020-03-21 Iain Buclaw <ibuclaw@gdcproject.org>
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.
112 2020-03-20 Iain Buclaw <ibuclaw@gdcproject.org>
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.
125 2020-03-18 Jakub Jelinek <jakub@redhat.com>
127 * expr.cc (ExprVisitor::visit (CatAssignExp *)): Fix up duplicated
128 word issue in a comment.
129 * d-target.cc (Target::FPTypeProperties<T>::max): Likewise.
131 2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
134 * types.cc (fixup_anonymous_offset): Don't set DECL_FIELD_OFFSET on
137 2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
140 * decl.cc (make_thunk): Don't set TREE_PUBLIC on thunks if the target
141 function is external to the current compilation.
143 2020-01-01 Jakub Jelinek <jakub@redhat.com>
145 Update copyright years.
147 * gdc.texi: Bump @copyrights-d year.
149 Copyright (C) 2020 Free Software Foundation, Inc.
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.