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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |testsuite-fail
     Ever confirmed|0                           |1
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=104957
   Last reconfirmed|                            |2025-08-13
                 CC|                            |prathamesh3492 at gcc dot 
gnu.org,
                   |                            |tschwinge at gcc dot gnu.org

--- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #4)
> [...]
> There's a function __f:
> [...]
> with alias f:
> [...]
> called from g:
> [...]
> However, g is unused.

In one of my development trees, I have such a test case
('gcc.target/nvptx/alias-pr105019-1.c'), which I configured:

    { dg-xfail-run-if {Nvidia bug} { nvptx_runtime_alias_ptx } }
    If there's a PTX '.alias' that's used from a function that's unused, we
get:
        fatal   : Internal error: reference to deleted section
        nvptx-run: cuLinkComplete failed: unknown error (CUDA_ERROR_UNKNOWN,
999)
    ... at run time.  */

I recently upgraded my laptop with Nvidia Quadro P1000 GPU from Nvidia Driver
545.29.06 to 575.64.03, and now get:

    [-XFAIL:-]{+XPASS:+} gcc.target/nvptx/alias-pr105019-1.c execution test

I understand this to mean that the issue cited above is now fixed.


But: the 'gcc.target/nvptx/alias-to-alias-1.c' test case that we'd added for
PR104957 commit r15-3816-gf5ee372b012594830f6d5f7f4b7e01bae810b1da "nvptx:
Partial support for aliases to aliases" regressed:

    [-PASS:-]{+FAIL:+} gcc.target/nvptx/alias-to-alias-1.c execution test

... due to:

    spawn -ignore SIGHUP [...]/nvptx-none-run ./alias-to-alias-1.exe
    fatal   : Internal error: reference to deleted symbol
    nvptx-run: cuLinkComplete failed: unknown error (CUDA_ERROR_UNKNOWN, 999)

That's because the 'bar' alias is unused.  (But confusingly, that wasn't a
problem with the old Nvidia Driver...)

Reply via email to