diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-06-19 18:12:11 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-06-19 18:12:11 +0200 |
commit | dd455df70cd2d33120f0f4770ce808f56febafad (patch) | |
tree | d58c6de70d8bbdb3dbc22759d23514c12d201a51 /gcc/config/gcn/gcn.c | |
parent | e0bfe016712ace877dd5b057bc1eb06e3c307623 (diff) | |
download | gcc-dd455df70cd2d33120f0f4770ce808f56febafad.zip gcc-dd455df70cd2d33120f0f4770ce808f56febafad.tar.gz gcc-dd455df70cd2d33120f0f4770ce808f56febafad.tar.bz2 |
amdgcn: Silence compile warnings
gcc/ChangeLog:
* config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
(output_file_start): Use const 'char *'.
Diffstat (limited to 'gcc/config/gcn/gcn.c')
-rw-r--r-- | gcc/config/gcn/gcn.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |