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