]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: frv: fix -Wimplicit-fallthrough warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:32:22 +0000 (01:32 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:22 +0000 (01:59 -0500)
Replace some fall through comments with the attribute.

sim/frv/cache.c
sim/frv/interrupts.c

index c2beb39d3ef86bf6997a460f3fa668b68dbe2153..2d0fe5a590e92a37f33544b49e1a2919bdc9e518 100644 (file)
@@ -136,7 +136,7 @@ frv_cache_reconfigure (SIM_CPU *current_cpu, FRV_CACHE *cache)
              break;
            }
        }
-      /* fall through */
+      ATTRIBUTE_FALLTHROUGH;
     default:
       /* Set the cache to its original settings.  */
       cache->sets = cache->configured_sets;
index baf058f18d4a3c5d4a36f2f1e4ded44990a11efa..979360738bab8aa3882bfbf072250b0c15191c17 100644 (file)
@@ -835,7 +835,7 @@ set_exception_status_registers (
        {
        case FRV_DIVISION_EXCEPTION:
          set_isr_exception_fields (current_cpu, item);
-         /* fall thru to set reg_index.  */
+         ATTRIBUTE_FALLTHROUGH;  /* To set reg_index.  */
        case FRV_COMMIT_EXCEPTION:
          /* For fr550, always use ESR0.  */
          if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_fr550)
@@ -855,7 +855,7 @@ set_exception_status_registers (
          break;
        case FRV_DATA_ACCESS_EXCEPTION:
          set_daec = 1;
-         /* fall through */
+         ATTRIBUTE_FALLTHROUGH;
        case FRV_DATA_ACCESS_MMU_MISS:
        case FRV_MEM_ADDRESS_NOT_ALIGNED:
          /* Get the appropriate ESR, EPCR, EAR and EDR.