https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105019
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> --- To trigger: ... diff --git a/gcc/config/nvptx/nvptx.cc b/gcc/config/nvptx/nvptx.cc index 87efc23bd96..8bf9ea90a77 100644 --- a/gcc/config/nvptx/nvptx.cc +++ b/gcc/config/nvptx/nvptx.cc @@ -245,6 +245,9 @@ default_ptx_version_option (void) warp convergence. */ res = MAX (res, PTX_VERSION_6_0); + /* Pick at least 6.3, to enable using malias. */ + res = MAX (res, PTX_VERSION_6_3); + /* Verify that we pick a version that supports the sm. */ gcc_assert (first <= res); return res; diff --git a/gcc/config/nvptx/nvptx.opt b/gcc/config/nvptx/nvptx.opt index 11288d1a8ee..a4aece80682 100644 --- a/gcc/config/nvptx/nvptx.opt +++ b/gcc/config/nvptx/nvptx.opt @@ -87,7 +87,7 @@ mptx-comment Target Var(nvptx_comment) Init(1) Undocumented malias- -Target Var(nvptx_alias) Init(0) Undocumented +Target Var(nvptx_alias) Init(1) Undocumented mexperimental Target Var(nvptx_experimental) Init(0) Undocumented ... rebuild gcc, run libgomp tests, and: ... $ grep -c "Internal error: reference to deleted section" libgomp.log 637 ... For instance: ... Execution timeout is: 300 spawn [open ...]^M libgomp: Link error log fatal : Internal error: reference to deleted section libgomp: cuLinkComplete error: unknown error libgomp: Cannot map target functions or variables (expected 2, have 4294967295) FAIL: libgomp.c/../libgomp.c-c++-common/declare_target-1.c execution test ...