Argyrios Kyrtzidis
873c8583e0
Turn FrontendInputFile into an immutable class and have it also accept
...
a memory buffer instead of only a filename.
llvm-svn: 167627
2012-11-09 19:40:39 +00:00
Argyrios Kyrtzidis
1b3240b0aa
Make CompilerInstance::InitializeSourceManager accept a FrontendInputFile,
...
no functionality change.
llvm-svn: 167626
2012-11-09 19:40:33 +00:00
Jakob Stoklund Olesen
13d5562963
Fix assertions in updateRegMaskSlots().
...
The RegMaskSlots contains 'r' slots while NewIdx and OldIdx are 'B'
slots. This broke the checks in the assertions.
This fixes PR14302.
llvm-svn: 167625
2012-11-09 19:18:49 +00:00
Rafael Espindola
c93b074bda
Don't use so many bits.
...
llvm-svn: 167624
2012-11-09 19:03:35 +00:00
Chad Rosier
d87e4f7ad8
Implement -mstrict-align using '-backend-option -arm-strict-align' as this saves
...
us from having to make any backend changes.
llvm-svn: 167623
2012-11-09 18:27:01 +00:00
Chad Rosier
66bb178eef
Revert r167620; this can be implemented using an existing CL option.
...
llvm-svn: 167622
2012-11-09 18:25:27 +00:00
Chad Rosier
74b5a9891a
Add test case for r167619.
...
llvm-svn: 167621
2012-11-09 17:39:51 +00:00
Chad Rosier
332fc75b2c
Add support for -mstrict-align compiler option for ARM targets.
...
rdar://12340498
llvm-svn: 167620
2012-11-09 17:29:38 +00:00
Chad Rosier
6002702b06
[driver] Add a -mstrict-align compiler option for ARM targets.
...
rdar://12340498
llvm-svn: 167619
2012-11-09 17:29:19 +00:00
Benjamin Kramer
c280f41864
Silence GCC warning about falling off the end of a non-void function.
...
llvm-svn: 167618
2012-11-09 15:45:22 +00:00
Alexey Samsonov
ae9b18b607
[Sanitizer] add sanity checks for communication with external symbolizer
...
llvm-svn: 167617
2012-11-09 14:45:30 +00:00
Dmitry Vyukov
0044e386e9
tsan: switch to new memory_order constants (ABI compatible)
...
llvm-svn: 167615
2012-11-09 14:12:16 +00:00
Dmitry Vyukov
805006b0ab
tsan: switch to new memory_order constants (ABI compatible)
...
llvm-svn: 167614
2012-11-09 14:11:51 +00:00
Andy Gibbs
571df35397
Improved support for removing the comma preceding __VA_ARGS__ where __VA_ARGS__
...
is empty in a variadic macro expansion. This fixes a divergence in support for
the ", ## __VA_ARGS__" GCC extension which differed in behaviour when in strict
C99 mode (note: there is no change in behaviour has been made in the gnu99 mode
that clang uses by default). In addition, there is improved support for the
Microsoft alternative extension ", __VA_ARGS__".
llvm-svn: 167613
2012-11-09 13:24:30 +00:00
Dmitry Vyukov
92b9e1dbfd
tsan: instrument all atomics (including fetch_add, exchange, cas, etc)
...
llvm-svn: 167612
2012-11-09 12:55:36 +00:00
Dmitry Vyukov
4e5f72d380
tsan: add __tsan_atomicX_compare_exchange_val() function
...
It's easier to call from compiler module.
llvm-svn: 167611
2012-11-09 12:54:37 +00:00
Alexander Potapenko
4b8e32de12
Add a possible underscore before the wrappers to the output expectations for Darwin
...
llvm-svn: 167610
2012-11-09 11:55:33 +00:00
Nico Weber
9512d3f161
Use isInvalidDecl() instead of isStatic() as suggested by dblaikie.
...
I couldn't think of a way to make an operator() invalid without returning
earlier from this function other than making it static, so no new test.
llvm-svn: 167609
2012-11-09 08:38:04 +00:00
Nadav Rotem
1cfef3e9ee
Add support for memory runtime check. When we can, we calculate array bounds.
...
If the arrays are found to be disjoint then we run the vectorized version of
the loop. If they are not, we run the scalar code.
llvm-svn: 167608
2012-11-09 07:09:44 +00:00
Nadav Rotem
d1e906e1f1
indent
...
llvm-svn: 167607
2012-11-09 07:02:24 +00:00
Jason Molenda
c500aea639
Mark Objective-C 2.0 status as "Not applicable" on Linux.
...
The objc 2 runtime doesn't run on Linux.
llvm-svn: 167606
2012-11-09 06:16:12 +00:00
Jason Molenda
1f3ea66e23
Update the status page to include Linux status information,
...
patch from Dan Malea, daniel.malea@intel.com .
llvm-svn: 167605
2012-11-09 06:14:39 +00:00
Nico Weber
1fefe417f0
Don't crash on calling static member overloaded operator, PR14120
...
Patch from Brian Brooks!
llvm-svn: 167604
2012-11-09 06:06:14 +00:00
Bob Wilson
5ad5a9511c
Remove old driver code to grab the iOS simulator version from the -D option.
...
We can now rely on the -mios-simulator-version-min command line option
and remove the awful hack. <rdar://problem/10304510>
llvm-svn: 167603
2012-11-09 01:59:30 +00:00
Nico Weber
5ed8a8a06a
[ms] Implement int64_t version of mangleNumber() in terms of the APSInt version.
...
No intended functionality change.
llvm-svn: 167602
2012-11-09 00:05:56 +00:00
Jason Molenda
44de0c3ac9
Fix typeo in example help text for type filter add.
...
<rdar://problem/12090979>
llvm-svn: 167601
2012-11-08 23:57:44 +00:00
Jason Molenda
28826a491c
Patch from Dan Malea daniel.malea@gmail.com to add some required
...
flags to the Linux makefiles to get the tests to run.
llvm-svn: 167600
2012-11-08 23:50:33 +00:00
Nico Weber
7d37f05a44
[Windows] Fix mangling of number literal '0'
...
Do this by making the mangleNumber(APSInt) overload look like
the int64_t version. (The latter should probably just delegate
to the former).
Test from Evgeny Eltsin!
llvm-svn: 167599
2012-11-08 23:38:59 +00:00
Bob Wilson
a2d228b570
Remove more code related to invoking llvm-gcc. <rdar://problem/11991320>
...
llvm-svn: 167598
2012-11-08 23:21:22 +00:00
David Blaikie
3a0de21233
Fix a source range regression in C++ new expressions with call initializers.
...
Introduced in r167507, discovered in review by Abramo Bagnara.
llvm-svn: 167597
2012-11-08 22:53:48 +00:00
Matt Beaumont-Gay
641bd89d6b
Fix a bug I found while preparing my devmtg talk: When passing NULL to a
...
function that takes a const Foo&, where Foo is convertible from a large number
of pointer types, we print ALL the overloads, no matter the setting of
-fshow-overloads.
There is potential follow-on work in unifying the "print candidates, but not
too many" logic between OverloadCandidateSet::NoteCandidates and
ImplicitConversionSequence::DiagnoseAmbiguousConversion.
llvm-svn: 167596
2012-11-08 20:50:02 +00:00
NAKAMURA Takumi
43ab4ef9ba
llvm/ConstantFolding.cpp: Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware.
...
llvm-svn: 167595
2012-11-08 20:34:25 +00:00
Benjamin Kramer
7d574e269d
LiteralSupport: Don't overflow the temporary buffer when decoding invalid string parts.
...
Instead just use a dummy buffer, we're not going to use the decoded string anyways.
Fixes PR14292.
llvm-svn: 167594
2012-11-08 19:22:31 +00:00
Benjamin Kramer
f23a6e6f80
LiteralSupport: Clean up style violations. No functionality change.
...
llvm-svn: 167593
2012-11-08 19:22:26 +00:00
Enrico Granata
efe637d440
Minor cleanups to the new ModuleList notification APIs: passing in the ModuleList as part of the callbacks, and not copying the notifier as part of copy constructing and assigning
...
llvm-svn: 167592
2012-11-08 19:16:03 +00:00
Abramo Bagnara
8d16bd4d10
Allow to pass from syntactic form of InitListExpr to semantic form (just as viceversa). No functionality change.
...
llvm-svn: 167591
2012-11-08 18:41:43 +00:00
Abramo Bagnara
ad9f2e21cd
Avoid to write function name in comment. Thanks to Dmitri Gribenko.
...
llvm-svn: 167588
2012-11-08 16:27:30 +00:00
Abramo Bagnara
3b8a9e5e6b
Readded line removed by mistake.
...
llvm-svn: 167587
2012-11-08 16:01:51 +00:00
Alexey Samsonov
75fb677fd1
[Sanitizer] Build all sanitizer runtime libraries with debug info (with -gline-tables-only, if it's available)
...
llvm-svn: 167584
2012-11-08 14:49:28 +00:00
Abramo Bagnara
341ab737e9
Fixed converted ConstantArrayTypeLoc range. Added a missing testcase for ConstructorDecl source range.
...
llvm-svn: 167583
2012-11-08 14:44:42 +00:00
Benjamin Kramer
08be41adbf
Drop the limitation to IEEE floating point types from the fdiv of pow2 -> fmul transform.
...
This is safe for x87 long doubles and ppc double doubles too.
llvm-svn: 167582
2012-11-08 13:58:10 +00:00
Abramo Bagnara
9b836fb019
Fixed range of implicit MemberExpr.
...
llvm-svn: 167581
2012-11-08 13:52:58 +00:00
Dmitry Vyukov
26216e4ae3
tsan: add range access functions for Go
...
llvm-svn: 167580
2012-11-08 13:38:45 +00:00
Alexey Samsonov
37119db20a
[ASan] avoid including <new> header in ASan runtime
...
llvm-svn: 167579
2012-11-08 13:31:19 +00:00
Dmitry Vyukov
e829b6231a
tsan: change TSAN_OPTIONS->GORACE in build script as well
...
llvm-svn: 167578
2012-11-08 13:23:13 +00:00
Alexey Samsonov
c463f3077e
[Sanitizer] try to fix Windows bot - include stdlib.h for abort/_exit functions
...
llvm-svn: 167577
2012-11-08 13:08:41 +00:00
Benjamin Kramer
d0b9f090fb
Set TLSSupported to false on Haiku.
...
Haiku does not support this (yet). Leaving it set to true leads to
configure scripts detecting __thread being available and Clang emitting
code for it, resulting in binaries the runtime_loader will refuse to
load.
Patch by Jonathan Schleifer!
llvm-svn: 167576
2012-11-08 12:59:15 +00:00
Dmitry Vyukov
9952b674ca
tsan: use GORACE env for options for Go
...
llvm-svn: 167575
2012-11-08 11:32:40 +00:00
Amara Emerson
ec2cd56708
Recommit modified r167540.
...
Improve ARM build attribute emission for architectures types.
This also changes the default architecture emitted for a generic CPU to "v7".
llvm-svn: 167574
2012-11-08 09:51:45 +00:00
Michael Liao
73cffddb95
Add support of RTM from TSX extension
...
- Add RTM code generation support throught 3 X86 intrinsics:
xbegin()/xend() to start/end a transaction region, and xabort() to abort a
tranaction region
llvm-svn: 167573
2012-11-08 07:28:54 +00:00