[llvm-dev] Any way to disable the alignment of functions?
mats petersson via llvm-dev
llvm-dev at lists.llvm.org
Sun Dec 27 15:24:24 PST 2015
On 27 December 2015 at 21:23, Rahman Lavaee Mashhadi via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> but on a few programs, it produces a segfault-generating executable. So
> my guess is that for some functions, alignment is necessary for soundness,
> not just performance.
> That seems rather odd. On x86, I'm not aware of any instruction sequence
that REQUIRES alignment of the instruction itself. I'd be interested to see
what code it is that causes this (not that I'll be able to fix it, but just
out of curiosity, and perhaps it will help someone who can fix it...)
As to the original question, does -Os not do what you need?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev