https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67874
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note I think tilegx32 target might have the same issue as it uses the new generic syscall interface and there is no fcntl there either.