public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7329] nvptx: Add -mptx=6.0
@ 2022-02-22 13:59 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-02-22 13:59 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bc91cb8d8cf1d4abbb74fb69d918071e1801fd77

commit r12-7329-gbc91cb8d8cf1d4abbb74fb69d918071e1801fd77
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Sat Feb 19 23:28:49 2022 +0100

    nvptx: Add -mptx=6.0
    
    Currently supported internally are 3.1, 6.0, 6.3 and 7.0.
    
    However, -mptx= supports 3.1, 6.3, 7.0 – but not the internal default 6.0.
    
    Add -mptx=6.0 for consistency.
    
    Tested on nvptx.
    
    gcc/ChangeLog:
    
            * config/nvptx/nvptx.opt (mptx): Add 6.0 alias PTX_VERSION_6_0.
            * doc/invoke.texi (-mptx): Update for new values and defaults.
    
    Co-Authored-By: Tom de Vries <tdevries@suse.de>

Diff:
---
 gcc/config/nvptx/nvptx.opt | 3 +++
 gcc/doc/invoke.texi        | 7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gcc/config/nvptx/nvptx.opt b/gcc/config/nvptx/nvptx.opt
index e56ec9288da..97e127cc4fb 100644
--- a/gcc/config/nvptx/nvptx.opt
+++ b/gcc/config/nvptx/nvptx.opt
@@ -82,6 +82,9 @@ Known PTX versions (for use with the -mptx= option):
 EnumValue
 Enum(ptx_version) String(3.1) Value(PTX_VERSION_3_1)
 
+EnumValue
+Enum(ptx_version) String(6.0) Value(PTX_VERSION_6_0)
+
 EnumValue
 Enum(ptx_version) String(6.3) Value(PTX_VERSION_6_3)
 
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 635c5f79278..56f3a01de44 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -27286,9 +27286,10 @@ strings must be lower-case.  Valid ISA strings include @samp{sm_30} and
 
 @item -mptx=@var{version-string}
 @opindex mptx
-Generate code for given the specified PTX version (e.g.@: @samp{6.3}).
-Valid version strings include @samp{3.1} and @samp{6.3}.  The default PTX
-version is 3.1.
+Generate code for given the specified PTX version (e.g.@: @samp{7.0}).
+Valid version strings include @samp{3.1}, @samp{6.0}, @samp{6.3}, and
+@samp{7.0}.  The default PTX version is 6.0, unless a higher minimal
+version is required for specified PTX ISA via option @option{-misa=}.
 
 @item -mmainkernel
 @opindex mmainkernel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-22 13:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-22 13:59 [gcc r12-7329] nvptx: Add -mptx=6.0 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).