amdgcn: Silence compile warnings

Message ID f0d19c14-7fdd-d1e5-17ad-f7b7a7d12ecd@codesourcery.com
State New
Headers show
Series
  • amdgcn: Silence compile warnings
Related show

Commit Message

Tobias Burnus June 19, 2020, 4 p.m.
OK for mainline?

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter

Comments

Andrew Stubbs June 19, 2020, 4:11 p.m. | #1
On 19/06/2020 17:00, Tobias Burnus wrote:
> OK for mainline?


OK, thank you.

Andrew

Patch

amdgcn: Silence compile warnings

gcc/ChangeLog:

	* config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
	(output_file_start): Use const 'char *'.

diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c
index fff0e8c..b6ff0bb 100644
--- a/gcc/config/gcn/gcn.c
+++ b/gcc/config/gcn/gcn.c
@@ -4038,8 +4038,8 @@  gcn_vectorize_preferred_simd_mode (scalar_mode mode)
    In particular, we do *not* want to match vector bit-size.  */
 
 static opt_machine_mode
-gcn_related_vector_mode (machine_mode vector_mode, scalar_mode element_mode,
-			 poly_uint64 nunits)
+gcn_related_vector_mode (machine_mode ARG_UNUSED (vector_mode),
+			 scalar_mode element_mode, poly_uint64 nunits)
 {
   if (known_ne (nunits, 0U) && known_ne (nunits, 64U))
     return VOIDmode;
@@ -4937,7 +4937,7 @@  gcn_fixup_accel_lto_options (tree fndecl)
 static void
 output_file_start (void)
 {
-  char *cpu;
+  const char *cpu;
   switch (gcn_arch)
     {
     case PROCESSOR_FIJI: cpu = "gfx803"; break;