Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [ob/6.2] Drop "register", don't include <string.h>
@ 2004-07-17 14:01 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2004-07-17 14:01 UTC (permalink / raw)
  To: gdb-patches, Randolph Chung

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Just FYI,

"register" - let the compiler do this.
<string.h> - use gdb_string.h instead.

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 813 bytes --]

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++)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-17 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-17 14:01 [ob/6.2] Drop "register", don't include <string.h> Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox