[LLVMdev] hi, llvm-gcc deal with va_arg() by word alignment.
Duncan Sands
baldrick at free.fr
Mon Jan 5 02:37:26 PST 2009
Hi,
> I am porting llvm to our embedded cpu.
> By my abi, long long type is aligned by 8 bytes.
> But now llvm-gcc frontend follows x86 abi, generate
> word-alignment LLVM-IR for va_arg().
if llvm-gcc thinks the alignment is 4 but it is not then you
will get more problems than just with va_arg. Why not teach
llvm-gcc about your target?
Ciao,
Duncan.
More information about the llvm-dev
mailing list