- Nov 20, 2012
-
-
David Blaikie authored
llvm-svn: 168340
-
- Nov 19, 2012
-
-
Richard Smith authored
them in order to parse the rest of the file. llvm-svn: 168327
-
Kaelyn Uhrain authored
getUnderlyingDecl()) so that derivatives of CorrectionCandidateCallback::ValidateCandidate(...) don't have to worry about being thrown by UsingDecls and such. llvm-svn: 168317
-
Logan Chien authored
According to Android ABI, we have to link with libdl.so, if we are linking with non-static libgcc. Besides, this also fixes MIPS link error of undefined references to `_Unwind_Find_FDE' and `dl_iterate_phdr'. llvm-svn: 168310
-
Logan Chien authored
The dynamic linker of Android does not support .ctors/.dtors. We should emit .init_array and .fini_array regardless the gcc version. NOTE: This patch does not affect the ARM backend, because it is required to generate .init_array and .fini_array for program targeting ARM AAPCS and AEABI. llvm-svn: 168309
-
NAKAMURA Takumi authored
llvm-svn: 168303
-
Chandler Carruth authored
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. llvm-svn: 168297
-
Chandler Carruth authored
llvm-svn: 168296
-
NAKAMURA Takumi authored
With this, ARCMT tests would not crash on certain hosts with g++ -O2, eg. cygwin g++-4.5.3. r160404 crashed mingw32-g++-4.4.0. I guess method's pointer in conditional expression could not be handled. llvm-svn: 168295
-
- Nov 18, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 168293
-
NAKAMURA Takumi authored
llvm-svn: 168278
-
Dmitri Gribenko authored
We actually used to assert on this. Thanks to NAKAMURA Takumi for noticing this! llvm-svn: 168277
-
Dmitri Gribenko authored
llvm-svn: 168276
-
- Nov 17, 2012
-
-
Andy Gibbs authored
llvm-svn: 168274
-
Fariborz Jahanian authored
of a deprecated method in original class (or category), only in overrides. // rdar://12717705 llvm-svn: 168270
-
Nico Weber authored
This makes LexCharConstant() look more like LexStringLiteral(), which doesn't have this bug. Add tests for eof after \ for several other cases. llvm-svn: 168269
-
Andy Gibbs authored
__has_attribute, __has_extension, making them behave more akin to conventional macros. llvm-svn: 168268
-
Andy Gibbs authored
llvm-svn: 168267
-
Andy Gibbs authored
common LexStringLiteral function. In doing so, some consistency problems have been ironed out (e.g. where the first token in the string literal was lexed with macro expansion, but subsequent ones were not) and also an erroneous diagnostic has been corrected. LexStringLiteral is complemented by a FinishLexStringLiteral function which can be used in the situation where the first token of the string literal has already been lexed. llvm-svn: 168266
-
Andy Gibbs authored
llvm-svn: 168265
-
Benjamin Kramer authored
Also fixes a bit/byte mismatch when checking if a target supports atomic ops of a certain size. llvm-svn: 168260
-
Benjamin Kramer authored
It's also simpler to just copy the words than mangling bits like this ctor did. llvm-svn: 168258
-
Ted Kremenek authored
Further reduce "-fsyntax-only -Wuninitialized" time on sqlite3.c by another 2.5% using intelligent pruning of blocks during the final reporting pass. llvm-svn: 168257
-
Ted Kremenek authored
an initial baseline for enqueued blocks, but use a simple DFS stack for propagating changes quickly up back edges. This provides a 3.5% reduction in -fsyntax-only time on sqlite3.c. llvm-svn: 168241
-
Eli Friedman authored
llvm-svn: 168239
-
Eli Friedman authored
Clean up X86 target feature translation code slightly. No intended functional change. Patch by Jung-uk Kim. llvm-svn: 168237
-
Chad Rosier authored
llvm-svn: 168222
-
Bill Wendling authored
Revert r167799. It's not really correct, and it doesn't fix the problem that it was intended to fix. llvm-svn: 168217
-
- Nov 16, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 168213
-
Chad Rosier authored
This was causing different behavior when using -x objective-c++-cpp-output as compared to -x objc++-cpp-output. Specifically, the driver was not adding the -fcxx-exceptions flag in the latter case. rdar://12680312 llvm-svn: 168212
-
Dmitri Gribenko authored
There are better ways of limiting the amount of information if there is a need for that. Patch by Philip Craig. llvm-svn: 168206
-
Daniel Jasper authored
The problem is that a partial match of an (explicit or implicit) allOf matcher binds results, i.e. recordDecl(decl().bind("x"), hasName("A")) can very well bind a record that is not named "A". With this fix, the common cases of stumbling over this bug are fixed by the BoundNodesMap overwriting the results of a partial match. An error can still be created with a weird combination of anyOf and allOf (see inactive test). We need to decide whether this is worth fixing, as the fix will have performance impact. Review: http://llvm-reviews.chandlerc.com/D124 llvm-svn: 168177
-
Jordan Rose authored
This has been broken for a while, but the branch was never being taken. (We were trying to do 'str + floatVal'; now we do 'str % intVal' and use the '%d' format.) llvm-svn: 168174
-
Benjamin Kramer authored
LLVM_USED_LIBS does nothing here. llvm-svn: 168172
-
Alexey Samsonov authored
UBSan: enable proper linking with UBsan runtime on Darwin. Turn on building ubsan on OS X in 'make' build system. Patch by Jean-Daniel Dupas. llvm-svn: 168168
-
Nick Lewycky authored
llvm-svn: 168145
-
NAKAMURA Takumi authored
llvm-svn: 168137
-
Douglas Gregor authored
it as a pointer. llvm-svn: 168136
-
Douglas Gregor authored
llvm-svn: 168135
-
NAKAMURA Takumi authored
Revert r168132, "clang/test/lit.cfg: Suppress the feature 'dev-fd-fs' for now." I missed Daniel's r168095 by my accident. llvm-svn: 168134
-