[2263] 2009-06-04 Vladimir Serbinenko <[email protected]>

Vladimir Serbinenko <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2263
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2263
Author:   phcoder
Date:     2009-06-04 21:38:17 +0000 (Thu, 04 Jun 2009)
Log Message:
-----------
2009-06-04  Vladimir Serbinenko  <[email protected]>

	Definitions for creating asm symbols with Apple's CC

	* include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
	[APPLE_CC] (VARIABLE): likewise

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/include/grub/symbol.h

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-06-04 21:25:58 UTC (rev 2262)
+++ trunk/grub2/ChangeLog	2009-06-04 21:38:17 UTC (rev 2263)
@@ -1,5 +1,12 @@
 2009-06-04  Vladimir Serbinenko  <[email protected]>
 
+	Definitions for creating asm symbols with Apple's CC
+
+	* include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
+	[APPLE_CC] (VARIABLE): likewise
+
+2009-06-04  Vladimir Serbinenko  <[email protected]>
+
 	Disable lnxboot.img when compiled
 	with Apple's CC
 

Modified: trunk/grub2/include/grub/symbol.h
===================================================================
--- trunk/grub2/include/grub/symbol.h	2009-06-04 21:25:58 UTC (rev 2262)
+++ trunk/grub2/include/grub/symbol.h	2009-06-04 21:38:17 UTC (rev 2263)
@@ -28,7 +28,10 @@
 # define EXT_C(sym)	sym
 #endif
 
-#if ! defined (__CYGWIN__) && ! defined (__MINGW32__)
+#if defined (APPLE_CC)
+#define FUNCTION(x)	.globl EXT_C(x) ; EXT_C(x):
+#define VARIABLE(x)	.globl EXT_C(x) ; EXT_C(x):
+#elif ! defined (__CYGWIN__) && ! defined (__MINGW32__)
 #define FUNCTION(x)	.globl EXT_C(x) ; .type EXT_C(x), "function" ; EXT_C(x):
 #define VARIABLE(x)	.globl EXT_C(x) ; .type EXT_C(x), "object" ; EXT_C(x):
 #else
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.