diff options
author | Tom de Vries <tdevries@suse.de> | 2022-03-02 12:04:39 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-03-03 10:43:35 +0100 |
commit | 07667c911b1827fb98a1b5da621d51d8fcf0409a (patch) | |
tree | 188bf296b6178de913ce7da5e92b6fce6e7f4c0b /gcc/config/nvptx | |
parent | 12fa7641ceed9c9139e2ea7b62c11f3dc5b6f6f4 (diff) | |
download | gcc-07667c911b1827fb98a1b5da621d51d8fcf0409a.zip gcc-07667c911b1827fb98a1b5da621d51d8fcf0409a.tar.gz gcc-07667c911b1827fb98a1b5da621d51d8fcf0409a.tar.bz2 |
[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.
Diffstat (limited to 'gcc/config/nvptx')
-rw-r--r-- | gcc/config/nvptx/t-nvptx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/nvptx/t-nvptx b/gcc/config/nvptx/t-nvptx index f17fc9c..056d2dd 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 |