TGI Fridays profit swings to $17-million loss