diff --git a/libgfortran/config/t-nvptx b/libgfortran/config/t-nvptx new file mode 100644 index 00000000000..88bd6eee982 --- /dev/null +++ b/libgfortran/config/t-nvptx @@ -0,0 +1,2 @@ +# Re 'alloca' usage in '../caf/single.c': +AM_CFLAGS += -mfake-ptx-alloca diff --git a/libgfortran/configure.host b/libgfortran/configure.host index 291188d19c2..9abd40f511a 100644 --- a/libgfortran/configure.host +++ b/libgfortran/configure.host @@ -91,6 +91,10 @@ case "${target}" in tmake_file="t-aix" ;; + nvptx-*-none) + tmake_file="$tmake_file t-nvptx" + ;; + *) ;;