nvptx: Support '-mfake-ptx-alloca': defer failure to run-time 'alloca' usage (was: [PUSHED] nvptx: Support '-mfake-ptx-alloca')

2025-04-07 Thread Thomas Schwinge
Hi! On 2025-02-27T21:51:11+0100, I wrote: > With '-mfake-ptx-alloca' enabled, the user-visible behavior changes only > for configurations where PTX 'alloca' is not available. Rather than a > compile-time 'sorry, unimplemented: dynamic stack allocation not supported' > in presence of dynamic stack

[PUSHED] nvptx: Support '-mfake-ptx-alloca'

2025-02-27 Thread Thomas Schwinge
With '-mfake-ptx-alloca' enabled, the user-visible behavior changes only for configurations where PTX 'alloca' is not available. Rather than a compile-time 'sorry, unimplemented: dynamic stack allocation not supported' in presence of dynamic stack allocation, compilation and assembly then succeeds