Skip to content
Snippets Groups Projects
Commit 07667c91 authored by Tom de Vries's avatar Tom de Vries
Browse files

[nvptx] Build libraries with misa=sm_30

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.
parent 12fa7641
No related branches found
No related tags found
No related merge requests found
...@@ -31,3 +31,5 @@ s-nvptx-gen-opt: $(srcdir)/config/nvptx/nvptx-sm.def ...@@ -31,3 +31,5 @@ s-nvptx-gen-opt: $(srcdir)/config/nvptx/nvptx-sm.def
$(STAMP) s-nvptx-gen-opt $(STAMP) s-nvptx-gen-opt
MULTILIB_OPTIONS = mgomp MULTILIB_OPTIONS = mgomp
MULTILIB_EXTRA_OPTS = misa=sm_30
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment