US automaker GM reports losses of $6 billion