-Wpointer-sign: alpha-tdep.c.
authorPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:24:25 +0000 (15:24 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 15:24:25 +0000 (15:24 +0000)
../../src/gdb/alpha-tdep.c: In function ‘alpha_extract_return_value’:
../../src/gdb/alpha-tdep.c:520:4: error: pointer targets in passing argument 3 of ‘regcache_cooked_read_signed’ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/alpha-tdep.c:36:0:

We use regcache_cooked_read_unsigned everywhere else too.

2013-04-19  Pedro Alves  <palves@redhat.com>

* alpha-tdep.c (alpha_extract_return_value): Use
regcache_cooked_read_unsigned to read 'v0'.

gdb/ChangeLog
gdb/alpha-tdep.c

index 3cb8438561b5baacfa371ccf9c18cca2e1d289d4..122cfb4178a117b9d5d4e35a92e52fb5a31cf266 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-19  Pedro Alves  <palves@redhat.com>
+
+       * alpha-tdep.c (alpha_extract_return_value): Use
+       regcache_cooked_read_unsigned to read 'v0'.
+
 2013-04-19  Pedro Alves  <palves@redhat.com>
 
        * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
index 7696b42e124d120749d424a05827d7ef4e11c29f..a8b90b90771037368fc131ac03bd07034d77ec89 100644 (file)
@@ -517,7 +517,7 @@ alpha_extract_return_value (struct type *valtype, struct regcache *regcache,
          break;
 
        case 32:
-         regcache_cooked_read_signed (regcache, ALPHA_V0_REGNUM, &l);
+         regcache_cooked_read_unsigned (regcache, ALPHA_V0_REGNUM, &l);
          read_memory (l, valbuf, 32);
          break;