]> granicus.if.org Git - clang/log
clang
10 years agoRevert "Handle diagnostic warnings in Frontend diagnostic handler."
Alp Toker [Thu, 17 Jul 2014 12:29:08 +0000 (12:29 +0000)]
Revert "Handle diagnostic warnings in Frontend diagnostic handler."

This commit is missing tests and there are a few points that need to be
addressed before a new user-facing option can be added:

  http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140714/110198.html

This reverts commit r213112.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213260 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFixing the objc_runtine_name documentation so that the code block is properly generated.
Aaron Ballman [Thu, 17 Jul 2014 12:25:32 +0000 (12:25 +0000)]
Fixing the objc_runtine_name documentation so that the code block is properly generated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213259 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang-format: Fix parsing of conditional expressions.
Daniel Jasper [Thu, 17 Jul 2014 12:22:04 +0000 (12:22 +0000)]
clang-format: Fix parsing of conditional expressions.

Before:
  aaaaaa = aaaaaaaaaaaa ? aaaaaaaaaa ? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
      : aaaaaaaaaaaaaaaaaaaaaa
      : aaaaaaaaaaaaaaaaaaaaaaaaaaaa;

After:
  aaaaaa = aaaaaaaaaaaa
               ? aaaaaaaaaa ? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                            : aaaaaaaaaaaaaaaaaaaaaa
               : aaaaaaaaaaaaaaaaaaaaaaaaaaaa;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213258 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[OPENMP] Initial support for parsing and sema analysis of 'untied' clause.
Alexey Bataev [Thu, 17 Jul 2014 12:19:31 +0000 (12:19 +0000)]
[OPENMP] Initial support for parsing and sema analysis of 'untied' clause.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213257 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpstream an MS inline assembly test from Mozilla's inline assembly code
Ehsan Akhgari [Thu, 17 Jul 2014 11:38:22 +0000 (11:38 +0000)]
Upstream an MS inline assembly test from Mozilla's inline assembly code

Summary:
I'm planning on upstreaming some test cases for the inline assembly
usage in the Mozilla code base.  A lot of these test cases test the
recent fixes to this code.

Reviewers: rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4508

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213255 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPort memory barriers intrinsics to AArch64
Yi Kong [Thu, 17 Jul 2014 10:52:06 +0000 (10:52 +0000)]
Port memory barriers intrinsics to AArch64

Memory barrier __builtin_arm_[dmb, dsb, isb] intrinsics are required to
implement their corresponding ACLE and MSVC intrinsics.

This patch ports ARM dmb, dsb, isb intrinsic to AArch64.

Requires LLVM r213247.

Differential Revision: http://reviews.llvm.org/D4521

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213250 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoIR: update Clang to use polymorphic __fp16 conversion intrinsics.
Tim Northover [Thu, 17 Jul 2014 10:51:31 +0000 (10:51 +0000)]
IR: update Clang to use polymorphic __fp16 conversion intrinsics.

There should be no change in semantics at this stage.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213249 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Pass the ABI to the integrated assembler and add tests the existing arguments.
Daniel Sanders [Thu, 17 Jul 2014 09:46:40 +0000 (09:46 +0000)]
[mips] Pass the ABI to the integrated assembler and add tests the existing arguments.

Summary:
With this patch (and a corresponding LLVM patch), assembling an empty file with
GCC and Clang -fintegrated-as produce near identical objects. The remaining
differences are:
* GCC/GAS produce objects have a .pdr section
* GCC/GAS produce objects have a .gnu.attributes section
Other differences are insignificant such as precise file offsets and the order
of strings in the string table.

Differential Revision: http://reviews.llvm.org/D4531

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213241 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[OPENMP] Parsing/Sema analysis of directive 'master'
Alexander Musman [Thu, 17 Jul 2014 08:54:58 +0000 (08:54 +0000)]
[OPENMP] Parsing/Sema analysis of directive 'master'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213237 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoConsistency on the tab/space
Sylvestre Ledru [Thu, 17 Jul 2014 08:40:35 +0000 (08:40 +0000)]
Consistency on the tab/space

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213236 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix Bug 14061 - scan-build crashes during postprocessing if BUGFILE no longer exists
Sylvestre Ledru [Thu, 17 Jul 2014 08:39:04 +0000 (08:39 +0000)]
Fix Bug 14061 -  scan-build crashes during postprocessing if BUGFILE no longer exists
Experienced with Thunderbird build

Patch by Matti Niemenmaa

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213235 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[OPENMP] Initial parsing and sema analysis for 'final' clause.
Alexey Bataev [Thu, 17 Jul 2014 07:32:53 +0000 (07:32 +0000)]
[OPENMP] Initial parsing and sema analysis for 'final' clause.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213232 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTrack the difference between
Richard Smith [Thu, 17 Jul 2014 05:12:35 +0000 (05:12 +0000)]
Track the difference between

 -- a constructor list initialization that unpacked an initializer list into
    constructor arguments and
 -- a list initialization that created as std::initializer_list and passed it
    as the first argument to a constructor

in the AST. Use this flag while instantiating templates to provide the right
semantics for the resulting initialization.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213224 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix FriendDecl source location and range for class templates and function declaration...
Nikola Smiljanic [Thu, 17 Jul 2014 01:59:34 +0000 (01:59 +0000)]
Fix FriendDecl source location and range for class templates and function declarations that don't start with 'friend' keyword. Add more unittests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213220 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMS ABI: Padding injected between empty vbases doesn't up required align
David Majnemer [Thu, 17 Jul 2014 00:55:19 +0000 (00:55 +0000)]
MS ABI: Padding injected between empty vbases doesn't up required align

Only alignment is changed, not required alignment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213217 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Forward HandleTagDeclRequiredDefinition through MultiplexConsumer to fix...
David Blaikie [Wed, 16 Jul 2014 23:52:46 +0000 (23:52 +0000)]
DebugInfo: Forward HandleTagDeclRequiredDefinition through MultiplexConsumer to fix debug info emission in the presence of plugins.

When plugins are used the Multiplex(AST)Consumer is employed to dispatch
to both the plugin ASTConsumers and the IRGen ASTConsumer. It wasn't
dispatching a critical call for debug info, resulting in plugin users
having a negative debugging experience.

While I'm here, forward a bunch of other missing calls through the
consumer that seem like they should be there.

To test this, use the example plugin (requires plugins and examples) and
split the test case up so that the plugin testing can be done under that
requirement while the non-plugin testing will execute even in builds
that don't include plugin support or examples.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213213 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "Stuff"
David Blaikie [Wed, 16 Jul 2014 23:26:17 +0000 (23:26 +0000)]
Revert "Stuff"

This reverts commit r213210.

Accidental commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213212 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Ensure the ASTConsumer "HandleTagDeclRequireDefinition" callback path...
David Blaikie [Wed, 16 Jul 2014 23:25:44 +0000 (23:25 +0000)]
DebugInfo: Ensure the ASTConsumer "HandleTagDeclRequireDefinition" callback path is tested.

By having the two variables 'a' and 'b' in this test in a namespace, the
type was required to be complete before any debug info was ever emitted
(the entire namespace is parsed before the variables were emitted), this
meant that the codepath in which a declaration is emitted, then later on
the type is required to be complete and the debug info must be upgraded
to a definition was not used.

Moving the variables outside a namespace fixes this test coverage bug.

(interestingly, code coverage didn't help here -
HandleTagDeclRequireDefinition is fully covered because it's called even
in cases where the type hasn't been emitted for debug info at all
(further down in CGDebugInfo this no-ops) - so CC wouldn't've helped
catch this test coverage problem)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213211 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoStuff
David Blaikie [Wed, 16 Jul 2014 23:25:37 +0000 (23:25 +0000)]
Stuff

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213210 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd basic (noop) CodeGen support for __assume
Hal Finkel [Wed, 16 Jul 2014 22:44:54 +0000 (22:44 +0000)]
Add basic (noop) CodeGen support for __assume

Clang supports __assume, at least at the semantic level, when MS extensions are
enabled. Unfortunately, trying to actually compile code using __assume would
result in this error:

  error: cannot compile this builtin function yet

__assume is an optimizer hint, and can be ignored at the IR level. Until LLVM
supports assumptions at the IR level, a noop lowering is valid, and that is
what is done here.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213206 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoWhen list-initializing an object of class type, if we pick an initializer list
Richard Smith [Wed, 16 Jul 2014 21:33:43 +0000 (21:33 +0000)]
When list-initializing an object of class type, if we pick an initializer list
constructor (and pass it an implicitly-generated std::initializer_list object),
be sure to mark the resulting construction as list-initialization. This fixes
an assert in template instantiation where we previously thought we'd got direct
non-list initialization without any parentheses.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213201 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTypically linker options are protected with -Xlinker or -Wl,
Arthur Marble [Wed, 16 Jul 2014 21:16:16 +0000 (21:16 +0000)]
Typically linker options are protected with -Xlinker or -Wl,
however certain sloppy Makefiles pass -z options directly to
the compiler. This patch enables clang to recognize these
options (because -z is not used by clang itself).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213198 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSpecifying the diagnostic argument through the attribute table generator instead...
Aaron Ballman [Wed, 16 Jul 2014 20:28:10 +0000 (20:28 +0000)]
Specifying the diagnostic argument through the attribute table generator instead of having to enter it manually as part of the attribute subject list. This only affects attributes appertaining to ObjC interfaces and protocols.

No new tests required as this is covered by existing tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213193 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoObjective-C. Modify text of documentation for objc_runtime_name
Fariborz Jahanian [Wed, 16 Jul 2014 20:24:55 +0000 (20:24 +0000)]
Objective-C. Modify text of documentation for objc_runtime_name
attribute.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213192 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemoving a FIXME from the attribute parsing code by now passing along the scope and...
Aaron Ballman [Wed, 16 Jul 2014 20:21:50 +0000 (20:21 +0000)]
Removing a FIXME from the attribute parsing code by now passing along the scope and syntax information for attributes with custom parsing. It turns out not to matter too much because the FIXME wasn't quite true -- none of these attributes have a C++11 spelling. However, it's still a good change (for instance, we may add an attribute with a type arg in the future for which this code now behaves properly).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213191 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoObjective-C. Changes per A. Ballman's comment
Fariborz Jahanian [Wed, 16 Jul 2014 19:44:34 +0000 (19:44 +0000)]
Objective-C. Changes per A. Ballman's comment
for my last patch. // rdar://17631257

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213185 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove whitespace from test commit.
Arthur Marble [Wed, 16 Jul 2014 19:10:36 +0000 (19:10 +0000)]
Remove whitespace from test commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213184 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTest commit.
Arthur Marble [Wed, 16 Jul 2014 19:02:11 +0000 (19:02 +0000)]
Test commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213182 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd the --target option to clang-cl and use it to fix a test.
Reid Kleckner [Wed, 16 Jul 2014 18:31:25 +0000 (18:31 +0000)]
Add the --target option to clang-cl and use it to fix a test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213180 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't use -msse2 in test/Driver/cl-options.c
Hans Wennborg [Wed, 16 Jul 2014 18:20:35 +0000 (18:20 +0000)]
Don't use -msse2 in test/Driver/cl-options.c

It's already tested in cl-x86-flags.c, and can only be used
when targeting X86.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213179 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSimplify memory management in NestedNameSpecifierLocBuilder.
Serge Pavlov [Wed, 16 Jul 2014 18:18:13 +0000 (18:18 +0000)]
Simplify memory management in NestedNameSpecifierLocBuilder.

With this change the memory of buffer in NestedNameSpecifierLocBuilder
is allocated in one place. It also prevents from allocation of tiny blocks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213178 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Driver][Mips] If CPU name is not provided to the driver explicitly use
Simon Atanasyan [Wed, 16 Jul 2014 17:34:54 +0000 (17:34 +0000)]
[Driver][Mips] If CPU name is not provided to the driver explicitly use
multilibs from the FSFS toolchain corresponding to the mips32r2/mips64r2 CPUs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213175 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake clang's rewrite engine a core feature
Alp Toker [Wed, 16 Jul 2014 16:48:33 +0000 (16:48 +0000)]
Make clang's rewrite engine a core feature

The rewrite facility's footprint is small so it's not worth going to these
lengths to support disabling at configure time, particularly since key compiler
features now depend on it.

Meanwhile the Objective-C rewriters have been moved under the
ENABLE_CLANG_ARCMT umbrella for now as they're comparatively heavy and still
potentially worth excluding from lightweight builds.

Tests are now passing with any combination of feature flags. The flags
historically haven't been tested by LLVM's build servers so caveat emptor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213171 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang-cl: expand test coverage for "core" options
Hans Wennborg [Wed, 16 Jul 2014 16:29:00 +0000 (16:29 +0000)]
clang-cl: expand test coverage for "core" options

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213170 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoObjective-C. Introducing __attribute__((objc_runtime_name("runtimename"))
Fariborz Jahanian [Wed, 16 Jul 2014 16:16:04 +0000 (16:16 +0000)]
Objective-C. Introducing __attribute__((objc_runtime_name("runtimename"))
to be applied to class or protocols. This will direct IRGen
for Objective-C metadata to use the new name in various places
where class and protocol names are needed.
rdar:// 17631257

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213167 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoExpand the wildcard expansion test to also cover '?'
Hans Wennborg [Wed, 16 Jul 2014 16:14:09 +0000 (16:14 +0000)]
Expand the wildcard expansion test to also cover '?'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213165 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang-cl: make sure we still parse -fms-version= after r213119
Hans Wennborg [Wed, 16 Jul 2014 16:03:56 +0000 (16:03 +0000)]
clang-cl: make sure we still parse -fms-version= after r213119

The CoreOption flag got lost in the changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213164 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includ...
Alp Toker [Wed, 16 Jul 2014 15:12:48 +0000 (15:12 +0000)]
Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]"

We've decided to make the core rewriter class and PP rewriters mandatory.
They're only a few hundred lines of code in total and not worth supporting as a
distinct build configuration, especially since doing so disables key compiler
features.

This reverts commit r213150.

Revert "clang/test: Introduce the feature "rewriter" for --enable-clang-rewriter."

This reverts commit r213148.

Revert "Move clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/"

This reverts commit r213146.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213159 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ASTMatchers] Add a usingDirectiveDecl matcher.
Benjamin Kramer [Wed, 16 Jul 2014 14:14:51 +0000 (14:14 +0000)]
[ASTMatchers] Add a usingDirectiveDecl matcher.

This matches 'using namespace' declarations.

Differential Revision: http://reviews.llvm.org/D4517

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213152 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes....
NAKAMURA Takumi [Wed, 16 Jul 2014 13:42:43 +0000 (13:42 +0000)]
clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213150 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang/test: Introduce the feature "rewriter" for --enable-clang-rewriter.
NAKAMURA Takumi [Wed, 16 Jul 2014 13:36:39 +0000 (13:36 +0000)]
clang/test: Introduce the feature "rewriter" for --enable-clang-rewriter.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213148 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/
NAKAMURA Takumi [Wed, 16 Jul 2014 13:23:13 +0000 (13:23 +0000)]
Move clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213146 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTrailing linefeed.
NAKAMURA Takumi [Wed, 16 Jul 2014 13:21:58 +0000 (13:21 +0000)]
Trailing linefeed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213145 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Driver][Mips] Reduce code duplication - use existing function
Simon Atanasyan [Wed, 16 Jul 2014 12:29:22 +0000 (12:29 +0000)]
[Driver][Mips] Reduce code duplication - use existing function
getMipsCPUAndABI() to get MIPS ABI name during multi-library selection.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213143 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Driver][Mips] Remove flags which is not used in multi-library selection.
Simon Atanasyan [Wed, 16 Jul 2014 12:29:05 +0000 (12:29 +0000)]
[Driver][Mips] Remove flags which is not used in multi-library selection.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213142 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Driver][Mips] Reduce code duplication. Remove static isMipsNan2008() function.
Simon Atanasyan [Wed, 16 Jul 2014 12:24:48 +0000 (12:24 +0000)]
[Driver][Mips] Reduce code duplication. Remove static isMipsNan2008() function.
Use the tools::mips::isNaN2008() routine instead.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213141 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang/test: Introduce the feature "staticanalyzer" for --enable-clang-static-analyzer.
NAKAMURA Takumi [Wed, 16 Jul 2014 12:05:45 +0000 (12:05 +0000)]
clang/test: Introduce the feature "staticanalyzer" for --enable-clang-static-analyzer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213140 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang/test/Sema/warn-documentation-almost-trailing.c: Rewrite checks with @LINE.
NAKAMURA Takumi [Wed, 16 Jul 2014 12:05:24 +0000 (12:05 +0000)]
clang/test/Sema/warn-documentation-almost-trailing.c: Rewrite checks with @LINE.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213139 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Correct the invocation of GAS in several cases.
Daniel Sanders [Wed, 16 Jul 2014 11:52:23 +0000 (11:52 +0000)]
[mips] Correct the invocation of GAS in several cases.

Summary:
As a result of this patch, assembling an empty file with GCC and Clang (using
GAS as the assembler) now produces identical objects.

-mfp32/-mfpxx/-mfp64 now form a trinity of options. -mfpxx is the default
when the triple vendor is 'img' or 'mti', the ABI is O32, and the CPU is
between mips2 and mips32r2/mips64r2 (inclusive).

-mno-shared is always given to the assembler to match the effect of
-mabicalls (currently unimplemented but Clang acts as if it is given).
Similarly, -call_nonpic is always given to match the effect of -mplt (also
unimplemented and acts as if given) except when the ABI is 64 in which case
-mplt has no effect so -KPIC is given instead.

-mhard-float/-msoft-float are now passed on.

-modd-spreg/-mno-odd-spreg are now passed on.

-mno-mips16 is correctly passed on. The assembler option is -no-mips16 not
-mno-mips16

Differential Revision: http://reviews.llvm.org/D4515

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213138 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Add support for -mfpxx and -mno-fpxx.
Daniel Sanders [Wed, 16 Jul 2014 09:57:54 +0000 (09:57 +0000)]
[mips] Add support for -mfpxx and -mno-fpxx.

Differential Revision: http://reviews.llvm.org/D4464

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213132 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't add -Bsymbolic by default on Android.
Evgeniy Stepanov [Wed, 16 Jul 2014 08:46:35 +0000 (08:46 +0000)]
Don't add -Bsymbolic by default on Android.

-Bsymbolic is not a platform requirement and should not
be added unconditionally.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213126 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMS ABI: Up the required alignment after inserting padding between vbases
David Majnemer [Wed, 16 Jul 2014 07:16:58 +0000 (07:16 +0000)]
MS ABI: Up the required alignment after inserting padding between vbases

We would correctly insert sufficiently aligned padding between vbases
when our leading base was empty, however we would neglect to increase
the required alignment of the most derived class.

This fixes PR20315.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213123 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAST: Convert a SmallPtrSet to a SmallPtrSetImpl in RecordLayoutBuilder
David Majnemer [Wed, 16 Jul 2014 06:30:31 +0000 (06:30 +0000)]
AST: Convert a SmallPtrSet to a SmallPtrSetImpl in RecordLayoutBuilder

No functionality changed, it just makes the code a little less brittle.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213122 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAST: Cleanup RecordLayoutBuilder
David Majnemer [Wed, 16 Jul 2014 06:04:00 +0000 (06:04 +0000)]
AST: Cleanup RecordLayoutBuilder

No functionality changed, just some cleanups:
- Switch some loops to range-based for.
- Name some iterators with a more creative name than "I".
- Reduce dependence on auto. Does RD->bases() give you a list of
  CXXBaseSpecifiers or CXXRecordDecls? It's more clear to just say which
  upfront.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213121 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoImprove error recovery around colon.
Serge Pavlov [Wed, 16 Jul 2014 05:16:52 +0000 (05:16 +0000)]
Improve error recovery around colon.

Recognize additional cases, when '::' is mistyped as ':'.
This is a fix to RP18587 - colons have too much protection in member-declarations
Review is tracked by http://reviews.llvm.org/D3653.

This is an attempt to recommit the fix, initially committed as r212957 but then
reverted in r212965 as it broke self-build. In the updated patch ParseDirectDeclarator
turns on colon protection in for context as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213120 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDriver: bifurcate extended and basic MSC versioning
Saleem Abdulrasool [Wed, 16 Jul 2014 03:13:50 +0000 (03:13 +0000)]
Driver: bifurcate extended and basic MSC versioning

This restores the original behaviour of -fmsc-version. The older option
remains as a mechanism for specifying the basic version information. A
secondary option, -fms-compatibility-version permits the user to specify an
extended version to the driver.

The new version takes the value as a dot-separated value rather than the
major * 100 + minor format that -fmsc-version format. This makes it easier to
specify the value as well as a more flexible manner for specifying the value.

Specifying both values is considered an error.

The older parameter is left solely as a driver option, which is normalised into
the newer parameter. This allows us to retain a single code path in the
compiler itself whilst preserving the semantics of the old parameter as well as
avoid having to determine which of two formats are being used by the invocation.

The test changes are due to the fact that the compiler no longer supports the
old option, and is a direct conversion to the new option.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213119 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd a test for wildcard expansion on Windows
Hans Wennborg [Wed, 16 Jul 2014 00:55:31 +0000 (00:55 +0000)]
Add a test for wildcard expansion on Windows

This depends on LLVM r213114

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213115 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoHandle diagnostic warnings in Frontend diagnostic handler.
Tyler Nowicki [Wed, 16 Jul 2014 00:40:42 +0000 (00:40 +0000)]
Handle diagnostic warnings in Frontend diagnostic handler.

Clang uses a diagnostic handler to grab diagnostic messages so it can print them
with the line of source code they refer to. This patch extends this to handle
diagnostic warnings that were added to llvm to produce a warning when
loop vectorization is explicitly specified (using a pragma clang loop directive)
but fails.

Reviewed by: Aaron Ballman

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213112 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAvoid referencing the vtable when calling the ctor without emitting it
Reid Kleckner [Wed, 16 Jul 2014 00:30:59 +0000 (00:30 +0000)]
Avoid referencing the vtable when calling the ctor without emitting it

This fixes compilation errors about incomplete types used with WebKit's
RefPtr template.  Simply calling an out of line constructor should not
instantiate all inline and defaulted virtual methods.

Tested by building and testing several big piles of code on Linux.

Reviewers: rsmith

Differential Revision: http://reviews.llvm.org/D4429

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213109 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse the integrated assembler by default on OpenBSD/sparc.
Brad Smith [Tue, 15 Jul 2014 23:07:10 +0000 (23:07 +0000)]
Use the integrated assembler by default on OpenBSD/sparc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213105 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSwitching some iterator-based for loops to use range-based for loops. No functional...
Aaron Ballman [Tue, 15 Jul 2014 22:03:49 +0000 (22:03 +0000)]
Switching some iterator-based for loops to use range-based for loops. No functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213098 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd __INTMAX_C_SUFFIX__ and __UINTMAX_C_SUFFIX__.
Joerg Sonnenberger [Tue, 15 Jul 2014 21:58:11 +0000 (21:58 +0000)]
Add __INTMAX_C_SUFFIX__ and __UINTMAX_C_SUFFIX__.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213097 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdded the pack_elements range accessor. Refactoring some for loops to use range-based...
Aaron Ballman [Tue, 15 Jul 2014 21:32:31 +0000 (21:32 +0000)]
Added the pack_elements range accessor. Refactoring some for loops to use range-based for loops instead. No functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213095 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang-cl: Implement the -arch flag
Ehsan Akhgari [Tue, 15 Jul 2014 18:27:51 +0000 (18:27 +0000)]
clang-cl: Implement the -arch flag

Summary:
This implements the -arch flag for both x86 and x86-64 by letting
them affect the default target features we pass to cc1.  -m machine
flags will override the features set by -arch.

Reviewers: hansw

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4519

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213083 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoImprove test of my previous patch. rdar://17633301
Fariborz Jahanian [Tue, 15 Jul 2014 17:47:58 +0000 (17:47 +0000)]
Improve test of my previous patch. rdar://17633301

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213081 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd codegen for more R600 builtins
Matt Arsenault [Tue, 15 Jul 2014 17:23:46 +0000 (17:23 +0000)]
Add codegen for more R600 builtins

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213079 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoObjective-C IRGen. Fixes an inconsistant linkage of
Fariborz Jahanian [Tue, 15 Jul 2014 17:14:34 +0000 (17:14 +0000)]
Objective-C IRGen. Fixes an inconsistant linkage of
ObC's metaclass metadata with its class metadata which
results in an assert. rdar://17633301

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213076 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't create non-temporary twines.
Joerg Sonnenberger [Tue, 15 Jul 2014 12:18:40 +0000 (12:18 +0000)]
Don't create non-temporary twines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213066 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake sure int64_t and uint64_t are consistent.
Joerg Sonnenberger [Tue, 15 Jul 2014 11:51:38 +0000 (11:51 +0000)]
Make sure int64_t and uint64_t are consistent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213065 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPrune Redundant libdeps in CMake's target_link_libraries and LLVMBuild.txt.
NAKAMURA Takumi [Tue, 15 Jul 2014 11:37:03 +0000 (11:37 +0000)]
Prune Redundant libdeps in CMake's target_link_libraries and LLVMBuild.txt.

I checked this with Release+Asserts on x86_64-mingw32. Please restore partially if this were overkill.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213064 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoProvide builtin macros as template for PRIab and SCNab, matching the
Joerg Sonnenberger [Tue, 15 Jul 2014 11:30:00 +0000 (11:30 +0000)]
Provide builtin macros as template for PRIab and SCNab, matching the
underlaying types.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213063 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoclang-format: Improve heuristic around avoiding bad line breaks.
Daniel Jasper [Tue, 15 Jul 2014 09:00:34 +0000 (09:00 +0000)]
clang-format: Improve heuristic around avoiding bad line breaks.

Now, this can be properly formatted:
  static_cast<A< //
      B> *>(     //
      );

Before, clang-format could end up, not formatting the code at all.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213055 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAST: Don't walk all redeclarations when looking for a uuid attr
David Majnemer [Tue, 15 Jul 2014 04:30:17 +0000 (04:30 +0000)]
AST: Don't walk all redeclarations when looking for a uuid attr

No funcionality changed, just a simplification of the existing code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213044 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[modules] Rearrange and unify the way we determine if we need to pull in
Richard Smith [Tue, 15 Jul 2014 03:37:06 +0000 (03:37 +0000)]
[modules] Rearrange and unify the way we determine if we need to pull in
redeclaration chains when pulling in a declaration. We need the redecl chain
unless we know some other declaration will trigger it to be pulled in; that
happens if our originally-canonical declaration had all the knowledge that
we have (and isn't us).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213043 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[OPENMP] Several cosmetic fixes in comments, tests and the code for '#pragma omp...
Alexey Bataev [Tue, 15 Jul 2014 02:55:09 +0000 (02:55 +0000)]
[OPENMP] Several cosmetic fixes in comments, tests and the code for '#pragma omp single'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213040 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't get confused on the number of braces when braces start after the first __asm
Ehsan Akhgari [Tue, 15 Jul 2014 02:21:41 +0000 (02:21 +0000)]
Don't get confused on the number of braces when braces start after the first __asm

Summary:
Without this, we would not consume the closing brace which would cause
the parser to start consuming C++ and bad things would happen.

Reviewers: majnemer

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4505

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213032 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoVirtualFileSystem: Correctly generate the mapping for an empty VFS
Justin Bogner [Tue, 15 Jul 2014 01:24:35 +0000 (01:24 +0000)]
VirtualFileSystem: Correctly generate the mapping for an empty VFS

In r209332 I accidentally broke generation of empty VFS maps. This
fixes the issue and adds a test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213028 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPR19751: (T())++ is not a cast-expression.
Richard Smith [Tue, 15 Jul 2014 00:11:48 +0000 (00:11 +0000)]
PR19751: (T())++ is not a cast-expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213022 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAST: Fix __uuidof for template specializations
David Majnemer [Mon, 14 Jul 2014 23:40:24 +0000 (23:40 +0000)]
AST: Fix __uuidof for template specializations

While we previously supported __uuidof applied to a template
specialization, we would only find the uuid attribute if it was applied
to the template argument.  We would erroneously ignore the uuid
attribute on the specialization itself.

This is required to parse Windows Runtime C++ Template Library headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213016 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "Revert "Move clang feature flags settings out of LLVM core and into cfe""
Alp Toker [Mon, 14 Jul 2014 23:28:38 +0000 (23:28 +0000)]
Revert "Revert "Move clang feature flags settings out of LLVM core and into cfe""

It turns out this commit was fine. The problem was in the legacy build system (fixed r213010).

This reverts commit r213008.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213014 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove dead code.
Richard Smith [Mon, 14 Jul 2014 23:25:30 +0000 (23:25 +0000)]
Remove dead code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213013 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDefine ENABLE_CLANG_ARCMT in the legacy build system too
Alp Toker [Mon, 14 Jul 2014 23:15:48 +0000 (23:15 +0000)]
Define ENABLE_CLANG_ARCMT in the legacy build system too

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213010 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAST: Cleanup __uuidof related code
David Majnemer [Mon, 14 Jul 2014 23:12:54 +0000 (23:12 +0000)]
AST: Cleanup __uuidof related code

Switch some things to use range-based for loops.
Change CXXUuidofExpr::GetUuidAttrOfType's return type to be const.
No functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213009 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "Move clang feature flags settings out of LLVM core and into cfe"
Alp Toker [Mon, 14 Jul 2014 23:10:07 +0000 (23:10 +0000)]
Revert "Move clang feature flags settings out of LLVM core and into cfe"

Prospectively revert to get one of the many build configurations back working
(presumably the side-by-side+modular CMake config).

This reverts commit r212997.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213008 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoContinue parsing an expression list even after an error is encountered.
Kaelyn Takata [Mon, 14 Jul 2014 22:48:10 +0000 (22:48 +0000)]
Continue parsing an expression list even after an error is encountered.

Otherwise, multiple errors such as having unknown identifiers for two
arguments won't be diagnosed properly (e.g. only the first one would
have a diagnostic message if typo correction fails even though both
would be diagnosed if typo correction suggests a replacement).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213003 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove clang feature flags settings out of LLVM core and into cfe
Alp Toker [Mon, 14 Jul 2014 22:17:26 +0000 (22:17 +0000)]
Move clang feature flags settings out of LLVM core and into cfe

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212997 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix build with various feature flag combinations
Alp Toker [Mon, 14 Jul 2014 22:17:22 +0000 (22:17 +0000)]
Fix build with various feature flag combinations

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212996 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix the !CLANG_ENABLE_ARCMT build
Alp Toker [Mon, 14 Jul 2014 22:17:16 +0000 (22:17 +0000)]
Fix the !CLANG_ENABLE_ARCMT build

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212995 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTry harder to supress the test from r212975 on Windows
Ben Langmuir [Mon, 14 Jul 2014 21:14:28 +0000 (21:14 +0000)]
Try harder to supress the test from r212975 on Windows

The attempt in r212980 was broken because we might not fail if
LLVM_ON_UNIX is enabled for cross compiling to Windows, and it didn't
consider mingw either.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212989 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDrop separate UIntMaxType and just derive it from IntMaxType.
Joerg Sonnenberger [Mon, 14 Jul 2014 21:00:38 +0000 (21:00 +0000)]
Drop separate UIntMaxType and just derive it from IntMaxType.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212987 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoIntroduce getCorrespondingUnsignedType() in TargetInfo to work like the
Joerg Sonnenberger [Mon, 14 Jul 2014 20:40:56 +0000 (20:40 +0000)]
Introduce getCorrespondingUnsignedType() in TargetInfo to work like the
corresponding AST context function, only restricted to basic integer
types. Use this to ensure getUIntPtrType() gives types consistent with
getIntPtrType(). Fix NVPTX backend to give signed intptr_t.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212982 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoXFAIL test that doesn't work on Windows yet
Ben Langmuir [Mon, 14 Jul 2014 20:36:40 +0000 (20:36 +0000)]
XFAIL test that doesn't work on Windows yet

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212980 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoIn C++98, if an rvalue reference binds to a function lvalue (or an xvalue or an
Richard Smith [Mon, 14 Jul 2014 19:54:05 +0000 (19:54 +0000)]
In C++98, if an rvalue reference binds to a function lvalue (or an xvalue or an
array prvalue), treat that as a direct binding. Only the class prvalue case
needs to be excluded here; the rest are extensions anyway, so we can treat them
as we would in C++11.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212978 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix case-sensitivity of inferred framework modules
Ben Langmuir [Mon, 14 Jul 2014 19:45:12 +0000 (19:45 +0000)]
Fix case-sensitivity of inferred framework modules

Just because we can open a directory named "COcoa.framework" doesn't
mean we should provide a "COcoa" module on a case-insensitive filesystem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212975 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix typos
Alp Toker [Mon, 14 Jul 2014 19:42:55 +0000 (19:42 +0000)]
Fix typos

Also consolidate 'backward compatibility'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212974 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAvoid non-attributive uses of 'unsupported' in diagnostics
Alp Toker [Mon, 14 Jul 2014 19:16:22 +0000 (19:16 +0000)]
Avoid non-attributive uses of 'unsupported' in diagnostics

We don't have a style guide for diagnostic messages, but convention strongly
favours the forms:

  'attribute is not supported', 'unsupported attribute'

We generally avoid:

  'attribute is unsupported', 'non-supported attribute'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212972 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDocument the forward of the -u option (r211756)
Sylvestre Ledru [Mon, 14 Jul 2014 18:34:37 +0000 (18:34 +0000)]
Document the forward of the -u option (r211756)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212969 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDocument the warning triggered by the unsupported gcc optimization flags (r212805)
Sylvestre Ledru [Mon, 14 Jul 2014 18:30:23 +0000 (18:30 +0000)]
Document the warning triggered by the unsupported gcc optimization flags (r212805)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212968 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "Improve error recovery around colon."
Reid Kleckner [Mon, 14 Jul 2014 18:19:58 +0000 (18:19 +0000)]
Revert "Improve error recovery around colon."

This reverts commit r212957.  It broke the self-host on code like this
from LLVM's option library:
  for (auto Arg: filtered(Id0, Id1, Id2))

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212965 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoChange the diagnostic group for unsupported gcc optimizations added r212805
Alp Toker [Mon, 14 Jul 2014 18:11:38 +0000 (18:11 +0000)]
Change the diagnostic group for unsupported gcc optimizations added r212805

Use -Winvalid-command-line-argument here to align with existing gcc opt
diagnostics. Meanwhile -Wunused-command-line-argument is for flags that we
support but were, say, fed into the wrong invocation.

Also tweak wording to make sense with -Werror.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212964 91177308-0d34-0410-b5e6-96231b3b80d8