Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: gdb-patches@sources.redhat.com, Randolph Chung <randolph@tausq.org>
Subject: [ob/6.2] Drop "register", don't include <string.h>
Date: Sat, 17 Jul 2004 14:01:00 -0000	[thread overview]
Message-ID: <40F9314D.2050803@gnu.org> (raw)

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

                 reply	other threads:[~2004-07-17 14:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40F9314D.2050803@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=randolph@tausq.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox