From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1534) id 699793857C69; Mon, 5 Sep 2022 08:19:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 699793857C69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662365949; bh=TLPjor/wvDrJVOe43z11zeyP+mhEyxPld0TKqkUfFUI=; h=From:To:Subject:Date:From; b=LCVBjLDNYtLOd9kCkMJlTZvehr4MLqvwVbaCSK6hHE5e3UJa4IXC4++fu9bq2Gawd +EIDuLN67ViwoW0vqDabvDHdyl9SQXtyr5K/QRh+N8hVuNT3w2xitHz2qLzaomy2zs zGbNGh7jFnwXCYmHo0wY8ua3ei+Q+UqW4XFm5p08= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tobias Burnus To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] nvptx: Silence unused variable warning in output_constant_pool_contents() X-Act-Checkin: gcc X-Git-Author: Jan-Benedict Glaw X-Git-Refname: refs/heads/devel/omp/gcc-12 X-Git-Oldrev: 92e848d3aeb2b616512cc0e64274e58734fac9e7 X-Git-Newrev: 8d2253f407e73013cb6b7b045c120d4acf35bdc5 Message-Id: <20220905081909.699793857C69@sourceware.org> Date: Mon, 5 Sep 2022 08:19:09 +0000 (GMT) List-Id: https://gcc.gnu.org/g:8d2253f407e73013cb6b7b045c120d4acf35bdc5 commit 8d2253f407e73013cb6b7b045c120d4acf35bdc5 Author: Jan-Benedict Glaw Date: Mon Sep 5 09:40:30 2022 +0200 nvptx: Silence unused variable warning in output_constant_pool_contents() Similar to the rs6000 code, nvptx defines ASM_OUTPUT_DEF_FROM_DECLS as well as ASM_OUTPUT_DEF. Make sure that the define's parameters are used by referencing them as (void) to silence a warning in output_constant_pool_contents(). 2022-09-30 Jan-Benedict Glaw gcc/ * config/nvptx/nvptx.h (ASM_OUTPUT_DEF): Reference macro arguments. (cherry picked from commit 08de065293f8b08158e1089fbacce9dbaba95077) Diff: --- gcc/ChangeLog.omp | 7 +++++++ gcc/config/nvptx/nvptx.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp index 08177cdd444..47babd06e63 100644 --- a/gcc/ChangeLog.omp +++ b/gcc/ChangeLog.omp @@ -1,3 +1,10 @@ +2022-09-05 Tobias Burnus + + Backport from mainline: + 2022-09-30 Jan-Benedict Glaw + + * config/nvptx/nvptx.h (ASM_OUTPUT_DEF): Reference macro arguments. + 2022-09-05 Tobias Burnus Backport from mainline: diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index ed72c253191..71297440566 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -321,6 +321,9 @@ struct GTY(()) machine_function #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \ do \ { \ + (void) (FILE); \ + (void) (LABEL1); \ + (void) (LABEL2); \ gcc_unreachable (); \ } \ while (0)