public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7462] [nvptx] Build libraries with misa=sm_30
@ 2022-03-03 9:44 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-03-03 9:44 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:07667c911b1827fb98a1b5da621d51d8fcf0409a
commit r12-7462-g07667c911b1827fb98a1b5da621d51d8fcf0409a
Author: Tom de Vries <tdevries@suse.de>
Date: Wed Mar 2 12:04:39 2022 +0100
[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.
Diff:
---
gcc/config/nvptx/t-nvptx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/config/nvptx/t-nvptx b/gcc/config/nvptx/t-nvptx
index f17fc9c19aa..056d2dd2d04 100644
--- a/gcc/config/nvptx/t-nvptx
+++ b/gcc/config/nvptx/t-nvptx
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-03 9:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 9:44 [gcc r12-7462] [nvptx] Build libraries with misa=sm_30 Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).