]> granicus.if.org Git - clang/commit
More fixes to builtin preprocessor defines.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 8 Apr 2009 18:03:55 +0000 (18:03 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 8 Apr 2009 18:03:55 +0000 (18:03 +0000)
commit3bbc75302fd43cf13d868b46c94ff8794b302e43
tree1728504f2e06ca75a920b8240d2d07db2454e355
parent9158804749356f88be8c5a3bade75b761846273c
More fixes to builtin preprocessor defines.
 - Add -static-define option driver can use when __STATIC__ should be
   defined (instead of __DYNAMIC__).

 - Don't set __OPTIMIZE_SIZE__ on Os, __OPTIMIZE_SIZE__ is tied to Oz.

 - Set __NO_INLINE__ following GCC 4.2.

 - Set __GNU_GNU_INLINE__ or __GNU_STDC_INLINE__ following GCC 4.2.

 - Set __EXCEPTIONS for Objective-C NonFragile ABI.

 - Set __STRICT_ANSI__ for standard conforming modes.

 - I added a clang style test case in utils for this, but its not
   particularly portable and I don't think it belongs in the test
   suite.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68621 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.h
lib/Driver/Tools.cpp
lib/Lex/Preprocessor.cpp
test/Preprocessor/optimize.c
tools/clang-cc/clang-cc.cpp
utils/builtin-defines.c [new file with mode: 0644]