DETROIT (Reuters) - No. 1 U.S. automaker General Motors Co posted a quarterly net loss on Tuesday caused by charges related to the sale of its Opel unit in Europe to France's PSA Group , but excluding the charges the results beat analysts' expectations.