Skip to content

Commit

Permalink
Merge of b0f7029
Browse files Browse the repository at this point in the history
  • Loading branch information
nstester committed Oct 29, 2023
2 parents 70fb5a0 + b0f7029 commit 330a689
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/DATESTAMP
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20231028
20231029
28 changes: 28 additions & 0 deletions gcc/d/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
2023-10-28 Iain Buclaw <[email protected]>

PR d/112270
* d-builtins.cc (d_build_d_type_nodes): Initialize d_bool_false_node,
d_bool_true_node.
* d-codegen.cc (build_array_struct_comparison): Use d_bool_false_node
instead of boolean_false_node.
* d-convert.cc (d_truthvalue_conversion): Use d_bool_false_node and
d_bool_true_node instead of boolean_false_node and boolean_true_node.
* d-tree.h (enum d_tree_index): Add DTI_BOOL_FALSE and DTI_BOOL_TRUE.
(d_bool_false_node): New macro.
(d_bool_true_node): New macro.
* modules.cc (build_dso_cdtor_fn): Use d_bool_false_node and
d_bool_true_node instead of boolean_false_node and boolean_true_node.
(register_moduleinfo): Use d_bool_type instead of boolean_type_node.

2023-10-28 Iain Buclaw <[email protected]>

* d-codegen.cc (call_side_effect_free_p): New function.
* d-tree.h (CALL_EXPR_WARN_IF_UNUSED): New macro.
(call_side_effect_free_p): New prototype.
* expr.cc (ExprVisitor::visit (CallExp *)): Set
CALL_EXPR_WARN_IF_UNUSED on matched call expressions.
(ExprVisitor::visit (NewExp *)): Don't dereference the result of an
allocation call here.
* toir.cc (add_stmt): Emit warning when call expression added to
statement list without being used.

2023-10-22 Iain Buclaw <[email protected]>

* dmd/MERGE: Merge upstream dmd f4be7f6f7b.
Expand Down
9 changes: 9 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2023-10-28 Iain Buclaw <[email protected]>

PR d/112270
* gdc.dg/pr112270.d: New test.

2023-10-28 Iain Buclaw <[email protected]>

* gdc.dg/Wunused_value.d: New test.

2023-10-27 Patrick O'Neill <[email protected]>

* gcc.target/riscv/stack_save_restore_2.c: Accept any number
Expand Down

0 comments on commit 330a689

Please sign in to comment.