Daily bump.
[platform/upstream/gcc.git] / gcc / d / ChangeLog
1 2021-04-10  Iain Buclaw  <ibuclaw@gdcproject.org>
2
3         * dmd/MERGE: Merge upstream dmd 0450061c8.
4
5 2021-04-08  Iain Buclaw  <ibuclaw@gdcproject.org>
6
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
46         on fields.
47
48 2021-04-06  Iain Buclaw  <ibuclaw@gdcproject.org>
49
50         PR d/99917
51         * dmd/MERGE: Merge upstream dmd d16195406.
52
53 2021-04-06  Iain Buclaw  <ibuclaw@gdcproject.org>
54
55         * d-codegen.cc (build_frame_type): Use Array::find to get index of
56         element.
57
58 2021-04-06  Iain Buclaw  <ibuclaw@gdcproject.org>
59
60         * d-diagnostic.cc (vwarning): Increment gaggedWarnings if warning
61         message was suppressed.
62         (vdeprecation): Likewise for deprecation messages.
63
64 2021-04-06  Iain Buclaw  <ibuclaw@gdcproject.org>
65
66         * dmd/MERGE: Merge upstream dmd 5cc71ff83.
67
68 2021-04-05  Iain Buclaw  <ibuclaw@gdcproject.org>
69
70         PR d/99914
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
83         d_linkonce_linkage.
84         (get_symbol_decl): Call set_linkage_for_decl instead of
85         d_linkonce_linkage.
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
97         function flag.
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.
107
108 2021-04-03  Iain Buclaw  <ibuclaw@gdcproject.org>
109
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
119         type noreturn.
120         * toir.cc (IRVisitor::visit (ReturnStatement *)): Handle returning
121         noreturn types.
122         * types.cc (TypeVisitor::visit (TypeNoreturn *)): New method.
123         (TypeVisitor::visit (TypeEnum *)): Handle special enums.
124
125 2021-03-28  Iain Buclaw  <ibuclaw@gdcproject.org>
126
127         * d-builtins.cc (d_init_versions): Predefine D_PIE if flag_pie is set.
128
129 2021-03-28  Iain Buclaw  <ibuclaw@gdcproject.org>
130
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.
134
135 2021-03-28  Iain Buclaw  <ibuclaw@gdcproject.org>
136
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.
144
145 2021-03-28  Iain Buclaw  <ibuclaw@gdcproject.org>
146
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.
154
155 2021-03-06  Iain Buclaw  <ibuclaw@gdcproject.org>
156
157         * d-lang.cc (d_init_options_struct): Don't set default
158         flag_complex_method.
159
160 2021-03-03  Iain Buclaw  <ibuclaw@gdcproject.org>
161
162         PR d/99337
163         * dmd/MERGE: Merge upstream dmd a3c9bf422.
164
165 2021-02-13  Iain Buclaw  <ibuclaw@gdcproject.org>
166
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.
174
175 2021-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
176
177         * d-tree.h (DEF_D_INTRINSIC): Don't insert INTRINSIC_ into the
178         intrinsic code name.
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.
183
184 2021-02-04  Iain Buclaw  <ibuclaw@gdcproject.org>
185
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.
218
219 2021-02-02  Iain Buclaw  <ibuclaw@gdcproject.org>
220
221         PR d/98921
222         * dmd/MERGE: Merge upstream dmd 5e2a81d9c.
223
224 2021-01-30  Iain Buclaw  <ibuclaw@gdcproject.org>
225
226         * typeinfo.cc (TypeInfoVisitor::visit (TypeInfoDeclaration *)): Don't
227         layout m_arg1 and m_arg2 fields.
228
229 2021-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
230
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.
236
237 2021-01-21  Iain Buclaw  <ibuclaw@gdcproject.org>
238
239         * dmd/MERGE: Merge upstream dmd 3a7ebef73.
240
241 2021-01-11  Iain Buclaw  <ibuclaw@gdcproject.org>
242
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.
250
251 2021-01-09  Iain Buclaw  <ibuclaw@gdcproject.org>
252
253         * dmd/MERGE: Merge upstream dmd cb1106ad5.
254
255 2021-01-09  Iain Buclaw  <ibuclaw@gdcproject.org>
256
257         * dmd/MERGE: Merge upstream dmd 9bba772fa.
258
259 2021-01-09  Iain Buclaw  <ibuclaw@gdcproject.org>
260
261         * dmd/MERGE: Merge upstream dmd e598f69c0.
262
263 2021-01-07  Iain Buclaw  <ibuclaw@gdcproject.org>
264
265         * dmd/MERGE: Merge upstream dmd 9038e64c5.
266         * d-builtins.cc (build_frontend_type): Update call to
267         Parameter::create.
268
269 2021-01-05  Iain Buclaw  <ibuclaw@gdcproject.org>
270
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.
285
286 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
287
288         * gdc.texi: Bump @copyrights-d year.
289
290 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
291
292         * ChangeLog-2020: Rotate ChangeLog.  New file.
293
294 \f
295 Copyright (C) 2021 Free Software Foundation, Inc.
296
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.