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

--- Comment #7 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Looking into omp-simd-clone.cc, the following needs the change to check
TREE_CODE rather than void_type_node directly.

simd_clone_adjust_return_type
simd_clone_adjust

simd_clone_adjust_return_type check was:
  if (orig_rettype == void_type_node)
    return;

It should be:
  if (VOID_TYPE_P (orig_rettype))
    return;

simd_clone_adjust check is:
  if (orig_rettype != void_type_node)
    {

It should be:
  if (!VOID_TYPE_P (orig_rettype))


I can assume you made these changes (well TREE_CODE (xx) !=/== VOID_TYPE)?
Did you accidently switched around the check in simd_clone_adjust ?

Reply via email to