On 02/17/2015 06:10 PM, Jakub Jelinek wrote:

What exact testcase are you trying to fix with this patch, and how do you
think offloading of code using va_list can work?

The exact testcase is any offloaded program - streaming in lto will crash if there is a mismatch in these preloaded nodes.

For OpenACC programs using va_list - I don't expect them to work at all. I don't believe the spec considers such issues, and ptx isn't expected to support variadic functions in the first place ("The current version of PTX does not support variadic functions" is what the spec has to say; the gcc port overachieves a little by implementing them anyway).


Bernd

Reply via email to