diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/cris/ChangeLog | 4 | ||||
-rw-r--r-- | sim/cris/sim-if.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index 5e26f3d..d37fc8f 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,7 @@ +2019-09-06 Alan Modra <amodra@gmail.com> + + * sim-if.c (sim_open): Constify filename variable. + 2018-12-06 Andrew Burgess <andrew.burgess@embecosm.com> * Makefile.in: Replace uses of CGEN_CPU_DIR with CPU_DIR, and diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c index 054cce5..1a5d421 100644 --- a/sim/cris/sim-if.c +++ b/sim/cris/sim-if.c @@ -746,7 +746,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, specified. */ if (abfd != NULL && !cris_bare_iron) { - char *name = bfd_get_filename (abfd); + const char *name = bfd_get_filename (abfd); char **my_environ = GET_ENVIRON (); /* We use these maps to give the same behavior as the old xsim simulator. */ |