[PATCH] Fix recent build breakage in sid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix recent build breakage in sid

Thiemo Seufer
Hello All,

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


Thiemo


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

        * 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;
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix recent build breakage in sid

Frank Ch. Eigler
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