From 0127fb1b78a36a7b228d4b3fe32eedfc8d273363 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 28 Mar 2022 17:55:49 +0200 Subject: [PATCH] [nvptx] Improve help description of misa and mptx Currently we have: ... $ gcc --target-help 2>&1 | egrep "misa|mptx" -misa= Specify the version of the ptx ISA to use. -mptx= Specify the version of the ptx version to use. Known PTX ISA versions (for use with the -misa= option): Known PTX versions (for use with the -mptx= option): ... As reported in PR104818, the "version of the ptx version" doesn't make much sense. Furthermore, the description of misa (and 'Known ISA versions') is misleading because it does not specify the version of the PTX ISA, but rather the PTX ISA target architecture. Fix this by printing instead: ... $ gcc --target-help 2>&1 | egrep "misa|mptx" -misa= Specify the PTX ISA target architecture to use. -mptx= Specify the PTX ISA version to use. Known PTX ISA target architectures (for use with the -misa= option): Known PTX ISA versions (for use with the -mptx= option): ... Tested on nvptx. gcc/ChangeLog: 2022-03-28 Tom de Vries PR target/104818 * config/nvptx/gen-opt.sh (ptx_isa): Improve help text. * config/nvptx/nvptx-gen.opt: Regenerate. * config/nvptx/nvptx.opt (misa, mptx, ptx_version): Improve help text. * config/nvptx/t-nvptx (s-nvptx-gen-opt): Add missing dependency on gen-opt.sh. --- gcc/config/nvptx/gen-opt.sh | 2 +- gcc/config/nvptx/nvptx-gen.opt | 2 +- gcc/config/nvptx/nvptx.opt | 6 +++--- gcc/config/nvptx/t-nvptx | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/config/nvptx/gen-opt.sh b/gcc/config/nvptx/gen-opt.sh index 5248ed2..ba04889 100644 --- a/gcc/config/nvptx/gen-opt.sh +++ b/gcc/config/nvptx/gen-opt.sh @@ -44,7 +44,7 @@ echo cat < tmp-nvptx-gen.opt $(SHELL) $(srcdir)/../move-if-change \ -- 2.7.4