emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103232: Port to Sun C 5.11, which ha


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103232: Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
Date: Sat, 12 Feb 2011 02:05:38 -0800
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103232
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2011-02-12 02:05:38 -0800
message:
  Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
  
  * md5.h (ATTRIBUTE_ALIGNED): New macro.
  (struct md5_ctx): Use it.
modified:
  src/ChangeLog
  src/md5.h
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-02-12 05:13:34 +0000
+++ b/src/ChangeLog     2011-02-12 10:05:38 +0000
@@ -1,5 +1,9 @@
 2011-02-12  Paul Eggert  <address@hidden>
 
+       Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
+       * md5.h (ATTRIBUTE_ALIGNED): New macro.
+       (struct md5_ctx): Use it.
+
        Port to Solaris 10, which doesn't support FC_HINT_STYLE.
        * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
        defined.

=== modified file 'src/md5.h'
--- a/src/md5.h 2011-01-15 23:16:57 +0000
+++ b/src/md5.h 2011-02-12 10:05:38 +0000
@@ -72,9 +72,10 @@
 #endif
 
 
-#ifndef __GNUC__
-#define __attribute__(X)
-#define __alignof__(X) 1
+#if HAVE_ATTRIBUTE_ALIGNED
+# define ATTRIBUTE_ALIGNED(N) __attribute__ ((__aligned__ (N)))
+#else
+# define ATTRIBUTE_ALIGNED(N)
 #endif
 
 /* Structure to save state of computation between the single steps.  */
@@ -87,7 +88,7 @@
 
   md5_uint32 total[2];
   md5_uint32 buflen;
-  char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
+  char buffer[128] ATTRIBUTE_ALIGNED (__alignof__ (md5_uint32));
 };
 
 /*
@@ -145,4 +146,3 @@
                          void *resblock);
 
 #endif /* md5.h */
-


reply via email to

[Prev in Thread] Current Thread [Next in Thread]