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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Karl Meakin <[email protected]>:

https://gcc.gnu.org/g:9bfc05c8a91f3f89d579afa3a79cce1c0da34184

commit r17-2398-g9bfc05c8a91f3f89d579afa3a79cce1c0da34184
Author: Karl Meakin <[email protected]>
Date:   Wed Jul 1 12:16:40 2026 +0000

    aarch64: Relax type-checking assert [PR126064]

    Comparing `arg_type` and `TREE_TYPE (b)` by pointer address causes an
    assertion failure when one type is a `typedef` for the other (eg
    `uint32x2_t` and `__Uint32x2_t`. Fix by using a more relaxed comparison.

    gcc/ChangeLog:

            PR target/126064
            * config/aarch64/aarch64-neon-builtins-base.cc: Compare
            `arg_type` and `TREE_TYPE (b)` using `types_compatible_p` rather
            than comparing their pointer addresses.

    gcc/testsuite/ChangeLog:

            PR target/126064
            * gcc.target/aarch64/pr126064.c: New test.

Reply via email to