sim: require a C11 compiler
[binutils-gdb.git] / sim / frv / decode.c
index 6ce49a8d8655426899e3b36a368e8c6e13448024..d97d3a6ab44ce8263163eff7c542c63e64a369b5 100644 (file)
@@ -2,7 +2,7 @@
 
 THIS FILE IS MACHINE GENERATED WITH CGEN.
 
-Copyright 1996-2017 Free Software Foundation, Inc.
+Copyright 1996-2021 Free Software Foundation, Inc.
 
 This file is part of the GNU simulators.
 
@@ -841,7 +841,7 @@ frvbf_init_idesc_table (SIM_CPU *cpu)
     init_idesc (cpu, id, t);
 
   /* Now fill in the values for the chosen cpu.  */
-  for (t = frvbf_insn_sem, tend = t + sizeof (frvbf_insn_sem) / sizeof (*t);
+  for (t = frvbf_insn_sem, tend = t + ARRAY_SIZE (frvbf_insn_sem);
        t != tend; ++t)
     {
       init_idesc (cpu, & table[t->index], t);