From: Richard Henderson Date: Mon, 2 Jun 2003 20:55:13 +0000 (+0000) Subject: * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f75d70ccb305eff2b50813ee81d2602394f57983;p=binutils-gdb.git * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bea1542aa5..329e04d40ba 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2003-06-02 Richard Henderson + * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru. + * alpha-tdep.c (alpha_extract_return_value): Use internal_error. (alpha_store_return_value): Likewise. diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 9e69eda0714..508f0b917a8 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -503,8 +503,8 @@ alpha_store_return_value (struct type *valtype, struct regcache *regcache, { case 4: alpha_convert_flt_dbl (raw_buffer, valbuf); - valbuf = raw_buffer; - /* FALLTHRU */ + regcache_cooked_write (regcache, ALPHA_FP0_REGNUM, raw_buffer); + break; case 8: regcache_cooked_write (regcache, ALPHA_FP0_REGNUM, valbuf);