public inbox for
help / color / mirror / Atom feed
* [gcc r13-2872] nvptx: forward '-v' command-line option to assembler
@ 2022-09-26 14:12 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-09-26 14:12 UTC (permalink / raw)
  To: gcc-cvs

commit r13-2872-g84072a2615ec1f5f35e994128a6dc22af5bf1322
Author: Thomas Schwinge <>
Date:   Sun May 29 22:31:43 2022 +0200

    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 <>
    "Put '-v' verbose output onto stderr instead of stdout".)
            * config/nvptx/nvptx.h (ASM_SPEC): Define.

 gcc/config/nvptx/nvptx.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h
index dc9cad1aaaf..0b0170d77b3 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
+   '../../', 'HAVE_GNU_AS'.  */
+#define ASM_SPEC "%{v}"
 #define STARTFILE_SPEC "%{mmainkernel:crt0.o}"
 #define TARGET_CPU_CPP_BUILTINS() nvptx_cpu_cpp_builtins ()

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

only message in thread, other threads:[~2022-09-26 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 14:12 [gcc r13-2872] nvptx: forward '-v' command-line option to assembler Thomas Schwinge

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).