This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob/6.2] Drop "register", don't include <string.h>
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com, Randolph Chung <randolph at tausq dot org>
- Date: Sat, 17 Jul 2004 10:01:49 -0400
- Subject: [ob/6.2] Drop "register", don't include <string.h>
Just FYI,
"register" - let the compiler do this.
<string.h> - use gdb_string.h instead.
Andrew
2004-07-17 Andrew Cagney <cagney@gnu.org>
* hppa-linux-nat.c: Do not include <string.h>.
(supply_fpregset): Remove "register" attribute.
Index: hppa-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-linux-nat.c,v
retrieving revision 1.4
diff -p -u -r1.4 hppa-linux-nat.c
--- hppa-linux-nat.c 7 Jun 2004 15:19:08 -0000 1.4
+++ hppa-linux-nat.c 17 Jul 2004 13:57:51 -0000
@@ -26,7 +26,6 @@
#include <sys/procfs.h>
#include <sys/ptrace.h>
-#include <string.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,43)
@@ -342,7 +341,7 @@ fill_gregset (gdb_gregset_t *gregsetp, i
void
supply_fpregset (gdb_fpregset_t *fpregsetp)
{
- register int regi;
+ int regi;
char *from;
for (regi = 0; regi <= 31; regi++)