- Sep 05, 2015
-
-
Eric Fiselier authored
llvm-svn: 246893
-
Michael J. Spencer authored
llvm-svn: 246892
-
Evgeniy Stepanov authored
Tests need to be run either via asanwrapper or asanwrapper64 depending in the binary bitness. This matters when testing on an aarch64 device. llvm-svn: 246891
-
George Burgess IV authored
Apparently there are many cast kinds that may cause implicit pointer arithmetic to happen. In light of this, the cast ignoring logic introduced in r246877 has been changed to only ignore a small set of cast kinds, and a test for this behavior has been added. Thanks to Richard for catching this before it became a bug report. :) llvm-svn: 246890
-
Reid Kleckner authored
llvm-svn: 246889
-
Kostya Serebryany authored
llvm-svn: 246888
-
Greg Clayton authored
llvm-svn: 246887
-
Michael J. Spencer authored
llvm-svn: 246886
-
Siva Chandra authored
Summary: lldb::tid_t is 64 bit, but "long" need not always be 64 bit. Reviewers: chying, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12650 llvm-svn: 246885
-
Enrico Granata authored
Add a --language (-l) option to type category {enable|disable} to allow people to turn on and off formatters for a given language llvm-svn: 246884 -
Hal Finkel authored
We were crashing in CodeGen given input like this: int self_alias(void) __attribute__((weak, alias("self_alias"))); such a self-alias is invalid, but instead of diagnosing the situation, we'd proceed to produce IR for both the function declaration and the alias. Because we already had a function named 'self_alias', the alias could not be named the same thing, and so LLVM would pick a different name ('self_alias1' for example) for that value. When we later called CodeGenModule::checkAliases, we'd look up the IR value corresponding to the alias name, find the function declaration instead, and then assert in a cast to llvm::GlobalAlias. The easiest way to prevent this is simply to avoid creating the wrongly-named alias value in the first place and issue the diagnostic there (instead of in checkAliases). We detect a related cycle case in CodeGenModule::EmitAliasDefinition already, so this just adds a second such check. Even though the other test cases for this 'alias definition is part of a cycle' diagnostic are in test/Sema/attr-alias-elf.c, I've added a separate regression test for this case. This is because I can't add this check to test/Sema/attr-alias-elf.c without disturbing the other test cases in that file. In order to avoid construction of the bad IR values, this diagnostic is emitted from within CodeGenModule::EmitAliasDefinition (and the relevant declaration is not added to the Aliases vector). The other cycle checks are done within the CodeGenModule::checkAliases function based on the Aliases vector, called from CodeGenModule::Release. However, if there have been errors earlier, HandleTranslationUnit does not call Release, and so checkAliases is never called, and so none of the other diagnostics would be produced. Fixes PR23509. llvm-svn: 246882 -
Richard Smith authored
directory, and our frontend action cares whether the frontend setup actually succeeded. llvm-svn: 246881
-
Reid Kleckner authored
This fixes an issue raised in D12412, where we generated invalid IR. Thanks to Vedant Kumar for coming up with the initial work around. Differential Revision: http://reviews.llvm.org/D12412 llvm-svn: 246880
-
Angel Garcia Gomez authored
Summary: The InitListExpr subtree is visited twice, this caused the check to do multiple replacements. Added a set to avoid it. Reviewers: klimek, alexfh Subscribers: cfe-commits, alexfh Differential Revision: http://reviews.llvm.org/D12631 llvm-svn: 246879
-
Rui Ueyama authored
Identical COMDAT Folding is a feature to merge COMDAT sections by contents. Two sections are considered the same if their contents, relocations, attributes, etc, are all the same. An interesting fact is that MSVC linker takes "iterations" parameter for ICF because the algorithm they are using is iterative. Merging two sections could make more sections to be mergeable because different relocations could now point to the same section. ICF is repeated until we get a convergence (until no section can be merged). This algorithm is not fast. Usually it needs three iterations until a convergence is obtained. In the new algorithm implemented in this patch, we consider sections and relocations as a directed acyclic graph, and we try to merge sections whose outdegree is zero. Sections with outdegree zero are then removed from the graph, which makes other sections to have outdegree zero. We repeat that until all sections are processed. In this algorithm, we don't iterate over the same sections many times. There's an apparent issue in the algorithm -- the section graph is not guaranteed to be acyclic. It's actually pretty often cyclic. So this algorithm cannot eliminate all possible duplicates. That's OK for now because the previous algorithm was not able to eliminate cycles too. I'll address the issue in a follow-up patch. llvm-svn: 246878
-
George Burgess IV authored
Improvements: - For all types, we would give up in a case such as: __builtin_object_size((char*)&foo, N); even if we could provide an answer to __builtin_object_size(&foo, N); We now provide the same answer for both of the above examples in all cases. - For type=1|3, we now support subobjects with unknown bases, as long as the designator is valid. Thanks to Richard Smith for the review + design planning. Review: http://reviews.llvm.org/D12169 llvm-svn: 246877 -
Enrico Granata authored
llvm-svn: 246876
-
Evgeniy Stepanov authored
llvm-svn: 246875
-
Rui Ueyama authored
llvm-svn: 246874
-
Enrico Granata authored
llvm-svn: 246873
-
Sean Callanan authored
llvm-svn: 246872
-
Sean Callanan authored
stores information about a variable that different parts of LLDB use, from the compiler-specific portion that only the expression parser cares about. http://reviews.llvm.org/D12602 llvm-svn: 246871
-
Adrian McCarthy authored
Sleep-and-retry after a failure to delete a log file, which may be because antimalware is holding the handle to the just-created file. Differential Revision: http://reviews.llvm.org/D12641 llvm-svn: 246870
-
Rui Ueyama authored
Previously, we calculated our own hash values for section contents. Of coruse that's slow because we had to access all bytes in sections. Fortunately, COFF objects usually contain hash values for COMDAT sections. We can use that to speed up Identical COMDAT Folding. llvm-svn: 246869
-
Davide Italiano authored
This was found while converting a test from macho-dump to llvm-readobj and will once I commit the converted test. llvm-svn: 246868
-
Evgeniy Stepanov authored
https://github.com/google/sanitizers/issues/353 llvm-svn: 246866
-
Yaron Keren authored
llvm-svn: 246865
-
Hans Wennborg authored
They might technically have external linkage, but it still doesn't make sense for the user to try and export such variables. This matches MSVC's and MinGW's behaviour. llvm-svn: 246864
-
Simon Pilgrim authored
llvm-svn: 246863
-
Peter Collingbourne authored
llvm-svn: 246862
-
Davide Italiano authored
llvm-svn: 246861
-
Aaron Ballman authored
llvm-svn: 246860
-
Hafiz Abid Qadeer authored
The call to ProcessWindowsLog::Initialize() is protected by #if defined(_MSC_VER). But the call to ProcessWindowsLog::Terminate() was using __WIN32__. This commit makes it use _MSC_VER too. Committing as it seems obvious change. llvm-svn: 246859
-
Hafiz Abid Qadeer authored
CMICmdArgValConsume::Validate was not removing it from the input stream. llvm-svn: 246858
-
Ed Schouten authored
If we build with -Werror=implicit-function-declaration, only implicit function declarations of non-library functions throw compiler errors. For library functions, we only produce a warning. There is no way to promote both of these cases to an error without promoting other warnings. It makes little sense to introduce an additional compiler flag just to control this specific warning. In my opinion it should just be part of the same group. llvm-svn: 246857
-
- Sep 04, 2015
-
-
Alexander Kornienko authored
IncludeDirectives struct used a StringRef that pointed to a stack variable (SmallString<128> FilenameBuffer from PPDirectives.cpp:1513). http://reviews.llvm.org/D12632 Patch by Marek Kurdej! llvm-svn: 246856
-
Ben Craig authored
Also, test commit llvm-svn: 246855
-
Alexander Kornienko authored
This fixes the case where the check should be added at the end of the list of checks in CMakeLists.txt of the corresponding module. Before it was added after LINK_LIBS line. http://reviews.llvm.org/D12629 Patch by Marek Kurdej! llvm-svn: 246854
-
Alexey Bataev authored
Some of instantiation-dependent expressions could cause false diagnostic to be emitted about unsupported atomic constructs. Relaxed rules for detection of incorrect expressions. llvm-svn: 246853
-
Tamas Berghammer authored
* Change Module::MatchesModuleSpec to return true in case the file spec in the specified module spec matches with the platform file spec, but not with the local file spec * Change the module_resolver used when resolving a remote shared module to always set the platform file spec to the file spec requested Differential revision: http://reviews.llvm.org/D12601 llvm-svn: 246852
-