[cfe-dev] libc++ std::cout alignment trouble (was: Re: [llvm] r240144 - [SLP] Vectorize for all-constant entries.)

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 10:33:17 PST 2016


On 4 January 2016 at 13:09, James Y Knight via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
> Why do you think that there's a bug in ld -- it gets its alignment from the
> observed alignment of the input object, right? If the input is 8-byte
> aligned, why should it force the output to be 16-byte aligned?
>
> But regardless of whether there's also a bug in ld, I still think this is
> definitely an LLVM bug; it could just as well increase the required
> alignment of a global to 32...which would also be wrong.

Right, I don't see how ld would be at fault here.

The issue we encounter in FreeBSD is entirely that the older
clang/llvm produced 8-byte alignment for cout while clang/llvm now
produces 16 byte alignment. Thus some existing executables have a cout
with 8-byte, but not 16-byte, alignment.


More information about the llvm-commits mailing list