[LLVMdev] RFC: llvm-convert.cpp Patch

Dale Johannesen dalej at apple.com
Wed Nov 7 11:14:39 PST 2007


On Nov 7, 2007, at 10:51 AM, Bill Wendling wrote:

> On 11/7/07, Dale Johannesen <dalej at apple.com> wrote:
>
> I agree. But I was thinking that there was a more fundamental problem,
> i.e. that GCC was changing the alignment of the constructor without
> taking the destination's alignment into account -- that is, it's not
> changing the destination's alignment and/or checking it beforehand.

No, the compiler has complete control of the alignment of compiler- 
generated
"constructors" (in gcc's terminology; they have nothing to do with C++
constructors) and normally aligns them restrictively for efficiency.   
There is no
reason the alignment of the destination should be the same.




More information about the llvm-dev mailing list