From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1474) id 8FC1D3858418; Sat, 3 Sep 2022 12:10:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FC1D3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662207050; bh=jys0m7ClvkoO9k8wphBGyHqebvUpcSQt59AP2nYNH9U=; h=From:To:Subject:Date:From; b=tmtbsKM2HTTf7qOnsxe0QERdfyUQiCIj7uD7MWYT98iPLKqoDlab+8wnoPorhttYb mtk3+xYWOskR9fp5zzWbRtiMQbmIKLYJP6v2j8K61DiSSMA/zo6yZ9I/9JvUk7LCgw DjwhZYjFgMAMUzfdzOIXYTTZFavNYrfeAS1ofJfw= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jan-Benedict Glaw To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2389] 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/master X-Git-Oldrev: a651e6d59188da8992f8bfae2df1cb4e6316f9e6 X-Git-Newrev: 08de065293f8b08158e1089fbacce9dbaba95077 Message-Id: <20220903121050.8FC1D3858418@sourceware.org> Date: Sat, 3 Sep 2022 12:10:50 +0000 (GMT) List-Id: https://gcc.gnu.org/g:08de065293f8b08158e1089fbacce9dbaba95077 commit r13-2389-g08de065293f8b08158e1089fbacce9dbaba95077 Author: Jan-Benedict Glaw Date: Sat Sep 3 14:02:57 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. Diff: --- gcc/config/nvptx/nvptx.h | 3 +++ 1 file changed, 3 insertions(+) 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)