]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: Silence compile warnings
authorTobias Burnus <tobias@codesourcery.com>
Fri, 19 Jun 2020 16:12:11 +0000 (18:12 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 19 Jun 2020 16:12:11 +0000 (18:12 +0200)
gcc/ChangeLog:

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

gcc/config/gcn/gcn.c

index fff0e8cb3a5f69f27b40351a157ac109cc82596a..b6ff0bbc2afed2f0a7dce6e738e28ea7e0076649 100644 (file)
@@ -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;