From: Steve Naroff Date: Tue, 2 Sep 2008 18:04:36 +0000 (+0000) Subject: Pull code from last commit. will put back soon. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9a4eea59228bd06072927059979a1c9ccab45b5;p=clang Pull code from last commit. will put back soon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55637 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 27c2e676e6..18b106ad84 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -476,13 +476,6 @@ static void InitializePredefinedMacros(Preprocessor &PP, DefineBuiltinMacro(Buf, "__int64=long long"); DefineBuiltinMacro(Buf, "__declspec(X)="); } - if (PP.getLangOptions().Blocks) { - DefineBuiltinMacro(Buf, "__byref=__attribute__((__blocks__(byref)))"); - DefineBuiltinMacro(Buf, "__block=__attribute__((__blocks__(byref)))"); - } else { - DefineBuiltinMacro(Buf, "__byref="); - DefineBuiltinMacro(Buf, "__block="); - } // FIXME: Should emit a #line directive here. } diff --git a/test/Parser/block-block-storageclass.c b/test/Parser/block-block-storageclass.c index c15d731ec8..c9be12f1f0 100644 --- a/test/Parser/block-block-storageclass.c +++ b/test/Parser/block-block-storageclass.c @@ -1,5 +1,5 @@ // RUN: clang -fsyntax-only -verify -parse-noop %s - +#if 0 #include void _Block_byref_release(void*src){} @@ -16,3 +16,4 @@ int main() { return X; } +#endif