[clang] 1650178 - [Clang] Add support for -Wno-inline-namespace-reopened-noninline

2020-06-25 Thread Andrey Bokhanko via cfe-commits
Author: Elvina Yakubova Date: 2020-06-25T18:48:50+03:00 New Revision: 16501782c8d849bc1812d527dc8466574700663d URL: https://github.com/llvm/llvm-project/commit/16501782c8d849bc1812d527dc8466574700663d DIFF: https://github.com/llvm/llvm-project/commit/16501782c8d849bc1812d527dc8466574700663d.dif

Re: Disable fms-extensions?

2017-03-11 Thread Andrey Bokhanko via cfe-commits
Hi Zahira, -fms-extensions can obviously be disabled with -fno-ms-extensions. This won't necessarily mirrors /Za exactly, though -- as according to MS, /Za disables *all* C++ extensions, not only MS-specific ones. I doubt anyone tried to implement a mode that mirrors /Za exactly. Yours, Andrey --

r284579 - [Sema] Gcc compatibility of vector shift

2016-10-19 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Wed Oct 19 07:06:10 2016 New Revision: 284579 URL: http://llvm.org/viewvc/llvm-project?rev=284579&view=rev Log: [Sema] Gcc compatibility of vector shift Gcc prints error if elements of left and right parts of a shift have different sizes. This patch is provided the GCC comp

r279240 - Fixed a typo (compilation_commands.json --> compile_commands.json).

2016-08-19 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Aug 19 08:36:31 2016 New Revision: 279240 URL: http://llvm.org/viewvc/llvm-project?rev=279240&view=rev Log: Fixed a typo (compilation_commands.json --> compile_commands.json). Modified: cfe/trunk/docs/HowToSetupToolingForLLVM.rst Modified: cfe/trunk/docs/HowToSetup

r278501 - Fix For pr28288 - Error message in shift of vector values

2016-08-12 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Aug 12 06:22:12 2016 New Revision: 278501 URL: http://llvm.org/viewvc/llvm-project?rev=278501&view=rev Log: Fix For pr28288 - Error message in shift of vector values This fixes an error in type checking of shift of vector values. Patch by Vladimir Yakovlev. Differenti

Re: [PATCH] D21678: Fix For pr28288 - Error message in shift of vector values

2016-08-11 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a subscriber: andreybokhanko. andreybokhanko added a comment. @uweigand Ulrich, any objections here? If not, I will commit this patch tomorrow (as the author, Vladimir, doesn't have commit access yet). Andrey Repository: rL LLVM https://reviews.llvm.org/D21678 __

Re: [PATCH] D22970: Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

2016-07-29 Thread Andrey Bokhanko via cfe-commits
andreybokhanko accepted this revision. andreybokhanko added a comment. This revision is now accepted and ready to land. LGTM I can commit this patch on Monday, when I will reach my work machine. Andrey Repository: rL LLVM https://reviews.llvm.org/D22970 __

Re: r277134 - [GCC] Support for __final specifier

2016-07-29 Thread Andrey Bokhanko via cfe-commits
0x89ba9a in main > /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/tools/clang/tools/driver/driver.cpp:380 > #24 0x7f7d81406f44 in __libc_start_main > (/lib/x86_64-linux-gnu/libc.so.6+0x21f44) > #25 0x80dded in _start > (/mnt/b/sanitizer-buildbot3/sanit

r277134 - [GCC] Support for __final specifier

2016-07-29 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Jul 29 05:42:48 2016 New Revision: 277134 URL: http://llvm.org/viewvc/llvm-project?rev=277134&view=rev Log: [GCC] Support for __final specifier As reported in bug 28473, GCC supports "final" functionality in pre-C++11 code using the __final keyword. Clang currently sup

[PATCH] D22913: Mention of proper support for "__unaligned" type qualifier in 3.9 clang release notes

2016-07-28 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added a reviewer: hans. andreybokhanko added a subscriber: cfe-commits. This add mention of proper support for "__unaligned" type qualifier in 3.9 clang release notes. https://reviews.llvm.org/D22913 Files: docs/ReleaseNotes.rst Index: doc

Re: RFC: Default language standard mode policy

2016-07-01 Thread Andrey Bokhanko via cfe-commits
It doesn't break anything for us and in general the proposal make sense to me. Yours, Andrey = Software Engineer Intel Compiler Team On Wed, Jun 29, 2016 at 10:09 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi all! > > I'd like to establish a policy for Clang's

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-06-06 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D18035#450247, @hfinkel wrote: > The link was posted here: > http://sourcerytools.com/pipermail/cxx-abi-dev/2016-June/002919.html - which > is the mailing list where the C++ ABI specification is discussed. Ah, I see... Dmitry told me

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-06-06 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D18035#448057, @hfinkel wrote: > We just received the first draft of that specification yesterday. Is this specification confidential? If not, why it hasn't been made available in this code review? Most puzzlingly, why it hasn't been s

Re: r269220 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-26 Thread Andrey Bokhanko via cfe-commits
> clang::SourceLocation, clang::ExceptionSpecificationType, >>> clang::SourceRange, ParsedType *, clang::SourceRange *, unsigned int, >>> clang::Expr *, CachedTokens *, clang::SourceLocation, >>> clang::SourceLocation, clang::Declarator &, TypeResult): Assertion >&

r270834 - [MSVC] Support for __unaligned qualifier in functions

2016-05-26 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu May 26 05:06:01 2016 New Revision: 270834 URL: http://llvm.org/viewvc/llvm-project?rev=270834&view=rev Log: [MSVC] Support for __unaligned qualifier in functions This implements support for MS-specific __unaligned qualifier in functions and makes the following test case

Re: [PATCH] D20437: [MSVC] Support of __unaligned qualifier for function types

2016-05-26 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked 3 inline comments as done. Comment at: lib/Sema/SemaExprCXX.cpp:937 @@ -936,2 +936,3 @@ + CXXThisTypeQuals &= Qualifiers::FastMask; S.CXXThisTypeOverride majnemer wrote: > Can you add a comment for this line. Done. Thank you for th

Re: [PATCH] D20437: [MSVC] Support of __unaligned qualifier for function types

2016-05-20 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked 2 inline comments as done. Comment at: include/clang/Sema/DeclSpec.h:1152-1169 @@ -1153,19 +1151,20 @@ struct ArrayTypeInfo : TypeInfoCommon { -/// The type qualifiers for the array: const/volatile/restrict/_Atomic. -unsigned TypeQuals : 4; +

Re: [PATCH] D20437: [MSVC] Support of __unaligned qualifier for function types

2016-05-20 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 57907. andreybokhanko added a comment. Added a test for __unaligned arrays. http://reviews.llvm.org/D20437 Files: include/clang/AST/Type.h include/clang/Sema/DeclSpec.h lib/AST/DeclCXX.cpp lib/AST/MicrosoftMangle.cpp lib/Sema/DeclSpec.cpp

Re: r269220 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-19 Thread Andrey Bokhanko via cfe-commits
clang::ExceptionSpecificationType, >> clang::SourceRange, ParsedType *, clang::SourceRange *, unsigned int, >> clang::Expr *, CachedTokens *, clang::SourceLocation, >> clang::SourceLocation, clang::Declarator &, TypeResult): Assertion >> `I.Fun.TypeQuals == TypeQuals && &

[PATCH] D20437: [MSVC] Support of __unaligned qualifier for function types

2016-05-19 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, majnemer. andreybokhanko added a subscriber: cfe-commits. This adds support of MS-specific "__unaligned" qualifier for function types and fixes errors described by David Majnemer in this thread: http://lists.llvm.org/pipe

r269220 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-11 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Wed May 11 13:38:21 2016 New Revision: 269220 URL: http://llvm.org/viewvc/llvm-project?rev=269220&view=rev Log: [MSVC] Implementation of __unaligned as a proper type qualifier This patch implements __unaligned (MS extension) as a proper type qualifier (before that, it was i

Re: [PATCH] D20103: PR27132: Proper mangling for __unaligned qualifier (now with both PR27367 and PR27666 fixed)

2016-05-11 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked 3 inline comments as done. andreybokhanko added a comment. In http://reviews.llvm.org/D20103#425855, @majnemer wrote: > Can we test pointers to data members? Is it possible to have `__unaligned int > *S::*` or `int *S::* __unaligned` or even `__unaligned int *S::* __unalign

Re: [PATCH] D20103: PR27132: Proper mangling for __unaligned qualifier (now with both PR27367 and PR27666 fixed)

2016-05-11 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 56874. andreybokhanko added a comment. Patch updated to address David's comments. Yours, Andrey http://reviews.llvm.org/D20103 Files: include/clang/AST/Type.h include/clang/Basic/AddressSpaces.h include/clang/Basic/Attr.td include/clang/Basi

[PATCH] D20103: PR27132: Proper mangling for __unaligned qualifier (now with both PR27367 and PR27666 fixed)

2016-05-10 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, majnemer, thakis. andreybokhanko added a subscriber: cfe-commits. This is exactly same patch as http://reviews.llvm.org/D19654 (already reviewed and LGTMed by majnemer), with a couple of changes to fix PR27666: * __unalig

Re: r268727 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-06 Thread Andrey Bokhanko via cfe-commits
tion failed: CVR && "unexpected qualifiers mismatch", file >> C:\b\build\slave\ClangToTWin64\build\src\third_party\llvm\tools\clang\lib\Sema\SemaOverload.cpp, >> line 9118 >> >> Can you revert again? Should be easy to repro, just include in a >> cc

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-05-06 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. David, thank you for the thorough review! -- it definitely made the patch stronger and me even more paranoid than the rest of Intel. :-) In http://reviews.llvm.org/D19654#422445, @majnemer wrote: > FYI, we will also want to update `getAddrOfCXXCatchHandler` and

r268727 - [MSVC] Implementation of __unaligned as a proper type qualifier

2016-05-06 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri May 6 06:47:55 2016 New Revision: 268727 URL: http://llvm.org/viewvc/llvm-project?rev=268727&view=rev Log: [MSVC] Implementation of __unaligned as a proper type qualifier This patch implements __unaligned (MS extension) as a proper type qualifier (before that, it was i

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-05-05 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. David, just noticed that your first question doesn't have a redefinition. For this program: __unaligned int unaligned_foo3() { return 0; } auto z = unaligned_foo3(); Both MS and us mangle z the same: ?z@@3HA Yours, Andrey http://reviews.llvm.org/D19654 ___

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-05-05 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked an inline comment as done. Comment at: lib/AST/MicrosoftMangle.cpp:1583-1584 @@ -1579,2 +1582,4 @@ case QMM_Result: +// Presence of __unaligned qualifier shouldn't affect mangling here. +Quals.removeUnaligned(); if ((!IsPointer && Quals) || is

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-05-04 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked 3 inline comments as done. Comment at: lib/AST/MicrosoftMangle.cpp:1583-1584 @@ -1579,2 +1582,4 @@ case QMM_Result: +// Presence of __unaligned qualifier shouldn't affect mangling here. +Quals.removeUnaligned(); if ((!IsPointer && Quals) || is

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-04-29 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked 3 inline comments as done. andreybokhanko added a comment. David, thank you for the review! In http://reviews.llvm.org/D19654#416408, @majnemer wrote: > It would be good to have a test for the variable template case: > > template > T x; > > auto g() { return x; } >

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-04-29 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 55588. andreybokhanko added a comment. Fixed a bug uncovered by David Majnemer's review; added tests he asked for. http://reviews.llvm.org/D19654 Files: include/clang/AST/Type.h include/clang/Basic/AddressSpaces.h include/clang/Basic/Attr.td

[PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-04-28 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, thakis, majnemer. andreybokhanko added a subscriber: cfe-commits. This is exactly same patch as http://reviews.llvm.org/D18596 (already reviewed and LGTMed by rnk), with a couple of changes to fix PR27367: * A check for v

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-15 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked an inline comment as done. andreybokhanko added a comment. Reid, thank you! Yours, Andrey Repository: rL LLVM http://reviews.llvm.org/D18596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

r266415 - [MSVC Compat] Implementation of __unaligned (MS extension) as a type qualifier

2016-04-15 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Apr 15 03:03:51 2016 New Revision: 266415 URL: http://llvm.org/viewvc/llvm-project?rev=266415&view=rev Log: [MSVC Compat] Implementation of __unaligned (MS extension) as a type qualifier This patch implements __unaligned as a type qualifier; before that, it was modeled

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-12 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked an inline comment as done. Comment at: test/SemaCXX/MicrosoftExtensions.cpp:89 @@ +88,3 @@ +void foo_unaligned(int *arg) {} +void foo_unaligned(__unaligned int *arg) {} +void foo_unaligned(int arg) {} // expected-note {{previous definition is here}} -

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-12 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 53509. andreybokhanko added a comment. 1. Added more comprehensive overloading tests 2. Added a warning (in C mode) / error (in C++ mode) on __unaligned to non-__unaligned type conversion Andrey http://reviews.llvm.org/D18596 Files: include/clang

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-08 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 53022. andreybokhanko added a comment. This patch implements "__unaligned" as a qualifier (as per David Majnemer's request). Most of the changes are miscellaneous small stuff one has to add when adding a new qualifier. Other notable things are: - O

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-06 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D18596#392341, @majnemer wrote: > In http://reviews.llvm.org/D18596#392098, @andreybokhanko wrote: > > > Do we want to do this for an ignored qualifier? I don't see any practical > > purpose. > > > It's not ignored for Windows on ARM.

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-05 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D18596#388295, @aaron.ballman wrote: > Regression is a bit of a question mark, to me depending on the diagnostic. I > think warning the user "this has absolutely no effect" is a reasonable > diagnostic for that situation -- the user wro

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-04-05 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 52662. andreybokhanko added a comment. Added Sema test, as per Aaron's and Reid's request. http://reviews.llvm.org/D18596 Files: include/clang/AST/Type.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/AST/MicrosoftMangle.cpp

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-03-31 Thread Andrey Bokhanko via cfe-commits
andreybokhanko marked 3 inline comments as done. andreybokhanko added a comment. Aaron, Reid, David, thank you for the review! I resolved some of your comments. As for In http://reviews.llvm.org/D18596#386841, @aaron.ballman wrote: > I'd like to see some Sema tests for sanity checking; like app

Re: [PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-03-31 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 52208. andreybokhanko added a comment. Resolved [some of] comments made by Aaron and Reid. http://reviews.llvm.org/D18596 Files: include/clang/AST/Type.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/AST/MicrosoftMangle.cpp

[PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier

2016-03-30 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, majnemer. andreybokhanko added a subscriber: cfe-commits. This patch implements proper mangling for MS-specific "__unaligned" qualifier. The mangling part itself is tiny; most of the patch is required to convert "__unalig

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-03-09 Thread Andrey Bokhanko via cfe-commits
andreybokhanko abandoned this revision. andreybokhanko added a comment. It seems the discussion (http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160229/thread.html#151860) concluded that we don't want this fix to be committed until we see some compelling code that relies on "static_as

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-03-03 Thread Andrey Bokhanko via cfe-commits
Now I'm completely confused... :-) Can we rely that this MS engineer has enough authority to declare this to be a bug? And more importantly -- is MS willing to fix the [supposed] bug in future MSVC compilers? I frankly don't think so... Either way, it's up to Reid to decide what to do. Reid? Yo

Re: [PATCH] D17619: [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-26 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. @majnemer, this error in the header is now gone. Thank you! On to more errors! ;-) Yours, Andrey Repository: rL LLVM http://reviews.llvm.org/D17619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-20 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 48591. andreybokhanko added a comment. Patch updated in response to Reid's proposal (to introduce KEYMSCOMPAT). (To clarify, I agree with Aaron that we should wait for MS' response first. Though I frankly don't expect them to accept recognition of "st

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Andrey Bokhanko via cfe-commits
43 PM, Aaron Ballman wrote: > On Fri, Feb 19, 2016 at 8:08 AM, Andrey Bokhanko via cfe-commits > wrote: >> andreybokhanko created this revision. >> andreybokhanko added reviewers: rnk, majnemer, thakis. >> andreybokhanko added a subscriber: cfe-commits. >> >> MS co

[PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, majnemer, thakis. andreybokhanko added a subscriber: cfe-commits. MS compiler recognizes "static_assert" keyword is C mode as well, while clang-cl doesn't. This patch fixes this. http://reviews.llvm.org/D17444 Files: i

Re: [PATCH] D17330: PR26648: "inline" shouldn't be recognized as a C keyword in MSVC 2013 compatibility mode

2016-02-18 Thread Andrey Bokhanko via cfe-commits
andreybokhanko abandoned this revision. andreybokhanko added a comment. @rnk, fair enough. OK, please consider this review request dropped. Andrey http://reviews.llvm.org/D17330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

Re: [PATCH] D17330: PR26648: "inline" shouldn't be recognized as a C keyword in MSVC 2013 compatibility mode

2016-02-17 Thread Andrey Bokhanko via cfe-commits
OK, so is initial patch a good one? ;-) Andrey On Wed, Feb 17, 2016 at 8:06 PM, David Majnemer wrote: > majnemer added a comment. > > In http://reviews.llvm.org/D17330#354755, @andreybokhanko wrote: > >> In http://reviews.llvm.org/D17330#354730, @majnemer wrote: >> >> > Why not just stick clang

Re: [PATCH] D17330: PR26648: "inline" shouldn't be recognized as a C keyword in MSVC 2013 compatibility mode

2016-02-17 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D17330#354730, @majnemer wrote: > Why not just stick clang in C90 mode when targeting C if the > -fms-compatibility-version is 18? > > We have similar code for the C++ mode in > https://github.com/llvm-mirror/clang/blob/master/lib/Drive

[PATCH] D17330: PR26648: "inline" shouldn't be recognized as a C keyword in MSVC 2013 compatibility mode

2016-02-17 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, majnemer, thakis. andreybokhanko added a subscriber: cfe-commits. See PR26648 for full description of the problem. Here I added a new keyword flag (KEYNOMS18_C) for keywords that shouldn't be enabled in MSVC 2013 mode for

r260882 - PR26449: Tests for builtin_classify_type fix

2016-02-15 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Mon Feb 15 04:44:27 2016 New Revision: 260882 URL: http://llvm.org/viewvc/llvm-project?rev=260882&view=rev Log: PR26449: Tests for builtin_classify_type fix In my previous commit (rL260881) I forget to svn add tests. This commit adds them. Differential Revision: http://rev

Re: [PATCH] D16846: PR26449: Fixes for bugs in __builtin_classify_type implementation

2016-02-15 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. John, thank you for all these tireless re-reviews -- very much appreciated! Yours, Andrey Repository: rL LLVM http://reviews.llvm.org/D16846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

r260881 - PR26449: Fixes for bugs in __builtin_classify_type implementation

2016-02-15 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Mon Feb 15 04:39:04 2016 New Revision: 260881 URL: http://llvm.org/viewvc/llvm-project?rev=260881&view=rev Log: PR26449: Fixes for bugs in __builtin_classify_type implementation This patch fixes the following bugs in __builtin_classify_type implementation: 1) Support for me

r260519 - Partial revert of rL260506.

2016-02-11 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Feb 11 07:27:02 2016 New Revision: 260519 URL: http://llvm.org/viewvc/llvm-project?rev=260519&view=rev Log: Partial revert of rL260506. After some experiments I discovered that clang doesn't support static initialization of flexible array members in full, so restored th

r260506 - Update of "GCC extensions not implemented yet" in Clang User's Manual

2016-02-11 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Feb 11 04:36:06 2016 New Revision: 260506 URL: http://llvm.org/viewvc/llvm-project?rev=260506&view=rev Log: Update of "GCC extensions not implemented yet" in Clang User's Manual #pragma weak, global register variables and static initialization of flexible array members

Re: [PATCH] D16851: Update of "GCC extensions not implemented yet" in Clang User's Manual

2016-02-11 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D16851#349537, @silvas wrote: > Assuming the features are implemented this seems fine. LGTM. Thank you! Comment at: docs/UsersManual.rst:1698 @@ -1697,3 @@ -- clang does not support #pragma weak (`bug - 3679

Re: [PATCH] D16846: PR26449: Fixes for bugs in __builtin_classify_type implementation

2016-02-10 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 47475. andreybokhanko added a comment. John, thanks for the re-review! -- I did as you advised, and added *a lot* of switches. :-) Patch updated; please re-review again. http://reviews.llvm.org/D16846 Files: lib/AST/ExprConstant.cpp test/Sema/b

Re: [PATCH] D16851: Update of "GCC extensions not implemented yet" in Clang User's Manual

2016-02-10 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. Ping http://reviews.llvm.org/D16851 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16846: PR26449: Fixes for bugs in __builtin_classify_type implementation

2016-02-04 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 46908. andreybokhanko added a comment. John, thank you for the review! I refactored EvaluateBuiltinClassifyType according to your comments; please re-review. Yours, Andrey http://reviews.llvm.org/D16846 Files: lib/AST/ExprConstant.cpp test/Sem

r259780 - [x86] Correct setting of WIntType for MCU target

2016-02-04 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Feb 4 05:54:45 2016 New Revision: 259780 URL: http://llvm.org/viewvc/llvm-project?rev=259780&view=rev Log: [x86] Correct setting of WIntType for MCU target Differential Revision: http://reviews.llvm.org/D16626 Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trun

[PATCH] D16851: Update of "GCC extensions not implemented yet" in Clang User's Manual

2016-02-03 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added a reviewer: rsmith. andreybokhanko added a subscriber: cfe-commits. #pragma weak, global register variables and static initialization of flexible array members are supported, so I removed them from "GCC extensions not implemented yet" li

Re: [PATCH] D16626: [x86] Correct setting of WIntType for MCU target

2016-02-03 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. Ping! http://reviews.llvm.org/D16626 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r258504 - Change of UserLabelPrefix default value from "_" to ""

2016-01-27 Thread Andrey Bokhanko via cfe-commits
or specifically to accommodate this test. >> >> Perhaps you might want to add tests for sparc-rterms target as well? >> >> Yours, >> Andrey >> >> >> On Wed, Jan 27, 2016 at 4:10 AM, James Y Knight >> wrote: >> > I reverted this change with

[PATCH] D16626: [x86] Correct setting of WIntType for MCU target

2016-01-27 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, mkuper, rafael. andreybokhanko added a subscriber: cfe-commits. Correct setting of WIntType for MCU target http://reviews.llvm.org/D16626 Files: lib/Basic/Targets.cpp test/Preprocessor/elfiamcu-predefines.c Index: li

Re: r258504 - Change of UserLabelPrefix default value from "_" to ""

2016-01-27 Thread Andrey Bokhanko via cfe-commits
is change with r258894, as it breaks (at least) sparc-rtems. > Clearly this area of the code was not sufficiently covered by the testsuite. > > On Fri, Jan 22, 2016 at 10:24 AM, Andrey Bokhanko via cfe-commits > wrote: >> >> Author: asbokhan >> Date: Fri Jan 22 09:24

Re: [PATCH] D16295: Change of UserLabelPrefix default value from "_" to ""

2016-01-22 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. Rafael, thanks for the review! In http://reviews.llvm.org/D16295#329929, @rafael wrote: > I am pretty sure the cases in init.c are wrong as the assembly itself > doesn't use a '_'. > > Having said that, it is probably a good thing to do this in two steps. > So t

r258504 - Change of UserLabelPrefix default value from "_" to ""

2016-01-22 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Jan 22 09:24:34 2016 New Revision: 258504 URL: http://llvm.org/viewvc/llvm-project?rev=258504&view=rev Log: Change of UserLabelPrefix default value from "_" to "" Differential Revision: http://reviews.llvm.org/D16295 Modified: cfe/trunk/lib/Basic/TargetInfo.cpp

Re: [PATCH] D16295: Change of UserLabelPrefix default value from "_" to ""

2016-01-19 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. @rafael, all these changes are driven by tests. It seems you mean OS targeting, which is handled in other TargetInfo classes (LinuxTargetInfo in Linux case). Comment at: lib/Basic/Targets.cpp:801 @@ -818,2 +800,3 @@ LongDoubleFormat = &llvm

[PATCH] D16295: Change of UserLabelPrefix default value from "_" to ""

2016-01-18 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rafael, rjmccall. andreybokhanko added subscribers: cfe-commits, rafael. @rafael proposed (http://reviews.llvm.org/D16138#325739) to change UserLablePrefix's default from "_" to "", as latter value happens much more often. Thi

Re: r257754 - PR25910: clang allows two var definitions with the same mangled name

2016-01-14 Thread Andrey Bokhanko via cfe-commits
Renato, Thanks! -- I committed a fix already: http://llvm.org/viewvc/llvm-project?view=revision&revision=257757 Yours, Andrey On Thu, Jan 14, 2016 at 2:57 PM, Renato Golin wrote: > On 14 January 2016 at 10:41, Andrey Bokhanko via cfe-commits > wrote: >> Author: asbokhan >

r257757 - Fix for armv7-a15 and thumbv7-a15 buildbot fails.

2016-01-14 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Jan 14 05:53:50 2016 New Revision: 257757 URL: http://llvm.org/viewvc/llvm-project?rev=257757&view=rev Log: Fix for armv7-a15 and thumbv7-a15 buildbot fails. Modified: cfe/trunk/test/CodeGenCXX/duplicate-mangled-name.cpp Modified: cfe/trunk/test/CodeGenCXX/duplicat

r257756 - Correct setting of UserLabelPrefix for MCU target.

2016-01-14 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Jan 14 04:59:36 2016 New Revision: 257756 URL: http://llvm.org/viewvc/llvm-project?rev=257756&view=rev Log: Correct setting of UserLabelPrefix for MCU target. Differential Revision: http://reviews.llvm.org/D16138 Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/tr

Re: [PATCH] D16138: Correct setting of UserLabelPrefix for MCU target

2016-01-14 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. @rafael, thank you! In http://reviews.llvm.org/D16138#325739, @rafael wrote: > LGTM, but could you change the default in a followup commit? TargetInfo > should really be setting it to "" since it is far more common than "_". Sure, will do. Yours, Andrey http

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-14 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. @tra, @rnk, @rjmccall, thanks for the review! Yours, Andrey Repository: rL LLVM http://reviews.llvm.org/D15686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

r257754 - PR25910: clang allows two var definitions with the same mangled name

2016-01-14 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Jan 14 04:41:16 2016 New Revision: 257754 URL: http://llvm.org/viewvc/llvm-project?rev=257754&view=rev Log: PR25910: clang allows two var definitions with the same mangled name Proper diagnostic and resolution of mangled names' conflicts in variables. When there is a de

Re: [PATCH] D16138: Correct setting of UserLabelPrefix for MCU target

2016-01-13 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 44726. andreybokhanko added a comment. Patch updated to be in line with llvm trunk. Sorry for the noise. http://reviews.llvm.org/D16138 Files: lib/Basic/Targets.cpp test/Preprocessor/elfiamcu-predefines.c Index: lib/Basic/Targets.cpp ===

[PATCH] D16138: Correct setting of UserLabelPrefix for MCU target

2016-01-13 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, mkuper. andreybokhanko added a subscriber: cfe-commits. Correct setting of UserLabelPrefix for MCU target http://reviews.llvm.org/D16138 Files: lib/Basic/Targets.cpp test/Preprocessor/elfiamcu-predefines.c Index: lib

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-13 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D15686#325266, @rnk wrote: > I thought we already addressed this issue with @rjmccall and decided that, if > the user intentionally declares extern "C" variables with an _Z prefix, then > we know they are intentionally attempting to nam

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-10 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D15686#319725, @tra wrote: > A better description of the problem would help. PR itself is somewhat short > on details. Sorry for being not clear. I expected my main reviewer to be @rjmccall, who knows exactly what the problem is. > I

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-10 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated the summary for this revision. andreybokhanko updated this revision to Diff 44425. andreybokhanko marked 7 inline comments as done. andreybokhanko added a comment. Fixed tra's notes. All the fixes are local, logic of the patch is not changed. http://reviews.llvm.org/D15686

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-05 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:1235-1243 @@ -1235,9 +1234,11 @@ // different type. -// FIXME: Support for variables is not implemented yet. -if (isa(D.getDecl())) - GV = cast(GetAddrOfGlobal(D, /*IsForDefinition=*

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-05 Thread Andrey Bokhanko via cfe-commits
andreybokhanko updated this revision to Diff 43982. andreybokhanko marked an inline comment as done. andreybokhanko added a comment. Fixed tra's note. http://reviews.llvm.org/D15686 Files: lib/CodeGen/CodeGenModule.cpp lib/CodeGen/CodeGenModule.h test/CodeGenCXX/duplicate-mangled-name.cpp

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-04 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. Ping! http://reviews.llvm.org/D15686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2015-12-21 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:1235-1236 @@ -1235,8 +1234,4 @@ // different type. -// FIXME: Support for variables is not implemented yet. -if (isa(D.getDecl())) - GV = cast(GetAddrOfGlobal(D, /*IsForDefinition=*/

[PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2015-12-21 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rjmccall, tra. andreybokhanko added a subscriber: cfe-commits. This patch fixes incorrect behavior described in PR25910. It is essentially the same stuff as in http://reviews.llvm.org/D11297, just for variables, not functions.

Re: r254195 - [x86] Exclusion of incorrect include headers paths for MCU target

2015-12-16 Thread Andrey Bokhanko via cfe-commits
commits >> wrote: >>> >>> Hi Andrey, >>> >>> This commit does not seem to match the description. What is it doing? >>> >>> Thanks again, >>> Hal >>> >>> - Original Message - >>> > From: &quo

r255766 - [x86] Exclusion of incorrect include headers paths for MCU target

2015-12-16 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Wed Dec 16 07:27:38 2015 New Revision: 255766 URL: http://llvm.org/viewvc/llvm-project?rev=255766&view=rev Log: [x86] Exclusion of incorrect include headers paths for MCU target Exclusion of /usr/include and /usr/local/include headers paths for MCU target. Differential Rev

Re: r254195 - [x86] Exclusion of incorrect include headers paths for MCU target

2015-12-16 Thread Andrey Bokhanko via cfe-commits
> Feel free to commit the header change, it looks fine. > > On Fri, Nov 27, 2015 at 5:57 AM, Hal Finkel via cfe-commits > wrote: >> >> Hi Andrey, >> >> This commit does not seem to match the description. What is it doing? >> >> Thanks again, >> Ha

r254195 - [x86] Exclusion of incorrect include headers paths for MCU target

2015-11-27 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Fri Nov 27 06:18:22 2015 New Revision: 254195 URL: http://llvm.org/viewvc/llvm-project?rev=254195&view=rev Log: [x86] Exclusion of incorrect include headers paths for MCU target Exclusion of /usr/include and /usr/local/include headers paths for MCU target. Differential Rev

[PATCH] D14954: [x86] Exclusion of incorrect include headers paths for MCU target

2015-11-24 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: ddunbar, rnk, mkuper. andreybokhanko added a subscriber: cfe-commits. This patch excludes incorrect include headers paths for MCU target. http://reviews.llvm.org/D14954 Files: lib/Frontend/InitHeaderSearch.cpp test/Driver/

r252156 - [x86] Additional small fix for MCU psABI support

2015-11-05 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Thu Nov 5 06:43:09 2015 New Revision: 252156 URL: http://llvm.org/viewvc/llvm-project?rev=252156&view=rev Log: [x86] Additional small fix for MCU psABI support This patch fixes one more thing in MCU psABI support: LongDoubleWidth should be set to 64. Differential Revisio

[PATCH] D14285: [x86] Additional small fix for MCU psABI support

2015-11-03 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, DavidKreitzer, mkuper. andreybokhanko added a subscriber: cfe-commits. This patch fixes one more thing in MCU psABI support: LongDoubleWidth should be set to 64. http://reviews.llvm.org/D14285 Files: lib/Basic/Targets.

Re: [PATCH] D14205: [x86] Front-end part of MCU psABI support

2015-11-02 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. Michael, Thanks for the review! As for your comment, I will investigate and fix (if needed). Andrey Comment at: lib/Basic/Targets.cpp:2327 @@ -2325,3 +2326,3 @@ // X87 evaluates with 80 bits "long double" precision. return SSELevel ==

r251786 - [x86] Front-end part of MCU psABI support

2015-11-02 Thread Andrey Bokhanko via cfe-commits
Author: asbokhan Date: Mon Nov 2 03:54:17 2015 New Revision: 251786 URL: http://llvm.org/viewvc/llvm-project?rev=251786&view=rev Log: [x86] Front-end part of MCU psABI support This patch implements two things in front-end for MCU psABI support: 1) "long double type is the same as double." 2) "N

[PATCH] D14205: [x86] Front-end part of MCU psABI support

2015-10-30 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, DavidKreitzer, mkuper. andreybokhanko added a subscriber: cfe-commits. This patch implements front-end parts of MCU psABI (https://docs.google.com/viewer?a=v&pid=sites&srcid=ZGVmYXVsdGRvbWFpbnx4MzJhYml8Z3g6NzFhMGYzMjUzZDQz

Re: [PATCH] D12402: PR24595: clang-cl fails to compile vswriter.h header from Windows SDK 8.1 in 32 bit mode

2015-09-14 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. OK -- I removed the check in Itanium ABI part, restored back the test and committed the patch. Thanks for reviewing! Repository: rL LLVM http://reviews.llvm.org/D12402 ___ cfe-commits mailing list cfe-commits@lis

  1   2   >