From ba9666525f68ab75a7176bd02b7e8d0dc8c644b7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 27 Jun 2021 01:26:30 -0400 Subject: sim: model: constify sim_machs storage The array of pointers is never modified, so mark it const so it ends up in the read-only data section. --- sim/m32r/ChangeLog | 4 ++++ sim/m32r/arch.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sim/m32r') diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog index 00b0a7a..d8171c6 100644 --- a/sim/m32r/ChangeLog +++ b/sim/m32r/ChangeLog @@ -1,3 +1,7 @@ +2021-06-29 Mike Frysinger + + * arch.c (sim_machs): Mark const. + 2021-06-28 Mike Frysinger * cpu.c (m32rbf_record_trace_results): Delete function. diff --git a/sim/m32r/arch.c b/sim/m32r/arch.c index eb4bc06..4b78975 100644 --- a/sim/m32r/arch.c +++ b/sim/m32r/arch.c @@ -24,7 +24,7 @@ This file is part of the GNU simulators. #include "sim-main.h" #include "bfd.h" -const SIM_MACH *sim_machs[] = +const SIM_MACH * const sim_machs[] = { #ifdef HAVE_CPU_M32RBF & m32r_mach, -- cgit v1.1