<div>Chris,</div><div><br></div><div>I've attached an alternative version of the patch which does not include the user-visible flag. </div><div><br></div><div>Instead, to activate the emission of the va_arg instruction, you can modify TARGET_GIMPLIFY_VA_ARG_EXPR in the target configuration and recompile.</div>

<div><br></div><div>For example, in gcc/config/i386/i386.c:</div><div><br></div><div>#define TARGET_GIMPLIFY_VA_ARG_EXPR ix86_gimplify_va_arg</div><div><br></div><div>Can be changed to:</div><div><br></div><div>#define TARGET_GIMPLIFY_VA_ARG_EXPR llvm_gimplify_va_arg_expr</div>

<div><br></div><div>To activate va_arg for x86 and x86-64.</div><div><br></div><div>- David M</div>