]> git.ipfire.org Git - thirdparty/gcc.git/commit
nvptx: Add effective-target 'nvptx_softstack', use for effective-target 'alloca'
authorThomas Schwinge <tschwinge@baylibre.com>
Mon, 16 Dec 2024 10:48:11 +0000 (11:48 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Wed, 8 Jan 2025 22:16:35 +0000 (23:16 +0100)
commit975638b2d76ce6f26965ac3160c5af8029e16c29
treebf10c33b6df04f90ab0e73ddf58a7d2511000a3a
parente5180fbcbcc356c71154413588288cbd30e5198d
nvptx: Add effective-target 'nvptx_softstack', use for effective-target 'alloca'

..., and thereby making the check for effective-target 'alloca' more explicit.
As of commit 5012919d0bd344ac1888e8e531072f0ccbe24d2c (Subversion r242503)
"nvptx backend prerequisites for OpenMP offloading", the check for
effective-target 'alloca' did "use a compile test"; let's make this more
explicit: supported for '-msoft-stack', not supported otherwise.

gcc/testsuite/
* lib/target-supports.exp
(check_effective_target_nvptx_softstack): New.
(check_effective_target_alloca) [nvptx]: Use it.
gcc/
* doc/sourcebuild.texi (Effective-Target Keywords): Document
'nvptx_softstack'.
gcc/doc/sourcebuild.texi
gcc/testsuite/lib/target-supports.exp