Re: [PATCH] D38444: [compiler-rt] [cmake] Create dummy gtest target for stand-alone builds

2017-10-02 Thread Michał Górny via cfe-commits
W dniu pon, 02.10.2017 o godzinie 13∶33 -0700, użytkownik George Karpenkov napisał: > > On Oct 2, 2017, at 12:57 PM, Michał Górny via Phabricator > > wrote: > > > > mgorny added a comment. > > > > In https://reviews.llvm.org/D38444#886138, @george.karpenkov wrote: > > > > > > breaking stand-al

Re: r344241 - [tests] Include Python binding tests in CMake rules

2019-01-15 Thread Michał Górny via cfe-commits
On Tue, 2019-01-15 at 13:10 -0500, Nico Weber wrote: > The tests probably shouldn't run when LLVM_ENABLE_PIC=OFF is set, since > they all fail there (due to lib/libclang.so not existing). Hmm, maybe we could make them conditional to the existence of libclang.so target? Would that work for you? >

Re: [PATCH] D60728: [clang] [test] Add a (xfailing) test for PR41027

2019-08-07 Thread Michał Górny via cfe-commits
On Wed, 2019-08-07 at 17:10 -0300, Adhemerval Zanella wrote: > On 05/06/2019 05:19, Michał Górny via Phabricator via llvm-commits wrote: > > This revision was automatically updated to reflect the committed changes. > > Closed by commit rL362587: [clang] [test] Add a (xfailing) test for PR41027 > >

Re: [PATCH] D60728: [clang] [test] Add a (xfailing) test for PR41027

2019-08-07 Thread Michał Górny via cfe-commits
On Wed, 2019-08-07 at 17:10 -0300, Adhemerval Zanella wrote: > On 05/06/2019 05:19, Michał Górny via Phabricator via llvm-commits wrote: > > This revision was automatically updated to reflect the committed changes. > > Closed by commit rL362587: [clang] [test] Add a (xfailing) test for PR41027 > >

Re: [PATCH] D55828: [clang] [Driver] Disable -faddrsig by default on NetBSD

2018-12-19 Thread Michał Górny via cfe-commits
On Wed, 2018-12-19 at 21:51 +0100, Joerg Sonnenberger wrote: > On Tue, Dec 18, 2018 at 04:35:54PM +, Michał Górny via Phabricator via > cfe-commits wrote: > > mgorny created this revision. > > mgorny added reviewers: krytarowski, pcc. > > > > Avoid passing -faddrsig by default on NetBSD. Thi

[clang-tools-extra] d4f298c - [clang-tools-extra] Prevent linking to duplicate .a libs and dylib

2020-06-17 Thread Michał Górny via cfe-commits
Author: Michał Górny Date: 2020-06-17T19:00:26+02:00 New Revision: d4f298c8206b435ce627b022efa0d5da620019cd URL: https://github.com/llvm/llvm-project/commit/d4f298c8206b435ce627b022efa0d5da620019cd DIFF: https://github.com/llvm/llvm-project/commit/d4f298c8206b435ce627b022efa0d5da620019cd.diff

[clang] cac8cd0 - [clang] [unittest/AST] Fix linking to LLVMTestingSupport

2020-05-01 Thread Michał Górny via cfe-commits
Author: Michał Górny Date: 2020-05-01T21:22:51+02:00 New Revision: cac8cd0a16e9c0410e33aaca93c760c503eeb68e URL: https://github.com/llvm/llvm-project/commit/cac8cd0a16e9c0410e33aaca93c760c503eeb68e DIFF: https://github.com/llvm/llvm-project/commit/cac8cd0a16e9c0410e33aaca93c760c503eeb68e.diff

[clang] 21c165d - [CMake] Pass bugreport URL to standalone clang build

2020-08-01 Thread Michał Górny via cfe-commits
Author: Michał Górny Date: 2020-08-02T08:32:05+02:00 New Revision: 21c165de2a1bcca9dceb452f637d9e8959fba113 URL: https://github.com/llvm/llvm-project/commit/21c165de2a1bcca9dceb452f637d9e8959fba113 DIFF: https://github.com/llvm/llvm-project/commit/21c165de2a1bcca9dceb452f637d9e8959fba113.diff

[PATCH] D24809: [libcxx] [cmake] Stop stripping -m32 from compiler flags

2016-09-21 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: EricWF. mgorny added a subscriber: cfe-commits. Herald added subscribers: mgorny, beanz. Stop stripping -m32 from the user-supplied flags. There is no valid reason to do that, stripping it silently is thoroughly confusing and makes it impossi

[PATCH] D24869: [cfe] [test] Fix detecting LLVM zlib support in stand-alone builds

2016-09-23 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: rsmith, beanz, samsonov. mgorny added a subscriber: cfe-commits. Herald added subscribers: mgorny, beanz. Fix the test run to declare missing HAVE_LIBZ value in stand-alone builds, using the LLVM_ENABLE_ZLIB that is exported in LLVMConfig.cmak

Re: [PATCH] D24869: [cfe] [test] Fix detecting LLVM zlib support in stand-alone builds

2016-09-23 Thread Michał Górny via cfe-commits
mgorny added a comment. For the record: I've tested the patch with and without zlib installed, using in-tree and stand-alone builds. https://reviews.llvm.org/D24869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-25 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: EricWF. mgorny added a subscriber: cfe-commits. Declare __STDC_FORMAT_MACROS, __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS before including real inttypes.h/stdint.h when the wrapper-header is included in C++11, in order to enable the neces

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-25 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D24903#551890, @rmaprath wrote: > When the `` headers where split into `` and `` headers in > https://reviews.llvm.org/D12747, we have left out `` and ``. > I was going to put up a patch to fix this but couldn't get to it. It's good > that yo

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 72441. https://reviews.llvm.org/D24903 Files: include/inttypes.h include/stdint.h Index: include/stdint.h === --- /dev/null +++ include/stdint.h @@ -0,0 +1,121 @@ +// -*- C++ -*- +//===--

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny marked an inline comment as done. mgorny added a comment. In https://reviews.llvm.org/D24903#551890, @rmaprath wrote: > When the `` headers where split into `` and `` headers in > https://reviews.llvm.org/D12747, we have left out `` and ``. > I was going to put up a patch to fix this but

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: include/stdint.h:25 @@ +24,3 @@ +INT8_MAX +INT16_MAX +INT32_MAX Are you referring to the way __STDC_LIMIT_MACROS etc. is handled there? Or something more? https://reviews.llvm.org/D24903 _

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 72492. https://reviews.llvm.org/D24903 Files: include/inttypes.h include/stdint.h Index: include/stdint.h === --- /dev/null +++ include/stdint.h @@ -0,0 +1,132 @@ +// -*- C++ -*- +//===--

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny added a comment. @EricWF, I've copied the additional unset logic from clang. Does this address all of your concerns? By the way, I think clang misses __STDC_FORMAT_MACROS for inttypes.h. I'll write a patch for that as well, for consistency. https://reviews.llvm.org/D24903 __

[PATCH] D24921: [PATCH] [Headers] Fix inttypes.h macros visibility in C++ with C99-compliant libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: rsmith. mgorny added a subscriber: cfe-commits. Define `__STDC_FORMAT_MACROS` in order to enable all macros defined by inttypes.h in C++ mode, as was required by the C99 standard and was enforced by multiple old glibc versions. This extends

Re: [PATCH] D24921: [PATCH] [Headers] Fix inttypes.h macros visibility in C++ with C99-compliant libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny added a comment. By the way, if anyone happens to have a 'more final' copy of the standards handy, feel free to provide a more consistent footnote numbers ;-). https://reviews.llvm.org/D24921 ___ cfe-commits mailing list cfe-commits@lists.ll

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
mgorny added a comment. Ok. Thanks for the review. https://reviews.llvm.org/D24903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24903: [libcxx] [include] Declare __STDC_*_MACROS for C++11 compat in old libc

2016-09-26 Thread Michał Górny via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282435: [include] Declare __STDC_*_MACROS for C++11 compat in old libc (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D24903?vs=72492&id=72552#toc Repository: rL LLVM https:

Re: [PATCH] D24809: [libcxx] [cmake] Stop stripping -m32 from compiler flags

2016-09-26 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D24809#553415, @EricWF wrote: > > Stop stripping -m32 from the user-supplied flags. There is no valid reason > > to do that, stripping it silently is thoroughly confusing and makes it > > impossible to do distribution multi-ABI builds without

Re: [PATCH] D24809: [libcxx] [cmake] Strip possibly-inherited compiler flags in in-tree build only

2016-09-26 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[libcxx] [cmake] Stop stripping -m32 from compiler flags" to "[libcxx] [cmake] Strip possibly-inherited compiler flags in in-tree build only". mgorny updated the summary for this revision. mgorny added a reviewer: beanz. mgorny updated this revision to Diff 726

Re: [PATCH] D23754: cmake: Add CLANG_GOLD_LIBDIR_SUFFIX to specify loc of LLVMgold.so

2016-09-26 Thread Michał Górny via cfe-commits
mgorny added a comment. @rafael, ping. Could you review this, please? This is the solution you suggested on the bug. https://reviews.llvm.org/D23754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D24954: [ToolChains] Do not assume OpenSUSE for other SUSE variants

2016-09-27 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: rafael, theraven, ismail. mgorny added a subscriber: cfe-commits. Assume OpenSUSE distribution only when /etc/SuSE-release indicates OpenSUSE, rather than for any SUSE distribution. This reverts the behavior change from rL185537 which -- alon

Re: [PATCH] D24809: [libcxx] [cmake] Strip possibly-inherited compiler flags in in-tree build only

2016-09-27 Thread Michał Górny via cfe-commits
This revision was automatically updated to reflect the committed changes. mgorny marked an inline comment as done. Closed by commit rL282475: [cmake] Strip possibly-inherited compiler flags in in-tree build only (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D24809?vs=7

Re: [PATCH] D24809: [libcxx] [cmake] Strip possibly-inherited compiler flags in in-tree build only

2016-09-27 Thread Michał Górny via cfe-commits
mgorny marked an inline comment as done. mgorny added a comment. Thanks for the review. Tested and committing now. Comment at: CMakeLists.txt:310 @@ -309,4 +309,3 @@ -# Remove flags that may have snuck in. -remove_flags(-DNDEBUG -UNDEBUG -D_DEBUG - -stdlib=libc++ -

Re: [PATCH] D24954: [ToolChains] Disable OpenSUSE rules for SLES10

2016-09-27 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[ToolChains] Do not assume OpenSUSE for other SUSE variants" to "[ToolChains] Disable OpenSUSE rules for SLES10". mgorny updated the summary for this revision. mgorny updated this revision to Diff 72609. mgorny added a comment. Does this one look better for you

Re: [PATCH] D24119: [libc++] add linker option "-Wl, -z, defs" in standalone build

2016-09-27 Thread Michał Górny via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282483: [cmake] Add linker option "-Wl,-z,defs" in standalone build (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D24119?vs=69944&id=72632#toc Repository: rL LLVM https://r

Re: [PATCH] D24119: [libc++] add linker option "-Wl, -z, defs" in standalone build

2016-09-27 Thread Michał Górny via cfe-commits
mgorny reopened this revision. mgorny added a comment. This revision is now accepted and ready to land. I'm starting to regret that I've committed this. It breaks horribly any pure-LLVM build, i.e. without linking to libgcc_s. It seems that the build system is completely unprepared to link to co

Re: [PATCH] D24119: [libc++] add linker option "-Wl, -z, defs" in standalone build

2016-09-27 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D24119#554251, @rmaprath wrote: > Doesn't `-DLIBCXXABI_USE_LLVM_UNWINDER=ON` make it possible to build without > `libgcc_s`? Or is this something else? It's supposed to but it doesn't add the necessary libraries when linking libc++.so. Rep

[PATCH] D25003: [libcxxabi] [cmake] Update LLVM_CMAKE_PATH following install layout change

2016-09-28 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: danalbert, EricWF. mgorny added a subscriber: cfe-commits. Herald added subscribers: mgorny, beanz. Update LLVM_CMAKE_PATH in stand-alone builds to match the new install layout used by LLVM 3.9+ where CMake files are installed into lib*/cmake/

[PATCH] D25008: [libcxx] Include unwinder library in the linker script

2016-09-28 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: EricWF. mgorny added a subscriber: cfe-commits. Herald added subscribers: mgorny, beanz. Include an appropriate unwinder library (-lunwind or -lgcc_s) when constructing a linker script for libc++. This is necessary since otherwise clang++ set

Re: [PATCH] D25008: [libcxx] Include unwinder library in the linker script

2016-09-28 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25008#555041, @rmaprath wrote: > The patch generally makes sense to me. > > I wonder if the test configuration can also benefit from this; > `test/libcxx/test/target_info.py` manually updates the link line to use > `-lgcc_s` or `-lunwind` dep

[PATCH] [Commented On] D25008: [libcxx] Include unwinder library in the linker script

2016-09-29 Thread Michał Górny via cfe-commits
mgorny added a comment. Side note: I see that gcc is solving similar problem via .spec files for its libraries, e.g.: $ cat /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/libgomp.spec # This spec file is read by gcc when linking. It is used to specify the # standard libraries we need in order to

[PATCH] [Commented On] D24954: [ToolChains] Disable OpenSUSE rules for SLES10

2016-09-29 Thread Michał Górny via cfe-commits
mgorny added a comment. @ismail, ping. https://reviews.llvm.org/D24954 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25093: [libcxx] [cmake] Allow testing against installed LLVM with no sources

2016-09-30 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: EricWF, beanz. mgorny added a subscriber: cfe-commits. Adjust the stand-alone build files to accept either CMake files from LLVM_CMAKE_PATH or from LLVM_MAIN_SRC_DIR instead of requiring both. This makes it possible to run libcxx tests on t

[PATCH] D25093: [libcxx] [cmake] Allow testing against installed LLVM with no sources

2016-09-30 Thread Michał Górny via cfe-commits
mgorny added a comment. Combined with https://reviews.llvm.org/D25076 (on llvm), this lets me run libcxx test suite on top of installed LLVM+lit, without LLVM sources. https://reviews.llvm.org/D25093 ___ cfe-commits mailing list cfe-commits@lists.l

[PATCH] D23745: [cmake] Update lit search to match the one in LLVM

2016-10-01 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "cmake: Adjust llvm-lit search to match the one in LLVM" to "[cmake] Update lit search to match the one in LLVM". mgorny updated the summary for this revision. mgorny updated this revision to Diff 73192. Herald added a subscriber: beanz. https://reviews.llvm.org

[PATCH] D25157: [compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* consistently for libs & tests

2016-10-01 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: beanz, samsonov. mgorny added a subscriber: cfe-commits. Herald added subscribers: dberris, kubabrecka, srhines, danalbert, tberghammer. Refactor the code to respect COMPILER_RT_BUILD_SANITIZERS and COMPILER_RT_BUILD_XRAY consistently for both

[PATCH] D25157: [compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* for libs, headers and tests

2016-10-01 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* consistently for libs & tests" to "[compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* for libs, headers and tests". mgorny updated the summary for this revision. mgorny updated this revision to Diff 73198. mgorny

[PATCH] D25161: [cmake] Install 'clang-cpp' symlink

2016-10-02 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: beanz, doug.gregor. mgorny added a subscriber: cfe-commits. Herald added a subscriber: emaste. Install the 'clang-cpp' symlink used to spawn the preprocessor. The code handling this suffix is already included in Driver. FreeBSD is already crea

[PATCH] D25008: [libcxx] Include unwinder library in the linker script

2016-10-02 Thread Michał Górny via cfe-commits
mgorny planned changes to this revision. mgorny added a comment. I will be reworking this to use CMake's PRIVATE and PUBLIC linked libs consistently across the build, linker scripts and possibly tests. @EricWF, would you prefer if I killed the `add_library_flags*` macros or extended them to sup

[PATCH] D24933: Enable configuration files in clang

2016-10-02 Thread Michał Górny via cfe-commits
mgorny requested changes to this revision. mgorny added a reviewer: mgorny. mgorny added a comment. This revision now requires changes to proceed. Few minor nits. However, I'd like to say that I like the idea in general and see forward to deploy it in Gentoo. One use case which doesn't seem to h

[PATCH] D25161: [cmake] Install 'clang-cpp' symlink

2016-10-02 Thread Michał Górny via cfe-commits
mgorny added a comment. Thanks for the review. Proceeding with the commit now. https://reviews.llvm.org/D25161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25161: [cmake] Install 'clang-cpp' symlink

2016-10-03 Thread Michał Górny via cfe-commits
mgorny closed this revision. mgorny added a comment. I'm going to close this manually since it seems that Phabricator commit processing is stuck somehow. https://reviews.llvm.org/D25161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

[PATCH] D25003: [libcxxabi] [cmake] Update LLVM_CMAKE_PATH following install layout change

2016-10-03 Thread Michał Górny via cfe-commits
mgorny abandoned this revision. mgorny added a comment. Independently fixed in rL283100. https://reviews.llvm.org/D25003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [llvm-dev] Upgrading phabricator

2016-10-03 Thread Michał Górny via cfe-commits
On Mon, 3 Oct 2016 13:47:08 + Sjoerd Meijer via cfe-commits wrote: > I just committed to Clang and noticed that the corresponding Phabricator > ticket does not get automatically closed (I have "Differential Revision:" in > my commit message and believe I didn't make a typo). > Is it just me

[PATCH] D23832: cmake: Add ordering dep between HTML Sphinx docs and manpages

2016-10-03 Thread Michał Górny via cfe-commits
mgorny abandoned this revision. mgorny added a comment. This is no longer necessary since updated patch to https://reviews.llvm.org/D23755 handles all the projects using the functions. https://reviews.llvm.org/D23832 ___ cfe-commits mailing list cf

[PATCH] D24933: Enable configuration files in clang

2016-10-04 Thread Michał Górny via cfe-commits
mgorny added inline comments. > driver.cpp:314 > + > +static llvm::cl::SearchResult findConfigFileFromProgramName( > +llvm::SmallVectorImpl &ConfigName, StringRef ProgramName) { Please document what this function does, exactly. I see you've documented it in call site but a doc here would be

[PATCH] D25267: cmake: Set CMAKE_INSTALL_RPATH in Clang when building separately from LLVM

2016-10-05 Thread Michał Górny via cfe-commits
mgorny added a comment. I presume you copied it out of LLVM. If that's the case, please add an comment above stating where it's been copied from. https://reviews.llvm.org/D25267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D25314: [libcxxabi] [cmake] Handle missing LIBUNWIND_* directories gracefully

2016-10-06 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: EricWF, asl. mgorny added a subscriber: cfe-commits. Herald added a subscriber: beanz. Add LIBUNWIND_* directories to include path only if they were actually found, in order to fix the CMake error. Both of the directories are usually unnecessar

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-06 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: ddunbar. mgorny added a subscriber: cfe-commits. Herald added a subscriber: dberris. Make the -print-libgcc-file-name option print an appropriate compiler runtime library, that is libgcc.a if gcc runtime is used and an appropriate compiler-rt

[PATCH] D25008: [cmake] Split linked libraries into private & public, for linker script

2016-10-06 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[libcxx] Include unwinder library in the linker script" to "[cmake] Split linked libraries into private & public, for linker script". mgorny updated the summary for this revision. mgorny updated this revision to Diff 73840. mgorny added a comment. Herald added

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-06 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 73855. https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td lib/Driver/Driver.cpp Index: lib/Driver/Driver.cpp === --- lib/Driver/Driver.cpp +

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-06 Thread Michał Górny via cfe-commits
mgorny marked 2 inline comments as done. mgorny added a comment. Updated the docs. I'll look into the test case tomorrow. https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 73887. mgorny added a comment. A simple test case included. https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td lib/Driver/Driver.cpp test/Driver/print-libgcc-file-name.c Index: test/Driver/print-libgc

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
mgorny added a comment. Thanks for the review. https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL283572: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D25338?vs=73887&id=73953#toc Repository: rL LLVM

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
mgorny added a comment. It seems that my test doesn't work on Darwin, and I should exclude the libgcc part there. Do you happen to have any suggestion how to do that? I'm going to wait for other buildbots to finish to see if I haven't broken any other platform, then revert it and look for a pro

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
mgorny planned changes to this revision. mgorny added a comment. Reverted, I need to update it to run libgcc part of the test only on platforms supporting that. Repository: rL LLVM https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
mgorny removed rL LLVM as the repository for this revision. mgorny updated this revision to Diff 73979. This revision is now accepted and ready to land. https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td lib/Driver/Driver.cpp test/Driver/pri

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-07 Thread Michał Górny via cfe-commits
mgorny requested a review of this revision. mgorny added a comment. I have updated the patch to include a feature check for platforms rejecting `-rtlib=libgcc` and split the test appropriately. Could you re-review, please? https://reviews.llvm.org/D25338 _

[PATCH] D25008: [cmake] Split linked libraries into private & public, for linker script

2016-10-08 Thread Michał Górny via cfe-commits
mgorny marked 2 inline comments as done. mgorny added inline comments. Comment at: lib/CMakeLists.txt:86 +elseif (LIBCXX_HAS_GCC_S_LIB) + list(APPEND LIBCXX_LIBRARIES_PUBLIC gcc_s) +endif() EricWF wrote: > I don't think `libgcc_s` should be considered a public l

[PATCH] D25008: [cmake] Split linked libraries into private & public, for linker script

2016-10-08 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 74019. mgorny added a comment. Apple re-export and PRIVATE/PUBLIC covered. https://reviews.llvm.org/D25008 Files: CMakeLists.txt lib/CMakeLists.txt utils/gen_link_script/gen_link_script.py Index: utils/gen_link_script/gen_link_script.py ==

[PATCH] D25008: [cmake] Split linked libraries into private & public, for linker script

2016-10-08 Thread Michał Górny via cfe-commits
mgorny updated the summary for this revision. mgorny updated this revision to Diff 74020. https://reviews.llvm.org/D25008 Files: CMakeLists.txt lib/CMakeLists.txt utils/gen_link_script/gen_link_script.py Index: utils/gen_link_script/gen_link_script.py ==

[PATCH] D25008: [cmake] Split linked libraries into private & public, for linker script

2016-10-08 Thread Michał Górny via cfe-commits
mgorny marked 2 inline comments as done. mgorny added a comment. As discussed on IRC, limited the unwinder deps to -lunwind, and I'll work on making clang include -lunwind by default. https://reviews.llvm.org/D25008 ___ cfe-commits mailing list cfe

[PATCH] D25008: [cmake] Split linked libraries into private & public, for linker script

2016-10-08 Thread Michał Górny via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL283659: [cmake] Split linked libraries into private & public, for linker script (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D25008?vs=74020&id=74034#toc Repository: rL LLV

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-08 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: ddunbar, EricWF, rsmith, phosek. mgorny added a subscriber: cfe-commits. Herald added a subscriber: dberris. Include -lunwind by default when libc++ is used as the standard C++ library and compiler-rt used as the runtime library. This aims to m

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-08 Thread Michał Górny via cfe-commits
mgorny planned changes to this revision. mgorny added a comment. I knew this looked too easy ;-). https://reviews.llvm.org/D25402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-09 Thread Michał Górny via cfe-commits
mgorny added a reviewer: ggreif. mgorny updated this revision to Diff 74062. mgorny added a comment. Including a fix for montavista toolchain checks that miss passing -rtlib= and therefore could fail depending on DEFAULT_* value. https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-09 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 74063. mgorny added a comment. I'm sorry, I mixed branches up. Here's the correct patch with both updates. https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td lib/Driver/Driver.cpp test/Driver/montavista

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-09 Thread Michał Górny via cfe-commits
mgorny added a reviewer: joerg. mgorny updated this revision to Diff 74064. mgorny added a comment. I've updated the NetBSD tests (@joerg, please confirm if it's desired), and added a Linux test for the case. AFAICS most of the other targets override the method, some of them adding -lunwind alre

[PATCH] D24933: Enable configuration files in clang

2016-10-09 Thread Michał Górny via cfe-commits
mgorny resigned from this revision. mgorny removed a reviewer: mgorny. mgorny added a comment. I have no further comments. However, I'm quite a fresh contributor, so I'm not really in a position to accept it. https://reviews.llvm.org/D24933 ___ cfe

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 74111. mgorny added a comment. Updated to use TC.getCompilerRT(). https://reviews.llvm.org/D25338 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td lib/Driver/Driver.cpp test/Driver/montavista-gcc-toolchain.c test/Driver/print-libg

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: CMakeLists.txt:198 +set(CLANG_DEFAULT_LINKER "" CACHE STRING + "Default linker to use (\"bfd\" or \"gold\" or \"lld\", empty for platform default") Is there a reason not to allow using the absolute path here, like for

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25402#565557, @joerg wrote: > No, they are not desirable, in fact, they pretty much break clang. That's why > I wanted to see the test diff... Thank you for your feedback. However, I would really appreciate if you kindly said what you meant

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[Driver] Pass -lunwind when using libc++ + compiler-rt" to "[Driver] Pass -lunwind when using libc++ + compiler-rt on Linux". mgorny updated the summary for this revision. mgorny updated this revision to Diff 74115. https://reviews.llvm.org/D25402 Files: li

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. I've updated the patch to apply to Linux toolchain only. https://reviews.llvm.org/D25402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25402: [Driver] Pass -lunwind when using libc++ + compiler-rt on Linux

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25402#566070, @joerg wrote: > It's difficult to say whether if one change to certain driver functions > affect some target or not. That's one reason why the test change is so > important. > > Looking at the latest version, I still don't under

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. Thanks for the review. https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-10 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: EricWF, theraven. mgorny added a subscriber: cfe-commits. Herald added a subscriber: beanz. Build the Solaris compatibility code (C) as a separate static library rather than appending it to libc++ sources, in order to prevent the -std=c++11 fla

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25431#566096, @theraven wrote: > It sounds as if the bug here is either that the .c files are being treated as > c++, or that we're sticking -std=c++{whatever} in CFLAGS as well as CXXFLAGS. > This is probably the bug that should be fixed.

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michał Górny via cfe-commits
mgorny closed this revision. mgorny added a comment. r283746 https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24954: [ToolChains] Disable OpenSUSE rules for SLES10

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: lib/Driver/ToolChains.cpp:3915 - if (D.getVFS().exists("/etc/SuSE-release")) -return OpenSUSE; + File = llvm::MemoryBuffer::getFile("/etc/SuSE-release"); + if (File) bruno wrote: > You should keep using the VFS t

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-13 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: EricWF. mgorny added a subscriber: cfe-commits. Herald added subscribers: modocache, beanz. Use the -print-libgcc-file-name compiler option to obtain the path to libgcc or an equivalent compiler runtime library, rather than hardcoding -lgcc_s.

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-13 Thread Michał Górny via cfe-commits
mgorny updated the summary for this revision. mgorny updated this revision to Diff 74536. https://reviews.llvm.org/D25568 Files: cmake/Modules/HandleLibcxxFlags.cmake lib/CMakeLists.txt Index: lib/CMakeLists.txt === --- lib/CMa

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-13 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 74538. mgorny added a comment. Fixed indentation. https://reviews.llvm.org/D25568 Files: cmake/Modules/HandleLibcxxFlags.cmake lib/CMakeLists.txt Index: lib/CMakeLists.txt === --- lib/CMak

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-14 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25568#570222, @EricWF wrote: > This doesn't seem right seeing as `print-libgcc_file-name` prints the > `libgcc.a` path, and we were previously linking `libgcc_s`. Do you have any other solution in mind? There is no switch to print the share

[PATCH] D25431: [libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues

2016-10-14 Thread Michał Górny via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D25431#570227, @EricWF wrote: > Why not just compile the sources files as C++ by changing their extensions? > This change seems all kinds of wrong because we're throwing away *all* of our > flags, including things like `-m32` or `-target `.

[PATCH] D25431: [libcxx] Convert Solaris support library to C++ to fix -std=c++11 build

2016-10-14 Thread Michał Górny via cfe-commits
mgorny retitled this revision from "[libcxx] [CMake] Build Solaris compat as separate C lib, to avoid -std= issues" to "[libcxx] Convert Solaris support library to C++ to fix -std=c++11 build ". mgorny updated the summary for this revision. mgorny updated this revision to Diff 74666. mgorny added

[PATCH] D25641: [Driver] Use VFS to perform all distribution checks

2016-10-15 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: bruno, rafael, bkramer. mgorny added subscribers: cfe-commits, bruno. Use the VFS provided by D.getVFS() for all distribution checks, including those performing read of the release file. Requested by @bruno on https://reviews.llvm.org/D24954.

[PATCH] D25661: [Driver] Support obtaining active toolchain from gcc-config on Gentoo

2016-10-16 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: rafael, chandlerc, bruno, bkramer. mgorny added a subscriber: cfe-commits. Support using gcc-config to determine the correct GCC toolchain location on Gentoo. In order to do that, attempt to read gcc-config configuration form [[sysroot]]/etc/en

[PATCH] D25661: [Driver] Support obtaining active toolchain from gcc-config on Gentoo

2016-10-17 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: lib/Driver/ToolChains.cpp:1446-1463 + // CURRENT=triple-version + if (Line.startswith("CURRENT=")) { +const std::pair ActiveVersion = + Line.substr(8).rsplit('-'); +// Note: Strictly

[clang] [Clang] Remove NetBSD/i386 workaround for FP eval method with older versions (PR #74025)

2023-12-02 Thread Michał Górny via cfe-commits
https://github.com/mgorny approved this pull request. Code LGTM but please add a note to the release notes, as was requested. https://github.com/llvm/llvm-project/pull/74025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] bc96aa9 - [clang] Fix typos in Options.td and regen ClangCommandLineReference.rst.

2021-07-29 Thread Michał Górny via cfe-commits
Author: Frederic Cambus Date: 2021-07-29T20:33:39+02:00 New Revision: bc96aa9f2c9b25ae65a7e05dbbff8c28079db9c9 URL: https://github.com/llvm/llvm-project/commit/bc96aa9f2c9b25ae65a7e05dbbff8c28079db9c9 DIFF: https://github.com/llvm/llvm-project/commit/bc96aa9f2c9b25ae65a7e05dbbff8c28079db9c9.dif

[clang] 1862ffe - [clang] Fix a typo in the manual page: s/contraint/constraint.

2021-07-29 Thread Michał Górny via cfe-commits
Author: Frederic Cambus Date: 2021-07-29T20:34:43+02:00 New Revision: 1862ffe25a2e927ecae012f5f0c4cdf7c3fc1b67 URL: https://github.com/llvm/llvm-project/commit/1862ffe25a2e927ecae012f5f0c4cdf7c3fc1b67 DIFF: https://github.com/llvm/llvm-project/commit/1862ffe25a2e927ecae012f5f0c4cdf7c3fc1b67.dif

[clang] [clang] [cmake] Add cmake module dir before using GetDarwinLinkerVersion (PR #86386)

2024-03-23 Thread Michał Górny via cfe-commits
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/86386 Move the code adding top-level cmake/Modules directory to CMAKE_MODULE_PATH prior to including `GetDarwinLinkerVersion`, in order to fix standalone builds. Fixes a regression introduced by 3bc71c2abfa00413fd15cf0

[clang] [clang] [cmake] Add cmake module dir before using GetDarwinLinkerVersion (PR #86386)

2024-03-23 Thread Michał Górny via cfe-commits
mgorny wrote: Thanks! https://github.com/llvm/llvm-project/pull/86386 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >