public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix recent build breakage in sid
@ 2006-06-23 11:07 Thiemo Seufer
  2006-06-23 11:18 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Thiemo Seufer @ 2006-06-23 11:07 UTC (permalink / raw)
  To: sid

Hello All,

the appended patch fixes invalid use of "register" as detected by
gcc 4.1.1.


Thiemo


2006-06-23  Thiemo Seufer  <ths@mips.com>

	* tracedis.cxx (bfd_getb16, bfd_getl16, bfd_getb32, bfd_getl32):
	Remove invalid use of register specifier.
	

Index: sid/component/cgen-cpu/tracedis.cxx
===================================================================
RCS file: /cvs/src/src/sid/component/cgen-cpu/tracedis.cxx,v
retrieving revision 1.5
diff -u -p -r1.5 tracedis.cxx
--- sid/component/cgen-cpu/tracedis.cxx	28 Oct 2005 19:53:33 -0000	1.5
+++ sid/component/cgen-cpu/tracedis.cxx	23 Jun 2006 10:58:50 -0000
@@ -85,21 +85,21 @@ bfd_get_arch(bfd *abfd)
 /* Stolen from libbfd.  */
 
 extern "C" bfd_vma
-bfd_getb16 (register const void *addr)
+bfd_getb16 (const void *addr)
 {
   const bfd_byte *byteaddr = static_cast <const bfd_byte *> (addr);
   return (byteaddr[0] << 8) | byteaddr[1];
 }
 
 extern "C" bfd_vma
-bfd_getl16 (register const void *addr)
+bfd_getl16 (const void *addr)
 {
   const bfd_byte *byteaddr = static_cast <const bfd_byte *> (addr);
   return (byteaddr[1] << 8) | byteaddr[0];
 }
 
 extern "C" bfd_vma
-bfd_getb32 (register const void *addr)
+bfd_getb32 (const void *addr)
 {
   const bfd_byte *byteaddr = static_cast <const bfd_byte *> (addr);
   unsigned long v;
@@ -112,7 +112,7 @@ bfd_getb32 (register const void *addr)
 }
 
 extern "C" bfd_vma
-bfd_getl32 (register const void *addr)
+bfd_getl32 (const void *addr)
 {
   const bfd_byte *byteaddr = static_cast <const bfd_byte *> (addr);
   unsigned long v;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix recent build breakage in sid
  2006-06-23 11:07 [PATCH] Fix recent build breakage in sid Thiemo Seufer
@ 2006-06-23 11:18 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2006-06-23 11:18 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: sid

Hi -

On Fri, Jun 23, 2006 at 12:06:50PM +0100, Thiemo Seufer wrote:
> [...]
> the appended patch fixes invalid use of "register" as detected by
> gcc 4.1.1.

Thanks, committed.

- FChE

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-23 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-23 11:07 [PATCH] Fix recent build breakage in sid Thiemo Seufer
2006-06-23 11:18 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).