Consumer companies rose as traders sloughed off a warning about discretionary spending from one major snack maker.

PepsiCo beat revenue estimates, but Iran war gas-price spikes left U.S. snack volumes flat and beverage sales down 4%.

"Our North America business was softer than we anticipated..."