TSMC announced a second-quarter profit, following its June revenue figures released earlier this week.