]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx] Build libraries with misa=sm_30
authorTom de Vries <tdevries@suse.de>
Wed, 2 Mar 2022 11:04:39 +0000 (12:04 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 3 Mar 2022 09:43:35 +0000 (10:43 +0100)
In gcc-11, when  specifying -misa=sm_30, an executable may still contain sm_35
code (due to libraries being built with the default -misa=sm_35), so it won't
run on an sm_30 board.

Fix this by building libraries with sm_30, as was the case in gcc-5 to gcc-10.

gcc/ChangeLog:

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

PR target/104758
* config/nvptx/t-nvptx (MULTILIB_EXTRA_OPTS): Add misa=sm_30.

gcc/config/nvptx/t-nvptx

index f17fc9c19aac21406741cb9dae5df28b4558d367..056d2dd2d0477cd1dec491c99b2cc328f8a426a5 100644 (file)
@@ -31,3 +31,5 @@ s-nvptx-gen-opt: $(srcdir)/config/nvptx/nvptx-sm.def
        $(STAMP) s-nvptx-gen-opt
 
 MULTILIB_OPTIONS = mgomp
+
+MULTILIB_EXTRA_OPTS = misa=sm_30