db9e9e61f8311d8852bd15730f78e56f3ffa0508 |
|
15-Mar-2011 |
Ted Kremenek <kremenek@apple.com> |
Remove warning for null characters in CFString literals. Clang handles them just fine, and GCC 4.2 doesn't warn here either. We added this warning back in 2007 when we were comparing against GCC 4.0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
2fb985bdda20037bda228628acd4cbaa8a3b36ac |
|
15-Oct-2010 |
Gabor Greif <ggreif@gmail.com> |
zap trailing whitespace git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116572 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
75c29a012793292ff4578015a9113bf086156d7f |
|
12-Oct-2010 |
Chris Lattner <sabre@nondot.org> |
fix PR7885, rejecting invalid uses of __builtin_constant_p. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
7da71020b97c69b95831bd03d35e8e8404bfdea0 |
|
07-Sep-2010 |
Fariborz Jahanian <fjahanian@apple.com> |
Have Sema check for validity of CGString literal instead of asserting in IRGen. Fixes radar 8390459. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
1e32ca6e3007e09073ddafb3cb5e0adc1f83293c |
|
25-Aug-2010 |
Douglas Gregor <dgregor@apple.com> |
Implement __builtin_printf, __builtin_fprintf. Fixes <rdar://problem/8336581>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112049 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
c46111e821664fcdf54d07325a384570972e9cae |
|
28-Jul-2010 |
Douglas Gregor <dgregor@apple.com> |
Make the pointer arguments to the __sync_* builtins pointers to volatile-qualified types. Fixes <rdar://problem/8228293>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
dee832c8958ca100c671881b6541fbb857a33592 |
|
27-Jul-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Mark __builtin_eh_return as noreturn. Patch by Dimitry Andric. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109452 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
db4325b098eff5e9e660db19f0148423fb21f27f |
|
18-Jul-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Improve the representation of the atomic builtins in a few ways. First, we make their call expressions synthetically have the "deduced" types based on their first argument. We only insert conversions in the AST for arguments whose values require conversion to match the value type expected. This keeps PR7600 closed by maintaining the return type, but avoids assertions due to unexpected implicit casts making the type unsigned (test case added from Daniel). The magic is moved into the codegen for the atomic builtin which inserts the casts as needed at the IR level to raise the type to an integer suitable for the LLVM intrinsic. This shouldn't cause any real change in functionality, but now we can make the builtin be more truly polymorphic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108638 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
d201457cc781f1b13d0f4b1268ff934e6004cbff |
|
09-Jul-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Fix PR7600, and correctly convert the result of an atomic builtin to the expected value type. This is necessary as the builtin is internally represented as only operating on integral types. Also, add a FIXME to add support for floating point value types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108002 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
5e8965525282a48fd34af05183b8c3705a5b00d5 |
|
19-Apr-2010 |
Eric Christopher <echristo@apple.com> |
Remove the argument number from the constant integer diagnostic. Update all of the testcases accordingly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101795 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
691ebc3f3225542e5abd85e107ebdbec907cf510 |
|
17-Apr-2010 |
Eric Christopher <echristo@apple.com> |
Consolidate most of the integer constant expression builtin requirement checking into a single function and use that throughout. Remove some now unnecessary diagnostics and update tests with now more accurate diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
634785ca8423b6dd6c15e80714a076c3aaa5a047 |
|
30-Dec-2009 |
Chris Lattner <sabre@nondot.org> |
testcase for previous patch! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
9a8c9a2eacd80437f18edb339a37516ab7e773cd |
|
28-Sep-2009 |
Douglas Gregor <dgregor@apple.com> |
Provide a custom diagnostic when code tries to use an unknown builtin git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
50dd255e5ad05f0d44bb92f358ff3f541a3d7a4b |
|
26-Sep-2009 |
Chris Lattner <sabre@nondot.org> |
builtin_trap should be noreturn, this fixes PR5062, patch by Roman Divacky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82876 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
21fb98ee003e992b0c4e204d98a19e0ef544cae3 |
|
23-Sep-2009 |
Chris Lattner <sabre@nondot.org> |
implement support for __builtin_eh_return_data_regno on x86-32 and x86-64. This implements PR5034 and rdar://6836445. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
21190d54634d6e244e85d28ad915ce2fe86ecbff |
|
21-Sep-2009 |
Chris Lattner <sabre@nondot.org> |
Implement __builtin_unreachable(), a GCC 4.5 extension. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
d1969d803cfcc65f1c334df4cc89c7fdd33ee4c9 |
|
22-Jul-2009 |
Mike Stump <mrs@apple.com> |
Prep for new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76709 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
dc5a1bdd4c9290eb36e32c20729751c3c47ca61d |
|
06-Jun-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Test changes to account for removed builtins. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
e7ac0a94f1dee3fae9292eb8372962b6d70b3e0d |
|
08-May-2009 |
Chris Lattner <sabre@nondot.org> |
Fix the atomics sema code to convert operands to the argument types of the underlying _N builtin, not the the type of the pointee of the actual type. This ensures that atomics involving pointers end up using the correct integer type when they are resolved, avoiding aborts in codegen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
5caa370ea6f70bd3e7e4a9cc3b69ac1a849c8534 |
|
08-May-2009 |
Chris Lattner <sabre@nondot.org> |
reimplement __sync_* builtins to be variadic and to follow the same semantic rules that gcc and icc use. This implements the variadic and concrete versions as builtins and has sema do the disambiguation. There are probably a bunch of details to finish up but this seems like a large monotonic step forward :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
eb32fde032a250091134db56a3aeaea6b09f6594 |
|
28-Apr-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Simplify the scheme used for keywords, and change the classification scheme to be more useful. The new scheme introduces a set of categories that should be more readable, and also reflects what we want to consider as an extension more accurately. Specifically, it makes the "what is a keyword" determination accurately reflect whether the keyword is a GNU or Microsoft extension. I also introduced separate flags for keyword aliases; this is useful because the classification of the aliases is mostly unrelated to the classification of the original keyword. This patch treats anything that's in the implementation namespace (prefixed with "__", or "_X" where "X" is any upper-case letter) as a keyword without marking it as an extension. This is consistent with the standards in that an implementation is allowed to define arbitrary extensions in the implementation namespace without violating the standard. This gets rid of all the nasty "extension used" warnings for stuff like __attribute__ in -pedantic mode. We still warn for extensions outside of the the implementation namespace, like typeof. If someone wants to implement -Wextensions or something like that, we could add additional information to the keyword table. This also removes processing for the unused "Boolean" language option; such an extension isn't supported on any other C implementation, so I don't see any point to adding it. The changes to test/CodeGen/inline.c are required because previously, we weren't actually disabling the "inline" keyword in -std=c89 mode. I'll remove Boolean and NoExtensions from LangOptions in a follow-up commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70281 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
c561367f6730e2795f72f31c52b39b007e952e7b |
|
02-Apr-2009 |
Mike Stump <mrs@apple.com> |
We no longer expect an warning as this is now valid. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
2c21a073525cdfa68e4439b7af551385dc2796ab |
|
21-Nov-2008 |
Chris Lattner <sabre@nondot.org> |
merge some simple call diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
143520261eb41411beb3e2a8cf6d8dc822db7d50 |
|
25-May-2008 |
Eli Friedman <eli.friedman@gmail.com> |
Fix this test on non-X86 platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51552 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
95e2c71181c7ec1ffea0066bbae49e8742bd0687 |
|
06-May-2008 |
Chris Lattner <sabre@nondot.org> |
Fix rdar://5905347 a crash on invalid builtin, due to the params not getting installed for builtins when synthesized. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
b7b61159325e002998ff950fdc70a6425a6b13b3 |
|
04-Jan-2008 |
Chris Lattner <sabre@nondot.org> |
add comments for the various AssignConvertType's, and split int->pointer from pointer->int. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
5cf216b7fa64b933b60743b0b26053e8e7aa87be |
|
04-Jan-2008 |
Chris Lattner <sabre@nondot.org> |
Merge all the 'assignment' diagnostic code into one routine, decloning it from several places. This merges the diagnostics, making them more uniform and fewer in number. This also simplifies and cleans up the code. Some highlights: 1. This removes a bunch of very-similar diagnostics. 2. This renames AssignmentCheckResult -> AssignConvertType 3. This merges PointerFromInt + IntFromPointer which were always treated the same. 4. This updates a bunch of test cases that have minor changes to the produced diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45589 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|
1b9a0793955070738cac6f04b5abe9496be9b317 |
|
20-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
implement semantic analysis for __builtin_islessequal and friends. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/builtins.c
|