Gold and silver prices were ending the U.S. day session with solid gains Wednesday, on safe-haven demand.