Howard Hinnant
08487f51b7
Relax pointer output test to accept glibc's output. Patch supplied by Jeffrey Yasskin.
...
llvm-svn: 150927
2012-02-19 14:51:01 +00:00
Sebastian Redl
8eb351d72e
Get recursive initializer lists to work and add a test. Codegen of std::initializer_list is now complete. Onward to array new.
...
llvm-svn: 150926
2012-02-19 12:28:02 +00:00
Sebastian Redl
99f6616470
Add a testcase for using objects with list-constructors, and fix a Sema crash by repeating an old hack.
...
llvm-svn: 150925
2012-02-19 12:27:56 +00:00
Sebastian Redl
1d197174a2
Add a testcase to show that temporaries from the initializer list are destroyed correctly.
...
llvm-svn: 150924
2012-02-19 12:27:51 +00:00
Sebastian Redl
ca89d6841a
Add a testcase for start+end implementations of std::initializer_list.
...
llvm-svn: 150923
2012-02-19 12:27:47 +00:00
Sebastian Redl
4f28b58b7b
Fix a crash for nested initializer list initialization. Still does the wrong thing in CodeGen, in that it never destructs anything.
...
llvm-svn: 150922
2012-02-19 12:27:43 +00:00
Benjamin Kramer
c84ded88ea
Silence operator precedence warning.
...
llvm-svn: 150921
2012-02-19 12:25:07 +00:00
NAKAMURA Takumi
652e0139da
autoconf/m4/visibility_inlines_hidden.m4: Tweak for cygwin-g++-4.5.3. It folded conftest regardress of attributge((noinline)) with >=O1 .
...
llvm-svn: 150920
2012-02-19 12:05:12 +00:00
Ahmed Charles
289896d2f3
Remove dead code.
...
llvm-svn: 150919
2012-02-19 11:57:29 +00:00
Ahmed Charles
636a3d618c
Remove dead code. Improve llvm_unreachable text. Simplify some control flow.
...
llvm-svn: 150918
2012-02-19 11:37:01 +00:00
Ahmed Charles
a4704ab080
StringRef'ize EmitSourceFileHeader().
...
llvm-svn: 150917
2012-02-19 11:35:20 +00:00
Craig Topper
de121a1000
Remove some unneeded includes and fix ordering in X86ISelLowering.cpp. Remove unneeded 'using namespace'.
...
llvm-svn: 150916
2012-02-19 07:15:48 +00:00
Lang Hames
13b11527d8
Add machinery for pushing live ranges onto bundle starts while bundling.
...
llvm-svn: 150915
2012-02-19 07:13:05 +00:00
Lang Hames
8140e84757
Simplify moveEnteringDownFrom rules.
...
llvm-svn: 150914
2012-02-19 06:13:56 +00:00
Craig Topper
65a4ceea1e
Unify all shuffle mask checking functions take a mask and VT instead of VectorShuffleSDNode.
...
llvm-svn: 150913
2012-02-19 05:41:45 +00:00
Lang Hames
ed7f1f0b08
Skip through instructions rather than operands when looking for last use slot.
...
llvm-svn: 150912
2012-02-19 04:38:25 +00:00
NAKAMURA Takumi
5adeb93d8a
APFloat::toString(): Fix overrun at scanning.
...
FYI, clang/test/SemaTemplate/template-id-printing.cpp had been failing due to it on cygwin-clang.
llvm-svn: 150911
2012-02-19 03:18:29 +00:00
Lang Hames
da2ed648b5
Fix TODO and trailing whitespace.
...
llvm-svn: 150910
2012-02-19 03:09:55 +00:00
Lang Hames
4645a72763
Defer sanity checks on live intervals until after all have been updated. Hold (LiveInterval, LiveRange) pairs to update, rather than vregs.
...
llvm-svn: 150909
2012-02-19 03:00:30 +00:00
Craig Topper
3e5c04e432
Make a bunch of X86ISelLowering shuffle functions static now that they are no longer needed by isel.
...
llvm-svn: 150908
2012-02-19 02:53:47 +00:00
Rafael Espindola
322d2f4032
Don't check for /lib and /usr/lib.
...
llvm-svn: 150907
2012-02-19 02:43:03 +00:00
Rafael Espindola
1c4bd44052
Our handling of variables in FileCheck looks really broken on windws. Just
...
give up on matching the path prefix for the libraries.
llvm-svn: 150906
2012-02-19 02:33:09 +00:00
Rafael Espindola
8c53669a2d
Add an extra CHECK line to make sure TOOLCHAIN2 matches just the path
...
prefix.
llvm-svn: 150905
2012-02-19 02:23:50 +00:00
Jia Liu
608dc6e257
comment fix ARM.h
...
llvm-svn: 150904
2012-02-19 02:04:03 +00:00
Rafael Espindola
7c3e065573
Looks like we use forward slashes for header search but back slashes for
...
libraries on windows. Use two variables to make this test pass.
llvm-svn: 150903
2012-02-19 02:03:47 +00:00
Jia Liu
e1d619691b
some comment fix for X86 and ARM
...
llvm-svn: 150902
2012-02-19 02:03:36 +00:00
Rafael Espindola
c499573145
Try to match the linker being named ld.exe. Second try at fixing the windows bots.
...
llvm-svn: 150901
2012-02-19 01:52:23 +00:00
Rafael Espindola
70f2ad1afb
Don't assume a path starts with a /. Should fix the windows bot.
...
llvm-svn: 150900
2012-02-19 01:47:01 +00:00
Craig Topper
66a3597a4a
Add vmfunc instruction to X86 assembler and disassembler.
...
llvm-svn: 150899
2012-02-19 01:39:49 +00:00
Rafael Espindola
1af7c219c7
Implement a -gcc-toolchain command line option that does the same as
...
configure's --with-gcc-toolchain. The configure option is now just a default
value for the command line one.
llvm-svn: 150898
2012-02-19 01:38:32 +00:00
Ahmed Charles
4f9484722c
Fix issue with bitwise and precedence.
...
llvm-svn: 150897
2012-02-18 22:56:41 +00:00
Ted Kremenek
1c95ef4e94
Teach analyzer that blocks with no captures are globals. Fixes <rdar://problem/10348049>.
...
llvm-svn: 150896
2012-02-18 22:41:01 +00:00
Richard Smith
66c9699ac3
Implement constant expression support for __real__ and __imag__ on lvalue
...
complex numbers. Treat complex numbers as arrays of the corresponding component
type, in order to make std::complex behave properly if implemented in terms of
_Complex T.
Apparently libstdc++'s std::complex is implemented this way, and we were
rejecting a member like this:
constexpr double real() { return __real__ val; }
because it was marked constexpr but unable to produce a constant expression.
llvm-svn: 150895
2012-02-18 22:04:06 +00:00
Ted Kremenek
b0d37508d0
Fix crash in analyzer diagnostic generation involving subexpressions of OpaqueValueExpr not appearing in the ParentMap. Fixes <rdar://problem/10797980>.
...
llvm-svn: 150894
2012-02-18 22:02:57 +00:00
Howard Hinnant
2a9a072485
Give the emulated nullptr_t a default constructor.
...
llvm-svn: 150893
2012-02-18 22:01:22 +00:00
Ted Kremenek
e8a5ba89ec
Teach analyzer about NSAutoreleasePool -allocWithZone:. Fixes <rdar://problem/10640253>.
...
llvm-svn: 150892
2012-02-18 21:37:48 +00:00
Ted Kremenek
3d64453f9d
Add analyzer test for using of C++ references with ObjC object pointers, reported in <rdar://problem/10569024>.
...
llvm-svn: 150891
2012-02-18 21:27:25 +00:00
Talin
f2291c908b
Hashing.h - utilities for hashing various data types.
...
llvm-svn: 150890
2012-02-18 21:00:49 +00:00
Richard Smith
0b6b8e490c
Fix wrong-code bug: __imag on a scalar lvalue should produce a zero rvalue,
...
rather than an lvalue referring to the scalar.
llvm-svn: 150889
2012-02-18 20:53:32 +00:00
Ted Kremenek
e98d63a823
Adopt ExprEngine and checkers to ObjC property refactoring. Everything was working, but now diagnostics are aware of message expressions implied by uses of properties. Fixes <rdar://problem/9241180>.
...
llvm-svn: 150888
2012-02-18 20:53:30 +00:00
Howard Hinnant
c7cf23e4bf
Exercise rvalue arguements to make_shared for C++11 mode.
...
llvm-svn: 150887
2012-02-18 20:12:03 +00:00
Rafael Espindola
082d482981
White space fixes.
...
llvm-svn: 150886
2012-02-18 19:46:02 +00:00
Rafael Espindola
991356e89b
Temporarily disable this assert. Looks like it found a similar issue when
...
building bullet.
llvm-svn: 150885
2012-02-18 17:51:43 +00:00
Rafael Espindola
82d957593e
Don't skip debug instructions when looking for the insertion point of
...
the cast. If we do, we can end up with
inst1
--------------- < Insertion point
dbg inst
new inst
instead of the desired
inst1
new inst
--------------- < Insertion point
dbg inst
Another option would be for InsertNoopCastOfTo (or its callers) to move the
insertion point and we would end up with
inst1
dbg inst
new inst
--------------- < Insertion point
but that complicates the callers. This fixes PR12018 (and firefox's build).
llvm-svn: 150884
2012-02-18 17:22:58 +00:00
David Chisnall
c616e95162
Default to not using __cxa_atexit on Solaris.
...
llvm-svn: 150883
2012-02-18 17:00:56 +00:00
David Chisnall
cb5e468106
Remove a debugging line accidentally left in the last commit.
...
llvm-svn: 150882
2012-02-18 16:20:35 +00:00
David Chisnall
0867d9cfbc
Implement #pragma redefine_extname.
...
This fixes PR5172 and allows clang to compile C++ programs on Solaris using the system headers.
llvm-svn: 150881
2012-02-18 16:12:34 +00:00
Dmitri Gribenko
e72fa2c113
Add -Wstrncat-size and -Wempty-body to release notes.
...
llvm-svn: 150879
2012-02-18 14:13:26 +00:00
Jia Liu
b22310fda6
Emacs-tag and some comment fix for all ARM, CellSPU, Hexagon, MBlaze, MSP430, PPC, PTX, Sparc, X86, XCore.
...
llvm-svn: 150878
2012-02-18 12:03:15 +00:00
Benjamin Kramer
26538e8cc5
Remove unused but set variable.
...
llvm-svn: 150877
2012-02-18 11:35:28 +00:00