From: Jan-Benedict Glaw Date: Thu, 17 Aug 2023 13:54:30 +0000 (+0200) Subject: Fix code_helper unused argument warning for fr30 X-Git-Tag: basepoints/gcc-15~6849 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee40bdbfb07c604a126069f05c1358c3d76f7812;p=thirdparty%2Fgcc.git Fix code_helper unused argument warning for fr30 fr30 is the only target defining GO_IF_LEGITIMATE_ADDRESS right now, in which case the `code_helper ch` argument to memory_address_addr_space_p() is unused and emits a new warning. gcc/ChangeLog: * recog.cc (memory_address_addr_space_p): Mark possibly unused argument as unused. --- diff --git a/gcc/recog.cc b/gcc/recog.cc index 2bff6c03e4d3..92f151248a64 100644 --- a/gcc/recog.cc +++ b/gcc/recog.cc @@ -1803,7 +1803,7 @@ pop_operand (rtx op, machine_mode mode) bool memory_address_addr_space_p (machine_mode mode ATTRIBUTE_UNUSED, rtx addr, - addr_space_t as, code_helper ch) + addr_space_t as, code_helper ch ATTRIBUTE_UNUSED) { #ifdef GO_IF_LEGITIMATE_ADDRESS gcc_assert (ADDR_SPACE_GENERIC_P (as));