mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08:00
sim: sh: fix a few compiler warnings
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2021-05-29 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* interp.c (SET_RC): Add parenthesis.
|
||||||
|
(sim_open): Add const to p.
|
||||||
|
|
||||||
2021-05-17 Mike Frysinger <vapier@gentoo.org>
|
2021-05-17 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
|
* sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
|
||||||
|
@ -214,7 +214,7 @@ do { \
|
|||||||
|
|
||||||
#define SET_RC(x) \
|
#define SET_RC(x) \
|
||||||
(saved_state.asregs.cregs.named.sr \
|
(saved_state.asregs.cregs.named.sr \
|
||||||
= saved_state.asregs.cregs.named.sr & 0xf000ffff | ((x) & 0xfff) << 16)
|
= (saved_state.asregs.cregs.named.sr & 0xf000ffff) | ((x) & 0xfff) << 16)
|
||||||
|
|
||||||
/* Manipulate FPSCR */
|
/* Manipulate FPSCR */
|
||||||
|
|
||||||
@ -2345,7 +2345,7 @@ SIM_DESC
|
|||||||
sim_open (SIM_OPEN_KIND kind, host_callback *cb,
|
sim_open (SIM_OPEN_KIND kind, host_callback *cb,
|
||||||
struct bfd *abfd, char * const *argv)
|
struct bfd *abfd, char * const *argv)
|
||||||
{
|
{
|
||||||
char **p;
|
char * const *p;
|
||||||
int i;
|
int i;
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user