Blame SOURCES/gdb-6.8-sparc64-silence-memcpy-check.patch

861f93
Index: gdb-7.4.50.20111218/gdb/sparc-tdep.c
861f93
===================================================================
861f93
--- gdb-7.4.50.20111218.orig/gdb/sparc-tdep.c	2011-09-28 19:59:42.000000000 +0200
861f93
+++ gdb-7.4.50.20111218/gdb/sparc-tdep.c	2011-12-19 01:25:29.294046199 +0100
861f93
@@ -1316,6 +1316,7 @@ sparc32_store_return_value (struct type
861f93
   if (sparc_floating_p (type) || sparc_complex_floating_p (type))
861f93
     {
861f93
       /* Floating return values.  */
861f93
+      len = (len <= 8) ? len : 8;
861f93
       memcpy (buf, valbuf, len);
861f93
       regcache_cooked_write (regcache, SPARC_F0_REGNUM, buf);
861f93
       if (len > 4)