[llvm-commits] [llvm-gcc-4.2] r108206 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Mon Jul 12 23:42:46 PDT 2010


Hi Eric,

> +  /* If this is a vla type and we requested an alignment greater than the stack
> +     alignment, error out since we're not going to dynamically realign
> +     variable length array allocations.  We're placing this here instead of
> +     later in case it's a relatively unused variable.  */

does gcc support dynamic stack realignment with vla?

> +  if (TREE_CODE (type) == ARRAY_TYPE&&  C_TYPE_VARIABLE_SIZE (type)&&
> +      DECL_ALIGN(decl)/8u>  TheTarget->getFrameInfo()->getStackAlignment())

What is C_TYPE_VARIABLE_SIZE?  It sounds like you are calling a C language
specific function from language independent code.

Ciao,

Duncan.



More information about the llvm-commits mailing list