[llvm-commits] [llvm-gcc-4.2] r103151 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Thu May 6 02:22:09 PDT 2010
Hi Stuart,
> - unsigned int gccStructSize = TREE_INT_CST_LOW(gccSize);
> + // If the size isn't constant, assume the worst (a one byte
> + // struct).
> + unsigned int gccStructSize = TREE_CODE(gccSize) == INTEGER_CST ?
> + TREE_INT_CST_LOW(gccSize) : 1;
in theory Ada allows for arbitrarily large variable sized objects as
bitfields! However, gcc-4.2 itself doesn't support this so you don't
need to worry about it :)
Ciao,
Duncan.
More information about the llvm-commits
mailing list