diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-06-11 12:28:36 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-09-26 16:00:38 +0200 |
commit | 108b99b6c45ed8fbad6776539a639244b63191f5 (patch) | |
tree | ea929fa90d73a3152af709c96f806948eb1dbe38 /gcc/config.gcc | |
parent | 84072a2615ec1f5f35e994128a6dc22af5bf1322 (diff) | |
download | gcc-108b99b6c45ed8fbad6776539a639244b63191f5.zip gcc-108b99b6c45ed8fbad6776539a639244b63191f5.tar.gz gcc-108b99b6c45ed8fbad6776539a639244b63191f5.tar.bz2 |
nvptx: Make default '-misa=sm_30' explicit
... primarily in preparation for later changes.
gcc/
* config.gcc (with_arch) [nvptx]: Set to 'sm_30'.
* config/nvptx/nvptx.cc (nvptx_option_override): Assert that
'-misa' appeared.
* config/nvptx/nvptx.h (OPTION_DEFAULT_SPECS): Define.
* config/nvptx/nvptx.opt (misa=): Remove 'Init'.
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 27ffce3..6a47661 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3941,6 +3941,9 @@ if test x$with_arch = x ; then mips*-*-vxworks) with_arch=mips2 ;; + nvptx-*) + with_arch=sm_30 + ;; esac # Avoid overriding --with-arch-32 and --with-arch-64 values. @@ -5293,6 +5296,19 @@ case "${target}" in esac ;; + nvptx-*) + supported_defaults=arch + case $with_arch in + sm_30 ) + # OK; default. + ;; + * ) + echo "Unknown arch used in --with-arch=$with_arch" 1>&2 + exit 1 + ;; + esac + ;; + powerpc*-*-* | rs6000-*-*) supported_defaults="abi cpu cpu_32 cpu_64 float tune tune_32 tune_64 advance_toolchain" |