[PATCH] Fix recent build breakage in sid

Thiemo Seufer <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
Hello All,

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


Thiemo


2006-06-23  Thiemo Seufer  <[email protected]>

	* 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.