[cfe-dev] Build servers with pre-GCC-5 ?

Pavel Labath via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 3 00:10:39 PST 2020

Hello Gabor,

I looked into this problem not so long ago, and my conclusion was that it
is not gcc what is the limiting factor here -- clang is. Prior to
clang-3.9, we were diagnosing code like:
-----  <https://godbolt.org/z/M5Fy8w>
struct A { };
struct B { B(A&&); };

B f(A a) { return a; }
Officially our minimum supported clang version is 3.5, so we need to use
std::move(a) to keep this code building.

However, I don't know if we actually have any buildbots running with
clang<3.9 to check that this is really the only thing that's needed to make
those compilers work, or if we have anyone who cares about llvm
buildability with those compilers (I certainly don't).


On Fri, 31 Jan 2020 at 19:32, Eli Friedman via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> The minimum compiler version is enforced with a hard error in CMake.
> -Eli
> *From:* cfe-dev <cfe-dev-bounces at lists.llvm.org> *On Behalf Of *Gábor
> Márton via cfe-dev
> *Sent:* Friday, January 31, 2020 2:35 AM
> *To:* Clang Dev <cfe-dev at lists.llvm.org>
> *Subject:* [EXT] [cfe-dev] Build servers with pre-GCC-5 ?
> Hi,
> We have some code that uses explicit std::move
> <https://reviews.llvm.org/D73675#inline-669095> that is redundant with
> modern compilers. Are there any build servers that are still using
> pre-GCC-5 compilers? Could we just simply remove std::move without breaking
> any build server?
> The minimum supported compiler version for LLVM/Clang seems to be GCC 5.1
> <https://llvm.org/docs/GettingStarted.html#software>, but I'd like to get
> some confirmation from the community.
> Thanks,
> Gabor
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200203/96729f0b/attachment.html>

More information about the cfe-dev mailing list