Made copy_{to,from}_real volatile, so that they don't get optimised away.