]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] [NFC] Fix riscv_init_cumulative_args for unused arguments
authorJeff Law <jlaw@ventanamicro.com>
Sun, 21 Jan 2024 22:41:38 +0000 (15:41 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 21 Jan 2024 22:41:38 +0000 (15:41 -0700)
The signature was still using ATTRIBUTE_UNUSED and actually marked one
of the used arguments with ATTRIBUTE_UNUSED.

This patch drops the decorations and instead remove the name of arguments
which are actually unused which is the preferred way to handle this now
when we can.

Bootstrapped.  I didn't have test results on the platform where I
bootstrapped, so no results to compare against.  Given its NFC, I
think we're OK without the regression results.

gcc/
* config/riscv/riscv.cc (riscv_init_cumulative_args): Update and
fix bugs in signature.

gcc/config/riscv/riscv.cc

index 1f9546f4d3ea87d2179b14032deebc207872a8d3..5ee54b920332205be2013eb0038bbc43f3465104 100644 (file)
@@ -4872,12 +4872,7 @@ riscv_pass_fpr_pair (machine_mode mode, unsigned regno1,
    for a call to a function whose data type is FNTYPE.
    For a library call, FNTYPE is 0.  */
 
-void
-riscv_init_cumulative_args (CUMULATIVE_ARGS *cum,
-                           tree fntype ATTRIBUTE_UNUSED,
-                           rtx libname ATTRIBUTE_UNUSED,
-                           tree fndecl ATTRIBUTE_UNUSED,
-                           int caller ATTRIBUTE_UNUSED)
+riscv_init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype, rtx, tree, int)
 {
   memset (cum, 0, sizeof (*cum));