diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-06-11 19:37:10 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-09-26 16:06:01 +0200 |
commit | e9019085e17554c209ca8531022f116b2d7f94fe (patch) | |
tree | 68c359083dc7834f58ec7a049af5224c1da039d5 /gcc/config.gcc | |
parent | 4d94582e0dcbf5fed9d61213715bfff877bf5ecf (diff) | |
download | gcc-e9019085e17554c209ca8531022f116b2d7f94fe.zip gcc-e9019085e17554c209ca8531022f116b2d7f94fe.tar.gz gcc-e9019085e17554c209ca8531022f116b2d7f94fe.tar.bz2 |
nvptx: Allow '--with-arch' to override the default '-misa'
gcc/
* config.gcc (with_arch) [nvptx]: Allow '--with-arch' to override
the default.
* config/nvptx/gen-multilib-matches.sh: New.
* config/nvptx/t-nvptx (MULTILIB_OPTIONS, MULTILIB_MATCHES)
(MULTILIB_EXCEPTIONS): Handle this.
* doc/install.texi (Specific) <nvptx-*-none>: Document this.
* doc/invoke.texi (Nvidia PTX Options): Likewise.
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index d130f49..c1b1215 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -5299,10 +5299,15 @@ case "${target}" in nvptx-*) supported_defaults=arch TM_MULTILIB_CONFIG=$with_arch + #TODO 'sm_[...]' list per 'nvptx-sm.def'. case $with_arch in sm_30 ) # OK; default. ;; + sm_35 | sm_53 | sm_70 | sm_75 | sm_80 ) + # OK, but we'd like 'sm_30', too. + TM_MULTILIB_CONFIG="$TM_MULTILIB_CONFIG sm_30" + ;; * ) echo "Unknown arch used in --with-arch=$with_arch" 1>&2 exit 1 |