(Reuters) – The benchmark S&P 500 eked out a gain on Wednesday as strength in the energy and consumer sectors offset declines in financial shares and investors began looking ahead to first-quarter earnings season.