Douglas Gregor
c9c40ce861
Teach Clang's <float.h> to also include MinGW's <float.h>, which provides additional system definitions, from Ruben Van Boxem
...
llvm-svn: 134407
2011-07-05 14:17:04 +00:00
Douglas Gregor
c750b6c436
Update header-search paths for MinGW, from Ruben Van Boxem
...
llvm-svn: 134406
2011-07-05 14:16:05 +00:00
Howard Hinnant
1f8da84b76
Fix uninitialized loop counter. http://llvm.org/bugs/show_bug.cgi?id=10278
...
llvm-svn: 134405
2011-07-05 14:14:17 +00:00
Benjamin Kramer
e87c38b229
Don't overread the buffer when an %x escape in inline asm ends prematurely.
...
Tested by valgrind & Sema/asm.c.
llvm-svn: 134404
2011-07-05 11:13:37 +00:00
Benjamin Kramer
de1d62314a
Initialize member.
...
llvm-svn: 134403
2011-07-05 09:46:31 +00:00
Tobias Grosser
3770157502
test: Remove redundant function definition
...
The latest version of LLVM fails, if a function is defined twice in an LLVM
bitcode file.
llvm-svn: 134400
2011-07-04 23:18:17 +00:00
Joerg Sonnenberger
f031fd9e77
Add explicit default case for -Wswitch-enum.
...
llvm-svn: 134399
2011-07-04 23:11:58 +00:00
Tobias Grosser
d562d30a20
SuccIterator on bbs without terminator insts
...
Remove the assert that triggers if SuccIterator is constructed for a basic block
without a terminator instruction. Instead of triggering an assert a succ_end()
iterator is returned. This models a basic block with zero successors and allows
us to use F->viewCFG() on incompletely constructed functions.
llvm-svn: 134398
2011-07-04 23:09:02 +00:00
Joerg Sonnenberger
025949c366
Use switch(os) style consistently. Add a bunch of NetBSD branches.
...
llvm-svn: 134393
2011-07-04 21:59:44 +00:00
Joerg Sonnenberger
e72d9b1f85
On PowerPC, both FreeBSD and NetBSD use ints for (s)size_t
...
llvm-svn: 134392
2011-07-04 21:57:55 +00:00
Benjamin Kramer
9eca5feff1
PR10267: Don't combine an equality compare with an AND into an inequality compare when the AND has more than one use.
...
This can pessimize code, inequalities are generally more expensive.
llvm-svn: 134379
2011-07-04 20:16:36 +00:00
Anders Carlsson
1052fd76ab
Remove unused parameter from ActOnDeclarator.
...
llvm-svn: 134377
2011-07-04 16:28:17 +00:00
Roman Divacky
cc5e53383e
Remove accidentaly left node from previous iteration of the patch.
...
Noticed by Benjamin Kramer!
llvm-svn: 134376
2011-07-04 15:42:45 +00:00
Howard Hinnant
46f7e3f131
Make the default Makefile less destructive: John McCall
...
llvm-svn: 134375
2011-07-04 14:12:27 +00:00
Chandler Carruth
bfb154ad3f
Switch the Decl and Stmt stats printing to use llvm::errs() instead of
...
fprintf, and to be more consistent in formatting with the other stats
printing routines.
llvm-svn: 134374
2011-07-04 06:13:27 +00:00
Chandler Carruth
3c147a7731
Start switching the AST stats printing to use llvm::errs() instead of
...
fprintf. There is more cleanup to be done to the AST stats printing...
llvm-svn: 134373
2011-07-04 05:32:14 +00:00
Rafael Espindola
c74d9378e1
Move early tail duplication earlier.
...
This fixes the issue noted in PR10251 where early tail dup of bbs with
indirectbr would cause a bb to be duplicated into a loop preheader
and then into its predecessors, creating phi nodes with identical
operands just before register allocation.
This helps with jsinterp.o size (__TEXT goes from 163568 to 126656)
and a bit with performance 1.005x faster on sunspider (jits still enabled).
The result on webkit with the jit disabled is more significant: 1.021x faster.
llvm-svn: 134372
2011-07-04 04:54:22 +00:00
Rafael Espindola
f9f012ea88
Move most of the pre BB code to TailDuplicateAndUpdate. Change the
...
HasIndirectbr variable to be just that. No functionality change.
llvm-svn: 134371
2011-07-04 01:21:42 +00:00
Rafael Espindola
79dc4e7709
Reduce indentation and fix the count of how many PHIs we have inserted.
...
llvm-svn: 134370
2011-07-04 00:13:36 +00:00
Jakob Stoklund Olesen
71a3a003dd
Fix PR10244.
...
A split point inserted in a block with a landing pad successor may be
hoisted above the call to ensure that it dominates all successors. The
code that handles the rest of the basic block must take this into
account.
I am not including a test case, it would be very fragile. PR10244 comes
from building clang with exceptions enabled.
llvm-svn: 134369
2011-07-04 00:05:28 +00:00
Johnny Chen
c201d8a999
Add a CLEANUP_DOCSTRING state to our FSM to do cleanup of the Python docstrings
...
generated from the swig docstring features instead of blindly applying the
cleanup action for all input lines.
llvm-svn: 134368
2011-07-03 19:55:50 +00:00
Roman Divacky
075491f2cd
Make the i64 and f64 be 64bit ABI aligned in the target description.
...
This is what both the ABI and clang says.
llvm-svn: 134367
2011-07-03 16:24:07 +00:00
NAKAMURA Takumi
bb2f28f41c
test/CodeGen/X86/lsr-nonaffine.ll: Relax expressions for Win64 CC to appease Win32 hosts.
...
llvm-svn: 134366
2011-07-03 09:26:14 +00:00
Rafael Espindola
de8fa9e1f1
Fix an easy fixme.
...
llvm-svn: 134364
2011-07-03 05:26:42 +00:00
Chris Lattner
052172bc14
fix typo
...
llvm-svn: 134361
2011-07-03 02:21:48 +00:00
Johnny Chen
b8f7603526
Add swig docstrings for SBFrame.h.
...
Add post-processing step to remove the trailing blank lines from the docstrings of lldb.py.
llvm-svn: 134360
2011-07-03 01:43:29 +00:00
Greg Clayton
0c51ac3295
When we use the "fd://%u" for file descriptors, we need to detect if this is
...
a file or socket. We now make a getsockopt call to check if the fd is a socket.
Also, the previous logic in the GDB communication needs to watch for success
with an error so we can deal with EAGAIN and other normal "retry" error codes.
llvm-svn: 134359
2011-07-02 23:21:06 +00:00
Chandler Carruth
a6e593b4eb
FileCheck-ize another test. Reduces the llc invocations from 8 to 1, and
...
makes one of the tests actually mean something (as the string 'add' will
always appear in the output of this file).
llvm-svn: 134358
2011-07-02 21:34:52 +00:00
Greg Clayton
197bacfffa
Cleanup errors that come out of commands and make sure they all have newlines
...
_only_ in the resulting stream, not in the error objects (lldb_private::Error).
lldb_private::Error objects should always just have an error string with no
terminating newline characters or periods.
Fixed an issue with GDB remote packet detection that could end up deadlocking
if a full packet wasn't received in one chunk. Also modified the packet
checking function to properly toss one or more bytes when it detects bad
data.
llvm-svn: 134357
2011-07-02 21:07:54 +00:00
Chandler Carruth
d024a50823
Avoid writing to an arbitrary filename during the test run by writing to
...
a file descriptor.
llvm-svn: 134355
2011-07-02 20:43:18 +00:00
Chandler Carruth
a33e630c55
FileCheck-ize another X86 test, making it more precisely verify the
...
desired result based on the comments in the file.
llvm-svn: 134354
2011-07-02 20:43:16 +00:00
Chandler Carruth
af39a720fa
Quote two greps which contain parentheses.
...
llvm-svn: 134353
2011-07-02 20:43:13 +00:00
Chandler Carruth
959fe548d7
FileCheck-ize and simplify RUN lines.
...
llvm-svn: 134352
2011-07-02 20:43:11 +00:00
Chandler Carruth
02bece4957
FileCheck-ize
...
llvm-svn: 134351
2011-07-02 20:43:08 +00:00
Chandler Carruth
91c4008373
FileCheck-ize and tighten up assertions to only check the relevant sections.
...
llvm-svn: 134350
2011-07-02 20:43:04 +00:00
Chandler Carruth
4b15dd38a8
FileCheck-ize and cleanup IR.
...
llvm-svn: 134349
2011-07-02 20:43:01 +00:00
Chandler Carruth
a7440ff322
FileCheck-ize
...
llvm-svn: 134348
2011-07-02 20:42:59 +00:00
Peter Collingbourne
f52f0502ca
Fix Linux build errors
...
llvm-svn: 134347
2011-07-02 20:42:56 +00:00
Chandler Carruth
5c87df3179
Remove a grep that is already checked with FileCheck.
...
llvm-svn: 134346
2011-07-02 20:42:56 +00:00
Chandler Carruth
106ae72933
FileCheck-ize
...
llvm-svn: 134345
2011-07-02 20:42:53 +00:00
Chandler Carruth
fbb7c9ba06
FileCheck-ize and modernize IR.
...
llvm-svn: 134344
2011-07-02 20:42:50 +00:00
Chandler Carruth
81275c3029
FileCheck-ize and simplify RUNs.
...
llvm-svn: 134343
2011-07-02 20:42:48 +00:00
Chandler Carruth
f0e2e37518
FileCheck-ize and modernize the RUN line.
...
llvm-svn: 134342
2011-07-02 20:42:44 +00:00
Chandler Carruth
abd8a8f3ae
FileCheck-ize, tightening checks and avoiding a temporary file.
...
llvm-svn: 134341
2011-07-02 20:42:42 +00:00
Chandler Carruth
6e4d90f7c6
FileCheck-ize, tightening checks and avoiding a temporary file.
...
llvm-svn: 134340
2011-07-02 20:42:39 +00:00
Chandler Carruth
ff0e32536e
FileCheck-ize
...
llvm-svn: 134339
2011-07-02 20:42:36 +00:00
Chandler Carruth
d954bb7ebb
FileCheck-ize
...
llvm-svn: 134338
2011-07-02 20:42:33 +00:00
Chandler Carruth
362bff3bd3
FileCheck-ize a test, avoiding a temporary file.
...
llvm-svn: 134337
2011-07-02 20:42:31 +00:00
Chandler Carruth
f2a29b726f
FileCheck-ize and simplify this test.
...
llvm-svn: 134336
2011-07-02 20:42:28 +00:00
Chandler Carruth
7e44b420e1
FileCheck-ize
...
llvm-svn: 134335
2011-07-02 20:42:25 +00:00