Files
Vlad SerebrennikovandVlad Serebrennikov e44a0fa12b Use period-correct GCC toolchains for old Clang releases (3.1-4.0) (#5276)
To make it consistent with newer Clang releases, all Clang assertion
builds, and user expectations.

The problem
========
Release Clang builds 3.1 through 4.0.1 are using newer GCC 6.3.0
toolchain by default. Major GCC 6.1 release happened 2.5 years after
Clang 3.1 release, which makes Clang 3.1 on CE non-period-correct
experience. We at LLVM were bitten by that while trying to triage old
Clang bugs, so I claim that current experience is off from user
expectations.

Starting with release builds of Clang 5, CE defaults to latest GCC
release for toolchain, providing period-correct experience. That makes
old Clang builds inconsistent with your current policy regarding newer
release Clang builds.

Recently introduced Clang builds with assertions enabled use
period-correct GCC toolchains in all versions, because period-correct
Clang experience is paramount for triaging old bugs. Old release builds
are not consistent with that either, which by default leads to a
difference in compiler output that doesn't come from _just_ enabling
assertions.

The solution
========
I think the best long-term solution is to fix this inconsistency, using
the same period-correct GCC toolchains as assertion builds.

This would change output in the links that rely on the difference
between old and new GCC standard library. I'd estimate that number of
such links is not high. I'd argue that if something worked there, it
shouldn't have in the first place.

---------

Co-authored-by: Vlad Serebrennikov <serebrennnikov.vladislav@gmail.com>
2023-07-23 20:31:58 -05:00
..