mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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.
This commit is contained in:
@@ -111,7 +111,7 @@ static const SIM_MACH rv128i_mach =
|
||||
#endif
|
||||
|
||||
/* Order matters here. */
|
||||
const SIM_MACH *sim_machs[] =
|
||||
const SIM_MACH * const sim_machs[] =
|
||||
{
|
||||
#if WITH_TARGET_WORD_BITSIZE >= 128
|
||||
&rv128i_mach,
|
||||
|
||||
Reference in New Issue
Block a user