diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-05-29 22:31:43 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-09-26 16:00:09 +0200 |
commit | 84072a2615ec1f5f35e994128a6dc22af5bf1322 (patch) | |
tree | abc965ae05ea9762ee7527742cc72482a7e97407 /gcc | |
parent | 1b74b5cb4e9d7191f298245063a8f9c3a1bbeff4 (diff) | |
download | gcc-84072a2615ec1f5f35e994128a6dc22af5bf1322.zip gcc-84072a2615ec1f5f35e994128a6dc22af5bf1322.tar.gz gcc-84072a2615ec1f5f35e994128a6dc22af5bf1322.tar.bz2 |
nvptx: forward '-v' command-line option to assembler
For example, for offloading compilation with '-save-temps -v', before vs. after
word-diff then looks like:
[...]
[...]/build-gcc-offload-nvptx-none/gcc/as {+-v -v+} -o ./a.xnvptx-none.mkoffload.o ./a.xnvptx-none.mkoffload.s
{+Verifying sm_30 code with sm_35 code generation.+}
{+ ptxas -c -o /dev/null ./a.xnvptx-none.mkoffload.o --gpu-name sm_35 -O0+}
[...]
(This depends on <https://github.com/MentorEmbedded/nvptx-tools/pull/37>
"Put '-v' verbose output onto stderr instead of stdout".)
gcc/
* config/nvptx/nvptx.h (ASM_SPEC): Define.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/nvptx/nvptx.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index dc9cad1..0b0170d 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -27,6 +27,10 @@ /* Run-time Target. */ +/* Assembler supports '-v' option; handle similar to + '../../gcc.cc:asm_options', 'HAVE_GNU_AS'. */ +#define ASM_SPEC "%{v}" + #define STARTFILE_SPEC "%{mmainkernel:crt0.o}" #define TARGET_CPU_CPP_BUILTINS() nvptx_cpu_cpp_builtins () |