[cfe-commits] r57129 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Chris Lattner sabre at nondot.org
Sun Oct 5 12:32:52 PDT 2008


Author: lattner
Date: Sun Oct  5 14:32:52 2008
New Revision: 57129

URL: http://llvm.org/viewvc/llvm-project?rev=57129&view=rev
Log:
gcc no longer defines __block to nothing when blocks aren't enabled.

Modified:
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=57129&r1=57128&r2=57129&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Sun Oct  5 14:32:52 2008
@@ -436,10 +436,7 @@
   if (PP.getLangOptions().Blocks) {
     DefineBuiltinMacro(Buf, "__block=__attribute__((__blocks__(byref)))");
     DefineBuiltinMacro(Buf, "__BLOCKS__=1");
-  } else 
-    // This allows "__block int unusedVar;" even when blocks are disabled.
-    // This is modeled after GCC's handling of __strong/__weak.
-    DefineBuiltinMacro(Buf, "__block=");
+  }
   
   if (PP.getLangOptions().CPlusPlus) {
     DefineBuiltinMacro(Buf, "__DEPRECATED=1");





More information about the cfe-commits mailing list