Debian Codegraph @

gcc/d/ChangeLog

raw
1 2026-06-12 Release Manager
2
3 * GCC 15.3.0 released.
4
5 2026-05-05 Iain Buclaw <[email protected]>
6
7 Backported from master:
8 2026-05-05 Iain Buclaw <[email protected]>
9
10 PR d/125089
11 * types.cc (finish_aggregate_mode): Explicitly set TYPE_MODE of
12 non-POD types here.
13 (finish_aggregate_type): Propagate TREE_ADDRESSABLE to all variants.
14 (TypeVisitor::visit (TypeStruct *)): Set TREE_ADDRESSABLE before
15 visiting struct members.
16
17 2026-04-20 Iain Buclaw <[email protected]>
18
19 Backported from master:
20 2026-04-20 Iain Buclaw <[email protected]>
21
22 PR d/123411
23 * types.cc (TypeVisitor::visit (TypeEnum *)): Only call layout_type on
24 the TYPE_MAIN_VARIANT of the enum.
25
26 2026-02-08 Iain Buclaw <[email protected]>
27
28 Backported from master:
29 2026-02-08 Iain Buclaw <[email protected]>
30
31 PR d/124026
32 * expr.cc (ExprVisitor::visit (FuncExp *)): Always convert function
33 literal to a delegate if the expression expects one.
34
35 2026-01-30 Iain Buclaw <[email protected]>
36
37 Backported from master:
38 2026-01-30 Iain Buclaw <[email protected]>
39
40 PR d/123264
41 * types.cc (finish_aggregate_type): Propagate struct TYPE_NAME to all
42 TYPE_NEXT_VARIANT types.
43
44 2026-01-29 Iain Buclaw <[email protected]>
45
46 Backported from master:
47 2026-01-29 Iain Buclaw <[email protected]>
48
49 PR d/123407
50 * decl.cc (get_symbol_decl): Handle declarations with matching
51 assembler names, but different TREE_CODE.
52
53 2026-01-29 Iain Buclaw <[email protected]>
54
55 Backported from master:
56 2026-01-29 Iain Buclaw <[email protected]>
57
58 PR d/123046
59 * d-codegen.cc (build_address): Return `null' when generating the
60 address of a `noreturn' declaration.
61 (d_build_call): Compare TYPE_MAIN_VARIANT of type with `noreturn'.
62 * decl.cc (get_fndecl_arguments): Likewise.
63 * types.cc (finish_aggregate_mode): Likewise.
64 (TypeVisitor::visit (TypeFunction *)): Likewise.
65
66 2026-01-29 Iain Buclaw <[email protected]>
67
68 Backported from master:
69 2026-01-29 Iain Buclaw <[email protected]>
70
71 PR d/123349
72 * d-spec.cc (lang_specific_driver): Use xstrdup to copy -defaultlib
73 and -debuglib argument, and unconditionally free the old value.
74
75 2026-01-28 Iain Buclaw <[email protected]>
76
77 Backported from master:
78 2026-01-28 Iain Buclaw <[email protected]>
79
80 PR d/123419
81 * expr.cc (ExprVisitor::visit (VarExp *)): Adjust assertion.
82
83 2026-01-28 Iain Buclaw <[email protected]>
84
85 Backported from master:
86 2026-01-28 Iain Buclaw <[email protected]>
87
88 PR d/123798
89 * types.cc (insert_aggregate_bitfield): Set DECL_NONADDRESSABLE_P and
90 DECL_PADDING_P on bit-field decls.
91 (finish_aggregate_type): Pass the aligned bit offset to layout_decl.
92
93 2026-01-28 Iain Buclaw <[email protected]>
94
95 Backported from master:
96 2026-01-28 Iain Buclaw <[email protected]>
97
98 PR d/121477
99 * d-codegen.cc (d_mark_addressable): Give an error if taking the
100 address of a DECL_BIT_FIELD.
101
102 2026-01-28 Iain Buclaw <[email protected]>
103
104 Backported from master:
105 2026-01-28 Iain Buclaw <[email protected]>
106
107 PR d/123422
108 * expr.cc (ExprVisitor::visit (ArrayLiteralExp *)): Don't add
109 TARGET_EXPR around constructor.
110 * toir.cc (IRVisitor::visit (ReturnStatement *)): Recognize more
111 patterns for return value optimization.
112
113 2026-01-27 Iain Buclaw <[email protected]>
114
115 Backported from master:
116 2026-01-27 Iain Buclaw <[email protected]>
117
118 PR d/120096
119 * expr.cc (ExprVisitor::visit (ArrayLiteralExp *)): Include saved side
120 effects in expression result.
121
122 2026-01-27 Iain Buclaw <[email protected]>
123
124 Backported from master:
125 2026-01-27 Iain Buclaw <[email protected]>
126
127 PR d/122817
128 * d-lang.cc (d_parse_file): Set module filename location after
129 creation.
130
131 2025-08-08 Release Manager
132
133 * GCC 15.2.0 released.
134
135 2025-04-25 Release Manager
136
137 * GCC 15.1.0 released.
138
139 2025-04-17 Iain Buclaw <[email protected]>
140
141 * dmd/MERGE: Merge upstream dmd 956e73d64e.
142
143 2025-04-15 Iain Buclaw <[email protected]>
144
145 PR d/119826
146 * types.cc (TypeVisitor::visit (TypeEnum *)): Propagate flags of main
147 enum types to all forward-referenced variants.
148
149 2025-04-15 Iain Buclaw <[email protected]>
150
151 PR d/119799
152 * decl.cc (DeclVisitor::visit (VarDeclaration *)): Check front-end
153 type size before building the VAR_DECL. Allow C symbols to have a
154 size of `0'.
155
156 2025-04-15 Iain Buclaw <[email protected]>
157
158 PR d/119817
159 * imports.cc (ImportVisitor::visit (OverloadSet *)): Don't push
160 NULL_TREE to vector of import symbols.
161
162 2025-04-12 Iain Buclaw <[email protected]>
163
164 PR d/109023
165 * d-compiler.cc: Include dmd/errors.h.
166 (Compiler::onImport): Implement.
167 * d-lang.cc (d_handle_option): Handle -finclude-imports.
168 (d_parse_file): Run semantic on included imports.
169 * gdc.texi: Document -finclude-imports.
170 * lang.opt: Add finclude-imports.
171 * lang.opt.urls: Regenerate.
172
173 2025-04-12 Iain Buclaw <[email protected]>
174
175 PR d/119758
176 * d-lang.cc (d_parse_file): Use endswith in test for -fonly= argument.
177 * d-spec.cc (lang_specific_driver): Rework -fonly= and pass all input
178 files to the front-end compiler when the option is seen.
179
180 2025-04-11 Iain Buclaw <[email protected]>
181
182 * dmd/MERGE: Merge upstream dmd 1b34fea478.
183
184 2025-04-09 Iain Buclaw <[email protected]>
185
186 PR d/118309
187 * modules.cc: Include debug.h
188 (d_finish_compilation): Call debug_hooks->type_decl on all TYPE_DECLs.
189 * types.cc: Remove toplev.h include.
190 (finish_aggregate_type): Don't call rest_of_type_compilation or
191 rest_of_decl_compilation on type.
192 (TypeVisitor::visit (TypeEnum *)): Likewise.
193
194 2025-04-09 Iain Buclaw <[email protected]>
195
196 PR d/117832
197 * d-tree.h (build_padded_constructor): New prototype.
198 * d-codegen.cc (build_padded_constructor): New function.
199 (d_array_value): Call it.
200 (build_memset_call): Likewise.
201 (build_struct_literal): Likewise.
202 (underlying_complex_expr): Likewise.
203 (build_array_from_val): Likewise.
204 (build_array_from_exprs): Likewise.
205 (d_build_call): Likewise.
206 (get_frame_for_symbol): Likewise.
207 * d-convert.cc (convert_for_rvalue): Likewise.
208 (convert_for_assignment): Likewise.
209 * decl.cc (class DeclVisitor): Likewise.
210 * expr.cc (class ExprVisitor): Likewise.
211 * modules.cc (layout_moduleinfo): Likewise.
212 * typeinfo.cc (class TypeInfoVisitor): Likewise.
213
214 2025-04-08 Iain Buclaw <[email protected]>
215
216 * dmd/MERGE: Merge upstream dmd 51816cd01d.
217
218 2025-04-06 Sandra Loosemore <[email protected]>
219
220 * lang.opt.urls: Regenerate.
221
222 2025-04-02 Iain Buclaw <[email protected]>
223
224 * dmd/MERGE: Merge upstream dmd ed17b3e95d.
225
226 2025-03-31 Iain Buclaw <[email protected]>
227
228 * dmd/MERGE: Merge upstream dmd c6863be720.
229 * dmd/VERSION: Bump version to v2.111.0.
230
231 2025-03-31 Iain Buclaw <[email protected]>
232
233 PR d/117002
234 * decl.cc (aggregate_initializer_decl): Set explicit decl alignment of
235 class instance.
236 * expr.cc (ExprVisitor::visit (NewExp *)): Likewise.
237 * types.cc (TypeVisitor::visit (TypeClass *)): Mark the record type of
238 classes as packed.
239
240 2025-03-30 Sandra Loosemore <[email protected]>
241
242 * lang.opt.urls: Regenerate.
243
244 2025-03-26 Iain Buclaw <[email protected]>
245
246 * dmd/MERGE: Merge upstream dmd 02a64d2e13.
247
248 2025-03-23 Iain Buclaw <[email protected]>
249
250 PR d/117621
251 * types.cc (finish_aggregate_type): Propagate TYPE_PACKED to variants.
252
253 2025-03-22 Iain Buclaw <[email protected]>
254
255 * dmd/MERGE: Merge upstream dmd 032e24446b.
256 * dmd/VERSION: Bump version to v2.111.0-rc.1.
257
258 2025-03-22 Iain Buclaw <[email protected]>
259
260 * dmd/MERGE: Merge upstream dmd 9d2f034398.
261
262 2025-03-22 Iain Buclaw <[email protected]>
263
264 * dmd/MERGE: Merge upstream dmd 94950cae58.
265 * d-lang.cc (d_handle_option): Add case for CppStdRevisionCpp23.
266 * gdc.texi: Document -fextern-std=c++23.
267 * lang.opt (fextern-std=): Add c++23.
268
269 2025-03-22 Iain Buclaw <[email protected]>
270
271 * dmd/MERGE: Merge upstream dmd 8db14cf846.
272
273 2025-03-22 Iain Buclaw <[email protected]>
274
275 * runtime.def (INVARIANT): Update signature of run-time function.
276
277 2025-03-20 Iain Buclaw <[email protected]>
278
279 PR d/118545
280 * d-lang.cc (d_handle_option): Adjust quoted options.
281
282 2025-03-18 Iain Buclaw <[email protected]>
283
284 * dmd/MERGE: Merge upstream dmd fde0f8c40a.
285
286 2025-03-18 Iain Buclaw <[email protected]>
287
288 * dmd/MERGE: Merge upstream dmd 51be8bb729.
289
290 2025-03-16 Iain Buclaw <[email protected]>
291
292 * dmd/MERGE: Merge upstream dmd 603225372b.
293 * dmd/VERSION: Bump version to v2.111.0-beta.1.
294 * d-builtins.cc (build_frontend_type): Update for new front-end
295 interface.
296 * decl.cc (Class DeclVisitor): Likewise.
297 (maybe_build_decl_tree): Likewise.
298 (get_vtable_decl): Likewise.
299 (layout_class_initializer): Likewise.
300 * expr.cc (class ExprVisitor): Likewise.
301 (ExprVisitor::visit (NewExp *)): Implement placement new for class,
302 struct, and pointer types.
303 * modules.cc (get_internal_fn): Update for new front-end interface.
304
305 2025-03-16 Iain Buclaw <[email protected]>
306
307 * dmd/MERGE: Merge upstream dmd 53a1cc8d13.
308 * d-tree.h (create_typeinfo): Change second parameter to Scope *.
309 (speculative_type_p): Remove prototype.
310 * d-frontend.cc (getTypeInfoType): Adjust.
311 * decl.cc: Include dmd/typinf.h.
312 (DeclVisitor::visit (TypeInfoDeclaration *)): Update for new front-end
313 interface.
314 * typeinfo.cc (create_typeinfo): Likewise.
315 (class SpeculativeTypeVisitor): Remove class.
316 (speculative_type_p): Remove function.
317
318 2025-03-16 Iain Buclaw <[email protected]>
319
320 * dmd/MERGE: Merge upstream dmd ffbad272b6.
321 * d-tree.h (make_location_t): Add overload taking a const SourceLoc &.
322 * d-codegen.cc (make_location_t): Likewise.
323 * d-diagnostic.cc (d_diagnostic_report_diagnostic): Change first
324 parameter type to const SourceLoc &.
325 (verrorReport): Update for new front-end interface.
326 (verrorReportSupplemental): Likewise.
327 * d-frontend.cc (eval_builtin): Likewise.
328 (getTypeInfoType): Likewise.
329 * d-lang.cc (d_parse_file): Likewise.
330 * d-target.cc (Target::va_listType): Likewise.
331 (Target::getTargetInfo): Likewise.
332 * decl.cc (build_decl_tree): Likewise.
333 * imports.cc (ImportVisitor::visit (Module *)): Likewise.
334 * modules.cc (get_internal_fn): Likewise.
335
336 2025-03-15 Iain Buclaw <[email protected]>
337
338 * dmd/MERGE: Merge upstream dmd d29e3eca45.
339 * d-codegen.cc (can_elide_copy_p): Update for new front-end interface.
340 * d-lang.cc (d_handle_option): Likewise.
341 * expr.cc (class ExprVisitor): Likewise.
342
343 2025-03-15 Iain Buclaw <[email protected]>
344
345 * dmd/MERGE: Merge upstream b7e3b3b617.
346
347 2025-03-11 Iain Buclaw <[email protected]>
348
349 PR d/119139
350 * decl.cc (get_symbol_decl): Don't set TREE_READONLY for __result
351 declarations.
352
353 2025-02-28 Iain Buclaw <[email protected]>
354
355 PR d/116961
356 * d-codegen.cc (build_float_cst): Change new_value type from real_t to
357 real_value.
358 * d-ctfloat.cc (CTFloat::fabs): Default initialize the return value.
359 (CTFloat::ldexp): Likewise.
360 (CTFloat::parse): Likewise.
361 * d-longdouble.cc (longdouble::add): Likewise.
362 (longdouble::sub): Likewise.
363 (longdouble::mul): Likewise.
364 (longdouble::div): Likewise.
365 (longdouble::mod): Likewise.
366 (longdouble::neg): Likewise.
367 * d-port.cc (Port::isFloat32LiteralOutOfRange): Likewise.
368 (Port::isFloat64LiteralOutOfRange): Likewise.
369
370 2025-02-25 Iain Buclaw <[email protected]>
371
372 PR d/118654
373 * implement-d.texi: Document CET version and traits key.
374
375 2025-02-25 Iain Buclaw <[email protected]>
376
377 * Make-lang.in (check_gdc_parallelize): Increase to 128.
378
379 2025-01-29 Arsen Arsenović <[email protected]>
380 Jakub Jelinek <[email protected]>
381
382 PR d/118477
383 * Make-lang.in (DCOMPILE, DPOSTCOMPILE): Use $(basename $(@F))
384 instead of $(*F).
385
386 2025-01-22 Arsen Arsenović <[email protected]>
387
388 * lang-specs.h: Replace %{nostdinc*} with %{nostdinc}.
389
390 2025-01-20 Iain Buclaw <[email protected]>
391
392 PR d/114434
393 * expr.cc (ExprVisitor::visit (PtrExp *)): Get the offset as a
394 dinteger_t rather than a size_t.
395 (ExprVisitor::visit (SymOffExp *)): Likewise.
396
397 2025-01-18 Iain Buclaw <[email protected]>
398
399 * dmd/MERGE: Merge upstream dmd d115713410.
400
401 2025-01-16 Iain Buclaw <[email protected]>
402
403 PR d/115249
404 * typeinfo.cc (create_tinfo_types): Update internal Typenfo
405 representation.
406 (TypeInfoVisitor::visit (TypeInfoClassDeclaration *)): Likewise.
407
408 2025-01-14 Iain Buclaw <[email protected]>
409
410 PR d/118438
411 PR d/118448
412 PR d/118449
413 * dmd/MERGE: Merge upstream dmd d6f693b46a.
414 * d-incpath.cc (add_import_paths): Update for new front-end interface.
415
416 2025-01-12 Iain Buclaw <[email protected]>
417
418 * dmd/MERGE: Merge upstream dmd c7902293d7.
419 * dmd/VERSION: Bump version to v2.110.0-rc.1.
420
421 2025-01-12 Iain Buclaw <[email protected]>
422
423 * dmd/MERGE: Merge upstream dmd c57da0cf59.
424 * d-codegen.cc (can_elide_copy_p): New.
425 (d_build_call): Use it.
426 * d-lang.cc (d_post_options): Update for new front-end interface.
427
428 2025-01-11 Iain Buclaw <[email protected]>
429
430 * dmd/MERGE: Merge upstream dmd 82a5d2a7c4.
431 * d-lang.cc (d_handle_option): Handle new option `-fpreview=safer'.
432 * expr.cc (ExprVisitor::NewExp): Remove gcc_unreachable for the
433 generation of `_d_newThrowable'.
434 * lang.opt: Add -fpreview=safer.
435
436 2025-01-11 Iain Buclaw <[email protected]>
437
438 * dmd/MERGE: Merge upstream dmd 2b89c2909d.
439 * Make-lang.in (D_FRONTEND_OBJS): Rename d/basicmangle.o to
440 d/mangle-basic.o, d/cppmangle.o to d/mangle-cpp.o, and d/dmangle.o to
441 d/mangle-package.o.
442 (d/mangle-%.o): New rule.
443 * d-builtins.cc (maybe_set_builtin_1): Update for new front-end
444 interface.
445 * d-diagnostic.cc (verrorReport): Likewise.
446 (verrorReportSupplemental): Likewise.
447 * d-frontend.cc (getTypeInfoType): Likewise.
448 * d-lang.cc (d_init_options): Likewise.
449 (d_handle_option): Likewise.
450 (d_post_options): Likewise.
451 * d-target.cc (TargetC::contributesToAggregateAlignment): New.
452 * d-tree.h (create_typeinfo): Adjust prototype.
453 * decl.cc (layout_struct_initializer): Update for new front-end
454 interface.
455 * typeinfo.cc (create_typeinfo): Remove generate parameter.
456 * types.cc (layout_aggregate_members): Update for new front-end
457 interface.
458
459 2025-01-10 Iain Buclaw <[email protected]>
460
461 * dmd/MERGE: Merge upstream dmd 4ccb01fde5.
462 * Make-lang.in (D_FRONTEND_OBJS): Rename d/foreachvar.o to
463 d/visitor-foreachvar.o, d/visitor.o to d/visitor-package.o, and
464 d/statement_rewrite_walker.o to d/visitor-statement_rewrite_walker.o.
465 (D_FRONTEND_OBJS): Rename
466 d/{parsetime,permissive,postorder,transitive}visitor.o to
467 d/visitor-{parsetime,permissive,postorder,transitive}.o.
468 (D_FRONTEND_OBJS): Remove d/sapply.o.
469 (d.tags): Add dmd/common/*.h.
470 (d/visitor-%.o:): New rule.
471 * d-codegen.cc (get_frameinfo): Update for new front-end interface.
472
473 2025-01-10 Iain Buclaw <[email protected]>
474
475 * dmd/MERGE: Merge upstream dmd 6884b433d2.
476 * d-builtins.cc (build_frontend_type): Update for new front-end
477 interface.
478 (d_build_builtins_module): Likewise.
479 (matches_builtin_type): Likewise.
480 (covariant_with_builtin_type_p): Likewise.
481 * d-codegen.cc (lower_struct_comparison): Likewise.
482 (call_side_effect_free_p): Likewise.
483 * d-compiler.cc (Compiler::paintAsType): Likewise.
484 * d-convert.cc (convert_expr): Likewise.
485 (convert_for_assignment): Likewise.
486 * d-target.cc (Target::isVectorTypeSupported): Likewise.
487 (Target::isVectorOpSupported): Likewise.
488 (Target::isReturnOnStack): Likewise.
489 * decl.cc (get_symbol_decl): Likewise.
490 * expr.cc (build_return_dtor): Likewise.
491 * imports.cc (class ImportVisitor): Likewise.
492 * toir.cc (class IRVisitor): Likewise.
493 * types.cc (class TypeVisitor): Likewise.
494
495 2025-01-10 Iain Buclaw <[email protected]>
496
497 * dmd/MERGE: Merge upstream dmd 34875cd6e1.
498 * dmd/VERSION: Bump version to v2.110.0-beta.1.
499 * Make-lang.in (D_FRONTEND_OBJS): Add d/deps.o, d/timetrace.o.
500 * decl.cc (class DeclVisitor): Update for new front-end interface.
501 * expr.cc (class ExprVisitor): Likewise
502 * typeinfo.cc (check_typeinfo_type): Likewise.
503
504 2025-01-05 Iain Buclaw <[email protected]>
505
506 * dmd/MERGE: Merge upstream dmd 66b93fc24a.
507 * dmd/VERSION: Bump version to v2.109.1.
508 * d-builtins.cc (build_frontend_type): Update for new front-end
509 interface.
510 (matches_builtin_type): Likewise.
511 * d-codegen.cc (identity_compare_p): Likewise.
512 (call_side_effect_free_p): Likewise.
513 * d-convert.cc (convert_expr): Likewise.
514 (check_valist_conversion): Likewise.
515 * d-lang.cc (d_types_compatible_p): Likewise.
516 * d-target.cc (Target::isVectorTypeSupported): Likewise.
517 (Target::isReturnOnStack): Likewise.
518 (Target::preferPassByRef): Likewise.
519 * decl.cc (class DeclVisitor): Likewise.
520 * expr.cc (class ExprVisitor): Likewise.
521 * typeinfo.cc (class TypeInfoVisitor): Likewise.
522 * types.cc (class TypeVisitor): Likewise.
523
524 2025-01-05 Iain Buclaw <[email protected]>
525
526 * decl.cc (DeclVisitor::finish_vtable): Update for new front-end
527 interface.
528 * dmd/MERGE: Merge upstream dmd 07bc5b9b3c.
529 * dmd/VERSION: Bump version to v2.109.0.
530
531 2025-01-05 Iain Buclaw <[email protected]>
532
533 * Make-lang.in (D_FRONTEND_OBJS): Add d/attribsem.o,
534 d/common-charactertables.o, d/common-identifiertables.o.
535 * d-attribs.cc (apply_user_attributes): Update for new front-end
536 interface.
537 * d-builtins.cc (d_init_versions): Predefine CppRuntime_GNU.
538 * d-incpath.cc (add_globalpaths): Update for new front-end interface.
539 (add_filepaths): Likewise.
540 (add_import_paths): Likewise.
541 * d-lang.cc (d_post_options): Likewise.
542 * dmd/MERGE: Merge upstream dmd c11e1d1708.
543 * dmd/VERSION: Bump version to v2.108.1.
544
545 2025-01-02 Jakub Jelinek <[email protected]>
546
547 * gdc.texi: Bump @copyrights-d year.
548
549
550 Copyright (C) 2025 Free Software Foundation, Inc.
551
552 Copying and distribution of this file, with or without modification,
553 are permitted in any medium without royalty provided the copyright
554 notice and this notice are preserved.