summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/stdint.c
Commit message (Collapse)AuthorAgeFilesLines
* Some small improvements to the builtin (-ffreestanding) stdint.h; inEli Friedman2011-04-301-1/+7
| | | | | | particular, make sure to handle WCHAR_MIN correctly. llvm-svn: 130618
* PR9772: Fix the definition of WINT_MIN and WINT_MAX on Linux -ffreestanding.Eli Friedman2011-04-211-0/+6
| | | | llvm-svn: 129907
* Per discussion with Sanjiv, remove the PIC16 target from mainline. When/ifChris Lattner2010-10-111-100/+0
| | | | | | | it comes back, it will be largely a rewrite, so keeping the old codebase in tree isn't helping anyone. llvm-svn: 116191
* Headers: Define __INT64_TYPE__ in terms of getInt64Type(), which isn't alwaysDaniel Dunbar2010-06-301-8/+8
| | | | | | | | 'long'. The practical upshot is so that the uint64_t we define in our stdint.h ends up being compatible with that defined by gcc (at least on Darwin), which otherwise could lead to type incompatibilities with other system headers. llvm-svn: 107255
* Headers: Change [u]intmax_t to be defined in terms of __[U]INTMAX_TYPE__, ↵Daniel Dunbar2010-06-301-25/+25
| | | | | | instead of intN_t. llvm-svn: 107254
* Forgot to commit theseAnton Korobeynikov2010-01-141-11/+11
| | | | llvm-svn: 93458
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-12/+12
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Avoid unwanted expansion in macros that paste together INT<n>_C(v) and Ken Dyck2009-11-201-2/+2
| | | | | | UINT<n>_C(v) macros. llvm-svn: 89461
* Avoid unwanted expansion in macros that paste together INT<n>_MIN, INT<n>_MAX,Ken Dyck2009-11-201-15/+15
| | | | | | and UINT<n>_MAX defintions. llvm-svn: 89460
* Avoid unwanted macro expansion in macros that paste together int<n>_t andKen Dyck2009-11-201-0/+29
| | | | | | uint<n>_t definitions. llvm-svn: 89459
* Parameterize WINT_MIN and WINT_MAX with __WINT_WIDTH__ to support arbitrary Ken Dyck2009-11-191-4/+4
| | | | | | widths. This corrects the values of these definitions for MSP430 and PIC16. llvm-svn: 89350
* Define intptr_t and uintptr_t in terms of their equivalent exact-width types.Ken Dyck2009-11-181-22/+22
| | | | llvm-svn: 89237
* Define INTMAX_C and UINTMAX_C in terms of the corresponding exact-widthKen Dyck2009-11-181-12/+12
| | | | | | INTn_C and UINTn_C macros. llvm-svn: 89226
* Define INTMAX_MIN, INTMAX_MAX, and UINTMAX_MAX in terms of the limit macros forKen Dyck2009-11-181-15/+15
| | | | | | their corresponding exact-width type. llvm-svn: 89224
* Define intmax_t and uintmax_t as the [u]intN_t type corresponding toKen Dyck2009-11-181-22/+22
| | | | | | __INTMAX_WIDTH__. llvm-svn: 89221
* Replace (-INT8_C(128)), which uses an illegally out-of-range argument forKen Dyck2009-11-171-70/+70
| | | | | | | INT8_C, with (-INT8_C(127)-1) in the definition of INT8_MIN. Apply similar changes to the definitions of INT16_MIN and INT24_MIN. llvm-svn: 89120
* Use the INTn_C integer constant macros to generate limit constants with correctKen Dyck2009-11-171-74/+74
| | | | | | | suffixes. This corrects the suffixes for the limit constants of the 32-bit types on MSP430 and PIC16, and the 64-bit types on PPC64, SystemZ, X86_64. llvm-svn: 89101
* Remove unnecessary parens around the bodies of integer constant macros. C99Ken Dyck2009-11-171-105/+105
| | | | | | | requires that their arguments be decimal, hex, octal constants---no signs allowed---making the parens unnecessary. llvm-svn: 89095
* Parameterize the constant-generating macros in stdint.h with new built-inKen Dyck2009-11-161-10/+10
| | | | | | | __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 Lattner2009-11-121-33/+33
| | | | | | | | | | 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 infoChris Lattner2009-11-121-4/+4
| | | | | | | 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
* Remove RUN: true lines.Daniel Dunbar2009-11-081-1/+0
| | | | llvm-svn: 86432
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-11/+11
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* clean up integer preprocessor type definitions, patch by Ken Dyck!Chris Lattner2009-11-051-4/+4
| | | | llvm-svn: 86177
* A simple reordering of the definitions in stdint.h and Chris Lattner2009-11-041-193/+183
| | | | | | introduces no new function changes. Patch by Ken Dyck! llvm-svn: 86062
* add two new and very exhaustive preprocessor tests, patch byChris Lattner2009-10-291-0/+1244
Ken Dyck! llvm-svn: 85482
OpenPOWER on IntegriCloud