]> granicus.if.org Git - clang/commit
instead of forcing blocks on by default, make them default to off, but let
authorChris Lattner <sabre@nondot.org>
Thu, 4 Dec 2008 23:20:07 +0000 (23:20 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 4 Dec 2008 23:20:07 +0000 (23:20 +0000)
commitae0ee03fd9d36446ee70e502fdaf5ed5acec269f
treef65a9a7baea6040b42c4428d227c91415b0574df
parent06de37bade11b2d4187a1e4f74d0dcf2a72dda39
instead of forcing blocks on by default, make them default to off, but let
specific targets default them to on.  Default blocks to on on 10.6 and later.
Add a -fblocks option that allows the user to override the target's default.
Use -fblocks in the various testcases that use blocks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60563 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
Driver/clang.cpp
include/clang/Basic/LangOptions.h
lib/Basic/Targets.cpp
test/Analysis/misc-ps.m
test/Parser/block-pointer-decl.c
test/Rewriter/block-test.c
test/Sema/block-args.c
test/Sema/block-as-object.m
test/Sema/block-byref-args.c
test/Sema/block-call.c
test/Sema/block-literal.c
test/Sema/block-misc.c
test/Sema/block-return.c
test/Sema/block-storageclass.c
test/SemaCXX/blocks.cpp
test/SemaObjC/block-ivar.m
test/SemaObjC/property-10.m