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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Arsen Arsenovic <[email protected]>:

https://gcc.gnu.org/g:1147e8696a43810c1a54aca7c73a5c0c92d9389b

commit r16-8001-g1147e8696a43810c1a54aca7c73a5c0c92d9389b
Author: Arsen ArsenoviÄ <[email protected]>
Date:   Tue Feb 24 10:11:27 2026 +0000

    gcc/gcn: fix address space conversion between __flat and default [PR124044]

    The default address space in the GCN backend is distinct from the
    flat/global address space that it normally coincides with so that it can
    be changed.  But, as a result, address space conversion must be aware of
    this difference and handle the default address space explicitly.

    Currently, it fails to do so, and so it reaches a gcc_unreachable.

    This patch fixes that by resolving the default address space into
    whatever address space it effectively is.

    gcc/ChangeLog:

            PR target/124044
            * config/gcn/gcn.cc (gcn_addr_space_resolve_default): New
            function.  Converts from ADDR_SPACE_DEFAULT to
            DEFAULT_ADDR_SPACE.
            (gcn_addr_space_convert): Resolve from_type and to_type address
            spaces.

    gcc/testsuite/ChangeLog:

            * gcc.target/gcn/pr124044.c: New test.

Reply via email to