Stocks, gold rise as dollar eases ahead of U.S. inflation data