diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-27 01:26:30 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-29 20:08:10 -0400 |
commit | ba9666525f68ab75a7176bd02b7e8d0dc8c644b7 (patch) | |
tree | 603fa4516138f61109686c9c35d73d4b6dbeb563 /sim/cris | |
parent | aa2e84dee612c8fe1d8249891a9f8fea1e4be492 (diff) | |
download | gdb-ba9666525f68ab75a7176bd02b7e8d0dc8c644b7.zip gdb-ba9666525f68ab75a7176bd02b7e8d0dc8c644b7.tar.gz gdb-ba9666525f68ab75a7176bd02b7e8d0dc8c644b7.tar.bz2 |
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.
Diffstat (limited to 'sim/cris')
-rw-r--r-- | sim/cris/ChangeLog | 4 | ||||
-rw-r--r-- | sim/cris/arch.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index f369739..8c36ffe 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,7 @@ +2021-06-29 Mike Frysinger <vapier@gentoo.org> + + * arch.c (sim_machs): Mark const. + 2021-06-28 Mike Frysinger <vapier@gentoo.org> * cpuv10.c (crisv10f_record_trace_results): Delete function. diff --git a/sim/cris/arch.c b/sim/cris/arch.c index 1395cc7..1635ef6 100644 --- a/sim/cris/arch.c +++ b/sim/cris/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_CRISV10F & crisv10_mach, |