https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112270

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Iain Buclaw
<ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:ab5c18d76497d52ade3c04c412060bc2d718d7ab

commit r13-7990-gab5c18d76497d52ade3c04c412060bc2d718d7ab
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Sun Oct 29 00:27:49 2023 +0200

    d: Fix ICE: in verify_gimple_in_seq on powerpc-darwin9 [PR112270]

    This ICE was seen during stage2 on powerpc-darwin9 only.  There were
    still some uses of GCC's boolean_type_node in the D front-end, which
    caused a type mismatch to trigger as D bool size is fixed to 1 byte on
    all targets.

    So two new nodes have been introduced - d_bool_false_node and
    d_bool_true_node - which have replaced all remaining uses of
    boolean_false_node and boolean_true_node respectively.

            PR d/112270

    gcc/d/ChangeLog:

            * 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.

    gcc/testsuite/ChangeLog:

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

    (cherry picked from commit 10f1489dcb3bd9adccc88898bc12f53398fa3583)

Reply via email to