summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support to the Clang driver for forwarding all of gfortran's flagsChandler Carruth2013-10-173-4/+325
| | | | | | | | | | to GCC when asked to compile a fortran input. This fixes a regression with essentially every Fortran compile since we started rejecting unknown flags. Also moves a mis-classified gfortran flag into the nicely documented set. llvm-svn: 192867
* Add the context that a function was created in as the context for theEric Christopher2013-10-172-8/+46
| | | | | | function, not the context of the context. llvm-svn: 192862
* Add implementations of the MSVC barrier intrinsicsReid Kleckner2013-10-172-1/+33
| | | | | | | | | | | | | | | | Summary: These are deprecated in VS 2012 according to MSDN. They don't actually compile down to any code. They prevent the compiler from reordering memory accesses across the barrier, which is what a memory-clobbering volatile asm does. Reviewers: echristo CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1954 llvm-svn: 192860
* ObjectiveC migrator. Remove blank linesFariborz Jahanian2013-10-164-59/+6
| | | | | | | when inferring property from setter/getter methods. // rdar://15200949 llvm-svn: 192853
* Rename HandleTargetFeatures->handleTargetFeatures to matchEric Christopher2013-10-162-13/+13
| | | | | | everything else in the class. llvm-svn: 192851
* Add preprocessor support for powerpc vsx.Eric Christopher2013-10-162-2/+41
| | | | | | The test should be expanded upon for more powerpc checking. llvm-svn: 192849
* Remove an old, seemingly out of date, comment.Eric Christopher2013-10-161-3/+0
| | | | | | The referenced script no longer seems to exist. llvm-svn: 192848
* Fix comments.Eric Christopher2013-10-161-2/+2
| | | | llvm-svn: 192847
* PR17592: Ensure we diagnose shadowing a template parameter with a local externRichard Smith2013-10-162-2/+73
| | | | | | declaration. llvm-svn: 192846
* [AArch64] Add support for NEON scalar negate instruction.Chad Rosier2013-10-163-0/+14
| | | | llvm-svn: 192845
* [AArch64] Add support for NEON scalar absolute value instruction.Chad Rosier2013-10-163-0/+14
| | | | llvm-svn: 192844
* ObjectiveC migrator. Don't add 'assign' forFariborz Jahanian2013-10-163-2/+21
| | | | | | | inferred properties when type is scalar and assumed to be 'assign. // rdar://15231241 llvm-svn: 192841
* Add minimal command line support for the VSX powerpc processor.Eric Christopher2013-10-162-0/+9
| | | | | | Preprocessor support is still needed. llvm-svn: 192839
* Rework ppc options handling into a features group.Eric Christopher2013-10-163-28/+39
| | | | | | This should have no functional behavior. llvm-svn: 192838
* ObjectiveC migrator. 'atomic' is the default attribute.Fariborz Jahanian2013-10-162-65/+88
| | | | | | Don't add it to inferred property. // rdar://14988132 llvm-svn: 192834
* Emit a .ident saying that clang produced this file.Rafael Espindola2013-10-164-3/+27
| | | | | | Patch by Katya Romanova. llvm-svn: 192832
* Enabling 3DNow! prefetch instruction support for a few AMD processors in theYunzhong Gao2013-10-163-0/+40
| | | | | | | | | | clang front end. This change will allow the __PRFCHW__ macro to be set on these processors and hence include prfchwintrin.h in x86intrin.h header. Support for the intrinsic itself seems to have already been added in r178041. Differential Revision: http://llvm-reviews.chandlerc.com/D1934 llvm-svn: 192829
* ObjectiveC migrator. Use 'assign' for 'delegate'Fariborz Jahanian2013-10-164-16/+16
| | | | | | properties. // rdar://15231860 llvm-svn: 192826
* [-cxx-abi microsoft] Fix this argument/parameter offsets for virtual ↵Timur Iskhodzhanov2013-10-167-25/+418
| | | | | | | | destructors in the presence of virtual bases Reviewed at http://llvm-reviews.chandlerc.com/D1939 llvm-svn: 192822
* ObjectiveC++: support for passing C++11 style initialized temporaries to Fariborz Jahanian2013-10-162-0/+41
| | | | | | | objc++ properties using property-dot syntax. // rdar://14654207 llvm-svn: 192819
* [analyzer] Don't draw edges to C++11 in-class member initializers.Jordan Rose2013-10-162-2/+234
| | | | | | | | | | | Since these aren't lexically in the constructor, drawing arrows would be a horrible jump across the body of the class. We could still do better here by skipping over unimportant initializers, but this at least keeps everything within the body of the constructor. <rdar://problem/14960554> llvm-svn: 192818
* Driver: Factor duplicated code.Benjamin Kramer2013-10-161-36/+25
| | | | llvm-svn: 192817
* [mips] Enable frame-pointer elimination for -O1 and above.Akira Hatanaka2013-10-162-2/+19
| | | | llvm-svn: 192815
* Add a note about clang now rejecting unknown options.Rafael Espindola2013-10-161-0/+3
| | | | llvm-svn: 192808
* Update comment.Chad Rosier2013-10-161-1/+1
| | | | llvm-svn: 192807
* Update comment.Chad Rosier2013-10-161-1/+1
| | | | llvm-svn: 192804
* Sema: Simplify the check if a method returns an instance of the class.Benjamin Kramer2013-10-162-1/+19
| | | | | | | Just checking if the parent of the method is the same as the return type should be sufficient. Also fixes PR17587. llvm-svn: 192802
* [AArch64] Add support for NEON scalar signed saturating accumulated of unsignedChad Rosier2013-10-163-0/+70
| | | | | | value and unsigned saturating accumulate of signed value instructions. llvm-svn: 192801
* Remove a workaround for PR16406 from the vtables-virtual-inheritance testTimur Iskhodzhanov2013-10-161-11/+8
| | | | llvm-svn: 192786
* On 32 bit windows, mangle stdcall and fastcall decls in clang.Rafael Espindola2013-10-167-58/+226
| | | | | | | | | | | This removes the dependency on the llvm mangler doing it for us. In isolation, the benefit is that the testing of what mangling is applied is all in one place: (C, C++) X (Itanium, Microsoft) are all handled by clang. This also gives me hope that in the future the llvm mangler (and llvm-ar) will not depend on TargetMachine. llvm-svn: 192762
* Test that we can merge together explicit and partial specializations fromRichard Smith2013-10-155-0/+35
| | | | | | merged declarations of a class template. llvm-svn: 192746
* C++ modules: merging for enumerations and enumerators with multiple definitionsRichard Smith2013-10-157-1/+76
| | | | | | (eg through template instantiations in multiple modules). llvm-svn: 192740
* Teach the AST dumper to dump the canonical declaration for a mergeable ↵Richard Smith2013-10-151-9/+16
| | | | | | declaration. llvm-svn: 192739
* Remove this regression test now that PR17578 is fixed (r192674). The fix is toYunzhong Gao2013-10-151-14/+0
| | | | | | reject this test case at the Sema stage, so no CodeGen test should be needed. llvm-svn: 192738
* Reflow slightly.Eric Christopher2013-10-151-2/+2
| | | | llvm-svn: 192736
* [AArch64] Add support for NEON scalar signed saturating absolute value andChad Rosier2013-10-153-0/+69
| | | | | | scalar signed saturating negate instructions. llvm-svn: 192734
* Add constant evaluation support for __builtin_isinf, __builtin_isfinite,Richard Smith2013-10-152-0/+76
| | | | | | __builtin_isnan, and __builtin_isnormal. Patch by Karthik Bhat! Tests by me. llvm-svn: 192729
* Add llvm_unreachable to pacify GCC's dropping off non-void function warning.Benjamin Kramer2013-10-151-1/+4
| | | | | | + 80 cols fix. llvm-svn: 192728
* ms-compat: Fix taking the address of a member of a dependent baseReid Kleckner2013-10-154-6/+60
| | | | | | | | | | | | | | | | | | | | | | If unqualified id lookup fails while parsing a class template with a dependent base, clang with -fms-compatibility will pretend the user prefixed the name with 'this->' in order to delay the lookup. However, if there was a unary ampersand, Sema::ActOnDependentIdExpression() will create a DependentDeclRefExpr, which is not what we wanted at all. Fix this by building the CXXDependentScopeMemberExpr directly instead. In order to be fully MSVC compatible, we would have to defer all attempts at name lookup to instantiation time. However, until we have real problems with system headers that can't be parsed, we'll put off implementing that. Fixes PR16014. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1892 llvm-svn: 192727
* [libclang] For an unscoped enum include the enumerators in the top-level ↵Argyrios Kyrtzidis2013-10-151-0/+12
| | | | | | | | code-completion hash since they enter the top-level namespace. rdar://14703327 llvm-svn: 192720
* ObjectiveC driver. Scrap -fno-objc-legacy-dispatch for NeXTFariborz Jahanian2013-10-154-9/+6
| | | | | | | runtime. It will be silently ignored and regardless of deployment target. // rdar://14803286 llvm-svn: 192719
* [libclang] When querying for the availability of an enumerator, pick up the ↵Argyrios Kyrtzidis2013-10-152-40/+85
| | | | | | | | availability from the enum declaration. rdar://14789001. llvm-svn: 192718
* Don't depend on alias to declarations.Rafael Espindola2013-10-151-0/+3
| | | | | | Accepting them is a bug (pr17535), not a feature. llvm-svn: 192712
* Fixed code style of my change.Serge Pavlov2013-10-151-1/+1
| | | | llvm-svn: 192708
* Sema: Cleanup formatting of C++ exceptions related codeDavid Majnemer2013-10-151-27/+16
| | | | | | No functional change. llvm-svn: 192684
* Sema: Cleanup formatting of SEH related codeDavid Majnemer2013-10-151-41/+31
| | | | | | No functional change. llvm-svn: 192683
* Sema: Don't crash when __try/__except/__finally appears in a template functionDavid Majnemer2013-10-152-3/+26
| | | | | | | | | | | We wouldn't transform the compound statement in any of these forms, causing crashes when it got time to act on them. Additionally, we wouldn't check to see if the handler was invalid before deciding whether or not we should continue acting on the __try. This fixes PR17584. llvm-svn: 192682
* docs: Remove incompatibility with Solaris shellDavid Majnemer2013-10-151-3/+1
| | | | | | | | | | There doesn't seem to be a need in checking if a directory exists if we will just rm -rf it once we affirm that it does. Instead, just blindly try to delete it. This fixes PR17541. llvm-svn: 192680
* clang/test/Driver/netbsd.c*: Tweak path separators to be matched on win32 ↵NAKAMURA Takumi2013-10-152-36/+36
| | | | | | driver. llvm-svn: 192676
* Sema: Consider it an error to apply __builtin_offsetof to a member in a ↵David Majnemer2013-10-153-2/+20
| | | | | | | | | | virtual base icc 13 and g++ 4.9 both reject this while we would crash. Fixes PR17578. llvm-svn: 192674
OpenPOWER on IntegriCloud