Re: [RFA] update alpha return value hooks to regcache

Richard Henderson
2003-06-02T20:55:58Z

On Mon, Jun 02, 2003 at 02:40:05PM -0400, Andrew Cagney wrote:
> please avoid the fallthrough.

Done.

r~

* alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.

Index: alpha-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
retrieving revision 1.103
diff -c -p -d -u -r1.103 alpha-tdep.c
--- alpha-tdep.c 2 Jun 2003 20:46:41 -0000 1.103
+++ alpha-tdep.c 2 Jun 2003 20:47:54 -0000
@@ -503,8 +503,8 @@ alpha_store_return_value (struct type *v
{
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);