But other stocks didn't fare so well. Among losers for the day:
— Diamond Foods, maker of Emerald Nuts and Pop Secret popcorn, plunged 37 percent. It announced late Wednesday that it was ousting its top two executives amid allegations of improper accounting.
— Groupon, the daily deal website, fell 14 percent after it announced a surprising quarterly loss in its first earnings report as a public company.
— TripAdvisor, the website where travelers can post advice and reviews, lost 15 percent after it missed analysts' earnings expectations. Like Groupon, TripAdvisor was also making its first earnings report as a public company. The website spun off from Expedia in December.
— PepsiCo fell 4 percent after announcing it will cut 3 percent of its workforce, a defense against higher costs for materials.
Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.