libstdc++, nvptx: Remove machinery to inject per-file flags (was: GCN, nvptx: Allow for "hosted" libstdc++ build)
Thomas Schwinge
tschwinge@baylibre.com
Thu Apr 3 21:37:22 GMT 2025
Hi!
On 2025-03-14T11:39:20+0100, I wrote:
> Subject: [PATCH] GCN, nvptx: Allow for "hosted" libstdc++ build
>
> We need [...], and
> for nvptx twiddle some more knobs.
> --- /dev/null
> +++ b/libstdc++-v3/config/cpu/nvptx/t-nvptx
> @@ -0,0 +1,7 @@
> +# Per-file flags, see '../../../configure.host', "inject per-file flags".
> +
> +# 'ptxas'/CUDA Driver rejects objects with a lot of global constant data:
> +# ptxas error : File uses too much global constant data ([...])
> +# Cut short the assembly-time check; defer to actual use of the object file.
> +AM_MAKEFLAGS += CXXFLAGS-src/c++17/floating_to_chars.lo=-Wa,--no-verify
> +AM_MAKEFLAGS += CXXFLAGS-src/c++20/tzdb.lo=-Wa,--no-verify
This use is gone as of commit 5deeae29dab2af64e3342daf7a30000e424c64ea
"nvptx: Don't use PTX '.const', constant state space [PR119573]", so...
> --- a/libstdc++-v3/configure.host
> +++ b/libstdc++-v3/configure.host
> + nvptx-*-none)
> + # For 'make all-target-libstdc++-v3', we need to inject per-file flags:
> + OPTIMIZE_CXXFLAGS="${OPTIMIZE_CXXFLAGS} \$(CXXFLAGS-\$(subdir)/\$@)"
> + # ..., see:
> + tmake_file="$tmake_file cpu/nvptx/t-nvptx"
... this is not necessary anymore, and I've pushed to trunk branch
commit 287f360b3e75a19c48ee14c71f51b6e7968474ef
"libstdc++, nvptx: Remove machinery to inject per-file flags", see
attached.
Grüße
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libstdc-nvptx-Remove-machinery-to-inject-per-file-fl.patch
Type: text/x-diff
Size: 1572 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250403/8f93621e/attachment.bin>
More information about the Libstdc++
mailing list