GLOBAL MARKETS-Stocks gain on corporate results, rising commodities