- Apr 14, 2009
-
-
Chris Lattner authored
C99 mode. This is a regression from an earlier patch of mine. This also simplifies the linkage enums a bit. llvm-svn: 69069
-
Fariborz Jahanian authored
This will match gcc's behavior in the arena. llvm-svn: 69061
-
Mike Stump authored
llvm-svn: 69055
-
Chris Lattner authored
llvm-svn: 69054
-
Daniel Dunbar authored
llvm-svn: 69053
-
Douglas Gregor authored
Add a tricky, tricky test case for PCH that we currently don't handle. Committed with a FIXME so that we don't forget it llvm-svn: 69052
-
Chris Lattner authored
llvm-svn: 69051
-
Anders Carlsson authored
llvm-svn: 69050
-
Evan Cheng authored
llvm-svn: 69049
-
Sanjiv Gupta authored
Literal value calculation isn't likely to overflow on targets having int as 32 or less. Fixing the assert as it otherwise triggers for PIC16 which as i16 as int. llvm-svn: 69046
-
Chris Lattner authored
pulling some attribute munging stuff into GetLinkageForFunction. This should fix PR3986 llvm-svn: 69045
-
Chris Lattner authored
llvm-svn: 69044
-
Douglas Gregor authored
wrap-up (e.g., turning tentative definitions into definitions). Also, very that, when we actually use the PCH file, we get the ride code generation for tentative definitions and definitions that show up in the PCH file. llvm-svn: 69043
-
Steve Naroff authored
This fixes <rdar://problem/6782722> XCDataTipsManager.m registers, observes notifications in class methods. The radar above is the result of clang typing 'self' in a class method as 'Class', which results in some spurious warnings (GCC types 'self' in a class method as 'id'). I considered changing the type of 'self' to 'id' (to conform to GCC), however this resulted in *many* test cases breaking. In addition, I really prefer a more strongly typed 'self'. All in all, this is the least obtrusive fix I could find for removing the spurious warnings (though we do loose some valid warnings). llvm-svn: 69041
-
Daniel Dunbar authored
- Pull out SetCommonAttributes, which handles the things common to aliases, methods, functions, and variables. - Pull out SetLLVMFunctionAttributesForDefinition, which handles the LLVM attributes which we only want to apply to a definition (like noinline and alwaysinline). - Kill SetGVDeclarationAttributes (inlined into SetFunctionAttributes and specialized). - Kill SetFunctionAttributesForDefinition (inlined into sole caller). - Inline SetGVDefinitionAttributes into SetMethodAttributes and specialize. - Rename SetGVDefinitionAttributes to SetFunctionDefinitionAttributes. This is supposed to be a no functionality change commit, but I may have made a mistake. llvm-svn: 69036
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 69035
-
Daniel Dunbar authored
disambiguate it. - No functionality change. llvm-svn: 69034
-
Daniel Dunbar authored
llvm-svn: 69033
-
Chris Lattner authored
not in c89 mode). llvm-svn: 69032
-
Chris Lattner authored
inlined for some reason, then we don't want a strong or even weak definition. llvm-svn: 69031
-
Chris Lattner authored
llvm-svn: 69030
-
Daniel Dunbar authored
llvm-svn: 69029
-
Chris Lattner authored
llvm-svn: 69028
-
Daniel Dunbar authored
llvm-svn: 69027
-
Chris Lattner authored
llvm-svn: 69026
-
Chris Lattner authored
llvm-svn: 69025
-
Chris Lattner authored
t.c:3:8: warning: extra tokens at end of #endif directive #endif foo ^ // Don't do this in strict-C89 mode because bcpl comments aren't valid there, and it is too much trouble to analyze whether C block comments are safe. llvm-svn: 69024
-
Chris Lattner authored
Warning to properly report that it is an import/include_next instead of claiming it is a #include. llvm-svn: 69023
-
Sanjiv Gupta authored
llvm-svn: 69022
-
Mike Stump authored
llvm-svn: 69021
-
Daniel Dunbar authored
- Exposed quite a few Sema issues and a CodeGen crash. - See FIXMEs in test case, and in SemaDecl.cpp (PR3983). I'm skeptical that __private_extern__ should actually be a storage class value. I think that __private_extern__ basically amounts to extern A __attribute__((visibility("hidden"))) and would be better off handled (a) as that, or (b) with an extra bit in the VarDecl. llvm-svn: 69020
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 69019
-
Dale Johannesen authored
delete it. llvm-svn: 69018
-
Owen Anderson authored
deleting, not just the basic block. llvm-svn: 69011
-
Mike Stump authored
llvm-svn: 69010
-
Mike Stump authored
llvm-svn: 69009
-
Dale Johannesen authored
memory and aren't volatile. This was interfering with good scheduling. llvm-svn: 69008
-
Steve Naroff authored
llvm-svn: 69007
-
Evan Cheng authored
Fix PR3934 part 2. findOnlyInterestingUse() was not setting IsCopy and IsDstPhys which are returned by value and used by callee. This happened to work on the earlier test cases because of a logic error in the caller side. llvm-svn: 69006
-
Douglas Gregor authored
non-inline external definitions (and tentative definitions) that are found at the top level. The corresponding declarations are stored in a record in the PCH file, so that they can be provided to the ASTConsumer (via HandleTopLevelDecl) when the PCH file is read. llvm-svn: 69005
-