summaryrefslogtreecommitdiffstats
path: root/backends/s390_regs.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2006-07-21 10:06:31 +0000
committerRoland McGrath <[email protected]>2006-07-21 10:06:31 +0000
commit950246297c03f9ce25f645470250619e40d71018 (patch)
tree9727ed2b50b6c582cfb7f36672361f7f3d335876 /backends/s390_regs.c
parent858b189f82ecc32ca7042e74ccb022f794a9f83b (diff)
backends/
2006-07-21 Roland McGrath <[email protected]> * i386_regs.c (i386_register_name): Fix return value when using stpcpy. * ppc_regs.c (ppc_register_name): Likewise. * s390_regs.c (s390_register_name): Likewise. * ia64_retval.c: New file. * Makefile.am (ia64_SRCS): Add it. * ia64_init.c (ia64_init): Install return_value_location hook. * ia64_regs.c: New file. * Makefile.am (ia64_SRCS): Add it. * ia64_init.c (ia64_init): Install register_name hook. tests/ 2006-07-21 Roland McGrath <[email protected]> * allregs.c (struct reginfo): Increase size of name. (one_register): Assert that it's big enough.
Diffstat (limited to 'backends/s390_regs.c')
-rw-r--r--backends/s390_regs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/s390_regs.c b/backends/s390_regs.c
index 61c60744..28b79898 100644
--- a/backends/s390_regs.c
+++ b/backends/s390_regs.c
@@ -114,9 +114,9 @@ s390_register_name (Ebl *ebl __attribute__ ((unused)),
break;
case 64:
- return stpcpy (name, "pswm") - name;
+ return stpcpy (name, "pswm") + 1 - name;
case 65:
- return stpcpy (name, "pswa") - name;
+ return stpcpy (name, "pswa") + 1 - name;
default:
*setname = NULL;