Gergel ruled on Friday that Roof, 22, was mentally competent to stand trial, following concerns raised by defense attorneys about their client’s ability to understand the nature of the proceedings against him and to assist in his defense.