This is the mail archive of the sid@sourceware.org mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix recent build breakage in 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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]