r301783 - utils: Silence -Wpedantic warning

2017-04-30 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Apr 30 19:26:59 2017 New Revision: 301783 URL: http://llvm.org/viewvc/llvm-project?rev=301783&view=rev Log: utils: Silence -Wpedantic warning llvm/tools/clang/utils/TableGen/ClangAttrEmitter.cpp:1673:67: warning: default argument specified for lambda parameter [-Wpedan

r302184 - Driver: only inject libstdc++ paths when needed on CrossWindows

2017-05-04 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu May 4 14:18:21 2017 New Revision: 302184 URL: http://llvm.org/viewvc/llvm-project?rev=302184&view=rev Log: Driver: only inject libstdc++ paths when needed on CrossWindows When building with libc++ don't bother with injecting the libstdc++ search paths into the linker s

r302270 - CodeGen: avoid use of @clang.arc.use intrinsic at O0

2017-05-05 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri May 5 13:39:06 2017 New Revision: 302270 URL: http://llvm.org/viewvc/llvm-project?rev=302270&view=rev Log: CodeGen: avoid use of @clang.arc.use intrinsic at O0 The clang.arc.use intrinsic is removed via the ARC Contract Pass. This pass is only executed in optimized bu

r285023 - CodeGen: centralise label construction for method lists

2016-10-24 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Oct 24 15:47:58 2016 New Revision: 285023 URL: http://llvm.org/viewvc/llvm-project?rev=285023&view=rev Log: CodeGen: centralise label construction for method lists Move all the label construction for the various method list emission into EmitMethodList. Rather than hav

r285028 - CodeGen: remove incorrect temporary Twine

2016-10-24 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Oct 24 16:25:57 2016 New Revision: 285028 URL: http://llvm.org/viewvc/llvm-project?rev=285028&view=rev Log: CodeGen: remove incorrect temporary Twine Twines should not be stack allocated. This somehow managed to get past me. Modified: cfe/trunk/lib/CodeGen/CGObjCM

r285073 - CodeGen: mark protocols as common data

2016-10-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Oct 25 09:50:44 2016 New Revision: 285073 URL: http://llvm.org/viewvc/llvm-project?rev=285073&view=rev Log: CodeGen: mark protocols as common data This allows for the coalescing of the protocol declarations. When the protocols are declared in headers, multiple definiti

r285126 - CodeGen: be more conservative about setting section

2016-10-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Oct 25 16:43:28 2016 New Revision: 285126 URL: http://llvm.org/viewvc/llvm-project?rev=285126&view=rev Log: CodeGen: be more conservative about setting section The section names currently are MachO specific. Only set the section on the variables if the file format is M

[PATCH] D26082: Support for Python 3 in libclang python bindings

2016-11-02 Thread Saleem Abdulrasool via cfe-commits
compnerd accepted this revision. compnerd added a comment. This revision is now accepted and ready to land. It would be nice if there is a simple way to handle the possible performance impact for python 2. Worst case, we can deal with it when it becomes an issue. Comment at:

[libcxxabi] r286788 - __cxa_demangle: ensure that we have a mangled symbol

2016-11-13 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Nov 13 19:55:54 2016 New Revision: 286788 URL: http://llvm.org/viewvc/llvm-project?rev=286788&view=rev Log: __cxa_demangle: ensure that we have a mangled symbol Ensure that we have a mangled symbol before attempting to demangle it. We would previously treat any input a

[libcxxabi] r286793 - __cxa_demangle: allow demangling invocation blocks

2016-11-13 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Nov 13 21:07:47 2016 New Revision: 286793 URL: http://llvm.org/viewvc/llvm-project?rev=286793&view=rev Log: __cxa_demangle: allow demangling invocation blocks The block invocation function uses an extension where the prefix is ___Z as opposed to _Z. This should make th

Re: [PATCH] D12903: Allow the -load option in the driver and pass it through to -cc1

2015-09-17 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd added a comment. While I agree that this makes the option much nicer to use, it collides with the -l flag. Since it was an internal only option until this point, we should rename it before exposing it at the driver level. Repository: rL LLVM

Re: [PATCH] D12903: Add -fplugin=name.so option to the driver

2015-09-17 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Do you know if GCC requires the = or can you do -fplugin name.so ? Repository: rL LLVM http://reviews.llvm.org/D12903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

r247967 - Driver: avoid unnecessary string based operations

2015-09-17 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Sep 18 00:32:23 2015 New Revision: 247967 URL: http://llvm.org/viewvc/llvm-project?rev=247967&view=rev Log: Driver: avoid unnecessary string based operations Use an enumeration and change the use of the FloatABI from a string to the enumeration. This avoids the use of

Re: [PATCH] D12903: Add -fplugin=name.so option to the driver

2015-09-18 Thread Saleem Abdulrasool via cfe-commits
compnerd accepted this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision is now accepted and ready to land. Looks fine minus the one thing that needs a quick look at. Comment at: include/clang/Driver/Options.td:952 @@ -951,1 +951,3 @@ def fn

r248083 - Driver: avoid unnecessary string ops

2015-09-18 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Sep 18 23:33:38 2015 New Revision: 248083 URL: http://llvm.org/viewvc/llvm-project?rev=248083&view=rev Log: Driver: avoid unnecessary string ops Use an enumeration for the Floating Point ABIs supported on MIPS. This is replicating the ARM change to avoid string based t

r248094 - Driver: tweak ARM target feature calculation

2015-09-19 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Sep 19 13:19:44 2015 New Revision: 248094 URL: http://llvm.org/viewvc/llvm-project?rev=248094&view=rev Log: Driver: tweak ARM target feature calculation Rather than using re-calculating the effective triple, thread the already calculated value down into AddARMTargetArgs

r248095 - Driver: alter the getARMFloatABI signature

2015-09-19 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Sep 19 15:40:16 2015 New Revision: 248095 URL: http://llvm.org/viewvc/llvm-project?rev=248095&view=rev Log: Driver: alter the getARMFloatABI signature This changes getARMFloatABI to use the ToolChain and Args instead of Driver, Args, Triple. Although this pushes the Tr

[PATCH] D12996: Driver: support ARM/HF on a single toolchain

2015-09-19 Thread Saleem Abdulrasool via cfe-commits
compnerd created this revision. compnerd added a reviewer: rengolin. compnerd added a subscriber: cfe-commits. Herald added subscribers: srhines, danalbert, tberghammer, rengolin, aemerson. ARM EABI adds target attributes to the object file. Amongst the attributes that are emitted is the VFP argu

[libcxxabi] r248108 - EH: fix register usage for SjLj

2015-09-19 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Sep 19 21:08:31 2015 New Revision: 248108 URL: http://llvm.org/viewvc/llvm-project?rev=248108&view=rev Log: EH: fix register usage for SjLj When using SjLj EH, do not use __builtin_eh_return_regno, map directly to the ID. This would work on some targets, particularly t

Re: [PATCH] D12996: Driver: support ARM/HF on a single toolchain

2015-09-22 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Yeah, I realize that we will need that part of the change as well. However, I think that this is a sufficiently standalone piece that we can merge this first. http://reviews.llvm.org/D12996 ___ cfe-commits mailing list cf

Re: [PATCH] D12996: Driver: support ARM/HF on a single toolchain

2015-09-23 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. It would fail to link previously anyways, since as Renato correctly explained, you would have objects that were built with the soft float attribute, and then were linking against hard float built object. http://reviews.llvm.org/D12996 __

r248649 - Driver: support ARM/HF on a single toolchain

2015-09-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Sep 25 22:26:44 2015 New Revision: 248649 URL: http://llvm.org/viewvc/llvm-project?rev=248649&view=rev Log: Driver: support ARM/HF on a single toolchain ARM EABI adds target attributes to the object file. Amongst the attributes that are emitted is the VFP argument pass

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. While I can certainly appreciate the simplification this may afford, Im not sure if adding a new option here is really that valuable. Options being added to the frontend are expensive because they can't be changed or removed. If gcc has a similar frontend option, we

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Ah. Well, Im tempted to say that we should avoid the option. Generally, making the backend options visible is undesirable since there is no guarantee of stability there. This simplifies that, and if users start using that, we would not be able to change those as eas

Re: [PATCH] D13322: Add -f[no-]declspec to control recognition of __declspec as a keyword

2015-09-30 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: include/clang/Basic/LangOptions.def:93 @@ -92,2 +92,3 @@ LANGOPT(WChar , 1, CPlusPlus, "wchar_t keyword") +LANGOPT(DeclSpecKeyword , 1, 0, "Microsoft __declspec keyword support") BENIGN_LANGOPT(DollarIdents , 1, 1, "'$'

Re: [PATCH] D13322: Add -f[no-]declspec to control recognition of __declspec as a keyword

2015-10-01 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/Driver/Tools.cpp:4663 @@ +4662,3 @@ + else if (Args.hasArg(options::OPT_fno_declspec)) +CmdArgs.push_back("-fno-declspec"); // Explicitly disabling __declspec. + @rsmith, so they are. I misread something and wa

r249227 - Driver: follow WoA ABI recommendations

2015-10-02 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Oct 2 22:39:28 2015 New Revision: 249227 URL: http://llvm.org/viewvc/llvm-project?rev=249227&view=rev Log: Driver: follow WoA ABI recommendations The Windows on ARM ABI recommends that FPO be disabled. This is since the Windows on ARM ABI uses the FP for fast stack wa

r249229 - try to fix the ARM self host bots

2015-10-02 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Oct 3 01:37:38 2015 New Revision: 249229 URL: http://llvm.org/viewvc/llvm-project?rev=249229&view=rev Log: try to fix the ARM self host bots The default target is ARM on the ARM self host bots. This is problematic since the behaviour on x86, x64 is different from ARM.

r249232 - fix previous commit

2015-10-03 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Oct 3 02:15:28 2015 New Revision: 249232 URL: http://llvm.org/viewvc/llvm-project?rev=249232&view=rev Log: fix previous commit Forgot to add the '='. In cl mode, --target must have an '='. Modified: cfe/trunk/test/Driver/cl-options.c Modified: cfe/trunk/test/Dri

r249279 - Add -f[no-]declspec to control recognition of __declspec as a keyword

2015-10-04 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Oct 4 12:51:05 2015 New Revision: 249279 URL: http://llvm.org/viewvc/llvm-project?rev=249279&view=rev Log: Add -f[no-]declspec to control recognition of __declspec as a keyword In versions of clang prior to r238238, __declspec was recognized as a keyword in all modes.

Re: [PATCH] D13322: Add -f[no-]declspec to control recognition of __declspec as a keyword

2015-10-04 Thread Saleem Abdulrasool via cfe-commits
compnerd closed this revision. compnerd added a comment. Committed as SVN r249279 (as per your request in the initial revision). http://reviews.llvm.org/D13322 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

Re: [PATCH] D11773: [libclang] Document IB attribute cursor kinds

2015-08-11 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd added a comment. Why add docs for these but not the others around it? http://reviews.llvm.org/D11773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D11772: [libclang] Add period to typedef kind docblock

2015-08-11 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd accepted this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision is now accepted and ready to land. Do you need this committed on your behalf? http://reviews.llvm.org/D11772 ___

r244715 - libclang: Add period to typedef kind docblock

2015-08-11 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Aug 11 22:21:44 2015 New Revision: 244715 URL: http://llvm.org/viewvc/llvm-project?rev=244715&view=rev Log: libclang: Add period to typedef kind docblock All of the other docblocks for the CXCursor_* cursor kind enum values include documentation that ends with a period.

Re: [PATCH] D11772: [libclang] Add period to typedef kind docblock

2015-08-11 Thread Saleem Abdulrasool via cfe-commits
compnerd closed this revision. compnerd added a comment. Committed as SVN r244715. http://reviews.llvm.org/D11772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D7642: Introduce the idea of a minimum libc version

2015-08-12 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Okay, if thats the general pattern, then we can stick it in the triple. Though, that means that the use of the triple for determining the MS compatibility needs to be undone. If the version in the triple is the libc version, then it can differ from the MS compatibili

Re: [PATCH] D7642: Introduce the idea of a minimum libc version

2015-08-13 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. AIUI, ucrt is absolutely relevant since msvcrt itself has been split out into the ucrt. msvcrt is the "shared" common bits, while the ucrt is more "platform" specific bits. But really, the point is: supporting an older version with a newer compiler is what doing this

[libunwind] r245665 - unwind: fix invalid memory access

2015-08-20 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Aug 20 22:21:31 2015 New Revision: 245665 URL: http://llvm.org/viewvc/llvm-project?rev=245665&view=rev Log: unwind: fix invalid memory access Fix out-of-bounds array access when setting arm float registers. Patch by Leandro Graciá Gil! Modified: libunwind/trunk/sr

Re: [PATCH] Fix out-of-bounds array access when setting arm float registers

2015-08-20 Thread Saleem Abdulrasool via cfe-commits
On Thu, Aug 20, 2015 at 2:13 PM, Hans Wennborg wrote: > +Saleem and Renato; maybe you can take a look? Thanks for pointing this out! The patch is correct and pretty safe to apply for 3.7 I think since its a simple bug fix, and can result in VFP state corruption (the invalid memory access in th

Re: [PATCH] Fix out-of-bounds array access when setting arm float registers

2015-08-21 Thread Saleem Abdulrasool via cfe-commits
On Fri, Aug 21, 2015 at 11:02 AM, Hans Wennborg wrote: > On Thu, Aug 20, 2015 at 8:28 PM, Saleem Abdulrasool > wrote: > > On Thu, Aug 20, 2015 at 2:13 PM, Hans Wennborg > wrote: > >> > >> +Saleem and Renato; maybe you can take a look? > > > > > > Thanks for pointing this out! > > > > The patch

Re: [PATCH] D12278: [X86] Add MSVC-compatible intrinsics for clac, stac, lgdt and sgdt

2015-08-24 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. Comment at: lib/Headers/Intrin.h:961 @@ +960,3 @@ +static __inline__ void __DEFAULT_FN_ATTRS _lgdt(void *__ptr) { + __builtin_ia32_lgdt(__ptr); +} Why does this need a builtin? Is an inline assembly block using lgdt insuff

Re: [PATCH] D12278: [X86] Add MSVC-compatible intrinsics for clac, stac, lgdt and sgdt

2015-08-26 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/Headers/Intrin.h:961 @@ +960,3 @@ +static __inline__ void __DEFAULT_FN_ATTRS _lgdt(void *__ptr) { + __builtin_ia32_lgdt(__ptr); +} mkuper wrote: > compnerd wrote: > > Why does this need a builtin? Is an inline asse

Re: [PATCH] D12512: [libcxxabi] Manually align pointers in __cxa_allocate_exception - Fixes PR24604

2015-08-31 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. While I can see the argument you raise, the saving grace here is that this is buried in libc++abi. The only real piece of libc++abi of real use to users is `__cxa_demangle` (which is only relevant for Windows, and Darwin where you have two level namespaces). For ever

[libunwind] r246528 - unwind: cleanup -Wunused-parameter

2015-08-31 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Aug 31 23:29:03 2015 New Revision: 246528 URL: http://llvm.org/viewvc/llvm-project?rev=246528&view=rev Log: unwind: cleanup -Wunused-parameter Cleanup a number of `-Wunused-parameter` warnings. NFC. Modified: libunwind/trunk/src/Registers.hpp Modified: libunwind/

[PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread Saleem Abdulrasool via cfe-commits
compnerd created this revision. compnerd added reviewers: rafael, rnk. compnerd added a subscriber: cfe-commits. Simplify the mangling handling. This allows for the correct handling of extern "C" symbols in C++ input. The observable difference with this simplification that additional symbols ar

Re: [PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/AST/Mangle.cpp:191 @@ -199,3 +190,3 @@ else -Out << "_block_invoke_" << discriminator+1; +Out << "_block_invoke_" << discriminator + 1; } Drive by reformat. Comment at: test/CodeGen/pr96

Re: [PATCH] D12579: AST: simplify handling of the mangling

2015-09-02 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/AST/Mangle.cpp:139 @@ -149,2 +138,3 @@ - Out << '\01'; + // shouldMangleCXXName lies sometimes for the MS-ABI, so check the CC mangling + // when targeting MS-ABI (it doesnt consider CC which take precedence over --

r246931 - Index: expose visibility attribute

2015-09-05 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sat Sep 5 13:53:43 2015 New Revision: 246931 URL: http://llvm.org/viewvc/llvm-project?rev=246931&view=rev Log: Index: expose visibility attribute Expose the previously unexposed visibility attribute via the python and C bindings. Added: cfe/trunk/test/Index/visibility

Re: [PATCH][Solaris] Default to -fno-cxa-finalize

2015-09-05 Thread Saleem Abdulrasool via cfe-commits
On Fri, Sep 4, 2015 at 1:11 AM, Xan López via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Aug 28, 2015 at 07:52:17PM +0200, Xan López via cfe-commits wrote: > > There is no __cxa_finalize symbol available on recent Solaris OS > > versions, so we need this flag to make non trivial C+

Re: [PATCH][Solaris] Add -lc also when linking shared libraries

2015-09-05 Thread Saleem Abdulrasool via cfe-commits
On Fri, Sep 4, 2015 at 1:12 AM, Xan López via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Aug 28, 2015 at 07:53:40PM +0200, Xan López via cfe-commits wrote: > > This is actually needed, otherwise libc won't be added at all. For > > instance when building libclang.so all the libc sym

Re: [PATCH][Solaris] Add -lc also when linking shared libraries

2015-09-07 Thread Saleem Abdulrasool via cfe-commits
On Mon, Sep 7, 2015 at 7:18 AM, Xan López wrote: > On Sat, Sep 05, 2015 at 12:28:43PM -0700, Saleem Abdulrasool wrote: > > > Ping? > > > > > > > Testcase? Looks fine otherwise. > > Basically check that -lc is present when clang is called in a certain > way I guess? Or something more sophisticate

Re: [PATCH][Solaris] Default to -fno-cxa-finalize

2015-09-07 Thread Saleem Abdulrasool via cfe-commits
On Mon, Sep 7, 2015 at 2:28 AM, Xan López wrote: > On Sat, Sep 05, 2015 at 12:25:28PM -0700, Saleem Abdulrasool wrote: > > > Ping? > > > > > > > Does this break with older Solaris releases? How far back did this > change > > in Solaris? The change itself should really be accompanied with a test

Re: [PATCH] D12669: [libcxxabi] Fix alignment of pointers returned by fallback_malloc

2015-09-07 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. While I think that ensuring that the fallback malloc path works properly is needed, AIUI, this is still insufficient, as there is a first attempt at using malloc, which doesn't have alignment guarantees (except on Darwin). Also, a clang-format over the patch would be

Re: [PATCH][Solaris] Default to -fno-cxa-finalize

2015-09-07 Thread Saleem Abdulrasool via cfe-commits
On Mon, Sep 7, 2015 at 10:34 AM, Xan López wrote: > OK! So here's the patch with a test. The patch LGTM with a minor request for tweaking the commit message to have the context about the fact that cxa_finalize.o never shipped, and so this doesn't really cause any problems for older releases.

Re: [PATCH][Solaris] Default to -fno-cxa-finalize

2015-09-07 Thread Saleem Abdulrasool via cfe-commits
On Mon, Sep 7, 2015 at 10:42 AM, Xan López wrote: > On Mon, Sep 07, 2015 at 10:38:08AM -0700, Saleem Abdulrasool wrote: > > The patch LGTM with a minor request for tweaking the commit message to > have > > the context about the fact that cxa_finalize.o never shipped, and so this > > doesn't reall

r250008 - bindings: add new C++ function attribute accessors

2015-10-11 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Oct 11 22:10:20 2015 New Revision: 250008 URL: http://llvm.org/viewvc/llvm-project?rev=250008&view=rev Log: bindings: add new C++ function attribute accessors Add methods to index Cursor to see if a cxx method is pure_virtual, virtual or const methods. Patch by Jonatha

r250094 - Support Debug Info path remapping

2015-10-12 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Oct 12 15:21:08 2015 New Revision: 250094 URL: http://llvm.org/viewvc/llvm-project?rev=250094&view=rev Log: Support Debug Info path remapping Add support for the `-fdebug-prefix-map=` option as in GCC. The syntax is `-fdebug-prefix-map=OLD=NEW`. When compiling files f

r250112 - test: change argument

2015-10-12 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Oct 12 16:19:30 2015 New Revision: 250112 URL: http://llvm.org/viewvc/llvm-project?rev=250112&view=rev Log: test: change argument This failed on AArch64 due to the type mismatch using int instead of __builtin_va_list. Modified: cfe/trunk/test/CodeGen/Inputs/stdio.h

r250111 - test: relax path matching for windows

2015-10-12 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Oct 12 16:19:27 2015 New Revision: 250111 URL: http://llvm.org/viewvc/llvm-project?rev=250111&view=rev Log: test: relax path matching for windows The test failed on Windows due to use of \ as a path separator rather than /. Modified: cfe/trunk/test/CodeGen/debug-pr

Re: [libcxx] r250469 - [libcxx] Make libc++.so a linker script by default on most platforms.

2015-10-15 Thread Saleem Abdulrasool via cfe-commits
On Thu, Oct 15, 2015 at 3:41 PM, Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Thu Oct 15 17:41:51 2015 > New Revision: 250469 > > URL: http://llvm.org/viewvc/llvm-project?rev=250469&view=rev > Log: > [libcxx] Make libc++.so a linker script by default

r250665 - CodeGen: simplify TargetOptions setup

2015-10-18 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Oct 18 15:24:53 2015 New Revision: 250665 URL: http://llvm.org/viewvc/llvm-project?rev=250665&view=rev Log: CodeGen: simplify TargetOptions setup Do direct assignment of boolean values and regroup. Use StringSwitch instead of custom cases. NFC. Modified: cfe/trun

r250674 - docs: remote stale refs

2015-10-18 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Oct 18 20:24:08 2015 New Revision: 250674 URL: http://llvm.org/viewvc/llvm-project?rev=250674&view=rev Log: docs: remote stale refs Since the attribute documentation is now auto-generated, the previous references are no longer valid. This prevented the docs build from

Re: Porting Clang to a new architecture

2015-10-26 Thread Saleem Abdulrasool via cfe-commits
On Monday, October 26, 2015, Ariel Arelovich via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi: > > Where I'm working I've been asked to look into developing a C (by this I > mean C89 C standard) compiler a new processor architecture being created > inhouse. > > On looking at the options a

r251410 - Index: expose is_mutable_field

2015-10-27 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Oct 27 10:50:22 2015 New Revision: 251410 URL: http://llvm.org/viewvc/llvm-project?rev=251410&view=rev Log: Index: expose is_mutable_field Expose isMutable via libClang and python bindings. Patch by Jonathan B Coe! Modified: cfe/trunk/bindings/python/clang/cindex.

Re: [PATCH] D13874: Atomics: support __c11_* calls on _Atomic struct types

2015-10-27 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd accepted this revision. compnerd added a reviewer: compnerd. This revision is now accepted and ready to land. Comment at: lib/CodeGen/CGAtomic.cpp:782 @@ +781,3 @@ + LValue AtomicVal = MakeAddrLValue(Ptr, AtomicTy); + AtomicInfo At

r251493 - Driver: support -fuse-ld= on cross windows

2015-10-27 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Oct 27 23:45:58 2015 New Revision: 251493 URL: http://llvm.org/viewvc/llvm-project?rev=251493&view=rev Log: Driver: support -fuse-ld= on cross windows Update the linker selection to support the `-fuse-ld=` option for selecting a linker. Added: cfe/trunk/test/Driver

r251598 - Driver: tweak CrossWindows sanitizer support

2015-10-28 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Oct 28 22:36:38 2015 New Revision: 251598 URL: http://llvm.org/viewvc/llvm-project?rev=251598&view=rev Log: Driver: tweak CrossWindows sanitizer support Indicate support for ASAN on the CrossWindows toolchain. Although this is insufficient, this at least permits the ha

r251600 - Driver: CrossWindows sanitizers link support

2015-10-28 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Oct 28 22:36:45 2015 New Revision: 251600 URL: http://llvm.org/viewvc/llvm-project?rev=251600&view=rev Log: Driver: CrossWindows sanitizers link support Add the required libraries to the linker invocation when building with sanitizers. Modified: cfe/trunk/lib/Drive

r251599 - Driver: inline some small arrays

2015-10-28 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Oct 28 22:36:42 2015 New Revision: 251599 URL: http://llvm.org/viewvc/llvm-project?rev=251599&view=rev Log: Driver: inline some small arrays Use an initializer list to remove a couple of small static arrays. NFC. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified

r251603 - test: fix overzealous match

2015-10-28 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Oct 28 22:52:14 2015 New Revision: 251603 URL: http://llvm.org/viewvc/llvm-project?rev=251603&view=rev Log: test: fix overzealous match Accidentally made the test too strict. Modified: cfe/trunk/test/Driver/windows-cross.c Modified: cfe/trunk/test/Driver/windows-c

[PATCH] D14188: Format: support inline namespaces

2015-10-29 Thread Saleem Abdulrasool via cfe-commits
compnerd created this revision. compnerd added a reviewer: djasper. compnerd added a subscriber: cfe-commits. Herald added a subscriber: klimek. Correct handling for C++17 inline namespaces. We would previously fail to identify the inline namespaces as a namespace name since multiple ones may be

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-10-29 Thread Saleem Abdulrasool via cfe-commits
compnerd requested changes to this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision now requires changes to proceed. Please add a unit test for this. http://reviews.llvm.org/D14180 ___ cfe-commits mailing list c

r251690 - Format: support inline namespaces

2015-10-29 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Oct 30 00:07:56 2015 New Revision: 251690 URL: http://llvm.org/viewvc/llvm-project?rev=251690&view=rev Log: Format: support inline namespaces Correct handling for C++17 inline namespaces. We would previously fail to identify the inline namespaces as a namespace name si

Re: [PATCH] D14184: [clang] Add initial support for -meabi flag

2015-10-30 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. This looks like what I had in mind wrt use of `-meabi`. Comment at: lib/CodeGen/BackendUtil.cpp:524 @@ +523,3 @@ + .Case("5", llvm::EABI::Eabi5) + .Case("gnu", llvm::EABI::Gnu) + .Default(llvm::EABI::Default); I'd reall

Re: [PATCH] D14188: Format: support inline namespaces

2015-10-30 Thread Saleem Abdulrasool via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r251690 with the mod. http://reviews.llvm.org/D14188 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r251729 - Sema: correct typo recovery with blocks

2015-10-30 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Oct 30 19:39:15 2015 New Revision: 251729 URL: http://llvm.org/viewvc/llvm-project?rev=251729&view=rev Log: Sema: correct typo recovery with blocks Handle blocks in the tree transform for the typo correction as otherwise, the capture may miss. This would trigger an ass

Re: [PATCH] D14259: The maximum alignment of std::aligned_storage applies to all Windows compilers

2015-11-02 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. compnerd accepted this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision is now accepted and ready to land. Yeah, this is a COFF limitation. Its unfortunate we don't have a better way to detect COFF targets. http://rev

Re: [PATCH] D14354: Add new compiler flag to enable the generation of dwarf accelerator tables

2015-11-05 Thread Saleem Abdulrasool via cfe-commits
On Wednesday, November 4, 2015, Tamas Berghammer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > tberghammer created this revision. > tberghammer added a reviewer: echristo. > tberghammer added a subscriber: cfe-commits. > > Add new compiler flag to enable the generation of dwarf accelerato

Re: [PATCH] D14385: Correct atomic libcall support for __atomic_*_fetch builtins.

2015-11-05 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Unfortunate that they have this crazy behavior. Comment at: lib/CodeGen/CGAtomic.cpp:901 @@ -897,1 +900,3 @@ + PostOp = llvm::Instruction::Add; +// Fall through. case AtomicExpr::AO__c11_atomic_fetch_add: I think we should

Re: [PATCH] D14385: Correct atomic libcall support for __atomic_*_fetch builtins.

2015-11-10 Thread Saleem Abdulrasool via cfe-commits
compnerd accepted this revision. compnerd added a reviewer: compnerd. This revision is now accepted and ready to land. Comment at: lib/CodeGen/CGAtomic.cpp:901 @@ -897,1 +900,3 @@ + PostOp = llvm::Instruction::Add; +// Fall through. case AtomicExpr::AO__c11_atomic_fe

r252852 - libclang: add new StringSet type

2015-11-11 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Nov 11 21:57:16 2015 New Revision: 252852 URL: http://llvm.org/viewvc/llvm-project?rev=252852&view=rev Log: libclang: add new StringSet type This allows the return of a set of CXStrings from libclang. This is setup work for an upcoming change to permit returning multip

r252853 - libclang: add clang_Cursor_getCXXManglings

2015-11-11 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Nov 11 21:57:22 2015 New Revision: 252853 URL: http://llvm.org/viewvc/llvm-project?rev=252853&view=rev Log: libclang: add clang_Cursor_getCXXManglings This function permits the mangling of a C++ 'structor. Depending on the ABI and the declaration, the declaration may c

Re: [PATCH] D7642: Introduce the idea of a minimum libc version

2015-08-09 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. -gnu implies GLIBC. Traditionally, -uclibc is used instead of -gnu for uclibc environments, and many (most?) Linux distros use -musl to indicate a MUSL environment. For Android, the environment is -android, and thus, assumed to be bionic. If the OS is BSD, usually,

Re: [PATCH] D7642: Introduce the idea of a minimum libc version

2015-08-09 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Yes, we *could*. Its just a matter of how it is being specified. I find that having the separate option is potentially cleaner than stuffing it in the triple (which does get pushed into the metadata), and then parsing it back out as a value. I think that this is som

Re: [PATCH] D22292: [libunwind] Fix unw_getcontext for ARMv6-m

2016-07-18 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: src/UnwindRegistersRestore.S:331 @@ +330,3 @@ + ldr r4, [r0, #0x2c] + ldr r5, [r0, #0x30] + mov r8, r1 Is there a benefit to doing the explicit loading rather than a add + ldm? Comment at: src/Unwind

Re: [PATCH] D22426: Fix automatic detection of ARM MSVC toolset in clang.exe

2016-07-18 Thread Saleem Abdulrasool via cfe-commits
compnerd requested changes to this revision. compnerd added a comment. This revision now requires changes to proceed. @rnk, okay, that seems reasonable enough. Although, we should check to ensure that the x64 toolchain is available and make a decision on that. BTW, seems that I had missed the p

[clang-tools-extra] r275943 - clang-rename: fix referenced variable in vim-script

2016-07-18 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Jul 18 21:13:08 2016 New Revision: 275943 URL: http://llvm.org/viewvc/llvm-project?rev=275943&view=rev Log: clang-rename: fix referenced variable in vim-script Modified: clang-tools-extra/trunk/clang-rename/tool/clang-rename.py Modified: clang-tools-extra/trunk/cla

Re: [clang-tools-extra] r275943 - clang-rename: fix referenced variable in vim-script

2016-07-18 Thread Saleem Abdulrasool via cfe-commits
Hey Hans, I think that we should get this merged into 3.9. Its a trivial fix and makes the script usable if you set g:clang_rename_path. Thanks! On Mon, Jul 18, 2016 at 7:13 PM, Saleem Abdulrasool via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: compnerd > Date: Mon

Re: [PATCH] D22543: [libunwind] Properly align _Unwind_Exception.

2016-07-19 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. LGTM; we should make sure Nick is okay with it as well (for Darwin). This should also make its way into 3.9 I think. https://reviews.llvm.org/D22543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

Re: [PATCH] D22712: Remove FileEntry copy-constructor

2016-07-23 Thread Saleem Abdulrasool via cfe-commits
compnerd accepted this revision. compnerd added a reviewer: compnerd. compnerd added a comment. This revision is now accepted and ready to land. Do you have commit access? https://reviews.llvm.org/D22712 ___ cfe-commits mailing list cfe-commits@list

[clang-tools-extra] r276836 - test: simplify commands, NFC

2016-07-26 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jul 26 23:43:15 2016 New Revision: 276836 URL: http://llvm.org/viewvc/llvm-project?rev=276836&view=rev Log: test: simplify commands, NFC Rather than copying the file and then doing an in-place edit, perform the replacements to stdout and pass the output to FileCheck dir

Re: [PATCH] D22857: [ARM] Add a test for inline assembly when targeting armv7-windows

2016-07-27 Thread Saleem Abdulrasool via cfe-commits
On Wed, Jul 27, 2016 at 5:53 AM, Martin Storsjö wrote: > mstorsjo created this revision. > mstorsjo added a subscriber: cfe-commits. > Herald added subscribers: samparker, rengolin, aemerson. > > This test uses an immediate constant, which was previously broken in > inline assembly, prior to LLVM

[clang-tools-extra] r276948 - clang-rename: adjust NamedDeclFindingASTVisitor for RecordDecls

2016-07-27 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Jul 27 19:42:01 2016 New Revision: 276948 URL: http://llvm.org/viewvc/llvm-project?rev=276948&view=rev Log: clang-rename: adjust NamedDeclFindingASTVisitor for RecordDecls Ensure that Context is always properly initialised in the constructor. It is used for querying th

[clang-tools-extra] r276949 - test: fix typo in file name (NFC)

2016-07-27 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Jul 27 19:43:14 2016 New Revision: 276949 URL: http://llvm.org/viewvc/llvm-project?rev=276949&view=rev Log: test: fix typo in file name (NFC) Added: clang-tools-extra/trunk/test/clang-rename/ClassNameInFunctionDefinition.cpp - copied, changed from r276948, cl

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-27 Thread Saleem Abdulrasool via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r276948 https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r277200 - CodeGen: try harder to make the CFString structure RW

2016-07-29 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Jul 29 14:15:51 2016 New Revision: 277200 URL: http://llvm.org/viewvc/llvm-project?rev=277200&view=rev Log: CodeGen: try harder to make the CFString structure RW The previous change was insufficient to mark the content as read-write as the structure itself was marked co

r277390 - CodeGen: simplify the CC handling for TLS wrappers

2016-08-01 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Mon Aug 1 16:31:24 2016 New Revision: 277390 URL: http://llvm.org/viewvc/llvm-project?rev=277390&view=rev Log: CodeGen: simplify the CC handling for TLS wrappers Use the calling convention of the wrapper directly to set the calling convention to ensure that the calling con

Re: [PATCH] D22774: [MSVC] Add ARM support to intrin.h for MSVC compatibility

2016-08-01 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/Headers/armintr.h:26 @@ +25,3 @@ +#ifndef _MSC_VER +#include_next +#else Hmm, why not do __has_header instead? armv7-windows-itanium won't define `_MSC_VER` but you may have the header from the SDK. https://revi

Re: [clang-tools-extra] r276836 - test: simplify commands, NFC

2016-08-01 Thread Saleem Abdulrasool via cfe-commits
On Mon, Aug 1, 2016 at 9:36 AM, Alexander Kornienko wrote: > Please revert or fix (or better revert and then post another patch for > review). > Kirill reverted it in SVN r277354. -- Saleem Abdulrasool compnerd (at) compnerd (dot) org ___ cfe-commits

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-08-05 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. The `\01` is to prevent the mangler from touching the function name. If you noticed the check tags in the quoted test, some targets expect it to be decorated and others do not. What exactly do you mean that `lit` has a strings matching with `\01`? Its not a string `

<    2   3   4   5   6   7   8   9   10   11   >