Jonathan Wakely via llvm-dev
2018-Aug-09 09:16 UTC
[llvm-dev] GCC 5 and -Wstrict-aliasing in JSON.h
On Thu, 9 Aug 2018 at 03:09, Leslie Zhai wrote:> Could you test to compile LLVM with GCC old versions 4/5/6? Does it need > to backport your patch to GCC old version?GCC versions before 6.4 are not supported, so no backports will happen to 4.x or 5 releases and I doubt anybody's going to routinely test anything with them. If there's a bug in GCC 4.9.3 that you can't work around then you should upgrade to a supported release (or use a distribution that provides support for older releases).
Leslie Zhai via llvm-dev
2018-Aug-09 11:04 UTC
[llvm-dev] GCC 5 and -Wstrict-aliasing in JSON.h
Hi Jonathan, Thanks for your response! So workaround for Kim's issue is bootstrap old version LLVM with GCC 4/5 to build old clang, then bootstrap latest LLVM with old clang. 在 2018年08月09日 17:16, Jonathan Wakely 写道:> On Thu, 9 Aug 2018 at 03:09, Leslie Zhai wrote: >> Could you test to compile LLVM with GCC old versions 4/5/6? Does it need >> to backport your patch to GCC old version? > GCC versions before 6.4 are not supported, so no backports will happen > to 4.x or 5 releases and I doubt anybody's going to routinely test > anything with them. If there's a bug in GCC 4.9.3 that you can't work > around then you should upgrade to a supported release (or use a > distribution that provides support for older releases).-- Regards, Leslie Zhai
Jonathan Wakely via llvm-dev
2018-Aug-09 11:06 UTC
[llvm-dev] GCC 5 and -Wstrict-aliasing in JSON.h
On Thu, 9 Aug 2018 at 12:04, Leslie Zhai wrote:> > Hi Jonathan, > > Thanks for your response! > > So workaround for Kim's issue is bootstrap old version LLVM with GCC 4/5 > to build old clang, then bootstrap latest LLVM with old clang.It would be much easier to just use -fno-strict-aliasing with the older GCC.