32f0550
diff -up gnu-efi-3.0d/lib/ia32/math.c.pragma gnu-efi-3.0d/lib/ia32/math.c
32f0550
--- gnu-efi-3.0d/lib/ia32/math.c.pragma	2008-03-10 14:43:48.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/ia32/math.c	2008-03-10 14:43:32.000000000 -0400
32f0550
@@ -23,11 +23,13 @@ Revision History
f0da5ac
 //
f0da5ac
 
32f0550
 #ifdef RUNTIME_CODE
f0da5ac
+#ifndef __GNUC__
32f0550
 #pragma RUNTIME_CODE(LShiftU64)
32f0550
 #pragma RUNTIME_CODE(RShiftU64)
32f0550
 #pragma RUNTIME_CODE(MultU64x32)
32f0550
 #pragma RUNTIME_CODE(DivU64x32)
32f0550
 #endif
f0da5ac
+#endif
f0da5ac
 
f0da5ac
 //
32f0550
 //
32f0550
diff -up gnu-efi-3.0d/lib/print.c.pragma gnu-efi-3.0d/lib/print.c
32f0550
--- gnu-efi-3.0d/lib/print.c.pragma	2007-05-11 13:03:05.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/print.c	2008-03-10 14:42:54.000000000 -0400
32f0550
@@ -23,6 +23,7 @@ Revision History
32f0550
 //
32f0550
 
32f0550
 #ifdef RUNTIME_CODE
32f0550
+#ifndef __GNUC__
32f0550
 #pragma RUNTIME_CODE(DbgPrint)
32f0550
 
32f0550
 // For debugging..
32f0550
@@ -39,6 +40,7 @@ Revision History
32f0550
 #pragma RUNTIME_CODE(TimeToString)
32f0550
 */
32f0550
 
32f0550
+#endif /* !defined(__GNUC__) */
32f0550
 #endif
32f0550
 
32f0550
 //
32f0550
diff -up gnu-efi-3.0d/lib/runtime/rtlock.c.pragma gnu-efi-3.0d/lib/runtime/rtlock.c
32f0550
--- gnu-efi-3.0d/lib/runtime/rtlock.c.pragma	2007-05-11 13:03:05.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/runtime/rtlock.c	2008-03-10 14:42:54.000000000 -0400
32f0550
@@ -21,7 +21,9 @@ Revision History
32f0550
 
f0da5ac
 
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
32f0550
 #pragma RUNTIME_CODE(RtAcquireLock)
f0da5ac
+#endif
f0da5ac
 VOID
32f0550
 RtAcquireLock (
32f0550
     IN FLOCK    *Lock
32f0550
@@ -58,7 +60,9 @@ Returns:
f0da5ac
 }
f0da5ac
 
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
32f0550
 #pragma RUNTIME_CODE(RtAcquireLock)
f0da5ac
+#endif
f0da5ac
 VOID
32f0550
 RtReleaseLock (
32f0550
     IN FLOCK    *Lock
3708703
diff -up gnu-efi-3.0d/lib/runtime/efirtlib.c.pragma gnu-efi-3.0d/lib/runtime/efirtlib.c
3708703
--- gnu-efi-3.0d/lib/runtime/efirtlib.c.pragma	2007-05-09 14:37:27.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/runtime/efirtlib.c	2008-03-10 14:42:54.000000000 -0400
f0da5ac
@@ -20,7 +20,9 @@ Revision History
f0da5ac
 #include "efilib.h"
f0da5ac
 #include "efirtlib.h"
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtZeroMem)
f0da5ac
+#endif
f0da5ac
 VOID
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtZeroMem (
f0da5ac
@@ -36,7 +38,9 @@ RtZeroMem (
f0da5ac
     }
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtSetMem)
f0da5ac
+#endif
f0da5ac
 VOID
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtSetMem (
f0da5ac
@@ -53,7 +57,9 @@ RtSetMem (
f0da5ac
     }
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtCopyMem)
f0da5ac
+#endif
f0da5ac
 VOID
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtCopyMem (
f0da5ac
@@ -71,7 +77,9 @@ RtCopyMem (
f0da5ac
     }
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtCompareMem)
f0da5ac
+#endif
f0da5ac
 INTN
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtCompareMem (
f0da5ac
@@ -96,7 +104,9 @@ RtCompareMem (
f0da5ac
     return 0;
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtCompareGuid)
f0da5ac
+#endif
f0da5ac
 INTN
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtCompareGuid (
3708703
diff -up gnu-efi-3.0d/lib/runtime/rtstr.c.pragma gnu-efi-3.0d/lib/runtime/rtstr.c
3708703
--- gnu-efi-3.0d/lib/runtime/rtstr.c.pragma	2007-05-09 14:37:27.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/runtime/rtstr.c	2008-03-10 14:42:54.000000000 -0400
f0da5ac
@@ -17,7 +17,9 @@ Revision History
f0da5ac
 
f0da5ac
 #include "lib.h"
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtAcquireLock)
f0da5ac
+#endif
f0da5ac
 INTN
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtStrCmp (
f0da5ac
@@ -38,7 +40,9 @@ RtStrCmp (
f0da5ac
     return *s1 - *s2;
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtStrCpy)
f0da5ac
+#endif
f0da5ac
 VOID
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtStrCpy (
f0da5ac
@@ -53,7 +57,9 @@ RtStrCpy (
f0da5ac
     *Dest = 0;
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtStrCat)
f0da5ac
+#endif
f0da5ac
 VOID
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtStrCat (
f0da5ac
@@ -64,7 +70,9 @@ RtStrCat (
f0da5ac
     RtStrCpy(Dest+StrLen(Dest), Src);
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtStrLen)
f0da5ac
+#endif
f0da5ac
 UINTN
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtStrLen (
f0da5ac
@@ -78,7 +86,9 @@ RtStrLen (
f0da5ac
     return len;
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtStrSize)
f0da5ac
+#endif
f0da5ac
 UINTN
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtStrSize (
f0da5ac
@@ -92,7 +102,9 @@ RtStrSize (
f0da5ac
     return (len + 1) * sizeof(CHAR16);
f0da5ac
 }
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtBCDtoDecimal)
f0da5ac
+#endif
f0da5ac
 UINT8
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtBCDtoDecimal(
f0da5ac
@@ -108,7 +120,9 @@ RtBCDtoDecimal(
f0da5ac
 }
f0da5ac
 
f0da5ac
 
f0da5ac
+#ifndef __GNUC__
f0da5ac
 #pragma RUNTIME_CODE(RtDecimaltoBCD)
f0da5ac
+#endif
f0da5ac
 UINT8
f0da5ac
 RUNTIMEFUNCTION
f0da5ac
 RtDecimaltoBCD (
32f0550
diff -up gnu-efi-3.0d/lib/runtime/vm.c.pragma gnu-efi-3.0d/lib/runtime/vm.c
32f0550
--- gnu-efi-3.0d/lib/runtime/vm.c.pragma	2007-05-09 14:37:27.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/runtime/vm.c	2008-03-10 14:42:54.000000000 -0400
32f0550
@@ -24,7 +24,9 @@ Revision History
32f0550
 
32f0550
 #include "lib.h"
32f0550
 
32f0550
+#ifndef __GNUC__
32f0550
 #pragma RUNTIME_CODE(RtLibEnableVirtualMappings)
32f0550
+#endif
32f0550
 VOID
32f0550
 RUNTIMEFUNCTION
32f0550
 RtLibEnableVirtualMappings (
32f0550
@@ -64,7 +66,9 @@ RtLibEnableVirtualMappings (
32f0550
 }
32f0550
 
32f0550
 
32f0550
+#ifndef __GNUC__
32f0550
 #pragma RUNTIME_CODE(RtConvertList)
32f0550
+#endif
32f0550
 VOID
32f0550
 RUNTIMEFUNCTION
32f0550
 RtConvertList (
32f0550
diff -up gnu-efi-3.0d/lib/runtime/rtdata.c.pragma gnu-efi-3.0d/lib/runtime/rtdata.c
32f0550
--- gnu-efi-3.0d/lib/runtime/rtdata.c.pragma	2007-05-09 14:37:27.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/runtime/rtdata.c	2008-03-10 14:42:54.000000000 -0400
32f0550
@@ -26,7 +26,9 @@ Revision History
32f0550
 // right data section if it is explicitly initialized..
32f0550
 //
32f0550
 
32f0550
+#ifndef __GNUC__
32f0550
 #pragma BEGIN_RUNTIME_DATA()
32f0550
+#endif
32f0550
 
32f0550
 //
32f0550
 // RT - pointer to the runtime table
3708703
diff -up gnu-efi-3.0d/lib/x86_64/math.c.pragma gnu-efi-3.0d/lib/x86_64/math.c
32f0550
--- gnu-efi-3.0d/lib/x86_64/math.c.pragma	2007-05-11 13:03:05.000000000 -0400
32f0550
+++ gnu-efi-3.0d/lib/x86_64/math.c	2008-03-10 14:43:31.000000000 -0400
3708703
@@ -23,11 +23,13 @@ Revision History
3708703
 //
3708703
 
3708703
 #ifdef RUNTIME_CODE
3708703
+#ifndef __GNUC__
3708703
 #pragma RUNTIME_CODE(LShiftU64)
3708703
 #pragma RUNTIME_CODE(RShiftU64)
3708703
 #pragma RUNTIME_CODE(MultU64x32)
3708703
 #pragma RUNTIME_CODE(DivU64x32)
3708703
 #endif
3708703
+#endif
3708703
 
3708703
 //
3708703
 //