From f75d70ccb305eff2b50813ee81d2602394f57983 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 2 Jun 2003 20:55:13 +0000 Subject: [PATCH] * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru. --- gdb/ChangeLog | 2 ++ gdb/alpha-tdep.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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); -- 2.30.2