From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 9A3203858284; Mon, 26 Sep 2022 14:12:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A3203858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664201558; bh=SV1yqDtkVFbDulJpZ2Vmcw2bmDx6HfgGplUqrhwZPg4=; h=From:To:Subject:Date:From; b=u3zlxp/xcA6K25ou90nIWFfYQkPPfy+ASIjNhR21U/eOhYVcUdvTKpkV6wKq5kJ1P RYl9bNWlU2rKor/L0mlB7+aXt5Uugv8pt0P3Bhz0K4PY0Z/LYX3xSwmgxVXSCNZEsJ WF2K2YpVYVML93D2AZZI/8IB9CmtX9KWP2hPZ7ZA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2872] nvptx: forward '-v' command-line option to assembler X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/master X-Git-Oldrev: 1b74b5cb4e9d7191f298245063a8f9c3a1bbeff4 X-Git-Newrev: 84072a2615ec1f5f35e994128a6dc22af5bf1322 Message-Id: <20220926141238.9A3203858284@sourceware.org> Date: Mon, 26 Sep 2022 14:12:38 +0000 (GMT) List-Id: https://gcc.gnu.org/g:84072a2615ec1f5f35e994128a6dc22af5bf1322 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".) gcc/ * config/nvptx/nvptx.h (ASM_SPEC): Define. Diff: --- 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 + '../../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 ()