nvptx: Add -mptx=6.0
authorTobias Burnus <tobias@codesourcery.com>
Sat, 19 Feb 2022 22:28:49 +0000 (23:28 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 22 Feb 2022 13:57:28 +0000 (14:57 +0100)
commitbc91cb8d8cf1d4abbb74fb69d918071e1801fd77
treedc22d630529d81026abdca69573de5408fd4cf65
parentc2b23aaaf4457278403c01cd145cd3936683384e
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>
gcc/config/nvptx/nvptx.opt
gcc/doc/invoke.texi