]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix code_helper unused argument warning for fr30
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Thu, 17 Aug 2023 13:54:30 +0000 (15:54 +0200)
committerJan-Benedict Glaw <jbglaw@lug-owl.de>
Thu, 17 Aug 2023 13:55:27 +0000 (15:55 +0200)
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.

gcc/recog.cc

index 2bff6c03e4d3a56c27c81e7c892914786bcdb484..92f151248a64f1bd581cbf18225e99b3eaeaaf6b 100644 (file)
@@ -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));