Module Name:    src
Committed By:   gmcgarry
Date:           Thu Mar 26 22:16:44 UTC 2009

Modified Files:
        src/sys/sys: cdefs.h

Log Message:
Pass argument to __aligned() through __STRING() so that it is correctly 
expanded.  Now __aligned(CACHE_LINE_SIZE) works with pcc.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.72 src/sys/sys/cdefs.h:1.73
--- src/sys/sys/cdefs.h:1.72	Wed Jan 14 19:41:55 2009
+++ src/sys/sys/cdefs.h	Thu Mar 26 22:16:44 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.72 2009/01/14 19:41:55 pooka Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.73 2009/03/26 22:16:44 gmcgarry Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -215,7 +215,7 @@
 #define	__section(x)	__attribute__((__section__(x)))
 #elif defined(__PCC__)
 #define	__packed	_Pragma("packed")
-#define	__aligned(x)   	_Pragma("aligned " #x)
+#define	__aligned(x)   	_Pragma("aligned " __STRING(x))
 #define	__section(x)   	_Pragma("section " ## x)
 #elif defined(__lint__)
 #define	__packed	/* delete */

Reply via email to