(Updates official closing numbers, adds details, quotes)
*Index trims gains to close little changed
*Soft resource shares offset gains in financials
*Royal Bank of Canada rises after says will take writedown
TORONTO, May 14 (Reuters) - The Toronto Stock Exchange’s main index gave up nearly all its gains on Wednesday, as weak resources undermined a rally by financial issues after Royal Bank of Canada (RY.TO) said it would take a smaller second-quarter writedown than had been expected.
Miners were among the companies that led the retreat, including Inmet Mining IMN.TO, as the start date of its Las Cruces copper project was put in doubt after Spain’s water authority suspended a water permit. Inmet gave up C$9.49, or 12.3 percent, at C$67.50.
The financial sector pushed higher, with shares of Royal up C$1.23, or 2.5 percent, at C$49.85 after Canada’s largest bank said it will see a pretax writedown of C$855 million amid liquidity pressures on its assets.
“There’s so many rumors floating around on what (banks’) exposures are,” said Sal Masionis, stockbroker at Brant Securities. “So obviously it’s quite nice to have a rally.”
The S&P/TSX composite index .GSPTSE closed up 9.61 points, or 0.07 percent, at 14,626.31 with half of the 10 main sectors higher.
The banking group, which has been battered by global losses and writedowns stemming from the credit crunch and deteriorating U.S. housing market, rose 1 percent.
The sector had earlier helped the benchmark jump to a record high of 14,737.18, surpassing the 14,695.75 mark that was reached on Monday.
Gold producers fell 1.7 percent, while the price of bullion slid slightly. Agnico-Eagle Mines (AEM.TO) was down C$1.50, or 2.3 percent, at C$63.91, while the broader materials sector was off 0.9 percent.
Economic data out of the United States had helped set an upbeat tone earlier in the day after consumer prices rose less than expected last month, which calmed fears of inflation. ($1=$1.00 Canadian) (Reporting by Leah Schnurr; editing by Rob Wilson)