Hello, Duncan. > > Mark all external functions decls to be varagrs instead of no args :) > is there no better way? I tried, but actually failed. There is special gcc PR for this. The problem is that there can be special optional arguments in the middle of the argument list and it is pretty tricky to construct a correct decl in such case.
Marking decls as varargs is pretty cheap workaround: actually, current llvm-gcc logic will correctly rewrite a decl to a "complete type", when definition is available. -- WBR, Anton Korobeynikov _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits