abi_vlen = TREE_INT_CST_LOW (vlen_arg);
}
- if (!riscv_valid_abi_vlen_vls_cc_p (abi_vlen))
+ if (!riscv_valid_abi_vlen_vls_cc_p (abi_vlen) && !check_only)
{
error_at (input_location,
- "unsupported ABI_VLEN value %d for %qs attribute;"
- "ABI_VLEN must be in the range [32, 16384] and must be "
- "a power of 2.",
- "riscv_vls_cc", abi_vlen);
+ "unsupported %<ABI_VLEN%> value %d for %qs attribute;"
+ "%<ABI_VLEN must%> be in the range [32, 16384] and must be "
+ "a power of 2",
+ abi_vlen, "riscv_vls_cc");
return RISCV_CC_UNKNOWN;
}
}
static tree
-riscv_handle_rvv_vls_cc_attribute (tree *node, tree name, tree args,
+riscv_handle_rvv_vls_cc_attribute (tree *, tree name, tree args,
ATTRIBUTE_UNUSED int flags,
bool *no_add_attrs)
{