]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx] Restore default to sm_30
authorTom de Vries <tdevries@suse.de>
Thu, 3 Mar 2022 19:20:41 +0000 (20:20 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 10 Mar 2022 11:19:47 +0000 (12:19 +0100)
With commit 07667c911b1 ("[nvptx] Build libraries with misa=sm_30") the
intention was that the sm_xx for all libraries was switched back to sm_30
using MULTILIB_EXTRA_OPTS, without changing the default sm_35.

Testing on an sm_30 board revealed that still some libs were build with sm_35,
so fix this by switching back to default sm_30.

Tested on nvptx.

gcc/ChangeLog:

2022-03-07  Tom de Vries  <tdevries@suse.de>

PR target/104758
* config/nvptx/nvptx.opt (misa): Set default to sm_30.
* config/nvptx/t-nvptx (MULTILIB_EXTRA_OPTS): Remove misa=sm_30.

gcc/config/nvptx/nvptx.opt
gcc/config/nvptx/t-nvptx

index c83ceb3568b163d6b4c098b1a11bf07c1f98a260..fea99c5d4069e5f8e23b1144402431ea54cc56a4 100644 (file)
@@ -53,7 +53,7 @@ Generate code for OpenMP offloading: enables -msoft-stack and -muniform-simt.
 
 ; Default needs to be in sync with default in ASM_SPEC in nvptx.h.
 misa=
-Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA_SM35)
+Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA_SM30)
 Specify the version of the ptx ISA to use.
 
 Enum
index 8f67264d1328ed306e6dd908d0a67dd80c4cff78..a4a5341bb2466ed9f6c430ea5e34c3eb6d9b0653 100644 (file)
@@ -32,4 +32,4 @@ s-nvptx-gen-opt: $(srcdir)/config/nvptx/nvptx-sm.def
 
 MULTILIB_OPTIONS = mgomp
 
-MULTILIB_EXTRA_OPTS = misa=sm_30 mptx=3.1
+MULTILIB_EXTRA_OPTS = mptx=3.1