U.S. stocks gave up their gains in afternoon trading to end mixed Tuesday, amid a renewed decline in U.S. energy prices that highlighted ongoing investor concerns about the troubled sector.Investors were also focused on data out of China showing the country posted its weakest annual pace of growth in a quarter century. China said its GDP grew 6.8% in the fourth quarter and 6.9% for all of 2015.