Gold pares some gains by the finish, but ends at a 6-week high