Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove __INTPTR_TYPE__ as it is no longer needed by stdint.h, which uses | Ken Dyck | 2009-11-19 | 1 | -1/+0 | |
| | | | | | | __INTPTR_WIDTH__ instead. llvm-svn: 89340 | |||||
* | Predefine __INTPTR_WIDTH__ for future use in stdint.h. | Ken Dyck | 2009-11-18 | 1 | -0/+1 | |
| | | | | llvm-svn: 89231 | |||||
* | Remove the __INTMAX_TYPE__ and __UINTMAX_TYPE__ built-in macros as they are no | Ken Dyck | 2009-11-18 | 1 | -2/+0 | |
| | | | | | | longer used by stdint.h. llvm-svn: 89230 | |||||
* | Predefine __INTMAX_WIDTH__ for the future parameterization of INTMAX macros in | Ken Dyck | 2009-11-18 | 1 | -0/+8 | |
| | | | | | | stdint.h. llvm-svn: 89203 | |||||
* | Simplify PreprocessorOptions, it doesn't need abstracted field access. | Daniel Dunbar | 2009-11-17 | 1 | -14/+12 | |
| | | | | llvm-svn: 89047 | |||||
* | Parameterize the constant-generating macros in stdint.h with new built-in | Ken Dyck | 2009-11-16 | 1 | -1/+9 | |
| | | | | | | | __INTn_C_SUFFIX__ macros that are defined for types with corresponding constant suffixes (i.e. long and long long). llvm-svn: 88914 | |||||
* | Generalize stdint.h for non-8-bit-multiple types, patch by | Chris Lattner | 2009-11-12 | 1 | -18/+21 | |
| | | | | | | | | | | Ken Dyck! "This adds definitions for types of 8-bit multiples from 8 to 64 to stdint.h and rationalizes the selection of types for the exact-width definitions in InitPreprocessor.cpp." llvm-svn: 86977 | |||||
* | do not store wchar/char16/char32/intmax width/alignment info | Chris Lattner | 2009-11-12 | 1 | -5/+1 | |
| | | | | | | | into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! llvm-svn: 86976 | |||||
* | Tweak PCH -include handling to make sure it matches the name as would be present | Daniel Dunbar | 2009-11-11 | 1 | -4/+9 | |
| | | | | | | in the predefines buffer. llvm-svn: 86903 | |||||
* | Always initialize the header search object as part of InitializePreprocessor; | Daniel Dunbar | 2009-11-11 | 1 | -1/+7 | |
| | | | | | | not doing this has little to no utility. llvm-svn: 86883 | |||||
* | PreprocessorOptions: Get rid of unnecessary 'isPTH' flag for include entries. | Daniel Dunbar | 2009-11-10 | 1 | -3/+3 | |
| | | | | llvm-svn: 86757 | |||||
* | Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fix | Daniel Dunbar | 2009-11-07 | 1 | -5/+6 | |
| | | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335 | |||||
* | clean up integer preprocessor type definitions, patch by Ken Dyck! | Chris Lattner | 2009-11-05 | 1 | -10/+22 | |
| | | | | llvm-svn: 86177 | |||||
* | InitializePreprocessor cannot fail. | Daniel Dunbar | 2009-11-04 | 1 | -4/+1 | |
| | | | | llvm-svn: 86048 | |||||
* | Move -undef flag into PreprocessorInitOptions | Daniel Dunbar | 2009-11-04 | 1 | -3/+2 | |
| | | | | llvm-svn: 86047 | |||||
* | Implement support for the -undef command line option, patch by | Chris Lattner | 2009-11-03 | 1 | -3/+5 | |
| | | | | | | Roman Divacky! PR5363 llvm-svn: 85932 | |||||
* | clean up namespace. | Chris Lattner | 2009-11-02 | 1 | -6/+3 | |
| | | | | llvm-svn: 85826 | |||||
* | simplify intmax setup, patch by Ken Dyck! | Chris Lattner | 2009-10-29 | 1 | -15/+3 | |
| | | | | llvm-svn: 85481 | |||||
* | hookize wint_t's definition, patch by Edward O'Callaghan (from PR5233). | Chris Lattner | 2009-10-21 | 1 | -2/+1 | |
| | | | | llvm-svn: 84740 | |||||
* | Work-around wchar_t and __pragma problem in VC headers | John Thompson | 2009-10-16 | 1 | -2/+11 | |
| | | | | llvm-svn: 84227 | |||||
* | Move the "needs exception support" logic to clang. This also fixes | Rafael Espindola | 2009-10-01 | 1 | -2/+3 | |
| | | | | | | | -fno-exceptions in C++ code. We used to always define __EXCEPTIONS in C++. llvm-svn: 83199 | |||||
* | Non fragile ABI for GNU runtime. Patch bu David Chisnall. | Fariborz Jahanian | 2009-09-10 | 1 | -3/+0 | |
| | | | | llvm-svn: 81462 | |||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -40/+40 | |
| | | | | llvm-svn: 81346 | |||||
* | Don't use '%ll', this doesn't workin on Win32. | Daniel Dunbar | 2009-09-03 | 1 | -1/+3 | |
| | | | | llvm-svn: 80933 | |||||
* | Define _GNU_SOURCE in C++ mode so that clang works with GNU libstdc++. | Eli Friedman | 2009-08-27 | 1 | -0/+2 | |
| | | | | llvm-svn: 80289 | |||||
* | API changes to match llvm ToT. | Chris Lattner | 2009-08-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 79868 | |||||
* | Predefine __cplusplus to the right value (199711L), except when in GNU mode. | Douglas Gregor | 2009-08-06 | 1 | -1/+7 | |
| | | | | llvm-svn: 78283 | |||||
* | define __STDC_VERSION__ processor token for c94 | Ryan Flynn | 2009-07-21 | 1 | -4/+7 | |
| | | | | llvm-svn: 76514 | |||||
* | Fix for PR4192: fix the definition of int64_t on x86_64 Linux. | Eli Friedman | 2009-07-01 | 1 | -1/+1 | |
| | | | | | | | | | | | | | Note that I'm guessing that *BSD and Solaris do the same thing as Linux here, but it's quite possible I'm wrong; if the following testcase gives an error on x86-64 with gcc for any of those operating systems, please tell me: #include <stdint.h> int64_t x; long x; llvm-svn: 74583 | |||||
* | Make the StackProtector bitfield use enums instead of obscure numbers. | Bill Wendling | 2009-06-28 | 1 | -2/+2 | |
| | | | | llvm-svn: 74414 | |||||
* | Add stack protector support to clang. This generates the 'ssp' and 'sspreq' | Bill Wendling | 2009-06-28 | 1 | -1/+6 | |
| | | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405 | |||||
* | __APPLE_CC__ should only be set when building for darwin targets. | Chris Lattner | 2009-06-23 | 1 | -1/+0 | |
| | | | | llvm-svn: 73934 | |||||
* | PR4388: get rid of an extra # line directive; in addition to being | Eli Friedman | 2009-06-15 | 1 | -5/+1 | |
| | | | | | | | unnecessary, this was causing issues for assembler-with-cpp mode, which doesn't process the directive. llvm-svn: 73382 | |||||
* | Misc minor fixes for clang for the Windows target. | Eli Friedman | 2009-06-08 | 1 | -1/+0 | |
| | | | | llvm-svn: 73050 | |||||
* | Move CharIsSigned from TargetInfo to LangOptions. | Eli Friedman | 2009-06-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 72928 | |||||
* | Move a couple Darwin-specific defines into getDarwinDefines. | Eli Friedman | 2009-06-04 | 1 | -5/+0 | |
| | | | | llvm-svn: 72900 | |||||
* | DefineBuiltinMacro is always passed two args, remove the defaulted third | Chris Lattner | 2009-06-04 | 1 | -2/+2 | |
| | | | | | | one. llvm-svn: 72868 | |||||
* | Compile fix needed by the solaris system gcc. | Duncan Sands | 2009-06-03 | 1 | -5/+5 | |
| | | | | llvm-svn: 72772 | |||||
* | Add IEEE quad support to DefineFloatMacros. | Eli Friedman | 2009-05-23 | 1 | -15/+22 | |
| | | | | llvm-svn: 72314 | |||||
* | PR4247: Widen the buffer slightly so it can hold all the definitions for | Eli Friedman | 2009-05-23 | 1 | -1/+1 | |
| | | | | | | | | PPC double double. (No testcase because no normal target uses the format at the moment.) llvm-svn: 72310 | |||||
* | This patch adds support for sender-aware dispatch in Objective-C for the GNU ↵ | Fariborz Jahanian | 2009-05-22 | 1 | -0/+3 | |
| | | | | | | | | | | runtime, when compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object planes, and a few other things. Patch by David Chisnall. llvm-svn: 72275 | |||||
* | Remove unused parameter. | Eli Friedman | 2009-05-18 | 1 | -1/+0 | |
| | | | | llvm-svn: 71996 | |||||
* | Fix processing of -Ufoo to not inject "#undef foo 1" into the predefines | Chris Lattner | 2009-05-15 | 1 | -1/+11 | |
| | | | | | | | | | | | | | | | | buffer. This caused exciting nonsense like this: $ clang t.c -fsyntax-only -UMACRO In file included from <built-in>:104: <command line>:1:14: warning: extra tokens at end of #undef directive [-Wextra-tokens] #undef MACRO 1 ^ // 1 diagnostic generated. rdar://6891800 llvm-svn: 71860 | |||||
* | Add another workaround for -include. | Daniel Dunbar | 2009-04-22 | 1 | -3/+9 | |
| | | | | | | | | | | | | - If we don't find a file looking relative to the current working directory, fall back to header search. This is closer to what would happen if the lookup was starting from right directory in the first place (except it will find files in the directory of the main source file, which I *think* should not be found). - PR3992. llvm-svn: 69794 | |||||
* | Fix rdar://6814950 - stdint.h isn't "-pedantic -std=c89" clean, | Chris Lattner | 2009-04-22 | 1 | -2/+6 | |
| | | | | | | | | | | | | | | | | | | | | by marking the predefines buffer as a system header. The problem with stdint is that it was getting problems like this: /Volumes/Projects/cvs/llvm/Debug/lib/clang/1.0/include/stdint.h:43:9: warning: 'long long' is an extension when C99 mode is not enabled typedef __INT64_TYPE__ int64_t; ^ <built-in>:73:29: note: instantiated from: #define __INT64_TYPE__ long long ^ We correctly silence warnings in system headers, but only if the spelling location of the token came from the system header. This is designed so that if you use a system macro in your code that you don't get punished for its definition. This is all cool except that the predefines buffer wasn't considered a system header. llvm-svn: 69770 | |||||
* | this time with more workingness. | Chris Lattner | 2009-04-21 | 1 | -1/+0 | |
| | | | | llvm-svn: 69669 | |||||
* | fix massive testsuite failures from Alexei's patch due to inverted logic. | Chris Lattner | 2009-04-21 | 1 | -9/+7 | |
| | | | | llvm-svn: 69666 | |||||
* | Split preprocessor initialization logic out of clang-cc into | Chris Lattner | 2009-04-21 | 1 | -0/+469 | |
libfrontend. Patch by Alexei Svitkine! llvm-svn: 69664 |