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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Hans-Peter Nilsson <h...@gcc.gnu.org>:

https://gcc.gnu.org/g:8a4e57e6bc63eba78e5f3b0090e58d48a95dcbc7

commit r15-6463-g8a4e57e6bc63eba78e5f3b0090e58d48a95dcbc7
Author: Hans-Peter Nilsson <h...@bitrange.com>
Date:   Sun Dec 29 08:14:14 2024 +0100

    MMIX: Correct handling of C23 (...) functions, PR117618

    This commit fixes a MMIX C23 (...)-handling bug; failing
    gcc.dg/c23-stdarg-[46789].c execution tests.   But, this
    isn't about a missing "|| arg.type != NULL_TREE" in the
    PORT_setup_incoming_varargs function like most other
    PR114175 port bugs exposed by the gcc.dg/c23-stdarg-6.c
    .. -9.c tests; the MMIX port passes struct-return-values in
    a register.  But, the bug is somewhat similar.

    This bug seems like it was added already in
    r13-3549-g4fe34cdcc80ac2, by incorrectly handling
    TYPE_NO_NAMED_ARGS_STDARG_P-functions ((...)-functions);
    counting them as having one parameter instead of none.  That
    "+ 1" below is a kind-of hidden function_arg_advance call,
    which shouldn't happen for (...)-functions.

            PR target/117618
            * config/mmix/mmix.cc (mmix_setup_incoming_varargs):
            Correct handling of C23 (...)-functions.

Reply via email to