[OpenMP] OpenMPOpt miscompiles sprintf
function from the GPU implementation
#94643
Labels
sprintf
function from the GPU implementation
#94643
The OpenMPOpt pass currently miscompiles trivial uses of the
sprintf
function. This was recently enabled with the AMDGPU support of varargs. The following example prints an empty string withopenmp-opt
enabled, and1
with it disabled.This can be compiled with the GPU libc using the following, with the disabled version printing
1
as expected.The output before the offending
openmp-opt
pass is available here https://godbolt.org/z/ecEjEKvv3.The text was updated successfully, but these errors were encountered: