Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Remove a goto
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-dabbelt committed Nov 14, 2016
1 parent f75a58f commit b8cfc42
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions gdb/riscv-tdep.c
Expand Up @@ -386,7 +386,6 @@ riscv_register_type (struct gdbarch *gdbarch,

if (regnum < RISCV_FIRST_FP_REGNUM)
{
int_regsizes:
switch (regsize)
{
case 4:
Expand Down Expand Up @@ -425,7 +424,18 @@ riscv_register_type (struct gdbarch *gdbarch,
|| regnum == RISCV_CSR_FCSR_REGNUM)
return builtin_type (gdbarch)->builtin_int32;

goto int_regsizes;
switch (regsize)
{
case 4:
return builtin_type (gdbarch)->builtin_int32;
case 8:
return builtin_type (gdbarch)->builtin_int64;
case 16:
return builtin_type (gdbarch)->builtin_int128;
default:
internal_error (__FILE__, __LINE__,
_("unknown isa regsize %i"), regsize);
}
}
}

Expand Down

0 comments on commit b8cfc42

Please sign in to comment.