[PATCH] opcodes/loongarch: correct parse_loongarch_dis_option

liuzhensong liuzhensong@loongson.cn
Tue Aug 30 07:15:54 GMT 2022


在 2022/8/24 上午10:29, Iru Cai 写道:
> parse_loongarch_dis_option should return 0 when parsing a valid
> option.
> ---
>  opcodes/loongarch-dis.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/opcodes/loongarch-dis.c b/opcodes/loongarch-dis.c
> index 9dcf989d0df..51c1f64edb5 100644
> --- a/opcodes/loongarch-dis.c
> +++ b/opcodes/loongarch-dis.c
> @@ -92,7 +92,10 @@ parse_loongarch_dis_option (const char *option)
>        loongarch_r_disname = loongarch_r_normal_name;
>        loongarch_f_disname = loongarch_f_normal_name;
>      }
> -  return -1;
> +  else
> +    return -1;
> +
> +  return 0;
>  }
>
>  static int

The format of this patch seems not a unified diff output, can not be 
patched directly. Do you mind remake?




More information about the Binutils mailing list