Gold headed for its biggest weekly loss since 1983, as war in the Middle East boosted energy prices and reduced expectations for interest-rate cuts.