https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544

--- Comment #14 from Andrew Stubbs <ams at gcc dot gnu.org> ---
"printf" exists and has been working on both AMDGCN and NVPTX devices since
forever. "fputs", "puts", and "write", etc. should all work too.

If the FORTIFY_SOURCE trick doesn't get rid of __printf_chk, or has other
side-effects, then you can probably use __builtin_printf in these instances to
bypass the preprocessor "magic".

Reply via email to