- Feb 13, 2009
-
-
Daniel Dunbar authored
llvm-svn: 64411
-
Mike Stump authored
_GCC_LIMITS_H_ is defined, when __GNUC__ is defined. Also, we need to stay away from possible conflicts with header guards. We should use CLANG_ to prefix all header guards. llvm-svn: 64408
-
- Feb 12, 2009
-
-
Daniel Dunbar authored
llvm-svn: 64397
-
-
Douglas Gregor authored
union subobject initialization before checking whether the next initiailizer was actually a designated initializer. This led to spurious "excess elements in union initializer" errors. Thanks to rdivacky for reporting the bug! llvm-svn: 64392
-
Fariborz Jahanian authored
to a base class (nonfragile abi ir gen bug). llvm-svn: 64391
-
Mike Stump authored
tried to put FIXMEs on the most important things to fix up. Lots left to do including more codegen, more documentation and cleaning code and style cleanups. llvm-svn: 64390
-
Steve Naroff authored
llvm-svn: 64389
-
Anders Carlsson authored
llvm-svn: 64387
-
Fariborz Jahanian authored
abi for objective-c programs. llvm-svn: 64386
-
Steve Naroff authored
- rename isObjCIdType/isObjCClassType -> isObjCIdStructType/isObjCClassStructType. The previous name didn't do what you would expect. - add back isObjCIdType/isObjCClassType to do what you would expect. Not currently used, however many of the isObjCIdStructType/isObjCClassStructType clients could be converted over time. - move static Sema function areComparableObjCInterfaces to ASTContext (renamed to areComparableObjCPointerTypes, since it now operates on pointer types). llvm-svn: 64385
-
Daniel Dunbar authored
llvm-svn: 64380
-
Steve Naroff authored
Turn warning into error. Minor incompatibility with GCC (for scalar types, GCC only produces a warning). llvm-svn: 64375
-
Daniel Dunbar authored
designating an object. llvm-svn: 64371
-
Daniel Dunbar authored
- Doesn't yet handle case where values are passed in mixed (general purpose & floating point) registers; otherwise largely functional. Code still needs some cleaning. Fixes: MultiSource/Applications/lua/lua MultiSource/Applications/siod/siod MultiSource/Applications/sqlite3/sqlite3 SingleSource/Regression/C/PR640 SingleSource/UnitTests/2003-07-09-SignedArgs SingleSource/UnitTests/2007-03-02-VaCopy gcc compat test suite results (Darwin x86-32 & -64): -- # of expected passes 1262 # of unexpected failures 56 # of unresolved testcases 34 # of unsupported tests 2 Compare to: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090209/012050.html llvm-svn: 64370
-
Ted Kremenek authored
llvm-svn: 64356
-
Ted Kremenek authored
llvm-svn: 64355
-
Ted Kremenek authored
llvm-svn: 64354
-
Ted Kremenek authored
to use this stat information in the PTH file using a 'StatSysCallCache' object. Performance impact (Cocoa.h, PTH): - number of stat calls reduces from 1230 to 425 - fsyntax-only: time improves by 4.2% We can reduce the number of stat calls to almost zero by caching negative stat calls and directory stat calls in the PTH file as well. llvm-svn: 64353
-
Ted Kremenek authored
- set the 'StatSysCallCache' object using a setter method instead of FileManager's constructor. This allows the cache to be installed after the FileManager object is created. - Add 'file mode' to FileEntry (useful for stat caching) llvm-svn: 64351
-
Chris Lattner authored
llvm-svn: 64348
-
Anders Carlsson authored
llvm-svn: 64346
-
Ted Kremenek authored
for use by FileManager. FileManager now takes a StatSysCallCache* in its constructor (which defaults to NULL). This will be used for evaluating whether or not caching 'stat' system calls in PTH is a performance win. This shim adds no observable performance impact in the case where the 'StatSysCallCache*' is null. llvm-svn: 64345
-
Douglas Gregor authored
complex conversions where the conversion between the real types is an integral promotion. This is how G++ handles complex promotions for its complex integer extension. llvm-svn: 64344
-
Douglas Gregor authored
system. Since C99 doesn't have overloading and C++ doesn't have _Complex, there is no specification for this. Here's what I think makes sense. Complex conversions come in several flavors: - Complex promotions: a complex -> complex conversion where the underlying real-type conversion is a floating-point promotion. GCC seems to call this a promotion, EDG does something else. This is given "promotion" rank for determining the best viable function. - Complex conversions: a complex -> complex conversion that is not a complex promotion. This is given "conversion" rank for determining the best viable function. - Complex-real conversions: a real -> complex or complex -> real conversion. This is given "conversion" rank for determining the best viable function. These rules are the same for C99 (when using the "overloadable" attribute) and C++. However, there is one difference in the handling of floating-point promotions: in C99, float -> long double and double -> long double are considered promotions (so we give them "promotion" rank), while C++ considers these conversions ("conversion" rank). llvm-svn: 64343
-
Fariborz Jahanian authored
All relevant dejagnu enocding tests pass in this mode. llvm-svn: 64341
-
Ted Kremenek authored
llvm-svn: 64338
-
Mike Stump authored
llvm-svn: 64337
-
Douglas Gregor authored
This commit adds a new attribute, "overloadable", that enables C++ function overloading in C. The attribute can only be added to function declarations, e.g., int *f(int) __attribute__((overloadable)); If the "overloadable" attribute exists on a function with a given name, *all* functions with that name (and in that scope) must have the "overloadable" attribute. Sets of overloaded functions with the "overloadable" attribute then follow the normal C++ rules for overloaded functions, e.g., overloads must have different parameter-type-lists from each other. When calling an overloaded function in C, we follow the same overloading rules as C++, with three extensions to the set of standard conversions: - A value of a given struct or union type T can be converted to the type T. This is just the identity conversion. (In C++, this would go through a copy constructor). - A value of pointer type T* can be converted to a value of type U* if T and U are compatible types. This conversion has Conversion rank (it's considered a pointer conversion in C). - A value of type T can be converted to a value of type U if T and U are compatible (and are not both pointer types). This conversion has Conversion rank (it's considered to be a new kind of conversion unique to C, a "compatible" conversion). Known defects (and, therefore, next steps): 1) The standard-conversion handling does not understand conversions involving _Complex or vector extensions, so it is likely to get these wrong. We need to add these conversions. 2) All overloadable functions with the same name will have the same linkage name, which means we'll get a collision in the linker (if not sooner). We'll need to mangle the names of these functions. llvm-svn: 64336
-
- Feb 11, 2009
-
-
Fariborz Jahanian authored
all but one dejagnu encoding tests for darwin pass in nonfragile abi mode. llvm-svn: 64334
-
Daniel Dunbar authored
case on x86_64. llvm-svn: 64333
-
Ted Kremenek authored
actually *slightly* slower than the binary search. Since this is algorithmically better, further performance tuning should be able to make this faster. llvm-svn: 64326
-
Daniel Dunbar authored
llvm-svn: 64325
-
Fariborz Jahanian authored
llvm-svn: 64323
-
Douglas Gregor authored
llvm-svn: 64321
-
rdar://problem/6505139Steve Naroff authored
Fix <rdar://problem/6505139> [clang on growl]: need to allow unnamed selectors as the first argument llvm-svn: 64320
-
-
Douglas Gregor authored
for non-external names whose address becomes the template argument. This completes C++ [temp.arg.nontype]p1. Note that our interpretation of C++ [temp.arg.nontype]p1b3 differs from EDG's interpretation (we're stricter, and GCC agrees with us). They're opening a core issue about the matter. llvm-svn: 64317
-
Mike Stump authored
llvm-svn: 64313
-
Douglas Gregor authored
Sema to ASTContext. llvm-svn: 64312
-