summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* [Embtk] MIPS32/MIPS64: __atomic builtins sizes: sync to upstream codeembtk-support-release-3.2Abdoulaye Walsimou Gaye2013-05-10
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: getARMTargetCPU(): correctly use default configured in all placesAbdoulaye Walsimou Gaye2013-05-09
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] gnutools::Assemble: MIPS: explicitly add -call_nonpic when compiling ↵Abdoulaye Walsimou Gaye2013-05-08
| | | | | | | non PIC code Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org> (cherry picked from commit eb59af8b10ff9621d75e9a57a531783ce898c313)
* [Embtk]: MIPS64: Allow __atomic builtins with integral scalar or pointer ↵Abdoulaye Walsimou Gaye2013-03-05
| | | | | | type up to 16 bytes Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS32: Allow __atomic builtins with integral scalar or pointer ↵Abdoulaye Walsimou Gaye2013-03-05
| | | | | | type up to 8 bytes Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: ARM: Allow __atomic builtins with integral scalar or pointer type ↵Abdoulaye Walsimou Gaye2013-03-05
| | | | | | up to 8 bytes Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: Implement __builtin_eh_return_data_regno()Abdoulaye Walsimou Gaye2013-02-23
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] MIPS: fix __builtin_eh_return_data_regnoAbdoulaye Walsimou Gaye2013-02-10
| | | | | | | This patch is needed for example to make libcxxrt __gxx_personality_v0 function for c++ exceptions handling to work, as this bultin is used there. Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS32: correctly set dynamic linker for uClibc and musl TriplesAbdoulaye Walsimou Gaye2013-02-03
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS: getMipsCPUAndABI(): support more possible GNU TriplesAbdoulaye Walsimou Gaye2013-02-03
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS: Use default -mabi when it was configuredAbdoulaye Walsimou Gaye2013-02-03
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS: give ability to use -mabi=64 as allowed by GCCAbdoulaye Walsimou Gaye2013-02-03
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS: use default float abi when specified at configure timeAbdoulaye Walsimou Gaye2013-02-03
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk]: MIPS: give ability to pass -mabi=32 for abi o32 as allowed by GCCAbdoulaye Walsimou Gaye2013-01-30
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: getARMTargetCPU(): fix build error when no default cpu selectedAbdoulaye Walsimou Gaye2013-01-27
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* Refactor the x86 CPU name logic in the driver and pass -march and -mcpuembtoolkit-1.1.0Chandler Carruth2013-01-13
| | | | | | | | | | | | | flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer. Fixes PR14697. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172354 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 700d4e44793697288dd827c272ad363945f590a9) Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] include llvm config.h to get defaultsAbdoulaye Walsimou Gaye2013-01-01
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] linux toolchains: use default linker hash-style when it was set at ↵Abdoulaye Walsimou Gaye2012-12-31
| | | | | | configure time Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: hard float: take into account default configured FPU if no ↵Abdoulaye Walsimou Gaye2012-12-31
| | | | | | | | | | -mfpu speecified In case of hard floating point without -mfpu, take into account default configured FPU if any. And if no FPU is selected at all use vfp by default. Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: getARMFloatABI(): fix build error when no default abi configuredAbdoulaye Walsimou Gaye2012-12-31
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: used default float abi when it is set at configure timeAbdoulaye Walsimou Gaye2012-12-31
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: linuxtools::Assemble::ConstructJob(): always set -mcpuAbdoulaye Walsimou Gaye2012-12-30
| | | | Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: getARMTargetCPU(): return default configured cpu if -march and ↵Abdoulaye Walsimou Gaye2012-12-30
| | | | | | -mcpu are not specified Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* [Embtk] ARM: correctly set the -dynamic-linker for musleabi and uclibceabi ↵Abdoulaye Walsimou Gaye2012-12-24
| | | | | | triples Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
* Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-12-24
|\
| * Added Documentation and ASan notes, clean-up of emtpy sections, couple of ↵release-3.2Pawel Wodnicki2012-12-20
| | | | | | | | | | | | spelling fixes git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@170678 91177308-0d34-0410-b5e6-96231b3b80d8
| * Added C11,C++11 and Python notesPawel Wodnicki2012-12-19
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@170494 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r170147: into the 3.2 release branch.Pawel Wodnicki2012-12-16
| | | | | | | | | | | | | | Add support for current Ubuntu Quantal and the upcoming Raring. Patch by Martin Nowack. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@170287 91177308-0d34-0410-b5e6-96231b3b80d8
* | Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-12-14
|\|
| * Merging r169688: into 3.2 release branch.Pawel Wodnicki2012-12-10
| | | | | | | | | | | | | | PR14549. Don't assert if we see an incomplete decltype specifier at the end of the file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@169722 91177308-0d34-0410-b5e6-96231b3b80d8
* | Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-12-08
|\|
| * Merging r167766: into the 3.2 release branch.Pawel Wodnicki2012-12-05
| | | | | | | | | | | | | | | | | | Fix more try scoping bugs introduced by r167650. Introduces more clear scoping flags & flag combinations which should hopefully be more understandable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@169451 91177308-0d34-0410-b5e6-96231b3b80d8
* | Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-12-01
|\|
| * Cherry-picking r168297 pic.cPawel Wodnicki2012-11-29
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168917 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r167918: into the 3.2 release branch.Pawel Wodnicki2012-11-29
| | | | | | | | | | | | | | | | | | | | When we have a MemberExpr referring to an overloaded static member function, and we resolve it to a specific function based on the type which it's used as, don't forget to mark it as referenced. Fixes a regression introduced in r167514. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168888 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168818: into the 3.2 release branch.Pawel Wodnicki2012-11-28
| | | | | | | | | | | | | | | | | | | | PR13098: If we're instantiating an overloaded binary operator and we could determine which member function would be the callee from within the template definition, don't pass that function as a "non-member function" to CreateOverloadedBinOp. Instead, just rely on it to select the member function for itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168830 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168303: into the 3.2 release branch.Pawel Wodnicki2012-11-28
| | | | | | | | | | | | | | clang/test: Suppress two tests on LLP64 target, Windows x64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168823 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168674: into the 3.2 release branch.Pawel Wodnicki2012-11-28
| | | | | | | | | | | | | | Fix the definition of the vfork() builtin on Haiku. PR14378. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168819 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168269: into the 3.2 release branch.Pawel Wodnicki2012-11-28
| | | | | | | | | | | | | | | | | | | | Fix crash on end-of-file after \ in a char literal, fixes PR14369. This makes LexCharConstant() look more like LexStringLiteral(), which doesn't have this bug. Add tests for eof after \ for several other cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168808 91177308-0d34-0410-b5e6-96231b3b80d8
* | Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-11-28
|\|
| * Merging r168278: into 3.2 release branch.Pawel Wodnicki2012-11-27
| | | | | | | | | | | | | | clang/test/Sema/warn-documentation.cpp: Try to fix up the testcase in r168277. - git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168732 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168277: into 3.2 release branch.Pawel Wodnicki2012-11-27
| | | | | | | | | | | | | | | | | | | | | | Documentation parsing: propely handle a lone '\endverbatim' and emit a warning. We actually used to assert on this. Thanks to NAKAMURA Takumi for noticing this! git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168730 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r167935: into the 3.2 release branch.Pawel Wodnicki2012-11-26
| | | | | | | | | | | | | | | | | | The ObjC++-to-C++ personality trick is only necessary on NeXT runtimes, which is not coincidentally the only place it works, either (because of how it tests for EH_TYPE symbols). git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168611 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r167925: into the 3.2 release branch.Pawel Wodnicki2012-11-26
| | | | | | | | | | | | | | | | Move some GNUStep-specific code out of CGObjCGNU. Patch by Jonathan Schleifer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168609 91177308-0d34-0410-b5e6-96231b3b80d8
* | Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-11-24
|\|
| * Merging r168355: into the 3.2 release branch.Pawel Wodnicki2012-11-22
| | | | | | | | | | | | | | Update method calls to the new interface re r168354. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168487 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168063 into 3.2 release branchPawel Wodnicki2012-11-21
| | | | | | | | | | | | | | | | | | block extended signatur option. Change previous option to a cc1 -fencode-extended-block-signature and pass it to cc1 and recognize this option to produce extended block type signature. // rdar://12109031 git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168419 91177308-0d34-0410-b5e6-96231b3b80d8
| * Merging r168297 into 3.2 release branchPawel Wodnicki2012-11-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Completely re-work how the Clang driver interprets PIC and PIE options. There were numerous issues here that were all entangled, and so I've tried to do a general simplification of the logic. 1) The logic was mimicing actual GCC bugs, rather than "features". These have been fixed in trunk GCC, and this fixes Clang as well. Notably, the logic was always intended to be last-match-wins like any other flag. 2) The logic for handling '-mdynamic-no-pic' was preposterously unclear. It also allowed the use of this flag on non-Darwin platforms where it has no actual meaning. Now this option is handled directly based on tests of how llvm-gcc behaves, and it is only supported on Darwin. 3) The APIs for the Driver's ToolChains had the implementation ugliness of dynamic-no-pic leaking through them. They also had the implementation details of the LLVM relocation model flag names leaking through. 4) The actual results of passing these flags was incorrect on Darwin in many cases. For example, Darwin *always* uses PIC level 2 if it uses in PIC level, and Darwin *always* uses PIC on 64-bit regardless of the flags specified, including -fPIE. Darwin never compiles in PIE mode, but it can *link* in PIE mode. 5) Also, PIC was not always being enabled even when PIE was. This isn't a supported mode at all and may have caused some fallout in builds with complex PIC and PIE interactions. The result is (I hope) cleaner and clearer for readers. I've also left comments and tests about some of the truly strage behavior that is observed on Darwin platforms. We have no real testing of Windows platforms and PIC, but I don't have the tools handy to figure that out. Hopefully others can beef up our testing here. Unfortunately, I can't test this for every platform. =/ If folks have dependencies on these flags that aren't covered by tests, they may break. I've audited and ensured that all the changes in behavior of the existing tests are intentional and good. In particular I've tried to make sure the Darwin behavior (which is more suprising than the Linux behavior) also matches that of 'gcc' on my mac. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168416 91177308-0d34-0410-b5e6-96231b3b80d8
* | Merge branch 'release-3.2' into embtk-support-release-3.2Abdoulaye Walsimou Gaye2012-11-20
|\|
| * Merging r168124 into 3.2 release branchPawel Wodnicki2012-11-19
| | | | | | | | | | | | | | | | | | | | | | | | Fix PR14321, a crash when Clang is built with GCC 4.7 at -O1 or greater. GCC 4.7 reuses stack slots fairly aggressively, which exposes more temporary lifetime bugs. No new test, this was caught by the existing CodeGenCXX/mangle-ms-templates.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@168331 91177308-0d34-0410-b5e6-96231b3b80d8